Version Description
- 2022-12-02 =
- Add automated testing
- Various bug fixes and improvements
Download this release
Release Info
Developer | extendify |
Plugin | Extendify — Gutenberg Patterns and Templates |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
- .wp-env.json +1 -0
- app/Assist/AdminPage.php +5 -1
- app/Assist/Controllers/TourController.php +40 -0
- app/Assist/Controllers/WPController.php +19 -0
- app/Library/AdminPage.php +15 -15
- app/Library/Controllers/PluginController.php +1 -1
- cypress.config.js +1 -1
- extendify.php +1 -1
- public/assets/tours/welcome/add-pages.gif +0 -0
- public/assets/tours/welcome/blog-posts.gif +0 -0
- public/assets/tours/welcome/site-assistant.gif +0 -0
- public/assets/tours/welcome/view-site.gif +0 -0
- public/build/extendify-assist.asset.php +1 -1
- public/build/extendify-assist.css +1 -1
- public/build/extendify-assist.js +2 -2
- public/build/extendify-onboarding.asset.php +1 -1
- public/build/extendify-onboarding.css +1 -1
- public/build/extendify-onboarding.js +2 -2
.wp-env.json
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
{
|
|
|
2 |
"core": null,
|
3 |
"plugins": ["."],
|
4 |
"themes": ["https://downloads.wordpress.org/theme/extendable.zip"]
|
1 |
{
|
2 |
+
"warning": "Edit this file in cypress.yml line 44 too",
|
3 |
"core": null,
|
4 |
"plugins": ["."],
|
5 |
"themes": ["https://downloads.wordpress.org/theme/extendable.zip"]
|
app/Assist/AdminPage.php
CHANGED
@@ -49,7 +49,11 @@ class AdminPage
|
|
49 |
public function pageContent()
|
50 |
{
|
51 |
?>
|
52 |
-
<div
|
|
|
|
|
|
|
|
|
53 |
<?php
|
54 |
}
|
55 |
}
|
49 |
public function pageContent()
|
50 |
{
|
51 |
?>
|
52 |
+
<div
|
53 |
+
id="extendify-assist-landing-page"
|
54 |
+
class="extendify-assist"
|
55 |
+
data-test="assist-landing">
|
56 |
+
></div>
|
57 |
<?php
|
58 |
}
|
59 |
}
|
app/Assist/Controllers/TourController.php
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Controls Tasks
|
4 |
+
*/
|
5 |
+
|
6 |
+
namespace Extendify\Assist\Controllers;
|
7 |
+
|
8 |
+
if (!defined('ABSPATH')) {
|
9 |
+
die('No direct access.');
|
10 |
+
}
|
11 |
+
|
12 |
+
/**
|
13 |
+
* The controller for tracking tour progress info
|
14 |
+
*/
|
15 |
+
class TourController
|
16 |
+
{
|
17 |
+
/**
|
18 |
+
* Return the data
|
19 |
+
*
|
20 |
+
* @return \WP_REST_Response
|
21 |
+
*/
|
22 |
+
public static function get()
|
23 |
+
{
|
24 |
+
$data = get_option('extendify_assist_tour_progress', []);
|
25 |
+
return new \WP_REST_Response($data);
|
26 |
+
}
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Persist the data
|
30 |
+
*
|
31 |
+
* @param \WP_REST_Request $request - The request.
|
32 |
+
* @return \WP_REST_Response
|
33 |
+
*/
|
34 |
+
public static function store($request)
|
35 |
+
{
|
36 |
+
$data = json_decode($request->get_param('data'), true);
|
37 |
+
update_option('extendify_assist_tour_progress', $data);
|
38 |
+
return new \WP_REST_Response($data);
|
39 |
+
}
|
40 |
+
}
|
app/Assist/Controllers/WPController.php
CHANGED
@@ -42,4 +42,23 @@ class WPController
|
|
42 |
'data' => $value,
|
43 |
]);
|
44 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
}
|
42 |
'data' => $value,
|
43 |
]);
|
44 |
}
|
45 |
+
|
46 |
+
/**
|
47 |
+
* Get the list of active plugins slugs
|
48 |
+
*
|
49 |
+
* @return \WP_REST_Response
|
50 |
+
*/
|
51 |
+
public static function getActivePlugins()
|
52 |
+
{
|
53 |
+
$value = \get_option('active_plugins', null);
|
54 |
+
$slugs = [];
|
55 |
+
foreach ($value as $plugin) {
|
56 |
+
$slugs[] = explode( '/', $plugin )[0];
|
57 |
+
}
|
58 |
+
|
59 |
+
return new \WP_REST_Response([
|
60 |
+
'success' => true,
|
61 |
+
'data' => $slugs,
|
62 |
+
]);
|
63 |
+
}
|
64 |
}
|
app/Library/AdminPage.php
CHANGED
@@ -79,7 +79,7 @@ class AdminPage
|
|
79 |
<?php
|
80 |
echo \wp_sprintf(
|
81 |
/* translators: %s: The name of the plugin, Extendify */
|
82 |
-
|
83 |
'Extendify'
|
84 |
);
|
85 |
?>
|
@@ -91,7 +91,7 @@ class AdminPage
|
|
91 |
<?php
|
92 |
echo \wp_sprintf(
|
93 |
/* translators: %s: The name of the plugin, Extendify */
|
94 |
-
|
95 |
'Extendify'
|
96 |
);
|
97 |
?>
|
@@ -100,7 +100,7 @@ class AdminPage
|
|
100 |
<?php
|
101 |
echo \wp_sprintf(
|
102 |
/* translators: %s: The name of the plugin, Extendify */
|
103 |
-
|
104 |
'Extendify'
|
105 |
);
|
106 |
?>
|
@@ -113,7 +113,7 @@ class AdminPage
|
|
113 |
<?php
|
114 |
echo \wp_sprintf(
|
115 |
/* translators: %s: Extendify Library term */
|
116 |
-
|
117 |
'Extendify Library'
|
118 |
);
|
119 |
?>
|
@@ -122,7 +122,7 @@ class AdminPage
|
|
122 |
<?php
|
123 |
echo \wp_sprintf(
|
124 |
/* translators: %s: Extendify Library term */
|
125 |
-
|
126 |
'Extendify Library'
|
127 |
);
|
128 |
?>
|
@@ -130,7 +130,7 @@ class AdminPage
|
|
130 |
<p>
|
131 |
<?php
|
132 |
// translators: %1$s = URL.
|
133 |
-
echo \wp_sprintf(
|
134 |
</p>
|
135 |
</div>
|
136 |
<div class="column welcome-image is-vertically-aligned-center is-edge-to-edge">
|
@@ -143,16 +143,16 @@ class AdminPage
|
|
143 |
</div>
|
144 |
<div class="column is-edge-to-edge">
|
145 |
<h3>
|
146 |
-
<?php
|
147 |
</h3>
|
148 |
<p>
|
149 |
-
<?php
|
150 |
</p>
|
151 |
<p>
|
152 |
<?php
|
153 |
echo \wp_sprintf(
|
154 |
/* translators: %s: The name of the plugin, Extendify */
|
155 |
-
|
156 |
'Extendify'
|
157 |
);
|
158 |
?>
|
@@ -162,19 +162,19 @@ class AdminPage
|
|
162 |
<div class="welcome-section has-2-columns has-gutters is-wider-right">
|
163 |
<div class="column is-edge-to-edge">
|
164 |
<h3>
|
165 |
-
<?php
|
166 |
</h3>
|
167 |
<p>
|
168 |
<?php
|
169 |
echo \wp_sprintf(
|
170 |
/* translators: %s: The name of the plugin, Extendify */
|
171 |
-
|
172 |
'Extendify'
|
173 |
);
|
174 |
?>
|
175 |
</p>
|
176 |
<p>
|
177 |
-
<?php
|
178 |
</p>
|
179 |
</div>
|
180 |
<div class="column welcome-image is-vertically-aligned-center is-edge-to-edge">
|
@@ -188,17 +188,17 @@ class AdminPage
|
|
188 |
<?php
|
189 |
echo \wp_sprintf(
|
190 |
/* translators: %s: The name of the plugin, Extendify */
|
191 |
-
|
192 |
'Extendify'
|
193 |
);
|
194 |
?>
|
195 |
</h2>
|
196 |
<p class="aligncenter is-subheading">
|
197 |
-
<?php
|
198 |
</p>
|
199 |
</div>
|
200 |
<a href="https://extendify.com/pricing/?utm_source=welcome&utm_medium=settings&utm_campaign=get_started&utm_campaign=get_started" class="button button-primary components-button">
|
201 |
-
<?php echo
|
202 |
<hr/>
|
203 |
<?php endif; ?>
|
204 |
</div>
|
79 |
<?php
|
80 |
echo \wp_sprintf(
|
81 |
/* translators: %s: The name of the plugin, Extendify */
|
82 |
+
esc_html__('%s Banner', 'extendify'),
|
83 |
'Extendify'
|
84 |
);
|
85 |
?>
|
91 |
<?php
|
92 |
echo \wp_sprintf(
|
93 |
/* translators: %s: The name of the plugin, Extendify */
|
94 |
+
esc_html__('Welcome to %s', 'extendify'),
|
95 |
'Extendify'
|
96 |
);
|
97 |
?>
|
100 |
<?php
|
101 |
echo \wp_sprintf(
|
102 |
/* translators: %s: The name of the plugin, Extendify */
|
103 |
+
esc_html__('%s is a massive library of drop-in block patterns easily customized to your liking. Each pattern is meticulously designed to work with your existing WordPress theme.', 'extendify'),
|
104 |
'Extendify'
|
105 |
);
|
106 |
?>
|
113 |
<?php
|
114 |
echo \wp_sprintf(
|
115 |
/* translators: %s: Extendify Library term */
|
116 |
+
esc_html__('1. Open the %s', 'extendify'),
|
117 |
'Extendify Library'
|
118 |
);
|
119 |
?>
|
122 |
<?php
|
123 |
echo \wp_sprintf(
|
124 |
/* translators: %s: Extendify Library term */
|
125 |
+
esc_html__("When editing a page or post within the block editor, you'll see the %s button within the editor's header", 'extendify'),
|
126 |
'Extendify Library'
|
127 |
);
|
128 |
?>
|
130 |
<p>
|
131 |
<?php
|
132 |
// translators: %1$s = URL.
|
133 |
+
echo \wp_sprintf(esc_html__('You may also add a new page with the library opened for you by %1$s.', 'extendify'), '<a href="' . \esc_url(\admin_url('post-new.php?post_type=page&ext-open')) . '">' . esc_html__('clicking here', 'extendify') . '</a>'); ?>
|
134 |
</p>
|
135 |
</div>
|
136 |
<div class="column welcome-image is-vertically-aligned-center is-edge-to-edge">
|
143 |
</div>
|
144 |
<div class="column is-edge-to-edge">
|
145 |
<h3>
|
146 |
+
<?php esc_html_e('2. Choose a site industry', 'extendify'); ?>
|
147 |
</h3>
|
148 |
<p>
|
149 |
+
<?php esc_html_e('With the library open, you can set your site industry - or type - which will surface the perfect industry-specific patterns and full page layouts to drop onto your website.', 'extendify'); ?>
|
150 |
</p>
|
151 |
<p>
|
152 |
<?php
|
153 |
echo \wp_sprintf(
|
154 |
/* translators: %s: The name of the plugin, Extendify */
|
155 |
+
esc_html__('%s supports over sixty types with new industries added regularly.', 'extendify'),
|
156 |
'Extendify'
|
157 |
);
|
158 |
?>
|
162 |
<div class="welcome-section has-2-columns has-gutters is-wider-right">
|
163 |
<div class="column is-edge-to-edge">
|
164 |
<h3>
|
165 |
+
<?php esc_html_e('3. Browse Patterns & Layouts.', 'extendify'); ?>
|
166 |
</h3>
|
167 |
<p>
|
168 |
<?php
|
169 |
echo \wp_sprintf(
|
170 |
/* translators: %s: The name of the plugin, Extendify */
|
171 |
+
esc_html__('Search by industry, contents, and design attributes. %s has thousands of best-in-class block patterns. Find what you love and add it to the page - done!', 'extendify'),
|
172 |
'Extendify'
|
173 |
);
|
174 |
?>
|
175 |
</p>
|
176 |
<p>
|
177 |
+
<?php esc_html_e("You'll find beautiful high fidelity Gutenberg content to add to your pages in no time!", 'extendify'); ?>
|
178 |
</p>
|
179 |
</div>
|
180 |
<div class="column welcome-image is-vertically-aligned-center is-edge-to-edge">
|
188 |
<?php
|
189 |
echo \wp_sprintf(
|
190 |
/* translators: %s: The name of the plugin, Extendify */
|
191 |
+
esc_html__('Upgrade to %s Pro', 'extendify'),
|
192 |
'Extendify'
|
193 |
);
|
194 |
?>
|
195 |
</h2>
|
196 |
<p class="aligncenter is-subheading">
|
197 |
+
<?php esc_html_e('Do you want more patterns and layouts - without limits? Choose one of our plans and receive unlimited access to our complete library.', 'extendify'); ?>
|
198 |
</p>
|
199 |
</div>
|
200 |
<a href="https://extendify.com/pricing/?utm_source=welcome&utm_medium=settings&utm_campaign=get_started&utm_campaign=get_started" class="button button-primary components-button">
|
201 |
+
<?php echo esc_html__('View Pricing', 'extendify'); ?></a>
|
202 |
<hr/>
|
203 |
<?php endif; ?>
|
204 |
</div>
|
app/Library/Controllers/PluginController.php
CHANGED
@@ -50,7 +50,7 @@ class PluginController
|
|
50 |
public static function install($request)
|
51 |
{
|
52 |
if (!\current_user_can('activate_plugins')) {
|
53 |
-
return new \WP_Error('not_allowed',
|
54 |
}
|
55 |
|
56 |
$requiredPlugins = json_decode($request->get_param('plugins'), true);
|
50 |
public static function install($request)
|
51 |
{
|
52 |
if (!\current_user_can('activate_plugins')) {
|
53 |
+
return new \WP_Error('not_allowed', __('You are not allowed to activate plugins on this site.', 'extendify'));
|
54 |
}
|
55 |
|
56 |
$requiredPlugins = json_decode($request->get_param('plugins'), true);
|
cypress.config.js
CHANGED
@@ -2,6 +2,6 @@ const { defineConfig } = require('cypress')
|
|
2 |
|
3 |
module.exports = defineConfig({
|
4 |
e2e: {
|
5 |
-
|
6 |
},
|
7 |
})
|
2 |
|
3 |
module.exports = defineConfig({
|
4 |
e2e: {
|
5 |
+
baseUrl: 'http://localhost:8888',
|
6 |
},
|
7 |
})
|
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.2.
|
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.2
|
9 |
* License: GPL-2.0-or-later
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
* Text Domain: extendify
|
public/assets/tours/welcome/add-pages.gif
ADDED
Binary file
|
public/assets/tours/welcome/blog-posts.gif
ADDED
Binary file
|
public/assets/tours/welcome/site-assistant.gif
ADDED
Binary file
|
public/assets/tours/welcome/view-site.gif
ADDED
Binary file
|
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('lodash', 'react', 'react-dom', 'wp-blob', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-media-utils', 'wp-primitives'), 'version' => '8d75665fe82b00439863');
|
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{left:0!important;right:0!important}div.extendify-assist .inset-0,div.extendify-assist .inset-y-0{bottom: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-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-2{margin-left:.5rem!important;margin-right:.5rem!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-8{margin-right:2rem!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 .max-h-half{max-height:50vh!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-md{max-width:36rem!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-auto{overflow:auto!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-b{border-bottom-left-radius:.25rem!important;border-bottom-right-radius:.25rem!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-200{--tw-border-opacity:1!important;border-color:rgba(224,224,224,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-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-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 .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}}
|
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{left:0!important;right:0!important}div.extendify-assist .inset-0,div.extendify-assist .inset-y-0{bottom: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-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-2{margin-left:.5rem!important;margin-right:.5rem!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-8{margin-right:2rem!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-2\.5{height:.625rem!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 .max-h-half{max-height:50vh!important}div.extendify-assist .min-h-60{min-height:15rem!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-2{width:.5rem!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-2\.5{width:.625rem!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-xs{max-width:20rem!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-md{max-width:36rem!important}div.extendify-assist .max-w-onboarding-sm{max-width:26.5rem!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-x-3{--tw-translate-x:-0.75rem!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 .resize{resize:both!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-start{justify-content:flex-start!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-1\.5{gap:.375rem!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-auto{overflow:auto!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-b{border-bottom-left-radius:.25rem!important;border-bottom-right-radius:.25rem!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-200{--tw-border-opacity:1!important;border-color:rgba(224,224,224,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-300{--tw-bg-opacity:1!important;background-color:rgba(221,221,221,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-transparent:hover{background-color:transparent!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-opacity-60{--tw-bg-opacity:0.6!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-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-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 .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 .ring-1{--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(1px + 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 .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 .focus\:ring-wp-theme-500:focus,div.extendify-assist .ring-wp-theme-500{--tw-ring-color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-assist .ring-offset-0{--tw-ring-offset-width:0px!important}div.extendify-assist .ring-offset-1{--tw-ring-offset-width:1px!important}div.extendify-assist .ring-offset-2{--tw-ring-offset-width:2px!important}div.extendify-assist .focus\:ring-offset-1:focus{--tw-ring-offset-width:1px!important}div.extendify-assist .focus\:ring-offset-white:focus,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}.ext-force-overflow-auto{overflow:auto!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\:max-w-3\/4{max-width:75%!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-0{padding:0!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,2 +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 k=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 V=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(V||{});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 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(M,{as:"button",type:"button",onFocus:m,features:V.Focusable}),f({ourProps:h,theirProps:u,defaultTag:"div",name:"FocusTrap"}),Boolean(4&a)&&s.createElement(M,{as:"button",type:"button",onFocus:m,features:V.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-${k()}`,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=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),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-${k()}`,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(M,{features:V.Hidden,ref:v}))})),ke=h((function(e,t){let[{dialogState:n,close:r}]=Ae("Dialog.Overlay"),o=S(t),i=`headlessui-dialog-overlay-${k()}`,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"})})),Ve=h((function(e,t){let[{dialogState:n},r]=Ae("Dialog.Backdrop"),o=S(t),i=`headlessui-dialog-backdrop-${k()}`;(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-${k()}`,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-${k()}`,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:Ve,Panel:Me,Overlay:ke,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: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 kt=Ot;function Vt(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||Vt,o=n&&n.serialize;let i;if(i=o?o(t,n):gt.isURLSearchParams(t)?t.toString():new kt(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:kt,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(),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:kn,isAxiosError:Vn,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:"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))},kr=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())}},Vr={dedupe:!0},Mr=$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}),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,k=Yn(O)?R:O,V=r.get(w)||{},M=V.error,N=!E.current,D=function(){return N&&!Yn(l)?l:!L().isPaused()&&(a?!Yn(k)&&n.revalidateIfStale:Yn(k)||n.revalidateIfStale)},j=!(!y||!t)&&(!!V.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:k,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: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,Vr),n=0,r=kr(y,m,(function(e,t,n){B(Gn({error:t,isValidating:n},o(_.current.data,e)?qn:{data:e}))})),i=kr(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:k,error:M,isValidating:j}),D()&&(Yn(k)||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(k):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){_.current.error||!c&&!L().isVisible()||!d&&!L().isOnline()?t():I(Vr).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[u,c,d,I]),(0,s.useDebugValue)(k),a&&Yn(k)&&y)throw S.current=t,T.current=n,x.current=!1,Yn(M)?I(Vr):M;return{mutate:U,get data(){return H.data=!0,k},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),Zr=function(e,t){return Zr=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])},Zr(e,t)};function Wr(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}Zr(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var qr=function(){return qr=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},qr.apply(this,arguments)};function $r(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 Yr(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 Xr(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 Gr=("undefined"==typeof process||process.env,"production");const Jr=1/60*1e3,Kr="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),Qr="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(Kr())),Jr);let eo=!0,to=!1,no=!1;const ro={delta:0,timestamp:0},oo=["read","update","preRender","render","postRender"],io=oo.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}((()=>to=!0)),e)),{}),ao=oo.reduce(((e,t)=>{const n=io[t];return e[t]=(e,t=!1,r=!1)=>(to||fo(),n.schedule(e,t,r)),e}),{}),so=oo.reduce(((e,t)=>(e[t]=io[t].cancel,e)),{}),lo=oo.reduce(((e,t)=>(e[t]=()=>io[t].process(ro),e)),{}),uo=e=>io[e].process(ro),co=e=>{to=!1,ro.delta=eo?Jr:Math.max(Math.min(e-ro.timestamp,40),1),ro.timestamp=e,no=!0,oo.forEach(uo),no=!1,to&&(eo=!1,Qr(co))},fo=()=>{to=!0,eo=!0,no||Qr(co)},po=()=>ro;var mo=ao,ho="undefined"!=typeof document,vo=ho?s.useLayoutEffect:s.useEffect;function go(){var e=(0,s.useRef)(!1);return vo((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var yo=(0,s.createContext)(null);function bo(e){var t=(0,s.useRef)(null);return null===t.current&&(t.current=e()),t.current}var wo=0,Eo=function(){return wo++},xo=function(){return bo(Eo)},Co=function(e){var t=e.children,n=e.initial,r=e.isPresent,o=e.onExitComplete,i=e.custom,a=e.presenceAffectsLayout,l=bo(So),u=xo(),c=(0,s.useMemo)((function(){return{id:u,initial:n,isPresent:r,custom:i,onExitComplete:function(e){var t,n;l.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(l.values()),i=r.next();!i.done;i=r.next())if(!i.value)return}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==o||o()},register:function(e){return l.set(e,!1),function(){return l.delete(e)}}}}),a?void 0:[r]);return(0,s.useMemo)((function(){l.forEach((function(e,t){return l.set(t,!1)}))}),[r]),s.useEffect((function(){!r&&!l.size&&(null==o||o())}),[r]),s.createElement(yo.Provider,{value:c},t)};function So(){return new Map}var To=(0,s.createContext)({});function Lo(e){return(0,s.useEffect)((function(){return function(){return e()}}),[])}var Ao=function(e){return e.key||""},Po=function(e){var t=e.children,n=e.custom,r=e.initial,o=void 0===r||r,i=e.onExitComplete,a=e.exitBeforeEnter,l=e.presenceAffectsLayout,u=void 0===l||l,c=Yr(function(){var e=go(),t=Yr((0,s.useState)(0),2),n=t[0],r=t[1],o=(0,s.useCallback)((function(){e.current&&r(n+1)}),[n]);return[(0,s.useCallback)((function(){return mo.postRender(o)}),[o]),n]}(),1),d=c[0],f=(0,s.useContext)(To).forceRender;f&&(d=f);var p=go(),m=function(e){var t=[];return s.Children.forEach(e,(function(e){(0,s.isValidElement)(e)&&t.push(e)})),t}(t),h=m,v=new Set,g=(0,s.useRef)(h),y=(0,s.useRef)(new Map).current,b=(0,s.useRef)(!0);if(vo((function(){b.current=!1,function(e,t){e.forEach((function(e){var n=Ao(e);t.set(n,e)}))}(m,y),g.current=h})),Lo((function(){b.current=!0,y.clear(),v.clear()})),b.current)return s.createElement(s.Fragment,null,h.map((function(e){return s.createElement(Co,{key:Ao(e),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:u},e)})));h=Xr([],Yr(h),!1);for(var w=g.current.map(Ao),E=m.map(Ao),x=w.length,C=0;C<x;C++){var S=w[C];-1===E.indexOf(S)&&v.add(S)}return a&&v.size&&(h=[]),v.forEach((function(e){if(-1===E.indexOf(e)){var t=y.get(e);if(t){var r=w.indexOf(e);h.splice(r,0,s.createElement(Co,{key:Ao(t),isPresent:!1,onExitComplete:function(){y.delete(e),v.delete(e);var t=g.current.findIndex((function(t){return t.key===e}));if(g.current.splice(t,1),!v.size){if(g.current=m,!1===p.current)return;d(),i&&i()}},custom:n,presenceAffectsLayout:u},t))}}})),h=h.map((function(e){var t=e.key;return v.has(t)?e:s.createElement(Co,{key:Ao(e),isPresent:!0,presenceAffectsLayout:u},e)})),"production"!==Gr&&a&&h.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),s.createElement(s.Fragment,null,v.size?h:h.map((function(e){return(0,s.cloneElement)(e)})))},Oo=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},Ro={measureLayout:Oo(["layout","layoutId","drag"]),animation:Oo(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Oo(["exit"]),drag:Oo(["drag","dragControls"]),focus:Oo(["whileFocus"]),hover:Oo(["whileHover","onHoverStart","onHoverEnd"]),tap:Oo(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Oo(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Oo(["whileInView","onViewportEnter","onViewportLeave"])},ko=(0,s.createContext)({strict:!1}),Vo=Object.keys(Ro),Mo=Vo.length,No=(0,s.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Do=(0,s.createContext)({}),jo={current:null},Fo=!1;function _o(e,t,n,r){var o,i,a=(0,s.useContext)(ko),l=(0,s.useContext)(Do).visualElement,u=(0,s.useContext)(yo),c=(!Fo&&function(){if(Fo=!0,ho)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return jo.current=e.matches};e.addListener(t),t()}else jo.current=!1}(),o=Yr((0,s.useState)(jo.current),1)[0],"never"!==(i=(0,s.useContext)(No).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 vo((function(){null==f||f.syncRender()})),(0,s.useEffect)((function(){var e;null===(e=null==f?void 0:f.animationState)||void 0===e||e.animateChanges()})),vo((function(){return function(){return null==f?void 0:f.notifyUnmount()}}),[]),f}function Ho(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Bo(e){return Array.isArray(e)}function Io(e){return"string"==typeof e||Bo(e)}function Uo(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 zo(e,t,n){var r=e.getProps();return Uo(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 Zo(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Io(e.initial)||Io(e.animate)||Io(e.whileHover)||Io(e.whileDrag)||Io(e.whileTap)||Io(e.whileFocus)||Io(e.exit)}function Wo(e){return Boolean(Zo(e)||e.variants)}function qo(e){return Array.isArray(e)?e.join(" "):e}var $o={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Yo=1,Xo=(0,s.createContext)({}),Go=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wr(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 Jo(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?Ro.projectionNodeConstructor=e[t]:Ro[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)(To))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=qr(qr({},e),{layoutId:u});var c=(0,s.useContext)(No),d=null,f=function(e){var t=function(e,t){if(Zo(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Io(n)?n:void 0,animate:Io(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,s.useContext)(Do)),n=t.initial,r=t.animate;return(0,s.useMemo)((function(){return{initial:n,animate:r}}),[qo(n),qo(r)])}(e),p=c.isStatic?void 0:bo((function(){if($o.hasEverUpdated)return Yo++})),m=i(e,c.isStatic);return!c.isStatic&&ho&&(f.visualElement=_o(a,m,qr(qr({},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)(Xo);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&&Ho(u),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof a?a:"both",initialPromotionConfig:d,layoutScroll:c}))}(p,e,f.visualElement,r||Ro.projectionNodeConstructor),d=function(e,t,n){var r=[],o=(0,s.useContext)(ko);if(!t)return null;"production"!==Gr&&n&&o.strict;for(var i=0;i<Mo;i++){var a=Vo[i],l=Ro[a],u=l.isEnabled,c=l.Component;u(e)&&c&&r.push(s.createElement(c,qr({key:a},e,{visualElement:t})))}return r}(e,f.visualElement,t)),s.createElement(Go,{visualElement:f.visualElement,props:qr(qr({},c),e)},d,s.createElement(Do.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):Ho(n)&&(n.current=r))}),[t])}(m,f.visualElement,l),m,c.isStatic,f.visualElement)))}))}function Ko(e){function t(t,n){return void 0===n&&(n={}),Jo(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 Qo=["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 ei(e){return"string"==typeof e&&!e.includes("-")&&!!(Qo.indexOf(e)>-1||/[A-Z]/.test(e))}var ti={},ni=["","X","Y","Z"],ri=["transformPerspective","x","y","z"];function oi(e,t){return ri.indexOf(e)-ri.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return ni.forEach((function(t){return ri.push(e+t)}))}));var ii=new Set(ri);function ai(e){return ii.has(e)}var si=new Set(["originX","originY","originZ"]);function li(e){return si.has(e)}function ui(e,t){var n=t.layout,r=t.layoutId;return ai(e)||li(e)||(n||void 0!==r)&&(!!ti[e]||"opacity"===e)}var ci=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},di={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function fi(e){return e.startsWith("--")}var pi=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const mi=(e,t)=>n=>Math.max(Math.min(n,t),e),hi=e=>e%1?Number(e.toFixed(5)):e,vi=/(-)?([\d]*\.?[\d])+/g,gi=/(#[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,yi=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function bi(e){return"string"==typeof e}const wi=e=>({test:t=>bi(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Ei=wi("deg"),xi=wi("%"),Ci=wi("px"),Si=wi("vh"),Ti=wi("vw"),Li=Object.assign(Object.assign({},xi),{parse:e=>xi.parse(e)/100,transform:e=>xi.transform(100*e)}),Ai={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Pi=Object.assign(Object.assign({},Ai),{transform:mi(0,1)}),Oi=Object.assign(Object.assign({},Ai),{default:1});var Ri=qr(qr({},Ai),{transform:Math.round}),ki={borderWidth:Ci,borderTopWidth:Ci,borderRightWidth:Ci,borderBottomWidth:Ci,borderLeftWidth:Ci,borderRadius:Ci,radius:Ci,borderTopLeftRadius:Ci,borderTopRightRadius:Ci,borderBottomRightRadius:Ci,borderBottomLeftRadius:Ci,width:Ci,maxWidth:Ci,height:Ci,maxHeight:Ci,size:Ci,top:Ci,right:Ci,bottom:Ci,left:Ci,padding:Ci,paddingTop:Ci,paddingRight:Ci,paddingBottom:Ci,paddingLeft:Ci,margin:Ci,marginTop:Ci,marginRight:Ci,marginBottom:Ci,marginLeft:Ci,rotate:Ei,rotateX:Ei,rotateY:Ei,rotateZ:Ei,scale:Oi,scaleX:Oi,scaleY:Oi,scaleZ:Oi,skew:Ei,skewX:Ei,skewY:Ei,distance:Ci,translateX:Ci,translateY:Ci,translateZ:Ci,x:Ci,y:Ci,z:Ci,perspective:Ci,transformPerspective:Ci,opacity:Pi,originX:Li,originY:Li,originZ:Ci,zIndex:Ri,fillOpacity:Pi,strokeOpacity:Pi,numOctaves:Ri};function Vi(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(fi(p))a[p]=m;else{var h=ki[p],v=pi(m,h);if(ai(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 li(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(oi);for(var d=!1,f=i.length,p=0;p<f;p++){var m=i[p];c+="".concat(di[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 Mi(e,t,n){for(var r in t)ci(t[r])||ui(r,n)||(e[r]=t[r])}function Ni(e,t,n){var r={},o=function(e,t,n){var r={};return Mi(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:{}};Vi(e,t,{enableHardwareAcceleration:!n},r);var o=e.style;return qr(qr({},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 Di=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 ji(e){return Di.has(e)}var Fi,_i=function(e){return!ji(e)};try{(Fi=require("@emotion/is-prop-valid").default)&&(_i=function(e){return e.startsWith("on")?!ji(e):Fi(e)})}catch(Cr){}function Hi(e,t,n){return"string"==typeof e?e:Ci.transform(t+n*e)}var Bi={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ii={offset:"strokeDashoffset",array:"strokeDasharray"};function Ui(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;Vi(e,$r(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=Hi(t,e.x,e.width),o=Hi(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?Bi:Ii;e[i.offset]=Ci.transform(-r);var a=Ci.transform(t),s=Ci.transform(n);e[i.array]="".concat(a," ").concat(s)}(p,l,c,f,!1)}var zi=function(){return qr(qr({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Zi(e,t){var n=(0,s.useMemo)((function(){var n=zi();return Ui(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),qr(qr({},n.attrs),{style:qr({},n.style)})}),[t]);if(e.style){var r={};Mi(r,e.style,e),n.style=qr(qr({},r),n.style)}return n}function Wi(e){return void 0===e&&(e=!1),function(t,n,r,o,i,a){var l=i.latestValues,u=(ei(t)?Zi:Ni)(n,l,a),c=function(e,t,n){var r={};for(var o in e)(_i(o)||!0===n&&ji(o)||!t&&!ji(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),d=qr(qr(qr({},c),u),{ref:o});return r&&(d["data-projection-id"]=r),(0,s.createElement)(t,d)}}var qi=/([a-z])([A-Z])/g,$i=function(e){return e.replace(qi,"$1-$2").toLowerCase()};function Yi(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 Xi=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Gi(e,t,n,r){for(var o in Yi(e,t,void 0,r),t.attrs)e.setAttribute(Xi.has(o)?o:$i(o),t.attrs[o])}function Ji(e){var t=e.style,n={};for(var r in t)(ci(t[r])||ui(r,e))&&(n[r]=t[r]);return n}function Ki(e){var t=Ji(e);for(var n in e)ci(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Qi(e){return"object"==typeof e&&"function"==typeof e.start}var ea=function(e){return Array.isArray(e)},ta=function(e){return ea(e)?e[e.length-1]||0:e};function na(e){var t=ci(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}function ra(e,t,n,r){var o=e.scrapeMotionValuesFromProps,i=e.createRenderState,a=e.onMount,s={latestValues:ia(t,n,r,o),renderState:i()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var oa=function(e){return function(t,n){var r=(0,s.useContext)(Do),o=(0,s.useContext)(yo);return n?ra(e,t,r,o):bo((function(){return ra(e,t,r,o)}))}};function ia(e,t,n,r){var o={},i=!1===(null==n?void 0:n.initial),a=r(e);for(var s in a)o[s]=na(a[s]);var l=e.initial,u=e.animate,c=Zo(e),d=Wo(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&&!Qi(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=Uo(e,t);if(n){var r=n.transitionEnd;n.transition;var i=$r(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 aa,sa={useVisualState:oa({scrapeMotionValuesFromProps:Ki,createRenderState:zi,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}}Ui(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),Gi(t,r)}})},la={useVisualState:oa({scrapeMotionValuesFromProps:Ji,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function ua(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function ca(e,t,n,r){(0,s.useEffect)((function(){var o=e.current;if(n&&o)return ua(o,t,n,r)}),[e,t,n,r])}function da(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function fa(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"}(aa||(aa={}));var pa={pageX:0,pageY:0};function ma(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||pa;return{x:n[t+"X"],y:n[t+"Y"]}}function ha(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function va(e,t){return void 0===t&&(t="page"),{point:fa(e)?ma(e,t):ha(e,t)}}var ga=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,va(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},ya={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},ba={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function wa(e){return ho&&null===window.onpointerdown?e:ho&&null===window.ontouchstart?ba[e]:ho&&null===window.onmousedown?ya[e]:e}function Ea(e,t,n,r){return ua(e,wa(t),ga(n,"pointerdown"===t),r)}function xa(e,t,n,r){return ca(e,wa(t),n&&ga(n,"pointerdown"===t),r)}function Ca(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Sa=Ca("dragHorizontal"),Ta=Ca("dragVertical");function La(e){var t=!1;if("y"===e)t=Ta();else if("x"===e)t=Sa();else{var n=Sa(),r=Ta();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function Aa(){var e=La(!0);return!e||(e(),!1)}function Pa(e,t,n){return function(r,o){var i;da(r)&&!Aa()&&(null===(i=e.animationState)||void 0===i||i.setActive(aa.Hover,t),null==n||n(r,o))}}var Oa=function(e,t){return!!t&&(e===t||Oa(e,t.parentElement))};const Ra=(e,t)=>n=>t(e(n)),ka=(...e)=>e.reduce(Ra);var Va=new Set,Ma=new WeakMap,Na=new WeakMap,Da=function(e){var t;null===(t=Ma.get(e.target))||void 0===t||t(e)},ja=function(e){e.forEach(Da)};var Fa={some:0,all:1};function _a(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:Fa[l]};return function(e,t,n){var r=function(e){var t=e.root,n=$r(e,["root"]),r=t||document;Na.has(r)||Na.set(r,{});var o=Na.get(r),i=JSON.stringify(n);return o[i]||(o[i]=new IntersectionObserver(ja,qr({root:t},n))),o[i]}(t);return Ma.set(e,n),r.observe(e),function(){Ma.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(aa.InView,o);var i=n.getProps(),a=o?i.onViewportEnter:i.onViewportLeave;null==a||a(e)}}))}}),[e,o,i,l])}function Ha(e,t,n,r){var o=r.fallback,i=void 0===o||o;(0,s.useEffect)((function(){var r;e&&i&&("production"!==Gr&&(r="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",Va.has(r)||(console.warn(r),Va.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(aa.InView,!0)})))}),[e])}var Ba=function(e){return function(t){return e(t),null}},Ia={inView:Ba((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?Ha:_a)(u,l.current,t,a)})),tap:Ba((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(aa.Tap,!1),!Aa()}function p(e,n){f()&&(Oa(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=ka(Ea(window,"pointerup",p,c),Ea(window,"pointercancel",m,c)),null===(r=i.animationState)||void 0===r||r.setActive(aa.Tap,!0),null==n||n(e,t))}xa(i,"pointerdown",a?h:void 0,c),Lo(d)})),focus:Ba((function(e){var t=e.whileFocus,n=e.visualElement;ca(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(aa.Focus,!0)}:void 0),ca(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(aa.Focus,!1)}:void 0)})),hover:Ba((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;xa(o,"pointerenter",t||r?Pa(o,!0,t):void 0,{passive:!t}),xa(o,"pointerleave",n||r?Pa(o,!1,n):void 0,{passive:!n})}))};function Ua(){var e=(0,s.useContext)(yo);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=xo();return(0,s.useEffect)((function(){return r(o)}),[]),!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function za(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 Za=(e,t,n)=>Math.min(Math.max(n,e),t);function Wa(e,t){return e*Math.sqrt(1-t*t)}const qa=["duration","bounce"],$a=["stiffness","damping","mass"];function Ya(e,t){return t.some((t=>void 0!==e[t]))}function Xa(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,i=$r(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(!Ya(e,$a)&&Ya(e,qa)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,a=1-t;a=Za(.05,1,a),e=Za(.01,10,e/1e3),a<1?(o=t=>{const r=t*a,o=r*e;return.001-(r-n)/Wa(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=Wa(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=Ga,m=Ga;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=Wa(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()}}}Xa.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const Ga=e=>0,Ja=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Ka=(e,t,n)=>-n*e+n*t+e,Qa=(e,t)=>n=>Boolean(bi(n)&&yi.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),es=(e,t,n)=>r=>{if(!bi(r))return r;const[o,i,a,s]=r.match(vi);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},ts=mi(0,255),ns=Object.assign(Object.assign({},Ai),{transform:e=>Math.round(ts(e))}),rs={test:Qa("rgb","red"),parse:es("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ns.transform(e)+", "+ns.transform(t)+", "+ns.transform(n)+", "+hi(Pi.transform(r))+")"},os={test:Qa("#"),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:rs.transform},is={test:Qa("hsl","hue"),parse:es("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+xi.transform(hi(t))+", "+xi.transform(hi(n))+", "+hi(Pi.transform(r))+")"};function as(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 ss({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=as(s,r,e+1/3),i=as(s,r,e),a=as(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 ls=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},us=[os,rs,is],cs=e=>us.find((t=>t.test(e))),ds=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,fs=(e,t)=>{let n=cs(e),r=cs(t);ds(e),ds(t);let o=n.parse(e),i=r.parse(t);n===is&&(o=ss(o),n=rs),r===is&&(i=ss(i),r=rs);const a=Object.assign({},o);return e=>{for(const t in a)"alpha"!==t&&(a[t]=ls(o[t],i[t],e));return a.alpha=Ka(o.alpha,i.alpha,e),n.transform(a)}},ps={test:e=>rs.test(e)||os.test(e)||is.test(e),parse:e=>rs.test(e)?rs.parse(e):is.test(e)?is.parse(e):os.parse(e),transform:e=>bi(e)?e:e.hasOwnProperty("red")?rs.transform(e):is.transform(e)},ms="${c}",hs="${n}";function vs(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(gi);r&&(n=r.length,e=e.replace(gi,ms),t.push(...r.map(ps.parse)));const o=e.match(vi);return o&&(e=e.replace(vi,hs),t.push(...o.map(Ai.parse))),{values:t,numColors:n,tokenised:e}}function gs(e){return vs(e).values}function ys(e){const{values:t,numColors:n,tokenised:r}=vs(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?ms:hs,r<n?ps.transform(e[r]):hi(e[r]));return t}}const bs=e=>"number"==typeof e?0:e,ws={test:function(e){var t,n,r,o;return isNaN(e)&&bi(e)&&(null!==(n=null===(t=e.match(vi))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(gi))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:gs,createTransformer:ys,getAnimatableNone:function(e){const t=gs(e);return ys(e)(t.map(bs))}},Es=e=>"number"==typeof e;function xs(e,t){return Es(e)?n=>Ka(e,t,n):ps.test(e)?fs(e,t):Ls(e,t)}const Cs=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>xs(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},Ss=(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]=xs(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function Ts(e){const t=ws.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 Ls=(e,t)=>{const n=ws.createTransformer(t),r=Ts(e),o=Ts(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?ka(Cs(r.parsed,o.parsed),n):n=>`${n>0?t:e}`},As=(e,t)=>n=>Ka(e,t,n);function Ps(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?As:"string"==typeof e?ps.test(e)?fs:Ls:Array.isArray(e)?Cs:"object"==typeof e?Ss: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=ka(e,i)}r.push(i)}return r}(t,r,o),s=2===i?function([e,t],[n]){return r=>n(Ja(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=Ja(e[i],e[i+1],o);return t[i](s)}}(e,a);return n?t=>s(Za(e[0],e[i-1],t)):s}const Os=e=>t=>1-e(1-t),Rs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ks=e=>t=>t*t*((e+1)*t-e),Vs=e=>e,Ms=(2,e=>Math.pow(e,2));const Ns=Os(Ms),Ds=Rs(Ms),js=e=>1-Math.sin(Math.acos(e)),Fs=Os(js),_s=Rs(Fs),Hs=ks(1.525),Bs=Os(Hs),Is=Rs(Hs),Us=(e=>{const t=ks(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),zs=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},Zs=Os(zs);function Ws(e,t){return e.map((()=>t||Ds)).splice(0,e.length-1)}function qs({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 Ps(s,a,{ease:Array.isArray(n)?n:Ws(a,n)})}let u=l();return{next:e=>(i.value=u(e),i.done=e>=o,i),flipTarget:()=>{a.reverse(),u=l()}}}const $s={keyframes:qs,spring:Xa,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:()=>{}}}};function Ys(e,t,n=0){return e-t-n}const Xs=e=>{const t=({delta:t})=>e(t);return{start:()=>mo.update(t,!0),stop:()=>so.update(t)}};function Gs(e){var t,n,{from:r,autoplay:o=!0,driver:i=Xs,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,h=$r(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 qs;if($s[e.type])return $s[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?qs:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Xa:qs}(h);(null===(n=(t=S).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(y=Ps([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?Ys(t+-e,t,n):t-(e-t)+n}(a,E,u,C)):(a=Ys(a,E,u),"mirror"===l&&T.flipTarget()),x=!1,p&&p()):(v.stop(),f&&f()))})),v.start()),{stop:()=>{null==d||d(),v.stop()}}}function Js(e,t){return t?e*(1e3/t):0}var Ks=function(e){return 1e3*e};const Qs=(e,t)=>1-3*t+3*e,el=(e,t)=>3*t-6*e,tl=e=>3*e,nl=(e,t,n)=>((Qs(t,n)*e+el(t,n))*e+tl(t))*e,rl=(e,t,n)=>3*Qs(t,n)*e*e+2*el(t,n)*e+tl(t),ol=.1;function il(e,t,n,r){if(e===t&&n===r)return Vs;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=nl(t*ol,e,n);return i=>0===i||1===i?i:nl(function(t){let r=0,i=1;for(;10!==i&&o[i]<=t;++i)r+=ol;--i;const a=r+(t-o[i])/(o[i+1]-o[i])*ol,s=rl(a,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=rl(t,n,r);if(0===o)return t;t-=(nl(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=nl(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<10);return a}(t,r,r+ol,e,n)}(i),t,r)}var al={linear:Vs,easeIn:Ms,easeInOut:Ds,easeOut:Ns,circIn:js,circInOut:_s,circOut:Fs,backIn:Hs,backInOut:Is,backOut:Bs,anticipate:Us,bounceIn:Zs,bounceInOut:e=>e<.5?.5*(1-zs(1-2*e)):.5*zs(2*e-1)+.5,bounceOut:zs},sl=function(e){if(Array.isArray(e)){e.length;var t=Yr(e,4);return il(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),al[e]):e},ll=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!ws.test(t)||t.startsWith("url(")))},ul=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},cl=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},dl=function(){return{type:"keyframes",ease:"linear",duration:.3}},fl=function(e){return{type:"keyframes",duration:.8,values:e}},pl={x:ul,y:ul,z:ul,rotate:ul,rotateX:ul,rotateY:ul,rotateZ:ul,scaleX:cl,scaleY:cl,scale:cl,opacity:dl,backgroundColor:dl,color:dl,default:cl};const ml=new Set(["brightness","contrast","saturate","opacity"]);function hl(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(vi)||[];if(!r)return e;const o=n.replace(r,"");let i=ml.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const vl=/([a-z-]*)\(.*?\)/g,gl=Object.assign(Object.assign({},ws),{getAnimatableNone:e=>{const t=e.match(vl);return t?t.map(hl).join(" "):e}});var yl=qr(qr({},ki),{color:ps,backgroundColor:ps,outlineColor:ps,fill:ps,stroke:ps,borderColor:ps,borderTopColor:ps,borderRightColor:ps,borderBottomColor:ps,borderLeftColor:ps,filter:gl,WebkitFilter:gl}),bl=function(e){return yl[e]};function wl(e,t){var n,r=bl(e);return r!==gl&&(r=ws),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function El(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=Xr([],Yr(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=$r(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=qr(qr({},e),(o=n,i=t.to,a=ea(i)?fl:pl[o]||pl.default,qr({to:i},a(i))))),qr(qr({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,i=e.loop,a=$r(e,["ease","times","yoyo","flip","loop"]),s=qr({},a);return n&&(s.offset=n),a.duration&&(s.duration=Ks(a.duration)),a.repeatDelay&&(s.repeatDelay=Ks(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(sl):sl(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 xl(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Cl(e){return"number"==typeof e?0:wl("",e)}function Sl(e,t){return e[t]||e.default||e}function Tl(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=Sl(r,e),s=null!==(i=a.from)&&void 0!==i?i:t.get(),l=ll(e,n);"none"===s&&l&&"string"==typeof n?s=wl(e,n):xl(s)&&"string"==typeof n?s=Cl(n):!Array.isArray(n)&&xl(n)&&"string"==typeof s&&(n=Cl(s));var u=ll(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=Gs(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=Js(e-c,po().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()}}(qr(qr({},r),a)):Gs(qr(qr({},El(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=ta(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=(Sl(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,Ks(l)):u(),function(){clearTimeout(i),null==a||a.stop()}}))}var Ll=function(e){return/^\-?\d*\.?\d+$/.test(e)},Al=function(e){return/^0[^.\s]+$/.test(e)};function Pl(e,t){-1===e.indexOf(t)&&e.push(t)}function Ol(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Rl=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return Pl(this.subscriptions,e),function(){return Ol(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}(),kl=function(){function e(e){var t,n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Rl,this.velocityUpdateSubscribers=new Rl,this.renderSubscribers=new Rl,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=po(),o=r.delta,i=r.timestamp;n.lastUpdated!==i&&(n.timeDelta=o,n.lastUpdated=i,mo.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 mo.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?Js(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 Vl(e){return new kl(e)}var Ml=function(e){return function(t){return t.test(e)}},Nl=[Ai,Ci,xi,Ei,Ti,Si,{test:function(e){return"auto"===e},parse:function(e){return e}}],Dl=function(e){return Nl.find(Ml(e))},jl=Xr(Xr([],Yr(Nl),!1),[ps,ws],!1),Fl=function(e){return jl.find(Ml(e))};function _l(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Vl(n))}function Hl(e,t){if(t)return(t[e]||t.default||t).from}function Bl(e,t,n){var r;void 0===n&&(n={});var o=zo(e,t,n.custom),i=(o||{}).transition,a=void 0===i?e.getDefaultTransition()||{}:i;n.transitionOverride&&(a=n.transitionOverride);var s=o?function(){return Il(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(Ul).forEach((function(e,r){a.push(Bl(e,t,qr(qr({},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=Yr("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 Il(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=$r(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&&zl(h,v))){var b=qr({delay:a},d);e.shouldReduceMotion&&ai(v)&&(b=qr(qr({},b),{type:!1,delay:0}));var w=Tl(v,g,y,b);m.push(w)}}return Promise.all(m).then((function(){f&&function(e,t){var n=zo(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,i=void 0===o?{}:o;r.transition;var a=$r(r,["transitionEnd","transition"]);for(var s in a=qr(qr({},a),i))_l(e,s,ta(a[s]))}(e,f)}))}function Ul(e,t){return e.sortNodePosition(t)}function zl(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var Zl=[aa.Animate,aa.InView,aa.Focus,aa.Hover,aa.Tap,aa.Drag,aa.Exit],Wl=Xr([],Yr(Zl),!1).reverse(),ql=Zl.length;function $l(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 Bl(e,t,n)}));r=Promise.all(o)}else if("string"==typeof t)r=Bl(e,t,n);else{var i="function"==typeof t?zo(e,t,n.custom):t;r=Il(e,i,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),n=function(){var e;return(e={})[aa.Animate]=Yl(!0),e[aa.InView]=Yl(),e[aa.Hover]=Yl(),e[aa.Tap]=Yl(),e[aa.Drag]=Yl(),e[aa.Focus]=Yl(),e[aa.Exit]=Yl(),e}(),r={},o=!0,i=function(t,n){var r=zo(e,n);if(r){r.transition;var o=r.transitionEnd,i=$r(r,["transition","transitionEnd"]);t=qr(qr(qr({},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=Wl[t],h=n[r],v=null!==(l=u[r])&&void 0!==l?l:c[r],g=Io(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=qr({},p),!h.isActive&&null===y||!v&&!h.prevProp||Qi(v)||"boolean"==typeof v)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!Bo(t)&&!za(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=qr(qr({},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?ea(O)&&ea(R)?!za(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=qr(qr({},p),C)),o&&e.blockInitialAnimation&&(E=!1),E&&!b&&d.push.apply(d,Xr([],Yr(x.map((function(e){return{animation:e,options:qr({type:r},a)}}))),!1))},v=0;v<ql;v++)h(v);if(r=qr({},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 Yl(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var Xl={animation:Ba((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=$l(t)),Qi(n)&&(0,s.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:Ba((function(e){var t=e.custom,n=e.visualElement,r=Yr(Ua(),2),o=r[0],i=r[1],a=(0,s.useContext)(yo);(0,s.useEffect)((function(){var e,r;n.isPresent=o;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(aa.Exit,!o,{custom:null!==(r=null==a?void 0:a.custom)&&void 0!==r?r:t});!o&&(null==s||s.then(i))}),[o])}))};const Gl=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Jl=e=>Gl(e)&&e.hasOwnProperty("z"),Kl=(e,t)=>Math.abs(e-t);function Ql(e,t){if(Es(e)&&Es(t))return Kl(e,t);if(Gl(e)&&Gl(t)){const n=Kl(e.x,t.x),r=Kl(e.y,t.y),o=Jl(e)&&Jl(t)?Kl(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var eu=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=ru(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=Ql(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,i=po().timestamp;r.history.push(qr(qr({},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=tu(t,r.transformPagePoint),da(e)&&0===e.buttons?r.handlePointerUp(e,t):mo.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,i=n.onSessionEnd,a=ru(tu(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,a),i&&i(e,a)},!(fa(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var i=tu(va(e),this.transformPagePoint),a=i.point,s=po().timestamp;this.history=[qr(qr({},a),{timestamp:s})];var l=t.onSessionStart;l&&l(e,ru(i,this.history)),this.removeListeners=ka(Ea(window,"pointermove",this.handlePointerMove),Ea(window,"pointerup",this.handlePointerUp),Ea(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),so.update(this.updatePoint)},e}();function tu(e,t){return t?{point:t(e.point)}:e}function nu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ru(e,t){var n=e.point;return{point:n,delta:nu(n,iu(t)),offset:nu(n,ou(t)),velocity:au(t,.1)}}function ou(e){return e[0]}function iu(e){return e[e.length-1]}function au(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=iu(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Ks(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 su(e){return e.max-e.min}function lu(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),Ql(e,t)<n}function uu(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Ka(t.min,t.max,e.origin),e.scale=su(n)/su(t),(lu(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Ka(n.min,n.max,e.origin)-e.originPoint,(lu(e.translate)||isNaN(e.translate))&&(e.translate=0)}function cu(e,t,n,r){uu(e.x,t.x,n.x,null==r?void 0:r.originX),uu(e.y,t.y,n.y,null==r?void 0:r.originY)}function du(e,t,n){e.min=n.min+t.min,e.max=e.min+su(t)}function fu(e,t,n){e.min=t.min-n.min,e.max=e.min+su(t)}function pu(e,t,n){fu(e.x,t.x,n.x),fu(e.y,t.y,n.y)}function mu(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 hu(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=Yr([o,r],2))[0],o=n[1]),{min:r,max:o}}var vu=.35;function gu(e,t,n){return{min:yu(e,t),max:yu(e,n)}}function yu(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function bu(e){return[e("x"),e("y")]}function wu(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Eu(e){return void 0===e||1===e}function xu(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Eu(t)||!Eu(n)||!Eu(r)}function Cu(e){return xu(e)||Su(e.x)||Su(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Su(e){return e&&"0%"!==e}function Tu(e,t,n){return n+t*(e-n)}function Lu(e,t,n,r,o){return void 0!==o&&(e=Tu(e,o,r)),Tu(e,n,r)+t}function Au(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Lu(e.min,t,n,r,o),e.max=Lu(e.max,t,n,r,o)}function Pu(e,t){var n=t.x,r=t.y;Au(e.x,n.translate,n.scale,n.originPoint),Au(e.y,r.translate,r.scale,r.originPoint)}function Ou(e,t){e.min=e.min+t,e.max=e.max+t}function Ru(e,t,n){var r=Yr(n,3),o=r[0],i=r[1],a=r[2],s=void 0!==t[a]?t[a]:.5,l=Ka(e.min,e.max,s);Au(e,t[o],t[i],l,t.scale)}var ku=["x","scaleX","originX"],Vu=["y","scaleY","originY"];function Mu(e,t){Ru(e.x,t,ku),Ru(e.y,t,Vu)}function Nu(e,t){return wu(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 Du=new WeakMap,ju=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 eu(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(va(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=La(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),bu((function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(xi.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=su(i)*(parseFloat(o)/100))}n.originPoint[e]=o})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(aa.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(aa.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Fu(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?Ka(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?Ka(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&&Ho(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:mu(e.x,r,i),y:mu(e.y,n,o)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=vu),!1===e?e=0:!0===e&&(e=vu),{x:gu(e,"left","right"),y:gu(e,"top","bottom")}}(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&bu((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||!Ho(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=Nu(e,n),o=t.scroll;return o&&(Ou(r.x,o.x),Ou(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:hu(e.x,t.x),y:hu(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=wu(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=bu((function(n){var l;if(Fu(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=qr(qr({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 Tl(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;bu((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;bu((function(n){if(Fu(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]-Ka(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(Ho(o)&&i&&this.constraints){this.stopAnimation();var a={x:0,y:0};bu((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=su(n),(s=su(r))>i?o=Ja(r.min,r.max-i,n.min):i>s&&(o=Ja(n.min,n.max-s,r.min)),Za(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(),bu((function(e){if(Fu(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e],i=o.min,s=o.max;n.set(Ka(i,s,a[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;Du.set(this.visualElement,this);var n=Ea(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(){Ho(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=ua(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(bu((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?vu:u,d=e.dragMomentum,f=void 0===d||d;return qr(qr({},e),{drag:n,dragDirectionLock:o,dragPropagation:a,dragConstraints:l,dragElastic:c,dragMomentum:f})},e}();function Fu(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var _u={pan:Ba((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)(No).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)})),xa(i,"pointerdown",a&&function(e){l.current=new eu(e,c,{transformPagePoint:u})}),Lo((function(){return l.current&&l.current.end()}))})),drag:Ba((function(e){var t=e.dragControls,n=e.visualElement,r=bo((function(){return new ju(n)}));(0,s.useEffect)((function(){return t&&t.subscribe(r)}),[r,t]),(0,s.useEffect)((function(){return r.addListeners()}),[r])}))},Hu=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],Bu=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=Hu.map((function(){return new Rl})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){Hu.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"+Hu[t]]=function(t){return e.add(t)},n["notify"+Hu[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Xr([],Yr(t),!1))}})),n}(),S=new Map,T=new Map,L={},A=qr({},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 k(e,t){var n=t.onChange((function(t){E[e]=t,p.onUpdate&&mo.update(R,!1,!0)})),r=t.onRenderRequest(F.scheduleRender);T.set(e,(function(){n(),r()}))}var V=d(p);for(var M in V){var N=V[M];void 0!==E[M]&&ci(N)&&N.set(E[M],!1)}var D=Zo(p),j=Wo(p),F=qr(qr({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 k(t,e)})),null==f||f.children.add(F),F.setProps(p)},unmount:function(){var e;null===(e=F.projection)||void 0===e||e.unmount(),so.update(R),so.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(),k(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=Vl(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&&!ci(t))return t}return A[e]}},C),{build:function(){return O(),x},scheduleRender:function(){mo.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(ci(i))e.addValue(o,i);else if(ci(a))e.addValue(o,Vl(i));else if(a!==i)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(i)}else e.addValue(o,Vl(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<Uu;r++){var o=Iu[r],i=p[o];(Io(i)||!1===i)&&(n[o]=i)}return n}});return F}},Iu=Xr(["initial"],Yr(Zl),!1),Uu=Iu.length;function zu(e){return"string"==typeof e&&e.startsWith("var(--")}var Zu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Wu(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=Yr(function(e){var t=Zu.exec(e);if(!t)return[,];var n=Yr(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():zu(i)?Wu(i,t,n+1):i}}var qu,$u=new Set(["width","height","top","left","right","bottom","x","y"]),Yu=function(e){return $u.has(e)},Xu=function(e,t){e.set(t,!1),e.set(t)},Gu=function(e){return e===Ai||e===Ci};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(qu||(qu={}));var Ju=function(e,t){return parseFloat(e.split(", ")[t])},Ku=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 Ju(i[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?Ju(a[1],e):0}},Qu=new Set(["x","y","z"]),ec=ri.filter((function(e){return!Qu.has(e)})),tc={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:Ku(4,13),y:Ku(5,14)};function nc(e,t,n,r){return function(e){return Object.keys(e).some(Yu)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=qr({},t),r=qr({},r);var o=Object.keys(t).filter(Yu),i=[],a=!1,s=[];if(o.forEach((function(o){var l=e.getValue(o);if(e.hasValue(o)){var u,c=n[o],d=Dl(c),f=t[o];if(ea(f)){var p=f.length,m=null===f[0]?1:0;c=f[m],d=Dl(c);for(var h=m;h<p;h++)u?Dl(f[h]):(u=Dl(f[h]))===d||Gu(d)&&Gu(u)}else u=Dl(f);if(d!==u)if(Gu(d)&&Gu(u)){var v=l.get();"string"==typeof v&&l.set(parseFloat(v)),"string"==typeof f?t[o]=parseFloat(f):Array.isArray(f)&&u===Ci&&(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 ec.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],Xu(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]=tc[e](r,i)})),t.syncRender();var l=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);Xu(r,s[n]),e[n]=tc[n](l,i)})),e}(t,e,s);return i.length&&i.forEach((function(t){var n=Yr(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 rc={treeType:"dom",readValueFromInstance:function(e,t){if(ai(t)){var n=bl(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(fi(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 Nu(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=$r(t,["transition","transitionEnd"]),l=function(e,t,n){var r,o,i={};for(var a in e)i[a]=null!==(r=Hl(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&&(Ll(f)||Al(f))?f=parseFloat(f):!Fl(f)&&ws.test(d)&&(f=wl(c,d)),e.addValue(c,Vl(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=$r(t,[]),i=e.getInstance();if(!(i instanceof Element))return{target:o,transitionEnd:n};for(var a in n&&(n=qr({},n)),e.forEachValue((function(e){var t=e.get();if(zu(t)){var n=Wu(t,i);n&&e.set(n)}})),o){var s=o[a];if(zu(s)){var l=Wu(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 nc(e,t=o.target,n,r=o.transitionEnd)}(e,s,l,a);a=u.transitionEnd,s=u.target}return qr({transition:i,transitionEnd:a},s)},scrapeMotionValuesFromProps:Ji,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Vi(t,n,r,o.transformTemplate)},render:Yi},oc=Bu(rc),ic=Bu(qr(qr({},rc),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return ai(t)?(null===(n=bl(t))||void 0===n?void 0:n.default)||0:(t=Xi.has(t)?t:$i(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Ki,build:function(e,t,n,r,o){Ui(t,n,r,o.transformTemplate)},render:Gi})),ac=function(e,t){return ei(e)?ic(t,{enableHardwareAcceleration:!1}):oc(t,{enableHardwareAcceleration:!0})};function sc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var lc={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!Ci.test(e))return e;e=parseFloat(e)}var n=sc(e,t.target.x),r=sc(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},uc="_$css",cc={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,i=e.includes("var("),a=[];i&&(e=e.replace(Zu,(function(e){return a.push(e),uc})));var s=ws.parse(e);if(s.length>5)return o;var l=ws.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=Ka(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(uc,(function(){var e=a[m];return m++,e}))}return p}},dc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wr(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=fc,Object.assign(ti,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(qr(qr({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),$o.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()||mo.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),fc={borderRadius:qr(qr({},lc),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:lc,borderTopRightRadius:lc,borderBottomLeftRadius:lc,borderBottomRightRadius:lc,boxShadow:cc},pc={measureLayout:function(e){var t=Yr(Ua(),2),n=t[0],r=t[1],o=(0,s.useContext)(To);return s.createElement(dc,qr({},e,{layoutGroup:o,switchLayoutGroup:(0,s.useContext)(Xo),isPresent:n,safeToRemove:r}))}},mc=["TopLeft","TopRight","BottomLeft","BottomRight"],hc=mc.length,vc=function(e){return"string"==typeof e?parseFloat(e):e},gc=function(e){return"number"==typeof e||Ci.test(e)};function yc(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var bc=Ec(0,.5,Fs),wc=Ec(.5,.95,Vs);function Ec(e,t,n){return function(r){return r<e?0:r>t?1:n(Ja(e,t,r))}}function xc(e,t){e.min=t.min,e.max=t.max}function Cc(e,t){xc(e.x,t.x),xc(e.y,t.y)}function Sc(e,t,n,r,o){return e=Tu(e-=t,1/n,r),void 0!==o&&(e=Tu(e,1/o,r)),e}function Tc(e,t,n,r,o){var i=Yr(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),xi.test(t)&&(t=parseFloat(t),t=Ka(a.min,a.max,t/100)-a.min),"number"==typeof t){var s=Ka(i.min,i.max,r);e===i&&(s-=t),e.min=Sc(e.min,t,n,s,o),e.max=Sc(e.max,t,n,s,o)}}(e,t[a],t[s],t[l],t.scale,r,o)}var Lc=["x","scaleX","originX"],Ac=["y","scaleY","originY"];function Pc(e,t,n,r){Tc(e.x,t,Lc,null==n?void 0:n.x,null==r?void 0:r.x),Tc(e.y,t,Ac,null==n?void 0:n.y,null==r?void 0:r.y)}function Oc(e){return 0===e.translate&&1===e.scale}function Rc(e){return Oc(e.x)&&Oc(e.y)}function kc(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 Vc=function(){function e(){this.members=[]}return e.prototype.add=function(e){Pl(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Ol(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 Mc(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 Nc=function(e,t){return e.depth-t.depth},Dc=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){Pl(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Ol(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Nc),this.isDirty=!1,this.children.forEach(e)},e}();function jc(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(zc),o.nodes.forEach(Zc)},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?Xr(Xr([],Yr(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 Dc)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Rl),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,Xr([],Yr(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),$o.hasAnimatedSinceResize&&($o.hasAnimatedSinceResize=!1,o.nodes.forEach(Uc))}))}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:Gc,p=l.getProps(),m=p.onLayoutAnimationStart,h=p.onLayoutAnimationComplete,v=!o.targetLayout||!kc(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=qr(qr({},Sl(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,so.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(Wc))},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(Bc);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Jc),this.potentialNodes.clear()),this.nodes.forEach(Ic),this.nodes.forEach(Fc),this.nodes.forEach(_c),this.clearAllSnapshots(),lo.update(),lo.preRender(),lo.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Hc),this.sharedNodes.forEach(qc)},e.prototype.scheduleUpdateProjection=function(){mo.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;mo.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));Qc(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();Qc(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&&!Rc(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||Cu(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&&(Ou(t.x,n.x),Ou(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};Cc(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){Cc(t,e);var s=this.root.scroll;s&&(Ou(t.x,-s.x),Ou(t.y,-s.y))}Ou(t.x,o.x),Ou(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}};Cc(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&&Mu(n,{x:-o.scroll.x,y:-o.scroll.y}),Cu(o.latestValues)&&Mu(n,o.latestValues)}return Cu(this.latestValues)&&Mu(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};Cc(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&Cu(o.latestValues)){xu(o.latestValues)&&o.updateSnapshot();var i={x:{min:0,max:0},y:{min:0,max:0}};Cc(i,o.measure()),Pc(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,i)}}return Cu(this.latestValues)&&Pc(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=qr(qr(qr({},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}},pu(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Cc(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,du(t.x,n.x,r.x),du(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Cc(this.target,this.layout.actual),Pu(this.target,this.targetDelta)):Cc(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}},pu(this.relativeTargetOrigin,this.target,this.relativeParent.target),Cc(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!Cu(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();Cc(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&&Mu(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Pu(e,l)),r&&Cu(s.latestValues)&&Mu(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;cu(this.projectionDelta,this.layoutCorrected,i,this.latestValues),this.projectionTransform=Mc(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=qr({},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(Xc));this.animationProgress=0,this.mixTargetDelta=function(t){var n,o,f,p,m,h=t/1e3;$c(s.x,e.x,h),$c(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)&&(pu(l,r.layout.actual,r.relativeParent.layout.actual),o=r.relativeTarget,f=r.relativeTargetOrigin,p=l,m=h,Yc(o.x,f.x,p.x,m),Yc(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=Ka(0,null!==(a=n.opacity)&&void 0!==a?a:1,bc(r)),e.opacityExit=Ka(null!==(s=t.opacity)&&void 0!==s?s:1,0,wc(r))):i&&(e.opacity=Ka(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<hc;c++){var d="border".concat(mc[c],"Radius"),f=yc(t,d),p=yc(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||gc(f)===gc(p)?(e[d]=Math.max(Ka(vc(f),vc(p),r),0),(xi.test(p)||xi.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=Ka(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&&(so.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=mo.update((function(){$o.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=ci(0)?0:Vl(0);return Tl("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,qr(qr({},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&&(Cc(t,n),Mu(t,o),cu(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 Vc),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<ni.length;r++){var o="rotate"+ni[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=na(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=na(e.pointerEvents)||""),this.hasProjected&&!Cu(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=Mc(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,ti)if(void 0!==d[h]){var v=ti[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?na(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(Bc),this.root.sharedNodes.clear()},e}()}function Fc(e){e.updateLayout()}function _c(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?bu((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=su(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&bu((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=su(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}};cu(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?cu(c,e.applyTransform(l,!0),i.measured):cu(c,s,i.layout);var d=!Rc(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}};pu(v,i.layout,m.layout);var g={x:{min:0,max:0},y:{min:0,max:0}};pu(g,s,h.actual),kc(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 Hc(e){e.clearSnapshot()}function Bc(e){e.clearMeasurements()}function Ic(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Uc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function zc(e){e.resolveTargetDelta()}function Zc(e){e.calcProjection()}function Wc(e){e.resetRotation()}function qc(e){e.removeLeadSnapshot()}function $c(e,t,n){e.translate=Ka(t.translate,0,n),e.scale=Ka(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Yc(e,t,n,r){e.min=Ka(t.min,n.min,r),e.max=Ka(t.max,n.max,r)}function Xc(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var Gc={duration:.45,ease:[.4,0,.1,1]};function Jc(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 Kc(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Qc(e){Kc(e.x),Kc(e.y)}var ed=jc({attachResizeListener:function(e,t){return ua(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),td={current:void 0},nd=jc({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!td.current){var e=new ed(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),td.current=e}return td.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),rd=qr(qr(qr(qr({},Xl),Ia),_u),pc),od=Ko((function(e,t){return function(e,t,n,r,o){var i=t.forwardMotionProps,a=void 0!==i&&i,s=ei(e)?sa:la;return qr(qr({},s),{preloadedFeatures:n,useRender:Wi(a),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,rd,ac,nd)}));function id(){return id=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},id.apply(this,arguments)}(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",id({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 ad=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",id({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",id({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",id({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",id({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",id({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",id({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",id({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",id({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",id({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",id({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",id({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",id({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",id({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",id({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",id({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",id({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",id({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",id({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",id({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 sd={grad:.9,turn:360,rad:360/(2*Math.PI)},ld=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},ud=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},cd=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},dd=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},fd=function(e){return{r:cd(e.r,0,255),g:cd(e.g,0,255),b:cd(e.b,0,255),a:cd(e.a)}},pd=function(e){return{r:ud(e.r),g:ud(e.g),b:ud(e.b),a:ud(e.a,3)}},md=/^#([0-9a-f]{3,8})$/i,hd=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},vd=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}},gd=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}},yd=function(e){return{h:dd(e.h),s:cd(e.s,0,100),l:cd(e.l,0,100),a:cd(e.a)}},bd=function(e){return{h:ud(e.h),s:ud(e.s),l:ud(e.l),a:ud(e.a,3)}},wd=function(e){return gd((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},Ed=function(e){return{h:(t=vd(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},xd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Cd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Sd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Td=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ld={string:[[function(e){var t=md.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?ud(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?ud(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Sd.exec(e)||Td.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:fd({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=xd.exec(e)||Cd.exec(e);if(!t)return null;var n,r,o=yd({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(sd[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return wd(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 ld(t)&&ld(n)&&ld(r)?fd({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(!ld(t)||!ld(n)||!ld(r))return null;var a=yd({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return wd(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!ld(t)||!ld(n)||!ld(r))return null;var a=function(e){return{h:dd(e.h),s:cd(e.s,0,100),v:cd(e.v,0,100),a:cd(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return gd(a)},"hsv"]]},Ad=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]},Pd=function(e,t){var n=Ed(e);return{h:n.h,s:cd(n.s+100*t,0,100),l:n.l,a:n.a}},Od=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Rd=function(e,t){var n=Ed(e);return{h:n.h,s:n.s,l:cd(n.l+100*t,0,100),a:n.a}},kd=function(){function e(e){this.parsed=function(e){return"string"==typeof e?Ad(e.trim(),Ld.string):"object"==typeof e&&null!==e?Ad(e,Ld.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 ud(Od(this.rgba),2)},e.prototype.isDark=function(){return Od(this.rgba)<.5},e.prototype.isLight=function(){return Od(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=pd(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?hd(ud(255*o)):"","#"+hd(t)+hd(n)+hd(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return pd(this.rgba)},e.prototype.toRgbString=function(){return t=(e=pd(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 bd(Ed(this.rgba))},e.prototype.toHslString=function(){return t=(e=bd(Ed(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=vd(this.rgba),{h:ud(e.h),s:ud(e.s),v:ud(e.v),a:ud(e.a,3)};var e},e.prototype.invert=function(){return Vd({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),Vd(Pd(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Vd(Pd(this.rgba,-e))},e.prototype.grayscale=function(){return Vd(Pd(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Vd(Rd(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Vd(Rd(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?Vd({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):ud(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Ed(this.rgba);return"number"==typeof e?Vd({h:e,s:t.s,l:t.l,a:t.a}):ud(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Vd(e).toHex()},e}(),Vd=function(e){return e instanceof kd?e:new kd(e)};const Md=()=>{const[t,n]=(0,e.useState)("#3959e9"),[r,o]=(0,e.useState)(Vd("#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(Vd(r).darken(.05).toHex())}),[]),{mainColor:t,darkColor:r}},Nd=localStorage.getItem("extendify-site-selection"),Dd={getItem:Nd?()=>(localStorage.removeItem("extendify-site-selection"),Nd):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:()=>{}},jd=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:()=>Dd})),Fd={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:()=>{}},_d=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:()=>Fd}));var Hd=window.wp.blob,Bd=window.wp.coreData,Id=window.wp.data,Ud=window.wp.mediaUtils,zd=window.wp.hooks;const Zd=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,Id.useSelect)((e=>e(Bd.store).getMedia(c)),[c]),{mediaWidth:p,mediaHeight:m,mediaSourceUrl:h}=(e=>{var t,n,r,o;if(!e)return{};const i=(0,zd.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,zd.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,Ud.uploadMedia)({allowedTypes:["image"],filesList:e,onFileChange(e){let[t]=e;(0,Hd.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)(Wd,null,(0,e.createElement)(Ud.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)(Wd,null,c&&(0,e.createElement)(Ud.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")))))},Wd=n=>{let{fallback:r=null,children:o}=n;const{checkingPermissions:i,hasUploadPermissions:a}=(0,Id.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)},qd=t=>{let{setModalTitle:n}=t;const{completeTask:o}=_d();return(0,e.useEffect)((()=>{n((0,r.__)("Upload site logo","extendify"))}),[n]),(0,e.createElement)(Zd,{type:"site_logo",title:(0,r.__)("Site logo","extendify"),actionLabel:(0,r.__)("Set site logo","extendify"),onUpdate:()=>{o("logo")}})},$d=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}=_d(),{mainColor:d}=Md();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"))))},Yd=t=>{let{setModalTitle:n}=t;const{completeTask:o}=_d();return(0,e.useEffect)((()=>{n((0,r.__)("Upload site icon","extendify"))}),[n]),(0,e.createElement)(Zd,{type:"site_icon",title:(0,r.__)("Site icon","extendify"),actionLabel:(0,r.__)("Set site icon","extendify"),onUpdate:()=>{o("site-icon")}})},Xd=()=>{const{seeTask:n,completedTasks:o}=_d(),{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)(_d.persist.hasHydrated);return(0,e.useEffect)((()=>{const e=_d.persist.onFinishHydration((()=>n(!0)));return()=>{e()}}),[]),t})(),d=(()=>{const[t,n]=(0,e.useState)(jd.persist.hasHydrated);return(0,e.useEffect)((()=>{const e=jd.persist.onFinishHydration((()=>n(!0)));return()=>{e()}}),[]),t})(),f=jd((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]),(0,e.useEffect)((()=>{var e;const t=(null==p?void 0:p.length)-(null==h?void 0:h.length);null===(e=document.querySelector("#toplevel_page_extendify-admin-page.wp-has-current-submenu"))||void 0===e||e.classList.add("current");const n=document.querySelectorAll(".extendify-assist-badge-count");for(const e of n)(t||t>=0)&&(e.style.opacity=0===t?"0":"1",e.textContent=`${t}`)}),[p,h]),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"},l?v.map((t=>(0,e.createElement)(Gd,{key:t.slug,task:t}))):(0,e.createElement)(Po,null,v.map((t=>(0,e.createElement)(od.div,{key:t.slug,variants:{fade:{opacity:0,x:15,transition:{duration:.5}},shrink:{height:0,transition:{delay:.5,duration:.2}}},exit:["fade","shrink"]},(0,e.createElement)(Gd,{key:t.slug,task:t})))))),l&&(0,e.createElement)("div",{className:"completed-tasks w-full"},h.map((t=>(0,e.createElement)(Gd,{key:t.slug,task:t})))))},Gd=n=>{let{task:o}=n;const{isCompleted:i,toggleCompleted:a}=_d();return(0,e.createElement)("div",{className:"pt-4"},(0,e.createElement)("div",{className:"p-3 flex gap-3 justify-between border border-solid border-gray-400 bg-white 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)(ad,{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)(Jd,{task:o})))},Jd=t=>{let{task:n}=t;const{pushModal:o}=Hn(),{mainColor:i}=Md(),{isCompleted:a,completeTask:s}=_d();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(qd)},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(Yd)},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($d)},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`,"_blank")}},(0,r.__)("Add new","extendify")):"edit-homepage"===(null==n?void 0:n.slug)?(0,e.createElement)(Kd,null):null},Kd=()=>{const[t,n]=(0,e.useState)(0),{mainColor:o}=Md();(0,e.useEffect)((()=>{Hr("page_on_front").then(n)}),[t]);const{completeTask:i}=_d();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 Qd(e,...t){e&&t.length>0&&e.classList.add(...t)}function ef(e,...t){e&&t.length>0&&e.classList.remove(...t)}var tf=(e=>(e.Ended="ended",e.Cancelled="cancelled",e))(tf||{});function nf(){let[e]=(0,s.useState)(xe);return(0,s.useEffect)((()=>()=>e.dispose()),[e]),e}function rf({container:e,direction:t,classes:n,onStart:r,onStop:o}){let i=Z(),a=nf(),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 ef(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Qd(e,...s,...c),i.nextFrame((()=>{ef(e,...c),Qd(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&&(ef(e,...s),Qd(e,...t.entered)),a(n))))})),i.dispose}(u,n.current,"enter"===s.current,(e=>{t.dispose(),l(e,{[tf.Ended](){o.current(s.current)},[tf.Cancelled]:()=>{}})}))),t.dispose}),[t])}function of(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let af=(0,s.createContext)(null);af.displayName="TransitionContext";var sf,lf=((sf=lf||{}).Visible="visible",sf.Hidden="hidden",sf);let uf=(0,s.createContext)(null);function cf(e){return"children"in e?cf(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function df(e,t){let n=w(e),r=(0,s.useRef)([]),o=Z(),i=nf(),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;!cf(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 ff(){}uf.displayName="NestingContext";let pf=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function mf(e){var t;let n={};for(let r of pf)n[r]=null!=(t=e[r])?t:ff;return n}let hf=c.RenderStrategy,vf=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)(af);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)(uf);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:k,unregister:V}=R,M=(0,s.useRef)(null);(0,s.useEffect)((()=>k(y)),[k,y]),(0,s.useEffect)((()=>{if(x===d.Hidden&&y.current)return C&&"visible"!==P?void O("visible"):l(P,{hidden:()=>V(y),visible:()=>k(y)})}),[P,y,k,V,C,x]);let N=w({enter:of(a),enterFrom:of(u),enterTo:of(c),entered:of(p),leave:of(m),leaveFrom:of(h),leaveTo:of(v)}),D=function(e){let t=(0,s.useRef)(mf(e));return(0,s.useEffect)((()=>{t.current=mf(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=df((()=>{O("hidden"),V(y)}),R);rf({container:y,classes:N,direction:_,onStart:w((e=>{I.onStart(y,e,H)})),onStop:w((e=>{I.onStop(y,e,B),"leave"===e&&!cf(I)&&(O("hidden"),V(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(uf.Provider,{value:I},s.createElement(ge,{value:l(P,{visible:he.Open,hidden:he.Closed})},f({ourProps:z,theirProps:U,defaultTag:"div",features:hf,visible:"visible"===P,name:"Transition.Child"})))})),gf=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=df((()=>{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(cf(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(uf.Provider,{value:m},s.createElement(af.Provider,{value:y},f({ourProps:{...w,as:s.Fragment,children:s.createElement(vf,{ref:u,...w,...i})},theirProps:{},defaultTag:s.Fragment,features:hf,visible:"visible"===d,name:"Transition"})))})),yf=h((function(e,t){let n=null!==(0,s.useContext)(af),r=null!==ve();return s.createElement(s.Fragment,null,!n&&r?s.createElement(gf,{ref:t,...e}):s.createElement(vf,{ref:t,...e}))})),bf=Object.assign(gf,{Child:yf,Root:gf});const wf="welcome-message",Ef=()=>{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}=Md(),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===wf)),[v,g]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{h||c(wf)||g(!0)}),[h,c,d]),(0,e.useEffect)((()=>{v&&m&&d(wf)}),[d,v,m]),v?(0,e.createElement)(od.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)(bf,{show:l,className:"absolute inset-0 md:w-1/2"},(0,e.createElement)(bf.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)(bf.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)(od.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)(od.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},xf=()=>{const{mainColor:n}=Md();return(0,e.createElement)("div",null,(0,e.createElement)(Ef,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)(Xd,null),(0,e.createElement)(Ir,null)))},Cf={"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")}},Sf=()=>{var t,n,o,i,a,s;const l="extendify-launch",{isDismissed:u,dismissNotice:c}=Hn(),{mainColor:d,darkColor:f}=Md();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(Cf).includes(e))),h=null==p||null===(o=p.state)||void 0===o?void 0:o.currentPageSlug,v=Object.keys(Cf).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)(Tf,{reached:g,bgColor:d,step:n+1,stepName:null===(r=Cf[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=Cf[v])||void 0===i?void 0:i.title),(0,e.createElement)("p",{className:"text-lg text-white"},null===(a=Cf[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=Cf[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"})))},Tf=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))},Lf=new URLSearchParams(window.location.search),Af=["page"].includes(Lf.get("extendify-launch")),Pf=window.extAssistData.launchCompleted,Of=window.extAssistData.devbuild,Rf=document.getElementById("extendify-assist-landing-page"),kf=document.getElementById("dashboard-widgets-wrap");!Af&&Rf&&(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)(xf,null))),null),Rf);const Vf=window.extAssistData.dismissedNotices.find((e=>"extendify-launch"===e.id));if(kf&&!Vf&&(!Pf||Of)){var Mf;const t=Object.assign(document.createElement("div"),{className:"extendify-assist"});null===(Mf=document.getElementById("welcome-panel"))||void 0===Mf||Mf.remove(),kf.before(t),(0,e.render)((0,e.createElement)(Sf,null),t)}if(!Af){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 k=0;function O(){return++k}let R=null!=(P=s.useId)?P:function(){let e=A(),[t,n]=s.useState(e?O:null);return b((()=>{null===t&&n(O())}),[t]),null!=t?""+t:void 0};var V=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(V||{});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 _=(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=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(j||{}),F=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(F||{});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,_.First)===j.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,_.First),[z.Backwards]:()=>U(e,_.Last)})})),h={ref:r};return s.createElement(s.Fragment,null,Boolean(4&a)&&s.createElement(N,{as:"button",type:"button",onFocus:m,features:V.Focusable}),f({ourProps:h,theirProps:u,defaultTag:"div",name:"FocusTrap"}),Boolean(4&a)&&s.createElement(N,{as:"button",type:"button",onFocus:m,features:V.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-${R()}`,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 ke=c.RenderStrategy|c.Static,Oe=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))),k=E((e=>L({type:0,id:e}))),O=!!A()&&!i&&0===x,_=u>1,j=null!==(0,s.useContext)(Le),F=_?"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,!!_&&O),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,O&&!_),q(null==g?void 0:g.defaultView,"keydown",(e=>{e.defaultPrevented||e.key===T.Escape&&0===x&&(_||(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&&!j),(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-${R()}`,z=(0,s.useMemo)((()=>[{dialogState:x,close:P,setTitleId:k},C]),[x,C,P,k]),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:O?l(F,{parent:G.features.RestoreFocus,leaf:G.features.All&~G.features.FocusLock}):G.features.None},f({ourProps:$,theirProps:a,slot:Z,defaultTag:"div",features:ke,visible:0===x,name:"Dialog"})))))))),s.createElement(N,{features:V.Hidden,ref:v}))})),Re=h((function(e,t){let[{dialogState:n,close:r}]=Ae("Dialog.Overlay"),o=S(t),i=`headlessui-dialog-overlay-${R()}`,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"})})),Ve=h((function(e,t){let[{dialogState:n},r]=Ae("Dialog.Backdrop"),o=S(t),i=`headlessui-dialog-backdrop-${R()}`;(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-${R()}`,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-${R()}`,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(Oe,{Backdrop:Ve,Panel:Ne,Overlay:Re,Title:Me,Description:pe});var _e=function(e,t){return _e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},_e(e,t)};function je(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}_e(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var Fe=function(){return Fe=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},Fe.apply(this,arguments)};function He(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 Be(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 Ie(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 Ue=("undefined"==typeof process||process.env,"production");const ze=1/60*1e3,Ze="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),We="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(Ze())),ze);let qe=!0,$e=!1,Ye=!1;const Xe={delta:0,timestamp:0},Ge=["read","update","preRender","render","postRender"],Je=Ge.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}((()=>$e=!0)),e)),{}),Ke=Ge.reduce(((e,t)=>{const n=Je[t];return e[t]=(e,t=!1,r=!1)=>($e||rt(),n.schedule(e,t,r)),e}),{}),Qe=Ge.reduce(((e,t)=>(e[t]=Je[t].cancel,e)),{}),et=Ge.reduce(((e,t)=>(e[t]=()=>Je[t].process(Xe),e)),{}),tt=e=>Je[e].process(Xe),nt=e=>{$e=!1,Xe.delta=qe?ze:Math.max(Math.min(e-Xe.timestamp,40),1),Xe.timestamp=e,Ye=!0,Ge.forEach(tt),Ye=!1,$e&&(qe=!1,We(nt))},rt=()=>{$e=!0,qe=!0,Ye||We(nt)},ot=()=>Xe;var it=Ke,at="undefined"!=typeof document,st=at?s.useLayoutEffect:s.useEffect;function lt(){var e=(0,s.useRef)(!1);return st((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var ut=(0,s.createContext)(null);function ct(e){var t=(0,s.useRef)(null);return null===t.current&&(t.current=e()),t.current}var dt=0,ft=function(){return dt++},pt=function(){return ct(ft)},mt=function(e){var t=e.children,n=e.initial,r=e.isPresent,o=e.onExitComplete,i=e.custom,a=e.presenceAffectsLayout,l=ct(ht),u=pt(),c=(0,s.useMemo)((function(){return{id:u,initial:n,isPresent:r,custom:i,onExitComplete:function(e){var t,n;l.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(l.values()),i=r.next();!i.done;i=r.next())if(!i.value)return}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==o||o()},register:function(e){return l.set(e,!1),function(){return l.delete(e)}}}}),a?void 0:[r]);return(0,s.useMemo)((function(){l.forEach((function(e,t){return l.set(t,!1)}))}),[r]),s.useEffect((function(){!r&&!l.size&&(null==o||o())}),[r]),s.createElement(ut.Provider,{value:c},t)};function ht(){return new Map}var vt=(0,s.createContext)({});function gt(e){return(0,s.useEffect)((function(){return function(){return e()}}),[])}var yt=function(e){return e.key||""},bt=function(e){var t=e.children,n=e.custom,r=e.initial,o=void 0===r||r,i=e.onExitComplete,a=e.exitBeforeEnter,l=e.presenceAffectsLayout,u=void 0===l||l,c=Be(function(){var e=lt(),t=Be((0,s.useState)(0),2),n=t[0],r=t[1],o=(0,s.useCallback)((function(){e.current&&r(n+1)}),[n]);return[(0,s.useCallback)((function(){return it.postRender(o)}),[o]),n]}(),1),d=c[0],f=(0,s.useContext)(vt).forceRender;f&&(d=f);var p=lt(),m=function(e){var t=[];return s.Children.forEach(e,(function(e){(0,s.isValidElement)(e)&&t.push(e)})),t}(t),h=m,v=new Set,g=(0,s.useRef)(h),y=(0,s.useRef)(new Map).current,b=(0,s.useRef)(!0);if(st((function(){b.current=!1,function(e,t){e.forEach((function(e){var n=yt(e);t.set(n,e)}))}(m,y),g.current=h})),gt((function(){b.current=!0,y.clear(),v.clear()})),b.current)return s.createElement(s.Fragment,null,h.map((function(e){return s.createElement(mt,{key:yt(e),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:u},e)})));h=Ie([],Be(h),!1);for(var w=g.current.map(yt),E=m.map(yt),x=w.length,C=0;C<x;C++){var S=w[C];-1===E.indexOf(S)&&v.add(S)}return a&&v.size&&(h=[]),v.forEach((function(e){if(-1===E.indexOf(e)){var t=y.get(e);if(t){var r=w.indexOf(e);h.splice(r,0,s.createElement(mt,{key:yt(t),isPresent:!1,onExitComplete:function(){y.delete(e),v.delete(e);var t=g.current.findIndex((function(t){return t.key===e}));if(g.current.splice(t,1),!v.size){if(g.current=m,!1===p.current)return;d(),i&&i()}},custom:n,presenceAffectsLayout:u},t))}}})),h=h.map((function(e){var t=e.key;return v.has(t)?e:s.createElement(mt,{key:yt(e),isPresent:!0,presenceAffectsLayout:u},e)})),"production"!==Ue&&a&&h.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),s.createElement(s.Fragment,null,v.size?h:h.map((function(e){return(0,s.cloneElement)(e)})))},wt=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},Et={measureLayout:wt(["layout","layoutId","drag"]),animation:wt(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:wt(["exit"]),drag:wt(["drag","dragControls"]),focus:wt(["whileFocus"]),hover:wt(["whileHover","onHoverStart","onHoverEnd"]),tap:wt(["whileTap","onTap","onTapStart","onTapCancel"]),pan:wt(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:wt(["whileInView","onViewportEnter","onViewportLeave"])},xt=(0,s.createContext)({strict:!1}),Ct=Object.keys(Et),St=Ct.length,Tt=(0,s.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Lt=(0,s.createContext)({}),At={current:null},Pt=!1;function kt(e,t,n,r){var o,i,a=(0,s.useContext)(xt),l=(0,s.useContext)(Lt).visualElement,u=(0,s.useContext)(ut),c=(!Pt&&function(){if(Pt=!0,at)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return At.current=e.matches};e.addListener(t),t()}else At.current=!1}(),o=Be((0,s.useState)(At.current),1)[0],"never"!==(i=(0,s.useContext)(Tt).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 st((function(){null==f||f.syncRender()})),(0,s.useEffect)((function(){var e;null===(e=null==f?void 0:f.animationState)||void 0===e||e.animateChanges()})),st((function(){return function(){return null==f?void 0:f.notifyUnmount()}}),[]),f}function Ot(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Rt(e){return Array.isArray(e)}function Vt(e){return"string"==typeof e||Rt(e)}function Nt(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 Mt(e,t,n){var r=e.getProps();return Nt(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 Dt(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||Vt(e.initial)||Vt(e.animate)||Vt(e.whileHover)||Vt(e.whileDrag)||Vt(e.whileTap)||Vt(e.whileFocus)||Vt(e.exit)}function _t(e){return Boolean(Dt(e)||e.variants)}function jt(e){return Array.isArray(e)?e.join(" "):e}var Ft={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ht=1,Bt=(0,s.createContext)({}),It=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return je(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 Ut(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?Et.projectionNodeConstructor=e[t]:Et[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)(vt))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=Fe(Fe({},e),{layoutId:u});var c=(0,s.useContext)(Tt),d=null,f=function(e){var t=function(e,t){if(Dt(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Vt(n)?n:void 0,animate:Vt(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,s.useContext)(Lt)),n=t.initial,r=t.animate;return(0,s.useMemo)((function(){return{initial:n,animate:r}}),[jt(n),jt(r)])}(e),p=c.isStatic?void 0:ct((function(){if(Ft.hasEverUpdated)return Ht++})),m=i(e,c.isStatic);return!c.isStatic&&at&&(f.visualElement=kt(a,m,Fe(Fe({},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)(Bt);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&&Ot(u),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof a?a:"both",initialPromotionConfig:d,layoutScroll:c}))}(p,e,f.visualElement,r||Et.projectionNodeConstructor),d=function(e,t,n){var r=[],o=(0,s.useContext)(xt);if(!t)return null;"production"!==Ue&&n&&o.strict;for(var i=0;i<St;i++){var a=Ct[i],l=Et[a],u=l.isEnabled,c=l.Component;u(e)&&c&&r.push(s.createElement(c,Fe({key:a},e,{visualElement:t})))}return r}(e,f.visualElement,t)),s.createElement(It,{visualElement:f.visualElement,props:Fe(Fe({},c),e)},d,s.createElement(Lt.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):Ot(n)&&(n.current=r))}),[t])}(m,f.visualElement,l),m,c.isStatic,f.visualElement)))}))}function zt(e){function t(t,n){return void 0===n&&(n={}),Ut(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 Zt=["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 Wt(e){return"string"==typeof e&&!e.includes("-")&&!!(Zt.indexOf(e)>-1||/[A-Z]/.test(e))}var qt={},$t=["","X","Y","Z"],Yt=["transformPerspective","x","y","z"];function Xt(e,t){return Yt.indexOf(e)-Yt.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return $t.forEach((function(t){return Yt.push(e+t)}))}));var Gt=new Set(Yt);function Jt(e){return Gt.has(e)}var Kt=new Set(["originX","originY","originZ"]);function Qt(e){return Kt.has(e)}function en(e,t){var n=t.layout,r=t.layoutId;return Jt(e)||Qt(e)||(n||void 0!==r)&&(!!qt[e]||"opacity"===e)}var tn=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},nn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function rn(e){return e.startsWith("--")}var on=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const an=(e,t)=>n=>Math.max(Math.min(n,t),e),sn=e=>e%1?Number(e.toFixed(5)):e,ln=/(-)?([\d]*\.?[\d])+/g,un=/(#[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,cn=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function dn(e){return"string"==typeof e}const fn=e=>({test:t=>dn(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),pn=fn("deg"),mn=fn("%"),hn=fn("px"),vn=fn("vh"),gn=fn("vw"),yn=Object.assign(Object.assign({},mn),{parse:e=>mn.parse(e)/100,transform:e=>mn.transform(100*e)}),bn={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},wn=Object.assign(Object.assign({},bn),{transform:an(0,1)}),En=Object.assign(Object.assign({},bn),{default:1});var xn=Fe(Fe({},bn),{transform:Math.round}),Cn={borderWidth:hn,borderTopWidth:hn,borderRightWidth:hn,borderBottomWidth:hn,borderLeftWidth:hn,borderRadius:hn,radius:hn,borderTopLeftRadius:hn,borderTopRightRadius:hn,borderBottomRightRadius:hn,borderBottomLeftRadius:hn,width:hn,maxWidth:hn,height:hn,maxHeight:hn,size:hn,top:hn,right:hn,bottom:hn,left:hn,padding:hn,paddingTop:hn,paddingRight:hn,paddingBottom:hn,paddingLeft:hn,margin:hn,marginTop:hn,marginRight:hn,marginBottom:hn,marginLeft:hn,rotate:pn,rotateX:pn,rotateY:pn,rotateZ:pn,scale:En,scaleX:En,scaleY:En,scaleZ:En,skew:pn,skewX:pn,skewY:pn,distance:hn,translateX:hn,translateY:hn,translateZ:hn,x:hn,y:hn,z:hn,perspective:hn,transformPerspective:hn,opacity:wn,originX:yn,originY:yn,originZ:hn,zIndex:xn,fillOpacity:wn,strokeOpacity:wn,numOctaves:xn};function Sn(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(rn(p))a[p]=m;else{var h=Cn[p],v=on(m,h);if(Jt(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 Qt(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(Xt);for(var d=!1,f=i.length,p=0;p<f;p++){var m=i[p];c+="".concat(nn[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 Tn(e,t,n){for(var r in t)tn(t[r])||en(r,n)||(e[r]=t[r])}function Ln(e,t,n){var r={},o=function(e,t,n){var r={};return Tn(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:{}};Sn(e,t,{enableHardwareAcceleration:!n},r);var o=e.style;return Fe(Fe({},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 An=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 Pn(e){return An.has(e)}var kn,On=function(e){return!Pn(e)};try{(kn=require("@emotion/is-prop-valid").default)&&(On=function(e){return e.startsWith("on")?!Pn(e):kn(e)})}catch(Ml){}function Rn(e,t,n){return"string"==typeof e?e:hn.transform(t+n*e)}var Vn={offset:"stroke-dashoffset",array:"stroke-dasharray"},Nn={offset:"strokeDashoffset",array:"strokeDasharray"};function Mn(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;Sn(e,He(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=Rn(t,e.x,e.width),o=Rn(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?Vn:Nn;e[i.offset]=hn.transform(-r);var a=hn.transform(t),s=hn.transform(n);e[i.array]="".concat(a," ").concat(s)}(p,l,c,f,!1)}var Dn=function(){return Fe(Fe({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function jn(e,t){var n=(0,s.useMemo)((function(){var n=Dn();return Mn(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),Fe(Fe({},n.attrs),{style:Fe({},n.style)})}),[t]);if(e.style){var r={};Tn(r,e.style,e),n.style=Fe(Fe({},r),n.style)}return n}function Fn(e){return void 0===e&&(e=!1),function(t,n,r,o,i,a){var l=i.latestValues,u=(Wt(t)?jn:Ln)(n,l,a),c=function(e,t,n){var r={};for(var o in e)(On(o)||!0===n&&Pn(o)||!t&&!Pn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),d=Fe(Fe(Fe({},c),u),{ref:o});return r&&(d["data-projection-id"]=r),(0,s.createElement)(t,d)}}var Hn=/([a-z])([A-Z])/g,Bn=function(e){return e.replace(Hn,"$1-$2").toLowerCase()};function In(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 Un=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function zn(e,t,n,r){for(var o in In(e,t,void 0,r),t.attrs)e.setAttribute(Un.has(o)?o:Bn(o),t.attrs[o])}function Zn(e){var t=e.style,n={};for(var r in t)(tn(t[r])||en(r,e))&&(n[r]=t[r]);return n}function Wn(e){var t=Zn(e);for(var n in e)tn(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function qn(e){return"object"==typeof e&&"function"==typeof e.start}var $n=function(e){return Array.isArray(e)},Yn=function(e){return $n(e)?e[e.length-1]||0:e};function Xn(e){var t=tn(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}function Gn(e,t,n,r){var o=e.scrapeMotionValuesFromProps,i=e.createRenderState,a=e.onMount,s={latestValues:Kn(t,n,r,o),renderState:i()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var Jn=function(e){return function(t,n){var r=(0,s.useContext)(Lt),o=(0,s.useContext)(ut);return n?Gn(e,t,r,o):ct((function(){return Gn(e,t,r,o)}))}};function Kn(e,t,n,r){var o={},i=!1===(null==n?void 0:n.initial),a=r(e);for(var s in a)o[s]=Xn(a[s]);var l=e.initial,u=e.animate,c=Dt(e),d=_t(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&&!qn(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=Nt(e,t);if(n){var r=n.transitionEnd;n.transition;var i=He(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 Qn,er={useVisualState:Jn({scrapeMotionValuesFromProps:Wn,createRenderState:Dn,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}}Mn(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),zn(t,r)}})},tr={useVisualState:Jn({scrapeMotionValuesFromProps:Zn,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function nr(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function rr(e,t,n,r){(0,s.useEffect)((function(){var o=e.current;if(n&&o)return nr(o,t,n,r)}),[e,t,n,r])}function or(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function ir(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"}(Qn||(Qn={}));var ar={pageX:0,pageY:0};function sr(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||ar;return{x:n[t+"X"],y:n[t+"Y"]}}function lr(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function ur(e,t){return void 0===t&&(t="page"),{point:ir(e)?sr(e,t):lr(e,t)}}var cr=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,ur(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},dr={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},fr={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function pr(e){return at&&null===window.onpointerdown?e:at&&null===window.ontouchstart?fr[e]:at&&null===window.onmousedown?dr[e]:e}function mr(e,t,n,r){return nr(e,pr(t),cr(n,"pointerdown"===t),r)}function hr(e,t,n,r){return rr(e,pr(t),n&&cr(n,"pointerdown"===t),r)}function vr(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var gr=vr("dragHorizontal"),yr=vr("dragVertical");function br(e){var t=!1;if("y"===e)t=yr();else if("x"===e)t=gr();else{var n=gr(),r=yr();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function wr(){var e=br(!0);return!e||(e(),!1)}function Er(e,t,n){return function(r,o){var i;or(r)&&!wr()&&(null===(i=e.animationState)||void 0===i||i.setActive(Qn.Hover,t),null==n||n(r,o))}}var xr=function(e,t){return!!t&&(e===t||xr(e,t.parentElement))};const Cr=(e,t)=>n=>t(e(n)),Sr=(...e)=>e.reduce(Cr);var Tr=new Set,Lr=new WeakMap,Ar=new WeakMap,Pr=function(e){var t;null===(t=Lr.get(e.target))||void 0===t||t(e)},kr=function(e){e.forEach(Pr)};var Or={some:0,all:1};function Rr(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:Or[l]};return function(e,t,n){var r=function(e){var t=e.root,n=He(e,["root"]),r=t||document;Ar.has(r)||Ar.set(r,{});var o=Ar.get(r),i=JSON.stringify(n);return o[i]||(o[i]=new IntersectionObserver(kr,Fe({root:t},n))),o[i]}(t);return Lr.set(e,n),r.observe(e),function(){Lr.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(Qn.InView,o);var i=n.getProps(),a=o?i.onViewportEnter:i.onViewportLeave;null==a||a(e)}}))}}),[e,o,i,l])}function Vr(e,t,n,r){var o=r.fallback,i=void 0===o||o;(0,s.useEffect)((function(){var r;e&&i&&("production"!==Ue&&(r="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",Tr.has(r)||(console.warn(r),Tr.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(Qn.InView,!0)})))}),[e])}var Nr=function(e){return function(t){return e(t),null}},Mr={inView:Nr((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?Vr:Rr)(u,l.current,t,a)})),tap:Nr((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(Qn.Tap,!1),!wr()}function p(e,n){f()&&(xr(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=Sr(mr(window,"pointerup",p,c),mr(window,"pointercancel",m,c)),null===(r=i.animationState)||void 0===r||r.setActive(Qn.Tap,!0),null==n||n(e,t))}hr(i,"pointerdown",a?h:void 0,c),gt(d)})),focus:Nr((function(e){var t=e.whileFocus,n=e.visualElement;rr(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Qn.Focus,!0)}:void 0),rr(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Qn.Focus,!1)}:void 0)})),hover:Nr((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;hr(o,"pointerenter",t||r?Er(o,!0,t):void 0,{passive:!t}),hr(o,"pointerleave",n||r?Er(o,!1,n):void 0,{passive:!n})}))};function Dr(){var e=(0,s.useContext)(ut);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=pt();return(0,s.useEffect)((function(){return r(o)}),[]),!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function _r(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 jr=(e,t,n)=>Math.min(Math.max(n,e),t);function Fr(e,t){return e*Math.sqrt(1-t*t)}const Hr=["duration","bounce"],Br=["stiffness","damping","mass"];function Ir(e,t){return t.some((t=>void 0!==e[t]))}function Ur(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,i=He(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(!Ir(e,Br)&&Ir(e,Hr)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i,a=1-t;a=jr(.05,1,a),e=jr(.01,10,e/1e3),a<1?(o=t=>{const r=t*a,o=r*e;return.001-(r-n)/Fr(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=Fr(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=zr,m=zr;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=Fr(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()}}}Ur.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const zr=e=>0,Zr=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Wr=(e,t,n)=>-n*e+n*t+e,qr=(e,t)=>n=>Boolean(dn(n)&&cn.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),$r=(e,t,n)=>r=>{if(!dn(r))return r;const[o,i,a,s]=r.match(ln);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Yr=an(0,255),Xr=Object.assign(Object.assign({},bn),{transform:e=>Math.round(Yr(e))}),Gr={test:qr("rgb","red"),parse:$r("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Xr.transform(e)+", "+Xr.transform(t)+", "+Xr.transform(n)+", "+sn(wn.transform(r))+")"},Jr={test:qr("#"),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:Gr.transform},Kr={test:qr("hsl","hue"),parse:$r("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+mn.transform(sn(t))+", "+mn.transform(sn(n))+", "+sn(wn.transform(r))+")"};function Qr(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 eo({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=Qr(s,r,e+1/3),i=Qr(s,r,e),a=Qr(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 to=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},no=[Jr,Gr,Kr],ro=e=>no.find((t=>t.test(e))),oo=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,io=(e,t)=>{let n=ro(e),r=ro(t);oo(e),oo(t);let o=n.parse(e),i=r.parse(t);n===Kr&&(o=eo(o),n=Gr),r===Kr&&(i=eo(i),r=Gr);const a=Object.assign({},o);return e=>{for(const t in a)"alpha"!==t&&(a[t]=to(o[t],i[t],e));return a.alpha=Wr(o.alpha,i.alpha,e),n.transform(a)}},ao={test:e=>Gr.test(e)||Jr.test(e)||Kr.test(e),parse:e=>Gr.test(e)?Gr.parse(e):Kr.test(e)?Kr.parse(e):Jr.parse(e),transform:e=>dn(e)?e:e.hasOwnProperty("red")?Gr.transform(e):Kr.transform(e)},so="${c}",lo="${n}";function uo(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(un);r&&(n=r.length,e=e.replace(un,so),t.push(...r.map(ao.parse)));const o=e.match(ln);return o&&(e=e.replace(ln,lo),t.push(...o.map(bn.parse))),{values:t,numColors:n,tokenised:e}}function co(e){return uo(e).values}function fo(e){const{values:t,numColors:n,tokenised:r}=uo(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?so:lo,r<n?ao.transform(e[r]):sn(e[r]));return t}}const po=e=>"number"==typeof e?0:e,mo={test:function(e){var t,n,r,o;return isNaN(e)&&dn(e)&&(null!==(n=null===(t=e.match(ln))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(un))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:co,createTransformer:fo,getAnimatableNone:function(e){const t=co(e);return fo(e)(t.map(po))}},ho=e=>"number"==typeof e;function vo(e,t){return ho(e)?n=>Wr(e,t,n):ao.test(e)?io(e,t):wo(e,t)}const go=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>vo(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},yo=(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]=vo(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function bo(e){const t=mo.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 wo=(e,t)=>{const n=mo.createTransformer(t),r=bo(e),o=bo(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?Sr(go(r.parsed,o.parsed),n):n=>`${n>0?t:e}`},Eo=(e,t)=>n=>Wr(e,t,n);function xo(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?Eo:"string"==typeof e?ao.test(e)?io:wo:Array.isArray(e)?go:"object"==typeof e?yo: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=Sr(e,i)}r.push(i)}return r}(t,r,o),s=2===i?function([e,t],[n]){return r=>n(Zr(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=Zr(e[i],e[i+1],o);return t[i](s)}}(e,a);return n?t=>s(jr(e[0],e[i-1],t)):s}const Co=e=>t=>1-e(1-t),So=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,To=e=>t=>t*t*((e+1)*t-e),Lo=e=>e,Ao=(2,e=>Math.pow(e,2));const Po=Co(Ao),ko=So(Ao),Oo=e=>1-Math.sin(Math.acos(e)),Ro=Co(Oo),Vo=So(Ro),No=To(1.525),Mo=Co(No),Do=So(No),_o=(e=>{const t=To(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),jo=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},Fo=Co(jo);function Ho(e,t){return e.map((()=>t||ko)).splice(0,e.length-1)}function Bo({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 xo(s,a,{ease:Array.isArray(n)?n:Ho(a,n)})}let u=l();return{next:e=>(i.value=u(e),i.done=e>=o,i),flipTarget:()=>{a.reverse(),u=l()}}}const Io={keyframes:Bo,spring:Ur,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:()=>{}}}};function Uo(e,t,n=0){return e-t-n}const zo=e=>{const t=({delta:t})=>e(t);return{start:()=>it.update(t,!0),stop:()=>Qe.update(t)}};function Zo(e){var t,n,{from:r,autoplay:o=!0,driver:i=zo,elapsed:a=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,h=He(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 Bo;if(Io[e.type])return Io[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Bo:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Ur:Bo}(h);(null===(n=(t=S).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(y=xo([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?Uo(t+-e,t,n):t-(e-t)+n}(a,E,u,C)):(a=Uo(a,E,u),"mirror"===l&&T.flipTarget()),x=!1,p&&p()):(v.stop(),f&&f()))})),v.start()),{stop:()=>{null==d||d(),v.stop()}}}function Wo(e,t){return t?e*(1e3/t):0}var qo=function(e){return 1e3*e};const $o=(e,t)=>1-3*t+3*e,Yo=(e,t)=>3*t-6*e,Xo=e=>3*e,Go=(e,t,n)=>(($o(t,n)*e+Yo(t,n))*e+Xo(t))*e,Jo=(e,t,n)=>3*$o(t,n)*e*e+2*Yo(t,n)*e+Xo(t),Ko=.1;function Qo(e,t,n,r){if(e===t&&n===r)return Lo;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=Go(t*Ko,e,n);return i=>0===i||1===i?i:Go(function(t){let r=0,i=1;for(;10!==i&&o[i]<=t;++i)r+=Ko;--i;const a=r+(t-o[i])/(o[i+1]-o[i])*Ko,s=Jo(a,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=Jo(t,n,r);if(0===o)return t;t-=(Go(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=Go(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<10);return a}(t,r,r+Ko,e,n)}(i),t,r)}var ei={linear:Lo,easeIn:Ao,easeInOut:ko,easeOut:Po,circIn:Oo,circInOut:Vo,circOut:Ro,backIn:No,backInOut:Do,backOut:Mo,anticipate:_o,bounceIn:Fo,bounceInOut:e=>e<.5?.5*(1-jo(1-2*e)):.5*jo(2*e-1)+.5,bounceOut:jo},ti=function(e){if(Array.isArray(e)){e.length;var t=Be(e,4);return Qo(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),ei[e]):e},ni=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!mo.test(t)||t.startsWith("url(")))},ri=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},oi=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},ii=function(){return{type:"keyframes",ease:"linear",duration:.3}},ai=function(e){return{type:"keyframes",duration:.8,values:e}},si={x:ri,y:ri,z:ri,rotate:ri,rotateX:ri,rotateY:ri,rotateZ:ri,scaleX:oi,scaleY:oi,scale:oi,opacity:ii,backgroundColor:ii,color:ii,default:oi};const li=new Set(["brightness","contrast","saturate","opacity"]);function ui(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(ln)||[];if(!r)return e;const o=n.replace(r,"");let i=li.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const ci=/([a-z-]*)\(.*?\)/g,di=Object.assign(Object.assign({},mo),{getAnimatableNone:e=>{const t=e.match(ci);return t?t.map(ui).join(" "):e}});var fi=Fe(Fe({},Cn),{color:ao,backgroundColor:ao,outlineColor:ao,fill:ao,stroke:ao,borderColor:ao,borderTopColor:ao,borderRightColor:ao,borderBottomColor:ao,borderLeftColor:ao,filter:di,WebkitFilter:di}),pi=function(e){return fi[e]};function mi(e,t){var n,r=pi(e);return r!==di&&(r=mo),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function hi(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=Ie([],Be(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=He(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Fe(Fe({},e),(o=n,i=t.to,a=$n(i)?ai:si[o]||si.default,Fe({to:i},a(i))))),Fe(Fe({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,i=e.loop,a=He(e,["ease","times","yoyo","flip","loop"]),s=Fe({},a);return n&&(s.offset=n),a.duration&&(s.duration=qo(a.duration)),a.repeatDelay&&(s.repeatDelay=qo(a.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(ti):ti(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 vi(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function gi(e){return"number"==typeof e?0:mi("",e)}function yi(e,t){return e[t]||e.default||e}function bi(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=yi(r,e),s=null!==(i=a.from)&&void 0!==i?i:t.get(),l=ni(e,n);"none"===s&&l&&"string"==typeof n?s=mi(e,n):vi(s)&&"string"==typeof n?s=gi(n):!Array.isArray(n)&&vi(n)&&"string"==typeof s&&(n=gi(s));var u=ni(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=Zo(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=Wo(e-c,ot().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()}}(Fe(Fe({},r),a)):Zo(Fe(Fe({},hi(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=Yn(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=(yi(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,qo(l)):u(),function(){clearTimeout(i),null==a||a.stop()}}))}var wi=function(e){return/^\-?\d*\.?\d+$/.test(e)},Ei=function(e){return/^0[^.\s]+$/.test(e)};function xi(e,t){-1===e.indexOf(t)&&e.push(t)}function Ci(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Si=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return xi(this.subscriptions,e),function(){return Ci(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}(),Ti=function(){function e(e){var t,n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Si,this.velocityUpdateSubscribers=new Si,this.renderSubscribers=new Si,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=ot(),o=r.delta,i=r.timestamp;n.lastUpdated!==i&&(n.timeDelta=o,n.lastUpdated=i,it.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 it.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?Wo(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 Li(e){return new Ti(e)}var Ai=function(e){return function(t){return t.test(e)}},Pi=[bn,hn,mn,pn,gn,vn,{test:function(e){return"auto"===e},parse:function(e){return e}}],ki=function(e){return Pi.find(Ai(e))},Oi=Ie(Ie([],Be(Pi),!1),[ao,mo],!1),Ri=function(e){return Oi.find(Ai(e))};function Vi(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Li(n))}function Ni(e,t){if(t)return(t[e]||t.default||t).from}function Mi(e,t,n){var r;void 0===n&&(n={});var o=Mt(e,t,n.custom),i=(o||{}).transition,a=void 0===i?e.getDefaultTransition()||{}:i;n.transitionOverride&&(a=n.transitionOverride);var s=o?function(){return Di(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(_i).forEach((function(e,r){a.push(Mi(e,t,Fe(Fe({},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=Be("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 Di(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=He(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&&ji(h,v))){var b=Fe({delay:a},d);e.shouldReduceMotion&&Jt(v)&&(b=Fe(Fe({},b),{type:!1,delay:0}));var w=bi(v,g,y,b);m.push(w)}}return Promise.all(m).then((function(){f&&function(e,t){var n=Mt(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,i=void 0===o?{}:o;r.transition;var a=He(r,["transitionEnd","transition"]);for(var s in a=Fe(Fe({},a),i))Vi(e,s,Yn(a[s]))}(e,f)}))}function _i(e,t){return e.sortNodePosition(t)}function ji(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var Fi=[Qn.Animate,Qn.InView,Qn.Focus,Qn.Hover,Qn.Tap,Qn.Drag,Qn.Exit],Hi=Ie([],Be(Fi),!1).reverse(),Bi=Fi.length;function Ii(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 Mi(e,t,n)}));r=Promise.all(o)}else if("string"==typeof t)r=Mi(e,t,n);else{var i="function"==typeof t?Mt(e,t,n.custom):t;r=Di(e,i,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),n=function(){var e;return(e={})[Qn.Animate]=Ui(!0),e[Qn.InView]=Ui(),e[Qn.Hover]=Ui(),e[Qn.Tap]=Ui(),e[Qn.Drag]=Ui(),e[Qn.Focus]=Ui(),e[Qn.Exit]=Ui(),e}(),r={},o=!0,i=function(t,n){var r=Mt(e,n);if(r){r.transition;var o=r.transitionEnd,i=He(r,["transition","transitionEnd"]);t=Fe(Fe(Fe({},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=Hi[t],h=n[r],v=null!==(l=u[r])&&void 0!==l?l:c[r],g=Vt(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=Fe({},p),!h.isActive&&null===y||!v&&!h.prevProp||qn(v)||"boolean"==typeof v)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!Rt(t)&&!_r(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=Fe(Fe({},T),C),A=function(e){E=!0,f.delete(e),h.needsAnimating[e]=!0};for(var P in L){var k=C[P],O=T[P];p.hasOwnProperty(P)||(k!==O?$n(k)&&$n(O)?!_r(k,O)||w?A(P):h.protectedKeys[P]=!0:void 0!==k?A(P):f.add(P):void 0!==k&&f.has(P)?A(P):h.protectedKeys[P]=!0)}h.prevProp=v,h.prevResolvedValues=C,h.isActive&&(p=Fe(Fe({},p),C)),o&&e.blockInitialAnimation&&(E=!1),E&&!b&&d.push.apply(d,Ie([],Be(x.map((function(e){return{animation:e,options:Fe({type:r},a)}}))),!1))},v=0;v<Bi;v++)h(v);if(r=Fe({},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 Ui(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var zi={animation:Nr((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=Ii(t)),qn(n)&&(0,s.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:Nr((function(e){var t=e.custom,n=e.visualElement,r=Be(Dr(),2),o=r[0],i=r[1],a=(0,s.useContext)(ut);(0,s.useEffect)((function(){var e,r;n.isPresent=o;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Qn.Exit,!o,{custom:null!==(r=null==a?void 0:a.custom)&&void 0!==r?r:t});!o&&(null==s||s.then(i))}),[o])}))};const Zi=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Wi=e=>Zi(e)&&e.hasOwnProperty("z"),qi=(e,t)=>Math.abs(e-t);function $i(e,t){if(ho(e)&&ho(t))return qi(e,t);if(Zi(e)&&Zi(t)){const n=qi(e.x,t.x),r=qi(e.y,t.y),o=Wi(e)&&Wi(t)?qi(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var Yi=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=Ji(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=$i(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,i=ot().timestamp;r.history.push(Fe(Fe({},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=Xi(t,r.transformPagePoint),or(e)&&0===e.buttons?r.handlePointerUp(e,t):it.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,i=n.onSessionEnd,a=Ji(Xi(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,a),i&&i(e,a)},!(ir(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var i=Xi(ur(e),this.transformPagePoint),a=i.point,s=ot().timestamp;this.history=[Fe(Fe({},a),{timestamp:s})];var l=t.onSessionStart;l&&l(e,Ji(i,this.history)),this.removeListeners=Sr(mr(window,"pointermove",this.handlePointerMove),mr(window,"pointerup",this.handlePointerUp),mr(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Qe.update(this.updatePoint)},e}();function Xi(e,t){return t?{point:t(e.point)}:e}function Gi(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ji(e,t){var n=e.point;return{point:n,delta:Gi(n,Qi(t)),offset:Gi(n,Ki(t)),velocity:ea(t,.1)}}function Ki(e){return e[0]}function Qi(e){return e[e.length-1]}function ea(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=Qi(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>qo(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 ta(e){return e.max-e.min}function na(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),$i(e,t)<n}function ra(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Wr(t.min,t.max,e.origin),e.scale=ta(n)/ta(t),(na(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Wr(n.min,n.max,e.origin)-e.originPoint,(na(e.translate)||isNaN(e.translate))&&(e.translate=0)}function oa(e,t,n,r){ra(e.x,t.x,n.x,null==r?void 0:r.originX),ra(e.y,t.y,n.y,null==r?void 0:r.originY)}function ia(e,t,n){e.min=n.min+t.min,e.max=e.min+ta(t)}function aa(e,t,n){e.min=t.min-n.min,e.max=e.min+ta(t)}function sa(e,t,n){aa(e.x,t.x,n.x),aa(e.y,t.y,n.y)}function la(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function ua(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=Be([o,r],2))[0],o=n[1]),{min:r,max:o}}var ca=.35;function da(e,t,n){return{min:fa(e,t),max:fa(e,n)}}function fa(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function pa(e){return[e("x"),e("y")]}function ma(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function ha(e){return void 0===e||1===e}function va(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!ha(t)||!ha(n)||!ha(r)}function ga(e){return va(e)||ya(e.x)||ya(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function ya(e){return e&&"0%"!==e}function ba(e,t,n){return n+t*(e-n)}function wa(e,t,n,r,o){return void 0!==o&&(e=ba(e,o,r)),ba(e,n,r)+t}function Ea(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=wa(e.min,t,n,r,o),e.max=wa(e.max,t,n,r,o)}function xa(e,t){var n=t.x,r=t.y;Ea(e.x,n.translate,n.scale,n.originPoint),Ea(e.y,r.translate,r.scale,r.originPoint)}function Ca(e,t){e.min=e.min+t,e.max=e.max+t}function Sa(e,t,n){var r=Be(n,3),o=r[0],i=r[1],a=r[2],s=void 0!==t[a]?t[a]:.5,l=Wr(e.min,e.max,s);Ea(e,t[o],t[i],l,t.scale)}var Ta=["x","scaleX","originX"],La=["y","scaleY","originY"];function Aa(e,t){Sa(e.x,t,Ta),Sa(e.y,t,La)}function Pa(e,t){return ma(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 ka=new WeakMap,Oa=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 Yi(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(ur(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=br(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),pa((function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(mn.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=ta(i)*(parseFloat(o)/100))}n.originPoint[e]=o})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(Qn.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(Qn.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Ra(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?Wr(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?Wr(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&&Ot(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:la(e.x,r,i),y:la(e.y,n,o)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=ca),!1===e?e=0:!0===e&&(e=ca),{x:da(e,"left","right"),y:da(e,"top","bottom")}}(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&pa((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||!Ot(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=Pa(e,n),o=t.scroll;return o&&(Ca(r.x,o.x),Ca(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:ua(e.x,t.x),y:ua(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=ma(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=pa((function(n){var l;if(Ra(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=Fe(Fe({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 bi(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;pa((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;pa((function(n){if(Ra(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]-Wr(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(Ot(o)&&i&&this.constraints){this.stopAnimation();var a={x:0,y:0};pa((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=ta(n),(s=ta(r))>i?o=Zr(r.min,r.max-i,n.min):i>s&&(o=Zr(n.min,n.max-s,r.min)),jr(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(),pa((function(e){if(Ra(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e],i=o.min,s=o.max;n.set(Wr(i,s,a[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;ka.set(this.visualElement,this);var n=mr(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(){Ot(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=nr(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(pa((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?ca:u,d=e.dragMomentum,f=void 0===d||d;return Fe(Fe({},e),{drag:n,dragDirectionLock:o,dragPropagation:a,dragConstraints:l,dragElastic:c,dragMomentum:f})},e}();function Ra(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Va={pan:Nr((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)(Tt).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)})),hr(i,"pointerdown",a&&function(e){l.current=new Yi(e,c,{transformPagePoint:u})}),gt((function(){return l.current&&l.current.end()}))})),drag:Nr((function(e){var t=e.dragControls,n=e.visualElement,r=ct((function(){return new Oa(n)}));(0,s.useEffect)((function(){return t&&t.subscribe(r)}),[r,t]),(0,s.useEffect)((function(){return r.addListeners()}),[r])}))},Na=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],Ma=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=Na.map((function(){return new Si})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){Na.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"+Na[t]]=function(t){return e.add(t)},n["notify"+Na[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Ie([],Be(t),!1))}})),n}(),S=new Map,T=new Map,L={},A=Fe({},E);function P(){y&&w&&(k(),s(y,x,p.style,j.projection))}function k(){r(j,x,E,t,p)}function O(){C.notifyUpdate(E)}function R(e,t){var n=t.onChange((function(t){E[e]=t,p.onUpdate&&it.update(O,!1,!0)})),r=t.onRenderRequest(j.scheduleRender);T.set(e,(function(){n(),r()}))}var V=d(p);for(var N in V){var M=V[N];void 0!==E[N]&&tn(M)&&M.set(E[N],!1)}var D=Dt(p),_=_t(p),j=Fe(Fe({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:m,shouldReduceMotion:g,variantChildren:_?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=j.current=e,j.projection&&j.projection.mount(e),_&&f&&!D&&(b=null==f?void 0:f.addVariantChild(j)),S.forEach((function(e,t){return R(t,e)})),null==f||f.children.add(j),j.setProps(p)},unmount:function(){var e;null===(e=j.projection)||void 0===e||e.unmount(),Qe.update(O),Qe.render(P),T.forEach((function(e){return e()})),null==b||b(),null==f||f.children.delete(j),C.clearAllListeners(),y=void 0,w=!1},addVariantChild:function(e){var t,n=j.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(j.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return _?j: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){j.isVisible!==e&&(j.isVisible=e,j.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),i(j,e,p,t)},measureViewportBox:function(){return a(y,p)},addValue:function(e,t){j.hasValue(e)&&j.removeValue(e),S.set(e,t),E[e]=t.get(),R(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=Li(t),j.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&&!tn(t))return t}return A[e]}},C),{build:function(){return k(),x},scheduleRender:function(){it.render(P,!1,!0)},syncRender:P,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&j.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(tn(i))e.addValue(o,i);else if(tn(a))e.addValue(o,Li(i));else if(a!==i)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(i)}else e.addValue(o,Li(null!==(r=e.getStaticValue(o))&&void 0!==r?r:i))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(j,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<_a;r++){var o=Da[r],i=p[o];(Vt(i)||!1===i)&&(n[o]=i)}return n}});return j}},Da=Ie(["initial"],Be(Fi),!1),_a=Da.length;function ja(e){return"string"==typeof e&&e.startsWith("var(--")}var Fa=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Ha(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=Be(function(e){var t=Fa.exec(e);if(!t)return[,];var n=Be(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():ja(i)?Ha(i,t,n+1):i}}var Ba,Ia=new Set(["width","height","top","left","right","bottom","x","y"]),Ua=function(e){return Ia.has(e)},za=function(e,t){e.set(t,!1),e.set(t)},Za=function(e){return e===bn||e===hn};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Ba||(Ba={}));var Wa=function(e,t){return parseFloat(e.split(", ")[t])},qa=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 Wa(i[1],t);var a=o.match(/^matrix\((.+)\)$/);return a?Wa(a[1],e):0}},$a=new Set(["x","y","z"]),Ya=Yt.filter((function(e){return!$a.has(e)})),Xa={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:qa(4,13),y:qa(5,14)};function Ga(e,t,n,r){return function(e){return Object.keys(e).some(Ua)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=Fe({},t),r=Fe({},r);var o=Object.keys(t).filter(Ua),i=[],a=!1,s=[];if(o.forEach((function(o){var l=e.getValue(o);if(e.hasValue(o)){var u,c=n[o],d=ki(c),f=t[o];if($n(f)){var p=f.length,m=null===f[0]?1:0;c=f[m],d=ki(c);for(var h=m;h<p;h++)u?ki(f[h]):(u=ki(f[h]))===d||Za(d)&&Za(u)}else u=ki(f);if(d!==u)if(Za(d)&&Za(u)){var v=l.get();"string"==typeof v&&l.set(parseFloat(v)),"string"==typeof f?t[o]=parseFloat(f):Array.isArray(f)&&u===hn&&(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 Ya.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],za(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]=Xa[e](r,i)})),t.syncRender();var l=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);za(r,s[n]),e[n]=Xa[n](l,i)})),e}(t,e,s);return i.length&&i.forEach((function(t){var n=Be(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 Ja={treeType:"dom",readValueFromInstance:function(e,t){if(Jt(t)){var n=pi(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(rn(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 Pa(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=He(t,["transition","transitionEnd"]),l=function(e,t,n){var r,o,i={};for(var a in e)i[a]=null!==(r=Ni(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&&(wi(f)||Ei(f))?f=parseFloat(f):!Ri(f)&&mo.test(d)&&(f=mi(c,d)),e.addValue(c,Li(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=He(t,[]),i=e.getInstance();if(!(i instanceof Element))return{target:o,transitionEnd:n};for(var a in n&&(n=Fe({},n)),e.forEachValue((function(e){var t=e.get();if(ja(t)){var n=Ha(t,i);n&&e.set(n)}})),o){var s=o[a];if(ja(s)){var l=Ha(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 Ga(e,t=o.target,n,r=o.transitionEnd)}(e,s,l,a);a=u.transitionEnd,s=u.target}return Fe({transition:i,transitionEnd:a},s)},scrapeMotionValuesFromProps:Zn,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),Sn(t,n,r,o.transformTemplate)},render:In},Ka=Ma(Ja),Qa=Ma(Fe(Fe({},Ja),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Jt(t)?(null===(n=pi(t))||void 0===n?void 0:n.default)||0:(t=Un.has(t)?t:Bn(t),e.getAttribute(t))},scrapeMotionValuesFromProps:Wn,build:function(e,t,n,r,o){Mn(t,n,r,o.transformTemplate)},render:zn})),es=function(e,t){return Wt(e)?Qa(t,{enableHardwareAcceleration:!1}):Ka(t,{enableHardwareAcceleration:!0})};function ts(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ns={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!hn.test(e))return e;e=parseFloat(e)}var n=ts(e,t.target.x),r=ts(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},rs="_$css",os={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,i=e.includes("var("),a=[];i&&(e=e.replace(Fa,(function(e){return a.push(e),rs})));var s=mo.parse(e);if(s.length>5)return o;var l=mo.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=Wr(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(rs,(function(){var e=a[m];return m++,e}))}return p}},is=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return je(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=as,Object.assign(qt,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(Fe(Fe({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),Ft.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()||it.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),as={borderRadius:Fe(Fe({},ns),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ns,borderTopRightRadius:ns,borderBottomLeftRadius:ns,borderBottomRightRadius:ns,boxShadow:os},ss={measureLayout:function(e){var t=Be(Dr(),2),n=t[0],r=t[1],o=(0,s.useContext)(vt);return s.createElement(is,Fe({},e,{layoutGroup:o,switchLayoutGroup:(0,s.useContext)(Bt),isPresent:n,safeToRemove:r}))}},ls=["TopLeft","TopRight","BottomLeft","BottomRight"],us=ls.length,cs=function(e){return"string"==typeof e?parseFloat(e):e},ds=function(e){return"number"==typeof e||hn.test(e)};function fs(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var ps=hs(0,.5,Ro),ms=hs(.5,.95,Lo);function hs(e,t,n){return function(r){return r<e?0:r>t?1:n(Zr(e,t,r))}}function vs(e,t){e.min=t.min,e.max=t.max}function gs(e,t){vs(e.x,t.x),vs(e.y,t.y)}function ys(e,t,n,r,o){return e=ba(e-=t,1/n,r),void 0!==o&&(e=ba(e,1/o,r)),e}function bs(e,t,n,r,o){var i=Be(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),mn.test(t)&&(t=parseFloat(t),t=Wr(a.min,a.max,t/100)-a.min),"number"==typeof t){var s=Wr(i.min,i.max,r);e===i&&(s-=t),e.min=ys(e.min,t,n,s,o),e.max=ys(e.max,t,n,s,o)}}(e,t[a],t[s],t[l],t.scale,r,o)}var ws=["x","scaleX","originX"],Es=["y","scaleY","originY"];function xs(e,t,n,r){bs(e.x,t,ws,null==n?void 0:n.x,null==r?void 0:r.x),bs(e.y,t,Es,null==n?void 0:n.y,null==r?void 0:r.y)}function Cs(e){return 0===e.translate&&1===e.scale}function Ss(e){return Cs(e.x)&&Cs(e.y)}function Ts(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 Ls=function(){function e(){this.members=[]}return e.prototype.add=function(e){xi(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(Ci(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 As(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 Ps=function(e,t){return e.depth-t.depth},ks=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){xi(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){Ci(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(Ps),this.isDirty=!1,this.children.forEach(e)},e}();function Os(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(js),o.nodes.forEach(Fs)},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?Ie(Ie([],Be(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 ks)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Si),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,Ie([],Be(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),Ft.hasAnimatedSinceResize&&(Ft.hasAnimatedSinceResize=!1,o.nodes.forEach(_s))}))}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:Zs,p=l.getProps(),m=p.onLayoutAnimationStart,h=p.onLayoutAnimationComplete,v=!o.targetLayout||!Ts(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=Fe(Fe({},yi(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,Qe.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(Hs))},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(Ms);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Ws),this.potentialNodes.clear()),this.nodes.forEach(Ds),this.nodes.forEach(Rs),this.nodes.forEach(Vs),this.clearAllSnapshots(),et.update(),et.preRender(),et.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Ns),this.sharedNodes.forEach(Bs)},e.prototype.scheduleUpdateProjection=function(){it.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;it.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));$s(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();$s(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&&!Ss(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||ga(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&&(Ca(t.x,n.x),Ca(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};gs(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){gs(t,e);var s=this.root.scroll;s&&(Ca(t.x,-s.x),Ca(t.y,-s.y))}Ca(t.x,o.x),Ca(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}};gs(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&&Aa(n,{x:-o.scroll.x,y:-o.scroll.y}),ga(o.latestValues)&&Aa(n,o.latestValues)}return ga(this.latestValues)&&Aa(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};gs(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&ga(o.latestValues)){va(o.latestValues)&&o.updateSnapshot();var i={x:{min:0,max:0},y:{min:0,max:0}};gs(i,o.measure()),xs(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,i)}}return ga(this.latestValues)&&xs(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Fe(Fe(Fe({},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}},sa(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),gs(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,ia(t.x,n.x,r.x),ia(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):gs(this.target,this.layout.actual),xa(this.target,this.targetDelta)):gs(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}},sa(this.relativeTargetOrigin,this.target,this.relativeParent.target),gs(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!ga(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();gs(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&&Aa(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,xa(e,l)),r&&ga(s.latestValues)&&Aa(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;oa(this.projectionDelta,this.layoutCorrected,i,this.latestValues),this.projectionTransform=As(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=Fe({},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(zs));this.animationProgress=0,this.mixTargetDelta=function(t){var n,o,f,p,m,h=t/1e3;Is(s.x,e.x,h),Is(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)&&(sa(l,r.layout.actual,r.relativeParent.layout.actual),o=r.relativeTarget,f=r.relativeTargetOrigin,p=l,m=h,Us(o.x,f.x,p.x,m),Us(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=Wr(0,null!==(a=n.opacity)&&void 0!==a?a:1,ps(r)),e.opacityExit=Wr(null!==(s=t.opacity)&&void 0!==s?s:1,0,ms(r))):i&&(e.opacity=Wr(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<us;c++){var d="border".concat(ls[c],"Radius"),f=fs(t,d),p=fs(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||ds(f)===ds(p)?(e[d]=Math.max(Wr(cs(f),cs(p),r),0),(mn.test(p)||mn.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=Wr(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&&(Qe.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=it.update((function(){Ft.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=tn(0)?0:Li(0);return bi("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,Fe(Fe({},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&&(gs(t,n),Aa(t,o),oa(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 Ls),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<$t.length;r++){var o="rotate"+$t[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=Xn(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=Xn(e.pointerEvents)||""),this.hasProjected&&!ga(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=As(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,qt)if(void 0!==d[h]){var v=qt[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?Xn(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(Ms),this.root.sharedNodes.clear()},e}()}function Rs(e){e.updateLayout()}function Vs(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?pa((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=ta(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&pa((function(e){var t=i.isShared?i.measured[e]:i.layout[e],n=ta(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}};oa(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?oa(c,e.applyTransform(l,!0),i.measured):oa(c,s,i.layout);var d=!Ss(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}};sa(v,i.layout,m.layout);var g={x:{min:0,max:0},y:{min:0,max:0}};sa(g,s,h.actual),Ts(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 Ns(e){e.clearSnapshot()}function Ms(e){e.clearMeasurements()}function Ds(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function _s(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function js(e){e.resolveTargetDelta()}function Fs(e){e.calcProjection()}function Hs(e){e.resetRotation()}function Bs(e){e.removeLeadSnapshot()}function Is(e,t,n){e.translate=Wr(t.translate,0,n),e.scale=Wr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Us(e,t,n,r){e.min=Wr(t.min,n.min,r),e.max=Wr(t.max,n.max,r)}function zs(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var Zs={duration:.45,ease:[.4,0,.1,1]};function Ws(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 qs(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function $s(e){qs(e.x),qs(e.y)}var Ys=Os({attachResizeListener:function(e,t){return nr(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Xs={current:void 0},Gs=Os({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Xs.current){var e=new Ys(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Xs.current=e}return Xs.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),Js=Fe(Fe(Fe(Fe({},zi),Mr),Va),ss),Ks=zt((function(e,t){return function(e,t,n,r,o){var i=t.forwardMotionProps,a=void 0!==i&&i,s=Wt(e)?er:tr;return Fe(Fe({},s),{preloadedFeatures:n,useRender:Fn(a),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,Js,es,Gs)}));function Qs(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 el(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 tl,nl=function(){},rl=nl(),ol=Object,il=function(e){return e===rl},al=function(e){return"function"==typeof e},sl=function(e,t){return ol.assign({},e,t)},ll="undefined",ul=function(){return typeof window!=ll},cl=new WeakMap,dl=0,fl=function(e){var t,n,r=typeof e,o=e&&e.constructor,i=o==Date;if(ol(e)!==e||i||o==RegExp)t=i?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=cl.get(e))return t;if(t=++dl+"~",cl.set(e,t),o==Array){for(t="@",n=0;n<e.length;n++)t+=fl(e[n])+",";cl.set(e,t)}if(o==ol){t="#";for(var a=ol.keys(e).sort();!il(n=a.pop());)il(e[n])||(t+=n+":"+fl(e[n])+",");cl.set(e,t)}}return t},pl=!0,ml=ul(),hl=typeof document!=ll,vl=ml&&window.addEventListener?window.addEventListener.bind(window):nl,gl=hl?document.addEventListener.bind(document):nl,yl=ml&&window.removeEventListener?window.removeEventListener.bind(window):nl,bl=hl?document.removeEventListener.bind(document):nl,wl={isOnline:function(){return pl},isVisible:function(){var e=hl&&document.visibilityState;return il(e)||"hidden"!==e}},El={initFocus:function(e){return gl("visibilitychange",e),vl("focus",e),function(){bl("visibilitychange",e),yl("focus",e)}},initReconnect:function(e){var t=function(){pl=!0,e()},n=function(){pl=!1};return vl("online",t),vl("offline",n),function(){yl("online",t),yl("offline",n)}}},xl=!ul()||"Deno"in window,Cl=xl?s.useEffect:s.useLayoutEffect,Sl="undefined"!=typeof navigator&&navigator.connection,Tl=!xl&&Sl&&(["slow-2g","2g"].includes(Sl.effectiveType)||Sl.saveData),Ll=function(e){if(al(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?fl(e):"",t,e?"$swr$"+e:""]},Al=new WeakMap,Pl=function(e,t,n,r,o,i,a){void 0===a&&(a=!0);var s=Al.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)},kl=0,Ol=function(){return++kl},Rl=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Qs(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 el(this,(function(x){switch(x.label){case 0:if(t=e[0],n=e[1],r=e[2],o=e[3],a=!!il((i="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||i.populateCache,s=!1!==i.revalidate,l=!1!==i.rollbackOnError,u=i.optimisticData,c=Ll(n),d=c[0],f=c[2],!d)return[2];if(p=Al.get(t),m=p[2],e.length<3)return[2,Pl(t,d,t.get(d),rl,rl,s,!0)];if(h=r,g=Ol(),m[d]=[g,0],y=!il(u),b=t.get(d),y&&(w=al(u)?u(b):u,t.set(d,w),Pl(t,d,w)),al(h))try{h=h(t.get(d))}catch(e){v=e}return h&&al(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||(al(a)&&(h=a(h,b)),t.set(d,h)),t.set(f,sl(t.get(f),{error:v}))),m[d][1]=Ol(),[4,Pl(t,d,h,v,rl,s,!!a)];case 3:if(E=x.sent(),v)throw v;return[2,a?E:h]}}))}))},Vl=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},Nl=function(e,t){if(!Al.has(e)){var n=sl(El,t),r={},o=Rl.bind(rl,e),i=nl;if(Al.set(e,[r,{},{},{},o]),!xl){var a=n.initFocus(setTimeout.bind(rl,Vl.bind(rl,r,0))),s=n.initReconnect(setTimeout.bind(rl,Vl.bind(rl,r,1)));i=function(){a&&a(),s&&s(),Al.delete(e)}}return[e,o,i]}return[e,Al.get(e)[4]]},Ml=Nl(new Map),Dl=Ml[0],_l=Ml[1],jl=sl({onLoadingSlow:nl,onSuccess:nl,onError:nl,onErrorRetry:function(e,__,t,n,r){var o=t.errorRetryCount,i=r.retryCount,a=~~((Math.random()+.5)*(1<<(i<8?i:8)))*t.errorRetryInterval;!il(o)&&i>o||setTimeout(n,a,r)},onDiscarded:nl,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Tl?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Tl?5e3:3e3,compare:function(e,t){return fl(e)==fl(t)},isPaused:function(){return!1},cache:Dl,mutate:_l,fallback:{}},wl),Fl=function(e,t){var n=sl(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=sl(o,a))}return n},Hl=(0,s.createContext)({}),Bl=function(e){return al(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},Il=function(){return sl(jl,(0,s.useContext)(Hl))},Ul=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())}},zl={dedupe:!0},Zl=ol.defineProperty((function(e){var t=e.value,n=Fl((0,s.useContext)(Hl),t),r=t&&t.provider,o=(0,s.useState)((function(){return r?Nl(r(n.cache||Dl),t):rl}))[0];return o&&(n.cache=o[0],n.mutate=o[1]),Cl((function(){return o?o[2]:rl}),[]),(0,s.createElement)(Hl.Provider,sl(e,{value:n}))}),"default",{value:jl}),Wl=(tl=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=Al.get(r),p=f[0],m=f[1],h=f[2],v=f[3],g=Ll(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,sl(r.get(w),e))},k=r.get(y),O=il(i)?n.fallback[y]:i,R=il(k)?O:k,V=r.get(w)||{},N=V.error,M=!E.current,D=function(){return M&&!il(l)?l:!L().isPaused()&&(a?!il(R)&&n.revalidateIfStale:il(R)||n.revalidateIfStale)},_=!(!y||!t)&&(!!V.isValidating||M&&D()),j=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 Cl((function(){r.current=e})),[r,o.current,i]}({data:R,error:N,isValidating:_},x),F=j[0],H=j[1],B=j[2],I=(0,s.useCallback)((function(e){return Qs(void 0,void 0,void 0,(function(){var t,i,a,s,l,u,c,d,f,p,m,g,w;return el(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&&(Pl(r,y,F.current.data,F.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),Ol()]),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:rl}),f.error=rl,m=h[y],!il(m)&&(a<=m[0]||a<=m[1]||0===m[1])?(p(),u&&c()&&L().onDiscarded(y),[2,!1]):(o(F.current.data,i)?f.data=F.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||al(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&&Pl(r,y,f.data,f.error,!1),[2,!0]}}))}))}),[y]),U=(0,s.useCallback)(Rl.bind(rl,r,(function(){return C.current})),[]);if(Cl((function(){S.current=t,T.current=n})),Cl((function(){if(y){var e=y!==C.current,t=I.bind(rl,zl),n=0,r=Ul(y,m,(function(e,t,n){B(sl({error:t,isValidating:n},o(F.current.data,e)?rl:{data:e}))})),i=Ul(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:R,error:N,isValidating:_}),D()&&(il(R)||xl?t():function(e){ul()&&typeof window.requestAnimationFrame!=ll?window.requestAnimationFrame(e):setTimeout(e,1)}(t)),function(){x.current=!0,r(),i()}}}),[y,I]),Cl((function(){var e;function t(){var t=al(u)?u(R):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){F.current.error||!c&&!L().isVisible()||!d&&!L().isOnline()?t():I(zl).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[u,c,d,I]),(0,s.useDebugValue)(R),a&&il(R)&&y)throw S.current=t,T.current=n,x.current=!1,il(N)?I(zl):N;return{mutate:U,get data(){return H.data=!0,R},get error(){return H.error=!0,N},get isValidating(){return H.isValidating=!0,_}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Il(),r=Bl(e),o=r[0],i=r[1],a=r[2],s=Fl(n,a),l=tl,u=s.use;if(u)for(var c=u.length;c-- >0;)l=u[c](l);return l(o,i||s.fetcher,s)}),ql=function(){return ql=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},ql.apply(this,arguments)},$l=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])||{}]},Yl=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=$l(n),i=o[0],a=o[1],s=o[2],l=(s.use||[]).concat(t);return e(i,a,ql(ql({},s),{use:l}))}}(Wl,(function(e){return function(t,n,r){return r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r)}})),Xl={grad:.9,turn:360,rad:360/(2*Math.PI)},Gl=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Jl=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Kl=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Ql=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},eu=function(e){return{r:Kl(e.r,0,255),g:Kl(e.g,0,255),b:Kl(e.b,0,255),a:Kl(e.a)}},tu=function(e){return{r:Jl(e.r),g:Jl(e.g),b:Jl(e.b),a:Jl(e.a,3)}},nu=/^#([0-9a-f]{3,8})$/i,ru=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},ou=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}},iu=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}},au=function(e){return{h:Ql(e.h),s:Kl(e.s,0,100),l:Kl(e.l,0,100),a:Kl(e.a)}},su=function(e){return{h:Jl(e.h),s:Jl(e.s),l:Jl(e.l),a:Jl(e.a,3)}},lu=function(e){return iu((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},uu=function(e){return{h:(t=ou(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},cu=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,du=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,fu=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,pu=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,mu={string:[[function(e){var t=nu.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?Jl(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?Jl(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=fu.exec(e)||pu.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:eu({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=cu.exec(e)||du.exec(e);if(!t)return null;var n,r,o=au({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(Xl[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return lu(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 Gl(t)&&Gl(n)&&Gl(r)?eu({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(!Gl(t)||!Gl(n)||!Gl(r))return null;var a=au({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return lu(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!Gl(t)||!Gl(n)||!Gl(r))return null;var a=function(e){return{h:Ql(e.h),s:Kl(e.s,0,100),v:Kl(e.v,0,100),a:Kl(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return iu(a)},"hsv"]]},hu=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]},vu=function(e,t){var n=uu(e);return{h:n.h,s:Kl(n.s+100*t,0,100),l:n.l,a:n.a}},gu=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},yu=function(e,t){var n=uu(e);return{h:n.h,s:n.s,l:Kl(n.l+100*t,0,100),a:n.a}},bu=function(){function e(e){this.parsed=function(e){return"string"==typeof e?hu(e.trim(),mu.string):"object"==typeof e&&null!==e?hu(e,mu.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 Jl(gu(this.rgba),2)},e.prototype.isDark=function(){return gu(this.rgba)<.5},e.prototype.isLight=function(){return gu(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=tu(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?ru(Jl(255*o)):"","#"+ru(t)+ru(n)+ru(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return tu(this.rgba)},e.prototype.toRgbString=function(){return t=(e=tu(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 su(uu(this.rgba))},e.prototype.toHslString=function(){return t=(e=su(uu(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=ou(this.rgba),{h:Jl(e.h),s:Jl(e.s),v:Jl(e.v),a:Jl(e.a,3)};var e},e.prototype.invert=function(){return wu({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),wu(vu(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),wu(vu(this.rgba,-e))},e.prototype.grayscale=function(){return wu(vu(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),wu(yu(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),wu(yu(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?wu({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Jl(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=uu(this.rgba);return"number"==typeof e?wu({h:e,s:t.s,l:t.l,a:t.a}):Jl(t.h)},e.prototype.isEqual=function(e){return this.toHex()===wu(e).toHex()},e}(),wu=function(e){return e instanceof bu?e:new bu(e)};const Eu=()=>{const{data:t}=Yl("adminColors",(()=>{var e,t;const n=null===(e=document)||void 0===e?void 0:e.querySelector("a.wp-has-current-submenu");if(!n)return null;const r=null===(t=window.getComputedStyle(n))||void 0===t?void 0:t["background-color"];return{mainColor:r,darkColor:wu(r).darken(.5).toHex()}}));return(0,e.useEffect)((()=>{null!=t&&t.mainColor&&document.documentElement.style.setProperty("--wp-admin-theme-color",t.mainColor)}),[t]),t||{}},xu=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 Cu=n(798);const{useSyncExternalStoreWithSelector:Su}=Cu,Tu=e=>{const t="function"==typeof e?(e=>e?xu(e):xu)(e):e,n=(e,n)=>function(e,t=e.getState,n){const r=Su(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},Lu=e=>e?Tu(e):Tu,Au=(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"):Pu(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 Pu(e.state,(e=>{d(e),u.init(o.getState())}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return Pu(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},Pu=(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)},ku=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(e){return ku(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return ku(t)(e)}}}},Ou=(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=ku(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 ku(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 Ru(e,t){return function(){return e.apply(t,arguments)}}const{toString:Vu}=Object.prototype,{getPrototypeOf:Nu}=Object,Mu=(e=>t=>{const n=Vu.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Du=e=>(e=e.toLowerCase(),t=>Mu(t)===e),_u=e=>t=>typeof t===e,{isArray:ju}=Array,Fu=_u("undefined"),Hu=Du("ArrayBuffer"),Bu=_u("string"),Iu=_u("function"),Uu=_u("number"),zu=e=>null!==e&&"object"==typeof e,Zu=e=>{if("object"!==Mu(e))return!1;const t=Nu(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Wu=Du("Date"),qu=Du("File"),$u=Du("Blob"),Yu=Du("FileList"),Xu=Du("URLSearchParams");function Gu(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),ju(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 Ju=(Ku="undefined"!=typeof Uint8Array&&Nu(Uint8Array),e=>Ku&&e instanceof Ku);var Ku;const Qu=Du("HTMLFormElement"),ec=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),tc=Du("RegExp"),nc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Gu(n,((n,o)=>{!1!==t(n,o,e)&&(r[o]=n)})),Object.defineProperties(e,r)};var rc={isArray:ju,isArrayBuffer:Hu,isBuffer:function(e){return null!==e&&!Fu(e)&&null!==e.constructor&&!Fu(e.constructor)&&Iu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{const t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||Vu.call(e)===t||Iu(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Hu(e.buffer),t},isString:Bu,isNumber:Uu,isBoolean:e=>!0===e||!1===e,isObject:zu,isPlainObject:Zu,isUndefined:Fu,isDate:Wu,isFile:qu,isBlob:$u,isRegExp:tc,isFunction:Iu,isStream:e=>zu(e)&&Iu(e.pipe),isURLSearchParams:Xu,isTypedArray:Ju,isFileList:Yu,forEach:Gu,merge:function e(){const t={},n=(n,r)=>{Zu(t[r])&&Zu(n)?t[r]=e(t[r],n):Zu(n)?t[r]=e({},n):ju(n)?t[r]=n.slice():t[r]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Gu(arguments[e],n);return t},extend:(e,t,n,{allOwnKeys:r}={})=>(Gu(t,((t,r)=>{n&&Iu(t)?e[r]=Ru(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&&Nu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Mu,kindOfTest:Du,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(ju(e))return e;let t=e.length;if(!Uu(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:Qu,hasOwnProperty:ec,hasOwnProp:ec,reduceDescriptors:nc,freezeMethods:e=>{nc(e,((t,n)=>{const r=e[n];Iu(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 ju(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 oc(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)}rc.inherits(oc,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 ic=oc.prototype,ac={};["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=>{ac[e]={value:e}})),Object.defineProperties(oc,ac),Object.defineProperty(ic,"isAxiosError",{value:!0}),oc.from=(e,t,n,r,o,i)=>{const a=Object.create(ic);return rc.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),oc.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var sc=oc,lc=n(230);function uc(e){return rc.isPlainObject(e)||rc.isArray(e)}function cc(e){return rc.endsWith(e,"[]")?e.slice(0,-2):e}function dc(e,t,n){return e?e.concat(t).map((function(e,t){return e=cc(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const fc=rc.toFlatObject(rc,{},null,(function(e){return/^is[A-Z]/.test(e)}));var pc=function(e,t,n){if(!rc.isObject(e))throw new TypeError("target must be an object");t=t||new(lc||FormData);const r=(n=rc.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!rc.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&(l=t)&&rc.isFunction(l.append)&&"FormData"===l[Symbol.toStringTag]&&l[Symbol.iterator];var l;if(!rc.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(rc.isDate(e))return e.toISOString();if(!s&&rc.isBlob(e))throw new sc("Blob is not supported. Use a Buffer instead.");return rc.isArrayBuffer(e)||rc.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(rc.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(rc.isArray(e)&&function(e){return rc.isArray(e)&&!e.some(uc)}(e)||rc.isFileList(e)||rc.endsWith(n,"[]")&&(s=rc.toArray(e)))return n=cc(n),s.forEach((function(e,r){!rc.isUndefined(e)&&null!==e&&t.append(!0===a?dc([n],r,i):null===a?n:n+"[]",u(e))})),!1;return!!uc(e)||(t.append(dc(o,n,i),u(e)),!1)}const d=[],f=Object.assign(fc,{defaultVisitor:c,convertValue:u,isVisitable:uc});if(!rc.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!rc.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),rc.forEach(n,(function(n,i){!0===(!(rc.isUndefined(n)||null===n)&&o.call(t,n,rc.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])})),d.pop()}}(e),t};function mc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function hc(e,t){this._pairs=[],e&&pc(e,this,t)}const vc=hc.prototype;vc.append=function(e,t){this._pairs.push([e,t])},vc.toString=function(e){const t=e?function(t){return e.call(this,t,mc)}:mc;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var gc=hc;function yc(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bc(e,t,n){if(!t)return e;const r=n&&n.encode||yc,o=n&&n.serialize;let i;if(i=o?o(t,n):rc.isURLSearchParams(t)?t.toString():new gc(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}var wc=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){rc.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Ec={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xc="undefined"!=typeof URLSearchParams?URLSearchParams:gc,Cc=FormData;const Sc=(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})();var Tc={isBrowser:!0,classes:{URLSearchParams:xc,FormData:Cc,Blob:Blob},isStandardBrowserEnv:Sc,protocols:["http","https","file","blob","url","data"]},Lc=function(e){function t(e,n,r,o){let i=e[o++];const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&rc.isArray(r)?r.length:i,s?(rc.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&rc.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&rc.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(rc.isFormData(e)&&rc.isFunction(e.entries)){const n={};return rc.forEachEntry(e,((e,r)=>{t(function(e){return rc.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},Ac=Tc.isStandardBrowserEnv?{write:function(e,t,n,r,o,i){const a=[];a.push(e+"="+encodeURIComponent(t)),rc.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),rc.isString(r)&&a.push("path="+r),rc.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 Pc(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 kc=Tc.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=rc.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function Oc(e,t,n){sc.call(this,null==e?"canceled":e,sc.ERR_CANCELED,t,n),this.name="CanceledError"}rc.inherits(Oc,sc,{__CANCEL__:!0});var Rc=Oc;const Vc=rc.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"]),Nc=Symbol("internals"),Mc=Symbol("defaults");function Dc(e){return e&&String(e).trim().toLowerCase()}function _c(e){return!1===e||null==e?e:rc.isArray(e)?e.map(_c):String(e)}function jc(e,t,n,r){return rc.isFunction(r)?r.call(this,t,n):rc.isString(t)?rc.isString(r)?-1!==t.indexOf(r):rc.isRegExp(r)?r.test(t):void 0:void 0}function Fc(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 Hc(e,t){e&&this.set(e),this[Mc]=t||null}Object.assign(Hc.prototype,{set:function(e,t,n){const r=this;function o(e,t,n){const o=Dc(t);if(!o)throw new Error("header name must be a non-empty string");const i=Fc(r,o);(!i||!0===n||!1!==r[i]&&!1!==n)&&(r[i||t]=_c(e))}return rc.isPlainObject(e)?rc.forEach(e,((e,n)=>{o(e,n,t)})):o(t,e,n),this},get:function(e,t){if(!(e=Dc(e)))return;const n=Fc(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(rc.isFunction(t))return t.call(this,e,n);if(rc.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=Dc(e)){const n=Fc(this,e);return!(!n||t&&!jc(0,this[n],n,t))}return!1},delete:function(e,t){const n=this;let r=!1;function o(e){if(e=Dc(e)){const o=Fc(n,e);!o||t&&!jc(0,n[o],o,t)||(delete n[o],r=!0)}}return rc.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 rc.forEach(this,((r,o)=>{const i=Fc(n,o);if(i)return t[i]=_c(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]=_c(r),n[a]=!0})),this},toJSON:function(e){const t=Object.create(null);return rc.forEach(Object.assign({},this[Mc]||null,this),((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&rc.isArray(n)?n.join(", "):n)})),t}}),Object.assign(Hc,{from:function(e){return rc.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]&&Vc[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[Nc]=this[Nc]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Dc(e);t[r]||(function(e,t){const n=rc.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 rc.isArray(e)?e.forEach(r):r(e),this}}),Hc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),rc.freezeMethods(Hc.prototype),rc.freezeMethods(Hc);var Bc=Hc;function Ic(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 Uc(e){return new Promise((function(t,n){let r=e.data;const o=Bc.from(e.headers).normalize(),i=e.responseType;let a;function s(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}rc.isFormData(r)&&Tc.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=Pc(e.baseURL,e.url);function c(){if(!l)return;const r=Bc.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new sc("Request failed with status code "+n.status,[sc.ERR_BAD_REQUEST,sc.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(),bc(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 sc("Request aborted",sc.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new sc("Network Error",sc.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||Ec;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new sc(t,r.clarifyTimeoutError?sc.ETIMEDOUT:sc.ECONNABORTED,e,l)),l=null},Tc.isStandardBrowserEnv){const t=(e.withCredentials||kc(u))&&e.xsrfCookieName&&Ac.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in l&&rc.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),rc.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&"json"!==i&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",Ic(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",Ic(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{l&&(n(!t||t.type?new Rc(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===Tc.protocols.indexOf(d)?n(new sc("Unsupported protocol "+d+":",sc.ERR_BAD_REQUEST,e)):l.send(r||null)}))}const zc={http:Uc,xhr:Uc};var Zc=e=>{if(rc.isString(e)){const t=zc[e];if(!e)throw Error(rc.hasOwnProp(e)?`Adapter '${e}' is not available in the build`:`Can not resolve adapter '${e}'`);return t}if(!rc.isFunction(e))throw new TypeError("adapter is not a function");return e};const Wc={"Content-Type":"application/x-www-form-urlencoded"},qc={transitional:Ec,adapter:function(){let e;return"undefined"!=typeof XMLHttpRequest?e=Zc("xhr"):"undefined"!=typeof process&&"process"===rc.kindOf(process)&&(e=Zc("http")),e}(),transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=rc.isObject(e);if(o&&rc.isHTMLForm(e)&&(e=new FormData(e)),rc.isFormData(e))return r&&r?JSON.stringify(Lc(e)):e;if(rc.isArrayBuffer(e)||rc.isBuffer(e)||rc.isStream(e)||rc.isFile(e)||rc.isBlob(e))return e;if(rc.isArrayBufferView(e))return e.buffer;if(rc.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 pc(e,new Tc.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Tc.isNode&&rc.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=rc.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return pc(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(rc.isString(e))try{return(0,JSON.parse)(e),rc.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||qc.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&rc.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 sc.from(e,sc.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:Tc.classes.FormData,Blob:Tc.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};rc.forEach(["delete","get","head"],(function(e){qc.headers[e]={}})),rc.forEach(["post","put","patch"],(function(e){qc.headers[e]=rc.merge(Wc)}));var $c=qc;function Yc(e,t){const n=this||$c,r=t||n,o=Bc.from(r.headers);let i=r.data;return rc.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Xc(e){return!(!e||!e.__CANCEL__)}function Gc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rc}function Jc(e){return Gc(e),e.headers=Bc.from(e.headers),e.data=Yc.call(e,e.transformRequest),(e.adapter||$c.adapter)(e).then((function(t){return Gc(e),t.data=Yc.call(e,e.transformResponse,t),t.headers=Bc.from(t.headers),t}),(function(t){return Xc(t)||(Gc(e),t&&t.response&&(t.response.data=Yc.call(e,e.transformResponse,t.response),t.response.headers=Bc.from(t.response.headers))),Promise.reject(t)}))}function Kc(e,t){t=t||{};const n={};function r(e,t){return rc.isPlainObject(e)&&rc.isPlainObject(t)?rc.merge(e,t):rc.isPlainObject(t)?rc.merge({},t):rc.isArray(t)?t.slice():t}function o(n){return rc.isUndefined(t[n])?rc.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function i(e){if(!rc.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return rc.isUndefined(t[n])?rc.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 rc.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){const t=l[e]||o,r=t(e);rc.isUndefined(r)&&t!==s||(n[e]=r)})),n}const Qc={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Qc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ed={};Qc.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 sc(r(o," has been removed"+(t?" in "+t:"")),sc.ERR_DEPRECATED);return t&&!ed[o]&&(ed[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 td={assertOptions:function(e,t,n){if("object"!=typeof e)throw new sc("options must be an object",sc.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 sc("option "+i+" must be "+n,sc.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new sc("Unknown option "+i,sc.ERR_BAD_OPTION)}},validators:Qc};const nd=td.validators;class rd{constructor(e){this.defaults=e,this.interceptors={request:new wc,response:new wc}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Kc(this.defaults,t);const{transitional:n,paramsSerializer:r}=t;void 0!==n&&td.assertOptions(n,{silentJSONParsing:nd.transitional(nd.boolean),forcedJSONParsing:nd.transitional(nd.boolean),clarifyTimeoutError:nd.transitional(nd.boolean)},!1),void 0!==r&&td.assertOptions(r,{encode:nd.function,serialize:nd.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();const o=t.headers&&rc.merge(t.headers.common,t.headers[t.method]);o&&rc.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),t.headers=new Bc(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=[Jc.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=Jc.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 bc(Pc((e=Kc(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}rc.forEach(["delete","get","head","options"],(function(e){rd.prototype[e]=function(t,n){return this.request(Kc(n||{},{method:e,url:t,data:(n||{}).data}))}})),rc.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Kc(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}rd.prototype[e]=t(),rd.prototype[e+"Form"]=t(!0)}));var od=rd;class id{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 Rc(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 id((function(t){e=t})),cancel:e}}}var ad=id;const sd=function e(t){const n=new od(t),r=Ru(od.prototype.request,n);return rc.extend(r,od.prototype,n,{allOwnKeys:!0}),rc.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Kc(t,n))},r}($c);sd.Axios=od,sd.CanceledError=Rc,sd.CancelToken=ad,sd.isCancel=Xc,sd.VERSION="1.1.3",sd.toFormData=pc,sd.AxiosError=sc,sd.Cancel=sd.CanceledError,sd.all=function(e){return Promise.all(e)},sd.spread=function(e){return function(t){return e.apply(null,t)}},sd.isAxiosError=function(e){return rc.isObject(e)&&!0===e.isAxiosError},sd.formToJSON=e=>Lc(rc.isHTMLForm(e)?new FormData(e):e);var ld=sd;const{Axios:ud,AxiosError:cd,CanceledError:dd,isCancel:fd,CancelToken:pd,VERSION:md,all:hd,Cancel:vd,isAxiosError:gd,spread:yd,toFormData:bd}=ld,wd=ld.create({baseURL:window.extAssistData.root,headers:{"X-WP-Nonce":window.extAssistData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Assist":!0,"X-Extendify":!0}});wd.interceptors.request.use((e=>Ed(e)),(e=>e)),wd.interceptors.response.use((e=>Object.prototype.hasOwnProperty.call(e,"data")?e.data:e));const Ed=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),xd={getItem:async()=>JSON.stringify(await wd.get("assist/task-data")),setItem:async(e,t)=>{return await(n=t,wd.post("assist/task-data",{data:n}));var n},removeItem:()=>{}},Cd=Lu(Ou(Au(((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:()=>xd})),Sd={getItem:async()=>JSON.stringify(await wd.get("assist/tour-data")),setItem:async(e,t)=>{return await(n=t,wd.post("assist/tour-data",{data:n}));var n},removeItem:()=>{}},Td=Lu(Ou(Au(((e,t)=>({currentTour:null,currentStep:0,progress:[],startTour(n){e({currentTour:n});const r=t().trackTourProgress(n.id);t().updateProgress(r.id,{openedCount:r.openedCount+1,lastAction:"started"})},completeCurrentTour(){if(!t().currentTour)return;const n=t().findTourProgress(t().currentTour.id);t().isCompleted(n.id)||t().updateProgress(n.id,{completedAt:(new Date).toISOString(),lastAction:"completed"}),t().updateProgress(n.id,{completedCount:n.completedCount+1,lastAction:"completed"}),e({currentTour:null,currentStep:0})},closeCurrentTourManually(){const n=t().findTourProgress(t().currentTour.id);t().updateProgress(n.id,{closedManuallyCount:n.closedManuallyCount+1,lastAction:"closed-manually"}),e({currentTour:null,currentStep:0})},closeCurrentTourFromError(){const n=t().findTourProgress(t().currentTour.id);t().updateProgress(n.id,{errored:!0,lastAction:"closed-by-caught-error"}),e({currentTour:null,currentStep:0})},findTourProgress(e){return t().progress.find((t=>t.id===e))},isCompleted(e){var n;return null===(n=t().findTourProgress(e))||void 0===n?void 0:n.completedAt},isSeen(e){var n;return null===(n=t().findTourProgress(e))||void 0===n?void 0:n.firstSeenAt},trackTourProgress(n){return t().findTourProgress(n)||e((e=>({progress:[...e.progress,{id:n,firstSeenAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),completedAt:null,lastAction:"init",currentStep:0,openedCount:0,closedManuallyCount:0,completedCount:0,errored:!1}]}))),t().findTourProgress(n)},updateProgress(t,n){var r;const o=null!==(r=null==n?void 0:n.lastAction)&&void 0!==r?r:"unknown";e((e=>({progress:e.progress.map((e=>e.id===t?{...e,...n,lastAction:o,updatedAt:(new Date).toISOString()}:e))})))},hasNextStep(){return!!t().currentTour&&t().currentStep<t().currentTour.steps.length-1},nextStep(){if(!t().hasNextStep())return void t().closeCurrentTourFromError();const n=t().currentTour,r=t().currentStep+1;e((()=>({currentStep:r}))),t().updateProgress(n.id,{currentStep:r,lastAction:"next"})},hasPreviousStep(){return!!t().currentTour&&t().currentStep>0},prevStep(){if(!t().hasPreviousStep())return void t().closeCurrentTourFromError();const n=t().currentTour,r=t().currentStep-1;e((()=>({currentStep:r}))),t().updateProgress(n.id,{currentStep:r,lastAction:"prev"})},goToStep(n){const r=t().currentTour;n<0||n>r.steps.length-1||(t().updateProgress(r.id,{currentStep:n,lastAction:`go-to-step-${n}`}),e((()=>({currentStep:n}))))}})),{name:"Extendify Assist Tour Progress"}),{name:"extendify-assist-tour-progress",getStorage:()=>Sd,partialize:e=>{const{currentTour:t,currentStep:n,...r}=e;return r}}));var Ld=window.lodash;const Ad=["-webkit-mask-image","-webkit-mask-size","-webkit-mask-repeat","-webkit-mask-position","-webkit-mask-origin","-webkit-mask-clip"],Pd=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=window.getComputedStyle(e);if(Array.from(o).forEach((e=>{e.startsWith("-")&&!Ad.includes(e)||t.style.setProperty(e,o.getPropertyValue(e),o.getPropertyPriority(e))})),t.style.pointerEvents="none",(null==n?void 0:n.includePsuedoDepth)>r){const n="id"+Math.round(performance.now()),r=document.createElement("style");t.classList.add(n),r.innerHTML=`.${n}::before { ${Object.entries(window.getComputedStyle(e,"before")).filter((e=>{let[t]=e;return!Number.isInteger(Number(t))})).map((e=>{let[t,n]=e;return`${(0,Ld.kebabCase)(t)}: ${n};`})).join(" ")} }`,document.getElementsByTagName("head")[0].appendChild(r)}const i=null==e?void 0:e.querySelectorAll("*"),a=null==t?void 0:t.querySelectorAll("*");i.forEach(((e,t)=>{Pd(i[t],a[t],n,r+1)}))},kd=()=>{var t,n;const i=(0,e.useRef)(),{currentTour:s,currentStep:l,closeCurrentTourManually:u,closeCurrentTourFromError:c}=Td(),{steps:d,settings:f}=s||{},{image:p,title:m,text:h,attachTo:v,events:g,cloneOptions:y}=null!==(t=null==d?void 0:d[l])&&void 0!==t?t:{},{onAttach:b,onDetach:w,beforeAttach:E}=g||{},{element:x,offset:C,position:S,hook:T}=v||{},[L,A]=(0,e.useState)(null),P=(0,e.useRef)(),[k,O]=(0,e.useState)(),[R,V]=(0,e.useState)(),N=20===k?{x:k,y:R}:{x:k,y:R,...C},M=(e=>{let{elementSelector:t,key:n,options:r}=e;const{data:o}=Yl(n,(()=>{const e=document.querySelector(t);if(!e)return null;const n=null==e?void 0:e.cloneNode(!0);return Pd(e,n,r),n.style.position="fixed",n.style.zIndex=999999,n}));return o})({elementSelector:x,key:{elementSelector:x,x:k},options:y});return(0,e.useLayoutEffect)((()=>{if(!s)return;const e=document.querySelector(x);if(!e)return void c();E&&E(M),A(e);const t=M,n=i.current,r=()=>{const e=(null==T?void 0:T.split(" "))||[];return{x:e.includes("right")?null==n?void 0:n.offsetWidth:0,y:e.includes("bottom")?null==n?void 0:n.offsetHeight:0}},o=()=>{w&&t&&w(t),t&&document.body.removeChild(t),A(null),removeEventListener("resize",a),O(null),V(null)},a=()=>{const t=null==e?void 0:e.getBoundingClientRect();if(window.innerWidth<=960){O(20),V(20);const e=requestAnimationFrame((()=>{null!=M&&M.parentNode&&(M.style.opacity=0)}));return()=>{cancelAnimationFrame(e),o()}}O((null==t?void 0:t[S.x])-r().x),V((null==t?void 0:t[S.y])-r().y),M&&(M.style.top=`${null==t?void 0:t.top}px`,M.style.left=`${null==t?void 0:t.left}px`,M.style.opacity=1)};return a(),M?(b&&b(M),document.body.appendChild(M),addEventListener("resize",a),o):o}),[c,M,l,s,x,T,S,E,b,w]),(0,e.useLayoutEffect)((()=>{if(null!=f&&f.allowOverflow)return document.documentElement.classList.add("ext-force-overflow-auto"),()=>{document.documentElement.classList.remove("ext-force-overflow-auto")}}),[f]),L?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(bt,null,Boolean(s)&&(0,e.createElement)(De,{as:Ks.div,static:!0,initialFocus:P,className:"extendify-assist",open:Boolean(s),onClose:()=>{}},(0,e.createElement)("div",{className:"relative z-high"},(0,e.createElement)(Ks.div,{ref:i,initial:{opacity:0,...N},animate:{opacity:1,...N},transition:{duration:.5,ease:"easeInOut"},className:"fixed top-0 left-0 shadow-2xl sm:overflow-hidden bg-transparent flex flex-col min-h-60 max-w-xs z-20",style:{minWidth:"325px"}},(0,e.createElement)("button",{className:"absolute bg-white cursor-pointer flex ring-gray ring-1 focus:ring-wp focus:ring-wp-theme-500 focus:shadow-none h-6 items-center justify-center leading-none m-2 outline-none p-0 right-0 rounded-full top-0 w-6 border-0 z-20",onClick:u,"aria-label":(0,r.__)("Close Modal","extendify")},(0,e.createElement)(o,{icon:a,className:"w-4 h-4"})),(0,e.createElement)(De.Title,{className:"sr-only"},null!==(n=null==s?void 0:s.title)&&void 0!==n?n:(0,r.__)("Tour","extendify")),(0,e.createElement)("div",{className:"w-full p-6",style:{background:"linear-gradient(58.72deg, #485563 7.71%, #29323C 92.87%)"}},p&&(0,e.createElement)("img",{src:p,className:"w-full block",alt:m})),(0,e.createElement)("div",{className:"m-0 p-6 pt-0 text-left relative bg-white"},m&&(0,e.createElement)("h2",{className:"text-xl font-medium mb-2"},m),h&&(0,e.createElement)("p",{className:"mb-6"},h),(0,e.createElement)(Od,{initialFocus:P})))))),(0,e.createElement)(bt,null,Boolean(s)&&(0,e.createElement)(Ks.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.1,ease:"easeIn"},className:"fixed inset-0 bg-black bg-opacity-60 transition-opacity z-high","aria-hidden":"true"}))):null},Od=n=>{let{initialFocus:o}=n;const{goToStep:i,completeCurrentTour:a,currentStep:s,nextStep:l,hasNextStep:u,hasPreviousStep:c,prevStep:d}=Td(),{currentTour:f}=Td(),{id:p,steps:m}=f||{},{mainColor:h}=Eu(),{completeTask:v}=Cd();return(0,e.createElement)("div",{className:"flex justify-between items-center w-full"},(0,e.createElement)("div",{className:"flex-1 flex justify-start"},(0,e.createElement)(bt,null,c()?(0,e.createElement)(Ks.div,{initial:{opacity:0},animate:{opacity:1}},(0,e.createElement)("button",{className:"flex p-0 h-8 rounded-sm items-center justify-center bg-transparent hover:bg-transparent focus:outline-none ring-wp-theme-500 focus:ring-wp focus:ring-offset-1 focus:ring-offset-white text-gray-900",onClick:d},(0,r.__)("Back","extendify"))):null)),(null==m?void 0:m.length)>2?(0,e.createElement)("nav",{role:"navigation","aria-label":(0,r.__)("Tour Steps","extendify"),className:"flex-1 flex items-center justify-center gap-1.5 transform -translate-x-3"},m.map(((t,n)=>(0,e.createElement)("div",{key:n},(0,e.createElement)("button",{style:{backgroundColor:n===s?h:void 0},"aria-label":(0,r.sprintf)((0,r.__)("%s of %s","extendify"),n+1,m.length),"aria-current":n===s,className:"focus:ring-wp focus:outline-none ring-offset-1 ring-offset-white focus:ring-wp-theme-500 block cursor-pointer w-2.5 h-2.5 m-0 p-0 rounded-full "+(n===s?"bg-wp-theme-500":"bg-gray-300"),onClick:()=>i(n)}))))):null,(0,e.createElement)("div",{className:"flex-1 flex justify-end"},u()?(0,e.createElement)(t.Button,{ref:o,onClick:l,style:{backgroundColor:h},variant:"primary"},(0,r.__)("Next","extendify")):(0,e.createElement)(t.Button,{onClick:()=>{v(p),a()},style:{backgroundColor:h},variant:"primary"},(0,r.__)("Done","extendify"))))},Rd={getItem:async()=>JSON.stringify(await wd.get("assist/global-data")),setItem:async(e,t)=>{return await(n=t,wd.post("assist/global-data",{data:n}));var n},removeItem:()=>{}},Vd=Lu(Ou(Au(((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:()=>Rd,partialize:e=>(delete e.modals,e)})),Nd=()=>{const{modals:n,popModal:i}=Vd(),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",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})))))},Md=()=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Nd,null),(0,e.createElement)(kd,null)),Dd=(e,t)=>wd.post("assist/options",{option:e,value:t}),_d=async e=>{const{data:t}=await wd.get("assist/options",{params:{option:e}});return t},jd=e=>{try{const t=new URL(e);return"https:"===window.location.protocol&&(t.protocol="https:"),t.toString()}catch(t){return e}},Fd=()=>{const{pages:n,loading:o,error:i}=(()=>{const{data:e,error:t}=Yl("pages-list",(async()=>{const e=await wd.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 lg:max-w-3/4 mx-auto p-4 lg:p-12"},(0,e.createElement)(t.Spinner,null)):0===n.length?(0,e.createElement)("div",{className:"my-4 lg:max-w-3/4 w-full mx-auto bg-gray-100 p-4 lg:p-12"},(0,r.__)("No pages found...","extendify")):(0,e.createElement)("div",{className:"my-4 text-base lg:max-w-3/4 w-full mx-auto p-4 lg:p-0"},(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:jd(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 Hd=n(184),Bd=n.n(Hd);function Id(){return Id=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},Id.apply(this,arguments)}(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Id({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 Ud=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",Id({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",Id({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",Id({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",Id({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",Id({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",Id({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",Id({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",Id({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",Id({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",Id({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",Id({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",Id({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",Id({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",Id({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",Id({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",Id({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",Id({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",Id({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",Id({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 zd=localStorage.getItem("extendify-site-selection"),Zd={getItem:zd?()=>(localStorage.removeItem("extendify-site-selection"),zd):async()=>JSON.stringify(await wd.get("assist/user-selection-data")),setItem:async(e,t)=>{return await(n=t,wd.post("assist/user-selection-data",{data:n}));var n},removeItem:()=>{}},Wd=Lu(Ou(Au((()=>({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:()=>Zd}));var qd=window.wp.blob,$d=window.wp.coreData,Yd=window.wp.data,Xd=window.wp.mediaUtils,Gd=window.wp.hooks;const Jd=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,Yd.useSelect)((e=>e($d.store).getMedia(c)),[c]),{mediaWidth:p,mediaHeight:m,mediaSourceUrl:h}=(e=>{var t,n,r,o;if(!e)return{};const i=(0,Gd.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,Gd.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)((()=>{_d(o).then((e=>d(Number(e))))}),[o]);const v=e=>{d(e.id),Dd(o,e.id),i()},g=e=>{(0,Xd.uploadMedia)({allowedTypes:["image"],filesList:e,onFileChange(e){let[t]=e;(0,qd.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)(Kd,null,(0,e.createElement)(Xd.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)(Kd,null,c&&(0,e.createElement)(Xd.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),Dd(o,0)},variant:"link",className:"ml-4",isDestructive:!0},(0,r.__)("Remove image","extendify")))))},Kd=n=>{let{fallback:r=null,children:o}=n;const{checkingPermissions:i,hasUploadPermissions:a}=(0,Yd.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)},Qd=t=>{let{setModalTitle:n}=t;const{completeTask:o}=Cd();return(0,e.useEffect)((()=>{n((0,r.__)("Upload site logo","extendify"))}),[n]),(0,e.createElement)(Jd,{type:"site_logo",title:(0,r.__)("Site logo","extendify"),actionLabel:(0,r.__)("Set site logo","extendify"),onUpdate:()=>{o("logo")}})},ef=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}=Cd(),{mainColor:d}=Eu();return(0,e.useEffect)((()=>{o((0,r.__)("Add site description","extendify"))}),[o]),(0,e.useEffect)((()=>{_d("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:Bd()("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 Dd("blogdescription",i),c("site-description"),n()}},(0,r.__)("Save","extendify"))))},tf=t=>{let{setModalTitle:n}=t;const{completeTask:o}=Cd();return(0,e.useEffect)((()=>{n((0,r.__)("Upload site icon","extendify"))}),[n]),(0,e.createElement)(Jd,{type:"site_icon",title:(0,r.__)("Site icon","extendify"),actionLabel:(0,r.__)("Set site icon","extendify"),onUpdate:()=>{o("site-icon")}})},nf=()=>{var e,t;const n=null===(e=document)||void 0===e?void 0:e.querySelector("a.wp-has-current-submenu");return n&&(null===(t=window.getComputedStyle(n))||void 0===t?void 0:t["background-color"])||"#1e1e1e"},rf=()=>{var e,t;const n=null===(e=document)||void 0===e?void 0:e.querySelector("a.wp-has-current-submenu");return n&&(null===(t=window.getComputedStyle(n))||void 0===t?void 0:t.color)||"#fff"},of=()=>{var e,t;const n=null===(e=document)||void 0===e?void 0:e.querySelector("#wpadminbar");if(!n)return"#1e1e1e";const r=null===(t=window.getComputedStyle(n))||void 0===t?void 0:t["background-color"];return r?wu(r).isDark()?nf():r:"#1e1e1e"};var af={id:"welcome-tour",title:(0,r.__)("Welcome Tour","extendify"),description:(0,r.__)("The Welcome Tour","extendify"),settings:{allowOverflow:!0},steps:[{title:(0,r.__)("Pages","extendify"),text:(0,r.__)("Use the pages menu to add, delete, or edit the pages on your site.","extendify"),image:window.extAssistData.asset_path+"/tours/welcome/add-pages.gif",attachTo:{element:"#menu-pages",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{onAttach:e=>{e.style.setProperty("background-color",nf()),Array.from(e.querySelectorAll("*")).forEach((e=>{e.style.setProperty("color",rf())}))}}},{title:(0,r.__)("Blog Posts","extendify"),text:(0,r.__)("Use the posts menu to add, delete, or edit blog posts on your site.","extendify"),image:window.extAssistData.asset_path+"/tours/welcome/blog-posts.gif",attachTo:{element:"#menu-posts",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{onAttach:e=>{e.style.setProperty("background-color",nf()),Array.from(e.querySelectorAll("*")).forEach((e=>{e.style.setProperty("color",rf())}))}}},{title:(0,r.__)("View Site","extendify"),text:(0,r.__)("At any time, you can view your site (from a visitor's perspective) from the top admin bar under your site's name.","extendify"),image:window.extAssistData.asset_path+"/tours/welcome/view-site.gif",attachTo:{element:"#wp-admin-bar-view-site",offset:{marginTop:0,marginLeft:10},position:{x:"right",y:"top"},hook:"top left"},cloneOptions:{includePsuedoDepth:2},events:{beforeAttach:()=>{var e,t;null===(e=document.querySelector("#wp-admin-bar-site-name"))||void 0===e||null===(t=e.classList)||void 0===t||t.add("hover")},onAttach:e=>{null==e||e.querySelectorAll("#wp-admin-bar-view-site *").forEach((e=>{var t,n;null==e||null===(t=e.style)||void 0===t||t.setProperty("background-color",of(),"important"),null==e||null===(n=e.style)||void 0===n||n.setProperty("color",rf(),"important")}))},onDetach:()=>{var e,t;null===(e=document.querySelector("#wp-admin-bar-site-name"))||void 0===e||null===(t=e.classList)||void 0===t||t.remove("hover")}}},{title:(0,r.__)("Site Assistant","extendify"),text:(0,r.__)("Your site assistant will give you personalized recommendations for your site and help guide you through what is needed to achieve your goals. You can access the assistant from the top admin bar or in the left side menu.","extendify"),image:window.extAssistData.asset_path+"/tours/welcome/site-assistant.gif",attachTo:{element:"#wp-admin-bar-extendify-assist-link",offset:{marginTop:15,marginLeft:0},position:{x:"right",y:"bottom"},hook:"top right"},events:{onAttach:e=>{var t,n;null===(t=e.querySelector(".ab-item"))||void 0===t||null===(n=t.style)||void 0===n||n.setProperty("background-color",of(),"important")}}}]};const sf=()=>{const{seeTask:n,completedTasks:o}=Cd(),{tasks:i,loading:a,error:s}=(()=>{const{data:e,error:t}=Yl("tasks",(async()=>{const e=await wd.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}})(),{activePlugins:l}=(()=>{const{data:e,error:t}=Yl("active-plugins",(async()=>{const e=await wd.get("assist/active-plugins");if(null==e||!e.data||!Array.isArray(e.data))throw console.error(e),new Error("Bad data");return e.data}));return{activePlugins:e,error:t,loading:!e&&!t}})(),[u,c]=(0,e.useState)(!1),d=(()=>{const[t,n]=(0,e.useState)(Cd.persist.hasHydrated);return(0,e.useEffect)((()=>{const e=Cd.persist.onFinishHydration((()=>n(!0)));return()=>{e()}}),[]),t})(),f=(()=>{const[t,n]=(0,e.useState)(Wd.persist.hasHydrated);return(0,e.useEffect)((()=>{const e=Wd.persist.onFinishHydration((()=>n(!0)));return()=>{e()}}),[]),t})(),p=null==i?void 0:i.filter((e=>{var t,n;return null==e||null===(t=e.plugins)||void 0===t||!t.length||(null==e||null===(n=e.plugins)||void 0===n?void 0:n.some((e=>l.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&&d&&p.forEach((e=>n(e.slug)))}),[p,n,d]),(0,e.useEffect)((()=>{var e;const t=(null==p?void 0:p.length)-(null==h?void 0:h.length);null===(e=document.querySelector("#toplevel_page_extendify-admin-page.wp-has-current-submenu"))||void 0===e||e.classList.add("current");const n=document.querySelectorAll(".extendify-assist-badge-count");for(const e of n)(t||t>=0)&&(e.style.opacity=0===t?"0":"1",e.textContent=`${t}`)}),[p,h]),a||!d||!f||s?(0,e.createElement)("div",{className:"my-4 w-full flex items-center lg:max-w-3/4 mx-auto bg-gray-100 p-4 lg: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 lg:max-w-3/4 w-full mx-auto bg-gray-100 p-4 lg:p-12","data-test":"no-tasks-found"},(0,r.__)("No tasks found...","extendify")):(0,e.createElement)("div",{className:"my-4 lg:max-w-3/4 w-full mx-auto bg-gray-100 p-4 lg: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:()=>{c(!u)}},u?(0,r.__)("Hide","extendify"):(0,r.__)("Show","extendify"))))),(0,e.createElement)("div",{className:"uncompleted-tasks w-full","data-test":"uncompleted-tasks"},u?v.map((t=>(0,e.createElement)(lf,{key:t.slug,task:t}))):(0,e.createElement)(bt,null,v.map((t=>(0,e.createElement)(Ks.div,{key:t.slug,variants:{fade:{opacity:0,x:15,transition:{duration:.5}},shrink:{height:0,transition:{delay:.5,duration:.2}}},exit:["fade","shrink"]},(0,e.createElement)(lf,{key:t.slug,task:t})))))),u&&(0,e.createElement)("div",{className:"completed-tasks w-full"},h.map((t=>(0,e.createElement)(lf,{key:t.slug,task:t})))))},lf=n=>{let{task:o}=n;const{isCompleted:i,toggleCompleted:a}=Cd();return(0,e.createElement)("div",{className:"pt-4"},(0,e.createElement)("div",{className:"p-3 flex gap-3 justify-between border border-solid border-gray-400 bg-white 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:Bd()("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)(Ud,{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"))))),"modal"===o.taskType&&(0,e.createElement)(cf,{task:o}),"internal link"===o.taskType&&(0,e.createElement)(df,{task:o}),"tour"===o.taskType&&(0,e.createElement)(uf,{task:o})))},uf=t=>{let{task:n}=t;const{mainColor:r}=Eu(),{startTour:o}=Td(),{isCompleted:i}=Cd();return(0,e.createElement)("button",{style:{backgroundColor:r},className:"px-4 py-3 text-white button-focus border-0 rounded relative z-10 cursor-pointer w-1/5",onClick:()=>o(af)},i(n.slug)?n.buttonTextDone:n.buttonTextToDo)},cf=t=>{let{task:n}=t;const{pushModal:r}=Vd(),{mainColor:o}=Eu(),{isCompleted:i}=Cd(),a={UpdateLogo:Qd,UpdateSiteDescription:ef,UpdateSiteIcon:tf};return a[n.modalFunction]?(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",onClick:()=>r(a[n.modalFunction])},i(n.slug)?n.buttonTextDone:n.buttonTextToDo):null},df=t=>{let{task:n}=t;const[r,o]=(0,e.useState)(0),{mainColor:i}=Eu(),{completeTask:a}=Cd();return(0,e.useEffect)((()=>{_d("page_on_front").then(o)}),[r]),r?(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 disabled:bg-gray-700",onClick:()=>{if(a(n.slug),"edit-homepage"===n.slug&&r){const e=n.internalLink.split("$");n.internalLink=e[0]+r+e[1]}window.open(`${window.extAssistData.adminUrl+n.internalLink}`,"_blank")}},n.buttonTextToDo):null};function ff(e,...t){e&&t.length>0&&e.classList.add(...t)}function pf(e,...t){e&&t.length>0&&e.classList.remove(...t)}var mf=(e=>(e.Ended="ended",e.Cancelled="cancelled",e))(mf||{});function hf(){let[e]=(0,s.useState)(xe);return(0,s.useEffect)((()=>()=>e.dispose()),[e]),e}function vf({container:e,direction:t,classes:n,onStart:r,onStop:o}){let i=Z(),a=hf(),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 pf(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),ff(e,...s,...c),i.nextFrame((()=>{pf(e,...c),ff(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&&(pf(e,...s),ff(e,...t.entered)),a(n))))})),i.dispose}(u,n.current,"enter"===s.current,(e=>{t.dispose(),l(e,{[mf.Ended](){o.current(s.current)},[mf.Cancelled]:()=>{}})}))),t.dispose}),[t])}function gf(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let yf=(0,s.createContext)(null);yf.displayName="TransitionContext";var bf,wf=((bf=wf||{}).Visible="visible",bf.Hidden="hidden",bf);let Ef=(0,s.createContext)(null);function xf(e){return"children"in e?xf(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Cf(e,t){let n=w(e),r=(0,s.useRef)([]),o=Z(),i=hf(),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;!xf(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 Sf(){}Ef.displayName="NestingContext";let Tf=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Lf(e){var t;let n={};for(let r of Tf)n[r]=null!=(t=e[r])?t:Sf;return n}let Af=c.RenderStrategy,Pf=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)(yf);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[P,k]=(0,s.useState)(C?"visible":"hidden"),O=function(){let e=(0,s.useContext)(Ef);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:R,unregister:V}=O,N=(0,s.useRef)(null);(0,s.useEffect)((()=>R(y)),[R,y]),(0,s.useEffect)((()=>{if(x===d.Hidden&&y.current)return C&&"visible"!==P?void k("visible"):l(P,{hidden:()=>V(y),visible:()=>R(y)})}),[P,y,R,V,C,x]);let M=w({enter:gf(a),enterFrom:gf(u),enterTo:gf(c),entered:gf(p),leave:gf(m),leaveFrom:gf(h),leaveTo:gf(v)}),D=function(e){let t=(0,s.useRef)(Lf(e));return(0,s.useEffect)((()=>{t.current=Lf(e)}),[e]),t}({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i}),_=A();(0,s.useEffect)((()=>{if(_&&"visible"===P&&null===y.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[y,P,_]);let j=L&&!T,F=!_||j||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=Cf((()=>{k("hidden"),V(y)}),O);vf({container:y,classes:M,direction:F,onStart:w((e=>{I.onStart(y,e,H)})),onStop:w((e=>{I.onStop(y,e,B),"leave"===e&&!xf(I)&&(k("hidden"),V(y))}))}),(0,s.useEffect)((()=>{!j||(x===d.Hidden?N.current=null:N.current=C)}),[C,j,P]);let U=g,z={ref:b};return s.createElement(Ef.Provider,{value:I},s.createElement(ge,{value:l(P,{visible:he.Open,hidden:he.Closed})},f({ourProps:z,theirProps:U,defaultTag:"div",features:Af,visible:"visible"===P,name:"Transition.Child"})))})),kf=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=Cf((()=>{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(xf(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(Ef.Provider,{value:m},s.createElement(yf.Provider,{value:y},f({ourProps:{...w,as:s.Fragment,children:s.createElement(Pf,{ref:u,...w,...i})},theirProps:{},defaultTag:s.Fragment,features:Af,visible:"visible"===d,name:"Transition"})))})),Of=h((function(e,t){let n=null!==(0,s.useContext)(yf),r=null!==ve();return s.createElement(s.Fragment,null,!n&&r?s.createElement(kf,{ref:t,...e}):s.createElement(Pf,{ref:t,...e}))})),Rf=Object.assign(kf,{Child:Of,Root:kf});const Vf="welcome-message",Nf=()=>{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}=Vd(),{mainColor:f}=Eu(),p=window.extAssistData.home+"?extendify-disable-admin-bar",m=(()=>{const[t,n]=(0,e.useState)(Vd.persist.hasHydrated);return(0,e.useEffect)((()=>{const e=Vd.persist.onFinishHydration((()=>n(!0)));return()=>{e()}}),[]),t})(),h=window.extAssistData.dismissedNotices.find((e=>e.id===Vf)),[v,g]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{h||c(Vf)||g(!0)}),[h,c,d]),(0,e.useEffect)((()=>{v&&m&&d(Vf)}),[d,v,m]),v?(0,e.createElement)(Ks.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)(Rf,{show:l,className:"absolute inset-0 md:w-1/2"},(0,e.createElement)(Rf.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)(Rf.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)(Ks.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)(Ks.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},Mf=()=>{const{mainColor:n}=Eu();return(0,e.createElement)("div",null,(0,e.createElement)(Nf,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)(sf,null),(0,e.createElement)(Fd,null)))},Df={"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")}},_f=()=>{var t,n,o,i,a,s;const l="extendify-launch",{isDismissed:u,dismissNotice:c}=Vd(),{mainColor:d,darkColor:f}=Eu();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(Df).includes(e))),h=null==p||null===(o=p.state)||void 0===o?void 0:o.currentPageSlug,v=Object.keys(Df).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)(jf,{reached:g,bgColor:d,step:n+1,stepName:null===(r=Df[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=Df[v])||void 0===i?void 0:i.title),(0,e.createElement)("p",{className:"text-lg text-white"},null===(a=Df[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=Df[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"})))},jf=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:Bd()("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))},Ff=new URLSearchParams(window.location.search),Hf=["page"].includes(Ff.get("extendify-launch")),Bf=window.extAssistData.launchCompleted,If=window.extAssistData.devbuild,Uf=document.getElementById("extendify-assist-landing-page"),zf=document.getElementById("dashboard-widgets-wrap");!Hf&&Uf&&(0,e.render)((0,e.createElement)((()=>(0,e.createElement)(Zl,{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)(Mf,null))),null),Uf);const Zf=window.extAssistData.dismissedNotices.find((e=>"extendify-launch"===e.id));if(zf&&!Zf&&(!Bf||If)){var Wf;const t=Object.assign(document.createElement("div"),{className:"extendify-assist"});null===(Wf=document.getElementById("welcome-panel"))||void 0===Wf||Wf.remove(),zf.before(t),(0,e.render)((0,e.createElement)(_f,null),t)}if(!Hf){const t=Object.assign(document.createElement("div"),{className:"extendify-assist"});document.body.append(t),(0,e.render)((0,e.createElement)(Md,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' => 'cb74bcf4778c948fdbcd');
|
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{left:0!important;right:0!important}div.extendify-onboarding .inset-0,div.extendify-onboarding .inset-y-0{bottom: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-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-2{margin-left:.5rem!important;margin-right:.5rem!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-8{margin-right:2rem!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 .max-h-half{max-height:50vh!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-md{max-width:36rem!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-auto{overflow:auto!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-b{border-bottom-left-radius:.25rem!important;border-bottom-right-radius:.25rem!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-200{--tw-border-opacity:1!important;border-color:rgba(224,224,224,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-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-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 .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 .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}}
|
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{left:0!important;right:0!important}div.extendify-onboarding .inset-0,div.extendify-onboarding .inset-y-0{bottom: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-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-2{margin-left:.5rem!important;margin-right:.5rem!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-8{margin-right:2rem!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-2\.5{height:.625rem!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 .max-h-half{max-height:50vh!important}div.extendify-onboarding .min-h-60{min-height:15rem!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-2{width:.5rem!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-2\.5{width:.625rem!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-xs{max-width:20rem!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-md{max-width:36rem!important}div.extendify-onboarding .max-w-onboarding-sm{max-width:26.5rem!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-x-3{--tw-translate-x:-0.75rem!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 .resize{resize:both!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-start{justify-content:flex-start!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-1\.5{gap:.375rem!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-auto{overflow:auto!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-b{border-bottom-left-radius:.25rem!important;border-bottom-right-radius:.25rem!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-200{--tw-border-opacity:1!important;border-color:rgba(224,224,224,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-300{--tw-bg-opacity:1!important;background-color:rgba(221,221,221,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-transparent:hover{background-color:transparent!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-opacity-60{--tw-bg-opacity:0.6!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-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-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 .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 .ring-1{--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(1px + 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 .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 .focus\:ring-wp-theme-500:focus,div.extendify-onboarding .ring-wp-theme-500{--tw-ring-color:var(--wp-admin-theme-color,#007cba)!important}div.extendify-onboarding .ring-offset-0{--tw-ring-offset-width:0px!important}div.extendify-onboarding .ring-offset-1{--tw-ring-offset-width:1px!important}div.extendify-onboarding .ring-offset-2{--tw-ring-offset-width:2px!important}div.extendify-onboarding .focus\:ring-offset-1:focus{--tw-ring-offset-width:1px!important}div.extendify-onboarding .focus\:ring-offset-white:focus,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 .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\:max-w-3\/4{max-width:75%!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-0{padding:0!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,5 +1,5 @@
|
|
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 a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a){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)}()},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),o=n(851),a=Object.hasOwnProperty,i=Object.create(null);for(var s in r)a.call(r,s)&&(i[r[s]]=s);var l=e.exports={to:{},get:{}};function u(e,t,n){return Math.min(Math.max(t,e),n)}function c(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,o,i=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=t[2],t=t[1],n=0;n<3;n++){var s=2*n;i[n]=parseInt(t.slice(s,s+2),16)}o&&(i[3]=parseInt(o,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(o=(t=t[1])[3],n=0;n<3;n++)i[n]=parseInt(t[n]+t[n],16);o&&(i[3]=parseInt(o+o,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++)i[n]=parseInt(t[n+1],0);t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[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]:a.call(r,t[1])?((i=r[t[1]])[3]=1,i):null:null;for(n=0;n<3;n++)i[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}for(n=0;n<3;n++)i[n]=u(i[n],0,255);return i[3]=u(i[3],0,1),i},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,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(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,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=o(arguments);return"#"+c(e[0])+c(e[1])+c(e[2])+(e[3]<1?c(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=o(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=o(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=o(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=o(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 i[e.slice(0,3)]}},767:function(e,t,n){const r=n(818),o=n(978),a=["keyword","gray","hex"],i={};for(const e of Object.keys(o))i[[...o[e].labels].sort().join("")]=e;const s={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in a&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);let n,u;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,u=o[this.model].channels,this.color=t.value.slice(0,u),this.valpha="number"==typeof t.value[u]?t.value[u]:1}else if(e.length>0){this.model=t||"rgb",u=o[this.model].channels;const n=Array.prototype.slice.call(e,0,u);this.color=f(n,u),this.valpha="number"==typeof e[u]?e[u]: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 i))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=i[r];const{labels:a}=o[this.model],s=[];for(n=0;n<a.length;n++)s.push(e[a[n]]);this.color=f(s)}if(s[this.model])for(u=o[this.model].channels,n=0;n<u;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}=o[this.model],{labels:n}=o[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(u(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:c("rgb",0,d(255)),green:c("rgb",1,d(255)),blue:c("rgb",2,d(255)),hue:c(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:c("hsl",1,d(100)),lightness:c("hsl",2,d(100)),saturationv:c("hsv",1,d(100)),value:c("hsv",2,d(100)),chroma:c("hcg",1,d(100)),gray:c("hcg",2,d(100)),white:c("hwb",1,d(100)),wblack:c("hwb",2,d(100)),cyan:c("cmyk",0,d(100)),magenta:c("cmyk",1,d(100)),yellow:c("cmyk",2,d(100)),black:c("cmyk",3,d(100)),x:c("xyz",0,d(95.047)),y:c("xyz",1,d(100)),z:c("xyz",2,d(108.833)),l:c("lab",0,d(100)),a:c("lab",1),b:c("lab",2),keyword(e){return void 0!==e?new l(e):o[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(),o=void 0===t?.5:t,a=2*o-1,i=n.alpha()-r.alpha(),s=((a*i==-1?a:(a+i)/(1+a*i))+1)/2,u=1-s;return l.rgb(s*n.red()+u*r.red(),s*n.green()+u*r.green(),s*n.blue()+u*r.blue(),n.alpha()*o+r.alpha()*(1-o))}};for(const e of Object.keys(o)){if(a.includes(e))continue;const{channels:t}=o[e];l.prototype[e]=function(...t){return this.model===e?new l(this):t.length>0?new l(t,e):new l([...(n=o[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 u(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function c(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 o;return void 0!==r?(n&&(r=n(r)),o=this[e](),o.color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}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),o={};for(const e of Object.keys(r))o[r[e]]=e;const a={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=a;for(const e of Object.keys(a)){if(!("channels"in a[e]))throw new Error("missing channels property: "+e);if(!("labels"in a[e]))throw new Error("missing channel labels property: "+e);if(a[e].labels.length!==a[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=a[e];delete a[e].channels,delete a[e].labels,Object.defineProperty(a[e],"channels",{value:t}),Object.defineProperty(a[e],"labels",{value:n})}a.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=a-o;let s,l;a===o?s=0:t===a?s=(n-r)/i:n===a?s=2+(r-t)/i:r===a&&(s=4+(t-n)/i),s=Math.min(60*s,360),s<0&&(s+=360);const u=(o+a)/2;return l=a===o?0:u<=.5?i/(a+o):i/(2-a-o),[s,100*l,100*u]},a.rgb.hsv=function(e){let t,n,r,o,a;const i=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(i,s,l),c=u-Math.min(i,s,l),d=function(e){return(u-e)/6/c+.5};return 0===c?(o=0,a=0):(a=c/u,t=d(i),n=d(s),r=d(l),i===u?o=r-n:s===u?o=1/3+t-r:l===u&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*a,100*u]},a.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=a.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,100*i,100*r]},a.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},a.rgb.keyword=function(e){const t=o[e];if(t)return t;let n,a=1/0;for(const t of Object.keys(r)){const o=(s=r[t],((i=e)[0]-s[0])**2+(i[1]-s[1])**2+(i[2]-s[2])**2);o<a&&(a=o,n=t)}var i,s;return n},a.keyword.rgb=function(e){return r[e]},a.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)]},a.rgb.lab=function(e){const t=a.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];return n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,[116*r-16,500*(n-r),200*(r-o)]},a.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,i;if(0===n)return i=255*r,[i,i,i];o=r<.5?r*(1+n):r+n-r*n;const s=2*r-o,l=[0,0,0];for(let e=0;e<3;e++)a=t+1/3*-(e-1),a<0&&a++,a>1&&a--,i=6*a<1?s+6*(o-s)*a:2*a<1?o:3*a<2?s+(o-s)*(2/3-a)*6:s,l[e]=255*i;return l},a.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a,[t,100*(0===r?2*o/(a+o):2*n/(r+n)),(r+n)/2*100]},a.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),i=255*r*(1-n),s=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,l,i];case 1:return[s,r,i];case 2:return[i,r,l];case 3:return[i,s,r];case 4:return[l,i,r];case 5:return[r,i,s]}},a.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,i;i=(2-n)*r;const s=(2-n)*o;return a=n*o,a/=s<=1?s:2-s,a=a||0,i/=2,[t,100*a,100*i]},a.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const i=Math.floor(6*t),s=1-r;a=6*t-i,0!=(1&i)&&(a=1-a);const l=n+a*(s-n);let u,c,d;switch(i){default:case 6:case 0:u=s,c=l,d=n;break;case 1:u=l,c=s,d=n;break;case 2:u=n,c=s,d=l;break;case 3:u=n,c=l,d=s;break;case 4:u=l,c=n,d=s;break;case 5:u=s,c=n,d=l}return[255*u,255*c,255*d]},a.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},a.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,i;return o=3.2406*t+-1.5372*n+-.4986*r,a=-.9689*t+1.8758*n+.0415*r,i=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,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=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),i=Math.min(Math.max(0,i),1),[255*o,255*a,255*i]},a.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)]},a.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,a=t**3,i=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=i>.008856?i:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},a.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;return o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360),[t,Math.sqrt(n*n+r*r),o]},a.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)]},a.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let i=null===t?a.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),0===i)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===i&&(s+=60),s},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.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)},a.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]},a.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]},a.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},a.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]},a.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),i=o-a;let s,l;return s=i<1?a/(1-i):0,l=i<=0?0:o===t?(n-r)/i%6:o===n?2+(r-t)/i:4+(t-n)/i,l/=6,l%=1,[360*l,100*i,100*s]},a.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},a.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},a.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 o=[0,0,0],a=t%1*6,i=a%1,s=1-i;let l=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-n)*r,[255*(n*o[0]+l),255*(n*o[1]+l),255*(n*o[2]+l)]},a.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]},a.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]},a.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)]},a.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=function(e){return[0,0,e[0]]},a.gray.hsv=a.gray.hsl,a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.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},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},978:function(e,t,n){const r=n(956),o=n(774),a={};Object.keys(r).forEach((e=>{a[e]={},Object.defineProperty(a[e],"channels",{value:r[e].channels}),Object.defineProperty(a[e],"labels",{value:r[e].labels});const t=o(e);Object.keys(t).forEach((n=>{const r=t[n];a[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),a[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=a},774:function(e,t,n){const r=n(956);function o(e,t){return function(n){return t(e(n))}}function a(e,t){const n=[t[e].parent,e];let a=r[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)n.unshift(t[i].parent),a=o(r[t[i].parent][i],a),i=t[i].parent;return a.conversion=n,a}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(),o=Object.keys(r[e]);for(let r=o.length,a=0;a<r;a++){const r=o[a],i=t[r];-1===i.distance&&(i.distance=t[e].distance+1,i.parent=e,n.unshift(r))}}return t}(e),n={},o=Object.keys(t);for(let e=o.length,r=0;r<e;r++){const e=o[r];null!==t[e].parent&&(n[e]=a(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),o=Array.prototype.concat,a=Array.prototype.slice,i=e.exports=function(e){for(var t=[],n=0,i=e.length;n<i;n++){var s=e[n];r(s)?t=o.call(t,a.call(s)):t.push(s)}return t};i.wrap=function(e){return function(){return e(i(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),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=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=a({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]),i((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),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=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,i=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,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,s=n)}var i,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=i(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 a=t[r]={exports:{}};return e[r](a,a.exports,n),a.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,o=n(196);function a(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(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(i,s)}l((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}var s,l=function(){},u=l(),c=Object,d=function(e){return e===u},f=function(e){return"function"==typeof e},p=function(e,t){return c.assign({},e,t)},m="undefined",h=function(){return typeof window!=m},v=new WeakMap,g=0,y=function(e){var t,n,r=typeof e,o=e&&e.constructor,a=o==Date;if(c(e)!==e||a||o==RegExp)t=a?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=v.get(e))return t;if(t=++g+"~",v.set(e,t),o==Array){for(t="@",n=0;n<e.length;n++)t+=y(e[n])+",";v.set(e,t)}if(o==c){t="#";for(var i=c.keys(e).sort();!d(n=i.pop());)d(e[n])||(t+=n+":"+y(e[n])+",");v.set(e,t)}}return t},b=!0,w=h(),x=typeof document!=m,E=w&&window.addEventListener?window.addEventListener.bind(window):l,C=x?document.addEventListener.bind(document):l,S=w&&window.removeEventListener?window.removeEventListener.bind(window):l,O=x?document.removeEventListener.bind(document):l,k={isOnline:function(){return b},isVisible:function(){var e=x&&document.visibilityState;return d(e)||"hidden"!==e}},T={initFocus:function(e){return C("visibilitychange",e),E("focus",e),function(){O("visibilitychange",e),S("focus",e)}},initReconnect:function(e){var t=function(){b=!0,e()},n=function(){b=!1};return E("online",t),E("offline",n),function(){S("online",t),S("offline",n)}}},P=!h()||"Deno"in window,L=P?o.useEffect:o.useLayoutEffect,M="undefined"!=typeof navigator&&navigator.connection,R=!P&&M&&(["slow-2g","2g"].includes(M.effectiveType)||M.saveData),A=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:""]},N=new WeakMap,V=function(e,t,n,r,o,a,i){void 0===i&&(i=!0);var s=N.get(e),l=s[0],u=s[1],c=s[3],d=l[t],f=u[t];if(i&&f)for(var p=0;p<f.length;++p)f[p](n,r,o);return a&&(delete c[t],d&&d[0])?d[0](2).then((function(){return e.get(t)})):e.get(t)},D=0,I=function(){return++D},j=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a(void 0,void 0,void 0,(function(){var t,n,r,o,a,s,l,c,m,h,v,g,y,b,w,x,E,C,S,O,k;return i(this,(function(i){switch(i.label){case 0:if(t=e[0],n=e[1],r=e[2],o=e[3],s=!!d((a="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||a.populateCache,l=!1!==a.revalidate,c=!1!==a.rollbackOnError,m=a.optimisticData,h=A(n),v=h[0],g=h[2],!v)return[2];if(y=N.get(t),b=y[2],e.length<3)return[2,V(t,v,t.get(v),u,u,l,!0)];if(w=r,E=I(),b[v]=[E,0],C=!d(m),S=t.get(v),C&&(O=f(m)?m(S):m,t.set(v,O),V(t,v,O)),f(w))try{w=w(t.get(v))}catch(e){x=e}return w&&f(w.then)?[4,w.catch((function(e){x=e}))]:[3,2];case 1:if(w=i.sent(),E!==b[v][0]){if(x)throw x;return[2,w]}x&&C&&c&&(s=!0,w=S,t.set(v,S)),i.label=2;case 2:return s&&(x||(f(s)&&(w=s(w,S)),t.set(v,w)),t.set(g,p(t.get(g),{error:x}))),b[v][1]=I(),[4,V(t,v,w,x,u,l,!!s)];case 3:if(k=i.sent(),x)throw x;return[2,s?k:w]}}))}))},F=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},_=function(e,t){if(!N.has(e)){var n=p(T,t),r={},o=j.bind(u,e),a=l;if(N.set(e,[r,{},{},{},o]),!P){var i=n.initFocus(setTimeout.bind(u,F.bind(u,r,0))),s=n.initReconnect(setTimeout.bind(u,F.bind(u,r,1)));a=function(){i&&i(),s&&s(),N.delete(e)}}return[e,o,a]}return[e,N.get(e)[4]]},H=_(new Map),B=H[0],U=H[1],z=p({onLoadingSlow:l,onSuccess:l,onError:l,onErrorRetry:function(e,__,t,n,r){var o=t.errorRetryCount,a=r.retryCount,i=~~((Math.random()+.5)*(1<<(a<8?a:8)))*t.errorRetryInterval;!d(o)&&a>o||setTimeout(n,i,r)},onDiscarded:l,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:R?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:R?5e3:3e3,compare:function(e,t){return y(e)==y(t)},isPaused:function(){return!1},cache:B,mutate:U,fallback:{}},k),Z=function(e,t){var n=p(e,t);if(t){var r=e.use,o=e.fallback,a=t.use,i=t.fallback;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=p(o,i))}return n},$=(0,o.createContext)({}),q=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 p(z,(0,o.useContext)($))},Y=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},X=c.defineProperty((function(e){var t=e.value,n=Z((0,o.useContext)($),t),r=t&&t.provider,a=(0,o.useState)((function(){return r?_(r(n.cache||B),t):u}))[0];return a&&(n.cache=a[0],n.mutate=a[1]),L((function(){return a?a[2]:u}),[]),(0,o.createElement)($.Provider,p(e,{value:n}))}),"default",{value:z}),J=(s=function(e,t,n){var r=n.cache,s=n.compare,l=n.fallbackData,c=n.suspense,v=n.revalidateOnMount,g=n.refreshInterval,y=n.refreshWhenHidden,b=n.refreshWhenOffline,w=N.get(r),x=w[0],E=w[1],C=w[2],S=w[3],O=A(e),k=O[0],T=O[1],M=O[2],R=(0,o.useRef)(!1),D=(0,o.useRef)(!1),F=(0,o.useRef)(k),_=(0,o.useRef)(t),H=(0,o.useRef)(n),B=function(){return H.current},U=function(){return B().isVisible()&&B().isOnline()},z=function(e){return r.set(M,p(r.get(M),e))},Z=r.get(k),$=d(l)?n.fallback[k]:l,q=d(Z)?$:Z,W=r.get(M)||{},X=W.error,J=!R.current,K=function(){return J&&!d(v)?v:!B().isPaused()&&(c?!d(q)&&n.revalidateIfStale:d(q)||n.revalidateIfStale)},Q=!(!k||!t)&&(!!W.isValidating||J&&K()),ee=function(e,t){var n=(0,o.useState)({})[1],r=(0,o.useRef)(e),a=(0,o.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,o.useCallback)((function(e){var o=!1,i=r.current;for(var s in e){var l=s;i[l]!==e[l]&&(i[l]=e[l],a.current[l]&&(o=!0))}o&&!t.current&&n({})}),[]);return L((function(){r.current=e})),[r,a.current,i]}({data:q,error:X,isValidating:Q},D),te=ee[0],ne=ee[1],re=ee[2],oe=(0,o.useCallback)((function(e){return a(void 0,void 0,void 0,(function(){var t,o,a,l,c,p,m,h,v,g,y,b,w;return i(this,(function(i){switch(i.label){case 0:if(t=_.current,!k||!t||D.current||B().isPaused())return[2,!1];l=!0,c=e||{},p=!S[k]||!c.dedupe,m=function(){return!D.current&&k===F.current&&R.current},h=function(){var e=S[k];e&&e[1]===a&&delete S[k]},v={isValidating:!1},g=function(){z({isValidating:!1}),m()&&re(v)},z({isValidating:!0}),re({isValidating:!0}),i.label=1;case 1:return i.trys.push([1,3,,4]),p&&(V(r,k,te.current.data,te.current.error,!0),n.loadingTimeout&&!r.get(k)&&setTimeout((function(){l&&m()&&B().onLoadingSlow(k,n)}),n.loadingTimeout),S[k]=[t.apply(void 0,T),I()]),w=S[k],o=w[0],a=w[1],[4,o];case 2:return o=i.sent(),p&&setTimeout(h,n.dedupingInterval),S[k]&&S[k][1]===a?(z({error:u}),v.error=u,y=C[k],!d(y)&&(a<=y[0]||a<=y[1]||0===y[1])?(g(),p&&m()&&B().onDiscarded(k),[2,!1]):(s(te.current.data,o)?v.data=te.current.data:v.data=o,s(r.get(k),o)||r.set(k,o),p&&m()&&B().onSuccess(o,k,n),[3,4])):(p&&m()&&B().onDiscarded(k),[2,!1]);case 3:return b=i.sent(),h(),B().isPaused()||(z({error:b}),v.error=b,p&&m()&&(B().onError(b,k,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||f(n.shouldRetryOnError)&&n.shouldRetryOnError(b))&&U()&&B().onErrorRetry(b,k,n,oe,{retryCount:(c.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return l=!1,g(),m()&&p&&V(r,k,v.data,v.error,!1),[2,!0]}}))}))}),[k]),ae=(0,o.useCallback)(j.bind(u,r,(function(){return F.current})),[]);if(L((function(){_.current=t,H.current=n})),L((function(){if(k){var e=k!==F.current,t=oe.bind(u,G),n=0,r=Y(k,E,(function(e,t,n){re(p({error:t,isValidating:n},s(te.current.data,e)?u:{data:e}))})),o=Y(k,x,(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 oe()}));return D.current=!1,F.current=k,R.current=!0,e&&re({data:q,error:X,isValidating:Q}),K()&&(d(q)||P?t():function(e){h()&&typeof window.requestAnimationFrame!=m?window.requestAnimationFrame(e):setTimeout(e,1)}(t)),function(){D.current=!0,r(),o()}}}),[k,oe]),L((function(){var e;function t(){var t=f(g)?g(q):g;t&&-1!==e&&(e=setTimeout(n,t))}function n(){te.current.error||!y&&!B().isVisible()||!b&&!B().isOnline()?t():oe(G).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[g,y,b,oe]),(0,o.useDebugValue)(q),c&&d(q)&&k)throw _.current=t,H.current=n,D.current=!1,d(X)?oe(G):X;return{mutate:ae,get data(){return ne.data=!0,q},get error(){return ne.error=!0,X},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=q(e),o=r[0],a=r[1],i=r[2],l=Z(n,i),u=s,c=l.use;if(c)for(var d=c.length;d-- >0;)u=c[d](u);return u(o,a||l.fetcher,l)}),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),oe=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(oe||{});function ae({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:a=!0,name:i}){let s=se(t,e);if(a)return ie(s,n,r,i);let l=null!=o?o:0;if(2&l){let{static:e=!1,...t}=s;if(e)return ie(t,n,r,i)}if(1&l){let{unmount:e=!0,...t}=s;return te(e?0:1,{0(){return null},1(){return ie({...t,hidden:!0,style:{display:"none"}},n,r,i)}})}return ie(s,n,r,i)}function ie(e,t={},n,r){let{as:a=n,children:i,refName:s="ref",...l}=ce(e,["unmount","static"]),u=void 0!==e.ref?{[s]: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(a===o.Fragment&&Object.keys(ue(l)).length>0){if(!(0,o.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,o.cloneElement)(c,Object.assign({},se(c.props,ue(ce(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,o.createElement)(a,Object.assign({},ce(l,["ref"]),a!==o.Fragment&&u,a!==o.Fragment&&d),c)}function se(...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 le(e){var t;return Object.assign((0,o.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function ue(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function ce(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}let de=(0,o.createContext)(null);de.displayName="OpenClosedContext";var fe=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(fe||{});function pe(){return(0,o.useContext)(de)}function me({value:e,children:t}){return o.createElement(de.Provider,{value:e},t)}const he="undefined"==typeof window||"undefined"==typeof document;let ve=he?o.useEffect:o.useLayoutEffect;function ge(){let e=(0,o.useRef)(!1);return ve((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function ye(e){let t=(0,o.useRef)(e);return ve((()=>{t.current=e}),[e]),t}let be={serverHandoffComplete:!1};function we(){let[e,t]=(0,o.useState)(be.serverHandoffComplete);return(0,o.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,o.useEffect)((()=>{!1===be.serverHandoffComplete&&(be.serverHandoffComplete=!0)}),[]),e}let xe=function(e){let t=ye(e);return o.useCallback(((...e)=>t.current(...e)),[t])},Ee=Symbol();function Ce(e,t=!0){return Object.assign(e,{[Ee]:t})}function Se(...e){let t=(0,o.useRef)(e);(0,o.useEffect)((()=>{t.current=e}),[e]);let n=xe((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[Ee])))?void 0:n}function Oe(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function ke(){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 Oe((()=>{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 Te(e,...t){e&&t.length>0&&e.classList.add(...t)}function Pe(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Le,Me=((Le=Me||{}).Ended="ended",Le.Cancelled="cancelled",Le);function Re(){let[e]=(0,o.useState)(ke);return(0,o.useEffect)((()=>()=>e.dispose()),[e]),e}function Ae({container:e,direction:t,classes:n,onStart:r,onStop:o}){let a=ge(),i=Re(),s=ye(t);ve((()=>{let t=ke();i.add(t.dispose);let l=e.current;if(l&&"idle"!==s.current&&a.current)return t.dispose(),r.current(s.current),t.add(function(e,t,n,r){let o=n?"enter":"leave",a=ke(),i=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=te(o,{enter:()=>t.enter,leave:()=>t.leave}),l=te(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=te(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Pe(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Te(e,...s,...u),a.nextFrame((()=>{Pe(e,...u),Te(e,...l),function(e,t){let n=ke();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[a,i]=[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(a+i!==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&&(Pe(e,...s),Te(e,...t.entered)),i(n))))})),a.dispose}(l,n.current,"enter"===s.current,(e=>{t.dispose(),te(e,{[Me.Ended](){o.current(s.current)},[Me.Cancelled]:()=>{}})}))),t.dispose}),[t])}function Ne(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let Ve=(0,o.createContext)(null);Ve.displayName="TransitionContext";var De=(e=>(e.Visible="visible",e.Hidden="hidden",e))(De||{});let Ie=(0,o.createContext)(null);function je(e){return"children"in e?je(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Fe(e,t){let n=ye(e),r=(0,o.useRef)([]),a=ge(),i=Re(),s=xe(((e,t=oe.Hidden)=>{let o=r.current.findIndex((({el:t})=>t===e));-1!==o&&(te(t,{[oe.Unmount](){r.current.splice(o,1)},[oe.Hidden](){r.current[o].state="hidden"}}),i.microTask((()=>{var e;!je(r)&&a.current&&(null==(e=n.current)||e.call(n))})))})),l=xe((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"}),()=>s(e,oe.Unmount)})),u=(0,o.useRef)([]),c=(0,o.useRef)(Promise.resolve()),d=(0,o.useRef)({enter:[],leave:[],idle:[]}),f=xe(((e,n,r)=>{u.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=>{u.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?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),p=xe(((e,t,n)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=u.current.shift())||e()})).then((()=>n(t)))}));return(0,o.useMemo)((()=>({children:r,register:l,unregister:s,onStart:f,onStop:p,wait:c,chains:d})),[l,s,r,f,p,d,c])}function _e(){}Ie.displayName="NestingContext";let He=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Be(e){var t;let n={};for(let r of He)n[r]=null!=(t=e[r])?t:_e;return n}let Ue=re.RenderStrategy,ze=le((function(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:a,afterLeave:i,enter:s,enterFrom:l,enterTo:u,entered:c,leave:d,leaveFrom:f,leaveTo:p,...m}=e,h=(0,o.useRef)(null),v=Se(h,t),g=m.unmount?oe.Unmount:oe.Hidden,{show:y,appear:b,initial:w}=function(){let e=(0,o.useContext)(Ve);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[x,E]=(0,o.useState)(y?"visible":"hidden"),C=function(){let e=(0,o.useContext)(Ie);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:O}=C,k=(0,o.useRef)(null);(0,o.useEffect)((()=>S(h)),[S,h]),(0,o.useEffect)((()=>{if(g===oe.Hidden&&h.current)return y&&"visible"!==x?void E("visible"):te(x,{hidden:()=>O(h),visible:()=>S(h)})}),[x,h,S,O,y,g]);let T=ye({enter:Ne(s),enterFrom:Ne(l),enterTo:Ne(u),entered:Ne(c),leave:Ne(d),leaveFrom:Ne(f),leaveTo:Ne(p)}),P=function(e){let t=(0,o.useRef)(Be(e));return(0,o.useEffect)((()=>{t.current=Be(e)}),[e]),t}({beforeEnter:n,afterEnter:r,beforeLeave:a,afterLeave:i}),L=we();(0,o.useEffect)((()=>{if(L&&"visible"===x&&null===h.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[h,x,L]);let M=w&&!b,R=!L||M||k.current===y?"idle":y?"enter":"leave",A=xe((e=>te(e,{enter:()=>P.current.beforeEnter(),leave:()=>P.current.beforeLeave(),idle:()=>{}}))),N=xe((e=>te(e,{enter:()=>P.current.afterEnter(),leave:()=>P.current.afterLeave(),idle:()=>{}}))),V=Fe((()=>{E("hidden"),O(h)}),C);Ae({container:h,classes:T,direction:R,onStart:ye((e=>{V.onStart(h,e,A)})),onStop:ye((e=>{V.onStop(h,e,N),"leave"===e&&!je(V)&&(E("hidden"),O(h))}))}),(0,o.useEffect)((()=>{!M||(g===oe.Hidden?k.current=null:k.current=y)}),[y,M,x]);let D=m,I={ref:v};return o.createElement(Ie.Provider,{value:V},o.createElement(me,{value:te(x,{visible:fe.Open,hidden:fe.Closed})},ae({ourProps:I,theirProps:D,defaultTag:"div",features:Ue,visible:"visible"===x,name:"Transition.Child"})))})),Ze=le((function(e,t){let{show:n,appear:r=!1,unmount:a,...i}=e,s=(0,o.useRef)(null),l=Se(s,t);we();let u=pe();if(void 0===n&&null!==u&&(n=te(u,{[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[c,d]=(0,o.useState)(n?"visible":"hidden"),f=Fe((()=>{d("hidden")})),[p,m]=(0,o.useState)(!0),h=(0,o.useRef)([n]);ve((()=>{!1!==p&&h.current[h.current.length-1]!==n&&(h.current.push(n),m(!1))}),[h,n]);let v=(0,o.useMemo)((()=>({show:n,appear:r,initial:p})),[n,r,p]);(0,o.useEffect)((()=>{if(n)d("visible");else if(je(f)){let e=s.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 g={unmount:a};return o.createElement(Ie.Provider,{value:f},o.createElement(Ve.Provider,{value:v},ae({ourProps:{...g,as:o.Fragment,children:o.createElement(ze,{ref:l,...g,...i})},theirProps:{},defaultTag:o.Fragment,features:Ue,visible:"visible"===c,name:"Transition"})))})),$e=le((function(e,t){let n=null!==(0,o.useContext)(Ve),r=null!==pe();return o.createElement(o.Fragment,null,!n&&r?o.createElement(Ze,{ref:t,...e}):o.createElement(ze,{ref:t,...e}))})),qe=Object.assign(Ze,{Child:$e,Root:Ze});function We(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ye}=Object.prototype,{getPrototypeOf:Ge}=Object,Xe=(e=>t=>{const n=Ye.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Je=e=>(e=e.toLowerCase(),t=>Xe(t)===e),Ke=e=>t=>typeof t===e,{isArray:Qe}=Array,et=Ke("undefined"),tt=Je("ArrayBuffer"),nt=Ke("string"),rt=Ke("function"),ot=Ke("number"),at=e=>null!==e&&"object"==typeof e,it=e=>{if("object"!==Xe(e))return!1;const t=Ge(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},st=Je("Date"),lt=Je("File"),ut=Je("Blob"),ct=Je("FileList"),dt=Je("URLSearchParams");function ft(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Qe(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),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}const pt=(mt="undefined"!=typeof Uint8Array&&Ge(Uint8Array),e=>mt&&e instanceof mt);var mt;const ht=Je("HTMLFormElement"),vt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),gt=Je("RegExp"),yt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ft(n,((n,o)=>{!1!==t(n,o,e)&&(r[o]=n)})),Object.defineProperties(e,r)};var bt={isArray:Qe,isArrayBuffer:tt,isBuffer:function(e){return null!==e&&!et(e)&&null!==e.constructor&&!et(e.constructor)&&rt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{const t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||Ye.call(e)===t||rt(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&tt(e.buffer),t},isString:nt,isNumber:ot,isBoolean:e=>!0===e||!1===e,isObject:at,isPlainObject:it,isUndefined:et,isDate:st,isFile:lt,isBlob:ut,isRegExp:gt,isFunction:rt,isStream:e=>at(e)&&rt(e.pipe),isURLSearchParams:dt,isTypedArray:pt,isFileList:ct,forEach:ft,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):Qe(n)?t[r]=n.slice():t[r]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ft(arguments[e],n);return t},extend:(e,t,n,{allOwnKeys:r}={})=>(ft(t,((t,r)=>{n&&rt(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,a,i;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&Ge(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Xe,kindOfTest:Je,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(Qe(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:ht,hasOwnProperty:vt,hasOwnProp:vt,reduceDescriptors:yt,freezeMethods:e=>{yt(e,((t,n)=>{const r=e[n];rt(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 Qe(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 wt(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)}bt.inherits(wt,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=wt.prototype,Et={};["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=>{Et[e]={value:e}})),Object.defineProperties(wt,Et),Object.defineProperty(xt,"isAxiosError",{value:!0}),wt.from=(e,t,n,r,o,a)=>{const i=Object.create(xt);return bt.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),wt.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};var Ct=wt,St=n(230);function Ot(e){return bt.isPlainObject(e)||bt.isArray(e)}function kt(e){return bt.endsWith(e,"[]")?e.slice(0,-2):e}function Tt(e,t,n){return e?e.concat(t).map((function(e,t){return e=kt(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Pt=bt.toFlatObject(bt,{},null,(function(e){return/^is[A-Z]/.test(e)}));var Lt=function(e,t,n){if(!bt.isObject(e))throw new TypeError("target must be an object");t=t||new(St||FormData);const r=(n=bt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!bt.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&(l=t)&&bt.isFunction(l.append)&&"FormData"===l[Symbol.toStringTag]&&l[Symbol.iterator];var l;if(!bt.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(bt.isDate(e))return e.toISOString();if(!s&&bt.isBlob(e))throw new Ct("Blob is not supported. Use a Buffer instead.");return bt.isArrayBuffer(e)||bt.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(bt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(bt.isArray(e)&&function(e){return bt.isArray(e)&&!e.some(Ot)}(e)||bt.isFileList(e)||bt.endsWith(n,"[]")&&(s=bt.toArray(e)))return n=kt(n),s.forEach((function(e,r){!bt.isUndefined(e)&&null!==e&&t.append(!0===i?Tt([n],r,a):null===i?n:n+"[]",u(e))})),!1;return!!Ot(e)||(t.append(Tt(o,n,a),u(e)),!1)}const d=[],f=Object.assign(Pt,{defaultVisitor:c,convertValue:u,isVisitable:Ot});if(!bt.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!bt.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),bt.forEach(n,(function(n,a){!0===(!(bt.isUndefined(n)||null===n)&&o.call(t,n,bt.isString(a)?a.trim():a,r,f))&&e(n,r?r.concat(a):[a])})),d.pop()}}(e),t};function Mt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Rt(e,t){this._pairs=[],e&&Lt(e,this,t)}const At=Rt.prototype;At.append=function(e,t){this._pairs.push([e,t])},At.toString=function(e){const t=e?function(t){return e.call(this,t,Mt)}:Mt;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Nt=Rt;function Vt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Dt(e,t,n){if(!t)return e;const r=n&&n.encode||Vt,o=n&&n.serialize;let a;if(a=o?o(t,n):bt.isURLSearchParams(t)?t.toString():new Nt(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}var It=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){bt.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},jt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ft="undefined"!=typeof URLSearchParams?URLSearchParams:Nt,_t=FormData;const Ht=(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})();var Bt={isBrowser:!0,classes:{URLSearchParams:Ft,FormData:_t,Blob:Blob},isStandardBrowserEnv:Ht,protocols:["http","https","file","blob","url","data"]},Ut=function(e){function t(e,n,r,o){let a=e[o++];const i=Number.isFinite(+a),s=o>=e.length;return a=!a&&bt.isArray(r)?r.length:a,s?(bt.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i):(r[a]&&bt.isObject(r[a])||(r[a]=[]),t(e,n,r[a],o)&&bt.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i)}if(bt.isFormData(e)&&bt.isFunction(e.entries)){const n={};return bt.forEachEntry(e,((e,r)=>{t(function(e){return bt.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},zt=Bt.isStandardBrowserEnv?{write:function(e,t,n,r,o,a){const i=[];i.push(e+"="+encodeURIComponent(t)),bt.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),bt.isString(r)&&i.push("path="+r),bt.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.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 $t=Bt.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=bt.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function qt(e,t,n){Ct.call(this,null==e?"canceled":e,Ct.ERR_CANCELED,t,n),this.name="CanceledError"}bt.inherits(qt,Ct,{__CANCEL__:!0});var Wt=qt;const Yt=bt.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"]),Gt=Symbol("internals"),Xt=Symbol("defaults");function Jt(e){return e&&String(e).trim().toLowerCase()}function Kt(e){return!1===e||null==e?e:bt.isArray(e)?e.map(Kt):String(e)}function Qt(e,t,n,r){return bt.isFunction(r)?r.call(this,t,n):bt.isString(t)?bt.isString(r)?-1!==t.indexOf(r):bt.isRegExp(r)?r.test(t):void 0:void 0}function en(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 tn(e,t){e&&this.set(e),this[Xt]=t||null}Object.assign(tn.prototype,{set:function(e,t,n){const r=this;function o(e,t,n){const o=Jt(t);if(!o)throw new Error("header name must be a non-empty string");const a=en(r,o);(!a||!0===n||!1!==r[a]&&!1!==n)&&(r[a||t]=Kt(e))}return bt.isPlainObject(e)?bt.forEach(e,((e,n)=>{o(e,n,t)})):o(t,e,n),this},get:function(e,t){if(!(e=Jt(e)))return;const n=en(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(bt.isFunction(t))return t.call(this,e,n);if(bt.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=Jt(e)){const n=en(this,e);return!(!n||t&&!Qt(0,this[n],n,t))}return!1},delete:function(e,t){const n=this;let r=!1;function o(e){if(e=Jt(e)){const o=en(n,e);!o||t&&!Qt(0,n[o],o,t)||(delete n[o],r=!0)}}return bt.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 bt.forEach(this,((r,o)=>{const a=en(n,o);if(a)return t[a]=Kt(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=Kt(r),n[i]=!0})),this},toJSON:function(e){const t=Object.create(null);return bt.forEach(Object.assign({},this[Xt]||null,this),((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&bt.isArray(n)?n.join(", "):n)})),t}}),Object.assign(tn,{from:function(e){return bt.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]&&Yt[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[Gt]=this[Gt]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Jt(e);t[r]||(function(e,t){const n=bt.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 bt.isArray(e)?e.forEach(r):r(e),this}}),tn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),bt.freezeMethods(tn.prototype),bt.freezeMethods(tn);var nn=tn;function rn(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=r[i];o||(o=l),n[a]=s,r[a]=l;let c=i,d=0;for(;c!==a;)d+=n[c++],c%=e;if(a=(a+1)%e,a===i&&(i=(i+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 a=o.loaded,i=o.lengthComputable?o.total:void 0,s=a-n,l=r(s);n=a;const u={loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&a<=i?(i-a)/l:void 0};u[t?"download":"upload"]=!0,e(u)}}function on(e){return new Promise((function(t,n){let r=e.data;const o=nn.from(e.headers).normalize(),a=e.responseType;let i;function s(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}bt.isFormData(r)&&Bt.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=Zt(e.baseURL,e.url);function c(){if(!l)return;const r=nn.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Ct("Request failed with status code "+n.status,[Ct.ERR_BAD_REQUEST,Ct.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:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:r,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),Dt(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 Ct("Request aborted",Ct.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new Ct("Network Error",Ct.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||jt;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Ct(t,r.clarifyTimeoutError?Ct.ETIMEDOUT:Ct.ECONNABORTED,e,l)),l=null},Bt.isStandardBrowserEnv){const t=(e.withCredentials||$t(u))&&e.xsrfCookieName&&zt.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in l&&bt.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),bt.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&"json"!==a&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",rn(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",rn(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{l&&(n(!t||t.type?new Wt(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);d&&-1===Bt.protocols.indexOf(d)?n(new Ct("Unsupported protocol "+d+":",Ct.ERR_BAD_REQUEST,e)):l.send(r||null)}))}const an={http:on,xhr:on};var sn=e=>{if(bt.isString(e)){const t=an[e];if(!e)throw Error(bt.hasOwnProp(e)?`Adapter '${e}' is not available in the build`:`Can not resolve adapter '${e}'`);return t}if(!bt.isFunction(e))throw new TypeError("adapter is not a function");return e};const ln={"Content-Type":"application/x-www-form-urlencoded"},un={transitional:jt,adapter:function(){let e;return"undefined"!=typeof XMLHttpRequest?e=sn("xhr"):"undefined"!=typeof process&&"process"===bt.kindOf(process)&&(e=sn("http")),e}(),transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=bt.isObject(e);if(o&&bt.isHTMLForm(e)&&(e=new FormData(e)),bt.isFormData(e))return r&&r?JSON.stringify(Ut(e)):e;if(bt.isArrayBuffer(e)||bt.isBuffer(e)||bt.isStream(e)||bt.isFile(e)||bt.isBlob(e))return e;if(bt.isArrayBufferView(e))return e.buffer;if(bt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Lt(e,new Bt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Bt.isNode&&bt.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=bt.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Lt(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(bt.isString(e))try{return(0,JSON.parse)(e),bt.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&&bt.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 Ct.from(e,Ct.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:Bt.classes.FormData,Blob:Bt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};bt.forEach(["delete","get","head"],(function(e){un.headers[e]={}})),bt.forEach(["post","put","patch"],(function(e){un.headers[e]=bt.merge(ln)}));var cn=un;function dn(e,t){const n=this||cn,r=t||n,o=nn.from(r.headers);let a=r.data;return bt.forEach(e,(function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)})),o.normalize(),a}function fn(e){return!(!e||!e.__CANCEL__)}function pn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wt}function mn(e){return pn(e),e.headers=nn.from(e.headers),e.data=dn.call(e,e.transformRequest),(e.adapter||cn.adapter)(e).then((function(t){return pn(e),t.data=dn.call(e,e.transformResponse,t),t.headers=nn.from(t.headers),t}),(function(t){return fn(t)||(pn(e),t&&t.response&&(t.response.data=dn.call(e,e.transformResponse,t.response),t.response.headers=nn.from(t.response.headers))),Promise.reject(t)}))}function hn(e,t){t=t||{};const n={};function r(e,t){return bt.isPlainObject(e)&&bt.isPlainObject(t)?bt.merge(e,t):bt.isPlainObject(t)?bt.merge({},t):bt.isArray(t)?t.slice():t}function o(n){return bt.isUndefined(t[n])?bt.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function a(e){if(!bt.isUndefined(t[e]))return r(void 0,t[e])}function i(n){return bt.isUndefined(t[n])?bt.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:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s};return bt.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){const t=l[e]||o,r=t(e);bt.isUndefined(r)&&t!==s||(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 gn={};vn.transitional=function(e,t,n){function r(e,t){return"[Axios v1.1.3] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new Ct(r(o," has been removed"+(t?" in "+t:"")),Ct.ERR_DEPRECATED);return t&&!gn[o]&&(gn[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}};var yn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ct("options must be an object",Ct.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new Ct("option "+a+" must be "+n,Ct.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Ct("Unknown option "+a,Ct.ERR_BAD_OPTION)}},validators:vn};const bn=yn.validators;class wn{constructor(e){this.defaults=e,this.interceptors={request:new It,response:new It}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=hn(this.defaults,t);const{transitional:n,paramsSerializer:r}=t;void 0!==n&&yn.assertOptions(n,{silentJSONParsing:bn.transitional(bn.boolean),forcedJSONParsing:bn.transitional(bn.boolean),clarifyTimeoutError:bn.transitional(bn.boolean)},!1),void 0!==r&&yn.assertOptions(r,{encode:bn.function,serialize:bn.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();const o=t.headers&&bt.merge(t.headers.common,t.headers[t.method]);o&&bt.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),t.headers=new nn(t.headers,o);const a=[];let i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,a.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(!i){const e=[mn.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,s),u=e.length,l=Promise.resolve(t);c<u;)l=l.then(e[c++],e[c++]);return l}u=a.length;let d=t;for(c=0;c<u;){const e=a[c++],t=a[c++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=mn.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 Dt(Zt((e=hn(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}bt.forEach(["delete","get","head","options"],(function(e){wn.prototype[e]=function(t,n){return this.request(hn(n||{},{method:e,url:t,data:(n||{}).data}))}})),bt.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(hn(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}wn.prototype[e]=t(),wn.prototype[e+"Form"]=t(!0)}));var xn=wn;class En{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 En((function(t){e=t})),cancel:e}}}var Cn=En;const Sn=function e(t){const n=new xn(t),r=We(xn.prototype.request,n);return bt.extend(r,xn.prototype,n,{allOwnKeys:!0}),bt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(hn(t,n))},r}(cn);Sn.Axios=xn,Sn.CanceledError=Wt,Sn.CancelToken=Cn,Sn.isCancel=fn,Sn.VERSION="1.1.3",Sn.toFormData=Lt,Sn.AxiosError=Ct,Sn.Cancel=Sn.CanceledError,Sn.all=function(e){return Promise.all(e)},Sn.spread=function(e){return function(t){return e.apply(null,t)}},Sn.isAxiosError=function(e){return bt.isObject(e)&&!0===e.isAxiosError},Sn.formToJSON=e=>Ut(bt.isHTMLForm(e)?new FormData(e):e);var On=Sn;const{Axios:kn,AxiosError:Tn,CanceledError:Pn,isCancel:Ln,CancelToken:Mn,VERSION:Rn,all:An,Cancel:Nn,isAxiosError:Vn,spread:Dn,toFormData:In}=On,jn=On.create({baseURL:window.extOnbData.root,headers:{"X-WP-Nonce":window.extOnbData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Onboarding":!0,"X-Extendify":!0}});jn.interceptors.request.use((e=>Bn(e)),(e=>e)),jn.interceptors.response.use((e=>Fn(e)),(e=>Hn(e)));const Fn=e=>Object.prototype.hasOwnProperty.call(e,"data")?e.data:e,Hn=e=>{if(e.response)return console.error(e.response),e.response.status>=400&&e.response.status<500?Promise.reject(e.response):Promise.reject(Fn(e.response))},Bn=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),Un=(e,t)=>jn.post("onboarding/options",{option:e,value:t}),zn=async e=>{const{data:t}=await jn.get("onboarding/options",{params:{option:e}});return t},Zn=async e=>{if(null!=e&&e.wordpressSlug){try{const t=await jn.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 jn.get(`${n}?search=${e.wordpressSlug}`),o=null==r||null===(t=r[0])||void 0===t?void 0:t.plugin;if(!o)throw new Error("Plugin not found");return await jn.post(`${n}/${o}`,{status:"active"})},qn=(e,t)=>jn.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}),Wn=async()=>{const e=await jn.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 Yn={};!function e(t,n,r,o){var a=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function i(){}function s(e){var r=n.exports.Promise,o=void 0!==r?r:t.Promise;return"function"==typeof o?new o(e):(e(i,i),null)}var l,u,c,d,f,p,m,h,v,g=(c=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+c-1<r?(f=r,delete d[t],e()):d[t]=requestAnimationFrame(n)})),t},u=function(e){d[e]&&cancelAnimationFrame(d[e])}):(l=function(e){return setTimeout(e,c)},u=function(e){return clearTimeout(e)}),{frame:l,cancel:u}),y=(h={},function(){if(p)return p;if(!r&&a){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,o){if(m)return t(n,null),m;var a=Math.random().toString(36).slice(2);return m=s((function(r){function i(t){t.data.callback===a&&(delete h[a],e.removeEventListener("message",i),m=null,o(),r())}e.addEventListener("message",i),t(n,a),h[a]=i.bind(null,{data:{callback:a}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),h)h[t](),delete h[t]}}(p)}return p}),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 x(e){return e<0?0:Math.floor(e)}function E(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:E(t.substring(0,2)),g:E(t.substring(2,4)),b:E(t.substring(4,6))}}function O(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 T(e,n){var i,l=!e,u=!!w(n||{},"resize"),c=w(n,"disableForReducedMotion",Boolean),d=a&&w(n||{},"useWorker")?y():null,f=l?O:k,p=!(!e||!d||!e.__confetti_initialized),m="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function h(t,n,a){for(var l,u,c,d,p=w(t,"particleCount",x),m=w(t,"angle",Number),h=w(t,"spread",Number),v=w(t,"startVelocity",Number),y=w(t,"decay",Number),b=w(t,"gravity",Number),E=w(t,"drift",Number),S=w(t,"colors",C),O=w(t,"ticks",Number),k=w(t,"shapes"),T=w(t,"scalar"),P=function(e){var t=w(e,"origin",Object);return t.x=w(t,"x",Number),t.y=w(t,"y",Number),t}(t),L=p,M=[],R=e.width*P.x,A=e.height*P.y;L--;)M.push((void 0,void 0,u=(l={x:R,y:A,angle:m,spread:h,startVelocity:v,color:S[L%S.length],shape:k[(0,d=k.length,Math.floor(Math.random()*(d-0))+0)],ticks:O,decay:y,gravity:b,drift:E,scalar:T}).angle*(Math.PI/180),c=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:-u+(.5*c-Math.random()*c),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 i?i.addFettis(M):(i=function(e,t,n,a,i){var l,u,c=t.slice(),d=e.getContext("2d"),f=s((function(t){function s(){l=u=null,d.clearRect(0,0,a.width,a.height),i(),t()}l=g.frame((function t(){!r||a.width===o.width&&a.height===o.height||(a.width=e.width=o.width,a.height=e.height=o.height),a.width||a.height||(n(e),a.width=e.width,a.height=e.height),d.clearRect(0,0,a.width,a.height),c=c.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,o=t.y+t.random*t.tiltSin,a=t.wobbleX+t.random*t.tiltCos,i=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(a-r)*t.ovalScalar,Math.abs(i-o)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,n,r,o,a,i,s,l){e.save(),e.translate(t,n),e.rotate(a),e.scale(r,o),e.arc(0,0,1,0,s,void 0),e.restore()}(e,t.x,t.y,Math.abs(a-r)*t.ovalScalar,Math.abs(i-o)*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(o)),e.lineTo(Math.floor(a),Math.floor(i)),e.lineTo(Math.floor(r),Math.floor(t.wobbleY))),e.closePath(),e.fill(),t.tick<t.totalTicks}(d,e)})),c.length?l=g.frame(t):s()})),u=s}));return{addFettis:function(e){return c=c.concat(e),f},canvas:e,promise:f,reset:function(){l&&g.cancel(l),u&&u()}}}(e,M,f,n,a)).promise}function v(n){var r=c||w(n,"disableForReducedMotion",Boolean),o=w(n,"zIndex",Number);if(r&&m)return s((function(e){e()}));l&&i?e=i.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}(o),document.body.appendChild(e)),u&&!p&&f(e);var a={width:e.width,height:e.height};function v(){if(d){var t={getBoundingClientRect:function(){if(!l)return e.getBoundingClientRect()}};return f(t),void d.postMessage({resize:{width:t.width,height:t.height}})}a.width=a.height=null}function g(){i=null,u&&t.removeEventListener("resize",v),l&&e&&(document.body.removeChild(e),e=null,p=!1)}return d&&!p&&d.init(e),p=!0,d&&(e.__confetti_initialized=!0),u&&t.addEventListener("resize",v,!1),d?d.fire(n,a,g):h(n,a,g)}return v.reset=function(){d&&d.reset(),i&&i.reset()},v}function P(){return v||(v=T(null,{useWorker:!0,resize:!0})),v}n.exports=function(){return P().apply(this,arguments)},n.exports.reset=function(){P().reset()},n.exports.create=T}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),Yn,!1);var Gn=Yn.exports;Yn.exports.create;const Xn=async e=>{var t;const n=await jn.get("onboarding/styles",{params:e}),{headers:r,footers:o}=await(async()=>{var e,t,n;let r=await jn.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,a,i,s,l;const u=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"})),c=null==o?void 0:o.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==u||null===(n=u.content)||void 0===n||null===(a=n.raw)||void 0===a?void 0:a.trim())&&void 0!==t?t:"",footerCode:null!==(i=null==c||null===(s=c.content)||void 0===s||null===(l=s.raw)||void 0===l?void 0:l.trim())&&void 0!==i?i:""}}))}},Jn=e=>jn.get("onboarding/template",{params:e}),Kn=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("")},Qn=async(e,t,n)=>n.dryRun?new Promise((e=>setTimeout(e,t))):Promise.all([await e(),new Promise((e=>setTimeout(e,t)))]),er=async()=>{try{return await jn.get("onboarding/ping"),!0}catch(e){}return await new Promise((e=>setTimeout(e,1e3))),er()},tr=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,a={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,a),a};var nr=n(798);const{useSyncExternalStoreWithSelector:rr}=nr,or=e=>{const t="function"==typeof e?(e=>e?tr(e):tr)(e):e,n=(e,n)=>function(e,t=e.getState,n){const r=rr(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,o.useDebugValue)(r),r}(t,e,n);return Object.assign(n,t),n},ar=e=>e?or(e):or,ir=(e,t={})=>(n,r,o)=>{const{enabled:a,anonymousActionType:i,...s}=t;let l;try{l=(null==a||a)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return a&&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 a=n(e,t);return c?(u.send(void 0===o?{type:i||"anonymous"}:"string"==typeof o?{type:o}:o,r()),a):a};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"):sr(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 sr(e.state,(e=>{d(e),u.init(o.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 u.send(null,n)}case"PAUSE_RECORDING":return c=!c}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)},lr=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(e){return lr(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return lr(t)(e)}}}},ur=(e,t)=>(n,r,o)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},i=!1;const s=new Set,l=new Set;let u;try{u=a.getStorage()}catch(e){}if(!u)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)}),r,o);const c=lr(a.serialize),d=()=>{const e=a.partialize({...r()});let t;const n=c({state:e,version:a.version}).then((e=>u.setItem(a.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;i=!1,s.forEach((e=>e(r())));const t=(null==(e=a.onRehydrateStorage)?void 0:e.call(a,r()))||void 0;return lr(u.getItem.bind(u))(a.name).then((e=>{if(e)return a.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===a.version)return e.state;if(a.migrate)return a.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=a.merge(e,null!=(t=r())?t:p),n(m,!0),d()})).then((()=>{null==t||t(m,void 0),i=!0,l.forEach((e=>e(m)))})).catch((e=>{null==t||t(void 0,e)}))};return o.persist={setOptions:e=>{a={...a,...e},e.getStorage&&(u=e.getStorage())},clearStorage:()=>{null==u||u.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>i,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},h(),m||p},cr={siteType:{},siteInformation:{title:void 0},feedbackMissingSiteType:"",feedbackMissingGoal:"",exitFeedback:void 0,siteTypeSearch:[],style:null,pages:[],plugins:[],goals:[]},dr=ar(ur(ir(((e,t)=>({...cr,setSiteType(t){e({siteType:t})},setSiteInformation(n,r){const o={...t().siteInformation,[n]:r};e({siteInformation:o})},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 o;e({[n]:null===(o=t()[n])||void 0===o?void 0:o.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,o,a,i,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===(o=Object.keys(null!==(a=null===(i=t())||void 0===i?void 0:i.style)&&void 0!==a?a:{}))||void 0===o?void 0:o.length)>0&&(null===(s=t())||void 0===s||null===(l=s.pages)||void 0===l?void 0:l.length)>0},resetState(){e(cr)}})),{name:"Extendify User Selection"}),{name:"extendify-site-selection",getStorage:()=>localStorage}));function fr(){return fr=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},fr.apply(this,arguments)}var pr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),mr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),hr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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",fr({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"}))})),gr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),yr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),br=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),wr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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",fr({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"}))})),Er=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),Cr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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",fr({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 Sr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),Or=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),kr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),Tr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),Pr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),Lr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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",fr({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 Mr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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 Rr=()=>{var t,n,r;const[o]=(0,e.useState)(!0),[a,i]=(0,e.useState)(!1),[s,l]=(0,e.useState)(!0),u=dr((e=>e.canLaunch())),{siteType:c,siteInformation:d,pages:f,style:p,plugins:m,goals:h}=dr(),[v,g]=(0,e.useState)([]),[y,b]=(0,e.useState)([]),w=e=>g((t=>[e,...t])),x=e=>b((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])}(s);const C=(0,e.useCallback)((async()=>{if(!u)throw new Error((0,Q.__)("Site is not ready to launch.","extendify"));try{var e;let n;if(w((0,Q.__)("Applying site styles","extendify")),x((0,Q.__)("A beautiful site in... 3, 2, 1","extendify")),await er(),await Qn((async()=>await Un("blogname",d.title)),2e3,{dryRun:E.current}),E.current||(await er(),await(t=null!==(e=null==p?void 0:p.variation)&&void 0!==e?e:{},((e,t)=>jn.post(`${window.extOnbData.wpRoot}wp/v2/global-styles/${e}`,{id:e,settings:t.settings,styles:t.styles}))(window.extOnbData.globalStylesPostID,t)),await er(),await qn("extendable/header",null==p?void 0:p.headerCode),await er(),await qn("extendable/footer",null==p?void 0:p.footerCode)),w((0,Q.__)("Generating page content","extendify")),x((0,Q.__)("Starting off with a full site...","extendify")),await er(),await Qn((async()=>{const e={slug:"blog",title:(0,Q.__)("Blog","extendify")},t=[...f,e];await er(),n=await(async(e,t,n)=>{const r={};for(const s of e){const e=await Jn({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 o,a;null!=e&&e.data&&(l=[null==e||null===(o=e.data)||void 0===o?void 0:o.code,null==e||null===(a=e.data)||void 0===a?void 0:a.code2].filter(Boolean).join(""));const u=await(i={title:s.title,status:"publish",content:l,template:"no-title",meta:{made_with_extendify_launch:!0}},jn.post(`${window.extOnbData.wpRoot}wp/v2/pages`,i));r[s.slug]={id:u.id,title:s.title}}var i;return null!=r&&r.home&&(await Un("show_on_front","page"),await Un("page_on_front",r.home.id)),null!=r&&r.blog&&await Un("page_for_posts",r.blog.id),r})(t,c,p),await er();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 o=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,o)}(h.some((e=>"blog"===e.slug))?t:f,n,null==p?void 0:p.headerCode);await er(),await qn("extendable/header",r)}),2e3,{dryRun:E.current}),null!=m&&m.length){w((0,Q.__)("Installing suggested plugins","extendify"));for(const[e,t]of m.entries()){x((0,Q.__)(`${e+1}/${m.length}: ${t.name}`,"extendify")),await er();try{await Zn(t)}catch(e){await er(),await Zn(t)}}}return w((0,Q.__)("Setting up your site assistant","extendify")),x((0,Q.__)("Helping your site to be successful...","extendify")),await er(),await Qn((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 jn.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,jn.delete(`${window.extOnbData.wpRoot}wp/v2/${r}s/${n}`))})));var e}),2e3,{dryRun:E.current}),E.current||(await er(),await Un("permalink_structure","/%postname%/")),w((0,Q.__)("Your site has been created!","extendify")),x((0,Q.__)("Redirecting in 3, 2, 1...","extendify")),i(!0),l(!1),await new Promise((e=>setTimeout(e,2500))),E.current||(await er(),await Un("extendify_onboarding_completed",(new Date).toISOString())),n}catch(e){if(e.status>=400&&e.status<500){l(!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))),C()}var t}),[h,f,m,c,p,u,d.title]);return(0,e.useEffect)((()=>{const e=new URLSearchParams(window.location.search);E.current=e.has("dry-run")}),[]),(0,e.useEffect)((()=>{C().then((()=>{window.location.replace(window.extOnbData.adminUrl+"admin.php?page=extendify-assist&extendify-launch-success")}))}),[C]),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,o=()=>{Gn({...t,disableForReducedMotion:!0,zIndex:1e5}),Date.now()<e&&requestAnimationFrame(o)};o()}),[t,n,r])}({particleCount:2,angle:320,spread:120,origin:{x:0,y:0},colors:["var(--ext-partner-theme-primary-text, #ffffff)"]},2500,a),(0,e.createElement)(qe,{show:o,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,v.map(((t,n)=>{if(!n)return(0,e.createElement)(qe,{appear:!0,show:o,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)(Lr,{className:"spin"}),y.map(((t,n)=>{if(!n)return(0,e.createElement)(qe,{appear:!0,show:o,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)(yr,{className:"logo text-partner-primary-text w-28"}),(0,e.createElement)("span",{className:"absolute -bottom-2 right-3 font-semibold tracking-tight"},"Launch"))))},Ar=ir((e=>({generating:!1,exitModalOpen:!1,closeExitModal:()=>e({exitModalOpen:!1}),openExitModal:()=>e({exitModalOpen:!0}),hoveredOverExitButton:!1,setExitButtonHovered:()=>e({hoveredOverExitButton:!0})})),{name:"Extendify Launch Globals"}),Nr=ar(Ar);var Vr=n(184),Dr=n.n(Vr);const Ir=t=>{let{label:n,slug:r,description:o,checked:a,onChange:i,Icon:s}=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:i,defaultChecked:a}),(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),o?(0,e.createElement)("span",{className:"block pt-1 text-gray-700 pr-4 font-normal"},o):(0,e.createElement)("span",null))),s&&(0,e.createElement)(s,{className:"flex-none text-partner-primary-bg h-6 w-6"}))},jr=()=>{const{nextPage:t,currentPageIndex:n,pages:r}=ep(),o=Array.from(r.keys())[n],a=r.get(o).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:!a.ready,type:"button"},(0,Q.__)("Next","extendify"),(0,e.createElement)(gr,{className:"h-5 w-5"}))},Fr=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{data:r,error:o}=J(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}),a=null==r?void 0:r.data;return{data:a,loading:!a&&!o,error:o}},_r=t=>{let{disabled:n=!1}=t;const{setPage:r}=ep(),o=ep((e=>e.pages)),a=ep((e=>e.currentPageIndex)),i=(0,e.useMemo)((()=>Array.from(o.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}))),[o]),s=(0,e.useMemo)((()=>i.reduce(((e,t)=>Math.min(e,t.pageIndex)),1/0)),[i]);return null==i||!i.length||a<s?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,i.map((t=>{var o,i;return(0,e.createElement)("li",{key:null==t||null===(o=t.state.getState())||void 0===o?void 0:o.title,className:Dr()("text-base",{hidden:t.pageIndex>a,"line-through opacity-60":t.pageIndex<a,"hover:opacity-100 hover:no-underline":!n})},(0,e.createElement)("button",{className:Dr()("bg-transparent p-0 text-partner-primary-text flex items-center",{"cursor-pointer":t.pageIndex<a&&!n}),type:"button",disabled:n,onClick:()=>r(null==t?void 0:t.pageIndex)},t.pageIndex<a?(0,e.createElement)(mr,{className:"text-partner-primary-text h-6 w-6 mr-1"}):(0,e.createElement)(Cr,{className:"text-partner-primary-text h-6 w-6 mr-1"}),null==t||null===(i=t.state.getState())||void 0===i?void 0:i.title))}))))},Hr=()=>{const{previousPage:t,currentPageIndex:n,pages:r}=ep(),{openExitModal:o,setExitButtonHovered:a}=Nr(),i=0===n,s=Array.from(r.keys())[n];return(0,e.createElement)("div",{className:"flex items-center space-x-2"},i&&(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:a,onClick:o},(0,e.createElement)("span",{className:"dashicons dashicons-no-alt text-white md:text-black"}))),(0,e.createElement)("div",{className:Dr()("flex flex-1",{"justify-end":"welcome"===s,"justify-between":"welcome"!==s})},i||(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)(Sr,{className:"h-5 w-5"}),(0,Q.__)("Back","extendify")),i&&(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:a,onClick:o},(0,e.createElement)(Sr,{className:"h-5 w-5"}),(0,Q.__)("Exit Launch","extendify")),(0,e.createElement)(Br,null)))},Br=()=>{const{nextPage:t,currentPageIndex:n,pages:r}=ep(),o=ep((e=>e.count())),a=dr((e=>e.canLaunch())),i=n===o-1,s=Array.from(r.keys())[n],l=r.get(s).state,[u,c]=(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 c(null==l||null===(e=l.getState())||void 0===e?void 0:e.ready),l.subscribe((e=>{let{ready:t}=e;return c(t)}))}),[l,n]),a&&i?(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:()=>{Nr.setState({generating:!0})},type:"button"},d?(0,Q.__)("Next","extendify"):(0,Q.__)("Launch site","extendify"),d?(0,e.createElement)(gr,{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:!u,type:"button"},(0,Q.__)("Next","extendify"),(0,e.createElement)(gr,{className:"h-5 w-5"}))},Ur=t=>{var n,r,o;let{children:a,includeNav:i=!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===(o=window.extOnbData)||void 0===o?void 0:o.partnerName)&&void 0!==r?r:""})),a[0]),(0,e.createElement)(_r,{disabled:!i})),(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)(yr,{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"},i?(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)(Hr,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"},a[1])))},zr=(e,t)=>ar(ir(t,{name:`Extendify Launch ${e}`})),Zr=()=>jn.get("onboarding/goals"),$r=()=>({key:"goals"}),qr=zr("Goals",(()=>({title:(0,Q.__)("Goals","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>{const{feedbackMissingGoal:e,goals:t}=dr.getState();return!(null!=e&&e.length)&&0===(null==t?void 0:t.length)}}))),Wr=async()=>({data:{title:await zn("blogname")}}),Yr=()=>({key:"site-info"}),Gr=zr("Site Title",(()=>({title:(0,Q.__)("Site Title","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>{}})));var Xr=window.wp.blockEditor,Jr=window.wp.blocks,Kr=n(767),Qr=n.n(Kr);const eo=o.createContext({});function to({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:o,circle:a,direction:i,duration:s,enableAnimation:l=!0}){const u={};return"rtl"===i&&(u["--animation-direction"]="reverse"),"number"==typeof s&&(u["--animation-duration"]=`${s}s`),l||(u["--pseudo-element-display"]="none"),"string"!=typeof n&&"number"!=typeof n||(u.width=n),"string"!=typeof r&&"number"!=typeof r||(u.height=r),"string"!=typeof o&&"number"!=typeof o||(u.borderRadius=o),a&&(u.borderRadius="50%"),void 0!==e&&(u["--base-color"]=e),void 0!==t&&(u["--highlight-color"]=t),u}function no({count:e=1,wrapper:t,className:n,containerClassName:r,containerTestId:a,circle:i=!1,style:s,...l}){var u,c,d;const f=o.useContext(eo),p={...l};for(const[e,t]of Object.entries(l))void 0===t&&delete p[e];const m={...f,...p,circle:i},h={...s,...to(m)};let v="react-loading-skeleton";n&&(v+=` ${n}`);const g=null!==(u=m.inline)&&void 0!==u&&u,y=[],b=Math.ceil(e);for(let t=0;t<b;t++){let n=h;if(b>e&&t===b-1){const t=null!==(c=n.width)&&void 0!==c?c:"100%",r=e%1,o="number"==typeof t?t*r:`calc(${t} * ${r})`;n={...n,width:o}}const r=o.createElement("span",{className:v,style:n,key:t},"");g?y.push(r):y.push(o.createElement(o.Fragment,{key:t},r,o.createElement("br",null)))}return o.createElement("span",{className:r,"data-testid":a,"aria-live":"polite","aria-busy":null===(d=m.enableAnimation)||void 0===d||d},t?y.map(((e,n)=>o.createElement(t,{key:n},e))):y)}function ro({children:e,...t}){return o.createElement(eo.Provider,{value:t},e)}const oo=t=>{var n,r;let{theme:o,context:a}=t;const[i,s]=(0,e.useState)(),l=null!==(n=null==o?void 0:o.color)&&void 0!==n?n:"#000000",u=null!==(r=null==o?void 0:o.bgColor)&&void 0!==r?r:"#cccccc";return(0,e.useEffect)((()=>{const e=requestAnimationFrame((()=>{if(null==o||!o.color)return;const e=Qr()(l).isLight()?so(Qr()(l),.15).hexa():io(Qr()(l),.15).hexa();s(e)}));return()=>cancelAnimationFrame(e)}),[l,u,null==o?void 0:o.color]),(0,e.createElement)("div",{className:Dr()({"group w-full overflow-hidden relative min-h-full button-focus button-card":"style"===a})},(0,e.createElement)(qe,{appear:!0,show:!i,leave:"transition-opacity duration-1000",leaveFrom:"opacity-100",leaveTo:"opacity-0",className:"absolute inset-0 z-10 bg-white"},(0,e.createElement)("div",{className:Dr()({"m-2 p-2 pt-1":"style"===a,"p-2":"style"!==a})},(0,e.createElement)(ao,{highlightColor:"hsl(0deg 0% 75%)",color:"hsl(0deg 0% 80%)"}))),Boolean(i)&&(0,e.createElement)("div",{className:"overflow-hidden absolute inset-0 opacity-30",style:{zIndex:-1}},(0,e.createElement)("div",{className:Dr()({"m-2 p-2 pt-1":"style"===a,"p-2":"style"!==a}),style:{backgroundColor:u,textAlign:"initial"}},(0,e.createElement)(ao,{highlightColor:i,color:l}))))},ao=t=>{let{color:n,highlightColor:r}=t;return(0,e.createElement)(ro,{duration:2.3,baseColor:n,highlightColor:r},(0,e.createElement)(no,{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)(no,{className:"w-28 h-4 mb-1 rounded-none"})),(0,e.createElement)("div",null,(0,e.createElement)(no,{className:"w-44 h-4 mb-1 rounded-none"})),(0,e.createElement)("div",null,(0,e.createElement)(no,{className:"w-12 h-6 mb-1 rounded-none"}))),(0,e.createElement)("div",{className:"px-4"},(0,e.createElement)(no,{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)(no,{className:"w-40 h-4 mb-1 rounded-none"})),(0,e.createElement)("div",null,(0,e.createElement)(no,{className:"w-40 h-4 mb-1 rounded-none"})),(0,e.createElement)("div",null,(0,e.createElement)(no,{className:"w-40 h-4 mb-1 rounded-none"}))),(0,e.createElement)("div",null,(0,e.createElement)("div",null,(0,e.createElement)(no,{className:"w-24 h-4 mb-1 rounded-none"})),(0,e.createElement)("div",null,(0,e.createElement)(no,{className:"w-24 h-4 mb-1 rounded-none"}))))))},io=(e,t)=>{const n=e.lightness();return e.lightness(n+(100-n)*t)},so=(e,t)=>{const n=e.lightness();return e.lightness(n-n*t)},lo=async e=>{if(!e)return"{}";const t=await(e=>jn.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}},uo=t=>{var n,r,o,a,i,s,l;let{style:u,onSelect:c,blockHeight:d,context:f,active:p=!1,onHover:m=null}=t;const h=dr((e=>e.siteType)),v=(()=>{const t=(0,e.useRef)(!1);return(0,e.useEffect)((()=>(t.current=!0,()=>t.current=!1))),t})(),[g,y]=(0,e.useState)(""),[b,w]=(0,e.useState)(!1),[x,E]=(0,e.useState)(0),[C,S]=(0,e.useState)(null),[O,k]=(0,e.useState)(!1),[T,P]=(0,e.useState)(null),[L,M]=(0,e.useState)(),R=(0,e.useRef)(null),A=(0,e.useRef)(null),N=(0,e.useRef)(null),V=(0,e.useRef)(null),D=(0,e.useRef)(!1),{data:I}=Fr(O&&L?L:null,lo),{data:j}=Fr("variations",Wn),F=null==L||null===(n=L.settings)||void 0===n||null===(r=n.color)||void 0===r||null===(o=r.palette)||void 0===o?void 0:o.theme,_=(0,e.useMemo)((()=>{return(0,Jr.rawHandler)({HTML:(e=g,e.replace(/\w+:\/\/\S*(w=(\d*))&\w+\S*"/g,((e,t,n)=>e.replace(t,"w="+Math.floor(Number(n))+"&q=10"))))});var e}),[g]),H=(0,e.useMemo)((()=>I?(0,Xr.transformStyles)([{css:I}],".editor-styles-wrapper"):null),[I]);return(0,e.useEffect)((()=>{if(C||!O)return;const e=setTimeout((()=>{const e=R.current,t=null==e?void 0:e.querySelector("iframe[title]");if(!t)return E((e=>e+1));S(t)}),100);return()=>clearTimeout(e)}),[C,O,x]),(0,e.useLayoutEffect)((()=>{var e,t;if(!O||!f.measure)return;const n=`${f.type}-${f.detail}`;if(!b&&!D.current)return D.current=0,void(V.current=performance.now());let r;try{r=performance.measure(n,{start:V.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 o=new URLSearchParams(window.location.search);var a;null!=o&&o.has("performance")&&D.current&&console.info(`🚀 ${a=f.type,a.charAt(0).toUpperCase()+a.slice(1).toLowerCase()} (${f.detail}) in ${D.current.toFixed()}ms`)}),[b,f,O]),(0,e.useEffect)((()=>{if(null==j||!j.length)return;const e=j.find((e=>e.title===u.label));M(e)}),[u,j]),(0,e.useEffect)((()=>{if(!I||null==u||!u.code)return;const e=[null==u?void 0:u.headerCode,null==u?void 0:u.code,null==u?void 0:u.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==h?void 0:h.slug,I,u]),(0,e.useEffect)((()=>{var e;if(!C||!b)return;let t,n;const r=R.current,o=r.offsetWidth/1400,a=C.contentDocument.body;null!=a&&a.style&&(a.style.transitionProperty="all",a.style.top=0),null===(e=a.querySelector("[href*=load-styles]"))||void 0===e||e.remove();const i=()=>{var e,n;if(null==a||!a.offsetHeight)return;const r=(null!==(e=null==A||null===(n=A.current)||void 0===n?void 0:n.offsetHeight)&&void 0!==e?e:d)-32,i=a.getBoundingClientRect().height-r/o;a.style.transitionDuration=Math.max(2*i,3e3)+"ms",t=window.requestAnimationFrame((()=>{a.style.top=-1*Math.max(0,i)+"px"}))},s=()=>{var e,t;if(null==a||!a.offsetHeight)return;const r=(null!==(e=null==A||null===(t=A.current)||void 0===t?void 0:t.offsetHeight)&&void 0!==e?e:d)-32,i=a.offsetHeight-r/o;a.style.transitionDuration=i+"ms",n=window.requestAnimationFrame((()=>{a.style.top=0}))};return r.addEventListener("focus",i),r.addEventListener("mouseenter",i),r.addEventListener("blur",s),r.addEventListener("mouseleave",s),()=>{window.cancelAnimationFrame(t),window.cancelAnimationFrame(n),r.removeEventListener("focus",i),r.removeEventListener("mouseenter",i),r.removeEventListener("blur",s),r.removeEventListener("mouseleave",s)}}),[d,b,C]),(0,e.useEffect)((()=>{if(null==_||!_.length||!C)return;let e,t;const n=()=>{const n=C.contentDocument,r=`<style id="ext-tj">${H}</style>`;var o;null!=n&&n.getElementById("ext-tj")||null==n||null===(o=n.head)||void 0===o||o.insertAdjacentHTML("beforeend",r),t=setTimeout((()=>v.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)))}}),[_,H,v,O,C]),(0,e.useEffect)((()=>{if(!N.current)return N.current=new IntersectionObserver((e=>{e[0].isIntersecting&&k(!0)})),N.current.observe(A.current),()=>N.current.disconnect()}),[]),(0,e.createElement)(e.Fragment,null,b&&g?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)(oo,{context:"style",theme:{color:null==F||null===(a=F.find((e=>"foreground"===e.slug)))||void 0===a?void 0:a.color,bgColor:null==F||null===(i=F.find((e=>"background"===e.slug)))||void 0===i?void 0:i.color}}))),(0,e.createElement)("div",{"data-cy":"styleSelector",ref:A,role:c?"button":void 0,tabIndex:c?0:void 0,"aria-label":c?(0,Q.__)("Press to select","extendify"):void 0,className:Dr()("group w-full overflow-hidden bg-transparent z-10",{"relative min-h-full":b,"absolute opacity-0":!b,"button-focus button-card p-2":c,"ring-partner-primary-bg ring-offset-2 ring-offset-white ring-wp":p}),onKeyDown:e=>{["Enter","Space"," "].includes(e.key)&&c&&c({...u,variation:L})},onMouseEnter:()=>{m&&P(m)},onMouseLeave:()=>{T&&(T(),P(null))},onClick:c?()=>c({...u,variation:L}):()=>{}},null!==(s=window)&&void 0!==s&&null!==(l=s.extOnbData)&&void 0!==l&&l.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==u?void 0:u.label," - ",Number(D.current).toFixed(2),"ms"):null,(0,e.createElement)("div",{ref:R,className:"relative rounded-lg"},O?(0,e.createElement)(Xr.BlockPreview,{blocks:_,viewportWidth:1400,live:!1}):null)))},co=e=>Jn(e),fo=t=>{let{page:n,blockHeight:r,required:o=!1,displayOnly:a=!1,title:i=""}=t;const{siteType:s,style:l,toggle:u,has:c}=dr(),d="home"===(null==n?void 0:n.slug),{data:f}=Fr({siteType:s.slug,layoutType:n.slug,baseLayout:d?s.slug.startsWith("blog")?null==l?void 0:l.blogBaseLayout:null==l?void 0:l.homeBaseLayout:null,kit:"home"!==n.slug?null==l?void 0:l.kit:null},co);return a?(0,e.createElement)("div",{className:"text-base p-2 bg-transparent overflow-hidden rounded-lg border border-gray-100",style:{height:r}},i&&(0,e.createElement)("div",{className:"p-3 pb-0 bg-white text-left"},i),(0,e.createElement)(po,{key:null==l?void 0:l.recordId,page:n,measure:!1,blockHeight:r,style:{...l,code:Kn({template:f})}})):(0,e.createElement)("div",{"data-cy":"pageSelector",role:"button",tabIndex:0,"aria-label":(0,Q.__)("Press to select","extendify"),disabled:o,className:"text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100 button-focus",onClick:()=>o||u("pages",n),title:o&&i?(0,Q.sprintf)(// translators: %s is the name of a page (e.g. Home, Blog, About)
|
3 |
(0,Q.__)("%s page is required","extendify"),i):(0,Q.sprintf)(// translators: %s is the name of a page (e.g. Home, Blog, About)
|
4 |
-
(0,Q.__)("Toggle %s page","extendify"),i),onKeyDown:e=>{["Enter","Space"," "].includes(e.key)&&(o||u("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"},i&&(0,e.createElement)("div",{className:Dr()("flex items-center",{"text-gray-700":!c("pages",n)})},(0,e.createElement)("span",{className:"text-left"},i),o&&(0,e.createElement)("span",{className:"w-4 h-4 text-base leading-none pl-2 mr-6 dashicons dashicons-lock"})),c("pages",n)?(0,e.createElement)("div",{className:Dr()("w-5 h-5 rounded-sm",{"bg-gray-700":o,"bg-partner-primary-bg":!o})},(0,e.createElement)(mr,{className:"text-white w-5"})):(0,e.createElement)("div",{className:Dr()("border w-5 h-5 rounded-sm",{"border-gray-700":o,"border-partner-primary-bg":!o})})),(0,e.createElement)("div",{className:"p-2 relative",style:{height:r-44}},(0,e.createElement)(po,{key:null==l?void 0:l.recordId,page:n,blockHeight:r,style:{...l,code:Kn({template:f})}})))},po=t=>{let{page:n,style:r,measure:o=!0,blockHeight:a=!1}=t;const i=(0,e.useMemo)((()=>({type:"page",detail:n.slug,measure:o})),[n,o]);return(0,e.createElement)(uo,{style:r,context:i,blockHeight:a})},mo=async()=>{var e,t;const n=await jn.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 o=r[0],a=null===(t=r.slice(1))||void 0===t?void 0:t.sort(((e,t)=>e.title>t.title?1:-1));return{data:[o,...null!=a?a:[]]}},ho=()=>({key:"layout-types"}),vo=zr("Pages",((e,t)=>({title:(0,Q.__)("Pages","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>{var e,n;return(null===(e=dr.getState().pages)||void 0===e?void 0:e.length)===(null===(n=t().default)||void 0===n?void 0:n.length)}}))),go=e=>Xn(e),yo=e=>{var t,n,r,o,a;return{key:"site-style",siteType:null!==(n=null===(r=e=null!==(t=e)&&void 0!==t?t:null==dr?void 0:dr.getState().siteType)||void 0===r?void 0:r.slug)&&void 0!==n?n:"default",styles:null!==(o=null===(a=e)||void 0===a?void 0:a.styles)&&void 0!==o?o:[]}},bo=zr("Design",((e,t)=>({title:(0,Q.__)("Design","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>{var e,n;return(null===(e=dr.getState().style)||void 0===e?void 0:e.slug)===(null===(n=t().default)||void 0===n?void 0:n.slug)}}))),wo=t=>{var n,r;let{style:o}=t;const a=(0,e.useCallback)((e=>{dr.getState().setStyle(e)}),[]),i=(0,e.useMemo)((()=>({type:"style",detail:o.slug,measure:!0})),[o]);return(0,e.createElement)("div",{className:"relative",style:{height:497,width:352}},(0,e.createElement)(uo,{style:o,context:i,onSelect:a,active:(null===(n=dr.getState())||void 0===n||null===(r=n.style)||void 0===r?void 0:r.slug)===o.slug,blockHeight:497}))},xo=t=>{let{label:n,slug:r,description:o,checked:a,onChange:i}=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:i,defaultChecked:a}),(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),o?(0,e.createElement)("span",{className:"block pt-1"},o):(0,e.createElement)("span",null)))},Eo=()=>jn.get("onboarding/suggested-plugins"),Co=()=>({key:"plugins"}),So=()=>{var t;const{data:n}=Fr(Co,Eo),{goals:r,add:o,toggle:a,remove:i}=dr(),s=(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]),l=(0,e.useCallback)((e=>{if(s)return!0;const t=r.map((e=>e.slug));return null==e?void 0:e.goals.find((e=>t.includes(e)))}),[r,s]);return(0,e.useEffect)((()=>{var e;null==n||n.forEach((e=>i("plugins",e))),s||null==n||null===(e=n.filter(l))||void 0===e||e.forEach((e=>o("plugins",e)))}),[n,o,s,l,i]),(0,e.createElement)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4"},null==n||null===(t=n.filter(l))||void 0===t?void 0:t.map((t=>(0,e.createElement)("div",{key:t.id},(0,e.createElement)(xo,{label:t.name,slug:t.wordpressSlug,description:t.description,checked:!s,onChange:()=>a("plugins",t)})))))},Oo=zr("Site Summary",(()=>({title:(0,Q.__)("Summary","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>!0})));function ko(e,t){let[n,r]=(0,o.useState)(e),a=ye(e);return ve((()=>r(a.current)),[a,r,...t]),n}var To;let Po=0;function Lo(){return++Po}let Mo=null!=(To=o.useId)?To:function(){let e=we(),[t,n]=o.useState(e?Lo:null);return ve((()=>{null===t&&n(Lo())}),[t]),null!=t?""+t:void 0};function Ro(e){return he?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Ao=["[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 No=(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))(No||{}),Vo=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Vo||{}),Do=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Do||{});var Io=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Io||{});function jo(e){null==e||e.focus({preventScroll:!0})}let Fo=["textarea","input"].join(",");function _o(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 a=r.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function Ho(e,t,n=!0,r=null){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?_o(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Ao))}(e);r=null!=r?r:o.activeElement;let i,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,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},c=0,d=a.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}i=a[e],null==i||i.focus(u),c+=s}while(i!==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,Fo))&&n}(i)&&i.select(),i.hasAttribute("tabindex")||i.setAttribute("tabindex","0"),2}function Bo(e,t,n){let r=ye(t);(0,o.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function Uo(e,t,n=!0){let r=(0,o.useRef)(!1);function a(n,o){if(!r.current||n.defaultPrevented)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),i=o(n);if(null!==i&&i.ownerDocument.documentElement.contains(i)){for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(i))return}return!function(e,t=0){var n;return e!==(null==(n=Ro(e))?void 0:n.body)&&te(t,{0(){return e.matches(Ao)},1(){let t=e;for(;null!==t;){if(t.matches(Ao))return!0;t=t.parentElement}return!1}})}(i,Io.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}}(0,o.useEffect)((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let i=(0,o.useRef)(null);Bo("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),Bo("click",(e=>{!i.current||(a(e,(()=>i.current)),i.current=null)}),!0),Bo("blur",(e=>a(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}function zo(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function Zo(e,t){let[n,r]=(0,o.useState)((()=>zo(e)));return ve((()=>{r(zo(e))}),[e.type,e.as]),ve((()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}var $o=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))($o||{});function qo(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}function Wo(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))Go(n,Yo(t,r),o);return n}function Yo(e,t){return e?e+"["+t+"]":t}function Go(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())Go(e,Yo(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):Wo(n,t,e)}var Xo=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Xo||{});let Jo=le((function(e,t){let{features:n=1,...r}=e;return ae({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"})}));var Ko=(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))(Ko||{});function Qo(e,t){let n=(0,o.useRef)([]),r=xe(e);(0,o.useEffect)((()=>{let e=[...n.current];for(let[o,a]of t.entries())if(n.current[o]!==a){let o=r(t,e);return n.current=t,o}}),[r,...t])}var ea=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ea||{}),ta=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(ta||{}),na=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(na||{}),ra=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(ra||{});function oa(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=_o(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let aa={1(e){return e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let r=oa(e);if(null===r.activeOptionIndex){let e=r.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(r.activeOptionIndex=e)}let o=function(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1,a=(()=>{switch(e.focus){case 0:return n.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=n.slice().reverse().findIndex(((e,n,r)=>!(-1!==o&&r.length-n-1>=o||t.resolveDisabled(e))));return-1===e?e:n.length-1-e}case 2:return n.findIndex(((e,n)=>!(n<=o||t.resolveDisabled(e))));case 3:{let e=n.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:n.length-1-e}case 4:return n.findIndex((n=>t.resolveId(n)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===a?r:a}(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=oa(e,(e=>[...e,n]));null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n));let o={...e,...r,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(o.activeOptionIndex=0),o},4:(e,t)=>{let n=oa(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},ia=(0,o.createContext)(null);function sa(e){let t=(0,o.useContext)(ia);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,sa),t}return t}ia.displayName="ComboboxActionsContext";let la=(0,o.createContext)(null);function ua(e){let t=(0,o.useContext)(la);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ua),t}return t}function ca(e,t){return te(t.type,aa,e,t)}la.displayName="ComboboxDataContext";let da=o.Fragment,fa=le((function(e,t){let{value:n,defaultValue:r,onChange:a,name:i,by:s=((e,t)=>e===t),disabled:l=!1,__demoMode:u=!1,nullable:c=!1,multiple:d=!1,...f}=e,[p,m]=function(e,t,n){let[r,a]=(0,o.useState)(n),i=void 0!==e;return[i?e:r,xe((e=>(i||a(e),null==t?void 0:t(e))))]}(n,a,r),[h,v]=(0,o.useReducer)(ca,{dataRef:(0,o.createRef)(),comboboxState:u?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),g=(0,o.useRef)(!1),y=(0,o.useRef)({static:!1,hold:!1}),b=(0,o.useRef)(null),w=(0,o.useRef)(null),x=(0,o.useRef)(null),E=(0,o.useRef)(null),C=xe("string"==typeof s?(e,t)=>{let n=s;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:s),S=(0,o.useCallback)((e=>te(O.mode,{1:()=>p.some((t=>C(t,e))),0:()=>C(p,e)})),[p]),O=(0,o.useMemo)((()=>({...h,optionsPropsRef:y,labelRef:b,inputRef:w,buttonRef:x,optionsRef:E,value:p,disabled:l,mode:d?1:0,get activeOptionIndex(){if(g.current&&null===h.activeOptionIndex&&h.options.length>0){let e=h.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return h.activeOptionIndex},compare:C,isSelected:S,nullable:c,__demoMode:u})),[p,l,d,c,u,h]);ve((()=>{h.dataRef.current=O}),[O]),Uo([O.buttonRef,O.inputRef,O.optionsRef],(()=>v({type:1})),0===O.comboboxState);let k=(0,o.useMemo)((()=>({open:0===O.comboboxState,disabled:l,activeIndex:O.activeOptionIndex,activeOption:null===O.activeOptionIndex?null:O.options[O.activeOptionIndex].dataRef.current.value,value:p})),[O,l,p]),T=xe((e=>{let t=O.options.find((t=>t.id===e));!t||V(t.dataRef.current.value)})),P=xe((()=>{if(null!==O.activeOptionIndex){let{dataRef:e,id:t}=O.options[O.activeOptionIndex];V(e.current.value),v({type:2,focus:$o.Specific,id:t})}})),L=xe((()=>{v({type:0}),g.current=!0})),M=xe((()=>{v({type:1}),g.current=!1})),R=xe(((e,t,n)=>(g.current=!1,e===$o.Specific?v({type:2,focus:$o.Specific,id:t,trigger:n}):v({type:2,focus:e,trigger:n})))),A=xe(((e,t)=>(v({type:3,id:e,dataRef:t}),()=>v({type:4,id:e})))),N=xe((e=>(v({type:5,id:e}),()=>v({type:5,id:null})))),V=xe((e=>te(O.mode,{0(){return null==m?void 0:m(e)},1(){let t=O.value.slice(),n=t.findIndex((t=>C(t,e)));return-1===n?t.push(e):t.splice(n,1),null==m?void 0:m(t)}}))),D=(0,o.useMemo)((()=>({onChange:V,registerOption:A,registerLabel:N,goToOption:R,closeCombobox:M,openCombobox:L,selectActiveOption:P,selectOption:T})),[]),I=null===t?{}:{ref:t};return o.createElement(ia.Provider,{value:D},o.createElement(la.Provider,{value:O},o.createElement(me,{value:te(O.comboboxState,{0:fe.Open,1:fe.Closed})},null!=i&&null!=p&&Wo({[i]:p}).map((([e,t])=>o.createElement(Jo,{features:Xo.Hidden,...ue({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),ae({ourProps:I,theirProps:f,slot:k,defaultTag:da,name:"Combobox"}))))})),pa=le((function(e,t){var n,r;let{value:a,onChange:i,displayValue:s,type:l="text",...u}=e,c=ua("Combobox.Input"),d=sa("Combobox.Input"),f=Se(c.inputRef,t),p=`headlessui-combobox-input-${Mo()}`,m=Re(),h=(0,o.useMemo)((()=>{var e;return"function"==typeof s?null!=(e=s(c.value))?e:"":"string"==typeof c.value?c.value:""}),[c.value]);Qo((([e,t],[n,r])=>{!c.inputRef.current||(0===r&&1===t||e!==n)&&(c.inputRef.current.value=e)}),[h,c.comboboxState]);let v=xe((e=>{switch(e.key){case Ko.Backspace:case Ko.Delete:if(0!==c.mode||!c.nullable)return;let t=e.currentTarget;m.requestAnimationFrame((()=>{""===t.value&&(d.onChange(null),c.optionsRef.current&&(c.optionsRef.current.scrollTop=0),d.goToOption($o.Nothing))}));break;case Ko.Enter:if(0!==c.comboboxState||e.nativeEvent.isComposing)return;if(e.preventDefault(),e.stopPropagation(),null===c.activeOptionIndex)return void d.closeCombobox();d.selectActiveOption(),0===c.mode&&d.closeCombobox();break;case Ko.ArrowDown:return e.preventDefault(),e.stopPropagation(),te(c.comboboxState,{0:()=>{d.goToOption($o.Next)},1:()=>{d.openCombobox()}});case Ko.ArrowUp:return e.preventDefault(),e.stopPropagation(),te(c.comboboxState,{0:()=>{d.goToOption($o.Previous)},1:()=>{d.openCombobox(),m.nextFrame((()=>{c.value||d.goToOption($o.Last)}))}});case Ko.Home:case Ko.PageUp:return e.preventDefault(),e.stopPropagation(),d.goToOption($o.First);case Ko.End:case Ko.PageDown:return e.preventDefault(),e.stopPropagation(),d.goToOption($o.Last);case Ko.Escape:return 0!==c.comboboxState?void 0:(e.preventDefault(),c.optionsRef.current&&!c.optionsPropsRef.current.static&&e.stopPropagation(),d.closeCombobox());case Ko.Tab:if(0!==c.comboboxState)return;0===c.mode&&d.selectActiveOption(),d.closeCombobox()}})),g=xe((e=>{d.openCombobox(),null==i||i(e)})),y=ko((()=>{if(c.labelId)return[c.labelId].join(" ")}),[c.labelId]),b=(0,o.useMemo)((()=>({open:0===c.comboboxState,disabled:c.disabled})),[c]);return ae({ourProps:{ref:f,id:p,role:"combobox",type:l,"aria-controls":null==(n=c.optionsRef.current)?void 0:n.id,"aria-expanded":c.disabled?void 0:0===c.comboboxState,"aria-activedescendant":null===c.activeOptionIndex||null==(r=c.options[c.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===c.mode||void 0,"aria-labelledby":y,disabled:c.disabled,onKeyDown:v,onChange:g},theirProps:u,slot:b,defaultTag:"input",name:"Combobox.Input"})})),ma=le((function(e,t){var n;let r=ua("Combobox.Button"),a=sa("Combobox.Button"),i=Se(r.buttonRef,t),s=`headlessui-combobox-button-${Mo()}`,l=Re(),u=xe((e=>{switch(e.key){case Ko.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&a.openCombobox(),l.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Ko.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(a.openCombobox(),l.nextFrame((()=>{r.value||a.goToOption($o.Last)}))),l.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Ko.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),a.closeCombobox(),l.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),c=xe((e=>{if(qo(e.currentTarget))return e.preventDefault();0===r.comboboxState?a.closeCombobox():(e.preventDefault(),a.openCombobox()),l.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),d=ko((()=>{if(r.labelId)return[r.labelId,s].join(" ")}),[r.labelId,s]),f=(0,o.useMemo)((()=>({open:0===r.comboboxState,disabled:r.disabled,value:r.value})),[r]),p=e;return ae({ourProps:{ref:i,id:s,type:Zo(e,r.buttonRef),tabIndex:-1,"aria-haspopup":!0,"aria-controls":null==(n=r.optionsRef.current)?void 0:n.id,"aria-expanded":r.disabled?void 0:0===r.comboboxState,"aria-labelledby":d,disabled:r.disabled,onClick:c,onKeyDown:u},theirProps:p,slot:f,defaultTag:"button",name:"Combobox.Button"})})),ha=le((function(e,t){let n=ua("Combobox.Label"),r=`headlessui-combobox-label-${Mo()}`,a=sa("Combobox.Label"),i=Se(n.labelRef,t);ve((()=>a.registerLabel(r)),[r]);let s=xe((()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})})),l=(0,o.useMemo)((()=>({open:0===n.comboboxState,disabled:n.disabled})),[n]);return ae({ourProps:{ref:i,id:r,onClick:s},theirProps:e,slot:l,defaultTag:"label",name:"Combobox.Label"})})),va=re.RenderStrategy|re.Static,ga=le((function(e,t){var n;let{hold:r=!1,...a}=e,i=ua("Combobox.Options"),s=Se(i.optionsRef,t),l=`headlessui-combobox-options-${Mo()}`,u=pe(),c=null!==u?u===fe.Open:0===i.comboboxState;ve((()=>{var t;i.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[i.optionsPropsRef,e.static]),ve((()=>{i.optionsPropsRef.current.hold=r}),[i.optionsPropsRef,r]),function({container:e,accept:t,walk:n,enabled:r=!0}){let a=(0,o.useRef)(t),i=(0,o.useRef)(n);(0,o.useEffect)((()=>{a.current=t,i.current=n}),[t,n]),ve((()=>{if(!e||!r)return;let t=Ro(e);if(!t)return;let n=a.current,o=i.current,s=Object.assign((e=>n(e)),{acceptNode:n}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)o(l.currentNode)}),[e,r,a,i])}({container:i.optionsRef.current,enabled:0===i.comboboxState,accept(e){return"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(e){e.setAttribute("role","none")}});let d=ko((()=>{var e,t;return null!=(t=i.labelId)?t:null==(e=i.buttonRef.current)?void 0:e.id}),[i.labelId,i.buttonRef.current]),f=(0,o.useMemo)((()=>({open:0===i.comboboxState})),[i]);return ae({ourProps:{"aria-activedescendant":null===i.activeOptionIndex||null==(n=i.options[i.activeOptionIndex])?void 0:n.id,"aria-labelledby":d,role:"listbox",id:l,ref:s},theirProps:a,slot:f,defaultTag:"ul",features:va,visible:c,name:"Combobox.Options"})})),ya=le((function(e,t){var n,r;let{disabled:a=!1,value:i,...s}=e,l=ua("Combobox.Option"),u=sa("Combobox.Option"),c=`headlessui-combobox-option-${Mo()}`,d=null!==l.activeOptionIndex&&l.options[l.activeOptionIndex].id===c,f=l.isSelected(i),p=(0,o.useRef)(null),m=ye({disabled:a,value:i,domRef:p,textValue:null==(r=null==(n=p.current)?void 0:n.textContent)?void 0:r.toLowerCase()}),h=Se(t,p),v=xe((()=>u.selectOption(c)));ve((()=>u.registerOption(c,m)),[m,c]);let g=(0,o.useRef)(!l.__demoMode);ve((()=>{if(!l.__demoMode)return;let e=ke();return e.requestAnimationFrame((()=>{g.current=!0})),e.dispose}),[]),ve((()=>{if(0!==l.comboboxState||!d||!g.current||0===l.activationTrigger)return;let e=ke();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=p.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[p,d,l.comboboxState,l.activationTrigger,l.activeOptionIndex]);let y=xe((e=>{if(a)return e.preventDefault();v(),0===l.mode&&u.closeCombobox()})),b=xe((()=>{if(a)return u.goToOption($o.Nothing);u.goToOption($o.Specific,c)})),w=xe((()=>{a||d||u.goToOption($o.Specific,c,0)})),x=xe((()=>{a||!d||l.optionsPropsRef.current.hold||u.goToOption($o.Nothing)})),E=(0,o.useMemo)((()=>({active:d,selected:f,disabled:a})),[d,f,a]);return ae({ourProps:{id:c,ref:h,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":f,disabled:void 0,onClick:y,onFocus:b,onPointerMove:w,onMouseMove:w,onPointerLeave:x,onMouseLeave:x},theirProps:s,slot:E,defaultTag:"li",name:"Combobox.Option"})})),ba=Object.assign(fa,{Input:pa,Button:ma,Label:ha,Options:ga,Option:ya});const wa=new Intl.Collator("en").compare,xa=1/0,Ea="[A-Za-z][0-9]|[0-9][A-Za-z]|[a-z][A-Z]",Ca={interSplit:"[^A-Za-z0-9]+",intraSplit:Ea,intraBound:Ea,interLft:0,interRgt:0,interChars:".",interIns:xa,intraChars:"[a-z\\d]",intraIns:0,intraMode:0,intraSub:0,intraTrn:0,intraDel:0,intraFilt:(e,t,n)=>!0,sort:(e,t,n)=>{let{idx:r,chars:o,terms:a,interLft2:i,interLft1:s,start:l,intraIns:u,interIns:c}=e;return r.map(((e,t)=>t)).sort(((e,n)=>o[n]-o[e]||u[e]-u[n]||a[n]+i[n]+.5*s[n]-(a[e]+i[e]+.5*s[e])||c[e]-c[n]||l[e]-l[n]||wa(t[r[e]],t[r[n]])))}},Sa=(e,t)=>0==t?"":1==t?e+"??":t==xa?e+"*?":e+`{0,${t}}?`,Oa="(?:\\b|_)";function ka(e){e=Object.assign({},Ca,e);const{interLft:t,interRgt:n,intraMode:r,intraIns:o,intraSub:a,intraTrn:i,intraDel:s,intraSplit:l,interSplit:u,intraBound:c,intraChars:d}=e;let f=!!l,p=new RegExp(l,"g"),m=new RegExp(u,"g"),h=new RegExp("^"+u+"|"+u+"$","g");const v=e=>(e=e.replace(h,""),f&&(e=e.replace(p,(e=>e[0]+" "+e[1]))),e.split(m)),g=(l,u=0)=>{let c,f=v(l);if(1==r)c=f.map((e=>{let t=e.length;if(t<=2)return o>0&&2==t?e[0]+Sa(d,1)+e[1]:e;let n=e[0],r=e.at(-1),l=e.slice(1,-1),u=l.length,c=[];if(a)for(let e=0;e<u;e++)c.push(n+l.slice(0,e)+d+l.slice(e+1)+r);if(i)for(let e=0;e<u-1;e++)l[e]!=l[e+1]&&c.push(n+l.slice(0,e)+l[e+1]+l[e]+l.slice(e+2)+r);if(s)for(let e=0;e<u;e++)c.push(n+l.slice(0,e+1)+"?"+l.slice(e+1)+r);if(o){let e=Sa(d,1);for(let t=0;t<u+1;t++)c.push(n+l.slice(0,t)+e+l.slice(t)+r)}return"(?:"+e+"|"+c.join("|")+")"}));else{let e=Sa(d,o);2==u&&o>0&&(e=")("+e+")("),c=f.map((t=>t.split("").join(e)))}let p=2==t?Oa:"",m=2==n?Oa:"",h=m+Sa(e.interChars,e.interIns)+p;return c=u>0?"("+c.join(")("+h+")(")+")":c.join(h),c=u>0?2==t?"("+p+")"+c+"("+m+")":"(.?)"+c+"(.?)":p+c+m,[new RegExp(c,"i"),f]};let y=!!c,b=new RegExp(u),w=new RegExp(c);return{split:v,filter:(e,t,n)=>{let r=[],[o]=g(t);if(null!=n)for(let t=0;t<n.length;t++){let a=n[t];o.test(e[a])&&r.push(a)}else for(let t=0;t<e.length;t++)o.test(e[t])&&r.push(t);return r},info:(r,a,i)=>{let[s,l]=g(i,1),[u]=g(i,2),c=r.length,d=Array(c).fill(0),f={idx:Array(c),start:d.slice(),chars:d.slice(),terms:d.slice(),interIns:d.slice(),intraIns:d.slice(),interLft2:d.slice(),interRgt2:d.slice(),interLft1:d.slice(),interRgt1:d.slice(),ranges:Array(c)},p=1==t||1==n,m=0;for(let i=0;i<r.length;i++){let c=a[r[i]],d=c.match(s),h=d.index+d[1].length,v=h,g=!1,x=0,E=0,C=0,S=0,O=0,k=0,T=0,P=0;for(let r=0,a=2;r<l.length;r++,a+=2){let i=d[a].toLowerCase(),s=i==l[r];if(!s&&o>0){let e=i.indexOf(l[r]);e>-1&&(s=!0,v+=e,d[a]=d[a].slice(e),0==r&&(h=v))}if(p||s){let e=v-1,o=v+d[a].length,i=!0,u=!0;if(-1==e||b.test(c[e]))s&&x++;else{if(2==t){g=!0;break}if(y&&w.test(c[e]+c[e+1]))s&&E++;else{if(1==t){g=!0;break}i=!1}}if(o==c.length||b.test(c[o]))s&&C++;else{if(2==n){g=!0;break}if(y&&w.test(c[o-1]+c[o]))s&&S++;else{if(1==n){g=!0;break}u=!1}}s&&(O+=l[r].length,i&&u&&k++)}else P+=i.length-l[r].length;if(r>0&&(T+=d[a-1].length),!e.intraFilt(l[r],i,v)){g=!0;break}r<l.length-1&&(v+=d[a].length+d[a+1].length)}if(!g){f.idx[m]=r[i],f.interLft2[m]=x,f.interLft1[m]=E,f.interRgt2[m]=C,f.interRgt1[m]=S,f.chars[m]=O,f.terms[m]=k,f.interIns[m]=T,f.intraIns[m]=P,f.start[m]=h;let e=c.match(u),t=f.ranges[m]=[],n=e.index+e[1].length,o=n,a=n;for(let r=2;r<e.length;r++){let i=e[r].length;n+=i,r%2==0?a=n:i>0&&(t.push(o,a),o=a=n)}a>o&&t.push(o,a),m++}}if(m<r.length)for(let e in f)f[e]=f[e].slice(0,m);return f},sort:e.sort}}const Ta=(()=>{let e={A:"ÁÀÃÂÄĄ",a:"áàãâäą",E:"ÉÈÊËĖ",e:"éèêëę",I:"ÍÌÎÏĮ",i:"íìîïį",O:"ÓÒÔÕÖ",o:"óòôõö",U:"ÚÙÛÜŪŲ",u:"úùûüūų",C:"ÇČ",c:"çč",N:"Ñ",n:"ñ",S:"Š",s:"š"},t=new Map,n="";for(let r in e)e[r].split("").forEach((e=>{n+=e,t.set(e,r)}));let r=new RegExp(`[${n}]`,"g");return e=>{let n=Array(e.length);for(let o=0;o<e.length;o++)n[o]=e[o].replace(r,(e=>t.get(e)));return n}})(),Pa=(e,t)=>t?`<mark>${e}</mark>`:e,La=(e,t)=>e+t;ka.latinize=Ta,ka.permute=e=>{let t=function(e){let t,n,r=e.length,o=[e.slice()],a=new Array(r).fill(0),i=1;for(;i<r;)a[i]<i?(t=i%2&&a[i],n=e[i],e[i]=e[t],e[t]=n,++a[i],i=1,o.push(e.slice())):(a[i]=0,++i);return o}([...Array(e.length).keys()]).sort(((e,t)=>{for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]-t[n];return 0}));return t.map((t=>t.map((t=>e[t]))))},ka.highlight=function(e,t,n=Pa,r="",o=La){r=o(r,n(e.substring(0,t[0]),!1))??r;for(let a=0;a<t.length;a+=2){let i=t[a],s=t[a+1];r=o(r,n(e.substring(i,s),!0))??r,a<t.length-3&&(r=o(r,n(e.substring(t[a+1],t[a+2]),!1))??r)}return o(r,n(e.substring(t[t.length-1]),!1))??r};var Ma=function(e,t){return Ma=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])},Ma(e,t)};function Ra(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}Ma(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var Aa=function(){return Aa=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},Aa.apply(this,arguments)};function Na(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 Va(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Da(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;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 Ia=("undefined"==typeof process||process.env,"production");const ja=1/60*1e3,Fa="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),_a="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(Fa())),ja);let Ha=!0,Ba=!1,Ua=!1;const za={delta:0,timestamp:0},Za=["read","update","preRender","render","postRender"],$a=Za.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,u=l?t:n;return a&&i.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),i.delete(e)},process:l=>{if(o)a=!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),i.has(r)&&(s.schedule(r),e())}o=!1,a&&(a=!1,s.process(l))}}};return s}((()=>Ba=!0)),e)),{}),qa=Za.reduce(((e,t)=>{const n=$a[t];return e[t]=(e,t=!1,r=!1)=>(Ba||Ja(),n.schedule(e,t,r)),e}),{}),Wa=Za.reduce(((e,t)=>(e[t]=$a[t].cancel,e)),{}),Ya=Za.reduce(((e,t)=>(e[t]=()=>$a[t].process(za),e)),{}),Ga=e=>$a[e].process(za),Xa=e=>{Ba=!1,za.delta=Ha?ja:Math.max(Math.min(e-za.timestamp,40),1),za.timestamp=e,Ua=!0,Za.forEach(Ga),Ua=!1,Ba&&(Ha=!1,_a(Xa))},Ja=()=>{Ba=!0,Ha=!0,Ua||_a(Xa)},Ka=()=>za;var Qa=qa,ei="undefined"!=typeof document,ti=ei?o.useLayoutEffect:o.useEffect;function ni(){var e=(0,o.useRef)(!1);return ti((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var ri=(0,o.createContext)(null);function oi(e){var t=(0,o.useRef)(null);return null===t.current&&(t.current=e()),t.current}var ai=0,ii=function(){return ai++},si=function(){return oi(ii)},li=function(e){var t=e.children,n=e.initial,r=e.isPresent,a=e.onExitComplete,i=e.custom,s=e.presenceAffectsLayout,l=oi(ui),u=si(),c=(0,o.useMemo)((function(){return{id:u,initial:n,isPresent:r,custom:i,onExitComplete:function(e){var t,n;l.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(l.values()),o=r.next();!o.done;o=r.next())if(!o.value)return}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return l.set(e,!1),function(){return l.delete(e)}}}}),s?void 0:[r]);return(0,o.useMemo)((function(){l.forEach((function(e,t){return l.set(t,!1)}))}),[r]),o.useEffect((function(){!r&&!l.size&&(null==a||a())}),[r]),o.createElement(ri.Provider,{value:c},t)};function ui(){return new Map}var ci=(0,o.createContext)({});function di(e){return(0,o.useEffect)((function(){return function(){return e()}}),[])}var fi=function(e){return e.key||""},pi=function(e){var t=e.children,n=e.custom,r=e.initial,a=void 0===r||r,i=e.onExitComplete,s=e.exitBeforeEnter,l=e.presenceAffectsLayout,u=void 0===l||l,c=Va(function(){var e=ni(),t=Va((0,o.useState)(0),2),n=t[0],r=t[1],a=(0,o.useCallback)((function(){e.current&&r(n+1)}),[n]);return[(0,o.useCallback)((function(){return Qa.postRender(a)}),[a]),n]}(),1),d=c[0],f=(0,o.useContext)(ci).forceRender;f&&(d=f);var p=ni(),m=function(e){var t=[];return o.Children.forEach(e,(function(e){(0,o.isValidElement)(e)&&t.push(e)})),t}(t),h=m,v=new Set,g=(0,o.useRef)(h),y=(0,o.useRef)(new Map).current,b=(0,o.useRef)(!0);if(ti((function(){b.current=!1,function(e,t){e.forEach((function(e){var n=fi(e);t.set(n,e)}))}(m,y),g.current=h})),di((function(){b.current=!0,y.clear(),v.clear()})),b.current)return o.createElement(o.Fragment,null,h.map((function(e){return o.createElement(li,{key:fi(e),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:u},e)})));h=Da([],Va(h),!1);for(var w=g.current.map(fi),x=m.map(fi),E=w.length,C=0;C<E;C++){var S=w[C];-1===x.indexOf(S)&&v.add(S)}return s&&v.size&&(h=[]),v.forEach((function(e){if(-1===x.indexOf(e)){var t=y.get(e);if(t){var r=w.indexOf(e);h.splice(r,0,o.createElement(li,{key:fi(t),isPresent:!1,onExitComplete:function(){y.delete(e),v.delete(e);var t=g.current.findIndex((function(t){return t.key===e}));if(g.current.splice(t,1),!v.size){if(g.current=m,!1===p.current)return;d(),i&&i()}},custom:n,presenceAffectsLayout:u},t))}}})),h=h.map((function(e){var t=e.key;return v.has(t)?e:o.createElement(li,{key:fi(e),isPresent:!0,presenceAffectsLayout:u},e)})),"production"!==Ia&&s&&h.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),o.createElement(o.Fragment,null,v.size?h:h.map((function(e){return(0,o.cloneElement)(e)})))},mi=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},hi={measureLayout:mi(["layout","layoutId","drag"]),animation:mi(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:mi(["exit"]),drag:mi(["drag","dragControls"]),focus:mi(["whileFocus"]),hover:mi(["whileHover","onHoverStart","onHoverEnd"]),tap:mi(["whileTap","onTap","onTapStart","onTapCancel"]),pan:mi(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:mi(["whileInView","onViewportEnter","onViewportLeave"])},vi=(0,o.createContext)({strict:!1}),gi=Object.keys(hi),yi=gi.length,bi=(0,o.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),wi=(0,o.createContext)({}),xi={current:null},Ei=!1;function Ci(e,t,n,r){var a,i,s=(0,o.useContext)(vi),l=(0,o.useContext)(wi).visualElement,u=(0,o.useContext)(ri),c=(!Ei&&function(){if(Ei=!0,ei)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}(),a=Va((0,o.useState)(xi.current),1)[0],"never"!==(i=(0,o.useContext)(bi).reducedMotion)&&("always"===i||a)),d=(0,o.useRef)(void 0);r||(r=s.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 ti((function(){null==f||f.syncRender()})),(0,o.useEffect)((function(){var e;null===(e=null==f?void 0:f.animationState)||void 0===e||e.animateChanges()})),ti((function(){return function(){return null==f?void 0:f.notifyUnmount()}}),[]),f}function Si(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Oi(e){return Array.isArray(e)}function ki(e){return"string"==typeof e||Oi(e)}function Ti(e,t,n,r,o){var a;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===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),t}function Pi(e,t,n){var r=e.getProps();return Ti(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 Li(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||ki(e.initial)||ki(e.animate)||ki(e.whileHover)||ki(e.whileDrag)||ki(e.whileTap)||ki(e.whileFocus)||ki(e.exit)}function Mi(e){return Boolean(Li(e)||e.variants)}function Ri(e){return Array.isArray(e)?e.join(" "):e}var Ai={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ni=1,Vi=(0,o.createContext)({}),Di=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra(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}(o.Component);function Ii(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,a=e.useRender,i=e.useVisualState,s=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?hi.projectionNodeConstructor=e[t]:hi[t].Component=e[t])}(t),(0,o.forwardRef)((function(e,l){var u=function(e){var t,n=e.layoutId,r=null===(t=(0,o.useContext)(ci))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=Aa(Aa({},e),{layoutId:u});var c=(0,o.useContext)(bi),d=null,f=function(e){var t=function(e,t){if(Li(e)){var n=e.initial,r=e.animate;return{initial:!1===n||ki(n)?n:void 0,animate:ki(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(wi)),n=t.initial,r=t.animate;return(0,o.useMemo)((function(){return{initial:n,animate:r}}),[Ri(n),Ri(r)])}(e),p=c.isStatic?void 0:oi((function(){if(Ai.hasEverUpdated)return Ni++})),m=i(e,c.isStatic);return!c.isStatic&&ei&&(f.visualElement=Ci(s,m,Aa(Aa({},c),e),n),function(e,t,n,r){var a,i=t.layoutId,s=t.layout,l=t.drag,u=t.dragConstraints,c=t.layoutScroll,d=(0,o.useContext)(Vi);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(a=n.parent)||void 0===a?void 0:a.projection),n.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:Boolean(l)||u&&Si(u),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:d,layoutScroll:c}))}(p,e,f.visualElement,r||hi.projectionNodeConstructor),d=function(e,t,n){var r=[],a=(0,o.useContext)(vi);if(!t)return null;"production"!==Ia&&n&&a.strict;for(var i=0;i<yi;i++){var s=gi[i],l=hi[s],u=l.isEnabled,c=l.Component;u(e)&&c&&r.push(o.createElement(c,Aa({key:s},e,{visualElement:t})))}return r}(e,f.visualElement,t)),o.createElement(Di,{visualElement:f.visualElement,props:Aa(Aa({},c),e)},d,o.createElement(wi.Provider,{value:f},a(s,e,p,function(e,t,n){return(0,o.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):Si(n)&&(n.current=r))}),[t])}(m,f.visualElement,l),m,c.isStatic,f.visualElement)))}))}function ji(e){function t(t,n){return void 0===n&&(n={}),Ii(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 Fi=["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 _i(e){return"string"==typeof e&&!e.includes("-")&&!!(Fi.indexOf(e)>-1||/[A-Z]/.test(e))}var Hi={},Bi=["","X","Y","Z"],Ui=["transformPerspective","x","y","z"];function zi(e,t){return Ui.indexOf(e)-Ui.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return Bi.forEach((function(t){return Ui.push(e+t)}))}));var Zi=new Set(Ui);function $i(e){return Zi.has(e)}var qi=new Set(["originX","originY","originZ"]);function Wi(e){return qi.has(e)}function Yi(e,t){var n=t.layout,r=t.layoutId;return $i(e)||Wi(e)||(n||void 0!==r)&&(!!Hi[e]||"opacity"===e)}var Gi=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},Xi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Ji(e){return e.startsWith("--")}var Ki=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const Qi=(e,t)=>n=>Math.max(Math.min(n,t),e),es=e=>e%1?Number(e.toFixed(5)):e,ts=/(-)?([\d]*\.?[\d])+/g,ns=/(#[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,rs=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function os(e){return"string"==typeof e}const as=e=>({test:t=>os(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),is=as("deg"),ss=as("%"),ls=as("px"),us=as("vh"),cs=as("vw"),ds=Object.assign(Object.assign({},ss),{parse:e=>ss.parse(e)/100,transform:e=>ss.transform(100*e)}),fs={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ps=Object.assign(Object.assign({},fs),{transform:Qi(0,1)}),ms=Object.assign(Object.assign({},fs),{default:1});var hs=Aa(Aa({},fs),{transform:Math.round}),vs={borderWidth:ls,borderTopWidth:ls,borderRightWidth:ls,borderBottomWidth:ls,borderLeftWidth:ls,borderRadius:ls,radius:ls,borderTopLeftRadius:ls,borderTopRightRadius:ls,borderBottomRightRadius:ls,borderBottomLeftRadius:ls,width:ls,maxWidth:ls,height:ls,maxHeight:ls,size:ls,top:ls,right:ls,bottom:ls,left:ls,padding:ls,paddingTop:ls,paddingRight:ls,paddingBottom:ls,paddingLeft:ls,margin:ls,marginTop:ls,marginRight:ls,marginBottom:ls,marginLeft:ls,rotate:is,rotateX:is,rotateY:is,rotateZ:is,scale:ms,scaleX:ms,scaleY:ms,scaleZ:ms,skew:is,skewX:is,skewY:is,distance:ls,translateX:ls,translateY:ls,translateZ:ls,x:ls,y:ls,z:ls,perspective:ls,transformPerspective:ls,opacity:ps,originX:ds,originY:ds,originZ:ls,zIndex:hs,fillOpacity:ps,strokeOpacity:ps,numOctaves:hs};function gs(e,t,n,r){var o,a=e.style,i=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(Ji(p))i[p]=m;else{var h=vs[p],v=Ki(m,h);if($i(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 Wi(p)?(u[p]=v,d=!0):a[p]=v}}c?a.transform=function(e,t,n,r){var o=e.transform,a=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,l=t.allowTransformNone,u=void 0===l||l,c="";a.sort(zi);for(var d=!1,f=a.length,p=0;p<f;p++){var m=a[p];c+="".concat(Xi[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?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),d&&(a.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,o=void 0===r?"50%":r,a=e.originZ,i=void 0===a?0:a;return"".concat(n," ").concat(o," ").concat(i)}(u))}function ys(e,t,n){for(var r in t)Gi(t[r])||Yi(r,n)||(e[r]=t[r])}function bs(e,t,n){var r={},a=function(e,t,n){var r={};return ys(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return(0,o.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};gs(e,t,{enableHardwareAcceleration:!n},r);var o=e.style;return Aa(Aa({},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,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=a,r}var ws=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 xs(e){return ws.has(e)}var Es,Cs=function(e){return!xs(e)};try{(Es=require("@emotion/is-prop-valid").default)&&(Cs=function(e){return e.startsWith("on")?!xs(e):Es(e)})}catch(H){}function Ss(e,t,n){return"string"==typeof e?e:ls.transform(t+n*e)}var Os={offset:"stroke-dashoffset",array:"stroke-dasharray"},ks={offset:"strokeDashoffset",array:"strokeDasharray"};function Ts(e,t,n,r){var o=t.attrX,a=t.attrY,i=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;gs(e,Na(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!==i||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,n){var r=Ss(t,e.x,e.width),o=Ss(n,e.y,e.height);return"".concat(r," ").concat(o)}(h,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==o&&(p.x=o),void 0!==a&&(p.y=a),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 a=o?Os:ks;e[a.offset]=ls.transform(-r);var i=ls.transform(t),s=ls.transform(n);e[a.array]="".concat(i," ").concat(s)}(p,l,c,f,!1)}var Ps=function(){return Aa(Aa({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Ls(e,t){var n=(0,o.useMemo)((function(){var n=Ps();return Ts(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),Aa(Aa({},n.attrs),{style:Aa({},n.style)})}),[t]);if(e.style){var r={};ys(r,e.style,e),n.style=Aa(Aa({},r),n.style)}return n}function Ms(e){return void 0===e&&(e=!1),function(t,n,r,a,i,s){var l=i.latestValues,u=(_i(t)?Ls:bs)(n,l,s),c=function(e,t,n){var r={};for(var o in e)(Cs(o)||!0===n&&xs(o)||!t&&!xs(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),d=Aa(Aa(Aa({},c),u),{ref:a});return r&&(d["data-projection-id"]=r),(0,o.createElement)(t,d)}}var Rs=/([a-z])([A-Z])/g,As=function(e){return e.replace(Rs,"$1-$2").toLowerCase()};function Ns(e,t,n,r){var o=t.style,a=t.vars;for(var i in Object.assign(e.style,o,r&&r.getProjectionStyles(n)),a)e.style.setProperty(i,a[i])}var Vs=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Ds(e,t,n,r){for(var o in Ns(e,t,void 0,r),t.attrs)e.setAttribute(Vs.has(o)?o:As(o),t.attrs[o])}function Is(e){var t=e.style,n={};for(var r in t)(Gi(t[r])||Yi(r,e))&&(n[r]=t[r]);return n}function js(e){var t=Is(e);for(var n in e)Gi(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Fs(e){return"object"==typeof e&&"function"==typeof e.start}var _s=function(e){return Array.isArray(e)},Hs=function(e){return _s(e)?e[e.length-1]||0:e};function Bs(e){var t=Gi(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}function Us(e,t,n,r){var o=e.scrapeMotionValuesFromProps,a=e.createRenderState,i=e.onMount,s={latestValues:Zs(t,n,r,o),renderState:a()};return i&&(s.mount=function(e){return i(t,e,s)}),s}var zs=function(e){return function(t,n){var r=(0,o.useContext)(wi),a=(0,o.useContext)(ri);return n?Us(e,t,r,a):oi((function(){return Us(e,t,r,a)}))}};function Zs(e,t,n,r){var o={},a=!1===(null==n?void 0:n.initial),i=r(e);for(var s in i)o[s]=Bs(i[s]);var l=e.initial,u=e.animate,c=Li(e),d=Mi(e);t&&d&&!c&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=u||(u=t.animate));var f=a||!1===l,p=f?u:l;return p&&"boolean"!=typeof p&&!Fs(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=Ti(e,t);if(n){var r=n.transitionEnd;n.transition;var a=Na(n,["transitionEnd","transition"]);for(var i in a){var s=a[i];Array.isArray(s)&&(s=s[f?s.length-1:0]),null!==s&&(o[i]=s)}for(var i in r)o[i]=r[i]}})),o}var $s,qs={useVisualState:zs({scrapeMotionValuesFromProps:js,createRenderState:Ps,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}}Ts(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),Ds(t,r)}})},Ws={useVisualState:zs({scrapeMotionValuesFromProps:Is,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function Ys(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Gs(e,t,n,r){(0,o.useEffect)((function(){var o=e.current;if(n&&o)return Ys(o,t,n,r)}),[e,t,n,r])}function Xs(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Js(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"}($s||($s={}));var Ks={pageX:0,pageY:0};function Qs(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Ks;return{x:n[t+"X"],y:n[t+"Y"]}}function el(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function tl(e,t){return void 0===t&&(t="page"),{point:Js(e)?Qs(e,t):el(e,t)}}var nl=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,tl(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},rl={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},ol={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function al(e){return ei&&null===window.onpointerdown?e:ei&&null===window.ontouchstart?ol[e]:ei&&null===window.onmousedown?rl[e]:e}function il(e,t,n,r){return Ys(e,al(t),nl(n,"pointerdown"===t),r)}function sl(e,t,n,r){return Gs(e,al(t),n&&nl(n,"pointerdown"===t),r)}function ll(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var ul=ll("dragHorizontal"),cl=ll("dragVertical");function dl(e){var t=!1;if("y"===e)t=cl();else if("x"===e)t=ul();else{var n=ul(),r=cl();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function fl(){var e=dl(!0);return!e||(e(),!1)}function pl(e,t,n){return function(r,o){var a;Xs(r)&&!fl()&&(null===(a=e.animationState)||void 0===a||a.setActive($s.Hover,t),null==n||n(r,o))}}var ml=function(e,t){return!!t&&(e===t||ml(e,t.parentElement))};const hl=(e,t)=>n=>t(e(n)),vl=(...e)=>e.reduce(hl);var gl=new Set,yl=new WeakMap,bl=new WeakMap,wl=function(e){var t;null===(t=yl.get(e.target))||void 0===t||t(e)},xl=function(e){e.forEach(wl)};var El={some:0,all:1};function Cl(e,t,n,r){var a=r.root,i=r.margin,s=r.amount,l=void 0===s?"some":s,u=r.once;(0,o.useEffect)((function(){if(e){var r={root:null==a?void 0:a.current,rootMargin:i,threshold:"number"==typeof l?l:El[l]};return function(e,t,n){var r=function(e){var t=e.root,n=Na(e,["root"]),r=t||document;bl.has(r)||bl.set(r,{});var o=bl.get(r),a=JSON.stringify(n);return o[a]||(o[a]=new IntersectionObserver(xl,Aa({root:t},n))),o[a]}(t);return yl.set(e,n),r.observe(e),function(){yl.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($s.InView,o);var a=n.getProps(),i=o?a.onViewportEnter:a.onViewportLeave;null==i||i(e)}}))}}),[e,a,i,l])}function Sl(e,t,n,r){var a=r.fallback,i=void 0===a||a;(0,o.useEffect)((function(){var r;e&&i&&("production"!==Ia&&(r="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",gl.has(r)||(console.warn(r),gl.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($s.InView,!0)})))}),[e])}var Ol=function(e){return function(t){return e(t),null}},kl={inView:Ol((function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,a=e.onViewportLeave,i=e.viewport,s=void 0===i?{}:i,l=(0,o.useRef)({hasEnteredView:!1,isInView:!1}),u=Boolean(n||r||a);s.once&&l.current.hasEnteredView&&(u=!1),("undefined"==typeof IntersectionObserver?Sl:Cl)(u,l.current,t,s)})),tap:Ol((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,a=e.whileTap,i=e.visualElement,s=t||n||r||a,l=(0,o.useRef)(!1),u=(0,o.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($s.Tap,!1),!fl()}function p(e,n){f()&&(ml(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=vl(il(window,"pointerup",p,c),il(window,"pointercancel",m,c)),null===(r=i.animationState)||void 0===r||r.setActive($s.Tap,!0),null==n||n(e,t))}sl(i,"pointerdown",s?h:void 0,c),di(d)})),focus:Ol((function(e){var t=e.whileFocus,n=e.visualElement;Gs(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive($s.Focus,!0)}:void 0),Gs(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive($s.Focus,!1)}:void 0)})),hover:Ol((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;sl(o,"pointerenter",t||r?pl(o,!0,t):void 0,{passive:!t}),sl(o,"pointerleave",n||r?pl(o,!1,n):void 0,{passive:!n})}))};function Tl(){var e=(0,o.useContext)(ri);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,a=si();return(0,o.useEffect)((function(){return r(a)}),[]),!t&&n?[!1,function(){return null==n?void 0:n(a)}]:[!0]}function Pl(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 Ll=(e,t,n)=>Math.min(Math.max(n,e),t);function Ml(e,t){return e*Math.sqrt(1-t*t)}const Rl=["duration","bounce"],Al=["stiffness","damping","mass"];function Nl(e,t){return t.some((t=>void 0!==e[t]))}function Vl(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,a=Na(e,["from","to","restSpeed","restDelta"]);const i={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(!Nl(e,Al)&&Nl(e,Rl)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,a,i=1-t;i=Ll(.05,1,i),e=Ll(.01,10,e/1e3),i<1?(o=t=>{const r=t*i,o=r*e;return.001-(r-n)/Ml(t,i)*Math.exp(-o)},a=t=>{const r=t*i*e,a=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=Ml(Math.pow(t,2),i);return(.001-o(t)>0?-1:1)*((a-s)*l)/u}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,a=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,a,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*i*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}(a),p=Dl,m=Dl;function h(){const e=c?-c/1e3:0,r=n-t,a=l/(2*Math.sqrt(s*u)),i=Math.sqrt(s/u)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),a<1){const t=Ml(i,a);p=o=>{const s=Math.exp(-a*i*o);return n-s*((e+a*i*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},m=n=>{const o=Math.exp(-a*i*n);return a*i*o*(Math.sin(t*n)*(e+a*i*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+a*i*r)-t*r*Math.sin(t*n))}}else if(1===a)p=t=>n-Math.exp(-i*t)*(r+(e+i*r)*t);else{const t=i*Math.sqrt(a*a-1);p=o=>{const s=Math.exp(-a*i*o),l=Math.min(t*o,300);return n-s*((e+a*i*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return h(),{next:e=>{const t=p(e);if(f)i.done=e>=d;else{const a=1e3*m(e),s=Math.abs(a)<=r,l=Math.abs(n-t)<=o;i.done=s&&l}return i.value=i.done?n:t,i},flipTarget:()=>{c=-c,[t,n]=[n,t],h()}}}Vl.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const Dl=e=>0,Il=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},jl=(e,t,n)=>-n*e+n*t+e,Fl=(e,t)=>n=>Boolean(os(n)&&rs.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),_l=(e,t,n)=>r=>{if(!os(r))return r;const[o,a,i,s]=r.match(ts);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},Hl=Qi(0,255),Bl=Object.assign(Object.assign({},fs),{transform:e=>Math.round(Hl(e))}),Ul={test:Fl("rgb","red"),parse:_l("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Bl.transform(e)+", "+Bl.transform(t)+", "+Bl.transform(n)+", "+es(ps.transform(r))+")"},zl={test:Fl("#"),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:Ul.transform},Zl={test:Fl("hsl","hue"),parse:_l("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ss.transform(es(t))+", "+ss.transform(es(n))+", "+es(ps.transform(r))+")"};function $l(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 ql({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,a=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=$l(s,r,e+1/3),a=$l(s,r,e),i=$l(s,r,e-1/3)}else o=a=i=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*i),alpha:r}}const Wl=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},Yl=[zl,Ul,Zl],Gl=e=>Yl.find((t=>t.test(e))),Xl=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Jl=(e,t)=>{let n=Gl(e),r=Gl(t);Xl(e),Xl(t);let o=n.parse(e),a=r.parse(t);n===Zl&&(o=ql(o),n=Ul),r===Zl&&(a=ql(a),r=Ul);const i=Object.assign({},o);return e=>{for(const t in i)"alpha"!==t&&(i[t]=Wl(o[t],a[t],e));return i.alpha=jl(o.alpha,a.alpha,e),n.transform(i)}},Kl={test:e=>Ul.test(e)||zl.test(e)||Zl.test(e),parse:e=>Ul.test(e)?Ul.parse(e):Zl.test(e)?Zl.parse(e):zl.parse(e),transform:e=>os(e)?e:e.hasOwnProperty("red")?Ul.transform(e):Zl.transform(e)},Ql="${c}",eu="${n}";function tu(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(ns);r&&(n=r.length,e=e.replace(ns,Ql),t.push(...r.map(Kl.parse)));const o=e.match(ts);return o&&(e=e.replace(ts,eu),t.push(...o.map(fs.parse))),{values:t,numColors:n,tokenised:e}}function nu(e){return tu(e).values}function ru(e){const{values:t,numColors:n,tokenised:r}=tu(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?Ql:eu,r<n?Kl.transform(e[r]):es(e[r]));return t}}const ou=e=>"number"==typeof e?0:e,au={test:function(e){var t,n,r,o;return isNaN(e)&&os(e)&&(null!==(n=null===(t=e.match(ts))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(ns))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:nu,createTransformer:ru,getAnimatableNone:function(e){const t=nu(e);return ru(e)(t.map(ou))}},iu=e=>"number"==typeof e;function su(e,t){return iu(e)?n=>jl(e,t,n):Kl.test(e)?Jl(e,t):du(e,t)}const lu=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>su(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},uu=(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]=su(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function cu(e){const t=au.parse(e),n=t.length;let r=0,o=0,a=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?a++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:a}}const du=(e,t)=>{const n=au.createTransformer(t),r=cu(e),o=cu(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?vl(lu(r.parsed,o.parsed),n):n=>`${n>0?t:e}`},fu=(e,t)=>n=>jl(e,t,n);function pu(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;t.length,!r||!Array.isArray(r)||r.length,e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?fu:"string"==typeof e?Kl.test(e)?Jl:du:Array.isArray(e)?lu:"object"==typeof e?uu:void 0}(e[0]),a=e.length-1;for(let n=0;n<a;n++){let a=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;a=vl(e,a)}r.push(a)}return r}(t,r,o),s=2===a?function([e,t],[n]){return r=>n(Il(e,t,r))}(e,i):function(e,t){const n=e.length,r=n-1;return o=>{let a=0,i=!1;if(o<=e[0]?i=!0:o>=e[r]&&(a=r-1,i=!0),!i){let t=1;for(;t<n&&!(e[t]>o||t===r);t++);a=t-1}const s=Il(e[a],e[a+1],o);return t[a](s)}}(e,i);return n?t=>s(Ll(e[0],e[a-1],t)):s}const mu=e=>t=>1-e(1-t),hu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,vu=e=>t=>t*t*((e+1)*t-e),gu=e=>e,yu=(2,e=>Math.pow(e,2));const bu=mu(yu),wu=hu(yu),xu=e=>1-Math.sin(Math.acos(e)),Eu=mu(xu),Cu=hu(Eu),Su=vu(1.525),Ou=mu(Su),ku=hu(Su),Tu=(e=>{const t=vu(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Pu=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},Lu=mu(Pu);function Mu(e,t){return e.map((()=>t||wu)).splice(0,e.length-1)}function Ru({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const a={done:!1,value:e},i=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map((e=>e*t))}(r&&r.length===i.length?r:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(i),o);function l(){return pu(s,i,{ease:Array.isArray(n)?n:Mu(i,n)})}let u=l();return{next:e=>(a.value=u(e),a.done=e>=o,a),flipTarget:()=>{i.reverse(),u=l()}}}const Au={keyframes:Ru,spring:Vl,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:a}){const i={done:!1,value:t};let s=n*e;const l=t+s,u=void 0===a?l:a(l);return u!==l&&(s=u-t),{next:e=>{const t=-s*Math.exp(-e/r);return i.done=!(t>o||t<-o),i.value=i.done?u:u+t,i},flipTarget:()=>{}}}};function Nu(e,t,n=0){return e-t-n}const Vu=e=>{const t=({delta:t})=>e(t);return{start:()=>Qa.update(t,!0),stop:()=>Wa.update(t)}};function Du(e){var t,n,{from:r,autoplay:o=!0,driver:a=Vu,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,h=Na(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let v,g,y,{to:b}=h,w=0,x=h.duration,E=!1,C=!0;const S=function(e){if(Array.isArray(e.to))return Ru;if(Au[e.type])return Au[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Ru:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Vl:Ru}(h);(null===(n=(t=S).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(y=pu([0,100],[r,b],{clamp:!1}),r=0,b=100);const O=S(Object.assign(Object.assign({},h),{from:r,to:b}));return o&&(null==c||c(),v=a((function(e){if(C||(e=-e),i+=e,!E){const e=O.next(Math.max(0,i));g=e.value,y&&(g=y(g)),E=C?e.done:i<=0}null==m||m(g),E&&(0===w&&(null!=x||(x=i)),w<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(i,x,u,C)&&(w++,"reverse"===l?(C=w%2==0,i=function(e,t,n=0,r=!0){return r?Nu(t+-e,t,n):t-(e-t)+n}(i,x,u,C)):(i=Nu(i,x,u),"mirror"===l&&O.flipTarget()),E=!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 ju=function(e){return 1e3*e};const Fu=(e,t)=>1-3*t+3*e,_u=(e,t)=>3*t-6*e,Hu=e=>3*e,Bu=(e,t,n)=>((Fu(t,n)*e+_u(t,n))*e+Hu(t))*e,Uu=(e,t,n)=>3*Fu(t,n)*e*e+2*_u(t,n)*e+Hu(t),zu=.1;function Zu(e,t,n,r){if(e===t&&n===r)return gu;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=Bu(t*zu,e,n);return a=>0===a||1===a?a:Bu(function(t){let r=0,a=1;for(;10!==a&&o[a]<=t;++a)r+=zu;--a;const i=r+(t-o[a])/(o[a+1]-o[a])*zu,s=Uu(i,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=Uu(t,n,r);if(0===o)return t;t-=(Bu(t,n,r)-e)/o}return t}(t,i,e,n):0===s?i:function(e,t,n,r,o){let a,i,s=0;do{i=t+(n-t)/2,a=Bu(i,r,o)-e,a>0?n=i:t=i}while(Math.abs(a)>1e-7&&++s<10);return i}(t,r,r+zu,e,n)}(a),t,r)}var $u={linear:gu,easeIn:yu,easeInOut:wu,easeOut:bu,circIn:xu,circInOut:Cu,circOut:Eu,backIn:Su,backInOut:ku,backOut:Ou,anticipate:Tu,bounceIn:Lu,bounceInOut:e=>e<.5?.5*(1-Pu(1-2*e)):.5*Pu(2*e-1)+.5,bounceOut:Pu},qu=function(e){if(Array.isArray(e)){e.length;var t=Va(e,4);return Zu(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),$u[e]):e},Wu=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!au.test(t)||t.startsWith("url(")))},Yu=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Gu=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Xu=function(){return{type:"keyframes",ease:"linear",duration:.3}},Ju=function(e){return{type:"keyframes",duration:.8,values:e}},Ku={x:Yu,y:Yu,z:Yu,rotate:Yu,rotateX:Yu,rotateY:Yu,rotateZ:Yu,scaleX:Gu,scaleY:Gu,scale:Gu,opacity:Xu,backgroundColor:Xu,color:Xu,default:Gu};const Qu=new Set(["brightness","contrast","saturate","opacity"]);function ec(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(ts)||[];if(!r)return e;const o=n.replace(r,"");let a=Qu.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const tc=/([a-z-]*)\(.*?\)/g,nc=Object.assign(Object.assign({},au),{getAnimatableNone:e=>{const t=e.match(tc);return t?t.map(ec).join(" "):e}});var rc=Aa(Aa({},vs),{color:Kl,backgroundColor:Kl,outlineColor:Kl,fill:Kl,stroke:Kl,borderColor:Kl,borderTopColor:Kl,borderRightColor:Kl,borderBottomColor:Kl,borderLeftColor:Kl,filter:nc,WebkitFilter:nc}),oc=function(e){return rc[e]};function ac(e,t){var n,r=oc(e);return r!==nc&&(r=au),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function ic(e,t,n){var r,o,a,i;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=Da([],Va(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=Na(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Aa(Aa({},e),(o=n,a=t.to,i=_s(a)?Ju:Ku[o]||Ku.default,Aa({to:a},i(a))))),Aa(Aa({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,a=e.loop,i=Na(e,["ease","times","yoyo","flip","loop"]),s=Aa({},i);return n&&(s.offset=n),i.duration&&(s.duration=ju(i.duration)),i.repeatDelay&&(s.repeatDelay=ju(i.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(qu):qu(t)),"tween"===i.type&&(s.type="keyframes"),(r||a||o)&&(r?s.repeatType="reverse":a?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=a||r||o||i.repeat),"spring"!==i.type&&(s.type="keyframes"),s}(e))}function sc(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function lc(e){return"number"==typeof e?0:ac("",e)}function uc(e,t){return e[t]||e.default||e}function cc(e,t,n,r){return void 0===r&&(r={}),t.start((function(o){var a,i,s=function(e,t,n,r,o){var a,i=uc(r,e),s=null!==(a=i.from)&&void 0!==a?a:t.get(),l=Wu(e,n);"none"===s&&l&&"string"==typeof n?s=ac(e,n):sc(s)&&"string"==typeof n?s=lc(n):!Array.isArray(n)&&sc(n)&&"string"==typeof s&&(n=lc(s));var u=Wu(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!==i.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:a=750,bounceStiffness:i=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=Du(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:i,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 i=v(r),s=i===n?-1:1;let c,d;const f=e=>{c=d,d=e,t=Iu(e-c,Ka().delta),(1===s&&e>i||-1===s&&e<i)&&y({from:e,to:i,velocity:t})};g({type:"decay",from:e,velocity:t,timeConstant:a,power:o,restDelta:l,modifyTarget:u,onUpdate:h(r)?f:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(Aa(Aa({},r),i)):Du(Aa(Aa({},ic(i,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;r.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e,r,a=Hs(n);return t.set(a),o(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,a),null===(r=null==i?void 0:i.onComplete)||void 0===r||r.call(i),{stop:function(){}}}}(e,t,n,r,o),l=function(e,t){var n,r;return null!==(r=null!==(n=(uc(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return i=s()};return l?a=window.setTimeout(u,ju(l)):u(),function(){clearTimeout(a),null==i||i.stop()}}))}var dc=function(e){return/^\-?\d*\.?\d+$/.test(e)},fc=function(e){return/^0[^.\s]+$/.test(e)};function pc(e,t){-1===e.indexOf(t)&&e.push(t)}function mc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var hc=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return pc(this.subscriptions,e),function(){return mc(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 a=this.subscriptions[o];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),vc=function(){function e(e){var t,n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new hc,this.velocityUpdateSubscribers=new hc,this.renderSubscribers=new hc,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=Ka(),o=r.delta,a=r.timestamp;n.lastUpdated!==a&&(n.timeDelta=o,n.lastUpdated=a,Qa.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 Qa.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 gc(e){return new vc(e)}var yc=function(e){return function(t){return t.test(e)}},bc=[fs,ls,ss,is,cs,us,{test:function(e){return"auto"===e},parse:function(e){return e}}],wc=function(e){return bc.find(yc(e))},xc=Da(Da([],Va(bc),!1),[Kl,au],!1),Ec=function(e){return xc.find(yc(e))};function Cc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,gc(n))}function Sc(e,t){if(t)return(t[e]||t.default||t).from}function Oc(e,t,n){var r;void 0===n&&(n={});var o=Pi(e,t,n.custom),a=(o||{}).transition,i=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(i=n.transitionOverride);var s=o?function(){return kc(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=i.delayChildren,a=void 0===o?0:o,s=i.staggerChildren,l=i.staggerDirection;return function(e,t,n,r,o,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=1);var i=[],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(Tc).forEach((function(e,r){i.push(Oc(e,t,Aa(Aa({},a),{delay:n+l(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(i)}(e,t,a+r,s,l,n)}:function(){return Promise.resolve()},u=i.when;if(u){var c=Va("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 kc(e,t,n){var r,o=void 0===n?{}:n,a=o.delay,i=void 0===a?0:a,s=o.transitionOverride,l=o.type,u=e.makeTargetAnimatable(t),c=u.transition,d=void 0===c?e.getDefaultTransition():c,f=u.transitionEnd,p=Na(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&&Pc(h,v))){var b=Aa({delay:i},d);e.shouldReduceMotion&&$i(v)&&(b=Aa(Aa({},b),{type:!1,delay:0}));var w=cc(v,g,y,b);m.push(w)}}return Promise.all(m).then((function(){f&&function(e,t){var n=Pi(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,a=void 0===o?{}:o;r.transition;var i=Na(r,["transitionEnd","transition"]);for(var s in i=Aa(Aa({},i),a))Cc(e,s,Hs(i[s]))}(e,f)}))}function Tc(e,t){return e.sortNodePosition(t)}function Pc(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var Lc=[$s.Animate,$s.InView,$s.Focus,$s.Hover,$s.Tap,$s.Drag,$s.Exit],Mc=Da([],Va(Lc),!1).reverse(),Rc=Lc.length;function Ac(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 Oc(e,t,n)}));r=Promise.all(o)}else if("string"==typeof t)r=Oc(e,t,n);else{var a="function"==typeof t?Pi(e,t,n.custom):t;r=kc(e,a,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),n=function(){var e;return(e={})[$s.Animate]=Nc(!0),e[$s.InView]=Nc(),e[$s.Hover]=Nc(),e[$s.Tap]=Nc(),e[$s.Drag]=Nc(),e[$s.Focus]=Nc(),e[$s.Exit]=Nc(),e}(),r={},o=!0,a=function(t,n){var r=Pi(e,n);if(r){r.transition;var o=r.transitionEnd,a=Na(r,["transition","transitionEnd"]);t=Aa(Aa(Aa({},t),a),o)}return t};function i(i,s){for(var l,u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,p={},m=1/0,h=function(t){var r=Mc[t],h=n[r],v=null!==(l=u[r])&&void 0!==l?l:c[r],g=ki(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=Aa({},p),!h.isActive&&null===y||!v&&!h.prevProp||Fs(v)||"boolean"==typeof v)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!Oi(t)&&!Pl(t,e)}(h.prevProp,v),x=w||r===s&&h.isActive&&!b&&g||t>m&&g,E=Array.isArray(v)?v:[v],C=E.reduce(a,{});!1===y&&(C={});var S=h.prevResolvedValues,O=void 0===S?{}:S,k=Aa(Aa({},O),C),T=function(e){x=!0,f.delete(e),h.needsAnimating[e]=!0};for(var P in k){var L=C[P],M=O[P];p.hasOwnProperty(P)||(L!==M?_s(L)&&_s(M)?!Pl(L,M)||w?T(P):h.protectedKeys[P]=!0:void 0!==L?T(P):f.add(P):void 0!==L&&f.has(P)?T(P):h.protectedKeys[P]=!0)}h.prevProp=v,h.prevResolvedValues=C,h.isActive&&(p=Aa(Aa({},p),C)),o&&e.blockInitialAnimation&&(x=!1),x&&!b&&d.push.apply(d,Da([],Va(E.map((function(e){return{animation:e,options:Aa({type:r},i)}}))),!1))},v=0;v<Rc;v++)h(v);if(r=Aa({},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:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;var s=i(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 Vc={animation:Ol((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=Ac(t)),Fs(n)&&(0,o.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:Ol((function(e){var t=e.custom,n=e.visualElement,r=Va(Tl(),2),a=r[0],i=r[1],s=(0,o.useContext)(ri);(0,o.useEffect)((function(){var e,r;n.isPresent=a;var o=null===(e=n.animationState)||void 0===e?void 0:e.setActive($s.Exit,!a,{custom:null!==(r=null==s?void 0:s.custom)&&void 0!==r?r:t});!a&&(null==o||o.then(i))}),[a])}))};const Dc=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Ic=e=>Dc(e)&&e.hasOwnProperty("z"),jc=(e,t)=>Math.abs(e-t);function Fc(e,t){if(iu(e)&&iu(t))return jc(e,t);if(Dc(e)&&Dc(t)){const n=jc(e.x,t.x),r=jc(e.y,t.y),o=Ic(e)&&Ic(t)?jc(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var _c=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=Uc(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=Fc(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=Ka().timestamp;r.history.push(Aa(Aa({},o),{timestamp:a}));var i=r.handlers,s=i.onStart,l=i.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=Hc(t,r.transformPagePoint),Xs(e)&&0===e.buttons?r.handlePointerUp(e,t):Qa.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,a=n.onSessionEnd,i=Uc(Hc(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,i),a&&a(e,i)},!(Js(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Hc(tl(e),this.transformPagePoint),i=a.point,s=Ka().timestamp;this.history=[Aa(Aa({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,Uc(a,this.history)),this.removeListeners=vl(il(window,"pointermove",this.handlePointerMove),il(window,"pointerup",this.handlePointerUp),il(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Wa.update(this.updatePoint)},e}();function Hc(e,t){return t?{point:t(e.point)}:e}function Bc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Uc(e,t){var n=e.point;return{point:n,delta:Bc(n,Zc(t)),offset:Bc(n,zc(t)),velocity:$c(t,.1)}}function zc(e){return e[0]}function Zc(e){return e[e.length-1]}function $c(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=Zc(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>ju(t)));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function qc(e){return e.max-e.min}function Wc(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),Fc(e,t)<n}function Yc(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=jl(t.min,t.max,e.origin),e.scale=qc(n)/qc(t),(Wc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=jl(n.min,n.max,e.origin)-e.originPoint,(Wc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Gc(e,t,n,r){Yc(e.x,t.x,n.x,null==r?void 0:r.originX),Yc(e.y,t.y,n.y,null==r?void 0:r.originY)}function Xc(e,t,n){e.min=n.min+t.min,e.max=e.min+qc(t)}function Jc(e,t,n){e.min=t.min-n.min,e.max=e.min+qc(t)}function Kc(e,t,n){Jc(e.x,t.x,n.x),Jc(e.y,t.y,n.y)}function Qc(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 ed(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=Va([o,r],2))[0],o=n[1]),{min:r,max:o}}var td=.35;function nd(e,t,n){return{min:rd(e,t),max:rd(e,n)}}function rd(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}function od(e){return[e("x"),e("y")]}function ad(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function id(e){return void 0===e||1===e}function sd(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!id(t)||!id(n)||!id(r)}function ld(e){return sd(e)||ud(e.x)||ud(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function ud(e){return e&&"0%"!==e}function cd(e,t,n){return n+t*(e-n)}function dd(e,t,n,r,o){return void 0!==o&&(e=cd(e,o,r)),cd(e,n,r)+t}function fd(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=dd(e.min,t,n,r,o),e.max=dd(e.max,t,n,r,o)}function pd(e,t){var n=t.x,r=t.y;fd(e.x,n.translate,n.scale,n.originPoint),fd(e.y,r.translate,r.scale,r.originPoint)}function md(e,t){e.min=e.min+t,e.max=e.max+t}function hd(e,t,n){var r=Va(n,3),o=r[0],a=r[1],i=r[2],s=void 0!==t[i]?t[i]:.5,l=jl(e.min,e.max,s);fd(e,t[o],t[a],l,t.scale)}var vd=["x","scaleX","originX"],gd=["y","scaleY","originY"];function yd(e,t){hd(e.x,t,vd),hd(e.y,t,gd)}function bd(e,t){return ad(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 wd=new WeakMap,xd=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 _c(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(tl(e,"page").point)},onStart:function(e,t){var r,o=n.getProps(),a=o.drag,i=o.dragPropagation,s=o.onDragStart;(!a||i||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=dl(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),od((function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(ss.test(o)){var a=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];a&&(o=qc(a)*(parseFloat(o)/100))}n.originPoint[e]=o})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive($s.Drag,!0))},onMove:function(e,t){var r=n.getProps(),o=r.dragPropagation,a=r.dragDirectionLock,i=r.onDirectionLock,s=r.onDrag;if(o||n.openGlobalLock){var l=t.offset;if(a&&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==i||i(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($s.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&Ed(e,r,this.currentDirection)){var o=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?jl(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?jl(o,e,n.max):Math.min(e,o)),e}(a,this.constraints[e],this.elastic[e])),o.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Si(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(e,t){var n=t.top,r=t.left,o=t.bottom,a=t.right;return{x:Qc(e.x,r,a),y:Qc(e.y,n,o)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=td),!1===e?e=0:!0===e&&(e=td),{x:nd(e,"left","right"),y:nd(e,"top","bottom")}}(r),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&od((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||!Si(t))return!1;var r=t.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var a=function(e,t,n){var r=bd(e,n),o=t.scroll;return o&&(md(r.x,o.x),md(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:ed(e.x,t.x),y:ed(e.y,t.y)}}(o.layout.actual,a);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}}(i));this.hasMutatedConstraints=!!s,s&&(i=ad(s))}return i},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,o=n.dragMomentum,a=n.dragElastic,i=n.dragTransition,s=n.dragSnapToOrigin,l=n.onDragTransitionEnd,u=this.constraints||{},c=od((function(n){var l;if(Ed(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=a?200:1e6,f=a?40:1e7,p=Aa(Aa({type:"inertia",velocity:o?e[n]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},i),c);return t.startAxisValueAnimation(n,p)}}));return Promise.all(c).then(l)},e.prototype.startAxisValueAnimation=function(e,t){return cc(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;od((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;od((function(n){if(Ed(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n],i=a.min,s=a.max;o.set(e[n]-jl(i,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=n.dragConstraints,a=this.visualElement.projection;if(Si(o)&&a&&this.constraints){this.stopAnimation();var i={x:0,y:0};od((function(e){var n,r,o,a,s,l=t.getAxisMotionValue(e);if(l){var u=l.get();i[e]=(n={min:u,max:u},r=t.constraints[e],o=.5,a=qc(n),(s=qc(r))>a?o=Il(r.min,r.max-a,n.min):a>s&&(o=Il(n.min,n.max-s,r.min)),Ll(0,1,o))}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout(),this.resolveConstraints(),od((function(e){if(Ed(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e],a=o.min,s=o.max;n.set(jl(a,s,i[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;wd.set(this.visualElement,this);var n=il(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(){Si(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,a=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var i=Ys(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(od((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(){i(),n(),a()}},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,a=e.dragPropagation,i=void 0!==a&&a,s=e.dragConstraints,l=void 0!==s&&s,u=e.dragElastic,c=void 0===u?td:u,d=e.dragMomentum,f=void 0===d||d;return Aa(Aa({},e),{drag:n,dragDirectionLock:o,dragPropagation:i,dragConstraints:l,dragElastic:c,dragMomentum:f})},e}();function Ed(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Cd={pan:Ol((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,a=e.onPanSessionStart,i=e.visualElement,s=t||n||r||a,l=(0,o.useRef)(null),u=(0,o.useContext)(bi).transformPagePoint,c={onSessionStart:a,onStart:n,onMove:t,onEnd:function(e,t){l.current=null,r&&r(e,t)}};(0,o.useEffect)((function(){null!==l.current&&l.current.updateHandlers(c)})),sl(i,"pointerdown",s&&function(e){l.current=new _c(e,c,{transformPagePoint:u})}),di((function(){return l.current&&l.current.end()}))})),drag:Ol((function(e){var t=e.dragControls,n=e.visualElement,r=oi((function(){return new xd(n)}));(0,o.useEffect)((function(){return t&&t.subscribe(r)}),[r,t]),(0,o.useEffect)((function(){return r.addListeners()}),[r])}))},Sd=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],Od=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,i=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,x=v.latestValues,E=v.renderState,C=function(){var e=Sd.map((function(){return new hc})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){Sd.forEach((function(r){var o,a="on"+r,i=e[a];null===(o=t[r])||void 0===o||o.call(t),i&&(t[r]=n[a](i))}))}};return e.forEach((function(e,t){n["on"+Sd[t]]=function(t){return e.add(t)},n["notify"+Sd[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,Da([],Va(t),!1))}})),n}(),S=new Map,O=new Map,k={},T=Aa({},x);function P(){y&&w&&(L(),s(y,E,p.style,j.projection))}function L(){r(j,E,x,t,p)}function M(){C.notifyUpdate(x)}function R(e,t){var n=t.onChange((function(t){x[e]=t,p.onUpdate&&Qa.update(M,!1,!0)})),r=t.onRenderRequest(j.scheduleRender);O.set(e,(function(){n(),r()}))}var A=d(p);for(var N in A){var V=A[N];void 0!==x[N]&&Gi(V)&&V.set(x[N],!1)}var D=Li(p),I=Mi(p),j=Aa(Aa({treeType:n,current:null,depth:f?f.depth+1:0,parent:f,children:new Set,presenceId:m,shouldReduceMotion:g,variantChildren:I?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=j.current=e,j.projection&&j.projection.mount(e),I&&f&&!D&&(b=null==f?void 0:f.addVariantChild(j)),S.forEach((function(e,t){return R(t,e)})),null==f||f.children.add(j),j.setProps(p)},unmount:function(){var e;null===(e=j.projection)||void 0===e||e.unmount(),Wa.update(M),Wa.render(P),O.forEach((function(e){return e()})),null==b||b(),null==f||f.children.delete(j),C.clearAllListeners(),y=void 0,w=!1},addVariantChild:function(e){var t,n=j.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(j.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return I?j:null==f?void 0:f.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return y},getStaticValue:function(e){return x[e]},setStaticValue:function(e,t){return x[e]=t},getLatestValues:function(){return x},setVisibility:function(e){j.isVisible!==e&&(j.isVisible=e,j.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(j,e,p,t)},measureViewportBox:function(){return i(y,p)},addValue:function(e,t){j.hasValue(e)&&j.removeValue(e),S.set(e,t),x[e]=t.get(),R(e,t)},removeValue:function(e){var t;S.delete(e),null===(t=O.get(e))||void 0===t||t(),O.delete(e),delete x[e],u(e,E)},hasValue:function(e){return S.has(e)},getValue:function(e,t){var n=S.get(e);return void 0===n&&void 0!==t&&(n=gc(t),j.addValue(e,n)),n},forEachValue:function(e){return S.forEach(e)},readValue:function(e){var n;return null!==(n=x[e])&&void 0!==n?n:l(y,e,t)},setBaseTarget:function(e,t){T[e]=t},getBaseTarget:function(e){if(o){var t=o(p,e);if(void 0!==t&&!Gi(t))return t}return T[e]}},C),{build:function(){return L(),E},scheduleRender:function(){Qa.render(P,!1,!0)},syncRender:P,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&j.scheduleRender(),p=e,C.updatePropListeners(e),k=function(e,t,n){var r;for(var o in t){var a=t[o],i=n[o];if(Gi(a))e.addValue(o,a);else if(Gi(i))e.addValue(o,gc(a));else if(i!==a)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(a)}else e.addValue(o,gc(null!==(r=e.getStaticValue(o))&&void 0!==r?r:a))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(j,d(p),k)},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<Td;r++){var o=kd[r],a=p[o];(ki(a)||!1===a)&&(n[o]=a)}return n}});return j}},kd=Da(["initial"],Va(Lc),!1),Td=kd.length;function Pd(e){return"string"==typeof e&&e.startsWith("var(--")}var Ld=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Md(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=Va(function(e){var t=Ld.exec(e);if(!t)return[,];var n=Va(t,3);return[n[1],n[2]]}(e),2),o=r[0],a=r[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i?i.trim():Pd(a)?Md(a,t,n+1):a}}var Rd,Ad=new Set(["width","height","top","left","right","bottom","x","y"]),Nd=function(e){return Ad.has(e)},Vd=function(e,t){e.set(t,!1),e.set(t)},Dd=function(e){return e===fs||e===ls};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Rd||(Rd={}));var Id=function(e,t){return parseFloat(e.split(", ")[t])},jd=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return Id(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?Id(i[1],e):0}},Fd=new Set(["x","y","z"]),_d=Ui.filter((function(e){return!Fd.has(e)})),Hd={width:function(e,t){var n=e.x,r=t.paddingLeft,o=void 0===r?"0":r,a=t.paddingRight,i=void 0===a?"0":a;return n.max-n.min-parseFloat(o)-parseFloat(i)},height:function(e,t){var n=e.y,r=t.paddingTop,o=void 0===r?"0":r,a=t.paddingBottom,i=void 0===a?"0":a;return n.max-n.min-parseFloat(o)-parseFloat(i)},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:jd(4,13),y:jd(5,14)};function Bd(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=Aa({},t),r=Aa({},r);var o=Object.keys(t).filter(Nd),a=[],i=!1,s=[];if(o.forEach((function(o){var l=e.getValue(o);if(e.hasValue(o)){var u,c=n[o],d=wc(c),f=t[o];if(_s(f)){var p=f.length,m=null===f[0]?1:0;c=f[m],d=wc(c);for(var h=m;h<p;h++)u?wc(f[h]):(u=wc(f[h]))===d||Dd(d)&&Dd(u)}else u=wc(f);if(d!==u)if(Dd(d)&&Dd(u)){var v=l.get();"string"==typeof v&&l.set(parseFloat(v)),"string"==typeof f?t[o]=parseFloat(f):Array.isArray(f)&&u===ls&&(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):(i||(a=function(e){var t=[];return _d.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),i=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],Vd(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(),a=getComputedStyle(o),i=a.display,s={};"none"===i&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=Hd[e](r,a)})),t.syncRender();var l=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);Vd(r,s[n]),e[n]=Hd[n](l,a)})),e}(t,e,s);return a.length&&a.forEach((function(t){var n=Va(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 Ud={treeType:"dom",readValueFromInstance:function(e,t){if($i(t)){var n=oc(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(Ji(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 bd(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 a=t.transition,i=t.transitionEnd,s=Na(t,["transition","transitionEnd"]),l=function(e,t,n){var r,o,a={};for(var i in e)a[i]=null!==(r=Sc(i,t))&&void 0!==r?r:null===(o=n.getValue(i))||void 0===o?void 0:o.get();return a}(s,a||{},e);if(o&&(i&&(i=o(i)),s&&(s=o(s)),l&&(l=o(l))),r){!function(e,t,n){var r,o,a,i,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&&(dc(f)||fc(f))?f=parseFloat(f):!Ec(f)&&au.test(d)&&(f=ac(c,d)),e.addValue(c,gc(f)),null!==(a=(i=n)[c])&&void 0!==a||(i[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=Na(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:o,transitionEnd:n};for(var i in n&&(n=Aa({},n)),e.forEachValue((function(e){var t=e.get();if(Pd(t)){var n=Md(t,a);n&&e.set(n)}})),o){var s=o[i];if(Pd(s)){var l=Md(s,a);l&&(o[i]=l,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=s)))}}return{target:o,transitionEnd:n}}(e,t,r);return Bd(e,t=o.target,n,r=o.transitionEnd)}(e,s,l,i);i=u.transitionEnd,s=u.target}return Aa({transition:a,transitionEnd:i},s)},scrapeMotionValuesFromProps:Is,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),gs(t,n,r,o.transformTemplate)},render:Ns},zd=Od(Ud),Zd=Od(Aa(Aa({},Ud),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return $i(t)?(null===(n=oc(t))||void 0===n?void 0:n.default)||0:(t=Vs.has(t)?t:As(t),e.getAttribute(t))},scrapeMotionValuesFromProps:js,build:function(e,t,n,r,o){Ts(t,n,r,o.transformTemplate)},render:Ds})),$d=function(e,t){return _i(e)?Zd(t,{enableHardwareAcceleration:!1}):zd(t,{enableHardwareAcceleration:!0})};function qd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Wd={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!ls.test(e))return e;e=parseFloat(e)}var n=qd(e,t.target.x),r=qd(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Yd="_$css",Gd={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,a=e.includes("var("),i=[];a&&(e=e.replace(Ld,(function(e){return i.push(e),Yd})));var s=au.parse(e);if(s.length>5)return o;var l=au.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=jl(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(a){var m=0;p=p.replace(Yd,(function(){var e=i[m];return m++,e}))}return p}},Xd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,o=n.layoutGroup,a=n.switchLayoutGroup,i=n.layoutId,s=r.projection;e=Jd,Object.assign(Hi,e),s&&((null==o?void 0:o.group)&&o.group.add(s),(null==a?void 0:a.register)&&i&&a.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(Aa(Aa({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),Ai.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.visualElement,a=n.drag,i=n.isPresent,s=o.projection;return s?(s.isPresent=i,a||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?s.promote():s.relegate()||Qa.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}(o.Component),Jd={borderRadius:Aa(Aa({},Wd),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Wd,borderTopRightRadius:Wd,borderBottomLeftRadius:Wd,borderBottomRightRadius:Wd,boxShadow:Gd},Kd={measureLayout:function(e){var t=Va(Tl(),2),n=t[0],r=t[1],a=(0,o.useContext)(ci);return o.createElement(Xd,Aa({},e,{layoutGroup:a,switchLayoutGroup:(0,o.useContext)(Vi),isPresent:n,safeToRemove:r}))}},Qd=["TopLeft","TopRight","BottomLeft","BottomRight"],ef=Qd.length,tf=function(e){return"string"==typeof e?parseFloat(e):e},nf=function(e){return"number"==typeof e||ls.test(e)};function rf(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var of=sf(0,.5,Eu),af=sf(.5,.95,gu);function sf(e,t,n){return function(r){return r<e?0:r>t?1:n(Il(e,t,r))}}function lf(e,t){e.min=t.min,e.max=t.max}function uf(e,t){lf(e.x,t.x),lf(e.y,t.y)}function cf(e,t,n,r,o){return e=cd(e-=t,1/n,r),void 0!==o&&(e=cd(e,1/o,r)),e}function df(e,t,n,r,o){var a=Va(n,3),i=a[0],s=a[1],l=a[2];!function(e,t,n,r,o,a,i){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===i&&(i=e),ss.test(t)&&(t=parseFloat(t),t=jl(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=jl(a.min,a.max,r);e===a&&(s-=t),e.min=cf(e.min,t,n,s,o),e.max=cf(e.max,t,n,s,o)}}(e,t[i],t[s],t[l],t.scale,r,o)}var ff=["x","scaleX","originX"],pf=["y","scaleY","originY"];function mf(e,t,n,r){df(e.x,t,ff,null==n?void 0:n.x,null==r?void 0:r.x),df(e.y,t,pf,null==n?void 0:n.y,null==r?void 0:r.y)}function hf(e){return 0===e.translate&&1===e.scale}function vf(e){return hf(e.x)&&hf(e.y)}function gf(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 yf=function(){function e(){this.members=[]}return e.prototype.add=function(e){pc(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(mc(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,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===a||a.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 bf(e,t,n){var r=e.x.translate/t.x,o=e.y.translate/t.y,a="translate3d(".concat(r,"px, ").concat(o,"px, 0) ");if(a+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var i=n.rotate,s=n.rotateX,l=n.rotateY;i&&(a+="rotate(".concat(i,"deg) ")),s&&(a+="rotateX(".concat(s,"deg) ")),l&&(a+="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)"===(a+="scale(".concat(u,", ").concat(c,")"))?"none":a}var wf=function(e,t){return e.depth-t.depth},xf=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){pc(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){mc(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(wf),this.isDirty=!1,this.children.forEach(e)},e}();function Ef(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,o=e.checkIsScrollRoot,a=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(Lf),o.nodes.forEach(Mf)},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?Da(Da([],Va(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new xf)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new hc),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,Da([],Va(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 a=this.options,i=a.layoutId,s=a.layout,l=a.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||i)&&(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),Ai.hasAnimatedSinceResize&&(Ai.hasAnimatedSinceResize=!1,o.nodes.forEach(Pf))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&l&&(i||s)&&this.addEventListener("didUpdate",(function(e){var t,n,r,a,i,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:If,p=l.getProps(),m=p.onLayoutAnimationStart,h=p.onLayoutAnimationComplete,v=!o.targetLayout||!gf(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=Aa(Aa({},uc(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===(i=(a=o.options).onExitComplete)||void 0===i||i.call(a));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,Wa.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(Rf))},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 a=this.path[o];a.shouldResetTransform=!0,a.updateScroll()}var i=this.options,s=i.layoutId,l=i.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(kf);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(jf),this.potentialNodes.clear()),this.nodes.forEach(Tf),this.nodes.forEach(Cf),this.nodes.forEach(Sf),this.clearAllSnapshots(),Ya.update(),Ya.preRender(),Ya.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(Of),this.sharedNodes.forEach(Af)},e.prototype.scheduleUpdateProjection=function(){Qa.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;Qa.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));_f(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();_f(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(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!vf(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,o=null==r?void 0:r(this.latestValues,""),i=o!==this.prevTransformTemplateValue;t&&(n||ld(this.latestValues)||i)&&(a(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&&(md(t.x,n.x),md(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t={x:{min:0,max:0},y:{min:0,max:0}};uf(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],o=r.scroll,a=r.options,i=r.isScrollRoot;if(r!==this.root&&o&&a.layoutScroll){if(i){uf(t,e);var s=this.root.scroll;s&&(md(t.x,-s.x),md(t.y,-s.y))}md(t.x,o.x),md(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}};uf(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&&yd(n,{x:-o.scroll.x,y:-o.scroll.y}),ld(o.latestValues)&&yd(n,o.latestValues)}return ld(this.latestValues)&&yd(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n={x:{min:0,max:0},y:{min:0,max:0}};uf(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&ld(o.latestValues)){sd(o.latestValues)&&o.updateSnapshot();var a={x:{min:0,max:0},y:{min:0,max:0}};uf(a,o.measure()),mf(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,a)}}return ld(this.latestValues)&&mf(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=Aa(Aa(Aa({},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,a=o.layout,i=o.layoutId;this.layout&&(a||i)&&(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}},Kc(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),uf(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,Xc(t.x,n.x,r.x),Xc(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):uf(this.target,this.layout.actual),pd(this.target,this.targetDelta)):uf(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}},Kc(this.relativeTargetOrigin,this.target,this.relativeParent.target),uf(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!ld(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();uf(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var o,a;void 0===r&&(r=!1);var i=n.length;if(i){var s,l;t.x=t.y=1;for(var u=0;u<i;u++)l=(s=n[u]).projectionDelta,"contents"!==(null===(a=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===a?void 0:a.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&yd(e,{x:-s.scroll.x,y:-s.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,pd(e,l)),r&&ld(s.latestValues)&&yd(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var a=o.target;if(a){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 i=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;Gc(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=bf(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},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,a=(null==o?void 0:o.latestValues)||{},i=Aa({},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(Df));this.animationProgress=0,this.mixTargetDelta=function(t){var n,o,f,p,m,h=t/1e3;Nf(s.x,e.x,h),Nf(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)&&(Kc(l,r.layout.actual,r.relativeParent.layout.actual),o=r.relativeTarget,f=r.relativeTargetOrigin,p=l,m=h,Vf(o.x,f.x,p.x,m),Vf(o.y,f.y,p.y,m)),u&&(r.animationValues=i,function(e,t,n,r,o,a){var i,s,l,u;o?(e.opacity=jl(0,null!==(i=n.opacity)&&void 0!==i?i:1,of(r)),e.opacityExit=jl(null!==(s=t.opacity)&&void 0!==s?s:1,0,af(r))):a&&(e.opacity=jl(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r));for(var c=0;c<ef;c++){var d="border".concat(Qd[c],"Radius"),f=rf(t,d),p=rf(n,d);void 0===f&&void 0===p||(f||(f=0),p||(p=0),0===f||0===p||nf(f)===nf(p)?(e[d]=Math.max(jl(tf(f),tf(p),r),0),(ss.test(p)||ss.test(f))&&(e[d]+="%")):e[d]=p)}(t.rotate||n.rotate)&&(e.rotate=jl(t.rotate||0,n.rotate||0,r))}(i,a,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&&(Wa.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qa.update((function(){Ai.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=Gi(0)?0:gc(0);return cc("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,Aa(Aa({},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&&(uf(t,n),yd(t,o),Gc(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 yf),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,a=this.getStack();a&&a.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<Bi.length;r++){var o="rotate"+Bi[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,a,i;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=Bs(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=Bs(e.pointerEvents)||""),this.hasProjected&&!ld(this.latestValues)&&(c.transform=l?l({},""):"none",this.hasProjected=!1),c}var d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=bf(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!==(a=d.opacity)&&void 0!==a?a:"":null!==(i=d.opacityExit)&&void 0!==i?i:0,Hi)if(void 0!==d[h]){var v=Hi[h],g=v.correct,y=v.applyTo,b=g(d[h],u);if(y)for(var w=y.length,x=0;x<w;x++)s[y[x]]=b;else s[h]=b}return this.options.layoutId&&(s.pointerEvents=u===this?Bs(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(kf),this.root.sharedNodes.clear()},e}()}function Cf(e){e.updateLayout()}function Sf(e){var t,n,r,o,a=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var i=e.layout,s=i.actual,l=i.measured;"size"===e.options.animationType?od((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=qc(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&od((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=qc(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}};Gc(u,s,a.layout);var c={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};a.isShared?Gc(c,e.applyTransform(l,!0),a.measured):Gc(c,s,a.layout);var d=!vf(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}};Kc(v,a.layout,m.layout);var g={x:{min:0,max:0},y:{min:0,max:0}};Kc(g,s,h.actual),gf(v,g)||(f=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,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 Of(e){e.clearSnapshot()}function kf(e){e.clearMeasurements()}function Tf(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Pf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Lf(e){e.resolveTargetDelta()}function Mf(e){e.calcProjection()}function Rf(e){e.resetRotation()}function Af(e){e.removeLeadSnapshot()}function Nf(e,t,n){e.translate=jl(t.translate,0,n),e.scale=jl(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Vf(e,t,n,r){e.min=jl(t.min,n.min,r),e.max=jl(t.max,n.max,r)}function Df(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var If={duration:.45,ease:[.4,0,.1,1]};function jf(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 Ff(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function _f(e){Ff(e.x),Ff(e.y)}var Hf=Ef({attachResizeListener:function(e,t){return Ys(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Bf={current:void 0},Uf=Ef({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Bf.current){var e=new Hf(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Bf.current=e}return Bf.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),zf=Aa(Aa(Aa(Aa({},Vc),kl),Cd),Kd),Zf=ji((function(e,t){return function(e,t,n,r,o){var a=t.forwardMotionProps,i=void 0!==a&&a,s=_i(e)?qs:Ws;return Aa(Aa({},s),{preloadedFeatures:n,useRender:Ms(i),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,zf,$d,Uf)}));const $f=()=>jn.get("onboarding/site-types"),qf=()=>({key:"site-types"}),Wf=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=dr.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)}}))),Yf=new ka({intraIns:2,intraMode:1}),Gf=t=>{let{type:n}=t;const r=(0,e.useRef)(0);return(0,e.createElement)(ba.Option,{onMouseEnter:()=>{window.clearTimeout(r.current),r.current=window.setTimeout((()=>{const e=()=>yo(n);U(e,(t=>null!=t&&t.length?t:go(e())))}),100)},onMouseLeave:()=>{window.clearTimeout(r.current)},className:"flex border-none items-center justify-between p-4 py-2.5 relative w-full text-base cursor-pointer m-0 text-gray-900",value:n},(t=>{var r;let{selected:o,active:a}=t;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:Dr()("absolute inset-0 pointer-events-none",{"bg-partner-primary-bg":a}),"aria-hidden":"true",style:{opacity:"0.04"}}),(0,e.createElement)("span",{dangerouslySetInnerHTML:{__html:null!==(r=null==n?void 0:n.titleMarked)&&void 0!==r?r:n.title}}),o?(0,e.createElement)(mr,{className:"h-6 w-6"}):a?(0,e.createElement)(gr,{className:"h-6 w-6"}):null)}))},Xf=t=>{let{siteTypes:n,search:r}=t;const{feedbackMissingSiteType:o,setFeedbackMissingSiteType:a}=dr(),[i,s]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{var e,t;""!==r&&0===(null==n?void 0:n.length)&&s("A"!==(null===(e=window.extOnbData)||void 0===e||null===(t=e.activeTests)||void 0===t?void 0:t["remove-dont-see-inputs"]))}),[r,n]),i?(0,e.createElement)(Zf.div,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},className:"mx-auto w-full"},(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:o,onChange:e=>a(e.target.value),placeholder:(0,Q.__)("Describe your site...","extendify")}))):null},Jf=[["site-type",{component:()=>{var t,n,r,o;const{nextPage:a}=ep(),{siteType:i,setSiteType:s}=dr(),[l,u]=(0,e.useState)(""),c=(0,e.useRef)(null),{data:d,loading:f}=Fr(qf,$f),p=null!==(t=null==d?void 0:d.map((e=>{let{title:t}=e;return t})))&&void 0!==t?t:[],m=Yf.filter(p,l),h=Yf.info(m,p,l),v=Yf.sort(h,p,l),g=l?null==d||null===(n=d.filter(((e,t)=>m.includes(t))))||void 0===n?void 0:n.map(((e,t,n)=>{const r=n[v[t]];return{...r,titleMarked:ka.highlight(r.title,h.ranges[v[t]],((e,t)=>t?'<b class="font-bold">'+e+"</b>":e))}})).filter((e=>"default"!==e.slug)):null==d||null===(r=d.filter((e=>"default"!==e.slug)))||void 0===r||null===(o=r.sort((e=>null!=e&&e.featured?-1:0)))||void 0===o?void 0:o.sort((e=>e.slug===i.slug?-1:0));return(0,e.useEffect)((()=>{Wf.setState({ready:!f})}),[f]),(0,e.useEffect)((()=>{const e=requestAnimationFrame((()=>{var e;return null===(e=c.current)||void 0===e?void 0:e.focus()}));return()=>cancelAnimationFrame(e)}),[c]),(0,e.useEffect)((()=>{if(f)return;if(null!=i&&i.slug)return;const e=null==d?void 0:d.find((e=>"default"===e.slug));if(!e)return;const t={label:e.title,recordId:e.id,slug:e.slug};s(t),Wf.setState({default:t})}),[f,null==i?void 0:i.slug,d,s]),(0,e.useEffect)((()=>{if(!l)return;const e=setTimeout((()=>{dr.setState({siteTypeSearch:[...dr.getState().siteTypeSearch,l]})}),500);return()=>clearTimeout(e)}),[l]),(0,e.createElement)(Ur,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-md mx-auto"},(0,e.createElement)("h2",{className:"text-lg m-0 mb-4 text-gray-900"},(0,Q.__)("What is your site about?","extendify")),(0,e.createElement)(ba,{value:i,by:(e,t)=>e.slug===t.slug,onChange:async e=>{await Un("extendify_siteType",e),s({label:e.title,recordId:e.id,slug:e.slug,styles:e.styles}),a()}},(0,e.createElement)("div",{className:"relative border border-gray-200 rounded"},(0,e.createElement)("div",{className:"mx-auto search-panel flex items-center justify-center relative"},(0,e.createElement)(ba.Input,{ref:c,className:"w-full h-14 px-4 m-0 input-focus ring-offset-0 focus:bg-white relative z-20 rounded",autoComplete:"off",displayValue:()=>"",placeholder:(0,Q.__)("Search for your business...","extendify"),onChange:e=>u(e.target.value),onBlur:()=>0===(null==g?void 0:g.length)&&u("")}),(0,e.createElement)(ba.Button,{className:"absolute inset-y-0 right-0 mx-2 bg-transparent flex items-center p-2"},(0,e.createElement)(kr,null))),f?(0,e.createElement)("span",{className:"flex border-none items-center justify-between p-4 py-2.5 relative w-full text-base m-0 text-gray-700"},(0,Q.__)("Loading...","extendify")):(0,e.createElement)(ba.Options,{static:!0,className:"m-0 py-2 border-t border-gray-200 overflow-auto max-h-half rounded-b"},0===(null==g?void 0:g.length)&&""!==l?(0,e.createElement)("div",{className:"flex border-none items-center justify-between p-4 py-2.5 relative w-full text-base m-0 text-gray-700"},(0,Q.__)("No Results","extendify")):null==g?void 0:g.map((t=>(0,e.createElement)(Gf,{type:t,key:t.id})))))),f||(0,e.createElement)(pi,null,(0,e.createElement)(Xf,{siteTypes:g,search:l}))))},fetcher:$f,fetchData:qf,state:Wf}],["goals",{component:()=>{const{data:t,loading:n}=Fr($r,Zr),{toggle:r,has:o}=dr(),{feedbackMissingGoal:a,setFeedbackMissingGoal:i,goals:s}=dr(),l=ep((e=>e.nextPage)),u=(0,e.useRef)(),c=s.map((e=>e.slug)),d={BarChart:pr,Design:hr,Donate:vr,OpenEnvelope:br,Pencil:wr,Planner:xr,PriceTag:Er,School:Or,Shop:Tr,Speech:Pr,Ticket:Mr};return(0,e.useEffect)((()=>{n||qr.setState({ready:!0})}),[n]),(0,e.useEffect)((()=>{if(!u.current)return;const e=requestAnimationFrame((()=>{var e,t;return null===(e=u.current)||void 0===e||null===(t=e.querySelector("input"))||void 0===t?void 0:t.focus()}));return()=>cancelAnimationFrame(e)}),[u]),(0,e.createElement)(Ur,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(),l()},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 a=c.includes(t.slug),i=d[t.icon];return(0,e.createElement)("div",{key:t.id,className:Dr()("relative border rounded-lg",{"border-gray-800":!a,"border-partner-primary-bg":a}),ref:0===n?u:void 0},(0,e.createElement)("div",{className:Dr()("absolute inset-0 pointer-events-none",{"bg-partner-primary-bg":a}),"aria-hidden":"true",style:{opacity:"0.04"}}),(0,e.createElement)("div",{className:"flex items-center gap-4 h-full"},(0,e.createElement)(Ir,{label:t.title,slug:`goal-${t.slug}`,description:t.description,checked:o("goals",t),onChange:()=>{r("goals",t)},Icon:i})))}))),!n&&"A"===(null===(f=window.extOnbData)||void 0===f||null===(p=f.activeTests)||void 0===p?void 0:p["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:a,onChange:e=>i(e.target.value),placeholder:(0,Q.__)("Add your goals...","extendify")}),(0,e.createElement)("div",{className:Dr()({visible:a,invisible:!a})},(0,e.createElement)(jr,null))))));var f,p},fetcher:Zr,fetchData:$r,state:qr}],["style",{component:()=>{const{data:t,loading:n}=Fr(yo,go),{data:r}=Fr("variations",Wn),o=(0,e.useRef)(!1),a=(0,e.useRef)(),i=(()=>{const t=(0,e.useRef)(!1);return(0,e.useLayoutEffect)((()=>(t.current=!0,()=>t.current=!1))),t})(),[s,l]=(0,e.useState)([]);return(0,e.useEffect)((()=>{bo.setState({ready:!n})}),[n]),(0,e.useEffect)((()=>{null!=t&&t.length&&(async()=>{for(const e of t){if(!i.current)return;l((t=>[...t,e])),await new Promise((e=>setTimeout(e,1e3)))}})()}),[t,i]),(0,e.useEffect)((()=>{if(null!=r&&r.length&&null!=s&&s.length&&!dr.getState().style){const e=r.find((e=>e.title===s[0].label));dr.getState().setStyle({...s[0],variation:e}),bo.setState({default:{...s[0],variation:e}})}}),[s,r]),(0,e.useEffect)((()=>{var e,t;null!=s&&s.length&&!o.current&&(o.current=!0,null==a||null===(e=a.current)||void 0===e||null===(t=e.querySelector("[role=button]"))||void 0===t||t.focus())}),[s]),(0,e.createElement)(Ur,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:a,className:"flex gap-6 flex-wrap justify-center"},null==s?void 0:s.map((t=>(0,e.createElement)(wo,{key:t.recordId,style:t}))),null==t?void 0:t.slice(null==s?void 0:s.length).map((t=>(0,e.createElement)("div",{key:t.slug,style:{height:497,width:352},className:"lg:flex gap-6 relative"},(0,e.createElement)(oo,{context:"style"})))))))},state:bo}],["pages",{component:()=>{const{data:t}=Fr(ho,mo),[n,r]=(0,e.useState)([]),{add:o,goals:a,reset:i}=dr(),s=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)&&vo.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==a||!a.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=>a.some((t=>e==t.id)))))||void 0===n||n}));(async()=>{for(const t of e){if(!s.current)return;r((e=>[...e,t])),await new Promise((e=>setTimeout(e,100)))}vo.setState({ready:!0})})()}),[t,a,s]),(0,e.useEffect)((()=>{i("pages"),null==n||n.map((e=>o("pages",e))),vo.setState({default:n})}),[n,o,i]),(0,e.createElement)(Ur,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)(fo,{required:"home"===(null==t?void 0:t.slug),page:t,title:null==t?void 0:t.title,blockHeight:541}))})))))},fetcher:mo,fetchData:ho,state:vo}],["site-title",{component:()=>{const{setSiteInformation:t,siteInformation:n}=dr(),r=(0,e.useRef)(null),o=ep((e=>e.nextPage)),{data:a}=Fr(Yr,Wr);return(0,e.useEffect)((()=>{void 0===(null==n?void 0:n.title)&&void 0!==(null==a?void 0:a.title)&&t("title",a.title)}),[a,t,null==n?void 0:n.title]),(0,e.useEffect)((()=>{if(void 0===(null==n?void 0:n.title))return;if(Gr.getState().ready)return;Gr.setState({ready:!0});const e=requestAnimationFrame((()=>r.current.focus()));return()=>cancelAnimationFrame(e)}),[null==n?void 0:n.title]),(0,e.createElement)(Ur,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(),o()}},(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:Wr,fetchData:Yr,state:Gr}],["confirmation",{component:()=>{const{siteType:t,style:n,pages:r,goals:o}=dr(),a=ep((e=>e.setPage));return(0,e.createElement)(Ur,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)(fo,{displayOnly:!0,page:t,blockHeight:356}))))))):(0,e.createElement)("button",{onClick:()=>a("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)(mr,{className:"text-extendify-main-dark",style:{width:24}}),(0,e.createElement)("span",{className:"text-base pl-2"},t.label)):(0,e.createElement)("button",{onClick:()=>a("site-type"),className:"bg-transparent text-partner-primary underline text-base cursor-pointer"},(0,Q.__)("Press to set a site type","extendify"))),(null==o?void 0:o.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==o?void 0:o.map((t=>(0,e.createElement)("div",{className:"flex items-center",key:t.id},(0,e.createElement)(mr,{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)(mr,{className:"text-extendify-main-dark",style:{width:24}}),(0,e.createElement)("span",{className:"text-base pl-2"},t.title))))):(0,e.createElement)("button",{onClick:()=>a("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)(So,null)))))},state:Oo}]],Kf=null==Jf?void 0:Jf.filter((e=>{var t,n;return!(null!==(t=window.extOnbData)&&void 0!==t&&null!==(n=t.partnerSkipSteps)&&void 0!==n&&n.includes(e[0]))})),Qf=ur(ir(((e,t)=>({pages:new Map(Kf),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:[]}}}),ep=ar(Qf);var tp=function(t){let{icon:n,size:r=24,...o}=t;return(0,e.cloneElement)(n,{width:r,height:r,...o})},np=window.wp.primitives,rp=(0,e.createElement)(np.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(np.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"})),op=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(op||{});function ap(...e){return(0,o.useMemo)((()=>Ro(...e)),[...e])}function ip(e,t,n,r){let a=ye(n);(0,o.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])}var sp=(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))(sp||{});let lp=Object.assign(le((function(e,t){let n=(0,o.useRef)(null),r=Se(n,t),{initialFocus:a,containers:i,features:s=30,...l}=e;we()||(s=1);let u=ap(n);!function({ownerDocument:e},t){let n=(0,o.useRef)(null);ip(null==e?void 0:e.defaultView,"focusout",(e=>{!t||n.current||(n.current=e.target)}),!0),Qo((()=>{t||((null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&jo(n.current),n.current=null)}),[t]);let r=(0,o.useRef)(!1);(0,o.useEffect)((()=>(r.current=!1,()=>{r.current=!0,Oe((()=>{!r.current||(jo(n.current),n.current=null)}))})),[])}({ownerDocument:u},Boolean(16&s));let c=function({ownerDocument:e,container:t,initialFocus:n},r){let a=(0,o.useRef)(null),i=ge();return Qo((()=>{if(!r)return;let o=t.current;!o||Oe((()=>{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?jo(n.current):Ho(o,No.First)===Vo.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),a.current=null==e?void 0:e.activeElement}))}),[r]),a}({ownerDocument:u,container:n,initialFocus:a},Boolean(2&s));!function({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let a=ge();ip(null==e?void 0:e.defaultView,"focus",(e=>{if(!o||!a.current)return;let i=new Set(null==n?void 0:n.current);i.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}(i,l)?(r.current=l,jo(l)):(e.preventDefault(),e.stopPropagation(),jo(s)):jo(r.current)}),!0)}({ownerDocument:u,container:n,containers:i,previousActiveElement:c},Boolean(8&s));let d=function(){let e=(0,o.useRef)(0);return function(e,t,n){let r=ye(t);(0,o.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=xe((()=>{let e=n.current;!e||te(d.current,{[op.Forwards]:()=>Ho(e,No.First),[op.Backwards]:()=>Ho(e,No.Last)})})),p={ref:r};return o.createElement(o.Fragment,null,Boolean(4&s)&&o.createElement(Jo,{as:"button",type:"button",onFocus:f,features:Xo.Focusable}),ae({ourProps:p,theirProps:l,defaultTag:"div",name:"FocusTrap"}),Boolean(4&s)&&o.createElement(Jo,{as:"button",type:"button",onFocus:f,features:Xo.Focusable}))})),{features:sp}),up=new Set,cp=new Map;function dp(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function fp(e){let t=cp.get(e);!t||(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}var pp=window.ReactDOM;let mp=(0,o.createContext)(!1);function hp(){return(0,o.useContext)(mp)}function vp(e){return o.createElement(mp.Provider,{value:e.force},e.children)}let gp=o.Fragment,yp=le((function(e,t){let n=e,r=(0,o.useRef)(null),a=Se(Ce((e=>{r.current=e})),t),i=ap(r),s=function(e){let t=hp(),n=(0,o.useContext)(wp),r=ap(e),[a,i]=(0,o.useState)((()=>{if(!t&&null!==n||he)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,o.useEffect)((()=>{null!==a&&(null!=r&&r.body.contains(a)||null==r||r.body.appendChild(a))}),[a,r]),(0,o.useEffect)((()=>{t||null!==n&&i(n.current)}),[n,i,t]),a}(r),[l]=(0,o.useState)((()=>{var e;return he?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null})),u=we(),c=(0,o.useRef)(!1);return ve((()=>{if(c.current=!1,s&&l)return s.contains(l)||(l.setAttribute("data-headlessui-portal",""),s.appendChild(l)),()=>{c.current=!0,Oe((()=>{var e;!c.current||!s||!l||(s.removeChild(l),s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s)))}))}}),[s,l]),u&&s&&l?(0,pp.createPortal)(ae({ourProps:{ref:a},theirProps:n,defaultTag:gp,name:"Portal"}),l):null})),bp=o.Fragment,wp=(0,o.createContext)(null),xp=le((function(e,t){let{target:n,...r}=e,a={ref:Se(t)};return o.createElement(wp.Provider,{value:n},ae({ourProps:a,theirProps:r,defaultTag:bp,name:"Popover.Group"}))})),Ep=Object.assign(yp,{Group:xp}),Cp=(0,o.createContext)(null);function Sp(){let e=(0,o.useContext)(Cp);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,Sp),e}return e}let Op=le((function(e,t){let n=Sp(),r=`headlessui-description-${Mo()}`,o=Se(t);ve((()=>n.register(r)),[r,n.register]);let a=e;return ae({ourProps:{ref:o,...n.props,id:r},theirProps:a,slot:n.slot||{},defaultTag:"p",name:n.name||"Description"})})),kp=(0,o.createContext)((()=>{}));kp.displayName="StackContext";var Tp=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(Tp||{});function Pp({children:e,onUpdate:t,type:n,element:r,enabled:a}){let i=(0,o.useContext)(kp),s=xe(((...e)=>{null==t||t(...e),i(...e)}));return ve((()=>{let e=void 0===a||!0===a;return e&&s(0,n,r),()=>{e&&s(1,n,r)}}),[s,n,r,a]),o.createElement(kp.Provider,{value:s},e)}var Lp=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Lp||{}),Mp=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Mp||{});let Rp={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Ap=(0,o.createContext)(null);function Np(e){let t=(0,o.useContext)(Ap);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Np),t}return t}function Vp(e,t){return te(t.type,Rp,e,t)}Ap.displayName="DialogContext";let Dp=re.RenderStrategy|re.Static,Ip=le((function(e,t){let{open:n,onClose:r,initialFocus:a,__demoMode:i=!1,...s}=e,[l,u]=(0,o.useState)(0),c=pe();void 0===n&&null!==c&&(n=te(c,{[fe.Open]:!0,[fe.Closed]:!1}));let d=(0,o.useRef)(new Set),f=(0,o.useRef)(null),p=Se(f,t),m=(0,o.useRef)(null),h=ap(f),v=e.hasOwnProperty("open")||null!==c,g=e.hasOwnProperty("onClose");if(!v&&!g)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!v)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!g)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 y=n?0:1,[b,w]=(0,o.useReducer)(Vp,{titleId:null,descriptionId:null,panelRef:(0,o.createRef)()}),x=xe((()=>r(!1))),E=xe((e=>w({type:0,id:e}))),C=!!we()&&!i&&0===y,S=l>1,O=null!==(0,o.useContext)(Ap),k=S?"parent":"leaf";(function(e,t=!0){ve((()=>{if(!t||!e.current)return;let n=e.current,r=Ro(n);if(r){up.add(n);for(let e of cp.keys())e.contains(n)&&(fp(e),cp.delete(e));return r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement){for(let t of up)if(e.contains(t))return;1===up.size&&(cp.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),dp(e))}})),()=>{if(up.delete(n),up.size>0)r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement&&!cp.has(e)){for(let t of up)if(e.contains(t))return;cp.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),dp(e)}}));else for(let e of cp.keys())fp(e),cp.delete(e)}}}),[t])})(f,!!S&&C),Uo((()=>{var e,t;return[...Array.from(null!=(e=null==h?void 0:h.querySelectorAll("body > *, [data-headlessui-portal]"))?e:[]).filter((e=>!(!(e instanceof HTMLElement)||e.contains(m.current)||b.panelRef.current&&e.contains(b.panelRef.current)))),null!=(t=b.panelRef.current)?t:f.current]}),x,C&&!S),ip(null==h?void 0:h.defaultView,"keydown",(e=>{e.defaultPrevented||e.key===Ko.Escape&&0===y&&(S||(e.preventDefault(),e.stopPropagation(),x()))})),function(e,t){(0,o.useEffect)((()=>{var n;if(!t||!e)return;let r=ke();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 a=e.documentElement,i=(null!=(n=e.defaultView)?n:window).innerWidth-a.clientWidth;if(o(a,"overflow","hidden"),i>0&&o(a,"paddingRight",i-(a.clientWidth-a.offsetWidth)+"px"),/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0){let e=window.pageYOffset;o(a,"position","fixed"),o(a,"marginTop",`-${e}px`),o(a,"width","100%"),r.add((()=>window.scrollTo(0,e)))}return r.dispose}),[e,t])}(h,0===y&&!O),(0,o.useEffect)((()=>{if(0!==y||!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&&x()}));return e.observe(f.current),()=>e.disconnect()}),[y,f,x]);let[T,P]=function(){let[e,t]=(0,o.useState)([]);return[e.length>0?e.join(" "):void 0,(0,o.useMemo)((()=>function(e){let n=xe((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,o.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return o.createElement(Cp.Provider,{value:r},e.children)}),[t])]}(),L=`headlessui-dialog-${Mo()}`,M=(0,o.useMemo)((()=>[{dialogState:y,close:x,setTitleId:E},b]),[y,b,x,E]),R=(0,o.useMemo)((()=>({open:0===y})),[y]),A={ref:p,id:L,role:"dialog","aria-modal":0===y||void 0,"aria-labelledby":b.titleId,"aria-describedby":T};return o.createElement(Pp,{type:"Dialog",enabled:0===y,element:f,onUpdate:xe(((e,t,n)=>{"Dialog"===t&&te(e,{[Tp.Add](){d.current.add(n),u((e=>e+1))},[Tp.Remove](){d.current.add(n),u((e=>e-1))}})}))},o.createElement(vp,{force:!0},o.createElement(Ep,null,o.createElement(Ap.Provider,{value:M},o.createElement(Ep.Group,{target:f},o.createElement(vp,{force:!1},o.createElement(P,{slot:R,name:"Dialog.Description"},o.createElement(lp,{initialFocus:a,containers:d,features:C?te(k,{parent:lp.features.RestoreFocus,leaf:lp.features.All&~lp.features.FocusLock}):lp.features.None},ae({ourProps:A,theirProps:s,slot:R,defaultTag:"div",features:Dp,visible:0===y,name:"Dialog"})))))))),o.createElement(Jo,{features:Xo.Hidden,ref:m}))})),jp=le((function(e,t){let[{dialogState:n,close:r}]=Np("Dialog.Overlay"),a=Se(t),i=`headlessui-dialog-overlay-${Mo()}`,s=xe((e=>{if(e.target===e.currentTarget){if(qo(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),r()}}));return ae({ourProps:{ref:a,id:i,"aria-hidden":!0,onClick:s},theirProps:e,slot:(0,o.useMemo)((()=>({open:0===n})),[n]),defaultTag:"div",name:"Dialog.Overlay"})})),Fp=le((function(e,t){let[{dialogState:n},r]=Np("Dialog.Backdrop"),a=Se(t),i=`headlessui-dialog-backdrop-${Mo()}`;(0,o.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 s=(0,o.useMemo)((()=>({open:0===n})),[n]);return o.createElement(vp,{force:!0},o.createElement(Ep,null,ae({ourProps:{ref:a,id:i,"aria-hidden":!0},theirProps:e,slot:s,defaultTag:"div",name:"Dialog.Backdrop"})))})),_p=le((function(e,t){let[{dialogState:n},r]=Np("Dialog.Panel"),a=Se(t,r.panelRef),i=`headlessui-dialog-panel-${Mo()}`,s=(0,o.useMemo)((()=>({open:0===n})),[n]),l=xe((e=>{e.stopPropagation()}));return ae({ourProps:{ref:a,id:i,onClick:l},theirProps:e,slot:s,defaultTag:"div",name:"Dialog.Panel"})})),Hp=le((function(e,t){let[{dialogState:n,setTitleId:r}]=Np("Dialog.Title"),a=`headlessui-dialog-title-${Mo()}`,i=Se(t);(0,o.useEffect)((()=>(r(a),()=>r(null))),[a,r]);let s=(0,o.useMemo)((()=>({open:0===n})),[n]);return ae({ourProps:{ref:i,id:a},theirProps:e,slot:s,defaultTag:"h2",name:"Dialog.Title"})})),Bp=Object.assign(Ip,{Backdrop:Fp,Panel:_p,Overlay:jp,Title:Hp,Description:Op});var Up=window.lodash;const zp=()=>{const{exitModalOpen:t,closeExitModal:n,hoveredOverExitButton:r}=Nr(),{setExitFeedback:o}=dr(),[a,i]=(0,e.useState)(null),[s,l]=(0,e.useState)(""),[u,c]=(0,e.useState)([]),d=(0,e.useRef)(),f=()=>{o(a===(0,Q.__)("Other","extendify")?`Other: ${s}`:a),p()},p=async()=>{await Un("extendify_onboarding_skipped",(new Date).toISOString()),location.href=window.extOnbData.adminUrl};return(0,e.useEffect)((()=>{r&&jn.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");c([...(0,Up.shuffle)(n.filter((e=>"Other"!==e.key))),{key:"Other",label:(0,Q.__)("Other","extendify")}])})).catch((()=>{const e=[{key:"I still want it, just disabling temporary",label:(0,Q.__)("I still want it, just disabling temporary","extendify")},{key:"I plan on using my own theme or builder",label:(0,Q.__)("I plan on using my own theme or builder","extendify")},{key:"The theme designs don't look great",label:(0,Q.__)("The theme designs don't look great","extendify")}];c([...(0,Up.shuffle)(e),{key:"Other",label:(0,Q.__)("Other","extendify")}])})).finally((()=>{var e;null===(e=d.current)||void 0===e||e.focus()}))}),[r]),(0,e.createElement)(Bp,{as:"div",className:"extendify-onboarding",open:t,initialFocus:d,onClose:n},(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-max"},(0,e.createElement)("div",{className:"fixed inset-0 bg-black bg-opacity-40 transition-opacity","aria-hidden":"true"}),(0,e.createElement)(Bp.Title,{className:"sr-only"},(0,Q.__)("Exit Launch","extendify")),(0,e.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,e.createElement)(K.Button,{className:"absolute top-0 right-0",onClick:n,icon:(0,e.createElement)(tp,{icon:rp,size:24}),label:(0,Q.__)("Exit Launch","extendify")}),(0,e.createElement)("p",{className:"m-0 text-lg font-bold text-left"},(0,Q.sprintf)(// translators: %s: The name of the plugin, Extendify.
|
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 a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a){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)}()},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),o=n(851),a=Object.hasOwnProperty,i=Object.create(null);for(var s in r)a.call(r,s)&&(i[r[s]]=s);var l=e.exports={to:{},get:{}};function u(e,t,n){return Math.min(Math.max(t,e),n)}function c(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,o,i=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=t[2],t=t[1],n=0;n<3;n++){var s=2*n;i[n]=parseInt(t.slice(s,s+2),16)}o&&(i[3]=parseInt(o,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(o=(t=t[1])[3],n=0;n<3;n++)i[n]=parseInt(t[n]+t[n],16);o&&(i[3]=parseInt(o+o,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++)i[n]=parseInt(t[n+1],0);t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[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]:a.call(r,t[1])?((i=r[t[1]])[3]=1,i):null:null;for(n=0;n<3;n++)i[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}for(n=0;n<3;n++)i[n]=u(i[n],0,255);return i[3]=u(i[3],0,1),i},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,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(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,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=o(arguments);return"#"+c(e[0])+c(e[1])+c(e[2])+(e[3]<1?c(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=o(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=o(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=o(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=o(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 i[e.slice(0,3)]}},767:function(e,t,n){const r=n(818),o=n(978),a=["keyword","gray","hex"],i={};for(const e of Object.keys(o))i[[...o[e].labels].sort().join("")]=e;const s={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in a&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);let n,u;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,u=o[this.model].channels,this.color=t.value.slice(0,u),this.valpha="number"==typeof t.value[u]?t.value[u]:1}else if(e.length>0){this.model=t||"rgb",u=o[this.model].channels;const n=Array.prototype.slice.call(e,0,u);this.color=f(n,u),this.valpha="number"==typeof e[u]?e[u]: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 i))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=i[r];const{labels:a}=o[this.model],s=[];for(n=0;n<a.length;n++)s.push(e[a[n]]);this.color=f(s)}if(s[this.model])for(u=o[this.model].channels,n=0;n<u;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}=o[this.model],{labels:n}=o[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(u(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:c("rgb",0,d(255)),green:c("rgb",1,d(255)),blue:c("rgb",2,d(255)),hue:c(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:c("hsl",1,d(100)),lightness:c("hsl",2,d(100)),saturationv:c("hsv",1,d(100)),value:c("hsv",2,d(100)),chroma:c("hcg",1,d(100)),gray:c("hcg",2,d(100)),white:c("hwb",1,d(100)),wblack:c("hwb",2,d(100)),cyan:c("cmyk",0,d(100)),magenta:c("cmyk",1,d(100)),yellow:c("cmyk",2,d(100)),black:c("cmyk",3,d(100)),x:c("xyz",0,d(95.047)),y:c("xyz",1,d(100)),z:c("xyz",2,d(108.833)),l:c("lab",0,d(100)),a:c("lab",1),b:c("lab",2),keyword(e){return void 0!==e?new l(e):o[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(),o=void 0===t?.5:t,a=2*o-1,i=n.alpha()-r.alpha(),s=((a*i==-1?a:(a+i)/(1+a*i))+1)/2,u=1-s;return l.rgb(s*n.red()+u*r.red(),s*n.green()+u*r.green(),s*n.blue()+u*r.blue(),n.alpha()*o+r.alpha()*(1-o))}};for(const e of Object.keys(o)){if(a.includes(e))continue;const{channels:t}=o[e];l.prototype[e]=function(...t){return this.model===e?new l(this):t.length>0?new l(t,e):new l([...(n=o[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 u(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function c(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 o;return void 0!==r?(n&&(r=n(r)),o=this[e](),o.color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}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),o={};for(const e of Object.keys(r))o[r[e]]=e;const a={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=a;for(const e of Object.keys(a)){if(!("channels"in a[e]))throw new Error("missing channels property: "+e);if(!("labels"in a[e]))throw new Error("missing channel labels property: "+e);if(a[e].labels.length!==a[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=a[e];delete a[e].channels,delete a[e].labels,Object.defineProperty(a[e],"channels",{value:t}),Object.defineProperty(a[e],"labels",{value:n})}a.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=a-o;let s,l;a===o?s=0:t===a?s=(n-r)/i:n===a?s=2+(r-t)/i:r===a&&(s=4+(t-n)/i),s=Math.min(60*s,360),s<0&&(s+=360);const u=(o+a)/2;return l=a===o?0:u<=.5?i/(a+o):i/(2-a-o),[s,100*l,100*u]},a.rgb.hsv=function(e){let t,n,r,o,a;const i=e[0]/255,s=e[1]/255,l=e[2]/255,u=Math.max(i,s,l),c=u-Math.min(i,s,l),d=function(e){return(u-e)/6/c+.5};return 0===c?(o=0,a=0):(a=c/u,t=d(i),n=d(s),r=d(l),i===u?o=r-n:s===u?o=1/3+t-r:l===u&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*a,100*u]},a.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=a.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,100*i,100*r]},a.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},a.rgb.keyword=function(e){const t=o[e];if(t)return t;let n,a=1/0;for(const t of Object.keys(r)){const o=(s=r[t],((i=e)[0]-s[0])**2+(i[1]-s[1])**2+(i[2]-s[2])**2);o<a&&(a=o,n=t)}var i,s;return n},a.keyword.rgb=function(e){return r[e]},a.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)]},a.rgb.lab=function(e){const t=a.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];return n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,[116*r-16,500*(n-r),200*(r-o)]},a.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,i;if(0===n)return i=255*r,[i,i,i];o=r<.5?r*(1+n):r+n-r*n;const s=2*r-o,l=[0,0,0];for(let e=0;e<3;e++)a=t+1/3*-(e-1),a<0&&a++,a>1&&a--,i=6*a<1?s+6*(o-s)*a:2*a<1?o:3*a<2?s+(o-s)*(2/3-a)*6:s,l[e]=255*i;return l},a.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a,[t,100*(0===r?2*o/(a+o):2*n/(r+n)),(r+n)/2*100]},a.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),i=255*r*(1-n),s=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,l,i];case 1:return[s,r,i];case 2:return[i,r,l];case 3:return[i,s,r];case 4:return[l,i,r];case 5:return[r,i,s]}},a.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,i;i=(2-n)*r;const s=(2-n)*o;return a=n*o,a/=s<=1?s:2-s,a=a||0,i/=2,[t,100*a,100*i]},a.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const i=Math.floor(6*t),s=1-r;a=6*t-i,0!=(1&i)&&(a=1-a);const l=n+a*(s-n);let u,c,d;switch(i){default:case 6:case 0:u=s,c=l,d=n;break;case 1:u=l,c=s,d=n;break;case 2:u=n,c=s,d=l;break;case 3:u=n,c=l,d=s;break;case 4:u=l,c=n,d=s;break;case 5:u=s,c=n,d=l}return[255*u,255*c,255*d]},a.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},a.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,i;return o=3.2406*t+-1.5372*n+-.4986*r,a=-.9689*t+1.8758*n+.0415*r,i=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,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=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),i=Math.min(Math.max(0,i),1),[255*o,255*a,255*i]},a.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)]},a.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,a=t**3,i=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,r=i>.008856?i:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},a.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;return o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360),[t,Math.sqrt(n*n+r*r),o]},a.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)]},a.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let i=null===t?a.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),0===i)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===i&&(s+=60),s},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.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)},a.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]},a.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]},a.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},a.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]},a.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),i=o-a;let s,l;return s=i<1?a/(1-i):0,l=i<=0?0:o===t?(n-r)/i%6:o===n?2+(r-t)/i:4+(t-n)/i,l/=6,l%=1,[360*l,100*i,100*s]},a.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},a.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},a.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 o=[0,0,0],a=t%1*6,i=a%1,s=1-i;let l=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-n)*r,[255*(n*o[0]+l),255*(n*o[1]+l),255*(n*o[2]+l)]},a.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]},a.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]},a.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)]},a.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=function(e){return[0,0,e[0]]},a.gray.hsv=a.gray.hsl,a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.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},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},978:function(e,t,n){const r=n(956),o=n(774),a={};Object.keys(r).forEach((e=>{a[e]={},Object.defineProperty(a[e],"channels",{value:r[e].channels}),Object.defineProperty(a[e],"labels",{value:r[e].labels});const t=o(e);Object.keys(t).forEach((n=>{const r=t[n];a[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),a[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=a},774:function(e,t,n){const r=n(956);function o(e,t){return function(n){return t(e(n))}}function a(e,t){const n=[t[e].parent,e];let a=r[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)n.unshift(t[i].parent),a=o(r[t[i].parent][i],a),i=t[i].parent;return a.conversion=n,a}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(),o=Object.keys(r[e]);for(let r=o.length,a=0;a<r;a++){const r=o[a],i=t[r];-1===i.distance&&(i.distance=t[e].distance+1,i.parent=e,n.unshift(r))}}return t}(e),n={},o=Object.keys(t);for(let e=o.length,r=0;r<e;r++){const e=o[r];null!==t[e].parent&&(n[e]=a(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),o=Array.prototype.concat,a=Array.prototype.slice,i=e.exports=function(e){for(var t=[],n=0,i=e.length;n<i;n++){var s=e[n];r(s)?t=o.call(t,a.call(s)):t.push(s)}return t};i.wrap=function(e){return function(){return e(i(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),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=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=a({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]),i((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),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=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,i=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,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,s=n)}var i,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=i(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 a=t[r]={exports:{}};return e[r](a,a.exports,n),a.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,o=n(196);function a(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(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(i,s)}l((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}var s,l=function(){},u=l(),c=Object,d=function(e){return e===u},f=function(e){return"function"==typeof e},p=function(e,t){return c.assign({},e,t)},m="undefined",h=function(){return typeof window!=m},v=new WeakMap,g=0,y=function(e){var t,n,r=typeof e,o=e&&e.constructor,a=o==Date;if(c(e)!==e||a||o==RegExp)t=a?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=v.get(e))return t;if(t=++g+"~",v.set(e,t),o==Array){for(t="@",n=0;n<e.length;n++)t+=y(e[n])+",";v.set(e,t)}if(o==c){t="#";for(var i=c.keys(e).sort();!d(n=i.pop());)d(e[n])||(t+=n+":"+y(e[n])+",");v.set(e,t)}}return t},b=!0,w=h(),x=typeof document!=m,E=w&&window.addEventListener?window.addEventListener.bind(window):l,C=x?document.addEventListener.bind(document):l,S=w&&window.removeEventListener?window.removeEventListener.bind(window):l,O=x?document.removeEventListener.bind(document):l,k={isOnline:function(){return b},isVisible:function(){var e=x&&document.visibilityState;return d(e)||"hidden"!==e}},T={initFocus:function(e){return C("visibilitychange",e),E("focus",e),function(){O("visibilitychange",e),S("focus",e)}},initReconnect:function(e){var t=function(){b=!0,e()},n=function(){b=!1};return E("online",t),E("offline",n),function(){S("online",t),S("offline",n)}}},P=!h()||"Deno"in window,L=P?o.useEffect:o.useLayoutEffect,M="undefined"!=typeof navigator&&navigator.connection,R=!P&&M&&(["slow-2g","2g"].includes(M.effectiveType)||M.saveData),A=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:""]},N=new WeakMap,V=function(e,t,n,r,o,a,i){void 0===i&&(i=!0);var s=N.get(e),l=s[0],u=s[1],c=s[3],d=l[t],f=u[t];if(i&&f)for(var p=0;p<f.length;++p)f[p](n,r,o);return a&&(delete c[t],d&&d[0])?d[0](2).then((function(){return e.get(t)})):e.get(t)},D=0,I=function(){return++D},j=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a(void 0,void 0,void 0,(function(){var t,n,r,o,a,s,l,c,m,h,v,g,y,b,w,x,E,C,S,O,k;return i(this,(function(i){switch(i.label){case 0:if(t=e[0],n=e[1],r=e[2],o=e[3],s=!!d((a="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||a.populateCache,l=!1!==a.revalidate,c=!1!==a.rollbackOnError,m=a.optimisticData,h=A(n),v=h[0],g=h[2],!v)return[2];if(y=N.get(t),b=y[2],e.length<3)return[2,V(t,v,t.get(v),u,u,l,!0)];if(w=r,E=I(),b[v]=[E,0],C=!d(m),S=t.get(v),C&&(O=f(m)?m(S):m,t.set(v,O),V(t,v,O)),f(w))try{w=w(t.get(v))}catch(e){x=e}return w&&f(w.then)?[4,w.catch((function(e){x=e}))]:[3,2];case 1:if(w=i.sent(),E!==b[v][0]){if(x)throw x;return[2,w]}x&&C&&c&&(s=!0,w=S,t.set(v,S)),i.label=2;case 2:return s&&(x||(f(s)&&(w=s(w,S)),t.set(v,w)),t.set(g,p(t.get(g),{error:x}))),b[v][1]=I(),[4,V(t,v,w,x,u,l,!!s)];case 3:if(k=i.sent(),x)throw x;return[2,s?k:w]}}))}))},F=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},_=function(e,t){if(!N.has(e)){var n=p(T,t),r={},o=j.bind(u,e),a=l;if(N.set(e,[r,{},{},{},o]),!P){var i=n.initFocus(setTimeout.bind(u,F.bind(u,r,0))),s=n.initReconnect(setTimeout.bind(u,F.bind(u,r,1)));a=function(){i&&i(),s&&s(),N.delete(e)}}return[e,o,a]}return[e,N.get(e)[4]]},H=_(new Map),B=H[0],U=H[1],z=p({onLoadingSlow:l,onSuccess:l,onError:l,onErrorRetry:function(e,__,t,n,r){var o=t.errorRetryCount,a=r.retryCount,i=~~((Math.random()+.5)*(1<<(a<8?a:8)))*t.errorRetryInterval;!d(o)&&a>o||setTimeout(n,i,r)},onDiscarded:l,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:R?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:R?5e3:3e3,compare:function(e,t){return y(e)==y(t)},isPaused:function(){return!1},cache:B,mutate:U,fallback:{}},k),Z=function(e,t){var n=p(e,t);if(t){var r=e.use,o=e.fallback,a=t.use,i=t.fallback;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=p(o,i))}return n},$=(0,o.createContext)({}),q=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 p(z,(0,o.useContext)($))},Y=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},X=c.defineProperty((function(e){var t=e.value,n=Z((0,o.useContext)($),t),r=t&&t.provider,a=(0,o.useState)((function(){return r?_(r(n.cache||B),t):u}))[0];return a&&(n.cache=a[0],n.mutate=a[1]),L((function(){return a?a[2]:u}),[]),(0,o.createElement)($.Provider,p(e,{value:n}))}),"default",{value:z}),J=(s=function(e,t,n){var r=n.cache,s=n.compare,l=n.fallbackData,c=n.suspense,v=n.revalidateOnMount,g=n.refreshInterval,y=n.refreshWhenHidden,b=n.refreshWhenOffline,w=N.get(r),x=w[0],E=w[1],C=w[2],S=w[3],O=A(e),k=O[0],T=O[1],M=O[2],R=(0,o.useRef)(!1),D=(0,o.useRef)(!1),F=(0,o.useRef)(k),_=(0,o.useRef)(t),H=(0,o.useRef)(n),B=function(){return H.current},U=function(){return B().isVisible()&&B().isOnline()},z=function(e){return r.set(M,p(r.get(M),e))},Z=r.get(k),$=d(l)?n.fallback[k]:l,q=d(Z)?$:Z,W=r.get(M)||{},X=W.error,J=!R.current,K=function(){return J&&!d(v)?v:!B().isPaused()&&(c?!d(q)&&n.revalidateIfStale:d(q)||n.revalidateIfStale)},Q=!(!k||!t)&&(!!W.isValidating||J&&K()),ee=function(e,t){var n=(0,o.useState)({})[1],r=(0,o.useRef)(e),a=(0,o.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,o.useCallback)((function(e){var o=!1,i=r.current;for(var s in e){var l=s;i[l]!==e[l]&&(i[l]=e[l],a.current[l]&&(o=!0))}o&&!t.current&&n({})}),[]);return L((function(){r.current=e})),[r,a.current,i]}({data:q,error:X,isValidating:Q},D),te=ee[0],ne=ee[1],re=ee[2],oe=(0,o.useCallback)((function(e){return a(void 0,void 0,void 0,(function(){var t,o,a,l,c,p,m,h,v,g,y,b,w;return i(this,(function(i){switch(i.label){case 0:if(t=_.current,!k||!t||D.current||B().isPaused())return[2,!1];l=!0,c=e||{},p=!S[k]||!c.dedupe,m=function(){return!D.current&&k===F.current&&R.current},h=function(){var e=S[k];e&&e[1]===a&&delete S[k]},v={isValidating:!1},g=function(){z({isValidating:!1}),m()&&re(v)},z({isValidating:!0}),re({isValidating:!0}),i.label=1;case 1:return i.trys.push([1,3,,4]),p&&(V(r,k,te.current.data,te.current.error,!0),n.loadingTimeout&&!r.get(k)&&setTimeout((function(){l&&m()&&B().onLoadingSlow(k,n)}),n.loadingTimeout),S[k]=[t.apply(void 0,T),I()]),w=S[k],o=w[0],a=w[1],[4,o];case 2:return o=i.sent(),p&&setTimeout(h,n.dedupingInterval),S[k]&&S[k][1]===a?(z({error:u}),v.error=u,y=C[k],!d(y)&&(a<=y[0]||a<=y[1]||0===y[1])?(g(),p&&m()&&B().onDiscarded(k),[2,!1]):(s(te.current.data,o)?v.data=te.current.data:v.data=o,s(r.get(k),o)||r.set(k,o),p&&m()&&B().onSuccess(o,k,n),[3,4])):(p&&m()&&B().onDiscarded(k),[2,!1]);case 3:return b=i.sent(),h(),B().isPaused()||(z({error:b}),v.error=b,p&&m()&&(B().onError(b,k,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||f(n.shouldRetryOnError)&&n.shouldRetryOnError(b))&&U()&&B().onErrorRetry(b,k,n,oe,{retryCount:(c.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return l=!1,g(),m()&&p&&V(r,k,v.data,v.error,!1),[2,!0]}}))}))}),[k]),ae=(0,o.useCallback)(j.bind(u,r,(function(){return F.current})),[]);if(L((function(){_.current=t,H.current=n})),L((function(){if(k){var e=k!==F.current,t=oe.bind(u,G),n=0,r=Y(k,E,(function(e,t,n){re(p({error:t,isValidating:n},s(te.current.data,e)?u:{data:e}))})),o=Y(k,x,(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 oe()}));return D.current=!1,F.current=k,R.current=!0,e&&re({data:q,error:X,isValidating:Q}),K()&&(d(q)||P?t():function(e){h()&&typeof window.requestAnimationFrame!=m?window.requestAnimationFrame(e):setTimeout(e,1)}(t)),function(){D.current=!0,r(),o()}}}),[k,oe]),L((function(){var e;function t(){var t=f(g)?g(q):g;t&&-1!==e&&(e=setTimeout(n,t))}function n(){te.current.error||!y&&!B().isVisible()||!b&&!B().isOnline()?t():oe(G).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[g,y,b,oe]),(0,o.useDebugValue)(q),c&&d(q)&&k)throw _.current=t,H.current=n,D.current=!1,d(X)?oe(G):X;return{mutate:ae,get data(){return ne.data=!0,q},get error(){return ne.error=!0,X},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=q(e),o=r[0],a=r[1],i=r[2],l=Z(n,i),u=s,c=l.use;if(c)for(var d=c.length;d-- >0;)u=c[d](u);return u(o,a||l.fetcher,l)}),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),oe=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(oe||{});function ae({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:a=!0,name:i}){let s=se(t,e);if(a)return ie(s,n,r,i);let l=null!=o?o:0;if(2&l){let{static:e=!1,...t}=s;if(e)return ie(t,n,r,i)}if(1&l){let{unmount:e=!0,...t}=s;return te(e?0:1,{0(){return null},1(){return ie({...t,hidden:!0,style:{display:"none"}},n,r,i)}})}return ie(s,n,r,i)}function ie(e,t={},n,r){let{as:a=n,children:i,refName:s="ref",...l}=ce(e,["unmount","static"]),u=void 0!==e.ref?{[s]: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(a===o.Fragment&&Object.keys(ue(l)).length>0){if(!(0,o.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,o.cloneElement)(c,Object.assign({},se(c.props,ue(ce(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,o.createElement)(a,Object.assign({},ce(l,["ref"]),a!==o.Fragment&&u,a!==o.Fragment&&d),c)}function se(...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 le(e){var t;return Object.assign((0,o.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function ue(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function ce(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}let de=(0,o.createContext)(null);de.displayName="OpenClosedContext";var fe=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(fe||{});function pe(){return(0,o.useContext)(de)}function me({value:e,children:t}){return o.createElement(de.Provider,{value:e},t)}const he="undefined"==typeof window||"undefined"==typeof document;let ve=he?o.useEffect:o.useLayoutEffect;function ge(){let e=(0,o.useRef)(!1);return ve((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function ye(e){let t=(0,o.useRef)(e);return ve((()=>{t.current=e}),[e]),t}let be={serverHandoffComplete:!1};function we(){let[e,t]=(0,o.useState)(be.serverHandoffComplete);return(0,o.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,o.useEffect)((()=>{!1===be.serverHandoffComplete&&(be.serverHandoffComplete=!0)}),[]),e}let xe=function(e){let t=ye(e);return o.useCallback(((...e)=>t.current(...e)),[t])},Ee=Symbol();function Ce(e,t=!0){return Object.assign(e,{[Ee]:t})}function Se(...e){let t=(0,o.useRef)(e);(0,o.useEffect)((()=>{t.current=e}),[e]);let n=xe((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[Ee])))?void 0:n}function Oe(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function ke(){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 Oe((()=>{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 Te(e,...t){e&&t.length>0&&e.classList.add(...t)}function Pe(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Le,Me=((Le=Me||{}).Ended="ended",Le.Cancelled="cancelled",Le);function Re(){let[e]=(0,o.useState)(ke);return(0,o.useEffect)((()=>()=>e.dispose()),[e]),e}function Ae({container:e,direction:t,classes:n,onStart:r,onStop:o}){let a=ge(),i=Re(),s=ye(t);ve((()=>{let t=ke();i.add(t.dispose);let l=e.current;if(l&&"idle"!==s.current&&a.current)return t.dispose(),r.current(s.current),t.add(function(e,t,n,r){let o=n?"enter":"leave",a=ke(),i=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=te(o,{enter:()=>t.enter,leave:()=>t.leave}),l=te(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=te(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Pe(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Te(e,...s,...u),a.nextFrame((()=>{Pe(e,...u),Te(e,...l),function(e,t){let n=ke();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[a,i]=[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(a+i!==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&&(Pe(e,...s),Te(e,...t.entered)),i(n))))})),a.dispose}(l,n.current,"enter"===s.current,(e=>{t.dispose(),te(e,{[Me.Ended](){o.current(s.current)},[Me.Cancelled]:()=>{}})}))),t.dispose}),[t])}function Ne(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let Ve=(0,o.createContext)(null);Ve.displayName="TransitionContext";var De=(e=>(e.Visible="visible",e.Hidden="hidden",e))(De||{});let Ie=(0,o.createContext)(null);function je(e){return"children"in e?je(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Fe(e,t){let n=ye(e),r=(0,o.useRef)([]),a=ge(),i=Re(),s=xe(((e,t=oe.Hidden)=>{let o=r.current.findIndex((({el:t})=>t===e));-1!==o&&(te(t,{[oe.Unmount](){r.current.splice(o,1)},[oe.Hidden](){r.current[o].state="hidden"}}),i.microTask((()=>{var e;!je(r)&&a.current&&(null==(e=n.current)||e.call(n))})))})),l=xe((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"}),()=>s(e,oe.Unmount)})),u=(0,o.useRef)([]),c=(0,o.useRef)(Promise.resolve()),d=(0,o.useRef)({enter:[],leave:[],idle:[]}),f=xe(((e,n,r)=>{u.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=>{u.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?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),p=xe(((e,t,n)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=u.current.shift())||e()})).then((()=>n(t)))}));return(0,o.useMemo)((()=>({children:r,register:l,unregister:s,onStart:f,onStop:p,wait:c,chains:d})),[l,s,r,f,p,d,c])}function _e(){}Ie.displayName="NestingContext";let He=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Be(e){var t;let n={};for(let r of He)n[r]=null!=(t=e[r])?t:_e;return n}let Ue=re.RenderStrategy,ze=le((function(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:a,afterLeave:i,enter:s,enterFrom:l,enterTo:u,entered:c,leave:d,leaveFrom:f,leaveTo:p,...m}=e,h=(0,o.useRef)(null),v=Se(h,t),g=m.unmount?oe.Unmount:oe.Hidden,{show:y,appear:b,initial:w}=function(){let e=(0,o.useContext)(Ve);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[x,E]=(0,o.useState)(y?"visible":"hidden"),C=function(){let e=(0,o.useContext)(Ie);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:O}=C,k=(0,o.useRef)(null);(0,o.useEffect)((()=>S(h)),[S,h]),(0,o.useEffect)((()=>{if(g===oe.Hidden&&h.current)return y&&"visible"!==x?void E("visible"):te(x,{hidden:()=>O(h),visible:()=>S(h)})}),[x,h,S,O,y,g]);let T=ye({enter:Ne(s),enterFrom:Ne(l),enterTo:Ne(u),entered:Ne(c),leave:Ne(d),leaveFrom:Ne(f),leaveTo:Ne(p)}),P=function(e){let t=(0,o.useRef)(Be(e));return(0,o.useEffect)((()=>{t.current=Be(e)}),[e]),t}({beforeEnter:n,afterEnter:r,beforeLeave:a,afterLeave:i}),L=we();(0,o.useEffect)((()=>{if(L&&"visible"===x&&null===h.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[h,x,L]);let M=w&&!b,R=!L||M||k.current===y?"idle":y?"enter":"leave",A=xe((e=>te(e,{enter:()=>P.current.beforeEnter(),leave:()=>P.current.beforeLeave(),idle:()=>{}}))),N=xe((e=>te(e,{enter:()=>P.current.afterEnter(),leave:()=>P.current.afterLeave(),idle:()=>{}}))),V=Fe((()=>{E("hidden"),O(h)}),C);Ae({container:h,classes:T,direction:R,onStart:ye((e=>{V.onStart(h,e,A)})),onStop:ye((e=>{V.onStop(h,e,N),"leave"===e&&!je(V)&&(E("hidden"),O(h))}))}),(0,o.useEffect)((()=>{!M||(g===oe.Hidden?k.current=null:k.current=y)}),[y,M,x]);let D=m,I={ref:v};return o.createElement(Ie.Provider,{value:V},o.createElement(me,{value:te(x,{visible:fe.Open,hidden:fe.Closed})},ae({ourProps:I,theirProps:D,defaultTag:"div",features:Ue,visible:"visible"===x,name:"Transition.Child"})))})),Ze=le((function(e,t){let{show:n,appear:r=!1,unmount:a,...i}=e,s=(0,o.useRef)(null),l=Se(s,t);we();let u=pe();if(void 0===n&&null!==u&&(n=te(u,{[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[c,d]=(0,o.useState)(n?"visible":"hidden"),f=Fe((()=>{d("hidden")})),[p,m]=(0,o.useState)(!0),h=(0,o.useRef)([n]);ve((()=>{!1!==p&&h.current[h.current.length-1]!==n&&(h.current.push(n),m(!1))}),[h,n]);let v=(0,o.useMemo)((()=>({show:n,appear:r,initial:p})),[n,r,p]);(0,o.useEffect)((()=>{if(n)d("visible");else if(je(f)){let e=s.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 g={unmount:a};return o.createElement(Ie.Provider,{value:f},o.createElement(Ve.Provider,{value:v},ae({ourProps:{...g,as:o.Fragment,children:o.createElement(ze,{ref:l,...g,...i})},theirProps:{},defaultTag:o.Fragment,features:Ue,visible:"visible"===c,name:"Transition"})))})),$e=le((function(e,t){let n=null!==(0,o.useContext)(Ve),r=null!==pe();return o.createElement(o.Fragment,null,!n&&r?o.createElement(Ze,{ref:t,...e}):o.createElement(ze,{ref:t,...e}))})),qe=Object.assign(Ze,{Child:$e,Root:Ze});function We(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ye}=Object.prototype,{getPrototypeOf:Ge}=Object,Xe=(e=>t=>{const n=Ye.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Je=e=>(e=e.toLowerCase(),t=>Xe(t)===e),Ke=e=>t=>typeof t===e,{isArray:Qe}=Array,et=Ke("undefined"),tt=Je("ArrayBuffer"),nt=Ke("string"),rt=Ke("function"),ot=Ke("number"),at=e=>null!==e&&"object"==typeof e,it=e=>{if("object"!==Xe(e))return!1;const t=Ge(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},st=Je("Date"),lt=Je("File"),ut=Je("Blob"),ct=Je("FileList"),dt=Je("URLSearchParams");function ft(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Qe(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),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}const pt=(mt="undefined"!=typeof Uint8Array&&Ge(Uint8Array),e=>mt&&e instanceof mt);var mt;const ht=Je("HTMLFormElement"),vt=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),gt=Je("RegExp"),yt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ft(n,((n,o)=>{!1!==t(n,o,e)&&(r[o]=n)})),Object.defineProperties(e,r)};var bt={isArray:Qe,isArrayBuffer:tt,isBuffer:function(e){return null!==e&&!et(e)&&null!==e.constructor&&!et(e.constructor)&&rt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{const t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||Ye.call(e)===t||rt(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&tt(e.buffer),t},isString:nt,isNumber:ot,isBoolean:e=>!0===e||!1===e,isObject:at,isPlainObject:it,isUndefined:et,isDate:st,isFile:lt,isBlob:ut,isRegExp:gt,isFunction:rt,isStream:e=>at(e)&&rt(e.pipe),isURLSearchParams:dt,isTypedArray:pt,isFileList:ct,forEach:ft,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):Qe(n)?t[r]=n.slice():t[r]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ft(arguments[e],n);return t},extend:(e,t,n,{allOwnKeys:r}={})=>(ft(t,((t,r)=>{n&&rt(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,a,i;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&Ge(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Xe,kindOfTest:Je,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(Qe(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:ht,hasOwnProperty:vt,hasOwnProp:vt,reduceDescriptors:yt,freezeMethods:e=>{yt(e,((t,n)=>{const r=e[n];rt(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 Qe(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 wt(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)}bt.inherits(wt,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=wt.prototype,Et={};["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=>{Et[e]={value:e}})),Object.defineProperties(wt,Et),Object.defineProperty(xt,"isAxiosError",{value:!0}),wt.from=(e,t,n,r,o,a)=>{const i=Object.create(xt);return bt.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),wt.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};var Ct=wt,St=n(230);function Ot(e){return bt.isPlainObject(e)||bt.isArray(e)}function kt(e){return bt.endsWith(e,"[]")?e.slice(0,-2):e}function Tt(e,t,n){return e?e.concat(t).map((function(e,t){return e=kt(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Pt=bt.toFlatObject(bt,{},null,(function(e){return/^is[A-Z]/.test(e)}));var Lt=function(e,t,n){if(!bt.isObject(e))throw new TypeError("target must be an object");t=t||new(St||FormData);const r=(n=bt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!bt.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&(l=t)&&bt.isFunction(l.append)&&"FormData"===l[Symbol.toStringTag]&&l[Symbol.iterator];var l;if(!bt.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(bt.isDate(e))return e.toISOString();if(!s&&bt.isBlob(e))throw new Ct("Blob is not supported. Use a Buffer instead.");return bt.isArrayBuffer(e)||bt.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(bt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(bt.isArray(e)&&function(e){return bt.isArray(e)&&!e.some(Ot)}(e)||bt.isFileList(e)||bt.endsWith(n,"[]")&&(s=bt.toArray(e)))return n=kt(n),s.forEach((function(e,r){!bt.isUndefined(e)&&null!==e&&t.append(!0===i?Tt([n],r,a):null===i?n:n+"[]",u(e))})),!1;return!!Ot(e)||(t.append(Tt(o,n,a),u(e)),!1)}const d=[],f=Object.assign(Pt,{defaultVisitor:c,convertValue:u,isVisitable:Ot});if(!bt.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!bt.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),bt.forEach(n,(function(n,a){!0===(!(bt.isUndefined(n)||null===n)&&o.call(t,n,bt.isString(a)?a.trim():a,r,f))&&e(n,r?r.concat(a):[a])})),d.pop()}}(e),t};function Mt(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Rt(e,t){this._pairs=[],e&&Lt(e,this,t)}const At=Rt.prototype;At.append=function(e,t){this._pairs.push([e,t])},At.toString=function(e){const t=e?function(t){return e.call(this,t,Mt)}:Mt;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Nt=Rt;function Vt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Dt(e,t,n){if(!t)return e;const r=n&&n.encode||Vt,o=n&&n.serialize;let a;if(a=o?o(t,n):bt.isURLSearchParams(t)?t.toString():new Nt(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}var It=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){bt.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},jt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ft="undefined"!=typeof URLSearchParams?URLSearchParams:Nt,_t=FormData;const Ht=(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})();var Bt={isBrowser:!0,classes:{URLSearchParams:Ft,FormData:_t,Blob:Blob},isStandardBrowserEnv:Ht,protocols:["http","https","file","blob","url","data"]},Ut=function(e){function t(e,n,r,o){let a=e[o++];const i=Number.isFinite(+a),s=o>=e.length;return a=!a&&bt.isArray(r)?r.length:a,s?(bt.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i):(r[a]&&bt.isObject(r[a])||(r[a]=[]),t(e,n,r[a],o)&&bt.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i)}if(bt.isFormData(e)&&bt.isFunction(e.entries)){const n={};return bt.forEachEntry(e,((e,r)=>{t(function(e){return bt.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},zt=Bt.isStandardBrowserEnv?{write:function(e,t,n,r,o,a){const i=[];i.push(e+"="+encodeURIComponent(t)),bt.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),bt.isString(r)&&i.push("path="+r),bt.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.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 $t=Bt.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=bt.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function qt(e,t,n){Ct.call(this,null==e?"canceled":e,Ct.ERR_CANCELED,t,n),this.name="CanceledError"}bt.inherits(qt,Ct,{__CANCEL__:!0});var Wt=qt;const Yt=bt.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"]),Gt=Symbol("internals"),Xt=Symbol("defaults");function Jt(e){return e&&String(e).trim().toLowerCase()}function Kt(e){return!1===e||null==e?e:bt.isArray(e)?e.map(Kt):String(e)}function Qt(e,t,n,r){return bt.isFunction(r)?r.call(this,t,n):bt.isString(t)?bt.isString(r)?-1!==t.indexOf(r):bt.isRegExp(r)?r.test(t):void 0:void 0}function en(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 tn(e,t){e&&this.set(e),this[Xt]=t||null}Object.assign(tn.prototype,{set:function(e,t,n){const r=this;function o(e,t,n){const o=Jt(t);if(!o)throw new Error("header name must be a non-empty string");const a=en(r,o);(!a||!0===n||!1!==r[a]&&!1!==n)&&(r[a||t]=Kt(e))}return bt.isPlainObject(e)?bt.forEach(e,((e,n)=>{o(e,n,t)})):o(t,e,n),this},get:function(e,t){if(!(e=Jt(e)))return;const n=en(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(bt.isFunction(t))return t.call(this,e,n);if(bt.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=Jt(e)){const n=en(this,e);return!(!n||t&&!Qt(0,this[n],n,t))}return!1},delete:function(e,t){const n=this;let r=!1;function o(e){if(e=Jt(e)){const o=en(n,e);!o||t&&!Qt(0,n[o],o,t)||(delete n[o],r=!0)}}return bt.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 bt.forEach(this,((r,o)=>{const a=en(n,o);if(a)return t[a]=Kt(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=Kt(r),n[i]=!0})),this},toJSON:function(e){const t=Object.create(null);return bt.forEach(Object.assign({},this[Xt]||null,this),((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&bt.isArray(n)?n.join(", "):n)})),t}}),Object.assign(tn,{from:function(e){return bt.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]&&Yt[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[Gt]=this[Gt]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Jt(e);t[r]||(function(e,t){const n=bt.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 bt.isArray(e)?e.forEach(r):r(e),this}}),tn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),bt.freezeMethods(tn.prototype),bt.freezeMethods(tn);var nn=tn;function rn(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=r[i];o||(o=l),n[a]=s,r[a]=l;let c=i,d=0;for(;c!==a;)d+=n[c++],c%=e;if(a=(a+1)%e,a===i&&(i=(i+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 a=o.loaded,i=o.lengthComputable?o.total:void 0,s=a-n,l=r(s);n=a;const u={loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&a<=i?(i-a)/l:void 0};u[t?"download":"upload"]=!0,e(u)}}function on(e){return new Promise((function(t,n){let r=e.data;const o=nn.from(e.headers).normalize(),a=e.responseType;let i;function s(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}bt.isFormData(r)&&Bt.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=Zt(e.baseURL,e.url);function c(){if(!l)return;const r=nn.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Ct("Request failed with status code "+n.status,[Ct.ERR_BAD_REQUEST,Ct.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:a&&"text"!==a&&"json"!==a?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:r,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),Dt(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 Ct("Request aborted",Ct.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new Ct("Network Error",Ct.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||jt;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Ct(t,r.clarifyTimeoutError?Ct.ETIMEDOUT:Ct.ECONNABORTED,e,l)),l=null},Bt.isStandardBrowserEnv){const t=(e.withCredentials||$t(u))&&e.xsrfCookieName&&zt.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in l&&bt.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),bt.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&"json"!==a&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",rn(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",rn(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{l&&(n(!t||t.type?new Wt(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);d&&-1===Bt.protocols.indexOf(d)?n(new Ct("Unsupported protocol "+d+":",Ct.ERR_BAD_REQUEST,e)):l.send(r||null)}))}const an={http:on,xhr:on};var sn=e=>{if(bt.isString(e)){const t=an[e];if(!e)throw Error(bt.hasOwnProp(e)?`Adapter '${e}' is not available in the build`:`Can not resolve adapter '${e}'`);return t}if(!bt.isFunction(e))throw new TypeError("adapter is not a function");return e};const ln={"Content-Type":"application/x-www-form-urlencoded"},un={transitional:jt,adapter:function(){let e;return"undefined"!=typeof XMLHttpRequest?e=sn("xhr"):"undefined"!=typeof process&&"process"===bt.kindOf(process)&&(e=sn("http")),e}(),transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=bt.isObject(e);if(o&&bt.isHTMLForm(e)&&(e=new FormData(e)),bt.isFormData(e))return r&&r?JSON.stringify(Ut(e)):e;if(bt.isArrayBuffer(e)||bt.isBuffer(e)||bt.isStream(e)||bt.isFile(e)||bt.isBlob(e))return e;if(bt.isArrayBufferView(e))return e.buffer;if(bt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Lt(e,new Bt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Bt.isNode&&bt.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=bt.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Lt(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(bt.isString(e))try{return(0,JSON.parse)(e),bt.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&&bt.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 Ct.from(e,Ct.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:Bt.classes.FormData,Blob:Bt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};bt.forEach(["delete","get","head"],(function(e){un.headers[e]={}})),bt.forEach(["post","put","patch"],(function(e){un.headers[e]=bt.merge(ln)}));var cn=un;function dn(e,t){const n=this||cn,r=t||n,o=nn.from(r.headers);let a=r.data;return bt.forEach(e,(function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)})),o.normalize(),a}function fn(e){return!(!e||!e.__CANCEL__)}function pn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wt}function mn(e){return pn(e),e.headers=nn.from(e.headers),e.data=dn.call(e,e.transformRequest),(e.adapter||cn.adapter)(e).then((function(t){return pn(e),t.data=dn.call(e,e.transformResponse,t),t.headers=nn.from(t.headers),t}),(function(t){return fn(t)||(pn(e),t&&t.response&&(t.response.data=dn.call(e,e.transformResponse,t.response),t.response.headers=nn.from(t.response.headers))),Promise.reject(t)}))}function hn(e,t){t=t||{};const n={};function r(e,t){return bt.isPlainObject(e)&&bt.isPlainObject(t)?bt.merge(e,t):bt.isPlainObject(t)?bt.merge({},t):bt.isArray(t)?t.slice():t}function o(n){return bt.isUndefined(t[n])?bt.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function a(e){if(!bt.isUndefined(t[e]))return r(void 0,t[e])}function i(n){return bt.isUndefined(t[n])?bt.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:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s};return bt.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){const t=l[e]||o,r=t(e);bt.isUndefined(r)&&t!==s||(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 gn={};vn.transitional=function(e,t,n){function r(e,t){return"[Axios v1.1.3] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new Ct(r(o," has been removed"+(t?" in "+t:"")),Ct.ERR_DEPRECATED);return t&&!gn[o]&&(gn[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}};var yn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ct("options must be an object",Ct.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new Ct("option "+a+" must be "+n,Ct.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Ct("Unknown option "+a,Ct.ERR_BAD_OPTION)}},validators:vn};const bn=yn.validators;class wn{constructor(e){this.defaults=e,this.interceptors={request:new It,response:new It}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=hn(this.defaults,t);const{transitional:n,paramsSerializer:r}=t;void 0!==n&&yn.assertOptions(n,{silentJSONParsing:bn.transitional(bn.boolean),forcedJSONParsing:bn.transitional(bn.boolean),clarifyTimeoutError:bn.transitional(bn.boolean)},!1),void 0!==r&&yn.assertOptions(r,{encode:bn.function,serialize:bn.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();const o=t.headers&&bt.merge(t.headers.common,t.headers[t.method]);o&&bt.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),t.headers=new nn(t.headers,o);const a=[];let i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,a.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(!i){const e=[mn.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,s),u=e.length,l=Promise.resolve(t);c<u;)l=l.then(e[c++],e[c++]);return l}u=a.length;let d=t;for(c=0;c<u;){const e=a[c++],t=a[c++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=mn.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 Dt(Zt((e=hn(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}bt.forEach(["delete","get","head","options"],(function(e){wn.prototype[e]=function(t,n){return this.request(hn(n||{},{method:e,url:t,data:(n||{}).data}))}})),bt.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(hn(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}wn.prototype[e]=t(),wn.prototype[e+"Form"]=t(!0)}));var xn=wn;class En{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 En((function(t){e=t})),cancel:e}}}var Cn=En;const Sn=function e(t){const n=new xn(t),r=We(xn.prototype.request,n);return bt.extend(r,xn.prototype,n,{allOwnKeys:!0}),bt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(hn(t,n))},r}(cn);Sn.Axios=xn,Sn.CanceledError=Wt,Sn.CancelToken=Cn,Sn.isCancel=fn,Sn.VERSION="1.1.3",Sn.toFormData=Lt,Sn.AxiosError=Ct,Sn.Cancel=Sn.CanceledError,Sn.all=function(e){return Promise.all(e)},Sn.spread=function(e){return function(t){return e.apply(null,t)}},Sn.isAxiosError=function(e){return bt.isObject(e)&&!0===e.isAxiosError},Sn.formToJSON=e=>Ut(bt.isHTMLForm(e)?new FormData(e):e);var On=Sn;const{Axios:kn,AxiosError:Tn,CanceledError:Pn,isCancel:Ln,CancelToken:Mn,VERSION:Rn,all:An,Cancel:Nn,isAxiosError:Vn,spread:Dn,toFormData:In}=On,jn=On.create({baseURL:window.extOnbData.root,headers:{"X-WP-Nonce":window.extOnbData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Onboarding":!0,"X-Extendify":!0}});jn.interceptors.request.use((e=>Bn(e)),(e=>e)),jn.interceptors.response.use((e=>Fn(e)),(e=>Hn(e)));const Fn=e=>Object.prototype.hasOwnProperty.call(e,"data")?e.data:e,Hn=e=>{if(e.response)return console.error(e.response),e.response.status>=400&&e.response.status<500?Promise.reject(e.response):Promise.reject(Fn(e.response))},Bn=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),Un=(e,t)=>jn.post("onboarding/options",{option:e,value:t}),zn=async e=>{const{data:t}=await jn.get("onboarding/options",{params:{option:e}});return t},Zn=async e=>{if(null!=e&&e.wordpressSlug){try{const t=await jn.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 jn.get(`${n}?search=${e.wordpressSlug}`),o=null==r||null===(t=r[0])||void 0===t?void 0:t.plugin;if(!o)throw new Error("Plugin not found");return await jn.post(`${n}/${o}`,{status:"active"})},qn=(e,t)=>jn.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}),Wn=async()=>{const e=await jn.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 Yn={};!function e(t,n,r,o){var a=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function i(){}function s(e){var r=n.exports.Promise,o=void 0!==r?r:t.Promise;return"function"==typeof o?new o(e):(e(i,i),null)}var l,u,c,d,f,p,m,h,v,g=(c=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+c-1<r?(f=r,delete d[t],e()):d[t]=requestAnimationFrame(n)})),t},u=function(e){d[e]&&cancelAnimationFrame(d[e])}):(l=function(e){return setTimeout(e,c)},u=function(e){return clearTimeout(e)}),{frame:l,cancel:u}),y=(h={},function(){if(p)return p;if(!r&&a){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,o){if(m)return t(n,null),m;var a=Math.random().toString(36).slice(2);return m=s((function(r){function i(t){t.data.callback===a&&(delete h[a],e.removeEventListener("message",i),m=null,o(),r())}e.addEventListener("message",i),t(n,a),h[a]=i.bind(null,{data:{callback:a}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),h)h[t](),delete h[t]}}(p)}return p}),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 x(e){return e<0?0:Math.floor(e)}function E(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:E(t.substring(0,2)),g:E(t.substring(2,4)),b:E(t.substring(4,6))}}function O(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 T(e,n){var i,l=!e,u=!!w(n||{},"resize"),c=w(n,"disableForReducedMotion",Boolean),d=a&&w(n||{},"useWorker")?y():null,f=l?O:k,p=!(!e||!d||!e.__confetti_initialized),m="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function h(t,n,a){for(var l,u,c,d,p=w(t,"particleCount",x),m=w(t,"angle",Number),h=w(t,"spread",Number),v=w(t,"startVelocity",Number),y=w(t,"decay",Number),b=w(t,"gravity",Number),E=w(t,"drift",Number),S=w(t,"colors",C),O=w(t,"ticks",Number),k=w(t,"shapes"),T=w(t,"scalar"),P=function(e){var t=w(e,"origin",Object);return t.x=w(t,"x",Number),t.y=w(t,"y",Number),t}(t),L=p,M=[],R=e.width*P.x,A=e.height*P.y;L--;)M.push((void 0,void 0,u=(l={x:R,y:A,angle:m,spread:h,startVelocity:v,color:S[L%S.length],shape:k[(0,d=k.length,Math.floor(Math.random()*(d-0))+0)],ticks:O,decay:y,gravity:b,drift:E,scalar:T}).angle*(Math.PI/180),c=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:-u+(.5*c-Math.random()*c),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 i?i.addFettis(M):(i=function(e,t,n,a,i){var l,u,c=t.slice(),d=e.getContext("2d"),f=s((function(t){function s(){l=u=null,d.clearRect(0,0,a.width,a.height),i(),t()}l=g.frame((function t(){!r||a.width===o.width&&a.height===o.height||(a.width=e.width=o.width,a.height=e.height=o.height),a.width||a.height||(n(e),a.width=e.width,a.height=e.height),d.clearRect(0,0,a.width,a.height),c=c.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,o=t.y+t.random*t.tiltSin,a=t.wobbleX+t.random*t.tiltCos,i=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(a-r)*t.ovalScalar,Math.abs(i-o)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,n,r,o,a,i,s,l){e.save(),e.translate(t,n),e.rotate(a),e.scale(r,o),e.arc(0,0,1,0,s,void 0),e.restore()}(e,t.x,t.y,Math.abs(a-r)*t.ovalScalar,Math.abs(i-o)*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(o)),e.lineTo(Math.floor(a),Math.floor(i)),e.lineTo(Math.floor(r),Math.floor(t.wobbleY))),e.closePath(),e.fill(),t.tick<t.totalTicks}(d,e)})),c.length?l=g.frame(t):s()})),u=s}));return{addFettis:function(e){return c=c.concat(e),f},canvas:e,promise:f,reset:function(){l&&g.cancel(l),u&&u()}}}(e,M,f,n,a)).promise}function v(n){var r=c||w(n,"disableForReducedMotion",Boolean),o=w(n,"zIndex",Number);if(r&&m)return s((function(e){e()}));l&&i?e=i.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}(o),document.body.appendChild(e)),u&&!p&&f(e);var a={width:e.width,height:e.height};function v(){if(d){var t={getBoundingClientRect:function(){if(!l)return e.getBoundingClientRect()}};return f(t),void d.postMessage({resize:{width:t.width,height:t.height}})}a.width=a.height=null}function g(){i=null,u&&t.removeEventListener("resize",v),l&&e&&(document.body.removeChild(e),e=null,p=!1)}return d&&!p&&d.init(e),p=!0,d&&(e.__confetti_initialized=!0),u&&t.addEventListener("resize",v,!1),d?d.fire(n,a,g):h(n,a,g)}return v.reset=function(){d&&d.reset(),i&&i.reset()},v}function P(){return v||(v=T(null,{useWorker:!0,resize:!0})),v}n.exports=function(){return P().apply(this,arguments)},n.exports.reset=function(){P().reset()},n.exports.create=T}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),Yn,!1);var Gn=Yn.exports;Yn.exports.create;const Xn=async e=>{var t;const n=await jn.get("onboarding/styles",{params:e}),{headers:r,footers:o}=await(async()=>{var e,t,n;let r=await jn.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,a,i,s,l;const u=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"})),c=null==o?void 0:o.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==u||null===(n=u.content)||void 0===n||null===(a=n.raw)||void 0===a?void 0:a.trim())&&void 0!==t?t:"",footerCode:null!==(i=null==c||null===(s=c.content)||void 0===s||null===(l=s.raw)||void 0===l?void 0:l.trim())&&void 0!==i?i:""}}))}},Jn=e=>jn.get("onboarding/template",{params:e}),Kn=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("")},Qn=async(e,t,n)=>n.dryRun?new Promise((e=>setTimeout(e,t))):Promise.all([await e(),new Promise((e=>setTimeout(e,t)))]),er=async()=>{try{return await jn.get("onboarding/ping"),!0}catch(e){}return await new Promise((e=>setTimeout(e,1e3))),er()},tr=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,a={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,a),a};var nr=n(798);const{useSyncExternalStoreWithSelector:rr}=nr,or=e=>{const t="function"==typeof e?(e=>e?tr(e):tr)(e):e,n=(e,n)=>function(e,t=e.getState,n){const r=rr(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,o.useDebugValue)(r),r}(t,e,n);return Object.assign(n,t),n},ar=e=>e?or(e):or,ir=(e,t={})=>(n,r,o)=>{const{enabled:a,anonymousActionType:i,...s}=t;let l;try{l=(null==a||a)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!l)return a&&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 a=n(e,t);return c?(u.send(void 0===o?{type:i||"anonymous"}:"string"==typeof o?{type:o}:o,r()),a):a};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"):sr(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 sr(e.state,(e=>{d(e),u.init(o.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 u.send(null,n)}case"PAUSE_RECORDING":return c=!c}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)},lr=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(e){return lr(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return lr(t)(e)}}}},ur=(e,t)=>(n,r,o)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},i=!1;const s=new Set,l=new Set;let u;try{u=a.getStorage()}catch(e){}if(!u)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)}),r,o);const c=lr(a.serialize),d=()=>{const e=a.partialize({...r()});let t;const n=c({state:e,version:a.version}).then((e=>u.setItem(a.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;i=!1,s.forEach((e=>e(r())));const t=(null==(e=a.onRehydrateStorage)?void 0:e.call(a,r()))||void 0;return lr(u.getItem.bind(u))(a.name).then((e=>{if(e)return a.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===a.version)return e.state;if(a.migrate)return a.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=a.merge(e,null!=(t=r())?t:p),n(m,!0),d()})).then((()=>{null==t||t(m,void 0),i=!0,l.forEach((e=>e(m)))})).catch((e=>{null==t||t(void 0,e)}))};return o.persist={setOptions:e=>{a={...a,...e},e.getStorage&&(u=e.getStorage())},clearStorage:()=>{null==u||u.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>i,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},h(),m||p},cr={siteType:{},siteInformation:{title:void 0},feedbackMissingSiteType:"",feedbackMissingGoal:"",exitFeedback:void 0,siteTypeSearch:[],style:null,pages:[],plugins:[],goals:[]},dr=ar(ur(ir(((e,t)=>({...cr,setSiteType(t){e({siteType:t})},setSiteInformation(n,r){const o={...t().siteInformation,[n]:r};e({siteInformation:o})},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 o;e({[n]:null===(o=t()[n])||void 0===o?void 0:o.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,o,a,i,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===(o=Object.keys(null!==(a=null===(i=t())||void 0===i?void 0:i.style)&&void 0!==a?a:{}))||void 0===o?void 0:o.length)>0&&(null===(s=t())||void 0===s||null===(l=s.pages)||void 0===l?void 0:l.length)>0},resetState(){e(cr)}})),{name:"Extendify User Selection"}),{name:"extendify-site-selection",getStorage:()=>localStorage}));function fr(){return fr=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},fr.apply(this,arguments)}var pr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),mr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),hr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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",fr({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"}))})),gr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),yr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),br=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),wr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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",fr({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"}))})),Er=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),Cr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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",fr({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 Sr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),Or=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),kr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),Tr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),Pr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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"}))})),Lr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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",fr({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 Mr=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",fr({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 Rr=()=>{var t,n,r;const[o]=(0,e.useState)(!0),[a,i]=(0,e.useState)(!1),[s,l]=(0,e.useState)(!0),u=dr((e=>e.canLaunch())),{siteType:c,siteInformation:d,pages:f,style:p,plugins:m,goals:h}=dr(),[v,g]=(0,e.useState)([]),[y,b]=(0,e.useState)([]),w=e=>g((t=>[e,...t])),x=e=>b((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])}(s);const C=(0,e.useCallback)((async()=>{if(!u)throw new Error((0,Q.__)("Site is not ready to launch.","extendify"));try{var e;let n;if(w((0,Q.__)("Applying site styles","extendify")),x((0,Q.__)("A beautiful site in... 3, 2, 1","extendify")),await er(),await Qn((async()=>await Un("blogname",d.title)),2e3,{dryRun:E.current}),E.current||(await er(),await(t=null!==(e=null==p?void 0:p.variation)&&void 0!==e?e:{},((e,t)=>jn.post(`${window.extOnbData.wpRoot}wp/v2/global-styles/${e}`,{id:e,settings:t.settings,styles:t.styles}))(window.extOnbData.globalStylesPostID,t)),await er(),await qn("extendable/header",null==p?void 0:p.headerCode),await er(),await qn("extendable/footer",null==p?void 0:p.footerCode)),w((0,Q.__)("Generating page content","extendify")),x((0,Q.__)("Starting off with a full site...","extendify")),await er(),await Qn((async()=>{const e={slug:"blog",title:(0,Q.__)("Blog","extendify")},t=[...f,e];await er(),n=await(async(e,t,n)=>{const r={};for(const s of e){const e=await Jn({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 o,a;null!=e&&e.data&&(l=[null==e||null===(o=e.data)||void 0===o?void 0:o.code,null==e||null===(a=e.data)||void 0===a?void 0:a.code2].filter(Boolean).join(""));const u=await(i={title:s.title,status:"publish",content:l,template:"no-title",meta:{made_with_extendify_launch:!0}},jn.post(`${window.extOnbData.wpRoot}wp/v2/pages`,i));r[s.slug]={id:u.id,title:s.title}}var i;return null!=r&&r.home&&(await Un("show_on_front","page"),await Un("page_on_front",r.home.id)),null!=r&&r.blog&&await Un("page_for_posts",r.blog.id),r})(t,c,p),await er();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 o=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,o)}(h.some((e=>"blog"===e.slug))?t:f,n,null==p?void 0:p.headerCode);await er(),await qn("extendable/header",r)}),2e3,{dryRun:E.current}),null!=m&&m.length){w((0,Q.__)("Installing suggested plugins","extendify"));for(const[e,t]of m.entries()){x((0,Q.__)(`${e+1}/${m.length}: ${t.name}`,"extendify")),await er();try{await Zn(t)}catch(e){await er(),await Zn(t)}}}return w((0,Q.__)("Setting up your site assistant","extendify")),x((0,Q.__)("Helping your site to be successful...","extendify")),await er(),await Qn((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 jn.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,jn.delete(`${window.extOnbData.wpRoot}wp/v2/${r}s/${n}`))})));var e}),2e3,{dryRun:E.current}),E.current||(await er(),await Un("permalink_structure","/%postname%/")),w((0,Q.__)("Your site has been created!","extendify")),x((0,Q.__)("Redirecting in 3, 2, 1...","extendify")),i(!0),l(!1),await new Promise((e=>setTimeout(e,2500))),E.current||(await er(),await Un("extendify_onboarding_completed",(new Date).toISOString())),n}catch(e){if(e.status>=400&&e.status<500){l(!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))),C()}var t}),[h,f,m,c,p,u,d.title]);return(0,e.useEffect)((()=>{const e=new URLSearchParams(window.location.search);E.current=e.has("dry-run")}),[]),(0,e.useEffect)((()=>{C().then((()=>{window.location.replace(window.extOnbData.adminUrl+"admin.php?page=extendify-assist&extendify-launch-success")}))}),[C]),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,o=()=>{Gn({...t,disableForReducedMotion:!0,zIndex:1e5}),Date.now()<e&&requestAnimationFrame(o)};o()}),[t,n,r])}({particleCount:2,angle:320,spread:120,origin:{x:0,y:0},colors:["var(--ext-partner-theme-primary-text, #ffffff)"]},2500,a),(0,e.createElement)(qe,{show:o,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,v.map(((t,n)=>{if(!n)return(0,e.createElement)(qe,{appear:!0,show:o,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)(Lr,{className:"spin"}),y.map(((t,n)=>{if(!n)return(0,e.createElement)(qe,{appear:!0,show:o,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)(yr,{className:"logo text-partner-primary-text w-28"}),(0,e.createElement)("span",{className:"absolute -bottom-2 right-3 font-semibold tracking-tight"},"Launch"))))},Ar=ir((e=>({generating:!1,exitModalOpen:!1,closeExitModal:()=>e({exitModalOpen:!1}),openExitModal:()=>e({exitModalOpen:!0}),hoveredOverExitButton:!1,setExitButtonHovered:()=>e({hoveredOverExitButton:!0})})),{name:"Extendify Launch Globals"}),Nr=ar(Ar);var Vr=n(184),Dr=n.n(Vr);const Ir=t=>{let{label:n,slug:r,description:o,checked:a,onChange:i,Icon:s}=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:i,defaultChecked:a}),(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),o?(0,e.createElement)("span",{className:"block pt-1 text-gray-700 pr-4 font-normal"},o):(0,e.createElement)("span",null))),s&&(0,e.createElement)(s,{className:"flex-none text-partner-primary-bg h-6 w-6"}))},jr=()=>{const{nextPage:t,currentPageIndex:n,pages:r}=ep(),o=Array.from(r.keys())[n],a=r.get(o).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:!a.ready,type:"button"},(0,Q.__)("Next","extendify"),(0,e.createElement)(gr,{className:"h-5 w-5"}))},Fr=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{data:r,error:o}=J(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}),a=null==r?void 0:r.data;return{data:a,loading:!a&&!o,error:o}},_r=t=>{let{disabled:n=!1}=t;const{setPage:r}=ep(),o=ep((e=>e.pages)),a=ep((e=>e.currentPageIndex)),i=(0,e.useMemo)((()=>Array.from(o.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}))),[o]),s=(0,e.useMemo)((()=>i.reduce(((e,t)=>Math.min(e,t.pageIndex)),1/0)),[i]);return null==i||!i.length||a<s?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,i.map((t=>{var o,i;return(0,e.createElement)("li",{key:null==t||null===(o=t.state.getState())||void 0===o?void 0:o.title,className:Dr()("text-base",{hidden:t.pageIndex>a,"line-through opacity-60":t.pageIndex<a,"hover:opacity-100 hover:no-underline":!n})},(0,e.createElement)("button",{className:Dr()("bg-transparent p-0 text-partner-primary-text flex items-center",{"cursor-pointer":t.pageIndex<a&&!n}),type:"button",disabled:n,onClick:()=>r(null==t?void 0:t.pageIndex)},t.pageIndex<a?(0,e.createElement)(mr,{className:"text-partner-primary-text h-6 w-6 mr-1"}):(0,e.createElement)(Cr,{className:"text-partner-primary-text h-6 w-6 mr-1"}),null==t||null===(i=t.state.getState())||void 0===i?void 0:i.title))}))))},Hr=()=>{const{previousPage:t,currentPageIndex:n,pages:r}=ep(),{openExitModal:o,setExitButtonHovered:a}=Nr(),i=0===n,s=Array.from(r.keys())[n];return(0,e.createElement)("div",{className:"flex items-center space-x-2"},i&&(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:a,onClick:o},(0,e.createElement)("span",{className:"dashicons dashicons-no-alt text-white md:text-black"}))),(0,e.createElement)("div",{className:Dr()("flex flex-1",{"justify-end":"welcome"===s,"justify-between":"welcome"!==s})},i||(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)(Sr,{className:"h-5 w-5"}),(0,Q.__)("Back","extendify")),i&&(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:a,onClick:o},(0,e.createElement)(Sr,{className:"h-5 w-5"}),(0,Q.__)("Exit Launch","extendify")),(0,e.createElement)(Br,null)))},Br=()=>{const{nextPage:t,currentPageIndex:n,pages:r}=ep(),o=ep((e=>e.count())),a=dr((e=>e.canLaunch())),i=n===o-1,s=Array.from(r.keys())[n],l=r.get(s).state,[u,c]=(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 c(null==l||null===(e=l.getState())||void 0===e?void 0:e.ready),l.subscribe((e=>{let{ready:t}=e;return c(t)}))}),[l,n]),a&&i?(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:()=>{Nr.setState({generating:!0})},type:"button"},d?(0,Q.__)("Next","extendify"):(0,Q.__)("Launch site","extendify"),d?(0,e.createElement)(gr,{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:!u,type:"button"},(0,Q.__)("Next","extendify"),(0,e.createElement)(gr,{className:"h-5 w-5"}))},Ur=t=>{var n,r,o;let{children:a,includeNav:i=!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===(o=window.extOnbData)||void 0===o?void 0:o.partnerName)&&void 0!==r?r:""})),a[0]),(0,e.createElement)(_r,{disabled:!i})),(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)(yr,{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"},i?(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)(Hr,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"},a[1])))},zr=(e,t)=>ar(ir(t,{name:`Extendify Launch ${e}`})),Zr=()=>jn.get("onboarding/goals"),$r=()=>({key:"goals"}),qr=zr("Goals",(()=>({title:(0,Q.__)("Goals","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>{const{feedbackMissingGoal:e,goals:t}=dr.getState();return!(null!=e&&e.length)&&0===(null==t?void 0:t.length)}}))),Wr=async()=>({data:{title:await zn("blogname")}}),Yr=()=>({key:"site-info"}),Gr=zr("Site Title",(()=>({title:(0,Q.__)("Site Title","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>{}})));var Xr=window.wp.blockEditor,Jr=window.wp.blocks,Kr=n(767),Qr=n.n(Kr);const eo=o.createContext({});function to({baseColor:e,highlightColor:t,width:n,height:r,borderRadius:o,circle:a,direction:i,duration:s,enableAnimation:l=!0}){const u={};return"rtl"===i&&(u["--animation-direction"]="reverse"),"number"==typeof s&&(u["--animation-duration"]=`${s}s`),l||(u["--pseudo-element-display"]="none"),"string"!=typeof n&&"number"!=typeof n||(u.width=n),"string"!=typeof r&&"number"!=typeof r||(u.height=r),"string"!=typeof o&&"number"!=typeof o||(u.borderRadius=o),a&&(u.borderRadius="50%"),void 0!==e&&(u["--base-color"]=e),void 0!==t&&(u["--highlight-color"]=t),u}function no({count:e=1,wrapper:t,className:n,containerClassName:r,containerTestId:a,circle:i=!1,style:s,...l}){var u,c,d;const f=o.useContext(eo),p={...l};for(const[e,t]of Object.entries(l))void 0===t&&delete p[e];const m={...f,...p,circle:i},h={...s,...to(m)};let v="react-loading-skeleton";n&&(v+=` ${n}`);const g=null!==(u=m.inline)&&void 0!==u&&u,y=[],b=Math.ceil(e);for(let t=0;t<b;t++){let n=h;if(b>e&&t===b-1){const t=null!==(c=n.width)&&void 0!==c?c:"100%",r=e%1,o="number"==typeof t?t*r:`calc(${t} * ${r})`;n={...n,width:o}}const r=o.createElement("span",{className:v,style:n,key:t},"");g?y.push(r):y.push(o.createElement(o.Fragment,{key:t},r,o.createElement("br",null)))}return o.createElement("span",{className:r,"data-testid":a,"aria-live":"polite","aria-busy":null===(d=m.enableAnimation)||void 0===d||d},t?y.map(((e,n)=>o.createElement(t,{key:n},e))):y)}function ro({children:e,...t}){return o.createElement(eo.Provider,{value:t},e)}const oo=t=>{var n,r;let{theme:o,context:a}=t;const[i,s]=(0,e.useState)(),l=null!==(n=null==o?void 0:o.color)&&void 0!==n?n:"#000000",u=null!==(r=null==o?void 0:o.bgColor)&&void 0!==r?r:"#cccccc";return(0,e.useEffect)((()=>{const e=requestAnimationFrame((()=>{if(null==o||!o.color)return;const e=Qr()(l).isLight()?so(Qr()(l),.15).hexa():io(Qr()(l),.15).hexa();s(e)}));return()=>cancelAnimationFrame(e)}),[l,u,null==o?void 0:o.color]),(0,e.createElement)("div",{className:Dr()({"group w-full overflow-hidden relative min-h-full button-focus button-card":"style"===a})},(0,e.createElement)(qe,{appear:!0,show:!i,leave:"transition-opacity duration-1000",leaveFrom:"opacity-100",leaveTo:"opacity-0",className:"absolute inset-0 z-10 bg-white"},(0,e.createElement)("div",{className:Dr()({"m-2 p-2 pt-1":"style"===a,"p-2":"style"!==a})},(0,e.createElement)(ao,{highlightColor:"hsl(0deg 0% 75%)",color:"hsl(0deg 0% 80%)"}))),Boolean(i)&&(0,e.createElement)("div",{className:"overflow-hidden absolute inset-0 opacity-30",style:{zIndex:-1}},(0,e.createElement)("div",{className:Dr()({"m-2 p-2 pt-1":"style"===a,"p-2":"style"!==a}),style:{backgroundColor:u,textAlign:"initial"}},(0,e.createElement)(ao,{highlightColor:i,color:l}))))},ao=t=>{let{color:n,highlightColor:r}=t;return(0,e.createElement)(ro,{duration:2.3,baseColor:n,highlightColor:r},(0,e.createElement)(no,{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)(no,{className:"w-28 h-4 mb-1 rounded-none"})),(0,e.createElement)("div",null,(0,e.createElement)(no,{className:"w-44 h-4 mb-1 rounded-none"})),(0,e.createElement)("div",null,(0,e.createElement)(no,{className:"w-12 h-6 mb-1 rounded-none"}))),(0,e.createElement)("div",{className:"px-4"},(0,e.createElement)(no,{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)(no,{className:"w-40 h-4 mb-1 rounded-none"})),(0,e.createElement)("div",null,(0,e.createElement)(no,{className:"w-40 h-4 mb-1 rounded-none"})),(0,e.createElement)("div",null,(0,e.createElement)(no,{className:"w-40 h-4 mb-1 rounded-none"}))),(0,e.createElement)("div",null,(0,e.createElement)("div",null,(0,e.createElement)(no,{className:"w-24 h-4 mb-1 rounded-none"})),(0,e.createElement)("div",null,(0,e.createElement)(no,{className:"w-24 h-4 mb-1 rounded-none"}))))))},io=(e,t)=>{const n=e.lightness();return e.lightness(n+(100-n)*t)},so=(e,t)=>{const n=e.lightness();return e.lightness(n-n*t)},lo=async e=>{if(!e)return"{}";const t=await(e=>jn.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}},uo=t=>{var n,r,o,a,i,s,l;let{style:u,onSelect:c,blockHeight:d,context:f,active:p=!1,onHover:m=null}=t;const h=dr((e=>e.siteType)),v=(()=>{const t=(0,e.useRef)(!1);return(0,e.useEffect)((()=>(t.current=!0,()=>t.current=!1))),t})(),[g,y]=(0,e.useState)(""),[b,w]=(0,e.useState)(!1),[x,E]=(0,e.useState)(0),[C,S]=(0,e.useState)(null),[O,k]=(0,e.useState)(!1),[T,P]=(0,e.useState)(null),[L,M]=(0,e.useState)(),R=(0,e.useRef)(null),A=(0,e.useRef)(null),N=(0,e.useRef)(null),V=(0,e.useRef)(null),D=(0,e.useRef)(!1),{data:I}=Fr(O&&L?L:null,lo),{data:j}=Fr("variations",Wn),F=null==L||null===(n=L.settings)||void 0===n||null===(r=n.color)||void 0===r||null===(o=r.palette)||void 0===o?void 0:o.theme,_=(0,e.useMemo)((()=>{return(0,Jr.rawHandler)({HTML:(e=g,e.replace(/\w+:\/\/\S*(w=(\d*))&\w+\S*"/g,((e,t,n)=>e.replace(t,"w="+Math.floor(Number(n))+"&q=10"))))});var e}),[g]),H=(0,e.useMemo)((()=>I?(0,Xr.transformStyles)([{css:I}],".editor-styles-wrapper"):null),[I]);return(0,e.useEffect)((()=>{if(C||!O)return;const e=setTimeout((()=>{const e=R.current,t=null==e?void 0:e.querySelector("iframe[title]");if(!t)return E((e=>e+1));S(t)}),100);return()=>clearTimeout(e)}),[C,O,x]),(0,e.useLayoutEffect)((()=>{var e,t;if(!O||!f.measure)return;const n=`${f.type}-${f.detail}`;if(!b&&!D.current)return D.current=0,void(V.current=performance.now());let r;try{r=performance.measure(n,{start:V.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 o=new URLSearchParams(window.location.search);var a;null!=o&&o.has("performance")&&D.current&&console.info(`🚀 ${a=f.type,a.charAt(0).toUpperCase()+a.slice(1).toLowerCase()} (${f.detail}) in ${D.current.toFixed()}ms`)}),[b,f,O]),(0,e.useEffect)((()=>{if(null==j||!j.length)return;const e=j.find((e=>e.title===u.label));M(e)}),[u,j]),(0,e.useEffect)((()=>{if(!I||null==u||!u.code)return;const e=[null==u?void 0:u.headerCode,null==u?void 0:u.code,null==u?void 0:u.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==h?void 0:h.slug,I,u]),(0,e.useEffect)((()=>{var e;if(!C||!b)return;let t,n;const r=R.current,o=r.offsetWidth/1400,a=C.contentDocument.body;null!=a&&a.style&&(a.style.transitionProperty="all",a.style.top=0),null===(e=a.querySelector("[href*=load-styles]"))||void 0===e||e.remove();const i=()=>{var e,n;if(null==a||!a.offsetHeight)return;const r=(null!==(e=null==A||null===(n=A.current)||void 0===n?void 0:n.offsetHeight)&&void 0!==e?e:d)-32,i=a.getBoundingClientRect().height-r/o;a.style.transitionDuration=Math.max(2*i,3e3)+"ms",t=window.requestAnimationFrame((()=>{a.style.top=-1*Math.max(0,i)+"px"}))},s=()=>{var e,t;if(null==a||!a.offsetHeight)return;const r=(null!==(e=null==A||null===(t=A.current)||void 0===t?void 0:t.offsetHeight)&&void 0!==e?e:d)-32,i=a.offsetHeight-r/o;a.style.transitionDuration=i+"ms",n=window.requestAnimationFrame((()=>{a.style.top=0}))};return r.addEventListener("focus",i),r.addEventListener("mouseenter",i),r.addEventListener("blur",s),r.addEventListener("mouseleave",s),()=>{window.cancelAnimationFrame(t),window.cancelAnimationFrame(n),r.removeEventListener("focus",i),r.removeEventListener("mouseenter",i),r.removeEventListener("blur",s),r.removeEventListener("mouseleave",s)}}),[d,b,C]),(0,e.useEffect)((()=>{if(null==_||!_.length||!C)return;let e,t;const n=()=>{const n=C.contentDocument,r=`<style id="ext-tj">${H}</style>`;var o;null!=n&&n.getElementById("ext-tj")||null==n||null===(o=n.head)||void 0===o||o.insertAdjacentHTML("beforeend",r),t=setTimeout((()=>v.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)))}}),[_,H,v,O,C]),(0,e.useEffect)((()=>{if(!N.current)return N.current=new IntersectionObserver((e=>{e[0].isIntersecting&&k(!0)})),N.current.observe(A.current),()=>N.current.disconnect()}),[]),(0,e.createElement)(e.Fragment,null,b&&g?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)(oo,{context:"style",theme:{color:null==F||null===(a=F.find((e=>"foreground"===e.slug)))||void 0===a?void 0:a.color,bgColor:null==F||null===(i=F.find((e=>"background"===e.slug)))||void 0===i?void 0:i.color}}))),(0,e.createElement)("div",{"data-test":"styleSelector",ref:A,role:c?"button":void 0,tabIndex:c?0:void 0,"aria-label":c?(0,Q.__)("Press to select","extendify"):void 0,className:Dr()("group w-full overflow-hidden bg-transparent z-10",{"relative min-h-full":b,"absolute opacity-0":!b,"button-focus button-card p-2":c,"ring-partner-primary-bg ring-offset-2 ring-offset-white ring-wp":p}),onKeyDown:e=>{["Enter","Space"," "].includes(e.key)&&c&&c({...u,variation:L})},onMouseEnter:()=>{m&&P(m)},onMouseLeave:()=>{T&&(T(),P(null))},onClick:c?()=>c({...u,variation:L}):()=>{}},null!==(s=window)&&void 0!==s&&null!==(l=s.extOnbData)&&void 0!==l&&l.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==u?void 0:u.label," - ",Number(D.current).toFixed(2),"ms"):null,(0,e.createElement)("div",{ref:R,className:"relative rounded-lg"},O?(0,e.createElement)(Xr.BlockPreview,{blocks:_,viewportWidth:1400,live:!1}):null)))},co=e=>Jn(e),fo=t=>{let{page:n,blockHeight:r,required:o=!1,displayOnly:a=!1,title:i=""}=t;const{siteType:s,style:l,toggle:u,has:c}=dr(),d="home"===(null==n?void 0:n.slug),{data:f}=Fr({siteType:s.slug,layoutType:n.slug,baseLayout:d?s.slug.startsWith("blog")?null==l?void 0:l.blogBaseLayout:null==l?void 0:l.homeBaseLayout:null,kit:"home"!==n.slug?null==l?void 0:l.kit:null},co);return a?(0,e.createElement)("div",{className:"text-base p-2 bg-transparent overflow-hidden rounded-lg border border-gray-100",style:{height:r}},i&&(0,e.createElement)("div",{className:"p-3 pb-0 bg-white text-left"},i),(0,e.createElement)(po,{key:null==l?void 0:l.recordId,page:n,measure:!1,blockHeight:r,style:{...l,code:Kn({template:f})}})):(0,e.createElement)("div",{"data-test":"pageSelector",role:"button",tabIndex:0,"aria-label":(0,Q.__)("Press to select","extendify"),disabled:o,className:"text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100 button-focus",onClick:()=>o||u("pages",n),title:o&&i?(0,Q.sprintf)(// translators: %s is the name of a page (e.g. Home, Blog, About)
|
3 |
(0,Q.__)("%s page is required","extendify"),i):(0,Q.sprintf)(// translators: %s is the name of a page (e.g. Home, Blog, About)
|
4 |
+
(0,Q.__)("Toggle %s page","extendify"),i),onKeyDown:e=>{["Enter","Space"," "].includes(e.key)&&(o||u("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"},i&&(0,e.createElement)("div",{className:Dr()("flex items-center",{"text-gray-700":!c("pages",n)})},(0,e.createElement)("span",{className:"text-left"},i),o&&(0,e.createElement)("span",{className:"w-4 h-4 text-base leading-none pl-2 mr-6 dashicons dashicons-lock"})),c("pages",n)?(0,e.createElement)("div",{className:Dr()("w-5 h-5 rounded-sm",{"bg-gray-700":o,"bg-partner-primary-bg":!o})},(0,e.createElement)(mr,{className:"text-white w-5"})):(0,e.createElement)("div",{className:Dr()("border w-5 h-5 rounded-sm",{"border-gray-700":o,"border-partner-primary-bg":!o})})),(0,e.createElement)("div",{className:"p-2 relative",style:{height:r-44}},(0,e.createElement)(po,{key:null==l?void 0:l.recordId,page:n,blockHeight:r,style:{...l,code:Kn({template:f})}})))},po=t=>{let{page:n,style:r,measure:o=!0,blockHeight:a=!1}=t;const i=(0,e.useMemo)((()=>({type:"page",detail:n.slug,measure:o})),[n,o]);return(0,e.createElement)(uo,{style:r,context:i,blockHeight:a})},mo=async()=>{var e,t;const n=await jn.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 o=r[0],a=null===(t=r.slice(1))||void 0===t?void 0:t.sort(((e,t)=>e.title>t.title?1:-1));return{data:[o,...null!=a?a:[]]}},ho=()=>({key:"layout-types"}),vo=zr("Pages",((e,t)=>({title:(0,Q.__)("Pages","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>{var e,n;return(null===(e=dr.getState().pages)||void 0===e?void 0:e.length)===(null===(n=t().default)||void 0===n?void 0:n.length)}}))),go=e=>Xn(e),yo=e=>{var t,n,r,o,a;return{key:"site-style",siteType:null!==(n=null===(r=e=null!==(t=e)&&void 0!==t?t:null==dr?void 0:dr.getState().siteType)||void 0===r?void 0:r.slug)&&void 0!==n?n:"default",styles:null!==(o=null===(a=e)||void 0===a?void 0:a.styles)&&void 0!==o?o:[]}},bo=zr("Design",((e,t)=>({title:(0,Q.__)("Design","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>{var e,n;return(null===(e=dr.getState().style)||void 0===e?void 0:e.slug)===(null===(n=t().default)||void 0===n?void 0:n.slug)}}))),wo=t=>{var n,r;let{style:o}=t;const a=(0,e.useCallback)((e=>{dr.getState().setStyle(e)}),[]),i=(0,e.useMemo)((()=>({type:"style",detail:o.slug,measure:!0})),[o]);return(0,e.createElement)("div",{className:"relative",style:{height:497,width:352}},(0,e.createElement)(uo,{style:o,context:i,onSelect:a,active:(null===(n=dr.getState())||void 0===n||null===(r=n.style)||void 0===r?void 0:r.slug)===o.slug,blockHeight:497}))},xo=t=>{let{label:n,slug:r,description:o,checked:a,onChange:i}=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:i,defaultChecked:a}),(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),o?(0,e.createElement)("span",{className:"block pt-1"},o):(0,e.createElement)("span",null)))},Eo=()=>jn.get("onboarding/suggested-plugins"),Co=()=>({key:"plugins"}),So=()=>{var t;const{data:n}=Fr(Co,Eo),{goals:r,add:o,toggle:a,remove:i}=dr(),s=(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]),l=(0,e.useCallback)((e=>{if(s)return!0;const t=r.map((e=>e.slug));return null==e?void 0:e.goals.find((e=>t.includes(e)))}),[r,s]);return(0,e.useEffect)((()=>{var e;null==n||n.forEach((e=>i("plugins",e))),s||null==n||null===(e=n.filter(l))||void 0===e||e.forEach((e=>o("plugins",e)))}),[n,o,s,l,i]),(0,e.createElement)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4"},null==n||null===(t=n.filter(l))||void 0===t?void 0:t.map((t=>(0,e.createElement)("div",{key:t.id},(0,e.createElement)(xo,{label:t.name,slug:t.wordpressSlug,description:t.description,checked:!s,onChange:()=>a("plugins",t)})))))},Oo=zr("Site Summary",(()=>({title:(0,Q.__)("Summary","extendify"),default:void 0,showInSidebar:!0,ready:!1,isDefault:()=>!0})));function ko(e,t){let[n,r]=(0,o.useState)(e),a=ye(e);return ve((()=>r(a.current)),[a,r,...t]),n}var To;let Po=0;function Lo(){return++Po}let Mo=null!=(To=o.useId)?To:function(){let e=we(),[t,n]=o.useState(e?Lo:null);return ve((()=>{null===t&&n(Lo())}),[t]),null!=t?""+t:void 0};function Ro(e){return he?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Ao=["[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 No=(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))(No||{}),Vo=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Vo||{}),Do=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Do||{});var Io=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Io||{});function jo(e){null==e||e.focus({preventScroll:!0})}let Fo=["textarea","input"].join(",");function _o(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 a=r.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function Ho(e,t,n=!0,r=null){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?_o(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Ao))}(e);r=null!=r?r:o.activeElement;let i,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,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},c=0,d=a.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}i=a[e],null==i||i.focus(u),c+=s}while(i!==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,Fo))&&n}(i)&&i.select(),i.hasAttribute("tabindex")||i.setAttribute("tabindex","0"),2}function Bo(e,t,n){let r=ye(t);(0,o.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function Uo(e,t,n=!0){let r=(0,o.useRef)(!1);function a(n,o){if(!r.current||n.defaultPrevented)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),i=o(n);if(null!==i&&i.ownerDocument.documentElement.contains(i)){for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(i))return}return!function(e,t=0){var n;return e!==(null==(n=Ro(e))?void 0:n.body)&&te(t,{0(){return e.matches(Ao)},1(){let t=e;for(;null!==t;){if(t.matches(Ao))return!0;t=t.parentElement}return!1}})}(i,Io.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}}(0,o.useEffect)((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let i=(0,o.useRef)(null);Bo("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),Bo("click",(e=>{!i.current||(a(e,(()=>i.current)),i.current=null)}),!0),Bo("blur",(e=>a(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}function zo(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function Zo(e,t){let[n,r]=(0,o.useState)((()=>zo(e)));return ve((()=>{r(zo(e))}),[e.type,e.as]),ve((()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}var $o=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))($o||{});function qo(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}function Wo(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))Go(n,Yo(t,r),o);return n}function Yo(e,t){return e?e+"["+t+"]":t}function Go(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())Go(e,Yo(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):Wo(n,t,e)}var Xo=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Xo||{});let Jo=le((function(e,t){let{features:n=1,...r}=e;return ae({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"})}));var Ko=(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))(Ko||{});function Qo(e,t){let n=(0,o.useRef)([]),r=xe(e);(0,o.useEffect)((()=>{let e=[...n.current];for(let[o,a]of t.entries())if(n.current[o]!==a){let o=r(t,e);return n.current=t,o}}),[r,...t])}var ea=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ea||{}),ta=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(ta||{}),na=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(na||{}),ra=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(ra||{});function oa(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=_o(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let aa={1(e){return e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let r=oa(e);if(null===r.activeOptionIndex){let e=r.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(r.activeOptionIndex=e)}let o=function(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1,a=(()=>{switch(e.focus){case 0:return n.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=n.slice().reverse().findIndex(((e,n,r)=>!(-1!==o&&r.length-n-1>=o||t.resolveDisabled(e))));return-1===e?e:n.length-1-e}case 2:return n.findIndex(((e,n)=>!(n<=o||t.resolveDisabled(e))));case 3:{let e=n.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:n.length-1-e}case 4:return n.findIndex((n=>t.resolveId(n)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===a?r:a}(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=oa(e,(e=>[...e,n]));null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n));let o={...e,...r,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(o.activeOptionIndex=0),o},4:(e,t)=>{let n=oa(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},ia=(0,o.createContext)(null);function sa(e){let t=(0,o.useContext)(ia);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,sa),t}return t}ia.displayName="ComboboxActionsContext";let la=(0,o.createContext)(null);function ua(e){let t=(0,o.useContext)(la);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ua),t}return t}function ca(e,t){return te(t.type,aa,e,t)}la.displayName="ComboboxDataContext";let da=o.Fragment,fa=le((function(e,t){let{value:n,defaultValue:r,onChange:a,name:i,by:s=((e,t)=>e===t),disabled:l=!1,__demoMode:u=!1,nullable:c=!1,multiple:d=!1,...f}=e,[p,m]=function(e,t,n){let[r,a]=(0,o.useState)(n),i=void 0!==e;return[i?e:r,xe((e=>(i||a(e),null==t?void 0:t(e))))]}(n,a,r),[h,v]=(0,o.useReducer)(ca,{dataRef:(0,o.createRef)(),comboboxState:u?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),g=(0,o.useRef)(!1),y=(0,o.useRef)({static:!1,hold:!1}),b=(0,o.useRef)(null),w=(0,o.useRef)(null),x=(0,o.useRef)(null),E=(0,o.useRef)(null),C=xe("string"==typeof s?(e,t)=>{let n=s;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:s),S=(0,o.useCallback)((e=>te(O.mode,{1:()=>p.some((t=>C(t,e))),0:()=>C(p,e)})),[p]),O=(0,o.useMemo)((()=>({...h,optionsPropsRef:y,labelRef:b,inputRef:w,buttonRef:x,optionsRef:E,value:p,disabled:l,mode:d?1:0,get activeOptionIndex(){if(g.current&&null===h.activeOptionIndex&&h.options.length>0){let e=h.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return h.activeOptionIndex},compare:C,isSelected:S,nullable:c,__demoMode:u})),[p,l,d,c,u,h]);ve((()=>{h.dataRef.current=O}),[O]),Uo([O.buttonRef,O.inputRef,O.optionsRef],(()=>v({type:1})),0===O.comboboxState);let k=(0,o.useMemo)((()=>({open:0===O.comboboxState,disabled:l,activeIndex:O.activeOptionIndex,activeOption:null===O.activeOptionIndex?null:O.options[O.activeOptionIndex].dataRef.current.value,value:p})),[O,l,p]),T=xe((e=>{let t=O.options.find((t=>t.id===e));!t||V(t.dataRef.current.value)})),P=xe((()=>{if(null!==O.activeOptionIndex){let{dataRef:e,id:t}=O.options[O.activeOptionIndex];V(e.current.value),v({type:2,focus:$o.Specific,id:t})}})),L=xe((()=>{v({type:0}),g.current=!0})),M=xe((()=>{v({type:1}),g.current=!1})),R=xe(((e,t,n)=>(g.current=!1,e===$o.Specific?v({type:2,focus:$o.Specific,id:t,trigger:n}):v({type:2,focus:e,trigger:n})))),A=xe(((e,t)=>(v({type:3,id:e,dataRef:t}),()=>v({type:4,id:e})))),N=xe((e=>(v({type:5,id:e}),()=>v({type:5,id:null})))),V=xe((e=>te(O.mode,{0(){return null==m?void 0:m(e)},1(){let t=O.value.slice(),n=t.findIndex((t=>C(t,e)));return-1===n?t.push(e):t.splice(n,1),null==m?void 0:m(t)}}))),D=(0,o.useMemo)((()=>({onChange:V,registerOption:A,registerLabel:N,goToOption:R,closeCombobox:M,openCombobox:L,selectActiveOption:P,selectOption:T})),[]),I=null===t?{}:{ref:t};return o.createElement(ia.Provider,{value:D},o.createElement(la.Provider,{value:O},o.createElement(me,{value:te(O.comboboxState,{0:fe.Open,1:fe.Closed})},null!=i&&null!=p&&Wo({[i]:p}).map((([e,t])=>o.createElement(Jo,{features:Xo.Hidden,...ue({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),ae({ourProps:I,theirProps:f,slot:k,defaultTag:da,name:"Combobox"}))))})),pa=le((function(e,t){var n,r;let{value:a,onChange:i,displayValue:s,type:l="text",...u}=e,c=ua("Combobox.Input"),d=sa("Combobox.Input"),f=Se(c.inputRef,t),p=`headlessui-combobox-input-${Mo()}`,m=Re(),h=(0,o.useMemo)((()=>{var e;return"function"==typeof s?null!=(e=s(c.value))?e:"":"string"==typeof c.value?c.value:""}),[c.value]);Qo((([e,t],[n,r])=>{!c.inputRef.current||(0===r&&1===t||e!==n)&&(c.inputRef.current.value=e)}),[h,c.comboboxState]);let v=xe((e=>{switch(e.key){case Ko.Backspace:case Ko.Delete:if(0!==c.mode||!c.nullable)return;let t=e.currentTarget;m.requestAnimationFrame((()=>{""===t.value&&(d.onChange(null),c.optionsRef.current&&(c.optionsRef.current.scrollTop=0),d.goToOption($o.Nothing))}));break;case Ko.Enter:if(0!==c.comboboxState||e.nativeEvent.isComposing)return;if(e.preventDefault(),e.stopPropagation(),null===c.activeOptionIndex)return void d.closeCombobox();d.selectActiveOption(),0===c.mode&&d.closeCombobox();break;case Ko.ArrowDown:return e.preventDefault(),e.stopPropagation(),te(c.comboboxState,{0:()=>{d.goToOption($o.Next)},1:()=>{d.openCombobox()}});case Ko.ArrowUp:return e.preventDefault(),e.stopPropagation(),te(c.comboboxState,{0:()=>{d.goToOption($o.Previous)},1:()=>{d.openCombobox(),m.nextFrame((()=>{c.value||d.goToOption($o.Last)}))}});case Ko.Home:case Ko.PageUp:return e.preventDefault(),e.stopPropagation(),d.goToOption($o.First);case Ko.End:case Ko.PageDown:return e.preventDefault(),e.stopPropagation(),d.goToOption($o.Last);case Ko.Escape:return 0!==c.comboboxState?void 0:(e.preventDefault(),c.optionsRef.current&&!c.optionsPropsRef.current.static&&e.stopPropagation(),d.closeCombobox());case Ko.Tab:if(0!==c.comboboxState)return;0===c.mode&&d.selectActiveOption(),d.closeCombobox()}})),g=xe((e=>{d.openCombobox(),null==i||i(e)})),y=ko((()=>{if(c.labelId)return[c.labelId].join(" ")}),[c.labelId]),b=(0,o.useMemo)((()=>({open:0===c.comboboxState,disabled:c.disabled})),[c]);return ae({ourProps:{ref:f,id:p,role:"combobox",type:l,"aria-controls":null==(n=c.optionsRef.current)?void 0:n.id,"aria-expanded":c.disabled?void 0:0===c.comboboxState,"aria-activedescendant":null===c.activeOptionIndex||null==(r=c.options[c.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===c.mode||void 0,"aria-labelledby":y,disabled:c.disabled,onKeyDown:v,onChange:g},theirProps:u,slot:b,defaultTag:"input",name:"Combobox.Input"})})),ma=le((function(e,t){var n;let r=ua("Combobox.Button"),a=sa("Combobox.Button"),i=Se(r.buttonRef,t),s=`headlessui-combobox-button-${Mo()}`,l=Re(),u=xe((e=>{switch(e.key){case Ko.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&a.openCombobox(),l.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Ko.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(a.openCombobox(),l.nextFrame((()=>{r.value||a.goToOption($o.Last)}))),l.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Ko.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),a.closeCombobox(),l.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),c=xe((e=>{if(qo(e.currentTarget))return e.preventDefault();0===r.comboboxState?a.closeCombobox():(e.preventDefault(),a.openCombobox()),l.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),d=ko((()=>{if(r.labelId)return[r.labelId,s].join(" ")}),[r.labelId,s]),f=(0,o.useMemo)((()=>({open:0===r.comboboxState,disabled:r.disabled,value:r.value})),[r]),p=e;return ae({ourProps:{ref:i,id:s,type:Zo(e,r.buttonRef),tabIndex:-1,"aria-haspopup":!0,"aria-controls":null==(n=r.optionsRef.current)?void 0:n.id,"aria-expanded":r.disabled?void 0:0===r.comboboxState,"aria-labelledby":d,disabled:r.disabled,onClick:c,onKeyDown:u},theirProps:p,slot:f,defaultTag:"button",name:"Combobox.Button"})})),ha=le((function(e,t){let n=ua("Combobox.Label"),r=`headlessui-combobox-label-${Mo()}`,a=sa("Combobox.Label"),i=Se(n.labelRef,t);ve((()=>a.registerLabel(r)),[r]);let s=xe((()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})})),l=(0,o.useMemo)((()=>({open:0===n.comboboxState,disabled:n.disabled})),[n]);return ae({ourProps:{ref:i,id:r,onClick:s},theirProps:e,slot:l,defaultTag:"label",name:"Combobox.Label"})})),va=re.RenderStrategy|re.Static,ga=le((function(e,t){var n;let{hold:r=!1,...a}=e,i=ua("Combobox.Options"),s=Se(i.optionsRef,t),l=`headlessui-combobox-options-${Mo()}`,u=pe(),c=null!==u?u===fe.Open:0===i.comboboxState;ve((()=>{var t;i.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[i.optionsPropsRef,e.static]),ve((()=>{i.optionsPropsRef.current.hold=r}),[i.optionsPropsRef,r]),function({container:e,accept:t,walk:n,enabled:r=!0}){let a=(0,o.useRef)(t),i=(0,o.useRef)(n);(0,o.useEffect)((()=>{a.current=t,i.current=n}),[t,n]),ve((()=>{if(!e||!r)return;let t=Ro(e);if(!t)return;let n=a.current,o=i.current,s=Object.assign((e=>n(e)),{acceptNode:n}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)o(l.currentNode)}),[e,r,a,i])}({container:i.optionsRef.current,enabled:0===i.comboboxState,accept(e){return"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(e){e.setAttribute("role","none")}});let d=ko((()=>{var e,t;return null!=(t=i.labelId)?t:null==(e=i.buttonRef.current)?void 0:e.id}),[i.labelId,i.buttonRef.current]),f=(0,o.useMemo)((()=>({open:0===i.comboboxState})),[i]);return ae({ourProps:{"aria-activedescendant":null===i.activeOptionIndex||null==(n=i.options[i.activeOptionIndex])?void 0:n.id,"aria-labelledby":d,role:"listbox",id:l,ref:s},theirProps:a,slot:f,defaultTag:"ul",features:va,visible:c,name:"Combobox.Options"})})),ya=le((function(e,t){var n,r;let{disabled:a=!1,value:i,...s}=e,l=ua("Combobox.Option"),u=sa("Combobox.Option"),c=`headlessui-combobox-option-${Mo()}`,d=null!==l.activeOptionIndex&&l.options[l.activeOptionIndex].id===c,f=l.isSelected(i),p=(0,o.useRef)(null),m=ye({disabled:a,value:i,domRef:p,textValue:null==(r=null==(n=p.current)?void 0:n.textContent)?void 0:r.toLowerCase()}),h=Se(t,p),v=xe((()=>u.selectOption(c)));ve((()=>u.registerOption(c,m)),[m,c]);let g=(0,o.useRef)(!l.__demoMode);ve((()=>{if(!l.__demoMode)return;let e=ke();return e.requestAnimationFrame((()=>{g.current=!0})),e.dispose}),[]),ve((()=>{if(0!==l.comboboxState||!d||!g.current||0===l.activationTrigger)return;let e=ke();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=p.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[p,d,l.comboboxState,l.activationTrigger,l.activeOptionIndex]);let y=xe((e=>{if(a)return e.preventDefault();v(),0===l.mode&&u.closeCombobox()})),b=xe((()=>{if(a)return u.goToOption($o.Nothing);u.goToOption($o.Specific,c)})),w=xe((()=>{a||d||u.goToOption($o.Specific,c,0)})),x=xe((()=>{a||!d||l.optionsPropsRef.current.hold||u.goToOption($o.Nothing)})),E=(0,o.useMemo)((()=>({active:d,selected:f,disabled:a})),[d,f,a]);return ae({ourProps:{id:c,ref:h,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":f,disabled:void 0,onClick:y,onFocus:b,onPointerMove:w,onMouseMove:w,onPointerLeave:x,onMouseLeave:x},theirProps:s,slot:E,defaultTag:"li",name:"Combobox.Option"})})),ba=Object.assign(fa,{Input:pa,Button:ma,Label:ha,Options:ga,Option:ya});const wa=new Intl.Collator("en").compare,xa=1/0,Ea="[A-Za-z][0-9]|[0-9][A-Za-z]|[a-z][A-Z]",Ca={interSplit:"[^A-Za-z0-9]+",intraSplit:Ea,intraBound:Ea,interLft:0,interRgt:0,interChars:".",interIns:xa,intraChars:"[a-z\\d]",intraIns:0,intraMode:0,intraSub:0,intraTrn:0,intraDel:0,intraFilt:(e,t,n)=>!0,sort:(e,t,n)=>{let{idx:r,chars:o,terms:a,interLft2:i,interLft1:s,start:l,intraIns:u,interIns:c}=e;return r.map(((e,t)=>t)).sort(((e,n)=>o[n]-o[e]||u[e]-u[n]||a[n]+i[n]+.5*s[n]-(a[e]+i[e]+.5*s[e])||c[e]-c[n]||l[e]-l[n]||wa(t[r[e]],t[r[n]])))}},Sa=(e,t)=>0==t?"":1==t?e+"??":t==xa?e+"*?":e+`{0,${t}}?`,Oa="(?:\\b|_)";function ka(e){e=Object.assign({},Ca,e);const{interLft:t,interRgt:n,intraMode:r,intraIns:o,intraSub:a,intraTrn:i,intraDel:s,intraSplit:l,interSplit:u,intraBound:c,intraChars:d}=e;let f=!!l,p=new RegExp(l,"g"),m=new RegExp(u,"g"),h=new RegExp("^"+u+"|"+u+"$","g");const v=e=>(e=e.replace(h,""),f&&(e=e.replace(p,(e=>e[0]+" "+e[1]))),e.split(m)),g=(l,u=0)=>{let c,f=v(l);if(1==r)c=f.map((e=>{let t=e.length;if(t<=2)return o>0&&2==t?e[0]+Sa(d,1)+e[1]:e;let n=e[0],r=e.at(-1),l=e.slice(1,-1),u=l.length,c=[];if(a)for(let e=0;e<u;e++)c.push(n+l.slice(0,e)+d+l.slice(e+1)+r);if(i)for(let e=0;e<u-1;e++)l[e]!=l[e+1]&&c.push(n+l.slice(0,e)+l[e+1]+l[e]+l.slice(e+2)+r);if(s)for(let e=0;e<u;e++)c.push(n+l.slice(0,e+1)+"?"+l.slice(e+1)+r);if(o){let e=Sa(d,1);for(let t=0;t<u+1;t++)c.push(n+l.slice(0,t)+e+l.slice(t)+r)}return"(?:"+e+"|"+c.join("|")+")"}));else{let e=Sa(d,o);2==u&&o>0&&(e=")("+e+")("),c=f.map((t=>t.split("").join(e)))}let p=2==t?Oa:"",m=2==n?Oa:"",h=m+Sa(e.interChars,e.interIns)+p;return c=u>0?"("+c.join(")("+h+")(")+")":c.join(h),c=u>0?2==t?"("+p+")"+c+"("+m+")":"(.?)"+c+"(.?)":p+c+m,[new RegExp(c,"i"),f]};let y=!!c,b=new RegExp(u),w=new RegExp(c);return{split:v,filter:(e,t,n)=>{let r=[],[o]=g(t);if(null!=n)for(let t=0;t<n.length;t++){let a=n[t];o.test(e[a])&&r.push(a)}else for(let t=0;t<e.length;t++)o.test(e[t])&&r.push(t);return r},info:(r,a,i)=>{let[s,l]=g(i,1),[u]=g(i,2),c=r.length,d=Array(c).fill(0),f={idx:Array(c),start:d.slice(),chars:d.slice(),terms:d.slice(),interIns:d.slice(),intraIns:d.slice(),interLft2:d.slice(),interRgt2:d.slice(),interLft1:d.slice(),interRgt1:d.slice(),ranges:Array(c)},p=1==t||1==n,m=0;for(let i=0;i<r.length;i++){let c=a[r[i]],d=c.match(s),h=d.index+d[1].length,v=h,g=!1,x=0,E=0,C=0,S=0,O=0,k=0,T=0,P=0;for(let r=0,a=2;r<l.length;r++,a+=2){let i=d[a].toLowerCase(),s=i==l[r];if(!s&&o>0){let e=i.indexOf(l[r]);e>-1&&(s=!0,v+=e,d[a]=d[a].slice(e),0==r&&(h=v))}if(p||s){let e=v-1,o=v+d[a].length,i=!0,u=!0;if(-1==e||b.test(c[e]))s&&x++;else{if(2==t){g=!0;break}if(y&&w.test(c[e]+c[e+1]))s&&E++;else{if(1==t){g=!0;break}i=!1}}if(o==c.length||b.test(c[o]))s&&C++;else{if(2==n){g=!0;break}if(y&&w.test(c[o-1]+c[o]))s&&S++;else{if(1==n){g=!0;break}u=!1}}s&&(O+=l[r].length,i&&u&&k++)}else P+=i.length-l[r].length;if(r>0&&(T+=d[a-1].length),!e.intraFilt(l[r],i,v)){g=!0;break}r<l.length-1&&(v+=d[a].length+d[a+1].length)}if(!g){f.idx[m]=r[i],f.interLft2[m]=x,f.interLft1[m]=E,f.interRgt2[m]=C,f.interRgt1[m]=S,f.chars[m]=O,f.terms[m]=k,f.interIns[m]=T,f.intraIns[m]=P,f.start[m]=h;let e=c.match(u),t=f.ranges[m]=[],n=e.index+e[1].length,o=n,a=n;for(let r=2;r<e.length;r++){let i=e[r].length;n+=i,r%2==0?a=n:i>0&&(t.push(o,a),o=a=n)}a>o&&t.push(o,a),m++}}if(m<r.length)for(let e in f)f[e]=f[e].slice(0,m);return f},sort:e.sort}}const Ta=(()=>{let e={A:"ÁÀÃÂÄĄ",a:"áàãâäą",E:"ÉÈÊËĖ",e:"éèêëę",I:"ÍÌÎÏĮ",i:"íìîïį",O:"ÓÒÔÕÖ",o:"óòôõö",U:"ÚÙÛÜŪŲ",u:"úùûüūų",C:"ÇČ",c:"çč",N:"Ñ",n:"ñ",S:"Š",s:"š"},t=new Map,n="";for(let r in e)e[r].split("").forEach((e=>{n+=e,t.set(e,r)}));let r=new RegExp(`[${n}]`,"g");return e=>{let n=Array(e.length);for(let o=0;o<e.length;o++)n[o]=e[o].replace(r,(e=>t.get(e)));return n}})(),Pa=(e,t)=>t?`<mark>${e}</mark>`:e,La=(e,t)=>e+t;ka.latinize=Ta,ka.permute=e=>{let t=function(e){let t,n,r=e.length,o=[e.slice()],a=new Array(r).fill(0),i=1;for(;i<r;)a[i]<i?(t=i%2&&a[i],n=e[i],e[i]=e[t],e[t]=n,++a[i],i=1,o.push(e.slice())):(a[i]=0,++i);return o}([...Array(e.length).keys()]).sort(((e,t)=>{for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]-t[n];return 0}));return t.map((t=>t.map((t=>e[t]))))},ka.highlight=function(e,t,n=Pa,r="",o=La){r=o(r,n(e.substring(0,t[0]),!1))??r;for(let a=0;a<t.length;a+=2){let i=t[a],s=t[a+1];r=o(r,n(e.substring(i,s),!0))??r,a<t.length-3&&(r=o(r,n(e.substring(t[a+1],t[a+2]),!1))??r)}return o(r,n(e.substring(t[t.length-1]),!1))??r};var Ma=function(e,t){return Ma=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])},Ma(e,t)};function Ra(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}Ma(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var Aa=function(){return Aa=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},Aa.apply(this,arguments)};function Na(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 Va(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function Da(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;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 Ia=("undefined"==typeof process||process.env,"production");const ja=1/60*1e3,Fa="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),_a="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(Fa())),ja);let Ha=!0,Ba=!1,Ua=!1;const za={delta:0,timestamp:0},Za=["read","update","preRender","render","postRender"],$a=Za.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const l=s&&o,u=l?t:n;return a&&i.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),i.delete(e)},process:l=>{if(o)a=!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),i.has(r)&&(s.schedule(r),e())}o=!1,a&&(a=!1,s.process(l))}}};return s}((()=>Ba=!0)),e)),{}),qa=Za.reduce(((e,t)=>{const n=$a[t];return e[t]=(e,t=!1,r=!1)=>(Ba||Ja(),n.schedule(e,t,r)),e}),{}),Wa=Za.reduce(((e,t)=>(e[t]=$a[t].cancel,e)),{}),Ya=Za.reduce(((e,t)=>(e[t]=()=>$a[t].process(za),e)),{}),Ga=e=>$a[e].process(za),Xa=e=>{Ba=!1,za.delta=Ha?ja:Math.max(Math.min(e-za.timestamp,40),1),za.timestamp=e,Ua=!0,Za.forEach(Ga),Ua=!1,Ba&&(Ha=!1,_a(Xa))},Ja=()=>{Ba=!0,Ha=!0,Ua||_a(Xa)},Ka=()=>za;var Qa=qa,ei="undefined"!=typeof document,ti=ei?o.useLayoutEffect:o.useEffect;function ni(){var e=(0,o.useRef)(!1);return ti((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var ri=(0,o.createContext)(null);function oi(e){var t=(0,o.useRef)(null);return null===t.current&&(t.current=e()),t.current}var ai=0,ii=function(){return ai++},si=function(){return oi(ii)},li=function(e){var t=e.children,n=e.initial,r=e.isPresent,a=e.onExitComplete,i=e.custom,s=e.presenceAffectsLayout,l=oi(ui),u=si(),c=(0,o.useMemo)((function(){return{id:u,initial:n,isPresent:r,custom:i,onExitComplete:function(e){var t,n;l.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(l.values()),o=r.next();!o.done;o=r.next())if(!o.value)return}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return l.set(e,!1),function(){return l.delete(e)}}}}),s?void 0:[r]);return(0,o.useMemo)((function(){l.forEach((function(e,t){return l.set(t,!1)}))}),[r]),o.useEffect((function(){!r&&!l.size&&(null==a||a())}),[r]),o.createElement(ri.Provider,{value:c},t)};function ui(){return new Map}var ci=(0,o.createContext)({});function di(e){return(0,o.useEffect)((function(){return function(){return e()}}),[])}var fi=function(e){return e.key||""},pi=function(e){var t=e.children,n=e.custom,r=e.initial,a=void 0===r||r,i=e.onExitComplete,s=e.exitBeforeEnter,l=e.presenceAffectsLayout,u=void 0===l||l,c=Va(function(){var e=ni(),t=Va((0,o.useState)(0),2),n=t[0],r=t[1],a=(0,o.useCallback)((function(){e.current&&r(n+1)}),[n]);return[(0,o.useCallback)((function(){return Qa.postRender(a)}),[a]),n]}(),1),d=c[0],f=(0,o.useContext)(ci).forceRender;f&&(d=f);var p=ni(),m=function(e){var t=[];return o.Children.forEach(e,(function(e){(0,o.isValidElement)(e)&&t.push(e)})),t}(t),h=m,v=new Set,g=(0,o.useRef)(h),y=(0,o.useRef)(new Map).current,b=(0,o.useRef)(!0);if(ti((function(){b.current=!1,function(e,t){e.forEach((function(e){var n=fi(e);t.set(n,e)}))}(m,y),g.current=h})),di((function(){b.current=!0,y.clear(),v.clear()})),b.current)return o.createElement(o.Fragment,null,h.map((function(e){return o.createElement(li,{key:fi(e),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:u},e)})));h=Da([],Va(h),!1);for(var w=g.current.map(fi),x=m.map(fi),E=w.length,C=0;C<E;C++){var S=w[C];-1===x.indexOf(S)&&v.add(S)}return s&&v.size&&(h=[]),v.forEach((function(e){if(-1===x.indexOf(e)){var t=y.get(e);if(t){var r=w.indexOf(e);h.splice(r,0,o.createElement(li,{key:fi(t),isPresent:!1,onExitComplete:function(){y.delete(e),v.delete(e);var t=g.current.findIndex((function(t){return t.key===e}));if(g.current.splice(t,1),!v.size){if(g.current=m,!1===p.current)return;d(),i&&i()}},custom:n,presenceAffectsLayout:u},t))}}})),h=h.map((function(e){var t=e.key;return v.has(t)?e:o.createElement(li,{key:fi(e),isPresent:!0,presenceAffectsLayout:u},e)})),"production"!==Ia&&s&&h.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),o.createElement(o.Fragment,null,v.size?h:h.map((function(e){return(0,o.cloneElement)(e)})))},mi=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},hi={measureLayout:mi(["layout","layoutId","drag"]),animation:mi(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:mi(["exit"]),drag:mi(["drag","dragControls"]),focus:mi(["whileFocus"]),hover:mi(["whileHover","onHoverStart","onHoverEnd"]),tap:mi(["whileTap","onTap","onTapStart","onTapCancel"]),pan:mi(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:mi(["whileInView","onViewportEnter","onViewportLeave"])},vi=(0,o.createContext)({strict:!1}),gi=Object.keys(hi),yi=gi.length,bi=(0,o.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),wi=(0,o.createContext)({}),xi={current:null},Ei=!1;function Ci(e,t,n,r){var a,i,s=(0,o.useContext)(vi),l=(0,o.useContext)(wi).visualElement,u=(0,o.useContext)(ri),c=(!Ei&&function(){if(Ei=!0,ei)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}(),a=Va((0,o.useState)(xi.current),1)[0],"never"!==(i=(0,o.useContext)(bi).reducedMotion)&&("always"===i||a)),d=(0,o.useRef)(void 0);r||(r=s.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 ti((function(){null==f||f.syncRender()})),(0,o.useEffect)((function(){var e;null===(e=null==f?void 0:f.animationState)||void 0===e||e.animateChanges()})),ti((function(){return function(){return null==f?void 0:f.notifyUnmount()}}),[]),f}function Si(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Oi(e){return Array.isArray(e)}function ki(e){return"string"==typeof e||Oi(e)}function Ti(e,t,n,r,o){var a;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===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),t}function Pi(e,t,n){var r=e.getProps();return Ti(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 Li(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||ki(e.initial)||ki(e.animate)||ki(e.whileHover)||ki(e.whileDrag)||ki(e.whileTap)||ki(e.whileFocus)||ki(e.exit)}function Mi(e){return Boolean(Li(e)||e.variants)}function Ri(e){return Array.isArray(e)?e.join(" "):e}var Ai={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ni=1,Vi=(0,o.createContext)({}),Di=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra(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}(o.Component);function Ii(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,a=e.useRender,i=e.useVisualState,s=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?hi.projectionNodeConstructor=e[t]:hi[t].Component=e[t])}(t),(0,o.forwardRef)((function(e,l){var u=function(e){var t,n=e.layoutId,r=null===(t=(0,o.useContext)(ci))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=Aa(Aa({},e),{layoutId:u});var c=(0,o.useContext)(bi),d=null,f=function(e){var t=function(e,t){if(Li(e)){var n=e.initial,r=e.animate;return{initial:!1===n||ki(n)?n:void 0,animate:ki(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(wi)),n=t.initial,r=t.animate;return(0,o.useMemo)((function(){return{initial:n,animate:r}}),[Ri(n),Ri(r)])}(e),p=c.isStatic?void 0:oi((function(){if(Ai.hasEverUpdated)return Ni++})),m=i(e,c.isStatic);return!c.isStatic&&ei&&(f.visualElement=Ci(s,m,Aa(Aa({},c),e),n),function(e,t,n,r){var a,i=t.layoutId,s=t.layout,l=t.drag,u=t.dragConstraints,c=t.layoutScroll,d=(0,o.useContext)(Vi);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(a=n.parent)||void 0===a?void 0:a.projection),n.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:Boolean(l)||u&&Si(u),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof s?s:"both",initialPromotionConfig:d,layoutScroll:c}))}(p,e,f.visualElement,r||hi.projectionNodeConstructor),d=function(e,t,n){var r=[],a=(0,o.useContext)(vi);if(!t)return null;"production"!==Ia&&n&&a.strict;for(var i=0;i<yi;i++){var s=gi[i],l=hi[s],u=l.isEnabled,c=l.Component;u(e)&&c&&r.push(o.createElement(c,Aa({key:s},e,{visualElement:t})))}return r}(e,f.visualElement,t)),o.createElement(Di,{visualElement:f.visualElement,props:Aa(Aa({},c),e)},d,o.createElement(wi.Provider,{value:f},a(s,e,p,function(e,t,n){return(0,o.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):Si(n)&&(n.current=r))}),[t])}(m,f.visualElement,l),m,c.isStatic,f.visualElement)))}))}function ji(e){function t(t,n){return void 0===n&&(n={}),Ii(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 Fi=["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 _i(e){return"string"==typeof e&&!e.includes("-")&&!!(Fi.indexOf(e)>-1||/[A-Z]/.test(e))}var Hi={},Bi=["","X","Y","Z"],Ui=["transformPerspective","x","y","z"];function zi(e,t){return Ui.indexOf(e)-Ui.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return Bi.forEach((function(t){return Ui.push(e+t)}))}));var Zi=new Set(Ui);function $i(e){return Zi.has(e)}var qi=new Set(["originX","originY","originZ"]);function Wi(e){return qi.has(e)}function Yi(e,t){var n=t.layout,r=t.layoutId;return $i(e)||Wi(e)||(n||void 0!==r)&&(!!Hi[e]||"opacity"===e)}var Gi=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},Xi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Ji(e){return e.startsWith("--")}var Ki=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const Qi=(e,t)=>n=>Math.max(Math.min(n,t),e),es=e=>e%1?Number(e.toFixed(5)):e,ts=/(-)?([\d]*\.?[\d])+/g,ns=/(#[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,rs=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function os(e){return"string"==typeof e}const as=e=>({test:t=>os(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),is=as("deg"),ss=as("%"),ls=as("px"),us=as("vh"),cs=as("vw"),ds=Object.assign(Object.assign({},ss),{parse:e=>ss.parse(e)/100,transform:e=>ss.transform(100*e)}),fs={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ps=Object.assign(Object.assign({},fs),{transform:Qi(0,1)}),ms=Object.assign(Object.assign({},fs),{default:1});var hs=Aa(Aa({},fs),{transform:Math.round}),vs={borderWidth:ls,borderTopWidth:ls,borderRightWidth:ls,borderBottomWidth:ls,borderLeftWidth:ls,borderRadius:ls,radius:ls,borderTopLeftRadius:ls,borderTopRightRadius:ls,borderBottomRightRadius:ls,borderBottomLeftRadius:ls,width:ls,maxWidth:ls,height:ls,maxHeight:ls,size:ls,top:ls,right:ls,bottom:ls,left:ls,padding:ls,paddingTop:ls,paddingRight:ls,paddingBottom:ls,paddingLeft:ls,margin:ls,marginTop:ls,marginRight:ls,marginBottom:ls,marginLeft:ls,rotate:is,rotateX:is,rotateY:is,rotateZ:is,scale:ms,scaleX:ms,scaleY:ms,scaleZ:ms,skew:is,skewX:is,skewY:is,distance:ls,translateX:ls,translateY:ls,translateZ:ls,x:ls,y:ls,z:ls,perspective:ls,transformPerspective:ls,opacity:ps,originX:ds,originY:ds,originZ:ls,zIndex:hs,fillOpacity:ps,strokeOpacity:ps,numOctaves:hs};function gs(e,t,n,r){var o,a=e.style,i=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(Ji(p))i[p]=m;else{var h=vs[p],v=Ki(m,h);if($i(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 Wi(p)?(u[p]=v,d=!0):a[p]=v}}c?a.transform=function(e,t,n,r){var o=e.transform,a=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,l=t.allowTransformNone,u=void 0===l||l,c="";a.sort(zi);for(var d=!1,f=a.length,p=0;p<f;p++){var m=a[p];c+="".concat(Xi[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?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),d&&(a.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,o=void 0===r?"50%":r,a=e.originZ,i=void 0===a?0:a;return"".concat(n," ").concat(o," ").concat(i)}(u))}function ys(e,t,n){for(var r in t)Gi(t[r])||Yi(r,n)||(e[r]=t[r])}function bs(e,t,n){var r={},a=function(e,t,n){var r={};return ys(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return(0,o.useMemo)((function(){var e={style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}};gs(e,t,{enableHardwareAcceleration:!n},r);var o=e.style;return Aa(Aa({},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,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=a,r}var ws=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 xs(e){return ws.has(e)}var Es,Cs=function(e){return!xs(e)};try{(Es=require("@emotion/is-prop-valid").default)&&(Cs=function(e){return e.startsWith("on")?!xs(e):Es(e)})}catch(H){}function Ss(e,t,n){return"string"==typeof e?e:ls.transform(t+n*e)}var Os={offset:"stroke-dashoffset",array:"stroke-dasharray"},ks={offset:"strokeDashoffset",array:"strokeDasharray"};function Ts(e,t,n,r){var o=t.attrX,a=t.attrY,i=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;gs(e,Na(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!==i||void 0!==s||m.transform)&&(m.transformOrigin=function(e,t,n){var r=Ss(t,e.x,e.width),o=Ss(n,e.y,e.height);return"".concat(r," ").concat(o)}(h,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==o&&(p.x=o),void 0!==a&&(p.y=a),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 a=o?Os:ks;e[a.offset]=ls.transform(-r);var i=ls.transform(t),s=ls.transform(n);e[a.array]="".concat(i," ").concat(s)}(p,l,c,f,!1)}var Ps=function(){return Aa(Aa({},{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}),{attrs:{}})};function Ls(e,t){var n=(0,o.useMemo)((function(){var n=Ps();return Ts(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),Aa(Aa({},n.attrs),{style:Aa({},n.style)})}),[t]);if(e.style){var r={};ys(r,e.style,e),n.style=Aa(Aa({},r),n.style)}return n}function Ms(e){return void 0===e&&(e=!1),function(t,n,r,a,i,s){var l=i.latestValues,u=(_i(t)?Ls:bs)(n,l,s),c=function(e,t,n){var r={};for(var o in e)(Cs(o)||!0===n&&xs(o)||!t&&!xs(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),d=Aa(Aa(Aa({},c),u),{ref:a});return r&&(d["data-projection-id"]=r),(0,o.createElement)(t,d)}}var Rs=/([a-z])([A-Z])/g,As=function(e){return e.replace(Rs,"$1-$2").toLowerCase()};function Ns(e,t,n,r){var o=t.style,a=t.vars;for(var i in Object.assign(e.style,o,r&&r.getProjectionStyles(n)),a)e.style.setProperty(i,a[i])}var Vs=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Ds(e,t,n,r){for(var o in Ns(e,t,void 0,r),t.attrs)e.setAttribute(Vs.has(o)?o:As(o),t.attrs[o])}function Is(e){var t=e.style,n={};for(var r in t)(Gi(t[r])||Yi(r,e))&&(n[r]=t[r]);return n}function js(e){var t=Is(e);for(var n in e)Gi(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Fs(e){return"object"==typeof e&&"function"==typeof e.start}var _s=function(e){return Array.isArray(e)},Hs=function(e){return _s(e)?e[e.length-1]||0:e};function Bs(e){var t=Gi(e)?e.get():e;return function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)}(t)?t.toValue():t}function Us(e,t,n,r){var o=e.scrapeMotionValuesFromProps,a=e.createRenderState,i=e.onMount,s={latestValues:Zs(t,n,r,o),renderState:a()};return i&&(s.mount=function(e){return i(t,e,s)}),s}var zs=function(e){return function(t,n){var r=(0,o.useContext)(wi),a=(0,o.useContext)(ri);return n?Us(e,t,r,a):oi((function(){return Us(e,t,r,a)}))}};function Zs(e,t,n,r){var o={},a=!1===(null==n?void 0:n.initial),i=r(e);for(var s in i)o[s]=Bs(i[s]);var l=e.initial,u=e.animate,c=Li(e),d=Mi(e);t&&d&&!c&&!1!==e.inherit&&(null!=l||(l=t.initial),null!=u||(u=t.animate));var f=a||!1===l,p=f?u:l;return p&&"boolean"!=typeof p&&!Fs(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=Ti(e,t);if(n){var r=n.transitionEnd;n.transition;var a=Na(n,["transitionEnd","transition"]);for(var i in a){var s=a[i];Array.isArray(s)&&(s=s[f?s.length-1:0]),null!==s&&(o[i]=s)}for(var i in r)o[i]=r[i]}})),o}var $s,qs={useVisualState:zs({scrapeMotionValuesFromProps:js,createRenderState:Ps,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}}Ts(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),Ds(t,r)}})},Ws={useVisualState:zs({scrapeMotionValuesFromProps:Is,createRenderState:function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}}})};function Ys(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Gs(e,t,n,r){(0,o.useEffect)((function(){var o=e.current;if(n&&o)return Ys(o,t,n,r)}),[e,t,n,r])}function Xs(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function Js(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"}($s||($s={}));var Ks={pageX:0,pageY:0};function Qs(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||Ks;return{x:n[t+"X"],y:n[t+"Y"]}}function el(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function tl(e,t){return void 0===t&&(t="page"),{point:Js(e)?Qs(e,t):el(e,t)}}var nl=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,tl(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},rl={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},ol={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function al(e){return ei&&null===window.onpointerdown?e:ei&&null===window.ontouchstart?ol[e]:ei&&null===window.onmousedown?rl[e]:e}function il(e,t,n,r){return Ys(e,al(t),nl(n,"pointerdown"===t),r)}function sl(e,t,n,r){return Gs(e,al(t),n&&nl(n,"pointerdown"===t),r)}function ll(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var ul=ll("dragHorizontal"),cl=ll("dragVertical");function dl(e){var t=!1;if("y"===e)t=cl();else if("x"===e)t=ul();else{var n=ul(),r=cl();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function fl(){var e=dl(!0);return!e||(e(),!1)}function pl(e,t,n){return function(r,o){var a;Xs(r)&&!fl()&&(null===(a=e.animationState)||void 0===a||a.setActive($s.Hover,t),null==n||n(r,o))}}var ml=function(e,t){return!!t&&(e===t||ml(e,t.parentElement))};const hl=(e,t)=>n=>t(e(n)),vl=(...e)=>e.reduce(hl);var gl=new Set,yl=new WeakMap,bl=new WeakMap,wl=function(e){var t;null===(t=yl.get(e.target))||void 0===t||t(e)},xl=function(e){e.forEach(wl)};var El={some:0,all:1};function Cl(e,t,n,r){var a=r.root,i=r.margin,s=r.amount,l=void 0===s?"some":s,u=r.once;(0,o.useEffect)((function(){if(e){var r={root:null==a?void 0:a.current,rootMargin:i,threshold:"number"==typeof l?l:El[l]};return function(e,t,n){var r=function(e){var t=e.root,n=Na(e,["root"]),r=t||document;bl.has(r)||bl.set(r,{});var o=bl.get(r),a=JSON.stringify(n);return o[a]||(o[a]=new IntersectionObserver(xl,Aa({root:t},n))),o[a]}(t);return yl.set(e,n),r.observe(e),function(){yl.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($s.InView,o);var a=n.getProps(),i=o?a.onViewportEnter:a.onViewportLeave;null==i||i(e)}}))}}),[e,a,i,l])}function Sl(e,t,n,r){var a=r.fallback,i=void 0===a||a;(0,o.useEffect)((function(){var r;e&&i&&("production"!==Ia&&(r="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",gl.has(r)||(console.warn(r),gl.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($s.InView,!0)})))}),[e])}var Ol=function(e){return function(t){return e(t),null}},kl={inView:Ol((function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,a=e.onViewportLeave,i=e.viewport,s=void 0===i?{}:i,l=(0,o.useRef)({hasEnteredView:!1,isInView:!1}),u=Boolean(n||r||a);s.once&&l.current.hasEnteredView&&(u=!1),("undefined"==typeof IntersectionObserver?Sl:Cl)(u,l.current,t,s)})),tap:Ol((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,a=e.whileTap,i=e.visualElement,s=t||n||r||a,l=(0,o.useRef)(!1),u=(0,o.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($s.Tap,!1),!fl()}function p(e,n){f()&&(ml(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=vl(il(window,"pointerup",p,c),il(window,"pointercancel",m,c)),null===(r=i.animationState)||void 0===r||r.setActive($s.Tap,!0),null==n||n(e,t))}sl(i,"pointerdown",s?h:void 0,c),di(d)})),focus:Ol((function(e){var t=e.whileFocus,n=e.visualElement;Gs(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive($s.Focus,!0)}:void 0),Gs(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive($s.Focus,!1)}:void 0)})),hover:Ol((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;sl(o,"pointerenter",t||r?pl(o,!0,t):void 0,{passive:!t}),sl(o,"pointerleave",n||r?pl(o,!1,n):void 0,{passive:!n})}))};function Tl(){var e=(0,o.useContext)(ri);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,a=si();return(0,o.useEffect)((function(){return r(a)}),[]),!t&&n?[!1,function(){return null==n?void 0:n(a)}]:[!0]}function Pl(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 Ll=(e,t,n)=>Math.min(Math.max(n,e),t);function Ml(e,t){return e*Math.sqrt(1-t*t)}const Rl=["duration","bounce"],Al=["stiffness","damping","mass"];function Nl(e,t){return t.some((t=>void 0!==e[t]))}function Vl(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,a=Na(e,["from","to","restSpeed","restDelta"]);const i={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(!Nl(e,Al)&&Nl(e,Rl)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,a,i=1-t;i=Ll(.05,1,i),e=Ll(.01,10,e/1e3),i<1?(o=t=>{const r=t*i,o=r*e;return.001-(r-n)/Ml(t,i)*Math.exp(-o)},a=t=>{const r=t*i*e,a=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=Ml(Math.pow(t,2),i);return(.001-o(t)>0?-1:1)*((a-s)*l)/u}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,a=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,a,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*i*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}(a),p=Dl,m=Dl;function h(){const e=c?-c/1e3:0,r=n-t,a=l/(2*Math.sqrt(s*u)),i=Math.sqrt(s/u)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),a<1){const t=Ml(i,a);p=o=>{const s=Math.exp(-a*i*o);return n-s*((e+a*i*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},m=n=>{const o=Math.exp(-a*i*n);return a*i*o*(Math.sin(t*n)*(e+a*i*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+a*i*r)-t*r*Math.sin(t*n))}}else if(1===a)p=t=>n-Math.exp(-i*t)*(r+(e+i*r)*t);else{const t=i*Math.sqrt(a*a-1);p=o=>{const s=Math.exp(-a*i*o),l=Math.min(t*o,300);return n-s*((e+a*i*r)*Math.sinh(l)+t*r*Math.cosh(l))/t}}}return h(),{next:e=>{const t=p(e);if(f)i.done=e>=d;else{const a=1e3*m(e),s=Math.abs(a)<=r,l=Math.abs(n-t)<=o;i.done=s&&l}return i.value=i.done?n:t,i},flipTarget:()=>{c=-c,[t,n]=[n,t],h()}}}Vl.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const Dl=e=>0,Il=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},jl=(e,t,n)=>-n*e+n*t+e,Fl=(e,t)=>n=>Boolean(os(n)&&rs.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),_l=(e,t,n)=>r=>{if(!os(r))return r;const[o,a,i,s]=r.match(ts);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},Hl=Qi(0,255),Bl=Object.assign(Object.assign({},fs),{transform:e=>Math.round(Hl(e))}),Ul={test:Fl("rgb","red"),parse:_l("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Bl.transform(e)+", "+Bl.transform(t)+", "+Bl.transform(n)+", "+es(ps.transform(r))+")"},zl={test:Fl("#"),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:Ul.transform},Zl={test:Fl("hsl","hue"),parse:_l("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ss.transform(es(t))+", "+ss.transform(es(n))+", "+es(ps.transform(r))+")"};function $l(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 ql({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,a=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=$l(s,r,e+1/3),a=$l(s,r,e),i=$l(s,r,e-1/3)}else o=a=i=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*i),alpha:r}}const Wl=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},Yl=[zl,Ul,Zl],Gl=e=>Yl.find((t=>t.test(e))),Xl=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,Jl=(e,t)=>{let n=Gl(e),r=Gl(t);Xl(e),Xl(t);let o=n.parse(e),a=r.parse(t);n===Zl&&(o=ql(o),n=Ul),r===Zl&&(a=ql(a),r=Ul);const i=Object.assign({},o);return e=>{for(const t in i)"alpha"!==t&&(i[t]=Wl(o[t],a[t],e));return i.alpha=jl(o.alpha,a.alpha,e),n.transform(i)}},Kl={test:e=>Ul.test(e)||zl.test(e)||Zl.test(e),parse:e=>Ul.test(e)?Ul.parse(e):Zl.test(e)?Zl.parse(e):zl.parse(e),transform:e=>os(e)?e:e.hasOwnProperty("red")?Ul.transform(e):Zl.transform(e)},Ql="${c}",eu="${n}";function tu(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(ns);r&&(n=r.length,e=e.replace(ns,Ql),t.push(...r.map(Kl.parse)));const o=e.match(ts);return o&&(e=e.replace(ts,eu),t.push(...o.map(fs.parse))),{values:t,numColors:n,tokenised:e}}function nu(e){return tu(e).values}function ru(e){const{values:t,numColors:n,tokenised:r}=tu(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?Ql:eu,r<n?Kl.transform(e[r]):es(e[r]));return t}}const ou=e=>"number"==typeof e?0:e,au={test:function(e){var t,n,r,o;return isNaN(e)&&os(e)&&(null!==(n=null===(t=e.match(ts))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(ns))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:nu,createTransformer:ru,getAnimatableNone:function(e){const t=nu(e);return ru(e)(t.map(ou))}},iu=e=>"number"==typeof e;function su(e,t){return iu(e)?n=>jl(e,t,n):Kl.test(e)?Jl(e,t):du(e,t)}const lu=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>su(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},uu=(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]=su(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function cu(e){const t=au.parse(e),n=t.length;let r=0,o=0,a=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?a++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:a}}const du=(e,t)=>{const n=au.createTransformer(t),r=cu(e),o=cu(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?vl(lu(r.parsed,o.parsed),n):n=>`${n>0?t:e}`},fu=(e,t)=>n=>jl(e,t,n);function pu(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;t.length,!r||!Array.isArray(r)||r.length,e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?fu:"string"==typeof e?Kl.test(e)?Jl:du:Array.isArray(e)?lu:"object"==typeof e?uu:void 0}(e[0]),a=e.length-1;for(let n=0;n<a;n++){let a=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;a=vl(e,a)}r.push(a)}return r}(t,r,o),s=2===a?function([e,t],[n]){return r=>n(Il(e,t,r))}(e,i):function(e,t){const n=e.length,r=n-1;return o=>{let a=0,i=!1;if(o<=e[0]?i=!0:o>=e[r]&&(a=r-1,i=!0),!i){let t=1;for(;t<n&&!(e[t]>o||t===r);t++);a=t-1}const s=Il(e[a],e[a+1],o);return t[a](s)}}(e,i);return n?t=>s(Ll(e[0],e[a-1],t)):s}const mu=e=>t=>1-e(1-t),hu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,vu=e=>t=>t*t*((e+1)*t-e),gu=e=>e,yu=(2,e=>Math.pow(e,2));const bu=mu(yu),wu=hu(yu),xu=e=>1-Math.sin(Math.acos(e)),Eu=mu(xu),Cu=hu(Eu),Su=vu(1.525),Ou=mu(Su),ku=hu(Su),Tu=(e=>{const t=vu(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Pu=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},Lu=mu(Pu);function Mu(e,t){return e.map((()=>t||wu)).splice(0,e.length-1)}function Ru({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const a={done:!1,value:e},i=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map((e=>e*t))}(r&&r.length===i.length?r:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(i),o);function l(){return pu(s,i,{ease:Array.isArray(n)?n:Mu(i,n)})}let u=l();return{next:e=>(a.value=u(e),a.done=e>=o,a),flipTarget:()=>{i.reverse(),u=l()}}}const Au={keyframes:Ru,spring:Vl,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:a}){const i={done:!1,value:t};let s=n*e;const l=t+s,u=void 0===a?l:a(l);return u!==l&&(s=u-t),{next:e=>{const t=-s*Math.exp(-e/r);return i.done=!(t>o||t<-o),i.value=i.done?u:u+t,i},flipTarget:()=>{}}}};function Nu(e,t,n=0){return e-t-n}const Vu=e=>{const t=({delta:t})=>e(t);return{start:()=>Qa.update(t,!0),stop:()=>Wa.update(t)}};function Du(e){var t,n,{from:r,autoplay:o=!0,driver:a=Vu,elapsed:i=0,repeat:s=0,repeatType:l="loop",repeatDelay:u=0,onPlay:c,onStop:d,onComplete:f,onRepeat:p,onUpdate:m}=e,h=Na(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let v,g,y,{to:b}=h,w=0,x=h.duration,E=!1,C=!0;const S=function(e){if(Array.isArray(e.to))return Ru;if(Au[e.type])return Au[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?Ru:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Vl:Ru}(h);(null===(n=(t=S).needsInterpolation)||void 0===n?void 0:n.call(t,r,b))&&(y=pu([0,100],[r,b],{clamp:!1}),r=0,b=100);const O=S(Object.assign(Object.assign({},h),{from:r,to:b}));return o&&(null==c||c(),v=a((function(e){if(C||(e=-e),i+=e,!E){const e=O.next(Math.max(0,i));g=e.value,y&&(g=y(g)),E=C?e.done:i<=0}null==m||m(g),E&&(0===w&&(null!=x||(x=i)),w<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(i,x,u,C)&&(w++,"reverse"===l?(C=w%2==0,i=function(e,t,n=0,r=!0){return r?Nu(t+-e,t,n):t-(e-t)+n}(i,x,u,C)):(i=Nu(i,x,u),"mirror"===l&&O.flipTarget()),E=!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 ju=function(e){return 1e3*e};const Fu=(e,t)=>1-3*t+3*e,_u=(e,t)=>3*t-6*e,Hu=e=>3*e,Bu=(e,t,n)=>((Fu(t,n)*e+_u(t,n))*e+Hu(t))*e,Uu=(e,t,n)=>3*Fu(t,n)*e*e+2*_u(t,n)*e+Hu(t),zu=.1;function Zu(e,t,n,r){if(e===t&&n===r)return gu;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=Bu(t*zu,e,n);return a=>0===a||1===a?a:Bu(function(t){let r=0,a=1;for(;10!==a&&o[a]<=t;++a)r+=zu;--a;const i=r+(t-o[a])/(o[a+1]-o[a])*zu,s=Uu(i,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=Uu(t,n,r);if(0===o)return t;t-=(Bu(t,n,r)-e)/o}return t}(t,i,e,n):0===s?i:function(e,t,n,r,o){let a,i,s=0;do{i=t+(n-t)/2,a=Bu(i,r,o)-e,a>0?n=i:t=i}while(Math.abs(a)>1e-7&&++s<10);return i}(t,r,r+zu,e,n)}(a),t,r)}var $u={linear:gu,easeIn:yu,easeInOut:wu,easeOut:bu,circIn:xu,circInOut:Cu,circOut:Eu,backIn:Su,backInOut:ku,backOut:Ou,anticipate:Tu,bounceIn:Lu,bounceInOut:e=>e<.5?.5*(1-Pu(1-2*e)):.5*Pu(2*e-1)+.5,bounceOut:Pu},qu=function(e){if(Array.isArray(e)){e.length;var t=Va(e,4);return Zu(t[0],t[1],t[2],t[3])}return"string"==typeof e?("Invalid easing type '".concat(e,"'"),$u[e]):e},Wu=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!au.test(t)||t.startsWith("url(")))},Yu=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Gu=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},Xu=function(){return{type:"keyframes",ease:"linear",duration:.3}},Ju=function(e){return{type:"keyframes",duration:.8,values:e}},Ku={x:Yu,y:Yu,z:Yu,rotate:Yu,rotateX:Yu,rotateY:Yu,rotateZ:Yu,scaleX:Gu,scaleY:Gu,scale:Gu,opacity:Xu,backgroundColor:Xu,color:Xu,default:Gu};const Qu=new Set(["brightness","contrast","saturate","opacity"]);function ec(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(ts)||[];if(!r)return e;const o=n.replace(r,"");let a=Qu.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const tc=/([a-z-]*)\(.*?\)/g,nc=Object.assign(Object.assign({},au),{getAnimatableNone:e=>{const t=e.match(tc);return t?t.map(ec).join(" "):e}});var rc=Aa(Aa({},vs),{color:Kl,backgroundColor:Kl,outlineColor:Kl,fill:Kl,stroke:Kl,borderColor:Kl,borderTopColor:Kl,borderRightColor:Kl,borderBottomColor:Kl,borderLeftColor:Kl,filter:nc,WebkitFilter:nc}),oc=function(e){return rc[e]};function ac(e,t){var n,r=oc(e);return r!==nc&&(r=au),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}function ic(e,t,n){var r,o,a,i;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=Da([],Va(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=Na(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Aa(Aa({},e),(o=n,a=t.to,i=_s(a)?Ju:Ku[o]||Ku.default,Aa({to:a},i(a))))),Aa(Aa({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,a=e.loop,i=Na(e,["ease","times","yoyo","flip","loop"]),s=Aa({},i);return n&&(s.offset=n),i.duration&&(s.duration=ju(i.duration)),i.repeatDelay&&(s.repeatDelay=ju(i.repeatDelay)),t&&(s.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(qu):qu(t)),"tween"===i.type&&(s.type="keyframes"),(r||a||o)&&(r?s.repeatType="reverse":a?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=a||r||o||i.repeat),"spring"!==i.type&&(s.type="keyframes"),s}(e))}function sc(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function lc(e){return"number"==typeof e?0:ac("",e)}function uc(e,t){return e[t]||e.default||e}function cc(e,t,n,r){return void 0===r&&(r={}),t.start((function(o){var a,i,s=function(e,t,n,r,o){var a,i=uc(r,e),s=null!==(a=i.from)&&void 0!==a?a:t.get(),l=Wu(e,n);"none"===s&&l&&"string"==typeof n?s=ac(e,n):sc(s)&&"string"==typeof n?s=lc(n):!Array.isArray(n)&&sc(n)&&"string"==typeof s&&(n=lc(s));var u=Wu(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!==i.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:a=750,bounceStiffness:i=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=Du(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:i,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 i=v(r),s=i===n?-1:1;let c,d;const f=e=>{c=d,d=e,t=Iu(e-c,Ka().delta),(1===s&&e>i||-1===s&&e<i)&&y({from:e,to:i,velocity:t})};g({type:"decay",from:e,velocity:t,timeConstant:a,power:o,restDelta:l,modifyTarget:u,onUpdate:h(r)?f:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(Aa(Aa({},r),i)):Du(Aa(Aa({},ic(i,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;r.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e,r,a=Hs(n);return t.set(a),o(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,a),null===(r=null==i?void 0:i.onComplete)||void 0===r||r.call(i),{stop:function(){}}}}(e,t,n,r,o),l=function(e,t){var n,r;return null!==(r=null!==(n=(uc(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),u=function(){return i=s()};return l?a=window.setTimeout(u,ju(l)):u(),function(){clearTimeout(a),null==i||i.stop()}}))}var dc=function(e){return/^\-?\d*\.?\d+$/.test(e)},fc=function(e){return/^0[^.\s]+$/.test(e)};function pc(e,t){-1===e.indexOf(t)&&e.push(t)}function mc(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var hc=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return pc(this.subscriptions,e),function(){return mc(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 a=this.subscriptions[o];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),vc=function(){function e(e){var t,n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new hc,this.velocityUpdateSubscribers=new hc,this.renderSubscribers=new hc,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=Ka(),o=r.delta,a=r.timestamp;n.lastUpdated!==a&&(n.timeDelta=o,n.lastUpdated=a,Qa.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 Qa.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 gc(e){return new vc(e)}var yc=function(e){return function(t){return t.test(e)}},bc=[fs,ls,ss,is,cs,us,{test:function(e){return"auto"===e},parse:function(e){return e}}],wc=function(e){return bc.find(yc(e))},xc=Da(Da([],Va(bc),!1),[Kl,au],!1),Ec=function(e){return xc.find(yc(e))};function Cc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,gc(n))}function Sc(e,t){if(t)return(t[e]||t.default||t).from}function Oc(e,t,n){var r;void 0===n&&(n={});var o=Pi(e,t,n.custom),a=(o||{}).transition,i=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(i=n.transitionOverride);var s=o?function(){return kc(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=i.delayChildren,a=void 0===o?0:o,s=i.staggerChildren,l=i.staggerDirection;return function(e,t,n,r,o,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=1);var i=[],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(Tc).forEach((function(e,r){i.push(Oc(e,t,Aa(Aa({},a),{delay:n+l(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(i)}(e,t,a+r,s,l,n)}:function(){return Promise.resolve()},u=i.when;if(u){var c=Va("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 kc(e,t,n){var r,o=void 0===n?{}:n,a=o.delay,i=void 0===a?0:a,s=o.transitionOverride,l=o.type,u=e.makeTargetAnimatable(t),c=u.transition,d=void 0===c?e.getDefaultTransition():c,f=u.transitionEnd,p=Na(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&&Pc(h,v))){var b=Aa({delay:i},d);e.shouldReduceMotion&&$i(v)&&(b=Aa(Aa({},b),{type:!1,delay:0}));var w=cc(v,g,y,b);m.push(w)}}return Promise.all(m).then((function(){f&&function(e,t){var n=Pi(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,a=void 0===o?{}:o;r.transition;var i=Na(r,["transitionEnd","transition"]);for(var s in i=Aa(Aa({},i),a))Cc(e,s,Hs(i[s]))}(e,f)}))}function Tc(e,t){return e.sortNodePosition(t)}function Pc(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var Lc=[$s.Animate,$s.InView,$s.Focus,$s.Hover,$s.Tap,$s.Drag,$s.Exit],Mc=Da([],Va(Lc),!1).reverse(),Rc=Lc.length;function Ac(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 Oc(e,t,n)}));r=Promise.all(o)}else if("string"==typeof t)r=Oc(e,t,n);else{var a="function"==typeof t?Pi(e,t,n.custom):t;r=kc(e,a,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),n=function(){var e;return(e={})[$s.Animate]=Nc(!0),e[$s.InView]=Nc(),e[$s.Hover]=Nc(),e[$s.Tap]=Nc(),e[$s.Drag]=Nc(),e[$s.Focus]=Nc(),e[$s.Exit]=Nc(),e}(),r={},o=!0,a=function(t,n){var r=Pi(e,n);if(r){r.transition;var o=r.transitionEnd,a=Na(r,["transition","transitionEnd"]);t=Aa(Aa(Aa({},t),a),o)}return t};function i(i,s){for(var l,u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],f=new Set,p={},m=1/0,h=function(t){var r=Mc[t],h=n[r],v=null!==(l=u[r])&&void 0!==l?l:c[r],g=ki(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=Aa({},p),!h.isActive&&null===y||!v&&!h.prevProp||Fs(v)||"boolean"==typeof v)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!Oi(t)&&!Pl(t,e)}(h.prevProp,v),x=w||r===s&&h.isActive&&!b&&g||t>m&&g,E=Array.isArray(v)?v:[v],C=E.reduce(a,{});!1===y&&(C={});var S=h.prevResolvedValues,O=void 0===S?{}:S,k=Aa(Aa({},O),C),T=function(e){x=!0,f.delete(e),h.needsAnimating[e]=!0};for(var P in k){var L=C[P],M=O[P];p.hasOwnProperty(P)||(L!==M?_s(L)&&_s(M)?!Pl(L,M)||w?T(P):h.protectedKeys[P]=!0:void 0!==L?T(P):f.add(P):void 0!==L&&f.has(P)?T(P):h.protectedKeys[P]=!0)}h.prevProp=v,h.prevResolvedValues=C,h.isActive&&(p=Aa(Aa({},p),C)),o&&e.blockInitialAnimation&&(x=!1),x&&!b&&d.push.apply(d,Da([],Va(E.map((function(e){return{animation:e,options:Aa({type:r},i)}}))),!1))},v=0;v<Rc;v++)h(v);if(r=Aa({},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:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;var s=i(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 Vc={animation:Ol((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=Ac(t)),Fs(n)&&(0,o.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:Ol((function(e){var t=e.custom,n=e.visualElement,r=Va(Tl(),2),a=r[0],i=r[1],s=(0,o.useContext)(ri);(0,o.useEffect)((function(){var e,r;n.isPresent=a;var o=null===(e=n.animationState)||void 0===e?void 0:e.setActive($s.Exit,!a,{custom:null!==(r=null==s?void 0:s.custom)&&void 0!==r?r:t});!a&&(null==o||o.then(i))}),[a])}))};const Dc=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Ic=e=>Dc(e)&&e.hasOwnProperty("z"),jc=(e,t)=>Math.abs(e-t);function Fc(e,t){if(iu(e)&&iu(t))return jc(e,t);if(Dc(e)&&Dc(t)){const n=jc(e.x,t.x),r=jc(e.y,t.y),o=Ic(e)&&Ic(t)?jc(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var _c=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=Uc(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=Fc(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=Ka().timestamp;r.history.push(Aa(Aa({},o),{timestamp:a}));var i=r.handlers,s=i.onStart,l=i.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=Hc(t,r.transformPagePoint),Xs(e)&&0===e.buttons?r.handlePointerUp(e,t):Qa.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,a=n.onSessionEnd,i=Uc(Hc(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,i),a&&a(e,i)},!(Js(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Hc(tl(e),this.transformPagePoint),i=a.point,s=Ka().timestamp;this.history=[Aa(Aa({},i),{timestamp:s})];var l=t.onSessionStart;l&&l(e,Uc(a,this.history)),this.removeListeners=vl(il(window,"pointermove",this.handlePointerMove),il(window,"pointerup",this.handlePointerUp),il(window,"pointercancel",this.handlePointerUp))}}return e.prototy
|