Version Description
- 2022-11-10 =
- Improve transition/animation processing
- Fix modal page jumps
- Add automated testing
Download this release
Release Info
Developer | extendify |
Plugin | Extendify — Gutenberg Patterns and Templates |
Version | 1.2.0 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.2.0
- .wp-env.json +2 -1
- app/AdminPageRouter.php +11 -2
- app/Assist/Admin.php +41 -2
- app/Assist/Controllers/TasksController.php +17 -1
- app/Insights.php +11 -6
- app/Onboarding/Admin.php +8 -9
- app/Onboarding/Controllers/DataController.php +10 -0
- extendify.php +1 -1
- postcss.config.js +16 -10
- public/build/extendify-assist.asset.php +1 -1
- public/build/extendify-assist.css +1 -1
- public/build/extendify-assist.js +2 -1
- public/build/extendify-onboarding.asset.php +1 -1
- public/build/extendify-onboarding.css +1 -1
- public/build/extendify-onboarding.js +4 -1
.wp-env.json
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
{
|
2 |
"core": null,
|
3 |
-
"plugins": ["."]
|
|
|
4 |
}
|
1 |
{
|
2 |
"core": null,
|
3 |
+
"plugins": ["."],
|
4 |
+
"themes": ["https://downloads.wordpress.org/theme/extendable.zip"]
|
5 |
}
|
app/AdminPageRouter.php
CHANGED
@@ -8,6 +8,7 @@ namespace Extendify;
|
|
8 |
use Extendify\Config;
|
9 |
use Extendify\Library\AdminPage as LibraryAdminPage;
|
10 |
use Extendify\Assist\AdminPage as AssistAdminPage;
|
|
|
11 |
use Extendify\Onboarding\AdminPage as OnboardingAdminPage;
|
12 |
|
13 |
/**
|
@@ -79,9 +80,10 @@ class AdminPageRouter
|
|
79 |
// Check for extendify-launch-success as other plugins will not override
|
80 |
// this as they intercept the request.
|
81 |
// Special treatment for Yoast to disable their redirect when installing.
|
82 |
-
if ($url
|
83 |
return \admin_url() . 'admin.php?page=extendify-assist';
|
84 |
}
|
|
|
85 |
// phpcs:ignore WordPress.Security.NonceVerification
|
86 |
if (isset($_GET['extendify-launch-success'])) {
|
87 |
return \admin_url() . $this->getRoute();
|
@@ -126,9 +128,16 @@ class AdminPageRouter
|
|
126 |
*/
|
127 |
public function addAdminMenu()
|
128 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
\add_menu_page(
|
130 |
'Extendify',
|
131 |
-
|
132 |
Config::$requiredCapability,
|
133 |
'extendify-admin-page',
|
134 |
'__return_null',
|
8 |
use Extendify\Config;
|
9 |
use Extendify\Library\AdminPage as LibraryAdminPage;
|
10 |
use Extendify\Assist\AdminPage as AssistAdminPage;
|
11 |
+
use Extendify\Assist\Controllers\TasksController as AssistTasksController;
|
12 |
use Extendify\Onboarding\AdminPage as OnboardingAdminPage;
|
13 |
|
14 |
/**
|
80 |
// Check for extendify-launch-success as other plugins will not override
|
81 |
// this as they intercept the request.
|
82 |
// Special treatment for Yoast to disable their redirect when installing.
|
83 |
+
if ($url === \admin_url() . 'admin.php?page=wpseo_installation_successful_free') {
|
84 |
return \admin_url() . 'admin.php?page=extendify-assist';
|
85 |
}
|
86 |
+
|
87 |
// phpcs:ignore WordPress.Security.NonceVerification
|
88 |
if (isset($_GET['extendify-launch-success'])) {
|
89 |
return \admin_url() . $this->getRoute();
|
128 |
*/
|
129 |
public function addAdminMenu()
|
130 |
{
|
131 |
+
$tasksController = new AssistTasksController();
|
132 |
+
$remainingTasks = $tasksController->getRemainingCount();
|
133 |
+
$badgeCount = $remainingTasks > 9 ? '9' : strval($remainingTasks);
|
134 |
+
$menuLabel = Config::$launchCompleted ? __('Site Assistant', 'extendify') : __('Site Launcher', 'extendify');
|
135 |
+
$menuLabel = Config::$showOnboarding ? $menuLabel : __('Extendify', 'extendify');
|
136 |
+
$menuLabel = $badgeCount ? sprintf('%1$s <span class="awaiting-mod">%2$s</span>', $menuLabel, $badgeCount) : $menuLabel;
|
137 |
+
|
138 |
\add_menu_page(
|
139 |
'Extendify',
|
140 |
+
$menuLabel,
|
141 |
Config::$requiredCapability,
|
142 |
'extendify-admin-page',
|
143 |
'__return_null',
|
app/Assist/Admin.php
CHANGED
@@ -30,6 +30,13 @@ class Admin
|
|
30 |
return self::$instance;
|
31 |
}
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
self::$instance = $this;
|
34 |
$this->loadScripts();
|
35 |
|
@@ -50,7 +57,7 @@ class Admin
|
|
50 |
{
|
51 |
\add_action(
|
52 |
'admin_enqueue_scripts',
|
53 |
-
function (
|
54 |
if (!current_user_can(Config::$requiredCapability)) {
|
55 |
return;
|
56 |
}
|
@@ -60,7 +67,8 @@ class Admin
|
|
60 |
}
|
61 |
|
62 |
// Don't show on Launch pages.
|
63 |
-
|
|
|
64 |
return;
|
65 |
}
|
66 |
|
@@ -116,4 +124,35 @@ class Admin
|
|
116 |
}
|
117 |
);
|
118 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
119 |
}
|
30 |
return self::$instance;
|
31 |
}
|
32 |
|
33 |
+
// Show the Assist admin bar link when Launch is finished.
|
34 |
+
if (Config::$showAssist && Config::$launchCompleted) {
|
35 |
+
\add_action('admin_bar_menu', [$this, 'adminBarLink']);
|
36 |
+
\add_action('wp_enqueue_scripts', [$this, 'adminBarStyles']);
|
37 |
+
\add_action('admin_enqueue_scripts', [$this, 'adminBarStyles']);
|
38 |
+
}
|
39 |
+
|
40 |
self::$instance = $this;
|
41 |
$this->loadScripts();
|
42 |
|
57 |
{
|
58 |
\add_action(
|
59 |
'admin_enqueue_scripts',
|
60 |
+
function () {
|
61 |
if (!current_user_can(Config::$requiredCapability)) {
|
62 |
return;
|
63 |
}
|
67 |
}
|
68 |
|
69 |
// Don't show on Launch pages.
|
70 |
+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
71 |
+
if (isset($_GET['page']) && $_GET['page'] === 'extendify-launch') {
|
72 |
return;
|
73 |
}
|
74 |
|
124 |
}
|
125 |
);
|
126 |
}
|
127 |
+
|
128 |
+
/**
|
129 |
+
* Adds link to assist to the admin bar.
|
130 |
+
*
|
131 |
+
* @param object $adminBar - The admin bar.
|
132 |
+
* @return void
|
133 |
+
*/
|
134 |
+
public function adminBarLink($adminBar)
|
135 |
+
{
|
136 |
+
$title = '<span class="ab-icon" aria-hidden="true"></span><span class="ab-label">' . __('Site Assistant', 'extendify') . '</span>';
|
137 |
+
|
138 |
+
$args = [
|
139 |
+
'id' => 'extendify-assist-link',
|
140 |
+
'title' => $title,
|
141 |
+
'href' => \admin_url() . 'admin.php?page=extendify-admin-page',
|
142 |
+
'parent' => 'top-secondary',
|
143 |
+
];
|
144 |
+
$adminBar->add_node($args);
|
145 |
+
}
|
146 |
+
|
147 |
+
/**
|
148 |
+
* Adds custom styles only when admin bar CSS loaded.
|
149 |
+
*
|
150 |
+
* @return void
|
151 |
+
*/
|
152 |
+
public function adminBarStyles()
|
153 |
+
{
|
154 |
+
$svg = 'url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0iI2ZmZiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS41MDA5IDJIMTQuOTg3M0MxNS45NzQ3IDIgMTYuMzMyMiAyLjEwMTYxIDE2LjY5MzQgMi4yOTEyN0MxNy4wNTQ2IDIuNDgxNjkgMTcuMzM3MiAyLjc2MDkyIDE3LjUzMDQgMy4xMTYxNkMxNy43MjM3IDMuNDcyMTYgMTcuODI2IDMuODI0NCAxNy44MjYgNC43OTc1NlY4LjIzMzM2QzE3LjgyNiA5LjIwNjUyIDE3LjcyMjkgOS41NTg3NiAxNy41MzA0IDkuOTE0NzVDMTcuMzM3MiAxMC4yNzA4IDE3LjA1MzkgMTAuNTQ5MiAxNi42OTM0IDEwLjczOTZDMTYuNTMxOSAxMC44MjQ4IDE2LjM3MDggMTAuODk0OCAxNi4xNTQgMTAuOTQ1VjEzLjY3OTRDMTYuMTU0IDE1LjE4MjQgMTUuOTk0NyAxNS43MjY0IDE1LjY5NzUgMTYuMjc2MkMxNS4zOTkxIDE2LjgyNiAxNC45NjE1IDE3LjI1NjEgMTQuNDA0OCAxNy41NTAyQzEzLjg0NjkgMTcuODQ0MiAxMy4yOTQ5IDE4IDExLjc2OTggMThINi4zODUzOEM0Ljg2MDI4IDE4IDQuMzA4MjggMTcuODQzMSAzLjc1MDM4IDE3LjU1MDJDMy4xOTI0NyAxNy4yNTYxIDIuNzU2MDYgMTYuODI0OCAyLjQ1NzY1IDE2LjI3NjJDMi4xNTkyMyAxNS43Mjc1IDIgMTUuMTgyNCAyIDEzLjY3OTRWOC4zNzQyNkMyIDYuODcxMjkgMi4xNTkyMyA2LjMyNzI5IDIuNDU2NDcgNS43Nzc0OEMyLjc1NDg4IDUuMjI3NjcgMy4xOTI0NyA0Ljc5NjQyIDMuNzUwMzggNC41MDIzNEM0LjMwNzEgNC4yMDk0MSA0Ljg2MDI4IDQuMDUyNDkgNi4zODUzOCA0LjA1MjQ5SDguNjkwODFDOC43MzQwNSAzLjYwNTk3IDguODI0MjYgMy4zNjIzNCA4Ljk1Njk0IDMuMTE2OTJDOS4xNTAxNiAyLjc2MDkyIDkuNDMzNSAyLjQ4MTY5IDkuNzk0NzQgMi4yOTEyN0MxMC4xNTUyIDIuMTAxNjEgMTAuNTEzNCAyIDExLjUwMDkgMlpNOS43MDkgNC4xODY5OEM5LjcwOSAzLjU0OTI5IDEwLjIzMzYgMy4wMzIzNCAxMC44ODA3IDMuMDMyMzRIMTUuNjA2NkMxNi4yNTM4IDMuMDMyMzQgMTYuNzc4NCAzLjU0OTI5IDE2Ljc3ODQgNC4xODY5OFY4Ljg0Mzk1QzE2Ljc3ODQgOS40ODE2NCAxNi4yNTM4IDkuOTk4NTkgMTUuNjA2NiA5Ljk5ODU5SDEwLjg4MDdDMTAuMjMzNiA5Ljk5ODU5IDkuNzA5IDkuNDgxNjQgOS43MDkgOC44NDM5NVY0LjE4Njk4WiIgZmlsbD0iI2ZmZiIgLz4gPC9zdmc+")';
|
155 |
+
$css = '#wpadminbar #wp-admin-bar-extendify-assist-link .ab-icon { width: 20px; height: 20px; top: 1px; background-color: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-image: ' . $svg . ' !important; mask-image: ' . $svg . ' !important; }';
|
156 |
+
wp_add_inline_style('admin-bar', $css);
|
157 |
+
}
|
158 |
}
|
app/Assist/Controllers/TasksController.php
CHANGED
@@ -16,7 +16,6 @@ if (!defined('ABSPATH')) {
|
|
16 |
*/
|
17 |
class TasksController
|
18 |
{
|
19 |
-
|
20 |
/**
|
21 |
* Return tasks from either database or source.
|
22 |
*
|
@@ -54,4 +53,21 @@ class TasksController
|
|
54 |
update_option('extendify_assist_tasks', $data);
|
55 |
return new \WP_REST_Response($data);
|
56 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
}
|
16 |
*/
|
17 |
class TasksController
|
18 |
{
|
|
|
19 |
/**
|
20 |
* Return tasks from either database or source.
|
21 |
*
|
53 |
update_option('extendify_assist_tasks', $data);
|
54 |
return new \WP_REST_Response($data);
|
55 |
}
|
56 |
+
|
57 |
+
/**
|
58 |
+
* Returns remaining incomplete tasks.
|
59 |
+
*
|
60 |
+
* @return int
|
61 |
+
*/
|
62 |
+
public function getRemainingCount()
|
63 |
+
{
|
64 |
+
$tasks = get_option('extendify_assist_tasks', []);
|
65 |
+
if (!isset($tasks['state']['seenTasks'])) {
|
66 |
+
return 0;
|
67 |
+
}
|
68 |
+
|
69 |
+
$seenTasks = count($tasks['state']['seenTasks']);
|
70 |
+
$completedTasks = count($tasks['state']['completedTasks']);
|
71 |
+
return max(($seenTasks - $completedTasks), 0);
|
72 |
+
}
|
73 |
}
|
app/Insights.php
CHANGED
@@ -21,6 +21,10 @@ class Insights
|
|
21 |
'A',
|
22 |
'B',
|
23 |
],
|
|
|
|
|
|
|
|
|
24 |
];
|
25 |
|
26 |
/**
|
@@ -36,13 +40,13 @@ class Insights
|
|
36 |
if (defined('EXTENDIFY_INSIGHTS_URL') && class_exists('ExtendifyInsights')) {
|
37 |
// If we are generating an ID, then trigger the job here too.
|
38 |
// This only runs if they have opted in.
|
39 |
-
add_action('init', function() {
|
40 |
wp_schedule_single_event(time(), 'extendify_insights');
|
41 |
spawn_cron();
|
42 |
});
|
43 |
}
|
44 |
-
|
45 |
}
|
|
|
46 |
$this->setUpActiveTests();
|
47 |
$this->filterExternalInsights();
|
48 |
}
|
@@ -74,11 +78,12 @@ class Insights
|
|
74 |
public function filterExternalInsights()
|
75 |
{
|
76 |
add_filter('extendify_insights_data', function ($data) {
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
]);
|
|
|
82 |
});
|
83 |
}
|
84 |
}
|
21 |
'A',
|
22 |
'B',
|
23 |
],
|
24 |
+
'launch-site-vs-next' => [
|
25 |
+
'A',
|
26 |
+
'B',
|
27 |
+
],
|
28 |
];
|
29 |
|
30 |
/**
|
40 |
if (defined('EXTENDIFY_INSIGHTS_URL') && class_exists('ExtendifyInsights')) {
|
41 |
// If we are generating an ID, then trigger the job here too.
|
42 |
// This only runs if they have opted in.
|
43 |
+
add_action('init', function () {
|
44 |
wp_schedule_single_event(time(), 'extendify_insights');
|
45 |
spawn_cron();
|
46 |
});
|
47 |
}
|
|
|
48 |
}
|
49 |
+
|
50 |
$this->setUpActiveTests();
|
51 |
$this->filterExternalInsights();
|
52 |
}
|
78 |
public function filterExternalInsights()
|
79 |
{
|
80 |
add_filter('extendify_insights_data', function ($data) {
|
81 |
+
$insights = array_merge($data, [
|
82 |
+
'launch' => defined('EXTENDIFY_SHOW_ONBOARDING') && constant('EXTENDIFY_SHOW_ONBOARDING'),
|
83 |
+
'partner' => defined('EXTENDIFY_PARTNER_ID') ? constant('EXTENDIFY_PARTNER_ID') : null,
|
84 |
+
'siteCreatedAt' => get_user_option('user_registered', 1),
|
85 |
]);
|
86 |
+
return $insights;
|
87 |
});
|
88 |
}
|
89 |
}
|
app/Onboarding/Admin.php
CHANGED
@@ -73,12 +73,17 @@ class Admin
|
|
73 |
{
|
74 |
\add_action(
|
75 |
'admin_enqueue_scripts',
|
76 |
-
function (
|
77 |
if (!current_user_can(Config::$requiredCapability)) {
|
78 |
return;
|
79 |
}
|
80 |
|
81 |
-
|
|
|
|
|
|
|
|
|
|
|
82 |
}
|
83 |
);
|
84 |
}
|
@@ -153,16 +158,10 @@ class Admin
|
|
153 |
/**
|
154 |
* Adds various JS scripts
|
155 |
*
|
156 |
-
* @param string $hook - The WP admin page identifier.
|
157 |
-
*
|
158 |
* @return void
|
159 |
*/
|
160 |
-
public function addScopedScriptsAndStyles(
|
161 |
{
|
162 |
-
if ($hook !== 'extendify_page_extendify-launch') {
|
163 |
-
return;
|
164 |
-
}
|
165 |
-
|
166 |
$partnerData = $this->checkPartnerDataSources();
|
167 |
|
168 |
$bgColor = isset($partnerData['bgColor']) ? $partnerData['bgColor'] : '#2c39bd';
|
73 |
{
|
74 |
\add_action(
|
75 |
'admin_enqueue_scripts',
|
76 |
+
function () {
|
77 |
if (!current_user_can(Config::$requiredCapability)) {
|
78 |
return;
|
79 |
}
|
80 |
|
81 |
+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
82 |
+
if (!isset($_GET['page']) || $_GET['page'] !== 'extendify-launch') {
|
83 |
+
return;
|
84 |
+
}
|
85 |
+
|
86 |
+
$this->addScopedScriptsAndStyles();
|
87 |
}
|
88 |
);
|
89 |
}
|
158 |
/**
|
159 |
* Adds various JS scripts
|
160 |
*
|
|
|
|
|
161 |
* @return void
|
162 |
*/
|
163 |
+
public function addScopedScriptsAndStyles()
|
164 |
{
|
|
|
|
|
|
|
|
|
165 |
$partnerData = $this->checkPartnerDataSources();
|
166 |
|
167 |
$bgColor = isset($partnerData['bgColor']) ? $partnerData['bgColor'] : '#2c39bd';
|
app/Onboarding/Controllers/DataController.php
CHANGED
@@ -124,4 +124,14 @@ class DataController
|
|
124 |
wp_remote_retrieve_response_code($response)
|
125 |
);
|
126 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
}
|
124 |
wp_remote_retrieve_response_code($response)
|
125 |
);
|
126 |
}
|
127 |
+
|
128 |
+
/**
|
129 |
+
* Just here to check for 200 (vs server rate limting)
|
130 |
+
*
|
131 |
+
* @return \WP_REST_Response
|
132 |
+
*/
|
133 |
+
public static function ping()
|
134 |
+
{
|
135 |
+
return new \WP_REST_Response(true, 200);
|
136 |
+
}
|
137 |
}
|
extendify.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Plugin URI: https://extendify.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
|
6 |
* Author: Extendify
|
7 |
* Author URI: https://extendify.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
|
8 |
-
* Version: 1.
|
9 |
* License: GPL-2.0-or-later
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
* Text Domain: extendify
|
5 |
* Plugin URI: https://extendify.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
|
6 |
* Author: Extendify
|
7 |
* Author URI: https://extendify.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
|
8 |
+
* Version: 1.2.0
|
9 |
* License: GPL-2.0-or-later
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
* Text Domain: extendify
|
postcss.config.js
CHANGED
@@ -56,15 +56,21 @@ const findContent = (file) => {
|
|
56 |
return []
|
57 |
}
|
58 |
|
59 |
-
const findImportant = (
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
return 'div.extendify-assist'
|
68 |
}
|
69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
}
|
56 |
return []
|
57 |
}
|
58 |
|
59 |
+
const findImportant = (rawFile) => {
|
60 |
+
const file = rawFile.toLowerCase()
|
61 |
+
let tailwindPrefix = true
|
62 |
+
|
63 |
+
const filePrefixes = {
|
64 |
+
library: 'div.extendify',
|
65 |
+
onboarding: 'div.extendify-onboarding',
|
66 |
+
assist: 'div.extendify-assist',
|
|
|
67 |
}
|
68 |
+
|
69 |
+
Object.keys(filePrefixes).forEach((key) => {
|
70 |
+
if (file.includes(key) && file.endsWith('app.css')) {
|
71 |
+
tailwindPrefix = filePrefixes[key]
|
72 |
+
}
|
73 |
+
})
|
74 |
+
|
75 |
+
return tailwindPrefix
|
76 |
}
|
public/build/extendify-assist.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('react', 'react-dom', 'wp-blob', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-media-utils', 'wp-primitives'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('react', 'react-dom', 'wp-blob', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-media-utils', 'wp-primitives'), 'version' => '8c47827f626784e454d1');
|
public/build/extendify-assist.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
div.extendify-assist .sr-only{clip:rect(0,0,0,0)!important;border-width:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}div.extendify-assist .focus\:not-sr-only:focus{clip:auto!important;height:auto!important;margin:0!important;overflow:visible!important;padding:0!important;position:static!important;white-space:normal!important;width:auto!important}div.extendify-assist .pointer-events-none{pointer-events:none!important}div.extendify-assist .visible{visibility:visible!important}div.extendify-assist .invisible{visibility:hidden!important}div.extendify-assist .group:focus .group-focus\:visible,div.extendify-assist .group:hover .group-hover\:visible{visibility:visible!important}div.extendify-assist .static{position:static!important}div.extendify-assist .fixed{position:fixed!important}div.extendify-assist .absolute{position:absolute!important}div.extendify-assist .relative{position:relative!important}div.extendify-assist .sticky{position:sticky!important}div.extendify-assist .inset-0{bottom:0!important;left:0!important;right:0!important;top:0!important}div.extendify-assist .top-0{top:0!important}div.extendify-assist .top-2{top:.5rem!important}div.extendify-assist .top-4{top:1rem!important}div.extendify-assist .top-10{top:2.5rem!important}div.extendify-assist .-top-0{top:0!important}div.extendify-assist .-top-0\.5{top:-.125rem!important}div.extendify-assist .-top-1\/4{top:-25%!important}div.extendify-assist .right-0{right:0!important}div.extendify-assist .right-1{right:.25rem!important}div.extendify-assist .right-2{right:.5rem!important}div.extendify-assist .right-3{right:.75rem!important}div.extendify-assist .right-4{right:1rem!important}div.extendify-assist .right-2\.5{right:.625rem!important}div.extendify-assist .bottom-0{bottom:0!important}div.extendify-assist .bottom-4{bottom:1rem!important}div.extendify-assist .-bottom-2{bottom:-.5rem!important}div.extendify-assist .-left-0,div.extendify-assist .left-0{left:0!important}div.extendify-assist .-left-0\.5{left:-.125rem!important}div.extendify-assist .left-3\/4{left:75%!important}div.extendify-assist .group:hover .group-hover\:-top-2{top:-.5rem!important}div.extendify-assist .group:hover .group-hover\:-top-2\.5{top:-.625rem!important}div.extendify-assist .group:focus .group-focus\:-top-2{top:-.5rem!important}div.extendify-assist .group:focus .group-focus\:-top-2\.5{top:-.625rem!important}div.extendify-assist .z-10{z-index:10!important}div.extendify-assist .z-20{z-index:20!important}div.extendify-assist .z-30{z-index:30!important}div.extendify-assist .z-40{z-index:40!important}div.extendify-assist .z-50{z-index:50!important}div.extendify-assist .z-high{z-index:99999!important}div.extendify-assist .z-max{z-index:2147483647!important}div.extendify-assist .m-0{margin:0!important}div.extendify-assist .m-2{margin:.5rem!important}div.extendify-assist .m-4{margin:1rem!important}div.extendify-assist .m-8{margin:2rem!important}div.extendify-assist .m-auto{margin:auto!important}div.extendify-assist .-m-px{margin:-1px!important}div.extendify-assist .mx-1{margin-left:.25rem!important;margin-right:.25rem!important}div.extendify-assist .mx-6{margin-left:1.5rem!important;margin-right:1.5rem!important}div.extendify-assist .mx-auto{margin-left:auto!important;margin-right:auto!important}div.extendify-assist .-mx-4{margin-left:-1rem!important;margin-right:-1rem!important}div.extendify-assist .my-0{margin-bottom:0!important;margin-top:0!important}div.extendify-assist .my-4{margin-bottom:1rem!important;margin-top:1rem!important}div.extendify-assist .my-5{margin-bottom:1.25rem!important;margin-top:1.25rem!important}div.extendify-assist .my-8{margin-bottom:2rem!important;margin-top:2rem!important}div.extendify-assist .my-px{margin-bottom:1px!important;margin-top:1px!important}div.extendify-assist .mt-0{margin-top:0!important}div.extendify-assist .mt-1{margin-top:.25rem!important}div.extendify-assist .mt-2{margin-top:.5rem!important}div.extendify-assist .mt-4{margin-top:1rem!important}div.extendify-assist .mt-6{margin-top:1.5rem!important}div.extendify-assist .mt-8{margin-top:2rem!important}div.extendify-assist .mt-9{margin-top:2.25rem!important}div.extendify-assist .mt-12{margin-top:3rem!important}div.extendify-assist .mt-20{margin-top:5rem!important}div.extendify-assist .mt-px{margin-top:1px!important}div.extendify-assist .-mt-2{margin-top:-.5rem!important}div.extendify-assist .-mt-5{margin-top:-1.25rem!important}div.extendify-assist .mr-1{margin-right:.25rem!important}div.extendify-assist .mr-2{margin-right:.5rem!important}div.extendify-assist .mr-3{margin-right:.75rem!important}div.extendify-assist .mr-4{margin-right:1rem!important}div.extendify-assist .mr-6{margin-right:1.5rem!important}div.extendify-assist .-mr-1{margin-right:-.25rem!important}div.extendify-assist .-mr-1\.5{margin-right:-.375rem!important}div.extendify-assist .mb-0{margin-bottom:0!important}div.extendify-assist .mb-1{margin-bottom:.25rem!important}div.extendify-assist .mb-2{margin-bottom:.5rem!important}div.extendify-assist .mb-3{margin-bottom:.75rem!important}div.extendify-assist .mb-4{margin-bottom:1rem!important}div.extendify-assist .mb-5{margin-bottom:1.25rem!important}div.extendify-assist .mb-6{margin-bottom:1.5rem!important}div.extendify-assist .mb-8{margin-bottom:2rem!important}div.extendify-assist .mb-10{margin-bottom:2.5rem!important}div.extendify-assist .mb-16{margin-bottom:4rem!important}div.extendify-assist .ml-1{margin-left:.25rem!important}div.extendify-assist .ml-2{margin-left:.5rem!important}div.extendify-assist .ml-4{margin-left:1rem!important}div.extendify-assist .-ml-1{margin-left:-.25rem!important}div.extendify-assist .-ml-2{margin-left:-.5rem!important}div.extendify-assist .-ml-6{margin-left:-1.5rem!important}div.extendify-assist .-ml-px{margin-left:-1px!important}div.extendify-assist .-ml-1\.5{margin-left:-.375rem!important}div.extendify-assist .block{display:block!important}div.extendify-assist .inline-block{display:inline-block!important}div.extendify-assist .flex{display:flex!important}div.extendify-assist .inline-flex{display:inline-flex!important}div.extendify-assist .table{display:table!important}div.extendify-assist .grid{display:grid!important}div.extendify-assist .hidden{display:none!important}div.extendify-assist .h-0{height:0!important}div.extendify-assist .h-2{height:.5rem!important}div.extendify-assist .h-4{height:1rem!important}div.extendify-assist .h-5{height:1.25rem!important}div.extendify-assist .h-6{height:1.5rem!important}div.extendify-assist .h-8{height:2rem!important}div.extendify-assist .h-9{height:2.25rem!important}div.extendify-assist .h-10{height:2.5rem!important}div.extendify-assist .h-12{height:3rem!important}div.extendify-assist .h-14{height:3.5rem!important}div.extendify-assist .h-24{height:6rem!important}div.extendify-assist .h-32{height:8rem!important}div.extendify-assist .h-36{height:9rem!important}div.extendify-assist .h-48{height:12rem!important}div.extendify-assist .h-auto{height:auto!important}div.extendify-assist .h-full{height:100%!important}div.extendify-assist .h-screen{height:100vh!important}div.extendify-assist .max-h-96{max-height:24rem!important}div.extendify-assist .max-h-full{max-height:100%!important}div.extendify-assist .min-h-full{min-height:100%!important}div.extendify-assist .min-h-screen{min-height:100vh!important}div.extendify-assist .w-0{width:0!important}div.extendify-assist .w-4{width:1rem!important}div.extendify-assist .w-5{width:1.25rem!important}div.extendify-assist .w-6{width:1.5rem!important}div.extendify-assist .w-9{width:2.25rem!important}div.extendify-assist .w-12{width:3rem!important}div.extendify-assist .w-24{width:6rem!important}div.extendify-assist .w-28{width:7rem!important}div.extendify-assist .w-32{width:8rem!important}div.extendify-assist .w-40{width:10rem!important}div.extendify-assist .w-44{width:11rem!important}div.extendify-assist .w-72{width:18rem!important}div.extendify-assist .w-96{width:24rem!important}div.extendify-assist .w-auto{width:auto!important}div.extendify-assist .w-1\/5{width:20%!important}div.extendify-assist .w-4\/5{width:80%!important}div.extendify-assist .w-6\/12{width:50%!important}div.extendify-assist .w-7\/12{width:58.333333%!important}div.extendify-assist .w-full{width:100%!important}div.extendify-assist .w-screen{width:100vw!important}div.extendify-assist .min-w-0{min-width:0!important}div.extendify-assist .min-w-full{min-width:100%!important}div.extendify-assist .min-w-sm{min-width:7rem!important}div.extendify-assist .min-w-md{min-width:30rem!important}div.extendify-assist .max-w-md{max-width:28rem!important}div.extendify-assist .max-w-lg{max-width:32rem!important}div.extendify-assist .max-w-xl{max-width:36rem!important}div.extendify-assist .max-w-full{max-width:100%!important}div.extendify-assist .max-w-prose{max-width:65ch!important}div.extendify-assist .max-w-screen-md{max-width:782px!important}div.extendify-assist .max-w-screen-lg{max-width:1080px!important}div.extendify-assist .max-w-screen-xl{max-width:1280px!important}div.extendify-assist .max-w-screen-3xl{max-width:1600px!important}div.extendify-assist .max-w-screen-4xl{max-width:1920px!important}div.extendify-assist .max-w-onboarding-content{max-width:45.5rem!important}div.extendify-assist .max-w-onboarding-sm{max-width:26.5rem!important}div.extendify-assist .max-w-3\/4{max-width:75%!important}div.extendify-assist .flex-1{flex:1 1 0%!important}div.extendify-assist .flex-auto{flex:1 1 auto!important}div.extendify-assist .flex-none{flex:none!important}div.extendify-assist .flex-shrink-0{flex-shrink:0!important}div.extendify-assist .flex-grow-0{flex-grow:0!important}div.extendify-assist .flex-grow{flex-grow:1!important}div.extendify-assist .origin-top{transform-origin:top!important}div.extendify-assist .transform{--tw-translate-x:0!important;--tw-translate-y:0!important;--tw-rotate:0!important;--tw-skew-x:0!important;--tw-skew-y:0!important;--tw-scale-x:1!important;--tw-scale-y:1!important;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}div.extendify-assist .-translate-x-1{--tw-translate-x:-0.25rem!important}div.extendify-assist .translate-y-0{--tw-translate-y:0px!important}div.extendify-assist .translate-y-1{--tw-translate-y:0.25rem!important}div.extendify-assist .translate-y-4{--tw-translate-y:1rem!important}div.extendify-assist .translate-y-14{--tw-translate-y:3.5rem!important}div.extendify-assist .-translate-y-px{--tw-translate-y:-1px!important}div.extendify-assist .-translate-y-full{--tw-translate-y:-100%!important}div.extendify-assist .rotate-90{--tw-rotate:90deg!important}div.extendify-assist .cursor-default{cursor:default!important}div.extendify-assist .cursor-pointer{cursor:pointer!important}div.extendify-assist .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}div.extendify-assist .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify-assist .flex-col{flex-direction:column!important}div.extendify-assist .flex-wrap{flex-wrap:wrap!important}div.extendify-assist .items-start{align-items:flex-start!important}div.extendify-assist .items-end{align-items:flex-end!important}div.extendify-assist .items-center{align-items:center!important}div.extendify-assist .items-baseline{align-items:baseline!important}div.extendify-assist .justify-end{justify-content:flex-end!important}div.extendify-assist .justify-center{justify-content:center!important}div.extendify-assist .justify-between{justify-content:space-between!important}div.extendify-assist .justify-evenly{justify-content:space-evenly!important}div.extendify-assist .gap-0{gap:0!important}div.extendify-assist .gap-1{gap:.25rem!important}div.extendify-assist .gap-3{gap:.75rem!important}div.extendify-assist .gap-4{gap:1rem!important}div.extendify-assist .gap-6{gap:1.5rem!important}div.extendify-assist .gap-16{gap:4rem!important}div.extendify-assist .gap-x-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}div.extendify-assist .gap-x-3{-moz-column-gap:.75rem!important;column-gap:.75rem!important}div.extendify-assist .gap-x-4{-moz-column-gap:1rem!important;column-gap:1rem!important}div.extendify-assist .gap-y-12{row-gap:3rem!important}div.extendify-assist .space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(0px*var(--tw-space-x-reverse))!important}div.extendify-assist .space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.25rem*var(--tw-space-x-reverse))!important}div.extendify-assist .space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.5rem*var(--tw-space-x-reverse))!important}div.extendify-assist .space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.75rem*var(--tw-space-x-reverse))!important}div.extendify-assist .space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(1rem*var(--tw-space-x-reverse))!important}div.extendify-assist .space-x-0\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.125rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.125rem*var(--tw-space-x-reverse))!important}div.extendify-assist .space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-assist .space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1rem*var(--tw-space-y-reverse))!important;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-assist .space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-assist .divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0!important;border-bottom-width:calc(1px*var(--tw-divide-y-reverse))!important;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))!important}div.extendify-assist .self-start{align-self:flex-start!important}div.extendify-assist .overflow-hidden{overflow:hidden!important}div.extendify-assist .overflow-y-auto{overflow-y:auto!important}div.extendify-assist .overflow-x-hidden{overflow-x:hidden!important}div.extendify-assist .overflow-y-scroll{overflow-y:scroll!important}div.extendify-assist .whitespace-nowrap{white-space:nowrap!important}div.extendify-assist .rounded-none{border-radius:0!important}div.extendify-assist .rounded-sm{border-radius:.125rem!important}div.extendify-assist .rounded{border-radius:.25rem!important}div.extendify-assist .rounded-md{border-radius:.375rem!important}div.extendify-assist .rounded-lg{border-radius:.5rem!important}div.extendify-assist .rounded-full{border-radius:9999px!important}div.extendify-assist .rounded-tr-sm{border-top-right-radius:.125rem!important}div.extendify-assist .rounded-br-sm{border-bottom-right-radius:.125rem!important}div.extendify-assist .border-0{border-width:0!important}div.extendify-assist .border-2{border-width:2px!important}div.extendify-assist .border-8{border-width:8px!important}div.extendify-assist .border{border-width:1px!important}div.extendify-assist .border-t{border-top-width:1px!important}div.extendify-assist .border-r{border-right-width:1px!important}div.extendify-assist .border-b-0{border-bottom-width:0!important}div.extendify-assist .border-b-2{border-bottom-width:2px!important}div.extendify-assist .border-b{border-bottom-width:1px!important}div.extendify-assist .border-l-8{border-left-width:8px!important}div.extendify-assist .border-solid{border-style:solid!important}div.extendify-assist .border-dotted{border-style:dotted!important}div.extendify-assist .border-none{border-style:none!important}div.extendify-assist .border-transparent{border-color:transparent!important}div.extendify-assist .border-black{--tw-border-opacity:1!important;border-color:rgba(0,0,0,var(--tw-border-opacity))!important}div.extendify-assist .border-white{--tw-border-opacity:1!important;border-color:rgba(255,255,255,var(--tw-border-opacity))!important}div.extendify-assist .border-gray-100{--tw-border-opacity:1!important;border-color:rgba(240,240,240,var(--tw-border-opacity))!important}div.extendify-assist .border-gray-400{--tw-border-opacity:1!important;border-color:rgba(204,204,204,var(--tw-border-opacity))!important}div.extendify-assist .border-gray-700{--tw-border-opacity:1!important;border-color:rgba(117,117,117,var(--tw-border-opacity))!important}div.extendify-assist .border-gray-900{--tw-border-opacity:1!important;border-color:rgba(30,30,30,var(--tw-border-opacity))!important}div.extendify-assist .border-partner-primary-bg{border-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-assist .border-extendify-main{--tw-border-opacity:1!important;border-color:rgba(11,74,67,var(--tw-border-opacity))!important}div.extendify-assist .border-extendify-secondary{--tw-border-opacity:1!important;border-color:rgba(203,195,245,var(--tw-border-opacity))!important}div.extendify-assist .border-extendify-transparent-black-100{border-color:rgba(0,0,0,.07)!important}div.extendify-assist .border-wp-alert-red{--tw-border-opacity:1!important;border-color:rgba(204,24,24,var(--tw-border-opacity))!important}div.extendify-assist .focus\:border-transparent:focus{border-color:transparent!important}div.extendify-assist .border-opacity-10{--tw-border-opacity:0.1!important}div.extendify-assist .bg-transparent{background-color:transparent!important}div.extendify-assist .bg-black{--tw-bg-opacity:1!important;background-color:rgba(0,0,0,var(--tw-bg-opacity))!important}div.extendify-assist .bg-white{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}div.extendify-assist .bg-gray-50{--tw-bg-opacity:1!important;background-color:rgba(251,251,251,var(--tw-bg-opacity))!important}div.extendify-assist .bg-gray-100{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify-assist .bg-gray-200{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify-assist .bg-gray-700{--tw-bg-opacity:1!important;background-color:rgba(117,117,117,var(--tw-bg-opacity))!important}div.extendify-assist .bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify-assist .bg-partner-primary-bg{background-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-assist .bg-extendify-main{--tw-bg-opacity:1!important;background-color:rgba(11,74,67,var(--tw-bg-opacity))!important}div.extendify-assist .bg-extendify-alert{--tw-bg-opacity:1!important;background-color:rgba(132,16,16,var(--tw-bg-opacity))!important}div.extendify-assist .bg-extendify-secondary{--tw-bg-opacity:1!important;background-color:rgba(203,195,245,var(--tw-bg-opacity))!important}div.extendify-assist .bg-extendify-transparent-white{background-color:hsla(0,0%,99%,.88)!important}div.extendify-assist .bg-wp-theme-500{background-color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-assist .group:hover .group-hover\:bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify-assist .hover\:bg-gray-200:hover{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify-assist .hover\:bg-gray-300:hover{--tw-bg-opacity:1!important;background-color:rgba(221,221,221,var(--tw-bg-opacity))!important}div.extendify-assist .hover\:bg-extendify-main-dark:hover{--tw-bg-opacity:1!important;background-color:rgba(5,49,44,var(--tw-bg-opacity))!important}div.extendify-assist .hover\:bg-wp-theme-600:hover{background-color:var(--wp-admin-theme-color-darker-10,#006ba1)!important}div.extendify-assist .focus\:bg-white:focus{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}div.extendify-assist .focus\:bg-gray-200:focus{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify-assist .active\:bg-gray-900:active{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify-assist .disabled\:bg-gray-700:disabled{--tw-bg-opacity:1!important;background-color:rgba(117,117,117,var(--tw-bg-opacity))!important}div.extendify-assist .bg-opacity-40{--tw-bg-opacity:0.4!important}div.extendify-assist .bg-gradient-to-l{background-image:linear-gradient(to left,var(--tw-gradient-stops))!important}div.extendify-assist .from-white{--tw-gradient-from:#fff!important;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,hsla(0,0%,100%,0))!important}div.extendify-assist .bg-cover{background-size:cover!important}div.extendify-assist .bg-clip-padding{background-clip:padding-box!important}div.extendify-assist .fill-current{fill:currentColor!important}div.extendify-assist .stroke-current{stroke:currentColor!important}div.extendify-assist .p-0{padding:0!important}div.extendify-assist .p-1{padding:.25rem!important}div.extendify-assist .p-2{padding:.5rem!important}div.extendify-assist .p-3{padding:.75rem!important}div.extendify-assist .p-4{padding:1rem!important}div.extendify-assist .p-6{padding:1.5rem!important}div.extendify-assist .p-8{padding:2rem!important}div.extendify-assist .p-10{padding:2.5rem!important}div.extendify-assist .p-12{padding:3rem!important}div.extendify-assist .p-0\.5{padding:.125rem!important}div.extendify-assist .p-1\.5{padding:.375rem!important}div.extendify-assist .p-3\.5{padding:.875rem!important}div.extendify-assist .px-0{padding-left:0!important;padding-right:0!important}div.extendify-assist .px-1{padding-left:.25rem!important;padding-right:.25rem!important}div.extendify-assist .px-2{padding-left:.5rem!important;padding-right:.5rem!important}div.extendify-assist .px-3{padding-left:.75rem!important;padding-right:.75rem!important}div.extendify-assist .px-4{padding-left:1rem!important;padding-right:1rem!important}div.extendify-assist .px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}div.extendify-assist .px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}div.extendify-assist .px-10{padding-left:2.5rem!important;padding-right:2.5rem!important}div.extendify-assist .px-0\.5{padding-left:.125rem!important;padding-right:.125rem!important}div.extendify-assist .px-2\.5{padding-left:.625rem!important;padding-right:.625rem!important}div.extendify-assist .py-0{padding-bottom:0!important;padding-top:0!important}div.extendify-assist .py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}div.extendify-assist .py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}div.extendify-assist .py-3{padding-bottom:.75rem!important;padding-top:.75rem!important}div.extendify-assist .py-4{padding-bottom:1rem!important;padding-top:1rem!important}div.extendify-assist .py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}div.extendify-assist .py-12{padding-bottom:3rem!important;padding-top:3rem!important}div.extendify-assist .py-2\.5{padding-bottom:.625rem!important;padding-top:.625rem!important}div.extendify-assist .pt-0{padding-top:0!important}div.extendify-assist .pt-1{padding-top:.25rem!important}div.extendify-assist .pt-2{padding-top:.5rem!important}div.extendify-assist .pt-3{padding-top:.75rem!important}div.extendify-assist .pt-4{padding-top:1rem!important}div.extendify-assist .pt-6{padding-top:1.5rem!important}div.extendify-assist .pt-9{padding-top:2.25rem!important}div.extendify-assist .pt-10{padding-top:2.5rem!important}div.extendify-assist .pt-12{padding-top:3rem!important}div.extendify-assist .pt-px{padding-top:1px!important}div.extendify-assist .pt-0\.5{padding-top:.125rem!important}div.extendify-assist .pr-3{padding-right:.75rem!important}div.extendify-assist .pr-4{padding-right:1rem!important}div.extendify-assist .pr-8{padding-right:2rem!important}div.extendify-assist .pb-0{padding-bottom:0!important}div.extendify-assist .pb-1{padding-bottom:.25rem!important}div.extendify-assist .pb-2{padding-bottom:.5rem!important}div.extendify-assist .pb-3{padding-bottom:.75rem!important}div.extendify-assist .pb-4{padding-bottom:1rem!important}div.extendify-assist .pb-8{padding-bottom:2rem!important}div.extendify-assist .pb-20{padding-bottom:5rem!important}div.extendify-assist .pb-36{padding-bottom:9rem!important}div.extendify-assist .pb-40{padding-bottom:10rem!important}div.extendify-assist .pb-1\.5{padding-bottom:.375rem!important}div.extendify-assist .pl-0{padding-left:0!important}div.extendify-assist .pl-1{padding-left:.25rem!important}div.extendify-assist .pl-2{padding-left:.5rem!important}div.extendify-assist .pl-4{padding-left:1rem!important}div.extendify-assist .pl-5{padding-left:1.25rem!important}div.extendify-assist .pl-6{padding-left:1.5rem!important}div.extendify-assist .text-left{text-align:left!important}div.extendify-assist .text-center{text-align:center!important}div.extendify-assist .text-right{text-align:right!important}div.extendify-assist .align-middle{vertical-align:middle!important}div.extendify-assist .text-xs{font-size:.75rem!important;line-height:1rem!important}div.extendify-assist .text-sm{font-size:.875rem!important;line-height:1.25rem!important}div.extendify-assist .text-base{font-size:1rem!important;line-height:1.5rem!important}div.extendify-assist .text-lg{font-size:1.125rem!important;line-height:1.75rem!important}div.extendify-assist .text-xl{font-size:1.25rem!important;line-height:1.75rem!important}div.extendify-assist .text-3xl{font-size:2rem!important;line-height:2.5rem!important}div.extendify-assist .text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}div.extendify-assist .font-light{font-weight:300!important}div.extendify-assist .font-normal{font-weight:400!important}div.extendify-assist .font-medium{font-weight:500!important}div.extendify-assist .font-semibold{font-weight:600!important}div.extendify-assist .font-bold{font-weight:700!important}div.extendify-assist .uppercase{text-transform:uppercase!important}div.extendify-assist .capitalize{text-transform:capitalize!important}div.extendify-assist .italic{font-style:italic!important}div.extendify-assist .leading-none{line-height:1!important}div.extendify-assist .leading-loose{line-height:2!important}div.extendify-assist .tracking-tight{letter-spacing:-.025em!important}div.extendify-assist .tracking-wide{letter-spacing:.025em!important}div.extendify-assist .text-black{--tw-text-opacity:1!important;color:rgba(0,0,0,var(--tw-text-opacity))!important}div.extendify-assist .text-white{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-assist .text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify-assist .text-gray-500{--tw-text-opacity:1!important;color:rgba(204,204,204,var(--tw-text-opacity))!important}div.extendify-assist .text-gray-700{--tw-text-opacity:1!important;color:rgba(117,117,117,var(--tw-text-opacity))!important}div.extendify-assist .text-gray-900{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify-assist .text-partner-primary-text{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify-assist .text-partner-primary-bg{color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-assist .text-extendify-main{--tw-text-opacity:1!important;color:rgba(11,74,67,var(--tw-text-opacity))!important}div.extendify-assist .text-extendify-main-dark{--tw-text-opacity:1!important;color:rgba(5,49,44,var(--tw-text-opacity))!important}div.extendify-assist .text-extendify-gray{--tw-text-opacity:1!important;color:rgba(95,95,95,var(--tw-text-opacity))!important}div.extendify-assist .text-extendify-black{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify-assist .text-wp-theme-500{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-assist .text-wp-alert-red{--tw-text-opacity:1!important;color:rgba(204,24,24,var(--tw-text-opacity))!important}div.extendify-assist .group:hover .group-hover\:text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify-assist .focus-within\:text-partner-primary-bg:focus-within{color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-assist .hover\:text-current:hover{color:currentColor!important}div.extendify-assist .hover\:text-white:hover{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-assist .hover\:text-partner-primary-bg:hover{color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-assist .hover\:text-wp-theme-500:hover{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-assist .focus\:text-white:focus{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-assist .focus\:text-blue-500:focus{--tw-text-opacity:1!important;color:rgba(59,130,246,var(--tw-text-opacity))!important}div.extendify-assist .focus\:text-partner-primary-bg:focus{color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-assist .underline{text-decoration:underline!important}div.extendify-assist .line-through{text-decoration:line-through!important}div.extendify-assist .hover\:no-underline:hover,div.extendify-assist .no-underline{text-decoration:none!important}div.extendify-assist .opacity-0{opacity:0!important}div.extendify-assist .opacity-30{opacity:.3!important}div.extendify-assist .opacity-50{opacity:.5!important}div.extendify-assist .opacity-60{opacity:.6!important}div.extendify-assist .opacity-70{opacity:.7!important}div.extendify-assist .opacity-75{opacity:.75!important}div.extendify-assist .focus\:opacity-100:focus,div.extendify-assist .group:focus .group-focus\:opacity-100,div.extendify-assist .group:hover .group-hover\:opacity-100,div.extendify-assist .hover\:opacity-100:hover,div.extendify-assist .opacity-100{opacity:1!important}div.extendify-assist .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05)!important}div.extendify-assist .shadow-md,div.extendify-assist .shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify-assist .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06)!important}div.extendify-assist .shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25)!important}div.extendify-assist .shadow-2xl,div.extendify-assist .shadow-none{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify-assist .shadow-none{--tw-shadow:0 0 #0000!important}div.extendify-assist .shadow-modal{--tw-shadow:0 0 0 1px rgba(0,0,0,.1),0 3px 15px -3px rgba(0,0,0,.035),0 0 1px rgba(0,0,0,.05)!important}div.extendify-assist .focus\:shadow-none:focus,div.extendify-assist .shadow-modal{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify-assist .focus\:shadow-none:focus{--tw-shadow:0 0 #0000!important}div.extendify-assist .focus\:outline-none:focus,div.extendify-assist .outline-none{outline:2px solid transparent!important;outline-offset:2px!important}div.extendify-assist .focus\:ring-wp:focus,div.extendify-assist .ring-wp{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}div.extendify-assist .ring-partner-primary-bg{--tw-ring-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-assist .ring-offset-0{--tw-ring-offset-width:0px!important}div.extendify-assist .ring-offset-2{--tw-ring-offset-width:2px!important}div.extendify-assist .ring-offset-white{--tw-ring-offset-color:#fff!important}div.extendify-assist .filter{--tw-blur:var(--tw-empty, )!important;--tw-brightness:var(--tw-empty, )!important;--tw-contrast:var(--tw-empty, )!important;--tw-grayscale:var(--tw-empty, )!important;--tw-hue-rotate:var(--tw-empty, )!important;--tw-invert:var(--tw-empty, )!important;--tw-saturate:var(--tw-empty, )!important;--tw-sepia:var(--tw-empty, )!important;--tw-drop-shadow:var(--tw-empty, )!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}div.extendify-assist .blur{--tw-blur:blur(8px)!important}div.extendify-assist .invert{--tw-invert:invert(100%)!important}div.extendify-assist .backdrop-filter{--tw-backdrop-blur:var(--tw-empty, )!important;--tw-backdrop-brightness:var(--tw-empty, )!important;--tw-backdrop-contrast:var(--tw-empty, )!important;--tw-backdrop-grayscale:var(--tw-empty, )!important;--tw-backdrop-hue-rotate:var(--tw-empty, )!important;--tw-backdrop-invert:var(--tw-empty, )!important;--tw-backdrop-opacity:var(--tw-empty, )!important;--tw-backdrop-saturate:var(--tw-empty, )!important;--tw-backdrop-sepia:var(--tw-empty, )!important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}div.extendify-assist .backdrop-blur-xl{--tw-backdrop-blur:blur(24px)!important}div.extendify-assist .backdrop-saturate-200{--tw-backdrop-saturate:saturate(2)!important}div.extendify-assist .transition-all{transition-duration:.15s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify-assist .transition{transition-duration:.15s!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify-assist .transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify-assist .delay-200{transition-delay:.2s!important}div.extendify-assist .delay-300{transition-delay:.3s!important}div.extendify-assist .duration-100{transition-duration:.1s!important}div.extendify-assist .duration-200{transition-duration:.2s!important}div.extendify-assist .duration-300{transition-duration:.3s!important}div.extendify-assist .duration-500{transition-duration:.5s!important}div.extendify-assist .duration-1000{transition-duration:1s!important}div.extendify-assist .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}div.extendify-assist .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.extendify-assist{--tw-ring-inset:var(--tw-empty, )!important;--tw-ring-offset-width:0px!important;--tw-ring-offset-color:transparent!important;--tw-ring-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}.extendify-assist *,.extendify-assist :after,.extendify-assist :before{border:0 solid #e5e7eb!important;box-sizing:border-box!important}.hide-checkmark:before{content:none!important}.extendify-assist-upload-logo .components-responsive-wrapper>span{display:block!important;padding-bottom:192px!important}.extendify_page_extendify-assist{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}.extendify_page_extendify-assist #wpcontent{padding:0!important}@media (min-width:480px){div.extendify-assist .xs\:inline{display:inline!important}div.extendify-assist .xs\:h-9{height:2.25rem!important}div.extendify-assist .xs\:pr-3{padding-right:.75rem!important}div.extendify-assist .xs\:pl-2{padding-left:.5rem!important}}@media (min-width:600px){div.extendify-assist .sm\:mx-0{margin-left:0!important;margin-right:0!important}div.extendify-assist .sm\:mt-0{margin-top:0!important}div.extendify-assist .sm\:mb-8{margin-bottom:2rem!important}div.extendify-assist .sm\:ml-2{margin-left:.5rem!important}div.extendify-assist .sm\:block{display:block!important}div.extendify-assist .sm\:flex{display:flex!important}div.extendify-assist .sm\:h-auto{height:auto!important}div.extendify-assist .sm\:w-72{width:18rem!important}div.extendify-assist .sm\:w-auto{width:auto!important}div.extendify-assist .sm\:translate-y-5{--tw-translate-y:1.25rem!important}div.extendify-assist .sm\:space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-assist .sm\:overflow-hidden{overflow:hidden!important}div.extendify-assist .sm\:p-0{padding:0!important}div.extendify-assist .sm\:py-0{padding-bottom:0!important;padding-top:0!important}div.extendify-assist .sm\:pt-0{padding-top:0!important}div.extendify-assist .sm\:pt-5{padding-top:1.25rem!important}}@media (min-width:782px){div.extendify-assist .md\:m-0{margin:0!important}div.extendify-assist .md\:-ml-8{margin-left:-2rem!important}div.extendify-assist .md\:block{display:block!important}div.extendify-assist .md\:flex{display:flex!important}div.extendify-assist .md\:hidden{display:none!important}div.extendify-assist .md\:h-screen{height:100vh!important}div.extendify-assist .md\:min-h-48{min-height:12rem!important}div.extendify-assist .md\:w-1\/2{width:50%!important}div.extendify-assist .md\:w-full{width:100%!important}div.extendify-assist .md\:w-40vw{width:40vw!important}div.extendify-assist .md\:max-w-sm{max-width:24rem!important}div.extendify-assist .md\:max-w-md{max-width:28rem!important}div.extendify-assist .md\:max-w-2xl{max-width:42rem!important}div.extendify-assist .md\:max-w-full{max-width:100%!important}div.extendify-assist .md\:flex-row{flex-direction:row!important}div.extendify-assist .md\:gap-8{gap:2rem!important}div.extendify-assist .md\:space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(2rem*var(--tw-space-y-reverse))!important;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-assist .md\:overflow-hidden{overflow:hidden!important}div.extendify-assist .md\:overflow-y-scroll{overflow-y:scroll!important}div.extendify-assist .md\:focus\:bg-transparent:focus{background-color:transparent!important}div.extendify-assist .md\:p-6{padding:1.5rem!important}div.extendify-assist .md\:p-8{padding:2rem!important}div.extendify-assist .md\:px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}div.extendify-assist .md\:px-8{padding-left:2rem!important;padding-right:2rem!important}div.extendify-assist .md\:pl-8{padding-left:2rem!important}div.extendify-assist .md\:text-black{--tw-text-opacity:1!important;color:rgba(0,0,0,var(--tw-text-opacity))!important}}@media (min-width:1080px){div.extendify-assist .lg\:absolute{position:absolute!important}div.extendify-assist .lg\:-mr-1{margin-right:-.25rem!important}div.extendify-assist .lg\:block{display:block!important}div.extendify-assist .lg\:flex{display:flex!important}div.extendify-assist .lg\:w-1\/2{width:50%!important}div.extendify-assist .lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify-assist .lg\:flex-row{flex-direction:row!important}div.extendify-assist .lg\:justify-start{justify-content:flex-start!important}div.extendify-assist .lg\:overflow-hidden{overflow:hidden!important}div.extendify-assist .lg\:p-12{padding:3rem!important}div.extendify-assist .lg\:p-16{padding:4rem!important}div.extendify-assist .lg\:p-24{padding:6rem!important}div.extendify-assist .lg\:px-12{padding-left:3rem!important;padding-right:3rem!important}div.extendify-assist .lg\:pr-52{padding-right:13rem!important}}@media (min-width:1280px){div.extendify-assist .xl\:mb-12{margin-bottom:3rem!important}div.extendify-assist .xl\:p-32{padding:8rem!important}div.extendify-assist .xl\:px-0{padding-left:0!important;padding-right:0!important}}
|
1 |
+
div.extendify-assist .sr-only{clip:rect(0,0,0,0)!important;border-width:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}div.extendify-assist .focus\:not-sr-only:focus{clip:auto!important;height:auto!important;margin:0!important;overflow:visible!important;padding:0!important;position:static!important;white-space:normal!important;width:auto!important}div.extendify-assist .pointer-events-none{pointer-events:none!important}div.extendify-assist .visible{visibility:visible!important}div.extendify-assist .invisible{visibility:hidden!important}div.extendify-assist .group:focus .group-focus\:visible,div.extendify-assist .group:hover .group-hover\:visible{visibility:visible!important}div.extendify-assist .static{position:static!important}div.extendify-assist .fixed{position:fixed!important}div.extendify-assist .absolute{position:absolute!important}div.extendify-assist .relative{position:relative!important}div.extendify-assist .sticky{position:sticky!important}div.extendify-assist .inset-0{bottom:0!important;left:0!important;right:0!important;top:0!important}div.extendify-assist .top-0{top:0!important}div.extendify-assist .top-2{top:.5rem!important}div.extendify-assist .top-4{top:1rem!important}div.extendify-assist .top-10{top:2.5rem!important}div.extendify-assist .-top-0{top:0!important}div.extendify-assist .-top-0\.5{top:-.125rem!important}div.extendify-assist .-top-1\/4{top:-25%!important}div.extendify-assist .right-0{right:0!important}div.extendify-assist .right-1{right:.25rem!important}div.extendify-assist .right-2{right:.5rem!important}div.extendify-assist .right-3{right:.75rem!important}div.extendify-assist .right-4{right:1rem!important}div.extendify-assist .right-2\.5{right:.625rem!important}div.extendify-assist .bottom-0{bottom:0!important}div.extendify-assist .bottom-4{bottom:1rem!important}div.extendify-assist .-bottom-2{bottom:-.5rem!important}div.extendify-assist .-left-0,div.extendify-assist .left-0{left:0!important}div.extendify-assist .-left-0\.5{left:-.125rem!important}div.extendify-assist .left-3\/4{left:75%!important}div.extendify-assist .group:hover .group-hover\:-top-2{top:-.5rem!important}div.extendify-assist .group:hover .group-hover\:-top-2\.5{top:-.625rem!important}div.extendify-assist .group:focus .group-focus\:-top-2{top:-.5rem!important}div.extendify-assist .group:focus .group-focus\:-top-2\.5{top:-.625rem!important}div.extendify-assist .z-10{z-index:10!important}div.extendify-assist .z-20{z-index:20!important}div.extendify-assist .z-30{z-index:30!important}div.extendify-assist .z-40{z-index:40!important}div.extendify-assist .z-50{z-index:50!important}div.extendify-assist .z-high{z-index:99999!important}div.extendify-assist .z-max{z-index:2147483647!important}div.extendify-assist .m-0{margin:0!important}div.extendify-assist .m-2{margin:.5rem!important}div.extendify-assist .m-4{margin:1rem!important}div.extendify-assist .m-8{margin:2rem!important}div.extendify-assist .m-auto{margin:auto!important}div.extendify-assist .-m-px{margin:-1px!important}div.extendify-assist .mx-1{margin-left:.25rem!important;margin-right:.25rem!important}div.extendify-assist .mx-6{margin-left:1.5rem!important;margin-right:1.5rem!important}div.extendify-assist .mx-auto{margin-left:auto!important;margin-right:auto!important}div.extendify-assist .-mx-4{margin-left:-1rem!important;margin-right:-1rem!important}div.extendify-assist .my-0{margin-bottom:0!important;margin-top:0!important}div.extendify-assist .my-4{margin-bottom:1rem!important;margin-top:1rem!important}div.extendify-assist .my-5{margin-bottom:1.25rem!important;margin-top:1.25rem!important}div.extendify-assist .my-8{margin-bottom:2rem!important;margin-top:2rem!important}div.extendify-assist .my-px{margin-bottom:1px!important;margin-top:1px!important}div.extendify-assist .mt-0{margin-top:0!important}div.extendify-assist .mt-1{margin-top:.25rem!important}div.extendify-assist .mt-2{margin-top:.5rem!important}div.extendify-assist .mt-4{margin-top:1rem!important}div.extendify-assist .mt-6{margin-top:1.5rem!important}div.extendify-assist .mt-8{margin-top:2rem!important}div.extendify-assist .mt-9{margin-top:2.25rem!important}div.extendify-assist .mt-12{margin-top:3rem!important}div.extendify-assist .mt-20{margin-top:5rem!important}div.extendify-assist .mt-px{margin-top:1px!important}div.extendify-assist .-mt-2{margin-top:-.5rem!important}div.extendify-assist .-mt-5{margin-top:-1.25rem!important}div.extendify-assist .mr-1{margin-right:.25rem!important}div.extendify-assist .mr-2{margin-right:.5rem!important}div.extendify-assist .mr-3{margin-right:.75rem!important}div.extendify-assist .mr-4{margin-right:1rem!important}div.extendify-assist .mr-6{margin-right:1.5rem!important}div.extendify-assist .-mr-1{margin-right:-.25rem!important}div.extendify-assist .-mr-1\.5{margin-right:-.375rem!important}div.extendify-assist .mb-0{margin-bottom:0!important}div.extendify-assist .mb-1{margin-bottom:.25rem!important}div.extendify-assist .mb-2{margin-bottom:.5rem!important}div.extendify-assist .mb-3{margin-bottom:.75rem!important}div.extendify-assist .mb-4{margin-bottom:1rem!important}div.extendify-assist .mb-5{margin-bottom:1.25rem!important}div.extendify-assist .mb-6{margin-bottom:1.5rem!important}div.extendify-assist .mb-8{margin-bottom:2rem!important}div.extendify-assist .mb-10{margin-bottom:2.5rem!important}div.extendify-assist .mb-16{margin-bottom:4rem!important}div.extendify-assist .ml-1{margin-left:.25rem!important}div.extendify-assist .ml-2{margin-left:.5rem!important}div.extendify-assist .ml-4{margin-left:1rem!important}div.extendify-assist .-ml-1{margin-left:-.25rem!important}div.extendify-assist .-ml-2{margin-left:-.5rem!important}div.extendify-assist .-ml-6{margin-left:-1.5rem!important}div.extendify-assist .-ml-px{margin-left:-1px!important}div.extendify-assist .-ml-1\.5{margin-left:-.375rem!important}div.extendify-assist .block{display:block!important}div.extendify-assist .inline-block{display:inline-block!important}div.extendify-assist .flex{display:flex!important}div.extendify-assist .inline-flex{display:inline-flex!important}div.extendify-assist .table{display:table!important}div.extendify-assist .grid{display:grid!important}div.extendify-assist .hidden{display:none!important}div.extendify-assist .h-0{height:0!important}div.extendify-assist .h-2{height:.5rem!important}div.extendify-assist .h-4{height:1rem!important}div.extendify-assist .h-5{height:1.25rem!important}div.extendify-assist .h-6{height:1.5rem!important}div.extendify-assist .h-8{height:2rem!important}div.extendify-assist .h-9{height:2.25rem!important}div.extendify-assist .h-10{height:2.5rem!important}div.extendify-assist .h-12{height:3rem!important}div.extendify-assist .h-14{height:3.5rem!important}div.extendify-assist .h-24{height:6rem!important}div.extendify-assist .h-32{height:8rem!important}div.extendify-assist .h-36{height:9rem!important}div.extendify-assist .h-48{height:12rem!important}div.extendify-assist .h-auto{height:auto!important}div.extendify-assist .h-full{height:100%!important}div.extendify-assist .h-screen{height:100vh!important}div.extendify-assist .max-h-96{max-height:24rem!important}div.extendify-assist .max-h-full{max-height:100%!important}div.extendify-assist .min-h-full{min-height:100%!important}div.extendify-assist .min-h-screen{min-height:100vh!important}div.extendify-assist .w-0{width:0!important}div.extendify-assist .w-4{width:1rem!important}div.extendify-assist .w-5{width:1.25rem!important}div.extendify-assist .w-6{width:1.5rem!important}div.extendify-assist .w-9{width:2.25rem!important}div.extendify-assist .w-12{width:3rem!important}div.extendify-assist .w-24{width:6rem!important}div.extendify-assist .w-28{width:7rem!important}div.extendify-assist .w-32{width:8rem!important}div.extendify-assist .w-40{width:10rem!important}div.extendify-assist .w-44{width:11rem!important}div.extendify-assist .w-72{width:18rem!important}div.extendify-assist .w-96{width:24rem!important}div.extendify-assist .w-auto{width:auto!important}div.extendify-assist .w-1\/5{width:20%!important}div.extendify-assist .w-4\/5{width:80%!important}div.extendify-assist .w-6\/12{width:50%!important}div.extendify-assist .w-7\/12{width:58.333333%!important}div.extendify-assist .w-full{width:100%!important}div.extendify-assist .w-screen{width:100vw!important}div.extendify-assist .min-w-0{min-width:0!important}div.extendify-assist .min-w-full{min-width:100%!important}div.extendify-assist .min-w-sm{min-width:7rem!important}div.extendify-assist .min-w-md{min-width:30rem!important}div.extendify-assist .max-w-md{max-width:28rem!important}div.extendify-assist .max-w-lg{max-width:32rem!important}div.extendify-assist .max-w-xl{max-width:36rem!important}div.extendify-assist .max-w-full{max-width:100%!important}div.extendify-assist .max-w-prose{max-width:65ch!important}div.extendify-assist .max-w-screen-md{max-width:782px!important}div.extendify-assist .max-w-screen-lg{max-width:1080px!important}div.extendify-assist .max-w-screen-xl{max-width:1280px!important}div.extendify-assist .max-w-screen-3xl{max-width:1600px!important}div.extendify-assist .max-w-screen-4xl{max-width:1920px!important}div.extendify-assist .max-w-onboarding-content{max-width:45.5rem!important}div.extendify-assist .max-w-onboarding-sm{max-width:26.5rem!important}div.extendify-assist .max-w-3\/4{max-width:75%!important}div.extendify-assist .flex-1{flex:1 1 0%!important}div.extendify-assist .flex-auto{flex:1 1 auto!important}div.extendify-assist .flex-none{flex:none!important}div.extendify-assist .flex-shrink-0{flex-shrink:0!important}div.extendify-assist .flex-grow-0{flex-grow:0!important}div.extendify-assist .flex-grow{flex-grow:1!important}div.extendify-assist .origin-top{transform-origin:top!important}div.extendify-assist .transform{--tw-translate-x:0!important;--tw-translate-y:0!important;--tw-rotate:0!important;--tw-skew-x:0!important;--tw-skew-y:0!important;--tw-scale-x:1!important;--tw-scale-y:1!important;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}div.extendify-assist .-translate-x-1{--tw-translate-x:-0.25rem!important}div.extendify-assist .translate-y-0{--tw-translate-y:0px!important}div.extendify-assist .translate-y-1{--tw-translate-y:0.25rem!important}div.extendify-assist .translate-y-4{--tw-translate-y:1rem!important}div.extendify-assist .translate-y-14{--tw-translate-y:3.5rem!important}div.extendify-assist .-translate-y-px{--tw-translate-y:-1px!important}div.extendify-assist .-translate-y-full{--tw-translate-y:-100%!important}div.extendify-assist .rotate-90{--tw-rotate:90deg!important}div.extendify-assist .cursor-default{cursor:default!important}div.extendify-assist .cursor-pointer{cursor:pointer!important}div.extendify-assist .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}div.extendify-assist .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify-assist .flex-col{flex-direction:column!important}div.extendify-assist .flex-wrap{flex-wrap:wrap!important}div.extendify-assist .items-start{align-items:flex-start!important}div.extendify-assist .items-end{align-items:flex-end!important}div.extendify-assist .items-center{align-items:center!important}div.extendify-assist .items-baseline{align-items:baseline!important}div.extendify-assist .justify-end{justify-content:flex-end!important}div.extendify-assist .justify-center{justify-content:center!important}div.extendify-assist .justify-between{justify-content:space-between!important}div.extendify-assist .justify-evenly{justify-content:space-evenly!important}div.extendify-assist .gap-0{gap:0!important}div.extendify-assist .gap-1{gap:.25rem!important}div.extendify-assist .gap-3{gap:.75rem!important}div.extendify-assist .gap-4{gap:1rem!important}div.extendify-assist .gap-6{gap:1.5rem!important}div.extendify-assist .gap-16{gap:4rem!important}div.extendify-assist .gap-x-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}div.extendify-assist .gap-x-3{-moz-column-gap:.75rem!important;column-gap:.75rem!important}div.extendify-assist .gap-x-4{-moz-column-gap:1rem!important;column-gap:1rem!important}div.extendify-assist .gap-y-12{row-gap:3rem!important}div.extendify-assist .space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(0px*var(--tw-space-x-reverse))!important}div.extendify-assist .space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.25rem*var(--tw-space-x-reverse))!important}div.extendify-assist .space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.5rem*var(--tw-space-x-reverse))!important}div.extendify-assist .space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.75rem*var(--tw-space-x-reverse))!important}div.extendify-assist .space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(1rem*var(--tw-space-x-reverse))!important}div.extendify-assist .space-x-0\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.125rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.125rem*var(--tw-space-x-reverse))!important}div.extendify-assist .space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-assist .space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1rem*var(--tw-space-y-reverse))!important;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-assist .space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-assist .divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0!important;border-bottom-width:calc(1px*var(--tw-divide-y-reverse))!important;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))!important}div.extendify-assist .self-start{align-self:flex-start!important}div.extendify-assist .overflow-hidden{overflow:hidden!important}div.extendify-assist .overflow-y-auto{overflow-y:auto!important}div.extendify-assist .overflow-x-hidden{overflow-x:hidden!important}div.extendify-assist .overflow-y-scroll{overflow-y:scroll!important}div.extendify-assist .whitespace-nowrap{white-space:nowrap!important}div.extendify-assist .rounded-none{border-radius:0!important}div.extendify-assist .rounded-sm{border-radius:.125rem!important}div.extendify-assist .rounded{border-radius:.25rem!important}div.extendify-assist .rounded-md{border-radius:.375rem!important}div.extendify-assist .rounded-lg{border-radius:.5rem!important}div.extendify-assist .rounded-full{border-radius:9999px!important}div.extendify-assist .rounded-tr-sm{border-top-right-radius:.125rem!important}div.extendify-assist .rounded-br-sm{border-bottom-right-radius:.125rem!important}div.extendify-assist .border-0{border-width:0!important}div.extendify-assist .border-2{border-width:2px!important}div.extendify-assist .border-8{border-width:8px!important}div.extendify-assist .border{border-width:1px!important}div.extendify-assist .border-t{border-top-width:1px!important}div.extendify-assist .border-r{border-right-width:1px!important}div.extendify-assist .border-b-0{border-bottom-width:0!important}div.extendify-assist .border-b-2{border-bottom-width:2px!important}div.extendify-assist .border-b{border-bottom-width:1px!important}div.extendify-assist .border-l-8{border-left-width:8px!important}div.extendify-assist .border-solid{border-style:solid!important}div.extendify-assist .border-dotted{border-style:dotted!important}div.extendify-assist .border-none{border-style:none!important}div.extendify-assist .border-transparent{border-color:transparent!important}div.extendify-assist .border-black{--tw-border-opacity:1!important;border-color:rgba(0,0,0,var(--tw-border-opacity))!important}div.extendify-assist .border-white{--tw-border-opacity:1!important;border-color:rgba(255,255,255,var(--tw-border-opacity))!important}div.extendify-assist .border-gray-100{--tw-border-opacity:1!important;border-color:rgba(240,240,240,var(--tw-border-opacity))!important}div.extendify-assist .border-gray-400{--tw-border-opacity:1!important;border-color:rgba(204,204,204,var(--tw-border-opacity))!important}div.extendify-assist .border-gray-700{--tw-border-opacity:1!important;border-color:rgba(117,117,117,var(--tw-border-opacity))!important}div.extendify-assist .border-gray-900{--tw-border-opacity:1!important;border-color:rgba(30,30,30,var(--tw-border-opacity))!important}div.extendify-assist .border-partner-primary-bg{border-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-assist .border-extendify-main{--tw-border-opacity:1!important;border-color:rgba(11,74,67,var(--tw-border-opacity))!important}div.extendify-assist .border-extendify-secondary{--tw-border-opacity:1!important;border-color:rgba(203,195,245,var(--tw-border-opacity))!important}div.extendify-assist .border-extendify-transparent-black-100{border-color:rgba(0,0,0,.07)!important}div.extendify-assist .border-wp-alert-red{--tw-border-opacity:1!important;border-color:rgba(204,24,24,var(--tw-border-opacity))!important}div.extendify-assist .focus\:border-transparent:focus{border-color:transparent!important}div.extendify-assist .border-opacity-10{--tw-border-opacity:0.1!important}div.extendify-assist .bg-transparent{background-color:transparent!important}div.extendify-assist .bg-black{--tw-bg-opacity:1!important;background-color:rgba(0,0,0,var(--tw-bg-opacity))!important}div.extendify-assist .bg-white{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}div.extendify-assist .bg-gray-50{--tw-bg-opacity:1!important;background-color:rgba(251,251,251,var(--tw-bg-opacity))!important}div.extendify-assist .bg-gray-100{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify-assist .bg-gray-200{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify-assist .bg-gray-700{--tw-bg-opacity:1!important;background-color:rgba(117,117,117,var(--tw-bg-opacity))!important}div.extendify-assist .bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify-assist .bg-partner-primary-bg{background-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-assist .bg-extendify-main{--tw-bg-opacity:1!important;background-color:rgba(11,74,67,var(--tw-bg-opacity))!important}div.extendify-assist .bg-extendify-alert{--tw-bg-opacity:1!important;background-color:rgba(132,16,16,var(--tw-bg-opacity))!important}div.extendify-assist .bg-extendify-secondary{--tw-bg-opacity:1!important;background-color:rgba(203,195,245,var(--tw-bg-opacity))!important}div.extendify-assist .bg-extendify-transparent-white{background-color:hsla(0,0%,99%,.88)!important}div.extendify-assist .bg-wp-theme-500{background-color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-assist .group:hover .group-hover\:bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify-assist .hover\:bg-gray-200:hover{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify-assist .hover\:bg-gray-300:hover{--tw-bg-opacity:1!important;background-color:rgba(221,221,221,var(--tw-bg-opacity))!important}div.extendify-assist .hover\:bg-extendify-main-dark:hover{--tw-bg-opacity:1!important;background-color:rgba(5,49,44,var(--tw-bg-opacity))!important}div.extendify-assist .hover\:bg-wp-theme-600:hover{background-color:var(--wp-admin-theme-color-darker-10,#006ba1)!important}div.extendify-assist .focus\:bg-white:focus{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}div.extendify-assist .focus\:bg-gray-200:focus{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify-assist .active\:bg-gray-900:active{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify-assist .disabled\:bg-gray-700:disabled{--tw-bg-opacity:1!important;background-color:rgba(117,117,117,var(--tw-bg-opacity))!important}div.extendify-assist .bg-opacity-40{--tw-bg-opacity:0.4!important}div.extendify-assist .bg-gradient-to-l{background-image:linear-gradient(to left,var(--tw-gradient-stops))!important}div.extendify-assist .from-white{--tw-gradient-from:#fff!important;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,hsla(0,0%,100%,0))!important}div.extendify-assist .bg-cover{background-size:cover!important}div.extendify-assist .bg-clip-padding{background-clip:padding-box!important}div.extendify-assist .fill-current{fill:currentColor!important}div.extendify-assist .stroke-current{stroke:currentColor!important}div.extendify-assist .p-0{padding:0!important}div.extendify-assist .p-1{padding:.25rem!important}div.extendify-assist .p-2{padding:.5rem!important}div.extendify-assist .p-3{padding:.75rem!important}div.extendify-assist .p-4{padding:1rem!important}div.extendify-assist .p-6{padding:1.5rem!important}div.extendify-assist .p-8{padding:2rem!important}div.extendify-assist .p-10{padding:2.5rem!important}div.extendify-assist .p-12{padding:3rem!important}div.extendify-assist .p-0\.5{padding:.125rem!important}div.extendify-assist .p-1\.5{padding:.375rem!important}div.extendify-assist .p-3\.5{padding:.875rem!important}div.extendify-assist .px-0{padding-left:0!important;padding-right:0!important}div.extendify-assist .px-1{padding-left:.25rem!important;padding-right:.25rem!important}div.extendify-assist .px-2{padding-left:.5rem!important;padding-right:.5rem!important}div.extendify-assist .px-3{padding-left:.75rem!important;padding-right:.75rem!important}div.extendify-assist .px-4{padding-left:1rem!important;padding-right:1rem!important}div.extendify-assist .px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}div.extendify-assist .px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}div.extendify-assist .px-10{padding-left:2.5rem!important;padding-right:2.5rem!important}div.extendify-assist .px-0\.5{padding-left:.125rem!important;padding-right:.125rem!important}div.extendify-assist .px-2\.5{padding-left:.625rem!important;padding-right:.625rem!important}div.extendify-assist .py-0{padding-bottom:0!important;padding-top:0!important}div.extendify-assist .py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}div.extendify-assist .py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}div.extendify-assist .py-3{padding-bottom:.75rem!important;padding-top:.75rem!important}div.extendify-assist .py-4{padding-bottom:1rem!important;padding-top:1rem!important}div.extendify-assist .py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}div.extendify-assist .py-12{padding-bottom:3rem!important;padding-top:3rem!important}div.extendify-assist .py-2\.5{padding-bottom:.625rem!important;padding-top:.625rem!important}div.extendify-assist .pt-0{padding-top:0!important}div.extendify-assist .pt-1{padding-top:.25rem!important}div.extendify-assist .pt-2{padding-top:.5rem!important}div.extendify-assist .pt-3{padding-top:.75rem!important}div.extendify-assist .pt-4{padding-top:1rem!important}div.extendify-assist .pt-6{padding-top:1.5rem!important}div.extendify-assist .pt-9{padding-top:2.25rem!important}div.extendify-assist .pt-10{padding-top:2.5rem!important}div.extendify-assist .pt-12{padding-top:3rem!important}div.extendify-assist .pt-px{padding-top:1px!important}div.extendify-assist .pt-0\.5{padding-top:.125rem!important}div.extendify-assist .pr-3{padding-right:.75rem!important}div.extendify-assist .pr-4{padding-right:1rem!important}div.extendify-assist .pr-8{padding-right:2rem!important}div.extendify-assist .pb-0{padding-bottom:0!important}div.extendify-assist .pb-1{padding-bottom:.25rem!important}div.extendify-assist .pb-2{padding-bottom:.5rem!important}div.extendify-assist .pb-3{padding-bottom:.75rem!important}div.extendify-assist .pb-4{padding-bottom:1rem!important}div.extendify-assist .pb-8{padding-bottom:2rem!important}div.extendify-assist .pb-20{padding-bottom:5rem!important}div.extendify-assist .pb-36{padding-bottom:9rem!important}div.extendify-assist .pb-40{padding-bottom:10rem!important}div.extendify-assist .pb-1\.5{padding-bottom:.375rem!important}div.extendify-assist .pl-0{padding-left:0!important}div.extendify-assist .pl-1{padding-left:.25rem!important}div.extendify-assist .pl-2{padding-left:.5rem!important}div.extendify-assist .pl-4{padding-left:1rem!important}div.extendify-assist .pl-5{padding-left:1.25rem!important}div.extendify-assist .pl-6{padding-left:1.5rem!important}div.extendify-assist .text-left{text-align:left!important}div.extendify-assist .text-center{text-align:center!important}div.extendify-assist .text-right{text-align:right!important}div.extendify-assist .align-middle{vertical-align:middle!important}div.extendify-assist .text-xs{font-size:.75rem!important;line-height:1rem!important}div.extendify-assist .text-sm{font-size:.875rem!important;line-height:1.25rem!important}div.extendify-assist .text-base{font-size:1rem!important;line-height:1.5rem!important}div.extendify-assist .text-lg{font-size:1.125rem!important;line-height:1.75rem!important}div.extendify-assist .text-xl{font-size:1.25rem!important;line-height:1.75rem!important}div.extendify-assist .text-3xl{font-size:2rem!important;line-height:2.5rem!important}div.extendify-assist .text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}div.extendify-assist .font-light{font-weight:300!important}div.extendify-assist .font-normal{font-weight:400!important}div.extendify-assist .font-medium{font-weight:500!important}div.extendify-assist .font-semibold{font-weight:600!important}div.extendify-assist .font-bold{font-weight:700!important}div.extendify-assist .uppercase{text-transform:uppercase!important}div.extendify-assist .capitalize{text-transform:capitalize!important}div.extendify-assist .italic{font-style:italic!important}div.extendify-assist .leading-none{line-height:1!important}div.extendify-assist .leading-loose{line-height:2!important}div.extendify-assist .tracking-tight{letter-spacing:-.025em!important}div.extendify-assist .tracking-wide{letter-spacing:.025em!important}div.extendify-assist .text-black{--tw-text-opacity:1!important;color:rgba(0,0,0,var(--tw-text-opacity))!important}div.extendify-assist .text-white{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-assist .text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify-assist .text-gray-500{--tw-text-opacity:1!important;color:rgba(204,204,204,var(--tw-text-opacity))!important}div.extendify-assist .text-gray-700{--tw-text-opacity:1!important;color:rgba(117,117,117,var(--tw-text-opacity))!important}div.extendify-assist .text-gray-900{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify-assist .text-partner-primary-text{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify-assist .text-partner-primary-bg{color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-assist .text-extendify-main{--tw-text-opacity:1!important;color:rgba(11,74,67,var(--tw-text-opacity))!important}div.extendify-assist .text-extendify-main-dark{--tw-text-opacity:1!important;color:rgba(5,49,44,var(--tw-text-opacity))!important}div.extendify-assist .text-extendify-gray{--tw-text-opacity:1!important;color:rgba(95,95,95,var(--tw-text-opacity))!important}div.extendify-assist .text-extendify-black{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify-assist .text-wp-theme-500{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-assist .text-wp-alert-red{--tw-text-opacity:1!important;color:rgba(204,24,24,var(--tw-text-opacity))!important}div.extendify-assist .group:hover .group-hover\:text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify-assist .focus-within\:text-partner-primary-bg:focus-within{color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-assist .hover\:text-current:hover{color:currentColor!important}div.extendify-assist .hover\:text-white:hover{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-assist .hover\:text-partner-primary-bg:hover{color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-assist .hover\:text-wp-theme-500:hover{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-assist .focus\:text-white:focus{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-assist .focus\:text-blue-500:focus{--tw-text-opacity:1!important;color:rgba(59,130,246,var(--tw-text-opacity))!important}div.extendify-assist .focus\:text-partner-primary-bg:focus{color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-assist .underline{text-decoration:underline!important}div.extendify-assist .line-through{text-decoration:line-through!important}div.extendify-assist .hover\:no-underline:hover,div.extendify-assist .no-underline{text-decoration:none!important}div.extendify-assist .opacity-0{opacity:0!important}div.extendify-assist .opacity-30{opacity:.3!important}div.extendify-assist .opacity-50{opacity:.5!important}div.extendify-assist .opacity-60{opacity:.6!important}div.extendify-assist .opacity-70{opacity:.7!important}div.extendify-assist .opacity-75{opacity:.75!important}div.extendify-assist .focus\:opacity-100:focus,div.extendify-assist .group:focus .group-focus\:opacity-100,div.extendify-assist .group:hover .group-hover\:opacity-100,div.extendify-assist .hover\:opacity-100:hover,div.extendify-assist .opacity-100{opacity:1!important}div.extendify-assist .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05)!important}div.extendify-assist .shadow-md,div.extendify-assist .shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify-assist .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06)!important}div.extendify-assist .shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25)!important}div.extendify-assist .shadow-2xl,div.extendify-assist .shadow-none{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify-assist .shadow-none{--tw-shadow:0 0 #0000!important}div.extendify-assist .shadow-modal{--tw-shadow:0 0 0 1px rgba(0,0,0,.1),0 3px 15px -3px rgba(0,0,0,.035),0 0 1px rgba(0,0,0,.05)!important}div.extendify-assist .focus\:shadow-none:focus,div.extendify-assist .shadow-modal{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify-assist .focus\:shadow-none:focus{--tw-shadow:0 0 #0000!important}div.extendify-assist .focus\:outline-none:focus,div.extendify-assist .outline-none{outline:2px solid transparent!important;outline-offset:2px!important}div.extendify-assist .focus\:ring-wp:focus,div.extendify-assist .ring-wp{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}div.extendify-assist .ring-partner-primary-bg{--tw-ring-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-assist .ring-offset-0{--tw-ring-offset-width:0px!important}div.extendify-assist .ring-offset-2{--tw-ring-offset-width:2px!important}div.extendify-assist .ring-offset-white{--tw-ring-offset-color:#fff!important}div.extendify-assist .filter{--tw-blur:var(--tw-empty, )!important;--tw-brightness:var(--tw-empty, )!important;--tw-contrast:var(--tw-empty, )!important;--tw-grayscale:var(--tw-empty, )!important;--tw-hue-rotate:var(--tw-empty, )!important;--tw-invert:var(--tw-empty, )!important;--tw-saturate:var(--tw-empty, )!important;--tw-sepia:var(--tw-empty, )!important;--tw-drop-shadow:var(--tw-empty, )!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}div.extendify-assist .blur{--tw-blur:blur(8px)!important}div.extendify-assist .invert{--tw-invert:invert(100%)!important}div.extendify-assist .backdrop-filter{--tw-backdrop-blur:var(--tw-empty, )!important;--tw-backdrop-brightness:var(--tw-empty, )!important;--tw-backdrop-contrast:var(--tw-empty, )!important;--tw-backdrop-grayscale:var(--tw-empty, )!important;--tw-backdrop-hue-rotate:var(--tw-empty, )!important;--tw-backdrop-invert:var(--tw-empty, )!important;--tw-backdrop-opacity:var(--tw-empty, )!important;--tw-backdrop-saturate:var(--tw-empty, )!important;--tw-backdrop-sepia:var(--tw-empty, )!important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}div.extendify-assist .backdrop-blur-xl{--tw-backdrop-blur:blur(24px)!important}div.extendify-assist .backdrop-saturate-200{--tw-backdrop-saturate:saturate(2)!important}div.extendify-assist .transition-all{transition-duration:.15s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify-assist .transition{transition-duration:.15s!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify-assist .transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify-assist .delay-200{transition-delay:.2s!important}div.extendify-assist .delay-300{transition-delay:.3s!important}div.extendify-assist .duration-100{transition-duration:.1s!important}div.extendify-assist .duration-200{transition-duration:.2s!important}div.extendify-assist .duration-300{transition-duration:.3s!important}div.extendify-assist .duration-500{transition-duration:.5s!important}div.extendify-assist .duration-1000{transition-duration:1s!important}div.extendify-assist .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}div.extendify-assist .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.extendify-assist{--tw-ring-inset:var(--tw-empty, )!important;--tw-ring-offset-width:0px!important;--tw-ring-offset-color:transparent!important;--tw-ring-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}.extendify-assist *,.extendify-assist :after,.extendify-assist :before{border:0 solid #e5e7eb!important;box-sizing:border-box!important}.hide-checkmark:before{content:none!important}.extendify-assist-upload-logo .components-responsive-wrapper>span{display:block!important;padding-bottom:192px!important}body[class*=_page_extendify-assist]{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}body[class*=_page_extendify-assist] #wpcontent{padding:0!important}@media (min-width:480px){div.extendify-assist .xs\:inline{display:inline!important}div.extendify-assist .xs\:h-9{height:2.25rem!important}div.extendify-assist .xs\:pr-3{padding-right:.75rem!important}div.extendify-assist .xs\:pl-2{padding-left:.5rem!important}}@media (min-width:600px){div.extendify-assist .sm\:mx-0{margin-left:0!important;margin-right:0!important}div.extendify-assist .sm\:mt-0{margin-top:0!important}div.extendify-assist .sm\:mb-8{margin-bottom:2rem!important}div.extendify-assist .sm\:ml-2{margin-left:.5rem!important}div.extendify-assist .sm\:block{display:block!important}div.extendify-assist .sm\:flex{display:flex!important}div.extendify-assist .sm\:h-auto{height:auto!important}div.extendify-assist .sm\:w-72{width:18rem!important}div.extendify-assist .sm\:w-auto{width:auto!important}div.extendify-assist .sm\:translate-y-5{--tw-translate-y:1.25rem!important}div.extendify-assist .sm\:space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-assist .sm\:overflow-hidden{overflow:hidden!important}div.extendify-assist .sm\:p-0{padding:0!important}div.extendify-assist .sm\:py-0{padding-bottom:0!important;padding-top:0!important}div.extendify-assist .sm\:pt-0{padding-top:0!important}div.extendify-assist .sm\:pt-5{padding-top:1.25rem!important}}@media (min-width:782px){div.extendify-assist .md\:m-0{margin:0!important}div.extendify-assist .md\:-ml-8{margin-left:-2rem!important}div.extendify-assist .md\:block{display:block!important}div.extendify-assist .md\:flex{display:flex!important}div.extendify-assist .md\:hidden{display:none!important}div.extendify-assist .md\:h-screen{height:100vh!important}div.extendify-assist .md\:min-h-48{min-height:12rem!important}div.extendify-assist .md\:w-1\/2{width:50%!important}div.extendify-assist .md\:w-full{width:100%!important}div.extendify-assist .md\:w-40vw{width:40vw!important}div.extendify-assist .md\:max-w-sm{max-width:24rem!important}div.extendify-assist .md\:max-w-md{max-width:28rem!important}div.extendify-assist .md\:max-w-2xl{max-width:42rem!important}div.extendify-assist .md\:max-w-full{max-width:100%!important}div.extendify-assist .md\:flex-row{flex-direction:row!important}div.extendify-assist .md\:gap-8{gap:2rem!important}div.extendify-assist .md\:space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(2rem*var(--tw-space-y-reverse))!important;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-assist .md\:overflow-hidden{overflow:hidden!important}div.extendify-assist .md\:overflow-y-scroll{overflow-y:scroll!important}div.extendify-assist .md\:focus\:bg-transparent:focus{background-color:transparent!important}div.extendify-assist .md\:p-6{padding:1.5rem!important}div.extendify-assist .md\:p-8{padding:2rem!important}div.extendify-assist .md\:px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}div.extendify-assist .md\:px-8{padding-left:2rem!important;padding-right:2rem!important}div.extendify-assist .md\:pl-8{padding-left:2rem!important}div.extendify-assist .md\:text-black{--tw-text-opacity:1!important;color:rgba(0,0,0,var(--tw-text-opacity))!important}}@media (min-width:1080px){div.extendify-assist .lg\:absolute{position:absolute!important}div.extendify-assist .lg\:-mr-1{margin-right:-.25rem!important}div.extendify-assist .lg\:block{display:block!important}div.extendify-assist .lg\:flex{display:flex!important}div.extendify-assist .lg\:w-1\/2{width:50%!important}div.extendify-assist .lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify-assist .lg\:flex-row{flex-direction:row!important}div.extendify-assist .lg\:justify-start{justify-content:flex-start!important}div.extendify-assist .lg\:overflow-hidden{overflow:hidden!important}div.extendify-assist .lg\:p-12{padding:3rem!important}div.extendify-assist .lg\:p-16{padding:4rem!important}div.extendify-assist .lg\:p-24{padding:6rem!important}div.extendify-assist .lg\:px-12{padding-left:3rem!important;padding-right:3rem!important}div.extendify-assist .lg\:pr-52{padding-right:13rem!important}}@media (min-width:1280px){div.extendify-assist .xl\:mb-12{margin-bottom:3rem!important}div.extendify-assist .xl\:p-32{padding:8rem!important}div.extendify-assist .xl\:px-0{padding-left:0!important;padding-right:0!important}}
|
public/build/extendify-assist.js
CHANGED
@@ -1 +1,2 @@
|
|
1 |
-
!function(){var e={184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},230:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},250:function(e,t,n){"use strict";var r=n(196),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return s((function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})}),[e,n,t]),a((function(){return u(o)&&c({inst:o}),e((function(){u(o)&&c({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},139:function(e,t,n){"use strict";var r=n(196),o=n(688),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=u((function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,s=n)}var a,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var p=a(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},688:function(e,t,n){"use strict";e.exports=n(250)},798:function(e,t,n){"use strict";e.exports=n(139)},196:function(e){"use strict";e.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element,t=window.wp.components,r=window.wp.i18n,o=function(t){let{icon:n,size:r=24,...o}=t;return(0,e.cloneElement)(n,{width:r,height:r,...o})},i=window.wp.primitives,a=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),s=n(196);function l(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,l),r}var u,c=((u=c||{})[u.None=0]="None",u[u.RenderStrategy=1]="RenderStrategy",u[u.Static=2]="Static",u),d=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(d||{});function f({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let s=m(t,e);if(i)return p(s,n,r,a);let u=null!=o?o:0;if(2&u){let{static:e=!1,...t}=s;if(e)return p(t,n,r,a)}if(1&u){let{unmount:e=!0,...t}=s;return l(e?0:1,{0(){return null},1(){return p({...t,hidden:!0,style:{display:"none"}},n,r,a)}})}return p(s,n,r,a)}function p(e,t={},n,r){let{as:o=n,children:i,refName:a="ref",...l}=g(e,["unmount","static"]),u=void 0!==e.ref?{[a]:e.ref}:{},c="function"==typeof i?i(t):i;l.className&&"function"==typeof l.className&&(l.className=l.className(t));let d={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(d["data-headlessui-state"]=n.join(" "))}if(o===s.Fragment&&Object.keys(v(l)).length>0){if(!(0,s.isValidElement)(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return(0,s.cloneElement)(c,Object.assign({},m(c.props,v(g(l,["ref"]))),d,u,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(c.ref,u.ref)))}return(0,s.createElement)(o,Object.assign({},g(l,["ref"]),o!==s.Fragment&&u,o!==s.Fragment&&d),c)}function m(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function h(e){var t;return Object.assign((0,s.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function v(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function g(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}const y="undefined"==typeof window||"undefined"==typeof document;let b=y?s.useEffect:s.useLayoutEffect;function w(e){let t=(0,s.useRef)(e);return b((()=>{t.current=e}),[e]),t}let E=function(e){let t=w(e);return s.useCallback(((...e)=>t.current(...e)),[t])},x=Symbol();function C(e,t=!0){return Object.assign(e,{[x]:t})}function S(...e){let t=(0,s.useRef)(e);(0,s.useEffect)((()=>{t.current=e}),[e]);let n=E((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[x])))?void 0:n}var T=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(T||{});let L={serverHandoffComplete:!1};function A(){let[e,t]=(0,s.useState)(L.serverHandoffComplete);return(0,s.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,s.useEffect)((()=>{!1===L.serverHandoffComplete&&(L.serverHandoffComplete=!0)}),[]),e}var P;let O=0;function R(){return++O}let V=null!=(P=s.useId)?P:function(){let e=A(),[t,n]=s.useState(e?R:null);return b((()=>{null===t&&n(R())}),[t]),null!=t?""+t:void 0};var k=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(k||{});let M=h((function(e,t){let{features:n=1,...r}=e;return f({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})}));function N(e){return y?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let D=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var j=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(j||{}),F=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(F||{}),_=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(_||{});var H=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(H||{});function B(e){null==e||e.focus({preventScroll:!0})}let I=["textarea","input"].join(",");function U(e,t,n=!0,r=null){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,i=Array.isArray(e)?n?function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(D))}(e);r=null!=r?r:o.activeElement;let a,s=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,i.indexOf(r))-1;if(4&t)return Math.max(0,i.indexOf(r))+1;if(8&t)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},c=0,d=i.length;do{if(c>=d||c+d<=0)return 0;let e=l+c;if(16&t)e=(e+d)%d;else{if(e<0)return 3;if(e>=d)return 1}a=i[e],null==a||a.focus(u),c+=s}while(a!==o.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,I))&&n}(a)&&a.select(),a.hasAttribute("tabindex")||a.setAttribute("tabindex","0"),2}var z=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(z||{});function Z(){let e=(0,s.useRef)(!1);return b((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function W(...e){return(0,s.useMemo)((()=>N(...e)),[...e])}function $(e,t,n,r){let o=w(n);(0,s.useEffect)((()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}),[e,t,r])}function q(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Y(e,t){let n=(0,s.useRef)([]),r=E(e);(0,s.useEffect)((()=>{let e=[...n.current];for(let[o,i]of t.entries())if(n.current[o]!==i){let o=r(t,e);return n.current=t,o}}),[r,...t])}var X=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(X||{});let G=Object.assign(h((function(e,t){let n=(0,s.useRef)(null),r=S(n,t),{initialFocus:o,containers:i,features:a=30,...u}=e;A()||(a=1);let c=W(n);!function({ownerDocument:e},t){let n=(0,s.useRef)(null);$(null==e?void 0:e.defaultView,"focusout",(e=>{!t||n.current||(n.current=e.target)}),!0),Y((()=>{t||((null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&B(n.current),n.current=null)}),[t]);let r=(0,s.useRef)(!1);(0,s.useEffect)((()=>(r.current=!1,()=>{r.current=!0,q((()=>{!r.current||(B(n.current),n.current=null)}))})),[])}({ownerDocument:c},Boolean(16&a));let d=function({ownerDocument:e,container:t,initialFocus:n},r){let o=(0,s.useRef)(null),i=Z();return Y((()=>{if(!r)return;let a=t.current;!a||q((()=>{if(!i.current)return;let t=null==e?void 0:e.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===t)return void(o.current=t)}else if(a.contains(t))return void(o.current=t);null!=n&&n.current?B(n.current):U(a,j.First)===F.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=null==e?void 0:e.activeElement}))}),[r]),o}({ownerDocument:c,container:n,initialFocus:o},Boolean(2&a));!function({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=Z();$(null==e?void 0:e.defaultView,"focus",(e=>{if(!o||!i.current)return;let a=new Set(null==n?void 0:n.current);a.add(t);let s=r.current;if(!s)return;let l=e.target;l&&l instanceof HTMLElement?function(e,t){var n;for(let r of e)if(null!=(n=r.current)&&n.contains(t))return!0;return!1}(a,l)?(r.current=l,B(l)):(e.preventDefault(),e.stopPropagation(),B(s)):B(r.current)}),!0)}({ownerDocument:c,container:n,containers:i,previousActiveElement:d},Boolean(8&a));let p=function(){let e=(0,s.useRef)(0);return function(e,t,n){let r=w(t);(0,s.useEffect)((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),m=E((()=>{let e=n.current;!e||l(p.current,{[z.Forwards]:()=>U(e,j.First),[z.Backwards]:()=>U(e,j.Last)})})),h={ref:r};return s.createElement(s.Fragment,null,Boolean(4&a)&&s.createElement(M,{as:"button",type:"button",onFocus:m,features:k.Focusable}),f({ourProps:h,theirProps:u,defaultTag:"div",name:"FocusTrap"}),Boolean(4&a)&&s.createElement(M,{as:"button",type:"button",onFocus:m,features:k.Focusable}))})),{features:X}),J=new Set,K=new Map;function Q(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function ee(e){let t=K.get(e);!t||(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}var te=window.ReactDOM;let ne=(0,s.createContext)(!1);function re(){return(0,s.useContext)(ne)}function oe(e){return s.createElement(ne.Provider,{value:e.force},e.children)}let ie=s.Fragment,ae=h((function(e,t){let n=e,r=(0,s.useRef)(null),o=S(C((e=>{r.current=e})),t),i=W(r),a=function(e){let t=re(),n=(0,s.useContext)(le),r=W(e),[o,i]=(0,s.useState)((()=>{if(!t&&null!==n||y)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)}));return(0,s.useEffect)((()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))}),[o,r]),(0,s.useEffect)((()=>{t||null!==n&&i(n.current)}),[n,i,t]),o}(r),[l]=(0,s.useState)((()=>{var e;return y?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null})),u=A(),c=(0,s.useRef)(!1);return b((()=>{if(c.current=!1,a&&l)return a.contains(l)||(l.setAttribute("data-headlessui-portal",""),a.appendChild(l)),()=>{c.current=!0,q((()=>{var e;!c.current||!a||!l||(a.removeChild(l),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))}))}}),[a,l]),u&&a&&l?(0,te.createPortal)(f({ourProps:{ref:o},theirProps:n,defaultTag:ie,name:"Portal"}),l):null})),se=s.Fragment,le=(0,s.createContext)(null),ue=h((function(e,t){let{target:n,...r}=e,o={ref:S(t)};return s.createElement(le.Provider,{value:n},f({ourProps:o,theirProps:r,defaultTag:se,name:"Popover.Group"}))})),ce=Object.assign(ae,{Group:ue}),de=(0,s.createContext)(null);function fe(){let e=(0,s.useContext)(de);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,fe),e}return e}let pe=h((function(e,t){let n=fe(),r=`headlessui-description-${V()}`,o=S(t);b((()=>n.register(r)),[r,n.register]);let i=e;return f({ourProps:{ref:o,...n.props,id:r},theirProps:i,slot:n.slot||{},defaultTag:"p",name:n.name||"Description"})})),me=(0,s.createContext)(null);me.displayName="OpenClosedContext";var he=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(he||{});function ve(){return(0,s.useContext)(me)}function ge({value:e,children:t}){return s.createElement(me.Provider,{value:e},t)}let ye=(0,s.createContext)((()=>{}));ye.displayName="StackContext";var be=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(be||{});function we({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=(0,s.useContext)(ye),a=E(((...e)=>{null==t||t(...e),i(...e)}));return b((()=>{let e=void 0===o||!0===o;return e&&a(0,n,r),()=>{e&&a(1,n,r)}}),[a,n,r,o]),s.createElement(ye.Provider,{value:a},e)}function Ee(e,t,n){let r=w(t);(0,s.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function xe(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener(e,t,r,o){return e.addEventListener(t,r,o),n.add((()=>e.removeEventListener(t,r,o)))},requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame(...e){return n.requestAnimationFrame((()=>n.requestAnimationFrame(...e)))},setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return q((()=>{t.current&&e[0]()})),n.add((()=>{t.current=!1}))},add(t){return e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}},dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}var Ce=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ce||{}),Se=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Se||{});let Te={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Le=(0,s.createContext)(null);function Ae(e){let t=(0,s.useContext)(Le);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ae),t}return t}function Pe(e,t){return l(t.type,Te,e,t)}Le.displayName="DialogContext";let Oe=c.RenderStrategy|c.Static,Re=h((function(e,t){let{open:n,onClose:r,initialFocus:o,__demoMode:i=!1,...a}=e,[u,c]=(0,s.useState)(0),d=ve();void 0===n&&null!==d&&(n=l(d,{[he.Open]:!0,[he.Closed]:!1}));let p=(0,s.useRef)(new Set),m=(0,s.useRef)(null),h=S(m,t),v=(0,s.useRef)(null),g=W(m),y=e.hasOwnProperty("open")||null!==d,w=e.hasOwnProperty("onClose");if(!y&&!w)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!y)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!w)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof n)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${n}`);if("function"!=typeof r)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${r}`);let x=n?0:1,[C,L]=(0,s.useReducer)(Pe,{titleId:null,descriptionId:null,panelRef:(0,s.createRef)()}),P=E((()=>r(!1))),O=E((e=>L({type:0,id:e}))),R=!!A()&&!i&&0===x,j=u>1,F=null!==(0,s.useContext)(Le),_=j?"parent":"leaf";(function(e,t=!0){b((()=>{if(!t||!e.current)return;let n=e.current,r=N(n);if(r){J.add(n);for(let e of K.keys())e.contains(n)&&(ee(e),K.delete(e));return r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement){for(let t of J)if(e.contains(t))return;1===J.size&&(K.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),Q(e))}})),()=>{if(J.delete(n),J.size>0)r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement&&!K.has(e)){for(let t of J)if(e.contains(t))return;K.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),Q(e)}}));else for(let e of K.keys())ee(e),K.delete(e)}}}),[t])})(m,!!j&&R),function(e,t,n=!0){let r=(0,s.useRef)(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),a=o(n);if(null!==a&&a.ownerDocument.documentElement.contains(a)){for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(a))return}return!function(e,t=0){var n;return e!==(null==(n=N(e))?void 0:n.body)&&l(t,{0(){return e.matches(D)},1(){let t=e;for(;null!==t;){if(t.matches(D))return!0;t=t.parentElement}return!1}})}(a,H.Loose)&&-1!==a.tabIndex&&n.preventDefault(),t(n,a)}}(0,s.useEffect)((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let i=(0,s.useRef)(null);Ee("mousedown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Ee("click",(e=>{!i.current||(o(e,(()=>i.current)),i.current=null)}),!0),Ee("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}((()=>{var e,t;return[...Array.from(null!=(e=null==g?void 0:g.querySelectorAll("body > *, [data-headlessui-portal]"))?e:[]).filter((e=>!(!(e instanceof HTMLElement)||e.contains(v.current)||C.panelRef.current&&e.contains(C.panelRef.current)))),null!=(t=C.panelRef.current)?t:m.current]}),P,R&&!j),$(null==g?void 0:g.defaultView,"keydown",(e=>{e.defaultPrevented||e.key===T.Escape&&0===x&&(j||(e.preventDefault(),e.stopPropagation(),P()))})),function(e,t){(0,s.useEffect)((()=>{var n;if(!t||!e)return;let r=xe();function o(e,t,n){let o=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),r.add((()=>{Object.assign(e.style,{[t]:o})}))}let i=e.documentElement,a=(null!=(n=e.defaultView)?n:window).innerWidth-i.clientWidth;if(o(i,"overflow","hidden"),a>0&&o(i,"paddingRight",a-(i.clientWidth-i.offsetWidth)+"px"),/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0){let e=window.pageYOffset;o(i,"position","fixed"),o(i,"marginTop",`-${e}px`),o(i,"width","100%"),r.add((()=>window.scrollTo(0,e)))}return r.dispose}),[e,t])}(g,0===x&&!F),(0,s.useEffect)((()=>{if(0!==x||!m.current)return;let e=new IntersectionObserver((e=>{for(let t of e)0===t.boundingClientRect.x&&0===t.boundingClientRect.y&&0===t.boundingClientRect.width&&0===t.boundingClientRect.height&&P()}));return e.observe(m.current),()=>e.disconnect()}),[x,m,P]);let[B,I]=function(){let[e,t]=(0,s.useState)([]);return[e.length>0?e.join(" "):void 0,(0,s.useMemo)((()=>function(e){let n=E((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=(0,s.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return s.createElement(de.Provider,{value:r},e.children)}),[t])]}(),U=`headlessui-dialog-${V()}`,z=(0,s.useMemo)((()=>[{dialogState:x,close:P,setTitleId:O},C]),[x,C,P,O]),Z=(0,s.useMemo)((()=>({open:0===x})),[x]),q={ref:h,id:U,role:"dialog","aria-modal":0===x||void 0,"aria-labelledby":C.titleId,"aria-describedby":B};return s.createElement(we,{type:"Dialog",enabled:0===x,element:m,onUpdate:E(((e,t,n)=>{"Dialog"===t&&l(e,{[be.Add](){p.current.add(n),c((e=>e+1))},[be.Remove](){p.current.add(n),c((e=>e-1))}})}))},s.createElement(oe,{force:!0},s.createElement(ce,null,s.createElement(Le.Provider,{value:z},s.createElement(ce.Group,{target:m},s.createElement(oe,{force:!1},s.createElement(I,{slot:Z,name:"Dialog.Description"},s.createElement(G,{initialFocus:o,containers:p,features:R?l(_,{parent:G.features.RestoreFocus,leaf:G.features.All&~G.features.FocusLock}):G.features.None},f({ourProps:q,theirProps:a,slot:Z,defaultTag:"div",features:Oe,visible:0===x,name:"Dialog"})))))))),s.createElement(M,{features:k.Hidden,ref:v}))})),Ve=h((function(e,t){let[{dialogState:n,close:r}]=Ae("Dialog.Overlay"),o=S(t),i=`headlessui-dialog-overlay-${V()}`,a=E((e=>{if(e.target===e.currentTarget){if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),r()}}));return f({ourProps:{ref:o,id:i,"aria-hidden":!0,onClick:a},theirProps:e,slot:(0,s.useMemo)((()=>({open:0===n})),[n]),defaultTag:"div",name:"Dialog.Overlay"})})),ke=h((function(e,t){let[{dialogState:n},r]=Ae("Dialog.Backdrop"),o=S(t),i=`headlessui-dialog-backdrop-${V()}`;(0,s.useEffect)((()=>{if(null===r.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[r.panelRef]);let a=(0,s.useMemo)((()=>({open:0===n})),[n]);return s.createElement(oe,{force:!0},s.createElement(ce,null,f({ourProps:{ref:o,id:i,"aria-hidden":!0},theirProps:e,slot:a,defaultTag:"div",name:"Dialog.Backdrop"})))})),Me=h((function(e,t){let[{dialogState:n},r]=Ae("Dialog.Panel"),o=S(t,r.panelRef),i=`headlessui-dialog-panel-${V()}`,a=(0,s.useMemo)((()=>({open:0===n})),[n]);return f({ourProps:{ref:o,id:i,onClick:E((e=>{e.stopPropagation()}))},theirProps:e,slot:a,defaultTag:"div",name:"Dialog.Panel"})})),Ne=h((function(e,t){let[{dialogState:n,setTitleId:r}]=Ae("Dialog.Title"),o=`headlessui-dialog-title-${V()}`,i=S(t);(0,s.useEffect)((()=>(r(o),()=>r(null))),[o,r]);let a=(0,s.useMemo)((()=>({open:0===n})),[n]);return f({ourProps:{ref:i,id:o},theirProps:e,slot:a,defaultTag:"h2",name:"Dialog.Title"})})),De=Object.assign(Re,{Backdrop:ke,Panel:Me,Overlay:Ve,Title:Ne,Description:pe});const je=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,i),i};var Fe=n(798);const{useSyncExternalStoreWithSelector:_e}=Fe,He=e=>{const t="function"==typeof e?(e=>e?je(e):je)(e):e,n=(e,n)=>function(e,t=e.getState,n){const r=_e(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,s.useDebugValue)(r),r}(t,e,n);return Object.assign(n,t),n},Be=e=>e?He(e):He,Ie=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:a,...s}=t;let l;try{l=(null==i||i)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const u=l.connect(s);let c=!0;o.setState=(e,t,o)=>{const i=n(e,t);return c?(u.send(void 0===o?{type:a||"anonymous"}:"string"==typeof o?{type:o}:o,r()),i):i};const d=(...e)=>{const t=c;c=!1,n(...e),c=t},f=e(o.setState,r,o);if(u.init(f),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let e=!1;const t=o.dispatch;o.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):Ue(e.payload,(e=>{"__setState"!==e.type?o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e):d(e.state)}));case"DISPATCH":switch(e.payload.type){case"RESET":return d(f),u.init(o.getState());case"COMMIT":return u.init(o.getState());case"ROLLBACK":return Ue(e.state,(e=>{d(e),u.init(o.getState())}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Ue(e.state,(e=>{d(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return d(r),void u.send(null,n)}case"PAUSE_RECORDING":return c=!c}return}})),f},Ue=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)},ze=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(e){return ze(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return ze(t)(e)}}}},Ze=(e,t)=>(n,r,o)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch(e){}if(!u)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)}),r,o);const c=ze(i.serialize),d=()=>{const e=i.partialize({...r()});let t;const n=c({state:e,version:i.version}).then((e=>u.setItem(i.name,e))).catch((e=>{t=e}));if(t)throw t;return n},f=o.setState;o.setState=(e,t)=>{f(e,t),d()};const p=e(((...e)=>{n(...e),d()}),r,o);let m;const h=()=>{var e;if(!u)return;a=!1,s.forEach((e=>e(r())));const t=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,r()))||void 0;return ze(u.getItem.bind(u))(i.name).then((e=>{if(e)return i.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return m=i.merge(e,null!=(t=r())?t:p),n(m,!0),d()})).then((()=>{null==t||t(m,void 0),a=!0,l.forEach((e=>e(m)))})).catch((e=>{null==t||t(void 0,e)}))};return o.persist={setOptions:e=>{i={...i,...e},e.getStorage&&(u=e.getStorage())},clearStorage:()=>{null==u||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>h(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},h(),m||p};function We(e,t){return function(){return e.apply(t,arguments)}}const{toString:$e}=Object.prototype,{getPrototypeOf:qe}=Object,Ye=(e=>t=>{const n=$e.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Xe=e=>(e=e.toLowerCase(),t=>Ye(t)===e),Ge=e=>t=>typeof t===e,{isArray:Je}=Array,Ke=Ge("undefined"),Qe=Xe("ArrayBuffer"),et=Ge("string"),tt=Ge("function"),nt=Ge("number"),rt=e=>null!==e&&"object"==typeof e,ot=e=>{if("object"!==Ye(e))return!1;const t=qe(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},it=Xe("Date"),at=Xe("File"),st=Xe("Blob"),lt=Xe("FileList"),ut=Xe("URLSearchParams");function ct(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Je(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}const dt=(ft="undefined"!=typeof Uint8Array&&qe(Uint8Array),e=>ft&&e instanceof ft);var ft;const pt=Xe("HTMLFormElement"),mt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ht=Xe("RegExp"),vt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ct(n,((n,o)=>{!1!==t(n,o,e)&&(r[o]=n)})),Object.defineProperties(e,r)};var gt={isArray:Je,isArrayBuffer:Qe,isBuffer:function(e){return null!==e&&!Ke(e)&&null!==e.constructor&&!Ke(e.constructor)&&tt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{const t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||$e.call(e)===t||tt(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Qe(e.buffer),t},isString:et,isNumber:nt,isBoolean:e=>!0===e||!1===e,isObject:rt,isPlainObject:ot,isUndefined:Ke,isDate:it,isFile:at,isBlob:st,isRegExp:ht,isFunction:tt,isStream:e=>rt(e)&&tt(e.pipe),isURLSearchParams:ut,isTypedArray:dt,isFileList:lt,forEach:ct,merge:function e(){const t={},n=(n,r)=>{ot(t[r])&&ot(n)?t[r]=e(t[r],n):ot(n)?t[r]=e({},n):Je(n)?t[r]=n.slice():t[r]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ct(arguments[e],n);return t},extend:(e,t,n,{allOwnKeys:r}={})=>(ct(t,((t,r)=>{n&&tt(t)?e[r]=We(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&qe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ye,kindOfTest:Xe,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Je(e))return e;let t=e.length;if(!nt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:pt,hasOwnProperty:mt,hasOwnProp:mt,reduceDescriptors:vt,freezeMethods:e=>{vt(e,((t,n)=>{const r=e[n];tt(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Je(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t)};function yt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}gt.inherits(yt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const bt=yt.prototype,wt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{wt[e]={value:e}})),Object.defineProperties(yt,wt),Object.defineProperty(bt,"isAxiosError",{value:!0}),yt.from=(e,t,n,r,o,i)=>{const a=Object.create(bt);return gt.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),yt.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var Et=yt,xt=n(230);function Ct(e){return gt.isPlainObject(e)||gt.isArray(e)}function St(e){return gt.endsWith(e,"[]")?e.slice(0,-2):e}function Tt(e,t,n){return e?e.concat(t).map((function(e,t){return e=St(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Lt=gt.toFlatObject(gt,{},null,(function(e){return/^is[A-Z]/.test(e)}));var At=function(e,t,n){if(!gt.isObject(e))throw new TypeError("target must be an object");t=t||new(xt||FormData);const r=(n=gt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!gt.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&(l=t)&>.isFunction(l.append)&&"FormData"===l[Symbol.toStringTag]&&l[Symbol.iterator];var l;if(!gt.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(gt.isDate(e))return e.toISOString();if(!s&>.isBlob(e))throw new Et("Blob is not supported. Use a Buffer instead.");return gt.isArrayBuffer(e)||gt.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(gt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(gt.isArray(e)&&function(e){return gt.isArray(e)&&!e.some(Ct)}(e)||gt.isFileList(e)||gt.endsWith(n,"[]")&&(s=gt.toArray(e)))return n=St(n),s.forEach((function(e,r){!gt.isUndefined(e)&&null!==e&&t.append(!0===a?Tt([n],r,i):null===a?n:n+"[]",u(e))})),!1;return!!Ct(e)||(t.append(Tt(o,n,i),u(e)),!1)}const d=[],f=Object.assign(Lt,{defaultVisitor:c,convertValue:u,isVisitable:Ct});if(!gt.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!gt.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),gt.forEach(n,(function(n,i){!0===(!(gt.isUndefined(n)||null===n)&&o.call(t,n,gt.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])})),d.pop()}}(e),t};function Pt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ot(e,t){this._pairs=[],e&&At(e,this,t)}const Rt=Ot.prototype;Rt.append=function(e,t){this._pairs.push([e,t])},Rt.toString=function(e){const t=e?function(t){return e.call(this,t,Pt)}:Pt;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Vt=Ot;function kt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mt(e,t,n){if(!t)return e;const r=n&&n.encode||kt,o=n&&n.serialize;let i;if(i=o?o(t,n):gt.isURLSearchParams(t)?t.toString():new Vt(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}var Nt=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){gt.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Dt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jt="undefined"!=typeof URLSearchParams?URLSearchParams:Vt,Ft=FormData;const _t=(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})();var Ht={isBrowser:!0,classes:{URLSearchParams:jt,FormData:Ft,Blob:Blob},isStandardBrowserEnv:_t,protocols:["http","https","file","blob","url","data"]},Bt=function(e){function t(e,n,r,o){let i=e[o++];const a=Number.isFinite(+i),s=o>=e.length;return i=!i&>.isArray(r)?r.length:i,s?(gt.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&>.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&>.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(gt.isFormData(e)&>.isFunction(e.entries)){const n={};return gt.forEachEntry(e,((e,r)=>{t(function(e){return gt.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},It=Ht.isStandardBrowserEnv?{write:function(e,t,n,r,o,i){const a=[];a.push(e+"="+encodeURIComponent(t)),gt.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),gt.isString(r)&&a.push("path="+r),gt.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Ut(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var zt=Ht.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=gt.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function Zt(e,t,n){Et.call(this,null==e?"canceled":e,Et.ERR_CANCELED,t,n),this.name="CanceledError"}gt.inherits(Zt,Et,{__CANCEL__:!0});var Wt=Zt;const $t=gt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),qt=Symbol("internals"),Yt=Symbol("defaults");function Xt(e){return e&&String(e).trim().toLowerCase()}function Gt(e){return!1===e||null==e?e:gt.isArray(e)?e.map(Gt):String(e)}function Jt(e,t,n,r){return gt.isFunction(r)?r.call(this,t,n):gt.isString(t)?gt.isString(r)?-1!==t.indexOf(r):gt.isRegExp(r)?r.test(t):void 0:void 0}function Kt(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}function Qt(e,t){e&&this.set(e),this[Yt]=t||null}Object.assign(Qt.prototype,{set:function(e,t,n){const r=this;function o(e,t,n){const o=Xt(t);if(!o)throw new Error("header name must be a non-empty string");const i=Kt(r,o);(!i||!0===n||!1!==r[i]&&!1!==n)&&(r[i||t]=Gt(e))}return gt.isPlainObject(e)?gt.forEach(e,((e,n)=>{o(e,n,t)})):o(t,e,n),this},get:function(e,t){if(!(e=Xt(e)))return;const n=Kt(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(gt.isFunction(t))return t.call(this,e,n);if(gt.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=Xt(e)){const n=Kt(this,e);return!(!n||t&&!Jt(0,this[n],n,t))}return!1},delete:function(e,t){const n=this;let r=!1;function o(e){if(e=Xt(e)){const o=Kt(n,e);!o||t&&!Jt(0,n[o],o,t)||(delete n[o],r=!0)}}return gt.isArray(e)?e.forEach(o):o(e),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(e){const t=this,n={};return gt.forEach(this,((r,o)=>{const i=Kt(n,o);if(i)return t[i]=Gt(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Gt(r),n[a]=!0})),this},toJSON:function(e){const t=Object.create(null);return gt.forEach(Object.assign({},this[Yt]||null,this),((n,r)=>{null!=n&&!1!==n&&(t[r]=e&>.isArray(n)?n.join(", "):n)})),t}}),Object.assign(Qt,{from:function(e){return gt.isString(e)?new this((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&$t[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e)):e instanceof this?e:new this(e)},accessor:function(e){const t=(this[qt]=this[qt]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Xt(e);t[r]||(function(e,t){const n=gt.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return gt.isArray(e)?e.forEach(r):r(e),this}}),Qt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),gt.freezeMethods(Qt.prototype),gt.freezeMethods(Qt);var en=Qt;function tn(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=r[a];o||(o=l),n[i]=s,r[i]=l;let c=a,d=0;for(;c!==i;)d+=n[c++],c%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=u&&l-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,l=r(s);n=i;const u={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0};u[t?"download":"upload"]=!0,e(u)}}function nn(e){return new Promise((function(t,n){let r=e.data;const o=en.from(e.headers).normalize(),i=e.responseType;let a;function s(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}gt.isFormData(r)&&Ht.isStandardBrowserEnv&&o.setContentType(!1);let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const u=Ut(e.baseURL,e.url);function c(){if(!l)return;const r=en.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Et("Request failed with status code "+n.status,[Et.ERR_BAD_REQUEST,Et.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),s()}),(function(e){n(e),s()}),{data:i&&"text"!==i&&"json"!==i?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:r,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),Mt(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=c:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(c)},l.onabort=function(){l&&(n(new Et("Request aborted",Et.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new Et("Network Error",Et.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Dt;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Et(t,r.clarifyTimeoutError?Et.ETIMEDOUT:Et.ECONNABORTED,e,l)),l=null},Ht.isStandardBrowserEnv){const t=(e.withCredentials||zt(u))&&e.xsrfCookieName&&It.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in l&>.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),gt.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&"json"!==i&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",tn(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",tn(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{l&&(n(!t||t.type?new Wt(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);d&&-1===Ht.protocols.indexOf(d)?n(new Et("Unsupported protocol "+d+":",Et.ERR_BAD_REQUEST,e)):l.send(r||null)}))}const rn={http:nn,xhr:nn};var on=e=>{if(gt.isString(e)){const t=rn[e];if(!e)throw Error(gt.hasOwnProp(e)?`Adapter '${e}' is not available in the build`:`Can not resolve adapter '${e}'`);return t}if(!gt.isFunction(e))throw new TypeError("adapter is not a function");return e};const an={"Content-Type":"application/x-www-form-urlencoded"},sn={transitional:Dt,adapter:function(){let e;return"undefined"!=typeof XMLHttpRequest?e=on("xhr"):"undefined"!=typeof process&&"process"===gt.kindOf(process)&&(e=on("http")),e}(),transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=gt.isObject(e);if(o&>.isHTMLForm(e)&&(e=new FormData(e)),gt.isFormData(e))return r&&r?JSON.stringify(Bt(e)):e;if(gt.isArrayBuffer(e)||gt.isBuffer(e)||gt.isStream(e)||gt.isFile(e)||gt.isBlob(e))return e;if(gt.isArrayBufferView(e))return e.buffer;if(gt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return At(e,new Ht.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ht.isNode&>.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=gt.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return At(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(gt.isString(e))try{return(0,JSON.parse)(e),gt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||sn.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&>.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Et.from(e,Et.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ht.classes.FormData,Blob:Ht.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};gt.forEach(["delete","get","head"],(function(e){sn.headers[e]={}})),gt.forEach(["post","put","patch"],(function(e){sn.headers[e]=gt.merge(an)}));var ln=sn;function un(e,t){const n=this||ln,r=t||n,o=en.from(r.headers);let i=r.data;return gt.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function cn(e){return!(!e||!e.__CANCEL__)}function dn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wt}function fn(e){return dn(e),e.headers=en.from(e.headers),e.data=un.call(e,e.transformRequest),(e.adapter||ln.adapter)(e).then((function(t){return dn(e),t.data=un.call(e,e.transformResponse,t),t.headers=en.from(t.headers),t}),(function(t){return cn(t)||(dn(e),t&&t.response&&(t.response.data=un.call(e,e.transformResponse,t.response),t.response.headers=en.from(t.response.headers))),Promise.reject(t)}))}function pn(e,t){t=t||{};const n={};function r(e,t){return gt.isPlainObject(e)&>.isPlainObject(t)?gt.merge(e,t):gt.isPlainObject(t)?gt.merge({},t):gt.isArray(t)?t.slice():t}function o(n){return gt.isUndefined(t[n])?gt.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function i(e){if(!gt.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return gt.isUndefined(t[n])?gt.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function s(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return gt.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){const t=l[e]||o,r=t(e);gt.isUndefined(r)&&t!==s||(n[e]=r)})),n}const mn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{mn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const hn={};mn.transitional=function(e,t,n){function r(e,t){return"[Axios v1.1.3] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Et(r(o," has been removed"+(t?" in "+t:"")),Et.ERR_DEPRECATED);return t&&!hn[o]&&(hn[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var vn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Et("options must be an object",Et.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Et("option "+i+" must be "+n,Et.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Et("Unknown option "+i,Et.ERR_BAD_OPTION)}},validators:mn};const gn=vn.validators;class yn{constructor(e){this.defaults=e,this.interceptors={request:new Nt,response:new Nt}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=pn(this.defaults,t);const{transitional:n,paramsSerializer:r}=t;void 0!==n&&vn.assertOptions(n,{silentJSONParsing:gn.transitional(gn.boolean),forcedJSONParsing:gn.transitional(gn.boolean),clarifyTimeoutError:gn.transitional(gn.boolean)},!1),void 0!==r&&vn.assertOptions(r,{encode:gn.function,serialize:gn.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();const o=t.headers&>.merge(t.headers.common,t.headers[t.method]);o&>.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),t.headers=new en(t.headers,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const s=[];let l;this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)}));let u,c=0;if(!a){const e=[fn.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,s),u=e.length,l=Promise.resolve(t);c<u;)l=l.then(e[c++],e[c++]);return l}u=i.length;let d=t;for(c=0;c<u;){const e=i[c++],t=i[c++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=fn.call(this,d)}catch(e){return Promise.reject(e)}for(c=0,u=s.length;c<u;)l=l.then(s[c++],s[c++]);return l}getUri(e){return Mt(Ut((e=pn(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}gt.forEach(["delete","get","head","options"],(function(e){yn.prototype[e]=function(t,n){return this.request(pn(n||{},{method:e,url:t,data:(n||{}).data}))}})),gt.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(pn(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}yn.prototype[e]=t(),yn.prototype[e+"Form"]=t(!0)}));var bn=yn;class wn{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Wt(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new wn((function(t){e=t})),cancel:e}}}var En=wn;const xn=function e(t){const n=new bn(t),r=We(bn.prototype.request,n);return gt.extend(r,bn.prototype,n,{allOwnKeys:!0}),gt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(pn(t,n))},r}(ln);xn.Axios=bn,xn.CanceledError=Wt,xn.CancelToken=En,xn.isCancel=cn,xn.VERSION="1.1.3",xn.toFormData=At,xn.AxiosError=Et,xn.Cancel=xn.CanceledError,xn.all=function(e){return Promise.all(e)},xn.spread=function(e){return function(t){return e.apply(null,t)}},xn.isAxiosError=function(e){return gt.isObject(e)&&!0===e.isAxiosError},xn.formToJSON=e=>Bt(gt.isHTMLForm(e)?new FormData(e):e);var Cn=xn;const{Axios:Sn,AxiosError:Tn,CanceledError:Ln,isCancel:An,CancelToken:Pn,VERSION:On,all:Rn,Cancel:Vn,isAxiosError:kn,spread:Mn,toFormData:Nn}=Cn,Dn=Cn.create({baseURL:window.extAssistData.root,headers:{"X-WP-Nonce":window.extAssistData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Assist":!0,"X-Extendify":!0}});Dn.interceptors.request.use((e=>jn(e)),(e=>e)),Dn.interceptors.response.use((e=>Object.prototype.hasOwnProperty.call(e,"data")?e.data:e));const jn=e=>(e.headers["X-Extendify-Assist-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Assist-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e),Fn={getItem:async()=>JSON.stringify(await Dn.get("assist/global-data")),setItem:async(e,t)=>{return await(n=t,Dn.post("assist/global-data",{data:n}));var n},removeItem:()=>{}},Hn=Be(Ze(Ie(((e,t)=>({dismissedNotices:[],modals:[],pushModal(t){e((e=>({modals:[t,...e.modals]})))},popModal(){e((e=>({modals:e.modals.slice(1)})))},clearModals(){e({modals:[]})},isDismissed(e){return t().dismissedNotices.some((t=>t.id===e))},dismissNotice(n){if(t().isDismissed(n))return;const r={id:n,dismissedAt:(new Date).toISOString()};e((e=>({dismissedNotices:[...e.dismissedNotices,r]})))}})),{name:"Extendify Assist Globals"}),{name:"extendify-assist-globals",getStorage:()=>Fn,partialize:e=>(delete e.modals,e)})),Bn=()=>{const{modals:n,popModal:i}=Hn(),s=n[0],[l,u]=(0,e.useState)("");return(0,e.useEffect)((()=>{n[0]||u("")}),[n]),(0,e.createElement)(De,{as:"div",className:"extendify-assist extendify-assist-modal",open:n.length>0,onClose:i},(0,e.createElement)("div",{className:"absolute top-0 mx-auto w-full h-full overflow-hidden p-2 md:p-6 md:flex justify-center items-center z-high"},(0,e.createElement)("div",{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity","aria-hidden":"true"}),(0,e.createElement)("div",{className:"sm:flex relative shadow-2xl sm:overflow-hidden mx-auto bg-white flex flex-col min-w-md rounded-sm"},(0,e.createElement)("div",{className:"flex items-center justify-between"},(0,e.createElement)(De.Title,{className:"m-0 px-6"},l),(0,e.createElement)(t.Button,{className:"border-0 cursor-pointer m-4",onClick:i,icon:(0,e.createElement)(o,{icon:a,size:24}),label:(0,r.__)("Close Modal","extendify"),showTooltip:!1})),(0,e.createElement)("div",{className:"m-0 p-6 pt-0 text-left relative"},(null==n?void 0:n.length)>0&&(0,e.createElement)(s,{popModal:i,setModalTitle:u})))))},In=()=>(0,e.createElement)(Bn,null);function Un(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function zn(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var Zn,Wn=function(){},$n=Wn(),qn=Object,Yn=function(e){return e===$n},Xn=function(e){return"function"==typeof e},Gn=function(e,t){return qn.assign({},e,t)},Jn="undefined",Kn=function(){return typeof window!=Jn},Qn=new WeakMap,er=0,tr=function(e){var t,n,r=typeof e,o=e&&e.constructor,i=o==Date;if(qn(e)!==e||i||o==RegExp)t=i?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=Qn.get(e))return t;if(t=++er+"~",Qn.set(e,t),o==Array){for(t="@",n=0;n<e.length;n++)t+=tr(e[n])+",";Qn.set(e,t)}if(o==qn){t="#";for(var a=qn.keys(e).sort();!Yn(n=a.pop());)Yn(e[n])||(t+=n+":"+tr(e[n])+",");Qn.set(e,t)}}return t},nr=!0,rr=Kn(),or=typeof document!=Jn,ir=rr&&window.addEventListener?window.addEventListener.bind(window):Wn,ar=or?document.addEventListener.bind(document):Wn,sr=rr&&window.removeEventListener?window.removeEventListener.bind(window):Wn,lr=or?document.removeEventListener.bind(document):Wn,ur={isOnline:function(){return nr},isVisible:function(){var e=or&&document.visibilityState;return Yn(e)||"hidden"!==e}},cr={initFocus:function(e){return ar("visibilitychange",e),ir("focus",e),function(){lr("visibilitychange",e),sr("focus",e)}},initReconnect:function(e){var t=function(){nr=!0,e()},n=function(){nr=!1};return ir("online",t),ir("offline",n),function(){sr("online",t),sr("offline",n)}}},dr=!Kn()||"Deno"in window,fr=dr?s.useEffect:s.useLayoutEffect,pr="undefined"!=typeof navigator&&navigator.connection,mr=!dr&&pr&&(["slow-2g","2g"].includes(pr.effectiveType)||pr.saveData),hr=function(e){if(Xn(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?tr(e):"",t,e?"$swr$"+e:""]},vr=new WeakMap,gr=function(e,t,n,r,o,i,a){void 0===a&&(a=!0);var s=vr.get(e),l=s[0],u=s[1],c=s[3],d=l[t],f=u[t];if(a&&f)for(var p=0;p<f.length;++p)f[p](n,r,o);return i&&(delete c[t],d&&d[0])?d[0](2).then((function(){return e.get(t)})):e.get(t)},yr=0,br=function(){return++yr},wr=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Un(void 0,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,u,c,d,f,p,m,h,v,g,y,b,w,E;return zn(this,(function(x){switch(x.label){case 0:if(t=e[0],n=e[1],r=e[2],o=e[3],a=!!Yn((i="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||i.populateCache,s=!1!==i.revalidate,l=!1!==i.rollbackOnError,u=i.optimisticData,c=hr(n),d=c[0],f=c[2],!d)return[2];if(p=vr.get(t),m=p[2],e.length<3)return[2,gr(t,d,t.get(d),$n,$n,s,!0)];if(h=r,g=br(),m[d]=[g,0],y=!Yn(u),b=t.get(d),y&&(w=Xn(u)?u(b):u,t.set(d,w),gr(t,d,w)),Xn(h))try{h=h(t.get(d))}catch(e){v=e}return h&&Xn(h.then)?[4,h.catch((function(e){v=e}))]:[3,2];case 1:if(h=x.sent(),g!==m[d][0]){if(v)throw v;return[2,h]}v&&y&&l&&(a=!0,h=b,t.set(d,b)),x.label=2;case 2:return a&&(v||(Xn(a)&&(h=a(h,b)),t.set(d,h)),t.set(f,Gn(t.get(f),{error:v}))),m[d][1]=br(),[4,gr(t,d,h,v,$n,s,!!a)];case 3:if(E=x.sent(),v)throw v;return[2,a?E:h]}}))}))},Er=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},xr=function(e,t){if(!vr.has(e)){var n=Gn(cr,t),r={},o=wr.bind($n,e),i=Wn;if(vr.set(e,[r,{},{},{},o]),!dr){var a=n.initFocus(setTimeout.bind($n,Er.bind($n,r,0))),s=n.initReconnect(setTimeout.bind($n,Er.bind($n,r,1)));i=function(){a&&a(),s&&s(),vr.delete(e)}}return[e,o,i]}return[e,vr.get(e)[4]]},Cr=xr(new Map),Sr=Cr[0],Tr=Cr[1],Lr=Gn({onLoadingSlow:Wn,onSuccess:Wn,onError:Wn,onErrorRetry:function(e,__,t,n,r){var o=t.errorRetryCount,i=r.retryCount,a=~~((Math.random()+.5)*(1<<(i<8?i:8)))*t.errorRetryInterval;!Yn(o)&&i>o||setTimeout(n,a,r)},onDiscarded:Wn,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:mr?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:mr?5e3:3e3,compare:function(e,t){return tr(e)==tr(t)},isPaused:function(){return!1},cache:Sr,mutate:Tr,fallback:{}},ur),Ar=function(e,t){var n=Gn(e,t);if(t){var r=e.use,o=e.fallback,i=t.use,a=t.fallback;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=Gn(o,a))}return n},Pr=(0,s.createContext)({}),Or=function(e){return Xn(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},Rr=function(){return Gn(Lr,(0,s.useContext)(Pr))},Vr=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},kr={dedupe:!0},Mr=qn.defineProperty((function(e){var t=e.value,n=Ar((0,s.useContext)(Pr),t),r=t&&t.provider,o=(0,s.useState)((function(){return r?xr(r(n.cache||Sr),t):$n}))[0];return o&&(n.cache=o[0],n.mutate=o[1]),fr((function(){return o?o[2]:$n}),[]),(0,s.createElement)(Pr.Provider,Gn(e,{value:n}))}),"default",{value:Lr}),Nr=(Zn=function(e,t,n){var r=n.cache,o=n.compare,i=n.fallbackData,a=n.suspense,l=n.revalidateOnMount,u=n.refreshInterval,c=n.refreshWhenHidden,d=n.refreshWhenOffline,f=vr.get(r),p=f[0],m=f[1],h=f[2],v=f[3],g=hr(e),y=g[0],b=g[1],w=g[2],E=(0,s.useRef)(!1),x=(0,s.useRef)(!1),C=(0,s.useRef)(y),S=(0,s.useRef)(t),T=(0,s.useRef)(n),L=function(){return T.current},A=function(){return L().isVisible()&&L().isOnline()},P=function(e){return r.set(w,Gn(r.get(w),e))},O=r.get(y),R=Yn(i)?n.fallback[y]:i,V=Yn(O)?R:O,k=r.get(w)||{},M=k.error,N=!E.current,D=function(){return N&&!Yn(l)?l:!L().isPaused()&&(a?!Yn(V)&&n.revalidateIfStale:Yn(V)||n.revalidateIfStale)},j=!(!y||!t)&&(!!k.isValidating||N&&D()),F=function(e,t){var n=(0,s.useState)({})[1],r=(0,s.useRef)(e),o=(0,s.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,s.useCallback)((function(e){var i=!1,a=r.current;for(var s in e){var l=s;a[l]!==e[l]&&(a[l]=e[l],o.current[l]&&(i=!0))}i&&!t.current&&n({})}),[]);return fr((function(){r.current=e})),[r,o.current,i]}({data:V,error:M,isValidating:j},x),_=F[0],H=F[1],B=F[2],I=(0,s.useCallback)((function(e){return Un(void 0,void 0,void 0,(function(){var t,i,a,s,l,u,c,d,f,p,m,g,w;return zn(this,(function(T){switch(T.label){case 0:if(t=S.current,!y||!t||x.current||L().isPaused())return[2,!1];s=!0,l=e||{},u=!v[y]||!l.dedupe,c=function(){return!x.current&&y===C.current&&E.current},d=function(){var e=v[y];e&&e[1]===a&&delete v[y]},f={isValidating:!1},p=function(){P({isValidating:!1}),c()&&B(f)},P({isValidating:!0}),B({isValidating:!0}),T.label=1;case 1:return T.trys.push([1,3,,4]),u&&(gr(r,y,_.current.data,_.current.error,!0),n.loadingTimeout&&!r.get(y)&&setTimeout((function(){s&&c()&&L().onLoadingSlow(y,n)}),n.loadingTimeout),v[y]=[t.apply(void 0,b),br()]),w=v[y],i=w[0],a=w[1],[4,i];case 2:return i=T.sent(),u&&setTimeout(d,n.dedupingInterval),v[y]&&v[y][1]===a?(P({error:$n}),f.error=$n,m=h[y],!Yn(m)&&(a<=m[0]||a<=m[1]||0===m[1])?(p(),u&&c()&&L().onDiscarded(y),[2,!1]):(o(_.current.data,i)?f.data=_.current.data:f.data=i,o(r.get(y),i)||r.set(y,i),u&&c()&&L().onSuccess(i,y,n),[3,4])):(u&&c()&&L().onDiscarded(y),[2,!1]);case 3:return g=T.sent(),d(),L().isPaused()||(P({error:g}),f.error=g,u&&c()&&(L().onError(g,y,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||Xn(n.shouldRetryOnError)&&n.shouldRetryOnError(g))&&A()&&L().onErrorRetry(g,y,n,I,{retryCount:(l.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return s=!1,p(),c()&&u&&gr(r,y,f.data,f.error,!1),[2,!0]}}))}))}),[y]),U=(0,s.useCallback)(wr.bind($n,r,(function(){return C.current})),[]);if(fr((function(){S.current=t,T.current=n})),fr((function(){if(y){var e=y!==C.current,t=I.bind($n,kr),n=0,r=Vr(y,m,(function(e,t,n){B(Gn({error:t,isValidating:n},o(_.current.data,e)?$n:{data:e}))})),i=Vr(y,p,(function(e){if(0==e){var r=Date.now();L().revalidateOnFocus&&r>n&&A()&&(n=r+L().focusThrottleInterval,t())}else if(1==e)L().revalidateOnReconnect&&A()&&t();else if(2==e)return I()}));return x.current=!1,C.current=y,E.current=!0,e&&B({data:V,error:M,isValidating:j}),D()&&(Yn(V)||dr?t():function(e){Kn()&&typeof window.requestAnimationFrame!=Jn?window.requestAnimationFrame(e):setTimeout(e,1)}(t)),function(){x.current=!0,r(),i()}}}),[y,I]),fr((function(){var e;function t(){var t=Xn(u)?u(V):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){_.current.error||!c&&!L().isVisible()||!d&&!L().isOnline()?t():I(kr).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[u,c,d,I]),(0,s.useDebugValue)(V),a&&Yn(V)&&y)throw S.current=t,T.current=n,x.current=!1,Yn(M)?I(kr):M;return{mutate:U,get data(){return H.data=!0,V},get error(){return H.error=!0,M},get isValidating(){return H.isValidating=!0,j}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Rr(),r=Or(e),o=r[0],i=r[1],a=r[2],s=Ar(n,a),l=Zn,u=s.use;if(u)for(var c=u.length;c-- >0;)l=u[c](l);return l(o,i||s.fetcher,s)}),Dr=function(){return Dr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Dr.apply(this,arguments)},jr=function(e){return function(e){return"function"==typeof e}(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},Fr=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=jr(n),i=o[0],a=o[1],s=o[2],l=(s.use||[]).concat(t);return e(i,a,Dr(Dr({},s),{use:l}))}}(Nr,(function(e){return function(t,n,r){return r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r)}}));const _r=(e,t)=>Dn.post("assist/options",{option:e,value:t}),Hr=async e=>{const{data:t}=await Dn.get("assist/options",{params:{option:e}});return t},Br=e=>{try{const t=new URL(e);return"https:"===window.location.protocol&&(t.protocol="https:"),t.toString()}catch(t){return e}},Ir=()=>{const{pages:n,loading:o,error:i}=(()=>{const{data:e,error:t}=Fr("pages-list",(async()=>{const e=await Dn.get("assist/launch-pages");if(null==e||!e.data||!Array.isArray(e.data))throw console.error(e),new Error("Bad data");return e.data}));return{pages:e,error:t,loading:!e&&!t}})();return o||i?(0,e.createElement)("div",{className:"my-4 w-full flex items-center max-w-3/4 mx-auto bg-gray-100 p-12"},(0,e.createElement)(t.Spinner,null)):0===n.length?(0,e.createElement)("div",{className:"my-4 max-w-3/4 w-full mx-auto bg-gray-100 p-12"},(0,r.__)("No pages found...","extendify")):(0,e.createElement)("div",{className:"my-4 text-base max-w-3/4 w-full mx-auto"},(0,e.createElement)("h2",{className:"text-lg mb-3"},(0,r.__)("Pages","extendify"),":"),(0,e.createElement)("div",{className:"grid grid-cols-2 gap-4"},n.map((t=>(0,e.createElement)("div",{key:t.ID,className:"p-3 flex items-center justify-between border border-solid border-gray-400"},(0,e.createElement)("div",{className:"flex items-center"},(0,e.createElement)("span",{className:"dashicons dashicons-saved"}),(0,e.createElement)("span",{className:"pl-1 font-semibold"},t.post_title||(0,r.__)("Untitled","extendify"))),(0,e.createElement)("div",{className:"flex text-sm"},(0,e.createElement)("span",null,(0,e.createElement)("a",{target:"_blank",rel:"noreferrer",href:Br(t.url)},(0,r.__)("View","extendify"))),(0,e.createElement)("span",{className:"mr-2 pl-2"},(0,e.createElement)("a",{target:"_blank",rel:"noreferrer",href:`${window.extAssistData.adminUrl}post.php?post=${t.ID}&action=edit`},(0,r.__)("Edit","extendify")))))))))};var Ur=n(184),zr=n.n(Ur);function Zr(){return Zr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zr.apply(this,arguments)}(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M3 13H7V19H3V13ZM10 9H14V19H10V9ZM17 5H21V19H17V5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M14 8H10C9.448 8 9 8.448 9 9V19C9 19.552 9.448 20 10 20H14C14.552 20 15 19.552 15 19V9C15 8.448 14.552 8 14 8ZM13 18H11V10H13V18ZM21 4H17C16.448 4 16 4.448 16 5V19C16 19.552 16.448 20 17 20H21C21.552 20 22 19.552 22 19V5C22 4.448 21.552 4 21 4ZM20 18H18V6H20V18ZM7 12H3C2.448 12 2 12.448 2 13V19C2 19.552 2.448 20 3 20H7C7.552 20 8 19.552 8 19V13C8 12.448 7.552 12 7 12ZM6 18H4V14H6V18Z",fill:"currentColor"}))}));var Wr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))}));(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M11.5003 15.5L15.5003 11.4998L20.0004 15.9998L16.0004 19.9999L11.5003 15.5Z",fill:"currentColor"}),(0,e.createElement)("path",{opacity:"0.3",d:"M3.93958 7.94043L7.93961 3.94026L12.4397 8.44021L8.43968 12.4404L3.93958 7.94043Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M8.575 11.747L4.828 8L8 4.828L11.747 8.575L13.161 7.161L8 2L2 8L7.161 13.161L8.575 11.747ZM16.769 10.769L15.355 12.183L19.172 16L16 19.172L12.183 15.355L10.769 16.769L16 22L22 16L16.769 10.769Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M21.707 4.879L19.121 2.293C18.926 2.098 18.67 2 18.414 2C18.158 2 17.902 2.098 17.707 2.293L3 17V21H7L21.707 6.293C22.098 5.902 22.098 5.269 21.707 4.879ZM6.172 19H5V17.828L15.707 7.121L16.879 8.293L6.172 19ZM18.293 6.879L17.121 5.707L18.414 4.414L19.586 5.586L18.293 6.879Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M20 6C20 9 19 13 19 13L13.3 17L12.6 16.4C11.8 15.6 11.8 14.2 12.6 13.4L14.8 11.2C14.8 8.7 12.1 7.2 9.89999 8.5C9.19999 9 8.59999 9.6 7.89999 10.3V13L5.89999 16C4.79999 16 3.89999 15.1 3.89999 14V10.4C3.89999 9.5 4.19999 8.6 4.79999 7.9L7.59999 4.4L14 2C14.9 4.4 16.8 5.8 20 6Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M13.2 18.2996L12 17.0996C10.7 15.7996 10.7 13.8996 12 12.5996L13.9 10.6996C13.8 10.0996 13.4 9.49961 12.8 9.19961C12.1 8.79961 11.3 8.79961 10.6 9.19961C10.1 9.49961 9.7 9.89961 9.3 10.3996C9.2 10.4996 9.2 10.4996 9.1 10.5996V12.9996H7V9.89961L7.3 9.59961C7.5 9.39961 7.6 9.29961 7.8 9.09961C8.3 8.59961 8.8 7.99961 9.5 7.59961C10.8 6.79961 12.4 6.79961 13.7 7.49961C15 8.29961 15.9 9.59961 15.9 11.1996V11.5996L13.4 14.0996C13.2 14.2996 13.1 14.5996 13.1 14.8996C13.1 15.1996 13.2 15.4996 13.4 15.6996L13.5 15.7996L18.2 12.4996C18.4 11.4996 19.1 8.39961 19.1 6.09961H21.1C21.1 9.19961 20.1 13.1996 20.1 13.2996L20 13.6996L13.2 18.2996Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M11 23.0005C9.7 23.0005 8.4 22.6005 7.3 21.7005C4.7 19.7005 4.3 15.9005 6.3 13.3005C8.1 11.0005 11.3 10.3005 13.9 11.8005L12.9 13.6005C11.2 12.7005 9.1 13.1005 7.9 14.6005C6.5 16.3005 6.8 18.8005 8.6 20.2005C10.3 21.6005 12.8 21.3005 14.2 19.5005C14.9 18.6005 15.2 17.4005 15 16.2005L17 15.8005C17.4 17.5005 16.9 19.3005 15.8 20.7005C14.5 22.2005 12.7 23.0005 11 23.0005Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M6 16.9996C4.3 16.9996 3 15.6996 3 13.9996V10.3996C3 9.29961 3.4 8.19961 4.1 7.29961L7.1 3.59961L13.7 1.09961L14.4 2.99961L8.3 5.29961L5.7 8.49961C5.2 9.09961 5 9.69961 5 10.3996V13.9996C5 14.5996 5.4 14.9996 6 14.9996V16.9996Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:`icon ${n}`,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M10 17.5L15 12L10 6.5",stroke:"currentColor",strokeWidth:"1.75"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M609.404 378.5C585.07 378.5 563.404 373 544.404 362C525.737 350.667 511.07 335.333 500.404 316C489.737 296.333 484.404 273.833 484.404 248.5C484.404 222.833 489.57 200.167 499.904 180.5C510.237 160.833 524.737 145.5 543.404 134.5C562.07 123.167 583.404 117.5 607.404 117.5C632.404 117.5 653.904 122.833 671.904 133.5C689.904 143.833 703.737 158.333 713.404 177C723.404 195.667 728.404 218 728.404 244V262.5L516.404 263L517.404 224H667.904C667.904 207 662.404 193.333 651.404 183C640.737 172.667 626.237 167.5 607.904 167.5C593.57 167.5 581.404 170.5 571.404 176.5C561.737 182.5 554.404 191.5 549.404 203.5C544.404 215.5 541.904 230.167 541.904 247.5C541.904 274.167 547.57 294.333 558.904 308C570.57 321.667 587.737 328.5 610.404 328.5C627.07 328.5 640.737 325.333 651.404 319C662.404 312.667 669.57 303.667 672.904 292H729.404C724.07 319 710.737 340.167 689.404 355.5C668.404 370.833 641.737 378.5 609.404 378.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M797.529 372H728.029L813.029 251L728.029 125H799.029L853.529 209L906.029 125H974.529L890.529 250.5L972.029 372H902.029L849.029 290.5L797.529 372Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M994.142 125H1150.14V176H994.142V125ZM1102.64 372H1041.64V48H1102.64V372Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1278.62 378.5C1254.29 378.5 1232.62 373 1213.62 362C1194.96 350.667 1180.29 335.333 1169.62 316C1158.96 296.333 1153.62 273.833 1153.62 248.5C1153.62 222.833 1158.79 200.167 1169.12 180.5C1179.46 160.833 1193.96 145.5 1212.62 134.5C1231.29 123.167 1252.62 117.5 1276.62 117.5C1301.62 117.5 1323.12 122.833 1341.12 133.5C1359.12 143.833 1372.96 158.333 1382.62 177C1392.62 195.667 1397.62 218 1397.62 244V262.5L1185.62 263L1186.62 224H1337.12C1337.12 207 1331.62 193.333 1320.62 183C1309.96 172.667 1295.46 167.5 1277.12 167.5C1262.79 167.5 1250.62 170.5 1240.62 176.5C1230.96 182.5 1223.62 191.5 1218.62 203.5C1213.62 215.5 1211.12 230.167 1211.12 247.5C1211.12 274.167 1216.79 294.333 1228.12 308C1239.79 321.667 1256.96 328.5 1279.62 328.5C1296.29 328.5 1309.96 325.333 1320.62 319C1331.62 312.667 1338.79 303.667 1342.12 292H1398.62C1393.29 319 1379.96 340.167 1358.62 355.5C1337.62 370.833 1310.96 378.5 1278.62 378.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1484.44 372H1423.44V125H1479.94L1484.94 157C1492.61 144.667 1503.44 135 1517.44 128C1531.78 121 1547.28 117.5 1563.94 117.5C1594.94 117.5 1618.28 126.667 1633.94 145C1649.94 163.333 1657.94 188.333 1657.94 220V372H1596.94V234.5C1596.94 213.833 1592.28 198.5 1582.94 188.5C1573.61 178.167 1560.94 173 1544.94 173C1525.94 173 1511.11 179 1500.44 191C1489.78 203 1484.44 219 1484.44 239V372Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1798.38 378.5C1774.38 378.5 1753.71 373.167 1736.38 362.5C1719.38 351.5 1706.04 336.333 1696.38 317C1687.04 297.667 1682.38 275.167 1682.38 249.5C1682.38 223.833 1687.04 201.167 1696.38 181.5C1706.04 161.5 1719.88 145.833 1737.88 134.5C1755.88 123.167 1777.21 117.5 1801.88 117.5C1819.21 117.5 1835.04 121 1849.38 128C1863.71 134.667 1874.71 144.167 1882.38 156.5V0H1942.88V372H1886.88L1882.88 333.5C1875.54 347.5 1864.21 358.5 1848.88 366.5C1833.88 374.5 1817.04 378.5 1798.38 378.5ZM1811.88 322.5C1826.21 322.5 1838.54 319.5 1848.88 313.5C1859.21 307.167 1867.21 298.333 1872.88 287C1878.88 275.333 1881.88 262.167 1881.88 247.5C1881.88 232.5 1878.88 219.5 1872.88 208.5C1867.21 197.167 1859.21 188.333 1848.88 182C1838.54 175.333 1826.21 172 1811.88 172C1797.88 172 1785.71 175.333 1775.38 182C1765.04 188.333 1757.04 197.167 1751.38 208.5C1746.04 219.833 1743.38 232.833 1743.38 247.5C1743.38 262.167 1746.04 275.167 1751.38 286.5C1757.04 297.833 1765.04 306.667 1775.38 313C1785.71 319.333 1797.88 322.5 1811.88 322.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1996.45 372V125H2057.45V372H1996.45ZM2026.45 75.5C2016.11 75.5 2007.28 72 1999.95 65C1992.95 57.6667 1989.45 48.8333 1989.45 38.5C1989.45 28.1667 1992.95 19.5 1999.95 12.5C2007.28 5.50001 2016.11 2.00002 2026.45 2.00002C2036.78 2.00002 2045.45 5.50001 2052.45 12.5C2059.78 19.5 2063.45 28.1667 2063.45 38.5C2063.45 48.8333 2059.78 57.6667 2052.45 65C2045.45 72 2036.78 75.5 2026.45 75.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M2085.97 125H2240.97V176H2085.97V125ZM2241.47 2.5V54.5C2238.14 54.5 2234.64 54.5 2230.97 54.5C2227.64 54.5 2224.14 54.5 2220.47 54.5C2205.14 54.5 2194.8 58.1667 2189.47 65.5C2184.47 72.8333 2181.97 82.6667 2181.97 95V372H2121.47V95C2121.47 72.3333 2125.14 54.1667 2132.47 40.5C2139.8 26.5 2150.14 16.3333 2163.47 10C2176.8 3.33334 2192.3 0 2209.97 0C2214.97 0 2220.14 0.166671 2225.47 0.5C2231.14 0.833329 2236.47 1.49999 2241.47 2.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M2330.4 125L2410.9 353L2377.9 415.5L2265.9 125H2330.4ZM2272.4 486.5V436H2308.9C2316.9 436 2323.9 435 2329.9 433C2335.9 431.333 2341.24 428 2345.9 423C2350.9 418 2355.07 410.667 2358.4 401L2460.9 125H2523.9L2402.9 427C2393.9 449.667 2382.57 466.167 2368.9 476.5C2355.24 486.833 2338.24 492 2317.9 492C2309.24 492 2301.07 491.5 2293.4 490.5C2286.07 489.833 2279.07 488.5 2272.4 486.5Z",fill:"currentColor"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M226.926 25.1299H310.197C333.783 25.1299 342.32 27.5938 350.948 32.1932C359.576 36.8108 366.326 43.5822 370.941 52.1969C375.556 60.8298 378 69.3715 378 92.9707V176.289C378 199.888 375.537 208.43 370.941 217.063C366.326 225.696 359.558 232.449 350.948 237.066C347.091 239.131 343.244 240.83 338.064 242.047V308.355C338.064 344.802 334.261 357.994 327.162 371.327C320.034 384.66 309.583 395.09 296.285 402.221C282.96 409.353 269.775 413.13 233.349 413.13H104.744C68.3172 413.13 55.1327 409.325 41.8073 402.221C28.4819 395.09 18.0583 384.632 10.9308 371.327C3.80323 358.023 0 344.802 0 308.355V179.706C0 143.259 3.80323 130.067 10.9026 116.734C18.0301 103.401 28.4819 92.9431 41.8073 85.8116C55.1045 78.7082 68.3172 74.9028 104.744 74.9028H159.808C160.841 64.0747 162.996 58.1666 166.165 52.2151C170.78 43.5822 177.547 36.8108 186.175 32.1932C194.785 27.5938 203.34 25.1299 226.926 25.1299ZM184.128 78.1641C184.128 62.7001 196.658 50.1641 212.114 50.1641H324.991C340.448 50.1641 352.978 62.7001 352.978 78.1641V191.096C352.978 206.56 340.448 219.096 324.991 219.096H212.114C196.658 219.096 184.128 206.56 184.128 191.096V78.1641Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M12 14L3 9V19H21V9L12 14Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M21.008 6.24719L12 0.992188L2.992 6.24719C2.38 6.60419 2 7.26619 2 7.97519V18.0002C2 19.1032 2.897 20.0002 4 20.0002H20C21.103 20.0002 22 19.1032 22 18.0002V7.97519C22 7.26619 21.62 6.60419 21.008 6.24719ZM19.892 7.91219L12 12.8222L4.108 7.91119L12 3.30819L19.892 7.91219ZM4 18.0002V10.2002L12 15.1782L20 10.2002L20.001 18.0002H4Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M7.03432 14.8828L16.2343 5.68249L18.2298 7.67791L9.02981 16.8782L7.03432 14.8828Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M3.669 17L3 21L7 20.331L3.669 17ZM21.707 4.879L19.121 2.293C18.926 2.098 18.67 2 18.414 2C18.158 2 17.902 2.098 17.707 2.293L5 15C5 15 6.005 15.005 6.5 15.5C6.995 15.995 6.984 16.984 6.984 16.984C6.984 16.984 8.003 17.003 8.5 17.5C8.997 17.997 9 19 9 19L21.707 6.293C22.098 5.902 22.098 5.269 21.707 4.879ZM8.686 15.308C8.588 15.05 8.459 14.789 8.289 14.539L15.951 6.877L17.123 8.049L9.461 15.711C9.21 15.539 8.946 15.408 8.686 15.308ZM18.537 6.635L17.365 5.463L18.414 4.414L19.586 5.586L18.537 6.635Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M4 5H20V9H4V5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M12 13H17V18H12V13ZM6 2H8V5H6V2ZM16 2H18V5H16V2Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M19 22H5C3.9 22 3 21.1 3 20V6C3 4.9 3.9 4 5 4H19C20.1 4 21 4.9 21 6V20C21 21.1 20.1 22 19 22ZM5 6V20H19V6H5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M4 8H20V10H4V8Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M20 11.414L10.707 20.707C10.518 20.896 10.267 21 10 21C9.733 21 9.482 20.896 9.293 20.707L3.293 14.707C3.104 14.518 3 14.267 3 14C3 13.733 3.104 13.482 3.293 13.293L12.586 4H20V11.414Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M10 22C9.466 22 8.964 21.792 8.586 21.414L2.586 15.414C2.208 15.036 2 14.534 2 14C2 13.466 2.208 12.964 2.586 12.586L12.172 3H21V11.828L11.414 21.414C11.036 21.792 10.534 22 10 22ZM13 5L4 14L10 20L19 11V5H13Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M16 7C15.7348 7 15.4804 7.10536 15.2929 7.29289C15.1054 7.48043 15 7.73478 15 8C15 8.26522 15.1054 8.51957 15.2929 8.70711C15.4804 8.89464 15.7348 9 16 9C16.2652 9 16.5196 8.89464 16.7071 8.70711C16.8946 8.51957 17 8.26522 17 8C17 7.73478 16.8946 7.48043 16.7071 7.29289C16.5196 7.10536 16.2652 7 16 7Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"-4 -4 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{stroke:"currentColor",d:"M6.5 0.5h0s6 0 6 6v0s0 6 -6 6h0s-6 0 -6 -6v0s0 -6 6 -6"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{fill:"currentColor",d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:`icon ${n}`,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M15 17.5L10 12L15 6.5",stroke:"currentColor",strokeWidth:"1.75"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,e.createElement)("path",{d:"M7 12.27v3.72l5 2.73 5-2.73v-3.72L12 15zM5.18 9L12 12.72 18.82 9 12 5.28z",opacity:".3"}),(0,e.createElement)("path",{d:"M12 3L1 9l4 2.18v6L12 21l7-3.82v-6l2-1.09V17h2V9L12 3zm5 12.99l-5 2.73-5-2.73v-3.72L12 15l5-2.73v3.72zm-5-3.27L5.18 9 12 5.28 18.82 9 12 12.72z"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M8 18.5504L12 14.8899",stroke:"#1E1E1E",strokeWidth:"1.5"}),(0,e.createElement)("path",{d:"M20.25 11.7523C20.25 14.547 18.092 16.7546 15.5 16.7546C12.908 16.7546 10.75 14.547 10.75 11.7523C10.75 8.95754 12.908 6.75 15.5 6.75C18.092 6.75 20.25 8.95754 20.25 11.7523Z",stroke:"#1E1E1E",strokeWidth:"1.5"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M19.27 8H4.73L3 13.2V14H21V13.2L19.27 8ZM5 4H19V8H5V4Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M13 21H3V13H13V21ZM5 19H11V15H5V19Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M22 15H2V13.038L4.009 7H19.991L22 13.038V15ZM4.121 13H19.88L18.549 9H5.451L4.121 13Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M19 14H21V21H19V14ZM20 9H4V3H20V9ZM6 7H18V5H6V7Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M21 11C21 6.6 17 3 12 3C7 3 3 6.6 3 11C3 15.4 7 19 12 19C12.7 19 13.4 18.9 14 18.8V21.3C16 20 20.5 16.5 21 11.9C21 11.6 21 11.3 21 11Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M13 23.1V20C7 20.6 2 16.3 2 11C2 6 6.5 2 12 2C17.5 2 22 6 22 11C22 11.3 22 11.6 21.9 12C21.3 17.5 15.6 21.4 14.5 22.2L13 23.1ZM15 17.6V19.3C16.9 17.8 19.6 15.1 20 11.7C20 11.5 20 11.2 20 11C20 7.1 16.4 4 12 4C7.6 4 4 7.1 4 11C4 15.4 8.6 18.9 13.8 17.8L15 17.6Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("circle",{cx:"10",cy:"10",r:"10",fill:"black",fillOpacity:"0.4"}),(0,e.createElement)("ellipse",{cx:"15.5552",cy:"6.66656",rx:"2.22222",ry:"2.22222",fill:"white"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M87.5 48.8281H75V51.1719H87.5V48.8281Z",fill:"black"}),(0,e.createElement)("path",{d:"M25 48.8281H12.5V51.1719H25V48.8281Z",fill:"black"}),(0,e.createElement)("path",{d:"M51.1719 75H48.8281V87.5H51.1719V75Z",fill:"black"}),(0,e.createElement)("path",{d:"M51.1719 12.5H48.8281V25H51.1719V12.5Z",fill:"black"}),(0,e.createElement)("path",{d:"M77.3433 75.6868L69.4082 67.7517L67.7511 69.4088L75.6862 77.344L77.3433 75.6868Z",fill:"black"}),(0,e.createElement)("path",{d:"M32.2457 30.5897L24.3105 22.6545L22.6534 24.3117L30.5885 32.2468L32.2457 30.5897Z",fill:"black"}),(0,e.createElement)("path",{d:"M77.3407 24.3131L75.6836 22.656L67.7485 30.5911L69.4056 32.2483L77.3407 24.3131Z",fill:"black"}),(0,e.createElement)("path",{d:"M32.2431 69.4074L30.5859 67.7502L22.6508 75.6854L24.3079 77.3425L32.2431 69.4074Z",fill:"black"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M22 10V6C22 4.9 21.11 4 20 4H4C2.9 4 2 4.9 2 6V10C3.1 10 4 10.9 4 12C4 13.1 3.1 14 2 14V18C2 19.1 2.9 20 4 20H20C21.11 20 22 19.1 22 18V14C20.89 14 20 13.1 20 12C20 10.9 20.89 10 22 10ZM20 8.54C18.81 9.23 18 10.52 18 12C18 13.48 18.81 14.77 20 15.46V18H4V15.46C5.19 14.77 6 13.48 6 12C6 10.52 5.19 9.23 4 8.54V6H20V8.54Z",fill:"currentColor"}),(0,e.createElement)("path",{opacity:"0.3",d:"M18 12C18 13.48 18.81 14.77 20 15.46V18H4V15.46C5.19 14.77 6 13.48 6 12C6 10.52 5.19 9.23 4 8.54V6H20V8.54C18.81 9.23 18 10.52 18 12Z",fill:"currentColor"}))}));var $r={grad:.9,turn:360,rad:360/(2*Math.PI)},qr=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Yr=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Xr=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Gr=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Jr=function(e){return{r:Xr(e.r,0,255),g:Xr(e.g,0,255),b:Xr(e.b,0,255),a:Xr(e.a)}},Kr=function(e){return{r:Yr(e.r),g:Yr(e.g),b:Yr(e.b),a:Yr(e.a,3)}},Qr=/^#([0-9a-f]{3,8})$/i,eo=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},to=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:60*(s<0?s+6:s),s:i?a/i*100:0,v:i/255*100,a:o}},no=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),u=i%6;return{r:255*[r,s,a,a,l,r][u],g:255*[l,r,r,s,a,a][u],b:255*[a,a,l,r,r,s][u],a:o}},ro=function(e){return{h:Gr(e.h),s:Xr(e.s,0,100),l:Xr(e.l,0,100),a:Xr(e.a)}},oo=function(e){return{h:Yr(e.h),s:Yr(e.s),l:Yr(e.l),a:Yr(e.a,3)}},io=function(e){return no((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},ao=function(e){return{h:(t=to(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},so=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,lo=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,uo=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,co=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,fo={string:[[function(e){var t=Qr.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Yr(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?Yr(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=uo.exec(e)||co.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Jr({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=so.exec(e)||lo.exec(e);if(!t)return null;var n,r,o=ro({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*($r[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return io(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=void 0===o?1:o;return qr(t)&&qr(n)&&qr(r)?Jr({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=void 0===o?1:o;if(!qr(t)||!qr(n)||!qr(r))return null;var a=ro({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return io(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!qr(t)||!qr(n)||!qr(r))return null;var a=function(e){return{h:Gr(e.h),s:Xr(e.s,0,100),v:Xr(e.v,0,100),a:Xr(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return no(a)},"hsv"]]},po=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},mo=function(e,t){var n=ao(e);return{h:n.h,s:Xr(n.s+100*t,0,100),l:n.l,a:n.a}},ho=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},vo=function(e,t){var n=ao(e);return{h:n.h,s:n.s,l:Xr(n.l+100*t,0,100),a:n.a}},go=function(){function e(e){this.parsed=function(e){return"string"==typeof e?po(e.trim(),fo.string):"object"==typeof e&&null!==e?po(e,fo.object):[null,void 0]}(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 Yr(ho(this.rgba),2)},e.prototype.isDark=function(){return ho(this.rgba)<.5},e.prototype.isLight=function(){return ho(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Kr(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?eo(Yr(255*o)):"","#"+eo(t)+eo(n)+eo(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return Kr(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Kr(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return oo(ao(this.rgba))},e.prototype.toHslString=function(){return t=(e=oo(ao(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=to(this.rgba),{h:Yr(e.h),s:Yr(e.s),v:Yr(e.v),a:Yr(e.a,3)};var e},e.prototype.invert=function(){return yo({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),yo(mo(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),yo(mo(this.rgba,-e))},e.prototype.grayscale=function(){return yo(mo(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),yo(vo(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),yo(vo(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?yo({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Yr(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=ao(this.rgba);return"number"==typeof e?yo({h:e,s:t.s,l:t.l,a:t.a}):Yr(t.h)},e.prototype.isEqual=function(e){return this.toHex()===yo(e).toHex()},e}(),yo=function(e){return e instanceof go?e:new go(e)};const bo=()=>{const[t,n]=(0,e.useState)("#3959e9"),[r,o]=(0,e.useState)(yo("#3959e9").darken(.05).toHex());return(0,e.useLayoutEffect)((()=>{var e;const t=document.querySelector("a.wp-has-current-submenu");if(!t)return;const r=null===(e=window.getComputedStyle(t))||void 0===e?void 0:e["background-color"];n(r),o(yo(r).darken(.05).toHex())}),[]),{mainColor:t,darkColor:r}},wo=localStorage.getItem("extendify-site-selection"),Eo={getItem:wo?()=>(localStorage.removeItem("extendify-site-selection"),wo):async()=>JSON.stringify(await Dn.get("assist/user-selection-data")),setItem:async(e,t)=>{return await(n=t,Dn.post("assist/user-selection-data",{data:n}));var n},removeItem:()=>{}},xo=Be(Ze(Ie((()=>({siteType:{},siteInformation:{title:void 0},feedbackMissingSiteType:"",feedbackMissingGoal:"",exitFeedback:void 0,siteTypeSearch:[],style:null,pages:[],plugins:[],goals:[]})),{name:"Extendify User Selections"}),{name:"extendify-site-selection",getStorage:()=>Eo})),Co={getItem:async()=>JSON.stringify(await Dn.get("assist/task-data")),setItem:async(e,t)=>{return await(n=t,Dn.post("assist/task-data",{data:n}));var n},removeItem:()=>{}},So=Be(Ze(Ie(((e,t)=>({activeTests:[],seenTasks:[],completedTasks:[],inProgressTasks:[],isCompleted(e){return t().completedTasks.some((t=>(null==t?void 0:t.id)===e))},completeTask(n){t().isCompleted(n)||e((e=>({completedTasks:[...e.completedTasks,{id:n,completedAt:(new Date).toISOString()}]})))},isSeen(e){return t().seenTasks.some((t=>(null==t?void 0:t.id)===e))},seeTask(n){if(t().isSeen(n))return;const r={id:n,firstSeenAt:(new Date).toISOString()};e((e=>({seenTasks:[...e.seenTasks,r]})))},uncompleteTask(t){e((e=>({completedTasks:e.completedTasks.filter((e=>e.id!==t))})))},toggleCompleted(e){t().isCompleted(e)?t().uncompleteTask(e):t().completeTask(e)}})),{name:"Extendify Assist Tasks"}),{name:"extendify-assist-tasks",getStorage:()=>Co}));var To=window.wp.blob,Lo=window.wp.coreData,Ao=window.wp.data,Po=window.wp.mediaUtils,Oo=window.wp.hooks;const Ro=n=>{let{type:o,title:i,actionLabel:a}=n;const[s,l]=(0,e.useState)(!1),[u,c]=(0,e.useState)(0),d=(0,Ao.useSelect)((e=>e(Lo.store).getMedia(u)),[u]),{mediaWidth:f,mediaHeight:p,mediaSourceUrl:m}=(e=>{var t,n,r,o;if(!e)return{};const i=(0,Oo.applyFilters)("editor.PostFeaturedImage.imageSize","large",e.id);if(i in(null!==(t=null==e||null===(n=e.media_details)||void 0===n?void 0:n.sizes)&&void 0!==t?t:{}))return{mediaWidth:e.media_details.sizes[i].width,mediaHeight:e.media_details.sizes[i].height,mediaSourceUrl:e.media_details.sizes[i].source_url};const a=(0,Oo.applyFilters)("editor.PostFeaturedImage.imageSize","thumbnail",e.id);return a in(null!==(r=null==e||null===(o=e.media_details)||void 0===o?void 0:o.sizes)&&void 0!==r?r:{})?{mediaWidth:e.media_details.sizes[a].width,mediaHeight:e.media_details.sizes[a].height,mediaSourceUrl:e.media_details.sizes[a].source_url}:{mediaWidth:e.media_details.width,mediaHeight:e.media_details.height,mediaSourceUrl:e.source_url}})(d);(0,e.useEffect)((()=>{Hr(o).then((e=>c(Number(e))))}),[o]);const h=e=>{c(e.id),_r(o,e.id)},v=e=>{(0,Po.uploadMedia)({allowedTypes:["image"],filesList:e,onFileChange(e){let[t]=e;(0,To.isBlobURL)(null==t?void 0:t.url)?l(!0):(h(t),l(!1))},onError(e){console.error({message:e})}})};return(0,e.createElement)("div",null,(0,e.createElement)(Vo,null,(0,e.createElement)(Po.MediaUpload,{title:i,onSelect:h,allowedTypes:["image"],value:u,modalClass:"",render:n=>{let{open:o}=n;return(0,e.createElement)("div",{className:"relative block"},(0,e.createElement)(t.Button,{className:"editor-post-featured-image__toggle extendify-assist-upload-logo p-0 m-0 border-0 cursor-pointer block w-full min-w-full text-center relative bg-gray-100 hover:bg-gray-300 hover:text-current h-48 items-center",onClick:o,"aria-label":u?(0,r.__)("Edit or update the image","extendify"):null,"aria-describedby":u?`image-${u}-describedby`:null},Boolean(u)&&d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.ResponsiveWrapper,{naturalWidth:f,naturalHeight:p,isInline:!0},(0,e.createElement)("img",{className:"block m-auto w-auto max-w-auto h-auto max-h-full absolute inset-0",src:m,alt:""}))),s&&(0,e.createElement)(t.Spinner,null),!u&&!s&&a),(0,e.createElement)(t.DropZone,{className:"w-full h-full absolute inset-0",onFilesDrop:v}))}})),Boolean(u)&&(0,e.createElement)("div",{className:"block mt-2"},(0,e.createElement)(Vo,null,u&&(0,e.createElement)(Po.MediaUpload,{title:i,onSelect:h,unstableFeaturedImageFlow:!0,allowedTypes:["image"],modalClass:"image__media-modal",render:n=>{let{open:o}=n;return(0,e.createElement)(t.Button,{onClick:o,variant:"secondary"},(0,r.__)("Replace image","extendify"))}}),(0,e.createElement)(t.Button,{onClick:()=>{c(0),_r(o,0)},variant:"link",className:"ml-4",isDestructive:!0},(0,r.__)("Remove image","extendify")))))},Vo=n=>{let{fallback:r=null,children:o}=n;const{checkingPermissions:i,hasUploadPermissions:a}=(0,Ao.useSelect)((e=>{const t=e("core");return{hasUploadPermissions:t.canUser("read","media"),checkingPermissions:!t.hasFinishedResolution("canUser",["read","media"])}}));return(0,e.createElement)(e.Fragment,null,i&&(0,e.createElement)(t.Spinner,null),!i&&a?o:r)},ko=t=>{let{setModalTitle:n}=t;return(0,e.useEffect)((()=>{n((0,r.__)("Upload site logo","extendify"))}),[n]),(0,e.createElement)(Ro,{type:"site_logo",title:(0,r.__)("Site logo","extendify"),actionLabel:(0,r.__)("Set site logo","extendify")})},Mo=t=>{let{popModal:n,setModalTitle:o}=t;const[i,a]=(0,e.useState)(void 0),[s,l]=(0,e.useState)(void 0),u=(0,e.useRef)(),{completeTask:c}=So(),{mainColor:d}=bo();return(0,e.useEffect)((()=>{o((0,r.__)("Add site description","extendify"))}),[o]),(0,e.useEffect)((()=>{Hr("blogdescription").then((e=>{a(e),l(e)}))}),[a]),(0,e.useEffect)((()=>{var e;null==u||null===(e=u.current)||void 0===e||e.focus()}),[s]),void 0===i?(0,e.createElement)("div",{className:"h-32"},(0,r.__)("Loading...","extendify")):(0,e.createElement)("form",{className:"gap-6 flex flex-col",onSubmit:e=>e.preventDefault()},(0,e.createElement)("div",null,(0,e.createElement)("label",{className:"block mb-1",htmlFor:"extendify-site-description-input"},(0,r.__)("Site description","extendify")),(0,e.createElement)("input",{ref:u,type:"text",name:"extendify-site-description-input",id:"extendify-site-description-input",className:"w-96 max-w-full border h-12 input-focus",onChange:e=>{a(e.target.value)},value:i,placeholder:(0,r.__)("Enter a site description...","extendify")})),(0,e.createElement)("div",null,(0,e.createElement)("button",{disabled:i===s,className:zr()("px-4 py-3 text-white button-focus border-0 rounded relative z-10 cursor-pointer w-1/5",{"opacity-50 cursor-default":i===s}),style:{backgroundColor:d},onClick:async()=>{await _r("blogdescription",i),c("site-description"),n()}},(0,r.__)("Save","extendify"))))},No=t=>{let{setModalTitle:n}=t;return(0,e.useEffect)((()=>{n((0,r.__)("Upload site icon","extendify"))}),[n]),(0,e.createElement)(Ro,{type:"site_icon",title:(0,r.__)("Site icon","extendify"),actionLabel:(0,r.__)("Set site icon","extendify")})},Do=()=>{const{seeTask:n,completedTasks:o}=So(),{tasks:i,loading:a,error:s}=(()=>{const{data:e,error:t}=Fr("tasks",(async()=>{const e=await Dn.get("assist/tasks");if(null==e||!e.data||!Array.isArray(e.data))throw console.error(e),new Error("Bad data");return e.data}));return{tasks:e,error:t,loading:!e&&!t}})(),[l,u]=(0,e.useState)(!1),c=(()=>{const[t,n]=(0,e.useState)(So.persist.hasHydrated);return(0,e.useEffect)((()=>{const e=So.persist.onFinishHydration((()=>n(!0)));return()=>{e()}}),[]),t})(),d=(()=>{const[t,n]=(0,e.useState)(xo.persist.hasHydrated);return(0,e.useEffect)((()=>{const e=xo.persist.onFinishHydration((()=>n(!0)));return()=>{e()}}),[]),t})(),f=xo((e=>{var t;return null===(t=e.plugins)||void 0===t?void 0:t.reduce(((e,t)=>{var n;return[...e,...null!==(n=null==t?void 0:t.goals)&&void 0!==n?n:[]]}),[])})),p=null==i?void 0:i.filter((e=>{var t,n;return null==e||null===(t=e.goals)||void 0===t||!t.length||(null==e||null===(n=e.goals)||void 0===n?void 0:n.some((e=>f.includes(e))))})),m=o.map((e=>e.id)),h=null==p?void 0:p.filter((e=>m.includes(e.slug))),v=null==p?void 0:p.filter((e=>!m.includes(e.slug)));return(0,e.useEffect)((()=>{null!=p&&p.length&&c&&p.forEach((e=>n(e.slug)))}),[p,n,c]),a||!c||!d||s?(0,e.createElement)("div",{className:"my-4 w-full flex items-center max-w-3/4 mx-auto bg-gray-100 p-12"},(0,e.createElement)(t.Spinner,null)):0===(null==i?void 0:i.length)||0===(null==p?void 0:p.length)?(0,e.createElement)("div",{className:"my-4 max-w-3/4 w-full mx-auto bg-gray-100 p-12"},(0,r.__)("No tasks found...","extendify")):(0,e.createElement)("div",{className:"my-4 max-w-3/4 w-full mx-auto bg-gray-100 p-12 pt-10"},(0,e.createElement)("div",{className:"mb-6 flex gap-0 flex-col"},(0,e.createElement)("h2",{className:"my-0 text-lg"},(0,r.__)("Get ready to go live","extendify")),(0,e.createElement)("div",{className:"flex gap-1"},(0,e.createElement)("span",null,(0,r.sprintf)((0,r.__)("%s completed","extendify"),h.length)),h.length>0&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",null,"·"),(0,e.createElement)("button",{className:"underline cursor-pointer p-0",onClick:()=>{u(!l)}},l?(0,r.__)("Hide","extendify"):(0,r.__)("Show","extendify"))))),(0,e.createElement)("div",{className:"w-full"},v.map((t=>(0,e.createElement)(jo,{key:t.slug,task:t})))),l&&(0,e.createElement)("div",{className:"completed-tasks w-full"},h.map((t=>(0,e.createElement)(jo,{key:t.slug,task:t})))))},jo=n=>{let{task:o}=n;const{isCompleted:i,toggleCompleted:a}=So();return(0,e.createElement)("div",{className:"p-3 flex gap-3 justify-between border border-solid border-gray-400 bg-white mt-4 relative items-center"},(0,e.createElement)("div",{className:"flex gap-3 w-4/5"},(0,e.createElement)("span",{className:"block mt-1 relative self-start"},(0,e.createElement)("input",{id:`task-${o.slug}`,type:"checkbox",className:zr()("hide-checkmark h-6 w-6 rounded-full border-gray-400 outline-none focus:ring-wp ring-partner-primary-bg ring-offset-2 ring-offset-white m-0 focus:outline-none focus:shadow-none",{"bg-partner-primary-bg":i(o.slug)}),checked:i(o.slug),value:o.slug,name:o.slug,onChange:()=>a(o.slug)}),(0,e.createElement)(Wr,{className:"text-white fill-current absolute h-6 w-6 block top-0"})),(0,e.createElement)("span",{className:"flex flex-col"},(0,e.createElement)("label",{htmlFor:`task-${o.slug}`,className:"text-base font-semibold"},(0,e.createElement)("span",{"aria-hidden":"true",className:"absolute inset-0"}),o.title),(0,e.createElement)("span",null,o.description," ",o.link&&(0,e.createElement)(t.ExternalLink,{className:"relative z-10",href:o.link},(0,r.__)("Learn more","extendify"))))),(0,e.createElement)(Fo,{task:o}))},Fo=t=>{let{task:n}=t;const{pushModal:o}=Hn(),{mainColor:i}=bo(),{isCompleted:a}=So();return"logo"===(null==n?void 0:n.slug)?(0,e.createElement)("button",{style:{backgroundColor:i},className:"px-4 py-3 text-white button-focus border-0 rounded relative z-10 cursor-pointer w-1/5",onClick:()=>o(ko)},a("logo")?(0,r.__)("Replace","extendify"):(0,r.__)("Upload","extendify")):"site-icon"===(null==n?void 0:n.slug)?(0,e.createElement)("button",{style:{backgroundColor:i},className:"px-4 py-3 text-white button-focus border-0 rounded relative z-10 cursor-pointer w-1/5",onClick:()=>o(No)},a("site-icon")?(0,r.__)("Replace","extendify"):(0,r.__)("Upload","extendify")):"site-description"===(null==n?void 0:n.slug)?(0,e.createElement)("button",{style:{backgroundColor:i},className:"px-4 py-3 text-white button-focus border-0 rounded relative z-10 cursor-pointer w-1/5",onClick:()=>o(Mo)},a("site-description")?(0,r.__)("Change","extendify"):(0,r.__)("Add","extendify")):"edit-homepage"===(null==n?void 0:n.slug)?(0,e.createElement)(_o,null):null},_o=()=>{const[t,n]=(0,e.useState)(0),{mainColor:o}=bo();return(0,e.useEffect)((()=>{Hr("page_on_front").then(n)}),[t]),t?(0,e.createElement)("button",{style:{backgroundColor:o},className:"px-4 py-3 text-white button-focus border-0 rounded relative z-10 cursor-pointer w-1/5 disabled:bg-gray-700",onClick:()=>{window.open(`${window.extAssistData.adminUrl}post.php?post=${t}&action=edit`,"_blank")}},(0,r.__)("Edit now","extendify")):null};function Ho(e,...t){e&&t.length>0&&e.classList.add(...t)}function Bo(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Io=(e=>(e.Ended="ended",e.Cancelled="cancelled",e))(Io||{});function Uo(){let[e]=(0,s.useState)(xe);return(0,s.useEffect)((()=>()=>e.dispose()),[e]),e}function zo({container:e,direction:t,classes:n,onStart:r,onStop:o}){let i=Z(),a=Uo(),s=w(t);b((()=>{let t=xe();a.add(t.dispose);let u=e.current;if(u&&"idle"!==s.current&&i.current)return t.dispose(),r.current(s.current),t.add(function(e,t,n,r){let o=n?"enter":"leave",i=xe(),a=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let s=l(o,{enter:()=>t.enter,leave:()=>t.leave}),u=l(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=l(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Bo(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Ho(e,...s,...c),i.nextFrame((()=>{Bo(e,...c),Ho(e,...u),function(e,t){let n=xe();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,a]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(i+a!==0){let r=[];r.push(n.addEventListener(e,"transitionrun",(o=>{o.target===o.currentTarget&&(r.splice(0).forEach((e=>e())),r.push(n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t("ended"),r.splice(0).forEach((e=>e())))})),n.addEventListener(e,"transitioncancel",(e=>{e.target===e.currentTarget&&(t("cancelled"),r.splice(0).forEach((e=>e())))}))))})))}else t("ended");n.add((()=>t("cancelled"))),n.dispose}(e,(n=>("ended"===n&&(Bo(e,...s),Ho(e,...t.entered)),a(n))))})),i.dispose}(u,n.current,"enter"===s.current,(e=>{t.dispose(),l(e,{[Io.Ended](){o.current(s.current)},[Io.Cancelled]:()=>{}})}))),t.dispose}),[t])}function Zo(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let Wo=(0,s.createContext)(null);Wo.displayName="TransitionContext";var $o,qo=(($o=qo||{}).Visible="visible",$o.Hidden="hidden",$o);let Yo=(0,s.createContext)(null);function Xo(e){return"children"in e?Xo(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Go(e,t){let n=w(e),r=(0,s.useRef)([]),o=Z(),i=Uo(),a=E(((e,t=d.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(l(t,{[d.Unmount](){r.current.splice(a,1)},[d.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!Xo(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),u=E((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,d.Unmount)})),c=(0,s.useRef)([]),f=(0,s.useRef)(Promise.resolve()),p=(0,s.useRef)({enter:[],leave:[],idle:[]}),m=E(((e,n,r)=>{c.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{c.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(p.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?f.current=f.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),h=E(((e,t,n)=>{Promise.all(p.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>n(t)))}));return(0,s.useMemo)((()=>({children:r,register:u,unregister:a,onStart:m,onStop:h,wait:f,chains:p})),[u,a,r,m,h,p,f])}function Jo(){}Yo.displayName="NestingContext";let Ko=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Qo(e){var t;let n={};for(let r of Ko)n[r]=null!=(t=e[r])?t:Jo;return n}let ei=c.RenderStrategy,ti=h((function(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i,enter:a,enterFrom:u,enterTo:c,entered:p,leave:m,leaveFrom:h,leaveTo:v,...g}=e,y=(0,s.useRef)(null),b=S(y,t),x=g.unmount?d.Unmount:d.Hidden,{show:C,appear:T,initial:L}=function(){let e=(0,s.useContext)(Wo);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[P,O]=(0,s.useState)(C?"visible":"hidden"),R=function(){let e=(0,s.useContext)(Yo);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:V,unregister:k}=R,M=(0,s.useRef)(null);(0,s.useEffect)((()=>V(y)),[V,y]),(0,s.useEffect)((()=>{if(x===d.Hidden&&y.current)return C&&"visible"!==P?void O("visible"):l(P,{hidden:()=>k(y),visible:()=>V(y)})}),[P,y,V,k,C,x]);let N=w({enter:Zo(a),enterFrom:Zo(u),enterTo:Zo(c),entered:Zo(p),leave:Zo(m),leaveFrom:Zo(h),leaveTo:Zo(v)}),D=function(e){let t=(0,s.useRef)(Qo(e));return(0,s.useEffect)((()=>{t.current=Qo(e)}),[e]),t}({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i}),j=A();(0,s.useEffect)((()=>{if(j&&"visible"===P&&null===y.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[y,P,j]);let F=L&&!T,_=!j||F||M.current===C?"idle":C?"enter":"leave",H=E((e=>l(e,{enter:()=>D.current.beforeEnter(),leave:()=>D.current.beforeLeave(),idle:()=>{}}))),B=E((e=>l(e,{enter:()=>D.current.afterEnter(),leave:()=>D.current.afterLeave(),idle:()=>{}}))),I=Go((()=>{O("hidden"),k(y)}),R);zo({container:y,classes:N,direction:_,onStart:w((e=>{I.onStart(y,e,H)})),onStop:w((e=>{I.onStop(y,e,B),"leave"===e&&!Xo(I)&&(O("hidden"),k(y))}))}),(0,s.useEffect)((()=>{!F||(x===d.Hidden?M.current=null:M.current=C)}),[C,F,P]);let U=g,z={ref:b};return s.createElement(Yo.Provider,{value:I},s.createElement(ge,{value:l(P,{visible:he.Open,hidden:he.Closed})},f({ourProps:z,theirProps:U,defaultTag:"div",features:ei,visible:"visible"===P,name:"Transition.Child"})))})),ni=h((function(e,t){let{show:n,appear:r=!1,unmount:o,...i}=e,a=(0,s.useRef)(null),u=S(a,t);A();let c=ve();if(void 0===n&&null!==c&&(n=l(c,{[he.Open]:!0,[he.Closed]:!1})),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,p]=(0,s.useState)(n?"visible":"hidden"),m=Go((()=>{p("hidden")})),[h,v]=(0,s.useState)(!0),g=(0,s.useRef)([n]);b((()=>{!1!==h&&g.current[g.current.length-1]!==n&&(g.current.push(n),v(!1))}),[g,n]);let y=(0,s.useMemo)((()=>({show:n,appear:r,initial:h})),[n,r,h]);(0,s.useEffect)((()=>{if(n)p("visible");else if(Xo(m)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&p("hidden")}else p("hidden")}),[n,m]);let w={unmount:o};return s.createElement(Yo.Provider,{value:m},s.createElement(Wo.Provider,{value:y},f({ourProps:{...w,as:s.Fragment,children:s.createElement(ti,{ref:u,...w,...i})},theirProps:{},defaultTag:s.Fragment,features:ei,visible:"visible"===d,name:"Transition"})))})),ri=h((function(e,t){let n=null!==(0,s.useContext)(Wo),r=null!==ve();return s.createElement(s.Fragment,null,!n&&r?s.createElement(ni,{ref:t,...e}):s.createElement(ti,{ref:t,...e}))})),oi=Object.assign(ni,{Child:ri,Root:ni});var ii=function(e,t){return ii=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ii(e,t)};function ai(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}ii(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var si=function(){return si=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},si.apply(this,arguments)};function li(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function ui(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function ci(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create;var di=("undefined"==typeof process||process.env,"production"),fi=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},pi={measureLayout:fi(["layout","layoutId","drag"]),animation:fi(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:fi(["exit"]),drag:fi(["drag","dragControls"]),focus:fi(["whileFocus"]),hover:fi(["whileHover","onHoverStart","onHoverEnd"]),tap:fi(["whileTap","onTap","onTapStart","onTapCancel"]),pan:fi(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:fi(["whileInView","onViewportEnter","onViewportLeave"])},mi=(0,s.createContext)({strict:!1}),hi=Object.keys(pi),vi=hi.length,gi=(0,s.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),yi=(0,s.createContext)({}),bi=(0,s.createContext)(null),wi="undefined"!=typeof document,Ei=wi?s.useLayoutEffect:s.useEffect,xi={current:null},Ci=!1;function Si(e,t,n,r){var o,i,a=(0,s.useContext)(mi),l=(0,s.useContext)(yi).visualElement,u=(0,s.useContext)(bi),c=(!Ci&&function(){if(Ci=!0,wi)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return xi.current=e.matches};e.addListener(t),t()}else xi.current=!1}(),o=ui((0,s.useState)(xi.current),1)[0],"never"!==(i=(0,s.useContext)(gi).reducedMotion)&&("always"===i||o)),d=(0,s.useRef)(void 0);r||(r=a.renderer),!d.current&&r&&(d.current=r(e,{visualState:t,parent:l,props:n,presenceId:null==u?void 0:u.id,blockInitialAnimation:!1===(null==u?void 0:u.initial),shouldReduceMotion:c}));var f=d.current;return Ei((function(){null==f||f.syncRender()})),(0,s.useEffect)((function(){var e;null===(e=null==f?void 0:f.animationState)||void 0===e||e.animateChanges()})),Ei((function(){return function(){return null==f?void 0:f.notifyUnmount()}}),[]),f}function Ti(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Li(e){return Array.isArray(e)}function Ai(e){return"string"==typeof e||Li(e)}function Pi(e,t,n,r,o){var i;return void 0===r&&(r={}),void 0===o&&(o={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),"string"==typeof t&&(t=null===(i=e.variants)||void 0===i?void 0:i[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),t}function Oi(e,t,n){var r=e.getProps();return Pi(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function Ri(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Ai(e.initial)||Ai(e.animate)||Ai(e.whileHover)||Ai(e.whileDrag)||Ai(e.whileTap)||Ai(e.whileFocus)||Ai(e.exit)}function Vi(e){return Boolean(Ri(e)||e.variants)}function ki(e){return Array.isArray(e)?e.join(" "):e}function Mi(e){var t=(0,s.useRef)(null);return null===t.current&&(t.current=e()),t.current}var Ni={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Di=1,ji=(0,s.createContext)({}),Fi=(0,s.createContext)({}),_i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ai(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(s.Component);function Hi(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,o=e.useRender,i=e.useVisualState,a=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?pi.projectionNodeConstructor=e[t]:pi[t].Component=e[t])}(t),(0,s.forwardRef)((function(e,l){var u=function(e){var t,n=e.layoutId,r=null===(t=(0,s.useContext)(ji))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=si(si({},e),{layoutId:u});var c=(0,s.useContext)(gi),d=null,f=function(e){var t=function(e,t){if(Ri(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Ai(n)?n:void 0,animate:Ai(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,s.useContext)(yi)),n=t.initial,r=t.animate;return(0,s.useMemo)((function(){return{initial:n,animate:r}}),[ki(n),ki(r)])}(e),p=c.isStatic?void 0:Mi((function(){if(Ni.hasEverUpdated)return Di++})),m=i(e,c.isStatic);return!c.isStatic&&wi&&(f.visualElement=Si(a,m,si(si({},c),e),n),function(e,t,n,r){var o,i=t.layoutId,a=t.layout,l=t.drag,u=t.dragConstraints,c=t.layoutScroll,d=(0,s.useContext)(Fi);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(o=n.parent)||void 0===o?void 0:o.projection),n.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:Boolean(l)||u&&Ti(u),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof a?a:"both",initialPromotionConfig:d,layoutScroll:c}))}(p,e,f.visualElement,r||pi.projectionNodeConstructor),d=function(e,t,n){var r=[],o=(0,s.useContext)(mi);if(!t)return null;"production"!==di&&n&&o.strict;for(var i=0;i<vi;i++){var a=hi[i],l=pi[a],u=l.isEnabled,c=l.Component;u(e)&&c&&r.push(s.createElement(c,si({key:a},e,{visualElement:t})))}return r}(e,f.visualElement,t)),s.createElement(_i,{visualElement:f.visualElement,props:si(si({},c),e)},d,s.createElement(yi.Provider,{value:f},o(a,e,p,function(e,t,n){return(0,s.useCallback)((function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Ti(n)&&(n.current=r))}),[t])}(m,f.visualElement,l),m,c.isStatic,f.visualElement)))}))}function Bi(e){function t(t,n){return void 0===n&&(n={}),Hi(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var Ii=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Ui(e){return"string"==typeof e&&!e.includes("-")&&!!(Ii.indexOf(e)>-1||/[A-Z]/.test(e))}var zi={},Zi=["","X","Y","Z"],Wi=["transformPerspective","x","y","z"];function $i(e,t){return Wi.indexOf(e)-Wi.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return Zi.forEach((function(t){return Wi.push(e+t)}))}));var qi=new Set(Wi);function Yi(e){return qi.has(e)}var Xi=new Set(["originX","originY","originZ"]);function Gi(e){return Xi.has(e)}function Ji(e,t){var n=t.layout,r=t.layoutId;return Yi(e)||Gi(e)||(n||void 0!==r)&&(!!zi[e]||"opacity"===e)}var Ki=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},Qi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function ea(e){return e.startsWith("--")}var ta=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const na=(e,t)=>n=>Math.max(Math.min(n,t),e),ra=e=>e%1?Number(e.toFixed(5)):e,oa=/(-)?([\d]*\.?[\d])+/g,ia=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,aa=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function sa(e){return"string"==typeof e}const la=e=>({test:t=>sa(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ua=la("deg"),ca=la("%"),da=la("px"),fa=la("vh"),pa=la("vw"),ma=Object.assign(Object.assign({},ca),{parse:e=>ca.parse(e)/100,transform:e=>ca.transform(100*e)}),ha={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},va=Object.assign(Object.assign({},ha),{transform:na(0,1)}),ga=Object.assign(Object.assign({},ha),{default:1});var ya=si(si({},ha),{transform:Math.round}),ba={borderWidth:da,borderTopWidth:da,borderRightWidth:da,borderBottomWidth:da,borderLeftWidth:da,borderRadius:da,radius:da,borderTopLeftRadius:da,borderTopRightRadius:da,borderBottomRightRadius:da,borderBottomLeftRadius:da,width:da,maxWidth:da,height:da,maxHeight:da,size:da,top:da,right:da,bottom:da,left:da,padding:da,paddingTop:da,paddingRight:da,paddingBottom:da,paddingLeft:da,margin:da,marginTop:da,marginRight:da,marginBottom:da,marginLeft:da,rotate:ua,rotateX:ua,rotateY:ua,rotateZ:ua,scale:ga,scaleX:ga,scaleY:ga,scaleZ:ga,skew:ua,skewX:ua,skewY:ua,distance:da,translateX:da,translateY:da,translateZ:da,x:da,y:da,z:da,perspective:da,transformPerspective:da,opacity:va,originX:ma,originY:ma,originZ:da,zIndex:ya,fillOpacity:va,strokeOpacity:va,numOctaves:ya};function wa(e,t,n,r){var o,i=e.style,a=e.vars,s=e.transform,l=e.transformKeys,u=e.transformOrigin;l.length=0;var c=!1,d=!1,f=!0;for(var p in t){var m=t[p];if(ea(p))a[p]=m;else{var h=ba[p],v=ta(m,h);if(Yi(p)){if(c=!0,s[p]=v,l.push(p),!f)continue;m!==(null!==(o=h.default)&&void 0!==o?o:0)&&(f=!1)}else Gi(p)?(u[p]=v,d=!0):i[p]=v}}c?i.transform=function(e,t,n,r){var o=e.transform,i=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,l=t.allowTransformNone,u=void 0===l||l,c="";i.sort($i);for(var d=!1,f=i.length,p=0;p<f;p++){var m=i[p];c+="".concat(Qi[m]||m,"(").concat(o[m],") "),"z"===m&&(d=!0)}return!d&&s?c+="translateZ(0)":c=c.trim(),r?c=r(o,n?"":c):u&&n&&(c="none"),c}(e,n,f,r):r?i.transform=r({},""):!t.transform&&i.transform&&(i.transform="none"),d&&(i.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,o=void 0===r?"50%":r,i=e.originZ,a=void 0===i?0:i;return"".concat(n," ").concat(o," ").concat(a)}(u))}function Ea(e,t,n){for(var r in t)Ki(t[r])||Ji(r,n)||(e[r]=t[r])}function xa(e,t,n){var r={},o=function(e,t,n){var r={};return Ea(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return(0,s.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};wa(e,t,{enableHardwareAcceleration:!n},r);var o=e.style;return si(si({},e.vars),o)}),[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=o,r}var Ca=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Sa(e){return Ca.has(e)}var Ta,La=function(e){return!Sa(e)};try{(Ta=require("@emotion/is-prop-valid").default)&&(La=function(e){return e.startsWith("on")?!Sa(e):Ta(e)})}catch(Cr){}function Aa(e,t,n){return"string"==typeof e?e:da.transform(t+n*e)}var Pa={offset:"stroke-dashoffset",array:"stroke-dasharray"},Oa={offset:"strokeDashoffset",array:"strokeDasharray"};function Ra(e,t,n,r){var o=t.attrX,i=t.attrY,a=t.originX,s=t.originY,l=t.pathLength,u=t.pathSpacing,c=void 0===u?1:u,d=t.pathOffset,f=void 0===d?0:d;wa(e,li(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,m=e.style,h=e.dimensions;p.transform&&(h&&(m.transform=p.transform),delete p.transform),h&&(void 0!==a||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,n){var r=Aa(t,e.x,e.width),o=Aa(n,e.y,e.height);return"".concat(r," ").concat(o)}(h,void 0!==a?a:.5,void 0!==s?s:.5)),void 0!==o&&(p.x=o),void 0!==i&&(p.y=i),void 0!==l&&function(e,t,n,r,o){void 0===n&&(n=1),void 0===r&&(r=0),void 0===o&&(o=!0),e.pathLength=1;var i=o?Pa:Oa;e[i.offset]=da.transform(-r);var a=da.transform(t),s=da.transform(n);e[i.array]="".concat(a," ").concat(s)}(p,l,c,f,!1)}var Va=function(){return si(si({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function ka(e,t){var n=(0,s.useMemo)((function(){var n=Va();return Ra(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),si(si({},n.attrs),{style:si({},n.style)})}),[t]);if(e.style){var r={};Ea(r,e.style,e),n.style=si(si({},r),n.style)}return n}function Ma(e){return void 0===e&&(e=!1),function(t,n,r,o,i,a){var l=i.latestValues,u=(Ui(t)?ka:xa)(n,l,a),c=function(e,t,n){var r={};for(var o in e)(La(o)||!0===n&&Sa(o)||!t&&!Sa(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),d=si(si(si({},c),u),{ref:o});return r&&(d["data-projection-id"]=r),(0,s.createElement)(t,d)}}var Na=/([a-z])([A-Z])/g,Da=function(e){return e.replace(Na,"$1-$2").toLowerCase()};function ja(e,t,n,r){var o=t.style,i=t.vars;for(var a in Object.assign(e.style,o,r&&r.getProjectionStyles(n)),i)e.style.setProperty(a,i[a])}var Fa=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function _a(e,t,n,r){for(var o in ja(e,t,void 0,r),t.attrs)e.setAttribute(Fa.has(o)?o:Da(o),t.attrs[o])}function Ha(e){var t=e.style,n={};for(var r in t)(Ki(t[r])||Ji(r,e))&&(n[r]=t[r]);return n}function Ba(e){var t=Ha(e);for(var n in e)Ki(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Ia(e){return"object"==typeof e&&"function"==typeof e.start}var Ua=function(e){return Array.isArray(e)},za=function(e){return Ua(e)?e[e.length-1]||0:e};function Za(e){var t=Ki(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}function Wa(e,t,n,r){var o=e.scrapeMotionValuesFromProps,i=e.createRenderState,a=e.onMount,s={latestValues:qa(t,n,r,o),renderState:i()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var $a=function(e){return function(t,n){var r=(0,s.useContext)(yi),o=(0,s.useContext)(bi);return n?Wa(e,t,r,o):Mi((function(){return Wa(e,t,r,o)}))}};function qa(e,t,n,r){var o={},i=!1===(null==n?void 0:n.initial),a=r(e);for(var s in a)o[s]=Za(a[s]);var l=e.initial,u=e.animate,c=Ri(e),d=Vi(e);t&&d&&!c&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=u||(u=t.animate));var f=i||!1===l,p=f?u:l;return p&&"boolean"!=typeof p&&!Ia(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=Pi(e,t);if(n){var r=n.transitionEnd;n.transition;var i=li(n,["transitionEnd","transition"]);for(var a in i){var s=i[a];Array.isArray(s)&&(s=s[f?s.length-1:0]),null!==s&&(o[a]=s)}for(var a in r)o[a]=r[a]}})),o}var Ya,Xa={useVisualState:$a({scrapeMotionValuesFromProps:Ba,createRenderState:Va,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}Ra(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),_a(t,r)}})},Ga={useVisualState:$a({scrapeMotionValuesFromProps:Ha,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function Ja(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Ka(e,t,n,r){(0,s.useEffect)((function(){var o=e.current;if(n&&o)return Ja(o,t,n,r)}),[e,t,n,r])}function Qa(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function es(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(Ya||(Ya={}));var ts={pageX:0,pageY:0};function ns(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||ts;return{x:n[t+"X"],y:n[t+"Y"]}}function rs(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function os(e,t){return void 0===t&&(t="page"),{point:es(e)?ns(e,t):rs(e,t)}}var is=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,os(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},as={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},ss={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function ls(e){return wi&&null===window.onpointerdown?e:wi&&null===window.ontouchstart?ss[e]:wi&&null===window.onmousedown?as[e]:e}function us(e,t,n,r){return Ja(e,ls(t),is(n,"pointerdown"===t),r)}function cs(e,t,n,r){return Ka(e,ls(t),n&&is(n,"pointerdown"===t),r)}function ds(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var fs=ds("dragHorizontal"),ps=ds("dragVertical");function ms(e){var t=!1;if("y"===e)t=ps();else if("x"===e)t=fs();else{var n=fs(),r=ps();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function hs(){var e=ms(!0);return!e||(e(),!1)}function vs(e,t,n){return function(r,o){var i;Qa(r)&&!hs()&&(null===(i=e.animationState)||void 0===i||i.setActive(Ya.Hover,t),null==n||n(r,o))}}var gs=function(e,t){return!!t&&(e===t||gs(e,t.parentElement))};function ys(e){return(0,s.useEffect)((function(){return function(){return e()}}),[])}const bs=(e,t)=>n=>t(e(n)),ws=(...e)=>e.reduce(bs);var Es=new Set,xs=new WeakMap,Cs=new WeakMap,Ss=function(e){var t;null===(t=xs.get(e.target))||void 0===t||t(e)},Ts=function(e){e.forEach(Ss)};var Ls={some:0,all:1};function As(e,t,n,r){var o=r.root,i=r.margin,a=r.amount,l=void 0===a?"some":a,u=r.once;(0,s.useEffect)((function(){if(e){var r={root:null==o?void 0:o.current,rootMargin:i,threshold:"number"==typeof l?l:Ls[l]};return function(e,t,n){var r=function(e){var t=e.root,n=li(e,["root"]),r=t||document;Cs.has(r)||Cs.set(r,{});var o=Cs.get(r),i=JSON.stringify(n);return o[i]||(o[i]=new IntersectionObserver(Ts,si({root:t},n))),o[i]}(t);return xs.set(e,n),r.observe(e),function(){xs.delete(e),r.unobserve(e)}}(n.getInstance(),r,(function(e){var r,o=e.isIntersecting;if(t.isInView!==o&&(t.isInView=o,!u||o||!t.hasEnteredView)){o&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(Ya.InView,o);var i=n.getProps(),a=o?i.onViewportEnter:i.onViewportLeave;null==a||a(e)}}))}}),[e,o,i,l])}function Ps(e,t,n,r){var o=r.fallback,i=void 0===o||o;(0,s.useEffect)((function(){var r;e&&i&&("production"!==di&&(r="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",Es.has(r)||(console.warn(r),Es.add(r))),requestAnimationFrame((function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(Ya.InView,!0)})))}),[e])}var Os=function(e){return function(t){return e(t),null}},Rs={inView:Os((function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,o=e.onViewportLeave,i=e.viewport,a=void 0===i?{}:i,l=(0,s.useRef)({hasEnteredView:!1,isInView:!1}),u=Boolean(n||r||o);a.once&&l.current.hasEnteredView&&(u=!1),("undefined"==typeof IntersectionObserver?Ps:As)(u,l.current,t,a)})),tap:Os((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.whileTap,i=e.visualElement,a=t||n||r||o,l=(0,s.useRef)(!1),u=(0,s.useRef)(null),c={passive:!(n||t||r||h)};function d(){var e;null===(e=u.current)||void 0===e||e.call(u),u.current=null}function f(){var e;return d(),l.current=!1,null===(e=i.animationState)||void 0===e||e.setActive(Ya.Tap,!1),!hs()}function p(e,n){f()&&(gs(i.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function m(e,t){f()&&(null==r||r(e,t))}function h(e,t){var r;d(),l.current||(l.current=!0,u.current=ws(us(window,"pointerup",p,c),us(window,"pointercancel",m,c)),null===(r=i.animationState)||void 0===r||r.setActive(Ya.Tap,!0),null==n||n(e,t))}cs(i,"pointerdown",a?h:void 0,c),ys(d)})),focus:Os((function(e){var t=e.whileFocus,n=e.visualElement;Ka(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Ya.Focus,!0)}:void 0),Ka(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Ya.Focus,!1)}:void 0)})),hover:Os((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;cs(o,"pointerenter",t||r?vs(o,!0,t):void 0,{passive:!t}),cs(o,"pointerleave",n||r?vs(o,!1,n):void 0,{passive:!n})}))},Vs=0,ks=function(){return Vs++};function Ms(){var e=(0,s.useContext)(bi);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=Mi(ks);return(0,s.useEffect)((function(){return r(o)}),[]),!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function Ns(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Ds=(e,t,n)=>Math.min(Math.max(n,e),t);function js(e,t){return e*Math.sqrt(1-t*t)}const Fs=["duration","bounce"],_s=["stiffness","damping","mass"];function Hs(e,t){return t.some((t=>void 0!==e[t]))}function Bs(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,i=li(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Hs(e,_s)&&Hs(e,Fs)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,a=1-t;a=Ds(.05,1,a),e=Ds(.01,10,e/1e3),a<1?(o=t=>{const r=t*a,o=r*e;return.001-(r-n)/js(t,a)*Math.exp(-o)},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=js(Math.pow(t,2),a);return(.001-o(t)>0?-1:1)*((i-s)*l)/u}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(i),p=Is,m=Is;function h(){const e=c?-c/1e3:0,r=n-t,i=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),i<1){const t=js(a,i);p=o=>{const s=Math.exp(-i*a*o);return n-s*((e+i*a*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},m=n=>{const o=Math.exp(-i*a*n);return i*a*o*(Math.sin(t*n)*(e+i*a*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+i*a*r)-t*r*Math.sin(t*n))}}else if(1===i)p=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{const t=a*Math.sqrt(i*i-1);p=o=>{const s=Math.exp(-i*a*o),l=Math.min(t*o,300);return n-s*((e+i*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return h(),{next:e=>{const t=p(e);if(f)a.done=e>=d;else{const i=1e3*m(e),s=Math.abs(i)<=r,l=Math.abs(n-t)<=o;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],h()}}}Bs.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const Is=e=>0,Us=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},zs=(e,t,n)=>-n*e+n*t+e,Zs=(e,t)=>n=>Boolean(sa(n)&&aa.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Ws=(e,t,n)=>r=>{if(!sa(r))return r;const[o,i,a,s]=r.match(oa);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},$s=na(0,255),qs=Object.assign(Object.assign({},ha),{transform:e=>Math.round($s(e))}),Ys={test:Zs("rgb","red"),parse:Ws("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+qs.transform(e)+", "+qs.transform(t)+", "+qs.transform(n)+", "+ra(va.transform(r))+")"},Xs={test:Zs("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Ys.transform},Gs={test:Zs("hsl","hue"),parse:Ws("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ca.transform(ra(t))+", "+ca.transform(ra(n))+", "+ra(va.transform(r))+")"};function Js(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ks({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=Js(s,r,e+1/3),i=Js(s,r,e),a=Js(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}const Qs=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},el=[Xs,Ys,Gs],tl=e=>el.find((t=>t.test(e))),nl=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,rl=(e,t)=>{let n=tl(e),r=tl(t);nl(e),nl(t);let o=n.parse(e),i=r.parse(t);n===Gs&&(o=Ks(o),n=Ys),r===Gs&&(i=Ks(i),r=Ys);const a=Object.assign({},o);return e=>{for(const t in a)"alpha"!==t&&(a[t]=Qs(o[t],i[t],e));return a.alpha=zs(o.alpha,i.alpha,e),n.transform(a)}},ol={test:e=>Ys.test(e)||Xs.test(e)||Gs.test(e),parse:e=>Ys.test(e)?Ys.parse(e):Gs.test(e)?Gs.parse(e):Xs.parse(e),transform:e=>sa(e)?e:e.hasOwnProperty("red")?Ys.transform(e):Gs.transform(e)},il="${c}",al="${n}";function sl(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(ia);r&&(n=r.length,e=e.replace(ia,il),t.push(...r.map(ol.parse)));const o=e.match(oa);return o&&(e=e.replace(oa,al),t.push(...o.map(ha.parse))),{values:t,numColors:n,tokenised:e}}function ll(e){return sl(e).values}function ul(e){const{values:t,numColors:n,tokenised:r}=sl(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?il:al,r<n?ol.transform(e[r]):ra(e[r]));return t}}const cl=e=>"number"==typeof e?0:e,dl={test:function(e){var t,n,r,o;return isNaN(e)&&sa(e)&&(null!==(n=null===(t=e.match(oa))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(ia))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:ll,createTransformer:ul,getAnimatableNone:function(e){const t=ll(e);return ul(e)(t.map(cl))}},fl=e=>"number"==typeof e;function pl(e,t){return fl(e)?n=>zs(e,t,n):ol.test(e)?rl(e,t):gl(e,t)}const ml=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>pl(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},hl=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=pl(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function vl(e){const t=dl.parse(e),n=t.length;let r=0,o=0,i=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?i++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:i}}const gl=(e,t)=>{const n=dl.createTransformer(t),r=vl(e),o=vl(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?ws(ml(r.parsed,o.parsed),n):n=>`${n>0?t:e}`},yl=(e,t)=>n=>zs(e,t,n);function bl(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;t.length,!r||!Array.isArray(r)||r.length,e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=function(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?yl:"string"==typeof e?ol.test(e)?rl:gl:Array.isArray(e)?ml:"object"==typeof e?hl:void 0}(e[0]),i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;i=ws(e,i)}r.push(i)}return r}(t,r,o),s=2===i?function([e,t],[n]){return r=>n(Us(e,t,r))}(e,a):function(e,t){const n=e.length,r=n-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[r]&&(i=r-1,a=!0),!a){let t=1;for(;t<n&&!(e[t]>o||t===r);t++);i=t-1}const s=Us(e[i],e[i+1],o);return t[i](s)}}(e,a);return n?t=>s(Ds(e[0],e[i-1],t)):s}const wl=e=>t=>1-e(1-t),El=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,xl=e=>t=>t*t*((e+1)*t-e),Cl=e=>e,Sl=(2,e=>Math.pow(e,2));const Tl=wl(Sl),Ll=El(Sl),Al=e=>1-Math.sin(Math.acos(e)),Pl=wl(Al),Ol=El(Pl),Rl=xl(1.525),Vl=wl(Rl),kl=El(Rl),Ml=(e=>{const t=xl(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Nl=e=>{if(1===e||0===e)return e;const t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},Dl=wl(Nl);function jl(e,t){return e.map((()=>t||Ll)).splice(0,e.length-1)}function Fl({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map((e=>e*t))}(r&&r.length===a.length?r:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(a),o);function l(){return bl(s,a,{ease:Array.isArray(n)?n:jl(a,n)})}let u=l();return{next:e=>(i.value=u(e),i.done=e>=o,i),flipTarget:()=>{a.reverse(),u=l()}}}const _l={keyframes:Fl,spring:Bs,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let s=n*e;const l=t+s,u=void 0===i?l:i(l);return u!==l&&(s=u-t),{next:e=>{const t=-s*Math.exp(-e/r);return a.done=!(t>o||t<-o),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}},Hl=1/60*1e3,Bl="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Il="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(Bl())),Hl);let Ul=!0,zl=!1,Zl=!1;const Wl={delta:0,timestamp:0},$l=["read","update","preRender","render","postRender"],ql=$l.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,u=l?t:n;return i&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>zl=!0)),e)),{}),Yl=$l.reduce(((e,t)=>{const n=ql[t];return e[t]=(e,t=!1,r=!1)=>(zl||Ql(),n.schedule(e,t,r)),e}),{}),Xl=$l.reduce(((e,t)=>(e[t]=ql[t].cancel,e)),{}),Gl=$l.reduce(((e,t)=>(e[t]=()=>ql[t].process(Wl),e)),{}),Jl=e=>ql[e].process(Wl),Kl=e=>{zl=!1,Wl.delta=Ul?Hl:Math.max(Math.min(e-Wl.timestamp,40),1),Wl.timestamp=e,Zl=!0,$l.forEach(Jl),Zl=!1,zl&&(Ul=!1,Il(Kl))},Ql=()=>{zl=!0,Ul=!0,Zl||Il(Kl)},eu=()=>Wl;var tu=Yl;function nu(e,t,n=0){return e-t-n}const ru=e=>{const t=({delta:t})=>e(t);return{start:()=>tu.update(t,!0),stop:()=>Xl.update(t)}};function ou(e){var t,n,{from:r,autoplay:o=!0,driver:i=ru,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,h=li(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let v,g,y,{to:b}=h,w=0,E=h.duration,x=!1,C=!0;const S=function(e){if(Array.isArray(e.to))return Fl;if(_l[e.type])return _l[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Fl:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Bs:Fl}(h);(null===(n=(t=S).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(y=bl([0,100],[r,b],{clamp:!1}),r=0,b=100);const T=S(Object.assign(Object.assign({},h),{from:r,to:b}));return o&&(null==c||c(),v=i((function(e){if(C||(e=-e),a+=e,!x){const e=T.next(Math.max(0,a));g=e.value,y&&(g=y(g)),x=C?e.done:a<=0}null==m||m(g),x&&(0===w&&(null!=E||(E=a)),w<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(a,E,u,C)&&(w++,"reverse"===l?(C=w%2==0,a=function(e,t,n=0,r=!0){return r?nu(t+-e,t,n):t-(e-t)+n}(a,E,u,C)):(a=nu(a,E,u),"mirror"===l&&T.flipTarget()),x=!1,p&&p()):(v.stop(),f&&f()))})),v.start()),{stop:()=>{null==d||d(),v.stop()}}}function iu(e,t){return t?e*(1e3/t):0}var au=function(e){return 1e3*e};const su=(e,t)=>1-3*t+3*e,lu=(e,t)=>3*t-6*e,uu=e=>3*e,cu=(e,t,n)=>((su(t,n)*e+lu(t,n))*e+uu(t))*e,du=(e,t,n)=>3*su(t,n)*e*e+2*lu(t,n)*e+uu(t),fu=.1;function pu(e,t,n,r){if(e===t&&n===r)return Cl;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=cu(t*fu,e,n);return i=>0===i||1===i?i:cu(function(t){let r=0,i=1;for(;10!==i&&o[i]<=t;++i)r+=fu;--i;const a=r+(t-o[i])/(o[i+1]-o[i])*fu,s=du(a,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=du(t,n,r);if(0===o)return t;t-=(cu(t,n,r)-e)/o}return t}(t,a,e,n):0===s?a:function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=cu(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<10);return a}(t,r,r+fu,e,n)}(i),t,r)}var mu={linear:Cl,easeIn:Sl,easeInOut:Ll,easeOut:Tl,circIn:Al,circInOut:Ol,circOut:Pl,backIn:Rl,backInOut:kl,backOut:Vl,anticipate:Ml,bounceIn:Dl,bounceInOut:e=>e<.5?.5*(1-Nl(1-2*e)):.5*Nl(2*e-1)+.5,bounceOut:Nl},hu=function(e){if(Array.isArray(e)){e.length;var t=ui(e,4);return pu(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),mu[e]):e},vu=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!dl.test(t)||t.startsWith("url(")))},gu=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},yu=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},bu=function(){return{type:"keyframes",ease:"linear",duration:.3}},wu=function(e){return{type:"keyframes",duration:.8,values:e}},Eu={x:gu,y:gu,z:gu,rotate:gu,rotateX:gu,rotateY:gu,rotateZ:gu,scaleX:yu,scaleY:yu,scale:yu,opacity:bu,backgroundColor:bu,color:bu,default:yu};const xu=new Set(["brightness","contrast","saturate","opacity"]);function Cu(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(oa)||[];if(!r)return e;const o=n.replace(r,"");let i=xu.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Su=/([a-z-]*)\(.*?\)/g,Tu=Object.assign(Object.assign({},dl),{getAnimatableNone:e=>{const t=e.match(Su);return t?t.map(Cu).join(" "):e}});var Lu=si(si({},ba),{color:ol,backgroundColor:ol,outlineColor:ol,fill:ol,stroke:ol,borderColor:ol,borderTopColor:ol,borderRightColor:ol,borderBottomColor:ol,borderLeftColor:ol,filter:Tu,WebkitFilter:Tu}),Au=function(e){return Lu[e]};function Pu(e,t){var n,r=Au(e);return r!==Tu&&(r=dl),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function Ou(e,t,n){var r,o,i,a;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=ci([],ui(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=li(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=si(si({},e),(o=n,i=t.to,a=Ua(i)?wu:Eu[o]||Eu.default,si({to:i},a(i))))),si(si({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,i=e.loop,a=li(e,["ease","times","yoyo","flip","loop"]),s=si({},a);return n&&(s.offset=n),a.duration&&(s.duration=au(a.duration)),a.repeatDelay&&(s.repeatDelay=au(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(hu):hu(t)),"tween"===a.type&&(s.type="keyframes"),(r||i||o)&&(r?s.repeatType="reverse":i?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=i||r||o||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}(e))}function Ru(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Vu(e){return"number"==typeof e?0:Pu("",e)}function ku(e,t){return e[t]||e.default||e}function Mu(e,t,n,r){return void 0===r&&(r={}),t.start((function(o){var i,a,s=function(e,t,n,r,o){var i,a=ku(r,e),s=null!==(i=a.from)&&void 0!==i?i:t.get(),l=vu(e,n);"none"===s&&l&&"string"==typeof n?s=Pu(e,n):Ru(s)&&"string"==typeof n?s=Vu(n):!Array.isArray(n)&&Ru(n)&&"string"==typeof s&&(n=Vu(s));var u=vu(e,s);return"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property."),u&&l&&!1!==a.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===a.type||"decay"===a.type?function({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:p}){let m;function h(e){return void 0!==n&&e<n||void 0!==r&&e>r}function v(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function g(e){null==m||m.stop(),m=ou(Object.assign(Object.assign({},e),{driver:c,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:p}))}function y(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(h(e))y({from:e,velocity:t,to:v(e)});else{let r=o*t+e;void 0!==u&&(r=u(r));const a=v(r),s=a===n?-1:1;let c,d;const f=e=>{c=d,d=e,t=iu(e-c,eu().delta),(1===s&&e>a||-1===s&&e<a)&&y({from:e,to:a,velocity:t})};g({type:"decay",from:e,velocity:t,timeConstant:i,power:o,restDelta:l,modifyTarget:u,onUpdate:h(r)?f:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(si(si({},r),a)):ou(si(si({},Ou(a,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=a.onUpdate)||void 0===t||t.call(a,e)},onComplete:function(){var e;r.onComplete(),null===(e=a.onComplete)||void 0===e||e.call(a)}}))}:function(){var e,r,i=za(n);return t.set(i),o(),null===(e=null==a?void 0:a.onUpdate)||void 0===e||e.call(a,i),null===(r=null==a?void 0:a.onComplete)||void 0===r||r.call(a),{stop:function(){}}}}(e,t,n,r,o),l=function(e,t){var n,r;return null!==(r=null!==(n=(ku(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return a=s()};return l?i=window.setTimeout(u,au(l)):u(),function(){clearTimeout(i),null==a||a.stop()}}))}var Nu=function(e){return/^\-?\d*\.?\d+$/.test(e)},Du=function(e){return/^0[^.\s]+$/.test(e)};function ju(e,t){-1===e.indexOf(t)&&e.push(t)}function Fu(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var _u=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return ju(this.subscriptions,e),function(){return Fu(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var i=this.subscriptions[o];i&&i(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Hu=function(){function e(e){var t,n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new _u,this.velocityUpdateSubscribers=new _u,this.renderSubscribers=new _u,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=eu(),o=r.delta,i=r.timestamp;n.lastUpdated!==i&&(n.timeDelta=o,n.lastUpdated=i,tu.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return tu.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?iu(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Bu(e){return new Hu(e)}var Iu=function(e){return function(t){return t.test(e)}},Uu=[ha,da,ca,ua,pa,fa,{test:function(e){return"auto"===e},parse:function(e){return e}}],zu=function(e){return Uu.find(Iu(e))},Zu=ci(ci([],ui(Uu),!1),[ol,dl],!1),Wu=function(e){return Zu.find(Iu(e))};function $u(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Bu(n))}function qu(e,t){if(t)return(t[e]||t.default||t).from}function Yu(e,t,n){var r;void 0===n&&(n={});var o=Oi(e,t,n.custom),i=(o||{}).transition,a=void 0===i?e.getDefaultTransition()||{}:i;n.transitionOverride&&(a=n.transitionOverride);var s=o?function(){return Xu(e,o,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=a.delayChildren,i=void 0===o?0:o,s=a.staggerChildren,l=a.staggerDirection;return function(e,t,n,r,o,i){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=1);var a=[],s=(e.variantChildren.size-1)*r,l=1===o?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(Gu).forEach((function(e,r){a.push(Yu(e,t,si(si({},i),{delay:n+l(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(a)}(e,t,i+r,s,l,n)}:function(){return Promise.resolve()},u=a.when;if(u){var c=ui("beforeChildren"===u?[s,l]:[l,s],2),d=c[0],f=c[1];return d().then(f)}return Promise.all([s(),l(n.delay)])}function Xu(e,t,n){var r,o=void 0===n?{}:n,i=o.delay,a=void 0===i?0:i,s=o.transitionOverride,l=o.type,u=e.makeTargetAnimatable(t),c=u.transition,d=void 0===c?e.getDefaultTransition():c,f=u.transitionEnd,p=li(u,["transition","transitionEnd"]);s&&(d=s);var m=[],h=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var v in p){var g=e.getValue(v),y=p[v];if(!(!g||void 0===y||h&&Ju(h,v))){var b=si({delay:a},d);e.shouldReduceMotion&&Yi(v)&&(b=si(si({},b),{type:!1,delay:0}));var w=Mu(v,g,y,b);m.push(w)}}return Promise.all(m).then((function(){f&&function(e,t){var n=Oi(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,i=void 0===o?{}:o;r.transition;var a=li(r,["transitionEnd","transition"]);for(var s in a=si(si({},a),i))$u(e,s,za(a[s]))}(e,f)}))}function Gu(e,t){return e.sortNodePosition(t)}function Ju(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var Ku=[Ya.Animate,Ya.InView,Ya.Focus,Ya.Hover,Ya.Tap,Ya.Drag,Ya.Exit],Qu=ci([],ui(Ku),!1).reverse(),ec=Ku.length;function tc(e){var t=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var o=t.map((function(t){return Yu(e,t,n)}));r=Promise.all(o)}else if("string"==typeof t)r=Yu(e,t,n);else{var i="function"==typeof t?Oi(e,t,n.custom):t;r=Xu(e,i,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),n=function(){var e;return(e={})[Ya.Animate]=nc(!0),e[Ya.InView]=nc(),e[Ya.Hover]=nc(),e[Ya.Tap]=nc(),e[Ya.Drag]=nc(),e[Ya.Focus]=nc(),e[Ya.Exit]=nc(),e}(),r={},o=!0,i=function(t,n){var r=Oi(e,n);if(r){r.transition;var o=r.transitionEnd,i=li(r,["transition","transitionEnd"]);t=si(si(si({},t),i),o)}return t};function a(a,s){for(var l,u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,p={},m=1/0,h=function(t){var r=Qu[t],h=n[r],v=null!==(l=u[r])&&void 0!==l?l:c[r],g=Ai(v),y=r===s?h.isActive:null;!1===y&&(m=t);var b=v===c[r]&&v!==u[r]&&g;if(b&&o&&e.manuallyAnimateOnMount&&(b=!1),h.protectedKeys=si({},p),!h.isActive&&null===y||!v&&!h.prevProp||Ia(v)||"boolean"==typeof v)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!Li(t)&&!Ns(t,e)}(h.prevProp,v),E=w||r===s&&h.isActive&&!b&&g||t>m&&g,x=Array.isArray(v)?v:[v],C=x.reduce(i,{});!1===y&&(C={});var S=h.prevResolvedValues,T=void 0===S?{}:S,L=si(si({},T),C),A=function(e){E=!0,f.delete(e),h.needsAnimating[e]=!0};for(var P in L){var O=C[P],R=T[P];p.hasOwnProperty(P)||(O!==R?Ua(O)&&Ua(R)?!Ns(O,R)||w?A(P):h.protectedKeys[P]=!0:void 0!==O?A(P):f.add(P):void 0!==O&&f.has(P)?A(P):h.protectedKeys[P]=!0)}h.prevProp=v,h.prevResolvedValues=C,h.isActive&&(p=si(si({},p),C)),o&&e.blockInitialAnimation&&(E=!1),E&&!b&&d.push.apply(d,ci([],ui(x.map((function(e){return{animation:e,options:si({type:r},a)}}))),!1))},v=0;v<ec;v++)h(v);if(r=si({},p),f.size){var g={};f.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(g[t]=n)})),d.push({animation:g})}var y=Boolean(d.length);return o&&!1===u.initial&&!e.manuallyAnimateOnMount&&(y=!1),o=!1,y?t(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==r[e]},animateChanges:a,setActive:function(t,r,o){var i;if(n[t].isActive===r)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;var s=a(o,t);for(var l in n)n[l].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function nc(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var rc={animation:Os((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=tc(t)),Ia(n)&&(0,s.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:Os((function(e){var t=e.custom,n=e.visualElement,r=ui(Ms(),2),o=r[0],i=r[1],a=(0,s.useContext)(bi);(0,s.useEffect)((function(){var e,r;n.isPresent=o;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Ya.Exit,!o,{custom:null!==(r=null==a?void 0:a.custom)&&void 0!==r?r:t});!o&&(null==s||s.then(i))}),[o])}))};const oc=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),ic=e=>oc(e)&&e.hasOwnProperty("z"),ac=(e,t)=>Math.abs(e-t);function sc(e,t){if(fl(e)&&fl(t))return ac(e,t);if(oc(e)&&oc(t)){const n=ac(e.x,t.x),r=ac(e.y,t.y),o=ic(e)&&ic(t)?ac(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var lc=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=dc(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=sc(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,i=eu().timestamp;r.history.push(si(si({},o),{timestamp:i}));var a=r.handlers,s=a.onStart,l=a.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=uc(t,r.transformPagePoint),Qa(e)&&0===e.buttons?r.handlePointerUp(e,t):tu.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,i=n.onSessionEnd,a=dc(uc(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,a),i&&i(e,a)},!(es(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var i=uc(os(e),this.transformPagePoint),a=i.point,s=eu().timestamp;this.history=[si(si({},a),{timestamp:s})];var l=t.onSessionStart;l&&l(e,dc(i,this.history)),this.removeListeners=ws(us(window,"pointermove",this.handlePointerMove),us(window,"pointerup",this.handlePointerUp),us(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Xl.update(this.updatePoint)},e}();function uc(e,t){return t?{point:t(e.point)}:e}function cc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function dc(e,t){var n=e.point;return{point:n,delta:cc(n,pc(t)),offset:cc(n,fc(t)),velocity:mc(t,.1)}}function fc(e){return e[0]}function pc(e){return e[e.length-1]}function mc(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=pc(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>au(t)));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function hc(e){return e.max-e.min}function vc(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),sc(e,t)<n}function gc(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=zs(t.min,t.max,e.origin),e.scale=hc(n)/hc(t),(vc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=zs(n.min,n.max,e.origin)-e.originPoint,(vc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function yc(e,t,n,r){gc(e.x,t.x,n.x,null==r?void 0:r.originX),gc(e.y,t.y,n.y,null==r?void 0:r.originY)}function bc(e,t,n){e.min=n.min+t.min,e.max=e.min+hc(t)}function wc(e,t,n){e.min=t.min-n.min,e.max=e.min+hc(t)}function Ec(e,t,n){wc(e.x,t.x,n.x),wc(e.y,t.y,n.y)}function xc(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Cc(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=ui([o,r],2))[0],o=n[1]),{min:r,max:o}}var Sc=.35;function Tc(e,t,n){return{min:Lc(e,t),max:Lc(e,n)}}function Lc(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Ac(e){return[e("x"),e("y")]}function Pc(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Oc(e){return void 0===e||1===e}function Rc(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Oc(t)||!Oc(n)||!Oc(r)}function Vc(e){return Rc(e)||kc(e.x)||kc(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function kc(e){return e&&"0%"!==e}function Mc(e,t,n){return n+t*(e-n)}function Nc(e,t,n,r,o){return void 0!==o&&(e=Mc(e,o,r)),Mc(e,n,r)+t}function Dc(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Nc(e.min,t,n,r,o),e.max=Nc(e.max,t,n,r,o)}function jc(e,t){var n=t.x,r=t.y;Dc(e.x,n.translate,n.scale,n.originPoint),Dc(e.y,r.translate,r.scale,r.originPoint)}function Fc(e,t){e.min=e.min+t,e.max=e.max+t}function _c(e,t,n){var r=ui(n,3),o=r[0],i=r[1],a=r[2],s=void 0!==t[a]?t[a]:.5,l=zs(e.min,e.max,s);Dc(e,t[o],t[i],l,t.scale)}var Hc=["x","scaleX","originX"],Bc=["y","scaleY","originY"];function Ic(e,t){_c(e.x,t,Hc),_c(e.y,t,Bc)}function Uc(e,t){return Pc(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var zc=new WeakMap,Zc=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,o=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new lc(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(os(e,"page").point)},onStart:function(e,t){var r,o=n.getProps(),i=o.drag,a=o.dragPropagation,s=o.onDragStart;(!i||a||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=ms(i),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Ac((function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(ca.test(o)){var i=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];i&&(o=hc(i)*(parseFloat(o)/100))}n.originPoint[e]=o})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(Ya.Drag,!0))},onMove:function(e,t){var r=n.getProps(),o=r.dragPropagation,i=r.dragDirectionLock,a=r.onDirectionLock,s=r.onDrag;if(o||n.openGlobalLock){var l=t.offset;if(i&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(l),void(null!==n.currentDirection&&(null==a||a(n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var o=this.getProps().onDragEnd;null==o||o(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Ya.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Wc(e,r,this.currentDirection)){var o=this.getAxisMotionValue(e),i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?zs(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?zs(o,e,n.max):Math.min(e,o)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,i=this.constraints;n&&Ti(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(e,t){var n=t.top,r=t.left,o=t.bottom,i=t.right;return{x:xc(e.x,r,i),y:xc(e.y,n,o)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=Sc),!1===e?e=0:!0===e&&(e=Sc),{x:Tc(e,"left","right"),y:Tc(e,"top","bottom")}}(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ac((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Ti(t))return!1;var r=t.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var i=function(e,t,n){var r=Uc(e,n),o=t.scroll;return o&&(Fc(r.x,o.x),Fc(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:Cc(e.x,t.x),y:Cc(e.y,t.y)}}(o.layout.actual,i);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=Pc(s))}return a},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,o=n.dragMomentum,i=n.dragElastic,a=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=Ac((function(n){var l;if(Wc(n,r,t.currentDirection)){var c=null!==(l=null==u?void 0:u[n])&&void 0!==l?l:{};s&&(c={min:0,max:0});var d=i?200:1e6,f=i?40:1e7,p=si(si({type:"inertia",velocity:o?e[n]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},a),c);return t.startAxisValueAnimation(n,p)}}));return Promise.all(c).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return Mu(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Ac((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Ac((function(n){if(Wc(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var i=r.layout.actual[n],a=i.min,s=i.max;o.set(e[n]-zs(a,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=n.dragConstraints,i=this.visualElement.projection;if(Ti(o)&&i&&this.constraints){this.stopAnimation();var a={x:0,y:0};Ac((function(e){var n,r,o,i,s,l=t.getAxisMotionValue(e);if(l){var u=l.get();a[e]=(n={min:u,max:u},r=t.constraints[e],o=.5,i=hc(n),(s=hc(r))>i?o=Us(r.min,r.max-i,n.min):i>s&&(o=Us(n.min,n.max-s,r.min)),Ds(0,1,o))}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout(),this.resolveConstraints(),Ac((function(e){if(Wc(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e],i=o.min,s=o.max;n.set(zs(i,s,a[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;zc.set(this.visualElement,this);var n=us(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=function(){Ti(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,i=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var a=Ja(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(Ac((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){a(),n(),i()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,i=e.dragPropagation,a=void 0!==i&&i,s=e.dragConstraints,l=void 0!==s&&s,u=e.dragElastic,c=void 0===u?Sc:u,d=e.dragMomentum,f=void 0===d||d;return si(si({},e),{drag:n,dragDirectionLock:o,dragPropagation:a,dragConstraints:l,dragElastic:c,dragMomentum:f})},e}();function Wc(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var $c={pan:Os((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,i=e.visualElement,a=t||n||r||o,l=(0,s.useRef)(null),u=(0,s.useContext)(gi).transformPagePoint,c={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){l.current=null,r&&r(e,t)}};(0,s.useEffect)((function(){null!==l.current&&l.current.updateHandlers(c)})),cs(i,"pointerdown",a&&function(e){l.current=new lc(e,c,{transformPagePoint:u})}),ys((function(){return l.current&&l.current.end()}))})),drag:Os((function(e){var t=e.dragControls,n=e.visualElement,r=Mi((function(){return new Zc(n)}));(0,s.useEffect)((function(){return t&&t.subscribe(r)}),[r,t]),(0,s.useEffect)((function(){return r.addListeners()}),[r])}))},qc=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],Yc=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,i=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,u=e.removeValueFromRenderState,c=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var f=e.parent,p=e.props,m=e.presenceId,h=e.blockInitialAnimation,v=e.visualState,g=e.shouldReduceMotion;void 0===t&&(t={});var y,b,w=!1,E=v.latestValues,x=v.renderState,C=function(){var e=qc.map((function(){return new _u})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){qc.forEach((function(r){var o,i="on"+r,a=e[i];null===(o=t[r])||void 0===o||o.call(t),a&&(t[r]=n[i](a))}))}};return e.forEach((function(e,t){n["on"+qc[t]]=function(t){return e.add(t)},n["notify"+qc[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,ci([],ui(t),!1))}})),n}(),S=new Map,T=new Map,L={},A=si({},E);function P(){y&&w&&(O(),s(y,x,p.style,F.projection))}function O(){r(F,x,E,t,p)}function R(){C.notifyUpdate(E)}function V(e,t){var n=t.onChange((function(t){E[e]=t,p.onUpdate&&tu.update(R,!1,!0)})),r=t.onRenderRequest(F.scheduleRender);T.set(e,(function(){n(),r()}))}var k=d(p);for(var M in k){var N=k[M];void 0!==E[M]&&Ki(N)&&N.set(E[M],!1)}var D=Ri(p),j=Vi(p),F=si(si({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:m,shouldReduceMotion:g,variantChildren:j?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==f?void 0:f.isMounted()),blockInitialAnimation:h,isMounted:function(){return Boolean(y)},mount:function(e){w=!0,y=F.current=e,F.projection&&F.projection.mount(e),j&&f&&!D&&(b=null==f?void 0:f.addVariantChild(F)),S.forEach((function(e,t){return V(t,e)})),null==f||f.children.add(F),F.setProps(p)},unmount:function(){var e;null===(e=F.projection)||void 0===e||e.unmount(),Xl.update(R),Xl.render(P),T.forEach((function(e){return e()})),null==b||b(),null==f||f.children.delete(F),C.clearAllListeners(),y=void 0,w=!1},addVariantChild:function(e){var t,n=F.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return c&&n===e.treeType?c(F.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return j?F:null==f?void 0:f.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return y},getStaticValue:function(e){return E[e]},setStaticValue:function(e,t){return E[e]=t},getLatestValues:function(){return E},setVisibility:function(e){F.isVisible!==e&&(F.isVisible=e,F.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),i(F,e,p,t)},measureViewportBox:function(){return a(y,p)},addValue:function(e,t){F.hasValue(e)&&F.removeValue(e),S.set(e,t),E[e]=t.get(),V(e,t)},removeValue:function(e){var t;S.delete(e),null===(t=T.get(e))||void 0===t||t(),T.delete(e),delete E[e],u(e,x)},hasValue:function(e){return S.has(e)},getValue:function(e,t){var n=S.get(e);return void 0===n&&void 0!==t&&(n=Bu(t),F.addValue(e,n)),n},forEachValue:function(e){return S.forEach(e)},readValue:function(e){var n;return null!==(n=E[e])&&void 0!==n?n:l(y,e,t)},setBaseTarget:function(e,t){A[e]=t},getBaseTarget:function(e){if(o){var t=o(p,e);if(void 0!==t&&!Ki(t))return t}return A[e]}},C),{build:function(){return O(),x},scheduleRender:function(){tu.render(P,!1,!0)},syncRender:P,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&F.scheduleRender(),p=e,C.updatePropListeners(e),L=function(e,t,n){var r;for(var o in t){var i=t[o],a=n[o];if(Ki(i))e.addValue(o,i);else if(Ki(a))e.addValue(o,Bu(i));else if(a!==i)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(i)}else e.addValue(o,Bu(null!==(r=e.getStaticValue(o))&&void 0!==r?r:i))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(F,d(p),L)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==f?void 0:f.getVariantContext();if(!D){var t=(null==f?void 0:f.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<Gc;r++){var o=Xc[r],i=p[o];(Ai(i)||!1===i)&&(n[o]=i)}return n}});return F}},Xc=ci(["initial"],ui(Ku),!1),Gc=Xc.length;function Jc(e){return"string"==typeof e&&e.startsWith("var(--")}var Kc=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Qc(e,t,n){void 0===n&&(n=1),'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var r=ui(function(e){var t=Kc.exec(e);if(!t)return[,];var n=ui(t,3);return[n[1],n[2]]}(e),2),o=r[0],i=r[1];if(o){var a=window.getComputedStyle(t).getPropertyValue(o);return a?a.trim():Jc(i)?Qc(i,t,n+1):i}}var ed,td=new Set(["width","height","top","left","right","bottom","x","y"]),nd=function(e){return td.has(e)},rd=function(e,t){e.set(t,!1),e.set(t)},od=function(e){return e===ha||e===da};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(ed||(ed={}));var id=function(e,t){return parseFloat(e.split(", ")[t])},ad=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return id(i[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?id(a[1],e):0}},sd=new Set(["x","y","z"]),ld=Wi.filter((function(e){return!sd.has(e)})),ud={width:function(e,t){var n=e.x,r=t.paddingLeft,o=void 0===r?"0":r,i=t.paddingRight,a=void 0===i?"0":i;return n.max-n.min-parseFloat(o)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,o=void 0===r?"0":r,i=t.paddingBottom,a=void 0===i?"0":i;return n.max-n.min-parseFloat(o)-parseFloat(a)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:ad(4,13),y:ad(5,14)};function cd(e,t,n,r){return function(e){return Object.keys(e).some(nd)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=si({},t),r=si({},r);var o=Object.keys(t).filter(nd),i=[],a=!1,s=[];if(o.forEach((function(o){var l=e.getValue(o);if(e.hasValue(o)){var u,c=n[o],d=zu(c),f=t[o];if(Ua(f)){var p=f.length,m=null===f[0]?1:0;c=f[m],d=zu(c);for(var h=m;h<p;h++)u?zu(f[h]):(u=zu(f[h]))===d||od(d)&&od(u)}else u=zu(f);if(d!==u)if(od(d)&&od(u)){var v=l.get();"string"==typeof v&&l.set(parseFloat(v)),"string"==typeof f?t[o]=parseFloat(f):Array.isArray(f)&&u===da&&(t[o]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==u?void 0:u.transform)&&(0===c||0===f)?0===c?l.set(u.transform(c)):t[o]=d.transform(f):(a||(i=function(e){var t=[];return ld.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],rd(l,f))}})),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,u=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),a=i.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=ud[e](r,i)})),t.syncRender();var l=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);rd(r,s[n]),e[n]=ud[n](l,i)})),e}(t,e,s);return i.length&&i.forEach((function(t){var n=ui(t,2),r=n[0],o=n[1];e.getValue(r).set(o)})),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}var dd={treeType:"dom",readValueFromInstance:function(e,t){if(Yi(t)){var n=Au(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(ea(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Uc(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var i=t.transition,a=t.transitionEnd,s=li(t,["transition","transitionEnd"]),l=function(e,t,n){var r,o,i={};for(var a in e)i[a]=null!==(r=qu(a,t))&&void 0!==r?r:null===(o=n.getValue(a))||void 0===o?void 0:o.get();return i}(s,i||{},e);if(o&&(a&&(a=o(a)),s&&(s=o(s)),l&&(l=o(l))),r){!function(e,t,n){var r,o,i,a,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),l=s.length;if(l)for(var u=0;u<l;u++){var c=s[u],d=t[c],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(o=null!==(r=n[c])&&void 0!==r?r:e.readValue(c))&&void 0!==o?o:t[c]),null!=f&&("string"==typeof f&&(Nu(f)||Du(f))?f=parseFloat(f):!Wu(f)&&dl.test(d)&&(f=Pu(c,d)),e.addValue(c,Bu(f)),null!==(i=(a=n)[c])&&void 0!==i||(a[c]=f),e.setBaseTarget(c,f))}}(e,s,l);var u=function(e,t,n,r){var o=function(e,t,n){var r,o=li(t,[]),i=e.getInstance();if(!(i instanceof Element))return{target:o,transitionEnd:n};for(var a in n&&(n=si({},n)),e.forEachValue((function(e){var t=e.get();if(Jc(t)){var n=Qc(t,i);n&&e.set(n)}})),o){var s=o[a];if(Jc(s)){var l=Qc(s,i);l&&(o[a]=l,n&&(null!==(r=n[a])&&void 0!==r||(n[a]=s)))}}return{target:o,transitionEnd:n}}(e,t,r);return cd(e,t=o.target,n,r=o.transitionEnd)}(e,s,l,a);a=u.transitionEnd,s=u.target}return si({transition:i,transitionEnd:a},s)},scrapeMotionValuesFromProps:Ha,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),wa(t,n,r,o.transformTemplate)},render:ja},fd=Yc(dd),pd=Yc(si(si({},dd),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Yi(t)?(null===(n=Au(t))||void 0===n?void 0:n.default)||0:(t=Fa.has(t)?t:Da(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Ba,build:function(e,t,n,r,o){Ra(t,n,r,o.transformTemplate)},render:_a})),md=function(e,t){return Ui(e)?pd(t,{enableHardwareAcceleration:!1}):fd(t,{enableHardwareAcceleration:!0})};function hd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var vd={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!da.test(e))return e;e=parseFloat(e)}var n=hd(e,t.target.x),r=hd(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},gd="_$css",yd={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,i=e.includes("var("),a=[];i&&(e=e.replace(Kc,(function(e){return a.push(e),gd})));var s=dl.parse(e);if(s.length>5)return o;var l=dl.createTransformer(e),u="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,d=r.y.scale*n.y;s[0+u]/=c,s[1+u]/=d;var f=zs(c,d,.5);"number"==typeof s[2+u]&&(s[2+u]/=f),"number"==typeof s[3+u]&&(s[3+u]/=f);var p=l(s);if(i){var m=0;p=p.replace(gd,(function(){var e=a[m];return m++,e}))}return p}},bd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ai(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,o=n.layoutGroup,i=n.switchLayoutGroup,a=n.layoutId,s=r.projection;e=wd,Object.assign(zi,e),s&&((null==o?void 0:o.group)&&o.group.add(s),(null==i?void 0:i.register)&&a&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(si(si({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),Ni.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.visualElement,i=n.drag,a=n.isPresent,s=o.projection;return s?(s.isPresent=a,i||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||tu.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,o=t.projection;o&&(o.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(o),(null==r?void 0:r.deregister)&&r.deregister(o))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(s.Component),wd={borderRadius:si(si({},vd),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:vd,borderTopRightRadius:vd,borderBottomLeftRadius:vd,borderBottomRightRadius:vd,boxShadow:yd},Ed={measureLayout:function(e){var t=ui(Ms(),2),n=t[0],r=t[1],o=(0,s.useContext)(ji);return s.createElement(bd,si({},e,{layoutGroup:o,switchLayoutGroup:(0,s.useContext)(Fi),isPresent:n,safeToRemove:r}))}},xd=["TopLeft","TopRight","BottomLeft","BottomRight"],Cd=xd.length,Sd=function(e){return"string"==typeof e?parseFloat(e):e},Td=function(e){return"number"==typeof e||da.test(e)};function Ld(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Ad=Od(0,.5,Pl),Pd=Od(.5,.95,Cl);function Od(e,t,n){return function(r){return r<e?0:r>t?1:n(Us(e,t,r))}}function Rd(e,t){e.min=t.min,e.max=t.max}function Vd(e,t){Rd(e.x,t.x),Rd(e.y,t.y)}function kd(e,t,n,r,o){return e=Mc(e-=t,1/n,r),void 0!==o&&(e=Mc(e,1/o,r)),e}function Md(e,t,n,r,o){var i=ui(n,3),a=i[0],s=i[1],l=i[2];!function(e,t,n,r,o,i,a){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===i&&(i=e),void 0===a&&(a=e),ca.test(t)&&(t=parseFloat(t),t=zs(a.min,a.max,t/100)-a.min),"number"==typeof t){var s=zs(i.min,i.max,r);e===i&&(s-=t),e.min=kd(e.min,t,n,s,o),e.max=kd(e.max,t,n,s,o)}}(e,t[a],t[s],t[l],t.scale,r,o)}var Nd=["x","scaleX","originX"],Dd=["y","scaleY","originY"];function jd(e,t,n,r){Md(e.x,t,Nd,null==n?void 0:n.x,null==r?void 0:r.x),Md(e.y,t,Dd,null==n?void 0:n.y,null==r?void 0:r.y)}function Fd(e){return 0===e.translate&&1===e.scale}function _d(e){return Fd(e.x)&&Fd(e.y)}function Hd(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Bd=function(){function e(){this.members=[]}return e.prototype.add=function(e){ju(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Fu(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){t=o;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,o,i;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(i=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===i||i.call(o)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function Id(e,t,n){var r=e.x.translate/t.x,o=e.y.translate/t.y,i="translate3d(".concat(r,"px, ").concat(o,"px, 0) ");if(i+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,s=n.rotateX,l=n.rotateY;a&&(i+="rotate(".concat(a,"deg) ")),s&&(i+="rotateX(".concat(s,"deg) ")),l&&(i+="rotateY(".concat(l,"deg) "))}var u=e.x.scale*t.x,c=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(i+="scale(".concat(u,", ").concat(c,")"))?"none":i}var Ud=function(e,t){return e.depth-t.depth},zd=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){ju(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Fu(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Ud),this.isDirty=!1,this.children.forEach(e)},e}();function Zd(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,o=e.checkIsScrollRoot,i=e.resetTransform;return function(){function e(e,t,r){var o=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(Jd),o.nodes.forEach(Kd)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?ci(ci([],ui(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var i=0;i<this.path.length;i++)this.path[i].shouldResetTransform=!0;this.root===this&&(this.nodes=new zd)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new _u),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,ci([],ui(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,o=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var i=this.options,a=i.layoutId,s=i.layout,l=i.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||a)&&(this.isLayoutDirty=!0),t){var u,c=function(){return o.root.updateBlockedByResize=!1};t(e,(function(){o.root.updateBlockedByResize=!0,clearTimeout(u),u=window.setTimeout(c,250),Ni.hasAnimatedSinceResize&&(Ni.hasAnimatedSinceResize=!1,o.nodes.forEach(Gd))}))}a&&this.root.registerSharedNode(a,this),!1!==this.options.animate&&l&&(a||s)&&this.addEventListener("didUpdate",(function(e){var t,n,r,i,a,s=e.delta,u=e.hasLayoutChanged,c=e.hasRelativeTargetChanged,d=e.layout;if(o.isTreeAnimationBlocked())return o.target=void 0,void(o.relativeTarget=void 0);var f=null!==(n=null!==(t=o.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:of,p=l.getProps(),m=p.onLayoutAnimationStart,h=p.onLayoutAnimationComplete,v=!o.targetLayout||!Hd(o.targetLayout,d)||c,g=!u&&c;if((null===(r=o.resumeFrom)||void 0===r?void 0:r.instance)||g||u&&(v||!o.currentAnimation)){o.resumeFrom&&(o.resumingFrom=o.resumeFrom,o.resumingFrom.resumingFrom=void 0),o.setAnimationOrigin(s,g);var y=si(si({},ku(f,"layout")),{onPlay:m,onComplete:h});l.shouldReduceMotion&&(y.delay=0,y.type=!1),o.startAnimation(y)}else u||0!==o.animationProgress||o.finishAnimation(),o.isLead()&&(null===(a=(i=o.options).onExitComplete)||void 0===a||a.call(i));o.targetLayout=d}))}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,Xl.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Qd))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var o=0;o<this.path.length;o++){var i=this.path[o];i.shouldResetTransform=!0,i.updateScroll()}var a=this.options,s=a.layoutId,l=a.layout;if(void 0!==s||l){var u=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==u?void 0:u(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Yd);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(af),this.potentialNodes.clear()),this.nodes.forEach(Xd),this.nodes.forEach(Wd),this.nodes.forEach($d),this.clearAllSnapshots(),Gl.update(),Gl.preRender(),Gl.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(qd),this.sharedNodes.forEach(ef)},e.prototype.scheduleUpdateProjection=function(){tu.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;tu.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));lf(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();lf(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=o(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(i){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!_d(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,o=null==r?void 0:r(this.latestValues,""),a=o!==this.prevTransformTemplateValue;t&&(n||Vc(this.latestValues)||a)&&(i(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(Fc(t.x,n.x),Fc(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Vd(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],o=r.scroll,i=r.options,a=r.isScrollRoot;if(r!==this.root&&o&&i.layoutScroll){if(a){Vd(t,e);var s=this.root.scroll;s&&(Fc(t.x,-s.x),Fc(t.y,-s.y))}Fc(t.x,o.x),Fc(t.y,o.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Vd(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ic(n,{x:-o.scroll.x,y:-o.scroll.y}),Vc(o.latestValues)&&Ic(n,o.latestValues)}return Vc(this.latestValues)&&Ic(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Vd(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&Vc(o.latestValues)){Rc(o.latestValues)&&o.updateSnapshot();var i={x:{min:0,max:0},y:{min:0,max:0}};Vd(i,o.measure()),jd(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,i)}}return Vc(this.latestValues)&&jd(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=si(si(si({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,o=this.options,i=o.layout,a=o.layoutId;this.layout&&(i||a)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ec(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Vd(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,bc(t.x,n.x,r.x),bc(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Vd(this.target,this.layout.actual),jc(this.target,this.targetDelta)):Vd(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ec(this.relativeTargetOrigin,this.target,this.relativeParent.target),Vd(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Vc(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var o=this.getLead();Vd(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var o,i;void 0===r&&(r=!1);var a=n.length;if(a){var s,l;t.x=t.y=1;for(var u=0;u<a;u++)l=(s=n[u]).projectionDelta,"contents"!==(null===(i=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===i?void 0:i.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Ic(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,jc(e,l)),r&&Vc(s.latestValues)&&Ic(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var i=o.target;if(i){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var a=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;yc(this.projectionDelta,this.layoutCorrected,i,this.latestValues),this.projectionTransform=Id(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",i))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var o=this.snapshot,i=(null==o?void 0:o.latestValues)||{},a=si({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},u=null==o?void 0:o.isShared,c=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(rf));this.animationProgress=0,this.mixTargetDelta=function(t){var n,o,f,p,m,h=t/1e3;tf(s.x,e.x,h),tf(s.y,e.y,h),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(Ec(l,r.layout.actual,r.relativeParent.layout.actual),o=r.relativeTarget,f=r.relativeTargetOrigin,p=l,m=h,nf(o.x,f.x,p.x,m),nf(o.y,f.y,p.y,m)),u&&(r.animationValues=a,function(e,t,n,r,o,i){var a,s,l,u;o?(e.opacity=zs(0,null!==(a=n.opacity)&&void 0!==a?a:1,Ad(r)),e.opacityExit=zs(null!==(s=t.opacity)&&void 0!==s?s:1,0,Pd(r))):i&&(e.opacity=zs(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<Cd;c++){var d="border".concat(xd[c],"Radius"),f=Ld(t,d),p=Ld(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||Td(f)===Td(p)?(e[d]=Math.max(zs(Sd(f),Sd(p),r),0),(ca.test(p)||ca.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=zs(t.rotate||0,n.rotate||0,r))}(a,i,r.latestValues,h,d,c)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=h},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(Xl.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tu.update((function(){Ni.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=Ki(0)?0:Bu(0);return Mu("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,si(si({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,o=e.latestValues;t&&n&&r&&(Vd(t,n),Ic(t,o),yc(this.projectionDeltaWithTransform,this.layoutCorrected,t,o))},e.prototype.registerSharedNode=function(e,t){var n,r,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Bd),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,o=t.preserveFollowOpacity,i=this.getStack();i&&i.promote(this,o),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<Zi.length;r++){var o="rotate"+Zi[r];e.getStaticValue(o)&&(t=!0,n[o]=e.getStaticValue(o),e.setStaticValue(o,0))}if(t){for(var o in null==e||e.syncRender(),n)e.setStaticValue(o,n[o]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,o,i,a;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Za(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){var c={};return this.options.layoutId&&(c.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,c.pointerEvents=Za(e.pointerEvents)||""),this.hasProjected&&!Vc(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=Id(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var f=this.projectionDelta,p=f.x,m=f.y;for(var h in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*m.origin,"% 0"),u.animationValues?s.opacity=u===this?null!==(o=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=u===this?null!==(i=d.opacity)&&void 0!==i?i:"":null!==(a=d.opacityExit)&&void 0!==a?a:0,zi)if(void 0!==d[h]){var v=zi[h],g=v.correct,y=v.applyTo,b=g(d[h],u);if(y)for(var w=y.length,E=0;E<w;E++)s[y[E]]=b;else s[h]=b}return this.options.layoutId&&(s.pointerEvents=u===this?Za(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Yd),this.root.sharedNodes.clear()},e}()}function Wd(e){e.updateLayout()}function $d(e){var t,n,r,o,i=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,l=a.measured;"size"===e.options.animationType?Ac((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=hc(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&Ac((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=hc(s[e]);t.max=t.min+n}));var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};yc(u,s,i.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i.isShared?yc(c,e.applyTransform(l,!0),i.measured):yc(c,s,i.layout);var d=!_d(u),f=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,m=p.snapshot,h=p.layout;if(m&&h){var v={x:{min:0,max:0},y:{min:0,max:0}};Ec(v,i.layout,m.layout);var g={x:{min:0,max:0},y:{min:0,max:0}};Ec(g,s,h.actual),Hd(v,g)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(o=(r=e.options).onExitComplete)||void 0===o||o.call(r));e.options.transition=void 0}function qd(e){e.clearSnapshot()}function Yd(e){e.clearMeasurements()}function Xd(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Gd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Jd(e){e.resolveTargetDelta()}function Kd(e){e.calcProjection()}function Qd(e){e.resetRotation()}function ef(e){e.removeLeadSnapshot()}function tf(e,t,n){e.translate=zs(t.translate,0,n),e.scale=zs(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function nf(e,t,n,r){e.min=zs(t.min,n.min,r),e.max=zs(t.max,n.max,r)}function rf(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var of={duration:.45,ease:[.4,0,.1,1]};function af(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var o=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function sf(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function lf(e){sf(e.x),sf(e.y)}var uf=Zd({attachResizeListener:function(e,t){return Ja(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),cf={current:void 0},df=Zd({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!cf.current){var e=new uf(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),cf.current=e}return cf.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),ff=si(si(si(si({},rc),Rs),$c),Ed),pf=Bi((function(e,t){return function(e,t,n,r,o){var i=t.forwardMotionProps,a=void 0!==i&&i,s=Ui(e)?Xa:Ga;return si(si({},s),{preloadedFeatures:n,useRender:Ma(a),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,ff,md,df)}));const mf="welcome-message",hf=()=>{const[t,n]=(0,e.useState)(!1),[o,i]=(0,e.useState)(!1),[a,s]=(0,e.useState)(!1),[l,u]=(0,e.useState)(!1),{isDismissed:c,dismissNotice:d}=Hn(),{mainColor:f}=bo(),p=window.extAssistData.home+"?extendify-disable-admin-bar",m=(()=>{const[t,n]=(0,e.useState)(Hn.persist.hasHydrated);return(0,e.useEffect)((()=>{const e=Hn.persist.onFinishHydration((()=>n(!0)));return()=>{e()}}),[]),t})(),h=window.extAssistData.dismissedNotices.find((e=>e.id===mf)),[v,g]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{h||c(mf)||g(!0)}),[h,c,d]),(0,e.useEffect)((()=>{v&&m&&d(mf)}),[d,v,m]),v?(0,e.createElement)(pf.div,{layout:!0,className:"hidden lg:block bg-black overflow-hidden",transition:{duration:.5,delay:1},initial:{height:0},animate:{height:"600px",bgColor:"black"}},(0,e.createElement)("div",{className:"p-8 lg:p-24 xl:p-32"},(0,e.createElement)("button",{className:"bg-transparent text-white opacity-70 hover:opacity-100 border-0 shadow-none absolute top-0 right-0 p-4 cursor-pointer text-sm",type:"button",onClick:()=>g(!1)},(0,e.createElement)("span",{className:"dashicons dashicons-no-alt"}),(0,e.createElement)("span",null,(0,r.__)("Dismiss","extendify"))),(0,e.createElement)("section",{className:"md:flex relative justify-center max-w-screen-xl mx-auto gap-16"},(0,e.createElement)(oi,{show:l,className:"absolute inset-0 md:w-1/2"},(0,e.createElement)(oi.Child,{enter:"transition-all ease-in-out duration-500",enterFrom:"transform translate-y-14 opacity-0",enterTo:"transform translate-y-0 opacity-100"},(0,e.createElement)("p",{className:"relative inline-block font-bold m-0 mb-16 text-3xl text-white"},(0,r.__)("Congratulations!","extendify"),(0,e.createElement)("span",{className:"block absolute text-sm right-0 m-0 text-right text-gray-500"},(0,r.__)("Your site is ready.","extendify")))),(0,e.createElement)(oi.Child,{enter:"transition-all ease-in-out duration-500 delay-300",enterFrom:"transform translate-y-14 opacity-0",enterTo:"transform translate-y-0 opacity-100"},(0,e.createElement)("div",{className:"flex flex-col gap-4"},(0,e.createElement)("h1",{className:"m-0 text-4xl text-white translate-y-1"},(0,r.__)("What's Next?","extendify")),(0,e.createElement)("p",{className:"m-0 text-white text-base"},(0,r.__)("This Assist dashboard ensures your business gets value from your website. Complete the following tasks to build a successful and highly functional website. You can view and edit the Launch created pages below.","extendify")),(0,e.createElement)("div",null,(0,e.createElement)("a",{href:document.location.origin,target:"_blank",rel:"noreferrer",style:{backgroundColor:f},className:"inline-block cursor-pointer rounded-sm px-6 py-2 text-lg text-white border-none no-underline"},(0,r.__)("View site","extendify")))))),(0,e.createElement)(pf.div,{className:"flex justify-center flex-shrink-0 overflow-hidden relative pointer-events-none w-full",initial:{opacity:0,transform:"none"},animate:{opacity:t?1:.3,transform:a?"translateX(300px)":"none"},transition:{duration:a?.7:.3,ease:"easeInOut"},onAnimationComplete:()=>{i(!0),a&&u(!0)}},(0,e.createElement)("div",{className:"absolute z-10 inset-0 pointer-events-none"}),(0,e.createElement)(pf.iframe,{ref:e=>{const r=()=>n(!0);t?null==e||e.removeEventListener("load",r):null==e||e.addEventListener("load",r)},src:p,style:{aspectRatio:"600/800",minWidth:"1200px"},className:"origin-top w-full",initial:{transform:"scale(0.65) translateY(0)"},transition:{delay:2,duration:.5},layout:!0,onAnimationComplete:()=>{s(!0)},animate:{transform:o?"scale(0.24) translateY(-30px)":"scale(1)"}}))))):null},vf=()=>{const{mainColor:n}=bo();return(0,e.createElement)("div",null,(0,e.createElement)(hf,null),(0,e.createElement)("div",{className:"max-w-screen-lg mx-auto pt-12 flex justify-center flex-col"},(0,e.createElement)("h2",{className:"text-center text-3xl m-0 mb-2"},(0,r.sprintf)((0,r.__)("Welcome to %s","extendify"),"Assist")),(0,e.createElement)("p",{className:"text-center text-xl m-0 p-0"},(0,r.__)("Manage your site content from a centralized location.","extendify")),(0,e.createElement)("div",{className:"flex justify-center my-8"},(0,e.createElement)(t.ExternalLink,{style:{backgroundColor:n},className:"flex items-center gap-1 text-base cursor-pointer rounded px-6 py-2 text-white border-none no-underline",href:window.extAssistData.home},(0,r.__)("View site","extendify"))),(0,e.createElement)(Do,null),(0,e.createElement)(Ir,null)))},gf={"site-type":{step:(0,r.__)("Site Industry","extendify"),title:(0,r.__)("Let's Start Building Your Website","extendify"),description:(0,r.__)("Create a super-fast, beautiful, and fully customized site in minutes with the Launch in the core WordPress editor.","extendify"),buttonText:(0,r.__)("Select Site Industry","extendify")},goals:{step:(0,r.__)("Goals","extendify"),title:(0,r.__)("Continue Building Your Website","extendify"),description:(0,r.__)("Create a super-fast, beautiful, and fully customized site in minutes with the Launch in the core WordPress editor.","extendify"),buttonText:(0,r.__)("Select Site Goals","extendify")},style:{step:(0,r.__)("Design","extendify"),title:(0,r.__)("Continue Building Your Website","extendify"),description:(0,r.__)("Create a super-fast, beautiful, and fully customized site in minutes with the Launch in the core WordPress editor.","extendify"),buttonText:(0,r.__)("Select Site Design","extendify")},pages:{step:(0,r.__)("Pages","extendify"),title:(0,r.__)("Continue Building Your Website","extendify"),description:(0,r.__)("Create a super-fast, beautiful, and fully customized site in minutes with the Launch in the core WordPress editor.","extendify"),buttonText:(0,r.__)("Select Site Pages","extendify")},confirmation:{step:(0,r.__)("Launch","extendify"),title:(0,r.__)("Let's Launch Your Site","extendify"),description:(0,r.__)("You're one step away from creating a super-fast, beautiful, and fully customizable site with the Launch in the core WordPress editor.","extendify"),buttonText:(0,r.__)("Launch The Site","extendify")}},yf=()=>{var t,n,o,i,a,s;const l="extendify-launch",{isDismissed:u,dismissNotice:c}=Hn(),{mainColor:d,darkColor:f}=bo();if(window.extAssistData.dismissedNotices.find((e=>e.id===l))||u(l))return null;const p=JSON.parse(null!==(t=localStorage.getItem("extendify-pages"))&&void 0!==t?t:null);if(!p)return null;const m=null==p||null===(n=p.state)||void 0===n?void 0:n.availablePages.filter((e=>Object.keys(gf).includes(e))),h=null==p||null===(o=p.state)||void 0===o?void 0:o.currentPageSlug,v=Object.keys(gf).includes(h)?h:"site-type";let g=!1;return(0,e.createElement)("div",{className:"mt-6 mb-8 max-w-screen-3xl"},(0,e.createElement)("div",{style:{background:d,minHeight:"420px"},className:"relative flex flex-col"},(0,e.createElement)("div",{style:{background:f},className:"justify-between items-center py-6 px-2 lg:px-12 gap-x-3 hidden md:flex"},m.map(((t,n)=>{var r;return t===v&&(g=!0),(0,e.createElement)(e.Fragment,{key:t},(0,e.createElement)(bf,{reached:g,bgColor:d,step:n+1,stepName:null===(r=gf[t])||void 0===r?void 0:r.step,current:t===v}),n!==m.length-1&&(0,e.createElement)("div",{className:"hidden lg:block border-0 border-b-2 border-white border-solid border-opacity-10 h-0 grow w-full text-white"}))}))),(0,e.createElement)("div",{className:"h-10 md:hidden","aria-hidden":!0,style:{backgroundColor:f}}),(0,e.createElement)("div",{className:"max-w-screen-md flex-grow w-full flex flex-col justify-center lg:w-1/2 p-6 lg:p-12"},(0,e.createElement)("h2",{className:"text-3xl m-0 mb-4 text-white"},null===(i=gf[v])||void 0===i?void 0:i.title),(0,e.createElement)("p",{className:"text-lg text-white"},null===(a=gf[v])||void 0===a?void 0:a.description),(0,e.createElement)("div",{className:"flex items-center gap-x-4 mt-9"},(0,e.createElement)("a",{href:`${window.extAssistData.adminUrl}admin.php?page=extendify-launch`,className:"cursor-pointer rounded-sm px-6 py-4 bg-gray-900 text-lg text-white border-none no-underline"},null===(s=gf[v])||void 0===s?void 0:s.buttonText),(0,e.createElement)("div",null,(0,e.createElement)("button",{className:"text-white p-1 text-sm z-10 flex items-center uppercase opacity-70 hover:opacity-100 bg-transparent border-none cursor-pointer",onClick:()=>c(l),type:"button"},(0,e.createElement)("span",{className:"dashicons dashicons-no-alt"}),(0,e.createElement)("span",{className:"tracking-wide"},(0,r.__)("Dismiss","extendify")))))),(0,e.createElement)("img",{className:"lg:absolute bottom-0 right-0 max-w-lg w-full block mx-auto",src:window.extAssistData.asset_path+"/extendify-preview.png"})))},bf=t=>{let{reached:n,step:r,current:o,stepName:i,bgColor:a}=t;return(0,e.createElement)("div",{className:"flex-none text-white text-sm flex items-center gap-x-2"},(0,e.createElement)("span",{style:{background:n?void 0:a},className:zr()("border-2 border-solid w-9 h-9 rounded-full flex items-center justify-center",{"disc-checked border-white border-opacity-10":!n,"disc-number border-white":n,"border-dotted":o})},n?r:(0,e.createElement)("span",{className:"dashicons dashicons-saved"})),(0,e.createElement)("span",null,i))},wf=new URLSearchParams(window.location.search),Ef=["page"].includes(wf.get("extendify-launch")),xf=window.extAssistData.launchCompleted,Cf=window.extAssistData.devbuild,Sf=document.getElementById("extendify-assist-landing-page"),Tf=document.getElementById("dashboard-widgets-wrap");!Ef&&Sf&&(0,e.render)((0,e.createElement)((()=>(0,e.createElement)(Mr,{value:{onErrorRetry:(e,t,n,r,o)=>{var i;let{retryCount:a}=o;404!==e.status&&(403!==(null==e||null===(i=e.data)||void 0===i?void 0:i.status)?setTimeout((()=>r({retryCount:a})),5e3):window.location.reload())}}},(0,e.createElement)(vf,null))),null),Sf);const Lf=window.extAssistData.dismissedNotices.find((e=>"extendify-launch"===e.id));if(Tf&&!Lf&&(!xf||Cf)){var Af;const t=Object.assign(document.createElement("div"),{className:"extendify-assist"});null===(Af=document.getElementById("welcome-panel"))||void 0===Af||Af.remove(),Tf.before(t),(0,e.render)((0,e.createElement)(yf,null),t)}if(!Ef){const t=Object.assign(document.createElement("div"),{className:"extendify-assist"});document.body.append(t),(0,e.render)((0,e.createElement)(In,null),t)}}()}();
|
|
1 |
+
!function(){var e={184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},230:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},250:function(e,t,n){"use strict";var r=n(196),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return s((function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})}),[e,n,t]),a((function(){return u(o)&&c({inst:o}),e((function(){u(o)&&c({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},139:function(e,t,n){"use strict";var r=n(196),o=n(688),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,s=r.useRef,l=r.useEffect,u=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=u((function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,s=n)}var a,s,l=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var p=a(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},688:function(e,t,n){"use strict";e.exports=n(250)},798:function(e,t,n){"use strict";e.exports=n(139)},196:function(e){"use strict";e.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element,t=window.wp.components,r=window.wp.i18n,o=function(t){let{icon:n,size:r=24,...o}=t;return(0,e.cloneElement)(n,{width:r,height:r,...o})},i=window.wp.primitives,a=(0,e.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(i.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),s=n(196);function l(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,l),r}var u,c=((u=c||{})[u.None=0]="None",u[u.RenderStrategy=1]="RenderStrategy",u[u.Static=2]="Static",u),d=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(d||{});function f({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let s=m(t,e);if(i)return p(s,n,r,a);let u=null!=o?o:0;if(2&u){let{static:e=!1,...t}=s;if(e)return p(t,n,r,a)}if(1&u){let{unmount:e=!0,...t}=s;return l(e?0:1,{0(){return null},1(){return p({...t,hidden:!0,style:{display:"none"}},n,r,a)}})}return p(s,n,r,a)}function p(e,t={},n,r){let{as:o=n,children:i,refName:a="ref",...l}=g(e,["unmount","static"]),u=void 0!==e.ref?{[a]:e.ref}:{},c="function"==typeof i?i(t):i;l.className&&"function"==typeof l.className&&(l.className=l.className(t));let d={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(d["data-headlessui-state"]=n.join(" "))}if(o===s.Fragment&&Object.keys(v(l)).length>0){if(!(0,s.isValidElement)(c)||Array.isArray(c)&&c.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return(0,s.cloneElement)(c,Object.assign({},m(c.props,v(g(l,["ref"]))),d,u,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(c.ref,u.ref)))}return(0,s.createElement)(o,Object.assign({},g(l,["ref"]),o!==s.Fragment&&u,o!==s.Fragment&&d),c)}function m(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function h(e){var t;return Object.assign((0,s.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function v(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function g(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}const y="undefined"==typeof window||"undefined"==typeof document;let b=y?s.useEffect:s.useLayoutEffect;function w(e){let t=(0,s.useRef)(e);return b((()=>{t.current=e}),[e]),t}let E=function(e){let t=w(e);return s.useCallback(((...e)=>t.current(...e)),[t])},x=Symbol();function C(e,t=!0){return Object.assign(e,{[x]:t})}function S(...e){let t=(0,s.useRef)(e);(0,s.useEffect)((()=>{t.current=e}),[e]);let n=E((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[x])))?void 0:n}var T=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(T||{});let L={serverHandoffComplete:!1};function A(){let[e,t]=(0,s.useState)(L.serverHandoffComplete);return(0,s.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,s.useEffect)((()=>{!1===L.serverHandoffComplete&&(L.serverHandoffComplete=!0)}),[]),e}var P;let O=0;function R(){return++O}let V=null!=(P=s.useId)?P:function(){let e=A(),[t,n]=s.useState(e?R:null);return b((()=>{null===t&&n(R())}),[t]),null!=t?""+t:void 0};var k=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(k||{});let N=h((function(e,t){let{features:n=1,...r}=e;return f({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})}));function M(e){return y?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let D=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var j=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(j||{}),F=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(F||{}),_=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(_||{});var H=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(H||{});function B(e){null==e||e.focus({preventScroll:!0})}let I=["textarea","input"].join(",");function U(e,t,n=!0,r=null){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,i=Array.isArray(e)?n?function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(D))}(e);r=null!=r?r:o.activeElement;let a,s=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,i.indexOf(r))-1;if(4&t)return Math.max(0,i.indexOf(r))+1;if(8&t)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},c=0,d=i.length;do{if(c>=d||c+d<=0)return 0;let e=l+c;if(16&t)e=(e+d)%d;else{if(e<0)return 3;if(e>=d)return 1}a=i[e],null==a||a.focus(u),c+=s}while(a!==o.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,I))&&n}(a)&&a.select(),a.hasAttribute("tabindex")||a.setAttribute("tabindex","0"),2}var z=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(z||{});function Z(){let e=(0,s.useRef)(!1);return b((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function W(...e){return(0,s.useMemo)((()=>M(...e)),[...e])}function q(e,t,n,r){let o=w(n);(0,s.useEffect)((()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}),[e,t,r])}function $(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Y(e,t){let n=(0,s.useRef)([]),r=E(e);(0,s.useEffect)((()=>{let e=[...n.current];for(let[o,i]of t.entries())if(n.current[o]!==i){let o=r(t,e);return n.current=t,o}}),[r,...t])}var X=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(X||{});let G=Object.assign(h((function(e,t){let n=(0,s.useRef)(null),r=S(n,t),{initialFocus:o,containers:i,features:a=30,...u}=e;A()||(a=1);let c=W(n);!function({ownerDocument:e},t){let n=(0,s.useRef)(null);q(null==e?void 0:e.defaultView,"focusout",(e=>{!t||n.current||(n.current=e.target)}),!0),Y((()=>{t||((null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&B(n.current),n.current=null)}),[t]);let r=(0,s.useRef)(!1);(0,s.useEffect)((()=>(r.current=!1,()=>{r.current=!0,$((()=>{!r.current||(B(n.current),n.current=null)}))})),[])}({ownerDocument:c},Boolean(16&a));let d=function({ownerDocument:e,container:t,initialFocus:n},r){let o=(0,s.useRef)(null),i=Z();return Y((()=>{if(!r)return;let a=t.current;!a||$((()=>{if(!i.current)return;let t=null==e?void 0:e.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===t)return void(o.current=t)}else if(a.contains(t))return void(o.current=t);null!=n&&n.current?B(n.current):U(a,j.First)===F.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=null==e?void 0:e.activeElement}))}),[r]),o}({ownerDocument:c,container:n,initialFocus:o},Boolean(2&a));!function({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=Z();q(null==e?void 0:e.defaultView,"focus",(e=>{if(!o||!i.current)return;let a=new Set(null==n?void 0:n.current);a.add(t);let s=r.current;if(!s)return;let l=e.target;l&&l instanceof HTMLElement?function(e,t){var n;for(let r of e)if(null!=(n=r.current)&&n.contains(t))return!0;return!1}(a,l)?(r.current=l,B(l)):(e.preventDefault(),e.stopPropagation(),B(s)):B(r.current)}),!0)}({ownerDocument:c,container:n,containers:i,previousActiveElement:d},Boolean(8&a));let p=function(){let e=(0,s.useRef)(0);return function(e,t,n){let r=w(t);(0,s.useEffect)((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),m=E((()=>{let e=n.current;!e||l(p.current,{[z.Forwards]:()=>U(e,j.First),[z.Backwards]:()=>U(e,j.Last)})})),h={ref:r};return s.createElement(s.Fragment,null,Boolean(4&a)&&s.createElement(N,{as:"button",type:"button",onFocus:m,features:k.Focusable}),f({ourProps:h,theirProps:u,defaultTag:"div",name:"FocusTrap"}),Boolean(4&a)&&s.createElement(N,{as:"button",type:"button",onFocus:m,features:k.Focusable}))})),{features:X}),J=new Set,K=new Map;function Q(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function ee(e){let t=K.get(e);!t||(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}var te=window.ReactDOM;let ne=(0,s.createContext)(!1);function re(){return(0,s.useContext)(ne)}function oe(e){return s.createElement(ne.Provider,{value:e.force},e.children)}let ie=s.Fragment,ae=h((function(e,t){let n=e,r=(0,s.useRef)(null),o=S(C((e=>{r.current=e})),t),i=W(r),a=function(e){let t=re(),n=(0,s.useContext)(le),r=W(e),[o,i]=(0,s.useState)((()=>{if(!t&&null!==n||y)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)}));return(0,s.useEffect)((()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))}),[o,r]),(0,s.useEffect)((()=>{t||null!==n&&i(n.current)}),[n,i,t]),o}(r),[l]=(0,s.useState)((()=>{var e;return y?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null})),u=A(),c=(0,s.useRef)(!1);return b((()=>{if(c.current=!1,a&&l)return a.contains(l)||(l.setAttribute("data-headlessui-portal",""),a.appendChild(l)),()=>{c.current=!0,$((()=>{var e;!c.current||!a||!l||(a.removeChild(l),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))}))}}),[a,l]),u&&a&&l?(0,te.createPortal)(f({ourProps:{ref:o},theirProps:n,defaultTag:ie,name:"Portal"}),l):null})),se=s.Fragment,le=(0,s.createContext)(null),ue=h((function(e,t){let{target:n,...r}=e,o={ref:S(t)};return s.createElement(le.Provider,{value:n},f({ourProps:o,theirProps:r,defaultTag:se,name:"Popover.Group"}))})),ce=Object.assign(ae,{Group:ue}),de=(0,s.createContext)(null);function fe(){let e=(0,s.useContext)(de);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,fe),e}return e}let pe=h((function(e,t){let n=fe(),r=`headlessui-description-${V()}`,o=S(t);b((()=>n.register(r)),[r,n.register]);let i=e;return f({ourProps:{ref:o,...n.props,id:r},theirProps:i,slot:n.slot||{},defaultTag:"p",name:n.name||"Description"})})),me=(0,s.createContext)(null);me.displayName="OpenClosedContext";var he=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(he||{});function ve(){return(0,s.useContext)(me)}function ge({value:e,children:t}){return s.createElement(me.Provider,{value:e},t)}let ye=(0,s.createContext)((()=>{}));ye.displayName="StackContext";var be=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(be||{});function we({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=(0,s.useContext)(ye),a=E(((...e)=>{null==t||t(...e),i(...e)}));return b((()=>{let e=void 0===o||!0===o;return e&&a(0,n,r),()=>{e&&a(1,n,r)}}),[a,n,r,o]),s.createElement(ye.Provider,{value:a},e)}function Ee(e,t,n){let r=w(t);(0,s.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function xe(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener(e,t,r,o){return e.addEventListener(t,r,o),n.add((()=>e.removeEventListener(t,r,o)))},requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame(...e){return n.requestAnimationFrame((()=>n.requestAnimationFrame(...e)))},setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return $((()=>{t.current&&e[0]()})),n.add((()=>{t.current=!1}))},add(t){return e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}},dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}var Ce=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ce||{}),Se=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Se||{});let Te={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Le=(0,s.createContext)(null);function Ae(e){let t=(0,s.useContext)(Le);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ae),t}return t}function Pe(e,t){return l(t.type,Te,e,t)}Le.displayName="DialogContext";let Oe=c.RenderStrategy|c.Static,Re=h((function(e,t){let{open:n,onClose:r,initialFocus:o,__demoMode:i=!1,...a}=e,[u,c]=(0,s.useState)(0),d=ve();void 0===n&&null!==d&&(n=l(d,{[he.Open]:!0,[he.Closed]:!1}));let p=(0,s.useRef)(new Set),m=(0,s.useRef)(null),h=S(m,t),v=(0,s.useRef)(null),g=W(m),y=e.hasOwnProperty("open")||null!==d,w=e.hasOwnProperty("onClose");if(!y&&!w)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!y)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!w)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof n)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${n}`);if("function"!=typeof r)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${r}`);let x=n?0:1,[C,L]=(0,s.useReducer)(Pe,{titleId:null,descriptionId:null,panelRef:(0,s.createRef)()}),P=E((()=>r(!1))),O=E((e=>L({type:0,id:e}))),R=!!A()&&!i&&0===x,j=u>1,F=null!==(0,s.useContext)(Le),_=j?"parent":"leaf";(function(e,t=!0){b((()=>{if(!t||!e.current)return;let n=e.current,r=M(n);if(r){J.add(n);for(let e of K.keys())e.contains(n)&&(ee(e),K.delete(e));return r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement){for(let t of J)if(e.contains(t))return;1===J.size&&(K.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),Q(e))}})),()=>{if(J.delete(n),J.size>0)r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement&&!K.has(e)){for(let t of J)if(e.contains(t))return;K.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),Q(e)}}));else for(let e of K.keys())ee(e),K.delete(e)}}}),[t])})(m,!!j&&R),function(e,t,n=!0){let r=(0,s.useRef)(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),a=o(n);if(null!==a&&a.ownerDocument.documentElement.contains(a)){for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(a))return}return!function(e,t=0){var n;return e!==(null==(n=M(e))?void 0:n.body)&&l(t,{0(){return e.matches(D)},1(){let t=e;for(;null!==t;){if(t.matches(D))return!0;t=t.parentElement}return!1}})}(a,H.Loose)&&-1!==a.tabIndex&&n.preventDefault(),t(n,a)}}(0,s.useEffect)((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let i=(0,s.useRef)(null);Ee("mousedown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Ee("click",(e=>{!i.current||(o(e,(()=>i.current)),i.current=null)}),!0),Ee("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}((()=>{var e,t;return[...Array.from(null!=(e=null==g?void 0:g.querySelectorAll("body > *, [data-headlessui-portal]"))?e:[]).filter((e=>!(!(e instanceof HTMLElement)||e.contains(v.current)||C.panelRef.current&&e.contains(C.panelRef.current)))),null!=(t=C.panelRef.current)?t:m.current]}),P,R&&!j),q(null==g?void 0:g.defaultView,"keydown",(e=>{e.defaultPrevented||e.key===T.Escape&&0===x&&(j||(e.preventDefault(),e.stopPropagation(),P()))})),function(e,t){(0,s.useEffect)((()=>{var n;if(!t||!e)return;let r=xe();function o(e,t,n){let o=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),r.add((()=>{Object.assign(e.style,{[t]:o})}))}let i=e.documentElement,a=(null!=(n=e.defaultView)?n:window).innerWidth-i.clientWidth;if(o(i,"overflow","hidden"),a>0&&o(i,"paddingRight",a-(i.clientWidth-i.offsetWidth)+"px"),/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0){let e=window.pageYOffset;o(i,"position","fixed"),o(i,"marginTop",`-${e}px`),o(i,"width","100%"),r.add((()=>window.scrollTo(0,e)))}return r.dispose}),[e,t])}(g,0===x&&!F),(0,s.useEffect)((()=>{if(0!==x||!m.current)return;let e=new IntersectionObserver((e=>{for(let t of e)0===t.boundingClientRect.x&&0===t.boundingClientRect.y&&0===t.boundingClientRect.width&&0===t.boundingClientRect.height&&P()}));return e.observe(m.current),()=>e.disconnect()}),[x,m,P]);let[B,I]=function(){let[e,t]=(0,s.useState)([]);return[e.length>0?e.join(" "):void 0,(0,s.useMemo)((()=>function(e){let n=E((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=(0,s.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return s.createElement(de.Provider,{value:r},e.children)}),[t])]}(),U=`headlessui-dialog-${V()}`,z=(0,s.useMemo)((()=>[{dialogState:x,close:P,setTitleId:O},C]),[x,C,P,O]),Z=(0,s.useMemo)((()=>({open:0===x})),[x]),$={ref:h,id:U,role:"dialog","aria-modal":0===x||void 0,"aria-labelledby":C.titleId,"aria-describedby":B};return s.createElement(we,{type:"Dialog",enabled:0===x,element:m,onUpdate:E(((e,t,n)=>{"Dialog"===t&&l(e,{[be.Add](){p.current.add(n),c((e=>e+1))},[be.Remove](){p.current.add(n),c((e=>e-1))}})}))},s.createElement(oe,{force:!0},s.createElement(ce,null,s.createElement(Le.Provider,{value:z},s.createElement(ce.Group,{target:m},s.createElement(oe,{force:!1},s.createElement(I,{slot:Z,name:"Dialog.Description"},s.createElement(G,{initialFocus:o,containers:p,features:R?l(_,{parent:G.features.RestoreFocus,leaf:G.features.All&~G.features.FocusLock}):G.features.None},f({ourProps:$,theirProps:a,slot:Z,defaultTag:"div",features:Oe,visible:0===x,name:"Dialog"})))))))),s.createElement(N,{features:k.Hidden,ref:v}))})),Ve=h((function(e,t){let[{dialogState:n,close:r}]=Ae("Dialog.Overlay"),o=S(t),i=`headlessui-dialog-overlay-${V()}`,a=E((e=>{if(e.target===e.currentTarget){if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),r()}}));return f({ourProps:{ref:o,id:i,"aria-hidden":!0,onClick:a},theirProps:e,slot:(0,s.useMemo)((()=>({open:0===n})),[n]),defaultTag:"div",name:"Dialog.Overlay"})})),ke=h((function(e,t){let[{dialogState:n},r]=Ae("Dialog.Backdrop"),o=S(t),i=`headlessui-dialog-backdrop-${V()}`;(0,s.useEffect)((()=>{if(null===r.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[r.panelRef]);let a=(0,s.useMemo)((()=>({open:0===n})),[n]);return s.createElement(oe,{force:!0},s.createElement(ce,null,f({ourProps:{ref:o,id:i,"aria-hidden":!0},theirProps:e,slot:a,defaultTag:"div",name:"Dialog.Backdrop"})))})),Ne=h((function(e,t){let[{dialogState:n},r]=Ae("Dialog.Panel"),o=S(t,r.panelRef),i=`headlessui-dialog-panel-${V()}`,a=(0,s.useMemo)((()=>({open:0===n})),[n]);return f({ourProps:{ref:o,id:i,onClick:E((e=>{e.stopPropagation()}))},theirProps:e,slot:a,defaultTag:"div",name:"Dialog.Panel"})})),Me=h((function(e,t){let[{dialogState:n,setTitleId:r}]=Ae("Dialog.Title"),o=`headlessui-dialog-title-${V()}`,i=S(t);(0,s.useEffect)((()=>(r(o),()=>r(null))),[o,r]);let a=(0,s.useMemo)((()=>({open:0===n})),[n]);return f({ourProps:{ref:i,id:o},theirProps:e,slot:a,defaultTag:"h2",name:"Dialog.Title"})})),De=Object.assign(Re,{Backdrop:ke,Panel:Ne,Overlay:Ve,Title:Me,Description:pe});const je=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,i),i};var Fe=n(798);const{useSyncExternalStoreWithSelector:_e}=Fe,He=e=>{const t="function"==typeof e?(e=>e?je(e):je)(e):e,n=(e,n)=>function(e,t=e.getState,n){const r=_e(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,s.useDebugValue)(r),r}(t,e,n);return Object.assign(n,t),n},Be=e=>e?He(e):He,Ie=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:a,...s}=t;let l;try{l=(null==i||i)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const u=l.connect(s);let c=!0;o.setState=(e,t,o)=>{const i=n(e,t);return c?(u.send(void 0===o?{type:a||"anonymous"}:"string"==typeof o?{type:o}:o,r()),i):i};const d=(...e)=>{const t=c;c=!1,n(...e),c=t},f=e(o.setState,r,o);if(u.init(f),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let e=!1;const t=o.dispatch;o.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):Ue(e.payload,(e=>{"__setState"!==e.type?o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e):d(e.state)}));case"DISPATCH":switch(e.payload.type){case"RESET":return d(f),u.init(o.getState());case"COMMIT":return u.init(o.getState());case"ROLLBACK":return Ue(e.state,(e=>{d(e),u.init(o.getState())}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Ue(e.state,(e=>{d(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return d(r),void u.send(null,n)}case"PAUSE_RECORDING":return c=!c}return}})),f},Ue=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)},ze=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(e){return ze(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return ze(t)(e)}}}},Ze=(e,t)=>(n,r,o)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},a=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch(e){}if(!u)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)}),r,o);const c=ze(i.serialize),d=()=>{const e=i.partialize({...r()});let t;const n=c({state:e,version:i.version}).then((e=>u.setItem(i.name,e))).catch((e=>{t=e}));if(t)throw t;return n},f=o.setState;o.setState=(e,t)=>{f(e,t),d()};const p=e(((...e)=>{n(...e),d()}),r,o);let m;const h=()=>{var e;if(!u)return;a=!1,s.forEach((e=>e(r())));const t=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,r()))||void 0;return ze(u.getItem.bind(u))(i.name).then((e=>{if(e)return i.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return m=i.merge(e,null!=(t=r())?t:p),n(m,!0),d()})).then((()=>{null==t||t(m,void 0),a=!0,l.forEach((e=>e(m)))})).catch((e=>{null==t||t(void 0,e)}))};return o.persist={setOptions:e=>{i={...i,...e},e.getStorage&&(u=e.getStorage())},clearStorage:()=>{null==u||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>h(),hasHydrated:()=>a,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},h(),m||p};function We(e,t){return function(){return e.apply(t,arguments)}}const{toString:qe}=Object.prototype,{getPrototypeOf:$e}=Object,Ye=(e=>t=>{const n=qe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Xe=e=>(e=e.toLowerCase(),t=>Ye(t)===e),Ge=e=>t=>typeof t===e,{isArray:Je}=Array,Ke=Ge("undefined"),Qe=Xe("ArrayBuffer"),et=Ge("string"),tt=Ge("function"),nt=Ge("number"),rt=e=>null!==e&&"object"==typeof e,ot=e=>{if("object"!==Ye(e))return!1;const t=$e(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},it=Xe("Date"),at=Xe("File"),st=Xe("Blob"),lt=Xe("FileList"),ut=Xe("URLSearchParams");function ct(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Je(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}const dt=(ft="undefined"!=typeof Uint8Array&&$e(Uint8Array),e=>ft&&e instanceof ft);var ft;const pt=Xe("HTMLFormElement"),mt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ht=Xe("RegExp"),vt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ct(n,((n,o)=>{!1!==t(n,o,e)&&(r[o]=n)})),Object.defineProperties(e,r)};var gt={isArray:Je,isArrayBuffer:Qe,isBuffer:function(e){return null!==e&&!Ke(e)&&null!==e.constructor&&!Ke(e.constructor)&&tt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{const t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||qe.call(e)===t||tt(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Qe(e.buffer),t},isString:et,isNumber:nt,isBoolean:e=>!0===e||!1===e,isObject:rt,isPlainObject:ot,isUndefined:Ke,isDate:it,isFile:at,isBlob:st,isRegExp:ht,isFunction:tt,isStream:e=>rt(e)&&tt(e.pipe),isURLSearchParams:ut,isTypedArray:dt,isFileList:lt,forEach:ct,merge:function e(){const t={},n=(n,r)=>{ot(t[r])&&ot(n)?t[r]=e(t[r],n):ot(n)?t[r]=e({},n):Je(n)?t[r]=n.slice():t[r]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ct(arguments[e],n);return t},extend:(e,t,n,{allOwnKeys:r}={})=>(ct(t,((t,r)=>{n&&tt(t)?e[r]=We(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&$e(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ye,kindOfTest:Xe,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Je(e))return e;let t=e.length;if(!nt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:pt,hasOwnProperty:mt,hasOwnProp:mt,reduceDescriptors:vt,freezeMethods:e=>{vt(e,((t,n)=>{const r=e[n];tt(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Je(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t)};function yt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}gt.inherits(yt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const bt=yt.prototype,wt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{wt[e]={value:e}})),Object.defineProperties(yt,wt),Object.defineProperty(bt,"isAxiosError",{value:!0}),yt.from=(e,t,n,r,o,i)=>{const a=Object.create(bt);return gt.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),yt.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var Et=yt,xt=n(230);function Ct(e){return gt.isPlainObject(e)||gt.isArray(e)}function St(e){return gt.endsWith(e,"[]")?e.slice(0,-2):e}function Tt(e,t,n){return e?e.concat(t).map((function(e,t){return e=St(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Lt=gt.toFlatObject(gt,{},null,(function(e){return/^is[A-Z]/.test(e)}));var At=function(e,t,n){if(!gt.isObject(e))throw new TypeError("target must be an object");t=t||new(xt||FormData);const r=(n=gt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!gt.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&(l=t)&>.isFunction(l.append)&&"FormData"===l[Symbol.toStringTag]&&l[Symbol.iterator];var l;if(!gt.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(gt.isDate(e))return e.toISOString();if(!s&>.isBlob(e))throw new Et("Blob is not supported. Use a Buffer instead.");return gt.isArrayBuffer(e)||gt.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(gt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(gt.isArray(e)&&function(e){return gt.isArray(e)&&!e.some(Ct)}(e)||gt.isFileList(e)||gt.endsWith(n,"[]")&&(s=gt.toArray(e)))return n=St(n),s.forEach((function(e,r){!gt.isUndefined(e)&&null!==e&&t.append(!0===a?Tt([n],r,i):null===a?n:n+"[]",u(e))})),!1;return!!Ct(e)||(t.append(Tt(o,n,i),u(e)),!1)}const d=[],f=Object.assign(Lt,{defaultVisitor:c,convertValue:u,isVisitable:Ct});if(!gt.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!gt.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),gt.forEach(n,(function(n,i){!0===(!(gt.isUndefined(n)||null===n)&&o.call(t,n,gt.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])})),d.pop()}}(e),t};function Pt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ot(e,t){this._pairs=[],e&&At(e,this,t)}const Rt=Ot.prototype;Rt.append=function(e,t){this._pairs.push([e,t])},Rt.toString=function(e){const t=e?function(t){return e.call(this,t,Pt)}:Pt;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Vt=Ot;function kt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Nt(e,t,n){if(!t)return e;const r=n&&n.encode||kt,o=n&&n.serialize;let i;if(i=o?o(t,n):gt.isURLSearchParams(t)?t.toString():new Vt(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}var Mt=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){gt.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Dt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jt="undefined"!=typeof URLSearchParams?URLSearchParams:Vt,Ft=FormData;const _t=(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})();var Ht={isBrowser:!0,classes:{URLSearchParams:jt,FormData:Ft,Blob:Blob},isStandardBrowserEnv:_t,protocols:["http","https","file","blob","url","data"]},Bt=function(e){function t(e,n,r,o){let i=e[o++];const a=Number.isFinite(+i),s=o>=e.length;return i=!i&>.isArray(r)?r.length:i,s?(gt.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&>.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&>.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(gt.isFormData(e)&>.isFunction(e.entries)){const n={};return gt.forEachEntry(e,((e,r)=>{t(function(e){return gt.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},It=Ht.isStandardBrowserEnv?{write:function(e,t,n,r,o,i){const a=[];a.push(e+"="+encodeURIComponent(t)),gt.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),gt.isString(r)&&a.push("path="+r),gt.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Ut(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var zt=Ht.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=gt.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function Zt(e,t,n){Et.call(this,null==e?"canceled":e,Et.ERR_CANCELED,t,n),this.name="CanceledError"}gt.inherits(Zt,Et,{__CANCEL__:!0});var Wt=Zt;const qt=gt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$t=Symbol("internals"),Yt=Symbol("defaults");function Xt(e){return e&&String(e).trim().toLowerCase()}function Gt(e){return!1===e||null==e?e:gt.isArray(e)?e.map(Gt):String(e)}function Jt(e,t,n,r){return gt.isFunction(r)?r.call(this,t,n):gt.isString(t)?gt.isString(r)?-1!==t.indexOf(r):gt.isRegExp(r)?r.test(t):void 0:void 0}function Kt(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}function Qt(e,t){e&&this.set(e),this[Yt]=t||null}Object.assign(Qt.prototype,{set:function(e,t,n){const r=this;function o(e,t,n){const o=Xt(t);if(!o)throw new Error("header name must be a non-empty string");const i=Kt(r,o);(!i||!0===n||!1!==r[i]&&!1!==n)&&(r[i||t]=Gt(e))}return gt.isPlainObject(e)?gt.forEach(e,((e,n)=>{o(e,n,t)})):o(t,e,n),this},get:function(e,t){if(!(e=Xt(e)))return;const n=Kt(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(gt.isFunction(t))return t.call(this,e,n);if(gt.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=Xt(e)){const n=Kt(this,e);return!(!n||t&&!Jt(0,this[n],n,t))}return!1},delete:function(e,t){const n=this;let r=!1;function o(e){if(e=Xt(e)){const o=Kt(n,e);!o||t&&!Jt(0,n[o],o,t)||(delete n[o],r=!0)}}return gt.isArray(e)?e.forEach(o):o(e),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(e){const t=this,n={};return gt.forEach(this,((r,o)=>{const i=Kt(n,o);if(i)return t[i]=Gt(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Gt(r),n[a]=!0})),this},toJSON:function(e){const t=Object.create(null);return gt.forEach(Object.assign({},this[Yt]||null,this),((n,r)=>{null!=n&&!1!==n&&(t[r]=e&>.isArray(n)?n.join(", "):n)})),t}}),Object.assign(Qt,{from:function(e){return gt.isString(e)?new this((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&qt[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e)):e instanceof this?e:new this(e)},accessor:function(e){const t=(this[$t]=this[$t]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Xt(e);t[r]||(function(e,t){const n=gt.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return gt.isArray(e)?e.forEach(r):r(e),this}}),Qt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),gt.freezeMethods(Qt.prototype),gt.freezeMethods(Qt);var en=Qt;function tn(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=r[a];o||(o=l),n[i]=s,r[i]=l;let c=a,d=0;for(;c!==i;)d+=n[c++],c%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=u&&l-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,l=r(s);n=i;const u={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0};u[t?"download":"upload"]=!0,e(u)}}function nn(e){return new Promise((function(t,n){let r=e.data;const o=en.from(e.headers).normalize(),i=e.responseType;let a;function s(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}gt.isFormData(r)&&Ht.isStandardBrowserEnv&&o.setContentType(!1);let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const u=Ut(e.baseURL,e.url);function c(){if(!l)return;const r=en.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Et("Request failed with status code "+n.status,[Et.ERR_BAD_REQUEST,Et.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),s()}),(function(e){n(e),s()}),{data:i&&"text"!==i&&"json"!==i?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:r,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),Nt(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=c:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(c)},l.onabort=function(){l&&(n(new Et("Request aborted",Et.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new Et("Network Error",Et.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Dt;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Et(t,r.clarifyTimeoutError?Et.ETIMEDOUT:Et.ECONNABORTED,e,l)),l=null},Ht.isStandardBrowserEnv){const t=(e.withCredentials||zt(u))&&e.xsrfCookieName&&It.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in l&>.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),gt.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&"json"!==i&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",tn(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",tn(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{l&&(n(!t||t.type?new Wt(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);d&&-1===Ht.protocols.indexOf(d)?n(new Et("Unsupported protocol "+d+":",Et.ERR_BAD_REQUEST,e)):l.send(r||null)}))}const rn={http:nn,xhr:nn};var on=e=>{if(gt.isString(e)){const t=rn[e];if(!e)throw Error(gt.hasOwnProp(e)?`Adapter '${e}' is not available in the build`:`Can not resolve adapter '${e}'`);return t}if(!gt.isFunction(e))throw new TypeError("adapter is not a function");return e};const an={"Content-Type":"application/x-www-form-urlencoded"},sn={transitional:Dt,adapter:function(){let e;return"undefined"!=typeof XMLHttpRequest?e=on("xhr"):"undefined"!=typeof process&&"process"===gt.kindOf(process)&&(e=on("http")),e}(),transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=gt.isObject(e);if(o&>.isHTMLForm(e)&&(e=new FormData(e)),gt.isFormData(e))return r&&r?JSON.stringify(Bt(e)):e;if(gt.isArrayBuffer(e)||gt.isBuffer(e)||gt.isStream(e)||gt.isFile(e)||gt.isBlob(e))return e;if(gt.isArrayBufferView(e))return e.buffer;if(gt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return At(e,new Ht.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ht.isNode&>.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=gt.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return At(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(gt.isString(e))try{return(0,JSON.parse)(e),gt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||sn.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&>.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Et.from(e,Et.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ht.classes.FormData,Blob:Ht.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};gt.forEach(["delete","get","head"],(function(e){sn.headers[e]={}})),gt.forEach(["post","put","patch"],(function(e){sn.headers[e]=gt.merge(an)}));var ln=sn;function un(e,t){const n=this||ln,r=t||n,o=en.from(r.headers);let i=r.data;return gt.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function cn(e){return!(!e||!e.__CANCEL__)}function dn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wt}function fn(e){return dn(e),e.headers=en.from(e.headers),e.data=un.call(e,e.transformRequest),(e.adapter||ln.adapter)(e).then((function(t){return dn(e),t.data=un.call(e,e.transformResponse,t),t.headers=en.from(t.headers),t}),(function(t){return cn(t)||(dn(e),t&&t.response&&(t.response.data=un.call(e,e.transformResponse,t.response),t.response.headers=en.from(t.response.headers))),Promise.reject(t)}))}function pn(e,t){t=t||{};const n={};function r(e,t){return gt.isPlainObject(e)&>.isPlainObject(t)?gt.merge(e,t):gt.isPlainObject(t)?gt.merge({},t):gt.isArray(t)?t.slice():t}function o(n){return gt.isUndefined(t[n])?gt.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function i(e){if(!gt.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return gt.isUndefined(t[n])?gt.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function s(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return gt.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){const t=l[e]||o,r=t(e);gt.isUndefined(r)&&t!==s||(n[e]=r)})),n}const mn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{mn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const hn={};mn.transitional=function(e,t,n){function r(e,t){return"[Axios v1.1.3] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Et(r(o," has been removed"+(t?" in "+t:"")),Et.ERR_DEPRECATED);return t&&!hn[o]&&(hn[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var vn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Et("options must be an object",Et.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Et("option "+i+" must be "+n,Et.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Et("Unknown option "+i,Et.ERR_BAD_OPTION)}},validators:mn};const gn=vn.validators;class yn{constructor(e){this.defaults=e,this.interceptors={request:new Mt,response:new Mt}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=pn(this.defaults,t);const{transitional:n,paramsSerializer:r}=t;void 0!==n&&vn.assertOptions(n,{silentJSONParsing:gn.transitional(gn.boolean),forcedJSONParsing:gn.transitional(gn.boolean),clarifyTimeoutError:gn.transitional(gn.boolean)},!1),void 0!==r&&vn.assertOptions(r,{encode:gn.function,serialize:gn.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();const o=t.headers&>.merge(t.headers.common,t.headers[t.method]);o&>.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),t.headers=new en(t.headers,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const s=[];let l;this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)}));let u,c=0;if(!a){const e=[fn.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,s),u=e.length,l=Promise.resolve(t);c<u;)l=l.then(e[c++],e[c++]);return l}u=i.length;let d=t;for(c=0;c<u;){const e=i[c++],t=i[c++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=fn.call(this,d)}catch(e){return Promise.reject(e)}for(c=0,u=s.length;c<u;)l=l.then(s[c++],s[c++]);return l}getUri(e){return Nt(Ut((e=pn(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}gt.forEach(["delete","get","head","options"],(function(e){yn.prototype[e]=function(t,n){return this.request(pn(n||{},{method:e,url:t,data:(n||{}).data}))}})),gt.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(pn(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}yn.prototype[e]=t(),yn.prototype[e+"Form"]=t(!0)}));var bn=yn;class wn{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Wt(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new wn((function(t){e=t})),cancel:e}}}var En=wn;const xn=function e(t){const n=new bn(t),r=We(bn.prototype.request,n);return gt.extend(r,bn.prototype,n,{allOwnKeys:!0}),gt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(pn(t,n))},r}(ln);xn.Axios=bn,xn.CanceledError=Wt,xn.CancelToken=En,xn.isCancel=cn,xn.VERSION="1.1.3",xn.toFormData=At,xn.AxiosError=Et,xn.Cancel=xn.CanceledError,xn.all=function(e){return Promise.all(e)},xn.spread=function(e){return function(t){return e.apply(null,t)}},xn.isAxiosError=function(e){return gt.isObject(e)&&!0===e.isAxiosError},xn.formToJSON=e=>Bt(gt.isHTMLForm(e)?new FormData(e):e);var Cn=xn;const{Axios:Sn,AxiosError:Tn,CanceledError:Ln,isCancel:An,CancelToken:Pn,VERSION:On,all:Rn,Cancel:Vn,isAxiosError:kn,spread:Nn,toFormData:Mn}=Cn,Dn=Cn.create({baseURL:window.extAssistData.root,headers:{"X-WP-Nonce":window.extAssistData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Assist":!0,"X-Extendify":!0}});Dn.interceptors.request.use((e=>jn(e)),(e=>e)),Dn.interceptors.response.use((e=>Object.prototype.hasOwnProperty.call(e,"data")?e.data:e));const jn=e=>(e.headers["X-Extendify-Assist-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Assist-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e),Fn={getItem:async()=>JSON.stringify(await Dn.get("assist/global-data")),setItem:async(e,t)=>{return await(n=t,Dn.post("assist/global-data",{data:n}));var n},removeItem:()=>{}},Hn=Be(Ze(Ie(((e,t)=>({dismissedNotices:[],modals:[],pushModal(t){e((e=>({modals:[t,...e.modals]})))},popModal(){e((e=>({modals:e.modals.slice(1)})))},clearModals(){e({modals:[]})},isDismissed(e){return t().dismissedNotices.some((t=>t.id===e))},dismissNotice(n){if(t().isDismissed(n))return;const r={id:n,dismissedAt:(new Date).toISOString()};e((e=>({dismissedNotices:[...e.dismissedNotices,r]})))}})),{name:"Extendify Assist Globals"}),{name:"extendify-assist-globals",getStorage:()=>Fn,partialize:e=>(delete e.modals,e)})),Bn=()=>{const{modals:n,popModal:i}=Hn(),s=n[0],[l,u]=(0,e.useState)("");return(0,e.useEffect)((()=>{n[0]||u("")}),[n]),(0,e.createElement)(De,{as:"div",className:"extendify-assist extendify-assist-modal",open:n.length>0,onClose:i},(0,e.createElement)("div",{className:"fixed top-0 mx-auto w-full h-full overflow-hidden p-2 md:p-6 md:flex justify-center items-center z-high"},(0,e.createElement)("div",{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity","aria-hidden":"true"}),(0,e.createElement)("div",{className:"sm:flex relative shadow-2xl sm:overflow-hidden mx-auto bg-white flex flex-col min-w-md rounded-sm"},(0,e.createElement)("div",{className:"flex items-center justify-between"},(0,e.createElement)(De.Title,{className:"m-0 px-6"},l),(0,e.createElement)(t.Button,{className:"border-0 cursor-pointer m-4",onClick:i,icon:(0,e.createElement)(o,{icon:a,size:24}),label:(0,r.__)("Close Modal","extendify"),showTooltip:!1})),(0,e.createElement)("div",{className:"m-0 p-6 pt-0 text-left relative"},(null==n?void 0:n.length)>0&&(0,e.createElement)(s,{popModal:i,setModalTitle:u})))))},In=()=>(0,e.createElement)(Bn,null);function Un(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function zn(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var Zn,Wn=function(){},qn=Wn(),$n=Object,Yn=function(e){return e===qn},Xn=function(e){return"function"==typeof e},Gn=function(e,t){return $n.assign({},e,t)},Jn="undefined",Kn=function(){return typeof window!=Jn},Qn=new WeakMap,er=0,tr=function(e){var t,n,r=typeof e,o=e&&e.constructor,i=o==Date;if($n(e)!==e||i||o==RegExp)t=i?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=Qn.get(e))return t;if(t=++er+"~",Qn.set(e,t),o==Array){for(t="@",n=0;n<e.length;n++)t+=tr(e[n])+",";Qn.set(e,t)}if(o==$n){t="#";for(var a=$n.keys(e).sort();!Yn(n=a.pop());)Yn(e[n])||(t+=n+":"+tr(e[n])+",");Qn.set(e,t)}}return t},nr=!0,rr=Kn(),or=typeof document!=Jn,ir=rr&&window.addEventListener?window.addEventListener.bind(window):Wn,ar=or?document.addEventListener.bind(document):Wn,sr=rr&&window.removeEventListener?window.removeEventListener.bind(window):Wn,lr=or?document.removeEventListener.bind(document):Wn,ur={isOnline:function(){return nr},isVisible:function(){var e=or&&document.visibilityState;return Yn(e)||"hidden"!==e}},cr={initFocus:function(e){return ar("visibilitychange",e),ir("focus",e),function(){lr("visibilitychange",e),sr("focus",e)}},initReconnect:function(e){var t=function(){nr=!0,e()},n=function(){nr=!1};return ir("online",t),ir("offline",n),function(){sr("online",t),sr("offline",n)}}},dr=!Kn()||"Deno"in window,fr=dr?s.useEffect:s.useLayoutEffect,pr="undefined"!=typeof navigator&&navigator.connection,mr=!dr&&pr&&(["slow-2g","2g"].includes(pr.effectiveType)||pr.saveData),hr=function(e){if(Xn(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?tr(e):"",t,e?"$swr$"+e:""]},vr=new WeakMap,gr=function(e,t,n,r,o,i,a){void 0===a&&(a=!0);var s=vr.get(e),l=s[0],u=s[1],c=s[3],d=l[t],f=u[t];if(a&&f)for(var p=0;p<f.length;++p)f[p](n,r,o);return i&&(delete c[t],d&&d[0])?d[0](2).then((function(){return e.get(t)})):e.get(t)},yr=0,br=function(){return++yr},wr=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Un(void 0,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,u,c,d,f,p,m,h,v,g,y,b,w,E;return zn(this,(function(x){switch(x.label){case 0:if(t=e[0],n=e[1],r=e[2],o=e[3],a=!!Yn((i="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||i.populateCache,s=!1!==i.revalidate,l=!1!==i.rollbackOnError,u=i.optimisticData,c=hr(n),d=c[0],f=c[2],!d)return[2];if(p=vr.get(t),m=p[2],e.length<3)return[2,gr(t,d,t.get(d),qn,qn,s,!0)];if(h=r,g=br(),m[d]=[g,0],y=!Yn(u),b=t.get(d),y&&(w=Xn(u)?u(b):u,t.set(d,w),gr(t,d,w)),Xn(h))try{h=h(t.get(d))}catch(e){v=e}return h&&Xn(h.then)?[4,h.catch((function(e){v=e}))]:[3,2];case 1:if(h=x.sent(),g!==m[d][0]){if(v)throw v;return[2,h]}v&&y&&l&&(a=!0,h=b,t.set(d,b)),x.label=2;case 2:return a&&(v||(Xn(a)&&(h=a(h,b)),t.set(d,h)),t.set(f,Gn(t.get(f),{error:v}))),m[d][1]=br(),[4,gr(t,d,h,v,qn,s,!!a)];case 3:if(E=x.sent(),v)throw v;return[2,a?E:h]}}))}))},Er=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},xr=function(e,t){if(!vr.has(e)){var n=Gn(cr,t),r={},o=wr.bind(qn,e),i=Wn;if(vr.set(e,[r,{},{},{},o]),!dr){var a=n.initFocus(setTimeout.bind(qn,Er.bind(qn,r,0))),s=n.initReconnect(setTimeout.bind(qn,Er.bind(qn,r,1)));i=function(){a&&a(),s&&s(),vr.delete(e)}}return[e,o,i]}return[e,vr.get(e)[4]]},Cr=xr(new Map),Sr=Cr[0],Tr=Cr[1],Lr=Gn({onLoadingSlow:Wn,onSuccess:Wn,onError:Wn,onErrorRetry:function(e,__,t,n,r){var o=t.errorRetryCount,i=r.retryCount,a=~~((Math.random()+.5)*(1<<(i<8?i:8)))*t.errorRetryInterval;!Yn(o)&&i>o||setTimeout(n,a,r)},onDiscarded:Wn,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:mr?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:mr?5e3:3e3,compare:function(e,t){return tr(e)==tr(t)},isPaused:function(){return!1},cache:Sr,mutate:Tr,fallback:{}},ur),Ar=function(e,t){var n=Gn(e,t);if(t){var r=e.use,o=e.fallback,i=t.use,a=t.fallback;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=Gn(o,a))}return n},Pr=(0,s.createContext)({}),Or=function(e){return Xn(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},Rr=function(){return Gn(Lr,(0,s.useContext)(Pr))},Vr=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},kr={dedupe:!0},Nr=$n.defineProperty((function(e){var t=e.value,n=Ar((0,s.useContext)(Pr),t),r=t&&t.provider,o=(0,s.useState)((function(){return r?xr(r(n.cache||Sr),t):qn}))[0];return o&&(n.cache=o[0],n.mutate=o[1]),fr((function(){return o?o[2]:qn}),[]),(0,s.createElement)(Pr.Provider,Gn(e,{value:n}))}),"default",{value:Lr}),Mr=(Zn=function(e,t,n){var r=n.cache,o=n.compare,i=n.fallbackData,a=n.suspense,l=n.revalidateOnMount,u=n.refreshInterval,c=n.refreshWhenHidden,d=n.refreshWhenOffline,f=vr.get(r),p=f[0],m=f[1],h=f[2],v=f[3],g=hr(e),y=g[0],b=g[1],w=g[2],E=(0,s.useRef)(!1),x=(0,s.useRef)(!1),C=(0,s.useRef)(y),S=(0,s.useRef)(t),T=(0,s.useRef)(n),L=function(){return T.current},A=function(){return L().isVisible()&&L().isOnline()},P=function(e){return r.set(w,Gn(r.get(w),e))},O=r.get(y),R=Yn(i)?n.fallback[y]:i,V=Yn(O)?R:O,k=r.get(w)||{},N=k.error,M=!E.current,D=function(){return M&&!Yn(l)?l:!L().isPaused()&&(a?!Yn(V)&&n.revalidateIfStale:Yn(V)||n.revalidateIfStale)},j=!(!y||!t)&&(!!k.isValidating||M&&D()),F=function(e,t){var n=(0,s.useState)({})[1],r=(0,s.useRef)(e),o=(0,s.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,s.useCallback)((function(e){var i=!1,a=r.current;for(var s in e){var l=s;a[l]!==e[l]&&(a[l]=e[l],o.current[l]&&(i=!0))}i&&!t.current&&n({})}),[]);return fr((function(){r.current=e})),[r,o.current,i]}({data:V,error:N,isValidating:j},x),_=F[0],H=F[1],B=F[2],I=(0,s.useCallback)((function(e){return Un(void 0,void 0,void 0,(function(){var t,i,a,s,l,u,c,d,f,p,m,g,w;return zn(this,(function(T){switch(T.label){case 0:if(t=S.current,!y||!t||x.current||L().isPaused())return[2,!1];s=!0,l=e||{},u=!v[y]||!l.dedupe,c=function(){return!x.current&&y===C.current&&E.current},d=function(){var e=v[y];e&&e[1]===a&&delete v[y]},f={isValidating:!1},p=function(){P({isValidating:!1}),c()&&B(f)},P({isValidating:!0}),B({isValidating:!0}),T.label=1;case 1:return T.trys.push([1,3,,4]),u&&(gr(r,y,_.current.data,_.current.error,!0),n.loadingTimeout&&!r.get(y)&&setTimeout((function(){s&&c()&&L().onLoadingSlow(y,n)}),n.loadingTimeout),v[y]=[t.apply(void 0,b),br()]),w=v[y],i=w[0],a=w[1],[4,i];case 2:return i=T.sent(),u&&setTimeout(d,n.dedupingInterval),v[y]&&v[y][1]===a?(P({error:qn}),f.error=qn,m=h[y],!Yn(m)&&(a<=m[0]||a<=m[1]||0===m[1])?(p(),u&&c()&&L().onDiscarded(y),[2,!1]):(o(_.current.data,i)?f.data=_.current.data:f.data=i,o(r.get(y),i)||r.set(y,i),u&&c()&&L().onSuccess(i,y,n),[3,4])):(u&&c()&&L().onDiscarded(y),[2,!1]);case 3:return g=T.sent(),d(),L().isPaused()||(P({error:g}),f.error=g,u&&c()&&(L().onError(g,y,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||Xn(n.shouldRetryOnError)&&n.shouldRetryOnError(g))&&A()&&L().onErrorRetry(g,y,n,I,{retryCount:(l.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return s=!1,p(),c()&&u&&gr(r,y,f.data,f.error,!1),[2,!0]}}))}))}),[y]),U=(0,s.useCallback)(wr.bind(qn,r,(function(){return C.current})),[]);if(fr((function(){S.current=t,T.current=n})),fr((function(){if(y){var e=y!==C.current,t=I.bind(qn,kr),n=0,r=Vr(y,m,(function(e,t,n){B(Gn({error:t,isValidating:n},o(_.current.data,e)?qn:{data:e}))})),i=Vr(y,p,(function(e){if(0==e){var r=Date.now();L().revalidateOnFocus&&r>n&&A()&&(n=r+L().focusThrottleInterval,t())}else if(1==e)L().revalidateOnReconnect&&A()&&t();else if(2==e)return I()}));return x.current=!1,C.current=y,E.current=!0,e&&B({data:V,error:N,isValidating:j}),D()&&(Yn(V)||dr?t():function(e){Kn()&&typeof window.requestAnimationFrame!=Jn?window.requestAnimationFrame(e):setTimeout(e,1)}(t)),function(){x.current=!0,r(),i()}}}),[y,I]),fr((function(){var e;function t(){var t=Xn(u)?u(V):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){_.current.error||!c&&!L().isVisible()||!d&&!L().isOnline()?t():I(kr).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[u,c,d,I]),(0,s.useDebugValue)(V),a&&Yn(V)&&y)throw S.current=t,T.current=n,x.current=!1,Yn(N)?I(kr):N;return{mutate:U,get data(){return H.data=!0,V},get error(){return H.error=!0,N},get isValidating(){return H.isValidating=!0,j}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Rr(),r=Or(e),o=r[0],i=r[1],a=r[2],s=Ar(n,a),l=Zn,u=s.use;if(u)for(var c=u.length;c-- >0;)l=u[c](l);return l(o,i||s.fetcher,s)}),Dr=function(){return Dr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Dr.apply(this,arguments)},jr=function(e){return function(e){return"function"==typeof e}(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},Fr=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=jr(n),i=o[0],a=o[1],s=o[2],l=(s.use||[]).concat(t);return e(i,a,Dr(Dr({},s),{use:l}))}}(Mr,(function(e){return function(t,n,r){return r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r)}}));const _r=(e,t)=>Dn.post("assist/options",{option:e,value:t}),Hr=async e=>{const{data:t}=await Dn.get("assist/options",{params:{option:e}});return t},Br=e=>{try{const t=new URL(e);return"https:"===window.location.protocol&&(t.protocol="https:"),t.toString()}catch(t){return e}},Ir=()=>{const{pages:n,loading:o,error:i}=(()=>{const{data:e,error:t}=Fr("pages-list",(async()=>{const e=await Dn.get("assist/launch-pages");if(null==e||!e.data||!Array.isArray(e.data))throw console.error(e),new Error("Bad data");return e.data}));return{pages:e,error:t,loading:!e&&!t}})();return o||i?(0,e.createElement)("div",{className:"my-4 w-full flex items-center max-w-3/4 mx-auto bg-gray-100 p-12"},(0,e.createElement)(t.Spinner,null)):0===n.length?(0,e.createElement)("div",{className:"my-4 max-w-3/4 w-full mx-auto bg-gray-100 p-12"},(0,r.__)("No pages found...","extendify")):(0,e.createElement)("div",{className:"my-4 text-base max-w-3/4 w-full mx-auto"},(0,e.createElement)("h2",{className:"text-lg mb-3"},(0,r.__)("Pages","extendify"),":"),(0,e.createElement)("div",{className:"grid grid-cols-2 gap-4"},n.map((t=>(0,e.createElement)("div",{key:t.ID,className:"p-3 flex items-center justify-between border border-solid border-gray-400"},(0,e.createElement)("div",{className:"flex items-center"},(0,e.createElement)("span",{className:"dashicons dashicons-saved"}),(0,e.createElement)("span",{className:"pl-1 font-semibold"},t.post_title||(0,r.__)("Untitled","extendify"))),(0,e.createElement)("div",{className:"flex text-sm"},(0,e.createElement)("span",null,(0,e.createElement)("a",{target:"_blank",rel:"noreferrer",href:Br(t.url)},(0,r.__)("View","extendify"))),(0,e.createElement)("span",{className:"mr-2 pl-2"},(0,e.createElement)("a",{target:"_blank",rel:"noreferrer",href:`${window.extAssistData.adminUrl}post.php?post=${t.ID}&action=edit`},(0,r.__)("Edit","extendify")))))))))};var Ur=n(184),zr=n.n(Ur);function Zr(){return Zr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zr.apply(this,arguments)}(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M3 13H7V19H3V13ZM10 9H14V19H10V9ZM17 5H21V19H17V5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M14 8H10C9.448 8 9 8.448 9 9V19C9 19.552 9.448 20 10 20H14C14.552 20 15 19.552 15 19V9C15 8.448 14.552 8 14 8ZM13 18H11V10H13V18ZM21 4H17C16.448 4 16 4.448 16 5V19C16 19.552 16.448 20 17 20H21C21.552 20 22 19.552 22 19V5C22 4.448 21.552 4 21 4ZM20 18H18V6H20V18ZM7 12H3C2.448 12 2 12.448 2 13V19C2 19.552 2.448 20 3 20H7C7.552 20 8 19.552 8 19V13C8 12.448 7.552 12 7 12ZM6 18H4V14H6V18Z",fill:"currentColor"}))}));var Wr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))}));(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M11.5003 15.5L15.5003 11.4998L20.0004 15.9998L16.0004 19.9999L11.5003 15.5Z",fill:"currentColor"}),(0,e.createElement)("path",{opacity:"0.3",d:"M3.93958 7.94043L7.93961 3.94026L12.4397 8.44021L8.43968 12.4404L3.93958 7.94043Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M8.575 11.747L4.828 8L8 4.828L11.747 8.575L13.161 7.161L8 2L2 8L7.161 13.161L8.575 11.747ZM16.769 10.769L15.355 12.183L19.172 16L16 19.172L12.183 15.355L10.769 16.769L16 22L22 16L16.769 10.769Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M21.707 4.879L19.121 2.293C18.926 2.098 18.67 2 18.414 2C18.158 2 17.902 2.098 17.707 2.293L3 17V21H7L21.707 6.293C22.098 5.902 22.098 5.269 21.707 4.879ZM6.172 19H5V17.828L15.707 7.121L16.879 8.293L6.172 19ZM18.293 6.879L17.121 5.707L18.414 4.414L19.586 5.586L18.293 6.879Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M20 6C20 9 19 13 19 13L13.3 17L12.6 16.4C11.8 15.6 11.8 14.2 12.6 13.4L14.8 11.2C14.8 8.7 12.1 7.2 9.89999 8.5C9.19999 9 8.59999 9.6 7.89999 10.3V13L5.89999 16C4.79999 16 3.89999 15.1 3.89999 14V10.4C3.89999 9.5 4.19999 8.6 4.79999 7.9L7.59999 4.4L14 2C14.9 4.4 16.8 5.8 20 6Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M13.2 18.2996L12 17.0996C10.7 15.7996 10.7 13.8996 12 12.5996L13.9 10.6996C13.8 10.0996 13.4 9.49961 12.8 9.19961C12.1 8.79961 11.3 8.79961 10.6 9.19961C10.1 9.49961 9.7 9.89961 9.3 10.3996C9.2 10.4996 9.2 10.4996 9.1 10.5996V12.9996H7V9.89961L7.3 9.59961C7.5 9.39961 7.6 9.29961 7.8 9.09961C8.3 8.59961 8.8 7.99961 9.5 7.59961C10.8 6.79961 12.4 6.79961 13.7 7.49961C15 8.29961 15.9 9.59961 15.9 11.1996V11.5996L13.4 14.0996C13.2 14.2996 13.1 14.5996 13.1 14.8996C13.1 15.1996 13.2 15.4996 13.4 15.6996L13.5 15.7996L18.2 12.4996C18.4 11.4996 19.1 8.39961 19.1 6.09961H21.1C21.1 9.19961 20.1 13.1996 20.1 13.2996L20 13.6996L13.2 18.2996Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M11 23.0005C9.7 23.0005 8.4 22.6005 7.3 21.7005C4.7 19.7005 4.3 15.9005 6.3 13.3005C8.1 11.0005 11.3 10.3005 13.9 11.8005L12.9 13.6005C11.2 12.7005 9.1 13.1005 7.9 14.6005C6.5 16.3005 6.8 18.8005 8.6 20.2005C10.3 21.6005 12.8 21.3005 14.2 19.5005C14.9 18.6005 15.2 17.4005 15 16.2005L17 15.8005C17.4 17.5005 16.9 19.3005 15.8 20.7005C14.5 22.2005 12.7 23.0005 11 23.0005Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M6 16.9996C4.3 16.9996 3 15.6996 3 13.9996V10.3996C3 9.29961 3.4 8.19961 4.1 7.29961L7.1 3.59961L13.7 1.09961L14.4 2.99961L8.3 5.29961L5.7 8.49961C5.2 9.09961 5 9.69961 5 10.3996V13.9996C5 14.5996 5.4 14.9996 6 14.9996V16.9996Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:`icon ${n}`,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M10 17.5L15 12L10 6.5",stroke:"currentColor",strokeWidth:"1.75"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M609.404 378.5C585.07 378.5 563.404 373 544.404 362C525.737 350.667 511.07 335.333 500.404 316C489.737 296.333 484.404 273.833 484.404 248.5C484.404 222.833 489.57 200.167 499.904 180.5C510.237 160.833 524.737 145.5 543.404 134.5C562.07 123.167 583.404 117.5 607.404 117.5C632.404 117.5 653.904 122.833 671.904 133.5C689.904 143.833 703.737 158.333 713.404 177C723.404 195.667 728.404 218 728.404 244V262.5L516.404 263L517.404 224H667.904C667.904 207 662.404 193.333 651.404 183C640.737 172.667 626.237 167.5 607.904 167.5C593.57 167.5 581.404 170.5 571.404 176.5C561.737 182.5 554.404 191.5 549.404 203.5C544.404 215.5 541.904 230.167 541.904 247.5C541.904 274.167 547.57 294.333 558.904 308C570.57 321.667 587.737 328.5 610.404 328.5C627.07 328.5 640.737 325.333 651.404 319C662.404 312.667 669.57 303.667 672.904 292H729.404C724.07 319 710.737 340.167 689.404 355.5C668.404 370.833 641.737 378.5 609.404 378.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M797.529 372H728.029L813.029 251L728.029 125H799.029L853.529 209L906.029 125H974.529L890.529 250.5L972.029 372H902.029L849.029 290.5L797.529 372Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M994.142 125H1150.14V176H994.142V125ZM1102.64 372H1041.64V48H1102.64V372Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1278.62 378.5C1254.29 378.5 1232.62 373 1213.62 362C1194.96 350.667 1180.29 335.333 1169.62 316C1158.96 296.333 1153.62 273.833 1153.62 248.5C1153.62 222.833 1158.79 200.167 1169.12 180.5C1179.46 160.833 1193.96 145.5 1212.62 134.5C1231.29 123.167 1252.62 117.5 1276.62 117.5C1301.62 117.5 1323.12 122.833 1341.12 133.5C1359.12 143.833 1372.96 158.333 1382.62 177C1392.62 195.667 1397.62 218 1397.62 244V262.5L1185.62 263L1186.62 224H1337.12C1337.12 207 1331.62 193.333 1320.62 183C1309.96 172.667 1295.46 167.5 1277.12 167.5C1262.79 167.5 1250.62 170.5 1240.62 176.5C1230.96 182.5 1223.62 191.5 1218.62 203.5C1213.62 215.5 1211.12 230.167 1211.12 247.5C1211.12 274.167 1216.79 294.333 1228.12 308C1239.79 321.667 1256.96 328.5 1279.62 328.5C1296.29 328.5 1309.96 325.333 1320.62 319C1331.62 312.667 1338.79 303.667 1342.12 292H1398.62C1393.29 319 1379.96 340.167 1358.62 355.5C1337.62 370.833 1310.96 378.5 1278.62 378.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1484.44 372H1423.44V125H1479.94L1484.94 157C1492.61 144.667 1503.44 135 1517.44 128C1531.78 121 1547.28 117.5 1563.94 117.5C1594.94 117.5 1618.28 126.667 1633.94 145C1649.94 163.333 1657.94 188.333 1657.94 220V372H1596.94V234.5C1596.94 213.833 1592.28 198.5 1582.94 188.5C1573.61 178.167 1560.94 173 1544.94 173C1525.94 173 1511.11 179 1500.44 191C1489.78 203 1484.44 219 1484.44 239V372Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1798.38 378.5C1774.38 378.5 1753.71 373.167 1736.38 362.5C1719.38 351.5 1706.04 336.333 1696.38 317C1687.04 297.667 1682.38 275.167 1682.38 249.5C1682.38 223.833 1687.04 201.167 1696.38 181.5C1706.04 161.5 1719.88 145.833 1737.88 134.5C1755.88 123.167 1777.21 117.5 1801.88 117.5C1819.21 117.5 1835.04 121 1849.38 128C1863.71 134.667 1874.71 144.167 1882.38 156.5V0H1942.88V372H1886.88L1882.88 333.5C1875.54 347.5 1864.21 358.5 1848.88 366.5C1833.88 374.5 1817.04 378.5 1798.38 378.5ZM1811.88 322.5C1826.21 322.5 1838.54 319.5 1848.88 313.5C1859.21 307.167 1867.21 298.333 1872.88 287C1878.88 275.333 1881.88 262.167 1881.88 247.5C1881.88 232.5 1878.88 219.5 1872.88 208.5C1867.21 197.167 1859.21 188.333 1848.88 182C1838.54 175.333 1826.21 172 1811.88 172C1797.88 172 1785.71 175.333 1775.38 182C1765.04 188.333 1757.04 197.167 1751.38 208.5C1746.04 219.833 1743.38 232.833 1743.38 247.5C1743.38 262.167 1746.04 275.167 1751.38 286.5C1757.04 297.833 1765.04 306.667 1775.38 313C1785.71 319.333 1797.88 322.5 1811.88 322.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1996.45 372V125H2057.45V372H1996.45ZM2026.45 75.5C2016.11 75.5 2007.28 72 1999.95 65C1992.95 57.6667 1989.45 48.8333 1989.45 38.5C1989.45 28.1667 1992.95 19.5 1999.95 12.5C2007.28 5.50001 2016.11 2.00002 2026.45 2.00002C2036.78 2.00002 2045.45 5.50001 2052.45 12.5C2059.78 19.5 2063.45 28.1667 2063.45 38.5C2063.45 48.8333 2059.78 57.6667 2052.45 65C2045.45 72 2036.78 75.5 2026.45 75.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M2085.97 125H2240.97V176H2085.97V125ZM2241.47 2.5V54.5C2238.14 54.5 2234.64 54.5 2230.97 54.5C2227.64 54.5 2224.14 54.5 2220.47 54.5C2205.14 54.5 2194.8 58.1667 2189.47 65.5C2184.47 72.8333 2181.97 82.6667 2181.97 95V372H2121.47V95C2121.47 72.3333 2125.14 54.1667 2132.47 40.5C2139.8 26.5 2150.14 16.3333 2163.47 10C2176.8 3.33334 2192.3 0 2209.97 0C2214.97 0 2220.14 0.166671 2225.47 0.5C2231.14 0.833329 2236.47 1.49999 2241.47 2.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M2330.4 125L2410.9 353L2377.9 415.5L2265.9 125H2330.4ZM2272.4 486.5V436H2308.9C2316.9 436 2323.9 435 2329.9 433C2335.9 431.333 2341.24 428 2345.9 423C2350.9 418 2355.07 410.667 2358.4 401L2460.9 125H2523.9L2402.9 427C2393.9 449.667 2382.57 466.167 2368.9 476.5C2355.24 486.833 2338.24 492 2317.9 492C2309.24 492 2301.07 491.5 2293.4 490.5C2286.07 489.833 2279.07 488.5 2272.4 486.5Z",fill:"currentColor"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M226.926 25.1299H310.197C333.783 25.1299 342.32 27.5938 350.948 32.1932C359.576 36.8108 366.326 43.5822 370.941 52.1969C375.556 60.8298 378 69.3715 378 92.9707V176.289C378 199.888 375.537 208.43 370.941 217.063C366.326 225.696 359.558 232.449 350.948 237.066C347.091 239.131 343.244 240.83 338.064 242.047V308.355C338.064 344.802 334.261 357.994 327.162 371.327C320.034 384.66 309.583 395.09 296.285 402.221C282.96 409.353 269.775 413.13 233.349 413.13H104.744C68.3172 413.13 55.1327 409.325 41.8073 402.221C28.4819 395.09 18.0583 384.632 10.9308 371.327C3.80323 358.023 0 344.802 0 308.355V179.706C0 143.259 3.80323 130.067 10.9026 116.734C18.0301 103.401 28.4819 92.9431 41.8073 85.8116C55.1045 78.7082 68.3172 74.9028 104.744 74.9028H159.808C160.841 64.0747 162.996 58.1666 166.165 52.2151C170.78 43.5822 177.547 36.8108 186.175 32.1932C194.785 27.5938 203.34 25.1299 226.926 25.1299ZM184.128 78.1641C184.128 62.7001 196.658 50.1641 212.114 50.1641H324.991C340.448 50.1641 352.978 62.7001 352.978 78.1641V191.096C352.978 206.56 340.448 219.096 324.991 219.096H212.114C196.658 219.096 184.128 206.56 184.128 191.096V78.1641Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M12 14L3 9V19H21V9L12 14Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M21.008 6.24719L12 0.992188L2.992 6.24719C2.38 6.60419 2 7.26619 2 7.97519V18.0002C2 19.1032 2.897 20.0002 4 20.0002H20C21.103 20.0002 22 19.1032 22 18.0002V7.97519C22 7.26619 21.62 6.60419 21.008 6.24719ZM19.892 7.91219L12 12.8222L4.108 7.91119L12 3.30819L19.892 7.91219ZM4 18.0002V10.2002L12 15.1782L20 10.2002L20.001 18.0002H4Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M7.03432 14.8828L16.2343 5.68249L18.2298 7.67791L9.02981 16.8782L7.03432 14.8828Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M3.669 17L3 21L7 20.331L3.669 17ZM21.707 4.879L19.121 2.293C18.926 2.098 18.67 2 18.414 2C18.158 2 17.902 2.098 17.707 2.293L5 15C5 15 6.005 15.005 6.5 15.5C6.995 15.995 6.984 16.984 6.984 16.984C6.984 16.984 8.003 17.003 8.5 17.5C8.997 17.997 9 19 9 19L21.707 6.293C22.098 5.902 22.098 5.269 21.707 4.879ZM8.686 15.308C8.588 15.05 8.459 14.789 8.289 14.539L15.951 6.877L17.123 8.049L9.461 15.711C9.21 15.539 8.946 15.408 8.686 15.308ZM18.537 6.635L17.365 5.463L18.414 4.414L19.586 5.586L18.537 6.635Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M4 5H20V9H4V5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M12 13H17V18H12V13ZM6 2H8V5H6V2ZM16 2H18V5H16V2Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M19 22H5C3.9 22 3 21.1 3 20V6C3 4.9 3.9 4 5 4H19C20.1 4 21 4.9 21 6V20C21 21.1 20.1 22 19 22ZM5 6V20H19V6H5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M4 8H20V10H4V8Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M20 11.414L10.707 20.707C10.518 20.896 10.267 21 10 21C9.733 21 9.482 20.896 9.293 20.707L3.293 14.707C3.104 14.518 3 14.267 3 14C3 13.733 3.104 13.482 3.293 13.293L12.586 4H20V11.414Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M10 22C9.466 22 8.964 21.792 8.586 21.414L2.586 15.414C2.208 15.036 2 14.534 2 14C2 13.466 2.208 12.964 2.586 12.586L12.172 3H21V11.828L11.414 21.414C11.036 21.792 10.534 22 10 22ZM13 5L4 14L10 20L19 11V5H13Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M16 7C15.7348 7 15.4804 7.10536 15.2929 7.29289C15.1054 7.48043 15 7.73478 15 8C15 8.26522 15.1054 8.51957 15.2929 8.70711C15.4804 8.89464 15.7348 9 16 9C16.2652 9 16.5196 8.89464 16.7071 8.70711C16.8946 8.51957 17 8.26522 17 8C17 7.73478 16.8946 7.48043 16.7071 7.29289C16.5196 7.10536 16.2652 7 16 7Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"-4 -4 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{stroke:"currentColor",d:"M6.5 0.5h0s6 0 6 6v0s0 6 -6 6h0s-6 0 -6 -6v0s0 -6 6 -6"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{fill:"currentColor",d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:`icon ${n}`,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M15 17.5L10 12L15 6.5",stroke:"currentColor",strokeWidth:"1.75"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,e.createElement)("path",{d:"M7 12.27v3.72l5 2.73 5-2.73v-3.72L12 15zM5.18 9L12 12.72 18.82 9 12 5.28z",opacity:".3"}),(0,e.createElement)("path",{d:"M12 3L1 9l4 2.18v6L12 21l7-3.82v-6l2-1.09V17h2V9L12 3zm5 12.99l-5 2.73-5-2.73v-3.72L12 15l5-2.73v3.72zm-5-3.27L5.18 9 12 5.28 18.82 9 12 12.72z"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M8 18.5504L12 14.8899",stroke:"#1E1E1E",strokeWidth:"1.5"}),(0,e.createElement)("path",{d:"M20.25 11.7523C20.25 14.547 18.092 16.7546 15.5 16.7546C12.908 16.7546 10.75 14.547 10.75 11.7523C10.75 8.95754 12.908 6.75 15.5 6.75C18.092 6.75 20.25 8.95754 20.25 11.7523Z",stroke:"#1E1E1E",strokeWidth:"1.5"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M19.27 8H4.73L3 13.2V14H21V13.2L19.27 8ZM5 4H19V8H5V4Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M13 21H3V13H13V21ZM5 19H11V15H5V19Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M22 15H2V13.038L4.009 7H19.991L22 13.038V15ZM4.121 13H19.88L18.549 9H5.451L4.121 13Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M19 14H21V21H19V14ZM20 9H4V3H20V9ZM6 7H18V5H6V7Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M21 11C21 6.6 17 3 12 3C7 3 3 6.6 3 11C3 15.4 7 19 12 19C12.7 19 13.4 18.9 14 18.8V21.3C16 20 20.5 16.5 21 11.9C21 11.6 21 11.3 21 11Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M13 23.1V20C7 20.6 2 16.3 2 11C2 6 6.5 2 12 2C17.5 2 22 6 22 11C22 11.3 22 11.6 21.9 12C21.3 17.5 15.6 21.4 14.5 22.2L13 23.1ZM15 17.6V19.3C16.9 17.8 19.6 15.1 20 11.7C20 11.5 20 11.2 20 11C20 7.1 16.4 4 12 4C7.6 4 4 7.1 4 11C4 15.4 8.6 18.9 13.8 17.8L15 17.6Z",fill:"currentColor"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("circle",{cx:"10",cy:"10",r:"10",fill:"black",fillOpacity:"0.4"}),(0,e.createElement)("ellipse",{cx:"15.5552",cy:"6.66656",rx:"2.22222",ry:"2.22222",fill:"white"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M87.5 48.8281H75V51.1719H87.5V48.8281Z",fill:"black"}),(0,e.createElement)("path",{d:"M25 48.8281H12.5V51.1719H25V48.8281Z",fill:"black"}),(0,e.createElement)("path",{d:"M51.1719 75H48.8281V87.5H51.1719V75Z",fill:"black"}),(0,e.createElement)("path",{d:"M51.1719 12.5H48.8281V25H51.1719V12.5Z",fill:"black"}),(0,e.createElement)("path",{d:"M77.3433 75.6868L69.4082 67.7517L67.7511 69.4088L75.6862 77.344L77.3433 75.6868Z",fill:"black"}),(0,e.createElement)("path",{d:"M32.2457 30.5897L24.3105 22.6545L22.6534 24.3117L30.5885 32.2468L32.2457 30.5897Z",fill:"black"}),(0,e.createElement)("path",{d:"M77.3407 24.3131L75.6836 22.656L67.7485 30.5911L69.4056 32.2483L77.3407 24.3131Z",fill:"black"}),(0,e.createElement)("path",{d:"M32.2431 69.4074L30.5859 67.7502L22.6508 75.6854L24.3079 77.3425L32.2431 69.4074Z",fill:"black"}))})),(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Zr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M22 10V6C22 4.9 21.11 4 20 4H4C2.9 4 2 4.9 2 6V10C3.1 10 4 10.9 4 12C4 13.1 3.1 14 2 14V18C2 19.1 2.9 20 4 20H20C21.11 20 22 19.1 22 18V14C20.89 14 20 13.1 20 12C20 10.9 20.89 10 22 10ZM20 8.54C18.81 9.23 18 10.52 18 12C18 13.48 18.81 14.77 20 15.46V18H4V15.46C5.19 14.77 6 13.48 6 12C6 10.52 5.19 9.23 4 8.54V6H20V8.54Z",fill:"currentColor"}),(0,e.createElement)("path",{opacity:"0.3",d:"M18 12C18 13.48 18.81 14.77 20 15.46V18H4V15.46C5.19 14.77 6 13.48 6 12C6 10.52 5.19 9.23 4 8.54V6H20V8.54C18.81 9.23 18 10.52 18 12Z",fill:"currentColor"}))}));var qr={grad:.9,turn:360,rad:360/(2*Math.PI)},$r=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Yr=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Xr=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Gr=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Jr=function(e){return{r:Xr(e.r,0,255),g:Xr(e.g,0,255),b:Xr(e.b,0,255),a:Xr(e.a)}},Kr=function(e){return{r:Yr(e.r),g:Yr(e.g),b:Yr(e.b),a:Yr(e.a,3)}},Qr=/^#([0-9a-f]{3,8})$/i,eo=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},to=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:60*(s<0?s+6:s),s:i?a/i*100:0,v:i/255*100,a:o}},no=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),u=i%6;return{r:255*[r,s,a,a,l,r][u],g:255*[l,r,r,s,a,a][u],b:255*[a,a,l,r,r,s][u],a:o}},ro=function(e){return{h:Gr(e.h),s:Xr(e.s,0,100),l:Xr(e.l,0,100),a:Xr(e.a)}},oo=function(e){return{h:Yr(e.h),s:Yr(e.s),l:Yr(e.l),a:Yr(e.a,3)}},io=function(e){return no((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},ao=function(e){return{h:(t=to(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},so=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,lo=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,uo=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,co=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,fo={string:[[function(e){var t=Qr.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Yr(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?Yr(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=uo.exec(e)||co.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Jr({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=so.exec(e)||lo.exec(e);if(!t)return null;var n,r,o=ro({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(qr[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return io(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=void 0===o?1:o;return $r(t)&&$r(n)&&$r(r)?Jr({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=void 0===o?1:o;if(!$r(t)||!$r(n)||!$r(r))return null;var a=ro({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return io(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!$r(t)||!$r(n)||!$r(r))return null;var a=function(e){return{h:Gr(e.h),s:Xr(e.s,0,100),v:Xr(e.v,0,100),a:Xr(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return no(a)},"hsv"]]},po=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},mo=function(e,t){var n=ao(e);return{h:n.h,s:Xr(n.s+100*t,0,100),l:n.l,a:n.a}},ho=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},vo=function(e,t){var n=ao(e);return{h:n.h,s:n.s,l:Xr(n.l+100*t,0,100),a:n.a}},go=function(){function e(e){this.parsed=function(e){return"string"==typeof e?po(e.trim(),fo.string):"object"==typeof e&&null!==e?po(e,fo.object):[null,void 0]}(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 Yr(ho(this.rgba),2)},e.prototype.isDark=function(){return ho(this.rgba)<.5},e.prototype.isLight=function(){return ho(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Kr(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?eo(Yr(255*o)):"","#"+eo(t)+eo(n)+eo(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return Kr(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Kr(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return oo(ao(this.rgba))},e.prototype.toHslString=function(){return t=(e=oo(ao(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=to(this.rgba),{h:Yr(e.h),s:Yr(e.s),v:Yr(e.v),a:Yr(e.a,3)};var e},e.prototype.invert=function(){return yo({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),yo(mo(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),yo(mo(this.rgba,-e))},e.prototype.grayscale=function(){return yo(mo(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),yo(vo(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),yo(vo(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?yo({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Yr(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=ao(this.rgba);return"number"==typeof e?yo({h:e,s:t.s,l:t.l,a:t.a}):Yr(t.h)},e.prototype.isEqual=function(e){return this.toHex()===yo(e).toHex()},e}(),yo=function(e){return e instanceof go?e:new go(e)};const bo=()=>{const[t,n]=(0,e.useState)("#3959e9"),[r,o]=(0,e.useState)(yo("#3959e9").darken(.05).toHex());return(0,e.useLayoutEffect)((()=>{var e;const t=document.querySelector("a.wp-has-current-submenu");if(!t)return;const r=null===(e=window.getComputedStyle(t))||void 0===e?void 0:e["background-color"];n(r),o(yo(r).darken(.05).toHex())}),[]),{mainColor:t,darkColor:r}},wo=localStorage.getItem("extendify-site-selection"),Eo={getItem:wo?()=>(localStorage.removeItem("extendify-site-selection"),wo):async()=>JSON.stringify(await Dn.get("assist/user-selection-data")),setItem:async(e,t)=>{return await(n=t,Dn.post("assist/user-selection-data",{data:n}));var n},removeItem:()=>{}},xo=Be(Ze(Ie((()=>({siteType:{},siteInformation:{title:void 0},feedbackMissingSiteType:"",feedbackMissingGoal:"",exitFeedback:void 0,siteTypeSearch:[],style:null,pages:[],plugins:[],goals:[]})),{name:"Extendify User Selections"}),{name:"extendify-site-selection",getStorage:()=>Eo})),Co={getItem:async()=>JSON.stringify(await Dn.get("assist/task-data")),setItem:async(e,t)=>{return await(n=t,Dn.post("assist/task-data",{data:n}));var n},removeItem:()=>{}},So=Be(Ze(Ie(((e,t)=>({activeTests:[],seenTasks:[],completedTasks:[],inProgressTasks:[],isCompleted(e){return t().completedTasks.some((t=>(null==t?void 0:t.id)===e))},completeTask(n){t().isCompleted(n)||e((e=>({completedTasks:[...e.completedTasks,{id:n,completedAt:(new Date).toISOString()}]})))},isSeen(e){return t().seenTasks.some((t=>(null==t?void 0:t.id)===e))},seeTask(n){if(t().isSeen(n))return;const r={id:n,firstSeenAt:(new Date).toISOString()};e((e=>({seenTasks:[...e.seenTasks,r]})))},uncompleteTask(t){e((e=>({completedTasks:e.completedTasks.filter((e=>e.id!==t))})))},toggleCompleted(e){t().isCompleted(e)?t().uncompleteTask(e):t().completeTask(e)}})),{name:"Extendify Assist Tasks"}),{name:"extendify-assist-tasks",getStorage:()=>Co}));var To=window.wp.blob,Lo=window.wp.coreData,Ao=window.wp.data,Po=window.wp.mediaUtils,Oo=window.wp.hooks;const Ro=n=>{let{type:o,onUpdate:i,title:a,actionLabel:s}=n;const[l,u]=(0,e.useState)(!1),[c,d]=(0,e.useState)(0),f=(0,Ao.useSelect)((e=>e(Lo.store).getMedia(c)),[c]),{mediaWidth:p,mediaHeight:m,mediaSourceUrl:h}=(e=>{var t,n,r,o;if(!e)return{};const i=(0,Oo.applyFilters)("editor.PostFeaturedImage.imageSize","large",e.id);if(i in(null!==(t=null==e||null===(n=e.media_details)||void 0===n?void 0:n.sizes)&&void 0!==t?t:{}))return{mediaWidth:e.media_details.sizes[i].width,mediaHeight:e.media_details.sizes[i].height,mediaSourceUrl:e.media_details.sizes[i].source_url};const a=(0,Oo.applyFilters)("editor.PostFeaturedImage.imageSize","thumbnail",e.id);return a in(null!==(r=null==e||null===(o=e.media_details)||void 0===o?void 0:o.sizes)&&void 0!==r?r:{})?{mediaWidth:e.media_details.sizes[a].width,mediaHeight:e.media_details.sizes[a].height,mediaSourceUrl:e.media_details.sizes[a].source_url}:{mediaWidth:e.media_details.width,mediaHeight:e.media_details.height,mediaSourceUrl:e.source_url}})(f);(0,e.useEffect)((()=>{Hr(o).then((e=>d(Number(e))))}),[o]);const v=e=>{d(e.id),_r(o,e.id),i()},g=e=>{(0,Po.uploadMedia)({allowedTypes:["image"],filesList:e,onFileChange(e){let[t]=e;(0,To.isBlobURL)(null==t?void 0:t.url)?u(!0):(v(t),u(!1))},onError(e){console.error({message:e})}})};return(0,e.createElement)("div",null,(0,e.createElement)(Vo,null,(0,e.createElement)(Po.MediaUpload,{title:a,onSelect:v,allowedTypes:["image"],value:c,modalClass:"",render:n=>{let{open:o}=n;return(0,e.createElement)("div",{className:"relative block"},(0,e.createElement)(t.Button,{className:"editor-post-featured-image__toggle extendify-assist-upload-logo p-0 m-0 border-0 cursor-pointer block w-full min-w-full text-center relative bg-gray-100 hover:bg-gray-300 hover:text-current h-48 items-center",onClick:o,"aria-label":c?(0,r.__)("Edit or update the image","extendify"):null,"aria-describedby":c?`image-${c}-describedby`:null},Boolean(c)&&f&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(t.ResponsiveWrapper,{naturalWidth:p,naturalHeight:m,isInline:!0},(0,e.createElement)("img",{className:"block m-auto w-auto max-w-auto h-auto max-h-full absolute inset-0",src:h,alt:""}))),l&&(0,e.createElement)(t.Spinner,null),!c&&!l&&s),(0,e.createElement)(t.DropZone,{className:"w-full h-full absolute inset-0",onFilesDrop:g}))}})),Boolean(c)&&(0,e.createElement)("div",{className:"block mt-2"},(0,e.createElement)(Vo,null,c&&(0,e.createElement)(Po.MediaUpload,{title:a,onSelect:v,unstableFeaturedImageFlow:!0,allowedTypes:["image"],modalClass:"image__media-modal",render:n=>{let{open:o}=n;return(0,e.createElement)(t.Button,{onClick:o,variant:"secondary"},(0,r.__)("Replace image","extendify"))}}),(0,e.createElement)(t.Button,{onClick:()=>{d(0),_r(o,0)},variant:"link",className:"ml-4",isDestructive:!0},(0,r.__)("Remove image","extendify")))))},Vo=n=>{let{fallback:r=null,children:o}=n;const{checkingPermissions:i,hasUploadPermissions:a}=(0,Ao.useSelect)((e=>{const t=e("core");return{hasUploadPermissions:t.canUser("read","media"),checkingPermissions:!t.hasFinishedResolution("canUser",["read","media"])}}));return(0,e.createElement)(e.Fragment,null,i&&(0,e.createElement)(t.Spinner,null),!i&&a?o:r)},ko=t=>{let{setModalTitle:n}=t;const{completeTask:o}=So();return(0,e.useEffect)((()=>{n((0,r.__)("Upload site logo","extendify"))}),[n]),(0,e.createElement)(Ro,{type:"site_logo",title:(0,r.__)("Site logo","extendify"),actionLabel:(0,r.__)("Set site logo","extendify"),onUpdate:()=>{o("logo")}})},No=t=>{let{popModal:n,setModalTitle:o}=t;const[i,a]=(0,e.useState)(void 0),[s,l]=(0,e.useState)(void 0),u=(0,e.useRef)(),{completeTask:c}=So(),{mainColor:d}=bo();return(0,e.useEffect)((()=>{o((0,r.__)("Add site description","extendify"))}),[o]),(0,e.useEffect)((()=>{Hr("blogdescription").then((e=>{a(e),l(e)}))}),[a]),(0,e.useEffect)((()=>{var e;null==u||null===(e=u.current)||void 0===e||e.focus()}),[s]),void 0===i?(0,e.createElement)("div",{className:"h-32"},(0,r.__)("Loading...","extendify")):(0,e.createElement)("form",{className:"gap-6 flex flex-col",onSubmit:e=>e.preventDefault()},(0,e.createElement)("div",null,(0,e.createElement)("label",{className:"block mb-1",htmlFor:"extendify-site-description-input"},(0,r.__)("Site description","extendify")),(0,e.createElement)("input",{ref:u,type:"text",name:"extendify-site-description-input",id:"extendify-site-description-input",className:"w-96 max-w-full border h-12 input-focus",onChange:e=>{a(e.target.value)},value:i,placeholder:(0,r.__)("Enter a site description...","extendify")})),(0,e.createElement)("div",null,(0,e.createElement)("button",{disabled:i===s,className:zr()("px-4 py-3 text-white button-focus border-0 rounded relative z-10 cursor-pointer w-1/5",{"opacity-50 cursor-default":i===s}),style:{backgroundColor:d},onClick:async()=>{await _r("blogdescription",i),c("site-description"),n()}},(0,r.__)("Save","extendify"))))},Mo=t=>{let{setModalTitle:n}=t;const{completeTask:o}=So();return(0,e.useEffect)((()=>{n((0,r.__)("Upload site icon","extendify"))}),[n]),(0,e.createElement)(Ro,{type:"site_icon",title:(0,r.__)("Site icon","extendify"),actionLabel:(0,r.__)("Set site icon","extendify"),onUpdate:()=>{o("site-icon")}})},Do=()=>{const{seeTask:n,completedTasks:o}=So(),{tasks:i,loading:a,error:s}=(()=>{const{data:e,error:t}=Fr("tasks",(async()=>{const e=await Dn.get("assist/tasks");if(null==e||!e.data||!Array.isArray(e.data))throw console.error(e),new Error("Bad data");return e.data}));return{tasks:e,error:t,loading:!e&&!t}})(),[l,u]=(0,e.useState)(!1),c=(()=>{const[t,n]=(0,e.useState)(So.persist.hasHydrated);return(0,e.useEffect)((()=>{const e=So.persist.onFinishHydration((()=>n(!0)));return()=>{e()}}),[]),t})(),d=(()=>{const[t,n]=(0,e.useState)(xo.persist.hasHydrated);return(0,e.useEffect)((()=>{const e=xo.persist.onFinishHydration((()=>n(!0)));return()=>{e()}}),[]),t})(),f=xo((e=>{var t;return null===(t=e.plugins)||void 0===t?void 0:t.reduce(((e,t)=>{var n;return[...e,...null!==(n=null==t?void 0:t.goals)&&void 0!==n?n:[]]}),[])})),p=null==i?void 0:i.filter((e=>{var t,n;return null==e||null===(t=e.goals)||void 0===t||!t.length||(null==e||null===(n=e.goals)||void 0===n?void 0:n.some((e=>f.includes(e))))})),m=o.map((e=>e.id)),h=null==p?void 0:p.filter((e=>m.includes(e.slug))),v=null==p?void 0:p.filter((e=>!m.includes(e.slug)));return(0,e.useEffect)((()=>{null!=p&&p.length&&c&&p.forEach((e=>n(e.slug)))}),[p,n,c]),a||!c||!d||s?(0,e.createElement)("div",{className:"my-4 w-full flex items-center max-w-3/4 mx-auto bg-gray-100 p-12"},(0,e.createElement)(t.Spinner,null)):0===(null==i?void 0:i.length)||0===(null==p?void 0:p.length)?(0,e.createElement)("div",{className:"my-4 max-w-3/4 w-full mx-auto bg-gray-100 p-12"},(0,r.__)("No tasks found...","extendify")):(0,e.createElement)("div",{className:"my-4 max-w-3/4 w-full mx-auto bg-gray-100 p-12 pt-10"},(0,e.createElement)("div",{className:"mb-6 flex gap-0 flex-col"},(0,e.createElement)("h2",{className:"my-0 text-lg"},(0,r.__)("Get ready to go live","extendify")),(0,e.createElement)("div",{className:"flex gap-1"},(0,e.createElement)("span",null,(0,r.sprintf)(// translators: %s is the number of tasks
|
2 |
+
(0,r.__)("%s completed","extendify"),h.length)),h.length>0&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",null,"·"),(0,e.createElement)("button",{className:"underline cursor-pointer p-0",onClick:()=>{u(!l)}},l?(0,r.__)("Hide","extendify"):(0,r.__)("Show","extendify"))))),(0,e.createElement)("div",{className:"w-full"},v.map((t=>(0,e.createElement)(jo,{key:t.slug,task:t})))),l&&(0,e.createElement)("div",{className:"completed-tasks w-full"},h.map((t=>(0,e.createElement)(jo,{key:t.slug,task:t})))))},jo=n=>{let{task:o}=n;const{isCompleted:i,toggleCompleted:a}=So();return(0,e.createElement)("div",{className:"p-3 flex gap-3 justify-between border border-solid border-gray-400 bg-white mt-4 relative items-center"},(0,e.createElement)("div",{className:"flex gap-3 w-4/5"},(0,e.createElement)("span",{className:"block mt-1 relative self-start"},(0,e.createElement)("input",{id:`task-${o.slug}`,type:"checkbox",className:zr()("hide-checkmark h-6 w-6 rounded-full border-gray-400 outline-none focus:ring-wp ring-partner-primary-bg ring-offset-2 ring-offset-white m-0 focus:outline-none focus:shadow-none",{"bg-partner-primary-bg":i(o.slug)}),checked:i(o.slug),value:o.slug,name:o.slug,onChange:()=>a(o.slug)}),(0,e.createElement)(Wr,{className:"text-white fill-current absolute h-6 w-6 block top-0"})),(0,e.createElement)("span",{className:"flex flex-col"},(0,e.createElement)("label",{htmlFor:`task-${o.slug}`,className:"text-base font-semibold"},(0,e.createElement)("span",{"aria-hidden":"true",className:"absolute inset-0"}),o.title),(0,e.createElement)("span",null,o.description," ",o.link&&(0,e.createElement)(t.ExternalLink,{className:"relative z-10",href:o.link},(0,r.__)("Learn more","extendify"))))),(0,e.createElement)(Fo,{task:o}))},Fo=t=>{let{task:n}=t;const{pushModal:o}=Hn(),{mainColor:i}=bo(),{isCompleted:a,completeTask:s}=So();return"logo"===(null==n?void 0:n.slug)?(0,e.createElement)("button",{style:{backgroundColor:i},className:"px-4 py-3 text-white button-focus border-0 rounded relative z-10 cursor-pointer w-1/5",onClick:()=>o(ko)},a("logo")?(0,r.__)("Replace","extendify"):(0,r.__)("Upload","extendify")):"site-icon"===(null==n?void 0:n.slug)?(0,e.createElement)("button",{style:{backgroundColor:i},className:"px-4 py-3 text-white button-focus border-0 rounded relative z-10 cursor-pointer w-1/5",onClick:()=>o(Mo)},a("site-icon")?(0,r.__)("Replace","extendify"):(0,r.__)("Upload","extendify")):"site-description"===(null==n?void 0:n.slug)?(0,e.createElement)("button",{style:{backgroundColor:i},className:"px-4 py-3 text-white button-focus border-0 rounded relative z-10 cursor-pointer w-1/5",onClick:()=>o(No)},a("site-description")?(0,r.__)("Change","extendify"):(0,r.__)("Add","extendify")):"add-pages"===(null==n?void 0:n.slug)?(0,e.createElement)("button",{style:{backgroundColor:i},className:"px-4 py-3 text-white button-focus border-0 rounded relative z-10 cursor-pointer w-1/5",onClick:()=>{s("add-pages"),window.open(`${window.extAssistData.adminUrl}post-new.php?post_type=page&ext-open&ext-patternType=template`,"_blank")}},(0,r.__)("Add new","extendify")):"edit-homepage"===(null==n?void 0:n.slug)?(0,e.createElement)(_o,null):null},_o=()=>{const[t,n]=(0,e.useState)(0),{mainColor:o}=bo();(0,e.useEffect)((()=>{Hr("page_on_front").then(n)}),[t]);const{completeTask:i}=So();return t?(0,e.createElement)("button",{style:{backgroundColor:o},className:"px-4 py-3 text-white button-focus border-0 rounded relative z-10 cursor-pointer w-1/5 disabled:bg-gray-700",onClick:()=>{i("edit-homepage"),window.open(`${window.extAssistData.adminUrl}post.php?post=${t}&action=edit`,"_blank")}},(0,r.__)("Edit now","extendify")):null};function Ho(e,...t){e&&t.length>0&&e.classList.add(...t)}function Bo(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Io=(e=>(e.Ended="ended",e.Cancelled="cancelled",e))(Io||{});function Uo(){let[e]=(0,s.useState)(xe);return(0,s.useEffect)((()=>()=>e.dispose()),[e]),e}function zo({container:e,direction:t,classes:n,onStart:r,onStop:o}){let i=Z(),a=Uo(),s=w(t);b((()=>{let t=xe();a.add(t.dispose);let u=e.current;if(u&&"idle"!==s.current&&i.current)return t.dispose(),r.current(s.current),t.add(function(e,t,n,r){let o=n?"enter":"leave",i=xe(),a=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let s=l(o,{enter:()=>t.enter,leave:()=>t.leave}),u=l(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=l(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Bo(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Ho(e,...s,...c),i.nextFrame((()=>{Bo(e,...c),Ho(e,...u),function(e,t){let n=xe();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,a]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(i+a!==0){let r=[];r.push(n.addEventListener(e,"transitionrun",(o=>{o.target===o.currentTarget&&(r.splice(0).forEach((e=>e())),r.push(n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t("ended"),r.splice(0).forEach((e=>e())))})),n.addEventListener(e,"transitioncancel",(e=>{e.target===e.currentTarget&&(t("cancelled"),r.splice(0).forEach((e=>e())))}))))})))}else t("ended");n.add((()=>t("cancelled"))),n.dispose}(e,(n=>("ended"===n&&(Bo(e,...s),Ho(e,...t.entered)),a(n))))})),i.dispose}(u,n.current,"enter"===s.current,(e=>{t.dispose(),l(e,{[Io.Ended](){o.current(s.current)},[Io.Cancelled]:()=>{}})}))),t.dispose}),[t])}function Zo(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let Wo=(0,s.createContext)(null);Wo.displayName="TransitionContext";var qo,$o=((qo=$o||{}).Visible="visible",qo.Hidden="hidden",qo);let Yo=(0,s.createContext)(null);function Xo(e){return"children"in e?Xo(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Go(e,t){let n=w(e),r=(0,s.useRef)([]),o=Z(),i=Uo(),a=E(((e,t=d.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(l(t,{[d.Unmount](){r.current.splice(a,1)},[d.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!Xo(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),u=E((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,d.Unmount)})),c=(0,s.useRef)([]),f=(0,s.useRef)(Promise.resolve()),p=(0,s.useRef)({enter:[],leave:[],idle:[]}),m=E(((e,n,r)=>{c.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{c.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(p.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?f.current=f.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),h=E(((e,t,n)=>{Promise.all(p.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>n(t)))}));return(0,s.useMemo)((()=>({children:r,register:u,unregister:a,onStart:m,onStop:h,wait:f,chains:p})),[u,a,r,m,h,p,f])}function Jo(){}Yo.displayName="NestingContext";let Ko=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Qo(e){var t;let n={};for(let r of Ko)n[r]=null!=(t=e[r])?t:Jo;return n}let ei=c.RenderStrategy,ti=h((function(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i,enter:a,enterFrom:u,enterTo:c,entered:p,leave:m,leaveFrom:h,leaveTo:v,...g}=e,y=(0,s.useRef)(null),b=S(y,t),x=g.unmount?d.Unmount:d.Hidden,{show:C,appear:T,initial:L}=function(){let e=(0,s.useContext)(Wo);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[P,O]=(0,s.useState)(C?"visible":"hidden"),R=function(){let e=(0,s.useContext)(Yo);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:V,unregister:k}=R,N=(0,s.useRef)(null);(0,s.useEffect)((()=>V(y)),[V,y]),(0,s.useEffect)((()=>{if(x===d.Hidden&&y.current)return C&&"visible"!==P?void O("visible"):l(P,{hidden:()=>k(y),visible:()=>V(y)})}),[P,y,V,k,C,x]);let M=w({enter:Zo(a),enterFrom:Zo(u),enterTo:Zo(c),entered:Zo(p),leave:Zo(m),leaveFrom:Zo(h),leaveTo:Zo(v)}),D=function(e){let t=(0,s.useRef)(Qo(e));return(0,s.useEffect)((()=>{t.current=Qo(e)}),[e]),t}({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i}),j=A();(0,s.useEffect)((()=>{if(j&&"visible"===P&&null===y.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[y,P,j]);let F=L&&!T,_=!j||F||N.current===C?"idle":C?"enter":"leave",H=E((e=>l(e,{enter:()=>D.current.beforeEnter(),leave:()=>D.current.beforeLeave(),idle:()=>{}}))),B=E((e=>l(e,{enter:()=>D.current.afterEnter(),leave:()=>D.current.afterLeave(),idle:()=>{}}))),I=Go((()=>{O("hidden"),k(y)}),R);zo({container:y,classes:M,direction:_,onStart:w((e=>{I.onStart(y,e,H)})),onStop:w((e=>{I.onStop(y,e,B),"leave"===e&&!Xo(I)&&(O("hidden"),k(y))}))}),(0,s.useEffect)((()=>{!F||(x===d.Hidden?N.current=null:N.current=C)}),[C,F,P]);let U=g,z={ref:b};return s.createElement(Yo.Provider,{value:I},s.createElement(ge,{value:l(P,{visible:he.Open,hidden:he.Closed})},f({ourProps:z,theirProps:U,defaultTag:"div",features:ei,visible:"visible"===P,name:"Transition.Child"})))})),ni=h((function(e,t){let{show:n,appear:r=!1,unmount:o,...i}=e,a=(0,s.useRef)(null),u=S(a,t);A();let c=ve();if(void 0===n&&null!==c&&(n=l(c,{[he.Open]:!0,[he.Closed]:!1})),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,p]=(0,s.useState)(n?"visible":"hidden"),m=Go((()=>{p("hidden")})),[h,v]=(0,s.useState)(!0),g=(0,s.useRef)([n]);b((()=>{!1!==h&&g.current[g.current.length-1]!==n&&(g.current.push(n),v(!1))}),[g,n]);let y=(0,s.useMemo)((()=>({show:n,appear:r,initial:h})),[n,r,h]);(0,s.useEffect)((()=>{if(n)p("visible");else if(Xo(m)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&p("hidden")}else p("hidden")}),[n,m]);let w={unmount:o};return s.createElement(Yo.Provider,{value:m},s.createElement(Wo.Provider,{value:y},f({ourProps:{...w,as:s.Fragment,children:s.createElement(ti,{ref:u,...w,...i})},theirProps:{},defaultTag:s.Fragment,features:ei,visible:"visible"===d,name:"Transition"})))})),ri=h((function(e,t){let n=null!==(0,s.useContext)(Wo),r=null!==ve();return s.createElement(s.Fragment,null,!n&&r?s.createElement(ni,{ref:t,...e}):s.createElement(ti,{ref:t,...e}))})),oi=Object.assign(ni,{Child:ri,Root:ni});var ii=function(e,t){return ii=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ii(e,t)};function ai(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}ii(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var si=function(){return si=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},si.apply(this,arguments)};function li(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function ui(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function ci(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create;var di=("undefined"==typeof process||process.env,"production"),fi=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},pi={measureLayout:fi(["layout","layoutId","drag"]),animation:fi(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:fi(["exit"]),drag:fi(["drag","dragControls"]),focus:fi(["whileFocus"]),hover:fi(["whileHover","onHoverStart","onHoverEnd"]),tap:fi(["whileTap","onTap","onTapStart","onTapCancel"]),pan:fi(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:fi(["whileInView","onViewportEnter","onViewportLeave"])},mi=(0,s.createContext)({strict:!1}),hi=Object.keys(pi),vi=hi.length,gi=(0,s.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),yi=(0,s.createContext)({}),bi=(0,s.createContext)(null),wi="undefined"!=typeof document,Ei=wi?s.useLayoutEffect:s.useEffect,xi={current:null},Ci=!1;function Si(e,t,n,r){var o,i,a=(0,s.useContext)(mi),l=(0,s.useContext)(yi).visualElement,u=(0,s.useContext)(bi),c=(!Ci&&function(){if(Ci=!0,wi)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return xi.current=e.matches};e.addListener(t),t()}else xi.current=!1}(),o=ui((0,s.useState)(xi.current),1)[0],"never"!==(i=(0,s.useContext)(gi).reducedMotion)&&("always"===i||o)),d=(0,s.useRef)(void 0);r||(r=a.renderer),!d.current&&r&&(d.current=r(e,{visualState:t,parent:l,props:n,presenceId:null==u?void 0:u.id,blockInitialAnimation:!1===(null==u?void 0:u.initial),shouldReduceMotion:c}));var f=d.current;return Ei((function(){null==f||f.syncRender()})),(0,s.useEffect)((function(){var e;null===(e=null==f?void 0:f.animationState)||void 0===e||e.animateChanges()})),Ei((function(){return function(){return null==f?void 0:f.notifyUnmount()}}),[]),f}function Ti(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Li(e){return Array.isArray(e)}function Ai(e){return"string"==typeof e||Li(e)}function Pi(e,t,n,r,o){var i;return void 0===r&&(r={}),void 0===o&&(o={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),"string"==typeof t&&(t=null===(i=e.variants)||void 0===i?void 0:i[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),t}function Oi(e,t,n){var r=e.getProps();return Pi(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function Ri(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Ai(e.initial)||Ai(e.animate)||Ai(e.whileHover)||Ai(e.whileDrag)||Ai(e.whileTap)||Ai(e.whileFocus)||Ai(e.exit)}function Vi(e){return Boolean(Ri(e)||e.variants)}function ki(e){return Array.isArray(e)?e.join(" "):e}function Ni(e){var t=(0,s.useRef)(null);return null===t.current&&(t.current=e()),t.current}var Mi={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Di=1,ji=(0,s.createContext)({}),Fi=(0,s.createContext)({}),_i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ai(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(s.Component);function Hi(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,o=e.useRender,i=e.useVisualState,a=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?pi.projectionNodeConstructor=e[t]:pi[t].Component=e[t])}(t),(0,s.forwardRef)((function(e,l){var u=function(e){var t,n=e.layoutId,r=null===(t=(0,s.useContext)(ji))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=si(si({},e),{layoutId:u});var c=(0,s.useContext)(gi),d=null,f=function(e){var t=function(e,t){if(Ri(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Ai(n)?n:void 0,animate:Ai(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,s.useContext)(yi)),n=t.initial,r=t.animate;return(0,s.useMemo)((function(){return{initial:n,animate:r}}),[ki(n),ki(r)])}(e),p=c.isStatic?void 0:Ni((function(){if(Mi.hasEverUpdated)return Di++})),m=i(e,c.isStatic);return!c.isStatic&&wi&&(f.visualElement=Si(a,m,si(si({},c),e),n),function(e,t,n,r){var o,i=t.layoutId,a=t.layout,l=t.drag,u=t.dragConstraints,c=t.layoutScroll,d=(0,s.useContext)(Fi);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(o=n.parent)||void 0===o?void 0:o.projection),n.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:Boolean(l)||u&&Ti(u),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof a?a:"both",initialPromotionConfig:d,layoutScroll:c}))}(p,e,f.visualElement,r||pi.projectionNodeConstructor),d=function(e,t,n){var r=[],o=(0,s.useContext)(mi);if(!t)return null;"production"!==di&&n&&o.strict;for(var i=0;i<vi;i++){var a=hi[i],l=pi[a],u=l.isEnabled,c=l.Component;u(e)&&c&&r.push(s.createElement(c,si({key:a},e,{visualElement:t})))}return r}(e,f.visualElement,t)),s.createElement(_i,{visualElement:f.visualElement,props:si(si({},c),e)},d,s.createElement(yi.Provider,{value:f},o(a,e,p,function(e,t,n){return(0,s.useCallback)((function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Ti(n)&&(n.current=r))}),[t])}(m,f.visualElement,l),m,c.isStatic,f.visualElement)))}))}function Bi(e){function t(t,n){return void 0===n&&(n={}),Hi(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var Ii=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Ui(e){return"string"==typeof e&&!e.includes("-")&&!!(Ii.indexOf(e)>-1||/[A-Z]/.test(e))}var zi={},Zi=["","X","Y","Z"],Wi=["transformPerspective","x","y","z"];function qi(e,t){return Wi.indexOf(e)-Wi.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return Zi.forEach((function(t){return Wi.push(e+t)}))}));var $i=new Set(Wi);function Yi(e){return $i.has(e)}var Xi=new Set(["originX","originY","originZ"]);function Gi(e){return Xi.has(e)}function Ji(e,t){var n=t.layout,r=t.layoutId;return Yi(e)||Gi(e)||(n||void 0!==r)&&(!!zi[e]||"opacity"===e)}var Ki=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},Qi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function ea(e){return e.startsWith("--")}var ta=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const na=(e,t)=>n=>Math.max(Math.min(n,t),e),ra=e=>e%1?Number(e.toFixed(5)):e,oa=/(-)?([\d]*\.?[\d])+/g,ia=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,aa=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function sa(e){return"string"==typeof e}const la=e=>({test:t=>sa(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ua=la("deg"),ca=la("%"),da=la("px"),fa=la("vh"),pa=la("vw"),ma=Object.assign(Object.assign({},ca),{parse:e=>ca.parse(e)/100,transform:e=>ca.transform(100*e)}),ha={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},va=Object.assign(Object.assign({},ha),{transform:na(0,1)}),ga=Object.assign(Object.assign({},ha),{default:1});var ya=si(si({},ha),{transform:Math.round}),ba={borderWidth:da,borderTopWidth:da,borderRightWidth:da,borderBottomWidth:da,borderLeftWidth:da,borderRadius:da,radius:da,borderTopLeftRadius:da,borderTopRightRadius:da,borderBottomRightRadius:da,borderBottomLeftRadius:da,width:da,maxWidth:da,height:da,maxHeight:da,size:da,top:da,right:da,bottom:da,left:da,padding:da,paddingTop:da,paddingRight:da,paddingBottom:da,paddingLeft:da,margin:da,marginTop:da,marginRight:da,marginBottom:da,marginLeft:da,rotate:ua,rotateX:ua,rotateY:ua,rotateZ:ua,scale:ga,scaleX:ga,scaleY:ga,scaleZ:ga,skew:ua,skewX:ua,skewY:ua,distance:da,translateX:da,translateY:da,translateZ:da,x:da,y:da,z:da,perspective:da,transformPerspective:da,opacity:va,originX:ma,originY:ma,originZ:da,zIndex:ya,fillOpacity:va,strokeOpacity:va,numOctaves:ya};function wa(e,t,n,r){var o,i=e.style,a=e.vars,s=e.transform,l=e.transformKeys,u=e.transformOrigin;l.length=0;var c=!1,d=!1,f=!0;for(var p in t){var m=t[p];if(ea(p))a[p]=m;else{var h=ba[p],v=ta(m,h);if(Yi(p)){if(c=!0,s[p]=v,l.push(p),!f)continue;m!==(null!==(o=h.default)&&void 0!==o?o:0)&&(f=!1)}else Gi(p)?(u[p]=v,d=!0):i[p]=v}}c?i.transform=function(e,t,n,r){var o=e.transform,i=e.transformKeys,a=t.enableHardwareAcceleration,s=void 0===a||a,l=t.allowTransformNone,u=void 0===l||l,c="";i.sort(qi);for(var d=!1,f=i.length,p=0;p<f;p++){var m=i[p];c+="".concat(Qi[m]||m,"(").concat(o[m],") "),"z"===m&&(d=!0)}return!d&&s?c+="translateZ(0)":c=c.trim(),r?c=r(o,n?"":c):u&&n&&(c="none"),c}(e,n,f,r):r?i.transform=r({},""):!t.transform&&i.transform&&(i.transform="none"),d&&(i.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,o=void 0===r?"50%":r,i=e.originZ,a=void 0===i?0:i;return"".concat(n," ").concat(o," ").concat(a)}(u))}function Ea(e,t,n){for(var r in t)Ki(t[r])||Ji(r,n)||(e[r]=t[r])}function xa(e,t,n){var r={},o=function(e,t,n){var r={};return Ea(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return(0,s.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};wa(e,t,{enableHardwareAcceleration:!n},r);var o=e.style;return si(si({},e.vars),o)}),[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=o,r}var Ca=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Sa(e){return Ca.has(e)}var Ta,La=function(e){return!Sa(e)};try{(Ta=require("@emotion/is-prop-valid").default)&&(La=function(e){return e.startsWith("on")?!Sa(e):Ta(e)})}catch(Cr){}function Aa(e,t,n){return"string"==typeof e?e:da.transform(t+n*e)}var Pa={offset:"stroke-dashoffset",array:"stroke-dasharray"},Oa={offset:"strokeDashoffset",array:"strokeDasharray"};function Ra(e,t,n,r){var o=t.attrX,i=t.attrY,a=t.originX,s=t.originY,l=t.pathLength,u=t.pathSpacing,c=void 0===u?1:u,d=t.pathOffset,f=void 0===d?0:d;wa(e,li(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,m=e.style,h=e.dimensions;p.transform&&(h&&(m.transform=p.transform),delete p.transform),h&&(void 0!==a||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,n){var r=Aa(t,e.x,e.width),o=Aa(n,e.y,e.height);return"".concat(r," ").concat(o)}(h,void 0!==a?a:.5,void 0!==s?s:.5)),void 0!==o&&(p.x=o),void 0!==i&&(p.y=i),void 0!==l&&function(e,t,n,r,o){void 0===n&&(n=1),void 0===r&&(r=0),void 0===o&&(o=!0),e.pathLength=1;var i=o?Pa:Oa;e[i.offset]=da.transform(-r);var a=da.transform(t),s=da.transform(n);e[i.array]="".concat(a," ").concat(s)}(p,l,c,f,!1)}var Va=function(){return si(si({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function ka(e,t){var n=(0,s.useMemo)((function(){var n=Va();return Ra(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),si(si({},n.attrs),{style:si({},n.style)})}),[t]);if(e.style){var r={};Ea(r,e.style,e),n.style=si(si({},r),n.style)}return n}function Na(e){return void 0===e&&(e=!1),function(t,n,r,o,i,a){var l=i.latestValues,u=(Ui(t)?ka:xa)(n,l,a),c=function(e,t,n){var r={};for(var o in e)(La(o)||!0===n&&Sa(o)||!t&&!Sa(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),d=si(si(si({},c),u),{ref:o});return r&&(d["data-projection-id"]=r),(0,s.createElement)(t,d)}}var Ma=/([a-z])([A-Z])/g,Da=function(e){return e.replace(Ma,"$1-$2").toLowerCase()};function ja(e,t,n,r){var o=t.style,i=t.vars;for(var a in Object.assign(e.style,o,r&&r.getProjectionStyles(n)),i)e.style.setProperty(a,i[a])}var Fa=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function _a(e,t,n,r){for(var o in ja(e,t,void 0,r),t.attrs)e.setAttribute(Fa.has(o)?o:Da(o),t.attrs[o])}function Ha(e){var t=e.style,n={};for(var r in t)(Ki(t[r])||Ji(r,e))&&(n[r]=t[r]);return n}function Ba(e){var t=Ha(e);for(var n in e)Ki(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Ia(e){return"object"==typeof e&&"function"==typeof e.start}var Ua=function(e){return Array.isArray(e)},za=function(e){return Ua(e)?e[e.length-1]||0:e};function Za(e){var t=Ki(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}function Wa(e,t,n,r){var o=e.scrapeMotionValuesFromProps,i=e.createRenderState,a=e.onMount,s={latestValues:$a(t,n,r,o),renderState:i()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var qa=function(e){return function(t,n){var r=(0,s.useContext)(yi),o=(0,s.useContext)(bi);return n?Wa(e,t,r,o):Ni((function(){return Wa(e,t,r,o)}))}};function $a(e,t,n,r){var o={},i=!1===(null==n?void 0:n.initial),a=r(e);for(var s in a)o[s]=Za(a[s]);var l=e.initial,u=e.animate,c=Ri(e),d=Vi(e);t&&d&&!c&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=u||(u=t.animate));var f=i||!1===l,p=f?u:l;return p&&"boolean"!=typeof p&&!Ia(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=Pi(e,t);if(n){var r=n.transitionEnd;n.transition;var i=li(n,["transitionEnd","transition"]);for(var a in i){var s=i[a];Array.isArray(s)&&(s=s[f?s.length-1:0]),null!==s&&(o[a]=s)}for(var a in r)o[a]=r[a]}})),o}var Ya,Xa={useVisualState:qa({scrapeMotionValuesFromProps:Ba,createRenderState:Va,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}Ra(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),_a(t,r)}})},Ga={useVisualState:qa({scrapeMotionValuesFromProps:Ha,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function Ja(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Ka(e,t,n,r){(0,s.useEffect)((function(){var o=e.current;if(n&&o)return Ja(o,t,n,r)}),[e,t,n,r])}function Qa(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function es(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(Ya||(Ya={}));var ts={pageX:0,pageY:0};function ns(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||ts;return{x:n[t+"X"],y:n[t+"Y"]}}function rs(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function os(e,t){return void 0===t&&(t="page"),{point:es(e)?ns(e,t):rs(e,t)}}var is=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,os(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},as={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},ss={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function ls(e){return wi&&null===window.onpointerdown?e:wi&&null===window.ontouchstart?ss[e]:wi&&null===window.onmousedown?as[e]:e}function us(e,t,n,r){return Ja(e,ls(t),is(n,"pointerdown"===t),r)}function cs(e,t,n,r){return Ka(e,ls(t),n&&is(n,"pointerdown"===t),r)}function ds(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var fs=ds("dragHorizontal"),ps=ds("dragVertical");function ms(e){var t=!1;if("y"===e)t=ps();else if("x"===e)t=fs();else{var n=fs(),r=ps();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function hs(){var e=ms(!0);return!e||(e(),!1)}function vs(e,t,n){return function(r,o){var i;Qa(r)&&!hs()&&(null===(i=e.animationState)||void 0===i||i.setActive(Ya.Hover,t),null==n||n(r,o))}}var gs=function(e,t){return!!t&&(e===t||gs(e,t.parentElement))};function ys(e){return(0,s.useEffect)((function(){return function(){return e()}}),[])}const bs=(e,t)=>n=>t(e(n)),ws=(...e)=>e.reduce(bs);var Es=new Set,xs=new WeakMap,Cs=new WeakMap,Ss=function(e){var t;null===(t=xs.get(e.target))||void 0===t||t(e)},Ts=function(e){e.forEach(Ss)};var Ls={some:0,all:1};function As(e,t,n,r){var o=r.root,i=r.margin,a=r.amount,l=void 0===a?"some":a,u=r.once;(0,s.useEffect)((function(){if(e){var r={root:null==o?void 0:o.current,rootMargin:i,threshold:"number"==typeof l?l:Ls[l]};return function(e,t,n){var r=function(e){var t=e.root,n=li(e,["root"]),r=t||document;Cs.has(r)||Cs.set(r,{});var o=Cs.get(r),i=JSON.stringify(n);return o[i]||(o[i]=new IntersectionObserver(Ts,si({root:t},n))),o[i]}(t);return xs.set(e,n),r.observe(e),function(){xs.delete(e),r.unobserve(e)}}(n.getInstance(),r,(function(e){var r,o=e.isIntersecting;if(t.isInView!==o&&(t.isInView=o,!u||o||!t.hasEnteredView)){o&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(Ya.InView,o);var i=n.getProps(),a=o?i.onViewportEnter:i.onViewportLeave;null==a||a(e)}}))}}),[e,o,i,l])}function Ps(e,t,n,r){var o=r.fallback,i=void 0===o||o;(0,s.useEffect)((function(){var r;e&&i&&("production"!==di&&(r="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",Es.has(r)||(console.warn(r),Es.add(r))),requestAnimationFrame((function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(Ya.InView,!0)})))}),[e])}var Os=function(e){return function(t){return e(t),null}},Rs={inView:Os((function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,o=e.onViewportLeave,i=e.viewport,a=void 0===i?{}:i,l=(0,s.useRef)({hasEnteredView:!1,isInView:!1}),u=Boolean(n||r||o);a.once&&l.current.hasEnteredView&&(u=!1),("undefined"==typeof IntersectionObserver?Ps:As)(u,l.current,t,a)})),tap:Os((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.whileTap,i=e.visualElement,a=t||n||r||o,l=(0,s.useRef)(!1),u=(0,s.useRef)(null),c={passive:!(n||t||r||h)};function d(){var e;null===(e=u.current)||void 0===e||e.call(u),u.current=null}function f(){var e;return d(),l.current=!1,null===(e=i.animationState)||void 0===e||e.setActive(Ya.Tap,!1),!hs()}function p(e,n){f()&&(gs(i.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function m(e,t){f()&&(null==r||r(e,t))}function h(e,t){var r;d(),l.current||(l.current=!0,u.current=ws(us(window,"pointerup",p,c),us(window,"pointercancel",m,c)),null===(r=i.animationState)||void 0===r||r.setActive(Ya.Tap,!0),null==n||n(e,t))}cs(i,"pointerdown",a?h:void 0,c),ys(d)})),focus:Os((function(e){var t=e.whileFocus,n=e.visualElement;Ka(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Ya.Focus,!0)}:void 0),Ka(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Ya.Focus,!1)}:void 0)})),hover:Os((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;cs(o,"pointerenter",t||r?vs(o,!0,t):void 0,{passive:!t}),cs(o,"pointerleave",n||r?vs(o,!1,n):void 0,{passive:!n})}))},Vs=0,ks=function(){return Vs++};function Ns(){var e=(0,s.useContext)(bi);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=Ni(ks);return(0,s.useEffect)((function(){return r(o)}),[]),!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function Ms(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Ds=(e,t,n)=>Math.min(Math.max(n,e),t);function js(e,t){return e*Math.sqrt(1-t*t)}const Fs=["duration","bounce"],_s=["stiffness","damping","mass"];function Hs(e,t){return t.some((t=>void 0!==e[t]))}function Bs(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,i=li(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:f}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Hs(e,_s)&&Hs(e,Fs)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,a=1-t;a=Ds(.05,1,a),e=Ds(.01,10,e/1e3),a<1?(o=t=>{const r=t*a,o=r*e;return.001-(r-n)/js(t,a)*Math.exp(-o)},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=js(Math.pow(t,2),a);return(.001-o(t)>0?-1:1)*((i-s)*l)/u}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(i),p=Is,m=Is;function h(){const e=c?-c/1e3:0,r=n-t,i=l/(2*Math.sqrt(s*u)),a=Math.sqrt(s/u)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),i<1){const t=js(a,i);p=o=>{const s=Math.exp(-i*a*o);return n-s*((e+i*a*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},m=n=>{const o=Math.exp(-i*a*n);return i*a*o*(Math.sin(t*n)*(e+i*a*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+i*a*r)-t*r*Math.sin(t*n))}}else if(1===i)p=t=>n-Math.exp(-a*t)*(r+(e+a*r)*t);else{const t=a*Math.sqrt(i*i-1);p=o=>{const s=Math.exp(-i*a*o),l=Math.min(t*o,300);return n-s*((e+i*a*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return h(),{next:e=>{const t=p(e);if(f)a.done=e>=d;else{const i=1e3*m(e),s=Math.abs(i)<=r,l=Math.abs(n-t)<=o;a.done=s&&l}return a.value=a.done?n:t,a},flipTarget:()=>{c=-c,[t,n]=[n,t],h()}}}Bs.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const Is=e=>0,Us=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},zs=(e,t,n)=>-n*e+n*t+e,Zs=(e,t)=>n=>Boolean(sa(n)&&aa.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Ws=(e,t,n)=>r=>{if(!sa(r))return r;const[o,i,a,s]=r.match(oa);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},qs=na(0,255),$s=Object.assign(Object.assign({},ha),{transform:e=>Math.round(qs(e))}),Ys={test:Zs("rgb","red"),parse:Ws("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+$s.transform(e)+", "+$s.transform(t)+", "+$s.transform(n)+", "+ra(va.transform(r))+")"},Xs={test:Zs("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Ys.transform},Gs={test:Zs("hsl","hue"),parse:Ws("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ca.transform(ra(t))+", "+ca.transform(ra(n))+", "+ra(va.transform(r))+")"};function Js(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ks({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=Js(s,r,e+1/3),i=Js(s,r,e),a=Js(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}const Qs=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},el=[Xs,Ys,Gs],tl=e=>el.find((t=>t.test(e))),nl=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,rl=(e,t)=>{let n=tl(e),r=tl(t);nl(e),nl(t);let o=n.parse(e),i=r.parse(t);n===Gs&&(o=Ks(o),n=Ys),r===Gs&&(i=Ks(i),r=Ys);const a=Object.assign({},o);return e=>{for(const t in a)"alpha"!==t&&(a[t]=Qs(o[t],i[t],e));return a.alpha=zs(o.alpha,i.alpha,e),n.transform(a)}},ol={test:e=>Ys.test(e)||Xs.test(e)||Gs.test(e),parse:e=>Ys.test(e)?Ys.parse(e):Gs.test(e)?Gs.parse(e):Xs.parse(e),transform:e=>sa(e)?e:e.hasOwnProperty("red")?Ys.transform(e):Gs.transform(e)},il="${c}",al="${n}";function sl(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(ia);r&&(n=r.length,e=e.replace(ia,il),t.push(...r.map(ol.parse)));const o=e.match(oa);return o&&(e=e.replace(oa,al),t.push(...o.map(ha.parse))),{values:t,numColors:n,tokenised:e}}function ll(e){return sl(e).values}function ul(e){const{values:t,numColors:n,tokenised:r}=sl(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?il:al,r<n?ol.transform(e[r]):ra(e[r]));return t}}const cl=e=>"number"==typeof e?0:e,dl={test:function(e){var t,n,r,o;return isNaN(e)&&sa(e)&&(null!==(n=null===(t=e.match(oa))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(ia))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:ll,createTransformer:ul,getAnimatableNone:function(e){const t=ll(e);return ul(e)(t.map(cl))}},fl=e=>"number"==typeof e;function pl(e,t){return fl(e)?n=>zs(e,t,n):ol.test(e)?rl(e,t):gl(e,t)}const ml=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>pl(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},hl=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=pl(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function vl(e){const t=dl.parse(e),n=t.length;let r=0,o=0,i=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?i++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:i}}const gl=(e,t)=>{const n=dl.createTransformer(t),r=vl(e),o=vl(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?ws(ml(r.parsed,o.parsed),n):n=>`${n>0?t:e}`},yl=(e,t)=>n=>zs(e,t,n);function bl(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;t.length,!r||!Array.isArray(r)||r.length,e[0]>e[i-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=function(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?yl:"string"==typeof e?ol.test(e)?rl:gl:Array.isArray(e)?ml:"object"==typeof e?hl:void 0}(e[0]),i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;i=ws(e,i)}r.push(i)}return r}(t,r,o),s=2===i?function([e,t],[n]){return r=>n(Us(e,t,r))}(e,a):function(e,t){const n=e.length,r=n-1;return o=>{let i=0,a=!1;if(o<=e[0]?a=!0:o>=e[r]&&(i=r-1,a=!0),!a){let t=1;for(;t<n&&!(e[t]>o||t===r);t++);i=t-1}const s=Us(e[i],e[i+1],o);return t[i](s)}}(e,a);return n?t=>s(Ds(e[0],e[i-1],t)):s}const wl=e=>t=>1-e(1-t),El=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,xl=e=>t=>t*t*((e+1)*t-e),Cl=e=>e,Sl=(2,e=>Math.pow(e,2));const Tl=wl(Sl),Ll=El(Sl),Al=e=>1-Math.sin(Math.acos(e)),Pl=wl(Al),Ol=El(Pl),Rl=xl(1.525),Vl=wl(Rl),kl=El(Rl),Nl=(e=>{const t=xl(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Ml=e=>{if(1===e||0===e)return e;const t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},Dl=wl(Ml);function jl(e,t){return e.map((()=>t||Ll)).splice(0,e.length-1)}function Fl({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map((e=>e*t))}(r&&r.length===a.length?r:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(a),o);function l(){return bl(s,a,{ease:Array.isArray(n)?n:jl(a,n)})}let u=l();return{next:e=>(i.value=u(e),i.done=e>=o,i),flipTarget:()=>{a.reverse(),u=l()}}}const _l={keyframes:Fl,spring:Bs,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:i}){const a={done:!1,value:t};let s=n*e;const l=t+s,u=void 0===i?l:i(l);return u!==l&&(s=u-t),{next:e=>{const t=-s*Math.exp(-e/r);return a.done=!(t>o||t<-o),a.value=a.done?u:u+t,a},flipTarget:()=>{}}}},Hl=1/60*1e3,Bl="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Il="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(Bl())),Hl);let Ul=!0,zl=!1,Zl=!1;const Wl={delta:0,timestamp:0},ql=["read","update","preRender","render","postRender"],$l=ql.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,u=l?t:n;return i&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>zl=!0)),e)),{}),Yl=ql.reduce(((e,t)=>{const n=$l[t];return e[t]=(e,t=!1,r=!1)=>(zl||Ql(),n.schedule(e,t,r)),e}),{}),Xl=ql.reduce(((e,t)=>(e[t]=$l[t].cancel,e)),{}),Gl=ql.reduce(((e,t)=>(e[t]=()=>$l[t].process(Wl),e)),{}),Jl=e=>$l[e].process(Wl),Kl=e=>{zl=!1,Wl.delta=Ul?Hl:Math.max(Math.min(e-Wl.timestamp,40),1),Wl.timestamp=e,Zl=!0,ql.forEach(Jl),Zl=!1,zl&&(Ul=!1,Il(Kl))},Ql=()=>{zl=!0,Ul=!0,Zl||Il(Kl)},eu=()=>Wl;var tu=Yl;function nu(e,t,n=0){return e-t-n}const ru=e=>{const t=({delta:t})=>e(t);return{start:()=>tu.update(t,!0),stop:()=>Xl.update(t)}};function ou(e){var t,n,{from:r,autoplay:o=!0,driver:i=ru,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,h=li(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let v,g,y,{to:b}=h,w=0,E=h.duration,x=!1,C=!0;const S=function(e){if(Array.isArray(e.to))return Fl;if(_l[e.type])return _l[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Fl:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Bs:Fl}(h);(null===(n=(t=S).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(y=bl([0,100],[r,b],{clamp:!1}),r=0,b=100);const T=S(Object.assign(Object.assign({},h),{from:r,to:b}));return o&&(null==c||c(),v=i((function(e){if(C||(e=-e),a+=e,!x){const e=T.next(Math.max(0,a));g=e.value,y&&(g=y(g)),x=C?e.done:a<=0}null==m||m(g),x&&(0===w&&(null!=E||(E=a)),w<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(a,E,u,C)&&(w++,"reverse"===l?(C=w%2==0,a=function(e,t,n=0,r=!0){return r?nu(t+-e,t,n):t-(e-t)+n}(a,E,u,C)):(a=nu(a,E,u),"mirror"===l&&T.flipTarget()),x=!1,p&&p()):(v.stop(),f&&f()))})),v.start()),{stop:()=>{null==d||d(),v.stop()}}}function iu(e,t){return t?e*(1e3/t):0}var au=function(e){return 1e3*e};const su=(e,t)=>1-3*t+3*e,lu=(e,t)=>3*t-6*e,uu=e=>3*e,cu=(e,t,n)=>((su(t,n)*e+lu(t,n))*e+uu(t))*e,du=(e,t,n)=>3*su(t,n)*e*e+2*lu(t,n)*e+uu(t),fu=.1;function pu(e,t,n,r){if(e===t&&n===r)return Cl;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=cu(t*fu,e,n);return i=>0===i||1===i?i:cu(function(t){let r=0,i=1;for(;10!==i&&o[i]<=t;++i)r+=fu;--i;const a=r+(t-o[i])/(o[i+1]-o[i])*fu,s=du(a,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=du(t,n,r);if(0===o)return t;t-=(cu(t,n,r)-e)/o}return t}(t,a,e,n):0===s?a:function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=cu(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<10);return a}(t,r,r+fu,e,n)}(i),t,r)}var mu={linear:Cl,easeIn:Sl,easeInOut:Ll,easeOut:Tl,circIn:Al,circInOut:Ol,circOut:Pl,backIn:Rl,backInOut:kl,backOut:Vl,anticipate:Nl,bounceIn:Dl,bounceInOut:e=>e<.5?.5*(1-Ml(1-2*e)):.5*Ml(2*e-1)+.5,bounceOut:Ml},hu=function(e){if(Array.isArray(e)){e.length;var t=ui(e,4);return pu(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),mu[e]):e},vu=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!dl.test(t)||t.startsWith("url(")))},gu=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},yu=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},bu=function(){return{type:"keyframes",ease:"linear",duration:.3}},wu=function(e){return{type:"keyframes",duration:.8,values:e}},Eu={x:gu,y:gu,z:gu,rotate:gu,rotateX:gu,rotateY:gu,rotateZ:gu,scaleX:yu,scaleY:yu,scale:yu,opacity:bu,backgroundColor:bu,color:bu,default:yu};const xu=new Set(["brightness","contrast","saturate","opacity"]);function Cu(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(oa)||[];if(!r)return e;const o=n.replace(r,"");let i=xu.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Su=/([a-z-]*)\(.*?\)/g,Tu=Object.assign(Object.assign({},dl),{getAnimatableNone:e=>{const t=e.match(Su);return t?t.map(Cu).join(" "):e}});var Lu=si(si({},ba),{color:ol,backgroundColor:ol,outlineColor:ol,fill:ol,stroke:ol,borderColor:ol,borderTopColor:ol,borderRightColor:ol,borderBottomColor:ol,borderLeftColor:ol,filter:Tu,WebkitFilter:Tu}),Au=function(e){return Lu[e]};function Pu(e,t){var n,r=Au(e);return r!==Tu&&(r=dl),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function Ou(e,t,n){var r,o,i,a;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=ci([],ui(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=li(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=si(si({},e),(o=n,i=t.to,a=Ua(i)?wu:Eu[o]||Eu.default,si({to:i},a(i))))),si(si({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,i=e.loop,a=li(e,["ease","times","yoyo","flip","loop"]),s=si({},a);return n&&(s.offset=n),a.duration&&(s.duration=au(a.duration)),a.repeatDelay&&(s.repeatDelay=au(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(hu):hu(t)),"tween"===a.type&&(s.type="keyframes"),(r||i||o)&&(r?s.repeatType="reverse":i?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=i||r||o||a.repeat),"spring"!==a.type&&(s.type="keyframes"),s}(e))}function Ru(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Vu(e){return"number"==typeof e?0:Pu("",e)}function ku(e,t){return e[t]||e.default||e}function Nu(e,t,n,r){return void 0===r&&(r={}),t.start((function(o){var i,a,s=function(e,t,n,r,o){var i,a=ku(r,e),s=null!==(i=a.from)&&void 0!==i?i:t.get(),l=vu(e,n);"none"===s&&l&&"string"==typeof n?s=Pu(e,n):Ru(s)&&"string"==typeof n?s=Vu(n):!Array.isArray(n)&&Ru(n)&&"string"==typeof s&&(n=Vu(s));var u=vu(e,s);return"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property."),u&&l&&!1!==a.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===a.type||"decay"===a.type?function({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:f,onStop:p}){let m;function h(e){return void 0!==n&&e<n||void 0!==r&&e>r}function v(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function g(e){null==m||m.stop(),m=ou(Object.assign(Object.assign({},e),{driver:c,onUpdate:t=>{var n;null==d||d(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:f,onStop:p}))}function y(e){g(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(h(e))y({from:e,velocity:t,to:v(e)});else{let r=o*t+e;void 0!==u&&(r=u(r));const a=v(r),s=a===n?-1:1;let c,d;const f=e=>{c=d,d=e,t=iu(e-c,eu().delta),(1===s&&e>a||-1===s&&e<a)&&y({from:e,to:a,velocity:t})};g({type:"decay",from:e,velocity:t,timeConstant:i,power:o,restDelta:l,modifyTarget:u,onUpdate:h(r)?f:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(si(si({},r),a)):ou(si(si({},Ou(a,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=a.onUpdate)||void 0===t||t.call(a,e)},onComplete:function(){var e;r.onComplete(),null===(e=a.onComplete)||void 0===e||e.call(a)}}))}:function(){var e,r,i=za(n);return t.set(i),o(),null===(e=null==a?void 0:a.onUpdate)||void 0===e||e.call(a,i),null===(r=null==a?void 0:a.onComplete)||void 0===r||r.call(a),{stop:function(){}}}}(e,t,n,r,o),l=function(e,t){var n,r;return null!==(r=null!==(n=(ku(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return a=s()};return l?i=window.setTimeout(u,au(l)):u(),function(){clearTimeout(i),null==a||a.stop()}}))}var Mu=function(e){return/^\-?\d*\.?\d+$/.test(e)},Du=function(e){return/^0[^.\s]+$/.test(e)};function ju(e,t){-1===e.indexOf(t)&&e.push(t)}function Fu(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var _u=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return ju(this.subscriptions,e),function(){return Fu(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var i=this.subscriptions[o];i&&i(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),Hu=function(){function e(e){var t,n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new _u,this.velocityUpdateSubscribers=new _u,this.renderSubscribers=new _u,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=eu(),o=r.delta,i=r.timestamp;n.lastUpdated!==i&&(n.timeDelta=o,n.lastUpdated=i,tu.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return tu.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?iu(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Bu(e){return new Hu(e)}var Iu=function(e){return function(t){return t.test(e)}},Uu=[ha,da,ca,ua,pa,fa,{test:function(e){return"auto"===e},parse:function(e){return e}}],zu=function(e){return Uu.find(Iu(e))},Zu=ci(ci([],ui(Uu),!1),[ol,dl],!1),Wu=function(e){return Zu.find(Iu(e))};function qu(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Bu(n))}function $u(e,t){if(t)return(t[e]||t.default||t).from}function Yu(e,t,n){var r;void 0===n&&(n={});var o=Oi(e,t,n.custom),i=(o||{}).transition,a=void 0===i?e.getDefaultTransition()||{}:i;n.transitionOverride&&(a=n.transitionOverride);var s=o?function(){return Xu(e,o,n)}:function(){return Promise.resolve()},l=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=a.delayChildren,i=void 0===o?0:o,s=a.staggerChildren,l=a.staggerDirection;return function(e,t,n,r,o,i){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=1);var a=[],s=(e.variantChildren.size-1)*r,l=1===o?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(Gu).forEach((function(e,r){a.push(Yu(e,t,si(si({},i),{delay:n+l(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(a)}(e,t,i+r,s,l,n)}:function(){return Promise.resolve()},u=a.when;if(u){var c=ui("beforeChildren"===u?[s,l]:[l,s],2),d=c[0],f=c[1];return d().then(f)}return Promise.all([s(),l(n.delay)])}function Xu(e,t,n){var r,o=void 0===n?{}:n,i=o.delay,a=void 0===i?0:i,s=o.transitionOverride,l=o.type,u=e.makeTargetAnimatable(t),c=u.transition,d=void 0===c?e.getDefaultTransition():c,f=u.transitionEnd,p=li(u,["transition","transitionEnd"]);s&&(d=s);var m=[],h=l&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[l]);for(var v in p){var g=e.getValue(v),y=p[v];if(!(!g||void 0===y||h&&Ju(h,v))){var b=si({delay:a},d);e.shouldReduceMotion&&Yi(v)&&(b=si(si({},b),{type:!1,delay:0}));var w=Nu(v,g,y,b);m.push(w)}}return Promise.all(m).then((function(){f&&function(e,t){var n=Oi(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,i=void 0===o?{}:o;r.transition;var a=li(r,["transitionEnd","transition"]);for(var s in a=si(si({},a),i))qu(e,s,za(a[s]))}(e,f)}))}function Gu(e,t){return e.sortNodePosition(t)}function Ju(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var Ku=[Ya.Animate,Ya.InView,Ya.Focus,Ya.Hover,Ya.Tap,Ya.Drag,Ya.Exit],Qu=ci([],ui(Ku),!1).reverse(),ec=Ku.length;function tc(e){var t=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var o=t.map((function(t){return Yu(e,t,n)}));r=Promise.all(o)}else if("string"==typeof t)r=Yu(e,t,n);else{var i="function"==typeof t?Oi(e,t,n.custom):t;r=Xu(e,i,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),n=function(){var e;return(e={})[Ya.Animate]=nc(!0),e[Ya.InView]=nc(),e[Ya.Hover]=nc(),e[Ya.Tap]=nc(),e[Ya.Drag]=nc(),e[Ya.Focus]=nc(),e[Ya.Exit]=nc(),e}(),r={},o=!0,i=function(t,n){var r=Oi(e,n);if(r){r.transition;var o=r.transitionEnd,i=li(r,["transition","transitionEnd"]);t=si(si(si({},t),i),o)}return t};function a(a,s){for(var l,u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,p={},m=1/0,h=function(t){var r=Qu[t],h=n[r],v=null!==(l=u[r])&&void 0!==l?l:c[r],g=Ai(v),y=r===s?h.isActive:null;!1===y&&(m=t);var b=v===c[r]&&v!==u[r]&&g;if(b&&o&&e.manuallyAnimateOnMount&&(b=!1),h.protectedKeys=si({},p),!h.isActive&&null===y||!v&&!h.prevProp||Ia(v)||"boolean"==typeof v)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!Li(t)&&!Ms(t,e)}(h.prevProp,v),E=w||r===s&&h.isActive&&!b&&g||t>m&&g,x=Array.isArray(v)?v:[v],C=x.reduce(i,{});!1===y&&(C={});var S=h.prevResolvedValues,T=void 0===S?{}:S,L=si(si({},T),C),A=function(e){E=!0,f.delete(e),h.needsAnimating[e]=!0};for(var P in L){var O=C[P],R=T[P];p.hasOwnProperty(P)||(O!==R?Ua(O)&&Ua(R)?!Ms(O,R)||w?A(P):h.protectedKeys[P]=!0:void 0!==O?A(P):f.add(P):void 0!==O&&f.has(P)?A(P):h.protectedKeys[P]=!0)}h.prevProp=v,h.prevResolvedValues=C,h.isActive&&(p=si(si({},p),C)),o&&e.blockInitialAnimation&&(E=!1),E&&!b&&d.push.apply(d,ci([],ui(x.map((function(e){return{animation:e,options:si({type:r},a)}}))),!1))},v=0;v<ec;v++)h(v);if(r=si({},p),f.size){var g={};f.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(g[t]=n)})),d.push({animation:g})}var y=Boolean(d.length);return o&&!1===u.initial&&!e.manuallyAnimateOnMount&&(y=!1),o=!1,y?t(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==r[e]},animateChanges:a,setActive:function(t,r,o){var i;if(n[t].isActive===r)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;var s=a(o,t);for(var l in n)n[l].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function nc(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var rc={animation:Os((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=tc(t)),Ia(n)&&(0,s.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:Os((function(e){var t=e.custom,n=e.visualElement,r=ui(Ns(),2),o=r[0],i=r[1],a=(0,s.useContext)(bi);(0,s.useEffect)((function(){var e,r;n.isPresent=o;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Ya.Exit,!o,{custom:null!==(r=null==a?void 0:a.custom)&&void 0!==r?r:t});!o&&(null==s||s.then(i))}),[o])}))};const oc=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),ic=e=>oc(e)&&e.hasOwnProperty("z"),ac=(e,t)=>Math.abs(e-t);function sc(e,t){if(fl(e)&&fl(t))return ac(e,t);if(oc(e)&&oc(t)){const n=ac(e.x,t.x),r=ac(e.y,t.y),o=ic(e)&&ic(t)?ac(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var lc=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=dc(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=sc(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,i=eu().timestamp;r.history.push(si(si({},o),{timestamp:i}));var a=r.handlers,s=a.onStart,l=a.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=uc(t,r.transformPagePoint),Qa(e)&&0===e.buttons?r.handlePointerUp(e,t):tu.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,i=n.onSessionEnd,a=dc(uc(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,a),i&&i(e,a)},!(es(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var i=uc(os(e),this.transformPagePoint),a=i.point,s=eu().timestamp;this.history=[si(si({},a),{timestamp:s})];var l=t.onSessionStart;l&&l(e,dc(i,this.history)),this.removeListeners=ws(us(window,"pointermove",this.handlePointerMove),us(window,"pointerup",this.handlePointerUp),us(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Xl.update(this.updatePoint)},e}();function uc(e,t){return t?{point:t(e.point)}:e}function cc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function dc(e,t){var n=e.point;return{point:n,delta:cc(n,pc(t)),offset:cc(n,fc(t)),velocity:mc(t,.1)}}function fc(e){return e[0]}function pc(e){return e[e.length-1]}function mc(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=pc(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>au(t)));)n--;if(!r)return{x:0,y:0};var i=(o.timestamp-r.timestamp)/1e3;if(0===i)return{x:0,y:0};var a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function hc(e){return e.max-e.min}function vc(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),sc(e,t)<n}function gc(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=zs(t.min,t.max,e.origin),e.scale=hc(n)/hc(t),(vc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=zs(n.min,n.max,e.origin)-e.originPoint,(vc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function yc(e,t,n,r){gc(e.x,t.x,n.x,null==r?void 0:r.originX),gc(e.y,t.y,n.y,null==r?void 0:r.originY)}function bc(e,t,n){e.min=n.min+t.min,e.max=e.min+hc(t)}function wc(e,t,n){e.min=t.min-n.min,e.max=e.min+hc(t)}function Ec(e,t,n){wc(e.x,t.x,n.x),wc(e.y,t.y,n.y)}function xc(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Cc(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=ui([o,r],2))[0],o=n[1]),{min:r,max:o}}var Sc=.35;function Tc(e,t,n){return{min:Lc(e,t),max:Lc(e,n)}}function Lc(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function Ac(e){return[e("x"),e("y")]}function Pc(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Oc(e){return void 0===e||1===e}function Rc(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Oc(t)||!Oc(n)||!Oc(r)}function Vc(e){return Rc(e)||kc(e.x)||kc(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function kc(e){return e&&"0%"!==e}function Nc(e,t,n){return n+t*(e-n)}function Mc(e,t,n,r,o){return void 0!==o&&(e=Nc(e,o,r)),Nc(e,n,r)+t}function Dc(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Mc(e.min,t,n,r,o),e.max=Mc(e.max,t,n,r,o)}function jc(e,t){var n=t.x,r=t.y;Dc(e.x,n.translate,n.scale,n.originPoint),Dc(e.y,r.translate,r.scale,r.originPoint)}function Fc(e,t){e.min=e.min+t,e.max=e.max+t}function _c(e,t,n){var r=ui(n,3),o=r[0],i=r[1],a=r[2],s=void 0!==t[a]?t[a]:.5,l=zs(e.min,e.max,s);Dc(e,t[o],t[i],l,t.scale)}var Hc=["x","scaleX","originX"],Bc=["y","scaleY","originY"];function Ic(e,t){_c(e.x,t,Hc),_c(e.y,t,Bc)}function Uc(e,t){return Pc(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var zc=new WeakMap,Zc=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,o=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new lc(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(os(e,"page").point)},onStart:function(e,t){var r,o=n.getProps(),i=o.drag,a=o.dragPropagation,s=o.onDragStart;(!i||a||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=ms(i),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),Ac((function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(ca.test(o)){var i=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];i&&(o=hc(i)*(parseFloat(o)/100))}n.originPoint[e]=o})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(Ya.Drag,!0))},onMove:function(e,t){var r=n.getProps(),o=r.dragPropagation,i=r.dragDirectionLock,a=r.onDirectionLock,s=r.onDrag;if(o||n.openGlobalLock){var l=t.offset;if(i&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(l),void(null!==n.currentDirection&&(null==a||a(n.currentDirection)));n.updateAxis("x",t.point,l),n.updateAxis("y",t.point,l),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var o=this.getProps().onDragEnd;null==o||o(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Ya.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Wc(e,r,this.currentDirection)){var o=this.getAxisMotionValue(e),i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?zs(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?zs(o,e,n.max):Math.min(e,o)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,i=this.constraints;n&&Ti(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(e,t){var n=t.top,r=t.left,o=t.bottom,i=t.right;return{x:xc(e.x,r,i),y:xc(e.y,n,o)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=Sc),!1===e?e=0:!0===e&&(e=Sc),{x:Tc(e,"left","right"),y:Tc(e,"top","bottom")}}(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ac((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Ti(t))return!1;var r=t.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var i=function(e,t,n){var r=Uc(e,n),o=t.scroll;return o&&(Fc(r.x,o.x),Fc(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:Cc(e.x,t.x),y:Cc(e.y,t.y)}}(o.layout.actual,i);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=Pc(s))}return a},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,o=n.dragMomentum,i=n.dragElastic,a=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=Ac((function(n){var l;if(Wc(n,r,t.currentDirection)){var c=null!==(l=null==u?void 0:u[n])&&void 0!==l?l:{};s&&(c={min:0,max:0});var d=i?200:1e6,f=i?40:1e7,p=si(si({type:"inertia",velocity:o?e[n]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},a),c);return t.startAxisValueAnimation(n,p)}}));return Promise.all(c).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return Nu(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;Ac((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;Ac((function(n){if(Wc(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var i=r.layout.actual[n],a=i.min,s=i.max;o.set(e[n]-zs(a,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=n.dragConstraints,i=this.visualElement.projection;if(Ti(o)&&i&&this.constraints){this.stopAnimation();var a={x:0,y:0};Ac((function(e){var n,r,o,i,s,l=t.getAxisMotionValue(e);if(l){var u=l.get();a[e]=(n={min:u,max:u},r=t.constraints[e],o=.5,i=hc(n),(s=hc(r))>i?o=Us(r.min,r.max-i,n.min):i>s&&(o=Us(n.min,n.max-s,r.min)),Ds(0,1,o))}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout(),this.resolveConstraints(),Ac((function(e){if(Wc(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e],i=o.min,s=o.max;n.set(zs(i,s,a[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;zc.set(this.visualElement,this);var n=us(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=function(){Ti(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,i=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var a=Ja(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(Ac((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){a(),n(),i()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,i=e.dragPropagation,a=void 0!==i&&i,s=e.dragConstraints,l=void 0!==s&&s,u=e.dragElastic,c=void 0===u?Sc:u,d=e.dragMomentum,f=void 0===d||d;return si(si({},e),{drag:n,dragDirectionLock:o,dragPropagation:a,dragConstraints:l,dragElastic:c,dragMomentum:f})},e}();function Wc(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var qc={pan:Os((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,i=e.visualElement,a=t||n||r||o,l=(0,s.useRef)(null),u=(0,s.useContext)(gi).transformPagePoint,c={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){l.current=null,r&&r(e,t)}};(0,s.useEffect)((function(){null!==l.current&&l.current.updateHandlers(c)})),cs(i,"pointerdown",a&&function(e){l.current=new lc(e,c,{transformPagePoint:u})}),ys((function(){return l.current&&l.current.end()}))})),drag:Os((function(e){var t=e.dragControls,n=e.visualElement,r=Ni((function(){return new Zc(n)}));(0,s.useEffect)((function(){return t&&t.subscribe(r)}),[r,t]),(0,s.useEffect)((function(){return r.addListeners()}),[r])}))},$c=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],Yc=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,i=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,l=e.readValueFromInstance,u=e.removeValueFromRenderState,c=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var f=e.parent,p=e.props,m=e.presenceId,h=e.blockInitialAnimation,v=e.visualState,g=e.shouldReduceMotion;void 0===t&&(t={});var y,b,w=!1,E=v.latestValues,x=v.renderState,C=function(){var e=$c.map((function(){return new _u})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){$c.forEach((function(r){var o,i="on"+r,a=e[i];null===(o=t[r])||void 0===o||o.call(t),a&&(t[r]=n[i](a))}))}};return e.forEach((function(e,t){n["on"+$c[t]]=function(t){return e.add(t)},n["notify"+$c[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,ci([],ui(t),!1))}})),n}(),S=new Map,T=new Map,L={},A=si({},E);function P(){y&&w&&(O(),s(y,x,p.style,F.projection))}function O(){r(F,x,E,t,p)}function R(){C.notifyUpdate(E)}function V(e,t){var n=t.onChange((function(t){E[e]=t,p.onUpdate&&tu.update(R,!1,!0)})),r=t.onRenderRequest(F.scheduleRender);T.set(e,(function(){n(),r()}))}var k=d(p);for(var N in k){var M=k[N];void 0!==E[N]&&Ki(M)&&M.set(E[N],!1)}var D=Ri(p),j=Vi(p),F=si(si({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:m,shouldReduceMotion:g,variantChildren:j?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==f?void 0:f.isMounted()),blockInitialAnimation:h,isMounted:function(){return Boolean(y)},mount:function(e){w=!0,y=F.current=e,F.projection&&F.projection.mount(e),j&&f&&!D&&(b=null==f?void 0:f.addVariantChild(F)),S.forEach((function(e,t){return V(t,e)})),null==f||f.children.add(F),F.setProps(p)},unmount:function(){var e;null===(e=F.projection)||void 0===e||e.unmount(),Xl.update(R),Xl.render(P),T.forEach((function(e){return e()})),null==b||b(),null==f||f.children.delete(F),C.clearAllListeners(),y=void 0,w=!1},addVariantChild:function(e){var t,n=F.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return c&&n===e.treeType?c(F.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return j?F:null==f?void 0:f.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return y},getStaticValue:function(e){return E[e]},setStaticValue:function(e,t){return E[e]=t},getLatestValues:function(){return E},setVisibility:function(e){F.isVisible!==e&&(F.isVisible=e,F.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),i(F,e,p,t)},measureViewportBox:function(){return a(y,p)},addValue:function(e,t){F.hasValue(e)&&F.removeValue(e),S.set(e,t),E[e]=t.get(),V(e,t)},removeValue:function(e){var t;S.delete(e),null===(t=T.get(e))||void 0===t||t(),T.delete(e),delete E[e],u(e,x)},hasValue:function(e){return S.has(e)},getValue:function(e,t){var n=S.get(e);return void 0===n&&void 0!==t&&(n=Bu(t),F.addValue(e,n)),n},forEachValue:function(e){return S.forEach(e)},readValue:function(e){var n;return null!==(n=E[e])&&void 0!==n?n:l(y,e,t)},setBaseTarget:function(e,t){A[e]=t},getBaseTarget:function(e){if(o){var t=o(p,e);if(void 0!==t&&!Ki(t))return t}return A[e]}},C),{build:function(){return O(),x},scheduleRender:function(){tu.render(P,!1,!0)},syncRender:P,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&F.scheduleRender(),p=e,C.updatePropListeners(e),L=function(e,t,n){var r;for(var o in t){var i=t[o],a=n[o];if(Ki(i))e.addValue(o,i);else if(Ki(a))e.addValue(o,Bu(i));else if(a!==i)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(i)}else e.addValue(o,Bu(null!==(r=e.getStaticValue(o))&&void 0!==r?r:i))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(F,d(p),L)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==f?void 0:f.getVariantContext();if(!D){var t=(null==f?void 0:f.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<Gc;r++){var o=Xc[r],i=p[o];(Ai(i)||!1===i)&&(n[o]=i)}return n}});return F}},Xc=ci(["initial"],ui(Ku),!1),Gc=Xc.length;function Jc(e){return"string"==typeof e&&e.startsWith("var(--")}var Kc=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Qc(e,t,n){void 0===n&&(n=1),'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.');var r=ui(function(e){var t=Kc.exec(e);if(!t)return[,];var n=ui(t,3);return[n[1],n[2]]}(e),2),o=r[0],i=r[1];if(o){var a=window.getComputedStyle(t).getPropertyValue(o);return a?a.trim():Jc(i)?Qc(i,t,n+1):i}}var ed,td=new Set(["width","height","top","left","right","bottom","x","y"]),nd=function(e){return td.has(e)},rd=function(e,t){e.set(t,!1),e.set(t)},od=function(e){return e===ha||e===da};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(ed||(ed={}));var id=function(e,t){return parseFloat(e.split(", ")[t])},ad=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var i=o.match(/^matrix3d\((.+)\)$/);if(i)return id(i[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?id(a[1],e):0}},sd=new Set(["x","y","z"]),ld=Wi.filter((function(e){return!sd.has(e)})),ud={width:function(e,t){var n=e.x,r=t.paddingLeft,o=void 0===r?"0":r,i=t.paddingRight,a=void 0===i?"0":i;return n.max-n.min-parseFloat(o)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,o=void 0===r?"0":r,i=t.paddingBottom,a=void 0===i?"0":i;return n.max-n.min-parseFloat(o)-parseFloat(a)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:ad(4,13),y:ad(5,14)};function cd(e,t,n,r){return function(e){return Object.keys(e).some(nd)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=si({},t),r=si({},r);var o=Object.keys(t).filter(nd),i=[],a=!1,s=[];if(o.forEach((function(o){var l=e.getValue(o);if(e.hasValue(o)){var u,c=n[o],d=zu(c),f=t[o];if(Ua(f)){var p=f.length,m=null===f[0]?1:0;c=f[m],d=zu(c);for(var h=m;h<p;h++)u?zu(f[h]):(u=zu(f[h]))===d||od(d)&&od(u)}else u=zu(f);if(d!==u)if(od(d)&&od(u)){var v=l.get();"string"==typeof v&&l.set(parseFloat(v)),"string"==typeof f?t[o]=parseFloat(f):Array.isArray(f)&&u===da&&(t[o]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==u?void 0:u.transform)&&(0===c||0===f)?0===c?l.set(u.transform(c)):t[o]=d.transform(f):(a||(i=function(e){var t=[];return ld.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],rd(l,f))}})),s.length){var l=s.indexOf("height")>=0?window.pageYOffset:null,u=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),i=getComputedStyle(o),a=i.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=ud[e](r,i)})),t.syncRender();var l=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);rd(r,s[n]),e[n]=ud[n](l,i)})),e}(t,e,s);return i.length&&i.forEach((function(t){var n=ui(t,2),r=n[0],o=n[1];e.getValue(r).set(o)})),e.syncRender(),null!==l&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}var dd={treeType:"dom",readValueFromInstance:function(e,t){if(Yi(t)){var n=Au(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(ea(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return Uc(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var i=t.transition,a=t.transitionEnd,s=li(t,["transition","transitionEnd"]),l=function(e,t,n){var r,o,i={};for(var a in e)i[a]=null!==(r=$u(a,t))&&void 0!==r?r:null===(o=n.getValue(a))||void 0===o?void 0:o.get();return i}(s,i||{},e);if(o&&(a&&(a=o(a)),s&&(s=o(s)),l&&(l=o(l))),r){!function(e,t,n){var r,o,i,a,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),l=s.length;if(l)for(var u=0;u<l;u++){var c=s[u],d=t[c],f=null;Array.isArray(d)&&(f=d[0]),null===f&&(f=null!==(o=null!==(r=n[c])&&void 0!==r?r:e.readValue(c))&&void 0!==o?o:t[c]),null!=f&&("string"==typeof f&&(Mu(f)||Du(f))?f=parseFloat(f):!Wu(f)&&dl.test(d)&&(f=Pu(c,d)),e.addValue(c,Bu(f)),null!==(i=(a=n)[c])&&void 0!==i||(a[c]=f),e.setBaseTarget(c,f))}}(e,s,l);var u=function(e,t,n,r){var o=function(e,t,n){var r,o=li(t,[]),i=e.getInstance();if(!(i instanceof Element))return{target:o,transitionEnd:n};for(var a in n&&(n=si({},n)),e.forEachValue((function(e){var t=e.get();if(Jc(t)){var n=Qc(t,i);n&&e.set(n)}})),o){var s=o[a];if(Jc(s)){var l=Qc(s,i);l&&(o[a]=l,n&&(null!==(r=n[a])&&void 0!==r||(n[a]=s)))}}return{target:o,transitionEnd:n}}(e,t,r);return cd(e,t=o.target,n,r=o.transitionEnd)}(e,s,l,a);a=u.transitionEnd,s=u.target}return si({transition:i,transitionEnd:a},s)},scrapeMotionValuesFromProps:Ha,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),wa(t,n,r,o.transformTemplate)},render:ja},fd=Yc(dd),pd=Yc(si(si({},dd),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Yi(t)?(null===(n=Au(t))||void 0===n?void 0:n.default)||0:(t=Fa.has(t)?t:Da(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Ba,build:function(e,t,n,r,o){Ra(t,n,r,o.transformTemplate)},render:_a})),md=function(e,t){return Ui(e)?pd(t,{enableHardwareAcceleration:!1}):fd(t,{enableHardwareAcceleration:!0})};function hd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var vd={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!da.test(e))return e;e=parseFloat(e)}var n=hd(e,t.target.x),r=hd(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},gd="_$css",yd={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,i=e.includes("var("),a=[];i&&(e=e.replace(Kc,(function(e){return a.push(e),gd})));var s=dl.parse(e);if(s.length>5)return o;var l=dl.createTransformer(e),u="number"!=typeof s[0]?1:0,c=r.x.scale*n.x,d=r.y.scale*n.y;s[0+u]/=c,s[1+u]/=d;var f=zs(c,d,.5);"number"==typeof s[2+u]&&(s[2+u]/=f),"number"==typeof s[3+u]&&(s[3+u]/=f);var p=l(s);if(i){var m=0;p=p.replace(gd,(function(){var e=a[m];return m++,e}))}return p}},bd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ai(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,o=n.layoutGroup,i=n.switchLayoutGroup,a=n.layoutId,s=r.projection;e=wd,Object.assign(zi,e),s&&((null==o?void 0:o.group)&&o.group.add(s),(null==i?void 0:i.register)&&a&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(si(si({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),Mi.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.visualElement,i=n.drag,a=n.isPresent,s=o.projection;return s?(s.isPresent=a,i||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||tu.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,o=t.projection;o&&(o.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(o),(null==r?void 0:r.deregister)&&r.deregister(o))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(s.Component),wd={borderRadius:si(si({},vd),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:vd,borderTopRightRadius:vd,borderBottomLeftRadius:vd,borderBottomRightRadius:vd,boxShadow:yd},Ed={measureLayout:function(e){var t=ui(Ns(),2),n=t[0],r=t[1],o=(0,s.useContext)(ji);return s.createElement(bd,si({},e,{layoutGroup:o,switchLayoutGroup:(0,s.useContext)(Fi),isPresent:n,safeToRemove:r}))}},xd=["TopLeft","TopRight","BottomLeft","BottomRight"],Cd=xd.length,Sd=function(e){return"string"==typeof e?parseFloat(e):e},Td=function(e){return"number"==typeof e||da.test(e)};function Ld(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Ad=Od(0,.5,Pl),Pd=Od(.5,.95,Cl);function Od(e,t,n){return function(r){return r<e?0:r>t?1:n(Us(e,t,r))}}function Rd(e,t){e.min=t.min,e.max=t.max}function Vd(e,t){Rd(e.x,t.x),Rd(e.y,t.y)}function kd(e,t,n,r,o){return e=Nc(e-=t,1/n,r),void 0!==o&&(e=Nc(e,1/o,r)),e}function Nd(e,t,n,r,o){var i=ui(n,3),a=i[0],s=i[1],l=i[2];!function(e,t,n,r,o,i,a){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===i&&(i=e),void 0===a&&(a=e),ca.test(t)&&(t=parseFloat(t),t=zs(a.min,a.max,t/100)-a.min),"number"==typeof t){var s=zs(i.min,i.max,r);e===i&&(s-=t),e.min=kd(e.min,t,n,s,o),e.max=kd(e.max,t,n,s,o)}}(e,t[a],t[s],t[l],t.scale,r,o)}var Md=["x","scaleX","originX"],Dd=["y","scaleY","originY"];function jd(e,t,n,r){Nd(e.x,t,Md,null==n?void 0:n.x,null==r?void 0:r.x),Nd(e.y,t,Dd,null==n?void 0:n.y,null==r?void 0:r.y)}function Fd(e){return 0===e.translate&&1===e.scale}function _d(e){return Fd(e.x)&&Fd(e.y)}function Hd(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Bd=function(){function e(){this.members=[]}return e.prototype.add=function(e){ju(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Fu(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){t=o;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,o,i;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(i=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===i||i.call(o)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function Id(e,t,n){var r=e.x.translate/t.x,o=e.y.translate/t.y,i="translate3d(".concat(r,"px, ").concat(o,"px, 0) ");if(i+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var a=n.rotate,s=n.rotateX,l=n.rotateY;a&&(i+="rotate(".concat(a,"deg) ")),s&&(i+="rotateX(".concat(s,"deg) ")),l&&(i+="rotateY(".concat(l,"deg) "))}var u=e.x.scale*t.x,c=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(i+="scale(".concat(u,", ").concat(c,")"))?"none":i}var Ud=function(e,t){return e.depth-t.depth},zd=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){ju(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Fu(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Ud),this.isDirty=!1,this.children.forEach(e)},e}();function Zd(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,o=e.checkIsScrollRoot,i=e.resetTransform;return function(){function e(e,t,r){var o=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(Jd),o.nodes.forEach(Kd)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?ci(ci([],ui(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var i=0;i<this.path.length;i++)this.path[i].shouldResetTransform=!0;this.root===this&&(this.nodes=new zd)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new _u),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,ci([],ui(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,o=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var i=this.options,a=i.layoutId,s=i.layout,l=i.visualElement;if(l&&!l.getInstance()&&l.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||a)&&(this.isLayoutDirty=!0),t){var u,c=function(){return o.root.updateBlockedByResize=!1};t(e,(function(){o.root.updateBlockedByResize=!0,clearTimeout(u),u=window.setTimeout(c,250),Mi.hasAnimatedSinceResize&&(Mi.hasAnimatedSinceResize=!1,o.nodes.forEach(Gd))}))}a&&this.root.registerSharedNode(a,this),!1!==this.options.animate&&l&&(a||s)&&this.addEventListener("didUpdate",(function(e){var t,n,r,i,a,s=e.delta,u=e.hasLayoutChanged,c=e.hasRelativeTargetChanged,d=e.layout;if(o.isTreeAnimationBlocked())return o.target=void 0,void(o.relativeTarget=void 0);var f=null!==(n=null!==(t=o.options.transition)&&void 0!==t?t:l.getDefaultTransition())&&void 0!==n?n:of,p=l.getProps(),m=p.onLayoutAnimationStart,h=p.onLayoutAnimationComplete,v=!o.targetLayout||!Hd(o.targetLayout,d)||c,g=!u&&c;if((null===(r=o.resumeFrom)||void 0===r?void 0:r.instance)||g||u&&(v||!o.currentAnimation)){o.resumeFrom&&(o.resumingFrom=o.resumeFrom,o.resumingFrom.resumingFrom=void 0),o.setAnimationOrigin(s,g);var y=si(si({},ku(f,"layout")),{onPlay:m,onComplete:h});l.shouldReduceMotion&&(y.delay=0,y.type=!1),o.startAnimation(y)}else u||0!==o.animationProgress||o.finishAnimation(),o.isLead()&&(null===(a=(i=o.options).onExitComplete)||void 0===a||a.call(i));o.targetLayout=d}))}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,Xl.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(Qd))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var o=0;o<this.path.length;o++){var i=this.path[o];i.shouldResetTransform=!0,i.updateScroll()}var a=this.options,s=a.layoutId,l=a.layout;if(void 0!==s||l){var u=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==u?void 0:u(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Yd);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(af),this.potentialNodes.clear()),this.nodes.forEach(Xd),this.nodes.forEach(Wd),this.nodes.forEach(qd),this.clearAllSnapshots(),Gl.update(),Gl.preRender(),Gl.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach($d),this.sharedNodes.forEach(ef)},e.prototype.scheduleUpdateProjection=function(){tu.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;tu.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));lf(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();lf(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=o(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(i){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!_d(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,o=null==r?void 0:r(this.latestValues,""),a=o!==this.prevTransformTemplateValue;t&&(n||Vc(this.latestValues)||a)&&(i(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};var t=e.measureViewportBox(),n=this.root.scroll;return n&&(Fc(t.x,n.x),Fc(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Vd(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],o=r.scroll,i=r.options,a=r.isScrollRoot;if(r!==this.root&&o&&i.layoutScroll){if(a){Vd(t,e);var s=this.root.scroll;s&&(Fc(t.x,-s.x),Fc(t.y,-s.y))}Fc(t.x,o.x),Fc(t.y,o.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n={x:{min:0,max:0},y:{min:0,max:0}};Vd(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ic(n,{x:-o.scroll.x,y:-o.scroll.y}),Vc(o.latestValues)&&Ic(n,o.latestValues)}return Vc(this.latestValues)&&Ic(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Vd(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&Vc(o.latestValues)){Rc(o.latestValues)&&o.updateSnapshot();var i={x:{min:0,max:0},y:{min:0,max:0}};Vd(i,o.measure()),jd(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,i)}}return Vc(this.latestValues)&&jd(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=si(si(si({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,o=this.options,i=o.layout,a=o.layoutId;this.layout&&(i||a)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ec(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Vd(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,bc(t.x,n.x,r.x),bc(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Vd(this.target,this.layout.actual),jc(this.target,this.targetDelta)):Vd(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Ec(this.relativeTargetOrigin,this.target,this.relativeParent.target),Vd(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Vc(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var o=this.getLead();Vd(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var o,i;void 0===r&&(r=!1);var a=n.length;if(a){var s,l;t.x=t.y=1;for(var u=0;u<a;u++)l=(s=n[u]).projectionDelta,"contents"!==(null===(i=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===i?void 0:i.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Ic(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,jc(e,l)),r&&Vc(s.latestValues)&&Ic(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var i=o.target;if(i){this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});var a=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;yc(this.projectionDelta,this.layoutCorrected,i,this.latestValues),this.projectionTransform=Id(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",i))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var o=this.snapshot,i=(null==o?void 0:o.latestValues)||{},a=si({},this.latestValues),s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var l={x:{min:0,max:0},y:{min:0,max:0}},u=null==o?void 0:o.isShared,c=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,d=Boolean(u&&!c&&!0===this.options.crossfade&&!this.path.some(rf));this.animationProgress=0,this.mixTargetDelta=function(t){var n,o,f,p,m,h=t/1e3;tf(s.x,e.x,h),tf(s.y,e.y,h),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(Ec(l,r.layout.actual,r.relativeParent.layout.actual),o=r.relativeTarget,f=r.relativeTargetOrigin,p=l,m=h,nf(o.x,f.x,p.x,m),nf(o.y,f.y,p.y,m)),u&&(r.animationValues=a,function(e,t,n,r,o,i){var a,s,l,u;o?(e.opacity=zs(0,null!==(a=n.opacity)&&void 0!==a?a:1,Ad(r)),e.opacityExit=zs(null!==(s=t.opacity)&&void 0!==s?s:1,0,Pd(r))):i&&(e.opacity=zs(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<Cd;c++){var d="border".concat(xd[c],"Radius"),f=Ld(t,d),p=Ld(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||Td(f)===Td(p)?(e[d]=Math.max(zs(Sd(f),Sd(p),r),0),(ca.test(p)||ca.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=zs(t.rotate||0,n.rotate||0,r))}(a,i,r.latestValues,h,d,c)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=h},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(Xl.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tu.update((function(){Mi.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=Ki(0)?0:Bu(0);return Nu("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,si(si({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,o=e.latestValues;t&&n&&r&&(Vd(t,n),Ic(t,o),yc(this.projectionDeltaWithTransform,this.layoutCorrected,t,o))},e.prototype.registerSharedNode=function(e,t){var n,r,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new Bd),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,o=t.preserveFollowOpacity,i=this.getStack();i&&i.promote(this,o),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<Zi.length;r++){var o="rotate"+Zi[r];e.getStaticValue(o)&&(t=!0,n[o]=e.getStaticValue(o),e.setStaticValue(o,0))}if(t){for(var o in null==e||e.syncRender(),n)e.setStaticValue(o,n[o]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,o,i,a;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Za(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){var c={};return this.options.layoutId&&(c.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,c.pointerEvents=Za(e.pointerEvents)||""),this.hasProjected&&!Vc(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=Id(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var f=this.projectionDelta,p=f.x,m=f.y;for(var h in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*m.origin,"% 0"),u.animationValues?s.opacity=u===this?null!==(o=null!==(r=d.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=u===this?null!==(i=d.opacity)&&void 0!==i?i:"":null!==(a=d.opacityExit)&&void 0!==a?a:0,zi)if(void 0!==d[h]){var v=zi[h],g=v.correct,y=v.applyTo,b=g(d[h],u);if(y)for(var w=y.length,E=0;E<w;E++)s[y[E]]=b;else s[h]=b}return this.options.layoutId&&(s.pointerEvents=u===this?Za(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Yd),this.root.sharedNodes.clear()},e}()}function Wd(e){e.updateLayout()}function qd(e){var t,n,r,o,i=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,l=a.measured;"size"===e.options.animationType?Ac((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=hc(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&Ac((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=hc(s[e]);t.max=t.min+n}));var u={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};yc(u,s,i.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i.isShared?yc(c,e.applyTransform(l,!0),i.measured):yc(c,s,i.layout);var d=!_d(u),f=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,m=p.snapshot,h=p.layout;if(m&&h){var v={x:{min:0,max:0},y:{min:0,max:0}};Ec(v,i.layout,m.layout);var g={x:{min:0,max:0},y:{min:0,max:0}};Ec(g,s,h.actual),Hd(v,g)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&(null===(o=(r=e.options).onExitComplete)||void 0===o||o.call(r));e.options.transition=void 0}function $d(e){e.clearSnapshot()}function Yd(e){e.clearMeasurements()}function Xd(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Gd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Jd(e){e.resolveTargetDelta()}function Kd(e){e.calcProjection()}function Qd(e){e.resetRotation()}function ef(e){e.removeLeadSnapshot()}function tf(e,t,n){e.translate=zs(t.translate,0,n),e.scale=zs(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function nf(e,t,n,r){e.min=zs(t.min,n.min,r),e.max=zs(t.max,n.max,r)}function rf(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var of={duration:.45,ease:[.4,0,.1,1]};function af(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var o=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function sf(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function lf(e){sf(e.x),sf(e.y)}var uf=Zd({attachResizeListener:function(e,t){return Ja(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),cf={current:void 0},df=Zd({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!cf.current){var e=new uf(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),cf.current=e}return cf.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),ff=si(si(si(si({},rc),Rs),qc),Ed),pf=Bi((function(e,t){return function(e,t,n,r,o){var i=t.forwardMotionProps,a=void 0!==i&&i,s=Ui(e)?Xa:Ga;return si(si({},s),{preloadedFeatures:n,useRender:Na(a),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,ff,md,df)}));const mf="welcome-message",hf=()=>{const[t,n]=(0,e.useState)(!1),[o,i]=(0,e.useState)(!1),[a,s]=(0,e.useState)(!1),[l,u]=(0,e.useState)(!1),{isDismissed:c,dismissNotice:d}=Hn(),{mainColor:f}=bo(),p=window.extAssistData.home+"?extendify-disable-admin-bar",m=(()=>{const[t,n]=(0,e.useState)(Hn.persist.hasHydrated);return(0,e.useEffect)((()=>{const e=Hn.persist.onFinishHydration((()=>n(!0)));return()=>{e()}}),[]),t})(),h=window.extAssistData.dismissedNotices.find((e=>e.id===mf)),[v,g]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{h||c(mf)||g(!0)}),[h,c,d]),(0,e.useEffect)((()=>{v&&m&&d(mf)}),[d,v,m]),v?(0,e.createElement)(pf.div,{layout:!0,className:"hidden lg:block bg-black overflow-hidden",transition:{duration:.5,delay:1},initial:{height:0},animate:{height:"600px",bgColor:"black"}},(0,e.createElement)("div",{className:"p-8 lg:p-24 xl:p-32"},(0,e.createElement)("button",{className:"bg-transparent text-white opacity-70 hover:opacity-100 border-0 shadow-none absolute top-0 right-0 p-4 cursor-pointer text-sm",type:"button",onClick:()=>g(!1)},(0,e.createElement)("span",{className:"dashicons dashicons-no-alt"}),(0,e.createElement)("span",null,(0,r.__)("Dismiss","extendify"))),(0,e.createElement)("section",{className:"md:flex relative justify-center max-w-screen-xl mx-auto gap-16"},(0,e.createElement)(oi,{show:l,className:"absolute inset-0 md:w-1/2"},(0,e.createElement)(oi.Child,{enter:"transition-all ease-in-out duration-500",enterFrom:"transform translate-y-14 opacity-0",enterTo:"transform translate-y-0 opacity-100"},(0,e.createElement)("p",{className:"relative inline-block font-bold m-0 mb-16 text-3xl text-white"},(0,r.__)("Congratulations!","extendify"),(0,e.createElement)("span",{className:"block absolute text-sm right-0 m-0 text-right text-gray-500"},(0,r.__)("Your site is ready.","extendify")))),(0,e.createElement)(oi.Child,{enter:"transition-all ease-in-out duration-500 delay-300",enterFrom:"transform translate-y-14 opacity-0",enterTo:"transform translate-y-0 opacity-100"},(0,e.createElement)("div",{className:"flex flex-col gap-4"},(0,e.createElement)("h1",{className:"m-0 text-4xl text-white translate-y-1"},(0,r.__)("What's Next?","extendify")),(0,e.createElement)("p",{className:"m-0 text-white text-base"},(0,r.__)("This Assist dashboard ensures your business gets value from your website. Complete the following tasks to build a successful and highly functional website. You can view and edit the Launch created pages below.","extendify")),(0,e.createElement)("div",null,(0,e.createElement)("a",{href:document.location.origin,target:"_blank",rel:"noreferrer",style:{backgroundColor:f},className:"inline-block cursor-pointer rounded-sm px-6 py-2 text-lg text-white border-none no-underline"},(0,r.__)("View site","extendify")))))),(0,e.createElement)(pf.div,{className:"flex justify-center flex-shrink-0 overflow-hidden relative pointer-events-none w-full",initial:{opacity:0,transform:"none"},animate:{opacity:t?1:.3,transform:a?"translateX(300px)":"none"},transition:{duration:a?.7:.3,ease:"easeInOut"},onAnimationComplete:()=>{window.requestAnimationFrame((()=>{i(!0),a&&u(!0)}))}},(0,e.createElement)("div",{className:"absolute z-10 inset-0 pointer-events-none"}),(0,e.createElement)(pf.iframe,{ref:e=>{const r=()=>window.requestAnimationFrame((()=>n(!0)));t?null==e||e.removeEventListener("load",r):null==e||e.addEventListener("load",r)},src:p,style:{aspectRatio:"600/800",minWidth:"1200px"},className:"origin-top w-full",initial:{transform:"scale(0.65) translateY(0)"},transition:{delay:2,duration:.5},layout:!0,onAnimationComplete:()=>{window.requestAnimationFrame((()=>{s(!0)}))},animate:{transform:o?"scale(0.24) translateY(-30px)":"scale(1)"}}))))):null},vf=()=>{const{mainColor:n}=bo();return(0,e.createElement)("div",null,(0,e.createElement)(hf,null),(0,e.createElement)("div",{className:"max-w-screen-lg mx-auto pt-12 flex justify-center flex-col"},(0,e.createElement)("h2",{className:"text-center text-3xl m-0 mb-2"},"Extendify Assist"),(0,e.createElement)("p",{className:"text-center text-xl m-0 p-0"},(0,r.__)("Personalized recommendations for your site.","extendify")),(0,e.createElement)("div",{className:"flex justify-center my-8"},(0,e.createElement)(t.ExternalLink,{style:{backgroundColor:n},className:"flex items-center gap-1 text-base cursor-pointer rounded px-6 py-2 text-white border-none no-underline",href:window.extAssistData.home},(0,r.__)("View site","extendify"))),(0,e.createElement)(Do,null),(0,e.createElement)(Ir,null)))},gf={"site-type":{step:(0,r.__)("Site Industry","extendify"),title:(0,r.__)("Let's Start Building Your Website","extendify"),description:(0,r.__)("Create a super-fast, beautiful, and fully customized site in minutes with the Launch in the core WordPress editor.","extendify"),buttonText:(0,r.__)("Select Site Industry","extendify")},goals:{step:(0,r.__)("Goals","extendify"),title:(0,r.__)("Continue Building Your Website","extendify"),description:(0,r.__)("Create a super-fast, beautiful, and fully customized site in minutes with the Launch in the core WordPress editor.","extendify"),buttonText:(0,r.__)("Select Site Goals","extendify")},style:{step:(0,r.__)("Design","extendify"),title:(0,r.__)("Continue Building Your Website","extendify"),description:(0,r.__)("Create a super-fast, beautiful, and fully customized site in minutes with the Launch in the core WordPress editor.","extendify"),buttonText:(0,r.__)("Select Site Design","extendify")},pages:{step:(0,r.__)("Pages","extendify"),title:(0,r.__)("Continue Building Your Website","extendify"),description:(0,r.__)("Create a super-fast, beautiful, and fully customized site in minutes with the Launch in the core WordPress editor.","extendify"),buttonText:(0,r.__)("Select Site Pages","extendify")},confirmation:{step:(0,r.__)("Launch","extendify"),title:(0,r.__)("Let's Launch Your Site","extendify"),description:(0,r.__)("You're one step away from creating a super-fast, beautiful, and fully customizable site with the Launch in the core WordPress editor.","extendify"),buttonText:(0,r.__)("Launch The Site","extendify")}},yf=()=>{var t,n,o,i,a,s;const l="extendify-launch",{isDismissed:u,dismissNotice:c}=Hn(),{mainColor:d,darkColor:f}=bo();if(window.extAssistData.dismissedNotices.find((e=>e.id===l))||u(l))return null;const p=JSON.parse(null!==(t=localStorage.getItem("extendify-pages"))&&void 0!==t?t:null);if(!p)return null;const m=null==p||null===(n=p.state)||void 0===n?void 0:n.availablePages.filter((e=>Object.keys(gf).includes(e))),h=null==p||null===(o=p.state)||void 0===o?void 0:o.currentPageSlug,v=Object.keys(gf).includes(h)?h:"site-type";let g=!1;return(0,e.createElement)("div",{className:"mt-6 mb-8 max-w-screen-3xl"},(0,e.createElement)("div",{style:{background:d,minHeight:"420px"},className:"relative flex flex-col"},(0,e.createElement)("div",{style:{background:f},className:"justify-between items-center py-6 px-2 lg:px-12 gap-x-3 hidden md:flex"},m.map(((t,n)=>{var r;return t===v&&(g=!0),(0,e.createElement)(e.Fragment,{key:t},(0,e.createElement)(bf,{reached:g,bgColor:d,step:n+1,stepName:null===(r=gf[t])||void 0===r?void 0:r.step,current:t===v}),n!==m.length-1&&(0,e.createElement)("div",{className:"hidden lg:block border-0 border-b-2 border-white border-solid border-opacity-10 h-0 grow w-full text-white"}))}))),(0,e.createElement)("div",{className:"h-10 md:hidden","aria-hidden":!0,style:{backgroundColor:f}}),(0,e.createElement)("div",{className:"max-w-screen-md flex-grow w-full flex flex-col justify-center lg:w-1/2 p-6 lg:p-12"},(0,e.createElement)("h2",{className:"text-3xl m-0 mb-4 text-white"},null===(i=gf[v])||void 0===i?void 0:i.title),(0,e.createElement)("p",{className:"text-lg text-white"},null===(a=gf[v])||void 0===a?void 0:a.description),(0,e.createElement)("div",{className:"flex items-center gap-x-4 mt-9"},(0,e.createElement)("a",{href:`${window.extAssistData.adminUrl}admin.php?page=extendify-launch`,className:"cursor-pointer rounded-sm px-6 py-4 bg-gray-900 text-lg text-white border-none no-underline"},null===(s=gf[v])||void 0===s?void 0:s.buttonText),(0,e.createElement)("div",null,(0,e.createElement)("button",{className:"text-white p-1 text-sm z-10 flex items-center uppercase opacity-70 hover:opacity-100 bg-transparent border-none cursor-pointer",onClick:()=>c(l),type:"button"},(0,e.createElement)("span",{className:"dashicons dashicons-no-alt"}),(0,e.createElement)("span",{className:"tracking-wide"},(0,r.__)("Dismiss","extendify")))))),(0,e.createElement)("img",{className:"lg:absolute bottom-0 right-0 max-w-lg w-full block mx-auto",src:window.extAssistData.asset_path+"/extendify-preview.png"})))},bf=t=>{let{reached:n,step:r,current:o,stepName:i,bgColor:a}=t;return(0,e.createElement)("div",{className:"flex-none text-white text-sm flex items-center gap-x-2"},(0,e.createElement)("span",{style:{background:n?void 0:a},className:zr()("border-2 border-solid w-9 h-9 rounded-full flex items-center justify-center",{"disc-checked border-white border-opacity-10":!n,"disc-number border-white":n,"border-dotted":o})},n?r:(0,e.createElement)("span",{className:"dashicons dashicons-saved"})),(0,e.createElement)("span",null,i))},wf=new URLSearchParams(window.location.search),Ef=["page"].includes(wf.get("extendify-launch")),xf=window.extAssistData.launchCompleted,Cf=window.extAssistData.devbuild,Sf=document.getElementById("extendify-assist-landing-page"),Tf=document.getElementById("dashboard-widgets-wrap");!Ef&&Sf&&(0,e.render)((0,e.createElement)((()=>(0,e.createElement)(Nr,{value:{onErrorRetry:(e,t,n,r,o)=>{var i;let{retryCount:a}=o;404!==e.status&&(403!==(null==e||null===(i=e.data)||void 0===i?void 0:i.status)?setTimeout((()=>r({retryCount:a})),5e3):window.location.reload())}}},(0,e.createElement)(vf,null))),null),Sf);const Lf=window.extAssistData.dismissedNotices.find((e=>"extendify-launch"===e.id));if(Tf&&!Lf&&(!xf||Cf)){var Af;const t=Object.assign(document.createElement("div"),{className:"extendify-assist"});null===(Af=document.getElementById("welcome-panel"))||void 0===Af||Af.remove(),Tf.before(t),(0,e.render)((0,e.createElement)(yf,null),t)}if(!Ef){const t=Object.assign(document.createElement("div"),{className:"extendify-assist"});document.body.append(t),(0,e.render)((0,e.createElement)(In,null),t)}}()}();
|
public/build/extendify-onboarding.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '69996fa20a91b02ebaf4');
|
public/build/extendify-onboarding.css
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
@-webkit-keyframes react-loading-skeleton{to{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes react-loading-skeleton{to{-webkit-transform:translateX(100%);transform:translateX(100%)}}.react-loading-skeleton{--base-color:#ebebeb!important;--highlight-color:#f5f5f5!important;--animation-duration:1.5s!important;--animation-direction:normal!important;--pseudo-element-display:block!important;background-color:var(--base-color)!important;border-radius:.25rem!important;display:inline-flex!important;line-height:1!important;overflow:hidden!important;position:relative!important;width:100%!important;z-index:1!important}.react-loading-skeleton:after{-webkit-animation-direction:var(--animation-direction);animation-direction:var(--animation-direction);-webkit-animation-duration:var(--animation-duration);animation-duration:var(--animation-duration);-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:react-loading-skeleton;animation-name:react-loading-skeleton;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;background-image:linear-gradient(90deg,var(--base-color),var(--highlight-color),var(--base-color))!important;background-repeat:no-repeat!important;content:" "!important;display:var(--pseudo-element-display)!important;height:100%!important;left:0!important;position:absolute!important;right:0!important;top:0!important;-webkit-transform:translateX(-100%)!important;transform:translateX(-100%)!important}
|
2 |
-
div.extendify-onboarding .sr-only{clip:rect(0,0,0,0)!important;border-width:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}div.extendify-onboarding .focus\:not-sr-only:focus{clip:auto!important;height:auto!important;margin:0!important;overflow:visible!important;padding:0!important;position:static!important;white-space:normal!important;width:auto!important}div.extendify-onboarding .pointer-events-none{pointer-events:none!important}div.extendify-onboarding .visible{visibility:visible!important}div.extendify-onboarding .invisible{visibility:hidden!important}div.extendify-onboarding .group:focus .group-focus\:visible,div.extendify-onboarding .group:hover .group-hover\:visible{visibility:visible!important}div.extendify-onboarding .static{position:static!important}div.extendify-onboarding .fixed{position:fixed!important}div.extendify-onboarding .absolute{position:absolute!important}div.extendify-onboarding .relative{position:relative!important}div.extendify-onboarding .sticky{position:sticky!important}div.extendify-onboarding .inset-0{bottom:0!important;left:0!important;right:0!important;top:0!important}div.extendify-onboarding .top-0{top:0!important}div.extendify-onboarding .top-2{top:.5rem!important}div.extendify-onboarding .top-4{top:1rem!important}div.extendify-onboarding .top-10{top:2.5rem!important}div.extendify-onboarding .-top-0{top:0!important}div.extendify-onboarding .-top-0\.5{top:-.125rem!important}div.extendify-onboarding .-top-1\/4{top:-25%!important}div.extendify-onboarding .right-0{right:0!important}div.extendify-onboarding .right-1{right:.25rem!important}div.extendify-onboarding .right-2{right:.5rem!important}div.extendify-onboarding .right-3{right:.75rem!important}div.extendify-onboarding .right-4{right:1rem!important}div.extendify-onboarding .right-2\.5{right:.625rem!important}div.extendify-onboarding .bottom-0{bottom:0!important}div.extendify-onboarding .bottom-4{bottom:1rem!important}div.extendify-onboarding .-bottom-2{bottom:-.5rem!important}div.extendify-onboarding .-left-0,div.extendify-onboarding .left-0{left:0!important}div.extendify-onboarding .-left-0\.5{left:-.125rem!important}div.extendify-onboarding .left-3\/4{left:75%!important}div.extendify-onboarding .group:hover .group-hover\:-top-2{top:-.5rem!important}div.extendify-onboarding .group:hover .group-hover\:-top-2\.5{top:-.625rem!important}div.extendify-onboarding .group:focus .group-focus\:-top-2{top:-.5rem!important}div.extendify-onboarding .group:focus .group-focus\:-top-2\.5{top:-.625rem!important}div.extendify-onboarding .z-10{z-index:10!important}div.extendify-onboarding .z-20{z-index:20!important}div.extendify-onboarding .z-30{z-index:30!important}div.extendify-onboarding .z-40{z-index:40!important}div.extendify-onboarding .z-50{z-index:50!important}div.extendify-onboarding .z-high{z-index:99999!important}div.extendify-onboarding .z-max{z-index:2147483647!important}div.extendify-onboarding .m-0{margin:0!important}div.extendify-onboarding .m-2{margin:.5rem!important}div.extendify-onboarding .m-4{margin:1rem!important}div.extendify-onboarding .m-8{margin:2rem!important}div.extendify-onboarding .m-auto{margin:auto!important}div.extendify-onboarding .-m-px{margin:-1px!important}div.extendify-onboarding .mx-1{margin-left:.25rem!important;margin-right:.25rem!important}div.extendify-onboarding .mx-6{margin-left:1.5rem!important;margin-right:1.5rem!important}div.extendify-onboarding .mx-auto{margin-left:auto!important;margin-right:auto!important}div.extendify-onboarding .-mx-4{margin-left:-1rem!important;margin-right:-1rem!important}div.extendify-onboarding .my-0{margin-bottom:0!important;margin-top:0!important}div.extendify-onboarding .my-4{margin-bottom:1rem!important;margin-top:1rem!important}div.extendify-onboarding .my-5{margin-bottom:1.25rem!important;margin-top:1.25rem!important}div.extendify-onboarding .my-8{margin-bottom:2rem!important;margin-top:2rem!important}div.extendify-onboarding .my-px{margin-bottom:1px!important;margin-top:1px!important}div.extendify-onboarding .mt-0{margin-top:0!important}div.extendify-onboarding .mt-1{margin-top:.25rem!important}div.extendify-onboarding .mt-2{margin-top:.5rem!important}div.extendify-onboarding .mt-4{margin-top:1rem!important}div.extendify-onboarding .mt-6{margin-top:1.5rem!important}div.extendify-onboarding .mt-8{margin-top:2rem!important}div.extendify-onboarding .mt-9{margin-top:2.25rem!important}div.extendify-onboarding .mt-12{margin-top:3rem!important}div.extendify-onboarding .mt-20{margin-top:5rem!important}div.extendify-onboarding .mt-px{margin-top:1px!important}div.extendify-onboarding .-mt-2{margin-top:-.5rem!important}div.extendify-onboarding .-mt-5{margin-top:-1.25rem!important}div.extendify-onboarding .mr-1{margin-right:.25rem!important}div.extendify-onboarding .mr-2{margin-right:.5rem!important}div.extendify-onboarding .mr-3{margin-right:.75rem!important}div.extendify-onboarding .mr-4{margin-right:1rem!important}div.extendify-onboarding .mr-6{margin-right:1.5rem!important}div.extendify-onboarding .-mr-1{margin-right:-.25rem!important}div.extendify-onboarding .-mr-1\.5{margin-right:-.375rem!important}div.extendify-onboarding .mb-0{margin-bottom:0!important}div.extendify-onboarding .mb-1{margin-bottom:.25rem!important}div.extendify-onboarding .mb-2{margin-bottom:.5rem!important}div.extendify-onboarding .mb-3{margin-bottom:.75rem!important}div.extendify-onboarding .mb-4{margin-bottom:1rem!important}div.extendify-onboarding .mb-5{margin-bottom:1.25rem!important}div.extendify-onboarding .mb-6{margin-bottom:1.5rem!important}div.extendify-onboarding .mb-8{margin-bottom:2rem!important}div.extendify-onboarding .mb-10{margin-bottom:2.5rem!important}div.extendify-onboarding .mb-16{margin-bottom:4rem!important}div.extendify-onboarding .ml-1{margin-left:.25rem!important}div.extendify-onboarding .ml-2{margin-left:.5rem!important}div.extendify-onboarding .ml-4{margin-left:1rem!important}div.extendify-onboarding .-ml-1{margin-left:-.25rem!important}div.extendify-onboarding .-ml-2{margin-left:-.5rem!important}div.extendify-onboarding .-ml-6{margin-left:-1.5rem!important}div.extendify-onboarding .-ml-px{margin-left:-1px!important}div.extendify-onboarding .-ml-1\.5{margin-left:-.375rem!important}div.extendify-onboarding .block{display:block!important}div.extendify-onboarding .inline-block{display:inline-block!important}div.extendify-onboarding .flex{display:flex!important}div.extendify-onboarding .inline-flex{display:inline-flex!important}div.extendify-onboarding .table{display:table!important}div.extendify-onboarding .grid{display:grid!important}div.extendify-onboarding .hidden{display:none!important}div.extendify-onboarding .h-0{height:0!important}div.extendify-onboarding .h-2{height:.5rem!important}div.extendify-onboarding .h-4{height:1rem!important}div.extendify-onboarding .h-5{height:1.25rem!important}div.extendify-onboarding .h-6{height:1.5rem!important}div.extendify-onboarding .h-8{height:2rem!important}div.extendify-onboarding .h-9{height:2.25rem!important}div.extendify-onboarding .h-10{height:2.5rem!important}div.extendify-onboarding .h-12{height:3rem!important}div.extendify-onboarding .h-14{height:3.5rem!important}div.extendify-onboarding .h-24{height:6rem!important}div.extendify-onboarding .h-32{height:8rem!important}div.extendify-onboarding .h-36{height:9rem!important}div.extendify-onboarding .h-48{height:12rem!important}div.extendify-onboarding .h-auto{height:auto!important}div.extendify-onboarding .h-full{height:100%!important}div.extendify-onboarding .h-screen{height:100vh!important}div.extendify-onboarding .max-h-96{max-height:24rem!important}div.extendify-onboarding .max-h-full{max-height:100%!important}div.extendify-onboarding .min-h-full{min-height:100%!important}div.extendify-onboarding .min-h-screen{min-height:100vh!important}div.extendify-onboarding .w-0{width:0!important}div.extendify-onboarding .w-4{width:1rem!important}div.extendify-onboarding .w-5{width:1.25rem!important}div.extendify-onboarding .w-6{width:1.5rem!important}div.extendify-onboarding .w-9{width:2.25rem!important}div.extendify-onboarding .w-12{width:3rem!important}div.extendify-onboarding .w-24{width:6rem!important}div.extendify-onboarding .w-28{width:7rem!important}div.extendify-onboarding .w-32{width:8rem!important}div.extendify-onboarding .w-40{width:10rem!important}div.extendify-onboarding .w-44{width:11rem!important}div.extendify-onboarding .w-72{width:18rem!important}div.extendify-onboarding .w-96{width:24rem!important}div.extendify-onboarding .w-auto{width:auto!important}div.extendify-onboarding .w-1\/5{width:20%!important}div.extendify-onboarding .w-4\/5{width:80%!important}div.extendify-onboarding .w-6\/12{width:50%!important}div.extendify-onboarding .w-7\/12{width:58.333333%!important}div.extendify-onboarding .w-full{width:100%!important}div.extendify-onboarding .w-screen{width:100vw!important}div.extendify-onboarding .min-w-0{min-width:0!important}div.extendify-onboarding .min-w-full{min-width:100%!important}div.extendify-onboarding .min-w-sm{min-width:7rem!important}div.extendify-onboarding .min-w-md{min-width:30rem!important}div.extendify-onboarding .max-w-md{max-width:28rem!important}div.extendify-onboarding .max-w-lg{max-width:32rem!important}div.extendify-onboarding .max-w-xl{max-width:36rem!important}div.extendify-onboarding .max-w-full{max-width:100%!important}div.extendify-onboarding .max-w-prose{max-width:65ch!important}div.extendify-onboarding .max-w-screen-md{max-width:782px!important}div.extendify-onboarding .max-w-screen-lg{max-width:1080px!important}div.extendify-onboarding .max-w-screen-xl{max-width:1280px!important}div.extendify-onboarding .max-w-screen-3xl{max-width:1600px!important}div.extendify-onboarding .max-w-screen-4xl{max-width:1920px!important}div.extendify-onboarding .max-w-onboarding-content{max-width:45.5rem!important}div.extendify-onboarding .max-w-onboarding-sm{max-width:26.5rem!important}div.extendify-onboarding .max-w-3\/4{max-width:75%!important}div.extendify-onboarding .flex-1{flex:1 1 0%!important}div.extendify-onboarding .flex-auto{flex:1 1 auto!important}div.extendify-onboarding .flex-none{flex:none!important}div.extendify-onboarding .flex-shrink-0{flex-shrink:0!important}div.extendify-onboarding .flex-grow-0{flex-grow:0!important}div.extendify-onboarding .flex-grow{flex-grow:1!important}div.extendify-onboarding .origin-top{transform-origin:top!important}div.extendify-onboarding .transform{--tw-translate-x:0!important;--tw-translate-y:0!important;--tw-rotate:0!important;--tw-skew-x:0!important;--tw-skew-y:0!important;--tw-scale-x:1!important;--tw-scale-y:1!important;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}div.extendify-onboarding .-translate-x-1{--tw-translate-x:-0.25rem!important}div.extendify-onboarding .translate-y-0{--tw-translate-y:0px!important}div.extendify-onboarding .translate-y-1{--tw-translate-y:0.25rem!important}div.extendify-onboarding .translate-y-4{--tw-translate-y:1rem!important}div.extendify-onboarding .translate-y-14{--tw-translate-y:3.5rem!important}div.extendify-onboarding .-translate-y-px{--tw-translate-y:-1px!important}div.extendify-onboarding .-translate-y-full{--tw-translate-y:-100%!important}div.extendify-onboarding .rotate-90{--tw-rotate:90deg!important}div.extendify-onboarding .cursor-default{cursor:default!important}div.extendify-onboarding .cursor-pointer{cursor:pointer!important}div.extendify-onboarding .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}div.extendify-onboarding .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify-onboarding .flex-col{flex-direction:column!important}div.extendify-onboarding .flex-wrap{flex-wrap:wrap!important}div.extendify-onboarding .items-start{align-items:flex-start!important}div.extendify-onboarding .items-end{align-items:flex-end!important}div.extendify-onboarding .items-center{align-items:center!important}div.extendify-onboarding .items-baseline{align-items:baseline!important}div.extendify-onboarding .justify-end{justify-content:flex-end!important}div.extendify-onboarding .justify-center{justify-content:center!important}div.extendify-onboarding .justify-between{justify-content:space-between!important}div.extendify-onboarding .justify-evenly{justify-content:space-evenly!important}div.extendify-onboarding .gap-0{gap:0!important}div.extendify-onboarding .gap-1{gap:.25rem!important}div.extendify-onboarding .gap-3{gap:.75rem!important}div.extendify-onboarding .gap-4{gap:1rem!important}div.extendify-onboarding .gap-6{gap:1.5rem!important}div.extendify-onboarding .gap-16{gap:4rem!important}div.extendify-onboarding .gap-x-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}div.extendify-onboarding .gap-x-3{-moz-column-gap:.75rem!important;column-gap:.75rem!important}div.extendify-onboarding .gap-x-4{-moz-column-gap:1rem!important;column-gap:1rem!important}div.extendify-onboarding .gap-y-12{row-gap:3rem!important}div.extendify-onboarding .space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(0px*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.25rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.5rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.75rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(1rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-x-0\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.125rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.125rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1rem*var(--tw-space-y-reverse))!important;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0!important;border-bottom-width:calc(1px*var(--tw-divide-y-reverse))!important;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))!important}div.extendify-onboarding .self-start{align-self:flex-start!important}div.extendify-onboarding .overflow-hidden{overflow:hidden!important}div.extendify-onboarding .overflow-y-auto{overflow-y:auto!important}div.extendify-onboarding .overflow-x-hidden{overflow-x:hidden!important}div.extendify-onboarding .overflow-y-scroll{overflow-y:scroll!important}div.extendify-onboarding .whitespace-nowrap{white-space:nowrap!important}div.extendify-onboarding .rounded-none{border-radius:0!important}div.extendify-onboarding .rounded-sm{border-radius:.125rem!important}div.extendify-onboarding .rounded{border-radius:.25rem!important}div.extendify-onboarding .rounded-md{border-radius:.375rem!important}div.extendify-onboarding .rounded-lg{border-radius:.5rem!important}div.extendify-onboarding .rounded-full{border-radius:9999px!important}div.extendify-onboarding .rounded-tr-sm{border-top-right-radius:.125rem!important}div.extendify-onboarding .rounded-br-sm{border-bottom-right-radius:.125rem!important}div.extendify-onboarding .border-0{border-width:0!important}div.extendify-onboarding .border-2{border-width:2px!important}div.extendify-onboarding .border-8{border-width:8px!important}div.extendify-onboarding .border{border-width:1px!important}div.extendify-onboarding .border-t{border-top-width:1px!important}div.extendify-onboarding .border-r{border-right-width:1px!important}div.extendify-onboarding .border-b-0{border-bottom-width:0!important}div.extendify-onboarding .border-b-2{border-bottom-width:2px!important}div.extendify-onboarding .border-b{border-bottom-width:1px!important}div.extendify-onboarding .border-l-8{border-left-width:8px!important}div.extendify-onboarding .border-solid{border-style:solid!important}div.extendify-onboarding .border-dotted{border-style:dotted!important}div.extendify-onboarding .border-none{border-style:none!important}div.extendify-onboarding .border-transparent{border-color:transparent!important}div.extendify-onboarding .border-black{--tw-border-opacity:1!important;border-color:rgba(0,0,0,var(--tw-border-opacity))!important}div.extendify-onboarding .border-white{--tw-border-opacity:1!important;border-color:rgba(255,255,255,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-100{--tw-border-opacity:1!important;border-color:rgba(240,240,240,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-400{--tw-border-opacity:1!important;border-color:rgba(204,204,204,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-700{--tw-border-opacity:1!important;border-color:rgba(117,117,117,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-900{--tw-border-opacity:1!important;border-color:rgba(30,30,30,var(--tw-border-opacity))!important}div.extendify-onboarding .border-partner-primary-bg{border-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-onboarding .border-extendify-main{--tw-border-opacity:1!important;border-color:rgba(11,74,67,var(--tw-border-opacity))!important}div.extendify-onboarding .border-extendify-secondary{--tw-border-opacity:1!important;border-color:rgba(203,195,245,var(--tw-border-opacity))!important}div.extendify-onboarding .border-extendify-transparent-black-100{border-color:rgba(0,0,0,.07)!important}div.extendify-onboarding .border-wp-alert-red{--tw-border-opacity:1!important;border-color:rgba(204,24,24,var(--tw-border-opacity))!important}div.extendify-onboarding .focus\:border-transparent:focus{border-color:transparent!important}div.extendify-onboarding .border-opacity-10{--tw-border-opacity:0.1!important}div.extendify-onboarding .bg-transparent{background-color:transparent!important}div.extendify-onboarding .bg-black{--tw-bg-opacity:1!important;background-color:rgba(0,0,0,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-white{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-50{--tw-bg-opacity:1!important;background-color:rgba(251,251,251,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-100{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-200{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-700{--tw-bg-opacity:1!important;background-color:rgba(117,117,117,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-partner-primary-bg{background-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-onboarding .bg-extendify-main{--tw-bg-opacity:1!important;background-color:rgba(11,74,67,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-extendify-alert{--tw-bg-opacity:1!important;background-color:rgba(132,16,16,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-extendify-secondary{--tw-bg-opacity:1!important;background-color:rgba(203,195,245,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-extendify-transparent-white{background-color:hsla(0,0%,99%,.88)!important}div.extendify-onboarding .bg-wp-theme-500{background-color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-onboarding .group:hover .group-hover\:bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify-onboarding .hover\:bg-gray-200:hover{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify-onboarding .hover\:bg-gray-300:hover{--tw-bg-opacity:1!important;background-color:rgba(221,221,221,var(--tw-bg-opacity))!important}div.extendify-onboarding .hover\:bg-extendify-main-dark:hover{--tw-bg-opacity:1!important;background-color:rgba(5,49,44,var(--tw-bg-opacity))!important}div.extendify-onboarding .hover\:bg-wp-theme-600:hover{background-color:var(--wp-admin-theme-color-darker-10,#006ba1)!important}div.extendify-onboarding .focus\:bg-white:focus{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}div.extendify-onboarding .focus\:bg-gray-200:focus{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify-onboarding .active\:bg-gray-900:active{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify-onboarding .disabled\:bg-gray-700:disabled{--tw-bg-opacity:1!important;background-color:rgba(117,117,117,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-opacity-40{--tw-bg-opacity:0.4!important}div.extendify-onboarding .bg-gradient-to-l{background-image:linear-gradient(to left,var(--tw-gradient-stops))!important}div.extendify-onboarding .from-white{--tw-gradient-from:#fff!important;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,hsla(0,0%,100%,0))!important}div.extendify-onboarding .bg-cover{background-size:cover!important}div.extendify-onboarding .bg-clip-padding{background-clip:padding-box!important}div.extendify-onboarding .fill-current{fill:currentColor!important}div.extendify-onboarding .stroke-current{stroke:currentColor!important}div.extendify-onboarding .p-0{padding:0!important}div.extendify-onboarding .p-1{padding:.25rem!important}div.extendify-onboarding .p-2{padding:.5rem!important}div.extendify-onboarding .p-3{padding:.75rem!important}div.extendify-onboarding .p-4{padding:1rem!important}div.extendify-onboarding .p-6{padding:1.5rem!important}div.extendify-onboarding .p-8{padding:2rem!important}div.extendify-onboarding .p-10{padding:2.5rem!important}div.extendify-onboarding .p-12{padding:3rem!important}div.extendify-onboarding .p-0\.5{padding:.125rem!important}div.extendify-onboarding .p-1\.5{padding:.375rem!important}div.extendify-onboarding .p-3\.5{padding:.875rem!important}div.extendify-onboarding .px-0{padding-left:0!important;padding-right:0!important}div.extendify-onboarding .px-1{padding-left:.25rem!important;padding-right:.25rem!important}div.extendify-onboarding .px-2{padding-left:.5rem!important;padding-right:.5rem!important}div.extendify-onboarding .px-3{padding-left:.75rem!important;padding-right:.75rem!important}div.extendify-onboarding .px-4{padding-left:1rem!important;padding-right:1rem!important}div.extendify-onboarding .px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}div.extendify-onboarding .px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}div.extendify-onboarding .px-10{padding-left:2.5rem!important;padding-right:2.5rem!important}div.extendify-onboarding .px-0\.5{padding-left:.125rem!important;padding-right:.125rem!important}div.extendify-onboarding .px-2\.5{padding-left:.625rem!important;padding-right:.625rem!important}div.extendify-onboarding .py-0{padding-bottom:0!important;padding-top:0!important}div.extendify-onboarding .py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}div.extendify-onboarding .py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}div.extendify-onboarding .py-3{padding-bottom:.75rem!important;padding-top:.75rem!important}div.extendify-onboarding .py-4{padding-bottom:1rem!important;padding-top:1rem!important}div.extendify-onboarding .py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}div.extendify-onboarding .py-12{padding-bottom:3rem!important;padding-top:3rem!important}div.extendify-onboarding .py-2\.5{padding-bottom:.625rem!important;padding-top:.625rem!important}div.extendify-onboarding .pt-0{padding-top:0!important}div.extendify-onboarding .pt-1{padding-top:.25rem!important}div.extendify-onboarding .pt-2{padding-top:.5rem!important}div.extendify-onboarding .pt-3{padding-top:.75rem!important}div.extendify-onboarding .pt-4{padding-top:1rem!important}div.extendify-onboarding .pt-6{padding-top:1.5rem!important}div.extendify-onboarding .pt-9{padding-top:2.25rem!important}div.extendify-onboarding .pt-10{padding-top:2.5rem!important}div.extendify-onboarding .pt-12{padding-top:3rem!important}div.extendify-onboarding .pt-px{padding-top:1px!important}div.extendify-onboarding .pt-0\.5{padding-top:.125rem!important}div.extendify-onboarding .pr-3{padding-right:.75rem!important}div.extendify-onboarding .pr-4{padding-right:1rem!important}div.extendify-onboarding .pr-8{padding-right:2rem!important}div.extendify-onboarding .pb-0{padding-bottom:0!important}div.extendify-onboarding .pb-1{padding-bottom:.25rem!important}div.extendify-onboarding .pb-2{padding-bottom:.5rem!important}div.extendify-onboarding .pb-3{padding-bottom:.75rem!important}div.extendify-onboarding .pb-4{padding-bottom:1rem!important}div.extendify-onboarding .pb-8{padding-bottom:2rem!important}div.extendify-onboarding .pb-20{padding-bottom:5rem!important}div.extendify-onboarding .pb-36{padding-bottom:9rem!important}div.extendify-onboarding .pb-40{padding-bottom:10rem!important}div.extendify-onboarding .pb-1\.5{padding-bottom:.375rem!important}div.extendify-onboarding .pl-0{padding-left:0!important}div.extendify-onboarding .pl-1{padding-left:.25rem!important}div.extendify-onboarding .pl-2{padding-left:.5rem!important}div.extendify-onboarding .pl-4{padding-left:1rem!important}div.extendify-onboarding .pl-5{padding-left:1.25rem!important}div.extendify-onboarding .pl-6{padding-left:1.5rem!important}div.extendify-onboarding .text-left{text-align:left!important}div.extendify-onboarding .text-center{text-align:center!important}div.extendify-onboarding .text-right{text-align:right!important}div.extendify-onboarding .align-middle{vertical-align:middle!important}div.extendify-onboarding .text-xs{font-size:.75rem!important;line-height:1rem!important}div.extendify-onboarding .text-sm{font-size:.875rem!important;line-height:1.25rem!important}div.extendify-onboarding .text-base{font-size:1rem!important;line-height:1.5rem!important}div.extendify-onboarding .text-lg{font-size:1.125rem!important;line-height:1.75rem!important}div.extendify-onboarding .text-xl{font-size:1.25rem!important;line-height:1.75rem!important}div.extendify-onboarding .text-3xl{font-size:2rem!important;line-height:2.5rem!important}div.extendify-onboarding .text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}div.extendify-onboarding .font-light{font-weight:300!important}div.extendify-onboarding .font-normal{font-weight:400!important}div.extendify-onboarding .font-medium{font-weight:500!important}div.extendify-onboarding .font-semibold{font-weight:600!important}div.extendify-onboarding .font-bold{font-weight:700!important}div.extendify-onboarding .uppercase{text-transform:uppercase!important}div.extendify-onboarding .capitalize{text-transform:capitalize!important}div.extendify-onboarding .italic{font-style:italic!important}div.extendify-onboarding .leading-none{line-height:1!important}div.extendify-onboarding .leading-loose{line-height:2!important}div.extendify-onboarding .tracking-tight{letter-spacing:-.025em!important}div.extendify-onboarding .tracking-wide{letter-spacing:.025em!important}div.extendify-onboarding .text-black{--tw-text-opacity:1!important;color:rgba(0,0,0,var(--tw-text-opacity))!important}div.extendify-onboarding .text-white{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-500{--tw-text-opacity:1!important;color:rgba(204,204,204,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-700{--tw-text-opacity:1!important;color:rgba(117,117,117,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-900{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify-onboarding .text-partner-primary-text{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify-onboarding .text-partner-primary-bg{color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-onboarding .text-extendify-main{--tw-text-opacity:1!important;color:rgba(11,74,67,var(--tw-text-opacity))!important}div.extendify-onboarding .text-extendify-main-dark{--tw-text-opacity:1!important;color:rgba(5,49,44,var(--tw-text-opacity))!important}div.extendify-onboarding .text-extendify-gray{--tw-text-opacity:1!important;color:rgba(95,95,95,var(--tw-text-opacity))!important}div.extendify-onboarding .text-extendify-black{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify-onboarding .text-wp-theme-500{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-onboarding .text-wp-alert-red{--tw-text-opacity:1!important;color:rgba(204,24,24,var(--tw-text-opacity))!important}div.extendify-onboarding .group:hover .group-hover\:text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify-onboarding .focus-within\:text-partner-primary-bg:focus-within{color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-onboarding .hover\:text-current:hover{color:currentColor!important}div.extendify-onboarding .hover\:text-white:hover{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-onboarding .hover\:text-partner-primary-bg:hover{color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-onboarding .hover\:text-wp-theme-500:hover{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-onboarding .focus\:text-white:focus{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-onboarding .focus\:text-blue-500:focus{--tw-text-opacity:1!important;color:rgba(59,130,246,var(--tw-text-opacity))!important}div.extendify-onboarding .focus\:text-partner-primary-bg:focus{color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-onboarding .underline{text-decoration:underline!important}div.extendify-onboarding .line-through{text-decoration:line-through!important}div.extendify-onboarding .hover\:no-underline:hover,div.extendify-onboarding .no-underline{text-decoration:none!important}div.extendify-onboarding .opacity-0{opacity:0!important}div.extendify-onboarding .opacity-30{opacity:.3!important}div.extendify-onboarding .opacity-50{opacity:.5!important}div.extendify-onboarding .opacity-60{opacity:.6!important}div.extendify-onboarding .opacity-70{opacity:.7!important}div.extendify-onboarding .opacity-75{opacity:.75!important}div.extendify-onboarding .focus\:opacity-100:focus,div.extendify-onboarding .group:focus .group-focus\:opacity-100,div.extendify-onboarding .group:hover .group-hover\:opacity-100,div.extendify-onboarding .hover\:opacity-100:hover,div.extendify-onboarding .opacity-100{opacity:1!important}div.extendify-onboarding .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05)!important}div.extendify-onboarding .shadow-md,div.extendify-onboarding .shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify-onboarding .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06)!important}div.extendify-onboarding .shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25)!important}div.extendify-onboarding .shadow-2xl,div.extendify-onboarding .shadow-none{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify-onboarding .shadow-none{--tw-shadow:0 0 #0000!important}div.extendify-onboarding .shadow-modal{--tw-shadow:0 0 0 1px rgba(0,0,0,.1),0 3px 15px -3px rgba(0,0,0,.035),0 0 1px rgba(0,0,0,.05)!important}div.extendify-onboarding .focus\:shadow-none:focus,div.extendify-onboarding .shadow-modal{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify-onboarding .focus\:shadow-none:focus{--tw-shadow:0 0 #0000!important}div.extendify-onboarding .focus\:outline-none:focus,div.extendify-onboarding .outline-none{outline:2px solid transparent!important;outline-offset:2px!important}div.extendify-onboarding .focus\:ring-wp:focus,div.extendify-onboarding .ring-wp{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}div.extendify-onboarding .ring-partner-primary-bg{--tw-ring-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-onboarding .ring-offset-0{--tw-ring-offset-width:0px!important}div.extendify-onboarding .ring-offset-2{--tw-ring-offset-width:2px!important}div.extendify-onboarding .ring-offset-white{--tw-ring-offset-color:#fff!important}div.extendify-onboarding .filter{--tw-blur:var(--tw-empty, )!important;--tw-brightness:var(--tw-empty, )!important;--tw-contrast:var(--tw-empty, )!important;--tw-grayscale:var(--tw-empty, )!important;--tw-hue-rotate:var(--tw-empty, )!important;--tw-invert:var(--tw-empty, )!important;--tw-saturate:var(--tw-empty, )!important;--tw-sepia:var(--tw-empty, )!important;--tw-drop-shadow:var(--tw-empty, )!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}div.extendify-onboarding .blur{--tw-blur:blur(8px)!important}div.extendify-onboarding .invert{--tw-invert:invert(100%)!important}div.extendify-onboarding .backdrop-filter{--tw-backdrop-blur:var(--tw-empty, )!important;--tw-backdrop-brightness:var(--tw-empty, )!important;--tw-backdrop-contrast:var(--tw-empty, )!important;--tw-backdrop-grayscale:var(--tw-empty, )!important;--tw-backdrop-hue-rotate:var(--tw-empty, )!important;--tw-backdrop-invert:var(--tw-empty, )!important;--tw-backdrop-opacity:var(--tw-empty, )!important;--tw-backdrop-saturate:var(--tw-empty, )!important;--tw-backdrop-sepia:var(--tw-empty, )!important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}div.extendify-onboarding .backdrop-blur-xl{--tw-backdrop-blur:blur(24px)!important}div.extendify-onboarding .backdrop-saturate-200{--tw-backdrop-saturate:saturate(2)!important}div.extendify-onboarding .transition-all{transition-duration:.15s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify-onboarding .transition{transition-duration:.15s!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify-onboarding .transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify-onboarding .delay-200{transition-delay:.2s!important}div.extendify-onboarding .delay-300{transition-delay:.3s!important}div.extendify-onboarding .duration-100{transition-duration:.1s!important}div.extendify-onboarding .duration-200{transition-duration:.2s!important}div.extendify-onboarding .duration-300{transition-duration:.3s!important}div.extendify-onboarding .duration-500{transition-duration:.5s!important}div.extendify-onboarding .duration-1000{transition-duration:1s!important}div.extendify-onboarding .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}div.extendify-onboarding .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.extendify-onboarding{--tw-ring-inset:var(--tw-empty, )!important;--tw-ring-offset-width:0px!important;--tw-ring-offset-color:transparent!important;--tw-ring-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}.extendify-onboarding *,.extendify-onboarding :after,.extendify-onboarding :before{border:0 solid #e5e7eb!important;box-sizing:border-box!important}.extendify-onboarding{-webkit-font-smoothing:antialiased!important}.extendify-onboarding .search-panel input[type=text]::-moz-placeholder{font-size:.875rem!important;line-height:1.25rem!important}.extendify-onboarding .search-panel input[type=text]::placeholder{font-size:.875rem!important;line-height:1.25rem!important}.extendify-onboarding .search-panel .icon-search{position:absolute!important;right:16px!important}.extendify-onboarding .button-focus{border-radius:.5rem!important;cursor:pointer!important;font-size:1rem!important;line-height:1.5rem!important;text-align:center!important;text-decoration:none!important}.extendify-onboarding .button-focus:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify-onboarding .button-focus{outline:2px solid transparent!important;outline-offset:2px!important}.extendify-onboarding .button-focus:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.extendify-onboarding .button-focus{--tw-ring-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important;--tw-ring-offset-width:2px!important;--tw-ring-offset-color:#fff!important}.extendify-onboarding .input-focus{border-radius:.5rem!important;font-size:1rem!important;line-height:1.5rem!important}.extendify-onboarding .input-focus:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify-onboarding .input-focus{outline:2px solid transparent!important;outline-offset:2px!important}.extendify-onboarding .input-focus:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.extendify-onboarding .input-focus{--tw-ring-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important;--tw-ring-offset-width:2px!important;--tw-ring-offset-color:#fff!important}.extendify-onboarding .button-card{border-width:1px!important;display:block!important;flex:1 1 0%!important;margin:0!important;overflow:hidden!important;padding:1rem!important}.extendify-onboarding .preview-container .block-editor-block-preview__content{max-height:none!important}.extendify-onboarding .spin{animation:extendify-loading-spinner 1s linear infinite}@keyframes extendify-loading-spinner{to{transform:rotate(1turn)}}.extendify-onboarding input[type=checkbox]{--tw-border-opacity:1!important;border-color:rgba(30,30,30,var(--tw-border-opacity))!important;border-width:1px!important}.extendify-onboarding input[type=checkbox]:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;--tw-ring-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important;--tw-ring-offset-width:2px!important;--tw-ring-offset-color:#fff!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important;outline:2px solid transparent!important;outline-offset:2px!important}.extendify-onboarding input[type=checkbox]:checked{background-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}.extendify-onboarding input[type=checkbox]:checked:before{content:""!important;height:0!important;width:0!important}.extendify-onboarding .goal-select .components-base-control__field{margin-bottom:0!important}.block-editor-block-preview__content{left:0!important;margin:0!important;min-height:auto!important;overflow:visible!important;text-align:initial!important;top:0!important;transform-origin:top left!important}body{background:#fff!important}#adminmenumain,#wpadminbar{display:none!important}@media (min-width:480px){div.extendify-onboarding .xs\:inline{display:inline!important}div.extendify-onboarding .xs\:h-9{height:2.25rem!important}div.extendify-onboarding .xs\:pr-3{padding-right:.75rem!important}div.extendify-onboarding .xs\:pl-2{padding-left:.5rem!important}}@media (min-width:600px){div.extendify-onboarding .sm\:mx-0{margin-left:0!important;margin-right:0!important}div.extendify-onboarding .sm\:mt-0{margin-top:0!important}div.extendify-onboarding .sm\:mb-8{margin-bottom:2rem!important}div.extendify-onboarding .sm\:ml-2{margin-left:.5rem!important}div.extendify-onboarding .sm\:block{display:block!important}div.extendify-onboarding .sm\:flex{display:flex!important}div.extendify-onboarding .sm\:h-auto{height:auto!important}div.extendify-onboarding .sm\:w-72{width:18rem!important}div.extendify-onboarding .sm\:w-auto{width:auto!important}div.extendify-onboarding .sm\:translate-y-5{--tw-translate-y:1.25rem!important}div.extendify-onboarding .sm\:space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .sm\:overflow-hidden{overflow:hidden!important}div.extendify-onboarding .sm\:p-0{padding:0!important}div.extendify-onboarding .sm\:py-0{padding-bottom:0!important;padding-top:0!important}div.extendify-onboarding .sm\:pt-0{padding-top:0!important}div.extendify-onboarding .sm\:pt-5{padding-top:1.25rem!important}}@media (min-width:782px){div.extendify-onboarding .md\:m-0{margin:0!important}div.extendify-onboarding .md\:-ml-8{margin-left:-2rem!important}div.extendify-onboarding .md\:block{display:block!important}div.extendify-onboarding .md\:flex{display:flex!important}div.extendify-onboarding .md\:hidden{display:none!important}div.extendify-onboarding .md\:h-screen{height:100vh!important}div.extendify-onboarding .md\:min-h-48{min-height:12rem!important}div.extendify-onboarding .md\:w-1\/2{width:50%!important}div.extendify-onboarding .md\:w-full{width:100%!important}div.extendify-onboarding .md\:w-40vw{width:40vw!important}div.extendify-onboarding .md\:max-w-sm{max-width:24rem!important}div.extendify-onboarding .md\:max-w-md{max-width:28rem!important}div.extendify-onboarding .md\:max-w-2xl{max-width:42rem!important}div.extendify-onboarding .md\:max-w-full{max-width:100%!important}div.extendify-onboarding .md\:flex-row{flex-direction:row!important}div.extendify-onboarding .md\:gap-8{gap:2rem!important}div.extendify-onboarding .md\:space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(2rem*var(--tw-space-y-reverse))!important;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .md\:overflow-hidden{overflow:hidden!important}div.extendify-onboarding .md\:overflow-y-scroll{overflow-y:scroll!important}div.extendify-onboarding .md\:focus\:bg-transparent:focus{background-color:transparent!important}div.extendify-onboarding .md\:p-6{padding:1.5rem!important}div.extendify-onboarding .md\:p-8{padding:2rem!important}div.extendify-onboarding .md\:px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}div.extendify-onboarding .md\:px-8{padding-left:2rem!important;padding-right:2rem!important}div.extendify-onboarding .md\:pl-8{padding-left:2rem!important}div.extendify-onboarding .md\:text-black{--tw-text-opacity:1!important;color:rgba(0,0,0,var(--tw-text-opacity))!important}}@media (min-width:1080px){div.extendify-onboarding .lg\:absolute{position:absolute!important}div.extendify-onboarding .lg\:-mr-1{margin-right:-.25rem!important}div.extendify-onboarding .lg\:block{display:block!important}div.extendify-onboarding .lg\:flex{display:flex!important}div.extendify-onboarding .lg\:w-1\/2{width:50%!important}div.extendify-onboarding .lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify-onboarding .lg\:flex-row{flex-direction:row!important}div.extendify-onboarding .lg\:justify-start{justify-content:flex-start!important}div.extendify-onboarding .lg\:overflow-hidden{overflow:hidden!important}div.extendify-onboarding .lg\:p-12{padding:3rem!important}div.extendify-onboarding .lg\:p-16{padding:4rem!important}div.extendify-onboarding .lg\:p-24{padding:6rem!important}div.extendify-onboarding .lg\:px-12{padding-left:3rem!important;padding-right:3rem!important}div.extendify-onboarding .lg\:pr-52{padding-right:13rem!important}}@media (min-width:1280px){div.extendify-onboarding .xl\:mb-12{margin-bottom:3rem!important}div.extendify-onboarding .xl\:p-32{padding:8rem!important}div.extendify-onboarding .xl\:px-0{padding-left:0!important;padding-right:0!important}}
|
1 |
@-webkit-keyframes react-loading-skeleton{to{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes react-loading-skeleton{to{-webkit-transform:translateX(100%);transform:translateX(100%)}}.react-loading-skeleton{--base-color:#ebebeb!important;--highlight-color:#f5f5f5!important;--animation-duration:1.5s!important;--animation-direction:normal!important;--pseudo-element-display:block!important;background-color:var(--base-color)!important;border-radius:.25rem!important;display:inline-flex!important;line-height:1!important;overflow:hidden!important;position:relative!important;width:100%!important;z-index:1!important}.react-loading-skeleton:after{-webkit-animation-direction:var(--animation-direction);animation-direction:var(--animation-direction);-webkit-animation-duration:var(--animation-duration);animation-duration:var(--animation-duration);-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:react-loading-skeleton;animation-name:react-loading-skeleton;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;background-image:linear-gradient(90deg,var(--base-color),var(--highlight-color),var(--base-color))!important;background-repeat:no-repeat!important;content:" "!important;display:var(--pseudo-element-display)!important;height:100%!important;left:0!important;position:absolute!important;right:0!important;top:0!important;-webkit-transform:translateX(-100%)!important;transform:translateX(-100%)!important}
|
2 |
+
div.extendify-onboarding .sr-only{clip:rect(0,0,0,0)!important;border-width:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}div.extendify-onboarding .focus\:not-sr-only:focus{clip:auto!important;height:auto!important;margin:0!important;overflow:visible!important;padding:0!important;position:static!important;white-space:normal!important;width:auto!important}div.extendify-onboarding .pointer-events-none{pointer-events:none!important}div.extendify-onboarding .visible{visibility:visible!important}div.extendify-onboarding .invisible{visibility:hidden!important}div.extendify-onboarding .group:focus .group-focus\:visible,div.extendify-onboarding .group:hover .group-hover\:visible{visibility:visible!important}div.extendify-onboarding .static{position:static!important}div.extendify-onboarding .fixed{position:fixed!important}div.extendify-onboarding .absolute{position:absolute!important}div.extendify-onboarding .relative{position:relative!important}div.extendify-onboarding .sticky{position:sticky!important}div.extendify-onboarding .inset-0{bottom:0!important;left:0!important;right:0!important;top:0!important}div.extendify-onboarding .top-0{top:0!important}div.extendify-onboarding .top-2{top:.5rem!important}div.extendify-onboarding .top-4{top:1rem!important}div.extendify-onboarding .top-10{top:2.5rem!important}div.extendify-onboarding .-top-0{top:0!important}div.extendify-onboarding .-top-0\.5{top:-.125rem!important}div.extendify-onboarding .-top-1\/4{top:-25%!important}div.extendify-onboarding .right-0{right:0!important}div.extendify-onboarding .right-1{right:.25rem!important}div.extendify-onboarding .right-2{right:.5rem!important}div.extendify-onboarding .right-3{right:.75rem!important}div.extendify-onboarding .right-4{right:1rem!important}div.extendify-onboarding .right-2\.5{right:.625rem!important}div.extendify-onboarding .bottom-0{bottom:0!important}div.extendify-onboarding .bottom-4{bottom:1rem!important}div.extendify-onboarding .-bottom-2{bottom:-.5rem!important}div.extendify-onboarding .-left-0,div.extendify-onboarding .left-0{left:0!important}div.extendify-onboarding .-left-0\.5{left:-.125rem!important}div.extendify-onboarding .left-3\/4{left:75%!important}div.extendify-onboarding .group:hover .group-hover\:-top-2{top:-.5rem!important}div.extendify-onboarding .group:hover .group-hover\:-top-2\.5{top:-.625rem!important}div.extendify-onboarding .group:focus .group-focus\:-top-2{top:-.5rem!important}div.extendify-onboarding .group:focus .group-focus\:-top-2\.5{top:-.625rem!important}div.extendify-onboarding .z-10{z-index:10!important}div.extendify-onboarding .z-20{z-index:20!important}div.extendify-onboarding .z-30{z-index:30!important}div.extendify-onboarding .z-40{z-index:40!important}div.extendify-onboarding .z-50{z-index:50!important}div.extendify-onboarding .z-high{z-index:99999!important}div.extendify-onboarding .z-max{z-index:2147483647!important}div.extendify-onboarding .m-0{margin:0!important}div.extendify-onboarding .m-2{margin:.5rem!important}div.extendify-onboarding .m-4{margin:1rem!important}div.extendify-onboarding .m-8{margin:2rem!important}div.extendify-onboarding .m-auto{margin:auto!important}div.extendify-onboarding .-m-px{margin:-1px!important}div.extendify-onboarding .mx-1{margin-left:.25rem!important;margin-right:.25rem!important}div.extendify-onboarding .mx-6{margin-left:1.5rem!important;margin-right:1.5rem!important}div.extendify-onboarding .mx-auto{margin-left:auto!important;margin-right:auto!important}div.extendify-onboarding .-mx-4{margin-left:-1rem!important;margin-right:-1rem!important}div.extendify-onboarding .my-0{margin-bottom:0!important;margin-top:0!important}div.extendify-onboarding .my-4{margin-bottom:1rem!important;margin-top:1rem!important}div.extendify-onboarding .my-5{margin-bottom:1.25rem!important;margin-top:1.25rem!important}div.extendify-onboarding .my-8{margin-bottom:2rem!important;margin-top:2rem!important}div.extendify-onboarding .my-px{margin-bottom:1px!important;margin-top:1px!important}div.extendify-onboarding .mt-0{margin-top:0!important}div.extendify-onboarding .mt-1{margin-top:.25rem!important}div.extendify-onboarding .mt-2{margin-top:.5rem!important}div.extendify-onboarding .mt-4{margin-top:1rem!important}div.extendify-onboarding .mt-6{margin-top:1.5rem!important}div.extendify-onboarding .mt-8{margin-top:2rem!important}div.extendify-onboarding .mt-9{margin-top:2.25rem!important}div.extendify-onboarding .mt-12{margin-top:3rem!important}div.extendify-onboarding .mt-20{margin-top:5rem!important}div.extendify-onboarding .mt-px{margin-top:1px!important}div.extendify-onboarding .-mt-2{margin-top:-.5rem!important}div.extendify-onboarding .-mt-5{margin-top:-1.25rem!important}div.extendify-onboarding .mr-1{margin-right:.25rem!important}div.extendify-onboarding .mr-2{margin-right:.5rem!important}div.extendify-onboarding .mr-3{margin-right:.75rem!important}div.extendify-onboarding .mr-4{margin-right:1rem!important}div.extendify-onboarding .mr-6{margin-right:1.5rem!important}div.extendify-onboarding .-mr-1{margin-right:-.25rem!important}div.extendify-onboarding .-mr-1\.5{margin-right:-.375rem!important}div.extendify-onboarding .mb-0{margin-bottom:0!important}div.extendify-onboarding .mb-1{margin-bottom:.25rem!important}div.extendify-onboarding .mb-2{margin-bottom:.5rem!important}div.extendify-onboarding .mb-3{margin-bottom:.75rem!important}div.extendify-onboarding .mb-4{margin-bottom:1rem!important}div.extendify-onboarding .mb-5{margin-bottom:1.25rem!important}div.extendify-onboarding .mb-6{margin-bottom:1.5rem!important}div.extendify-onboarding .mb-8{margin-bottom:2rem!important}div.extendify-onboarding .mb-10{margin-bottom:2.5rem!important}div.extendify-onboarding .mb-16{margin-bottom:4rem!important}div.extendify-onboarding .ml-1{margin-left:.25rem!important}div.extendify-onboarding .ml-2{margin-left:.5rem!important}div.extendify-onboarding .ml-4{margin-left:1rem!important}div.extendify-onboarding .-ml-1{margin-left:-.25rem!important}div.extendify-onboarding .-ml-2{margin-left:-.5rem!important}div.extendify-onboarding .-ml-6{margin-left:-1.5rem!important}div.extendify-onboarding .-ml-px{margin-left:-1px!important}div.extendify-onboarding .-ml-1\.5{margin-left:-.375rem!important}div.extendify-onboarding .block{display:block!important}div.extendify-onboarding .inline-block{display:inline-block!important}div.extendify-onboarding .flex{display:flex!important}div.extendify-onboarding .inline-flex{display:inline-flex!important}div.extendify-onboarding .table{display:table!important}div.extendify-onboarding .grid{display:grid!important}div.extendify-onboarding .hidden{display:none!important}div.extendify-onboarding .h-0{height:0!important}div.extendify-onboarding .h-2{height:.5rem!important}div.extendify-onboarding .h-4{height:1rem!important}div.extendify-onboarding .h-5{height:1.25rem!important}div.extendify-onboarding .h-6{height:1.5rem!important}div.extendify-onboarding .h-8{height:2rem!important}div.extendify-onboarding .h-9{height:2.25rem!important}div.extendify-onboarding .h-10{height:2.5rem!important}div.extendify-onboarding .h-12{height:3rem!important}div.extendify-onboarding .h-14{height:3.5rem!important}div.extendify-onboarding .h-24{height:6rem!important}div.extendify-onboarding .h-32{height:8rem!important}div.extendify-onboarding .h-36{height:9rem!important}div.extendify-onboarding .h-48{height:12rem!important}div.extendify-onboarding .h-auto{height:auto!important}div.extendify-onboarding .h-full{height:100%!important}div.extendify-onboarding .h-screen{height:100vh!important}div.extendify-onboarding .max-h-96{max-height:24rem!important}div.extendify-onboarding .max-h-full{max-height:100%!important}div.extendify-onboarding .min-h-full{min-height:100%!important}div.extendify-onboarding .min-h-screen{min-height:100vh!important}div.extendify-onboarding .w-0{width:0!important}div.extendify-onboarding .w-4{width:1rem!important}div.extendify-onboarding .w-5{width:1.25rem!important}div.extendify-onboarding .w-6{width:1.5rem!important}div.extendify-onboarding .w-9{width:2.25rem!important}div.extendify-onboarding .w-12{width:3rem!important}div.extendify-onboarding .w-24{width:6rem!important}div.extendify-onboarding .w-28{width:7rem!important}div.extendify-onboarding .w-32{width:8rem!important}div.extendify-onboarding .w-40{width:10rem!important}div.extendify-onboarding .w-44{width:11rem!important}div.extendify-onboarding .w-72{width:18rem!important}div.extendify-onboarding .w-96{width:24rem!important}div.extendify-onboarding .w-auto{width:auto!important}div.extendify-onboarding .w-1\/5{width:20%!important}div.extendify-onboarding .w-4\/5{width:80%!important}div.extendify-onboarding .w-6\/12{width:50%!important}div.extendify-onboarding .w-7\/12{width:58.333333%!important}div.extendify-onboarding .w-full{width:100%!important}div.extendify-onboarding .w-screen{width:100vw!important}div.extendify-onboarding .min-w-0{min-width:0!important}div.extendify-onboarding .min-w-full{min-width:100%!important}div.extendify-onboarding .min-w-sm{min-width:7rem!important}div.extendify-onboarding .min-w-md{min-width:30rem!important}div.extendify-onboarding .max-w-md{max-width:28rem!important}div.extendify-onboarding .max-w-lg{max-width:32rem!important}div.extendify-onboarding .max-w-xl{max-width:36rem!important}div.extendify-onboarding .max-w-full{max-width:100%!important}div.extendify-onboarding .max-w-prose{max-width:65ch!important}div.extendify-onboarding .max-w-screen-md{max-width:782px!important}div.extendify-onboarding .max-w-screen-lg{max-width:1080px!important}div.extendify-onboarding .max-w-screen-xl{max-width:1280px!important}div.extendify-onboarding .max-w-screen-3xl{max-width:1600px!important}div.extendify-onboarding .max-w-screen-4xl{max-width:1920px!important}div.extendify-onboarding .max-w-onboarding-content{max-width:45.5rem!important}div.extendify-onboarding .max-w-onboarding-sm{max-width:26.5rem!important}div.extendify-onboarding .max-w-3\/4{max-width:75%!important}div.extendify-onboarding .flex-1{flex:1 1 0%!important}div.extendify-onboarding .flex-auto{flex:1 1 auto!important}div.extendify-onboarding .flex-none{flex:none!important}div.extendify-onboarding .flex-shrink-0{flex-shrink:0!important}div.extendify-onboarding .flex-grow-0{flex-grow:0!important}div.extendify-onboarding .flex-grow{flex-grow:1!important}div.extendify-onboarding .origin-top{transform-origin:top!important}div.extendify-onboarding .transform{--tw-translate-x:0!important;--tw-translate-y:0!important;--tw-rotate:0!important;--tw-skew-x:0!important;--tw-skew-y:0!important;--tw-scale-x:1!important;--tw-scale-y:1!important;transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}div.extendify-onboarding .-translate-x-1{--tw-translate-x:-0.25rem!important}div.extendify-onboarding .translate-y-0{--tw-translate-y:0px!important}div.extendify-onboarding .translate-y-1{--tw-translate-y:0.25rem!important}div.extendify-onboarding .translate-y-4{--tw-translate-y:1rem!important}div.extendify-onboarding .translate-y-14{--tw-translate-y:3.5rem!important}div.extendify-onboarding .-translate-y-px{--tw-translate-y:-1px!important}div.extendify-onboarding .-translate-y-full{--tw-translate-y:-100%!important}div.extendify-onboarding .rotate-90{--tw-rotate:90deg!important}div.extendify-onboarding .cursor-default{cursor:default!important}div.extendify-onboarding .cursor-pointer{cursor:pointer!important}div.extendify-onboarding .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))!important}div.extendify-onboarding .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify-onboarding .flex-col{flex-direction:column!important}div.extendify-onboarding .flex-wrap{flex-wrap:wrap!important}div.extendify-onboarding .items-start{align-items:flex-start!important}div.extendify-onboarding .items-end{align-items:flex-end!important}div.extendify-onboarding .items-center{align-items:center!important}div.extendify-onboarding .items-baseline{align-items:baseline!important}div.extendify-onboarding .justify-end{justify-content:flex-end!important}div.extendify-onboarding .justify-center{justify-content:center!important}div.extendify-onboarding .justify-between{justify-content:space-between!important}div.extendify-onboarding .justify-evenly{justify-content:space-evenly!important}div.extendify-onboarding .gap-0{gap:0!important}div.extendify-onboarding .gap-1{gap:.25rem!important}div.extendify-onboarding .gap-3{gap:.75rem!important}div.extendify-onboarding .gap-4{gap:1rem!important}div.extendify-onboarding .gap-6{gap:1.5rem!important}div.extendify-onboarding .gap-16{gap:4rem!important}div.extendify-onboarding .gap-x-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}div.extendify-onboarding .gap-x-3{-moz-column-gap:.75rem!important;column-gap:.75rem!important}div.extendify-onboarding .gap-x-4{-moz-column-gap:1rem!important;column-gap:1rem!important}div.extendify-onboarding .gap-y-12{row-gap:3rem!important}div.extendify-onboarding .space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(0px*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.25rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.5rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.75rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(1rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-x-0\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(.125rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(.125rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1rem*var(--tw-space-y-reverse))!important;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0!important;border-bottom-width:calc(1px*var(--tw-divide-y-reverse))!important;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))!important}div.extendify-onboarding .self-start{align-self:flex-start!important}div.extendify-onboarding .overflow-hidden{overflow:hidden!important}div.extendify-onboarding .overflow-y-auto{overflow-y:auto!important}div.extendify-onboarding .overflow-x-hidden{overflow-x:hidden!important}div.extendify-onboarding .overflow-y-scroll{overflow-y:scroll!important}div.extendify-onboarding .whitespace-nowrap{white-space:nowrap!important}div.extendify-onboarding .rounded-none{border-radius:0!important}div.extendify-onboarding .rounded-sm{border-radius:.125rem!important}div.extendify-onboarding .rounded{border-radius:.25rem!important}div.extendify-onboarding .rounded-md{border-radius:.375rem!important}div.extendify-onboarding .rounded-lg{border-radius:.5rem!important}div.extendify-onboarding .rounded-full{border-radius:9999px!important}div.extendify-onboarding .rounded-tr-sm{border-top-right-radius:.125rem!important}div.extendify-onboarding .rounded-br-sm{border-bottom-right-radius:.125rem!important}div.extendify-onboarding .border-0{border-width:0!important}div.extendify-onboarding .border-2{border-width:2px!important}div.extendify-onboarding .border-8{border-width:8px!important}div.extendify-onboarding .border{border-width:1px!important}div.extendify-onboarding .border-t{border-top-width:1px!important}div.extendify-onboarding .border-r{border-right-width:1px!important}div.extendify-onboarding .border-b-0{border-bottom-width:0!important}div.extendify-onboarding .border-b-2{border-bottom-width:2px!important}div.extendify-onboarding .border-b{border-bottom-width:1px!important}div.extendify-onboarding .border-l-8{border-left-width:8px!important}div.extendify-onboarding .border-solid{border-style:solid!important}div.extendify-onboarding .border-dotted{border-style:dotted!important}div.extendify-onboarding .border-none{border-style:none!important}div.extendify-onboarding .border-transparent{border-color:transparent!important}div.extendify-onboarding .border-black{--tw-border-opacity:1!important;border-color:rgba(0,0,0,var(--tw-border-opacity))!important}div.extendify-onboarding .border-white{--tw-border-opacity:1!important;border-color:rgba(255,255,255,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-100{--tw-border-opacity:1!important;border-color:rgba(240,240,240,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-400{--tw-border-opacity:1!important;border-color:rgba(204,204,204,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-700{--tw-border-opacity:1!important;border-color:rgba(117,117,117,var(--tw-border-opacity))!important}div.extendify-onboarding .border-gray-900{--tw-border-opacity:1!important;border-color:rgba(30,30,30,var(--tw-border-opacity))!important}div.extendify-onboarding .border-partner-primary-bg{border-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-onboarding .border-extendify-main{--tw-border-opacity:1!important;border-color:rgba(11,74,67,var(--tw-border-opacity))!important}div.extendify-onboarding .border-extendify-secondary{--tw-border-opacity:1!important;border-color:rgba(203,195,245,var(--tw-border-opacity))!important}div.extendify-onboarding .border-extendify-transparent-black-100{border-color:rgba(0,0,0,.07)!important}div.extendify-onboarding .border-wp-alert-red{--tw-border-opacity:1!important;border-color:rgba(204,24,24,var(--tw-border-opacity))!important}div.extendify-onboarding .focus\:border-transparent:focus{border-color:transparent!important}div.extendify-onboarding .border-opacity-10{--tw-border-opacity:0.1!important}div.extendify-onboarding .bg-transparent{background-color:transparent!important}div.extendify-onboarding .bg-black{--tw-bg-opacity:1!important;background-color:rgba(0,0,0,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-white{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-50{--tw-bg-opacity:1!important;background-color:rgba(251,251,251,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-100{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-200{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-700{--tw-bg-opacity:1!important;background-color:rgba(117,117,117,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-partner-primary-bg{background-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-onboarding .bg-extendify-main{--tw-bg-opacity:1!important;background-color:rgba(11,74,67,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-extendify-alert{--tw-bg-opacity:1!important;background-color:rgba(132,16,16,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-extendify-secondary{--tw-bg-opacity:1!important;background-color:rgba(203,195,245,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-extendify-transparent-white{background-color:hsla(0,0%,99%,.88)!important}div.extendify-onboarding .bg-wp-theme-500{background-color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-onboarding .group:hover .group-hover\:bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify-onboarding .hover\:bg-gray-200:hover{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify-onboarding .hover\:bg-gray-300:hover{--tw-bg-opacity:1!important;background-color:rgba(221,221,221,var(--tw-bg-opacity))!important}div.extendify-onboarding .hover\:bg-extendify-main-dark:hover{--tw-bg-opacity:1!important;background-color:rgba(5,49,44,var(--tw-bg-opacity))!important}div.extendify-onboarding .hover\:bg-wp-theme-600:hover{background-color:var(--wp-admin-theme-color-darker-10,#006ba1)!important}div.extendify-onboarding .focus\:bg-white:focus{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}div.extendify-onboarding .focus\:bg-gray-200:focus{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify-onboarding .active\:bg-gray-900:active{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify-onboarding .disabled\:bg-gray-700:disabled{--tw-bg-opacity:1!important;background-color:rgba(117,117,117,var(--tw-bg-opacity))!important}div.extendify-onboarding .bg-opacity-40{--tw-bg-opacity:0.4!important}div.extendify-onboarding .bg-gradient-to-l{background-image:linear-gradient(to left,var(--tw-gradient-stops))!important}div.extendify-onboarding .from-white{--tw-gradient-from:#fff!important;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,hsla(0,0%,100%,0))!important}div.extendify-onboarding .bg-cover{background-size:cover!important}div.extendify-onboarding .bg-clip-padding{background-clip:padding-box!important}div.extendify-onboarding .fill-current{fill:currentColor!important}div.extendify-onboarding .stroke-current{stroke:currentColor!important}div.extendify-onboarding .p-0{padding:0!important}div.extendify-onboarding .p-1{padding:.25rem!important}div.extendify-onboarding .p-2{padding:.5rem!important}div.extendify-onboarding .p-3{padding:.75rem!important}div.extendify-onboarding .p-4{padding:1rem!important}div.extendify-onboarding .p-6{padding:1.5rem!important}div.extendify-onboarding .p-8{padding:2rem!important}div.extendify-onboarding .p-10{padding:2.5rem!important}div.extendify-onboarding .p-12{padding:3rem!important}div.extendify-onboarding .p-0\.5{padding:.125rem!important}div.extendify-onboarding .p-1\.5{padding:.375rem!important}div.extendify-onboarding .p-3\.5{padding:.875rem!important}div.extendify-onboarding .px-0{padding-left:0!important;padding-right:0!important}div.extendify-onboarding .px-1{padding-left:.25rem!important;padding-right:.25rem!important}div.extendify-onboarding .px-2{padding-left:.5rem!important;padding-right:.5rem!important}div.extendify-onboarding .px-3{padding-left:.75rem!important;padding-right:.75rem!important}div.extendify-onboarding .px-4{padding-left:1rem!important;padding-right:1rem!important}div.extendify-onboarding .px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}div.extendify-onboarding .px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}div.extendify-onboarding .px-10{padding-left:2.5rem!important;padding-right:2.5rem!important}div.extendify-onboarding .px-0\.5{padding-left:.125rem!important;padding-right:.125rem!important}div.extendify-onboarding .px-2\.5{padding-left:.625rem!important;padding-right:.625rem!important}div.extendify-onboarding .py-0{padding-bottom:0!important;padding-top:0!important}div.extendify-onboarding .py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}div.extendify-onboarding .py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}div.extendify-onboarding .py-3{padding-bottom:.75rem!important;padding-top:.75rem!important}div.extendify-onboarding .py-4{padding-bottom:1rem!important;padding-top:1rem!important}div.extendify-onboarding .py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}div.extendify-onboarding .py-12{padding-bottom:3rem!important;padding-top:3rem!important}div.extendify-onboarding .py-2\.5{padding-bottom:.625rem!important;padding-top:.625rem!important}div.extendify-onboarding .pt-0{padding-top:0!important}div.extendify-onboarding .pt-1{padding-top:.25rem!important}div.extendify-onboarding .pt-2{padding-top:.5rem!important}div.extendify-onboarding .pt-3{padding-top:.75rem!important}div.extendify-onboarding .pt-4{padding-top:1rem!important}div.extendify-onboarding .pt-6{padding-top:1.5rem!important}div.extendify-onboarding .pt-9{padding-top:2.25rem!important}div.extendify-onboarding .pt-10{padding-top:2.5rem!important}div.extendify-onboarding .pt-12{padding-top:3rem!important}div.extendify-onboarding .pt-px{padding-top:1px!important}div.extendify-onboarding .pt-0\.5{padding-top:.125rem!important}div.extendify-onboarding .pr-3{padding-right:.75rem!important}div.extendify-onboarding .pr-4{padding-right:1rem!important}div.extendify-onboarding .pr-8{padding-right:2rem!important}div.extendify-onboarding .pb-0{padding-bottom:0!important}div.extendify-onboarding .pb-1{padding-bottom:.25rem!important}div.extendify-onboarding .pb-2{padding-bottom:.5rem!important}div.extendify-onboarding .pb-3{padding-bottom:.75rem!important}div.extendify-onboarding .pb-4{padding-bottom:1rem!important}div.extendify-onboarding .pb-8{padding-bottom:2rem!important}div.extendify-onboarding .pb-20{padding-bottom:5rem!important}div.extendify-onboarding .pb-36{padding-bottom:9rem!important}div.extendify-onboarding .pb-40{padding-bottom:10rem!important}div.extendify-onboarding .pb-1\.5{padding-bottom:.375rem!important}div.extendify-onboarding .pl-0{padding-left:0!important}div.extendify-onboarding .pl-1{padding-left:.25rem!important}div.extendify-onboarding .pl-2{padding-left:.5rem!important}div.extendify-onboarding .pl-4{padding-left:1rem!important}div.extendify-onboarding .pl-5{padding-left:1.25rem!important}div.extendify-onboarding .pl-6{padding-left:1.5rem!important}div.extendify-onboarding .text-left{text-align:left!important}div.extendify-onboarding .text-center{text-align:center!important}div.extendify-onboarding .text-right{text-align:right!important}div.extendify-onboarding .align-middle{vertical-align:middle!important}div.extendify-onboarding .text-xs{font-size:.75rem!important;line-height:1rem!important}div.extendify-onboarding .text-sm{font-size:.875rem!important;line-height:1.25rem!important}div.extendify-onboarding .text-base{font-size:1rem!important;line-height:1.5rem!important}div.extendify-onboarding .text-lg{font-size:1.125rem!important;line-height:1.75rem!important}div.extendify-onboarding .text-xl{font-size:1.25rem!important;line-height:1.75rem!important}div.extendify-onboarding .text-3xl{font-size:2rem!important;line-height:2.5rem!important}div.extendify-onboarding .text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}div.extendify-onboarding .font-light{font-weight:300!important}div.extendify-onboarding .font-normal{font-weight:400!important}div.extendify-onboarding .font-medium{font-weight:500!important}div.extendify-onboarding .font-semibold{font-weight:600!important}div.extendify-onboarding .font-bold{font-weight:700!important}div.extendify-onboarding .uppercase{text-transform:uppercase!important}div.extendify-onboarding .capitalize{text-transform:capitalize!important}div.extendify-onboarding .italic{font-style:italic!important}div.extendify-onboarding .leading-none{line-height:1!important}div.extendify-onboarding .leading-loose{line-height:2!important}div.extendify-onboarding .tracking-tight{letter-spacing:-.025em!important}div.extendify-onboarding .tracking-wide{letter-spacing:.025em!important}div.extendify-onboarding .text-black{--tw-text-opacity:1!important;color:rgba(0,0,0,var(--tw-text-opacity))!important}div.extendify-onboarding .text-white{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-500{--tw-text-opacity:1!important;color:rgba(204,204,204,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-700{--tw-text-opacity:1!important;color:rgba(117,117,117,var(--tw-text-opacity))!important}div.extendify-onboarding .text-gray-900{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify-onboarding .text-partner-primary-text{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify-onboarding .text-partner-primary-bg{color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-onboarding .text-extendify-main{--tw-text-opacity:1!important;color:rgba(11,74,67,var(--tw-text-opacity))!important}div.extendify-onboarding .text-extendify-main-dark{--tw-text-opacity:1!important;color:rgba(5,49,44,var(--tw-text-opacity))!important}div.extendify-onboarding .text-extendify-gray{--tw-text-opacity:1!important;color:rgba(95,95,95,var(--tw-text-opacity))!important}div.extendify-onboarding .text-extendify-black{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify-onboarding .text-wp-theme-500{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-onboarding .text-wp-alert-red{--tw-text-opacity:1!important;color:rgba(204,24,24,var(--tw-text-opacity))!important}div.extendify-onboarding .group:hover .group-hover\:text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify-onboarding .focus-within\:text-partner-primary-bg:focus-within{color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-onboarding .hover\:text-current:hover{color:currentColor!important}div.extendify-onboarding .hover\:text-white:hover{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-onboarding .hover\:text-partner-primary-bg:hover{color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-onboarding .hover\:text-wp-theme-500:hover{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-onboarding .focus\:text-white:focus{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify-onboarding .focus\:text-blue-500:focus{--tw-text-opacity:1!important;color:rgba(59,130,246,var(--tw-text-opacity))!important}div.extendify-onboarding .focus\:text-partner-primary-bg:focus{color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-onboarding .underline{text-decoration:underline!important}div.extendify-onboarding .line-through{text-decoration:line-through!important}div.extendify-onboarding .hover\:no-underline:hover,div.extendify-onboarding .no-underline{text-decoration:none!important}div.extendify-onboarding .opacity-0{opacity:0!important}div.extendify-onboarding .opacity-30{opacity:.3!important}div.extendify-onboarding .opacity-50{opacity:.5!important}div.extendify-onboarding .opacity-60{opacity:.6!important}div.extendify-onboarding .opacity-70{opacity:.7!important}div.extendify-onboarding .opacity-75{opacity:.75!important}div.extendify-onboarding .focus\:opacity-100:focus,div.extendify-onboarding .group:focus .group-focus\:opacity-100,div.extendify-onboarding .group:hover .group-hover\:opacity-100,div.extendify-onboarding .hover\:opacity-100:hover,div.extendify-onboarding .opacity-100{opacity:1!important}div.extendify-onboarding .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05)!important}div.extendify-onboarding .shadow-md,div.extendify-onboarding .shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify-onboarding .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06)!important}div.extendify-onboarding .shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25)!important}div.extendify-onboarding .shadow-2xl,div.extendify-onboarding .shadow-none{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify-onboarding .shadow-none{--tw-shadow:0 0 #0000!important}div.extendify-onboarding .shadow-modal{--tw-shadow:0 0 0 1px rgba(0,0,0,.1),0 3px 15px -3px rgba(0,0,0,.035),0 0 1px rgba(0,0,0,.05)!important}div.extendify-onboarding .focus\:shadow-none:focus,div.extendify-onboarding .shadow-modal{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}div.extendify-onboarding .focus\:shadow-none:focus{--tw-shadow:0 0 #0000!important}div.extendify-onboarding .focus\:outline-none:focus,div.extendify-onboarding .outline-none{outline:2px solid transparent!important;outline-offset:2px!important}div.extendify-onboarding .focus\:ring-wp:focus,div.extendify-onboarding .ring-wp{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}div.extendify-onboarding .ring-partner-primary-bg{--tw-ring-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}div.extendify-onboarding .ring-offset-0{--tw-ring-offset-width:0px!important}div.extendify-onboarding .ring-offset-2{--tw-ring-offset-width:2px!important}div.extendify-onboarding .ring-offset-white{--tw-ring-offset-color:#fff!important}div.extendify-onboarding .filter{--tw-blur:var(--tw-empty, )!important;--tw-brightness:var(--tw-empty, )!important;--tw-contrast:var(--tw-empty, )!important;--tw-grayscale:var(--tw-empty, )!important;--tw-hue-rotate:var(--tw-empty, )!important;--tw-invert:var(--tw-empty, )!important;--tw-saturate:var(--tw-empty, )!important;--tw-sepia:var(--tw-empty, )!important;--tw-drop-shadow:var(--tw-empty, )!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}div.extendify-onboarding .blur{--tw-blur:blur(8px)!important}div.extendify-onboarding .invert{--tw-invert:invert(100%)!important}div.extendify-onboarding .backdrop-filter{--tw-backdrop-blur:var(--tw-empty, )!important;--tw-backdrop-brightness:var(--tw-empty, )!important;--tw-backdrop-contrast:var(--tw-empty, )!important;--tw-backdrop-grayscale:var(--tw-empty, )!important;--tw-backdrop-hue-rotate:var(--tw-empty, )!important;--tw-backdrop-invert:var(--tw-empty, )!important;--tw-backdrop-opacity:var(--tw-empty, )!important;--tw-backdrop-saturate:var(--tw-empty, )!important;--tw-backdrop-sepia:var(--tw-empty, )!important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}div.extendify-onboarding .backdrop-blur-xl{--tw-backdrop-blur:blur(24px)!important}div.extendify-onboarding .backdrop-saturate-200{--tw-backdrop-saturate:saturate(2)!important}div.extendify-onboarding .transition-all{transition-duration:.15s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify-onboarding .transition{transition-duration:.15s!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify-onboarding .transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify-onboarding .delay-200{transition-delay:.2s!important}div.extendify-onboarding .delay-300{transition-delay:.3s!important}div.extendify-onboarding .duration-100{transition-duration:.1s!important}div.extendify-onboarding .duration-200{transition-duration:.2s!important}div.extendify-onboarding .duration-300{transition-duration:.3s!important}div.extendify-onboarding .duration-500{transition-duration:.5s!important}div.extendify-onboarding .duration-1000{transition-duration:1s!important}div.extendify-onboarding .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}div.extendify-onboarding .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.extendify-onboarding{--tw-ring-inset:var(--tw-empty, )!important;--tw-ring-offset-width:0px!important;--tw-ring-offset-color:transparent!important;--tw-ring-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}.extendify-onboarding *,.extendify-onboarding :after,.extendify-onboarding :before{border:0 solid #e5e7eb!important;box-sizing:border-box!important}.extendify-onboarding{-webkit-font-smoothing:antialiased!important}.extendify-onboarding .search-panel input[type=text]::-moz-placeholder{font-size:.875rem!important;line-height:1.25rem!important}.extendify-onboarding .search-panel input[type=text]::placeholder{font-size:.875rem!important;line-height:1.25rem!important}.extendify-onboarding .search-panel .icon-search{position:absolute!important;right:16px!important}.extendify-onboarding .button-focus{border-radius:.5rem!important;cursor:pointer!important;font-size:1rem!important;line-height:1.5rem!important;text-align:center!important;text-decoration:none!important}.extendify-onboarding .button-focus:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify-onboarding .button-focus{outline:2px solid transparent!important;outline-offset:2px!important}.extendify-onboarding .button-focus:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.extendify-onboarding .button-focus{--tw-ring-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important;--tw-ring-offset-width:2px!important;--tw-ring-offset-color:#fff!important}.extendify-onboarding .input-focus{border-radius:.5rem!important;font-size:1rem!important;line-height:1.5rem!important}.extendify-onboarding .input-focus:focus{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify-onboarding .input-focus{outline:2px solid transparent!important;outline-offset:2px!important}.extendify-onboarding .input-focus:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.extendify-onboarding .input-focus{--tw-ring-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important;--tw-ring-offset-width:2px!important;--tw-ring-offset-color:#fff!important}.extendify-onboarding .button-card{border-width:1px!important;display:block!important;flex:1 1 0%!important;margin:0!important;overflow:hidden!important;padding:1rem!important}.extendify-onboarding .preview-container .block-editor-block-preview__content{max-height:none!important}.extendify-onboarding .spin{animation:extendify-loading-spinner 1s linear infinite}@keyframes extendify-loading-spinner{to{transform:rotate(1turn)}}.extendify-onboarding input[type=checkbox]{--tw-border-opacity:1!important;border-color:rgba(30,30,30,var(--tw-border-opacity))!important;border-width:1px!important}.extendify-onboarding input[type=checkbox]:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--wp-admin-border-width-focus, 2px) + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;--tw-ring-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important;--tw-ring-offset-width:2px!important;--tw-ring-offset-color:#fff!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important;outline:2px solid transparent!important;outline-offset:2px!important}.extendify-onboarding input[type=checkbox]:checked{background-color:var(--ext-partner-theme-primary-bg,#2c39bd)!important}.extendify-onboarding input[type=checkbox]:checked:before{content:""!important;height:0!important;width:0!important}.extendify-onboarding .goal-select .components-base-control__field{margin-bottom:0!important}.block-editor-block-preview__content{left:0!important;margin:0!important;min-height:auto!important;overflow:visible!important;text-align:initial!important;top:0!important;transform-origin:top left!important}body.site-assistant_page_extendify-launch,body.site-launcher_page_extendify-launch{background:#fff!important}.site-assistant_page_extendify-launch #adminmenumain,.site-assistant_page_extendify-launch #wpadminbar,.site-launcher_page_extendify-launch #adminmenumain,.site-launcher_page_extendify-launch #wpadminbar{display:none!important}@media (min-width:480px){div.extendify-onboarding .xs\:inline{display:inline!important}div.extendify-onboarding .xs\:h-9{height:2.25rem!important}div.extendify-onboarding .xs\:pr-3{padding-right:.75rem!important}div.extendify-onboarding .xs\:pl-2{padding-left:.5rem!important}}@media (min-width:600px){div.extendify-onboarding .sm\:mx-0{margin-left:0!important;margin-right:0!important}div.extendify-onboarding .sm\:mt-0{margin-top:0!important}div.extendify-onboarding .sm\:mb-8{margin-bottom:2rem!important}div.extendify-onboarding .sm\:ml-2{margin-left:.5rem!important}div.extendify-onboarding .sm\:block{display:block!important}div.extendify-onboarding .sm\:flex{display:flex!important}div.extendify-onboarding .sm\:h-auto{height:auto!important}div.extendify-onboarding .sm\:w-72{width:18rem!important}div.extendify-onboarding .sm\:w-auto{width:auto!important}div.extendify-onboarding .sm\:translate-y-5{--tw-translate-y:1.25rem!important}div.extendify-onboarding .sm\:space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))!important;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .sm\:overflow-hidden{overflow:hidden!important}div.extendify-onboarding .sm\:p-0{padding:0!important}div.extendify-onboarding .sm\:py-0{padding-bottom:0!important;padding-top:0!important}div.extendify-onboarding .sm\:pt-0{padding-top:0!important}div.extendify-onboarding .sm\:pt-5{padding-top:1.25rem!important}}@media (min-width:782px){div.extendify-onboarding .md\:m-0{margin:0!important}div.extendify-onboarding .md\:-ml-8{margin-left:-2rem!important}div.extendify-onboarding .md\:block{display:block!important}div.extendify-onboarding .md\:flex{display:flex!important}div.extendify-onboarding .md\:hidden{display:none!important}div.extendify-onboarding .md\:h-screen{height:100vh!important}div.extendify-onboarding .md\:min-h-48{min-height:12rem!important}div.extendify-onboarding .md\:w-1\/2{width:50%!important}div.extendify-onboarding .md\:w-full{width:100%!important}div.extendify-onboarding .md\:w-40vw{width:40vw!important}div.extendify-onboarding .md\:max-w-sm{max-width:24rem!important}div.extendify-onboarding .md\:max-w-md{max-width:28rem!important}div.extendify-onboarding .md\:max-w-2xl{max-width:42rem!important}div.extendify-onboarding .md\:max-w-full{max-width:100%!important}div.extendify-onboarding .md\:flex-row{flex-direction:row!important}div.extendify-onboarding .md\:gap-8{gap:2rem!important}div.extendify-onboarding .md\:space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(2rem*var(--tw-space-y-reverse))!important;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .md\:overflow-hidden{overflow:hidden!important}div.extendify-onboarding .md\:overflow-y-scroll{overflow-y:scroll!important}div.extendify-onboarding .md\:focus\:bg-transparent:focus{background-color:transparent!important}div.extendify-onboarding .md\:p-6{padding:1.5rem!important}div.extendify-onboarding .md\:p-8{padding:2rem!important}div.extendify-onboarding .md\:px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}div.extendify-onboarding .md\:px-8{padding-left:2rem!important;padding-right:2rem!important}div.extendify-onboarding .md\:pl-8{padding-left:2rem!important}div.extendify-onboarding .md\:text-black{--tw-text-opacity:1!important;color:rgba(0,0,0,var(--tw-text-opacity))!important}}@media (min-width:1080px){div.extendify-onboarding .lg\:absolute{position:absolute!important}div.extendify-onboarding .lg\:-mr-1{margin-right:-.25rem!important}div.extendify-onboarding .lg\:block{display:block!important}div.extendify-onboarding .lg\:flex{display:flex!important}div.extendify-onboarding .lg\:w-1\/2{width:50%!important}div.extendify-onboarding .lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify-onboarding .lg\:flex-row{flex-direction:row!important}div.extendify-onboarding .lg\:justify-start{justify-content:flex-start!important}div.extendify-onboarding .lg\:overflow-hidden{overflow:hidden!important}div.extendify-onboarding .lg\:p-12{padding:3rem!important}div.extendify-onboarding .lg\:p-16{padding:4rem!important}div.extendify-onboarding .lg\:p-24{padding:6rem!important}div.extendify-onboarding .lg\:px-12{padding-left:3rem!important;padding-right:3rem!important}div.extendify-onboarding .lg\:pr-52{padding-right:13rem!important}}@media (min-width:1280px){div.extendify-onboarding .xl\:mb-12{margin-bottom:3rem!important}div.extendify-onboarding .xl\:p-32{padding:8rem!important}div.extendify-onboarding .xl\:px-0{padding-left:0!important;padding-right:0!important}}
|
public/build/extendify-onboarding.js
CHANGED
@@ -1 +1,4 @@
|
|
1 |
-
!function(){var e={659:function(e,t,n){"use strict";n.d(t,{Gd:function(){return h},Xb:function(){return d},cu:function(){return f},pj:function(){return p},vi:function(){return g}});var r=n(844),a=n(170),i=n(343),o=n(991),s=n(176),l=n(350),c=n(15),u=100;class d{__init(){this._stack=[{}]}constructor(e,t=new l.s,n=4){this._version=n,d.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){var e=l.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:(0,r.DM)(),a=new Error("Sentry syntheticException");return this._withClient(((r,i)=>{r.captureException(e,{originalException:e,syntheticException:a,...t,event_id:n},i)})),n}captureMessage(e,t,n){var a=this._lastEventId=n&&n.event_id?n.event_id:(0,r.DM)(),i=new Error(e);return this._withClient(((r,o)=>{r.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:a},o)})),a}captureEvent(e,t){var n=t&&t.event_id?t.event_id:(0,r.DM)();return"transaction"!==e.type&&(this._lastEventId=n),this._withClient(((r,a)=>{r.captureEvent(e,{...t,event_id:n},a)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!n||!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=u}=r.getOptions&&r.getOptions()||{};if(!(s<=0)){var l={timestamp:(0,a.yW)(),...e},c=o?(0,i.Cf)((()=>o(l,t))):l;null!==c&&n.addBreadcrumb(c,s)}}setUser(e){var t=this.getScope();t&&t.setUser(e)}setTags(e){var t=this.getScope();t&&t.setTags(e)}setExtras(e){var t=this.getScope();t&&t.setExtras(e)}setTag(e,t){var n=this.getScope();n&&n.setTag(e,t)}setExtra(e,t){var n=this.getScope();n&&n.setExtra(e,t)}setContext(e,t){var n=this.getScope();n&&n.setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();t&&n&&e(t)}run(e){var t=p(this);try{e(this)}finally{p(t)}}getIntegration(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&(0,c.RJ)(n),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:a}=n&&n.getOptions()||{};var i=(0,o.R)();const{userAgent:s}=i.navigator||{};var l=(0,c.Hv)({release:r,environment:a,...t&&{user:t.getUser()},...s&&{userAgent:s},...e});if(t){var u=t.getSession&&t.getSession();u&&"ok"===u.status&&(0,c.CT)(u,{status:"exited"}),this.endSession(),t.setSession(l)}return l}shouldSendDefaultPii(){var e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop();if(e){var n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e,...t){var n=f().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function f(){var e=(0,o.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function p(e){var t=f(),n=g(t);return v(t,e),n}function h(){var e=f();return m(e)&&!g(e).isOlderThan(4)||v(e,new d),(0,s.KV)()?function(e){try{var t=f().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return g(e);if(!m(n)||g(n).isOlderThan(4)){var r=g(e).getStackTop();v(n,new d(r.client,l.s.clone(r.scope)))}return g(n)}catch(t){return g(e)}}(e):g(e)}function m(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function g(e){return(0,o.Y)("hub",(()=>new d),e)}function v(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},350:function(e,t,n){"use strict";n.d(t,{c:function(){return f},s:function(){return u}});var r=n(597),a=n(170),i=n(893),o=n(343),s=n(844),l=n(991),c=n(15);class u{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){var t=new u;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments]),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&(0,c.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts={...this._contexts,[e]:t},this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){var e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){var t=e(this);return t instanceof u?t:this}return e instanceof u?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,r.PO)(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){var n="number"==typeof t?t:100;if(n<=0)return this;var r={timestamp:(0,a.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags={transaction:n,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...d(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n,a=0){return new i.cW(((i,s)=>{var l=e[a];if(null===t||"function"!=typeof l)i(t);else{var c=l({...t},n);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.id&&null===c&&o.kg.log(`Event processor "${l.id}" dropped event`),(0,r.J8)(c)?c.then((t=>this._notifyEventProcessors(e,t,n,a+1).then(i))).then(null,s):this._notifyEventProcessors(e,c,n,a+1).then(i).then(null,s)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?(0,s.lE)(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function d(){return(0,l.Y)("globalEventProcessors",(()=>[]))}function f(e){d().push(e)}},15:function(e,t,n){"use strict";n.d(t,{CT:function(){return s},Hv:function(){return o},RJ:function(){return l}});var r=n(170),a=n(844),i=n(535);function o(e){var t=(0,r.ph)(),n={sid:(0,a.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,i.Jr)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&s(n,e),n}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,r.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,a.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function l(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},790:function(e,t,n){"use strict";n.d(t,{ro:function(){return g},lb:function(){return m}});var r=n(659),a=n(343),i=n(597),o=n(176),s=n(732),l=n(233);function c(){var e=(0,l.x1)();if(e){var t="internal_error";("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}var u=n(458),d=n(391);function f(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function p(e,t,n){if(!(0,l.zu)(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setMetadata({sampleRate:Number(e.sampled)}),e;let r;return"function"==typeof t.tracesSampler?(r=t.tracesSampler(n),e.setMetadata({sampleRate:Number(r)})):void 0!==n.parentSampled?r=n.parentSampled:(r=t.tracesSampleRate,e.setMetadata({sampleRate:Number(r)})),o=r,((0,i.i2)(o)||"number"!=typeof o&&"boolean"!=typeof o?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(o)} of type ${JSON.stringify(typeof o)}.`),0):!(o<0||o>1)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${o}.`),0))?r?(e.sampled=Math.random()<r,e.sampled?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] starting ${e.op} transaction - ${e.name}`),e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e);var o}function h(e,t){var n=this.getClient(),r=n&&n.getOptions()||{};let a=new d.Y(e,this);return a=p(a,r,{parentSampled:e.parentSampled,transactionContext:e,...t}),a.sampled&&a.initSpanRecorder(r._experiments&&r._experiments.maxSpans),a}function m(e,t,n,r,a,i,o){var s=e.getClient(),l=s&&s.getOptions()||{};let c=new u.io(t,e,n,r,o,a);return c=p(c,l,{parentSampled:t.parentSampled,transactionContext:t,...i}),c.sampled&&c.initSpanRecorder(l._experiments&&l._experiments.maxSpans),c}function g(){var t;(t=(0,r.cu)()).__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=h),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=f)),(0,o.KV)()&&function(){var t=(0,r.cu)();if(t.__SENTRY__){var n={mongodb(){return new((0,o.l$)(e,"./integrations/node/mongo").Mongo)},mongoose(){return new((0,o.l$)(e,"./integrations/node/mongo").Mongo)({mongoose:!0})},mysql(){return new((0,o.l$)(e,"./integrations/node/mysql").Mysql)},pg(){return new((0,o.l$)(e,"./integrations/node/postgres").Postgres)}},a=Object.keys(n).filter((e=>!!(0,o.$y)(e))).map((e=>{try{return n[e]()}catch(e){return}})).filter((e=>e));a.length>0&&(t.__SENTRY__.integrations=[...t.__SENTRY__.integrations||[],...a])}}(),(0,s.o)("error",c),(0,s.o)("unhandledrejection",c)}e=n.hmd(e)},458:function(e,t,n){"use strict";n.d(t,{hd:function(){return c},io:function(){return d},mg:function(){return l},nT:function(){return s}});var r=n(170),a=n(343),i=n(334),o=n(391),s=1e3,l=3e4,c=5e3;class u extends i.gB{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){e.spanId!==this.transactionSpanId&&(e.finish=t=>{e.endTimestamp="number"==typeof t?t:(0,r._I)(),this._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),super.add(e)}}class d extends o.Y{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._beforeFinishCallbacks=[]}constructor(e,t,n=s,r=l,i=c,o=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=i,this._onScope=o,d.prototype.__init.call(this),d.prototype.__init2.call(this),d.prototype.__init3.call(this),d.prototype.__init4.call(this),o&&(f(t),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),t.configureScope((e=>e.setSpan(this)))),this._startIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this.finish())}),this._finalTimeout)}finish(e=(0,r._I)()){if(this._finished=!0,this.activities={},this.spanRecorder){for(var t of(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*e).toISOString(),this.op),this._beforeFinishCallbacks))t(this,e);this.spanRecorder.spans=this.spanRecorder.spans.filter((t=>{if(t.spanId===this.spanId)return!0;t.endTimestamp||(t.endTimestamp=e,t.setStatus("cancelled"),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(t,void 0,2)));var n=t.startTimestamp<e;return n||("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(t,void 0,2)),n})),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] flushing IdleTransaction")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] No active IdleTransaction");return this._onScope&&f(this._idleHub),super.finish(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){this.spanRecorder||(this.spanRecorder=new u((e=>{this._finished||this._pushActivity(e)}),(e=>{this._finished||this._popActivity(e)}),this.spanId,e),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)}_cancelIdleTimeout(){this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0)}_startIdleTimeout(e){this._cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||this.finish(e)}),this._idleTimeout)}_pushActivity(e){this._cancelIdleTimeout(),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`[Tracing] popActivity ${e}`),delete this.activities[e],("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var t=(0,r._I)()+this._idleTimeout/1e3;this._startIdleTimeout(t)}}_beat(){if(!this._finished){var e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.finish()):this._pingHeartbeat()}}_pingHeartbeat(){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function f(e){var t=e.getScope();t&&t.getTransaction()&&t.setSpan(void 0)}},334:function(e,t,n){"use strict";n.d(t,{Dr:function(){return c},gB:function(){return l}});var r=n(375),a=n(844),i=n(170),o=n(343),s=n(535);class l{__init(){this.spans=[]}constructor(e=1e3){l.prototype.__init.call(this),this._maxlen=e}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class c{__init2(){this.traceId=(0,a.DM)()}__init3(){this.spanId=(0,a.DM)().substring(16)}__init4(){this.startTimestamp=(0,i._I)()}__init5(){this.tags={}}__init6(){this.data={}}constructor(e){if(c.prototype.__init2.call(this),c.prototype.__init3.call(this),c.prototype.__init4.call(this),c.prototype.__init5.call(this),c.prototype.__init6.call(this),!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}startChild(e){var t=new c({...e,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t),t.transaction=this.transaction,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&t.transaction){var n=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${t.transaction.name||"< unknown name >"}' (${t.transaction.spanId}).`;t.transaction.metadata.spanMetadata[t.spanId]={logMessage:n},o.kg.log(n)}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setStatus(e){return this.status=e,this}setHttpStatus(e){this.setTag("http.status_code",String(e));var t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this}isSuccess(){return"ok"===this.status}finish(e){if(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:e}=this.transaction.metadata.spanMetadata[this.spanId];e&&o.kg.log(e.replace("Starting","Finishing"))}this.endTimestamp="number"==typeof e?e:(0,i._I)()}toTraceparent(){let e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${e}`}toContext(){return(0,s.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(e){return this.data=(0,r.h)(e.data,(()=>({}))),this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=(0,r.h)(e.spanId,(()=>this.spanId)),this.startTimestamp=(0,r.h)(e.startTimestamp,(()=>this.startTimestamp)),this.status=e.status,this.tags=(0,r.h)(e.tags,(()=>({}))),this.traceId=(0,r.h)(e.traceId,(()=>this.traceId)),this}getTraceContext(){return(0,s.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return(0,s.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}},391:function(e,t,n){"use strict";n.d(t,{Y:function(){return c}});var r=n(375),a=n(659),i=n(170),o=n(343),s=n(535),l=n(334);class c extends l.Dr{__init(){this._measurements={}}__init2(){this._frozenDynamicSamplingContext=void 0}constructor(e,t){super(e),c.prototype.__init.call(this),c.prototype.__init2.call(this),this._hub=t||(0,a.Gd)(),this._name=e.name||"",this.metadata={source:"custom",...e.metadata,spanMetadata:{},changes:[],propagations:0},this._trimEnd=e.trimEnd,this.transaction=this;var n=this.metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}setName(e,t="custom"){e===this.name&&t===this.metadata.source||this.metadata.changes.push({source:this.metadata.source,timestamp:(0,i.ph)(),propagations:this.metadata.propagations}),this._name=e,this.metadata.source=t}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new l.gB(e)),this.spanRecorder.add(this)}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this.metadata={...this.metadata,...e}}finish(e){if(void 0===this.endTimestamp){if(this.name||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(e),!0===this.sampled){var t=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&e.endTimestamp)):[];this._trimEnd&&t.length>0&&(this.endTimestamp=t.reduce(((e,t)=>e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e)).endTimestamp);var n=this.metadata,r={contexts:{trace:this.getTraceContext()},spans:t,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...n,dynamicSamplingContext:this.getDynamicSamplingContext()},...n.source&&{transaction_info:{source:n.source,changes:n.changes,propagations:n.propagations}}};return Object.keys(this._measurements).length>0&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),r.measurements=this._measurements),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(r)}("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var a=this._hub.getClient();a&&a.recordDroppedEvent("sample_rate","transaction")}}toContext(){var e=super.toContext();return(0,s.Jr)({...e,name:this.name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this.name=(0,r.h)(e.name,(()=>"")),this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;var e=this._hub||(0,a.Gd)(),t=e&&e.getClient();if(!t)return{};const{environment:n,release:r}=t.getOptions()||{},{publicKey:i}=t.getDsn()||{};var o=this.metadata.sampleRate,l=void 0!==o?o.toString():void 0,c=e.getScope();const{segment:u}=c&&c.getUser()||{};var d=this.metadata.source,f=d&&"url"!==d?this.name:void 0;return(0,s.Jr)({environment:n,release:r,transaction:f,user_segment:u,public_key:i,trace_id:this.traceId,sample_rate:l})}}},233:function(e,t,n){"use strict";n.d(t,{XL:function(){return o},x1:function(){return i},zu:function(){return a}});var r=n(659);function a(e){var t=(0,r.Gd)().getClient(),n=e||t&&t.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function i(e){var t=(e||(0,r.Gd)()).getScope();return t&&t.getTransaction()}function o(e){return e/1e3}},464:function(e,t,n){"use strict";n.d(t,{Rt:function(){return i},l4:function(){return s},qT:function(){return l}});var r=n(991),a=n(597);function i(e,t){try{let a=e;var n=[];let i=0,s=0;var r=" > ".length;let l;for(;a&&i++<5&&(l=o(a,t),!("html"===l||i>1&&s+n.length*r+l.length>=80));)n.push(l),s+=l.length,a=a.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function o(e,t){var n=e,r=[];let i,o,s,l,c;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());var u=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(u&&u.length)u.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&(0,a.HD)(i))for(o=i.split(/\s+/),c=0;c<o.length;c++)r.push(`.${o[c]}`);var d=["type","name","title","alt"];for(c=0;c<d.length;c++)s=d[c],l=n.getAttribute(s),l&&r.push(`[${s}="${l}"]`);return r.join("")}function s(){var e=(0,r.R)();try{return e.document.location.href}catch(e){return""}}function l(e){var t=(0,r.R)();return t.document&&t.document.querySelector?t.document.querySelector(e):null}},375:function(e,t,n){"use strict";function r(e,t){return null!=e?e:t()}n.d(t,{h:function(){return r}})},991:function(e,t,n){"use strict";function r(e){return e&&e.Math==Math?e:void 0}n.d(t,{R:function(){return i},Y:function(){return o}});var a="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function i(){return a}function o(e,t,n){var r=n||a,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}},732:function(e,t,n){"use strict";n.d(t,{o:function(){return f}});var r=n(991),a=n(597),i=n(343),o=n(535),s=n(360),l=n(823),c=(0,r.R)(),u={},d={};function f(e,t){u[e]=u[e]||[],u[e].push(t),function(e){if(!d[e])switch(d[e]=!0,e){case"console":"console"in c&&i.RU.forEach((function(e){e in c.console&&(0,o.hl)(c.console,e,(function(t){return function(...n){p("console",{args:n,level:e}),t&&t.apply(c.console,n)}}))}));break;case"dom":!function(){if("document"in c){var e=p.bind(null,"dom"),t=y(e,!0);c.document.addEventListener("click",t,!1),c.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{var n=c[t]&&c[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,o.hl)(n,"addEventListener",(function(t){return function(n,r,a){if("click"===n||"keypress"==n)try{var i=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=i[n]=i[n]||{refCount:0};if(!o.handler){var s=y(e);o.handler=s,t.call(this,n,s,a)}o.refCount+=1}catch(e){}return t.call(this,n,r,a)}})),(0,o.hl)(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var a=this.__sentry_instrumentation_handlers__||{},i=a[t];i&&(i.refCount-=1,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete a[t]),0===Object.keys(a).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}}();break;case"xhr":!function(){if("XMLHttpRequest"in c){var e=XMLHttpRequest.prototype;(0,o.hl)(e,"open",(function(e){return function(...t){var n=this,r=t[1],i=n.__sentry_xhr__={method:(0,a.HD)(t[0])?t[0].toUpperCase():t[0],url:t[1]};(0,a.HD)(r)&&"POST"===i.method&&r.match(/sentry_key/)&&(n.__sentry_own_request__=!0);var s=function(){if(4===n.readyState){try{i.status_code=n.status}catch(e){}p("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:n})}};return"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?(0,o.hl)(n,"onreadystatechange",(function(e){return function(...t){return s(),e.apply(n,t)}})):n.addEventListener("readystatechange",s),e.apply(n,t)}})),(0,o.hl)(e,"send",(function(e){return function(...t){return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),p("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}}();break;case"fetch":(0,l.t$)()&&(0,o.hl)(c,"fetch",(function(e){return function(...t){var n={args:t,fetchData:{method:h(t),url:m(t)},startTimestamp:Date.now()};return p("fetch",{...n}),e.apply(c,t).then((e=>(p("fetch",{...n,endTimestamp:Date.now(),response:e}),e)),(e=>{throw p("fetch",{...n,endTimestamp:Date.now(),error:e}),e}))}}));break;case"history":!function(){if((0,l.Bf)()){var e=c.onpopstate;c.onpopstate=function(...t){var n=c.location.href,r=g;if(g=n,p("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},(0,o.hl)(c.history,"pushState",t),(0,o.hl)(c.history,"replaceState",t)}function t(e){return function(...t){var n=t.length>2?t[2]:void 0;if(n){var r=g,a=String(n);g=a,p("history",{from:r,to:a})}return e.apply(this,t)}}}();break;case"error":b=c.onerror,c.onerror=function(e,t,n,r,a){return p("error",{column:r,error:a,line:n,msg:e,url:t}),!!b&&b.apply(this,arguments)};break;case"unhandledrejection":E=c.onunhandledrejection,c.onunhandledrejection=function(e){return p("unhandledrejection",e),!E||E.apply(this,arguments)};break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.warn("unknown instrumentation type:",e)}}(e)}function p(e,t){if(e&&u[e])for(var n of u[e]||[])try{n(t)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&i.kg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,s.$P)(n)}\nError:`,t)}}function h(e=[]){return"Request"in c&&(0,a.V9)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function m(e=[]){return"string"==typeof e[0]?e[0]:"Request"in c&&(0,a.V9)(e[0],Request)?e[0].url:String(e[0])}let g,v,_;function y(e,t=!1){return n=>{if(n&&_!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===v||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(_,n))&&(e({event:n,name:r,global:t}),_=n),clearTimeout(v),v=c.setTimeout((()=>{v=void 0}),1e3)}}}let b=null,E=null},597:function(e,t,n){"use strict";n.d(t,{Cy:function(){return g},HD:function(){return c},J8:function(){return m},Kj:function(){return h},PO:function(){return d},TX:function(){return s},V9:function(){return _},VW:function(){return o},VZ:function(){return a},cO:function(){return f},fm:function(){return l},i2:function(){return v},kK:function(){return p},pt:function(){return u}});var r=Object.prototype.toString;function a(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _(e,Error)}}function i(e,t){return r.call(e)===`[object ${t}]`}function o(e){return i(e,"ErrorEvent")}function s(e){return i(e,"DOMError")}function l(e){return i(e,"DOMException")}function c(e){return i(e,"String")}function u(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function d(e){return i(e,"Object")}function f(e){return"undefined"!=typeof Event&&_(e,Event)}function p(e){return"undefined"!=typeof Element&&_(e,Element)}function h(e){return i(e,"RegExp")}function m(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function g(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"==typeof e&&e!=e}function _(e,t){try{return e instanceof t}catch(e){return!1}}},343:function(e,t,n){"use strict";n.d(t,{Cf:function(){return o},RU:function(){return i},kg:function(){return l}});var r=n(991),a=(0,r.R)(),i=["debug","info","warn","error","log","assert","trace"];function o(e){var t=(0,r.R)();if(!("console"in t))return e();var n=t.console,a={};i.forEach((e=>{var r=n[e]&&n[e].__sentry_original__;e in t.console&&r&&(a[e]=n[e],n[e]=r)}));try{return e()}finally{Object.keys(a).forEach((e=>{n[e]=a[e]}))}}function s(){let e=!1;var t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?i.forEach((n=>{t[n]=(...t)=>{e&&o((()=>{a.console[n](`Sentry Logger [${n}]:`,...t)}))}})):i.forEach((e=>{t[e]=()=>{}})),t}let l;l="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,r.Y)("logger",s):s()},844:function(e,t,n){"use strict";n.d(t,{DM:function(){return i},Db:function(){return l},EG:function(){return c},YO:function(){return u},jH:function(){return s},lE:function(){return d}});var r=n(991),a=n(535);function i(){var e=(0,r.R)(),t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");var n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function o(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function s(e){const{message:t,event_id:n}=e;if(t)return t;var r=o(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function l(e,t,n){var r=e.exception=e.exception||{},a=r.values=r.values||[],i=a[0]=a[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function c(e,t){var n=o(e);if(n){var r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){var a={...r&&r.data,...t.data};n.mechanism.data=a}}}function u(e){if(e&&e.__sentry_captured__)return!0;try{(0,a.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}function d(e){return Array.isArray(e)?e:[e]}},176:function(e,t,n){"use strict";function r(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function a(e,t){return e.require(t)}function i(t){let n;try{n=a(e,t)}catch(e){}try{const{cwd:r}=a(e,"process");n=a(e,`${r()}/node_modules/${t}`)}catch(e){}return n}n.d(t,{l$:function(){return a},KV:function(){return r},$y:function(){return i}}),e=n.hmd(e)},535:function(e,t,n){"use strict";n.d(t,{$Q:function(){return l},HK:function(){return c},Jr:function(){return m},Sh:function(){return d},_j:function(){return u},hl:function(){return o},xp:function(){return s},zf:function(){return h}});var r=n(464),a=n(597),i=n(321);function o(e,t,n){if(t in e){var r=e[t],a=n(r);if("function"==typeof a)try{l(a,r)}catch(e){}e[t]=a}}function s(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function l(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,s(e,"__sentry_original__",t)}function c(e){return e.__sentry_original__}function u(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function d(e){if((0,a.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...p(e)};if((0,a.cO)(e)){var t={type:e.type,target:f(e.target),currentTarget:f(e.currentTarget),...p(e)};return"undefined"!=typeof CustomEvent&&(0,a.V9)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function f(e){try{return(0,a.kK)(e)?(0,r.Rt)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function p(e){if("object"==typeof e&&null!==e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function h(e,t=40){var n=Object.keys(d(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,i.$G)(n[0],t);for(let e=n.length;e>0;e--){var r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:(0,i.$G)(r,t)}return""}function m(e){return g(e,new Map)}function g(e,t){if((0,a.PO)(e)){if(void 0!==(i=t.get(e)))return i;var n={};for(var r of(t.set(e,n),Object.keys(e)))void 0!==e[r]&&(n[r]=g(e[r],t));return n}var i;return Array.isArray(e)?void 0!==(i=t.get(e))?i:(n=[],t.set(e,n),e.forEach((e=>{n.push(g(e,t))})),n):e}},360:function(e,t,n){"use strict";function r(...e){var t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{var r=[];for(var a of e.split("\n").slice(n)){var i=a.replace(/\(error: (.*)\)/,"$1");for(var o of t){var s=o(i);if(s){r.push(s);break}}}return function(e){if(!e.length)return[];let t=e;var n=t[0].function||"",r=t[t.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((e=>({...e,filename:e.filename||t[0].filename,function:e.function||"?"}))).reverse()}(r)}}function a(e){return Array.isArray(e)?r(...e):e}n.d(t,{$P:function(){return o},Sq:function(){return a},pE:function(){return r}});var i="<anonymous>";function o(e){try{return e&&"function"==typeof e&&e.name||i}catch(e){return i}}},321:function(e,t,n){"use strict";n.d(t,{$G:function(){return a},nK:function(){return i},zC:function(){return o}});var r=n(597);function a(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.substr(0,t)}...`}function i(e,t){if(!Array.isArray(e))return"";var n=[];for(let t=0;t<e.length;t++){var r=e[t];try{n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function o(e,t){return!!(0,r.HD)(e)&&((0,r.Kj)(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}},823:function(e,t,n){"use strict";n.d(t,{Ak:function(){return i},Bf:function(){return l},Du:function(){return o},t$:function(){return s}});var r=n(991),a=n(343);function i(){if(!("fetch"in(0,r.R)()))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function o(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function s(){if(!i())return!1;var e=(0,r.R)();if(o(e.fetch))return!0;let t=!1;var n=e.document;if(n&&"function"==typeof n.createElement)try{var s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s),s.contentWindow&&s.contentWindow.fetch&&(t=o(s.contentWindow.fetch)),n.head.removeChild(s)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t}function l(){var e=(0,r.R)(),t=e.chrome,n=t&&t.app&&t.app.runtime,a="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&a}},893:function(e,t,n){"use strict";n.d(t,{$2:function(){return o},WD:function(){return i},cW:function(){return s}});var r,a=n(597);function i(e){return new s((t=>{t(e)}))}function o(e){return new s(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(r||(r={}));class s{__init(){this._state=r.PENDING}__init2(){this._handlers=[]}constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),s.prototype.__init5.call(this),s.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new s(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new s(((t,n)=>{let r,a;return this.then((t=>{a=!1,r=t,e&&e()}),(t=>{a=!0,r=t,e&&e()})).then((()=>{a?n(r):t(r)}))}))}__init3(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===r.PENDING&&((0,a.J8)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state!==r.PENDING){var e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)}))}}}}},170:function(e,t,n){"use strict";n.d(t,{Z1:function(){return f},_I:function(){return u},ph:function(){return c},yW:function(){return l}});var r=n(991),a=n(176);e=n.hmd(e);var i={nowSeconds:()=>Date.now()/1e3},o=(0,a.KV)()?function(){try{return(0,a.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){const{performance:e}=(0,r.R)();if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),s=void 0===o?i:{nowSeconds:()=>(o.timeOrigin+o.now())/1e3},l=i.nowSeconds.bind(i),c=s.nowSeconds.bind(s),u=c;let d;var f=(()=>{const{performance:e}=(0,r.R)();if(e&&e.now){var t=36e5,n=e.now(),a=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-a):t,o=i<t,s=e.timing&&e.timing.navigationStart,l="number"==typeof s?Math.abs(s+n-a):t;return o||l<t?i<=l?(d="timeOrigin",e.timeOrigin):(d="navigationStart",s):(d="dateNow",a)}d="none"})()},184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var o=a.apply(null,n);o&&e.push(o)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},874:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},818:function(e,t,n){var r=n(874),a=n(851),i=Object.hasOwnProperty,o=Object.create(null);for(var s in r)i.call(r,s)&&(o[r[s]]=s);var l=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,a,o=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=t[2],t=t[1],n=0;n<3;n++){var s=2*n;o[n]=parseInt(t.slice(s,s+2),16)}a&&(o[3]=parseInt(a,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(a=(t=t[1])[3],n=0;n<3;n++)o[n]=parseInt(t[n]+t[n],16);a&&(o[3]=parseInt(a+a,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)o[n]=parseInt(t[n+1],0);t[4]&&(t[5]?o[3]=.01*parseFloat(t[4]):o[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:i.call(r,t[1])?((o=r[t[1]])[3]=1,o):null:null;for(n=0;n<3;n++)o[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?o[3]=.01*parseFloat(t[4]):o[3]=parseFloat(t[4]))}for(n=0;n<3;n++)o[n]=c(o[n],0,255);return o[3]=c(o[3],0,1),o},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=a(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=a(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=a(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=a(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=a(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return o[e.slice(0,3)]}},767:function(e,t,n){const r=n(818),a=n(978),i=["keyword","gray","hex"],o={};for(const e of Object.keys(a))o[[...a[e].labels].sort().join("")]=e;const s={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in i&&(t=null),t&&!(t in a))throw new Error("Unknown model: "+t);let n,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=r.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,c=a[this.model].channels,this.color=t.value.slice(0,c),this.valpha="number"==typeof t.value[c]?t.value[c]:1}else if(e.length>0){this.model=t||"rgb",c=a[this.model].channels;const n=Array.prototype.slice.call(e,0,c);this.color=f(n,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const r=t.sort().join("");if(!(r in o))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=o[r];const{labels:i}=a[this.model],s=[];for(n=0;n<i.length;n++)s.push(e[i[n]]);this.color=f(s)}if(s[this.model])for(c=a[this.model].channels,n=0;n<c;n++){const e=s[this.model][n];e&&(this.color[n]=e(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}l.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in r.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to[t.model](n)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to.rgb.percent(n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=a[this.model],{labels:n}=a[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new l([...this.color.map(c(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new l([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:u("rgb",0,d(255)),green:u("rgb",1,d(255)),blue:u("rgb",2,d(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:u("hsl",1,d(100)),lightness:u("hsl",2,d(100)),saturationv:u("hsv",1,d(100)),value:u("hsv",2,d(100)),chroma:u("hcg",1,d(100)),gray:u("hcg",2,d(100)),white:u("hwb",1,d(100)),wblack:u("hwb",2,d(100)),cyan:u("cmyk",0,d(100)),magenta:u("cmyk",1,d(100)),yellow:u("cmyk",2,d(100)),black:u("cmyk",3,d(100)),x:u("xyz",0,d(95.047)),y:u("xyz",1,d(100)),z:u("xyz",2,d(108.833)),l:u("lab",0,d(100)),a:u("lab",1),b:u("lab",2),keyword(e){return void 0!==e?new l(e):a[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):r.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),r.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),a=void 0===t?.5:t,i=2*a-1,o=n.alpha()-r.alpha(),s=((i*o==-1?i:(i+o)/(1+i*o))+1)/2,c=1-s;return l.rgb(s*n.red()+c*r.red(),s*n.green()+c*r.green(),s*n.blue()+c*r.blue(),n.alpha()*a+r.alpha()*(1-a))}};for(const e of Object.keys(a)){if(i.includes(e))continue;const{channels:t}=a[e];l.prototype[e]=function(...t){return this.model===e?new l(this):t.length>0?new l(t,e):new l([...(n=a[this.model][e].raw(this.color),Array.isArray(n)?n:[n]),this.valpha],e);var n},l[e]=function(...n){let r=n[0];return"number"==typeof r&&(r=f(n,t)),new l(r,e)}}function c(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function u(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(s[r]||(s[r]=[]))[t]=n;return e=e[0],function(r){let a;return void 0!==r?(n&&(r=n(r)),a=this[e](),a.color[t]=r,a):(a=this[e]().color[t],n&&(a=n(a)),a)}}function d(e){return function(t){return Math.max(0,Math.min(e,t))}}function f(e,t){for(let n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}e.exports=l},956:function(e,t,n){const r=n(900),a={};for(const e of Object.keys(r))a[r[e]]=e;const i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=i;for(const e of Object.keys(i)){if(!("channels"in i[e]))throw new Error("missing channels property: "+e);if(!("labels"in i[e]))throw new Error("missing channel labels property: "+e);if(i[e].labels.length!==i[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],"channels",{value:t}),Object.defineProperty(i[e],"labels",{value:n})}i.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=i-a;let s,l;i===a?s=0:t===i?s=(n-r)/o:n===i?s=2+(r-t)/o:r===i&&(s=4+(t-n)/o),s=Math.min(60*s,360),s<0&&(s+=360);const c=(a+i)/2;return l=i===a?0:c<=.5?o/(i+a):o/(2-i-a),[s,100*l,100*c]},i.rgb.hsv=function(e){let t,n,r,a,i;const o=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(o,s,l),u=c-Math.min(o,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?(a=0,i=0):(i=u/c,t=d(o),n=d(s),r=d(l),o===c?a=r-n:s===c?a=1/3+t-r:l===c&&(a=2/3+n-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*i,100*c]},i.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const a=i.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[a,100*o,100*r]},i.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(1-t,1-n,1-r);return[100*((1-t-a)/(1-a)||0),100*((1-n-a)/(1-a)||0),100*((1-r-a)/(1-a)||0),100*a]},i.rgb.keyword=function(e){const t=a[e];if(t)return t;let n,i=1/0;for(const t of Object.keys(r)){const a=(s=r[t],((o=e)[0]-s[0])**2+(o[1]-s[1])**2+(o[2]-s[2])**2);a<i&&(i=a,n=t)}var o,s;return n},i.keyword.rgb=function(e){return r[e]},i.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},i.rgb.lab=function(e){const t=i.rgb.xyz(e);let n=t[0],r=t[1],a=t[2];return n/=95.047,r/=100,a/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,[116*r-16,500*(n-r),200*(r-a)]},i.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let a,i,o;if(0===n)return o=255*r,[o,o,o];a=r<.5?r*(1+n):r+n-r*n;const s=2*r-a,l=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,o=6*i<1?s+6*(a-s)*i:2*i<1?a:3*i<2?s+(a-s)*(2/3-i)*6:s,l[e]=255*o;return l},i.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,a=n;const i=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,a*=i<=1?i:2-i,[t,100*(0===r?2*a/(i+a):2*n/(r+n)),(r+n)/2*100]},i.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const a=Math.floor(t)%6,i=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,a){case 0:return[r,l,o];case 1:return[s,r,o];case 2:return[o,r,l];case 3:return[o,s,r];case 4:return[l,o,r];case 5:return[r,o,s]}},i.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,a=Math.max(r,.01);let i,o;o=(2-n)*r;const s=(2-n)*a;return i=n*a,i/=s<=1?s:2-s,i=i||0,o/=2,[t,100*i,100*o]},i.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const a=n+r;let i;a>1&&(n/=a,r/=a);const o=Math.floor(6*t),s=1-r;i=6*t-o,0!=(1&o)&&(i=1-i);const l=n+i*(s-n);let c,u,d;switch(o){default:case 6:case 0:c=s,u=l,d=n;break;case 1:c=l,u=s,d=n;break;case 2:c=n,u=s,d=l;break;case 3:c=n,u=l,d=s;break;case 4:c=l,u=n,d=s;break;case 5:c=s,u=n,d=l}return[255*c,255*u,255*d]},i.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a))]},i.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let a,i,o;return a=3.2406*t+-1.5372*n+-.4986*r,i=-.9689*t+1.8758*n+.0415*r,o=.0557*t+-.204*n+1.057*r,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,a=Math.min(Math.max(0,a),1),i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),[255*a,255*i,255*o]},i.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},i.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const a=n**3,i=t**3,o=r**3;return n=a>.008856?a:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,r=o>.008856?o:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},i.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let a;return a=360*Math.atan2(r,n)/2/Math.PI,a<0&&(a+=360),[t,Math.sqrt(n*n+r*r),a]},i.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},i.rgb.ansi16=function(e,t=null){const[n,r,a]=e;let o=null===t?i.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let s=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===o&&(s+=60),s},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},i.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},i.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},i.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),o=a-i;let s,l;return s=o<1?i/(1-o):0,l=o<=0?0:a===t?(n-r)/o%6:a===n?2+(r-t)/o:4+(t-n)/o,l/=6,l%=1,[360*l,100*o,100*s]},i.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let a=0;return r<1&&(a=(n-.5*r)/(1-r)),[e[0],100*r,100*a]},i.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},i.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const a=[0,0,0],i=t%1*6,o=i%1,s=1-o;let l=0;switch(Math.floor(i)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=s,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=s,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=s}return l=(1-n)*r,[255*(n*a[0]+l),255*(n*a[1]+l),255*(n*a[2]+l)]},i.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},i.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},i.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},i.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},978:function(e,t,n){const r=n(956),a=n(774),i={};Object.keys(r).forEach((e=>{i[e]={},Object.defineProperty(i[e],"channels",{value:r[e].channels}),Object.defineProperty(i[e],"labels",{value:r[e].labels});const t=a(e);Object.keys(t).forEach((n=>{const r=t[n];i[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(r),i[e][n].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=i},774:function(e,t,n){const r=n(956);function a(e,t){return function(n){return t(e(n))}}function i(e,t){const n=[t[e].parent,e];let i=r[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),i=a(r[t[o].parent][o],i),o=t[o].parent;return i.conversion=n,i}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(r);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),a=Object.keys(r[e]);for(let r=a.length,i=0;i<r;i++){const r=a[i],o=t[r];-1===o.distance&&(o.distance=t[e].distance+1,o.parent=e,n.unshift(r))}}return t}(e),n={},a=Object.keys(t);for(let e=a.length,r=0;r<e;r++){const e=a[r];null!==t[e].parent&&(n[e]=i(e,t))}return n}},900:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},230:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},679:function(e,t,n){"use strict";var r=n(864),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?o:s[e.$$typeof]||a}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var a=p(n);a&&a!==h&&e(t,a,r)}var o=u(n);d&&(o=o.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<o.length;++g){var v=o[g];if(!(i[v]||r&&r[v]||m&&m[v]||s&&s[v])){var _=f(n,v);try{c(t,v,_)}catch(e){}}}}return t}},921:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,_=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case o:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case a:return t}}}function w(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=a,t.Profiler=s,t.StrictMode=o,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||E(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===a},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===o},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===o||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===_||e.$$typeof===y||e.$$typeof===b||e.$$typeof===v)},t.typeOf=E},864:function(e,t,n){"use strict";e.exports=n(921)},851:function(e,t,n){"use strict";var r=n(594),a=Array.prototype.concat,i=Array.prototype.slice,o=e.exports=function(e){for(var t=[],n=0,o=e.length;n<o;n++){var s=e[n];r(s)?t=a.call(t,i.call(s)):t.push(s)}return t};o.wrap=function(e){return function(){return e(o(arguments))}}},594:function(e){e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},250:function(e,t,n){"use strict";var r=n(196),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,o=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),a=r[0].inst,u=r[1];return s((function(){a.value=n,a.getSnapshot=t,c(a)&&u({inst:a})}),[e,n,t]),o((function(){return c(a)&&u({inst:a}),e((function(){c(a)&&u({inst:a})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},139:function(e,t,n){"use strict";var r=n(196),a=n(688),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=a.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,a){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c((function(){function e(e){if(!l){if(l=!0,o=e,e=r(e),void 0!==a&&f.hasValue){var t=f.value;if(a(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return void 0!==a&&a(t,n)?t:(o=e,s=n)}var o,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,a]);var p=o(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},688:function(e,t,n){"use strict";e.exports=n(250)},798:function(e,t,n){"use strict";e.exports=n(139)},196:function(e){"use strict";e.exports=window.React}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r](i,i.exports,n),i.loaded=!0,i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e={};n.r(e),n.d(e,{FunctionToString:function(){return Qn},InboundFilters:function(){return Zn}});var t={};n.r(t),n.d(t,{Breadcrumbs:function(){return Vr},Dedupe:function(){return qa},GlobalHandlers:function(){return ja},HttpContext:function(){return Ka},LinkedErrors:function(){return Ya},TryCatch:function(){return Ma}});var r={};n.r(r),n.d(r,{Breadcrumbs:function(){return Vr},BrowserClient:function(){return Xr},Dedupe:function(){return qa},ErrorBoundary:function(){return Ni},FunctionToString:function(){return Qn},GlobalHandlers:function(){return ja},HttpContext:function(){return Ka},Hub:function(){return er.Xb},InboundFilters:function(){return Zn},Integrations:function(){return gi},LinkedErrors:function(){return Ya},Profiler:function(){return wi},SDK_VERSION:function(){return Yn},Scope:function(){return tr.s},TryCatch:function(){return Ma},addBreadcrumb:function(){return na},addGlobalEventProcessor:function(){return tr.c},captureEvent:function(){return ea},captureException:function(){return Kr},captureMessage:function(){return Qr},chromeStackLineParser:function(){return ya},close:function(){return ui},configureScope:function(){return ta},createReduxEnhancer:function(){return Oi},createTransport:function(){return Qa},defaultIntegrations:function(){return ai},defaultStackLineParsers:function(){return Ra},defaultStackParser:function(){return Da},flush:function(){return ci},forceLoad:function(){return si},geckoStackLineParser:function(){return wa},getCurrentHub:function(){return er.Gd},getHubFromCarrier:function(){return er.vi},init:function(){return pi},lastEventId:function(){return oi},makeFetchTransport:function(){return ni},makeMain:function(){return er.pj},makeXHRTransport:function(){return ri},onLoad:function(){return li},opera10StackLineParser:function(){return ka},opera11StackLineParser:function(){return Na},reactRouterV3Instrumentation:function(){return Mi},reactRouterV4Instrumentation:function(){return Ui},reactRouterV5Instrumentation:function(){return ji},reactRouterV6Instrumentation:function(){return Qi},setContext:function(){return ra},setExtra:function(){return ia},setExtras:function(){return aa},setTag:function(){return sa},setTags:function(){return oa},setUser:function(){return la},showReportDialog:function(){return ii},startTransaction:function(){return ua},useProfiler:function(){return Si},winjsStackLineParser:function(){return Sa},withErrorBoundary:function(){return Ri},withProfiler:function(){return xi},withScope:function(){return ca},withSentryReactRouterV6Routing:function(){return ro},withSentryRouting:function(){return Gi},wrap:function(){return di},wrapUseRoutes:function(){return ao}});var a=window.wp.element,i=window.wp.blockLibrary,o=window.wp.data,s=n(196),l=n.n(s);function c(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var d,f=function(){},p=f(),h=Object,m=function(e){return e===p},g=function(e){return"function"==typeof e},v=function(e,t){return h.assign({},e,t)},_="undefined",y=function(){return typeof window!=_},b=new WeakMap,E=0,w=function(e){var t,n,r=typeof e,a=e&&e.constructor,i=a==Date;if(h(e)!==e||i||a==RegExp)t=i?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=b.get(e))return t;if(t=++E+"~",b.set(e,t),a==Array){for(t="@",n=0;n<e.length;n++)t+=w(e[n])+",";b.set(e,t)}if(a==h){t="#";for(var o=h.keys(e).sort();!m(n=o.pop());)m(e[n])||(t+=n+":"+w(e[n])+",");b.set(e,t)}}return t},x=!0,S=y(),T=typeof document!=_,k=S&&window.addEventListener?window.addEventListener.bind(window):f,C=T?document.addEventListener.bind(document):f,N=S&&window.removeEventListener?window.removeEventListener.bind(window):f,R=T?document.removeEventListener.bind(document):f,D={isOnline:function(){return x},isVisible:function(){var e=T&&document.visibilityState;return m(e)||"hidden"!==e}},O={initFocus:function(e){return C("visibilitychange",e),k("focus",e),function(){R("visibilitychange",e),N("focus",e)}},initReconnect:function(e){var t=function(){x=!0,e()},n=function(){x=!1};return k("online",t),k("offline",n),function(){N("online",t),N("offline",n)}}},L=!y()||"Deno"in window,M=L?s.useEffect:s.useLayoutEffect,P="undefined"!=typeof navigator&&navigator.connection,I=!L&&P&&(["slow-2g","2g"].includes(P.effectiveType)||P.saveData),B=function(e){if(g(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?w(e):"",t,e?"$swr$"+e:""]},U=new WeakMap,j=function(e,t,n,r,a,i,o){void 0===o&&(o=!0);var s=U.get(e),l=s[0],c=s[1],u=s[3],d=l[t],f=c[t];if(o&&f)for(var p=0;p<f.length;++p)f[p](n,r,a);return i&&(delete u[t],d&&d[0])?d[0](2).then((function(){return e.get(t)})):e.get(t)},A=0,$=function(){return++A},G=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return c(void 0,void 0,void 0,(function(){var t,n,r,a,i,o,s,l,c,d,f,h,_,y,b,E,w,x,S,T,k;return u(this,(function(u){switch(u.label){case 0:if(t=e[0],n=e[1],r=e[2],a=e[3],o=!!m((i="boolean"==typeof a?{revalidate:a}:a||{}).populateCache)||i.populateCache,s=!1!==i.revalidate,l=!1!==i.rollbackOnError,c=i.optimisticData,d=B(n),f=d[0],h=d[2],!f)return[2];if(_=U.get(t),y=_[2],e.length<3)return[2,j(t,f,t.get(f),p,p,s,!0)];if(b=r,w=$(),y[f]=[w,0],x=!m(c),S=t.get(f),x&&(T=g(c)?c(S):c,t.set(f,T),j(t,f,T)),g(b))try{b=b(t.get(f))}catch(e){E=e}return b&&g(b.then)?[4,b.catch((function(e){E=e}))]:[3,2];case 1:if(b=u.sent(),w!==y[f][0]){if(E)throw E;return[2,b]}E&&x&&l&&(o=!0,b=S,t.set(f,S)),u.label=2;case 2:return o&&(E||(g(o)&&(b=o(b,S)),t.set(f,b)),t.set(h,v(t.get(h),{error:E}))),y[f][1]=$(),[4,j(t,f,b,E,p,s,!!o)];case 3:if(k=u.sent(),E)throw E;return[2,o?k:b]}}))}))},H=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},F=function(e,t){if(!U.has(e)){var n=v(O,t),r={},a=G.bind(p,e),i=f;if(U.set(e,[r,{},{},{},a]),!L){var o=n.initFocus(setTimeout.bind(p,H.bind(p,r,0))),s=n.initReconnect(setTimeout.bind(p,H.bind(p,r,1)));i=function(){o&&o(),s&&s(),U.delete(e)}}return[e,a,i]}return[e,U.get(e)[4]]},Y=F(new Map),V=Y[0],q=Y[1],z=v({onLoadingSlow:f,onSuccess:f,onError:f,onErrorRetry:function(e,__,t,n,r){var a=t.errorRetryCount,i=r.retryCount,o=~~((Math.random()+.5)*(1<<(i<8?i:8)))*t.errorRetryInterval;!m(a)&&i>a||setTimeout(n,o,r)},onDiscarded:f,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:I?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:I?5e3:3e3,compare:function(e,t){return w(e)==w(t)},isPaused:function(){return!1},cache:V,mutate:q,fallback:{}},D),W=function(e,t){var n=v(e,t);if(t){var r=e.use,a=e.fallback,i=t.use,o=t.fallback;r&&i&&(n.use=r.concat(i)),a&&o&&(n.fallback=v(a,o))}return n},Z=(0,s.createContext)({}),J=function(e){return g(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},X=function(){return v(z,(0,s.useContext)(Z))},K=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},Q={dedupe:!0},ee=h.defineProperty((function(e){var t=e.value,n=W((0,s.useContext)(Z),t),r=t&&t.provider,a=(0,s.useState)((function(){return r?F(r(n.cache||V),t):p}))[0];return a&&(n.cache=a[0],n.mutate=a[1]),M((function(){return a?a[2]:p}),[]),(0,s.createElement)(Z.Provider,v(e,{value:n}))}),"default",{value:z}),te=(d=function(e,t,n){var r=n.cache,a=n.compare,i=n.fallbackData,o=n.suspense,l=n.revalidateOnMount,d=n.refreshInterval,f=n.refreshWhenHidden,h=n.refreshWhenOffline,b=U.get(r),E=b[0],w=b[1],x=b[2],S=b[3],T=B(e),k=T[0],C=T[1],N=T[2],R=(0,s.useRef)(!1),D=(0,s.useRef)(!1),O=(0,s.useRef)(k),P=(0,s.useRef)(t),I=(0,s.useRef)(n),A=function(){return I.current},H=function(){return A().isVisible()&&A().isOnline()},F=function(e){return r.set(N,v(r.get(N),e))},Y=r.get(k),V=m(i)?n.fallback[k]:i,q=m(Y)?V:Y,z=r.get(N)||{},W=z.error,Z=!R.current,J=function(){return Z&&!m(l)?l:!A().isPaused()&&(o?!m(q)&&n.revalidateIfStale:m(q)||n.revalidateIfStale)},X=!(!k||!t)&&(!!z.isValidating||Z&&J()),ee=function(e,t){var n=(0,s.useState)({})[1],r=(0,s.useRef)(e),a=(0,s.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,s.useCallback)((function(e){var i=!1,o=r.current;for(var s in e){var l=s;o[l]!==e[l]&&(o[l]=e[l],a.current[l]&&(i=!0))}i&&!t.current&&n({})}),[]);return M((function(){r.current=e})),[r,a.current,i]}({data:q,error:W,isValidating:X},D),te=ee[0],ne=ee[1],re=ee[2],ae=(0,s.useCallback)((function(e){return c(void 0,void 0,void 0,(function(){var t,i,o,s,l,c,d,f,h,v,_,y,b;return u(this,(function(u){switch(u.label){case 0:if(t=P.current,!k||!t||D.current||A().isPaused())return[2,!1];s=!0,l=e||{},c=!S[k]||!l.dedupe,d=function(){return!D.current&&k===O.current&&R.current},f=function(){var e=S[k];e&&e[1]===o&&delete S[k]},h={isValidating:!1},v=function(){F({isValidating:!1}),d()&&re(h)},F({isValidating:!0}),re({isValidating:!0}),u.label=1;case 1:return u.trys.push([1,3,,4]),c&&(j(r,k,te.current.data,te.current.error,!0),n.loadingTimeout&&!r.get(k)&&setTimeout((function(){s&&d()&&A().onLoadingSlow(k,n)}),n.loadingTimeout),S[k]=[t.apply(void 0,C),$()]),b=S[k],i=b[0],o=b[1],[4,i];case 2:return i=u.sent(),c&&setTimeout(f,n.dedupingInterval),S[k]&&S[k][1]===o?(F({error:p}),h.error=p,_=x[k],!m(_)&&(o<=_[0]||o<=_[1]||0===_[1])?(v(),c&&d()&&A().onDiscarded(k),[2,!1]):(a(te.current.data,i)?h.data=te.current.data:h.data=i,a(r.get(k),i)||r.set(k,i),c&&d()&&A().onSuccess(i,k,n),[3,4])):(c&&d()&&A().onDiscarded(k),[2,!1]);case 3:return y=u.sent(),f(),A().isPaused()||(F({error:y}),h.error=y,c&&d()&&(A().onError(y,k,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||g(n.shouldRetryOnError)&&n.shouldRetryOnError(y))&&H()&&A().onErrorRetry(y,k,n,ae,{retryCount:(l.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return s=!1,v(),d()&&c&&j(r,k,h.data,h.error,!1),[2,!0]}}))}))}),[k]),ie=(0,s.useCallback)(G.bind(p,r,(function(){return O.current})),[]);if(M((function(){P.current=t,I.current=n})),M((function(){if(k){var e=k!==O.current,t=ae.bind(p,Q),n=0,r=K(k,w,(function(e,t,n){re(v({error:t,isValidating:n},a(te.current.data,e)?p:{data:e}))})),i=K(k,E,(function(e){if(0==e){var r=Date.now();A().revalidateOnFocus&&r>n&&H()&&(n=r+A().focusThrottleInterval,t())}else if(1==e)A().revalidateOnReconnect&&H()&&t();else if(2==e)return ae()}));return D.current=!1,O.current=k,R.current=!0,e&&re({data:q,error:W,isValidating:X}),J()&&(m(q)||L?t():function(e){y()&&typeof window.requestAnimationFrame!=_?window.requestAnimationFrame(e):setTimeout(e,1)}(t)),function(){D.current=!0,r(),i()}}}),[k,ae]),M((function(){var e;function t(){var t=g(d)?d(q):d;t&&-1!==e&&(e=setTimeout(n,t))}function n(){te.current.error||!f&&!A().isVisible()||!h&&!A().isOnline()?t():ae(Q).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[d,f,h,ae]),(0,s.useDebugValue)(q),o&&m(q)&&k)throw P.current=t,I.current=n,D.current=!1,m(W)?ae(Q):W;return{mutate:ie,get data(){return ne.data=!0,q},get error(){return ne.error=!0,W},get isValidating(){return ne.isValidating=!0,X}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=X(),r=J(e),a=r[0],i=r[1],o=r[2],s=W(n,o),l=d,c=s.use;if(c)for(var u=c.length;u-- >0;)l=c[u](l);return l(a,i||s.fetcher,s)}),ne=window.wp.components,re=window.wp.i18n;const ae=()=>(0,a.createElement)("div",{className:"extendify-onboarding w-full fixed bottom-4 px-4 flex justify-end z-max"},(0,a.createElement)("div",{className:"shadow-2xl"},(0,a.createElement)(ne.Snackbar,null,(0,re.__)("Just a moment, this is taking longer than expected.","extendify"))));function ie(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ie),r}var oe,se=((oe=se||{})[oe.None=0]="None",oe[oe.RenderStrategy=1]="RenderStrategy",oe[oe.Static=2]="Static",oe),le=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(le||{});function ce({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:a,visible:i=!0,name:o}){let s=de(t,e);if(i)return ue(s,n,r,o);let l=null!=a?a:0;if(2&l){let{static:e=!1,...t}=s;if(e)return ue(t,n,r,o)}if(1&l){let{unmount:e=!0,...t}=s;return ie(e?0:1,{0(){return null},1(){return ue({...t,hidden:!0,style:{display:"none"}},n,r,o)}})}return ue(s,n,r,o)}function ue(e,t={},n,r){let{as:a=n,children:i,refName:o="ref",...l}=he(e,["unmount","static"]),c=void 0!==e.ref?{[o]:e.ref}:{},u="function"==typeof i?i(t):i;l.className&&"function"==typeof l.className&&(l.className=l.className(t));let d={};if(t){let e=!1,n=[];for(let[r,a]of Object.entries(t))"boolean"==typeof a&&(e=!0),!0===a&&n.push(r);e&&(d["data-headlessui-state"]=n.join(" "))}if(a===s.Fragment&&Object.keys(pe(l)).length>0){if(!(0,s.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return(0,s.cloneElement)(u,Object.assign({},de(u.props,pe(he(l,["ref"]))),d,c,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(u.ref,c.ref)))}return(0,s.createElement)(a,Object.assign({},he(l,["ref"]),a!==s.Fragment&&c,a!==s.Fragment&&d),u)}function de(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let a=n[e];for(let e of a){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function fe(e){var t;return Object.assign((0,s.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function pe(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function he(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}let me=(0,s.createContext)(null);me.displayName="OpenClosedContext";var ge=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ge||{});function ve(){return(0,s.useContext)(me)}function _e({value:e,children:t}){return s.createElement(me.Provider,{value:e},t)}const ye="undefined"==typeof window||"undefined"==typeof document;let be=ye?s.useEffect:s.useLayoutEffect;function Ee(){let e=(0,s.useRef)(!1);return be((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function we(e){let t=(0,s.useRef)(e);return be((()=>{t.current=e}),[e]),t}let xe={serverHandoffComplete:!1};function Se(){let[e,t]=(0,s.useState)(xe.serverHandoffComplete);return(0,s.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,s.useEffect)((()=>{!1===xe.serverHandoffComplete&&(xe.serverHandoffComplete=!0)}),[]),e}let Te=function(e){let t=we(e);return s.useCallback(((...e)=>t.current(...e)),[t])},ke=Symbol();function Ce(e,t=!0){return Object.assign(e,{[ke]:t})}function Ne(...e){let t=(0,s.useRef)(e);(0,s.useEffect)((()=>{t.current=e}),[e]);let n=Te((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[ke])))?void 0:n}function Re(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function De(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener(e,t,r,a){return e.addEventListener(t,r,a),n.add((()=>e.removeEventListener(t,r,a)))},requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame(...e){return n.requestAnimationFrame((()=>n.requestAnimationFrame(...e)))},setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return Re((()=>{t.current&&e[0]()})),n.add((()=>{t.current=!1}))},add(t){return e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}},dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}function Oe(e,...t){e&&t.length>0&&e.classList.add(...t)}function Le(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Me,Pe=((Me=Pe||{}).Ended="ended",Me.Cancelled="cancelled",Me);function Ie(){let[e]=(0,s.useState)(De);return(0,s.useEffect)((()=>()=>e.dispose()),[e]),e}function Be({container:e,direction:t,classes:n,onStart:r,onStop:a}){let i=Ee(),o=Ie(),s=we(t);be((()=>{let t=De();o.add(t.dispose);let l=e.current;if(l&&"idle"!==s.current&&i.current)return t.dispose(),r.current(s.current),t.add(function(e,t,n,r){let a=n?"enter":"leave",i=De(),o=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{};"enter"===a&&(e.removeAttribute("hidden"),e.style.display="");let s=ie(a,{enter:()=>t.enter,leave:()=>t.leave}),l=ie(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=ie(a,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Le(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Oe(e,...s,...c),i.nextFrame((()=>{Le(e,...c),Oe(e,...l),function(e,t){let n=De();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:a}=getComputedStyle(e),[i,o]=[r,a].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(i+o!==0){let r=[];r.push(n.addEventListener(e,"transitionrun",(a=>{a.target===a.currentTarget&&(r.splice(0).forEach((e=>e())),r.push(n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t("ended"),r.splice(0).forEach((e=>e())))})),n.addEventListener(e,"transitioncancel",(e=>{e.target===e.currentTarget&&(t("cancelled"),r.splice(0).forEach((e=>e())))}))))})))}else t("ended");n.add((()=>t("cancelled"))),n.dispose}(e,(n=>("ended"===n&&(Le(e,...s),Oe(e,...t.entered)),o(n))))})),i.dispose}(l,n.current,"enter"===s.current,(e=>{t.dispose(),ie(e,{[Pe.Ended](){a.current(s.current)},[Pe.Cancelled]:()=>{}})}))),t.dispose}),[t])}function Ue(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let je=(0,s.createContext)(null);je.displayName="TransitionContext";var Ae,$e=((Ae=$e||{}).Visible="visible",Ae.Hidden="hidden",Ae);let Ge=(0,s.createContext)(null);function He(e){return"children"in e?He(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Fe(e,t){let n=we(e),r=(0,s.useRef)([]),a=Ee(),i=Ie(),o=Te(((e,t=le.Hidden)=>{let o=r.current.findIndex((({el:t})=>t===e));-1!==o&&(ie(t,{[le.Unmount](){r.current.splice(o,1)},[le.Hidden](){r.current[o].state="hidden"}}),i.microTask((()=>{var e;!He(r)&&a.current&&(null==(e=n.current)||e.call(n))})))})),l=Te((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>o(e,le.Unmount)})),c=(0,s.useRef)([]),u=(0,s.useRef)(Promise.resolve()),d=(0,s.useRef)({enter:[],leave:[],idle:[]}),f=Te(((e,n,r)=>{c.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{c.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(d.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?u.current=u.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),p=Te(((e,t,n)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>n(t)))}));return(0,s.useMemo)((()=>({children:r,register:l,unregister:o,onStart:f,onStop:p,wait:u,chains:d})),[l,o,r,f,p,d,u])}function Ye(){}Ge.displayName="NestingContext";let Ve=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function qe(e){var t;let n={};for(let r of Ve)n[r]=null!=(t=e[r])?t:Ye;return n}let ze=se.RenderStrategy,We=fe((function(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:a,afterLeave:i,enter:o,enterFrom:l,enterTo:c,entered:u,leave:d,leaveFrom:f,leaveTo:p,...h}=e,m=(0,s.useRef)(null),g=Ne(m,t),v=h.unmount?le.Unmount:le.Hidden,{show:_,appear:y,initial:b}=function(){let e=(0,s.useContext)(je);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[E,w]=(0,s.useState)(_?"visible":"hidden"),x=function(){let e=(0,s.useContext)(Ge);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:S,unregister:T}=x,k=(0,s.useRef)(null);(0,s.useEffect)((()=>S(m)),[S,m]),(0,s.useEffect)((()=>{if(v===le.Hidden&&m.current)return _&&"visible"!==E?void w("visible"):ie(E,{hidden:()=>T(m),visible:()=>S(m)})}),[E,m,S,T,_,v]);let C=we({enter:Ue(o),enterFrom:Ue(l),enterTo:Ue(c),entered:Ue(u),leave:Ue(d),leaveFrom:Ue(f),leaveTo:Ue(p)}),N=function(e){let t=(0,s.useRef)(qe(e));return(0,s.useEffect)((()=>{t.current=qe(e)}),[e]),t}({beforeEnter:n,afterEnter:r,beforeLeave:a,afterLeave:i}),R=Se();(0,s.useEffect)((()=>{if(R&&"visible"===E&&null===m.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[m,E,R]);let D=b&&!y,O=!R||D||k.current===_?"idle":_?"enter":"leave",L=Te((e=>ie(e,{enter:()=>N.current.beforeEnter(),leave:()=>N.current.beforeLeave(),idle:()=>{}}))),M=Te((e=>ie(e,{enter:()=>N.current.afterEnter(),leave:()=>N.current.afterLeave(),idle:()=>{}}))),P=Fe((()=>{w("hidden"),T(m)}),x);Be({container:m,classes:C,direction:O,onStart:we((e=>{P.onStart(m,e,L)})),onStop:we((e=>{P.onStop(m,e,M),"leave"===e&&!He(P)&&(w("hidden"),T(m))}))}),(0,s.useEffect)((()=>{!D||(v===le.Hidden?k.current=null:k.current=_)}),[_,D,E]);let I=h,B={ref:g};return s.createElement(Ge.Provider,{value:P},s.createElement(_e,{value:ie(E,{visible:ge.Open,hidden:ge.Closed})},ce({ourProps:B,theirProps:I,defaultTag:"div",features:ze,visible:"visible"===E,name:"Transition.Child"})))})),Ze=fe((function(e,t){let{show:n,appear:r=!1,unmount:a,...i}=e,o=(0,s.useRef)(null),l=Ne(o,t);Se();let c=ve();if(void 0===n&&null!==c&&(n=ie(c,{[ge.Open]:!0,[ge.Closed]:!1})),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=(0,s.useState)(n?"visible":"hidden"),f=Fe((()=>{d("hidden")})),[p,h]=(0,s.useState)(!0),m=(0,s.useRef)([n]);be((()=>{!1!==p&&m.current[m.current.length-1]!==n&&(m.current.push(n),h(!1))}),[m,n]);let g=(0,s.useMemo)((()=>({show:n,appear:r,initial:p})),[n,r,p]);(0,s.useEffect)((()=>{if(n)d("visible");else if(He(f)){let e=o.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&d("hidden")}else d("hidden")}),[n,f]);let v={unmount:a};return s.createElement(Ge.Provider,{value:f},s.createElement(je.Provider,{value:g},ce({ourProps:{...v,as:s.Fragment,children:s.createElement(We,{ref:l,...v,...i})},theirProps:{},defaultTag:s.Fragment,features:ze,visible:"visible"===u,name:"Transition"})))})),Je=fe((function(e,t){let n=null!==(0,s.useContext)(je),r=null!==ve();return s.createElement(s.Fragment,null,!n&&r?s.createElement(Ze,{ref:t,...e}):s.createElement(We,{ref:t,...e}))})),Xe=Object.assign(Ze,{Child:Je,Root:Ze});function Ke(e,t){return function(){return e.apply(t,arguments)}}const{toString:Qe}=Object.prototype,{getPrototypeOf:et}=Object,tt=(e=>t=>{const n=Qe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),nt=e=>(e=e.toLowerCase(),t=>tt(t)===e),rt=e=>t=>typeof t===e,{isArray:at}=Array,it=rt("undefined"),ot=nt("ArrayBuffer"),st=rt("string"),lt=rt("function"),ct=rt("number"),ut=e=>null!==e&&"object"==typeof e,dt=e=>{if("object"!==tt(e))return!1;const t=et(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},ft=nt("Date"),pt=nt("File"),ht=nt("Blob"),mt=nt("FileList"),gt=nt("URLSearchParams");function vt(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,a;if("object"!=typeof e&&(e=[e]),at(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let o;for(r=0;r<i;r++)o=a[r],t.call(null,e[o],o,e)}}const _t=(yt="undefined"!=typeof Uint8Array&&et(Uint8Array),e=>yt&&e instanceof yt);var yt;const bt=nt("HTMLFormElement"),Et=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),wt=nt("RegExp"),xt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};vt(n,((n,a)=>{!1!==t(n,a,e)&&(r[a]=n)})),Object.defineProperties(e,r)};var St={isArray:at,isArrayBuffer:ot,isBuffer:function(e){return null!==e&&!it(e)&&null!==e.constructor&&!it(e.constructor)&<(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{const t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||Qe.call(e)===t||lt(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ot(e.buffer),t},isString:st,isNumber:ct,isBoolean:e=>!0===e||!1===e,isObject:ut,isPlainObject:dt,isUndefined:it,isDate:ft,isFile:pt,isBlob:ht,isRegExp:wt,isFunction:lt,isStream:e=>ut(e)&<(e.pipe),isURLSearchParams:gt,isTypedArray:_t,isFileList:mt,forEach:vt,merge:function e(){const t={},n=(n,r)=>{dt(t[r])&&dt(n)?t[r]=e(t[r],n):dt(n)?t[r]=e({},n):at(n)?t[r]=n.slice():t[r]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&vt(arguments[e],n);return t},extend:(e,t,n,{allOwnKeys:r}={})=>(vt(t,((t,r)=>{n&<(t)?e[r]=Ke(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let a,i,o;const s={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],r&&!r(o,e,t)||s[o]||(t[o]=e[o],s[o]=!0);e=!1!==n&&et(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:tt,kindOfTest:nt,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(at(e))return e;let t=e.length;if(!ct(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:bt,hasOwnProperty:Et,hasOwnProp:Et,reduceDescriptors:xt,freezeMethods:e=>{xt(e,((t,n)=>{const r=e[n];lt(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return at(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t)};function Tt(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}St.inherits(Tt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const kt=Tt.prototype,Ct={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Ct[e]={value:e}})),Object.defineProperties(Tt,Ct),Object.defineProperty(kt,"isAxiosError",{value:!0}),Tt.from=(e,t,n,r,a,i)=>{const o=Object.create(kt);return St.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Tt.call(o,e.message,t,n,r,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};var Nt=Tt,Rt=n(230);function Dt(e){return St.isPlainObject(e)||St.isArray(e)}function Ot(e){return St.endsWith(e,"[]")?e.slice(0,-2):e}function Lt(e,t,n){return e?e.concat(t).map((function(e,t){return e=Ot(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Mt=St.toFlatObject(St,{},null,(function(e){return/^is[A-Z]/.test(e)}));var Pt=function(e,t,n){if(!St.isObject(e))throw new TypeError("target must be an object");t=t||new(Rt||FormData);const r=(n=St.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!St.isUndefined(t[e])}))).metaTokens,a=n.visitor||u,i=n.dots,o=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&(l=t)&&St.isFunction(l.append)&&"FormData"===l[Symbol.toStringTag]&&l[Symbol.iterator];var l;if(!St.isFunction(a))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(St.isDate(e))return e.toISOString();if(!s&&St.isBlob(e))throw new Nt("Blob is not supported. Use a Buffer instead.");return St.isArrayBuffer(e)||St.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,a){let s=e;if(e&&!a&&"object"==typeof e)if(St.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(St.isArray(e)&&function(e){return St.isArray(e)&&!e.some(Dt)}(e)||St.isFileList(e)||St.endsWith(n,"[]")&&(s=St.toArray(e)))return n=Ot(n),s.forEach((function(e,r){!St.isUndefined(e)&&null!==e&&t.append(!0===o?Lt([n],r,i):null===o?n:n+"[]",c(e))})),!1;return!!Dt(e)||(t.append(Lt(a,n,i),c(e)),!1)}const d=[],f=Object.assign(Mt,{defaultVisitor:u,convertValue:c,isVisitable:Dt});if(!St.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!St.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),St.forEach(n,(function(n,i){!0===(!(St.isUndefined(n)||null===n)&&a.call(t,n,St.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])})),d.pop()}}(e),t};function It(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Bt(e,t){this._pairs=[],e&&Pt(e,this,t)}const Ut=Bt.prototype;Ut.append=function(e,t){this._pairs.push([e,t])},Ut.toString=function(e){const t=e?function(t){return e.call(this,t,It)}:It;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var jt=Bt;function At(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $t(e,t,n){if(!t)return e;const r=n&&n.encode||At,a=n&&n.serialize;let i;if(i=a?a(t,n):St.isURLSearchParams(t)?t.toString():new jt(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}var Gt=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){St.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Ht={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ft="undefined"!=typeof URLSearchParams?URLSearchParams:jt,Yt=FormData;const Vt=(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})();var qt={isBrowser:!0,classes:{URLSearchParams:Ft,FormData:Yt,Blob:Blob},isStandardBrowserEnv:Vt,protocols:["http","https","file","blob","url","data"]},zt=function(e){function t(e,n,r,a){let i=e[a++];const o=Number.isFinite(+i),s=a>=e.length;return i=!i&&St.isArray(r)?r.length:i,s?(St.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!o):(r[i]&&St.isObject(r[i])||(r[i]=[]),t(e,n,r[i],a)&&St.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],t[i]=e[i];return t}(r[i])),!o)}if(St.isFormData(e)&&St.isFunction(e.entries)){const n={};return St.forEachEntry(e,((e,r)=>{t(function(e){return St.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},Wt=qt.isStandardBrowserEnv?{write:function(e,t,n,r,a,i){const o=[];o.push(e+"="+encodeURIComponent(t)),St.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),St.isString(r)&&o.push("path="+r),St.isString(a)&&o.push("domain="+a),!0===i&&o.push("secure"),document.cookie=o.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Zt(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var Jt=qt.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=St.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function Xt(e,t,n){Nt.call(this,null==e?"canceled":e,Nt.ERR_CANCELED,t,n),this.name="CanceledError"}St.inherits(Xt,Nt,{__CANCEL__:!0});var Kt=Xt;const Qt=St.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),en=Symbol("internals"),tn=Symbol("defaults");function nn(e){return e&&String(e).trim().toLowerCase()}function rn(e){return!1===e||null==e?e:St.isArray(e)?e.map(rn):String(e)}function an(e,t,n,r){return St.isFunction(r)?r.call(this,t,n):St.isString(t)?St.isString(r)?-1!==t.indexOf(r):St.isRegExp(r)?r.test(t):void 0:void 0}function on(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,a=n.length;for(;a-- >0;)if(r=n[a],t===r.toLowerCase())return r;return null}function sn(e,t){e&&this.set(e),this[tn]=t||null}Object.assign(sn.prototype,{set:function(e,t,n){const r=this;function a(e,t,n){const a=nn(t);if(!a)throw new Error("header name must be a non-empty string");const i=on(r,a);(!i||!0===n||!1!==r[i]&&!1!==n)&&(r[i||t]=rn(e))}return St.isPlainObject(e)?St.forEach(e,((e,n)=>{a(e,n,t)})):a(t,e,n),this},get:function(e,t){if(!(e=nn(e)))return;const n=on(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(St.isFunction(t))return t.call(this,e,n);if(St.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=nn(e)){const n=on(this,e);return!(!n||t&&!an(0,this[n],n,t))}return!1},delete:function(e,t){const n=this;let r=!1;function a(e){if(e=nn(e)){const a=on(n,e);!a||t&&!an(0,n[a],a,t)||(delete n[a],r=!0)}}return St.isArray(e)?e.forEach(a):a(e),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(e){const t=this,n={};return St.forEach(this,((r,a)=>{const i=on(n,a);if(i)return t[i]=rn(r),void delete t[a];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(a):String(a).trim();o!==a&&delete t[a],t[o]=rn(r),n[o]=!0})),this},toJSON:function(e){const t=Object.create(null);return St.forEach(Object.assign({},this[tn]||null,this),((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&St.isArray(n)?n.join(", "):n)})),t}}),Object.assign(sn,{from:function(e){return St.isString(e)?new this((e=>{const t={};let n,r,a;return e&&e.split("\n").forEach((function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),r=e.substring(a+1).trim(),!n||t[n]&&Qt[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e)):e instanceof this?e:new this(e)},accessor:function(e){const t=(this[en]=this[en]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=nn(e);t[r]||(function(e,t){const n=St.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,a){return this[r].call(this,t,e,n,a)},configurable:!0})}))}(n,e),t[r]=!0)}return St.isArray(e)?e.forEach(r):r(e),this}}),sn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),St.freezeMethods(sn.prototype),St.freezeMethods(sn);var ln=sn;function cn(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a,i=0,o=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[o];a||(a=l),n[i]=s,r[i]=l;let u=o,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),l-a<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return a=>{const i=a.loaded,o=a.lengthComputable?a.total:void 0,s=i-n,l=r(s);n=i;const c={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&i<=o?(o-i)/l:void 0};c[t?"download":"upload"]=!0,e(c)}}function un(e){return new Promise((function(t,n){let r=e.data;const a=ln.from(e.headers).normalize(),i=e.responseType;let o;function s(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}St.isFormData(r)&&qt.isStandardBrowserEnv&&a.setContentType(!1);let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(t+":"+n))}const c=Zt(e.baseURL,e.url);function u(){if(!l)return;const r=ln.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Nt("Request failed with status code "+n.status,[Nt.ERR_BAD_REQUEST,Nt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),s()}),(function(e){n(e),s()}),{data:i&&"text"!==i&&"json"!==i?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:r,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),$t(c,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=u:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(u)},l.onabort=function(){l&&(n(new Nt("Request aborted",Nt.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new Nt("Network Error",Nt.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Ht;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Nt(t,r.clarifyTimeoutError?Nt.ETIMEDOUT:Nt.ECONNABORTED,e,l)),l=null},qt.isStandardBrowserEnv){const t=(e.withCredentials||Jt(c))&&e.xsrfCookieName&&Wt.read(e.xsrfCookieName);t&&a.set(e.xsrfHeaderName,t)}void 0===r&&a.setContentType(null),"setRequestHeader"in l&&St.forEach(a.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),St.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&"json"!==i&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",cn(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",cn(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{l&&(n(!t||t.type?new Kt(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(c);d&&-1===qt.protocols.indexOf(d)?n(new Nt("Unsupported protocol "+d+":",Nt.ERR_BAD_REQUEST,e)):l.send(r||null)}))}const dn={http:un,xhr:un};var fn=e=>{if(St.isString(e)){const t=dn[e];if(!e)throw Error(St.hasOwnProp(e)?`Adapter '${e}' is not available in the build`:`Can not resolve adapter '${e}'`);return t}if(!St.isFunction(e))throw new TypeError("adapter is not a function");return e};const pn={"Content-Type":"application/x-www-form-urlencoded"},hn={transitional:Ht,adapter:function(){let e;return"undefined"!=typeof XMLHttpRequest?e=fn("xhr"):"undefined"!=typeof process&&"process"===St.kindOf(process)&&(e=fn("http")),e}(),transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,a=St.isObject(e);if(a&&St.isHTMLForm(e)&&(e=new FormData(e)),St.isFormData(e))return r&&r?JSON.stringify(zt(e)):e;if(St.isArrayBuffer(e)||St.isBuffer(e)||St.isStream(e)||St.isFile(e)||St.isBlob(e))return e;if(St.isArrayBufferView(e))return e.buffer;if(St.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Pt(e,new qt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return qt.isNode&&St.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=St.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Pt(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||r?(t.setContentType("application/json",!1),function(e,t,n){if(St.isString(e))try{return(0,JSON.parse)(e),St.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||hn.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&St.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Nt.from(e,Nt.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qt.classes.FormData,Blob:qt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};St.forEach(["delete","get","head"],(function(e){hn.headers[e]={}})),St.forEach(["post","put","patch"],(function(e){hn.headers[e]=St.merge(pn)}));var mn=hn;function gn(e,t){const n=this||mn,r=t||n,a=ln.from(r.headers);let i=r.data;return St.forEach(e,(function(e){i=e.call(n,i,a.normalize(),t?t.status:void 0)})),a.normalize(),i}function vn(e){return!(!e||!e.__CANCEL__)}function yn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Kt}function bn(e){return yn(e),e.headers=ln.from(e.headers),e.data=gn.call(e,e.transformRequest),(e.adapter||mn.adapter)(e).then((function(t){return yn(e),t.data=gn.call(e,e.transformResponse,t),t.headers=ln.from(t.headers),t}),(function(t){return vn(t)||(yn(e),t&&t.response&&(t.response.data=gn.call(e,e.transformResponse,t.response),t.response.headers=ln.from(t.response.headers))),Promise.reject(t)}))}function En(e,t){t=t||{};const n={};function r(e,t){return St.isPlainObject(e)&&St.isPlainObject(t)?St.merge(e,t):St.isPlainObject(t)?St.merge({},t):St.isArray(t)?t.slice():t}function a(n){return St.isUndefined(t[n])?St.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function i(e){if(!St.isUndefined(t[e]))return r(void 0,t[e])}function o(n){return St.isUndefined(t[n])?St.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function s(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s};return St.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){const t=l[e]||a,r=t(e);St.isUndefined(r)&&t!==s||(n[e]=r)})),n}const wn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{wn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const xn={};wn.transitional=function(e,t,n){function r(e,t){return"[Axios v1.1.3] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,i)=>{if(!1===e)throw new Nt(r(a," has been removed"+(t?" in "+t:"")),Nt.ERR_DEPRECATED);return t&&!xn[a]&&(xn[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,i)}};var Sn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Nt("options must be an object",Nt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const t=e[i],n=void 0===t||o(t,i,e);if(!0!==n)throw new Nt("option "+i+" must be "+n,Nt.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Nt("Unknown option "+i,Nt.ERR_BAD_OPTION)}},validators:wn};const Tn=Sn.validators;class kn{constructor(e){this.defaults=e,this.interceptors={request:new Gt,response:new Gt}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=En(this.defaults,t);const{transitional:n,paramsSerializer:r}=t;void 0!==n&&Sn.assertOptions(n,{silentJSONParsing:Tn.transitional(Tn.boolean),forcedJSONParsing:Tn.transitional(Tn.boolean),clarifyTimeoutError:Tn.transitional(Tn.boolean)},!1),void 0!==r&&Sn.assertOptions(r,{encode:Tn.function,serialize:Tn.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();const a=t.headers&&St.merge(t.headers.common,t.headers[t.method]);a&&St.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),t.headers=new ln(t.headers,a);const i=[];let o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const s=[];let l;this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)}));let c,u=0;if(!o){const e=[bn.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,s),c=e.length,l=Promise.resolve(t);u<c;)l=l.then(e[u++],e[u++]);return l}c=i.length;let d=t;for(u=0;u<c;){const e=i[u++],t=i[u++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=bn.call(this,d)}catch(e){return Promise.reject(e)}for(u=0,c=s.length;u<c;)l=l.then(s[u++],s[u++]);return l}getUri(e){return $t(Zt((e=En(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}St.forEach(["delete","get","head","options"],(function(e){kn.prototype[e]=function(t,n){return this.request(En(n||{},{method:e,url:t,data:(n||{}).data}))}})),St.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,a){return this.request(En(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}kn.prototype[e]=t(),kn.prototype[e+"Form"]=t(!0)}));var Cn=kn;class Nn{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,a){n.reason||(n.reason=new Kt(e,r,a),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Nn((function(t){e=t})),cancel:e}}}var Rn=Nn;const Dn=function e(t){const n=new Cn(t),r=Ke(Cn.prototype.request,n);return St.extend(r,Cn.prototype,n,{allOwnKeys:!0}),St.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(En(t,n))},r}(mn);Dn.Axios=Cn,Dn.CanceledError=Kt,Dn.CancelToken=Rn,Dn.isCancel=vn,Dn.VERSION="1.1.3",Dn.toFormData=Pt,Dn.AxiosError=Nt,Dn.Cancel=Dn.CanceledError,Dn.all=function(e){return Promise.all(e)},Dn.spread=function(e){return function(t){return e.apply(null,t)}},Dn.isAxiosError=function(e){return St.isObject(e)&&!0===e.isAxiosError},Dn.formToJSON=e=>zt(St.isHTMLForm(e)?new FormData(e):e);var On=Dn;const{Axios:Ln,AxiosError:Mn,CanceledError:Pn,isCancel:In,CancelToken:Bn,VERSION:Un,all:jn,Cancel:An,isAxiosError:$n,spread:Gn,toFormData:Hn}=On;var Fn=On,Yn="7.15.0",Vn=n(343),qn=n(844),zn=n(321),Wn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class Zn{static __initStatic(){this.id="InboundFilters"}__init(){this.name=Zn.id}constructor(e={}){this._options=e,Zn.prototype.__init.call(this)}setupOnce(e,t){var n=e=>{var n=t();if(n){var r=n.getIntegration(Zn);if(r){var a=n.getClient(),i=a?a.getOptions():{},o=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...Wn],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(r._options,i);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,qn.jH)(e)}`),!0):function(e,t){return!(!t||!t.length)&&function(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.error(`Cannot extract message for event ${(0,qn.jH)(e)}`),[]}return[]}(e).some((e=>t.some((t=>(0,zn.zC)(e,t)))))}(e,t.ignoreErrors)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,qn.jH)(e)}`),!0):function(e,t){if(!t||!t.length)return!1;var n=Jn(e);return!!n&&t.some((e=>(0,zn.zC)(n,e)))}(e,t.denyUrls)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,qn.jH)(e)}.\nUrl: ${Jn(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;var n=Jn(e);return!n||t.some((e=>(0,zn.zC)(n,e)))}(e,t.allowUrls)&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,qn.jH)(e)}.\nUrl: ${Jn(e)}`),!0)}(e,o)?null:e}}return e};n.id=this.name,e(n)}}function Jn(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let n=e.length-1;n>=0;n--){var t=e[n];if(t&&"<anonymous>"!==t.filename&&"[native code]"!==t.filename)return t.filename||null}return null}(t):null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.error(`Cannot extract url for event ${(0,qn.jH)(e)}`),null}}Zn.__initStatic();var Xn=n(535);let Kn;class Qn{constructor(){Qn.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=Qn.id}setupOnce(){Kn=Function.prototype.toString,Function.prototype.toString=function(...e){var t=(0,Xn.HK)(this)||this;return Kn.apply(t,e)}}}Qn.__initStatic();var er=n(659),tr=n(350),nr=[];function rr(e){var t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach((e=>{e.isDefaultInstance=!0})),r=Array.isArray(n)?[...t,...n]:"function"==typeof n?(0,qn.lE)(n(t)):t;var a=function(e){var t={};return e.forEach((e=>{const{name:n}=e;var r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.values(t)}(r),i=a.findIndex((e=>"Debug"===e.name));if(-1!==i){const[e]=a.splice(i,1);a.push(e)}return a}class ar extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}var ir=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function or(e,t=!1){const{host:n,path:r,pass:a,port:i,projectId:o,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&a?`:${a}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${o}`}function sr(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function lr(e){var t="string"==typeof e?function(e){var t=ir.exec(e);if(!t)throw new ar(`Invalid Sentry Dsn: ${e}`);const[n,r,a="",i,o="",s]=t.slice(1);let l="",c=s;var u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){var d=c.match(/^\d+/);d&&(c=d[0])}return sr({host:i,pass:a,path:l,projectId:c,port:o,protocol:n,publicKey:r})}(e):sr(e);return function(e){if("undefined"!=typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__)return;const{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach((t=>{if(!e[t])throw new ar(`Invalid Sentry Dsn: ${t} missing`)})),!n.match(/^\d+$/))throw new ar(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!function(e){return"http"===e||"https"===e}(r))throw new ar(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new ar(`Invalid Sentry Dsn: Invalid port ${t}`)}(t),t}function cr(e){var t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function ur(e,t={}){var n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${cr(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return(0,Xn._j)({sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,r)}`}var dr=n(991),fr=n(360),pr=n(823),hr=n(893),mr=n(732),gr=n(597);function vr(e,t=1/0,n=1/0){try{return yr("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function _r(e,t=3,n=102400){var r,a=vr(e,t);return r=a,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?_r(e,t-1,n):a}function yr(e,t,r=1/0,a=1/0,i=function(){var e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++){if(t[e]===n)return!0}return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[o,s]=i;if(null===t||["number","boolean","string"].includes(typeof t)&&!(0,gr.i2)(t))return t;var l=function(e,t){try{return"domain"===e&&t&&"object"==typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":void 0!==n.g&&t===n.g?"[Global]":"undefined"!=typeof window&&t===window?"[Window]":"undefined"!=typeof document&&t===document?"[Document]":(0,gr.Cy)(t)?"[SyntheticEvent]":"number"==typeof t&&t!=t?"[NaN]":void 0===t?"[undefined]":"function"==typeof t?`[Function: ${(0,fr.$P)(t)}]`:"symbol"==typeof t?`[${String(t)}]`:"bigint"==typeof t?`[BigInt: ${String(t)}]`:`[object ${Object.getPrototypeOf(t).constructor.name}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;if(0===r)return l.replace("object ","");if(o(t))return"[Circular ~]";var c=t;if(c&&"function"==typeof c.toJSON)try{return yr("",c.toJSON(),r-1,a,i)}catch(e){}var u=Array.isArray(t)?[]:{};let d=0;var f=(0,Xn.Sh)(t);for(var p in f)if(Object.prototype.hasOwnProperty.call(f,p)){if(d>=a){u[p]="[MaxProperties ~]";break}var h=f[p];u[p]=yr(p,h,r-1,a,i),d+=1}return s(t),u}function br(e,t=[]){return[e,t]}function Er(e,t){const[n,r]=e;return[n,[...r,t]]}function wr(e,t){e[1].forEach((e=>{var n=e[0].type;t(e,n)}))}function xr(e,t){return(t||new TextEncoder).encode(e)}function Sr(e,t){const[n,r]=e;let a=JSON.stringify(n);function i(e){"string"==typeof a?a="string"==typeof e?a+e:[xr(a,t),e]:a.push("string"==typeof e?xr(e,t):e)}for(var o of r){const[e,t]=o;if(i(`\n${JSON.stringify(e)}\n`),"string"==typeof t||t instanceof Uint8Array)i(t);else{let e;try{e=JSON.stringify(t)}catch(n){e=JSON.stringify(vr(t))}i(e)}}return"string"==typeof a?a:function(e){var t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(var a of e)n.set(a,r),r+=a.length;return n}(a)}function Tr(e,t){var n="string"==typeof e.data?xr(e.data,t):e.data;return[(0,Xn.Jr)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var kr={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function Cr(e){return kr[e]}var Nr=n(170);function Rr(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}var Dr=n(15),Or="Not capturing exception because it's already been captured.";class Lr{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(e){if(Lr.prototype.__init.call(this),Lr.prototype.__init2.call(this),Lr.prototype.__init3.call(this),Lr.prototype.__init4.call(this),this._options=e,e.dsn){this._dsn=lr(e.dsn);var t=ur(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn("No DSN provided, client will not do anything.")}captureException(e,t,n){if((0,qn.YO)(e))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log(Or));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let a=n&&n.event_id;var i=(0,gr.pt)(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(i.then((e=>this._captureEvent(e,n,r))).then((e=>{a=e}))),a}captureEvent(e,t,n){if(t&&t.originalException&&(0,qn.YO)(t.originalException))return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log(Or));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{r=e}))),r}captureSession(e){this._isEnabled()?"string"!=typeof e.release?("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,Dr.CT)(e,{init:!1})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn("SDK not enabled, will not capture session.")}getDsn(){return this._dsn}getOptions(){return this._options}getTransport(){return this._transport}flush(e){var t=this._transport;return t?this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e)))):(0,hr.WD)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,e)))}setupIntegrations(){var e,t;this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=(e=this._options.integrations,t={},e.forEach((e=>{t[e.name]=e,-1===nr.indexOf(e.name)&&(e.setupOnce(tr.c,er.Gd),nr.push(e.name),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log(`Integration installed: ${e.name}`))})),t),this._integrationsInitialized=!0)}getIntegrationById(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}sendEvent(e,t={}){if(this._dsn){let r=function(e,t,n,r){var a=Rr(n),i=e.type||"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);var o=function(e,t,n,r){var a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&{dsn:or(r)},..."transaction"===e.type&&a&&{trace:(0,Xn.Jr)({...a})}}}(e,a,r,t);return delete e.sdkProcessingMetadata,br(o,[[{type:i},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(var n of t.attachments||[])r=Er(r,Tr(n,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(r)}}sendSession(e){if(this._dsn){var t=function(e,t,n,r){var a=Rr(n);return br({sent_at:(new Date).toISOString(),...a&&{sdk:a},...!!r&&{dsn:or(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}recordDroppedEvent(e,t){if(this._options.sendClientReports){var n=`${e}:${t}`;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}_updateSessionFromEvent(e,t){let n=!1,r=!1;var a=t.exception&&t.exception.values;if(a)for(var i of(r=!0,a)){var o=i.mechanism;if(o&&!1===o.handled){n=!0;break}}var s="ok"===e.status;(s&&0===e.errors||s&&n)&&((0,Dr.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new hr.cW((t=>{let n=0;var r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}_prepareEvent(e,t,n){const{normalizeDepth:r=3,normalizeMaxBreadth:a=1e3}=this.getOptions();var i={...e,event_id:e.event_id||t.event_id||(0,qn.DM)(),timestamp:e.timestamp||(0,Nr.yW)()};this._applyClientOptions(i),this._applyIntegrationsMetadata(i);let o=n;t.captureContext&&(o=tr.s.clone(o).update(t.captureContext));let s=(0,hr.WD)(i);if(o){var l=[...t.attachments||[],...o.getAttachments()];l.length&&(t.attachments=l),s=o.applyToEvent(i,t)}return s.then((e=>"number"==typeof r&&r>0?this._normalizeEvent(e,r,a):e))}_normalizeEvent(e,t,n){if(!e)return null;var r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:vr(e.data,t,n)}})))},...e.user&&{user:vr(e.user,t,n)},...e.contexts&&{contexts:vr(e.contexts,t,n)},...e.extra&&{extra:vr(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=vr(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>(e.data&&(e.data=vr(e.data,t,n)),e)))),r}_applyClientOptions(e){var t=this.getOptions();const{environment:n,release:r,dist:a,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==a&&(e.dist=a),e.message&&(e.message=(0,zn.$G)(e.message,i));var o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=(0,zn.$G)(o.value,i));var s=e.request;s&&s.url&&(s.url=(0,zn.$G)(s.url,i))}_applyIntegrationsMetadata(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var t=e;"log"===t.logLevel?Vn.kg.log(t.message):Vn.kg.warn(t)}}))}_processEvent(e,t,n){const{beforeSend:r,sampleRate:a}=this.getOptions();if(!this._isEnabled())return(0,hr.$2)(new ar("SDK not enabled, will not capture event.","log"));var i="transaction"===e.type;return!i&&"number"==typeof a&&Math.random()>a?(this.recordDroppedEvent("sample_rate","error"),(0,hr.$2)(new ar(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"))):this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",e.type||"error"),new ar("An event processor returned null, will not send event.","log");return t.data&&!0===t.data.__sentry__||i||!r?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if((0,gr.J8)(e))return e.then((e=>{if(!(0,gr.PO)(e)&&null!==e)throw new ar(t);return e}),(e=>{throw new ar(`beforeSend rejected with ${e}`)}));if(!(0,gr.PO)(e)&&null!==e)throw new ar(t);return e}(r(n,t))})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",e.type||"error"),new ar("`beforeSend` returned `null`, will not send event.","log");var a=n&&n.getSession();!i&&a&&this._updateSessionFromEvent(a,r);var o=r.transaction_info;if(i&&o&&r.transaction!==e.transaction){var s="custom";r.transaction_info={...o,source:s,changes:[...o.changes,{source:s,timestamp:r.timestamp,propagations:o.propagations}]}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof ar)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new ar(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing+=1,e.then((e=>(this._numProcessing-=1,e)),(e=>(this._numProcessing-=1,e)))}_sendEnvelope(e){this._transport&&this._dsn?this._transport.send(e).then(null,(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.error("Error while sending event:",e)})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.error("Transport disabled")}_clearOutcomes(){var e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function Mr(e,t){var n=Ir(e,t),r={type:t&&t.name,value:Ur(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Pr(e,t){return{exception:{values:[Mr(e,t)]}}}function Ir(e,t){var n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(Br.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}var Br=/Minified React error #\d+;/i;function Ur(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function jr(e,t,n,r,a){let i;if((0,gr.VW)(t)&&t.error)return Pr(e,t.error);if((0,gr.TX)(t)||(0,gr.fm)(t)){var o=t;if("stack"in t)i=Pr(e,t);else{var s=o.name||((0,gr.TX)(o)?"DOMError":"DOMException"),l=o.message?`${s}: ${o.message}`:s;i=Ar(e,l,n,r),(0,qn.Db)(i,l)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return(0,gr.VZ)(t)?Pr(e,t):(0,gr.PO)(t)||(0,gr.cO)(t)?(i=function(e,t,n,r){var a=(0,er.Gd)().getClient(),i=a&&a.getOptions().normalizeDepth,o={exception:{values:[{type:(0,gr.cO)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${(0,Xn.zf)(t)}`}]},extra:{__serialized__:_r(t,i)}};if(n){var s=Ir(e,n);s.length&&(o.exception.values[0].stacktrace={frames:s})}return o}(e,t,n,a),(0,qn.EG)(i,{synthetic:!0}),i):(i=Ar(e,t,n,r),(0,qn.Db)(i,`${t}`,void 0),(0,qn.EG)(i,{synthetic:!0}),i)}function Ar(e,t,n,r){var a={message:t};if(r&&n){var i=Ir(e,n);i.length&&(a.exception={values:[{value:t,stacktrace:{frames:i}}]})}return a}var $r=n(464),Gr=["fatal","error","warning","log","info","debug"];function Hr(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function Fr(e){return e.split(/\\?\//).filter((e=>e.length>0&&","!==e)).length}var Yr="Breadcrumbs";class Vr{static __initStatic(){this.id=Yr}__init(){this.name=Vr.id}constructor(e){Vr.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e}}setupOnce(){var e;this.options.console&&(0,mr.o)("console",qr),this.options.dom&&(0,mr.o)("dom",(e=this.options.dom,function(t){let n,r="object"==typeof e?e.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=t.event.target?(0,$r.Rt)(t.event.target,r):(0,$r.Rt)(t.event,r)}catch(e){n="<unknown>"}0!==n.length&&(0,er.Gd)().addBreadcrumb({category:`ui.${t.name}`,message:n},{event:t.event,name:t.name,global:t.global})})),this.options.xhr&&(0,mr.o)("xhr",zr),this.options.fetch&&(0,mr.o)("fetch",Wr),this.options.history&&(0,mr.o)("history",Zr)}}function qr(e){var t,n={category:"console",data:{arguments:e.args,logger:"console"},level:(t=e.level,"warn"===t?"warning":Gr.includes(t)?t:"log"),message:(0,zn.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message=`Assertion failed: ${(0,zn.nK)(e.args.slice(1)," ")||"console.assert"}`,n.data.arguments=e.args.slice(1)}(0,er.Gd)().addBreadcrumb(n,{input:e.args,level:e.level})}function zr(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;const{method:t,url:n,status_code:r,body:a}=e.xhr.__sentry_xhr__||{};(0,er.Gd)().addBreadcrumb({category:"xhr",data:{method:t,url:n,status_code:r},type:"http"},{xhr:e.xhr,input:a})}}function Wr(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?(0,er.Gd)().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):(0,er.Gd)().addBreadcrumb({category:"fetch",data:{...e.fetchData,status_code:e.response.status},type:"http"},{input:e.args,response:e.response})))}function Zr(e){var t=(0,dr.R)();let n=e.from,r=e.to;var a=Hr(t.location.href);let i=Hr(n);var o=Hr(r);i.path||(i=a),a.protocol===o.protocol&&a.host===o.host&&(r=o.relative),a.protocol===i.protocol&&a.host===i.host&&(n=i.relative),(0,er.Gd)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}Vr.__initStatic();var Jr=(0,dr.R)();class Xr extends Lr{constructor(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:Yn}],version:Yn},super(e),e.sendClientReports&&Jr.document&&Jr.document.addEventListener("visibilitychange",(()=>{"hidden"===Jr.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){var a=jr(e,t,n&&n.syntheticException||void 0,r);return(0,qn.EG)(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),(0,hr.WD)(a)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,a){var i=Ar(e,t,r&&r.syntheticException||void 0,a);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),(0,hr.WD)(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}sendEvent(e,t){var n=this.getIntegrationById(Yr);n&&n.options&&n.options.sentry&&(0,er.Gd)().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,qn.jH)(e)},{event:e}),super.sendEvent(e,t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){var e=this._clearOutcomes();if(0!==e.length)if(this._dsn){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log("Sending outcomes:",e);var t,n,r=ur(this._dsn,this._options),a=(t=e,br((n=this._options.tunnel&&or(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:(0,Nr.yW)(),discarded_events:t}]]));try{var i=(0,dr.R)();"[object Navigator]"!==Object.prototype.toString.call(i&&i.navigator)||"function"!=typeof i.navigator.sendBeacon||this._options.transportOptions?this._sendEnvelope(a):i.navigator.sendBeacon.bind(i.navigator)(r,Sr(a))}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.error(e)}}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log("No dsn provided, will not send outcomes");else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log("No outcomes to send")}}function Kr(e,t){return(0,er.Gd)().captureException(e,{captureContext:t})}function Qr(e,t){var n="string"==typeof t?t:void 0,r="string"!=typeof t?{captureContext:t}:void 0;return(0,er.Gd)().captureMessage(e,n,r)}function ea(e,t){return(0,er.Gd)().captureEvent(e,t)}function ta(e){(0,er.Gd)().configureScope(e)}function na(e){(0,er.Gd)().addBreadcrumb(e)}function ra(e,t){(0,er.Gd)().setContext(e,t)}function aa(e){(0,er.Gd)().setExtras(e)}function ia(e,t){(0,er.Gd)().setExtra(e,t)}function oa(e){(0,er.Gd)().setTags(e)}function sa(e,t){(0,er.Gd)().setTag(e,t)}function la(e){(0,er.Gd)().setUser(e)}function ca(e){(0,er.Gd)().withScope(e)}function ua(e,t){return(0,er.Gd)().startTransaction({...e},t)}let da=0;function fa(){return da>0}function pa(){da+=1,setTimeout((()=>{da-=1}))}function ha(e,t={},n){if("function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if((0,Xn.HK)(e))return e}catch(t){return e}var a=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var a=r.map((e=>ha(e,t)));return e.apply(this,a)}catch(e){throw pa(),ca((n=>{n.addEventProcessor((e=>(t.mechanism&&((0,qn.Db)(e,void 0,void 0),(0,qn.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),Kr(e)})),e}};try{for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(a[i]=e[i])}catch(e){}(0,Xn.$Q)(a,e),(0,Xn.xp)(e,"__sentry_wrapped__",a);try{Object.getOwnPropertyDescriptor(a,"name").configurable&&Object.defineProperty(a,"name",{get(){return e.name}})}catch(e){}return a}var ma="?";function ga(e,t,n,r){var a={filename:e,function:t,in_app:!0};return void 0!==n&&(a.lineno=n),void 0!==r&&(a.colno=r),a}var va=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,_a=/\((\S*)(?::(\d+))(?::(\d+))\)/,ya=[30,e=>{var t=va.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=_a.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}const[e,r]=Oa(t[1]||ma,t[2]);return ga(r,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],ba=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ea=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,wa=[50,e=>{var t=ba.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){var n=Ea.exec(t[3]);n&&(t[1]=t[1]||"eval",t[3]=n[1],t[4]=n[2],t[5]="")}let e=t[3],r=t[1]||ma;return[r,e]=Oa(r,e),ga(e,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],xa=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Sa=[40,e=>{var t=xa.exec(e);return t?ga(t[2],t[1]||ma,+t[3],t[4]?+t[4]:void 0):void 0}],Ta=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,ka=[10,e=>{var t=Ta.exec(e);return t?ga(t[2],t[3]||ma,+t[1]):void 0}],Ca=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Na=[20,e=>{var t=Ca.exec(e);return t?ga(t[5],t[3]||t[4]||ma,+t[1],+t[2]):void 0}],Ra=[ya,wa,Sa],Da=(0,fr.pE)(...Ra),Oa=(e,t)=>{var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:ma,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},La=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Ma{static __initStatic(){this.id="TryCatch"}__init(){this.name=Ma.id}constructor(e){Ma.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e}}setupOnce(){var e=(0,dr.R)();this._options.setTimeout&&(0,Xn.hl)(e,"setTimeout",Pa),this._options.setInterval&&(0,Xn.hl)(e,"setInterval",Pa),this._options.requestAnimationFrame&&(0,Xn.hl)(e,"requestAnimationFrame",Ia),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&(0,Xn.hl)(XMLHttpRequest.prototype,"send",Ba);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:La).forEach(Ua)}}function Pa(e){return function(...t){var n=t[0];return t[0]=ha(n,{mechanism:{data:{function:(0,fr.$P)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function Ia(e){return function(t){return e.apply(this,[ha(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,fr.$P)(e)},handled:!0,type:"instrument"}})])}}function Ba(e){return function(...t){var n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&(0,Xn.hl)(n,e,(function(t){var n={mechanism:{data:{function:e,handler:(0,fr.$P)(t)},handled:!0,type:"instrument"}},r=(0,Xn.HK)(t);return r&&(n.mechanism.data.handler=(0,fr.$P)(r)),ha(t,n)}))})),e.apply(this,t)}}function Ua(e){var t=(0,dr.R)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,Xn.hl)(n,"addEventListener",(function(t){return function(n,r,a){try{"function"==typeof r.handleEvent&&(r.handleEvent=ha(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,fr.$P)(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,ha(r,{mechanism:{data:{function:"addEventListener",handler:(0,fr.$P)(r),target:e},handled:!0,type:"instrument"}}),a])}})),(0,Xn.hl)(n,"removeEventListener",(function(e){return function(t,n,r){var a=n;try{var i=a&&a.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,a,r)}})))}Ma.__initStatic();class ja{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=ja.id}__init2(){this._installFunc={onerror:Aa,onunhandledrejection:$a}}constructor(e){ja.prototype.__init.call(this),ja.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...e}}setupOnce(){Error.stackTraceLimit=50;var e,t=this._options;for(var n in t){var r=this._installFunc[n];r&&t[n]&&(e=n,("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log(`Global Handler attached: ${e}`),r(),this._installFunc[n]=void 0)}}}function Aa(){(0,mr.o)("error",(e=>{const[t,n,r]=Fa();if(!t.getIntegration(ja))return;const{msg:a,url:i,line:o,column:s,error:l}=e;if(!(fa()||l&&l.__sentry_own_request__)){var c=void 0===l&&(0,gr.HD)(a)?function(e,t,n,r){let a=(0,gr.VW)(e)?e.message:e,i="Error";var o=a.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return o&&(i=o[1],a=o[2]),Ga({exception:{values:[{type:i,value:a}]}},t,n,r)}(a,i,o,s):Ga(jr(n,l||a,void 0,r,!1),i,o,s);c.level="error",Ha(t,l,c,"onerror")}}))}function $a(){(0,mr.o)("unhandledrejection",(e=>{const[t,n,r]=Fa();if(!t.getIntegration(ja))return;let a=e;try{"reason"in e?a=e.reason:"detail"in e&&"reason"in e.detail&&(a=e.detail.reason)}catch(e){}if(fa()||a&&a.__sentry_own_request__)return!0;var i=(0,gr.pt)(a)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(a)}`}]}}:jr(n,a,void 0,r,!0);i.level="error",Ha(t,a,i,"onunhandledrejection")}))}function Ga(e,t,n,r){var a=e.exception=e.exception||{},i=a.values=a.values||[],o=i[0]=i[0]||{},s=o.stacktrace=o.stacktrace||{},l=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=(0,gr.HD)(t)&&t.length>0?t:(0,$r.l4)();return 0===l.length&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function Ha(e,t,n,r){(0,qn.EG)(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function Fa(){var e=(0,er.Gd)(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}ja.__initStatic();class Ya{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=Ya.id}constructor(e={}){Ya.prototype.__init.call(this),this._key=e.key||"cause",this._limit=e.limit||5}setupOnce(){var e=(0,er.Gd)().getClient();e&&(0,tr.c)(((t,n)=>{var r=(0,er.Gd)().getIntegration(Ya);return r?function(e,t,n,r,a){if(!(r.exception&&r.exception.values&&a&&(0,gr.V9)(a.originalException,Error)))return r;var i=Va(e,n,a.originalException,t);return r.exception.values=[...i,...r.exception.values],r}(e.getOptions().stackParser,r._key,r._limit,t,n):t}))}}function Va(e,t,n,r,a=[]){if(!(0,gr.V9)(n[r],Error)||a.length+1>=t)return a;var i=Mr(e,n[r]);return Va(e,t,n[r],r,[i,...a])}Ya.__initStatic();class qa{constructor(){qa.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=qa.id}setupOnce(e,t){var n=e=>{var n=t().getIntegration(qa);if(n){try{if(function(e,t){return!!t&&(!!function(e,t){var n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Wa(e,t)&&!!za(e,t))))}(e,t)||!!function(e,t){var n=Za(t),r=Za(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Wa(e,t)&&!!za(e,t)))}(e,t))}(e,n._previousEvent))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){return n._previousEvent=e}return n._previousEvent=e}return e};n.id=this.name,e(n)}}function za(e,t){let n=Ja(e),r=Ja(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){var a=r[e],i=n[e];if(a.filename!==i.filename||a.lineno!==i.lineno||a.colno!==i.colno||a.function!==i.function)return!1}return!0}function Wa(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function Za(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Ja(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}}qa.__initStatic();var Xa=(0,dr.R)();class Ka{constructor(){Ka.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=Ka.id}setupOnce(){(0,tr.c)((e=>{if((0,er.Gd)().getIntegration(Ka)){if(!Xa.navigator&&!Xa.location&&!Xa.document)return e;var t=e.request&&e.request.url||Xa.location&&Xa.location.href;const{referrer:r}=Xa.document||{},{userAgent:a}=Xa.navigator||{};var n={...t&&{url:t},headers:{...e.request&&e.request.headers,...r&&{Referer:r},...a&&{"User-Agent":a}}};return{...e,request:n}}return e}))}}function Qa(e,t,n=function(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return(0,hr.$2)(new ar("Not adding Promise because buffer limit was reached."));var a=r();return-1===t.indexOf(a)&&t.push(a),a.then((()=>n(a))).then(null,(()=>n(a).then(null,(()=>{})))),a},drain:function(e){return new hr.cW(((n,r)=>{let a=t.length;if(!a)return n(!0);var i=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{(0,hr.WD)(e).then((()=>{--a||(clearTimeout(i),n(!0))}),r)}))}))}}}(e.bufferSize||30)){let r={};return{send:function(a){var i=[];if(wr(a,((t,n)=>{var a=Cr(n);!function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,a)?i.push(t):e.recordDroppedEvent("ratelimit_backoff",a)})),0===i.length)return(0,hr.WD)();var o=br(a[0],i),s=t=>{wr(o,((n,r)=>{e.recordDroppedEvent(t,Cr(r))}))};return n.add((()=>t({body:Sr(o,e.textEncoder)}).then((e=>{void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){var a={...e},i=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(i)for(var s of i.trim().split(",")){const[e,t]=s.split(":",2);var l=parseInt(e,10),c=1e3*(isNaN(l)?60:l);if(t)for(var u of t.split(";"))a[u]=r+c;else a.all=r+c}else o?a.all=r+function(e,t=Date.now()){var n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(o,r):429===t&&(a.all=r+6e4);return a}(r,e)}),(e=>{("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.error("Failed while sending event:",e),s("network_error")})))).then((e=>e),(e=>{if(e instanceof ar)return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.error("Skipped sending event because buffer is full."),s("queue_overflow"),(0,hr.WD)();throw e}))},flush:e=>n.drain(e)}}Ka.__initStatic();var ei=(0,dr.R)();let ti;function ni(e,t=function(){if(ti)return ti;if((0,pr.Du)(ei.fetch))return ti=ei.fetch.bind(ei);var e=ei.document;let t=ei.fetch;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return ti=t.bind(ei)}()){return Qa(e,(function(n){var r={body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n.body.length<=65536,...e.fetchOptions};return t(e.url,r).then((e=>({statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}))}function ri(e){return Qa(e,(function(t){return new hr.cW(((n,r)=>{var a=new XMLHttpRequest;for(var i in a.onerror=r,a.onreadystatechange=()=>{4===a.readyState&&n({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,i)&&a.setRequestHeader(i,e.headers[i]);a.send(t.body)}))}))}var ai=[new Zn,new Qn,new Ma,new Vr,new ja,new Ya,new qa,new Ka];function ii(e={},t=(0,er.Gd)()){var n=(0,dr.R)();if(!n.document)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.error("Global document not defined in showReportDialog call"));const{client:r,scope:a}=t.getStackTop();var i=e.dsn||r&&r.getDsn();if(i){a&&(e.user={...a.getUser(),...e.user}),e.eventId||(e.eventId=t.lastEventId());var o=n.document.createElement("script");o.async=!0,o.src=function(e,t){var n=lr(e),r=`${cr(n)}embed/error-page/`;let a=`dsn=${or(n)}`;for(var i in t)if("dsn"!==i)if("user"===i){var o=t.user;if(!o)continue;o.name&&(a+=`&name=${encodeURIComponent(o.name)}`),o.email&&(a+=`&email=${encodeURIComponent(o.email)}`)}else a+=`&${encodeURIComponent(i)}=${encodeURIComponent(t[i])}`;return`${r}?${a}`}(i,e),e.onLoad&&(o.onload=e.onLoad);var s=n.document.head||n.document.body;s?s.appendChild(o):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.error("Not injecting report dialog. No injection point found in HTML")}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.error("DSN not configured for showReportDialog call")}function oi(){return(0,er.Gd)().lastEventId()}function si(){}function li(e){e()}function ci(e){var t=(0,er.Gd)().getClient();return t?t.flush(e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn("Cannot flush events. No client defined."),(0,hr.WD)(!1))}function ui(e){var t=(0,er.Gd)().getClient();return t?t.close(e):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn("Cannot flush events and disable SDK. No client defined."),(0,hr.WD)(!1))}function di(e){return ha(e)()}function fi(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function pi(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:Yn}],version:Yn},function(e={}){if(void 0===e.defaultIntegrations&&(e.defaultIntegrations=ai),void 0===e.release){var t=(0,dr.R)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);var n={...e,stackParser:(0,fr.Sq)(e.stackParser||Da),integrations:rr(e),transport:e.transport||((0,pr.Ak)()?ni:ri)};!function(e,t){!0===t.debug&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?Vn.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=(0,er.Gd)(),r=n.getScope();r&&r.update(t.initialScope);var a=new e(t);n.bindClient(a)}(Xr,n),e.autoSessionTracking&&function(){if(void 0!==(0,dr.R)().document){var e=(0,er.Gd)();e.captureSession&&(fi(e),(0,mr.o)("history",(({from:e,to:t})=>{void 0!==e&&e!==t&&fi((0,er.Gd)())})))}else("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}(e)}let hi={};var mi=(0,dr.R)();mi.Sentry&&mi.Sentry.Integrations&&(hi=mi.Sentry.Integrations);var gi={...hi,...e,...t},vi=n(679),_i=n.n(vi),yi="ui.react.render",bi="ui.react.mount",Ei="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/profiler.tsx";class wi extends s.Component{__init(){this._mountSpan=void 0}__init2(){this._updateSpan=void 0}static __initStatic(){this.defaultProps={disabled:!1,includeRender:!0,includeUpdates:!0}}constructor(e){super(e),wi.prototype.__init.call(this),wi.prototype.__init2.call(this);const{name:t,disabled:n=!1}=this.props;if(!n){var r=Ti();r&&(this._mountSpan=r.startChild({description:`<${t}>`,op:bi}))}}componentDidMount(){this._mountSpan&&this._mountSpan.finish()}shouldComponentUpdate({updateProps:e,includeUpdates:t=!0}){if(t&&this._mountSpan&&e!==this.props.updateProps){var n=Object.keys(e).filter((t=>e[t]!==this.props.updateProps[t]));if(n.length>0){var r=(0,Nr._I)();this._updateSpan=this._mountSpan.startChild({data:{changedProps:n},description:`<${this.props.name}>`,op:"ui.react.update",startTimestamp:r})}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.finish(),this._updateSpan=void 0)}componentWillUnmount(){const{name:e,includeRender:t=!0}=this.props;this._mountSpan&&t&&this._mountSpan.startChild({description:`<${e}>`,endTimestamp:(0,Nr._I)(),op:yi,startTimestamp:this._mountSpan.endTimestamp})}render(){return this.props.children}}function xi(e,t){var n=t&&t.name||e.displayName||e.name||"unknown",r=r=>s.createElement(wi,{...t,name:n,updateProps:r,__self:this,__source:{fileName:Ei,lineNumber:143}},s.createElement(e,{...r,__self:this,__source:{fileName:Ei,lineNumber:144}}));return r.displayName=`profiler(${n})`,_i()(r,e),r}function Si(e,t={disabled:!1,hasRenderSpan:!0}){const[n]=s.useState((()=>{if(!t||!t.disabled){var n=Ti();return n?n.startChild({description:`<${e}>`,op:bi}):void 0}}));s.useEffect((()=>(n&&n.finish(),()=>{n&&t.hasRenderSpan&&n.startChild({description:`<${e}>`,endTimestamp:(0,Nr._I)(),op:yi,startTimestamp:n.endTimestamp})})),[])}function Ti(e=(0,er.Gd)()){if(e){var t=e.getScope();if(t)return t.getTransaction()}}wi.__initStatic();var ki="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/errorboundary.tsx",Ci={componentStack:null,error:null,eventId:null};class Ni extends s.Component{constructor(...e){super(...e),Ni.prototype.__init.call(this),Ni.prototype.__init2.call(this)}__init(){this.state=Ci}componentDidCatch(e,{componentStack:t}){const{beforeCapture:n,onError:r,showDialog:a,dialogOptions:i}=this.props;ca((o=>{if(null!==(c=s.version.match(/^([^.]+)/))&&parseInt(c[0])>=17){var l=new Error(e.message);l.name=`React ErrorBoundary ${l.name}`,l.stack=t,e.cause=l}var c;n&&n(o,e,t);var u=Kr(e,{contexts:{react:{componentStack:t}}});r&&r(e,t,u),a&&ii({...i,eventId:u}),this.setState({error:e,componentStack:t,eventId:u})}))}componentDidMount(){const{onMount:e}=this.props;e&&e()}componentWillUnmount(){const{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&r(e,t,n)}__init2(){this.resetErrorBoundary=()=>{const{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(Ci)}}render(){const{fallback:e,children:t}=this.props,{error:n,componentStack:r,eventId:a}=this.state;if(n){let t;return t="function"==typeof e?e({error:n,componentStack:r,resetError:this.resetErrorBoundary,eventId:a}):e,s.isValidElement(t)?t:(e&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn("fallback did not produce a valid ReactElement"),null)}return"function"==typeof t?t():t}}function Ri(e,t){var n=e.displayName||e.name||"unknown",r=n=>s.createElement(Ni,{...t,__self:this,__source:{fileName:ki,lineNumber:168}},s.createElement(e,{...n,__self:this,__source:{fileName:ki,lineNumber:169}}));return r.displayName=`errorBoundary(${n})`,_i()(r,e),r}var Di={actionTransformer:e=>e,stateTransformer:e=>e||null};function Oi(e){var t={...Di,...e};return e=>(n,r)=>e(((e,r)=>{var a=n(e,r);return ta((e=>{var n=t.actionTransformer(r);null!=n&&e.addBreadcrumb({category:"redux.action",data:n,type:"info"});var i=t.stateTransformer(a);null!=i?e.setContext("state",{state:{type:"redux",value:i}}):e.setContext("state",null);const{configureScopeWithState:o}=t;"function"==typeof o&&o(e,a)})),a}),r)}var Li=(0,dr.R)();function Mi(e,t,n){return(r,a=!0,i=!0)=>{let o,s;a&&Li&&Li.location&&Pi(t,Li.location,n,((e,t="url")=>{s=e,o=r({name:s,op:"pageload",tags:{"routing.instrumentation":"react-router-v3"},metadata:{source:t}})})),i&&e.listen&&e.listen((e=>{if("PUSH"===e.action||"POP"===e.action){o&&o.finish();var a={"routing.instrumentation":"react-router-v3"};s&&(a.from=s),Pi(t,e,n,((e,t="url")=>{s=e,o=r({name:s,op:"navigation",tags:a,metadata:{source:t}})}))}}))}}function Pi(e,t,n,r){let a=t.pathname;n({location:t,routes:e},((e,t,n)=>{if(e||!n)return r(a);var i=function(e){if(!Array.isArray(e)||0===e.length)return"";var t=e.filter((e=>!!e.path));let n=-1;for(let e=t.length-1;e>=0;e--){var r=t[e];if(r.path&&r.path.startsWith("/")){n=e;break}}return t.slice(n).filter((({path:e})=>!!e)).map((({path:e})=>e)).join("")}(n.routes||[]);return 0===i.length||"/*"===i?r(a):(a=i,r(a,"route"))}))}var Ii=(0,dr.R)();let Bi;function Ui(e,t,n){return Ai(e,"react-router-v4",t,n)}function ji(e,t,n){return Ai(e,"react-router-v5",t,n)}function Ai(e,t,n=[],r){function a(e){if(0===n.length||!r)return[e,"url"];var t=$i(n,e,r);for(let e=0;e<t.length;e++)if(t[e].match.isExact)return[t[e].match.path,"route"];return[e,"url"]}var i={"routing.instrumentation":t};return(t,n=!0,r=!0)=>{var o=e&&e.location?e.location.pathname:Ii&&Ii.location?Ii.location.pathname:void 0;if(n&&o){const[e,n]=a(o);Bi=t({name:e,op:"pageload",tags:i,metadata:{source:n}})}r&&e.listen&&e.listen(((e,n)=>{if(n&&("PUSH"===n||"POP"===n)){Bi&&Bi.finish();const[n,r]=a(e.pathname);Bi=t({name:n,op:"navigation",tags:i,metadata:{source:r}})}}))}}function $i(e,t,n,r=[]){return e.some((e=>{var a=e.path?n(t,e):r.length?r[r.length-1].match:function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}}(t);return a&&(r.push({route:e,match:a}),e.routes&&$i(e.routes,t,n,r)),!!a})),r}function Gi(e){var t=e.displayName||e.name,n=t=>(Bi&&t&&t.computedMatch&&t.computedMatch.isExact&&Bi.setName(t.computedMatch.path,"route"),s.createElement(e,{...t,__self:this,__source:{fileName:"/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/reactrouter.tsx",lineNumber:176}}));return n.displayName=`sentryRoute(${t})`,_i()(n,e),n}var Hi="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/reactrouterv6.tsx";let Fi,Yi,Vi,qi,zi,Wi,Zi,Ji;var Xi=(0,dr.R)(),Ki={"routing.instrumentation":"react-router-v6"};function Qi(e,t,n,r,a){return(i,o=!0,s=!0)=>{var l=Xi&&Xi.location&&Xi.location.pathname;o&&l&&(Fi=i({name:l,op:"pageload",tags:Ki,metadata:{source:"url"}})),Yi=e,Vi=t,qi=n,Wi=a,zi=r,Zi=i,Ji=s}}function eo(e,t,n){if(!e||0===e.length||!n)return[t.pathname,"url"];var r=n(e,t);let a="";if(r)for(let e=0;e<r.length;e++){var i=r[e],o=i.route;if(o){if(o.index)return[i.pathname,"route"];var s=o.path;if(s){var l="/"===s[0]?s:`/${s}`;if(a+=l,i.pathname===t.pathname)return Fr(a)!==Fr(i.pathname)?[l,"route"]:[a,"route"]}}}return[t.pathname,"url"]}function to(e,t){Fi&&Fi.setName(...eo(t,e,Wi))}function no(e,t,n,r){if(r)Fi&&Fi.finish();else if(Ji&&("PUSH"===n||"POP"===n)){Fi&&Fi.finish();const[n,r]=eo(t,e,Wi);Fi=Zi({name:n,op:"navigation",tags:Ki,metadata:{source:r}})}}function ro(e){if(!(Yi&&Vi&&qi&&zi&&Wi&&Zi))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.\n useEffect: ${Yi}. useLocation: ${Vi}. useNavigationType: ${qi}.\n createRoutesFromChildren: ${zi}. matchRoutes: ${Wi}. customStartTransaction: ${Zi}.`),e;let t,n=!1;var r=r=>{var a=Vi(),i=qi();return Yi((()=>{t=zi(r.children),n=!0,to(a,t)}),[r.children]),Yi((()=>{no(a,t,i,n)}),[r.children,a,i,n]),n=!1,l().createElement(e,{...r,__self:this,__source:{fileName:Hi,lineNumber:225}})};return _i()(r,e),r}function ao(e){if(!(Yi&&Vi&&qi&&Wi&&Zi))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters."),e;let t=!1;return(n,r)=>l().createElement((a=>{var i=e(n,r),o=("string"==typeof r?{pathname:r}:r)||Vi(),s=qi();return Yi((()=>{t=!0,to(o,n)}),[a]),Yi((()=>{no(o,n,s,t)}),[a,o,s,t]),t=!1,i}),{__self:this,__source:{fileName:Hi,lineNumber:270}})}var io=n(790),oo=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$"),so="baggage",lo=/^sentry-/;function co(e){return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce(((e,[t,n],r)=>{var a=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,i=0===r?a:`${e},${a}`;return i.length>8192?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):i}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`sentry-${t}`]=n),e)),{}))}function uo(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}var fo=n(458),po=n(233),ho=(0,dr.R)(),mo=n(375),go=(e,t,n)=>{let r;return a=>{t.value>=0&&(a||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},vo=(e,t)=>({name:e,value:(0,mo.h)(t,(()=>-1)),delta:0,entries:[],id:`v2-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`}),_o=(e,t)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((e=>e.getEntries().map(t)));return n.observe({type:e,buffered:!0}),n}}catch(e){}},yo=(e,t)=>{var n=r=>{"pagehide"!==r.type&&"hidden"!==(0,dr.R)().document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)};let bo=-1;var Eo=()=>(bo<0&&(bo="hidden"===(0,dr.R)().document.visibilityState?0:1/0,yo((({timeStamp:e})=>{bo=e}),!0)),{get firstHiddenTime(){return bo}}),wo={};function xo(e){return"number"==typeof e&&isFinite(e)}function So(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}var To=(0,dr.R)();function ko(){return To&&To.addEventListener&&To.performance}let Co,No,Ro=0,Do={};function Oo(e=!1){var t=ko();t&&Nr.Z1&&(t.mark&&To.performance.mark("sentry-tracing-init"),((e,t)=>{var n=vo("CLS",0);let r,a=0,i=[];var o=e=>{if(e&&!e.hadRecentInput){var t=i[0],o=i[i.length-1];a&&0!==i.length&&e.startTime-o.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,i.push(e)):(a=e.value,i=[e]),a>n.value&&(n.value=a,n.entries=i,r&&r())}},s=_o("layout-shift",o);s&&(r=go((e=>{var t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log("[Measurements] Adding CLS"),Do.cls={value:e.value,unit:""},No=t)}),n,void 0),yo((()=>{s.takeRecords().map(o),r(!0)})))})(),function(e){((e,t)=>{var n=Eo(),r=vo("LCP");let a;var i=e=>{var t=e.startTime;t<n.firstHiddenTime&&(r.value=t,r.entries.push(e)),a&&a()},o=_o("largest-contentful-paint",i);if(o){a=go((e=>{var t=e.entries.pop();t&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log("[Measurements] Adding LCP"),Do.lcp={value:e.value,unit:"millisecond"},Co=t)}),r,t);var s=()=>{wo[r.id]||(o.takeRecords().map(i),o.disconnect(),wo[r.id]=!0,a(!0))};["keydown","click"].forEach((e=>{addEventListener(e,s,{once:!0,capture:!0})})),yo(s,!0)}})(0,e)}(e),((e,t)=>{var n=Eo(),r=vo("FID");let a;var i=e=>{a&&e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),a(!0))},o=_o("first-input",i);o&&(a=go((e=>{var t=e.entries.pop();if(t){var n=(0,po.XL)(Nr.Z1),r=(0,po.XL)(t.startTime);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log("[Measurements] Adding FID"),Do.fid={value:e.value,unit:"millisecond"},Do["mark.fid"]={value:n+r,unit:"second"}}}),r,void 0),yo((()=>{o.takeRecords().map(i),o.disconnect()}),!0))})())}function Lo(e,t,n,r,a,i){var o=i?t[i]:t[`${n}End`],s=t[`${n}Start`];s&&o&&So(e,{op:"browser",description:(0,mo.h)(a,(()=>n)),startTimestamp:r+(0,po.XL)(s),endTimestamp:r+(0,po.XL)(o)})}var Mo={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};var Po=(0,dr.R)(),Io={idleTimeout:fo.nT,finalTimeout:fo.mg,heartbeatInterval:fo.hd,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){if(!Po||!Po.location)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn("Could not initialize routing instrumentation due to invalid location"));let r,a=Po.location.href;t&&(r=e({name:Po.location.pathname,op:"pageload",metadata:{source:"url"}})),n&&(0,mr.o)("history",(({to:t,from:n})=>{void 0===n&&a&&-1!==a.indexOf(t)?a=void 0:n!==t&&(a=void 0,r&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.finish()),r=e({name:Po.location.pathname,op:"navigation",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,_experiments:{enableLongTask:!0},...Mo};class Bo{__init(){this.name="BrowserTracing"}constructor(e){Bo.prototype.__init.call(this);let t=Mo.tracingOrigins;e&&(e.tracingOrigins&&Array.isArray(e.tracingOrigins)?t=e.tracingOrigins:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._emitOptionsWarning=!0)),this.options={...Io,...e,tracingOrigins:t};const{_metricOptions:n}=this.options;Oo(n&&n._reportAllChanges),function(e){let t,n=e[0],r=1;for(;r<e.length;){var a=e[r],i=e[r+1];if(r+=2,("optionalAccess"===a||"optionalCall"===a)&&null==n)return;"access"===a||"optionalAccess"===a?(t=n,n=i(n)):"call"!==a&&"optionalCall"!==a||(n=i(((...e)=>n.call(t,...e))),t=void 0)}return n}([this,"access",e=>e.options,"access",e=>e._experiments,"optionalAccess",e=>e.enableLongTask])&&_o("longtask",(e=>{var t=(0,po.x1)();if(t){var n=(0,po.XL)(Nr.Z1+e.startTime),r=(0,po.XL)(e.duration);t.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:n,endTimestamp:n+r})}}))}setupOnce(e,t){this._getCurrentHub=t,this._emitOptionsWarning&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn(`[Tracing] We added a reasonable default for you: ${Mo.tracingOrigins}`));const{routingInstrumentation:n,startTransactionOnLocationChange:r,startTransactionOnPageLoad:a,markBackgroundTransactions:i,traceFetch:o,traceXHR:s,tracingOrigins:l,shouldCreateSpanForRequest:c}=this.options;n((e=>this._createRouteTransaction(e)),a,r),i&&(ho&&ho.document?ho.document.addEventListener("visibilitychange",(()=>{var e=(0,po.x1)();if(ho.document.hidden&&e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log(`[Tracing] Transaction: cancelled -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus("cancelled"),e.setTag("visibilitychange","document.hidden"),e.finish()}})):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),function(e){const{traceFetch:t,traceXHR:n,tracingOrigins:r,shouldCreateSpanForRequest:a}={...Mo,...e};var i={},o=e=>{if(i[e])return i[e];var t=r;return i[e]=t.some((t=>(0,zn.zC)(e,t)))&&!(0,zn.zC)(e,"sentry_key"),i[e]};let s=o;"function"==typeof a&&(s=e=>o(e)&&a(e));var l={};t&&(0,mr.o)("fetch",(e=>{!function(e,t,n){if((0,po.zu)()&&e.fetchData&&t(e.fetchData.url))if(e.endTimestamp){var r=e.fetchData.__span;if(!r)return;(i=n[r])&&(e.response?i.setHttpStatus(e.response.status):e.error&&i.setStatus("internal_error"),i.finish(),delete n[r])}else{var a=(0,po.x1)();if(a){var i=a.startChild({data:{...e.fetchData,type:"fetch"},description:`${e.fetchData.method} ${e.fetchData.url}`,op:"http.client"});e.fetchData.__span=i.spanId,n[i.spanId]=i;var o=e.args[0];e.args[1]=e.args[1]||{};var s=e.args[1];s.headers=function(e,t,n,r){var a=co(t),i=n.toTraceparent(),o="undefined"!=typeof Request&&(0,gr.V9)(e,Request)?e.headers:r.headers;if(o){if("undefined"!=typeof Headers&&(0,gr.V9)(o,Headers))return(s=new Headers(o)).append("sentry-trace",i),a&&s.append(so,a),s;if(Array.isArray(o)){var s=[...o,["sentry-trace",i]];return a&&s.push([so,a]),s}var l="baggage"in o?o.baggage:void 0,c=[];return Array.isArray(l)?c.push(...l):l&&c.push(l),a&&c.push(a),{...o,"sentry-trace":i,baggage:c.length>0?c.join(","):void 0}}return{"sentry-trace":i,baggage:a}}(o,a.getDynamicSamplingContext(),i,s),a.metadata.propagations+=1}}}(e,s,l)})),n&&(0,mr.o)("xhr",(e=>{!function(e,t,n){if(!(!(0,po.zu)()||e.xhr&&e.xhr.__sentry_own_request__)&&e.xhr&&e.xhr.__sentry_xhr__&&t(e.xhr.__sentry_xhr__.url)){var r=e.xhr.__sentry_xhr__;if(e.endTimestamp){var a=e.xhr.__sentry_xhr_span_id__;if(!a)return;(o=n[a])&&(o.setHttpStatus(r.status_code),o.finish(),delete n[a])}else{var i=(0,po.x1)();if(i){var o=i.startChild({data:{...r.data,type:"xhr",method:r.method,url:r.url},description:`${r.method} ${r.url}`,op:"http.client"});if(e.xhr.__sentry_xhr_span_id__=o.spanId,n[e.xhr.__sentry_xhr_span_id__]=o,e.xhr.setRequestHeader)try{e.xhr.setRequestHeader("sentry-trace",o.toTraceparent());var s=co(i.getDynamicSamplingContext());s&&e.xhr.setRequestHeader(so,s),i.metadata.propagations+=1}catch(e){}}}}}(e,s,l)}))}({traceFetch:o,traceXHR:s,tracingOrigins:l,shouldCreateSpanForRequest:c})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`));const{beforeNavigate:t,idleTimeout:n,finalTimeout:r,heartbeatInterval:a}=this.options;var i="pageload"===e.op,o=i?Uo("sentry-trace"):null,s=i?Uo("baggage"):null,l=o?function(e){var t=e.match(oo);if(!e||!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}(o):void 0,c=s?function(e){if(!(0,gr.HD)(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>({...e,...uo(t)})),{});else{if(!e)return;t=uo(e)}var n=Object.entries(t).reduce(((e,[t,n])=>(t.match(lo)&&(e[t.slice("sentry-".length)]=n),e)),{});return Object.keys(n).length>0?n:void 0}(s):void 0,u={...e,...l,metadata:{...e.metadata,dynamicSamplingContext:l&&!c?{}:c},trimEnd:!0},d="function"==typeof t?t(u):u,f=void 0===d?{...u,sampled:!1}:d;f.metadata=f.name!==u.name?{...f.metadata,source:"custom"}:f.metadata,!1===f.sampled&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log(`[Tracing] Will not send ${f.op} transaction because of beforeNavigate.`),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log(`[Tracing] Starting ${f.op} transaction on scope`);var p=this._getCurrentHub();const{location:h}=(0,dr.R)();var m=(0,io.lb)(p,f,n,r,!0,{location:h},a);return m.registerBeforeFinishCallback((e=>{(function(e){var t=ko();if(!t||!To.performance.getEntries||!Nr.Z1)return;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log("[Tracing] Adding & adjusting spans using Performance API");var n=(0,po.XL)(Nr.Z1),r=t.getEntries();let a,i;if(r.slice(Ro).forEach((t=>{var r=(0,po.XL)(t.startTime),o=(0,po.XL)(t.duration);if(!("navigation"===e.op&&n+r<e.startTimestamp))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{Lo(e,t,r,n)})),Lo(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),Lo(e,t,"fetch",n,"cache","domainLookupStart"),Lo(e,t,"domainLookup",n,"DNS"),function(e,t,n){So(e,{op:"browser",description:"request",startTimestamp:n+(0,po.XL)(t.requestStart),endTimestamp:n+(0,po.XL)(t.responseEnd)}),So(e,{op:"browser",description:"response",startTimestamp:n+(0,po.XL)(t.responseStart),endTimestamp:n+(0,po.XL)(t.responseEnd)})}(e,t,n)}(e,t,n),a=n+(0,po.XL)(t.responseStart),i=n+(0,po.XL)(t.requestStart);break;case"mark":case"paint":case"measure":!function(e,t,n,r,a){var i=a+n,o=i+r;So(e,{description:t.name,endTimestamp:o,op:t.entryType,startTimestamp:i})}(e,t,r,o,n);var s=Eo(),l=t.startTime<s.firstHiddenTime;"first-paint"===t.name&&l&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log("[Measurements] Adding FP"),Do.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&l&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log("[Measurements] Adding FCP"),Do.fcp={value:t.startTime,unit:"millisecond"});break;case"resource":var c=t.name.replace(To.location.origin,"");!function(e,t,n,r,a,i){if("xmlhttprequest"!==t.initiatorType&&"fetch"!==t.initiatorType){var o={};"transferSize"in t&&(o["Transfer Size"]=t.transferSize),"encodedBodySize"in t&&(o["Encoded Body Size"]=t.encodedBodySize),"decodedBodySize"in t&&(o["Decoded Body Size"]=t.decodedBodySize);var s=i+r;So(e,{description:n,endTimestamp:s+a,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",startTimestamp:s,data:o})}}(e,t,c,r,o,n)}})),Ro=Math.max(r.length-1,0),function(e){var t=To.navigator;if(t){var n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),xo(n.rtt)&&(Do["connection.rtt"]={value:n.rtt,unit:"millisecond"})),xo(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),xo(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}}(e),"pageload"===e.op){"number"==typeof a&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log("[Measurements] Adding TTFB"),Do.ttfb={value:1e3*(a-e.startTimestamp),unit:"millisecond"},"number"==typeof i&&i<=a&&(Do["ttfb.requestTime"]={value:1e3*(a-i),unit:"millisecond"})),["fcp","fp","lcp"].forEach((t=>{if(Do[t]&&!(n>=e.startTimestamp)){var r=Do[t].value,a=n+(0,po.XL)(r),i=Math.abs(1e3*(a-e.startTimestamp)),o=i-r;("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log(`[Measurements] Normalized ${t} from ${r} to ${i} (${o})`),Do[t].value=i}}));var o=Do["mark.fid"];o&&Do.fid&&(So(e,{description:"first input delay",endTimestamp:o.value+(0,po.XL)(Do.fid.value),op:"ui.action",startTimestamp:o.value}),delete Do["mark.fid"]),"fcp"in Do||delete Do.cls,Object.keys(Do).forEach((t=>{e.setMeasurement(t,Do[t].value,Do[t].unit)})),function(e){Co&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log("[Measurements] Adding LCP Data"),Co.element&&e.setTag("lcp.element",(0,$r.Rt)(Co.element)),Co.id&&e.setTag("lcp.id",Co.id),Co.url&&e.setTag("lcp.url",Co.url.trim().slice(0,200)),e.setTag("lcp.size",Co.size)),No&&No.sources&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&Vn.kg.log("[Measurements] Adding CLS Data"),No.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,(0,$r.Rt)(t.node)))))}(e)}Co=void 0,No=void 0,Do={}})(e),e.setTag("sentry_reportAllChanges",Boolean(this.options._metricOptions&&this.options._metricOptions._reportAllChanges))})),m}}function Uo(e){var t=(0,$r.qT)(`meta[name=${e}]`);return t?t.getAttribute("content"):null}("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,io.ro)();const jo=e=>{let t;const n=new Set,r=(e,r)=>{const a="function"==typeof e?e(t):e;if(!Object.is(a,t)){const e=t;t=(null!=r?r:"object"!=typeof a)?a:Object.assign({},t,a),n.forEach((n=>n(t,e)))}},a=()=>t,i={setState:r,getState:a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,a,i),i};var Ao=n(798);const{useSyncExternalStoreWithSelector:$o}=Ao,Go=e=>{const t="function"==typeof e?(e=>e?jo(e):jo)(e):e,n=(e,n)=>function(e,t=e.getState,n){const r=$o(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,s.useDebugValue)(r),r}(t,e,n);return Object.assign(n,t),n},Ho=e=>e?Go(e):Go,Fo=(e,t={})=>(n,r,a)=>{const{enabled:i,anonymousActionType:o,...s}=t;let l;try{l=(null==i||i)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,a);const c=l.connect(s);let u=!0;a.setState=(e,t,a)=>{const i=n(e,t);return u?(c.send(void 0===a?{type:o||"anonymous"}:"string"==typeof a?{type:a}:a,r()),i):i};const d=(...e)=>{const t=u;u=!1,n(...e),u=t},f=e(a.setState,r,a);if(c.init(f),a.dispatchFromDevtools&&"function"==typeof a.dispatch){let e=!1;const t=a.dispatch;a.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return c.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):Yo(e.payload,(e=>{"__setState"!==e.type?a.dispatchFromDevtools&&"function"==typeof a.dispatch&&a.dispatch(e):d(e.state)}));case"DISPATCH":switch(e.payload.type){case"RESET":return d(f),c.init(a.getState());case"COMMIT":return c.init(a.getState());case"ROLLBACK":return Yo(e.state,(e=>{d(e),c.init(a.getState())}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Yo(e.state,(e=>{d(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return d(r),void c.send(null,n)}case"PAUSE_RECORDING":return u=!u}return}})),f},Yo=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)},Vo=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(e){return Vo(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return Vo(t)(e)}}}},qo=(e,t)=>(n,r,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1;const s=new Set,l=new Set;let c;try{c=i.getStorage()}catch(e){}if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)}),r,a);const u=Vo(i.serialize),d=()=>{const e=i.partialize({...r()});let t;const n=u({state:e,version:i.version}).then((e=>c.setItem(i.name,e))).catch((e=>{t=e}));if(t)throw t;return n},f=a.setState;a.setState=(e,t)=>{f(e,t),d()};const p=e(((...e)=>{n(...e),d()}),r,a);let h;const m=()=>{var e;if(!c)return;o=!1,s.forEach((e=>e(r())));const t=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,r()))||void 0;return Vo(c.getItem.bind(c))(i.name).then((e=>{if(e)return i.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return h=i.merge(e,null!=(t=r())?t:p),n(h,!0),d()})).then((()=>{null==t||t(h,void 0),o=!0,l.forEach((e=>e(h)))})).catch((e=>{null==t||t(void 0,e)}))};return a.persist={setOptions:e=>{i={...i,...e},e.getStorage&&(c=e.getStorage())},clearStorage:()=>{null==c||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},m(),h||p},zo=Fo((e=>({generating:!1,exitModalOpen:!1,closeExitModal:()=>e({exitModalOpen:!1}),openExitModal:()=>e({exitModalOpen:!0}),hoveredOverExitButton:!1,setExitButtonHovered:()=>e({hoveredOverExitButton:!0})})),{name:"Extendify Launch Globals"}),Wo=Ho(zo);var Zo=n(184),Jo=n.n(Zo);const Xo=e=>El.get("onboarding/template",{params:e}),Ko=e=>{let{label:t,slug:n,description:r,checked:i,onChange:o,Icon:s}=e;return(0,a.createElement)("label",{className:"w-full flex items-center justify-between text-gray-900 font-semibold p-4 h-full",htmlFor:n},(0,a.createElement)("div",{className:"flex items-center flex-auto"},(0,a.createElement)("span",{className:"w-5 h-5 relative inline-block mr-3 align-middle"},(0,a.createElement)("input",{id:n,className:"h-5 w-5 rounded-sm m-0",type:"checkbox",onChange:o,defaultChecked:i}),(0,a.createElement)("svg",{className:"absolute block h-5 inset-0 w-5 text-white",viewBox:"1 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},(0,a.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))),(0,a.createElement)("span",null,(0,a.createElement)("span",{className:"text-base"},t),r?(0,a.createElement)("span",{className:"block pt-1 text-gray-700 pr-4 font-normal"},r):(0,a.createElement)("span",null))),s&&(0,a.createElement)(s,{className:"flex-none text-partner-primary-bg h-6 w-6"}))};function Qo(){return Qo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qo.apply(this,arguments)}var es=(0,a.memo)((e=>{const{className:t,...n}=e;return(0,a.createElement)("svg",Qo({className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),(0,a.createElement)("path",{opacity:"0.3",d:"M3 13H7V19H3V13ZM10 9H14V19H10V9ZM17 5H21V19H17V5Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M14 8H10C9.448 8 9 8.448 9 9V19C9 19.552 9.448 20 10 20H14C14.552 20 15 19.552 15 19V9C15 8.448 14.552 8 14 8ZM13 18H11V10H13V18ZM21 4H17C16.448 4 16 4.448 16 5V19C16 19.552 16.448 20 17 20H21C21.552 20 22 19.552 22 19V5C22 4.448 21.552 4 21 4ZM20 18H18V6H20V18ZM7 12H3C2.448 12 2 12.448 2 13V19C2 19.552 2.448 20 3 20H7C7.552 20 8 19.552 8 19V13C8 12.448 7.552 12 7 12ZM6 18H4V14H6V18Z",fill:"currentColor"}))})),ts=(0,a.memo)((e=>{const{className:t,...n}=e;return(0,a.createElement)("svg",Qo({className:t,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),(0,a.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))})),ns=(0,a.memo)((e=>{const{className:t,...n}=e;return(0,a.createElement)("svg",Qo({className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),(0,a.createElement)("path",{opacity:"0.3",d:"M11.5003 15.5L15.5003 11.4998L20.0004 15.9998L16.0004 19.9999L11.5003 15.5Z",fill:"currentColor"}),(0,a.createElement)("path",{opacity:"0.3",d:"M3.93958 7.94043L7.93961 3.94026L12.4397 8.44021L8.43968 12.4404L3.93958 7.94043Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M8.575 11.747L4.828 8L8 4.828L11.747 8.575L13.161 7.161L8 2L2 8L7.161 13.161L8.575 11.747ZM16.769 10.769L15.355 12.183L19.172 16L16 19.172L12.183 15.355L10.769 16.769L16 22L22 16L16.769 10.769Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M21.707 4.879L19.121 2.293C18.926 2.098 18.67 2 18.414 2C18.158 2 17.902 2.098 17.707 2.293L3 17V21H7L21.707 6.293C22.098 5.902 22.098 5.269 21.707 4.879ZM6.172 19H5V17.828L15.707 7.121L16.879 8.293L6.172 19ZM18.293 6.879L17.121 5.707L18.414 4.414L19.586 5.586L18.293 6.879Z",fill:"currentColor"}))})),rs=(0,a.memo)((e=>{const{className:t,...n}=e;return(0,a.createElement)("svg",Qo({className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),(0,a.createElement)("path",{opacity:"0.3",d:"M20 6C20 9 19 13 19 13L13.3 17L12.6 16.4C11.8 15.6 11.8 14.2 12.6 13.4L14.8 11.2C14.8 8.7 12.1 7.2 9.89999 8.5C9.19999 9 8.59999 9.6 7.89999 10.3V13L5.89999 16C4.79999 16 3.89999 15.1 3.89999 14V10.4C3.89999 9.5 4.19999 8.6 4.79999 7.9L7.59999 4.4L14 2C14.9 4.4 16.8 5.8 20 6Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M13.2 18.2996L12 17.0996C10.7 15.7996 10.7 13.8996 12 12.5996L13.9 10.6996C13.8 10.0996 13.4 9.49961 12.8 9.19961C12.1 8.79961 11.3 8.79961 10.6 9.19961C10.1 9.49961 9.7 9.89961 9.3 10.3996C9.2 10.4996 9.2 10.4996 9.1 10.5996V12.9996H7V9.89961L7.3 9.59961C7.5 9.39961 7.6 9.29961 7.8 9.09961C8.3 8.59961 8.8 7.99961 9.5 7.59961C10.8 6.79961 12.4 6.79961 13.7 7.49961C15 8.29961 15.9 9.59961 15.9 11.1996V11.5996L13.4 14.0996C13.2 14.2996 13.1 14.5996 13.1 14.8996C13.1 15.1996 13.2 15.4996 13.4 15.6996L13.5 15.7996L18.2 12.4996C18.4 11.4996 19.1 8.39961 19.1 6.09961H21.1C21.1 9.19961 20.1 13.1996 20.1 13.2996L20 13.6996L13.2 18.2996Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M11 23.0005C9.7 23.0005 8.4 22.6005 7.3 21.7005C4.7 19.7005 4.3 15.9005 6.3 13.3005C8.1 11.0005 11.3 10.3005 13.9 11.8005L12.9 13.6005C11.2 12.7005 9.1 13.1005 7.9 14.6005C6.5 16.3005 6.8 18.8005 8.6 20.2005C10.3 21.6005 12.8 21.3005 14.2 19.5005C14.9 18.6005 15.2 17.4005 15 16.2005L17 15.8005C17.4 17.5005 16.9 19.3005 15.8 20.7005C14.5 22.2005 12.7 23.0005 11 23.0005Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M6 16.9996C4.3 16.9996 3 15.6996 3 13.9996V10.3996C3 9.29961 3.4 8.19961 4.1 7.29961L7.1 3.59961L13.7 1.09961L14.4 2.99961L8.3 5.29961L5.7 8.49961C5.2 9.09961 5 9.69961 5 10.3996V13.9996C5 14.5996 5.4 14.9996 6 14.9996V16.9996Z",fill:"currentColor"}))})),as=(0,a.memo)((e=>{const{className:t,...n}=e;return(0,a.createElement)("svg",Qo({className:`icon ${t}`,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),(0,a.createElement)("path",{d:"M10 17.5L15 12L10 6.5",stroke:"currentColor",strokeWidth:"1.75"}))})),is=(0,a.memo)((e=>{const{className:t,...n}=e;return(0,a.createElement)("svg",Qo({className:t,viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg"},n),(0,a.createElement)("path",{d:"M609.404 378.5C585.07 378.5 563.404 373 544.404 362C525.737 350.667 511.07 335.333 500.404 316C489.737 296.333 484.404 273.833 484.404 248.5C484.404 222.833 489.57 200.167 499.904 180.5C510.237 160.833 524.737 145.5 543.404 134.5C562.07 123.167 583.404 117.5 607.404 117.5C632.404 117.5 653.904 122.833 671.904 133.5C689.904 143.833 703.737 158.333 713.404 177C723.404 195.667 728.404 218 728.404 244V262.5L516.404 263L517.404 224H667.904C667.904 207 662.404 193.333 651.404 183C640.737 172.667 626.237 167.5 607.904 167.5C593.57 167.5 581.404 170.5 571.404 176.5C561.737 182.5 554.404 191.5 549.404 203.5C544.404 215.5 541.904 230.167 541.904 247.5C541.904 274.167 547.57 294.333 558.904 308C570.57 321.667 587.737 328.5 610.404 328.5C627.07 328.5 640.737 325.333 651.404 319C662.404 312.667 669.57 303.667 672.904 292H729.404C724.07 319 710.737 340.167 689.404 355.5C668.404 370.833 641.737 378.5 609.404 378.5Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M797.529 372H728.029L813.029 251L728.029 125H799.029L853.529 209L906.029 125H974.529L890.529 250.5L972.029 372H902.029L849.029 290.5L797.529 372Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M994.142 125H1150.14V176H994.142V125ZM1102.64 372H1041.64V48H1102.64V372Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M1278.62 378.5C1254.29 378.5 1232.62 373 1213.62 362C1194.96 350.667 1180.29 335.333 1169.62 316C1158.96 296.333 1153.62 273.833 1153.62 248.5C1153.62 222.833 1158.79 200.167 1169.12 180.5C1179.46 160.833 1193.96 145.5 1212.62 134.5C1231.29 123.167 1252.62 117.5 1276.62 117.5C1301.62 117.5 1323.12 122.833 1341.12 133.5C1359.12 143.833 1372.96 158.333 1382.62 177C1392.62 195.667 1397.62 218 1397.62 244V262.5L1185.62 263L1186.62 224H1337.12C1337.12 207 1331.62 193.333 1320.62 183C1309.96 172.667 1295.46 167.5 1277.12 167.5C1262.79 167.5 1250.62 170.5 1240.62 176.5C1230.96 182.5 1223.62 191.5 1218.62 203.5C1213.62 215.5 1211.12 230.167 1211.12 247.5C1211.12 274.167 1216.79 294.333 1228.12 308C1239.79 321.667 1256.96 328.5 1279.62 328.5C1296.29 328.5 1309.96 325.333 1320.62 319C1331.62 312.667 1338.79 303.667 1342.12 292H1398.62C1393.29 319 1379.96 340.167 1358.62 355.5C1337.62 370.833 1310.96 378.5 1278.62 378.5Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M1484.44 372H1423.44V125H1479.94L1484.94 157C1492.61 144.667 1503.44 135 1517.44 128C1531.78 121 1547.28 117.5 1563.94 117.5C1594.94 117.5 1618.28 126.667 1633.94 145C1649.94 163.333 1657.94 188.333 1657.94 220V372H1596.94V234.5C1596.94 213.833 1592.28 198.5 1582.94 188.5C1573.61 178.167 1560.94 173 1544.94 173C1525.94 173 1511.11 179 1500.44 191C1489.78 203 1484.44 219 1484.44 239V372Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M1798.38 378.5C1774.38 378.5 1753.71 373.167 1736.38 362.5C1719.38 351.5 1706.04 336.333 1696.38 317C1687.04 297.667 1682.38 275.167 1682.38 249.5C1682.38 223.833 1687.04 201.167 1696.38 181.5C1706.04 161.5 1719.88 145.833 1737.88 134.5C1755.88 123.167 1777.21 117.5 1801.88 117.5C1819.21 117.5 1835.04 121 1849.38 128C1863.71 134.667 1874.71 144.167 1882.38 156.5V0H1942.88V372H1886.88L1882.88 333.5C1875.54 347.5 1864.21 358.5 1848.88 366.5C1833.88 374.5 1817.04 378.5 1798.38 378.5ZM1811.88 322.5C1826.21 322.5 1838.54 319.5 1848.88 313.5C1859.21 307.167 1867.21 298.333 1872.88 287C1878.88 275.333 1881.88 262.167 1881.88 247.5C1881.88 232.5 1878.88 219.5 1872.88 208.5C1867.21 197.167 1859.21 188.333 1848.88 182C1838.54 175.333 1826.21 172 1811.88 172C1797.88 172 1785.71 175.333 1775.38 182C1765.04 188.333 1757.04 197.167 1751.38 208.5C1746.04 219.833 1743.38 232.833 1743.38 247.5C1743.38 262.167 1746.04 275.167 1751.38 286.5C1757.04 297.833 1765.04 306.667 1775.38 313C1785.71 319.333 1797.88 322.5 1811.88 322.5Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M1996.45 372V125H2057.45V372H1996.45ZM2026.45 75.5C2016.11 75.5 2007.28 72 1999.95 65C1992.95 57.6667 1989.45 48.8333 1989.45 38.5C1989.45 28.1667 1992.95 19.5 1999.95 12.5C2007.28 5.50001 2016.11 2.00002 2026.45 2.00002C2036.78 2.00002 2045.45 5.50001 2052.45 12.5C2059.78 19.5 2063.45 28.1667 2063.45 38.5C2063.45 48.8333 2059.78 57.6667 2052.45 65C2045.45 72 2036.78 75.5 2026.45 75.5Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M2085.97 125H2240.97V176H2085.97V125ZM2241.47 2.5V54.5C2238.14 54.5 2234.64 54.5 2230.97 54.5C2227.64 54.5 2224.14 54.5 2220.47 54.5C2205.14 54.5 2194.8 58.1667 2189.47 65.5C2184.47 72.8333 2181.97 82.6667 2181.97 95V372H2121.47V95C2121.47 72.3333 2125.14 54.1667 2132.47 40.5C2139.8 26.5 2150.14 16.3333 2163.47 10C2176.8 3.33334 2192.3 0 2209.97 0C2214.97 0 2220.14 0.166671 2225.47 0.5C2231.14 0.833329 2236.47 1.49999 2241.47 2.5Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M2330.4 125L2410.9 353L2377.9 415.5L2265.9 125H2330.4ZM2272.4 486.5V436H2308.9C2316.9 436 2323.9 435 2329.9 433C2335.9 431.333 2341.24 428 2345.9 423C2350.9 418 2355.07 410.667 2358.4 401L2460.9 125H2523.9L2402.9 427C2393.9 449.667 2382.57 466.167 2368.9 476.5C2355.24 486.833 2338.24 492 2317.9 492C2309.24 492 2301.07 491.5 2293.4 490.5C2286.07 489.833 2279.07 488.5 2272.4 486.5Z",fill:"currentColor"}),(0,a.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M226.926 25.1299H310.197C333.783 25.1299 342.32 27.5938 350.948 32.1932C359.576 36.8108 366.326 43.5822 370.941 52.1969C375.556 60.8298 378 69.3715 378 92.9707V176.289C378 199.888 375.537 208.43 370.941 217.063C366.326 225.696 359.558 232.449 350.948 237.066C347.091 239.131 343.244 240.83 338.064 242.047V308.355C338.064 344.802 334.261 357.994 327.162 371.327C320.034 384.66 309.583 395.09 296.285 402.221C282.96 409.353 269.775 413.13 233.349 413.13H104.744C68.3172 413.13 55.1327 409.325 41.8073 402.221C28.4819 395.09 18.0583 384.632 10.9308 371.327C3.80323 358.023 0 344.802 0 308.355V179.706C0 143.259 3.80323 130.067 10.9026 116.734C18.0301 103.401 28.4819 92.9431 41.8073 85.8116C55.1045 78.7082 68.3172 74.9028 104.744 74.9028H159.808C160.841 64.0747 162.996 58.1666 166.165 52.2151C170.78 43.5822 177.547 36.8108 186.175 32.1932C194.785 27.5938 203.34 25.1299 226.926 25.1299ZM184.128 78.1641C184.128 62.7001 196.658 50.1641 212.114 50.1641H324.991C340.448 50.1641 352.978 62.7001 352.978 78.1641V191.096C352.978 206.56 340.448 219.096 324.991 219.096H212.114C196.658 219.096 184.128 206.56 184.128 191.096V78.1641Z",fill:"currentColor"}))})),os=(0,a.memo)((e=>{const{className:t,...n}=e;return(0,a.createElement)("svg",Qo({className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),(0,a.createElement)("path",{opacity:"0.3",d:"M12 14L3 9V19H21V9L12 14Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M21.008 6.24719L12 0.992188L2.992 6.24719C2.38 6.60419 2 7.26619 2 7.97519V18.0002C2 19.1032 2.897 20.0002 4 20.0002H20C21.103 20.0002 22 19.1032 22 18.0002V7.97519C22 7.26619 21.62 6.60419 21.008 6.24719ZM19.892 7.91219L12 12.8222L4.108 7.91119L12 3.30819L19.892 7.91219ZM4 18.0002V10.2002L12 15.1782L20 10.2002L20.001 18.0002H4Z",fill:"currentColor"}))})),ss=(0,a.memo)((e=>{const{className:t,...n}=e;return(0,a.createElement)("svg",Qo({className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),(0,a.createElement)("path",{opacity:"0.3",d:"M7.03432 14.8828L16.2343 5.68249L18.2298 7.67791L9.02981 16.8782L7.03432 14.8828Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M3.669 17L3 21L7 20.331L3.669 17ZM21.707 4.879L19.121 2.293C18.926 2.098 18.67 2 18.414 2C18.158 2 17.902 2.098 17.707 2.293L5 15C5 15 6.005 15.005 6.5 15.5C6.995 15.995 6.984 16.984 6.984 16.984C6.984 16.984 8.003 17.003 8.5 17.5C8.997 17.997 9 19 9 19L21.707 6.293C22.098 5.902 22.098 5.269 21.707 4.879ZM8.686 15.308C8.588 15.05 8.459 14.789 8.289 14.539L15.951 6.877L17.123 8.049L9.461 15.711C9.21 15.539 8.946 15.408 8.686 15.308ZM18.537 6.635L17.365 5.463L18.414 4.414L19.586 5.586L18.537 6.635Z",fill:"currentColor"}))})),ls=(0,a.memo)((e=>{const{className:t,...n}=e;return(0,a.createElement)("svg",Qo({className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),(0,a.createElement)("path",{opacity:"0.3",d:"M4 5H20V9H4V5Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M12 13H17V18H12V13ZM6 2H8V5H6V2ZM16 2H18V5H16V2Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M19 22H5C3.9 22 3 21.1 3 20V6C3 4.9 3.9 4 5 4H19C20.1 4 21 4.9 21 6V20C21 21.1 20.1 22 19 22ZM5 6V20H19V6H5Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M4 8H20V10H4V8Z",fill:"currentColor"}))})),cs=(0,a.memo)((e=>{const{className:t,...n}=e;return(0,a.createElement)("svg",Qo({className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),(0,a.createElement)("path",{opacity:"0.3",d:"M20 11.414L10.707 20.707C10.518 20.896 10.267 21 10 21C9.733 21 9.482 20.896 9.293 20.707L3.293 14.707C3.104 14.518 3 14.267 3 14C3 13.733 3.104 13.482 3.293 13.293L12.586 4H20V11.414Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M10 22C9.466 22 8.964 21.792 8.586 21.414L2.586 15.414C2.208 15.036 2 14.534 2 14C2 13.466 2.208 12.964 2.586 12.586L12.172 3H21V11.828L11.414 21.414C11.036 21.792 10.534 22 10 22ZM13 5L4 14L10 20L19 11V5H13Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M16 7C15.7348 7 15.4804 7.10536 15.2929 7.29289C15.1054 7.48043 15 7.73478 15 8C15 8.26522 15.1054 8.51957 15.2929 8.70711C15.4804 8.89464 15.7348 9 16 9C16.2652 9 16.5196 8.89464 16.7071 8.70711C16.8946 8.51957 17 8.26522 17 8C17 7.73478 16.8946 7.48043 16.7071 7.29289C16.5196 7.10536 16.2652 7 16 7Z",fill:"currentColor"}))})),us=(0,a.memo)((e=>{const{className:t,...n}=e;return(0,a.createElement)("svg",Qo({className:t,viewBox:"-4 -4 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),(0,a.createElement)("path",{stroke:"currentColor",d:"M6.5 0.5h0s6 0 6 6v0s0 6 -6 6h0s-6 0 -6 -6v0s0 -6 6 -6"}))}));(0,a.memo)((e=>{const{className:t,...n}=e;return(0,a.createElement)("svg",Qo({className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),(0,a.createElement)("path",{fill:"currentColor",d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"}))}));var ds=(0,a.memo)((e=>{const{className:t,...n}=e;return(0,a.createElement)("svg",Qo({className:`icon ${t}`,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),(0,a.createElement)("path",{d:"M15 17.5L10 12L15 6.5",stroke:"currentColor",strokeWidth:"1.75"}))})),fs=(0,a.memo)((e=>{const{className:t,...n}=e;return(0,a.createElement)("svg",Qo({className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},n),(0,a.createElement)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,a.createElement)("path",{d:"M7 12.27v3.72l5 2.73 5-2.73v-3.72L12 15zM5.18 9L12 12.72 18.82 9 12 5.28z",opacity:".3"}),(0,a.createElement)("path",{d:"M12 3L1 9l4 2.18v6L12 21l7-3.82v-6l2-1.09V17h2V9L12 3zm5 12.99l-5 2.73-5-2.73v-3.72L12 15l5-2.73v3.72zm-5-3.27L5.18 9 12 5.28 18.82 9 12 12.72z"}))})),ps=(0,a.memo)((e=>{const{className:t,...n}=e;return(0,a.createElement)("svg",Qo({className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),(0,a.createElement)("path",{d:"M8 18.5504L12 14.8899",stroke:"#1E1E1E",strokeWidth:"1.5"}),(0,a.createElement)("path",{d:"M20.25 11.7523C20.25 14.547 18.092 16.7546 15.5 16.7546C12.908 16.7546 10.75 14.547 10.75 11.7523C10.75 8.95754 12.908 6.75 15.5 6.75C18.092 6.75 20.25 8.95754 20.25 11.7523Z",stroke:"#1E1E1E",strokeWidth:"1.5"}))})),hs=(0,a.memo)((e=>{const{className:t,...n}=e;return(0,a.createElement)("svg",Qo({className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),(0,a.createElement)("path",{opacity:"0.3",d:"M19.27 8H4.73L3 13.2V14H21V13.2L19.27 8ZM5 4H19V8H5V4Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M13 21H3V13H13V21ZM5 19H11V15H5V19Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M22 15H2V13.038L4.009 7H19.991L22 13.038V15ZM4.121 13H19.88L18.549 9H5.451L4.121 13Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M19 14H21V21H19V14ZM20 9H4V3H20V9ZM6 7H18V5H6V7Z",fill:"currentColor"}))})),ms=(0,a.memo)((e=>{const{className:t,...n}=e;return(0,a.createElement)("svg",Qo({className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),(0,a.createElement)("path",{opacity:"0.3",d:"M21 11C21 6.6 17 3 12 3C7 3 3 6.6 3 11C3 15.4 7 19 12 19C12.7 19 13.4 18.9 14 18.8V21.3C16 20 20.5 16.5 21 11.9C21 11.6 21 11.3 21 11Z",fill:"currentColor"}),(0,a.createElement)("path",{d:"M13 23.1V20C7 20.6 2 16.3 2 11C2 6 6.5 2 12 2C17.5 2 22 6 22 11C22 11.3 22 11.6 21.9 12C21.3 17.5 15.6 21.4 14.5 22.2L13 23.1ZM15 17.6V19.3C16.9 17.8 19.6 15.1 20 11.7C20 11.5 20 11.2 20 11C20 7.1 16.4 4 12 4C7.6 4 4 7.1 4 11C4 15.4 8.6 18.9 13.8 17.8L15 17.6Z",fill:"currentColor"}))})),gs=(0,a.memo)((e=>{const{className:t,...n}=e;return(0,a.createElement)("svg",Qo({className:t,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),(0,a.createElement)("circle",{cx:"10",cy:"10",r:"10",fill:"black",fillOpacity:"0.4"}),(0,a.createElement)("ellipse",{cx:"15.5552",cy:"6.66656",rx:"2.22222",ry:"2.22222",fill:"white"}))}));(0,a.memo)((e=>{const{className:t,...n}=e;return(0,a.createElement)("svg",Qo({className:t,width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),(0,a.createElement)("path",{d:"M87.5 48.8281H75V51.1719H87.5V48.8281Z",fill:"black"}),(0,a.createElement)("path",{d:"M25 48.8281H12.5V51.1719H25V48.8281Z",fill:"black"}),(0,a.createElement)("path",{d:"M51.1719 75H48.8281V87.5H51.1719V75Z",fill:"black"}),(0,a.createElement)("path",{d:"M51.1719 12.5H48.8281V25H51.1719V12.5Z",fill:"black"}),(0,a.createElement)("path",{d:"M77.3433 75.6868L69.4082 67.7517L67.7511 69.4088L75.6862 77.344L77.3433 75.6868Z",fill:"black"}),(0,a.createElement)("path",{d:"M32.2457 30.5897L24.3105 22.6545L22.6534 24.3117L30.5885 32.2468L32.2457 30.5897Z",fill:"black"}),(0,a.createElement)("path",{d:"M77.3407 24.3131L75.6836 22.656L67.7485 30.5911L69.4056 32.2483L77.3407 24.3131Z",fill:"black"}),(0,a.createElement)("path",{d:"M32.2431 69.4074L30.5859 67.7502L22.6508 75.6854L24.3079 77.3425L32.2431 69.4074Z",fill:"black"}))}));var vs=(0,a.memo)((e=>{const{className:t,...n}=e;return(0,a.createElement)("svg",Qo({className:t,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),(0,a.createElement)("path",{d:"M22 10V6C22 4.9 21.11 4 20 4H4C2.9 4 2 4.9 2 6V10C3.1 10 4 10.9 4 12C4 13.1 3.1 14 2 14V18C2 19.1 2.9 20 4 20H20C21.11 20 22 19.1 22 18V14C20.89 14 20 13.1 20 12C20 10.9 20.89 10 22 10ZM20 8.54C18.81 9.23 18 10.52 18 12C18 13.48 18.81 14.77 20 15.46V18H4V15.46C5.19 14.77 6 13.48 6 12C6 10.52 5.19 9.23 4 8.54V6H20V8.54Z",fill:"currentColor"}),(0,a.createElement)("path",{opacity:"0.3",d:"M18 12C18 13.48 18.81 14.77 20 15.46V18H4V15.46C5.19 14.77 6 13.48 6 12C6 10.52 5.19 9.23 4 8.54V6H20V8.54C18.81 9.23 18 10.52 18 12Z",fill:"currentColor"}))}));const _s=()=>{const{nextPage:e,currentPageIndex:t,pages:n}=vl(),r=Array.from(n.keys())[t],i=n.get(r).state.getState();return(0,a.createElement)("button",{className:"flex items-center px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus h-14 rounded-none",onClick:e,disabled:!i.ready,type:"button"},(0,re.__)("Next","extendify"),(0,a.createElement)(as,{className:"h-5 w-5"}))},ys=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{data:r,error:a}=te(e,(async e=>{const n=await t(e);if(!n.data)throw console.error(n),new Error("No data returned");return n}),{dedupingInterval:6e4,refreshInterval:0,...n}),i=null==r?void 0:r.data;return{data:i,loading:!i&&!a,error:a}},bs=e=>{let{disabled:t=!1}=e;const{setPage:n}=vl(),r=vl((e=>e.pages)),i=vl((e=>e.currentPageIndex)),o=(0,a.useMemo)((()=>Array.from(r.values()).map(((e,t)=>({...e,pageIndex:t}))).filter((e=>{var t;return null==e||null===(t=e.state.getState())||void 0===t?void 0:t.showInSidebar}))),[r]),s=(0,a.useMemo)((()=>o.reduce(((e,t)=>Math.min(e,t.pageIndex)),1/0)),[o]);return null==o||!o.length||i<s?null:(0,a.createElement)("div",{className:"hidden md:block mt-20"},(0,a.createElement)("h3",{className:"text-sm text-partner-primary-text uppercase"},(0,re.__)("Steps","extendify")),(0,a.createElement)("ul",null,o.map((e=>{var r,o;return(0,a.createElement)("li",{key:null==e||null===(r=e.state.getState())||void 0===r?void 0:r.title,className:Jo()("text-base",{hidden:e.pageIndex>i,"line-through opacity-60":e.pageIndex<i,"hover:opacity-100 hover:no-underline":!t})},(0,a.createElement)("button",{className:Jo()("bg-transparent p-0 text-partner-primary-text flex items-center",{"cursor-pointer":e.pageIndex<i&&!t}),type:"button",disabled:t,onClick:()=>n(null==e?void 0:e.pageIndex)},e.pageIndex<i?(0,a.createElement)(ts,{className:"text-partner-primary-text h-6 w-6 mr-1"}):(0,a.createElement)(us,{className:"text-partner-primary-text h-6 w-6 mr-1"}),null==e||null===(o=e.state.getState())||void 0===o?void 0:o.title))}))))},Es={siteType:{},siteInformation:{title:void 0},feedbackMissingSiteType:"",feedbackMissingGoal:"",exitFeedback:void 0,siteTypeSearch:[],style:null,pages:[],plugins:[],goals:[]},ws=Ho(qo(Fo(((e,t)=>({...Es,setSiteType(t){e({siteType:t})},setSiteInformation(n,r){const a={...t().siteInformation,[n]:r};e({siteInformation:a})},setFeedbackMissingSiteType:t=>e({feedbackMissingSiteType:t}),setFeedbackMissingGoal:t=>e({feedbackMissingGoal:t}),setExitFeedback:t=>e({exitFeedback:t}),has(e,n){return!(null==n||!n.id)&&t()[e].some((e=>e.id===n.id))},add(n,r){t().has(n,r)||e({[n]:[...t()[n],r]})},remove(n,r){var a;e({[n]:null===(a=t()[n])||void 0===a?void 0:a.filter((e=>e.id!==r.id))})},reset(t){e({[t]:[]})},toggle(e,n){t().has(e,n)?t().remove(e,n):t().add(e,n)},setStyle(t){e({style:t})},canLaunch(){var e,n,r,a,i,o,s,l;return(null===(e=Object.keys(null!==(n=null===(r=t())||void 0===r?void 0:r.siteType)&&void 0!==n?n:{}))||void 0===e?void 0:e.length)>0&&(null===(a=Object.keys(null!==(i=null===(o=t())||void 0===o?void 0:o.style)&&void 0!==i?i:{}))||void 0===a?void 0:a.length)>0&&(null===(s=t())||void 0===s||null===(l=s.pages)||void 0===l?void 0:l.length)>0},resetState(){e(Es)}})),{name:"Extendify User Selection"}),{name:"extendify-site-selection",getStorage:()=>localStorage})),xs=()=>{const{previousPage:e,currentPageIndex:t,pages:n}=vl(),{openExitModal:r,setExitButtonHovered:i}=Wo(),o=0===t,s=Array.from(n.keys())[t];return(0,a.createElement)("div",{className:"flex items-center space-x-2"},o&&(0,a.createElement)("div",{className:"fixed top-0 right-0 px-3 md:px-6 py-2"},(0,a.createElement)("button",{className:"flex items-center p-1 text-gray-900 font-medium button-focus md:focus:bg-transparent bg-transparent shadow-none",type:"button",title:(0,re.__)("Exit Launch","extendify"),onMouseEnter:i,onClick:r},(0,a.createElement)("span",{className:"dashicons dashicons-no-alt text-white md:text-black"}))),(0,a.createElement)("div",{className:Jo()("flex flex-1",{"justify-end":"welcome"===s,"justify-between":"welcome"!==s})},o||(0,a.createElement)("button",{className:"flex items-center px-4 py-3 font-medium button-focus text-gray-900 bg-gray-100 hover:bg-gray-200 focus:bg-gray-200 bg-transparent",type:"button",onClick:e},(0,a.createElement)(ds,{className:"h-5 w-5"}),(0,re.__)("Back","extendify")),o&&(0,a.createElement)("button",{className:"flex items-center px-4 py-3 font-medium button-focus text-gray-900 bg-gray-100 hover:bg-gray-200 focus:bg-gray-200 bg-transparent",type:"button",onMouseEnter:i,onClick:r},(0,a.createElement)(ds,{className:"h-5 w-5"}),(0,re.__)("Exit Launch","extendify")),(0,a.createElement)(Ss,null)))},Ss=()=>{const{nextPage:e,currentPageIndex:t,pages:n}=vl(),r=vl((e=>e.count())),i=ws((e=>e.canLaunch())),o=t===r-1,s=Array.from(n.keys())[t],l=n.get(s).state,[c,u]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{var e;return u(null==l||null===(e=l.getState())||void 0===e?void 0:e.ready),l.subscribe((e=>{let{ready:t}=e;return u(t)}))}),[l,t]),i&&o?(0,a.createElement)("button",{className:"px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",onClick:()=>{Wo.setState({generating:!0})},type:"button"},(0,re.__)("Launch site","extendify")):(0,a.createElement)("button",{className:"flex items-center px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",onClick:e,disabled:!c,type:"button"},(0,re.__)("Next","extendify"),(0,a.createElement)(as,{className:"h-5 w-5"}))},Ts=e=>{var t,n,r;let{children:i,includeNav:o=!0}=e;return(0,a.createElement)("div",{className:"flex flex-col md:flex-row"},(0,a.createElement)("div",{className:"bg-partner-primary-bg text-partner-primary-text py-12 px-10 md:h-screen flex flex-col justify-between md:w-40vw md:max-w-md flex-shrink-0"},(0,a.createElement)("div",{className:"max-w-prose md:max-w-sm pr-8"},(0,a.createElement)("div",{className:"md:min-h-48"},(null===(t=window.extOnbData)||void 0===t?void 0:t.partnerLogo)&&(0,a.createElement)("div",{className:"pb-8"},(0,a.createElement)("img",{style:{maxWidth:"200px"},src:window.extOnbData.partnerLogo,alt:null!==(n=null===(r=window.extOnbData)||void 0===r?void 0:r.partnerName)&&void 0!==n?n:""})),i[0]),(0,a.createElement)(bs,{disabled:!o})),(0,a.createElement)("div",{className:"hidden md:flex items-center space-x-3"},(0,a.createElement)("span",{className:"opacity-70 text-xs"},(0,re.__)("Powered by","extendify")),(0,a.createElement)("span",{className:"relative"},(0,a.createElement)(is,{className:"logo text-partner-primary-text w-28"}),(0,a.createElement)("span",{className:"absolute -bottom-2 right-3 font-semibold tracking-tight"},"Launch")))),(0,a.createElement)("div",{className:"flex-grow md:h-screen md:overflow-y-scroll"},o?(0,a.createElement)("div",{className:"pt-12 pb-4 sticky top-0 bg-white z-50 w-full px-4 xl:px-0"},(0,a.createElement)("div",{className:"max-w-onboarding-content mx-auto"},(0,a.createElement)(xs,null))):null,(0,a.createElement)("div",{className:"mt-8 mb-8 xl:mb-12 flex justify-center max-w-onboarding-content mx-auto px-4 xl:px-0"},i[1])))},ks=(e,t)=>Ho(Fo(t,{name:`Extendify Launch ${e}`})),Cs=()=>El.get("onboarding/goals"),Ns=()=>({key:"goals"}),Rs=ks("Goals",(()=>({title:(0,re.__)("Goals","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>{const{feedbackMissingGoal:e,goals:t}=ws.getState();return!(null!=e&&e.length)&&0===(null==t?void 0:t.length)}}))),Ds=async()=>({data:{title:await Cl("blogname")}}),Os=()=>({key:"site-info"}),Ls=ks("Site Title",(()=>({title:(0,re.__)("Site Title","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>{}})));var Ms=window.wp.blockEditor,Ps=window.wp.blocks,Is=n(767),Bs=n.n(Is);const Us=s.createContext({});function js({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:a,circle:i,direction:o,duration:s,enableAnimation:l=!0}){const c={};return"rtl"===o&&(c["--animation-direction"]="reverse"),"number"==typeof s&&(c["--animation-duration"]=`${s}s`),l||(c["--pseudo-element-display"]="none"),"string"!=typeof n&&"number"!=typeof n||(c.width=n),"string"!=typeof r&&"number"!=typeof r||(c.height=r),"string"!=typeof a&&"number"!=typeof a||(c.borderRadius=a),i&&(c.borderRadius="50%"),void 0!==e&&(c["--base-color"]=e),void 0!==t&&(c["--highlight-color"]=t),c}function As({count:e=1,wrapper:t,className:n,containerClassName:r,containerTestId:a,circle:i=!1,style:o,...l}){var c,u,d;const f=s.useContext(Us),p={...l};for(const[e,t]of Object.entries(l))void 0===t&&delete p[e];const h={...f,...p,circle:i},m={...o,...js(h)};let g="react-loading-skeleton";n&&(g+=` ${n}`);const v=null!==(c=h.inline)&&void 0!==c&&c,_=[],y=Math.ceil(e);for(let t=0;t<y;t++){let n=m;if(y>e&&t===y-1){const t=null!==(u=n.width)&&void 0!==u?u:"100%",r=e%1,a="number"==typeof t?t*r:`calc(${t} * ${r})`;n={...n,width:a}}const r=s.createElement("span",{className:g,style:n,key:t},"");v?_.push(r):_.push(s.createElement(s.Fragment,{key:t},r,s.createElement("br",null)))}return s.createElement("span",{className:r,"data-testid":a,"aria-live":"polite","aria-busy":null===(d=h.enableAnimation)||void 0===d||d},t?_.map(((e,n)=>s.createElement(t,{key:n},e))):_)}function $s({children:e,...t}){return s.createElement(Us.Provider,{value:t},e)}const Gs=e=>{var t,n;let{theme:r,context:i}=e;const[o,s]=(0,a.useState)(),l=null!==(t=null==r?void 0:r.color)&&void 0!==t?t:"#000000",c=null!==(n=null==r?void 0:r.bgColor)&&void 0!==n?n:"#cccccc";return(0,a.useEffect)((()=>{const e=requestAnimationFrame((()=>{if(null==r||!r.color)return;const e=Bs()(l).isLight()?Ys(Bs()(l),.15).hexa():Fs(Bs()(l),.15).hexa();s(e)}));return()=>cancelAnimationFrame(e)}),[l,c,null==r?void 0:r.color]),(0,a.createElement)("div",{className:Jo()({"group w-full overflow-hidden relative min-h-full button-focus button-card":"style"===i})},(0,a.createElement)(Xe,{appear:!0,show:!o,leave:"transition-opacity duration-1000",leaveFrom:"opacity-100",leaveTo:"opacity-0",className:"absolute inset-0 z-10 bg-white"},(0,a.createElement)("div",{className:Jo()({"m-2 p-2 pt-1":"style"===i,"p-2":"style"!==i})},(0,a.createElement)(Hs,{highlightColor:"hsl(0deg 0% 75%)",color:"hsl(0deg 0% 80%)"}))),Boolean(o)&&(0,a.createElement)("div",{className:"overflow-hidden absolute inset-0 opacity-30",style:{zIndex:-1}},(0,a.createElement)("div",{className:Jo()({"m-2 p-2 pt-1":"style"===i,"p-2":"style"!==i}),style:{backgroundColor:c,textAlign:"initial"}},(0,a.createElement)(Hs,{highlightColor:o,color:l}))))},Hs=e=>{let{color:t,highlightColor:n}=e;return(0,a.createElement)($s,{duration:2.3,baseColor:t,highlightColor:n},(0,a.createElement)(As,{className:"h-36 mb-5 rounded-none"}),(0,a.createElement)("div",{className:"flex flex-col items-center"},(0,a.createElement)("div",null,(0,a.createElement)(As,{className:"w-28 h-4 mb-1 rounded-none"})),(0,a.createElement)("div",null,(0,a.createElement)(As,{className:"w-44 h-4 mb-1 rounded-none"})),(0,a.createElement)("div",null,(0,a.createElement)(As,{className:"w-12 h-6 mb-1 rounded-none"}))),(0,a.createElement)("div",{className:"px-4"},(0,a.createElement)(As,{className:"h-24 my-5 rounded-none"}),(0,a.createElement)("div",{className:"flex justify-between gap-4"},(0,a.createElement)("div",null,(0,a.createElement)("div",null,(0,a.createElement)(As,{className:"w-40 h-4 mb-1 rounded-none"})),(0,a.createElement)("div",null,(0,a.createElement)(As,{className:"w-40 h-4 mb-1 rounded-none"})),(0,a.createElement)("div",null,(0,a.createElement)(As,{className:"w-40 h-4 mb-1 rounded-none"}))),(0,a.createElement)("div",null,(0,a.createElement)("div",null,(0,a.createElement)(As,{className:"w-24 h-4 mb-1 rounded-none"})),(0,a.createElement)("div",null,(0,a.createElement)(As,{className:"w-24 h-4 mb-1 rounded-none"}))))))},Fs=(e,t)=>{const n=e.lightness();return e.lightness(n+(100-n)*t)},Ys=(e,t)=>{const n=e.lightness();return e.lightness(n-n*t)},Vs=e=>{var t,n;return[null==e||null===(t=e.template)||void 0===t?void 0:t.code,null==e||null===(n=e.template)||void 0===n?void 0:n.code2].filter(Boolean).join("")},qs=async(e,t,n)=>{if(n.dryRun)return new Promise((e=>setTimeout(e,t)));const r=Date.now();try{return await Promise.all([await e(),new Promise((e=>setTimeout(e,t)))])}catch(e){return console.error(e),await new Promise((e=>setTimeout(e,Math.max(0,t-(Date.now()-r)))))}},zs=async e=>{if(!e)return"{}";const t=await Tl(JSON.stringify(e));if(null==t||!t.styles)throw new Error("Invalid theme json");return{data:t.styles}},Ws=e=>{var t,n,r,i,o,s,l;let{style:c,onSelect:u,blockHeight:d,context:f,active:p=!1,onHover:h=null}=e;const m=ws((e=>e.siteType)),g=(()=>{const e=(0,a.useRef)(!1);return(0,a.useEffect)((()=>(e.current=!0,()=>e.current=!1))),e})(),[v,_]=(0,a.useState)(""),[y,b]=(0,a.useState)(!1),[E,w]=(0,a.useState)(0),[x,S]=(0,a.useState)(null),[T,k]=(0,a.useState)(!1),[C,N]=(0,a.useState)(null),[R,D]=(0,a.useState)(),O=(0,a.useRef)(null),L=(0,a.useRef)(null),M=(0,a.useRef)(null),P=(0,a.useRef)(null),I=(0,a.useRef)(!1),{data:B}=ys(T&&R?R:null,zs),{data:U}=ys("variations",Ml),j=null==R||null===(t=R.settings)||void 0===t||null===(n=t.color)||void 0===n||null===(r=n.palette)||void 0===r?void 0:r.theme,A=(0,a.useMemo)((()=>{return(0,Ps.rawHandler)({HTML:(e=v,e.replace(/\w+:\/\/\S*(w=(\d*))&\w+\S*"/g,((e,t,n)=>e.replace(t,"w="+Math.floor(Number(n))+"&q=10"))))});var e}),[v]),$=(0,a.useMemo)((()=>B?(0,Ms.transformStyles)([{css:B}],".editor-styles-wrapper"):null),[B]);return(0,a.useEffect)((()=>{if(x||!T)return;const e=setTimeout((()=>{const e=O.current,t=null==e?void 0:e.querySelector("iframe[title]");if(!t)return w((e=>e+1));S(t)}),100);return()=>clearTimeout(e)}),[x,T,E]),(0,a.useLayoutEffect)((()=>{var e,t;if(!T||!f.measure)return;const n=`${f.type}-${f.detail}`;if(!y&&!I.current)return I.current=0,void(P.current=performance.now());let r;try{r=performance.measure(n,{start:P.current,detail:{context:f,extendify:!0}})}catch(e){console.error(e)}I.current=null!==(e=null===(t=r)||void 0===t?void 0:t.duration)&&void 0!==e?e:0;const a=new URLSearchParams(window.location.search);var i;null!=a&&a.has("performance")&&I.current&&console.info(`🚀 ${i=f.type,i.charAt(0).toUpperCase()+i.slice(1).toLowerCase()} (${f.detail}) in ${I.current.toFixed()}ms`)}),[y,f,T]),(0,a.useEffect)((()=>{if(null==U||!U.length)return;const e=U.find((e=>e.title===c.label));D(e)}),[c,U]),(0,a.useEffect)((()=>{if(!B||null==c||!c.code)return;const e=[null==c?void 0:c.headerCode,null==c?void 0:c.code,null==c?void 0:c.footerCode].filter(Boolean).join("").replace(/<!-- wp:navigation[.\S\s]*?\/wp:navigation -->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Home | About | Contact</p >\x3c!-- /wp:paragraph --\x3e').replace(/<!-- wp:navigation.*\/-->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Home | About | Contact</p >\x3c!-- /wp:paragraph --\x3e');_(e)}),[null==m?void 0:m.slug,B,c]),(0,a.useEffect)((()=>{var e;if(!x||!y)return;let t,n;const r=O.current,a=r.offsetWidth/1400,i=x.contentDocument.body;null!=i&&i.style&&(i.style.transitionProperty="all",i.style.top=0),null===(e=i.querySelector("[href*=load-styles]"))||void 0===e||e.remove();const o=()=>{var e,n;if(null==i||!i.offsetHeight)return;const r=(null!==(e=null==L||null===(n=L.current)||void 0===n?void 0:n.offsetHeight)&&void 0!==e?e:d)-32,o=i.getBoundingClientRect().height-r/a;i.style.transitionDuration=Math.max(2*o,3e3)+"ms",t=window.requestAnimationFrame((()=>{i.style.top=-1*Math.max(0,o)+"px"}))},s=()=>{var e,t;if(null==i||!i.offsetHeight)return;const r=(null!==(e=null==L||null===(t=L.current)||void 0===t?void 0:t.offsetHeight)&&void 0!==e?e:d)-32,o=i.offsetHeight-r/a;i.style.transitionDuration=o+"ms",n=window.requestAnimationFrame((()=>{i.style.top=0}))};return r.addEventListener("focus",o),r.addEventListener("mouseenter",o),r.addEventListener("blur",s),r.addEventListener("mouseleave",s),()=>{window.cancelAnimationFrame(t),window.cancelAnimationFrame(n),r.removeEventListener("focus",o),r.removeEventListener("mouseenter",o),r.removeEventListener("blur",s),r.removeEventListener("mouseleave",s)}}),[d,y,x]),(0,a.useEffect)((()=>{if(null==A||!A.length||!x)return;let e,t;const n=()=>{const n=x.contentDocument,r=`<style id="ext-tj">${$}</style>`;var a;null!=n&&n.getElementById("ext-tj")||null==n||null===(a=n.head)||void 0===a||a.insertAdjacentHTML("beforeend",r),t=setTimeout((()=>g.current&&b(!0)),100),clearTimeout(e)};return x.addEventListener("load",n),e=setTimeout(n,2e3),()=>{null==x||x.removeEventListener("load",n),[t].forEach((e=>clearTimeout(e)))}}),[A,$,g,T,x]),(0,a.useEffect)((()=>{if(!M.current)return M.current=new IntersectionObserver((e=>{e[0].isIntersecting&&k(!0)})),M.current.observe(L.current),()=>M.current.disconnect()}),[]),(0,a.createElement)(a.Fragment,null,y&&v?null:(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"absolute inset-0 z-20 flex items-center justify-center"},(0,a.createElement)(Gs,{context:"style",theme:{color:null==j||null===(i=j.find((e=>"foreground"===e.slug)))||void 0===i?void 0:i.color,bgColor:null==j||null===(o=j.find((e=>"background"===e.slug)))||void 0===o?void 0:o.color}}))),(0,a.createElement)("div",{ref:L,role:u?"button":void 0,tabIndex:u?0:void 0,"aria-label":u?(0,re.__)("Press to select","extendify"):void 0,className:Jo()("group w-full overflow-hidden bg-transparent z-10",{"relative min-h-full":y,"absolute opacity-0":!y,"button-focus button-card p-2":u,"ring-partner-primary-bg ring-offset-2 ring-offset-white ring-wp":p}),onKeyDown:e=>{["Enter","Space"," "].includes(e.key)&&u&&u({...c,variation:R})},onMouseEnter:()=>{h&&N(h)},onMouseLeave:()=>{C&&(C(),N(null))},onClick:u?()=>u({...c,variation:R}):()=>{}},null!==(s=window)&&void 0!==s&&null!==(l=s.extOnbData)&&void 0!==l&&l.devbuild?(0,a.createElement)("div",{className:"-m-px absolute bg-gray-900 border border-t border-white bottom-0 group-hover:opacity-100 left-0 opacity-0 p-1 px-4 text-left text-sm text-white z-30 transition duration-300"},null==c?void 0:c.label," - ",Number(I.current).toFixed(2),"ms"):null,(0,a.createElement)("div",{ref:O,className:"relative rounded-lg"},T?(0,a.createElement)(Ms.BlockPreview,{blocks:A,viewportWidth:1400,live:!1}):null)))},Zs=e=>Xo(e),Js=e=>{let{page:t,blockHeight:n,required:r=!1,displayOnly:i=!1,title:o=""}=e;const{siteType:s,style:l,toggle:c,has:u}=ws(),d="home"===(null==t?void 0:t.slug),{data:f}=ys({siteType:s.slug,layoutType:t.slug,baseLayout:d?s.slug.startsWith("blog")?null==l?void 0:l.blogBaseLayout:null==l?void 0:l.homeBaseLayout:null,kit:"home"!==t.slug?null==l?void 0:l.kit:null},Zs);return i?(0,a.createElement)("div",{className:"text-base p-2 bg-transparent overflow-hidden rounded-lg border border-gray-100",style:{height:n}},o&&(0,a.createElement)("div",{className:"p-3 pb-0 bg-white text-left"},o),(0,a.createElement)(Xs,{key:null==l?void 0:l.recordId,page:t,measure:!1,blockHeight:n,style:{...l,code:Vs({template:f})}})):(0,a.createElement)("div",{role:"button",tabIndex:0,"aria-label":(0,re.__)("Press to select","extendify"),disabled:r,className:"text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100 button-focus",onClick:()=>r||c("pages",t),title:r&&o?(0,re.sprintf)((0,re.__)("%s page is required","extendify"),o):(0,re.sprintf)((0,re.__)("Toggle %s page","extendify"),o),onKeyDown:e=>{["Enter","Space"," "].includes(e.key)&&(r||c("pages",t))}},(0,a.createElement)("div",{className:"border-gray-100 border-b-0 min-w-sm z-30 relative bg-white pt-3 px-3 pb-1.5 flex justify-between items-center"},o&&(0,a.createElement)("div",{className:Jo()("flex items-center",{"text-gray-700":!u("pages",t)})},(0,a.createElement)("span",{className:"text-left"},o),r&&(0,a.createElement)("span",{className:"w-4 h-4 text-base leading-none pl-2 mr-6 dashicons dashicons-lock"})),u("pages",t)?(0,a.createElement)("div",{className:Jo()("w-5 h-5 rounded-sm",{"bg-gray-700":r,"bg-partner-primary-bg":!r})},(0,a.createElement)(ts,{className:"text-white w-5"})):(0,a.createElement)("div",{className:Jo()("border w-5 h-5 rounded-sm",{"border-gray-700":r,"border-partner-primary-bg":!r})})),(0,a.createElement)("div",{className:"p-2 relative",style:{height:n-44}},(0,a.createElement)(Xs,{key:null==l?void 0:l.recordId,page:t,blockHeight:n,style:{...l,code:Vs({template:f})}})))},Xs=e=>{let{page:t,style:n,measure:r=!0,blockHeight:i=!1}=e;const o=(0,a.useMemo)((()=>({type:"page",detail:t.slug,measure:r})),[t,r]);return(0,a.createElement)(Ws,{style:n,context:o,blockHeight:i})},Ks=async()=>{var e,t;const n=await El.get("onboarding/layout-types"),r=null!==(e=null==n?void 0:n.data)&&void 0!==e?e:[];if(null==r||!r.length)throw new Error("Error fetching pages");const a=r[0],i=null===(t=r.slice(1))||void 0===t?void 0:t.sort(((e,t)=>e.title>t.title?1:-1));return{data:[a,...null!=i?i:[]]}},Qs=()=>({key:"layout-types"}),el=ks("Pages",((e,t)=>({title:(0,re.__)("Pages","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>{var e,n;return(null===(e=ws.getState().pages)||void 0===e?void 0:e.length)===(null===(n=t().default)||void 0===n?void 0:n.length)}}))),tl=e=>(async e=>{var t;const n=await El.get("onboarding/styles",{params:e}),{headers:r,footers:a}=await Ol();if(null==n||null===(t=n.data)||void 0===t||!t.length)throw new Error("Could not get styles");return{data:n.data.map((e=>{var t,n,i,o,s,l;const c=null==r?void 0:r.find((t=>{var n;return null!==(n=(null==t?void 0:t.slug)===(null==e?void 0:e.headerSlug))&&void 0!==n?n:"header"})),u=null==a?void 0:a.find((t=>{var n;return null!==(n=(null==t?void 0:t.slug)===(null==e?void 0:e.footerSlug))&&void 0!==n?n:"footer"}));return{...e,headerCode:null!==(t=null==c||null===(n=c.content)||void 0===n||null===(i=n.raw)||void 0===i?void 0:i.trim())&&void 0!==t?t:"",footerCode:null!==(o=null==u||null===(s=u.content)||void 0===s||null===(l=s.raw)||void 0===l?void 0:l.trim())&&void 0!==o?o:""}}))}})(e),nl=e=>{var t,n,r,a,i;return{key:"site-style",siteType:null!==(n=null===(r=e=null!==(t=e)&&void 0!==t?t:null==ws?void 0:ws.getState().siteType)||void 0===r?void 0:r.slug)&&void 0!==n?n:"default",styles:null!==(a=null===(i=e)||void 0===i?void 0:i.styles)&&void 0!==a?a:[]}},rl=ks("Design",((e,t)=>({title:(0,re.__)("Design","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>{var e,n;return(null===(e=ws.getState().style)||void 0===e?void 0:e.slug)===(null===(n=t().default)||void 0===n?void 0:n.slug)}}))),al=e=>{var t,n;let{style:r}=e;const i=(0,a.useCallback)((e=>{ws.getState().setStyle(e)}),[]),o=(0,a.useMemo)((()=>({type:"style",detail:r.slug,measure:!0})),[r]);return(0,a.createElement)("div",{className:"relative",style:{height:497,width:352}},(0,a.createElement)(Ws,{style:r,context:o,onSelect:i,active:(null===(t=ws.getState())||void 0===t||null===(n=t.style)||void 0===n?void 0:n.slug)===r.slug,blockHeight:497}))},il=e=>{let{label:t,slug:n,description:r,checked:i,onChange:o}=e;return(0,a.createElement)("label",{className:"flex items-baseline hover:text-partner-primary-bg focus-within:text-partner-primary-bg",htmlFor:n},(0,a.createElement)("span",{className:"w-5 h-5 relative inline-block mr-3 align-middle"},(0,a.createElement)("input",{id:n,className:"h-5 w-5 rounded-sm m-0",type:"checkbox",onChange:o,defaultChecked:i}),(0,a.createElement)("svg",{className:"absolute block h-5 inset-0 w-5 text-white",viewBox:"1 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},(0,a.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))),(0,a.createElement)("span",null,(0,a.createElement)("span",{className:"text-base"},t),r?(0,a.createElement)("span",{className:"block pt-1"},r):(0,a.createElement)("span",null)))},ol=()=>El.get("onboarding/suggested-plugins"),sl=()=>({key:"plugins"}),ll=()=>{var e;const{data:t}=ys(sl,ol),{goals:n,add:r,toggle:i,remove:o}=ws(),s=(0,a.useMemo)((()=>null==n||!n.length||!(null!=n&&n.find((e=>null==t?void 0:t.some((t=>{var n;return null==t||null===(n=t.goals)||void 0===n?void 0:n.includes(null==e?void 0:e.slug)})))))),[n,t]),l=(0,a.useCallback)((e=>{if(s)return!0;const t=n.map((e=>e.slug));return null==e?void 0:e.goals.find((e=>t.includes(e)))}),[n,s]);return(0,a.useEffect)((()=>{var e;null==t||t.forEach((e=>o("plugins",e))),s||null==t||null===(e=t.filter(l))||void 0===e||e.forEach((e=>r("plugins",e)))}),[t,r,s,l,o]),(0,a.createElement)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4"},null==t||null===(e=t.filter(l))||void 0===e?void 0:e.map((e=>(0,a.createElement)("div",{key:e.id},(0,a.createElement)(il,{label:e.name,slug:e.wordpressSlug,description:e.description,checked:!s,onChange:()=>i("plugins",e)})))))},cl=ks("Site Summary",(()=>({title:(0,re.__)("Summary","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>!0}))),ul=()=>El.get("onboarding/site-types"),dl=()=>({key:"site-types"}),fl=ks("Site Industry",((e,t)=>({title:(0,re.__)("Site Industry","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>{var e,n,r;return(null===(e=ws.getState())||void 0===e||null===(n=e.siteType)||void 0===n?void 0:n.slug)===(null===(r=t().default)||void 0===r?void 0:r.slug)}}))),pl=e=>{let{option:t,selectSiteType:n}=e;const r=(0,a.useRef)(0);return(0,a.createElement)("button",{onClick:()=>{n(t)},onMouseEnter:()=>{window.clearTimeout(r.current),r.current=window.setTimeout((()=>{const e=()=>nl(t);q(e,(t=>null!=t&&t.length?t:tl(e())))}),100)},onMouseLeave:()=>{window.clearTimeout(r.current)},className:"flex border border-gray-800 hover:text-partner-primary-bg focus:text-partner-primary-bg items-center justify-between mb-3 p-4 py-3 relative w-full button-focus bg-transparent"},(0,a.createElement)("span",{className:"text-left"},t.title),(0,a.createElement)(as,null))},hl=[["site-type",{component:()=>{const{nextPage:e}=vl(),t=ws((e=>e.siteType)),n=ws((e=>e.feedbackMissingSiteType)),[r,i]=(0,a.useState)(""),o=(0,a.useRef)(null),{data:s,loading:l}=ys(dl,ul),c=null==s?void 0:s.filter((e=>{const{title:t}=e,n=null==r?void 0:r.toLowerCase();return n?t.toLowerCase().indexOf(n)>-1||void 0:null==e?void 0:e.featured}));(0,a.useEffect)((()=>{fl.setState({ready:!l})}),[l]),(0,a.useEffect)((()=>{const e=requestAnimationFrame((()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.focus()}));return()=>cancelAnimationFrame(e)}),[o]),(0,a.useEffect)((()=>{if(l)return;if(null!=t&&t.slug)return;const e=null==s?void 0:s.find((e=>"default"===e.slug));if(e){const t={label:e.title,recordId:e.id,slug:e.slug};ws.getState().setSiteType(t),fl.setState({default:t})}}),[l,null==t?void 0:t.slug,s]),(0,a.useEffect)((()=>{if(!r)return;const e=setTimeout((()=>{ws.setState({siteTypeSearch:[...ws.getState().siteTypeSearch,r]})}),500);return()=>clearTimeout(e)}),[r]);const u=async t=>{ws.getState().setSiteType({label:t.title,recordId:t.id,slug:t.slug,styles:t.styles}),await kl("extendify_siteType",t),e()};return(0,a.createElement)(Ts,null,(0,a.createElement)("div",null,(0,a.createElement)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0"},(0,re.__)("Welcome to your WordPress site","extendify")),(0,a.createElement)("p",{className:"text-base opacity-70 mb-0"},(0,re.__)("Design and launch your site with this guided experience, or head right into the WordPress dashboard if you know your way around.","extendify"))),(0,a.createElement)("div",{className:"w-full relative max-w-onboarding-sm mx-auto"},(0,a.createElement)("div",{className:"sticky bg-white top-10 z-40 pt-9 pb-3 mb-2"},(0,a.createElement)("div",{className:"mb-4"},(0,a.createElement)("h2",{className:"text-lg m-0 text-gray-900"},(0,re.__)("What is your site about?","extendify"))),(0,a.createElement)("div",{className:"mx-auto search-panel flex items-center justify-center relative mb-6"},(0,a.createElement)("input",{ref:o,type:"text",className:"w-full bg-gray-100 h-12 pl-4 input-focus rounded-none ring-offset-0 focus:bg-white",value:r,onChange:e=>i(e.target.value),placeholder:(0,re.__)("Search...","extendify")}),(0,a.createElement)(ps,{className:"icon-search"})),l&&(0,a.createElement)("p",null,(0,re.__)("Loading...","extendify"))),(null==c?void 0:c.length)>0&&(0,a.createElement)("div",{className:"relative"},c.map((e=>(0,a.createElement)(pl,{key:e.id,selectSiteType:u,option:e})))),!l&&0===(null==c?void 0:c.length)&&(0,a.createElement)("div",{className:"mx-auto w-full"},(0,a.createElement)("div",{className:"uppercase"},(0,re.__)("No Results","extendify")),(()=>{var e,t;return"A"===(null===(e=window.extOnbData)||void 0===e||null===(t=e.activeTests)||void 0===t?void 0:t["remove-dont-see-inputs"])})()&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)("h2",{className:"text-lg mt-12 mb-4 text-gray-900"},(0,re.__)("Don't see what you're looking for?","extendify")),(0,a.createElement)("div",{className:"search-panel flex items-center justify-center relative"},(0,a.createElement)("input",{type:"text",className:"w-full bg-gray-100 h-12 pl-4 input-focus rounded-none ring-offset-0 focus:bg-white",value:n,onChange:e=>ws.getState().setFeedbackMissingSiteType(e.target.value),placeholder:(0,re.__)("Describe your site...","extendify")}))))))},fetcher:ul,fetchData:dl,state:fl}],["goals",{component:()=>{const{data:e,loading:t}=ys(Ns,Cs),{toggle:n,has:r}=ws(),{feedbackMissingGoal:i,setFeedbackMissingGoal:o,goals:s}=ws(),l=vl((e=>e.nextPage)),c=(0,a.useRef)(),u=s.map((e=>e.slug)),d={BarChart:es,Design:ns,Donate:rs,OpenEnvelope:os,Pencil:ss,Planner:ls,PriceTag:cs,School:fs,Shop:hs,Speech:ms,Ticket:vs};return(0,a.useEffect)((()=>{t||Rs.setState({ready:!0})}),[t]),(0,a.useEffect)((()=>{if(!c.current)return;const e=requestAnimationFrame((()=>{var e,t;return null===(e=c.current)||void 0===e||null===(t=e.querySelector("input"))||void 0===t?void 0:t.focus()}));return()=>cancelAnimationFrame(e)}),[c]),(0,a.createElement)(Ts,null,(0,a.createElement)("div",null,(0,a.createElement)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0"},(0,re.__)("What do you want to accomplish with this new site?","extendify")),(0,a.createElement)("p",{className:"text-base opacity-70 mb-0"},(0,re.__)("You can change these later.","extendify"))),(0,a.createElement)("div",{className:"w-full"},(0,a.createElement)("h2",{className:"text-lg m-0 mb-4 text-gray-900"},(0,re.__)("Select the goals relevant to your site:","extendify")),t?(0,a.createElement)("p",null,(0,re.__)("Loading...","extendify")):(0,a.createElement)("form",{onSubmit:e=>{e.preventDefault(),l()},className:"w-full grid lg:grid-cols-2 gap-4 goal-select"},(0,a.createElement)("input",{type:"submit",className:"hidden"}),null==e?void 0:e.map(((e,t)=>{const i=u.includes(e.slug),o=d[e.icon];return(0,a.createElement)("div",{key:e.id,className:Jo()("relative border rounded-lg",{"border-gray-800":!i,"border-partner-primary-bg":i}),ref:0===t?c:void 0},(0,a.createElement)("div",{className:Jo()("absolute inset-0 pointer-events-none",{"bg-partner-primary-bg":i}),style:{opacity:"0.04"}}),(0,a.createElement)("div",{className:"flex items-center gap-4 h-full"},(0,a.createElement)(Ko,{label:e.title,slug:`goal-${e.slug}`,description:e.description,checked:r("goals",e),onChange:()=>{n("goals",e)},Icon:o})))}))),!t&&(()=>{var e,t;return"A"===(null===(e=window.extOnbData)||void 0===e||null===(t=e.activeTests)||void 0===t?void 0:t["remove-dont-see-inputs"])})()&&(0,a.createElement)("div",{className:"max-w-onboarding-sm"},(0,a.createElement)("h2",{className:"text-lg mt-12 mb-4 text-gray-900"},(0,re.__)("Don't see what you're looking for?","extendify")),(0,a.createElement)("div",{className:"search-panel flex items-center justify-center relative gap-4"},(0,a.createElement)("input",{type:"text",className:"w-full bg-gray-100 h-14 pl-5 input-focus rounded-none ring-offset-0 focus:bg-white",value:i,onChange:e=>o(e.target.value),placeholder:(0,re.__)("Add your goals...","extendify")}),(0,a.createElement)("div",{className:Jo()({visible:i,invisible:!i})},(0,a.createElement)(_s,null))))))},fetcher:Cs,fetchData:Ns,state:Rs}],["style",{component:()=>{const{data:e,loading:t}=ys(nl,tl),n=(0,a.useRef)(!1),r=(0,a.useRef)(),i=(()=>{const e=(0,a.useRef)(!1);return(0,a.useLayoutEffect)((()=>(e.current=!0,()=>e.current=!1))),e})(),[o,s]=(0,a.useState)([]);return(0,a.useEffect)((()=>{rl.setState({ready:!t})}),[t]),(0,a.useEffect)((()=>{null!=e&&e.length&&(async()=>{for(const t of e){if(!i.current)return;s((e=>[...e,t])),await new Promise((e=>setTimeout(e,1e3)))}})()}),[e,i]),(0,a.useEffect)((()=>{null!=o&&o.length&&!ws.getState().style&&(ws.getState().setStyle(o[0]),rl.setState({default:o[0]}))}),[o]),(0,a.useEffect)((()=>{var e,t;null!=o&&o.length&&!n.current&&(n.current=!0,null==r||null===(e=r.current)||void 0===e||null===(t=e.querySelector("[role=button]"))||void 0===t||t.focus())}),[o]),(0,a.createElement)(Ts,null,(0,a.createElement)("div",null,(0,a.createElement)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0"},(0,re.__)("Now pick a design for your new site.","extendify")),(0,a.createElement)("p",{className:"text-base opacity-70 mb-0"},(0,re.__)("You can personalize this later.","extendify"))),(0,a.createElement)("div",{className:"w-full"},(0,a.createElement)("h2",{className:"text-lg m-0 mb-4 text-gray-900"},t?(0,re.__)("Please wait a moment while we generate style previews...","extendify"):(0,re.__)("Pick your style","extendify")),(0,a.createElement)("div",{ref:r,className:"flex gap-6 flex-wrap justify-center"},null==o?void 0:o.map((e=>(0,a.createElement)(al,{key:e.recordId,style:e}))),null==e?void 0:e.slice(null==o?void 0:o.length).map((e=>(0,a.createElement)("div",{key:e.slug,style:{height:497,width:352},className:"lg:flex gap-6 relative"},(0,a.createElement)(Gs,{context:"style"})))))))},state:rl}],["pages",{component:()=>{const{data:e}=ys(Qs,Ks),[t,n]=(0,a.useState)([]),{add:r,goals:i,reset:o}=ws(),s=function(){const e=(0,a.useRef)(!1);return(0,a.useEffect)((()=>(e.current=!0,()=>e.current=!1))),e}();return(0,a.useEffect)((()=>{(null==t?void 0:t.length)===(null==e?void 0:e.length)&&el.setState({ready:!0})}),[null==e?void 0:e.length,null==t?void 0:t.length]),(0,a.useEffect)((()=>{if(null==e||!e.length)return;const t=e.filter((e=>{var t,n,r;return null==i||!i.length||null==e||null===(t=e.goals)||void 0===t||!t.length||null===(n=null==e||null===(r=e.goals)||void 0===r?void 0:r.some((e=>i.some((t=>e==t.id)))))||void 0===n||n}));(async()=>{for(const e of t){if(!s.current)return;n((t=>[...t,e])),await new Promise((e=>setTimeout(e,100)))}el.setState({ready:!0})})()}),[e,i,s]),(0,a.useEffect)((()=>{o("pages"),null==t||t.map((e=>r("pages",e))),el.setState({default:t})}),[t,r,o]),(0,a.createElement)(Ts,null,(0,a.createElement)("div",null,(0,a.createElement)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0"},(0,re.__)("What pages do you want on this site?","extendify")),(0,a.createElement)("p",{className:"text-base opacity-70 mb-0"},(0,re.__)("You may add more later","extendify"))),(0,a.createElement)("div",{className:"w-full"},(0,a.createElement)("h2",{className:"text-lg m-0 mb-4 text-gray-900"},(0,re.__)("Pick the pages you'd like to add to your site","extendify")),(0,a.createElement)("div",{className:"flex gap-6 flex-wrap justify-center"},null==t?void 0:t.map((e=>{if("home"!==e.slug)return(0,a.createElement)("div",{className:"relative",style:{height:541,width:352},key:e.id},(0,a.createElement)(Js,{required:"home"===(null==e?void 0:e.slug),page:e,title:null==e?void 0:e.title,blockHeight:541}))})))))},fetcher:Ks,fetchData:Qs,state:el}],["site-title",{component:()=>{const{setSiteInformation:e,siteInformation:t}=ws(),n=(0,a.useRef)(null),r=vl((e=>e.nextPage)),{data:i}=ys(Os,Ds);return(0,a.useEffect)((()=>{void 0===(null==t?void 0:t.title)&&e("title",i.title)}),[i,e,null==t?void 0:t.title]),(0,a.useEffect)((()=>{if(void 0===(null==t?void 0:t.title))return;if(Ls.getState().ready)return;Ls.setState({ready:!0});const e=requestAnimationFrame((()=>n.current.focus()));return()=>cancelAnimationFrame(e)}),[null==t?void 0:t.title]),void 0===(null==t?void 0:t.title)?(0,re.__)("Loading...","extendify"):(0,a.createElement)(Ts,null,(0,a.createElement)("div",null,(0,a.createElement)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0"},(0,re.__)("What's the name of your new site?","extendify")),(0,a.createElement)("p",{className:"text-base opacity-70 mb-0"},(0,re.__)("You can change this later.","extendify"))),(0,a.createElement)("div",{className:"w-full max-w-onboarding-sm mx-auto"},(0,a.createElement)("form",{onSubmit:e=>{e.preventDefault(),r()}},(0,a.createElement)("label",{htmlFor:"extendify-site-title-input",className:"block text-lg m-0 mb-4 font-semibold text-gray-900"},(0,re.__)("What's the name of your site?","extendify")),(0,a.createElement)("div",{className:"mb-8"},(0,a.createElement)("input",{autoComplete:"off",ref:n,type:"text",name:"site-title-input",id:"extendify-site-title-input",className:"w-96 max-w-full border h-12 input-focus",value:t.title,onChange:t=>{e("title",t.target.value)},placeholder:(0,re.__)("Enter your preferred site title...","extendify")})))))},fetcher:Ds,fetchData:Os,state:Ls}],["confirmation",{component:()=>{const{siteType:e,style:t,pages:n,goals:r}=ws(),i=vl((e=>e.setPage));return(0,a.createElement)(Ts,null,(0,a.createElement)("div",null,(0,a.createElement)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0"},(0,re.__)("Let's launch your site!","extendify")),(0,a.createElement)("p",{className:"text-base mb-0"},(0,re.__)("Review your site configuration.","extendify"))),(0,a.createElement)("div",{className:"w-full"},(0,a.createElement)("div",{className:"flex flex-col gap-y-12"},(0,a.createElement)("div",{className:"block"},(0,a.createElement)("h2",{className:"text-lg m-0 mb-4 text-gray-900"},(0,re.__)("Design","extendify")),null!=t&&t.label?(0,a.createElement)("div",{className:"overflow-hidden rounded-lg relative"},(0,a.createElement)("span",{"aria-hidden":"true",className:"absolute top-0 bottom-0 left-3/4 right-0 z-40 bg-gradient-to-l from-white pointer-events-none"}),n.length>0&&(0,a.createElement)("div",{className:"flex justify-center lg:justify-start w-full overflow-y-scroll lg:pr-52"},(0,a.createElement)("div",{className:"flex flex-col lg:flex-row lg:flex-no-wrap gap-4"},null==n?void 0:n.map((e=>(0,a.createElement)("div",{className:"relative pointer-events-none",style:{height:360,width:255},key:e.id},(0,a.createElement)(Js,{displayOnly:!0,page:e,blockHeight:356}))))))):(0,a.createElement)("button",{onClick:()=>i("style"),className:"bg-transparent text-partner-primary underline text-base cursor-pointer"},(0,re.__)("Press to change the style","extendify"))),(0,a.createElement)("div",{className:"block"},(0,a.createElement)("h2",{className:"text-lg m-0 mb-4"},(0,re.__)("Industry","extendify")),null!=e&&e.label?(0,a.createElement)("div",{className:"flex items-center"},(0,a.createElement)(ts,{className:"text-extendify-main-dark",style:{width:24}}),(0,a.createElement)("span",{className:"text-base pl-2"},e.label)):(0,a.createElement)("button",{onClick:()=>i("site-type"),className:"bg-transparent text-partner-primary underline text-base cursor-pointer"},(0,re.__)("Press to set a site type","extendify"))),(null==r?void 0:r.length)>0?(0,a.createElement)("div",{className:"block"},(0,a.createElement)("h2",{className:"text-lg m-0 mb-4"},(0,re.__)("Goals","extendify")),(0,a.createElement)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4"},null==r?void 0:r.map((e=>(0,a.createElement)("div",{className:"flex items-center",key:e.id},(0,a.createElement)(ts,{className:"text-extendify-main-dark",style:{width:24}}),(0,a.createElement)("span",{className:"text-base pl-2"},e.title)))))):null,(0,a.createElement)("div",{className:"block"},(0,a.createElement)("h2",{className:"text-lg m-0 mb-4"},(0,re.__)("Pages","extendify")),n.length>0?(0,a.createElement)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4"},null==n?void 0:n.map((e=>(0,a.createElement)("div",{className:"flex items-center",key:e.id},(0,a.createElement)(ts,{className:"text-extendify-main-dark",style:{width:24}}),(0,a.createElement)("span",{className:"text-base pl-2"},e.title))))):(0,a.createElement)("button",{onClick:()=>i("pages"),className:"bg-transparent text-partner-primary underline text-base cursor-pointer"},(0,re.__)("Press to set your pages","extendify"))),(0,a.createElement)("div",{className:"block"},(0,a.createElement)("h2",{className:"text-lg m-0 mb-4"},(0,re.__)("Plugins","extendify")),(0,a.createElement)(ll,null)))))},state:cl}]],ml=null==hl?void 0:hl.filter((e=>{var t,n;return!(null!==(t=window.extOnbData)&&void 0!==t&&null!==(n=t.partnerSkipSteps)&&void 0!==n&&n.includes(e[0]))})),gl=qo(Fo(((e,t)=>({pages:new Map(ml),currentPageIndex:0,count(){return t().pages.size},getPageOrder(){return Array.from(t().pages.keys())},getCurrentPageData(){return t().pages.get(t().getCurrentPageSlug())},getCurrentPageSlug(){return t().getPageOrder()[t().currentPageIndex]||(t().setPage(0),t().getPageOrder()[0])},getNextPageData(){const e=t().currentPageIndex+1;return e>t().count()-1?{}:t().pages.get(t().getPageOrder()[e])},setPage(n){"string"==typeof n&&(n=t().getPageOrder().indexOf(n)),n>t().count()-1||n<0||e({currentPageIndex:n})},nextPage(){t().setPage(t().currentPageIndex+1)},previousPage(){t().setPage(t().currentPageIndex-1)}})),{name:"Extendify Launch Pages",serialize:!0}),{name:"extendify-pages",getStorage:()=>localStorage,partialize:e=>{var t,n,r;return{currentPageIndex:null!==(t=null==e?void 0:e.currentPageIndex)&&void 0!==t?t:0,currentPageSlug:null!==(n=null==e?void 0:e.getCurrentPageSlug())&&void 0!==n?n:null,availablePages:null!==(r=null==e?void 0:e.getPageOrder())&&void 0!==r?r:[]}}}),vl=Ho(gl);var _l,yl,bl;window.extOnbData.insightsEnabled&&pi({dsn:"https://c5c1aec4298743d399e86509ee4cef9c@o1352321.ingest.sentry.io/6633543",integrations:[new Bo],release:null===(_l=window.extOnbData)||void 0===_l?void 0:_l.version,environment:null!==(yl=window)&&void 0!==yl&&null!==(bl=yl.extOnbData)&&void 0!==bl&&bl.devbuild?"dev":"production",tracesSampleRate:.25,beforeSend(e){return e.exception&&ii({eventId:e.event_id}),e}});const El=Fn.create({baseURL:window.extOnbData.root,headers:{"X-WP-Nonce":window.extOnbData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Onboarding":!0,"X-Extendify":!0}});El.interceptors.request.use((e=>Sl(e)),(e=>e)),El.interceptors.response.use((e=>wl(e)),(e=>xl(e)));const wl=e=>Object.prototype.hasOwnProperty.call(e,"data")?e.data:e,xl=e=>{if(e.response)return Kr(e,{level:429===e.response.status?"warning":"error"}),console.error(e.response),Promise.reject(wl(e.response))},Sl=e=>(e.headers["X-Extendify-Onboarding-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Onboarding-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e),Tl=e=>El.post("onboarding/parse-theme-json",{themeJson:e}),kl=(e,t)=>El.post("onboarding/options",{option:e,value:t}),Cl=async e=>{const{data:t}=await El.get("onboarding/options",{params:{option:e}});return t},Nl=async e=>{if(null!=e&&e.wordpressSlug){try{const t=await El.post(`${window.extOnbData.wpRoot}wp/v2/plugins`,{slug:e.wordpressSlug,status:"active"});if(!t.ok)return t}catch(e){}try{return await Rl(e)}catch(e){}}},Rl=async e=>{var t;const n=`${window.extOnbData.wpRoot}wp/v2/plugins`,r=await El.get(`${n}?search=${e.wordpressSlug}`),a=null==r||null===(t=r[0])||void 0===t?void 0:t.plugin;if(!a)throw new Error("Plugin not found");return await El.post(`${n}/${a}`,{status:"active"})},Dl=(e,t)=>El.post(`${window.extOnbData.wpRoot}wp/v2/template-parts/${e}`,{slug:`${e}`,theme:"extendable",type:"wp_template_part",status:"publish",description:(0,re.sprintf)((0,re.__)("Added by %s","extendify"),"Extendify Launch"),content:t}),Ol=async()=>{var e,t,n;let r=await Ll();return r=null===(e=r)||void 0===e?void 0:e.filter((e=>"extendable"===e.theme)),{headers:null===(t=r)||void 0===t?void 0:t.filter((e=>{var t;return null==e||null===(t=e.slug)||void 0===t?void 0:t.includes("header")})),footers:null===(n=r)||void 0===n?void 0:n.filter((e=>{var t;return null==e||null===(t=e.slug)||void 0===t?void 0:t.includes("footer")}))}},Ll=()=>El.get(window.extOnbData.wpRoot+"wp/v2/template-parts"),Ml=async()=>{const e=await El.get(window.extOnbData.wpRoot+"wp/v2/global-styles/themes/extendable/variations");if(!Array.isArray(e))throw new Error("Could not get theme variations");return{data:e}};var Pl={};!function e(t,n,r,a){var i=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function o(){}function s(e){var r=n.exports.Promise,a=void 0!==r?r:t.Promise;return"function"==typeof a?new a(e):(e(o,o),null)}var l,c,u,d,f,p,h,m,g,v=(u=Math.floor(1e3/60),d={},f=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(l=function(e){var t=Math.random();return d[t]=requestAnimationFrame((function n(r){f===r||f+u-1<r?(f=r,delete d[t],e()):d[t]=requestAnimationFrame(n)})),t},c=function(e){d[e]&&cancelAnimationFrame(d[e])}):(l=function(e){return setTimeout(e,u)},c=function(e){return clearTimeout(e)}),{frame:l,cancel:c}),_=(m={},function(){if(p)return p;if(!r&&i){var t=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{p=new Worker(URL.createObjectURL(new Blob([t])))}catch(e){return void 0!==typeof console&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",e),null}!function(e){function t(t,n){e.postMessage({options:t||{},callback:n})}e.init=function(t){var n=t.transferControlToOffscreen();e.postMessage({canvas:n},[n])},e.fire=function(n,r,a){if(h)return t(n,null),h;var i=Math.random().toString(36).slice(2);return h=s((function(r){function o(t){t.data.callback===i&&(delete m[i],e.removeEventListener("message",o),h=null,a(),r())}e.addEventListener("message",o),t(n,i),m[i]=o.bind(null,{data:{callback:i}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),m)m[t](),delete m[t]}}(p)}return p}),y={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function b(e,t,n){return function(e,t){return t?t(e):e}(e&&null!=e[t]?e[t]:y[t],n)}function E(e){return e<0?0:Math.floor(e)}function w(e){return parseInt(e,16)}function x(e){return e.map(S)}function S(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:w(t.substring(0,2)),g:w(t.substring(2,4)),b:w(t.substring(4,6))}}function T(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function k(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function C(e,n){var o,l=!e,c=!!b(n||{},"resize"),u=b(n,"disableForReducedMotion",Boolean),d=i&&b(n||{},"useWorker")?_():null,f=l?T:k,p=!(!e||!d||!e.__confetti_initialized),h="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function m(t,n,i){for(var l,c,u,d,p=b(t,"particleCount",E),h=b(t,"angle",Number),m=b(t,"spread",Number),g=b(t,"startVelocity",Number),_=b(t,"decay",Number),y=b(t,"gravity",Number),w=b(t,"drift",Number),S=b(t,"colors",x),T=b(t,"ticks",Number),k=b(t,"shapes"),C=b(t,"scalar"),N=function(e){var t=b(e,"origin",Object);return t.x=b(t,"x",Number),t.y=b(t,"y",Number),t}(t),R=p,D=[],O=e.width*N.x,L=e.height*N.y;R--;)D.push((void 0,void 0,c=(l={x:O,y:L,angle:h,spread:m,startVelocity:g,color:S[R%S.length],shape:k[(0,d=k.length,Math.floor(Math.random()*(d-0))+0)],ticks:T,decay:_,gravity:y,drift:w,scalar:C}).angle*(Math.PI/180),u=l.spread*(Math.PI/180),{x:l.x,y:l.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*l.startVelocity+Math.random()*l.startVelocity,angle2D:-c+(.5*u-Math.random()*u),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:l.color,shape:l.shape,tick:0,totalTicks:l.ticks,decay:l.decay,drift:l.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*l.gravity,ovalScalar:.6,scalar:l.scalar}));return o?o.addFettis(D):(o=function(e,t,n,i,o){var l,c,u=t.slice(),d=e.getContext("2d"),f=s((function(t){function s(){l=c=null,d.clearRect(0,0,i.width,i.height),o(),t()}l=v.frame((function t(){!r||i.width===a.width&&i.height===a.height||(i.width=e.width=a.width,i.height=e.height=a.height),i.width||i.height||(n(e),i.width=e.width,i.height=e.height),d.clearRect(0,0,i.width,i.height),u=u.filter((function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.wobble+=t.wobbleSpeed,t.velocity*=t.decay,t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble);var n=t.tick++/t.totalTicks,r=t.x+t.random*t.tiltCos,a=t.y+t.random*t.tiltSin,i=t.wobbleX+t.random*t.tiltCos,o=t.wobbleY+t.random*t.tiltSin;return e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-n)+")",e.beginPath(),"circle"===t.shape?e.ellipse?e.ellipse(t.x,t.y,Math.abs(i-r)*t.ovalScalar,Math.abs(o-a)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,n,r,a,i,o,s,l){e.save(),e.translate(t,n),e.rotate(i),e.scale(r,a),e.arc(0,0,1,0,s,void 0),e.restore()}(e,t.x,t.y,Math.abs(i-r)*t.ovalScalar,Math.abs(o-a)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):(e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(a)),e.lineTo(Math.floor(i),Math.floor(o)),e.lineTo(Math.floor(r),Math.floor(t.wobbleY))),e.closePath(),e.fill(),t.tick<t.totalTicks}(d,e)})),u.length?l=v.frame(t):s()})),c=s}));return{addFettis:function(e){return u=u.concat(e),f},canvas:e,promise:f,reset:function(){l&&v.cancel(l),c&&c()}}}(e,D,f,n,i)).promise}function g(n){var r=u||b(n,"disableForReducedMotion",Boolean),a=b(n,"zIndex",Number);if(r&&h)return s((function(e){e()}));l&&o?e=o.canvas:l&&!e&&(e=function(e){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.pointerEvents="none",t.style.zIndex=e,t}(a),document.body.appendChild(e)),c&&!p&&f(e);var i={width:e.width,height:e.height};function g(){if(d){var t={getBoundingClientRect:function(){if(!l)return e.getBoundingClientRect()}};return f(t),void d.postMessage({resize:{width:t.width,height:t.height}})}i.width=i.height=null}function v(){o=null,c&&t.removeEventListener("resize",g),l&&e&&(document.body.removeChild(e),e=null,p=!1)}return d&&!p&&d.init(e),p=!0,d&&(e.__confetti_initialized=!0),c&&t.addEventListener("resize",g,!1),d?d.fire(n,i,v):m(n,i,v)}return g.reset=function(){d&&d.reset(),o&&o.reset()},g}function N(){return g||(g=C(null,{useWorker:!0,resize:!0})),g}n.exports=function(){return N().apply(this,arguments)},n.exports.reset=function(){N().reset()},n.exports.create=C}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),Pl,!1);var Il=Pl.exports;Pl.exports.create;const Bl=()=>{var e,t,n;const[r]=(0,a.useState)(!0),[i,o]=(0,a.useState)(!1),[s,l]=(0,a.useState)(!0),c=ws((e=>e.canLaunch())),{siteType:u,siteInformation:d,pages:f,style:p,plugins:h}=ws(),[m,g]=(0,a.useState)([]),[v,_]=(0,a.useState)([]),y=e=>g((t=>[e,...t])),b=e=>_((t=>[e,...t])),E=(0,a.useRef)();!function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(0,a.useEffect)((()=>{if(!e)return;const t=e=>(e.preventDefault(),e.returnValue=""),n={capture:!0};return window.addEventListener("beforeunload",t,n),()=>{window.removeEventListener("beforeunload",t,n)}}),[e])}(s);const w=(0,a.useCallback)((async()=>{if(!c)throw new Error((0,re.__)("Site is not ready to launch.","extendify"));var e,t;let n;y((0,re.__)("Applying site styles","extendify")),b((0,re.__)("A beautiful site in... 3, 2, 1","extendify")),await qs((async()=>await kl("blogname",d.title)),2e3,{dryRun:E.current}),E.current||(await(t=null!==(e=null==p?void 0:p.variation)&&void 0!==e?e:{},((e,t)=>El.post(`${window.extOnbData.wpRoot}wp/v2/global-styles/${e}`,{id:e,settings:t.settings,styles:t.styles}))(window.extOnbData.globalStylesPostID,t)),await Dl("extendable//header",null==p?void 0:p.headerCode),await Dl("extendable//footer",null==p?void 0:p.footerCode));try{y((0,re.__)("Generating page content","extendify")),b((0,re.__)("Starting off with a full site...","extendify")),await qs((async()=>{const e={slug:"blog",title:(0,re.__)("Blog","extendify")},t=[...f,e];n=await(async(e,t,n)=>{const r={};for(const s of e){const e=await Xo({siteType:t.slug,layoutType:s.slug,baseLayout:"home"===s.slug?t.slug.startsWith("blog")?null==n?void 0:n.blogBaseLayout:null==n?void 0:n.homeBaseLayout:null,kit:"home"!==s.slug?null==n?void 0:n.kit:null});let l="";var a,i;null!=e&&e.data&&(l=[null==e||null===(a=e.data)||void 0===a?void 0:a.code,null==e||null===(i=e.data)||void 0===i?void 0:i.code2].filter(Boolean).join(""));const c=await(o={title:s.title,status:"publish",content:l,template:"no-title",meta:{made_with_extendify_launch:!0}},El.post(`${window.extOnbData.wpRoot}wp/v2/pages`,o));r[s.slug]={id:c.id,title:s.title}}var o;return null!=r&&r.home&&(await kl("show_on_front","page"),await kl("page_on_front",r.home.id)),null!=r&&r.blog&&await kl("page_for_posts",r.blog.id),await kl("extendify_onboarding_completed",(new Date).toISOString()),r})(t,u,p);const r=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||(r='\x3c!-- wp:page-list {"isNavigationChild":true,"showSubmenuIcon":true,"openSubmenusOnClick":false} /--\x3e');const a=e.map((e=>`\x3c!-- wp:navigation-link {"label":"${e.title}","type":"page","id":${t[e.slug].id},"url":"/${e.slug}","kind":"post-type","isTopLevelLink":true} /--\x3e`)).join("");return n.replace(r,a)}(f,n,null==p?void 0:p.headerCode);await Dl("extendable//header",r)}),2e3,{dryRun:E.current})}catch(e){}if(null!=h&&h.length){y((0,re.__)("Installing suggested plugins","extendify"));for(const[e,t]of h.entries()){b((0,re.__)(`${e+1}/${h.length}: ${t.name}`,"extendify"));try{await Nl(t)}catch(e){}}}return y((0,re.__)("Setting up your site assistant","extendify")),b((0,re.__)("Helping your site to be successful...","extendify")),await qs((async()=>{return await(e=[{slug:"hello-world",type:"post"},{slug:"sample-page",type:"page"}],void e.forEach((async e=>{const t=await function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"post";return El.get(`${window.extOnbData.wpRoot}wp/v2/${t}s?slug=${e}`)}(e.slug,e.type);var n,r;null!=t&&t.length&&"trash"!==t[0].status&&await(n=t[0].id,r=e.type,El.delete(`${window.extOnbData.wpRoot}wp/v2/${r}s/${n}`))})));var e}),2e3,{dryRun:E.current}),E.current||await kl("permalink_structure","/%postname%/"),y((0,re.__)("Your site has been created!","extendify")),b((0,re.__)("Redirecting in 3, 2, 1...","extendify")),o(!0),l(!1),await new Promise((e=>setTimeout(e,2500))),n}),[f,h,u,p,c,d.title]);return(0,a.useEffect)((()=>{const e=new URLSearchParams(window.location.search);E.current=e.has("dry-run")}),[]),(0,a.useEffect)((()=>{w().then((()=>{window.location.replace(window.extOnbData.adminUrl+"admin.php?page=extendify-assist&extendify-launch-success")}))}),[w]),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,a.useEffect)((()=>{if(!n)return;const r=Date.now()+t,a=()=>{Il({...e,disableForReducedMotion:!0,zIndex:1e5}),Date.now()<r&&requestAnimationFrame(a)};a()}),[e,t,n])}({particleCount:2,angle:320,spread:120,origin:{x:0,y:0},colors:["var(--ext-partner-theme-primary-text, #ffffff)"]},2500,i),(0,a.createElement)(Xe,{show:r,appear:!0,enter:"transition-all ease-in-out duration-500",enterFrom:"md:w-40vw md:max-w-md",enterTo:"md:w-full md:max-w-full",className:"bg-partner-primary-bg text-partner-primary-text py-12 px-10 md:h-screen flex flex-col justify-between md:w-40vw md:max-w-md flex-shrink-0"},(0,a.createElement)("div",{className:"max-w-prose"},(0,a.createElement)("div",{className:"md:min-h-48"},(null===(e=window.extOnbData)||void 0===e?void 0:e.partnerLogo)&&(0,a.createElement)("div",{className:"pb-8"},(0,a.createElement)("img",{style:{maxWidth:"200px"},src:window.extOnbData.partnerLogo,alt:null!==(t=null===(n=window.extOnbData)||void 0===n?void 0:n.partnerName)&&void 0!==t?t:""})),(0,a.createElement)("div",null,m.map(((e,t)=>{if(!t)return(0,a.createElement)(Xe,{appear:!0,show:r,enter:"transition-opacity duration-1000",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-1000",leaveFrom:"opacity-100",leaveTo:"opacity-0",className:"text-4xl flex space-x-4 items-center",key:e},e)})),(0,a.createElement)("div",{className:"flex space-x-4 items-center mt-6"},(0,a.createElement)(gs,{className:"spin"}),v.map(((e,t)=>{if(!t)return(0,a.createElement)(Xe,{appear:!0,show:r,enter:"transition-opacity duration-1000",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-1000",leaveFrom:"opacity-100",leaveTo:"opacity-0",className:"text-lg",key:e},e)})))))),(0,a.createElement)("div",{className:"hidden md:flex items-center space-x-3"},(0,a.createElement)("span",{className:"opacity-70 text-xs"},(0,re.__)("Powered by","extendify")),(0,a.createElement)("span",{className:"relative"},(0,a.createElement)(is,{className:"logo text-partner-primary-text w-28"}),(0,a.createElement)("span",{className:"absolute -bottom-2 right-3 font-semibold tracking-tight"},"Launch"))))};var Ul,jl=function(e){let{icon:t,size:n=24,...r}=e;return(0,a.cloneElement)(t,{width:n,height:n,...r})},Al=window.wp.primitives,$l=(0,a.createElement)(Al.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(Al.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),Gl=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Gl||{});let Hl=0;function Fl(){return++Hl}let Yl=null!=(Ul=s.useId)?Ul:function(){let e=Se(),[t,n]=s.useState(e?Fl:null);return be((()=>{null===t&&n(Fl())}),[t]),null!=t?""+t:void 0};var Vl=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Vl||{});let ql=fe((function(e,t){let{features:n=1,...r}=e;return ce({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})}));function zl(e){return ye?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Wl=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Zl=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Zl||{}),Jl=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Jl||{}),Xl=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Xl||{});var Kl=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Kl||{});function Ql(e){null==e||e.focus({preventScroll:!0})}let ec=["textarea","input"].join(",");function tc(e,t,n=!0,r=null){let a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,i=Array.isArray(e)?n?function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),a=t(n);if(null===r||null===a)return 0;let i=r.compareDocumentPosition(a);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Wl))}(e);r=null!=r?r:a.activeElement;let o,s=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,i.indexOf(r))-1;if(4&t)return Math.max(0,i.indexOf(r))+1;if(8&t)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=32&t?{preventScroll:!0}:{},u=0,d=i.length;do{if(u>=d||u+d<=0)return 0;let e=l+u;if(16&t)e=(e+d)%d;else{if(e<0)return 3;if(e>=d)return 1}o=i[e],null==o||o.focus(c),u+=s}while(o!==a.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,ec))&&n}(o)&&o.select(),o.hasAttribute("tabindex")||o.setAttribute("tabindex","0"),2}var nc=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(nc||{});function rc(...e){return(0,s.useMemo)((()=>zl(...e)),[...e])}function ac(e,t,n,r){let a=we(n);(0,s.useEffect)((()=>{function n(e){a.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}),[e,t,r])}function ic(e,t){let n=(0,s.useRef)([]),r=Te(e);(0,s.useEffect)((()=>{let e=[...n.current];for(let[a,i]of t.entries())if(n.current[a]!==i){let a=r(t,e);return n.current=t,a}}),[r,...t])}var oc=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(oc||{});let sc=Object.assign(fe((function(e,t){let n=(0,s.useRef)(null),r=Ne(n,t),{initialFocus:a,containers:i,features:o=30,...l}=e;Se()||(o=1);let c=rc(n);!function({ownerDocument:e},t){let n=(0,s.useRef)(null);ac(null==e?void 0:e.defaultView,"focusout",(e=>{!t||n.current||(n.current=e.target)}),!0),ic((()=>{t||((null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&Ql(n.current),n.current=null)}),[t]);let r=(0,s.useRef)(!1);(0,s.useEffect)((()=>(r.current=!1,()=>{r.current=!0,Re((()=>{!r.current||(Ql(n.current),n.current=null)}))})),[])}({ownerDocument:c},Boolean(16&o));let u=function({ownerDocument:e,container:t,initialFocus:n},r){let a=(0,s.useRef)(null),i=Ee();return ic((()=>{if(!r)return;let o=t.current;!o||Re((()=>{if(!i.current)return;let t=null==e?void 0:e.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===t)return void(a.current=t)}else if(o.contains(t))return void(a.current=t);null!=n&&n.current?Ql(n.current):tc(o,Zl.First)===Jl.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),a.current=null==e?void 0:e.activeElement}))}),[r]),a}({ownerDocument:c,container:n,initialFocus:a},Boolean(2&o));!function({ownerDocument:e,container:t,containers:n,previousActiveElement:r},a){let i=Ee();ac(null==e?void 0:e.defaultView,"focus",(e=>{if(!a||!i.current)return;let o=new Set(null==n?void 0:n.current);o.add(t);let s=r.current;if(!s)return;let l=e.target;l&&l instanceof HTMLElement?function(e,t){var n;for(let r of e)if(null!=(n=r.current)&&n.contains(t))return!0;return!1}(o,l)?(r.current=l,Ql(l)):(e.preventDefault(),e.stopPropagation(),Ql(s)):Ql(r.current)}),!0)}({ownerDocument:c,container:n,containers:i,previousActiveElement:u},Boolean(8&o));let d=function(){let e=(0,s.useRef)(0);return function(e,t,n){let r=we(t);(0,s.useEffect)((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),f=Te((()=>{let e=n.current;!e||ie(d.current,{[nc.Forwards]:()=>tc(e,Zl.First),[nc.Backwards]:()=>tc(e,Zl.Last)})})),p={ref:r};return s.createElement(s.Fragment,null,Boolean(4&o)&&s.createElement(ql,{as:"button",type:"button",onFocus:f,features:Vl.Focusable}),ce({ourProps:p,theirProps:l,defaultTag:"div",name:"FocusTrap"}),Boolean(4&o)&&s.createElement(ql,{as:"button",type:"button",onFocus:f,features:Vl.Focusable}))})),{features:oc}),lc=new Set,cc=new Map;function uc(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function dc(e){let t=cc.get(e);!t||(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}var fc=window.ReactDOM;let pc=(0,s.createContext)(!1);function hc(){return(0,s.useContext)(pc)}function mc(e){return s.createElement(pc.Provider,{value:e.force},e.children)}let gc=s.Fragment,vc=fe((function(e,t){let n=e,r=(0,s.useRef)(null),a=Ne(Ce((e=>{r.current=e})),t),i=rc(r),o=function(e){let t=hc(),n=(0,s.useContext)(yc),r=rc(e),[a,i]=(0,s.useState)((()=>{if(!t&&null!==n||ye)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let a=r.createElement("div");return a.setAttribute("id","headlessui-portal-root"),r.body.appendChild(a)}));return(0,s.useEffect)((()=>{null!==a&&(null!=r&&r.body.contains(a)||null==r||r.body.appendChild(a))}),[a,r]),(0,s.useEffect)((()=>{t||null!==n&&i(n.current)}),[n,i,t]),a}(r),[l]=(0,s.useState)((()=>{var e;return ye?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null})),c=Se(),u=(0,s.useRef)(!1);return be((()=>{if(u.current=!1,o&&l)return o.contains(l)||(l.setAttribute("data-headlessui-portal",""),o.appendChild(l)),()=>{u.current=!0,Re((()=>{var e;!u.current||!o||!l||(o.removeChild(l),o.childNodes.length<=0&&(null==(e=o.parentElement)||e.removeChild(o)))}))}}),[o,l]),c&&o&&l?(0,fc.createPortal)(ce({ourProps:{ref:a},theirProps:n,defaultTag:gc,name:"Portal"}),l):null})),_c=s.Fragment,yc=(0,s.createContext)(null),bc=fe((function(e,t){let{target:n,...r}=e,a={ref:Ne(t)};return s.createElement(yc.Provider,{value:n},ce({ourProps:a,theirProps:r,defaultTag:_c,name:"Popover.Group"}))})),Ec=Object.assign(vc,{Group:bc}),wc=(0,s.createContext)(null);function xc(){let e=(0,s.useContext)(wc);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,xc),e}return e}let Sc=fe((function(e,t){let n=xc(),r=`headlessui-description-${Yl()}`,a=Ne(t);be((()=>n.register(r)),[r,n.register]);let i=e;return ce({ourProps:{ref:a,...n.props,id:r},theirProps:i,slot:n.slot||{},defaultTag:"p",name:n.name||"Description"})})),Tc=(0,s.createContext)((()=>{}));Tc.displayName="StackContext";var kc=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(kc||{});function Cc({children:e,onUpdate:t,type:n,element:r,enabled:a}){let i=(0,s.useContext)(Tc),o=Te(((...e)=>{null==t||t(...e),i(...e)}));return be((()=>{let e=void 0===a||!0===a;return e&&o(0,n,r),()=>{e&&o(1,n,r)}}),[o,n,r,a]),s.createElement(Tc.Provider,{value:o},e)}function Nc(e,t,n){let r=we(t);(0,s.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}var Rc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Rc||{}),Dc=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Dc||{});let Oc={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Lc=(0,s.createContext)(null);function Mc(e){let t=(0,s.useContext)(Lc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Mc),t}return t}function Pc(e,t){return ie(t.type,Oc,e,t)}Lc.displayName="DialogContext";let Ic=se.RenderStrategy|se.Static,Bc=fe((function(e,t){let{open:n,onClose:r,initialFocus:a,__demoMode:i=!1,...o}=e,[l,c]=(0,s.useState)(0),u=ve();void 0===n&&null!==u&&(n=ie(u,{[ge.Open]:!0,[ge.Closed]:!1}));let d=(0,s.useRef)(new Set),f=(0,s.useRef)(null),p=Ne(f,t),h=(0,s.useRef)(null),m=rc(f),g=e.hasOwnProperty("open")||null!==u,v=e.hasOwnProperty("onClose");if(!g&&!v)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!g)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!v)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof n)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${n}`);if("function"!=typeof r)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${r}`);let _=n?0:1,[y,b]=(0,s.useReducer)(Pc,{titleId:null,descriptionId:null,panelRef:(0,s.createRef)()}),E=Te((()=>r(!1))),w=Te((e=>b({type:0,id:e}))),x=!!Se()&&!i&&0===_,S=l>1,T=null!==(0,s.useContext)(Lc),k=S?"parent":"leaf";(function(e,t=!0){be((()=>{if(!t||!e.current)return;let n=e.current,r=zl(n);if(r){lc.add(n);for(let e of cc.keys())e.contains(n)&&(dc(e),cc.delete(e));return r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement){for(let t of lc)if(e.contains(t))return;1===lc.size&&(cc.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),uc(e))}})),()=>{if(lc.delete(n),lc.size>0)r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement&&!cc.has(e)){for(let t of lc)if(e.contains(t))return;cc.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),uc(e)}}));else for(let e of cc.keys())dc(e),cc.delete(e)}}}),[t])})(f,!!S&&x),function(e,t,n=!0){let r=(0,s.useRef)(!1);function a(n,a){if(!r.current||n.defaultPrevented)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),o=a(n);if(null!==o&&o.ownerDocument.documentElement.contains(o)){for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(o))return}return!function(e,t=0){var n;return e!==(null==(n=zl(e))?void 0:n.body)&&ie(t,{0(){return e.matches(Wl)},1(){let t=e;for(;null!==t;){if(t.matches(Wl))return!0;t=t.parentElement}return!1}})}(o,Kl.Loose)&&-1!==o.tabIndex&&n.preventDefault(),t(n,o)}}(0,s.useEffect)((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let i=(0,s.useRef)(null);Nc("mousedown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Nc("click",(e=>{!i.current||(a(e,(()=>i.current)),i.current=null)}),!0),Nc("blur",(e=>a(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}((()=>{var e,t;return[...Array.from(null!=(e=null==m?void 0:m.querySelectorAll("body > *, [data-headlessui-portal]"))?e:[]).filter((e=>!(!(e instanceof HTMLElement)||e.contains(h.current)||y.panelRef.current&&e.contains(y.panelRef.current)))),null!=(t=y.panelRef.current)?t:f.current]}),E,x&&!S),ac(null==m?void 0:m.defaultView,"keydown",(e=>{e.defaultPrevented||e.key===Gl.Escape&&0===_&&(S||(e.preventDefault(),e.stopPropagation(),E()))})),function(e,t){(0,s.useEffect)((()=>{var n;if(!t||!e)return;let r=De();function a(e,t,n){let a=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),r.add((()=>{Object.assign(e.style,{[t]:a})}))}let i=e.documentElement,o=(null!=(n=e.defaultView)?n:window).innerWidth-i.clientWidth;if(a(i,"overflow","hidden"),o>0&&a(i,"paddingRight",o-(i.clientWidth-i.offsetWidth)+"px"),/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0){let e=window.pageYOffset;a(i,"position","fixed"),a(i,"marginTop",`-${e}px`),a(i,"width","100%"),r.add((()=>window.scrollTo(0,e)))}return r.dispose}),[e,t])}(m,0===_&&!T),(0,s.useEffect)((()=>{if(0!==_||!f.current)return;let e=new IntersectionObserver((e=>{for(let t of e)0===t.boundingClientRect.x&&0===t.boundingClientRect.y&&0===t.boundingClientRect.width&&0===t.boundingClientRect.height&&E()}));return e.observe(f.current),()=>e.disconnect()}),[_,f,E]);let[C,N]=function(){let[e,t]=(0,s.useState)([]);return[e.length>0?e.join(" "):void 0,(0,s.useMemo)((()=>function(e){let n=Te((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=(0,s.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return s.createElement(wc.Provider,{value:r},e.children)}),[t])]}(),R=`headlessui-dialog-${Yl()}`,D=(0,s.useMemo)((()=>[{dialogState:_,close:E,setTitleId:w},y]),[_,y,E,w]),O=(0,s.useMemo)((()=>({open:0===_})),[_]),L={ref:p,id:R,role:"dialog","aria-modal":0===_||void 0,"aria-labelledby":y.titleId,"aria-describedby":C};return s.createElement(Cc,{type:"Dialog",enabled:0===_,element:f,onUpdate:Te(((e,t,n)=>{"Dialog"===t&&ie(e,{[kc.Add](){d.current.add(n),c((e=>e+1))},[kc.Remove](){d.current.add(n),c((e=>e-1))}})}))},s.createElement(mc,{force:!0},s.createElement(Ec,null,s.createElement(Lc.Provider,{value:D},s.createElement(Ec.Group,{target:f},s.createElement(mc,{force:!1},s.createElement(N,{slot:O,name:"Dialog.Description"},s.createElement(sc,{initialFocus:a,containers:d,features:x?ie(k,{parent:sc.features.RestoreFocus,leaf:sc.features.All&~sc.features.FocusLock}):sc.features.None},ce({ourProps:L,theirProps:o,slot:O,defaultTag:"div",features:Ic,visible:0===_,name:"Dialog"})))))))),s.createElement(ql,{features:Vl.Hidden,ref:h}))})),Uc=fe((function(e,t){let[{dialogState:n,close:r}]=Mc("Dialog.Overlay"),a=Ne(t),i=`headlessui-dialog-overlay-${Yl()}`,o=Te((e=>{if(e.target===e.currentTarget){if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),r()}}));return ce({ourProps:{ref:a,id:i,"aria-hidden":!0,onClick:o},theirProps:e,slot:(0,s.useMemo)((()=>({open:0===n})),[n]),defaultTag:"div",name:"Dialog.Overlay"})})),jc=fe((function(e,t){let[{dialogState:n},r]=Mc("Dialog.Backdrop"),a=Ne(t),i=`headlessui-dialog-backdrop-${Yl()}`;(0,s.useEffect)((()=>{if(null===r.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[r.panelRef]);let o=(0,s.useMemo)((()=>({open:0===n})),[n]);return s.createElement(mc,{force:!0},s.createElement(Ec,null,ce({ourProps:{ref:a,id:i,"aria-hidden":!0},theirProps:e,slot:o,defaultTag:"div",name:"Dialog.Backdrop"})))})),Ac=fe((function(e,t){let[{dialogState:n},r]=Mc("Dialog.Panel"),a=Ne(t,r.panelRef),i=`headlessui-dialog-panel-${Yl()}`,o=(0,s.useMemo)((()=>({open:0===n})),[n]);return ce({ourProps:{ref:a,id:i,onClick:Te((e=>{e.stopPropagation()}))},theirProps:e,slot:o,defaultTag:"div",name:"Dialog.Panel"})})),$c=fe((function(e,t){let[{dialogState:n,setTitleId:r}]=Mc("Dialog.Title"),a=`headlessui-dialog-title-${Yl()}`,i=Ne(t);(0,s.useEffect)((()=>(r(a),()=>r(null))),[a,r]);let o=(0,s.useMemo)((()=>({open:0===n})),[n]);return ce({ourProps:{ref:i,id:a},theirProps:e,slot:o,defaultTag:"h2",name:"Dialog.Title"})})),Gc=Object.assign(Bc,{Backdrop:jc,Panel:Ac,Overlay:Uc,Title:$c,Description:Sc});var Hc=window.lodash;const Fc=()=>{const{exitModalOpen:e,closeExitModal:t,hoveredOverExitButton:n}=Wo(),{setExitFeedback:r}=ws(),[i,o]=(0,a.useState)(null),[s,l]=(0,a.useState)(""),[c,u]=(0,a.useState)([]),d=(0,a.useRef)(),f=()=>{r(i===(0,re.__)("Other","extendify")?`Other: ${s}`:i),p()},p=async()=>{await kl("extendify_onboarding_skipped",(new Date).toISOString()),location.href=window.extOnbData.adminUrl};return(0,a.useEffect)((()=>{n&&El.get("onboarding/exit-questions",{timeout:1500}).then((e=>{var t;let{data:n}=e;if(!Array.isArray(n)||null===(t=n[0])||void 0===t||!t.key)throw new Error("Invalid data");u([...(0,Hc.shuffle)(n.filter((e=>"Other"!==e.key))),{key:"Other",label:(0,re.__)("Other","extendify")}])})).catch((()=>{const e=[{key:"I still want it, just disabling temporary",label:(0,re.__)("I still want it, just disabling temporary","extendify")},{key:"I plan on using my own theme or builder",label:(0,re.__)("I plan on using my own theme or builder","extendify")},{key:"The theme designs don't look great",label:(0,re.__)("The theme designs don't look great","extendify")}];u([...(0,Hc.shuffle)(e),{key:"Other",label:(0,re.__)("Other","extendify")}])})).finally((()=>{var e;null===(e=d.current)||void 0===e||e.focus()}))}),[n]),(0,a.createElement)(Gc,{as:"div",className:"extendify-onboarding",open:e,initialFocus:d,onClose:t},(0,a.createElement)("div",{className:"absolute top-0 mx-auto w-full h-full overflow-hidden p-2 md:p-6 md:flex justify-center items-center z-max"},(0,a.createElement)("div",{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity","aria-hidden":"true"}),(0,a.createElement)(Gc.Title,{className:"sr-only"},(0,re.__)("Exit Launch","extendify")),(0,a.createElement)("form",{onSubmit:f,style:{maxWidth:"400px"},className:"sm:flex relative shadow-2xl sm:overflow-hidden mx-auto bg-white flex flex-col p-8"},(0,a.createElement)(ne.Button,{className:"absolute top-0 right-0",onClick:t,icon:(0,a.createElement)(jl,{icon:$l,size:24}),label:(0,re.__)("Exit Launch","extendify")}),(0,a.createElement)("p",{className:"m-0 text-lg font-bold text-left"},(0,re.__)("Thanks for trying Extendify Launch. How can we make this better?","extendify")),(0,a.createElement)("div",{role:"radiogroup",className:"flex flex-col text-base mt-4"},c.map(((e,t)=>{let{key:n,label:r}=e;return(0,a.createElement)(Yc,{initialFocus:t?void 0:d,key:n,slug:n,label:r,value:i,customOther:s,setCustomOther:l,setValue:e=>o((t=>t===e?null:e))})}))),(0,a.createElement)("div",{className:"flex justify-end mt-8"},i?null:(0,a.createElement)("button",{className:"px-4 py-3 mr-4 button-focus",type:"button",onClick:p},(0,re.__)("Skip","extendify")),(0,a.createElement)("button",{className:Jo()("px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",{"opacity-50 cursor-default":!i}),type:"button",onClick:f,disabled:!i},(0,re.__)("Submit","extendify"))))))},Yc=e=>{let{label:t,slug:n,setValue:r,value:i,customOther:o,setCustomOther:s,initialFocus:l}=e;const c="Other"===n,u=i===n,d=n.toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,"");return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("span",{className:"flex items-center leading-loose"},(0,a.createElement)("span",{onClick:()=>r(n),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||r(n)},role:"radio","aria-labelledby":d,"aria-checked":u,"data-value":n,ref:l,tabIndex:0,className:"w-5 h-5 relative mr-2"},(0,a.createElement)("span",{className:"h-5 w-5 rounded-sm m-0 block border border-gray-900 button-focus"}),(0,a.createElement)(ts,{className:Jo()("absolute -top-0.5 -left-0.5",{"text-partner-primary-bg":u}),style:{width:24,color:"#fff"},role:"presentation"})),(0,a.createElement)("span",{onClick:()=>r(n),id:d},t)),c&&u?(0,a.createElement)("textarea",{value:o,onChange:e=>s(e.target.value),className:"border border-gray-400 mt-2 text-base p-2",rows:"4"}):null)},Vc=e=>{var t,n,r;return null===(t=performance)||void 0===t||null===(n=t.getEntriesByType("measure"))||void 0===n||null===(r=n.filter((t=>{var n,r,a;return(null==t||null===(n=t.detail)||void 0===n?void 0:n.extendify)&&(null==t||null===(r=t.detail)||void 0===r||null===(a=r.context)||void 0===a?void 0:a.type)===e})))||void 0===r?void 0:r.map((e=>({[e.name]:e.duration})))},qc=()=>(0,a.createElement)(Ts,{includeNav:!1},(0,a.createElement)("div",null,(0,a.createElement)("h1",{className:"text-3xl text-white mb-4 mt-0"},(0,re.__)("Hey, one more thing before we start.","extendify"))),(0,a.createElement)("div",{className:"w-full"},(0,a.createElement)("p",{className:"mt-0 mb-8 text-base"},(0,re.__)("Hey there, Launch is powered by Extendable and is required to proceed. You can install it from the link below and start over once activated.","extendify")),(0,a.createElement)("div",{className:"flex flex-col items-start space-y-4 text-base"},(0,a.createElement)("a",{href:`${window.extOnbData.site}/wp-admin/theme-install.php?theme=extendable`},(0,re.__)("Take me there","extendify"))))),zc=document.getElementById("extendify-onboarding-page");zc&&(0,a.render)((0,a.createElement)((()=>{const{updateSettings:e}=(0,o.useDispatch)("core/block-editor"),[t,n]=(0,a.useState)(!1),{siteType:s}=ws(),l=vl((e=>{const t=e.getCurrentPageData();return null==t?void 0:t.component})),{fetcher:c,fetchData:u}=vl((e=>e.getNextPageData())),{setPage:d,currentPageIndex:f}=vl(),{mutate:p}=X(),{generating:h}=Wo(),[m,g]=(0,a.useState)(!1),[v,_]=(0,a.useState)(!1),y=(0,o.useSelect)((e=>e("core").getCurrentTheme())),{Sentry:b}=(()=>{const e=Wo((e=>e.orderId)),{pages:t,currentPageIndex:n}=vl();return(0,a.useEffect)((()=>{var t;window.extOnbData.insightsEnabled&&(la({id:null===(t=window.extOnbData)||void 0===t?void 0:t.insightsId}),ta((t=>{var n,r,a;t.setExtra("Partner",null===(n=window.extOnbData)||void 0===n?void 0:n.partnerName),t.setExtra("Site",null===(r=window.extOnbData)||void 0===r?void 0:r.home),t.setExtra("Order ID",e),t.setExtra("Insights ID",null===(a=window.extOnbData)||void 0===a?void 0:a.insightsId)})))}),[e]),(0,a.useEffect)((()=>{window.extOnbData.insightsEnabled&&na({type:"navigation",category:"step",message:`Navigated to ${[...t].map((e=>e[0]))[n]}`})}),[n,t]),{Sentry:r}})();return(()=>{const{goals:e,pages:t,plugins:n,siteType:r,style:i,feedbackMissingSiteType:o,feedbackMissingGoal:s,siteTypeSearch:l,exitFeedback:c}=ws(),{generating:u}=Wo(),{pages:d,currentPageIndex:f}=vl(),[p,h]=(0,a.useState)(),[m,g]=(0,a.useState)([]),[v,_]=(0,a.useState)(new Set);(0,a.useEffect)((()=>{const e=[...d].map((e=>e[0]));g((t=>(null==t?void 0:t.at(-1))===e[f]?t:[...t,e[f]]))}),[f,d]),(0,a.useEffect)((()=>{u&&g((e=>[...e,"launched"]))}),[u]),(0,a.useEffect)((()=>{var e;null!==(e=Object.keys(null!=i?i:{}))&&void 0!==e&&e.length&&_((e=>{const t=new Set(e);return t.add(i),t}))}),[i]),(0,a.useEffect)((()=>{var e,t,n,r;let a="onboarding";const i=null===(e=window.location)||void 0===e?void 0:e.search;a=(null==i?void 0:i.indexOf("DEVMODE"))>-1?"onboarding-dev":a,a=(null==i?void 0:i.indexOf("LOCALMODE"))>-1?"onboarding-local":a,h(null===(t=window)||void 0===t||null===(n=t.extOnbData)||void 0===n||null===(r=n.config)||void 0===r?void 0:r.api[a])}),[]),(0,a.useEffect)((()=>{if(!p)return;let a=0,u=0;return a=window.setTimeout((()=>{var a,d,f,h;const g=new AbortController;u=window.setTimeout((()=>{g.abort()}),500),fetch(`${p}/progress`,{method:"POST",headers:{"Content-type":"application/json",Accept:"application/json"},signal:g.signal,body:JSON.stringify({selectedGoals:null==e?void 0:e.map((e=>e.id)),selectedGoalsSlugs:null==e?void 0:e.map((e=>e.slug)),selectedPages:null==t?void 0:t.map((e=>e.id)),selectedPagesSlugs:null==t?void 0:t.map((e=>e.slug)),selectedPlugins:null==n?void 0:n.map((e=>e.name)),selectedSiteType:null!=r&&r.recordId?[r.recordId]:[],selectedSiteTypeSlug:null==r?void 0:r.slug,selectedStyle:null!=i&&i.recordId?[i.recordId]:[],selectedStyleSlug:null==i?void 0:i.slug,stepProgress:m,viewedStyles:[...v].map((e=>e.recordId)).slice(1),viewedStylesSlugs:[...v].map((e=>e.slug)).slice(1),feedbackMissingSiteType:o,feedbackMissingGoal:s,siteTypeSearch:l,perfStyles:Vc("style"),perfPages:Vc("page"),insightsId:null===(a=window.extOnbData)||void 0===a?void 0:a.insightsId,activeTests:JSON.stringify(null===(d=window.extOnbData)||void 0===d?void 0:d.activeTests),exitFeedback:c,partnerName:null===(f=window.extOnbData)||void 0===f?void 0:f.partnerName,wpLanguage:null===(h=window.extOnbData)||void 0===h?void 0:h.wpLanguage})})}),1e3),()=>[a,u].forEach((e=>window.clearTimeout(e)))}),[p,e,t,n,r,i,d,m,v,o,s,l,c])})(),(0,a.useEffect)((()=>{e(window.extOnbData.editorStyles)}),[e]),(0,a.useEffect)((()=>{(0,i.registerCoreBlocks)()}),[]),(0,a.useEffect)((()=>{null!=y&&y.textdomain&&"extendable"!==(null==y?void 0:y.textdomain)&&_(!0)}),[y]),(0,a.useEffect)((()=>{g(!0),kl("extendify_launch_loaded",(new Date).toISOString())}),[]),(0,a.useEffect)((()=>{c&&p(u,c)}),[c,p,u]),m?(0,a.createElement)(ee,{value:{errorRetryInterval:1e3,onErrorRetry:(e,r,a,i,o)=>{var s,l;let{retryCount:c}=o;403!==(null==e||null===(s=e.data)||void 0===s?void 0:s.status)?t||(console.error(r,e),b.captureException(new Error(null!==(l=null==e?void 0:e.message)&&void 0!==l?l:"Unknown error"),{tags:{retrying:!0},extra:{cacheKey:r}}),n(!0),setTimeout((()=>{n(!1),i({retryCount:c})}),5e3)):window.location.reload()}}},(0,a.createElement)("div",{style:{zIndex:1e5},className:"h-screen w-screen fixed inset-0 overflow-y-auto md:overflow-hidden bg-white"},v?(0,a.createElement)(qc,null):null!=s&&s.slug||0===f?h?(0,a.createElement)(Bl,null):l?(0,a.createElement)(l,null):null:(d(0),null)),t&&(0,a.createElement)(ae,null),(0,a.createElement)(Fc,null)):null}),null),zc)}()}();
|
|
|
|
|
|
1 |
+
!function(){var e={184:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var l=a.apply(null,n);l&&e.push(l)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var i in n)r.call(n,i)&&n[i]&&e.push(i)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},874:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},818:function(e,t,n){var r=n(874),a=n(851),o=Object.hasOwnProperty,l=Object.create(null);for(var i in r)o.call(r,i)&&(l[r[i]]=i);var s=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}s.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=s.get.hsl(e),n="hsl";break;case"hwb":t=s.get.hwb(e),n="hwb";break;default:t=s.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},s.get.rgb=function(e){if(!e)return null;var t,n,a,l=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=t[2],t=t[1],n=0;n<3;n++){var i=2*n;l[n]=parseInt(t.slice(i,i+2),16)}a&&(l[3]=parseInt(a,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(a=(t=t[1])[3],n=0;n<3;n++)l[n]=parseInt(t[n]+t[n],16);a&&(l[3]=parseInt(a+a,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)l[n]=parseInt(t[n+1],0);t[4]&&(t[5]?l[3]=.01*parseFloat(t[4]):l[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:o.call(r,t[1])?((l=r[t[1]])[3]=1,l):null:null;for(n=0;n<3;n++)l[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?l[3]=.01*parseFloat(t[4]):l[3]=parseFloat(t[4]))}for(n=0;n<3;n++)l[n]=c(l[n],0,255);return l[3]=c(l[3],0,1),l},s.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},s.to.hex=function(){var e=a(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},s.to.rgb=function(){var e=a(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},s.to.rgb.percent=function(){var e=a(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},s.to.hsl=function(){var e=a(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},s.to.hwb=function(){var e=a(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},s.to.keyword=function(e){return l[e.slice(0,3)]}},767:function(e,t,n){const r=n(818),a=n(978),o=["keyword","gray","hex"],l={};for(const e of Object.keys(a))l[[...a[e].labels].sort().join("")]=e;const i={};function s(e,t){if(!(this instanceof s))return new s(e,t);if(t&&t in o&&(t=null),t&&!(t in a))throw new Error("Unknown model: "+t);let n,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof s)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){const t=r.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,c=a[this.model].channels,this.color=t.value.slice(0,c),this.valpha="number"==typeof t.value[c]?t.value[c]:1}else if(e.length>0){this.model=t||"rgb",c=a[this.model].channels;const n=Array.prototype.slice.call(e,0,c);this.color=f(n,c),this.valpha="number"==typeof e[c]?e[c]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);const r=t.sort().join("");if(!(r in l))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=l[r];const{labels:o}=a[this.model],i=[];for(n=0;n<o.length;n++)i.push(e[o[n]]);this.color=f(i)}if(i[this.model])for(c=a[this.model].channels,n=0;n<c;n++){const e=i[this.model][n];e&&(this.color[n]=e(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}s.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in r.to?this:this.rgb();t=t.round("number"==typeof e?e:1);const n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to[t.model](n)},percentString(e){const t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to.rgb.percent(n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=a[this.model],{labels:n}=a[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new s([...this.color.map(c(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new s([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:u("rgb",0,d(255)),green:u("rgb",1,d(255)),blue:u("rgb",2,d(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:u("hsl",1,d(100)),lightness:u("hsl",2,d(100)),saturationv:u("hsv",1,d(100)),value:u("hsv",2,d(100)),chroma:u("hcg",1,d(100)),gray:u("hcg",2,d(100)),white:u("hwb",1,d(100)),wblack:u("hwb",2,d(100)),cyan:u("cmyk",0,d(100)),magenta:u("cmyk",1,d(100)),yellow:u("cmyk",2,d(100)),black:u("cmyk",3,d(100)),x:u("xyz",0,d(95.047)),y:u("xyz",1,d(100)),z:u("xyz",2,d(108.833)),l:u("lab",0,d(100)),a:u("lab",1),b:u("lab",2),keyword(e){return void 0!==e?new s(e):a[this.model].keyword(this.color)},hex(e){return void 0!==e?new s(e):r.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new s(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),r.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return s.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),a=void 0===t?.5:t,o=2*a-1,l=n.alpha()-r.alpha(),i=((o*l==-1?o:(o+l)/(1+o*l))+1)/2,c=1-i;return s.rgb(i*n.red()+c*r.red(),i*n.green()+c*r.green(),i*n.blue()+c*r.blue(),n.alpha()*a+r.alpha()*(1-a))}};for(const e of Object.keys(a)){if(o.includes(e))continue;const{channels:t}=a[e];s.prototype[e]=function(...t){return this.model===e?new s(this):t.length>0?new s(t,e):new s([...(n=a[this.model][e].raw(this.color),Array.isArray(n)?n:[n]),this.valpha],e);var n},s[e]=function(...n){let r=n[0];return"number"==typeof r&&(r=f(n,t)),new s(r,e)}}function c(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function u(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(i[r]||(i[r]=[]))[t]=n;return e=e[0],function(r){let a;return void 0!==r?(n&&(r=n(r)),a=this[e](),a.color[t]=r,a):(a=this[e]().color[t],n&&(a=n(a)),a)}}function d(e){return function(t){return Math.max(0,Math.min(e,t))}}function f(e,t){for(let n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}e.exports=s},956:function(e,t,n){const r=n(900),a={};for(const e of Object.keys(r))a[r[e]]=e;const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e]))throw new Error("missing channels property: "+e);if(!("labels"in o[e]))throw new Error("missing channel labels property: "+e);if(o[e].labels.length!==o[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=o[e];delete o[e].channels,delete o[e].labels,Object.defineProperty(o[e],"channels",{value:t}),Object.defineProperty(o[e],"labels",{value:n})}o.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(t,n,r),o=Math.max(t,n,r),l=o-a;let i,s;o===a?i=0:t===o?i=(n-r)/l:n===o?i=2+(r-t)/l:r===o&&(i=4+(t-n)/l),i=Math.min(60*i,360),i<0&&(i+=360);const c=(a+o)/2;return s=o===a?0:c<=.5?l/(o+a):l/(2-o-a),[i,100*s,100*c]},o.rgb.hsv=function(e){let t,n,r,a,o;const l=e[0]/255,i=e[1]/255,s=e[2]/255,c=Math.max(l,i,s),u=c-Math.min(l,i,s),d=function(e){return(c-e)/6/u+.5};return 0===u?(a=0,o=0):(o=u/c,t=d(l),n=d(i),r=d(s),l===c?a=r-n:i===c?a=1/3+t-r:s===c&&(a=2/3+n-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*o,100*c]},o.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const a=o.rgb.hsl(e)[0],l=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[a,100*l,100*r]},o.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(1-t,1-n,1-r);return[100*((1-t-a)/(1-a)||0),100*((1-n-a)/(1-a)||0),100*((1-r-a)/(1-a)||0),100*a]},o.rgb.keyword=function(e){const t=a[e];if(t)return t;let n,o=1/0;for(const t of Object.keys(r)){const a=(i=r[t],((l=e)[0]-i[0])**2+(l[1]-i[1])**2+(l[2]-i[2])**2);a<o&&(o=a,n=t)}var l,i;return n},o.keyword.rgb=function(e){return r[e]},o.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;return t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},o.rgb.lab=function(e){const t=o.rgb.xyz(e);let n=t[0],r=t[1],a=t[2];return n/=95.047,r/=100,a/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,[116*r-16,500*(n-r),200*(r-a)]},o.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let a,o,l;if(0===n)return l=255*r,[l,l,l];a=r<.5?r*(1+n):r+n-r*n;const i=2*r-a,s=[0,0,0];for(let e=0;e<3;e++)o=t+1/3*-(e-1),o<0&&o++,o>1&&o--,l=6*o<1?i+6*(a-i)*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[e]=255*l;return s},o.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,a=n;const o=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,a*=o<=1?o:2-o,[t,100*(0===r?2*a/(o+a):2*n/(r+n)),(r+n)/2*100]},o.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const a=Math.floor(t)%6,o=t-Math.floor(t),l=255*r*(1-n),i=255*r*(1-n*o),s=255*r*(1-n*(1-o));switch(r*=255,a){case 0:return[r,s,l];case 1:return[i,r,l];case 2:return[l,r,s];case 3:return[l,i,r];case 4:return[s,l,r];case 5:return[r,l,i]}},o.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,a=Math.max(r,.01);let o,l;l=(2-n)*r;const i=(2-n)*a;return o=n*a,o/=i<=1?i:2-i,o=o||0,l/=2,[t,100*o,100*l]},o.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const a=n+r;let o;a>1&&(n/=a,r/=a);const l=Math.floor(6*t),i=1-r;o=6*t-l,0!=(1&l)&&(o=1-o);const s=n+o*(i-n);let c,u,d;switch(l){default:case 6:case 0:c=i,u=s,d=n;break;case 1:c=s,u=i,d=n;break;case 2:c=n,u=i,d=s;break;case 3:c=n,u=s,d=i;break;case 4:c=s,u=n,d=i;break;case 5:c=i,u=n,d=s}return[255*c,255*u,255*d]},o.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a))]},o.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let a,o,l;return a=3.2406*t+-1.5372*n+-.4986*r,o=-.9689*t+1.8758*n+.0415*r,l=.0557*t+-.204*n+1.057*r,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),l=Math.min(Math.max(0,l),1),[255*a,255*o,255*l]},o.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},o.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const a=n**3,o=t**3,l=r**3;return n=a>.008856?a:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=l>.008856?l:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},o.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let a;return a=360*Math.atan2(r,n)/2/Math.PI,a<0&&(a+=360),[t,Math.sqrt(n*n+r*r),a]},o.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},o.rgb.ansi16=function(e,t=null){const[n,r,a]=e;let l=null===t?o.rgb.hsv(e)[2]:t;if(l=Math.round(l/50),0===l)return 30;let i=30+(Math.round(a/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===l&&(i+=60),i},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},o.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},o.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},o.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},o.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.max(Math.max(t,n),r),o=Math.min(Math.min(t,n),r),l=a-o;let i,s;return i=l<1?o/(1-l):0,s=l<=0?0:a===t?(n-r)/l%6:a===n?2+(r-t)/l:4+(t-n)/l,s/=6,s%=1,[360*s,100*l,100*i]},o.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let a=0;return r<1&&(a=(n-.5*r)/(1-r)),[e[0],100*r,100*a]},o.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},o.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const a=[0,0,0],o=t%1*6,l=o%1,i=1-l;let s=0;switch(Math.floor(o)){case 0:a[0]=1,a[1]=l,a[2]=0;break;case 1:a[0]=i,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=l;break;case 3:a[0]=0,a[1]=i,a[2]=1;break;case 4:a[0]=l,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=i}return s=(1-n)*r,[255*(n*a[0]+s),255*(n*a[1]+s),255*(n*a[2]+s)]},o.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},o.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},o.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},o.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},978:function(e,t,n){const r=n(956),a=n(774),o={};Object.keys(r).forEach((e=>{o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});const t=a(e);Object.keys(t).forEach((n=>{const r=t[n];o[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(r),o[e][n].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=o},774:function(e,t,n){const r=n(956);function a(e,t){return function(n){return t(e(n))}}function o(e,t){const n=[t[e].parent,e];let o=r[t[e].parent][e],l=t[e].parent;for(;t[l].parent;)n.unshift(t[l].parent),o=a(r[t[l].parent][l],o),l=t[l].parent;return o.conversion=n,o}e.exports=function(e){const t=function(e){const t=function(){const e={},t=Object.keys(r);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),a=Object.keys(r[e]);for(let r=a.length,o=0;o<r;o++){const r=a[o],l=t[r];-1===l.distance&&(l.distance=t[e].distance+1,l.parent=e,n.unshift(r))}}return t}(e),n={},a=Object.keys(t);for(let e=a.length,r=0;r<e;r++){const e=a[r];null!==t[e].parent&&(n[e]=o(e,t))}return n}},900:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},230:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},851:function(e,t,n){"use strict";var r=n(594),a=Array.prototype.concat,o=Array.prototype.slice,l=e.exports=function(e){for(var t=[],n=0,l=e.length;n<l;n++){var i=e[n];r(i)?t=a.call(t,o.call(i)):t.push(i)}return t};l.wrap=function(e){return function(){return e(l(arguments))}}},594:function(e){e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},250:function(e,t,n){"use strict";var r=n(196),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,l=r.useEffect,i=r.useLayoutEffect,s=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),a=r[0].inst,u=r[1];return i((function(){a.value=n,a.getSnapshot=t,c(a)&&u({inst:a})}),[e,n,t]),l((function(){return c(a)&&u({inst:a}),e((function(){c(a)&&u({inst:a})}))}),[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},139:function(e,t,n){"use strict";var r=n(196),a=n(688),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=a.useSyncExternalStore,i=r.useRef,s=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,a){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c((function(){function e(e){if(!s){if(s=!0,l=e,e=r(e),void 0!==a&&f.hasValue){var t=f.value;if(a(t,e))return i=t}return i=e}if(t=i,o(l,e))return t;var n=r(e);return void 0!==a&&a(t,n)?t:(l=e,i=n)}var l,i,s=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,a]);var m=l(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=m}),[m]),u(m),m}},688:function(e,t,n){"use strict";e.exports=n(250)},798:function(e,t,n){"use strict";e.exports=n(139)},196:function(e){"use strict";e.exports=window.React}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=window.wp.element,t=window.wp.blockLibrary,r=window.wp.data,a=n(196);function o(e,t,n,r){return new(n||(n=Promise))((function(a,o){function l(e){try{s(r.next(e))}catch(e){o(e)}}function i(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,i)}s((r=r.apply(e,t||[])).next())}))}function l(e,t){var n,r,a,o,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function i(o){return function(i){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return l.label++,{value:o[1],done:!1};case 5:l.label++,r=o[1],o=[0];continue;case 7:o=l.ops.pop(),l.trys.pop();continue;default:if(!((a=(a=l.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){l=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){l.label=o[1];break}if(6===o[0]&&l.label<a[1]){l.label=a[1],a=o;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(o);break}a[2]&&l.ops.pop(),l.trys.pop();continue}o=t.call(e,l)}catch(e){o=[6,e],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,i])}}}var i,s=function(){},c=s(),u=Object,d=function(e){return e===c},f=function(e){return"function"==typeof e},m=function(e,t){return u.assign({},e,t)},h="undefined",p=function(){return typeof window!=h},g=new WeakMap,v=0,y=function(e){var t,n,r=typeof e,a=e&&e.constructor,o=a==Date;if(u(e)!==e||o||a==RegExp)t=o?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=g.get(e))return t;if(t=++v+"~",g.set(e,t),a==Array){for(t="@",n=0;n<e.length;n++)t+=y(e[n])+",";g.set(e,t)}if(a==u){t="#";for(var l=u.keys(e).sort();!d(n=l.pop());)d(e[n])||(t+=n+":"+y(e[n])+",");g.set(e,t)}}return t},b=!0,w=p(),E=typeof document!=h,x=w&&window.addEventListener?window.addEventListener.bind(window):s,C=E?document.addEventListener.bind(document):s,S=w&&window.removeEventListener?window.removeEventListener.bind(window):s,k=E?document.removeEventListener.bind(document):s,N={isOnline:function(){return b},isVisible:function(){var e=E&&document.visibilityState;return d(e)||"hidden"!==e}},O={initFocus:function(e){return C("visibilitychange",e),x("focus",e),function(){k("visibilitychange",e),S("focus",e)}},initReconnect:function(e){var t=function(){b=!0,e()},n=function(){b=!1};return x("online",t),x("offline",n),function(){S("online",t),S("offline",n)}}},L=!p()||"Deno"in window,M=L?a.useEffect:a.useLayoutEffect,T="undefined"!=typeof navigator&&navigator.connection,_=!L&&T&&(["slow-2g","2g"].includes(T.effectiveType)||T.saveData),P=function(e){if(f(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?y(e):"",t,e?"$swr$"+e:""]},R=new WeakMap,A=function(e,t,n,r,a,o,l){void 0===l&&(l=!0);var i=R.get(e),s=i[0],c=i[1],u=i[3],d=s[t],f=c[t];if(l&&f)for(var m=0;m<f.length;++m)f[m](n,r,a);return o&&(delete u[t],d&&d[0])?d[0](2).then((function(){return e.get(t)})):e.get(t)},D=0,F=function(){return++D},j=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(void 0,void 0,void 0,(function(){var t,n,r,a,o,i,s,u,h,p,g,v,y,b,w,E,x,C,S,k,N;return l(this,(function(l){switch(l.label){case 0:if(t=e[0],n=e[1],r=e[2],a=e[3],i=!!d((o="boolean"==typeof a?{revalidate:a}:a||{}).populateCache)||o.populateCache,s=!1!==o.revalidate,u=!1!==o.rollbackOnError,h=o.optimisticData,p=P(n),g=p[0],v=p[2],!g)return[2];if(y=R.get(t),b=y[2],e.length<3)return[2,A(t,g,t.get(g),c,c,s,!0)];if(w=r,x=F(),b[g]=[x,0],C=!d(h),S=t.get(g),C&&(k=f(h)?h(S):h,t.set(g,k),A(t,g,k)),f(w))try{w=w(t.get(g))}catch(e){E=e}return w&&f(w.then)?[4,w.catch((function(e){E=e}))]:[3,2];case 1:if(w=l.sent(),x!==b[g][0]){if(E)throw E;return[2,w]}E&&C&&u&&(i=!0,w=S,t.set(g,S)),l.label=2;case 2:return i&&(E||(f(i)&&(w=i(w,S)),t.set(g,w)),t.set(v,m(t.get(v),{error:E}))),b[g][1]=F(),[4,A(t,g,w,E,c,s,!!i)];case 3:if(N=l.sent(),E)throw E;return[2,i?N:w]}}))}))},H=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},V=function(e,t){if(!R.has(e)){var n=m(O,t),r={},a=j.bind(c,e),o=s;if(R.set(e,[r,{},{},{},a]),!L){var l=n.initFocus(setTimeout.bind(c,H.bind(c,r,0))),i=n.initReconnect(setTimeout.bind(c,H.bind(c,r,1)));o=function(){l&&l(),i&&i(),R.delete(e)}}return[e,a,o]}return[e,R.get(e)[4]]},I=V(new Map),B=I[0],U=I[1],Z=m({onLoadingSlow:s,onSuccess:s,onError:s,onErrorRetry:function(e,__,t,n,r){var a=t.errorRetryCount,o=r.retryCount,l=~~((Math.random()+.5)*(1<<(o<8?o:8)))*t.errorRetryInterval;!d(a)&&o>a||setTimeout(n,l,r)},onDiscarded:s,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:_?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:_?5e3:3e3,compare:function(e,t){return y(e)==y(t)},isPaused:function(){return!1},cache:B,mutate:U,fallback:{}},N),z=function(e,t){var n=m(e,t);if(t){var r=e.use,a=e.fallback,o=t.use,l=t.fallback;r&&o&&(n.use=r.concat(o)),a&&l&&(n.fallback=m(a,l))}return n},q=(0,a.createContext)({}),$=function(e){return f(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},W=function(){return m(Z,(0,a.useContext)(q))},J=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},G={dedupe:!0},Y=u.defineProperty((function(e){var t=e.value,n=z((0,a.useContext)(q),t),r=t&&t.provider,o=(0,a.useState)((function(){return r?V(r(n.cache||B),t):c}))[0];return o&&(n.cache=o[0],n.mutate=o[1]),M((function(){return o?o[2]:c}),[]),(0,a.createElement)(q.Provider,m(e,{value:n}))}),"default",{value:Z}),X=(i=function(e,t,n){var r=n.cache,i=n.compare,s=n.fallbackData,u=n.suspense,g=n.revalidateOnMount,v=n.refreshInterval,y=n.refreshWhenHidden,b=n.refreshWhenOffline,w=R.get(r),E=w[0],x=w[1],C=w[2],S=w[3],k=P(e),N=k[0],O=k[1],T=k[2],_=(0,a.useRef)(!1),D=(0,a.useRef)(!1),H=(0,a.useRef)(N),V=(0,a.useRef)(t),I=(0,a.useRef)(n),B=function(){return I.current},U=function(){return B().isVisible()&&B().isOnline()},Z=function(e){return r.set(T,m(r.get(T),e))},z=r.get(N),q=d(s)?n.fallback[N]:s,$=d(z)?q:z,W=r.get(T)||{},Y=W.error,X=!_.current,K=function(){return X&&!d(g)?g:!B().isPaused()&&(u?!d($)&&n.revalidateIfStale:d($)||n.revalidateIfStale)},Q=!(!N||!t)&&(!!W.isValidating||X&&K()),ee=function(e,t){var n=(0,a.useState)({})[1],r=(0,a.useRef)(e),o=(0,a.useRef)({data:!1,error:!1,isValidating:!1}),l=(0,a.useCallback)((function(e){var a=!1,l=r.current;for(var i in e){var s=i;l[s]!==e[s]&&(l[s]=e[s],o.current[s]&&(a=!0))}a&&!t.current&&n({})}),[]);return M((function(){r.current=e})),[r,o.current,l]}({data:$,error:Y,isValidating:Q},D),te=ee[0],ne=ee[1],re=ee[2],ae=(0,a.useCallback)((function(e){return o(void 0,void 0,void 0,(function(){var t,a,o,s,u,m,h,p,g,v,y,b,w;return l(this,(function(l){switch(l.label){case 0:if(t=V.current,!N||!t||D.current||B().isPaused())return[2,!1];s=!0,u=e||{},m=!S[N]||!u.dedupe,h=function(){return!D.current&&N===H.current&&_.current},p=function(){var e=S[N];e&&e[1]===o&&delete S[N]},g={isValidating:!1},v=function(){Z({isValidating:!1}),h()&&re(g)},Z({isValidating:!0}),re({isValidating:!0}),l.label=1;case 1:return l.trys.push([1,3,,4]),m&&(A(r,N,te.current.data,te.current.error,!0),n.loadingTimeout&&!r.get(N)&&setTimeout((function(){s&&h()&&B().onLoadingSlow(N,n)}),n.loadingTimeout),S[N]=[t.apply(void 0,O),F()]),w=S[N],a=w[0],o=w[1],[4,a];case 2:return a=l.sent(),m&&setTimeout(p,n.dedupingInterval),S[N]&&S[N][1]===o?(Z({error:c}),g.error=c,y=C[N],!d(y)&&(o<=y[0]||o<=y[1]||0===y[1])?(v(),m&&h()&&B().onDiscarded(N),[2,!1]):(i(te.current.data,a)?g.data=te.current.data:g.data=a,i(r.get(N),a)||r.set(N,a),m&&h()&&B().onSuccess(a,N,n),[3,4])):(m&&h()&&B().onDiscarded(N),[2,!1]);case 3:return b=l.sent(),p(),B().isPaused()||(Z({error:b}),g.error=b,m&&h()&&(B().onError(b,N,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||f(n.shouldRetryOnError)&&n.shouldRetryOnError(b))&&U()&&B().onErrorRetry(b,N,n,ae,{retryCount:(u.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return s=!1,v(),h()&&m&&A(r,N,g.data,g.error,!1),[2,!0]}}))}))}),[N]),oe=(0,a.useCallback)(j.bind(c,r,(function(){return H.current})),[]);if(M((function(){V.current=t,I.current=n})),M((function(){if(N){var e=N!==H.current,t=ae.bind(c,G),n=0,r=J(N,x,(function(e,t,n){re(m({error:t,isValidating:n},i(te.current.data,e)?c:{data:e}))})),a=J(N,E,(function(e){if(0==e){var r=Date.now();B().revalidateOnFocus&&r>n&&U()&&(n=r+B().focusThrottleInterval,t())}else if(1==e)B().revalidateOnReconnect&&U()&&t();else if(2==e)return ae()}));return D.current=!1,H.current=N,_.current=!0,e&&re({data:$,error:Y,isValidating:Q}),K()&&(d($)||L?t():function(e){p()&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(e):setTimeout(e,1)}(t)),function(){D.current=!0,r(),a()}}}),[N,ae]),M((function(){var e;function t(){var t=f(v)?v($):v;t&&-1!==e&&(e=setTimeout(n,t))}function n(){te.current.error||!y&&!B().isVisible()||!b&&!B().isOnline()?t():ae(G).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[v,y,b,ae]),(0,a.useDebugValue)($),u&&d($)&&N)throw V.current=t,I.current=n,D.current=!1,d(Y)?ae(G):Y;return{mutate:oe,get data(){return ne.data=!0,$},get error(){return ne.error=!0,Y},get isValidating(){return ne.isValidating=!0,Q}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=W(),r=$(e),a=r[0],o=r[1],l=r[2],s=z(n,l),c=i,u=s.use;if(u)for(var d=u.length;d-- >0;)c=u[d](c);return c(a,o||s.fetcher,s)}),K=window.wp.components,Q=window.wp.i18n;const ee=()=>(0,e.createElement)("div",{className:"extendify-onboarding w-full fixed bottom-4 px-4 flex justify-end z-max"},(0,e.createElement)("div",{className:"shadow-2xl"},(0,e.createElement)(K.Snackbar,null,(0,Q.__)("Just a moment, this is taking longer than expected.","extendify"))));function te(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,te),r}var ne,re=((ne=re||{})[ne.None=0]="None",ne[ne.RenderStrategy=1]="RenderStrategy",ne[ne.Static=2]="Static",ne),ae=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ae||{});function oe({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:a,visible:o=!0,name:l}){let i=ie(t,e);if(o)return le(i,n,r,l);let s=null!=a?a:0;if(2&s){let{static:e=!1,...t}=i;if(e)return le(t,n,r,l)}if(1&s){let{unmount:e=!0,...t}=i;return te(e?0:1,{0(){return null},1(){return le({...t,hidden:!0,style:{display:"none"}},n,r,l)}})}return le(i,n,r,l)}function le(e,t={},n,r){let{as:o=n,children:l,refName:i="ref",...s}=ue(e,["unmount","static"]),c=void 0!==e.ref?{[i]:e.ref}:{},u="function"==typeof l?l(t):l;s.className&&"function"==typeof s.className&&(s.className=s.className(t));let d={};if(t){let e=!1,n=[];for(let[r,a]of Object.entries(t))"boolean"==typeof a&&(e=!0),!0===a&&n.push(r);e&&(d["data-headlessui-state"]=n.join(" "))}if(o===a.Fragment&&Object.keys(ce(s)).length>0){if(!(0,a.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return(0,a.cloneElement)(u,Object.assign({},ie(u.props,ce(ue(s,["ref"]))),d,c,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(u.ref,c.ref)))}return(0,a.createElement)(o,Object.assign({},ue(s,["ref"]),o!==a.Fragment&&c,o!==a.Fragment&&d),u)}function ie(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let a=n[e];for(let e of a){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function se(e){var t;return Object.assign((0,a.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function ce(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function ue(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}let de=(0,a.createContext)(null);de.displayName="OpenClosedContext";var fe=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(fe||{});function me(){return(0,a.useContext)(de)}function he({value:e,children:t}){return a.createElement(de.Provider,{value:e},t)}const pe="undefined"==typeof window||"undefined"==typeof document;let ge=pe?a.useEffect:a.useLayoutEffect;function ve(){let e=(0,a.useRef)(!1);return ge((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function ye(e){let t=(0,a.useRef)(e);return ge((()=>{t.current=e}),[e]),t}let be={serverHandoffComplete:!1};function we(){let[e,t]=(0,a.useState)(be.serverHandoffComplete);return(0,a.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,a.useEffect)((()=>{!1===be.serverHandoffComplete&&(be.serverHandoffComplete=!0)}),[]),e}let Ee=function(e){let t=ye(e);return a.useCallback(((...e)=>t.current(...e)),[t])},xe=Symbol();function Ce(e,t=!0){return Object.assign(e,{[xe]:t})}function Se(...e){let t=(0,a.useRef)(e);(0,a.useEffect)((()=>{t.current=e}),[e]);let n=Ee((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[xe])))?void 0:n}function ke(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Ne(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener(e,t,r,a){return e.addEventListener(t,r,a),n.add((()=>e.removeEventListener(t,r,a)))},requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame(...e){return n.requestAnimationFrame((()=>n.requestAnimationFrame(...e)))},setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return ke((()=>{t.current&&e[0]()})),n.add((()=>{t.current=!1}))},add(t){return e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}},dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}function Oe(e,...t){e&&t.length>0&&e.classList.add(...t)}function Le(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Me,Te=((Me=Te||{}).Ended="ended",Me.Cancelled="cancelled",Me);function _e(){let[e]=(0,a.useState)(Ne);return(0,a.useEffect)((()=>()=>e.dispose()),[e]),e}function Pe({container:e,direction:t,classes:n,onStart:r,onStop:a}){let o=ve(),l=_e(),i=ye(t);ge((()=>{let t=Ne();l.add(t.dispose);let s=e.current;if(s&&"idle"!==i.current&&o.current)return t.dispose(),r.current(i.current),t.add(function(e,t,n,r){let a=n?"enter":"leave",o=Ne(),l=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{};"enter"===a&&(e.removeAttribute("hidden"),e.style.display="");let i=te(a,{enter:()=>t.enter,leave:()=>t.leave}),s=te(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=te(a,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Le(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Oe(e,...i,...c),o.nextFrame((()=>{Le(e,...c),Oe(e,...s),function(e,t){let n=Ne();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:a}=getComputedStyle(e),[o,l]=[r,a].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(o+l!==0){let r=[];r.push(n.addEventListener(e,"transitionrun",(a=>{a.target===a.currentTarget&&(r.splice(0).forEach((e=>e())),r.push(n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t("ended"),r.splice(0).forEach((e=>e())))})),n.addEventListener(e,"transitioncancel",(e=>{e.target===e.currentTarget&&(t("cancelled"),r.splice(0).forEach((e=>e())))}))))})))}else t("ended");n.add((()=>t("cancelled"))),n.dispose}(e,(n=>("ended"===n&&(Le(e,...i),Oe(e,...t.entered)),l(n))))})),o.dispose}(s,n.current,"enter"===i.current,(e=>{t.dispose(),te(e,{[Te.Ended](){a.current(i.current)},[Te.Cancelled]:()=>{}})}))),t.dispose}),[t])}function Re(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let Ae=(0,a.createContext)(null);Ae.displayName="TransitionContext";var De,Fe=((De=Fe||{}).Visible="visible",De.Hidden="hidden",De);let je=(0,a.createContext)(null);function He(e){return"children"in e?He(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Ve(e,t){let n=ye(e),r=(0,a.useRef)([]),o=ve(),l=_e(),i=Ee(((e,t=ae.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(te(t,{[ae.Unmount](){r.current.splice(a,1)},[ae.Hidden](){r.current[a].state="hidden"}}),l.microTask((()=>{var e;!He(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),s=Ee((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>i(e,ae.Unmount)})),c=(0,a.useRef)([]),u=(0,a.useRef)(Promise.resolve()),d=(0,a.useRef)({enter:[],leave:[],idle:[]}),f=Ee(((e,n,r)=>{c.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{c.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(d.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?u.current=u.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),m=Ee(((e,t,n)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=c.current.shift())||e()})).then((()=>n(t)))}));return(0,a.useMemo)((()=>({children:r,register:s,unregister:i,onStart:f,onStop:m,wait:u,chains:d})),[s,i,r,f,m,d,u])}function Ie(){}je.displayName="NestingContext";let Be=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Ue(e){var t;let n={};for(let r of Be)n[r]=null!=(t=e[r])?t:Ie;return n}let Ze=re.RenderStrategy,ze=se((function(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:l,enter:i,enterFrom:s,enterTo:c,entered:u,leave:d,leaveFrom:f,leaveTo:m,...h}=e,p=(0,a.useRef)(null),g=Se(p,t),v=h.unmount?ae.Unmount:ae.Hidden,{show:y,appear:b,initial:w}=function(){let e=(0,a.useContext)(Ae);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[E,x]=(0,a.useState)(y?"visible":"hidden"),C=function(){let e=(0,a.useContext)(je);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:S,unregister:k}=C,N=(0,a.useRef)(null);(0,a.useEffect)((()=>S(p)),[S,p]),(0,a.useEffect)((()=>{if(v===ae.Hidden&&p.current)return y&&"visible"!==E?void x("visible"):te(E,{hidden:()=>k(p),visible:()=>S(p)})}),[E,p,S,k,y,v]);let O=ye({enter:Re(i),enterFrom:Re(s),enterTo:Re(c),entered:Re(u),leave:Re(d),leaveFrom:Re(f),leaveTo:Re(m)}),L=function(e){let t=(0,a.useRef)(Ue(e));return(0,a.useEffect)((()=>{t.current=Ue(e)}),[e]),t}({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:l}),M=we();(0,a.useEffect)((()=>{if(M&&"visible"===E&&null===p.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[p,E,M]);let T=w&&!b,_=!M||T||N.current===y?"idle":y?"enter":"leave",P=Ee((e=>te(e,{enter:()=>L.current.beforeEnter(),leave:()=>L.current.beforeLeave(),idle:()=>{}}))),R=Ee((e=>te(e,{enter:()=>L.current.afterEnter(),leave:()=>L.current.afterLeave(),idle:()=>{}}))),A=Ve((()=>{x("hidden"),k(p)}),C);Pe({container:p,classes:O,direction:_,onStart:ye((e=>{A.onStart(p,e,P)})),onStop:ye((e=>{A.onStop(p,e,R),"leave"===e&&!He(A)&&(x("hidden"),k(p))}))}),(0,a.useEffect)((()=>{!T||(v===ae.Hidden?N.current=null:N.current=y)}),[y,T,E]);let D=h,F={ref:g};return a.createElement(je.Provider,{value:A},a.createElement(he,{value:te(E,{visible:fe.Open,hidden:fe.Closed})},oe({ourProps:F,theirProps:D,defaultTag:"div",features:Ze,visible:"visible"===E,name:"Transition.Child"})))})),qe=se((function(e,t){let{show:n,appear:r=!1,unmount:o,...l}=e,i=(0,a.useRef)(null),s=Se(i,t);we();let c=me();if(void 0===n&&null!==c&&(n=te(c,{[fe.Open]:!0,[fe.Closed]:!1})),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=(0,a.useState)(n?"visible":"hidden"),f=Ve((()=>{d("hidden")})),[m,h]=(0,a.useState)(!0),p=(0,a.useRef)([n]);ge((()=>{!1!==m&&p.current[p.current.length-1]!==n&&(p.current.push(n),h(!1))}),[p,n]);let g=(0,a.useMemo)((()=>({show:n,appear:r,initial:m})),[n,r,m]);(0,a.useEffect)((()=>{if(n)d("visible");else if(He(f)){let e=i.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&d("hidden")}else d("hidden")}),[n,f]);let v={unmount:o};return a.createElement(je.Provider,{value:f},a.createElement(Ae.Provider,{value:g},oe({ourProps:{...v,as:a.Fragment,children:a.createElement(ze,{ref:s,...v,...l})},theirProps:{},defaultTag:a.Fragment,features:Ze,visible:"visible"===u,name:"Transition"})))})),$e=se((function(e,t){let n=null!==(0,a.useContext)(Ae),r=null!==me();return a.createElement(a.Fragment,null,!n&&r?a.createElement(qe,{ref:t,...e}):a.createElement(ze,{ref:t,...e}))})),We=Object.assign(qe,{Child:$e,Root:qe});function Je(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ge}=Object.prototype,{getPrototypeOf:Ye}=Object,Xe=(e=>t=>{const n=Ge.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ke=e=>(e=e.toLowerCase(),t=>Xe(t)===e),Qe=e=>t=>typeof t===e,{isArray:et}=Array,tt=Qe("undefined"),nt=Ke("ArrayBuffer"),rt=Qe("string"),at=Qe("function"),ot=Qe("number"),lt=e=>null!==e&&"object"==typeof e,it=e=>{if("object"!==Xe(e))return!1;const t=Ye(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},st=Ke("Date"),ct=Ke("File"),ut=Ke("Blob"),dt=Ke("FileList"),ft=Ke("URLSearchParams");function mt(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,a;if("object"!=typeof e&&(e=[e]),et(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let l;for(r=0;r<o;r++)l=a[r],t.call(null,e[l],l,e)}}const ht=(pt="undefined"!=typeof Uint8Array&&Ye(Uint8Array),e=>pt&&e instanceof pt);var pt;const gt=Ke("HTMLFormElement"),vt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),yt=Ke("RegExp"),bt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};mt(n,((n,a)=>{!1!==t(n,a,e)&&(r[a]=n)})),Object.defineProperties(e,r)};var wt={isArray:et,isArrayBuffer:nt,isBuffer:function(e){return null!==e&&!tt(e)&&null!==e.constructor&&!tt(e.constructor)&&at(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{const t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||Ge.call(e)===t||at(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&nt(e.buffer),t},isString:rt,isNumber:ot,isBoolean:e=>!0===e||!1===e,isObject:lt,isPlainObject:it,isUndefined:tt,isDate:st,isFile:ct,isBlob:ut,isRegExp:yt,isFunction:at,isStream:e=>lt(e)&&at(e.pipe),isURLSearchParams:ft,isTypedArray:ht,isFileList:dt,forEach:mt,merge:function e(){const t={},n=(n,r)=>{it(t[r])&&it(n)?t[r]=e(t[r],n):it(n)?t[r]=e({},n):et(n)?t[r]=n.slice():t[r]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&mt(arguments[e],n);return t},extend:(e,t,n,{allOwnKeys:r}={})=>(mt(t,((t,r)=>{n&&at(t)?e[r]=Je(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let a,o,l;const i={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)l=a[o],r&&!r(l,e,t)||i[l]||(t[l]=e[l],i[l]=!0);e=!1!==n&&Ye(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Xe,kindOfTest:Ke,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(et(e))return e;let t=e.length;if(!ot(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:gt,hasOwnProperty:vt,hasOwnProp:vt,reduceDescriptors:bt,freezeMethods:e=>{bt(e,((t,n)=>{const r=e[n];at(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return et(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t)};function Et(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}wt.inherits(Et,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const xt=Et.prototype,Ct={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Ct[e]={value:e}})),Object.defineProperties(Et,Ct),Object.defineProperty(xt,"isAxiosError",{value:!0}),Et.from=(e,t,n,r,a,o)=>{const l=Object.create(xt);return wt.toFlatObject(e,l,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Et.call(l,e.message,t,n,r,a),l.cause=e,l.name=e.name,o&&Object.assign(l,o),l};var St=Et,kt=n(230);function Nt(e){return wt.isPlainObject(e)||wt.isArray(e)}function Ot(e){return wt.endsWith(e,"[]")?e.slice(0,-2):e}function Lt(e,t,n){return e?e.concat(t).map((function(e,t){return e=Ot(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Mt=wt.toFlatObject(wt,{},null,(function(e){return/^is[A-Z]/.test(e)}));var Tt=function(e,t,n){if(!wt.isObject(e))throw new TypeError("target must be an object");t=t||new(kt||FormData);const r=(n=wt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!wt.isUndefined(t[e])}))).metaTokens,a=n.visitor||u,o=n.dots,l=n.indexes,i=(n.Blob||"undefined"!=typeof Blob&&Blob)&&(s=t)&&wt.isFunction(s.append)&&"FormData"===s[Symbol.toStringTag]&&s[Symbol.iterator];var s;if(!wt.isFunction(a))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(wt.isDate(e))return e.toISOString();if(!i&&wt.isBlob(e))throw new St("Blob is not supported. Use a Buffer instead.");return wt.isArrayBuffer(e)||wt.isTypedArray(e)?i&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,a){let i=e;if(e&&!a&&"object"==typeof e)if(wt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(wt.isArray(e)&&function(e){return wt.isArray(e)&&!e.some(Nt)}(e)||wt.isFileList(e)||wt.endsWith(n,"[]")&&(i=wt.toArray(e)))return n=Ot(n),i.forEach((function(e,r){!wt.isUndefined(e)&&null!==e&&t.append(!0===l?Lt([n],r,o):null===l?n:n+"[]",c(e))})),!1;return!!Nt(e)||(t.append(Lt(a,n,o),c(e)),!1)}const d=[],f=Object.assign(Mt,{defaultVisitor:u,convertValue:c,isVisitable:Nt});if(!wt.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!wt.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),wt.forEach(n,(function(n,o){!0===(!(wt.isUndefined(n)||null===n)&&a.call(t,n,wt.isString(o)?o.trim():o,r,f))&&e(n,r?r.concat(o):[o])})),d.pop()}}(e),t};function _t(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Pt(e,t){this._pairs=[],e&&Tt(e,this,t)}const Rt=Pt.prototype;Rt.append=function(e,t){this._pairs.push([e,t])},Rt.toString=function(e){const t=e?function(t){return e.call(this,t,_t)}:_t;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var At=Pt;function Dt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ft(e,t,n){if(!t)return e;const r=n&&n.encode||Dt,a=n&&n.serialize;let o;if(o=a?a(t,n):wt.isURLSearchParams(t)?t.toString():new At(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}var jt=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){wt.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Ht={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Vt="undefined"!=typeof URLSearchParams?URLSearchParams:At,It=FormData;const Bt=(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})();var Ut={isBrowser:!0,classes:{URLSearchParams:Vt,FormData:It,Blob:Blob},isStandardBrowserEnv:Bt,protocols:["http","https","file","blob","url","data"]},Zt=function(e){function t(e,n,r,a){let o=e[a++];const l=Number.isFinite(+o),i=a>=e.length;return o=!o&&wt.isArray(r)?r.length:o,i?(wt.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!l):(r[o]&&wt.isObject(r[o])||(r[o]=[]),t(e,n,r[o],a)&&wt.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const a=n.length;let o;for(r=0;r<a;r++)o=n[r],t[o]=e[o];return t}(r[o])),!l)}if(wt.isFormData(e)&&wt.isFunction(e.entries)){const n={};return wt.forEachEntry(e,((e,r)=>{t(function(e){return wt.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},zt=Ut.isStandardBrowserEnv?{write:function(e,t,n,r,a,o){const l=[];l.push(e+"="+encodeURIComponent(t)),wt.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),wt.isString(r)&&l.push("path="+r),wt.isString(a)&&l.push("domain="+a),!0===o&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function qt(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var $t=Ut.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=wt.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function Wt(e,t,n){St.call(this,null==e?"canceled":e,St.ERR_CANCELED,t,n),this.name="CanceledError"}wt.inherits(Wt,St,{__CANCEL__:!0});var Jt=Wt;const Gt=wt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Yt=Symbol("internals"),Xt=Symbol("defaults");function Kt(e){return e&&String(e).trim().toLowerCase()}function Qt(e){return!1===e||null==e?e:wt.isArray(e)?e.map(Qt):String(e)}function en(e,t,n,r){return wt.isFunction(r)?r.call(this,t,n):wt.isString(t)?wt.isString(r)?-1!==t.indexOf(r):wt.isRegExp(r)?r.test(t):void 0:void 0}function tn(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,a=n.length;for(;a-- >0;)if(r=n[a],t===r.toLowerCase())return r;return null}function nn(e,t){e&&this.set(e),this[Xt]=t||null}Object.assign(nn.prototype,{set:function(e,t,n){const r=this;function a(e,t,n){const a=Kt(t);if(!a)throw new Error("header name must be a non-empty string");const o=tn(r,a);(!o||!0===n||!1!==r[o]&&!1!==n)&&(r[o||t]=Qt(e))}return wt.isPlainObject(e)?wt.forEach(e,((e,n)=>{a(e,n,t)})):a(t,e,n),this},get:function(e,t){if(!(e=Kt(e)))return;const n=tn(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(wt.isFunction(t))return t.call(this,e,n);if(wt.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=Kt(e)){const n=tn(this,e);return!(!n||t&&!en(0,this[n],n,t))}return!1},delete:function(e,t){const n=this;let r=!1;function a(e){if(e=Kt(e)){const a=tn(n,e);!a||t&&!en(0,n[a],a,t)||(delete n[a],r=!0)}}return wt.isArray(e)?e.forEach(a):a(e),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(e){const t=this,n={};return wt.forEach(this,((r,a)=>{const o=tn(n,a);if(o)return t[o]=Qt(r),void delete t[a];const l=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(a):String(a).trim();l!==a&&delete t[a],t[l]=Qt(r),n[l]=!0})),this},toJSON:function(e){const t=Object.create(null);return wt.forEach(Object.assign({},this[Xt]||null,this),((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&wt.isArray(n)?n.join(", "):n)})),t}}),Object.assign(nn,{from:function(e){return wt.isString(e)?new this((e=>{const t={};let n,r,a;return e&&e.split("\n").forEach((function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),r=e.substring(a+1).trim(),!n||t[n]&&Gt[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e)):e instanceof this?e:new this(e)},accessor:function(e){const t=(this[Yt]=this[Yt]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Kt(e);t[r]||(function(e,t){const n=wt.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,a){return this[r].call(this,t,e,n,a)},configurable:!0})}))}(n,e),t[r]=!0)}return wt.isArray(e)?e.forEach(r):r(e),this}}),nn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),wt.freezeMethods(nn.prototype),wt.freezeMethods(nn);var rn=nn;function an(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a,o=0,l=0;return t=void 0!==t?t:1e3,function(i){const s=Date.now(),c=r[l];a||(a=s),n[o]=i,r[o]=s;let u=l,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),s-a<t)return;const f=c&&s-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return a=>{const o=a.loaded,l=a.lengthComputable?a.total:void 0,i=o-n,s=r(i);n=o;const c={loaded:o,total:l,progress:l?o/l:void 0,bytes:i,rate:s||void 0,estimated:s&&l&&o<=l?(l-o)/s:void 0};c[t?"download":"upload"]=!0,e(c)}}function on(e){return new Promise((function(t,n){let r=e.data;const a=rn.from(e.headers).normalize(),o=e.responseType;let l;function i(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}wt.isFormData(r)&&Ut.isStandardBrowserEnv&&a.setContentType(!1);let s=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(t+":"+n))}const c=qt(e.baseURL,e.url);function u(){if(!s)return;const r=rn.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new St("Request failed with status code "+n.status,[St.ERR_BAD_REQUEST,St.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),i()}),(function(e){n(e),i()}),{data:o&&"text"!==o&&"json"!==o?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:r,config:e,request:s}),s=null}if(s.open(e.method.toUpperCase(),Ft(c,e.params,e.paramsSerializer),!0),s.timeout=e.timeout,"onloadend"in s?s.onloadend=u:s.onreadystatechange=function(){s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))&&setTimeout(u)},s.onabort=function(){s&&(n(new St("Request aborted",St.ECONNABORTED,e,s)),s=null)},s.onerror=function(){n(new St("Network Error",St.ERR_NETWORK,e,s)),s=null},s.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Ht;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new St(t,r.clarifyTimeoutError?St.ETIMEDOUT:St.ECONNABORTED,e,s)),s=null},Ut.isStandardBrowserEnv){const t=(e.withCredentials||$t(c))&&e.xsrfCookieName&&zt.read(e.xsrfCookieName);t&&a.set(e.xsrfHeaderName,t)}void 0===r&&a.setContentType(null),"setRequestHeader"in s&&wt.forEach(a.toJSON(),(function(e,t){s.setRequestHeader(t,e)})),wt.isUndefined(e.withCredentials)||(s.withCredentials=!!e.withCredentials),o&&"json"!==o&&(s.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&s.addEventListener("progress",an(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&s.upload&&s.upload.addEventListener("progress",an(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=t=>{s&&(n(!t||t.type?new Jt(null,e,s):t),s.abort(),s=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(c);d&&-1===Ut.protocols.indexOf(d)?n(new St("Unsupported protocol "+d+":",St.ERR_BAD_REQUEST,e)):s.send(r||null)}))}const ln={http:on,xhr:on};var sn=e=>{if(wt.isString(e)){const t=ln[e];if(!e)throw Error(wt.hasOwnProp(e)?`Adapter '${e}' is not available in the build`:`Can not resolve adapter '${e}'`);return t}if(!wt.isFunction(e))throw new TypeError("adapter is not a function");return e};const cn={"Content-Type":"application/x-www-form-urlencoded"},un={transitional:Ht,adapter:function(){let e;return"undefined"!=typeof XMLHttpRequest?e=sn("xhr"):"undefined"!=typeof process&&"process"===wt.kindOf(process)&&(e=sn("http")),e}(),transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,a=wt.isObject(e);if(a&&wt.isHTMLForm(e)&&(e=new FormData(e)),wt.isFormData(e))return r&&r?JSON.stringify(Zt(e)):e;if(wt.isArrayBuffer(e)||wt.isBuffer(e)||wt.isStream(e)||wt.isFile(e)||wt.isBlob(e))return e;if(wt.isArrayBufferView(e))return e.buffer;if(wt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Tt(e,new Ut.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ut.isNode&&wt.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=wt.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Tt(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||r?(t.setContentType("application/json",!1),function(e,t,n){if(wt.isString(e))try{return(0,JSON.parse)(e),wt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||un.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&wt.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw St.from(e,St.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ut.classes.FormData,Blob:Ut.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};wt.forEach(["delete","get","head"],(function(e){un.headers[e]={}})),wt.forEach(["post","put","patch"],(function(e){un.headers[e]=wt.merge(cn)}));var dn=un;function fn(e,t){const n=this||dn,r=t||n,a=rn.from(r.headers);let o=r.data;return wt.forEach(e,(function(e){o=e.call(n,o,a.normalize(),t?t.status:void 0)})),a.normalize(),o}function mn(e){return!(!e||!e.__CANCEL__)}function hn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Jt}function pn(e){return hn(e),e.headers=rn.from(e.headers),e.data=fn.call(e,e.transformRequest),(e.adapter||dn.adapter)(e).then((function(t){return hn(e),t.data=fn.call(e,e.transformResponse,t),t.headers=rn.from(t.headers),t}),(function(t){return mn(t)||(hn(e),t&&t.response&&(t.response.data=fn.call(e,e.transformResponse,t.response),t.response.headers=rn.from(t.response.headers))),Promise.reject(t)}))}function gn(e,t){t=t||{};const n={};function r(e,t){return wt.isPlainObject(e)&&wt.isPlainObject(t)?wt.merge(e,t):wt.isPlainObject(t)?wt.merge({},t):wt.isArray(t)?t.slice():t}function a(n){return wt.isUndefined(t[n])?wt.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function o(e){if(!wt.isUndefined(t[e]))return r(void 0,t[e])}function l(n){return wt.isUndefined(t[n])?wt.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function i(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}const s={url:o,method:o,data:o,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:i};return wt.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){const t=s[e]||a,r=t(e);wt.isUndefined(r)&&t!==i||(n[e]=r)})),n}const vn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{vn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const yn={};vn.transitional=function(e,t,n){function r(e,t){return"[Axios v1.1.3] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,o)=>{if(!1===e)throw new St(r(a," has been removed"+(t?" in "+t:"")),St.ERR_DEPRECATED);return t&&!yn[a]&&(yn[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,o)}};var bn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new St("options must be an object",St.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const o=r[a],l=t[o];if(l){const t=e[o],n=void 0===t||l(t,o,e);if(!0!==n)throw new St("option "+o+" must be "+n,St.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new St("Unknown option "+o,St.ERR_BAD_OPTION)}},validators:vn};const wn=bn.validators;class En{constructor(e){this.defaults=e,this.interceptors={request:new jt,response:new jt}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=gn(this.defaults,t);const{transitional:n,paramsSerializer:r}=t;void 0!==n&&bn.assertOptions(n,{silentJSONParsing:wn.transitional(wn.boolean),forcedJSONParsing:wn.transitional(wn.boolean),clarifyTimeoutError:wn.transitional(wn.boolean)},!1),void 0!==r&&bn.assertOptions(r,{encode:wn.function,serialize:wn.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();const a=t.headers&&wt.merge(t.headers.common,t.headers[t.method]);a&&wt.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),t.headers=new rn(t.headers,a);const o=[];let l=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));const i=[];let s;this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)}));let c,u=0;if(!l){const e=[pn.bind(this),void 0];for(e.unshift.apply(e,o),e.push.apply(e,i),c=e.length,s=Promise.resolve(t);u<c;)s=s.then(e[u++],e[u++]);return s}c=o.length;let d=t;for(u=0;u<c;){const e=o[u++],t=o[u++];try{d=e(d)}catch(e){t.call(this,e);break}}try{s=pn.call(this,d)}catch(e){return Promise.reject(e)}for(u=0,c=i.length;u<c;)s=s.then(i[u++],i[u++]);return s}getUri(e){return Ft(qt((e=gn(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}wt.forEach(["delete","get","head","options"],(function(e){En.prototype[e]=function(t,n){return this.request(gn(n||{},{method:e,url:t,data:(n||{}).data}))}})),wt.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,a){return this.request(gn(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}En.prototype[e]=t(),En.prototype[e+"Form"]=t(!0)}));var xn=En;class Cn{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,a){n.reason||(n.reason=new Jt(e,r,a),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Cn((function(t){e=t})),cancel:e}}}var Sn=Cn;const kn=function e(t){const n=new xn(t),r=Je(xn.prototype.request,n);return wt.extend(r,xn.prototype,n,{allOwnKeys:!0}),wt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(gn(t,n))},r}(dn);kn.Axios=xn,kn.CanceledError=Jt,kn.CancelToken=Sn,kn.isCancel=mn,kn.VERSION="1.1.3",kn.toFormData=Tt,kn.AxiosError=St,kn.Cancel=kn.CanceledError,kn.all=function(e){return Promise.all(e)},kn.spread=function(e){return function(t){return e.apply(null,t)}},kn.isAxiosError=function(e){return wt.isObject(e)&&!0===e.isAxiosError},kn.formToJSON=e=>Zt(wt.isHTMLForm(e)?new FormData(e):e);var Nn=kn;const{Axios:On,AxiosError:Ln,CanceledError:Mn,isCancel:Tn,CancelToken:Pn,VERSION:Rn,all:An,Cancel:Dn,isAxiosError:Fn,spread:jn,toFormData:Hn}=Nn,Vn=Nn.create({baseURL:window.extOnbData.root,headers:{"X-WP-Nonce":window.extOnbData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Onboarding":!0,"X-Extendify":!0}});Vn.interceptors.request.use((e=>Un(e)),(e=>e)),Vn.interceptors.response.use((e=>In(e)),(e=>Bn(e)));const In=e=>Object.prototype.hasOwnProperty.call(e,"data")?e.data:e,Bn=e=>{if(e.response)return console.error(e.response),e.response.status>=400&&e.response.status<500?Promise.reject(e.response):Promise.reject(In(e.response))},Un=e=>(e.headers["X-Extendify-Onboarding-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Onboarding-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e),Zn=(e,t)=>Vn.post("onboarding/options",{option:e,value:t}),zn=async e=>{const{data:t}=await Vn.get("onboarding/options",{params:{option:e}});return t},qn=async e=>{if(null!=e&&e.wordpressSlug){try{const t=await Vn.post(`${window.extOnbData.wpRoot}wp/v2/plugins`,{slug:e.wordpressSlug,status:"active"});if(!t.ok)return t}catch(e){}try{return await $n(e)}catch(e){}}},$n=async e=>{var t;const n=`${window.extOnbData.wpRoot}wp/v2/plugins`,r=await Vn.get(`${n}?search=${e.wordpressSlug}`),a=null==r||null===(t=r[0])||void 0===t?void 0:t.plugin;if(!a)throw new Error("Plugin not found");return await Vn.post(`${n}/${a}`,{status:"active"})},Wn=(e,t)=>Vn.post(`${window.extOnbData.wpRoot}wp/v2/template-parts/${e}`,{slug:`${e}`,theme:"extendable",type:"wp_template_part",status:"publish",description:(0,Q.sprintf)(// translators: %s is the name of the product, Extendify Launch
|
2 |
+
(0,Q.__)("Added by %s","extendify"),"Extendify Launch"),content:t}),Jn=async()=>{const e=await Vn.get(window.extOnbData.wpRoot+"wp/v2/global-styles/themes/extendable/variations");if(!Array.isArray(e))throw new Error("Could not get theme variations");return{data:e}};var Gn={};!function e(t,n,r,a){var o=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function l(){}function i(e){var r=n.exports.Promise,a=void 0!==r?r:t.Promise;return"function"==typeof a?new a(e):(e(l,l),null)}var s,c,u,d,f,m,h,p,g,v=(u=Math.floor(1e3/60),d={},f=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(s=function(e){var t=Math.random();return d[t]=requestAnimationFrame((function n(r){f===r||f+u-1<r?(f=r,delete d[t],e()):d[t]=requestAnimationFrame(n)})),t},c=function(e){d[e]&&cancelAnimationFrame(d[e])}):(s=function(e){return setTimeout(e,u)},c=function(e){return clearTimeout(e)}),{frame:s,cancel:c}),y=(p={},function(){if(m)return m;if(!r&&o){var t=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{m=new Worker(URL.createObjectURL(new Blob([t])))}catch(e){return void 0!==typeof console&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",e),null}!function(e){function t(t,n){e.postMessage({options:t||{},callback:n})}e.init=function(t){var n=t.transferControlToOffscreen();e.postMessage({canvas:n},[n])},e.fire=function(n,r,a){if(h)return t(n,null),h;var o=Math.random().toString(36).slice(2);return h=i((function(r){function l(t){t.data.callback===o&&(delete p[o],e.removeEventListener("message",l),h=null,a(),r())}e.addEventListener("message",l),t(n,o),p[o]=l.bind(null,{data:{callback:o}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),p)p[t](),delete p[t]}}(m)}return m}),b={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function w(e,t,n){return function(e,t){return t?t(e):e}(e&&null!=e[t]?e[t]:b[t],n)}function E(e){return e<0?0:Math.floor(e)}function x(e){return parseInt(e,16)}function C(e){return e.map(S)}function S(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:x(t.substring(0,2)),g:x(t.substring(2,4)),b:x(t.substring(4,6))}}function k(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function N(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function O(e,n){var l,s=!e,c=!!w(n||{},"resize"),u=w(n,"disableForReducedMotion",Boolean),d=o&&w(n||{},"useWorker")?y():null,f=s?k:N,m=!(!e||!d||!e.__confetti_initialized),h="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function p(t,n,o){for(var s,c,u,d,m=w(t,"particleCount",E),h=w(t,"angle",Number),p=w(t,"spread",Number),g=w(t,"startVelocity",Number),y=w(t,"decay",Number),b=w(t,"gravity",Number),x=w(t,"drift",Number),S=w(t,"colors",C),k=w(t,"ticks",Number),N=w(t,"shapes"),O=w(t,"scalar"),L=function(e){var t=w(e,"origin",Object);return t.x=w(t,"x",Number),t.y=w(t,"y",Number),t}(t),M=m,T=[],_=e.width*L.x,P=e.height*L.y;M--;)T.push((void 0,void 0,c=(s={x:_,y:P,angle:h,spread:p,startVelocity:g,color:S[M%S.length],shape:N[(0,d=N.length,Math.floor(Math.random()*(d-0))+0)],ticks:k,decay:y,gravity:b,drift:x,scalar:O}).angle*(Math.PI/180),u=s.spread*(Math.PI/180),{x:s.x,y:s.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*s.startVelocity+Math.random()*s.startVelocity,angle2D:-c+(.5*u-Math.random()*u),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:s.color,shape:s.shape,tick:0,totalTicks:s.ticks,decay:s.decay,drift:s.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*s.gravity,ovalScalar:.6,scalar:s.scalar}));return l?l.addFettis(T):(l=function(e,t,n,o,l){var s,c,u=t.slice(),d=e.getContext("2d"),f=i((function(t){function i(){s=c=null,d.clearRect(0,0,o.width,o.height),l(),t()}s=v.frame((function t(){!r||o.width===a.width&&o.height===a.height||(o.width=e.width=a.width,o.height=e.height=a.height),o.width||o.height||(n(e),o.width=e.width,o.height=e.height),d.clearRect(0,0,o.width,o.height),u=u.filter((function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.wobble+=t.wobbleSpeed,t.velocity*=t.decay,t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble);var n=t.tick++/t.totalTicks,r=t.x+t.random*t.tiltCos,a=t.y+t.random*t.tiltSin,o=t.wobbleX+t.random*t.tiltCos,l=t.wobbleY+t.random*t.tiltSin;return e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-n)+")",e.beginPath(),"circle"===t.shape?e.ellipse?e.ellipse(t.x,t.y,Math.abs(o-r)*t.ovalScalar,Math.abs(l-a)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,n,r,a,o,l,i,s){e.save(),e.translate(t,n),e.rotate(o),e.scale(r,a),e.arc(0,0,1,0,i,void 0),e.restore()}(e,t.x,t.y,Math.abs(o-r)*t.ovalScalar,Math.abs(l-a)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):(e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(a)),e.lineTo(Math.floor(o),Math.floor(l)),e.lineTo(Math.floor(r),Math.floor(t.wobbleY))),e.closePath(),e.fill(),t.tick<t.totalTicks}(d,e)})),u.length?s=v.frame(t):i()})),c=i}));return{addFettis:function(e){return u=u.concat(e),f},canvas:e,promise:f,reset:function(){s&&v.cancel(s),c&&c()}}}(e,T,f,n,o)).promise}function g(n){var r=u||w(n,"disableForReducedMotion",Boolean),a=w(n,"zIndex",Number);if(r&&h)return i((function(e){e()}));s&&l?e=l.canvas:s&&!e&&(e=function(e){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.pointerEvents="none",t.style.zIndex=e,t}(a),document.body.appendChild(e)),c&&!m&&f(e);var o={width:e.width,height:e.height};function g(){if(d){var t={getBoundingClientRect:function(){if(!s)return e.getBoundingClientRect()}};return f(t),void d.postMessage({resize:{width:t.width,height:t.height}})}o.width=o.height=null}function v(){l=null,c&&t.removeEventListener("resize",g),s&&e&&(document.body.removeChild(e),e=null,m=!1)}return d&&!m&&d.init(e),m=!0,d&&(e.__confetti_initialized=!0),c&&t.addEventListener("resize",g,!1),d?d.fire(n,o,v):p(n,o,v)}return g.reset=function(){d&&d.reset(),l&&l.reset()},g}function L(){return g||(g=O(null,{useWorker:!0,resize:!0})),g}n.exports=function(){return L().apply(this,arguments)},n.exports.reset=function(){L().reset()},n.exports.create=O}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),Gn,!1);var Yn=Gn.exports;Gn.exports.create;const Xn=async e=>{var t;const n=await Vn.get("onboarding/styles",{params:e}),{headers:r,footers:a}=await(async()=>{var e,t,n;let r=await Vn.get(window.extOnbData.wpRoot+"wp/v2/template-parts");return r=null===(e=r)||void 0===e?void 0:e.filter((e=>"extendable"===e.theme)),{headers:null===(t=r)||void 0===t?void 0:t.filter((e=>{var t;return null==e||null===(t=e.slug)||void 0===t?void 0:t.includes("header")})),footers:null===(n=r)||void 0===n?void 0:n.filter((e=>{var t;return null==e||null===(t=e.slug)||void 0===t?void 0:t.includes("footer")}))}})();if(null==n||null===(t=n.data)||void 0===t||!t.length)throw new Error("Could not get styles");return{data:n.data.map((e=>{var t,n,o,l,i,s;const c=null==r?void 0:r.find((t=>{var n;return null!==(n=(null==t?void 0:t.slug)===(null==e?void 0:e.headerSlug))&&void 0!==n?n:"header"})),u=null==a?void 0:a.find((t=>{var n;return null!==(n=(null==t?void 0:t.slug)===(null==e?void 0:e.footerSlug))&&void 0!==n?n:"footer"}));return{...e,headerCode:null!==(t=null==c||null===(n=c.content)||void 0===n||null===(o=n.raw)||void 0===o?void 0:o.trim())&&void 0!==t?t:"",footerCode:null!==(l=null==u||null===(i=u.content)||void 0===i||null===(s=i.raw)||void 0===s?void 0:s.trim())&&void 0!==l?l:""}}))}},Kn=e=>Vn.get("onboarding/template",{params:e}),Qn=e=>{var t,n;return[null==e||null===(t=e.template)||void 0===t?void 0:t.code,null==e||null===(n=e.template)||void 0===n?void 0:n.code2].filter(Boolean).join("")},er=async(e,t,n)=>n.dryRun?new Promise((e=>setTimeout(e,t))):Promise.all([await e(),new Promise((e=>setTimeout(e,t)))]),tr=async()=>{try{return await Vn.get("onboarding/ping"),!0}catch(e){}return await new Promise((e=>setTimeout(e,1e3))),tr()},nr=e=>{let t;const n=new Set,r=(e,r)=>{const a="function"==typeof e?e(t):e;if(!Object.is(a,t)){const e=t;t=(null!=r?r:"object"!=typeof a)?a:Object.assign({},t,a),n.forEach((n=>n(t,e)))}},a=()=>t,o={setState:r,getState:a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,a,o),o};var rr=n(798);const{useSyncExternalStoreWithSelector:ar}=rr,or=e=>{const t="function"==typeof e?(e=>e?nr(e):nr)(e):e,n=(e,n)=>function(e,t=e.getState,n){const r=ar(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,a.useDebugValue)(r),r}(t,e,n);return Object.assign(n,t),n},lr=e=>e?or(e):or,ir=(e,t={})=>(n,r,a)=>{const{enabled:o,anonymousActionType:l,...i}=t;let s;try{s=(null==o||o)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!s)return o&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,a);const c=s.connect(i);let u=!0;a.setState=(e,t,a)=>{const o=n(e,t);return u?(c.send(void 0===a?{type:l||"anonymous"}:"string"==typeof a?{type:a}:a,r()),o):o};const d=(...e)=>{const t=u;u=!1,n(...e),u=t},f=e(a.setState,r,a);if(c.init(f),a.dispatchFromDevtools&&"function"==typeof a.dispatch){let e=!1;const t=a.dispatch;a.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return c.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):sr(e.payload,(e=>{"__setState"!==e.type?a.dispatchFromDevtools&&"function"==typeof a.dispatch&&a.dispatch(e):d(e.state)}));case"DISPATCH":switch(e.payload.type){case"RESET":return d(f),c.init(a.getState());case"COMMIT":return c.init(a.getState());case"ROLLBACK":return sr(e.state,(e=>{d(e),c.init(a.getState())}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return sr(e.state,(e=>{d(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return d(r),void c.send(null,n)}case"PAUSE_RECORDING":return u=!u}return}})),f},sr=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)},cr=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(e){return cr(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return cr(t)(e)}}}},ur=(e,t)=>(n,r,a)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},l=!1;const i=new Set,s=new Set;let c;try{c=o.getStorage()}catch(e){}if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...e)}),r,a);const u=cr(o.serialize),d=()=>{const e=o.partialize({...r()});let t;const n=u({state:e,version:o.version}).then((e=>c.setItem(o.name,e))).catch((e=>{t=e}));if(t)throw t;return n},f=a.setState;a.setState=(e,t)=>{f(e,t),d()};const m=e(((...e)=>{n(...e),d()}),r,a);let h;const p=()=>{var e;if(!c)return;l=!1,i.forEach((e=>e(r())));const t=(null==(e=o.onRehydrateStorage)?void 0:e.call(o,r()))||void 0;return cr(c.getItem.bind(c))(o.name).then((e=>{if(e)return o.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return h=o.merge(e,null!=(t=r())?t:m),n(h,!0),d()})).then((()=>{null==t||t(h,void 0),l=!0,s.forEach((e=>e(h)))})).catch((e=>{null==t||t(void 0,e)}))};return a.persist={setOptions:e=>{o={...o,...e},e.getStorage&&(c=e.getStorage())},clearStorage:()=>{null==c||c.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>p(),hasHydrated:()=>l,onHydrate:e=>(i.add(e),()=>{i.delete(e)}),onFinishHydration:e=>(s.add(e),()=>{s.delete(e)})},p(),h||m},dr={siteType:{},siteInformation:{title:void 0},feedbackMissingSiteType:"",feedbackMissingGoal:"",exitFeedback:void 0,siteTypeSearch:[],style:null,pages:[],plugins:[],goals:[]},fr=lr(ur(ir(((e,t)=>({...dr,setSiteType(t){e({siteType:t})},setSiteInformation(n,r){const a={...t().siteInformation,[n]:r};e({siteInformation:a})},setFeedbackMissingSiteType:t=>e({feedbackMissingSiteType:t}),setFeedbackMissingGoal:t=>e({feedbackMissingGoal:t}),setExitFeedback:t=>e({exitFeedback:t}),has(e,n){return!(null==n||!n.id)&&t()[e].some((e=>e.id===n.id))},add(n,r){t().has(n,r)||e({[n]:[...t()[n],r]})},remove(n,r){var a;e({[n]:null===(a=t()[n])||void 0===a?void 0:a.filter((e=>e.id!==r.id))})},reset(t){e({[t]:[]})},toggle(e,n){t().has(e,n)?t().remove(e,n):t().add(e,n)},setStyle(t){e({style:t})},canLaunch(){var e,n,r,a,o,l,i,s;return(null===(e=Object.keys(null!==(n=null===(r=t())||void 0===r?void 0:r.siteType)&&void 0!==n?n:{}))||void 0===e?void 0:e.length)>0&&(null===(a=Object.keys(null!==(o=null===(l=t())||void 0===l?void 0:l.style)&&void 0!==o?o:{}))||void 0===a?void 0:a.length)>0&&(null===(i=t())||void 0===i||null===(s=i.pages)||void 0===s?void 0:s.length)>0},resetState(){e(dr)}})),{name:"Extendify User Selection"}),{name:"extendify-site-selection",getStorage:()=>localStorage}));function mr(){return mr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mr.apply(this,arguments)}var hr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",mr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M3 13H7V19H3V13ZM10 9H14V19H10V9ZM17 5H21V19H17V5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M14 8H10C9.448 8 9 8.448 9 9V19C9 19.552 9.448 20 10 20H14C14.552 20 15 19.552 15 19V9C15 8.448 14.552 8 14 8ZM13 18H11V10H13V18ZM21 4H17C16.448 4 16 4.448 16 5V19C16 19.552 16.448 20 17 20H21C21.552 20 22 19.552 22 19V5C22 4.448 21.552 4 21 4ZM20 18H18V6H20V18ZM7 12H3C2.448 12 2 12.448 2 13V19C2 19.552 2.448 20 3 20H7C7.552 20 8 19.552 8 19V13C8 12.448 7.552 12 7 12ZM6 18H4V14H6V18Z",fill:"currentColor"}))})),pr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",mr({className:n,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))})),gr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",mr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M11.5003 15.5L15.5003 11.4998L20.0004 15.9998L16.0004 19.9999L11.5003 15.5Z",fill:"currentColor"}),(0,e.createElement)("path",{opacity:"0.3",d:"M3.93958 7.94043L7.93961 3.94026L12.4397 8.44021L8.43968 12.4404L3.93958 7.94043Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M8.575 11.747L4.828 8L8 4.828L11.747 8.575L13.161 7.161L8 2L2 8L7.161 13.161L8.575 11.747ZM16.769 10.769L15.355 12.183L19.172 16L16 19.172L12.183 15.355L10.769 16.769L16 22L22 16L16.769 10.769Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M21.707 4.879L19.121 2.293C18.926 2.098 18.67 2 18.414 2C18.158 2 17.902 2.098 17.707 2.293L3 17V21H7L21.707 6.293C22.098 5.902 22.098 5.269 21.707 4.879ZM6.172 19H5V17.828L15.707 7.121L16.879 8.293L6.172 19ZM18.293 6.879L17.121 5.707L18.414 4.414L19.586 5.586L18.293 6.879Z",fill:"currentColor"}))})),vr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",mr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M20 6C20 9 19 13 19 13L13.3 17L12.6 16.4C11.8 15.6 11.8 14.2 12.6 13.4L14.8 11.2C14.8 8.7 12.1 7.2 9.89999 8.5C9.19999 9 8.59999 9.6 7.89999 10.3V13L5.89999 16C4.79999 16 3.89999 15.1 3.89999 14V10.4C3.89999 9.5 4.19999 8.6 4.79999 7.9L7.59999 4.4L14 2C14.9 4.4 16.8 5.8 20 6Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M13.2 18.2996L12 17.0996C10.7 15.7996 10.7 13.8996 12 12.5996L13.9 10.6996C13.8 10.0996 13.4 9.49961 12.8 9.19961C12.1 8.79961 11.3 8.79961 10.6 9.19961C10.1 9.49961 9.7 9.89961 9.3 10.3996C9.2 10.4996 9.2 10.4996 9.1 10.5996V12.9996H7V9.89961L7.3 9.59961C7.5 9.39961 7.6 9.29961 7.8 9.09961C8.3 8.59961 8.8 7.99961 9.5 7.59961C10.8 6.79961 12.4 6.79961 13.7 7.49961C15 8.29961 15.9 9.59961 15.9 11.1996V11.5996L13.4 14.0996C13.2 14.2996 13.1 14.5996 13.1 14.8996C13.1 15.1996 13.2 15.4996 13.4 15.6996L13.5 15.7996L18.2 12.4996C18.4 11.4996 19.1 8.39961 19.1 6.09961H21.1C21.1 9.19961 20.1 13.1996 20.1 13.2996L20 13.6996L13.2 18.2996Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M11 23.0005C9.7 23.0005 8.4 22.6005 7.3 21.7005C4.7 19.7005 4.3 15.9005 6.3 13.3005C8.1 11.0005 11.3 10.3005 13.9 11.8005L12.9 13.6005C11.2 12.7005 9.1 13.1005 7.9 14.6005C6.5 16.3005 6.8 18.8005 8.6 20.2005C10.3 21.6005 12.8 21.3005 14.2 19.5005C14.9 18.6005 15.2 17.4005 15 16.2005L17 15.8005C17.4 17.5005 16.9 19.3005 15.8 20.7005C14.5 22.2005 12.7 23.0005 11 23.0005Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M6 16.9996C4.3 16.9996 3 15.6996 3 13.9996V10.3996C3 9.29961 3.4 8.19961 4.1 7.29961L7.1 3.59961L13.7 1.09961L14.4 2.99961L8.3 5.29961L5.7 8.49961C5.2 9.09961 5 9.69961 5 10.3996V13.9996C5 14.5996 5.4 14.9996 6 14.9996V16.9996Z",fill:"currentColor"}))})),yr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",mr({className:`icon ${n}`,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M10 17.5L15 12L10 6.5",stroke:"currentColor",strokeWidth:"1.75"}))})),br=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",mr({className:n,viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M609.404 378.5C585.07 378.5 563.404 373 544.404 362C525.737 350.667 511.07 335.333 500.404 316C489.737 296.333 484.404 273.833 484.404 248.5C484.404 222.833 489.57 200.167 499.904 180.5C510.237 160.833 524.737 145.5 543.404 134.5C562.07 123.167 583.404 117.5 607.404 117.5C632.404 117.5 653.904 122.833 671.904 133.5C689.904 143.833 703.737 158.333 713.404 177C723.404 195.667 728.404 218 728.404 244V262.5L516.404 263L517.404 224H667.904C667.904 207 662.404 193.333 651.404 183C640.737 172.667 626.237 167.5 607.904 167.5C593.57 167.5 581.404 170.5 571.404 176.5C561.737 182.5 554.404 191.5 549.404 203.5C544.404 215.5 541.904 230.167 541.904 247.5C541.904 274.167 547.57 294.333 558.904 308C570.57 321.667 587.737 328.5 610.404 328.5C627.07 328.5 640.737 325.333 651.404 319C662.404 312.667 669.57 303.667 672.904 292H729.404C724.07 319 710.737 340.167 689.404 355.5C668.404 370.833 641.737 378.5 609.404 378.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M797.529 372H728.029L813.029 251L728.029 125H799.029L853.529 209L906.029 125H974.529L890.529 250.5L972.029 372H902.029L849.029 290.5L797.529 372Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M994.142 125H1150.14V176H994.142V125ZM1102.64 372H1041.64V48H1102.64V372Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1278.62 378.5C1254.29 378.5 1232.62 373 1213.62 362C1194.96 350.667 1180.29 335.333 1169.62 316C1158.96 296.333 1153.62 273.833 1153.62 248.5C1153.62 222.833 1158.79 200.167 1169.12 180.5C1179.46 160.833 1193.96 145.5 1212.62 134.5C1231.29 123.167 1252.62 117.5 1276.62 117.5C1301.62 117.5 1323.12 122.833 1341.12 133.5C1359.12 143.833 1372.96 158.333 1382.62 177C1392.62 195.667 1397.62 218 1397.62 244V262.5L1185.62 263L1186.62 224H1337.12C1337.12 207 1331.62 193.333 1320.62 183C1309.96 172.667 1295.46 167.5 1277.12 167.5C1262.79 167.5 1250.62 170.5 1240.62 176.5C1230.96 182.5 1223.62 191.5 1218.62 203.5C1213.62 215.5 1211.12 230.167 1211.12 247.5C1211.12 274.167 1216.79 294.333 1228.12 308C1239.79 321.667 1256.96 328.5 1279.62 328.5C1296.29 328.5 1309.96 325.333 1320.62 319C1331.62 312.667 1338.79 303.667 1342.12 292H1398.62C1393.29 319 1379.96 340.167 1358.62 355.5C1337.62 370.833 1310.96 378.5 1278.62 378.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1484.44 372H1423.44V125H1479.94L1484.94 157C1492.61 144.667 1503.44 135 1517.44 128C1531.78 121 1547.28 117.5 1563.94 117.5C1594.94 117.5 1618.28 126.667 1633.94 145C1649.94 163.333 1657.94 188.333 1657.94 220V372H1596.94V234.5C1596.94 213.833 1592.28 198.5 1582.94 188.5C1573.61 178.167 1560.94 173 1544.94 173C1525.94 173 1511.11 179 1500.44 191C1489.78 203 1484.44 219 1484.44 239V372Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1798.38 378.5C1774.38 378.5 1753.71 373.167 1736.38 362.5C1719.38 351.5 1706.04 336.333 1696.38 317C1687.04 297.667 1682.38 275.167 1682.38 249.5C1682.38 223.833 1687.04 201.167 1696.38 181.5C1706.04 161.5 1719.88 145.833 1737.88 134.5C1755.88 123.167 1777.21 117.5 1801.88 117.5C1819.21 117.5 1835.04 121 1849.38 128C1863.71 134.667 1874.71 144.167 1882.38 156.5V0H1942.88V372H1886.88L1882.88 333.5C1875.54 347.5 1864.21 358.5 1848.88 366.5C1833.88 374.5 1817.04 378.5 1798.38 378.5ZM1811.88 322.5C1826.21 322.5 1838.54 319.5 1848.88 313.5C1859.21 307.167 1867.21 298.333 1872.88 287C1878.88 275.333 1881.88 262.167 1881.88 247.5C1881.88 232.5 1878.88 219.5 1872.88 208.5C1867.21 197.167 1859.21 188.333 1848.88 182C1838.54 175.333 1826.21 172 1811.88 172C1797.88 172 1785.71 175.333 1775.38 182C1765.04 188.333 1757.04 197.167 1751.38 208.5C1746.04 219.833 1743.38 232.833 1743.38 247.5C1743.38 262.167 1746.04 275.167 1751.38 286.5C1757.04 297.833 1765.04 306.667 1775.38 313C1785.71 319.333 1797.88 322.5 1811.88 322.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1996.45 372V125H2057.45V372H1996.45ZM2026.45 75.5C2016.11 75.5 2007.28 72 1999.95 65C1992.95 57.6667 1989.45 48.8333 1989.45 38.5C1989.45 28.1667 1992.95 19.5 1999.95 12.5C2007.28 5.50001 2016.11 2.00002 2026.45 2.00002C2036.78 2.00002 2045.45 5.50001 2052.45 12.5C2059.78 19.5 2063.45 28.1667 2063.45 38.5C2063.45 48.8333 2059.78 57.6667 2052.45 65C2045.45 72 2036.78 75.5 2026.45 75.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M2085.97 125H2240.97V176H2085.97V125ZM2241.47 2.5V54.5C2238.14 54.5 2234.64 54.5 2230.97 54.5C2227.64 54.5 2224.14 54.5 2220.47 54.5C2205.14 54.5 2194.8 58.1667 2189.47 65.5C2184.47 72.8333 2181.97 82.6667 2181.97 95V372H2121.47V95C2121.47 72.3333 2125.14 54.1667 2132.47 40.5C2139.8 26.5 2150.14 16.3333 2163.47 10C2176.8 3.33334 2192.3 0 2209.97 0C2214.97 0 2220.14 0.166671 2225.47 0.5C2231.14 0.833329 2236.47 1.49999 2241.47 2.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M2330.4 125L2410.9 353L2377.9 415.5L2265.9 125H2330.4ZM2272.4 486.5V436H2308.9C2316.9 436 2323.9 435 2329.9 433C2335.9 431.333 2341.24 428 2345.9 423C2350.9 418 2355.07 410.667 2358.4 401L2460.9 125H2523.9L2402.9 427C2393.9 449.667 2382.57 466.167 2368.9 476.5C2355.24 486.833 2338.24 492 2317.9 492C2309.24 492 2301.07 491.5 2293.4 490.5C2286.07 489.833 2279.07 488.5 2272.4 486.5Z",fill:"currentColor"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M226.926 25.1299H310.197C333.783 25.1299 342.32 27.5938 350.948 32.1932C359.576 36.8108 366.326 43.5822 370.941 52.1969C375.556 60.8298 378 69.3715 378 92.9707V176.289C378 199.888 375.537 208.43 370.941 217.063C366.326 225.696 359.558 232.449 350.948 237.066C347.091 239.131 343.244 240.83 338.064 242.047V308.355C338.064 344.802 334.261 357.994 327.162 371.327C320.034 384.66 309.583 395.09 296.285 402.221C282.96 409.353 269.775 413.13 233.349 413.13H104.744C68.3172 413.13 55.1327 409.325 41.8073 402.221C28.4819 395.09 18.0583 384.632 10.9308 371.327C3.80323 358.023 0 344.802 0 308.355V179.706C0 143.259 3.80323 130.067 10.9026 116.734C18.0301 103.401 28.4819 92.9431 41.8073 85.8116C55.1045 78.7082 68.3172 74.9028 104.744 74.9028H159.808C160.841 64.0747 162.996 58.1666 166.165 52.2151C170.78 43.5822 177.547 36.8108 186.175 32.1932C194.785 27.5938 203.34 25.1299 226.926 25.1299ZM184.128 78.1641C184.128 62.7001 196.658 50.1641 212.114 50.1641H324.991C340.448 50.1641 352.978 62.7001 352.978 78.1641V191.096C352.978 206.56 340.448 219.096 324.991 219.096H212.114C196.658 219.096 184.128 206.56 184.128 191.096V78.1641Z",fill:"currentColor"}))})),wr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",mr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M12 14L3 9V19H21V9L12 14Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M21.008 6.24719L12 0.992188L2.992 6.24719C2.38 6.60419 2 7.26619 2 7.97519V18.0002C2 19.1032 2.897 20.0002 4 20.0002H20C21.103 20.0002 22 19.1032 22 18.0002V7.97519C22 7.26619 21.62 6.60419 21.008 6.24719ZM19.892 7.91219L12 12.8222L4.108 7.91119L12 3.30819L19.892 7.91219ZM4 18.0002V10.2002L12 15.1782L20 10.2002L20.001 18.0002H4Z",fill:"currentColor"}))})),Er=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",mr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M7.03432 14.8828L16.2343 5.68249L18.2298 7.67791L9.02981 16.8782L7.03432 14.8828Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M3.669 17L3 21L7 20.331L3.669 17ZM21.707 4.879L19.121 2.293C18.926 2.098 18.67 2 18.414 2C18.158 2 17.902 2.098 17.707 2.293L5 15C5 15 6.005 15.005 6.5 15.5C6.995 15.995 6.984 16.984 6.984 16.984C6.984 16.984 8.003 17.003 8.5 17.5C8.997 17.997 9 19 9 19L21.707 6.293C22.098 5.902 22.098 5.269 21.707 4.879ZM8.686 15.308C8.588 15.05 8.459 14.789 8.289 14.539L15.951 6.877L17.123 8.049L9.461 15.711C9.21 15.539 8.946 15.408 8.686 15.308ZM18.537 6.635L17.365 5.463L18.414 4.414L19.586 5.586L18.537 6.635Z",fill:"currentColor"}))})),xr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",mr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M4 5H20V9H4V5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M12 13H17V18H12V13ZM6 2H8V5H6V2ZM16 2H18V5H16V2Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M19 22H5C3.9 22 3 21.1 3 20V6C3 4.9 3.9 4 5 4H19C20.1 4 21 4.9 21 6V20C21 21.1 20.1 22 19 22ZM5 6V20H19V6H5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M4 8H20V10H4V8Z",fill:"currentColor"}))})),Cr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",mr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M20 11.414L10.707 20.707C10.518 20.896 10.267 21 10 21C9.733 21 9.482 20.896 9.293 20.707L3.293 14.707C3.104 14.518 3 14.267 3 14C3 13.733 3.104 13.482 3.293 13.293L12.586 4H20V11.414Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M10 22C9.466 22 8.964 21.792 8.586 21.414L2.586 15.414C2.208 15.036 2 14.534 2 14C2 13.466 2.208 12.964 2.586 12.586L12.172 3H21V11.828L11.414 21.414C11.036 21.792 10.534 22 10 22ZM13 5L4 14L10 20L19 11V5H13Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M16 7C15.7348 7 15.4804 7.10536 15.2929 7.29289C15.1054 7.48043 15 7.73478 15 8C15 8.26522 15.1054 8.51957 15.2929 8.70711C15.4804 8.89464 15.7348 9 16 9C16.2652 9 16.5196 8.89464 16.7071 8.70711C16.8946 8.51957 17 8.26522 17 8C17 7.73478 16.8946 7.48043 16.7071 7.29289C16.5196 7.10536 16.2652 7 16 7Z",fill:"currentColor"}))})),Sr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",mr({className:n,viewBox:"-4 -4 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{stroke:"currentColor",d:"M6.5 0.5h0s6 0 6 6v0s0 6 -6 6h0s-6 0 -6 -6v0s0 -6 6 -6"}))}));(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",mr({className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{fill:"currentColor",d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"}))}));var kr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",mr({className:`icon ${n}`,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M15 17.5L10 12L15 6.5",stroke:"currentColor",strokeWidth:"1.75"}))})),Nr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",mr({className:n,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M0 0h24v24H0V0z",fill:"none"}),(0,e.createElement)("path",{d:"M7 12.27v3.72l5 2.73 5-2.73v-3.72L12 15zM5.18 9L12 12.72 18.82 9 12 5.28z",opacity:".3"}),(0,e.createElement)("path",{d:"M12 3L1 9l4 2.18v6L12 21l7-3.82v-6l2-1.09V17h2V9L12 3zm5 12.99l-5 2.73-5-2.73v-3.72L12 15l5-2.73v3.72zm-5-3.27L5.18 9 12 5.28 18.82 9 12 12.72z"}))})),Or=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",mr({className:n,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M8 18.5504L12 14.8899",stroke:"#1E1E1E",strokeWidth:"1.5"}),(0,e.createElement)("path",{d:"M20.25 11.7523C20.25 14.547 18.092 16.7546 15.5 16.7546C12.908 16.7546 10.75 14.547 10.75 11.7523C10.75 8.95754 12.908 6.75 15.5 6.75C18.092 6.75 20.25 8.95754 20.25 11.7523Z",stroke:"#1E1E1E",strokeWidth:"1.5"}))})),Lr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",mr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M19.27 8H4.73L3 13.2V14H21V13.2L19.27 8ZM5 4H19V8H5V4Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M13 21H3V13H13V21ZM5 19H11V15H5V19Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M22 15H2V13.038L4.009 7H19.991L22 13.038V15ZM4.121 13H19.88L18.549 9H5.451L4.121 13Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M19 14H21V21H19V14ZM20 9H4V3H20V9ZM6 7H18V5H6V7Z",fill:"currentColor"}))})),Mr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",mr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{opacity:"0.3",d:"M21 11C21 6.6 17 3 12 3C7 3 3 6.6 3 11C3 15.4 7 19 12 19C12.7 19 13.4 18.9 14 18.8V21.3C16 20 20.5 16.5 21 11.9C21 11.6 21 11.3 21 11Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M13 23.1V20C7 20.6 2 16.3 2 11C2 6 6.5 2 12 2C17.5 2 22 6 22 11C22 11.3 22 11.6 21.9 12C21.3 17.5 15.6 21.4 14.5 22.2L13 23.1ZM15 17.6V19.3C16.9 17.8 19.6 15.1 20 11.7C20 11.5 20 11.2 20 11C20 7.1 16.4 4 12 4C7.6 4 4 7.1 4 11C4 15.4 8.6 18.9 13.8 17.8L15 17.6Z",fill:"currentColor"}))})),Tr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",mr({className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("circle",{cx:"10",cy:"10",r:"10",fill:"black",fillOpacity:"0.4"}),(0,e.createElement)("ellipse",{cx:"15.5552",cy:"6.66656",rx:"2.22222",ry:"2.22222",fill:"white"}))}));(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",mr({className:n,width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M87.5 48.8281H75V51.1719H87.5V48.8281Z",fill:"black"}),(0,e.createElement)("path",{d:"M25 48.8281H12.5V51.1719H25V48.8281Z",fill:"black"}),(0,e.createElement)("path",{d:"M51.1719 75H48.8281V87.5H51.1719V75Z",fill:"black"}),(0,e.createElement)("path",{d:"M51.1719 12.5H48.8281V25H51.1719V12.5Z",fill:"black"}),(0,e.createElement)("path",{d:"M77.3433 75.6868L69.4082 67.7517L67.7511 69.4088L75.6862 77.344L77.3433 75.6868Z",fill:"black"}),(0,e.createElement)("path",{d:"M32.2457 30.5897L24.3105 22.6545L22.6534 24.3117L30.5885 32.2468L32.2457 30.5897Z",fill:"black"}),(0,e.createElement)("path",{d:"M77.3407 24.3131L75.6836 22.656L67.7485 30.5911L69.4056 32.2483L77.3407 24.3131Z",fill:"black"}),(0,e.createElement)("path",{d:"M32.2431 69.4074L30.5859 67.7502L22.6508 75.6854L24.3079 77.3425L32.2431 69.4074Z",fill:"black"}))}));var _r=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",mr({className:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,e.createElement)("path",{d:"M22 10V6C22 4.9 21.11 4 20 4H4C2.9 4 2 4.9 2 6V10C3.1 10 4 10.9 4 12C4 13.1 3.1 14 2 14V18C2 19.1 2.9 20 4 20H20C21.11 20 22 19.1 22 18V14C20.89 14 20 13.1 20 12C20 10.9 20.89 10 22 10ZM20 8.54C18.81 9.23 18 10.52 18 12C18 13.48 18.81 14.77 20 15.46V18H4V15.46C5.19 14.77 6 13.48 6 12C6 10.52 5.19 9.23 4 8.54V6H20V8.54Z",fill:"currentColor"}),(0,e.createElement)("path",{opacity:"0.3",d:"M18 12C18 13.48 18.81 14.77 20 15.46V18H4V15.46C5.19 14.77 6 13.48 6 12C6 10.52 5.19 9.23 4 8.54V6H20V8.54C18.81 9.23 18 10.52 18 12Z",fill:"currentColor"}))}));const Pr=()=>{var t,n,r;const[a]=(0,e.useState)(!0),[o,l]=(0,e.useState)(!1),[i,s]=(0,e.useState)(!0),c=fr((e=>e.canLaunch())),{siteType:u,siteInformation:d,pages:f,style:m,plugins:h}=fr(),[p,g]=(0,e.useState)([]),[v,y]=(0,e.useState)([]),b=e=>g((t=>[e,...t])),w=e=>y((t=>[e,...t])),E=(0,e.useRef)();!function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];(0,e.useEffect)((()=>{if(!t)return;const e=e=>(e.preventDefault(),e.returnValue=""),n={capture:!0};return window.addEventListener("beforeunload",e,n),()=>{window.removeEventListener("beforeunload",e,n)}}),[t])}(i);const x=(0,e.useCallback)((async()=>{if(!c)throw new Error((0,Q.__)("Site is not ready to launch.","extendify"));try{var e;let n;if(b((0,Q.__)("Applying site styles","extendify")),w((0,Q.__)("A beautiful site in... 3, 2, 1","extendify")),await tr(),await er((async()=>await Zn("blogname",d.title)),2e3,{dryRun:E.current}),E.current||(await tr(),await(t=null!==(e=null==m?void 0:m.variation)&&void 0!==e?e:{},((e,t)=>Vn.post(`${window.extOnbData.wpRoot}wp/v2/global-styles/${e}`,{id:e,settings:t.settings,styles:t.styles}))(window.extOnbData.globalStylesPostID,t)),await tr(),await Wn("extendable/header",null==m?void 0:m.headerCode),await tr(),await Wn("extendable/footer",null==m?void 0:m.footerCode)),b((0,Q.__)("Generating page content","extendify")),w((0,Q.__)("Starting off with a full site...","extendify")),await tr(),await er((async()=>{const e={slug:"blog",title:(0,Q.__)("Blog","extendify")},t=[...f,e];await tr(),n=await(async(e,t,n)=>{const r={};for(const i of e){const e=await Kn({siteType:t.slug,layoutType:i.slug,baseLayout:"home"===i.slug?t.slug.startsWith("blog")?null==n?void 0:n.blogBaseLayout:null==n?void 0:n.homeBaseLayout:null,kit:"home"!==i.slug?null==n?void 0:n.kit:null});let s="";var a,o;null!=e&&e.data&&(s=[null==e||null===(a=e.data)||void 0===a?void 0:a.code,null==e||null===(o=e.data)||void 0===o?void 0:o.code2].filter(Boolean).join(""));const c=await(l={title:i.title,status:"publish",content:s,template:"no-title",meta:{made_with_extendify_launch:!0}},Vn.post(`${window.extOnbData.wpRoot}wp/v2/pages`,l));r[i.slug]={id:c.id,title:i.title}}var l;return null!=r&&r.home&&(await Zn("show_on_front","page"),await Zn("page_on_front",r.home.id)),null!=r&&r.blog&&await Zn("page_for_posts",r.blog.id),r})(t,u,m),await tr();const r=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||(r='\x3c!-- wp:page-list {"isNavigationChild":true,"showSubmenuIcon":true,"openSubmenusOnClick":false} /--\x3e');const a=e.map((e=>`\x3c!-- wp:navigation-link {"label":"${e.title}","type":"page","id":${t[e.slug].id},"url":"/${e.slug}","kind":"post-type","isTopLevelLink":true} /--\x3e`)).join("");return n.replace(r,a)}(f,n,null==m?void 0:m.headerCode);await tr(),await Wn("extendable/header",r)}),2e3,{dryRun:E.current}),null!=h&&h.length){b((0,Q.__)("Installing suggested plugins","extendify"));for(const[e,t]of h.entries()){w((0,Q.__)(`${e+1}/${h.length}: ${t.name}`,"extendify")),await tr();try{await qn(t)}catch(e){await tr(),await qn(t)}}}return b((0,Q.__)("Setting up your site assistant","extendify")),w((0,Q.__)("Helping your site to be successful...","extendify")),await tr(),await er((async()=>{return await(e=[{slug:"hello-world",type:"post"},{slug:"sample-page",type:"page"}],void e.forEach((async e=>{const t=await function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"post";return Vn.get(`${window.extOnbData.wpRoot}wp/v2/${t}s?slug=${e}`)}(e.slug,e.type);var n,r;null!=t&&t.length&&"trash"!==t[0].status&&await(n=t[0].id,r=e.type,Vn.delete(`${window.extOnbData.wpRoot}wp/v2/${r}s/${n}`))})));var e}),2e3,{dryRun:E.current}),E.current||(await tr(),await Zn("permalink_structure","/%postname%/")),b((0,Q.__)("Your site has been created!","extendify")),w((0,Q.__)("Redirecting in 3, 2, 1...","extendify")),l(!0),s(!1),await new Promise((e=>setTimeout(e,2500))),E.current||(await tr(),await Zn("extendify_onboarding_completed",(new Date).toISOString())),n}catch(e){if(e.status>=400&&e.status<500){s(!1);const e=(0,Q.__)("We encountered a server error we cannot recover from. Please reload the page and try again.","extendify");alert(e),location.href=window.extOnbData.adminUrl}return await new Promise((e=>setTimeout(e,2e3))),x()}var t}),[f,h,u,m,c,d.title]);return(0,e.useEffect)((()=>{const e=new URLSearchParams(window.location.search);E.current=e.has("dry-run")}),[]),(0,e.useEffect)((()=>{x().then((()=>{window.location.replace(window.extOnbData.adminUrl+"admin.php?page=extendify-assist&extendify-launch-success")}))}),[x]),function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,e.useEffect)((()=>{if(!r)return;const e=Date.now()+n,a=()=>{Yn({...t,disableForReducedMotion:!0,zIndex:1e5}),Date.now()<e&&requestAnimationFrame(a)};a()}),[t,n,r])}({particleCount:2,angle:320,spread:120,origin:{x:0,y:0},colors:["var(--ext-partner-theme-primary-text, #ffffff)"]},2500,o),(0,e.createElement)(We,{show:a,appear:!0,enter:"transition-all ease-in-out duration-500",enterFrom:"md:w-40vw md:max-w-md",enterTo:"md:w-full md:max-w-full",className:"bg-partner-primary-bg text-partner-primary-text py-12 px-10 md:h-screen flex flex-col justify-between md:w-40vw md:max-w-md flex-shrink-0"},(0,e.createElement)("div",{className:"max-w-prose"},(0,e.createElement)("div",{className:"md:min-h-48"},(null===(t=window.extOnbData)||void 0===t?void 0:t.partnerLogo)&&(0,e.createElement)("div",{className:"pb-8"},(0,e.createElement)("img",{style:{maxWidth:"200px"},src:window.extOnbData.partnerLogo,alt:null!==(n=null===(r=window.extOnbData)||void 0===r?void 0:r.partnerName)&&void 0!==n?n:""})),(0,e.createElement)("div",null,p.map(((t,n)=>{if(!n)return(0,e.createElement)(We,{appear:!0,show:a,enter:"transition-opacity duration-1000",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-1000",leaveFrom:"opacity-100",leaveTo:"opacity-0",className:"text-4xl flex space-x-4 items-center",key:t},t)})),(0,e.createElement)("div",{className:"flex space-x-4 items-center mt-6"},(0,e.createElement)(Tr,{className:"spin"}),v.map(((t,n)=>{if(!n)return(0,e.createElement)(We,{appear:!0,show:a,enter:"transition-opacity duration-1000",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-1000",leaveFrom:"opacity-100",leaveTo:"opacity-0",className:"text-lg",key:t},t)})))))),(0,e.createElement)("div",{className:"hidden md:flex items-center space-x-3"},(0,e.createElement)("span",{className:"opacity-70 text-xs"},(0,Q.__)("Powered by","extendify")),(0,e.createElement)("span",{className:"relative"},(0,e.createElement)(br,{className:"logo text-partner-primary-text w-28"}),(0,e.createElement)("span",{className:"absolute -bottom-2 right-3 font-semibold tracking-tight"},"Launch"))))},Rr=ir((e=>({generating:!1,exitModalOpen:!1,closeExitModal:()=>e({exitModalOpen:!1}),openExitModal:()=>e({exitModalOpen:!0}),hoveredOverExitButton:!1,setExitButtonHovered:()=>e({hoveredOverExitButton:!0})})),{name:"Extendify Launch Globals"}),Ar=lr(Rr);var Dr=n(184),Fr=n.n(Dr);const jr=t=>{let{label:n,slug:r,description:a,checked:o,onChange:l,Icon:i}=t;return(0,e.createElement)("label",{className:"w-full flex items-center justify-between text-gray-900 font-semibold p-4 h-full",htmlFor:r},(0,e.createElement)("div",{className:"flex items-center flex-auto"},(0,e.createElement)("span",{className:"w-5 h-5 relative inline-block mr-3 align-middle"},(0,e.createElement)("input",{id:r,className:"h-5 w-5 rounded-sm m-0",type:"checkbox",onChange:l,defaultChecked:o}),(0,e.createElement)("svg",{className:"absolute block h-5 inset-0 w-5 text-white",viewBox:"1 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},(0,e.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))),(0,e.createElement)("span",null,(0,e.createElement)("span",{className:"text-base"},n),a?(0,e.createElement)("span",{className:"block pt-1 text-gray-700 pr-4 font-normal"},a):(0,e.createElement)("span",null))),i&&(0,e.createElement)(i,{className:"flex-none text-partner-primary-bg h-6 w-6"}))},Hr=()=>{const{nextPage:t,currentPageIndex:n,pages:r}=Ra(),a=Array.from(r.keys())[n],o=r.get(a).state.getState();return(0,e.createElement)("button",{className:"flex items-center px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus h-14 rounded-none",onClick:t,disabled:!o.ready,type:"button"},(0,Q.__)("Next","extendify"),(0,e.createElement)(yr,{className:"h-5 w-5"}))},Vr=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{data:r,error:a}=X(e,(async e=>{const n=await t(e);if(!n.data)throw console.error(n),new Error("No data returned");return n}),{dedupingInterval:6e4,refreshInterval:0,...n}),o=null==r?void 0:r.data;return{data:o,loading:!o&&!a,error:a}},Ir=t=>{let{disabled:n=!1}=t;const{setPage:r}=Ra(),a=Ra((e=>e.pages)),o=Ra((e=>e.currentPageIndex)),l=(0,e.useMemo)((()=>Array.from(a.values()).map(((e,t)=>({...e,pageIndex:t}))).filter((e=>{var t;return null==e||null===(t=e.state.getState())||void 0===t?void 0:t.showInSidebar}))),[a]),i=(0,e.useMemo)((()=>l.reduce(((e,t)=>Math.min(e,t.pageIndex)),1/0)),[l]);return null==l||!l.length||o<i?null:(0,e.createElement)("div",{className:"hidden md:block mt-20"},(0,e.createElement)("h3",{className:"text-sm text-partner-primary-text uppercase"},(0,Q.__)("Steps","extendify")),(0,e.createElement)("ul",null,l.map((t=>{var a,l;return(0,e.createElement)("li",{key:null==t||null===(a=t.state.getState())||void 0===a?void 0:a.title,className:Fr()("text-base",{hidden:t.pageIndex>o,"line-through opacity-60":t.pageIndex<o,"hover:opacity-100 hover:no-underline":!n})},(0,e.createElement)("button",{className:Fr()("bg-transparent p-0 text-partner-primary-text flex items-center",{"cursor-pointer":t.pageIndex<o&&!n}),type:"button",disabled:n,onClick:()=>r(null==t?void 0:t.pageIndex)},t.pageIndex<o?(0,e.createElement)(pr,{className:"text-partner-primary-text h-6 w-6 mr-1"}):(0,e.createElement)(Sr,{className:"text-partner-primary-text h-6 w-6 mr-1"}),null==t||null===(l=t.state.getState())||void 0===l?void 0:l.title))}))))},Br=()=>{const{previousPage:t,currentPageIndex:n,pages:r}=Ra(),{openExitModal:a,setExitButtonHovered:o}=Ar(),l=0===n,i=Array.from(r.keys())[n];return(0,e.createElement)("div",{className:"flex items-center space-x-2"},l&&(0,e.createElement)("div",{className:"fixed top-0 right-0 px-3 md:px-6 py-2"},(0,e.createElement)("button",{className:"flex items-center p-1 text-gray-900 font-medium button-focus md:focus:bg-transparent bg-transparent shadow-none",type:"button",title:(0,Q.__)("Exit Launch","extendify"),onMouseEnter:o,onClick:a},(0,e.createElement)("span",{className:"dashicons dashicons-no-alt text-white md:text-black"}))),(0,e.createElement)("div",{className:Fr()("flex flex-1",{"justify-end":"welcome"===i,"justify-between":"welcome"!==i})},l||(0,e.createElement)("button",{className:"flex items-center px-4 py-3 font-medium button-focus text-gray-900 bg-gray-100 hover:bg-gray-200 focus:bg-gray-200 bg-transparent",type:"button",onClick:t},(0,e.createElement)(kr,{className:"h-5 w-5"}),(0,Q.__)("Back","extendify")),l&&(0,e.createElement)("button",{className:"flex items-center px-4 py-3 font-medium button-focus text-gray-900 bg-gray-100 hover:bg-gray-200 focus:bg-gray-200 bg-transparent",type:"button",onMouseEnter:o,onClick:a},(0,e.createElement)(kr,{className:"h-5 w-5"}),(0,Q.__)("Exit Launch","extendify")),(0,e.createElement)(Ur,null)))},Ur=()=>{const{nextPage:t,currentPageIndex:n,pages:r}=Ra(),a=Ra((e=>e.count())),o=fr((e=>e.canLaunch())),l=n===a-1,i=Array.from(r.keys())[n],s=r.get(i).state,[c,u]=(0,e.useState)(!1),d=()=>{var e,t;return"A"===(null===(e=window.extOnbData)||void 0===e||null===(t=e.activeTests)||void 0===t?void 0:t["launch-site-vs-next"])};return(0,e.useEffect)((()=>{var e;return u(null==s||null===(e=s.getState())||void 0===e?void 0:e.ready),s.subscribe((e=>{let{ready:t}=e;return u(t)}))}),[s,n]),o&&l?(0,e.createElement)("button",{className:"flex items-center px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",onClick:()=>{Ar.setState({generating:!0})},type:"button"},d?(0,Q.__)("Next","extendify"):(0,Q.__)("Launch site","extendify"),d?(0,e.createElement)(yr,{className:"h-5 w-5"}):null):(0,e.createElement)("button",{className:"flex items-center px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",onClick:t,disabled:!c,type:"button"},(0,Q.__)("Next","extendify"),(0,e.createElement)(yr,{className:"h-5 w-5"}))},Zr=t=>{var n,r,a;let{children:o,includeNav:l=!0}=t;return(0,e.createElement)("div",{className:"flex flex-col md:flex-row"},(0,e.createElement)("div",{className:"bg-partner-primary-bg text-partner-primary-text py-12 px-10 md:h-screen flex flex-col justify-between md:w-40vw md:max-w-md flex-shrink-0"},(0,e.createElement)("div",{className:"max-w-prose md:max-w-sm pr-8"},(0,e.createElement)("div",{className:"md:min-h-48"},(null===(n=window.extOnbData)||void 0===n?void 0:n.partnerLogo)&&(0,e.createElement)("div",{className:"pb-8"},(0,e.createElement)("img",{style:{maxWidth:"200px"},src:window.extOnbData.partnerLogo,alt:null!==(r=null===(a=window.extOnbData)||void 0===a?void 0:a.partnerName)&&void 0!==r?r:""})),o[0]),(0,e.createElement)(Ir,{disabled:!l})),(0,e.createElement)("div",{className:"hidden md:flex items-center space-x-3"},(0,e.createElement)("span",{className:"opacity-70 text-xs"},(0,Q.__)("Powered by","extendify")),(0,e.createElement)("span",{className:"relative"},(0,e.createElement)(br,{className:"logo text-partner-primary-text w-28"}),(0,e.createElement)("span",{className:"absolute -bottom-2 right-3 font-semibold tracking-tight"},"Launch")))),(0,e.createElement)("div",{className:"flex-grow md:h-screen md:overflow-y-scroll"},l?(0,e.createElement)("div",{className:"pt-12 pb-4 sticky top-0 bg-white z-50 w-full px-4 xl:px-0"},(0,e.createElement)("div",{className:"max-w-onboarding-content mx-auto"},(0,e.createElement)(Br,null))):null,(0,e.createElement)("div",{className:"mt-8 mb-8 xl:mb-12 flex justify-center max-w-onboarding-content mx-auto px-4 xl:px-0"},o[1])))},zr=(e,t)=>lr(ir(t,{name:`Extendify Launch ${e}`})),qr=()=>Vn.get("onboarding/goals"),$r=()=>({key:"goals"}),Wr=zr("Goals",(()=>({title:(0,Q.__)("Goals","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>{const{feedbackMissingGoal:e,goals:t}=fr.getState();return!(null!=e&&e.length)&&0===(null==t?void 0:t.length)}}))),Jr=async()=>({data:{title:await zn("blogname")}}),Gr=()=>({key:"site-info"}),Yr=zr("Site Title",(()=>({title:(0,Q.__)("Site Title","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>{}})));var Xr=window.wp.blockEditor,Kr=window.wp.blocks,Qr=n(767),ea=n.n(Qr);const ta=a.createContext({});function na({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:a,circle:o,direction:l,duration:i,enableAnimation:s=!0}){const c={};return"rtl"===l&&(c["--animation-direction"]="reverse"),"number"==typeof i&&(c["--animation-duration"]=`${i}s`),s||(c["--pseudo-element-display"]="none"),"string"!=typeof n&&"number"!=typeof n||(c.width=n),"string"!=typeof r&&"number"!=typeof r||(c.height=r),"string"!=typeof a&&"number"!=typeof a||(c.borderRadius=a),o&&(c.borderRadius="50%"),void 0!==e&&(c["--base-color"]=e),void 0!==t&&(c["--highlight-color"]=t),c}function ra({count:e=1,wrapper:t,className:n,containerClassName:r,containerTestId:o,circle:l=!1,style:i,...s}){var c,u,d;const f=a.useContext(ta),m={...s};for(const[e,t]of Object.entries(s))void 0===t&&delete m[e];const h={...f,...m,circle:l},p={...i,...na(h)};let g="react-loading-skeleton";n&&(g+=` ${n}`);const v=null!==(c=h.inline)&&void 0!==c&&c,y=[],b=Math.ceil(e);for(let t=0;t<b;t++){let n=p;if(b>e&&t===b-1){const t=null!==(u=n.width)&&void 0!==u?u:"100%",r=e%1,a="number"==typeof t?t*r:`calc(${t} * ${r})`;n={...n,width:a}}const r=a.createElement("span",{className:g,style:n,key:t},"");v?y.push(r):y.push(a.createElement(a.Fragment,{key:t},r,a.createElement("br",null)))}return a.createElement("span",{className:r,"data-testid":o,"aria-live":"polite","aria-busy":null===(d=h.enableAnimation)||void 0===d||d},t?y.map(((e,n)=>a.createElement(t,{key:n},e))):y)}function aa({children:e,...t}){return a.createElement(ta.Provider,{value:t},e)}const oa=t=>{var n,r;let{theme:a,context:o}=t;const[l,i]=(0,e.useState)(),s=null!==(n=null==a?void 0:a.color)&&void 0!==n?n:"#000000",c=null!==(r=null==a?void 0:a.bgColor)&&void 0!==r?r:"#cccccc";return(0,e.useEffect)((()=>{const e=requestAnimationFrame((()=>{if(null==a||!a.color)return;const e=ea()(s).isLight()?sa(ea()(s),.15).hexa():ia(ea()(s),.15).hexa();i(e)}));return()=>cancelAnimationFrame(e)}),[s,c,null==a?void 0:a.color]),(0,e.createElement)("div",{className:Fr()({"group w-full overflow-hidden relative min-h-full button-focus button-card":"style"===o})},(0,e.createElement)(We,{appear:!0,show:!l,leave:"transition-opacity duration-1000",leaveFrom:"opacity-100",leaveTo:"opacity-0",className:"absolute inset-0 z-10 bg-white"},(0,e.createElement)("div",{className:Fr()({"m-2 p-2 pt-1":"style"===o,"p-2":"style"!==o})},(0,e.createElement)(la,{highlightColor:"hsl(0deg 0% 75%)",color:"hsl(0deg 0% 80%)"}))),Boolean(l)&&(0,e.createElement)("div",{className:"overflow-hidden absolute inset-0 opacity-30",style:{zIndex:-1}},(0,e.createElement)("div",{className:Fr()({"m-2 p-2 pt-1":"style"===o,"p-2":"style"!==o}),style:{backgroundColor:c,textAlign:"initial"}},(0,e.createElement)(la,{highlightColor:l,color:s}))))},la=t=>{let{color:n,highlightColor:r}=t;return(0,e.createElement)(aa,{duration:2.3,baseColor:n,highlightColor:r},(0,e.createElement)(ra,{className:"h-36 mb-5 rounded-none"}),(0,e.createElement)("div",{className:"flex flex-col items-center"},(0,e.createElement)("div",null,(0,e.createElement)(ra,{className:"w-28 h-4 mb-1 rounded-none"})),(0,e.createElement)("div",null,(0,e.createElement)(ra,{className:"w-44 h-4 mb-1 rounded-none"})),(0,e.createElement)("div",null,(0,e.createElement)(ra,{className:"w-12 h-6 mb-1 rounded-none"}))),(0,e.createElement)("div",{className:"px-4"},(0,e.createElement)(ra,{className:"h-24 my-5 rounded-none"}),(0,e.createElement)("div",{className:"flex justify-between gap-4"},(0,e.createElement)("div",null,(0,e.createElement)("div",null,(0,e.createElement)(ra,{className:"w-40 h-4 mb-1 rounded-none"})),(0,e.createElement)("div",null,(0,e.createElement)(ra,{className:"w-40 h-4 mb-1 rounded-none"})),(0,e.createElement)("div",null,(0,e.createElement)(ra,{className:"w-40 h-4 mb-1 rounded-none"}))),(0,e.createElement)("div",null,(0,e.createElement)("div",null,(0,e.createElement)(ra,{className:"w-24 h-4 mb-1 rounded-none"})),(0,e.createElement)("div",null,(0,e.createElement)(ra,{className:"w-24 h-4 mb-1 rounded-none"}))))))},ia=(e,t)=>{const n=e.lightness();return e.lightness(n+(100-n)*t)},sa=(e,t)=>{const n=e.lightness();return e.lightness(n-n*t)},ca=async e=>{if(!e)return"{}";const t=await(e=>Vn.post("onboarding/parse-theme-json",{themeJson:e}))(JSON.stringify(e));if(null==t||!t.styles)throw new Error("Invalid theme json");return{data:t.styles}},ua=t=>{var n,r,a,o,l,i,s;let{style:c,onSelect:u,blockHeight:d,context:f,active:m=!1,onHover:h=null}=t;const p=fr((e=>e.siteType)),g=(()=>{const t=(0,e.useRef)(!1);return(0,e.useEffect)((()=>(t.current=!0,()=>t.current=!1))),t})(),[v,y]=(0,e.useState)(""),[b,w]=(0,e.useState)(!1),[E,x]=(0,e.useState)(0),[C,S]=(0,e.useState)(null),[k,N]=(0,e.useState)(!1),[O,L]=(0,e.useState)(null),[M,T]=(0,e.useState)(),_=(0,e.useRef)(null),P=(0,e.useRef)(null),R=(0,e.useRef)(null),A=(0,e.useRef)(null),D=(0,e.useRef)(!1),{data:F}=Vr(k&&M?M:null,ca),{data:j}=Vr("variations",Jn),H=null==M||null===(n=M.settings)||void 0===n||null===(r=n.color)||void 0===r||null===(a=r.palette)||void 0===a?void 0:a.theme,V=(0,e.useMemo)((()=>{return(0,Kr.rawHandler)({HTML:(e=v,e.replace(/\w+:\/\/\S*(w=(\d*))&\w+\S*"/g,((e,t,n)=>e.replace(t,"w="+Math.floor(Number(n))+"&q=10"))))});var e}),[v]),I=(0,e.useMemo)((()=>F?(0,Xr.transformStyles)([{css:F}],".editor-styles-wrapper"):null),[F]);return(0,e.useEffect)((()=>{if(C||!k)return;const e=setTimeout((()=>{const e=_.current,t=null==e?void 0:e.querySelector("iframe[title]");if(!t)return x((e=>e+1));S(t)}),100);return()=>clearTimeout(e)}),[C,k,E]),(0,e.useLayoutEffect)((()=>{var e,t;if(!k||!f.measure)return;const n=`${f.type}-${f.detail}`;if(!b&&!D.current)return D.current=0,void(A.current=performance.now());let r;try{r=performance.measure(n,{start:A.current,detail:{context:f,extendify:!0}})}catch(e){console.error(e)}D.current=null!==(e=null===(t=r)||void 0===t?void 0:t.duration)&&void 0!==e?e:0;const a=new URLSearchParams(window.location.search);var o;null!=a&&a.has("performance")&&D.current&&console.info(`🚀 ${o=f.type,o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()} (${f.detail}) in ${D.current.toFixed()}ms`)}),[b,f,k]),(0,e.useEffect)((()=>{if(null==j||!j.length)return;const e=j.find((e=>e.title===c.label));T(e)}),[c,j]),(0,e.useEffect)((()=>{if(!F||null==c||!c.code)return;const e=[null==c?void 0:c.headerCode,null==c?void 0:c.code,null==c?void 0:c.footerCode].filter(Boolean).join("").replace(/<!-- wp:navigation[.\S\s]*?\/wp:navigation -->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Home | About | Contact</p >\x3c!-- /wp:paragraph --\x3e').replace(/<!-- wp:navigation.*\/-->/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Home | About | Contact</p >\x3c!-- /wp:paragraph --\x3e');y(e)}),[null==p?void 0:p.slug,F,c]),(0,e.useEffect)((()=>{var e;if(!C||!b)return;let t,n;const r=_.current,a=r.offsetWidth/1400,o=C.contentDocument.body;null!=o&&o.style&&(o.style.transitionProperty="all",o.style.top=0),null===(e=o.querySelector("[href*=load-styles]"))||void 0===e||e.remove();const l=()=>{var e,n;if(null==o||!o.offsetHeight)return;const r=(null!==(e=null==P||null===(n=P.current)||void 0===n?void 0:n.offsetHeight)&&void 0!==e?e:d)-32,l=o.getBoundingClientRect().height-r/a;o.style.transitionDuration=Math.max(2*l,3e3)+"ms",t=window.requestAnimationFrame((()=>{o.style.top=-1*Math.max(0,l)+"px"}))},i=()=>{var e,t;if(null==o||!o.offsetHeight)return;const r=(null!==(e=null==P||null===(t=P.current)||void 0===t?void 0:t.offsetHeight)&&void 0!==e?e:d)-32,l=o.offsetHeight-r/a;o.style.transitionDuration=l+"ms",n=window.requestAnimationFrame((()=>{o.style.top=0}))};return r.addEventListener("focus",l),r.addEventListener("mouseenter",l),r.addEventListener("blur",i),r.addEventListener("mouseleave",i),()=>{window.cancelAnimationFrame(t),window.cancelAnimationFrame(n),r.removeEventListener("focus",l),r.removeEventListener("mouseenter",l),r.removeEventListener("blur",i),r.removeEventListener("mouseleave",i)}}),[d,b,C]),(0,e.useEffect)((()=>{if(null==V||!V.length||!C)return;let e,t;const n=()=>{const n=C.contentDocument,r=`<style id="ext-tj">${I}</style>`;var a;null!=n&&n.getElementById("ext-tj")||null==n||null===(a=n.head)||void 0===a||a.insertAdjacentHTML("beforeend",r),t=setTimeout((()=>g.current&&w(!0)),100),clearTimeout(e)};return C.addEventListener("load",n),e=setTimeout(n,2e3),()=>{null==C||C.removeEventListener("load",n),[t].forEach((e=>clearTimeout(e)))}}),[V,I,g,k,C]),(0,e.useEffect)((()=>{if(!R.current)return R.current=new IntersectionObserver((e=>{e[0].isIntersecting&&N(!0)})),R.current.observe(P.current),()=>R.current.disconnect()}),[]),(0,e.createElement)(e.Fragment,null,b&&v?null:(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"absolute inset-0 z-20 flex items-center justify-center"},(0,e.createElement)(oa,{context:"style",theme:{color:null==H||null===(o=H.find((e=>"foreground"===e.slug)))||void 0===o?void 0:o.color,bgColor:null==H||null===(l=H.find((e=>"background"===e.slug)))||void 0===l?void 0:l.color}}))),(0,e.createElement)("div",{"data-cy":"styleSelector",ref:P,role:u?"button":void 0,tabIndex:u?0:void 0,"aria-label":u?(0,Q.__)("Press to select","extendify"):void 0,className:Fr()("group w-full overflow-hidden bg-transparent z-10",{"relative min-h-full":b,"absolute opacity-0":!b,"button-focus button-card p-2":u,"ring-partner-primary-bg ring-offset-2 ring-offset-white ring-wp":m}),onKeyDown:e=>{["Enter","Space"," "].includes(e.key)&&u&&u({...c,variation:M})},onMouseEnter:()=>{h&&L(h)},onMouseLeave:()=>{O&&(O(),L(null))},onClick:u?()=>u({...c,variation:M}):()=>{}},null!==(i=window)&&void 0!==i&&null!==(s=i.extOnbData)&&void 0!==s&&s.devbuild?(0,e.createElement)("div",{className:"-m-px absolute bg-gray-900 border border-t border-white bottom-0 group-hover:opacity-100 left-0 opacity-0 p-1 px-4 text-left text-sm text-white z-30 transition duration-300"},null==c?void 0:c.label," - ",Number(D.current).toFixed(2),"ms"):null,(0,e.createElement)("div",{ref:_,className:"relative rounded-lg"},k?(0,e.createElement)(Xr.BlockPreview,{blocks:V,viewportWidth:1400,live:!1}):null)))},da=e=>Kn(e),fa=t=>{let{page:n,blockHeight:r,required:a=!1,displayOnly:o=!1,title:l=""}=t;const{siteType:i,style:s,toggle:c,has:u}=fr(),d="home"===(null==n?void 0:n.slug),{data:f}=Vr({siteType:i.slug,layoutType:n.slug,baseLayout:d?i.slug.startsWith("blog")?null==s?void 0:s.blogBaseLayout:null==s?void 0:s.homeBaseLayout:null,kit:"home"!==n.slug?null==s?void 0:s.kit:null},da);return o?(0,e.createElement)("div",{className:"text-base p-2 bg-transparent overflow-hidden rounded-lg border border-gray-100",style:{height:r}},l&&(0,e.createElement)("div",{className:"p-3 pb-0 bg-white text-left"},l),(0,e.createElement)(ma,{key:null==s?void 0:s.recordId,page:n,measure:!1,blockHeight:r,style:{...s,code:Qn({template:f})}})):(0,e.createElement)("div",{"data-cy":"pageSelector",role:"button",tabIndex:0,"aria-label":(0,Q.__)("Press to select","extendify"),disabled:a,className:"text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100 button-focus",onClick:()=>a||c("pages",n),title:a&&l?(0,Q.sprintf)(// translators: %s is the name of a page (e.g. Home, Blog, About)
|
3 |
+
(0,Q.__)("%s page is required","extendify"),l):(0,Q.sprintf)(// translators: %s is the name of a page (e.g. Home, Blog, About)
|
4 |
+
(0,Q.__)("Toggle %s page","extendify"),l),onKeyDown:e=>{["Enter","Space"," "].includes(e.key)&&(a||c("pages",n))}},(0,e.createElement)("div",{className:"border-gray-100 border-b-0 min-w-sm z-30 relative bg-white pt-3 px-3 pb-1.5 flex justify-between items-center"},l&&(0,e.createElement)("div",{className:Fr()("flex items-center",{"text-gray-700":!u("pages",n)})},(0,e.createElement)("span",{className:"text-left"},l),a&&(0,e.createElement)("span",{className:"w-4 h-4 text-base leading-none pl-2 mr-6 dashicons dashicons-lock"})),u("pages",n)?(0,e.createElement)("div",{className:Fr()("w-5 h-5 rounded-sm",{"bg-gray-700":a,"bg-partner-primary-bg":!a})},(0,e.createElement)(pr,{className:"text-white w-5"})):(0,e.createElement)("div",{className:Fr()("border w-5 h-5 rounded-sm",{"border-gray-700":a,"border-partner-primary-bg":!a})})),(0,e.createElement)("div",{className:"p-2 relative",style:{height:r-44}},(0,e.createElement)(ma,{key:null==s?void 0:s.recordId,page:n,blockHeight:r,style:{...s,code:Qn({template:f})}})))},ma=t=>{let{page:n,style:r,measure:a=!0,blockHeight:o=!1}=t;const l=(0,e.useMemo)((()=>({type:"page",detail:n.slug,measure:a})),[n,a]);return(0,e.createElement)(ua,{style:r,context:l,blockHeight:o})},ha=async()=>{var e,t;const n=await Vn.get("onboarding/layout-types"),r=null!==(e=null==n?void 0:n.data)&&void 0!==e?e:[];if(null==r||!r.length)throw new Error("Error fetching pages");const a=r[0],o=null===(t=r.slice(1))||void 0===t?void 0:t.sort(((e,t)=>e.title>t.title?1:-1));return{data:[a,...null!=o?o:[]]}},pa=()=>({key:"layout-types"}),ga=zr("Pages",((e,t)=>({title:(0,Q.__)("Pages","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>{var e,n;return(null===(e=fr.getState().pages)||void 0===e?void 0:e.length)===(null===(n=t().default)||void 0===n?void 0:n.length)}}))),va=e=>Xn(e),ya=e=>{var t,n,r,a,o;return{key:"site-style",siteType:null!==(n=null===(r=e=null!==(t=e)&&void 0!==t?t:null==fr?void 0:fr.getState().siteType)||void 0===r?void 0:r.slug)&&void 0!==n?n:"default",styles:null!==(a=null===(o=e)||void 0===o?void 0:o.styles)&&void 0!==a?a:[]}},ba=zr("Design",((e,t)=>({title:(0,Q.__)("Design","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>{var e,n;return(null===(e=fr.getState().style)||void 0===e?void 0:e.slug)===(null===(n=t().default)||void 0===n?void 0:n.slug)}}))),wa=t=>{var n,r;let{style:a}=t;const o=(0,e.useCallback)((e=>{fr.getState().setStyle(e)}),[]),l=(0,e.useMemo)((()=>({type:"style",detail:a.slug,measure:!0})),[a]);return(0,e.createElement)("div",{className:"relative",style:{height:497,width:352}},(0,e.createElement)(ua,{style:a,context:l,onSelect:o,active:(null===(n=fr.getState())||void 0===n||null===(r=n.style)||void 0===r?void 0:r.slug)===a.slug,blockHeight:497}))},Ea=t=>{let{label:n,slug:r,description:a,checked:o,onChange:l}=t;return(0,e.createElement)("label",{className:"flex items-baseline hover:text-partner-primary-bg focus-within:text-partner-primary-bg",htmlFor:r},(0,e.createElement)("span",{className:"w-5 h-5 relative inline-block mr-3 align-middle"},(0,e.createElement)("input",{id:r,className:"h-5 w-5 rounded-sm m-0",type:"checkbox",onChange:l,defaultChecked:o}),(0,e.createElement)("svg",{className:"absolute block h-5 inset-0 w-5 text-white",viewBox:"1 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"presentation"},(0,e.createElement)("path",{d:"M8.72912 13.7449L5.77536 10.7911L4.76953 11.7899L8.72912 15.7495L17.2291 7.24948L16.2304 6.25073L8.72912 13.7449Z",fill:"currentColor"}))),(0,e.createElement)("span",null,(0,e.createElement)("span",{className:"text-base"},n),a?(0,e.createElement)("span",{className:"block pt-1"},a):(0,e.createElement)("span",null)))},xa=()=>Vn.get("onboarding/suggested-plugins"),Ca=()=>({key:"plugins"}),Sa=()=>{var t;const{data:n}=Vr(Ca,xa),{goals:r,add:a,toggle:o,remove:l}=fr(),i=(0,e.useMemo)((()=>null==r||!r.length||!(null!=r&&r.find((e=>null==n?void 0:n.some((t=>{var n;return null==t||null===(n=t.goals)||void 0===n?void 0:n.includes(null==e?void 0:e.slug)})))))),[r,n]),s=(0,e.useCallback)((e=>{if(i)return!0;const t=r.map((e=>e.slug));return null==e?void 0:e.goals.find((e=>t.includes(e)))}),[r,i]);return(0,e.useEffect)((()=>{var e;null==n||n.forEach((e=>l("plugins",e))),i||null==n||null===(e=n.filter(s))||void 0===e||e.forEach((e=>a("plugins",e)))}),[n,a,i,s,l]),(0,e.createElement)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4"},null==n||null===(t=n.filter(s))||void 0===t?void 0:t.map((t=>(0,e.createElement)("div",{key:t.id},(0,e.createElement)(Ea,{label:t.name,slug:t.wordpressSlug,description:t.description,checked:!i,onChange:()=>o("plugins",t)})))))},ka=zr("Site Summary",(()=>({title:(0,Q.__)("Summary","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>!0}))),Na=()=>Vn.get("onboarding/site-types"),Oa=()=>({key:"site-types"}),La=zr("Site Industry",((e,t)=>({title:(0,Q.__)("Site Industry","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>{var e,n,r;return(null===(e=fr.getState())||void 0===e||null===(n=e.siteType)||void 0===n?void 0:n.slug)===(null===(r=t().default)||void 0===r?void 0:r.slug)}}))),Ma=t=>{let{option:n,selectSiteType:r}=t;const a=(0,e.useRef)(0);return(0,e.createElement)("button",{"data-cy":"selectSiteTypeButton",onClick:()=>{r(n)},onMouseEnter:()=>{window.clearTimeout(a.current),a.current=window.setTimeout((()=>{const e=()=>ya(n);U(e,(t=>null!=t&&t.length?t:va(e())))}),100)},onMouseLeave:()=>{window.clearTimeout(a.current)},className:"flex border border-gray-800 hover:text-partner-primary-bg focus:text-partner-primary-bg items-center justify-between mb-3 p-4 py-3 relative w-full button-focus bg-transparent"},(0,e.createElement)("span",{className:"text-left"},n.title),(0,e.createElement)(yr,null))},Ta=[["site-type",{component:()=>{const{nextPage:t}=Ra(),n=fr((e=>e.siteType)),r=fr((e=>e.feedbackMissingSiteType)),[a,o]=(0,e.useState)(""),l=(0,e.useRef)(null),{data:i,loading:s}=Vr(Oa,Na),c=null==i?void 0:i.filter((e=>{const{title:t}=e,n=null==a?void 0:a.toLowerCase();return n?t.toLowerCase().indexOf(n)>-1||void 0:null==e?void 0:e.featured}));(0,e.useEffect)((()=>{La.setState({ready:!s})}),[s]),(0,e.useEffect)((()=>{const e=requestAnimationFrame((()=>{var e;return null===(e=l.current)||void 0===e?void 0:e.focus()}));return()=>cancelAnimationFrame(e)}),[l]),(0,e.useEffect)((()=>{if(s)return;if(null!=n&&n.slug)return;const e=null==i?void 0:i.find((e=>"default"===e.slug));if(e){const t={label:e.title,recordId:e.id,slug:e.slug};fr.getState().setSiteType(t),La.setState({default:t})}}),[s,null==n?void 0:n.slug,i]),(0,e.useEffect)((()=>{if(!a)return;const e=setTimeout((()=>{fr.setState({siteTypeSearch:[...fr.getState().siteTypeSearch,a]})}),500);return()=>clearTimeout(e)}),[a]);const u=async e=>{fr.getState().setSiteType({label:e.title,recordId:e.id,slug:e.slug,styles:e.styles}),await Zn("extendify_siteType",e),t()};return(0,e.createElement)(Zr,null,(0,e.createElement)("div",null,(0,e.createElement)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0","data-cy":"launch-welcome-message"},(0,Q.__)("Welcome to your WordPress site","extendify")),(0,e.createElement)("p",{className:"text-base opacity-70 mb-0"},(0,Q.__)("Design and launch your site with this guided experience, or head right into the WordPress dashboard if you know your way around.","extendify"))),(0,e.createElement)("div",{className:"w-full relative max-w-onboarding-sm mx-auto"},(0,e.createElement)("div",{className:"sticky bg-white top-10 z-40 pt-9 pb-3 mb-2"},(0,e.createElement)("div",{className:"mb-4"},(0,e.createElement)("h2",{className:"text-lg m-0 text-gray-900"},(0,Q.__)("What is your site about?","extendify"))),(0,e.createElement)("div",{className:"mx-auto search-panel flex items-center justify-center relative mb-6"},(0,e.createElement)("input",{ref:l,type:"text",className:"w-full bg-gray-100 h-12 pl-4 input-focus rounded-none ring-offset-0 focus:bg-white",value:a,onChange:e=>o(e.target.value),placeholder:(0,Q.__)("Search...","extendify")}),(0,e.createElement)(Or,{className:"icon-search"})),s&&(0,e.createElement)("p",null,(0,Q.__)("Loading...","extendify"))),(null==c?void 0:c.length)>0&&(0,e.createElement)("div",{className:"relative","data-cy":"siteTypeSection"},c.map((t=>(0,e.createElement)(Ma,{key:t.id,selectSiteType:u,option:t})))),!s&&0===(null==c?void 0:c.length)&&(0,e.createElement)("div",{className:"mx-auto w-full"},(0,e.createElement)("div",{className:"uppercase"},(0,Q.__)("No Results","extendify")),"A"===(null===(d=window.extOnbData)||void 0===d||null===(f=d.activeTests)||void 0===f?void 0:f["remove-dont-see-inputs"])&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("h2",{className:"text-lg mt-12 mb-4 text-gray-900"},(0,Q.__)("Don't see what you're looking for?","extendify")),(0,e.createElement)("div",{className:"search-panel flex items-center justify-center relative"},(0,e.createElement)("input",{type:"text",className:"w-full bg-gray-100 h-12 pl-4 input-focus rounded-none ring-offset-0 focus:bg-white",value:r,onChange:e=>fr.getState().setFeedbackMissingSiteType(e.target.value),placeholder:(0,Q.__)("Describe your site...","extendify")}))))));var d,f},fetcher:Na,fetchData:Oa,state:La}],["goals",{component:()=>{const{data:t,loading:n}=Vr($r,qr),{toggle:r,has:a}=fr(),{feedbackMissingGoal:o,setFeedbackMissingGoal:l,goals:i}=fr(),s=Ra((e=>e.nextPage)),c=(0,e.useRef)(),u=i.map((e=>e.slug)),d={BarChart:hr,Design:gr,Donate:vr,OpenEnvelope:wr,Pencil:Er,Planner:xr,PriceTag:Cr,School:Nr,Shop:Lr,Speech:Mr,Ticket:_r};return(0,e.useEffect)((()=>{n||Wr.setState({ready:!0})}),[n]),(0,e.useEffect)((()=>{if(!c.current)return;const e=requestAnimationFrame((()=>{var e,t;return null===(e=c.current)||void 0===e||null===(t=e.querySelector("input"))||void 0===t?void 0:t.focus()}));return()=>cancelAnimationFrame(e)}),[c]),(0,e.createElement)(Zr,null,(0,e.createElement)("div",null,(0,e.createElement)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0"},(0,Q.__)("What do you want to accomplish with this new site?","extendify")),(0,e.createElement)("p",{className:"text-base opacity-70 mb-0"},(0,Q.__)("You can change these later.","extendify"))),(0,e.createElement)("div",{className:"w-full"},(0,e.createElement)("h2",{className:"text-lg m-0 mb-4 text-gray-900"},(0,Q.__)("Select the goals relevant to your site:","extendify")),n?(0,e.createElement)("p",null,(0,Q.__)("Loading...","extendify")):(0,e.createElement)("form",{"data-cy":"goalsForm",onSubmit:e=>{e.preventDefault(),s()},className:"w-full grid lg:grid-cols-2 gap-4 goal-select"},(0,e.createElement)("input",{type:"submit",className:"hidden"}),null==t?void 0:t.map(((t,n)=>{const o=u.includes(t.slug),l=d[t.icon];return(0,e.createElement)("div",{key:t.id,className:Fr()("relative border rounded-lg",{"border-gray-800":!o,"border-partner-primary-bg":o}),ref:0===n?c:void 0},(0,e.createElement)("div",{className:Fr()("absolute inset-0 pointer-events-none",{"bg-partner-primary-bg":o}),style:{opacity:"0.04"}}),(0,e.createElement)("div",{className:"flex items-center gap-4 h-full"},(0,e.createElement)(jr,{label:t.title,slug:`goal-${t.slug}`,description:t.description,checked:a("goals",t),onChange:()=>{r("goals",t)},Icon:l})))}))),!n&&"A"===(null===(f=window.extOnbData)||void 0===f||null===(m=f.activeTests)||void 0===m?void 0:m["remove-dont-see-inputs"])&&(0,e.createElement)("div",{className:"max-w-onboarding-sm"},(0,e.createElement)("h2",{className:"text-lg mt-12 mb-4 text-gray-900"},(0,Q.__)("Don't see what you're looking for?","extendify")),(0,e.createElement)("div",{className:"search-panel flex items-center justify-center relative gap-4"},(0,e.createElement)("input",{type:"text",className:"w-full bg-gray-100 h-14 pl-5 input-focus rounded-none ring-offset-0 focus:bg-white",value:o,onChange:e=>l(e.target.value),placeholder:(0,Q.__)("Add your goals...","extendify")}),(0,e.createElement)("div",{className:Fr()({visible:o,invisible:!o})},(0,e.createElement)(Hr,null))))));var f,m},fetcher:qr,fetchData:$r,state:Wr}],["style",{component:()=>{const{data:t,loading:n}=Vr(ya,va),{data:r}=Vr("variations",Jn),a=(0,e.useRef)(!1),o=(0,e.useRef)(),l=(()=>{const t=(0,e.useRef)(!1);return(0,e.useLayoutEffect)((()=>(t.current=!0,()=>t.current=!1))),t})(),[i,s]=(0,e.useState)([]);return(0,e.useEffect)((()=>{ba.setState({ready:!n})}),[n]),(0,e.useEffect)((()=>{null!=t&&t.length&&(async()=>{for(const e of t){if(!l.current)return;s((t=>[...t,e])),await new Promise((e=>setTimeout(e,1e3)))}})()}),[t,l]),(0,e.useEffect)((()=>{if(null!=r&&r.length&&null!=i&&i.length&&!fr.getState().style){const e=r.find((e=>e.title===i[0].label));fr.getState().setStyle({...i[0],variation:e}),ba.setState({default:{...i[0],variation:e}})}}),[i,r]),(0,e.useEffect)((()=>{var e,t;null!=i&&i.length&&!a.current&&(a.current=!0,null==o||null===(e=o.current)||void 0===e||null===(t=e.querySelector("[role=button]"))||void 0===t||t.focus())}),[i]),(0,e.createElement)(Zr,null,(0,e.createElement)("div",null,(0,e.createElement)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0"},(0,Q.__)("Now pick a design for your new site.","extendify")),(0,e.createElement)("p",{className:"text-base opacity-70 mb-0"},(0,Q.__)("You can personalize this later.","extendify"))),(0,e.createElement)("div",{className:"w-full"},(0,e.createElement)("h2",{className:"text-lg m-0 mb-4 text-gray-900"},n?(0,Q.__)("Please wait a moment while we generate style previews...","extendify"):(0,Q.__)("Pick your style","extendify")),(0,e.createElement)("div",{ref:o,className:"flex gap-6 flex-wrap justify-center"},null==i?void 0:i.map((t=>(0,e.createElement)(wa,{key:t.recordId,style:t}))),null==t?void 0:t.slice(null==i?void 0:i.length).map((t=>(0,e.createElement)("div",{key:t.slug,style:{height:497,width:352},className:"lg:flex gap-6 relative"},(0,e.createElement)(oa,{context:"style"})))))))},state:ba}],["pages",{component:()=>{const{data:t}=Vr(pa,ha),[n,r]=(0,e.useState)([]),{add:a,goals:o,reset:l}=fr(),i=function(){const t=(0,e.useRef)(!1);return(0,e.useEffect)((()=>(t.current=!0,()=>t.current=!1))),t}();return(0,e.useEffect)((()=>{(null==n?void 0:n.length)===(null==t?void 0:t.length)&&ga.setState({ready:!0})}),[null==t?void 0:t.length,null==n?void 0:n.length]),(0,e.useEffect)((()=>{if(null==t||!t.length)return;const e=t.filter((e=>{var t,n,r;return null==o||!o.length||null==e||null===(t=e.goals)||void 0===t||!t.length||null===(n=null==e||null===(r=e.goals)||void 0===r?void 0:r.some((e=>o.some((t=>e==t.id)))))||void 0===n||n}));(async()=>{for(const t of e){if(!i.current)return;r((e=>[...e,t])),await new Promise((e=>setTimeout(e,100)))}ga.setState({ready:!0})})()}),[t,o,i]),(0,e.useEffect)((()=>{l("pages"),null==n||n.map((e=>a("pages",e))),ga.setState({default:n})}),[n,a,l]),(0,e.createElement)(Zr,null,(0,e.createElement)("div",null,(0,e.createElement)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0"},(0,Q.__)("What pages do you want on this site?","extendify")),(0,e.createElement)("p",{className:"text-base opacity-70 mb-0"},(0,Q.__)("You may add more later","extendify"))),(0,e.createElement)("div",{className:"w-full"},(0,e.createElement)("h2",{className:"text-lg m-0 mb-4 text-gray-900"},(0,Q.__)("Pick the pages you'd like to add to your site","extendify")),(0,e.createElement)("div",{className:"flex gap-6 flex-wrap justify-center"},null==n?void 0:n.map((t=>{if("home"!==t.slug)return(0,e.createElement)("div",{className:"relative",style:{height:541,width:352},key:t.id},(0,e.createElement)(fa,{required:"home"===(null==t?void 0:t.slug),page:t,title:null==t?void 0:t.title,blockHeight:541}))})))))},fetcher:ha,fetchData:pa,state:ga}],["site-title",{component:()=>{const{setSiteInformation:t,siteInformation:n}=fr(),r=(0,e.useRef)(null),a=Ra((e=>e.nextPage)),{data:o}=Vr(Gr,Jr);return(0,e.useEffect)((()=>{void 0===(null==n?void 0:n.title)&&void 0!==(null==o?void 0:o.title)&&t("title",o.title)}),[o,t,null==n?void 0:n.title]),(0,e.useEffect)((()=>{if(void 0===(null==n?void 0:n.title))return;if(Yr.getState().ready)return;Yr.setState({ready:!0});const e=requestAnimationFrame((()=>r.current.focus()));return()=>cancelAnimationFrame(e)}),[null==n?void 0:n.title]),(0,e.createElement)(Zr,null,(0,e.createElement)("div",null,(0,e.createElement)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0"},(0,Q.__)("What's the name of your new site?","extendify")),(0,e.createElement)("p",{className:"text-base opacity-70 mb-0"},(0,Q.__)("You can change this later.","extendify"))),(0,e.createElement)("div",{className:"w-full max-w-onboarding-sm mx-auto"},void 0===(null==n?void 0:n.title)?(0,Q.__)("Loading...","extendify"):(0,e.createElement)("form",{onSubmit:e=>{e.preventDefault(),a()}},(0,e.createElement)("label",{htmlFor:"extendify-site-title-input",className:"block text-lg m-0 mb-4 font-semibold text-gray-900"},(0,Q.__)("What's the name of your site?","extendify")),(0,e.createElement)("div",{className:"mb-8"},(0,e.createElement)("input",{"data-cy":"siteTitle",autoComplete:"off",ref:r,type:"text",name:"site-title-input",id:"extendify-site-title-input",className:"w-96 max-w-full border h-12 input-focus",value:n.title,onChange:e=>{t("title",e.target.value)},placeholder:(0,Q.__)("Enter your preferred site title...","extendify")})))))},fetcher:Jr,fetchData:Gr,state:Yr}],["confirmation",{component:()=>{const{siteType:t,style:n,pages:r,goals:a}=fr(),o=Ra((e=>e.setPage));return(0,e.createElement)(Zr,null,(0,e.createElement)("div",null,(0,e.createElement)("h1",{className:"text-3xl text-partner-primary-text mb-4 mt-0"},(0,Q.__)("Let's launch your site!","extendify")),(0,e.createElement)("p",{className:"text-base mb-0"},(0,Q.__)("Review your site configuration.","extendify"))),(0,e.createElement)("div",{className:"w-full"},(0,e.createElement)("div",{className:"flex flex-col gap-y-12"},(0,e.createElement)("div",{className:"block"},(0,e.createElement)("h2",{className:"text-lg m-0 mb-4 text-gray-900"},(0,Q.__)("Design","extendify")),null!=n&&n.label?(0,e.createElement)("div",{className:"overflow-hidden rounded-lg relative"},(0,e.createElement)("span",{"aria-hidden":"true",className:"absolute top-0 bottom-0 left-3/4 right-0 z-40 bg-gradient-to-l from-white pointer-events-none"}),r.length>0&&(0,e.createElement)("div",{className:"flex justify-center lg:justify-start w-full overflow-y-scroll lg:pr-52"},(0,e.createElement)("div",{className:"flex flex-col lg:flex-row lg:flex-no-wrap gap-4"},null==r?void 0:r.map((t=>(0,e.createElement)("div",{className:"relative pointer-events-none",style:{height:360,width:255},key:t.id},(0,e.createElement)(fa,{displayOnly:!0,page:t,blockHeight:356}))))))):(0,e.createElement)("button",{onClick:()=>o("style"),className:"bg-transparent text-partner-primary underline text-base cursor-pointer"},(0,Q.__)("Press to change the style","extendify"))),(0,e.createElement)("div",{className:"block"},(0,e.createElement)("h2",{className:"text-lg m-0 mb-4"},(0,Q.__)("Industry","extendify")),null!=t&&t.label?(0,e.createElement)("div",{className:"flex items-center"},(0,e.createElement)(pr,{className:"text-extendify-main-dark",style:{width:24}}),(0,e.createElement)("span",{className:"text-base pl-2"},t.label)):(0,e.createElement)("button",{onClick:()=>o("site-type"),className:"bg-transparent text-partner-primary underline text-base cursor-pointer"},(0,Q.__)("Press to set a site type","extendify"))),(null==a?void 0:a.length)>0?(0,e.createElement)("div",{className:"block"},(0,e.createElement)("h2",{className:"text-lg m-0 mb-4"},(0,Q.__)("Goals","extendify")),(0,e.createElement)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4"},null==a?void 0:a.map((t=>(0,e.createElement)("div",{className:"flex items-center",key:t.id},(0,e.createElement)(pr,{className:"text-extendify-main-dark",style:{width:24}}),(0,e.createElement)("span",{className:"text-base pl-2"},t.title)))))):null,(0,e.createElement)("div",{className:"block"},(0,e.createElement)("h2",{className:"text-lg m-0 mb-4"},(0,Q.__)("Pages","extendify")),r.length>0?(0,e.createElement)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4"},null==r?void 0:r.map((t=>(0,e.createElement)("div",{className:"flex items-center",key:t.id},(0,e.createElement)(pr,{className:"text-extendify-main-dark",style:{width:24}}),(0,e.createElement)("span",{className:"text-base pl-2"},t.title))))):(0,e.createElement)("button",{onClick:()=>o("pages"),className:"bg-transparent text-partner-primary underline text-base cursor-pointer"},(0,Q.__)("Press to set your pages","extendify"))),(0,e.createElement)("div",{className:"block"},(0,e.createElement)("h2",{className:"text-lg m-0 mb-4"},(0,Q.__)("Plugins","extendify")),(0,e.createElement)(Sa,null)))))},state:ka}]],_a=null==Ta?void 0:Ta.filter((e=>{var t,n;return!(null!==(t=window.extOnbData)&&void 0!==t&&null!==(n=t.partnerSkipSteps)&&void 0!==n&&n.includes(e[0]))})),Pa=ur(ir(((e,t)=>({pages:new Map(_a),currentPageIndex:0,count(){return t().pages.size},getPageOrder(){return Array.from(t().pages.keys())},getCurrentPageData(){return t().pages.get(t().getCurrentPageSlug())},getCurrentPageSlug(){return t().getPageOrder()[t().currentPageIndex]||(t().setPage(0),t().getPageOrder()[0])},getNextPageData(){const e=t().currentPageIndex+1;return e>t().count()-1?{}:t().pages.get(t().getPageOrder()[e])},setPage(n){"string"==typeof n&&(n=t().getPageOrder().indexOf(n)),n>t().count()-1||n<0||e({currentPageIndex:n})},nextPage(){t().setPage(t().currentPageIndex+1)},previousPage(){t().setPage(t().currentPageIndex-1)}})),{name:"Extendify Launch Pages",serialize:!0}),{name:"extendify-pages",getStorage:()=>localStorage,partialize:e=>{var t,n,r;return{currentPageIndex:null!==(t=null==e?void 0:e.currentPageIndex)&&void 0!==t?t:0,currentPageSlug:null!==(n=null==e?void 0:e.getCurrentPageSlug())&&void 0!==n?n:null,availablePages:null!==(r=null==e?void 0:e.getPageOrder())&&void 0!==r?r:[]}}}),Ra=lr(Pa);var Aa,Da=function(t){let{icon:n,size:r=24,...a}=t;return(0,e.cloneElement)(n,{width:r,height:r,...a})},Fa=window.wp.primitives,ja=(0,e.createElement)(Fa.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(Fa.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),Ha=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ha||{});let Va=0;function Ia(){return++Va}let Ba=null!=(Aa=a.useId)?Aa:function(){let e=we(),[t,n]=a.useState(e?Ia:null);return ge((()=>{null===t&&n(Ia())}),[t]),null!=t?""+t:void 0};var Ua=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ua||{});let Za=se((function(e,t){let{features:n=1,...r}=e;return oe({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})}));function za(e){return pe?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let qa=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var $a=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))($a||{}),Wa=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Wa||{}),Ja=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Ja||{});var Ga=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ga||{});function Ya(e){null==e||e.focus({preventScroll:!0})}let Xa=["textarea","input"].join(",");function Ka(e,t,n=!0,r=null){let a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?n?function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),a=t(n);if(null===r||null===a)return 0;let o=r.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(qa))}(e);r=null!=r?r:a.activeElement;let l,i=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,o.indexOf(r))-1;if(4&t)return Math.max(0,o.indexOf(r))+1;if(8&t)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=32&t?{preventScroll:!0}:{},u=0,d=o.length;do{if(u>=d||u+d<=0)return 0;let e=s+u;if(16&t)e=(e+d)%d;else{if(e<0)return 3;if(e>=d)return 1}l=o[e],null==l||l.focus(c),u+=i}while(l!==a.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Xa))&&n}(l)&&l.select(),l.hasAttribute("tabindex")||l.setAttribute("tabindex","0"),2}var Qa=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Qa||{});function eo(...e){return(0,a.useMemo)((()=>za(...e)),[...e])}function to(e,t,n,r){let o=ye(n);(0,a.useEffect)((()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}),[e,t,r])}function no(e,t){let n=(0,a.useRef)([]),r=Ee(e);(0,a.useEffect)((()=>{let e=[...n.current];for(let[a,o]of t.entries())if(n.current[a]!==o){let a=r(t,e);return n.current=t,a}}),[r,...t])}var ro=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(ro||{});let ao=Object.assign(se((function(e,t){let n=(0,a.useRef)(null),r=Se(n,t),{initialFocus:o,containers:l,features:i=30,...s}=e;we()||(i=1);let c=eo(n);!function({ownerDocument:e},t){let n=(0,a.useRef)(null);to(null==e?void 0:e.defaultView,"focusout",(e=>{!t||n.current||(n.current=e.target)}),!0),no((()=>{t||((null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&Ya(n.current),n.current=null)}),[t]);let r=(0,a.useRef)(!1);(0,a.useEffect)((()=>(r.current=!1,()=>{r.current=!0,ke((()=>{!r.current||(Ya(n.current),n.current=null)}))})),[])}({ownerDocument:c},Boolean(16&i));let u=function({ownerDocument:e,container:t,initialFocus:n},r){let o=(0,a.useRef)(null),l=ve();return no((()=>{if(!r)return;let a=t.current;!a||ke((()=>{if(!l.current)return;let t=null==e?void 0:e.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===t)return void(o.current=t)}else if(a.contains(t))return void(o.current=t);null!=n&&n.current?Ya(n.current):Ka(a,$a.First)===Wa.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=null==e?void 0:e.activeElement}))}),[r]),o}({ownerDocument:c,container:n,initialFocus:o},Boolean(2&i));!function({ownerDocument:e,container:t,containers:n,previousActiveElement:r},a){let o=ve();to(null==e?void 0:e.defaultView,"focus",(e=>{if(!a||!o.current)return;let l=new Set(null==n?void 0:n.current);l.add(t);let i=r.current;if(!i)return;let s=e.target;s&&s instanceof HTMLElement?function(e,t){var n;for(let r of e)if(null!=(n=r.current)&&n.contains(t))return!0;return!1}(l,s)?(r.current=s,Ya(s)):(e.preventDefault(),e.stopPropagation(),Ya(i)):Ya(r.current)}),!0)}({ownerDocument:c,container:n,containers:l,previousActiveElement:u},Boolean(8&i));let d=function(){let e=(0,a.useRef)(0);return function(e,t,n){let r=ye(t);(0,a.useEffect)((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),f=Ee((()=>{let e=n.current;!e||te(d.current,{[Qa.Forwards]:()=>Ka(e,$a.First),[Qa.Backwards]:()=>Ka(e,$a.Last)})})),m={ref:r};return a.createElement(a.Fragment,null,Boolean(4&i)&&a.createElement(Za,{as:"button",type:"button",onFocus:f,features:Ua.Focusable}),oe({ourProps:m,theirProps:s,defaultTag:"div",name:"FocusTrap"}),Boolean(4&i)&&a.createElement(Za,{as:"button",type:"button",onFocus:f,features:Ua.Focusable}))})),{features:ro}),oo=new Set,lo=new Map;function io(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function so(e){let t=lo.get(e);!t||(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}var co=window.ReactDOM;let uo=(0,a.createContext)(!1);function fo(){return(0,a.useContext)(uo)}function mo(e){return a.createElement(uo.Provider,{value:e.force},e.children)}let ho=a.Fragment,po=se((function(e,t){let n=e,r=(0,a.useRef)(null),o=Se(Ce((e=>{r.current=e})),t),l=eo(r),i=function(e){let t=fo(),n=(0,a.useContext)(vo),r=eo(e),[o,l]=(0,a.useState)((()=>{if(!t&&null!==n||pe)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let a=r.createElement("div");return a.setAttribute("id","headlessui-portal-root"),r.body.appendChild(a)}));return(0,a.useEffect)((()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))}),[o,r]),(0,a.useEffect)((()=>{t||null!==n&&l(n.current)}),[n,l,t]),o}(r),[s]=(0,a.useState)((()=>{var e;return pe?null:null!=(e=null==l?void 0:l.createElement("div"))?e:null})),c=we(),u=(0,a.useRef)(!1);return ge((()=>{if(u.current=!1,i&&s)return i.contains(s)||(s.setAttribute("data-headlessui-portal",""),i.appendChild(s)),()=>{u.current=!0,ke((()=>{var e;!u.current||!i||!s||(i.removeChild(s),i.childNodes.length<=0&&(null==(e=i.parentElement)||e.removeChild(i)))}))}}),[i,s]),c&&i&&s?(0,co.createPortal)(oe({ourProps:{ref:o},theirProps:n,defaultTag:ho,name:"Portal"}),s):null})),go=a.Fragment,vo=(0,a.createContext)(null),yo=se((function(e,t){let{target:n,...r}=e,o={ref:Se(t)};return a.createElement(vo.Provider,{value:n},oe({ourProps:o,theirProps:r,defaultTag:go,name:"Popover.Group"}))})),bo=Object.assign(po,{Group:yo}),wo=(0,a.createContext)(null);function Eo(){let e=(0,a.useContext)(wo);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Eo),e}return e}let xo=se((function(e,t){let n=Eo(),r=`headlessui-description-${Ba()}`,a=Se(t);ge((()=>n.register(r)),[r,n.register]);let o=e;return oe({ourProps:{ref:a,...n.props,id:r},theirProps:o,slot:n.slot||{},defaultTag:"p",name:n.name||"Description"})})),Co=(0,a.createContext)((()=>{}));Co.displayName="StackContext";var So=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(So||{});function ko({children:e,onUpdate:t,type:n,element:r,enabled:o}){let l=(0,a.useContext)(Co),i=Ee(((...e)=>{null==t||t(...e),l(...e)}));return ge((()=>{let e=void 0===o||!0===o;return e&&i(0,n,r),()=>{e&&i(1,n,r)}}),[i,n,r,o]),a.createElement(Co.Provider,{value:i},e)}function No(e,t,n){let r=ye(t);(0,a.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}var Oo=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Oo||{}),Lo=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Lo||{});let Mo={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},To=(0,a.createContext)(null);function _o(e){let t=(0,a.useContext)(To);if(null===t){let t=new Error(`<${
|