Version Description
- 2022-06-09 =
- Add API language support
- Various bug fixes and updates
Download this release
Release Info
Developer | extendify |
Plugin | Extendify — Gutenberg Patterns and Templates |
Version | 0.8.3 |
Comparing to | |
See all releases |
Code changes from version 0.8.2 to 0.8.3
- .nvmrc +1 -0
- app/Config.php +1 -1
- app/Http.php +2 -0
- app/Onboarding/Admin.php +33 -1
- app/Onboarding/Controllers/DataController.php +11 -0
- config.json +3 -0
- extendify.php +1 -1
- public/build/extendify-onboarding.css +1 -1
- public/build/extendify-onboarding.js +1 -1
- public/build/extendify.css +1 -1
- readme.txt +5 -1
- routes/api.php +1 -0
- src/Library/api/axios.js +0 -1
- src/Onboarding/api/DataApi.js +1 -0
- src/Onboarding/api/WPApi.js +37 -0
- src/Onboarding/api/axios.js +12 -0
- src/Onboarding/app.css +1 -3
- src/Onboarding/components/Card.js +58 -0
- src/Onboarding/components/PagePreview.js +57 -53
- src/Onboarding/components/StyledPreview.js +55 -21
- src/Onboarding/hooks/useFetch.js +3 -3
- src/Onboarding/hooks/useIsMounted.js +20 -0
- src/Onboarding/hooks/useWarnOnLeave.js +16 -0
- src/Onboarding/layouts/PageLayout.js +1 -1
- src/Onboarding/lib/pages.js +22 -8
- src/Onboarding/lib/util.js +12 -0
- src/Onboarding/pages/CreatingSite.js +14 -5
- src/Onboarding/pages/Goals.js +31 -26
- src/Onboarding/pages/Landing.js +2 -1
- src/Onboarding/pages/SiteInformation.js +1 -3
- src/Onboarding/pages/SitePages.js +18 -17
- src/Onboarding/pages/SiteStyle.js +47 -45
- src/Onboarding/pages/SiteSummary.js +60 -16
- src/Onboarding/pages/SiteTypeSelect.js +2 -4
- src/Onboarding/pages/SuggestedPlugins.js +98 -0
- src/Onboarding/state/UserSelections.js +13 -31
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +3 -3
.nvmrc
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
14.18
|
app/Config.php
CHANGED
@@ -121,7 +121,7 @@ class Config
|
|
121 |
}
|
122 |
|
123 |
/**
|
124 |
-
*
|
125 |
*
|
126 |
* @return boolean
|
127 |
*/
|
121 |
}
|
122 |
|
123 |
/**
|
124 |
+
* Conditionally load Extendify Launch.
|
125 |
*
|
126 |
* @return boolean
|
127 |
*/
|
app/Http.php
CHANGED
@@ -61,6 +61,8 @@ class Http
|
|
61 |
|
62 |
// Onboarding request.
|
63 |
$this->baseUrl = $request->get_header('x_extendify_onboarding') === 'true' ? Config::$config['api']['onboarding'] : $this->baseUrl;
|
|
|
|
|
64 |
|
65 |
$this->data = [
|
66 |
'wp_language' => \get_locale(),
|
61 |
|
62 |
// Onboarding request.
|
63 |
$this->baseUrl = $request->get_header('x_extendify_onboarding') === 'true' ? Config::$config['api']['onboarding'] : $this->baseUrl;
|
64 |
+
$this->baseUrl = $request->get_header('x_extendify_onboarding_dev_mode') === 'true' ? Config::$config['api']['onboarding-dev'] : $this->baseUrl;
|
65 |
+
$this->baseUrl = $request->get_header('x_extendify_onboarding_local_mode') === 'true' ? Config::$config['api']['onboarding-local'] : $this->baseUrl;
|
66 |
|
67 |
$this->data = [
|
68 |
'wp_language' => \get_locale(),
|
app/Onboarding/Admin.php
CHANGED
@@ -27,6 +27,7 @@ class Admin
|
|
27 |
*/
|
28 |
public function __construct()
|
29 |
{
|
|
|
30 |
if (!Config::$showOnboarding) {
|
31 |
return;
|
32 |
}
|
@@ -38,6 +39,7 @@ class Admin
|
|
38 |
self::$instance = $this;
|
39 |
$this->loadScripts();
|
40 |
$this->addAdminMenu();
|
|
|
41 |
}
|
42 |
|
43 |
/**
|
@@ -72,12 +74,42 @@ class Admin
|
|
72 |
{
|
73 |
\add_action('admin_menu', function () {
|
74 |
if (Config::$environment === 'DEVELOPMENT' || Config::$showOnboarding) {
|
75 |
-
\add_submenu_page('extendify', 'Welcome', 'Welcome', Config::$requiredCapability, 'extendify', '', 400);
|
76 |
\add_submenu_page('extendify', 'Extendify Launch', 'Extendify Launch', Config::$requiredCapability, 'post-new.php?extendify=onboarding', '', 500);
|
77 |
}
|
78 |
});
|
79 |
}
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
/**
|
82 |
* Makes sure we are on the correct page
|
83 |
*
|
27 |
*/
|
28 |
public function __construct()
|
29 |
{
|
30 |
+
// Whether to load Extendify Launch or not.
|
31 |
if (!Config::$showOnboarding) {
|
32 |
return;
|
33 |
}
|
39 |
self::$instance = $this;
|
40 |
$this->loadScripts();
|
41 |
$this->addAdminMenu();
|
42 |
+
$this->redirectOnLogin();
|
43 |
}
|
44 |
|
45 |
/**
|
74 |
{
|
75 |
\add_action('admin_menu', function () {
|
76 |
if (Config::$environment === 'DEVELOPMENT' || Config::$showOnboarding) {
|
77 |
+
\add_submenu_page('extendify', \__('Welcome', 'extendify'), \__('Welcome', 'extendify'), Config::$requiredCapability, 'extendify', '', 400);
|
78 |
\add_submenu_page('extendify', 'Extendify Launch', 'Extendify Launch', Config::$requiredCapability, 'post-new.php?extendify=onboarding', '', 500);
|
79 |
}
|
80 |
});
|
81 |
}
|
82 |
|
83 |
+
/**
|
84 |
+
* Always redirect to Extendify Launch on login unless onboarding has been previously completed or skipped.
|
85 |
+
*
|
86 |
+
* Applies to the main admin account, whose email matches the entry in WP Admin > Settings > General.
|
87 |
+
*
|
88 |
+
* @return void
|
89 |
+
*/
|
90 |
+
public function redirectOnLogin()
|
91 |
+
{
|
92 |
+
// phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter
|
93 |
+
\add_filter('login_redirect', function ($location, $request, $user) {
|
94 |
+
// Don't redirect if Launch previously completed, or user skipped to WP admin.
|
95 |
+
if (get_option('extendify_onboarding_skipped', 0) || get_option('extendify_onboarding_completed', 0)) {
|
96 |
+
return $location;
|
97 |
+
}
|
98 |
+
|
99 |
+
// Redirect to Extendify Launch if user is admin, and their email matches the entry in general settings.
|
100 |
+
if (is_object($user) && isset($user->data->user_email)) {
|
101 |
+
$loginEmail = $user->data->user_email;
|
102 |
+
$adminEmail = \get_option('admin_email');
|
103 |
+
if ($loginEmail === $adminEmail && (isset($user->roles) && is_array($user->roles))) {
|
104 |
+
return in_array('administrator', $user->roles, true) ? admin_url() . 'post-new.php?extendify=onboarding' : $location;
|
105 |
+
}
|
106 |
+
}
|
107 |
+
|
108 |
+
// Redirect as normal.
|
109 |
+
return $location;
|
110 |
+
}, 10, 3);
|
111 |
+
}
|
112 |
+
|
113 |
/**
|
114 |
* Makes sure we are on the correct page
|
115 |
*
|
app/Onboarding/Controllers/DataController.php
CHANGED
@@ -78,6 +78,17 @@ class DataController
|
|
78 |
return new \WP_REST_Response($response);
|
79 |
}
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
/**
|
82 |
* Send data about the order.
|
83 |
*
|
78 |
return new \WP_REST_Response($response);
|
79 |
}
|
80 |
|
81 |
+
/**
|
82 |
+
* Get Goals information.
|
83 |
+
*
|
84 |
+
* @return \WP_REST_Response
|
85 |
+
*/
|
86 |
+
public static function getSuggestedPlugins()
|
87 |
+
{
|
88 |
+
$response = Http::get('/suggested-plugins');
|
89 |
+
return new \WP_REST_Response($response);
|
90 |
+
}
|
91 |
+
|
92 |
/**
|
93 |
* Send data about the order.
|
94 |
*
|
config.json
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
{
|
2 |
"api": {
|
3 |
"onboarding": "https://dashboard.extendify.com/api/onboarding",
|
|
|
|
|
|
|
4 |
"live": "https://dashboard.extendify.com/api",
|
5 |
"dev": "https://testing.extendify.com/api",
|
6 |
"local": "http://templates.test/api"
|
1 |
{
|
2 |
"api": {
|
3 |
"onboarding": "https://dashboard.extendify.com/api/onboarding",
|
4 |
+
"onboarding-dev": "https://testing.extendify.com/api/onboarding",
|
5 |
+
"onboarding-local": "http://templates.test/api/onboarding",
|
6 |
+
|
7 |
"live": "https://dashboard.extendify.com/api",
|
8 |
"dev": "https://testing.extendify.com/api",
|
9 |
"local": "http://templates.test/api"
|
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: 0.8.
|
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: 0.8.3
|
9 |
* License: GPL-2.0-or-later
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
* Text Domain: extendify
|
public/build/extendify-onboarding.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
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 .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:-webkit-sticky!important;position:sticky!important}div.extendify-onboarding .inset-0{bottom:0!important;left:0!important;right:0!important;top:0!important}div.extendify-onboarding .top-0{top:0!important}div.extendify-onboarding .top-2{top:.5rem!important}div.extendify-onboarding .top-4{top:1rem!important}div.extendify-onboarding .-top-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{left:0!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-8{margin:2rem!important}div.extendify-onboarding .m-auto{margin:auto!important}div.extendify-onboarding .-m-2{margin:-.5rem!important}div.extendify-onboarding .mx-1{margin-left:.25rem!important;margin-right:.25rem!important}div.extendify-onboarding .mx-6{margin-left:1.5rem!important;margin-right:1.5rem!important}div.extendify-onboarding .mx-auto{margin-left:auto!important;margin-right:auto!important}div.extendify-onboarding .-mx-4{margin-left:-1rem!important;margin-right:-1rem!important}div.extendify-onboarding .my-0{margin-bottom:0!important;margin-top:0!important}div.extendify-onboarding .my-px{margin-bottom:1px!important;margin-top:1px!important}div.extendify-onboarding .mt-0{margin-top:0!important}div.extendify-onboarding .mt-2{margin-top:.5rem!important}div.extendify-onboarding .mt-4{margin-top:1rem!important}div.extendify-onboarding .mt-8{margin-top:2rem!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-6{margin-right:1.5rem!important}div.extendify-onboarding .-mr-1{margin-right:-.25rem!important}div.extendify-onboarding .-mr-1\.5{margin-right:-.375rem!important}div.extendify-onboarding .mb-0{margin-bottom:0!important}div.extendify-onboarding .mb-1{margin-bottom:.25rem!important}div.extendify-onboarding .mb-2{margin-bottom:.5rem!important}div.extendify-onboarding .mb-3{margin-bottom:.75rem!important}div.extendify-onboarding .mb-4{margin-bottom:1rem!important}div.extendify-onboarding .mb-5{margin-bottom:1.25rem!important}div.extendify-onboarding .mb-8{margin-bottom:2rem!important}div.extendify-onboarding .mb-10{margin-bottom:2.5rem!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-12{margin-left:3rem!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-8{height:2rem!important}div.extendify-onboarding .h-12{height:3rem!important}div.extendify-onboarding .h-64{height:16rem!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 .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-6{width:1.5rem!important}div.extendify-onboarding .w-8{width:2rem!important}div.extendify-onboarding .w-10{width:2.5rem!important}div.extendify-onboarding .w-16{width:4rem!important}div.extendify-onboarding .w-20{width:5rem!important}div.extendify-onboarding .w-28{width:7rem!important}div.extendify-onboarding .w-32{width:8rem!important}div.extendify-onboarding .w-72{width:18rem!important}div.extendify-onboarding .w-80{width:20rem!important}div.extendify-onboarding .w-96{width:24rem!important}div.extendify-onboarding .w-auto{width:auto!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-sm{min-width:7rem!important}div.extendify-onboarding .max-w-sm{max-width:24rem!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-2xl{max-width:42rem!important}div.extendify-onboarding .max-w-full{max-width:100%!important}div.extendify-onboarding .max-w-screen-4xl{max-width:1920px!important}div.extendify-onboarding .flex-1{flex:1 1 0%!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 .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-4{--tw-translate-y:1rem!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-pointer{cursor:pointer!important}div.extendify-onboarding .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify-onboarding .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}div.extendify-onboarding .flex-col{flex-direction:column!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 .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-4{gap:1rem!important}div.extendify-onboarding .gap-6{gap:1.5rem!important}div.extendify-onboarding .gap-8{gap:2rem!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 .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 .divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0!important;border-bottom-width:calc(1px*var(--tw-divide-y-reverse))!important;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))!important}div.extendify-onboarding .self-start{align-self:flex-start!important}div.extendify-onboarding .overflow-hidden{overflow:hidden!important}div.extendify-onboarding .overflow-y-auto{overflow-y:auto!important}div.extendify-onboarding .overflow-x-hidden{overflow-x:hidden!important}div.extendify-onboarding .whitespace-nowrap{white-space:nowrap!important}div.extendify-onboarding .rounded-sm{border-radius:.125rem!important}div.extendify-onboarding .rounded{border-radius:.25rem!important}div.extendify-onboarding .rounded-md{border-radius:.375rem!important}div.extendify-onboarding .rounded-lg{border-radius:.5rem!important}div.extendify-onboarding .rounded-full{border-radius:9999px!important}div.extendify-onboarding .rounded-tr-sm{border-top-right-radius:.125rem!important}div.extendify-onboarding .rounded-br-sm{border-bottom-right-radius:.125rem!important}div.extendify-onboarding .border-0{border-width:0!important}div.extendify-onboarding .border-2{border-width:2px!important}div.extendify-onboarding .border-8{border-width:8px!important}div.extendify-onboarding .border{border-width:1px!important}div.extendify-onboarding .border-r{border-right-width:1px!important}div.extendify-onboarding .border-b-0{border-bottom-width:0!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-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-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-600{--tw-border-opacity:1!important;border-color:rgba(148,148,148,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-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 .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-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,#007cba)!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-partner-primary-bg:hover{background-color:var(--ext-partner-theme-primary-bg,#007cba)!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-gray-100:focus{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,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 .bg-opacity-40{--tw-bg-opacity:0.4!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-8{padding-left:2rem!important;padding-right:2rem!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-16{padding-bottom:4rem!important;padding-top:4rem!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-2{padding-top:.5rem!important}div.extendify-onboarding .pt-4{padding-top:1rem!important}div.extendify-onboarding .pt-6{padding-top:1.5rem!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-8{padding-right:2rem!important}div.extendify-onboarding .pb-2{padding-bottom:.5rem!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 .pl-0{padding-left:0!important}div.extendify-onboarding .pl-2{padding-left:.5rem!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-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 .text-xss{font-size:11px!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 .italic{font-style:italic!important}div.extendify-onboarding .leading-none{line-height:1!important}div.extendify-onboarding .tracking-tight{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-800{--tw-text-opacity:1!important;color:rgba(31,41,55,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-green-500{--tw-text-opacity:1!important;color:rgba(16,185,129,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,#007cba)!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-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 .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-text:hover{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify-onboarding .hover\:text-partner-primary-bg:hover{color:var(--ext-partner-theme-primary-bg,#007cba)!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 .no-underline{text-decoration:none!important}div.extendify-onboarding .hover\:underline:hover{text-decoration:underline!important}div.extendify-onboarding .hover\:no-underline:hover{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-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-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 .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{--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}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,#007cba)!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 .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 .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,#007cba)!important}.extendify-onboarding *,.extendify-onboarding :after,.extendify-onboarding :before{border:0 solid #e5e7eb!important;box-sizing:border-box!important}.extendify-onboarding{-webkit-font-smoothing:antialiased!important}.extendify-onboarding .search-panel .icon-search{position:absolute!important;right:16px!important}.extendify-onboarding .button-focus{background-color:transparent!important;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,#007cba)!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,#007cba)!important;--tw-ring-offset-width:2px!important;--tw-ring-offset-color:#fff!important}.extendify-onboarding .button-card-wrap{display:grid!important;gap:2rem!important}@media (min-width:1080px){.extendify-onboarding .button-card-wrap{grid-template-columns:repeat(2,minmax(0,1fr))!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{-webkit-animation:extendify-loading-spinner 2.5s linear infinite;animation:extendify-loading-spinner 2.5s linear infinite}@-webkit-keyframes extendify-loading-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes extendify-loading-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.extendify-onboarding .components-checkbox-control__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 .components-checkbox-control__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,#007cba)!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 .components-checkbox-control__input[type=checkbox]:checked{background-color:var(--ext-partner-theme-primary-bg,#007cba)!important}.extendify-onboarding .goal-select .components-base-control__field{margin-bottom:0!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\: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\:w-40vw{width:40vw!important}div.extendify-onboarding .md\:max-w-2xl{max-width:42rem!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\:p-8{padding:2rem!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}}@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\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify-onboarding .lg\:overflow-hidden{overflow:hidden!important}div.extendify-onboarding .lg\:p-16{padding:4rem!important}div.extendify-onboarding .lg\:px-12{padding-left:3rem!important;padding-right:3rem!important}}
|
1 |
+
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 .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:-webkit-sticky!important;position:sticky!important}div.extendify-onboarding .inset-0{bottom:0!important;left:0!important;right:0!important;top:0!important}div.extendify-onboarding .top-0{top:0!important}div.extendify-onboarding .top-2{top:.5rem!important}div.extendify-onboarding .top-4{top:1rem!important}div.extendify-onboarding .-top-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{left:0!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-6{margin:1.5rem!important}div.extendify-onboarding .m-8{margin:2rem!important}div.extendify-onboarding .m-auto{margin:auto!important}div.extendify-onboarding .-m-2{margin:-.5rem!important}div.extendify-onboarding .-m-6{margin:-1.5rem!important}div.extendify-onboarding .-m-8{margin:-2rem!important}div.extendify-onboarding .mx-1{margin-left:.25rem!important;margin-right:.25rem!important}div.extendify-onboarding .mx-6{margin-left:1.5rem!important;margin-right:1.5rem!important}div.extendify-onboarding .mx-auto{margin-left:auto!important;margin-right:auto!important}div.extendify-onboarding .-mx-4{margin-left:-1rem!important;margin-right:-1rem!important}div.extendify-onboarding .my-0{margin-bottom:0!important;margin-top:0!important}div.extendify-onboarding .my-px{margin-bottom:1px!important;margin-top:1px!important}div.extendify-onboarding .mt-0{margin-top:0!important}div.extendify-onboarding .mt-2{margin-top:.5rem!important}div.extendify-onboarding .mt-4{margin-top:1rem!important}div.extendify-onboarding .mt-8{margin-top:2rem!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-6{margin-right:1.5rem!important}div.extendify-onboarding .-mr-1{margin-right:-.25rem!important}div.extendify-onboarding .-mr-1\.5{margin-right:-.375rem!important}div.extendify-onboarding .mb-0{margin-bottom:0!important}div.extendify-onboarding .mb-1{margin-bottom:.25rem!important}div.extendify-onboarding .mb-2{margin-bottom:.5rem!important}div.extendify-onboarding .mb-3{margin-bottom:.75rem!important}div.extendify-onboarding .mb-4{margin-bottom:1rem!important}div.extendify-onboarding .mb-5{margin-bottom:1.25rem!important}div.extendify-onboarding .mb-8{margin-bottom:2rem!important}div.extendify-onboarding .mb-10{margin-bottom:2.5rem!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-12{margin-left:3rem!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-8{height:2rem!important}div.extendify-onboarding .h-12{height:3rem!important}div.extendify-onboarding .h-32{height:8rem!important}div.extendify-onboarding .h-64{height:16rem!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 .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-6{width:1.5rem!important}div.extendify-onboarding .w-8{width:2rem!important}div.extendify-onboarding .w-10{width:2.5rem!important}div.extendify-onboarding .w-16{width:4rem!important}div.extendify-onboarding .w-20{width:5rem!important}div.extendify-onboarding .w-28{width:7rem!important}div.extendify-onboarding .w-32{width:8rem!important}div.extendify-onboarding .w-72{width:18rem!important}div.extendify-onboarding .w-80{width:20rem!important}div.extendify-onboarding .w-96{width:24rem!important}div.extendify-onboarding .w-auto{width:auto!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-sm{min-width:7rem!important}div.extendify-onboarding .max-w-sm{max-width:24rem!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-2xl{max-width:42rem!important}div.extendify-onboarding .max-w-full{max-width:100%!important}div.extendify-onboarding .max-w-screen-4xl{max-width:1920px!important}div.extendify-onboarding .flex-1{flex:1 1 0%!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 .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-4{--tw-translate-y:1rem!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-pointer{cursor:pointer!important}div.extendify-onboarding .grid-cols-3{grid-template-columns:repeat(3,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 .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-4{gap:1rem!important}div.extendify-onboarding .gap-6{gap:1.5rem!important}div.extendify-onboarding .gap-8{gap:2rem!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 .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 .divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse:0!important;border-bottom-width:calc(1px*var(--tw-divide-y-reverse))!important;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)))!important}div.extendify-onboarding .self-start{align-self:flex-start!important}div.extendify-onboarding .overflow-hidden{overflow:hidden!important}div.extendify-onboarding .overflow-y-auto{overflow-y:auto!important}div.extendify-onboarding .overflow-x-hidden{overflow-x:hidden!important}div.extendify-onboarding .whitespace-nowrap{white-space:nowrap!important}div.extendify-onboarding .rounded-sm{border-radius:.125rem!important}div.extendify-onboarding .rounded{border-radius:.25rem!important}div.extendify-onboarding .rounded-md{border-radius:.375rem!important}div.extendify-onboarding .rounded-lg{border-radius:.5rem!important}div.extendify-onboarding .rounded-full{border-radius:9999px!important}div.extendify-onboarding .rounded-tr-sm{border-top-right-radius:.125rem!important}div.extendify-onboarding .rounded-br-sm{border-bottom-right-radius:.125rem!important}div.extendify-onboarding .border-0{border-width:0!important}div.extendify-onboarding .border-2{border-width:2px!important}div.extendify-onboarding .border-8{border-width:8px!important}div.extendify-onboarding .border{border-width:1px!important}div.extendify-onboarding .border-r{border-right-width:1px!important}div.extendify-onboarding .border-b-0{border-bottom-width:0!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-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-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-600{--tw-border-opacity:1!important;border-color:rgba(148,148,148,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-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 .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-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,#007cba)!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-partner-primary-bg:hover{background-color:var(--ext-partner-theme-primary-bg,#007cba)!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-gray-100:focus{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,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 .bg-opacity-40{--tw-bg-opacity:0.4!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-8{padding-left:2rem!important;padding-right:2rem!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-2{padding-top:.5rem!important}div.extendify-onboarding .pt-4{padding-top:1rem!important}div.extendify-onboarding .pt-6{padding-top:1.5rem!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-8{padding-right:2rem!important}div.extendify-onboarding .pb-2{padding-bottom:.5rem!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 .pl-0{padding-left:0!important}div.extendify-onboarding .pl-2{padding-left:.5rem!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-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 .text-xss{font-size:11px!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 .italic{font-style:italic!important}div.extendify-onboarding .leading-none{line-height:1!important}div.extendify-onboarding .tracking-tight{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-800{--tw-text-opacity:1!important;color:rgba(31,41,55,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-green-500{--tw-text-opacity:1!important;color:rgba(16,185,129,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,#007cba)!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-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 .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-text:hover{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify-onboarding .hover\:text-partner-primary-bg:hover{color:var(--ext-partner-theme-primary-bg,#007cba)!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 .no-underline{text-decoration:none!important}div.extendify-onboarding .hover\:underline:hover{text-decoration:underline!important}div.extendify-onboarding .hover\:no-underline:hover{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-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-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 .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{--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}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,#007cba)!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 .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 .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,#007cba)!important}.extendify-onboarding *,.extendify-onboarding :after,.extendify-onboarding :before{border:0 solid #e5e7eb!important;box-sizing:border-box!important}.extendify-onboarding{-webkit-font-smoothing:antialiased!important}.extendify-onboarding .search-panel .icon-search{position:absolute!important;right:16px!important}.extendify-onboarding .button-focus{background-color:transparent!important;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,#007cba)!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,#007cba)!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{-webkit-animation:extendify-loading-spinner 2.5s linear infinite;animation:extendify-loading-spinner 2.5s linear infinite}@-webkit-keyframes extendify-loading-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes extendify-loading-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.extendify-onboarding .components-checkbox-control__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 .components-checkbox-control__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,#007cba)!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 .components-checkbox-control__input[type=checkbox]:checked{background-color:var(--ext-partner-theme-primary-bg,#007cba)!important}.extendify-onboarding .goal-select .components-base-control__field{margin-bottom:0!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\: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\:w-40vw{width:40vw!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\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!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\:p-8{padding:2rem!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}}@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\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify-onboarding .lg\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(2rem*var(--tw-space-x-reverse))!important}div.extendify-onboarding .lg\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(0px*var(--tw-space-y-reverse))!important;margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))!important}div.extendify-onboarding .lg\:overflow-hidden{overflow:hidden!important}div.extendify-onboarding .lg\:p-16{padding:4rem!important}div.extendify-onboarding .lg\:px-12{padding-left:3rem!important;padding-right:3rem!important}}
|
public/build/extendify-onboarding.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
/*! For license information please see extendify-onboarding.js.LICENSE.txt */
|
2 |
-
(()=>{var e={7135:(e,t,r)=>{e.exports=r(6248)},4206:(e,t,r)=>{e.exports=r(8057)},4387:(e,t,r)=>{"use strict";var n=r(7485),o=r(4570),i=r(2940),a=r(581),s=r(574),u=r(3845),c=r(8338),l=r(4832),f=r(7354),d=r(8870),h=r(4906);e.exports=function(e){return new Promise((function(t,r){var p,y=e.data,v=e.headers,m=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}n.isFormData(y)&&n.isStandardBrowserEnv()&&delete v["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(w+":"+x)}var j=s(e.baseURL,e.url);function O(){if(b){var n="getAllResponseHeaders"in b?u(b.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:e,request:b};o((function(e){t(e),g()}),(function(e){r(e),g()}),i),b=null}}if(b.open(e.method.toUpperCase(),a(j,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=O:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(O)},b.onabort=function(){b&&(r(new f("Request aborted",f.ECONNABORTED,e,b)),b=null)},b.onerror=function(){r(new f("Network Error",f.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new f(t,n.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,b)),b=null},n.isStandardBrowserEnv()){var E=(e.withCredentials||c(j))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;E&&(v[e.xsrfHeaderName]=E)}"setRequestHeader"in b&&n.forEach(v,(function(e,t){void 0===y&&"content-type"===t.toLowerCase()?delete v[t]:b.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),m&&"json"!==m&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(r(!e||e&&e.type?new d:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),y||(y=null);var S=h(j);S&&-1===["http","https","file"].indexOf(S)?r(new f("Unsupported protocol "+S+":",f.ERR_BAD_REQUEST,e)):b.send(y)}))}},8057:(e,t,r)=>{"use strict";var n=r(7485),o=r(875),i=r(5029),a=r(4941);var s=function e(t){var r=new i(t),s=o(i.prototype.request,r);return n.extend(s,i.prototype,r),n.extend(s,r),s.create=function(r){return e(a(t,r))},s}(r(8396));s.Axios=i,s.CanceledError=r(8870),s.CancelToken=r(4603),s.isCancel=r(1475),s.VERSION=r(3345).version,s.toFormData=r(1020),s.AxiosError=r(7354),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=r(5739),s.isAxiosError=r(5835),e.exports=s,e.exports.default=s},4603:(e,t,r)=>{"use strict";var n=r(8870);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},8870:(e,t,r)=>{"use strict";var n=r(7354);function o(e){n.call(this,null==e?"canceled":e,n.ERR_CANCELED),this.name="CanceledError"}r(7485).inherits(o,n,{__CANCEL__:!0}),e.exports=o},1475:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},5029:(e,t,r)=>{"use strict";var n=r(7485),o=r(581),i=r(8096),a=r(5009),s=r(4941),u=r(574),c=r(6144),l=c.validators;function f(e){this.defaults=e,this.interceptors={request:new i,response:new i}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!o){var f=[a,void 0];for(Array.prototype.unshift.apply(f,n),f=f.concat(u),i=Promise.resolve(t);f.length;)i=i.then(f.shift(),f.shift());return i}for(var d=t;n.length;){var h=n.shift(),p=n.shift();try{d=h(d)}catch(e){p(e);break}}try{i=a(d)}catch(e){return Promise.reject(e)}for(;u.length;)i=i.then(u.shift(),u.shift());return i},f.prototype.getUri=function(e){e=s(this.defaults,e);var t=u(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},n.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},7354:(e,t,r)=>{"use strict";var n=r(7485);function o(e,t,r,n,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}n.inherits(o,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}}});var i=o.prototype,a={};["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"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,r,a,s,u){var c=Object.create(i);return n.toFlatObject(e,c,(function(e){return e!==Error.prototype})),o.call(c,e.message,t,r,a,s),c.name=e.name,u&&Object.assign(c,u),c},e.exports=o},8096:(e,t,r)=>{"use strict";var n=r(7485);function o(){this.handlers=[]}o.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},574:(e,t,r)=>{"use strict";var n=r(2642),o=r(2288);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},5009:(e,t,r)=>{"use strict";var n=r(7485),o=r(9212),i=r(1475),a=r(8396),s=r(8870);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4941:(e,t,r)=>{"use strict";var n=r(7485);e.exports=function(e,t){t=t||{};var r={};function o(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function i(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(e[r],t[r])}function a(e){if(!n.isUndefined(t[e]))return o(void 0,t[e])}function s(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(void 0,t[r])}function u(r){return r in t?o(e[r],t[r]):r in e?o(void 0,e[r]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,o=t(e);n.isUndefined(o)&&t!==u||(r[e]=o)})),r}},4570:(e,t,r)=>{"use strict";var n=r(7354);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(new n("Request failed with status code "+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}},9212:(e,t,r)=>{"use strict";var n=r(7485),o=r(8396);e.exports=function(e,t,r){var i=this||o;return n.forEach(r,(function(r){e=r.call(i,e,t)})),e}},8396:(e,t,r)=>{"use strict";var n=r(7061),o=r(7485),i=r(1446),a=r(7354),s=r(4832),u=r(1020),c={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var f,d={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==n&&"[object process]"===Object.prototype.toString.call(n))&&(f=r(4387)),f),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))return e;if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,n=o.isObject(e),a=t&&t["Content-Type"];if((r=o.isFileList(e))||n&&"multipart/form-data"===a){var s=this.env&&this.env.FormData;return u(r?{"files[]":e}:e,s&&new s)}return n||"application/json"===a?(l(t,"application/json"),function(e,t,r){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a.from(e,a.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:r(8750)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){d.headers[e]=o.merge(c)})),e.exports=d},4832:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},3345:e=>{e.exports={version:"0.27.2"}},875:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},581:(e,t,r)=>{"use strict";var n=r(7485);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},2288:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2940:(e,t,r)=>{"use strict";var n=r(7485);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var 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(){}}},2642:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5835:(e,t,r)=>{"use strict";var n=r(7485);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},8338:(e,t,r)=>{"use strict";var n=r(7485);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},1446:(e,t,r)=>{"use strict";var n=r(7485);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},8750:e=>{e.exports=null},3845:(e,t,r)=>{"use strict";var n=r(7485),o=["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"];e.exports=function(e){var t,r,i,a={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},4906:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},5739:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1020:(e,t,r)=>{"use strict";var n=r(816).Buffer,o=r(7485);e.exports=function(e,t){t=t||new FormData;var r=[];function i(e){return null===e?"":o.isDate(e)?e.toISOString():o.isArrayBuffer(e)||o.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):n.from(e):e}return function e(n,a){if(o.isPlainObject(n)||o.isArray(n)){if(-1!==r.indexOf(n))throw Error("Circular reference detected in "+a);r.push(n),o.forEach(n,(function(r,n){if(!o.isUndefined(r)){var s,u=a?a+"."+n:n;if(r&&!a&&"object"==typeof r)if(o.endsWith(n,"{}"))r=JSON.stringify(r);else if(o.endsWith(n,"[]")&&(s=o.toArray(r)))return void s.forEach((function(e){!o.isUndefined(e)&&t.append(u,i(e))}));e(r,u)}})),r.pop()}else t.append(a,i(n))}(e),t}},6144:(e,t,r)=>{"use strict";var n=r(3345).version,o=r(7354),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,r){function i(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new o(i(n," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),i=n.length;i-- >0;){var a=n[i],s=t[a];if(s){var u=e[a],c=void 0===u||s(u,a,e);if(!0!==c)throw new o("option "+a+" must be "+c,o.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},7485:(e,t,r)=>{"use strict";var n,o=r(875),i=Object.prototype.toString,a=(n=Object.create(null),function(e){var t=i.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var l=s("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=s("Date"),p=s("File"),y=s("Blob"),v=s("FileList");function m(e){return"[object Function]"===i.call(e)}var g=s("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var w,x=(w="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return w&&e instanceof w});e.exports={isArray:u,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||m(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:d,isUndefined:c,isDate:h,isFile:p,isBlob:y,isFunction:m,isStream:function(e){return f(e)&&m(e.pipe)},isURLSearchParams:g,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:b,merge:function e(){var t={};function r(r,n){d(t[n])&&d(r)?t[n]=e(t[n],r):d(r)?t[n]=e({},r):u(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)b(arguments[n],r);return t},extend:function(e,t,r){return b(t,(function(t,n){e[n]=r&&"function"==typeof t?o(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r){var n,o,i,a={};t=t||{};do{for(o=(n=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=n[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:x,isFileList:v}},4782:(e,t)=>{"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=u(e),a=i[0],s=i[1],c=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),l=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t);1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=16383,s=0,u=n-o;s<u;s+=a)i.push(c(e,s,s+a>u?u:s+a));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var o,i,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},816:(e,t,r)=>{"use strict";var n=r(4782),o=r(8898),i=r(5182);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,r)}function c(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=d(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(t,r),o=(e=s(e,n)).write(t,r);o!==n&&(e=e.slice(0,o));return e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|h(t.length);return 0===(e=s(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?s(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=s(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function d(e,t){var r=t.length<0?0:0|h(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(n)return H(e).length;t=(""+t).toLowerCase(),n=!0}}function y(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return A(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,n,o){var i,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=r;i<s;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var f=!0,d=0;d<u;d++)if(c(e,i+d)!==c(t,d)){f=!1;break}if(f)return i}return-1}function b(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function w(e,t,r,n){return Y(H(t,e.length-r),e,r,n)}function x(e,t,r,n){return Y(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function j(e,t,r,n){return x(e,t,r,n)}function O(e,t,r,n){return Y(V(t),e,r,n)}function E(e,t,r,n){return Y(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,u,c=e[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=P));return r}(n)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==r.g.TYPED_ARRAY_SUPPORT?r.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return c(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return l(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var a=e[r];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?_(this,0,e):y.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(n,o),l=e.slice(t,r),f=0;f<s;++f)if(c[f]!==l[f]){i=c[f],a=l[f];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":return x(this,e,t,r);case"latin1":case"binary":return j(this,e,t,r);case"base64":return O(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function C(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function A(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function N(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=F(e[i]);return o}function T(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function R(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,r,n,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function L(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function I(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function D(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(e,t,r,n,i){return i||D(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,i){return i||D(e,0,r,8),o.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;r=new u(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},u.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||k(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||k(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);k(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);k(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=u.isBuffer(e)?e:H(new u(e,n).toString()),s=a.length;for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function V(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}},42:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&e.push(a)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},8898:(e,t)=>{t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,c=u>>1,l=-7,f=r?o-1:0,d=r?-1:1,h=e[t+f];for(f+=d,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,p=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[r+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*y}},5182:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},2525:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,u=o(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))r.call(a,l)&&(u[l]=a[l]);if(t){s=t(a);for(var f=0;f<s.length;f++)n.call(a,s[f])&&(u[s[f]]=a[s[f]])}}return u}},7061:e=>{var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s,u=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&d())}function d(){if(!c){var e=a(f);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new h(e,t)),1!==u.length||c||a(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},1426:(e,t,r)=>{"use strict";r(2525);var n=r(7363),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,i={},c=null,l=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,n)&&!u.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:l,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},4246:(e,t,r)=>{"use strict";e.exports=r(1426)},6248:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(e,t,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return N()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=l(e,t,r);if("normal"===u.type){if(n=r.done?p:d,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(e,r,a),i}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",y={};function v(){}function m(){}function g(){}var b={};u(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(A([])));x&&x!==r&&n.call(x,i)&&(b=x);var j=g.prototype=v.prototype=Object.create(b);function O(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(o,i,a,s){var u=l(e[o],e,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function S(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function A(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:N}}function N(){return{value:t,done:!0}}return m.prototype=g,u(j,"constructor",g),u(g,"constructor",m),m.displayName=u(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,s,"GeneratorFunction")),e.prototype=Object.create(j),e},e.awrap=function(e){return{__await:e}},O(E.prototype),u(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(j),u(j,s,"Generator"),u(j,i,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=A,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},7363:e=>{"use strict";e.exports=React}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=wp.element,t=wp.i18n;var n=r(7363);function o(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}function i(e,t){var r,n,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(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.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],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var a,s=function(){},u=s(),c=Object,l=function(e){return e===u},f=function(e){return"function"==typeof e},d=function(e,t){return c.assign({},e,t)},h="undefined",p=function(){return typeof window!=h},y=new WeakMap,v=0,m=function(e){var t,r,n=typeof e,o=e&&e.constructor,i=o==Date;if(c(e)!==e||i||o==RegExp)t=i?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=y.get(e))return t;if(t=++v+"~",y.set(e,t),o==Array){for(t="@",r=0;r<e.length;r++)t+=m(e[r])+",";y.set(e,t)}if(o==c){t="#";for(var a=c.keys(e).sort();!l(r=a.pop());)l(e[r])||(t+=r+":"+m(e[r])+",");y.set(e,t)}}return t},g=!0,b=p(),w=typeof document!=h,x=b&&window.addEventListener?window.addEventListener.bind(window):s,j=w?document.addEventListener.bind(document):s,O=b&&window.removeEventListener?window.removeEventListener.bind(window):s,E=w?document.removeEventListener.bind(document):s,S={isOnline:function(){return g},isVisible:function(){var e=w&&document.visibilityState;return l(e)||"hidden"!==e}},_={initFocus:function(e){return j("visibilitychange",e),x("focus",e),function(){E("visibilitychange",e),O("focus",e)}},initReconnect:function(e){var t=function(){g=!0,e()},r=function(){g=!1};return x("online",t),x("offline",r),function(){O("online",t),O("offline",r)}}},P=!p()||"Deno"in window,C=function(e){return p()&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(e):setTimeout(e,1)},A=P?n.useEffect:n.useLayoutEffect,N="undefined"!=typeof navigator&&navigator.connection,T=!P&&N&&(["slow-2g","2g"].includes(N.effectiveType)||N.saveData),R=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)?m(e):"",t,e?"$swr$"+e:""]},k=new WeakMap,L=function(e,t,r,n,o,i,a){void 0===a&&(a=!0);var s=k.get(e),u=s[0],c=s[1],l=s[3],f=u[t],d=c[t];if(a&&d)for(var h=0;h<d.length;++h)d[h](r,n,o);return i&&(delete l[t],f&&f[0])?f[0](2).then((function(){return e.get(t)})):e.get(t)},I=0,D=function(){return++I},M=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(void 0,void 0,void 0,(function(){var t,r,n,o,a,s,c,h,p,y,v,m,g,b,w,x,j,O,E,S,_;return i(this,(function(i){switch(i.label){case 0:if(t=e[0],r=e[1],n=e[2],o=e[3],s=!!l((a="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||a.populateCache,c=!1!==a.revalidate,h=!1!==a.rollbackOnError,p=a.optimisticData,y=R(r),v=y[0],m=y[2],!v)return[2];if(g=k.get(t),b=g[2],e.length<3)return[2,L(t,v,t.get(v),u,u,c,!0)];if(w=n,j=D(),b[v]=[j,0],O=!l(p),E=t.get(v),O&&(S=f(p)?p(E):p,t.set(v,S),L(t,v,S)),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(),j!==b[v][0]){if(x)throw x;return[2,w]}x&&O&&h&&(s=!0,w=E,t.set(v,E)),i.label=2;case 2:return s&&(x||(f(s)&&(w=s(w,E)),t.set(v,w)),t.set(m,d(t.get(m),{error:x}))),b[v][1]=D(),[4,L(t,v,w,x,u,c,!!s)];case 3:if(_=i.sent(),x)throw x;return[2,s?_:w]}}))}))},B=function(e,t){for(var r in e)e[r][0]&&e[r][0](t)},U=function(e,t){if(!k.has(e)){var r=d(_,t),n={},o=M.bind(u,e),i=s;if(k.set(e,[n,{},{},{},o]),!P){var a=r.initFocus(setTimeout.bind(u,B.bind(u,n,0))),c=r.initReconnect(setTimeout.bind(u,B.bind(u,n,1)));i=function(){a&&a(),c&&c(),k.delete(e)}}return[e,o,i]}return[e,k.get(e)[4]]},F=U(new Map),H=F[0],V=F[1],Y=d({onLoadingSlow:s,onSuccess:s,onError:s,onErrorRetry:function(e,t,r,n,o){var i=r.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;!l(i)&&a>i||setTimeout(n,s,o)},onDiscarded:s,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:function(e,t){return m(e)==m(t)},isPaused:function(){return!1},cache:H,mutate:V,fallback:{}},S),z=function(e,t){var r=d(e,t);if(t){var n=e.use,o=e.fallback,i=t.use,a=t.fallback;n&&i&&(r.use=n.concat(i)),o&&a&&(r.fallback=d(o,a))}return r},W=(0,n.createContext)({}),q=function(e){return f(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},Z=function(){return d(Y,(0,n.useContext)(W))},J=function(e,t,r){var n=t[e]||(t[e]=[]);return n.push(r),function(){var e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}},X={dedupe:!0},G=c.defineProperty((function(e){var t=e.value,r=z((0,n.useContext)(W),t),o=t&&t.provider,i=(0,n.useState)((function(){return o?U(o(r.cache||H),t):u}))[0];return i&&(r.cache=i[0],r.mutate=i[1]),A((function(){return i?i[2]:u}),[]),(0,n.createElement)(W.Provider,d(e,{value:r}))}),"default",{value:Y}),$=(a=function(e,t,r){var a=r.cache,s=r.compare,c=r.fallbackData,h=r.suspense,p=r.revalidateOnMount,y=r.refreshInterval,v=r.refreshWhenHidden,m=r.refreshWhenOffline,g=k.get(a),b=g[0],w=g[1],x=g[2],j=g[3],O=R(e),E=O[0],S=O[1],_=O[2],N=(0,n.useRef)(!1),T=(0,n.useRef)(!1),I=(0,n.useRef)(E),B=(0,n.useRef)(t),U=(0,n.useRef)(r),F=function(){return U.current},H=function(){return F().isVisible()&&F().isOnline()},V=function(e){return a.set(_,d(a.get(_),e))},Y=a.get(E),z=l(c)?r.fallback[E]:c,W=l(Y)?z:Y,q=a.get(_)||{},Z=q.error,G=!N.current,$=function(){return G&&!l(p)?p:!F().isPaused()&&(h?!l(W)&&r.revalidateIfStale:l(W)||r.revalidateIfStale)},K=!(!E||!t)&&(!!q.isValidating||G&&$()),Q=function(e,t){var r=(0,n.useState)({})[1],o=(0,n.useRef)(e),i=(0,n.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,n.useCallback)((function(e){var n=!1,a=o.current;for(var s in e){var u=s;a[u]!==e[u]&&(a[u]=e[u],i.current[u]&&(n=!0))}n&&!t.current&&r({})}),[]);return A((function(){o.current=e})),[o,i.current,a]}({data:W,error:Z,isValidating:K},T),ee=Q[0],te=Q[1],re=Q[2],ne=(0,n.useCallback)((function(e){return o(void 0,void 0,void 0,(function(){var t,n,o,c,d,h,p,y,v,m,g,b,w;return i(this,(function(i){switch(i.label){case 0:if(t=B.current,!E||!t||T.current||F().isPaused())return[2,!1];c=!0,d=e||{},h=!j[E]||!d.dedupe,p=function(){return!T.current&&E===I.current&&N.current},y=function(){var e=j[E];e&&e[1]===o&&delete j[E]},v={isValidating:!1},m=function(){V({isValidating:!1}),p()&&re(v)},V({isValidating:!0}),re({isValidating:!0}),i.label=1;case 1:return i.trys.push([1,3,,4]),h&&(L(a,E,ee.current.data,ee.current.error,!0),r.loadingTimeout&&!a.get(E)&&setTimeout((function(){c&&p()&&F().onLoadingSlow(E,r)}),r.loadingTimeout),j[E]=[t.apply(void 0,S),D()]),w=j[E],n=w[0],o=w[1],[4,n];case 2:return n=i.sent(),h&&setTimeout(y,r.dedupingInterval),j[E]&&j[E][1]===o?(V({error:u}),v.error=u,g=x[E],!l(g)&&(o<=g[0]||o<=g[1]||0===g[1])?(m(),h&&p()&&F().onDiscarded(E),[2,!1]):(s(ee.current.data,n)?v.data=ee.current.data:v.data=n,s(a.get(E),n)||a.set(E,n),h&&p()&&F().onSuccess(n,E,r),[3,4])):(h&&p()&&F().onDiscarded(E),[2,!1]);case 3:return b=i.sent(),y(),F().isPaused()||(V({error:b}),v.error=b,h&&p()&&(F().onError(b,E,r),("boolean"==typeof r.shouldRetryOnError&&r.shouldRetryOnError||f(r.shouldRetryOnError)&&r.shouldRetryOnError(b))&&H()&&F().onErrorRetry(b,E,r,ne,{retryCount:(d.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return c=!1,m(),p()&&h&&L(a,E,v.data,v.error,!1),[2,!0]}}))}))}),[E]),oe=(0,n.useCallback)(M.bind(u,a,(function(){return I.current})),[]);if(A((function(){B.current=t,U.current=r})),A((function(){if(E){var e=E!==I.current,t=ne.bind(u,X),r=0,n=J(E,w,(function(e,t,r){re(d({error:t,isValidating:r},s(ee.current.data,e)?u:{data:e}))})),o=J(E,b,(function(e){if(0==e){var n=Date.now();F().revalidateOnFocus&&n>r&&H()&&(r=n+F().focusThrottleInterval,t())}else if(1==e)F().revalidateOnReconnect&&H()&&t();else if(2==e)return ne()}));return T.current=!1,I.current=E,N.current=!0,e&&re({data:W,error:Z,isValidating:K}),$()&&(l(W)||P?t():C(t)),function(){T.current=!0,n(),o()}}}),[E,ne]),A((function(){var e;function t(){var t=f(y)?y(W):y;t&&-1!==e&&(e=setTimeout(r,t))}function r(){ee.current.error||!v&&!F().isVisible()||!m&&!F().isOnline()?t():ne(X).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[y,v,m,ne]),(0,n.useDebugValue)(W),h&&l(W)&&E)throw B.current=t,U.current=r,T.current=!1,l(Z)?ne(X):Z;return{mutate:oe,get data(){return te.data=!0,W},get error(){return te.error=!0,Z},get isValidating(){return te.isValidating=!0,K}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Z(),n=q(e),o=n[0],i=n[1],s=n[2],u=z(r,s),c=a,l=u.use;if(l)for(var f=l.length;f-- >0;)c=l[f](c);return c(o,i||u.fetcher,u)});const K=wp.components;var Q=r(4246),ee=function(){return(0,Q.jsx)("div",{className:"extendify-onboarding w-full fixed bottom-4 px-4 flex justify-end z-max",children:(0,Q.jsx)("div",{className:"shadow-2xl",children:(0,Q.jsx)(K.Snackbar,{children:(0,t.__)("Just a moment, this is taking longer than expected.","extendify")})})})};const te=wp.data;var re=r(7135),ne=r.n(re),oe=r(4206),ie=r.n(oe)().create({baseURL:window.extOnbData.root,headers:{"X-WP-Nonce":window.extOnbData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Onboarding":!0,"X-Extendify":!0}});function ae(e){return Object.prototype.hasOwnProperty.call(e,"data")?e.data:e}ie.interceptors.response.use((function(e){return ae(e)}),(function(e){return function(e){if(e.response)return console.error(e.response),Promise.reject(ae(e.response))}(e)}));var se=function(e){return ie.get("onboarding/template",{params:e})};function ue(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function ce(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ue(i,n,o,a,s,"next",e)}function s(e){ue(i,n,o,a,s,"throw",e)}a(void 0)}))}}var le=function(e,t){return ie.post("onboarding/options",{option:e,value:t})},fe=function(){var e=ce(ne().mark((function e(t){var r,n;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ie.get("onboarding/options",{params:{option:t}});case 2:return r=e.sent,n=r.data,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),de=function(){var e=ce(ne().mark((function e(t){var r,n,o,i;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={method:"POST",headers:{"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce},body:JSON.stringify(t)},n="".concat(window.extOnbData.wpRoot,"wp/v2/pages"),e.next=4,fetch(n,r);case 4:return o=e.sent,e.next=7,o.json();case 7:return i=e.sent,e.abrupt("return",i);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),he=function(){var e=ce(ne().mark((function e(r,n){var o,i,a,s;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={method:"POST",headers:{"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce},body:JSON.stringify({slug:"".concat(r),theme:"extendable",type:"wp_template_part",status:"publish",description:(0,t.__)("Added by Extendify Launch","extendify"),content:n})},e.prev=1,i="".concat(window.extOnbData.wpRoot,"wp/v2/template-parts/").concat(r),e.next=5,fetch(i,o);case 5:return a=e.sent,e.next=8,a.json();case 8:return s=e.sent,e.abrupt("return",s);case 12:e.prev=12,e.t0=e.catch(1);case 14:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(t,r){return e.apply(this,arguments)}}(),pe=function(e){var t=e.currentPageIndex,r=e.totalPages,n=Math.round((t+1)/r*100),o="(".concat(t+1,"/").concat(r,")");return(0,Q.jsxs)("div",{className:"flex-1 hidden md:flex justify-center items-center",children:[(0,Q.jsx)("div",{role:"progressbar","aria-valuenow":n,"aria-valuemin":"0","aria-valuetext":o,"aria-valuemax":"100",className:"w-32 bg-gray-200 h-2 rounded-full",children:(0,Q.jsx)("div",{className:"rounded-full bg-partner-primary-bg h-2",style:{width:"".concat(n,"%")}})}),(0,Q.jsx)("div",{className:"pl-2 flex justify-center",children:o})]})};function ye(e){let t;const r=new Set,n=(e,n)=>{const o="function"==typeof e?e(t):e;if(o!==t){const e=t;t=n?o:Object.assign({},t,o),r.forEach((r=>r(t,e)))}},o=()=>t,i={setState:n,getState:o,subscribe:(e,n,i)=>n||i?((e,n=o,i=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=n(t);function s(){const r=n(t);if(!i(a,r)){const t=a;e(a=r,t)}}return r.add(s),()=>r.delete(s)})(e,n,i):(r.add(e),()=>r.delete(e)),destroy:()=>r.clear()};return t=e(n,o,i),i}const ve="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?n.useEffect:n.useLayoutEffect;function me(e){const t="function"==typeof e?ye(e):e,r=(e=t.getState,r=Object.is)=>{const[,o]=(0,n.useReducer)((e=>e+1),0),i=t.getState(),a=(0,n.useRef)(i),s=(0,n.useRef)(e),u=(0,n.useRef)(r),c=(0,n.useRef)(!1),l=(0,n.useRef)();let f;void 0===l.current&&(l.current=e(i));let d=!1;(a.current!==i||s.current!==e||u.current!==r||c.current)&&(f=e(i),d=!r(l.current,f)),ve((()=>{d&&(l.current=f),a.current=i,s.current=e,u.current=r,c.current=!1}));const h=(0,n.useRef)(i);ve((()=>{const e=()=>{try{const e=t.getState(),r=s.current(e);u.current(l.current,r)||(a.current=e,l.current=r,o())}catch(e){c.current=!0,o()}},r=t.subscribe(e);return t.getState()!==h.current&&e(),r}),[]);const p=d?f:l.current;return(0,n.useDebugValue)(p),p};return Object.assign(r,t),r[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[r,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},r}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function ge(e,t){return(r,n,o)=>{var i;let a=!1;"string"!=typeof t||a||(console.warn("[zustand devtools middleware]: passing `name` as directly will be not allowed in next majorpass the `name` in an object `{ name: ... }` instead"),a=!0);const s=void 0===t?{name:void 0,anonymousActionType:void 0}:"string"==typeof t?{name:t}:t;let u;void 0!==(null==(i=null==s?void 0:s.serialize)?void 0:i.options)&&console.warn("[zustand devtools middleware]: `serialize.options` is deprecated, just use `serialize`");try{u=window.__REDUX_DEVTOOLS_EXTENSION__||window.top.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return"undefined"!=typeof window&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(r,n,o);let c=Object.create(u.connect(s)),l=!1;Object.defineProperty(o,"devtools",{get:()=>(l||(console.warn("[zustand devtools middleware] `devtools` property on the store is deprecated it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),l=!0),c),set:e=>{l||(console.warn("[zustand devtools middleware] `api.devtools` is deprecated, it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),l=!0),c=e}});let f=!1;Object.defineProperty(c,"prefix",{get:()=>(f||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),f=!0),""),set:()=>{f||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),f=!0)}});let d=!0;o.setState=(e,t,o)=>{r(e,t),d&&c.send(void 0===o?{type:s.anonymousActionType||"anonymous"}:"string"==typeof o?{type:o}:o,n())};const h=(...e)=>{const t=d;d=!1,r(...e),d=t},p=e(o.setState,n,o);if(c.init(p),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let e=!1;const t=o.dispatch;o.dispatch=(...r)=>{"__setState"!==r[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(...r)}}return c.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):be(e.payload,(e=>{"__setState"!==e.type?o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e):h(e.state)}));case"DISPATCH":switch(e.payload.type){case"RESET":return h(p),c.init(o.getState());case"COMMIT":return c.init(o.getState());case"ROLLBACK":return be(e.state,(e=>{h(e),c.init(o.getState())}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return be(e.state,(e=>{h(e)}));case"IMPORT_STATE":{const{nextLiftedState:r}=e.payload,n=null==(t=r.computedStates.slice(-1)[0])?void 0:t.state;if(!n)return;return h(n),void c.send(null,r)}case"PAUSE_RECORDING":return d=!d}return}})),p}}const be=(e,t)=>{let r;try{r=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==r&&t(r)};var we=Object.defineProperty,xe=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,Ee=(e,t,r)=>t in e?we(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Se=(e,t)=>{for(var r in t||(t={}))je.call(t,r)&&Ee(e,r,t[r]);if(xe)for(var r of xe(t))Oe.call(t,r)&&Ee(e,r,t[r]);return e};const _e=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then:e=>_e(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>_e(t)(e)}}};var Pe=me(ge((function(){return{generating:!1,generatedPages:{}}}))),Ce=function(e,t){var r,n=$(e,t,{}),o=n.data,i=n.error,a=null!==(r=null==o?void 0:o.data)&&void 0!==r?r:o;return{data:a,loading:!a,error:i}};function Ae(e){return function(e){if(Array.isArray(e))return Ne(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ne(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ne(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(r),!0).forEach((function(t){ke(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Te(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ke(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Le,Ie,De={siteType:{},siteInformation:{title:""},style:null,pages:[],goals:[]},Me=me((Le=ge((function(e,t){return Re(Re({},De),{},{setSiteType:function(t){e({siteType:t})},setSiteInformation:function(r,n){var o=Re(Re({},t().siteInformation),{},ke({},r,n));e({siteInformation:o})},hasGoal:function(e){return!(null==e||!e.id)&&t().goals.some((function(t){return t.id===e.id}))},addGoal:function(r){t().hasGoal(r)||e({goals:[].concat(Ae(t().goals),[r])})},removeGoal:function(r){e({goals:t().goals.filter((function(e){return e.id!==r.id}))})},toggleGoal:function(e){t().hasGoal(e)?t().removeGoal(e):t().addGoal(e)},setStyle:function(t){e({style:t})},hasPage:function(e){return!(null==e||!e.id)&&t().pages.some((function(t){return t.id===e.id}))},addPage:function(r){t().hasPage(r)||e({pages:[].concat(Ae(t().pages),[r])})},removePage:function(r){"home"!==r.slug&&e({pages:t().pages.filter((function(e){return e.id!==r.id}))})},togglePage:function(e){t().hasPage(e)?t().removePage(e):t().addPage(e)},canLaunch:function(){var e,r,n,o,i,a,s,u;return(null===(e=Object.keys(null!==(r=null===(n=t())||void 0===n?void 0:n.siteType)&&void 0!==r?r:{}))||void 0===e?void 0:e.length)>0&&(null===(o=Object.keys(null!==(i=null===(a=t())||void 0===a?void 0:a.style)&&void 0!==i?i:{}))||void 0===o?void 0:o.length)>0&&(null===(s=t())||void 0===s||null===(u=s.pages)||void 0===u?void 0:u.length)>0},resetState:function(){e(De)}})})),Ie={name:"extendify",getStorage:function(){return sessionStorage}},(e,t,r)=>{let n=Se({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>Se(Se({},t),e)},Ie);(n.blacklist||n.whitelist)&&console.warn(`The ${n.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let o=!1;const i=new Set,a=new Set;let s;try{s=n.getStorage()}catch(e){}if(!s)return Le(((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${n.name}', the given storage is currently unavailable.`),e(...t)}),t,r);s.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${n.name}' does not contain a 'removeItem' method, which will be required in v4.`);const u=_e(n.serialize),c=()=>{const e=n.partialize(Se({},t()));let r;n.whitelist&&Object.keys(e).forEach((t=>{var r;!(null==(r=n.whitelist)?void 0:r.includes(t))&&delete e[t]})),n.blacklist&&n.blacklist.forEach((t=>delete e[t]));const o=u({state:e,version:n.version}).then((e=>s.setItem(n.name,e))).catch((e=>{r=e}));if(r)throw r;return o},l=r.setState;r.setState=(e,t)=>{l(e,t),c()};const f=Le(((...t)=>{e(...t),c()}),t,r);let d;const h=()=>{var r;if(!s)return;o=!1,i.forEach((e=>e(t())));const u=(null==(r=n.onRehydrateStorage)?void 0:r.call(n,t()))||void 0;return _e(s.getItem.bind(s))(n.name).then((e=>{if(e)return n.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===n.version)return e.state;if(n.migrate)return n.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((r=>{var o;return d=n.merge(r,null!=(o=t())?o:f),e(d,!0),c()})).then((()=>{null==u||u(d,void 0),o=!0,a.forEach((e=>e(d)))})).catch((e=>{null==u||u(void 0,e)}))};return r.persist={setOptions:e=>{n=Se(Se({},n),e),e.getStorage&&(s=e.getStorage())},clearStorage:()=>{var e;null==(e=null==s?void 0:s.removeItem)||e.call(s,n.name)},rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(i.add(e),()=>{i.delete(e)}),onFinishHydration:e=>(a.add(e),()=>{a.delete(e)})},h(),d||f})),Be=function(){return ie.get("onboarding/goals")},Ue=function(){return{key:"goals"}};function Fe(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function He(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}var Ve=function(){var e,t=(e=ne().mark((function e(){var t;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fe("blogname");case 2:return t=e.sent,e.abrupt("return",{title:t});case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){He(i,n,o,a,s,"next",e)}function s(e){He(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),Ye=function(){return{key:"site-info"}},ze=r(42),We=r.n(ze);const qe=wp.blockEditor,Ze=wp.blocks;var Je=["className"];function Xe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(r),!0).forEach((function(t){$e(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ke(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const Qe=(0,e.memo)((function(e){var t=e.className,r=Ke(e,Je);return(0,Q.jsx)("svg",Ge(Ge({className:t,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:(0,Q.jsx)("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"})}))}));var et=["className"];function tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(r),!0).forEach((function(t){nt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ot(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const it=(0,e.memo)((function(e){var t=e.className,r=ot(e,et);return(0,Q.jsx)("svg",rt(rt({className:"icon ".concat(t),width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:(0,Q.jsx)("path",{d:"M10 17.5L15 12L10 6.5",stroke:"#1f1f1f",strokeWidth:"1.75"})}))}));var at=["className"];function st(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ut(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?st(Object(r),!0).forEach((function(t){ct(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):st(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ct(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const ft=(0,e.memo)((function(e){var t=e.className,r=lt(e,at);return(0,Q.jsxs)("svg",ut(ut({className:t,viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:[(0,Q.jsx)("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,Q.jsx)("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,Q.jsx)("path",{d:"M994.142 125H1150.14V176H994.142V125ZM1102.64 372H1041.64V48H1102.64V372Z",fill:"currentColor"}),(0,Q.jsx)("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,Q.jsx)("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,Q.jsx)("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,Q.jsx)("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,Q.jsx)("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,Q.jsx)("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,Q.jsx)("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"})]}))}));var dt=["className"];function ht(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(r),!0).forEach((function(t){yt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ht(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function yt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(0,e.memo)((function(e){var t=e.className,r=vt(e,dt);return(0,Q.jsx)("svg",pt(pt({className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:(0,Q.jsx)("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 mt=["className"];function gt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gt(Object(r),!0).forEach((function(t){wt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const jt=(0,e.memo)((function(e){var t=e.className,r=xt(e,mt);return(0,Q.jsxs)("svg",bt(bt({className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:[(0,Q.jsx)("path",{d:"M8 18.5504L12 14.8899",stroke:"#1E1E1E",strokeWidth:"1.5"}),(0,Q.jsx)("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"})]}))}));var Ot=["className"];function Et(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function St(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(r),!0).forEach((function(t){_t(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const Ct=(0,e.memo)((function(e){var t=e.className,r=Pt(e,Ot);return(0,Q.jsxs)("svg",St(St({className:t,width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:[(0,Q.jsx)("path",{d:"M87.5 48.8281H75V51.1719H87.5V48.8281Z",fill:"black"}),(0,Q.jsx)("path",{d:"M25 48.8281H12.5V51.1719H25V48.8281Z",fill:"black"}),(0,Q.jsx)("path",{d:"M51.1719 75H48.8281V87.5H51.1719V75Z",fill:"black"}),(0,Q.jsx)("path",{d:"M51.1719 12.5H48.8281V25H51.1719V12.5Z",fill:"black"}),(0,Q.jsx)("path",{d:"M77.3433 75.6868L69.4082 67.7517L67.7511 69.4088L75.6862 77.344L77.3433 75.6868Z",fill:"black"}),(0,Q.jsx)("path",{d:"M32.2457 30.5897L24.3105 22.6545L22.6534 24.3117L30.5885 32.2468L32.2457 30.5897Z",fill:"black"}),(0,Q.jsx)("path",{d:"M77.3407 24.3131L75.6836 22.656L67.7485 30.5911L69.4056 32.2483L77.3407 24.3131Z",fill:"black"}),(0,Q.jsx)("path",{d:"M32.2431 69.4074L30.5859 67.7502L22.6508 75.6854L24.3079 77.3425L32.2431 69.4074Z",fill:"black"})]}))}));function At(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Nt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Tt=function(r){var n=r.style,o=r.selectStyle,i=r.blockHeight,a=r.onHover,s=Me((function(e){return e.siteType})),u=At((0,e.useState)(""),2),c=u[0],l=u[1],f=At((0,e.useState)(""),2),d=f[0],h=f[1],p=At((0,e.useState)(!1),2),y=p[0],v=p[1],m=At((0,e.useState)(null),2),g=m[0],b=m[1],w=(0,e.useRef)(null),x=(0,e.useRef)(null),j=(0,e.useMemo)((function(){return(0,Ze.rawHandler)({HTML:c})}),[c]),O=(0,e.useMemo)((function(){return(0,qe.transformStyles)([{css:d}],".editor-styles-wrapper")}),[d]);return(0,e.useEffect)((function(){null!=n&&n.themeJson?function(e){return ie.post("onboarding/parse-theme-json",{themeJson:e})}(n.themeJson).then((function(e){var t;h(null!==(t=null==e?void 0:e.styles)&&void 0!==t?t:"{}")})):h("{}")}),[null==n?void 0:n.themeJson]),(0,e.useEffect)((function(){if(d&&null!=n&&n.code){var e=[null==n?void 0:n.headerCode,null==n?void 0:n.code,null==n?void 0:n.footerCode].filter(Boolean).join("").replace(/<!-- wp:navigation {(.|\n)*?(\/wp:navigation -->|} \/-->)/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Home | About | Contact</p >\x3c!-- /wp:paragraph --\x3e');l(e)}}),[null==s?void 0:s.slug,d,n]),(0,e.useEffect)((function(){var e,t;if(x.current&&y){var r=w.current,n=r.offsetWidth/1400,o=x.current,a=o.contentDocument.body;o.style.maxHeight="".concat(i/n,"px"),null!=a&&a.style&&(a.style.transitionProperty="all",a.style.top=0);var s=function(){var t=a.offsetHeight-i/n;a.style.transitionDuration=Math.max(2*t,3e3)+"ms",e=window.requestAnimationFrame((function(){a.style.top=-1*Math.max(0,t)+"px"}))},u=function(){var e=a.offsetHeight-i/n;a.style.transitionDuration=e+"ms",t=window.requestAnimationFrame((function(){a.style.top=0}))};return r.addEventListener("focus",s),r.addEventListener("mouseenter",s),r.addEventListener("blur",u),r.addEventListener("mouseleave",u),function(){window.cancelAnimationFrame(e),window.cancelAnimationFrame(t),r.removeEventListener("focus",s),r.removeEventListener("mouseenter",s),r.removeEventListener("blur",u),r.removeEventListener("mouseleave",u)}}}),[i,y]),(0,e.useEffect)((function(){if(null!=j&&j.length){var e,t=function(){var t,r,n;null!==(t=e.contentDocument)&&void 0!==t&&t.getElementById("ext-tj")||(null===(r=e.contentDocument)||void 0===r||null===(n=r.head)||void 0===n||n.insertAdjacentHTML("beforeend",'<style id="ext-tj">'.concat(O,"</style>")));x.current=e,v(!0)},r=new MutationObserver((function(){(e=w.current.querySelector("iframe[title]")).addEventListener("load",t),setTimeout((function(){t()}),2e3),r.disconnect()}));return r.observe(w.current,{attributes:!1,childList:!0,subtree:!1}),function(){var n;r.disconnect(),null===(n=e)||void 0===n||n.removeEventListener("load",t)}}}),[j,O]),(0,Q.jsxs)(Q.Fragment,{children:[y&&c?null:(0,Q.jsx)("div",{style:{maxHeight:i},className:"w-full h-full bg-gray-50 flex items-center justify-center",children:(0,Q.jsx)("div",{className:"flex flex-col items-center py-16",children:(0,Q.jsx)(Ct,{className:"spin w-8"})})}),(0,Q.jsx)("div",{role:o?"button":void 0,style:{maxHeight:i},tabIndex:o?0:void 0,"aria-label":o?(0,t.__)("Press to select","extendify"):void 0,className:We()("w-full overflow-hidden bg-transparent z-10",{relative:y,"absolute opacity-0":!y,"button-focus button-card":o}),onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&o&&o(n)},onMouseEnter:function(){a&&b(a)},onMouseLeave:function(){g&&(g(),b(null))},onClick:o?function(){return o(n)}:function(){},children:(0,Q.jsx)("div",{ref:w,className:"relative rounded-lg",children:(0,Q.jsx)(qe.BlockPreview,{blocks:j,viewportWidth:1400,live:!1})})})]})},Rt=function(e){var t,r;return[null==e||null===(t=e.template)||void 0===t?void 0:t.code,null==e||null===(r=e.template)||void 0===r?void 0:r.code2].filter(Boolean).join("")};function kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Lt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(r),!0).forEach((function(t){It(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function It(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Dt=function(e){return se(e)},Mt=function(e){var r=e.lock,n=e.page,o=e.blockHeight,i=Me((function(e){return e.pages})),a=Me((function(e){return e.siteType})),s=Me((function(e){return e.style})),u="home"===(null==n?void 0:n.slug),c=Ce({siteType:a.slug,layoutType:n.slug,baseLayout:u?null==s?void 0:s.homeBaseLayout:null,kit:"home"!==n.slug?null==s?void 0:s.kit:null},Dt).data;u&&(r=!0);var l=null==i?void 0:i.find((function(e){return(null==e?void 0:e.id)===(null==n?void 0:n.id)}));return(0,Q.jsxs)("div",{role:r?void 0:"button",tabIndex:r?void 0:0,"aria-label":r?void 0:(0,t.__)("Press to select","extendify"),className:We()("text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100",{"button-focus":!r}),onKeyDown:function(e){if(["Enter","Space"," "].includes(e.key)){if(r)return;Me.getState().togglePage(n)}},onClick:function(){return r||Me.getState().togglePage(n)},children:[(0,Q.jsxs)("div",{className:"border-gray-100 border-b p-2 flex justify-between min-w-sm",children:[(0,Q.jsxs)("div",{className:We()("flex items-center",{"text-gray-700":!l}),children:[(0,Q.jsx)("span",{children:n.title}),r&&(0,Q.jsx)("span",{title:u?(0,t.__)("Home page is required","extendify"):null,className:"w-4 h-4 text-base leading-none pl-2 mr-6 dashicons dashicons-lock"})]}),(r||l)&&(0,Q.jsx)(Qe,{className:"text-partner-primary-bg w-6"})]}),(0,Q.jsx)(Tt,{blockHeight:o,style:Lt(Lt({},s),{},{code:Rt({template:c})})},null==s?void 0:s.slug)]},n.slug)};function Bt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||Ft(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ut(e){return function(e){if(Array.isArray(e))return Ht(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ft(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ft(e,t){if(e){if("string"==typeof e)return Ht(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ht(e,t):void 0}}function Ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Vt(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}var Yt=function(){var e,t=(e=ne().mark((function e(){var t,r,n,o,i,a;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ie.get("onboarding/layout-types");case 2:if(n=e.sent,null!=(o=null==n||null===(t=n.data)||void 0===t?void 0:t.map((function(e){return{id:e.id,slug:e.slug,title:e.title}})))&&o.length){e.next=6;break}throw new Error("Error fetching pages");case 6:return i=o[0],a=null===(r=o.slice(1))||void 0===r?void 0:r.sort((function(e,t){return e.title>t.title?1:-1})),e.abrupt("return",[i].concat(Ut(null!=a?a:[])));case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Vt(i,n,o,a,s,"next",e)}function s(e){Vt(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),zt=function(){return{key:"layout-types"}};function Wt(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return qt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qt(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Zt=function(e,t){var r,n=Wt(t.keys());try{for(n.s();!(r=n.n()).done;){var o=r.value;if(o.match(e))return o}}catch(e){n.e(e)}finally{n.f()}};function Jt(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}var Xt=function(){var e,t=(e=ne().mark((function e(t){var r,n,o;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i=t,ie.get("onboarding/styles",{params:i});case 2:return o=e.sent,e.abrupt("return",null==o||null===(r=o.data)||void 0===r||null===(n=r.map((function(e){return{label:e.title,slug:e.slug,recordId:e.id,themeJson:null==e?void 0:e.themeJson,homeBaseLayout:null==e?void 0:e.homeBaseLayout,header:null==e?void 0:e.header,footer:null==e?void 0:e.footer,kit:null==e?void 0:e.kit,headerCode:null==e?void 0:e.headerCode,footerCode:null==e?void 0:e.footerCode,code:Rt(e)}})))||void 0===n?void 0:n.filter((function(e){return e.code})));case 4:case"end":return e.stop()}var i}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Jt(i,n,o,a,s,"next",e)}function s(e){Jt(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),Gt=function(e){var t,r,n;return{key:"site-style",siteType:null!==(r=null===(n=e=null!==(t=e)&&void 0!==t?t:null==Me?void 0:Me.getState().siteType)||void 0===n?void 0:n.slug)&&void 0!==r?r:"default"}};function $t(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function Kt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Qt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var er=function(){return ie.get("onboarding/site-types")},tr=function(){return{key:"site-types"}},rr=function(t){var r=t.option,n=t.selectSiteType,o=(0,e.useRef)(0);return(0,Q.jsxs)("button",{onClick:function(){return n(r)},onMouseEnter:function(){window.clearTimeout(o.current),o.current=window.setTimeout((function(){var e=function(){return Gt(r)};V(e,(function(t){return null!=t&&t.length?t:Xt(e())}))}),100)},onMouseLeave:function(){window.clearTimeout(o.current)},className:"flex bg-gray-100 hover:bg-gray-200 items-center justify-between mb-2 p-4 py-3 relative w-full button-focus",children:[(0,Q.jsx)("span",{children:r.title}),(0,Q.jsx)(it,{})]})},nr=[["landing",{component:function(){var r=or((function(e){return e.nextPage})),n=(0,e.useRef)(null);(0,e.useEffect)((function(){var e=requestAnimationFrame((function(){return n.current.focus()}));return function(){return cancelAnimationFrame(e)}}),[n]);var o=function(){var e,t=(e=ne().mark((function e(t){return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,le("extendify_onboarding_skipped",(new Date).toISOString());case 3:location.href=window.extOnbData.adminUrl;case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Fe(i,n,o,a,s,"next",e)}function s(e){Fe(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return(0,Q.jsxs)(ar,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("Welcome to Your WordPress Site","extendify")}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("Design and launch your site with our guided experience, or jump right to the WordPress dashboard if you already know what you're doing.","extendify")})]}),(0,Q.jsxs)("div",{className:"",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("Pick one:","extendify")}),(0,Q.jsxs)("div",{className:"button-card-wrap",children:[(0,Q.jsxs)("button",{onClick:r,ref:n,type:"button","aria-label":(0,t.__)("Press to continue","extendify"),className:"button-card max-w-sm button-focus",children:[(0,Q.jsx)("div",{className:"bg-gray-100 w-full h-64 bg-cover border border-gray-200",style:{backgroundImage:"url(".concat(window.extOnbData.pluginUrl,"/public/assets/extendify-preview.png)")}}),(0,Q.jsx)("p",{className:"font-bold text-lg text-gray-900",children:(0,t.__)("Extendify Launch","extendify")}),(0,Q.jsx)("p",{className:"text-base text-gray-900",children:(0,t.__)("Create a super-fast, beautiful, and fully customized site in minutes. Simply answer a few questions and pick a design to get started. Then, everything can be fully customized in the core WordPress editor.","extendify")})]}),(0,Q.jsxs)("a",{onClick:function(e){return o(e)},className:"button-card max-w-sm button-focus",children:[(0,Q.jsx)("div",{className:"bg-gray-100 w-full h-64 bg-cover border border-gray-200",style:{backgroundImage:"url(".concat(window.extOnbData.pluginUrl,"/public/assets/wp-admin.png)")}}),(0,Q.jsx)("p",{className:"font-bold text-lg text-gray-900",children:(0,t.__)("WordPress Dashboard","extendify")}),(0,Q.jsx)("p",{className:"text-base text-gray-900",children:(0,t.__)("Are you a WordPress developer and want to go straight to the admin dashboard?","extendify")})]})]})]})]})}}],["site-information",{component:function(){var r,n=Me(),o=n.siteInformation,i=n.setSiteInformation,a=(0,e.useRef)(null),s=or((function(e){return e.nextPage})),u=Ce(Ye,Ve).data;return(0,e.useEffect)((function(){var e=requestAnimationFrame((function(){return a.current.focus()}));return function(){return cancelAnimationFrame(e)}}),[a]),(0,e.useEffect)((function(){null!=u&&u.title&&i("title",u.title)}),[u,i]),(0,Q.jsxs)(ar,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("What's the name of your new site?","extendify")}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("You can change this later.","extendify")})]}),(0,Q.jsx)("div",{className:"w-full",children:(0,Q.jsxs)("form",{onSubmit:function(e){e.preventDefault(),s()},children:[(0,Q.jsx)("label",{htmlFor:"extendify-site-title-input",className:"block mt-0 mb-8 text-base",children:(0,t.__)("What's the name of your site?","extendify")}),(0,Q.jsx)("div",{className:"mb-8",children:(0,Q.jsx)("input",{autoComplete:"off",ref:a,type:"text",name:"site-title-input",id:"extendify-site-title-input",className:"w-96 max-w-full border h-12 input-focus",value:null!==(r=null==o?void 0:o.title)&&void 0!==r?r:"",onChange:function(e){return i("title",e.target.value)},placeholder:(0,t.__)("Enter your preferred site title...","extendify")})})]})})]})},fetcher:Ve,fetchData:Ye}],["goals",{component:function(){var r=Ce(Ue,Be).data,n=Me(),o=n.toggleGoal,i=n.hasGoal,a=or((function(e){return e.nextPage})),s=(0,e.useRef)();return(0,e.useEffect)((function(){if(s.current){var e=requestAnimationFrame((function(){return s.current.querySelector("input").focus()}));return function(){return cancelAnimationFrame(e)}}}),[s]),(0,Q.jsxs)(ar,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("What do you want to accomplish with this new site?","extendify")}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("You can change these later.","extendify")})]}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("Select the goals relevant to your site:","extendify")}),(0,Q.jsxs)("form",{onSubmit:function(e){e.preventDefault(),a()},className:"w-full max-w-2xl grid lg:grid-cols-2 gap-4 goal-select",children:[(0,Q.jsx)("input",{type:"submit",className:"hidden"}),null==r?void 0:r.map((function(e,t){return(0,Q.jsx)("div",{className:"border p-4",ref:0===t?s:void 0,children:(0,Q.jsx)(K.CheckboxControl,{label:e.title,checked:i(e),onChange:function(){return o(e)}})},e.id)}))]})]})]})},fetcher:Be,fetchData:Ue}],["site-type-select",{component:function(){var r=Me((function(e){return e.siteType})),n=or((function(e){return e.nextPage})),o=Kt((0,e.useState)([]),2),i=o[0],a=o[1],s=Kt((0,e.useState)(""),2),u=s[0],c=s[1],l=Kt((0,e.useState)(!0),2),f=l[0],d=l[1],h=(0,e.useRef)(null),p=Ce(tr,er),y=p.data,v=p.loading;(0,e.useEffect)((function(){var e=requestAnimationFrame((function(){return h.current.focus()}));return function(){return cancelAnimationFrame(e)}}),[h]),(0,e.useEffect)((function(){if(!(v||null!=r&&r.slug)){var e=y.find((function(e){return"default"===e.slug}));e&&Me.getState().setSiteType({label:e.title,recordId:e.id,slug:e.slug})}}),[v,null==r?void 0:r.slug,y]),(0,e.useEffect)((function(){v||((null==u?void 0:u.length)>0?a(null==y?void 0:y.filter((function(e){var t=e.title,r=e.keywords,n=null==u?void 0:u.toLowerCase();return!n||(t.toLowerCase().indexOf(n)>-1||!(null==r||!r.length)&&r.find((function(e){return e.toLowerCase().indexOf(n)>-1})))}))):(a(null==y?void 0:y.filter((function(e){return e.featured}))),d(!0)))}),[y,u,v]),(0,e.useEffect)((function(){v||a(f?y.filter((function(e){return e.featured})):y)}),[y,f,v]);var m=function(){var e,t=(e=ne().mark((function e(t){return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Me.getState().setSiteType({label:t.title,recordId:t.id,slug:t.slug}),window.localStorage.removeItem("extendify-global-state"),e.next=4,r={siteType:{title:t.title,slug:t.slug}},ie.post("library/site-type",r);case 4:n();case 5:case"end":return e.stop()}var r}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){$t(i,n,o,a,s,"next",e)}function s(e){$t(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return(0,Q.jsxs)(ar,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("What is your site about?","extendify")}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("Search for the industry that best suits your site.","extendify")})]}),(0,Q.jsxs)("div",{className:"w-80",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("Choose a site industry:","extendify")}),(0,Q.jsxs)("div",{className:"search-panel flex items-center justify-center relative mb-8",children:[(0,Q.jsx)("input",{ref:h,type:"text",className:"w-full border h-12 input-focus",value:u,onChange:function(e){return c(e.target.value)},placeholder:(0,t.__)("Search...","extendify")}),(0,Q.jsx)(jt,{className:"icon-search"})]}),v&&(0,Q.jsx)("p",{children:(0,t.__)("Loading...","extendify")}),(null==i?void 0:i.length)>0&&(0,Q.jsxs)("div",{children:[(0,Q.jsxs)("div",{className:"flex justify-between mb-3",children:[(0,Q.jsx)("p",{className:"text-left uppercase text-xss m-0",children:(0,t.__)("Industries","extendify")}),(null==u?void 0:u.length)>0?null:(0,Q.jsx)("button",{type:"button",className:"bg-transparent hover:text-partner-primary-bg p-0 text-partner-primary-bg text-xs underline",onClick:function(){d((function(e){return!e})),h.current.focus()},children:f?(0,t.__)("Show all","extendify"):(0,t.__)("Show less","extendify")})]}),(0,Q.jsx)("div",{className:"overflow-y-auto p-2 -m-2",style:{maxHeight:"360px"},children:i.map((function(e){return(0,Q.jsx)(rr,{selectSiteType:m,option:e},e.id)}))})]})]})]})},fetcher:er,fetchData:tr}],["site-style-select",{component:function(){var r,n=Me((function(e){return e.siteType})),o=or((function(e){return e.nextPage})),i=Ce(Gt,Xt),a=i.data,s=i.loading,u=function(e){Me.getState().setStyle(e),o()},c=function(){var e=Z().cache;return function(t){return e.get(Zt(t,e))}}();return(0,e.useEffect)((function(){null!=a&&a.length&&!Me.getState().style&&Me.getState().setStyle(a[0])}),[a]),(0,Q.jsxs)(ar,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.sprintf)((0,t.__)("Now pick a design for your new %s site.","extendify"),null==n||null===(r=n.label)||void 0===r?void 0:r.toLowerCase())}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("You can personalize this later.","extendify")})]}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:s?(0,t.__)("Please wait a moment while we generate style previews...","extendify"):(0,t.__)("Pick your style","extendify")}),(0,Q.jsx)("div",{className:"button-card-wrap",children:null==a?void 0:a.map((function(e){return(0,Q.jsx)(Tt,{style:e,selectStyle:u,blockHeight:590,onHover:function(){return function(e){if(e){var t=0;return window.clearTimeout(t),t=window.setTimeout((function(){var t=c("layout-types");null==t||t.forEach((function(t){var r={siteType:n.slug,layoutType:t.slug,baseLayout:"home"===t.slug?null==e?void 0:e.homeBaseLayout:null,kit:"home"!==t.slug?null==e?void 0:e.kit:null};V(r,(function(e){return null!=e&&e.length?e:Dt(r)}))}))}),100),function(){window.clearTimeout(t)}}}(e)}},e.slug)}))})]})]})}}],["site-pages-select",{component:function(){var r=Ce(zt,Yt).data,n=Bt((0,e.useState)(!1),2),o=n[0],i=n[1],a=Me((function(e){return e.pages}));return(0,e.useEffect)((function(){i((null==a?void 0:a.length)===(null==r?void 0:r.length))}),[a,r]),(0,e.useEffect)((function(){null==r||r.map((function(e){Me.getState().addPage(e)}))}),[r]),(0,Q.jsxs)(ar,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("What pages do you want on this site?","extendify")}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("You can add more later","extendify")})]}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsxs)("div",{className:"flex justify-between",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("Pick the pages you'd like to add to your site","extendify")}),(0,Q.jsx)(K.CheckboxControl,{label:(0,t.__)("Include all pages","extendify"),checked:o,onChange:function(){null==r||r.map((function(e){o?Me.getState().removePage(e):Me.getState().addPage(e)}))}})]}),(0,Q.jsx)("div",{className:"grid w-full grid-cols-2 gap-8",children:null==r?void 0:r.map((function(e){return(0,Q.jsx)(Mt,{lock:!1,page:e,blockHeight:390},e.id)}))})]})]})},fetcher:Yt,fetchData:zt}],["site-summary",{component:function(){var e=Me((function(e){return e.siteType})),r=Me((function(e){return e.style})),n=Me((function(e){return e.pages})),o=or((function(e){return e.setPage}));return(0,Q.jsxs)(ar,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("Let's launch your site!","extendify")}),(0,Q.jsx)("p",{className:"text-base",children:(0,t.__)("Review your site configuration.","extendify")})]}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("Site settings","extendify")}),(0,Q.jsxs)("div",{className:"flex flex-col space-y-8",children:[(0,Q.jsxs)("div",{className:"flex items-center",children:[(0,Q.jsx)("div",{className:"w-20 flex-shrink-0 text-base",children:(0,t.__)("Industry:","extendify")}),null!=e&&e.label?(0,Q.jsx)("div",{className:"p-4 py-2 rounded-lg text-base flex bg-transparent border border-gray-600 cursor-pointer",onClick:function(){return o("site-type-select")},title:(0,t.__)("Press to change the site type","extendify"),children:e.label}):(0,Q.jsx)("button",{onClick:function(){return o("site-type-select")},className:"bg-transparent text-partner-primary underline",children:(0,t.__)("Press to set a site type","extendify")})]}),(0,Q.jsxs)("div",{className:"flex items-start",children:[(0,Q.jsx)("div",{className:"w-20 flex-shrink-0 text-base",children:(0,t.__)("Style:","extendify")}),null!=r&&r.label?(0,Q.jsx)("div",{className:"w-80 cursor-pointer overflow-hidden border rounded-lg p-4",onClick:function(){return o("site-style-select")},title:(0,t.__)("Press to change the site style","extendify"),children:(0,Q.jsx)(Tt,{style:r,blockHeight:350})}):(0,Q.jsx)("button",{onClick:function(){return o("site-style-select")},className:"bg-transparent text-partner-primary underline",children:(0,t.__)("Press to set a style type","extendify")})]}),(0,Q.jsxs)("div",{className:"flex items-start",children:[(0,Q.jsx)("div",{className:"w-20 flex-shrink-0 text-base",children:(0,t.__)("Pages:","extendify")}),n.length>0?(0,Q.jsx)("div",{className:"flex items-start space-x-2 cursor-pointer w-full",onClick:function(){return o("site-pages-select")},title:(0,t.__)("Press to change the selected pages","extendify"),children:(0,Q.jsx)("div",{className:"grid w-full grid-cols-3 gap-4",children:n.map((function(e){return(0,Q.jsx)(Mt,{lock:!0,page:e,blockHeight:175},e.id)}))})}):(0,Q.jsx)("button",{onClick:function(){return o("site-pages-select")},className:"bg-transparent text-partner-primary underline",children:(0,t.__)("Press to set your pages","extendify")})]})]})]})]})}}]],or=me(ge((function(e,t){return{pages:new Map(nr),currentPageIndex:0,count:function(){return t().pages.size},pageOrder:function(){return Array.from(t().pages.keys())},currentPageData:function(){return t().pages.get(t().pageOrder()[t().currentPageIndex])},nextPageData:function(){var e=t().currentPageIndex+1;return e>t().pageOrder().length-1?{}:t().pages.get(t().pageOrder()[e])},setPage:function(r){"string"==typeof r&&(r=t().pageOrder().indexOf(r)),r>t().pageOrder().length-1||r<0||e({currentPageIndex:r})},nextPage:function(){t().setPage(t().currentPageIndex+1)},previousPage:function(){t().setPage(t().currentPageIndex-1)}}}))),ir=function(){var e=or((function(e){return e.nextPage})),r=or((function(e){return e.previousPage})),n=or((function(e){return e.currentPageIndex})),o=or((function(e){return e.count()})),i=Me((function(e){return e.canLaunch()})),a=n===o-1,s=0===n;return(0,Q.jsxs)("div",{className:"flex items-center justify-between space-x-2",children:[(0,Q.jsx)("div",{className:"flex-1"}),(0,Q.jsx)(pe,{currentPageIndex:n,totalPages:o}),(0,Q.jsxs)("div",{className:"flex space-x-2 flex-1 justify-end",children:[s||(0,Q.jsx)("button",{className:"px-4 py-3 bg-transparent hover:bg-gray-200 font-medium button-focus focus:bg-gray-100",type:"button",onClick:r,children:(0,t.__)("Previous","extendify")}),i&&a?(0,Q.jsx)("button",{className:"px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",type:"button",onClick:function(){return Pe.setState({generating:!0})},children:(0,t.__)("Launch site","extendify")}):(0,Q.jsx)("button",{className:"px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",type:"button",onClick:e,children:(0,t.__)("Next","extendify")})]})]})},ar=function(e){var r,n,o,i=e.children,a=e.includeNav,s=void 0===a||a;return(0,Q.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,Q.jsxs)("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-2xl flex-shrink-0",children:[(0,Q.jsxs)("div",{className:"max-w-sm pr-8",children:[(null===(r=window.extOnbData)||void 0===r?void 0:r.partnerLogo)&&(0,Q.jsx)("div",{className:"pb-8",children:(0,Q.jsx)("img",{src:window.extOnbData.partnerLogo,alt:null!==(n=null===(o=window.extOnbData)||void 0===o?void 0:o.partnerName)&&void 0!==n?n:""})}),i[0]]}),(0,Q.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Q.jsx)("span",{className:"opacity-70 text-xs",children:(0,t.__)("Powered by","extendify")}),(0,Q.jsxs)("span",{className:"relative",children:[(0,Q.jsx)(ft,{className:"logo text-white w-28"}),(0,Q.jsx)("span",{className:"absolute -bottom-2 right-3 font-semibold tracking-tight",children:(0,t.__)("Launch","extendify")})]})]})]}),(0,Q.jsxs)("div",{className:"flex-grow md:h-screen md:overflow-y-scroll",children:[s?(0,Q.jsx)("div",{className:"py-4 px-8 sticky top-0 bg-white z-50",children:(0,Q.jsx)(ir,{})}):null,(0,Q.jsx)("div",{className:"mt-8 p-8 lg:px-12 flex justify-center",children:i[1]})]})]})};function sr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return ur(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ur(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function ur(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cr(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}var lr=function(){var e,t=(e=ne().mark((function e(t,r,n){var o,i,a,s,u,c,l,f,d,h;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o={},i=sr(t),e.prev=2,i.s();case 4:if((a=i.n()).done){e.next=18;break}return s=a.value,e.next=8,se({siteType:r.slug,layoutType:s.slug,baseLayout:"home"===s.slug?null==n?void 0:n.homeBaseLayout:null,kit:"home"!==s.slug?null==n?void 0:n.kit:null});case 8:return u=e.sent,c="",null!=u&&u.data&&(c=[null==u||null===(l=u.data)||void 0===l?void 0:l.code,null==u||null===(f=u.data)||void 0===f?void 0:f.code2].filter(Boolean).join("")),d=s.slug,e.next=14,de({title:s.title,name:d,status:"publish",content:c});case 14:h=e.sent,o[d]={id:h.id,title:s.title};case 16:e.next=4;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(2),i.e(e.t0);case 23:return e.prev=23,i.f(),e.finish(23);case 26:if(null==o||!o.home){e.next=34;break}return e.next=29,le("show_on_front","page");case 29:return e.next=31,le("page_on_front",o.home.id);case 31:if(null==o||!o.blog){e.next=34;break}return e.next=34,le("page_for_posts",o.blog);case 34:return e.next=36,le("extendify_onboarding_completed",(new Date).toISOString());case 36:return e.abrupt("return",o);case 37:case"end":return e.stop()}}),e,null,[[2,20,23,26]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){cr(i,n,o,a,s,"next",e)}function s(e){cr(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e,r,n){return t.apply(this,arguments)}}(),fr=function(e){return function(e){return ie.post("onboarding/save-theme-json",{themeJson:e})}(e.themeJson)},dr=function(){return(0,Q.jsxs)(ar,{includeNav:!1,children:[(0,Q.jsx)("div",{children:(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("We encountered an error.","extendify")})}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("We encountered an error that we can't recover from. You can attempt to start over by pressing the button below.","extendify")}),(0,Q.jsx)("div",{className:"flex flex-col items-start space-y-4 text-base",children:(0,Q.jsx)("a",{href:"".concat(window.extOnbData.site,"/wp-admin/post-new.php?extendify=onboarding"),children:(0,t.__)("Start over")})})]})]})};function hr(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function pr(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){hr(i,n,o,a,s,"next",e)}function s(e){hr(i,n,o,a,s,"throw",e)}a(void 0)}))}}function yr(e){return function(e){if(Array.isArray(e))return gr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||mr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||mr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mr(e,t){if(e){if("string"==typeof e)return gr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gr(e,t):void 0}}function gr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var br=function(){var r=Me((function(e){return e.canLaunch()})),n=Me(),o=n.siteType,i=n.siteInformation,a=n.pages,s=n.style,u=n.goals,c=vr((0,e.useState)([]),2),l=c[0],f=c[1],d=(0,te.useSelect)((function(e){return e("core").getCurrentTheme()})),h=function(e){f((function(t){return[e].concat(yr(t))}))},p=(0,e.useCallback)(pr(ne().mark((function e(){var n;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}throw new Error((0,t.__)("Site is not ready to launch.","extendify"));case 2:return h((0,t.__)("Preparing your website","extendify")),e.next=5,le("blogname",i.title);case 5:return e.next=7,new Promise((function(e){return setTimeout(e,2e3)}));case 7:return h((0,t.__)("Installing your theme","extendify")),e.next=10,fr(s);case 10:return e.next=12,new Promise((function(e){return setTimeout(e,2e3)}));case 12:return h((0,t.__)("Inserting header area","extendify")),e.next=15,he("".concat(null==d?void 0:d.stylesheet,"//header"),null==s?void 0:s.headerCode);case 15:return e.next=17,new Promise((function(e){return setTimeout(e,2e3)}));case 17:return h((0,t.__)("Generating page content","extendify")),e.next=20,lr(a,o,s);case 20:return n=e.sent,e.next=23,new Promise((function(e){return setTimeout(e,2e3)}));case 23:return h((0,t.__)("Inserting footer area","extendify")),e.next=26,he("".concat(null==d?void 0:d.stylesheet,"//footer"),null==s?void 0:s.footerCode);case 26:return e.next=28,new Promise((function(e){return setTimeout(e,2e3)}));case 28:return h((0,t.__)("Finalizing your site","extendify")),e.next=31,c={siteType:[o.recordId],style:[s.recordId],pages:null==a?void 0:a.map((function(e){return e.id})),goals:null==u?void 0:u.map((function(e){return e.id}))},ie.post("onboarding/orders",c);case 31:return e.abrupt("return",n);case 32:case"end":return e.stop()}var c}),e)}))),[a,u,o,s,r,null==d?void 0:d.stylesheet,i.title]);return(0,e.useEffect)((function(){null!=d&&d.stylesheet&&p().then((function(e){Pe.setState({generatedPages:e})}))}),[p,null==d?void 0:d.stylesheet]),r?(0,Q.jsxs)(ar,{includeNav:!1,children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("Building your site now!","extendify")}),(0,Q.jsx)("p",{className:"text-base",children:(0,t.__)("Please don't close the window.","extendify")})]}),(0,Q.jsx)("div",{className:"w-full",children:(0,Q.jsx)("div",{className:"flex flex-col items-start space-y-4",children:l.map((function(e,r){return r?(0,Q.jsxs)("div",{className:"ml-12 text-base text-gray-500 flex",children:[(0,Q.jsx)(Qe,{className:"text-green-500 w-6 mr-1"}),(0,t.sprintf)(e,"...")]},e):(0,Q.jsxs)("div",{className:"text-4xl flex space-x-4 items-center",children:[(0,Q.jsx)(Ct,{className:"spin w-10 mr-2"}),(0,t.sprintf)(e,"...")]},e)}))})})]}):(0,Q.jsx)(dr,{})};function wr(e){return(function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{const[r,n=""]=t.split("=").filter(Boolean).map(decodeURIComponent);if(r){!function(e,t,r){const n=t.length,o=n-1;for(let i=0;i<n;i++){let n=t[i];!n&&Array.isArray(e)&&(n=e.length.toString()),n=["__proto__","constructor","prototype"].includes(n)?n.toUpperCase():n;const a=!isNaN(Number(t[i+1]));e[n]=i===o?r:e[n]||(a?[]:{}),Array.isArray(e[n])&&!a&&(e[n]={...e[n]}),e=e[n]}}(e,r.replace(/\]/g,"").split("["),n)}return e}),Object.create(null))}function xr(e){let t="";const r=Object.entries(e);let n;for(;n=r.shift();){let[e,o]=n;if(Array.isArray(o)||o&&o.constructor===Object){const t=Object.entries(o).reverse();for(const[n,o]of t)r.unshift([`${e}[${n}]`,o])}else void 0!==o&&(null===o&&(o=""),t+="&"+[e,o].map(encodeURIComponent).join("="))}return t.substr(1)}function jr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;let r=e;const n=e.indexOf("?");return-1!==n&&(t=Object.assign(wr(e),t),r=r.substr(0,n)),r+"?"+xr(t)}var Or={};!function e(t,r,n,o){var i=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function a(){}function s(e){var n=r.exports.Promise,o=void 0!==n?n:t.Promise;return"function"==typeof o?new o(e):(e(a,a),null)}var u,c,l,f,d,h,p,y,v,m=(l=Math.floor(1e3/60),f={},d=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(u=function(e){var t=Math.random();return f[t]=requestAnimationFrame((function r(n){d===n||d+l-1<n?(d=n,delete f[t],e()):f[t]=requestAnimationFrame(r)})),t},c=function(e){f[e]&&cancelAnimationFrame(f[e])}):(u=function(e){return setTimeout(e,l)},c=function(e){return clearTimeout(e)}),{frame:u,cancel:c}),g=(y={},function(){if(h)return h;if(!n&&i){var t=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{h=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,r){e.postMessage({options:t||{},callback:r})}e.init=function(t){var r=t.transferControlToOffscreen();e.postMessage({canvas:r},[r])},e.fire=function(r,n,o){if(p)return t(r,null),p;var i=Math.random().toString(36).slice(2);return p=s((function(n){function a(t){t.data.callback===i&&(delete y[i],e.removeEventListener("message",a),p=null,o(),n())}e.addEventListener("message",a),t(r,i),y[i]=a.bind(null,{data:{callback:i}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),y)y[t](),delete y[t]}}(h)}return h}),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,r){return function(e,t){return t?t(e):e}(e&&null!=e[t]?e[t]:b[t],r)}function x(e){return e<0?0:Math.floor(e)}function j(e){return parseInt(e,16)}function O(e){return e.map(E)}function E(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:j(t.substring(0,2)),g:j(t.substring(2,4)),b:j(t.substring(4,6))}}function S(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function _(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function P(e,t,r,i,a){var u,c,l=t.slice(),f=e.getContext("2d"),d=s((function(t){function s(){u=c=null,f.clearRect(0,0,i.width,i.height),a(),t()}u=m.frame((function t(){!n||i.width===o.width&&i.height===o.height||(i.width=e.width=o.width,i.height=e.height=o.height),i.width||i.height||(r(e),i.width=e.width,i.height=e.height),f.clearRect(0,0,i.width,i.height),l=l.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 r=t.tick++/t.totalTicks,n=t.x+t.random*t.tiltCos,o=t.y+t.random*t.tiltSin,i=t.wobbleX+t.random*t.tiltCos,a=t.wobbleY+t.random*t.tiltSin;return e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-r)+")",e.beginPath(),"circle"===t.shape?e.ellipse?e.ellipse(t.x,t.y,Math.abs(i-n)*t.ovalScalar,Math.abs(a-o)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,r,n,o,i,a,s,u){e.save(),e.translate(t,r),e.rotate(i),e.scale(n,o),e.arc(0,0,1,a,s,u),e.restore()}(e,t.x,t.y,Math.abs(i-n)*t.ovalScalar,Math.abs(a-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(i),Math.floor(a)),e.lineTo(Math.floor(n),Math.floor(t.wobbleY))),e.closePath(),e.fill(),t.tick<t.totalTicks}(f,e)})),l.length?u=m.frame(t):s()})),c=s}));return{addFettis:function(e){return l=l.concat(e),d},canvas:e,promise:d,reset:function(){u&&m.cancel(u),c&&c()}}}function C(e,r){var n,o=!e,a=!!w(r||{},"resize"),u=w(r,"disableForReducedMotion",Boolean),c=i&&!!w(r||{},"useWorker")?g():null,l=o?S:_,f=!(!e||!c)&&!!e.__confetti_initialized,d="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function h(t,r,o){for(var i,a,s,u,c,f=w(t,"particleCount",x),d=w(t,"angle",Number),h=w(t,"spread",Number),p=w(t,"startVelocity",Number),y=w(t,"decay",Number),v=w(t,"gravity",Number),m=w(t,"drift",Number),g=w(t,"colors",O),b=w(t,"ticks",Number),j=w(t,"shapes"),E=w(t,"scalar"),S=function(e){var t=w(e,"origin",Object);return t.x=w(t,"x",Number),t.y=w(t,"y",Number),t}(t),_=f,C=[],A=e.width*S.x,N=e.height*S.y;_--;)C.push((i={x:A,y:N,angle:d,spread:h,startVelocity:p,color:g[_%g.length],shape:j[(u=0,c=j.length,Math.floor(Math.random()*(c-u))+u)],ticks:b,decay:y,gravity:v,drift:m,scalar:E},a=void 0,s=void 0,a=i.angle*(Math.PI/180),s=i.spread*(Math.PI/180),{x:i.x,y:i.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*i.startVelocity+Math.random()*i.startVelocity,angle2D:-a+(.5*s-Math.random()*s),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:i.color,shape:i.shape,tick:0,totalTicks:i.ticks,decay:i.decay,drift:i.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*i.gravity,ovalScalar:.6,scalar:i.scalar}));return n?n.addFettis(C):(n=P(e,C,l,r,o)).promise}function p(r){var i=u||w(r,"disableForReducedMotion",Boolean),p=w(r,"zIndex",Number);if(i&&d)return s((function(e){e()}));o&&n?e=n.canvas:o&&!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}(p),document.body.appendChild(e)),a&&!f&&l(e);var y={width:e.width,height:e.height};function v(){if(c){var t={getBoundingClientRect:function(){if(!o)return e.getBoundingClientRect()}};return l(t),void c.postMessage({resize:{width:t.width,height:t.height}})}y.width=y.height=null}function m(){n=null,a&&t.removeEventListener("resize",v),o&&e&&(document.body.removeChild(e),e=null,f=!1)}return c&&!f&&c.init(e),f=!0,c&&(e.__confetti_initialized=!0),a&&t.addEventListener("resize",v,!1),c?c.fire(r,y,m):h(r,y,m)}return p.reset=function(){c&&c.reset(),n&&n.reset()},p}function A(){return v||(v=C(null,{useWorker:!0,resize:!0})),v}r.exports=function(){return A().apply(this,arguments)},r.exports.reset=function(){A().reset()},r.exports.create=C}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),Or,!1);const Er=Or.exports;Or.exports.create;function Sr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sr(Object(r),!0).forEach((function(t){Pr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Cr=function(){var r,n,o=Pe((function(e){return e.generatedPages})),i=Me((function(e){return e.siteType}));return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,e.useEffect)((function(){var e=Date.now()+r;!function r(){Er(_r(_r({},t),{},{disableForReducedMotion:!0,zIndex:1e5})),Date.now()<e&&requestAnimationFrame(r)}()}),[t,r])}({particleCount:2,angle:60,spread:55,origin:{x:0,y:.7},colors:["var(--ext-partner-theme-primary-text, #ffffff)"]},3e3),(0,Q.jsxs)(ar,{includeNav:!1,children:[(0,Q.jsx)("div",{children:(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.sprintf)((0,t.__)("Your site has been successfully created. Enjoy!","extendify"),null==i||null===(r=i.label)||void 0===r?void 0:r.toLowerCase())})}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base text-center",children:(0,t.__)("Your site is ready! You can now go to your site and start editing content.","extendify")}),(0,Q.jsxs)("div",{className:"text-center w-360 flex flex-col justify-center items-center -mt-150",children:[(0,Q.jsx)(Qe,{className:"w-16 bg-partner-primary-bg text-partner-primary-text rounded-full"}),(0,Q.jsx)("h3",{className:"mb-8",children:(0,t.__)("All Done","extendify")}),(0,Q.jsx)("div",{className:"flex space-x-4",children:(0,Q.jsx)("a",{className:"px-4 py-3 rounded-md bg-gray-200 text-black no-underline hover:bg-partner-primary-bg hover:text-partner-primary-text font-medium",target:"_blank",rel:"noreferrer",href:window.extOnbData.home,children:(0,t.__)("View Site","extendify")})}),(0,Q.jsxs)("div",{className:"text-left self-start px-10 py-4 w-full",children:[(0,Q.jsx)("h4",{className:"",children:(0,t.__)("New Pages:","extendify")}),(0,Q.jsx)("div",{className:"",children:null===(n=Object.values(o))||void 0===n?void 0:n.map((function(e){return(0,Q.jsxs)("div",{className:"flex items-center mb-2",children:[(0,Q.jsx)(Qe,{className:"w-6 text-green-500"}),(0,Q.jsx)("a",{target:"_blank",href:jr("post.php",{post:e.id,action:"edit"}),className:"text-primary no-underline hover:underline ml-2 text-base",rel:"noreferrer",children:e.title})]},e.id)}))})]})]})]})]})};function Ar(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Nr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Tr,Rr=function(){var r,n,o=Me((function(e){return e.resetState})),i=Ar((0,e.useState)(!1),2),a=i[0],s=i[1],u=or((function(e){return e.currentPageData()})).component,c=or((function(e){return e.nextPageData()})),l=c.fetcher,f=c.fetchData,d=Z().mutate,h=Pe((function(e){return e.generating})),p=Pe((function(e){return e.generatedPages})),y=Ar((0,e.useState)(!1),2),v=y[0],m=y[1];return n=(0,te.useSelect)((function(e){return e("core/edit-post").isFeatureActive("welcomeGuide")}),[]),(0,e.useEffect)((function(){n&&(0,te.dispatch)("core/edit-post").toggleFeature("welcomeGuide")}),[n]),(0,e.useLayoutEffect)((function(){var e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){return document.body.style.overflow=e}}),[]),(0,e.useEffect)((function(){if(v){var e=setTimeout((function(){window.dispatchEvent(new CustomEvent("extendify::close-library",{bubbles:!0}))}),0);return document.title=(0,t.__)("Extendify Launch","extendify"),function(){return clearTimeout(e)}}}),[v]),(0,e.useEffect)((function(){o();var e=new URLSearchParams(window.location.search);m(["onboarding"].includes(e.get("extendify")))}),[o]),(0,e.useEffect)((function(){l&&d(f,l)}),[l,d,f]),v?null!==(r=Object.keys(p))&&void 0!==r&&r.length?(0,Q.jsx)("div",{className:"h-screen w-screen fixed z-high inset-0 overflow-y-auto md:overflow-hidden bg-white",children:(0,Q.jsx)(Cr,{})}):(0,Q.jsxs)(G,{value:{errorRetryInterval:1e3,onErrorRetry:function(e,t){var r;console.error(t,e),403!==(null==e||null===(r=e.data)||void 0===r?void 0:r.status)?a||(s(!0),setTimeout((function(){s(!1)}),5e3)):window.location.reload()}},children:[(0,Q.jsx)("div",{style:{zIndex:1e5},className:"h-screen w-screen fixed inset-0 overflow-y-auto md:overflow-hidden bg-white",children:h?(0,Q.jsx)(br,{}):(0,Q.jsx)(u,{})}),a&&(0,Q.jsx)(ee,{})]}):null},kr=Object.assign(document.createElement("div"),{id:"extendify-onboarding-root",className:"extendify-onboarding"});document.body.append(kr),Tr=function(){window._wpLoadBlockEditor&&(0,e.render)((0,Q.jsx)(Rr,{}),kr)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",Tr):Tr())})()})();
|
1 |
/*! For license information please see extendify-onboarding.js.LICENSE.txt */
|
2 |
+
(()=>{var e={7135:(e,t,r)=>{e.exports=r(6248)},4206:(e,t,r)=>{e.exports=r(8057)},4387:(e,t,r)=>{"use strict";var n=r(7485),o=r(4570),i=r(2940),a=r(581),s=r(574),u=r(3845),c=r(8338),l=r(4832),f=r(7354),d=r(8870),h=r(4906);e.exports=function(e){return new Promise((function(t,r){var p,y=e.data,v=e.headers,m=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}n.isFormData(y)&&n.isStandardBrowserEnv()&&delete v["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(w+":"+x)}var j=s(e.baseURL,e.url);function O(){if(b){var n="getAllResponseHeaders"in b?u(b.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:e,request:b};o((function(e){t(e),g()}),(function(e){r(e),g()}),i),b=null}}if(b.open(e.method.toUpperCase(),a(j,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=O:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(O)},b.onabort=function(){b&&(r(new f("Request aborted",f.ECONNABORTED,e,b)),b=null)},b.onerror=function(){r(new f("Network Error",f.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new f(t,n.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,b)),b=null},n.isStandardBrowserEnv()){var E=(e.withCredentials||c(j))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;E&&(v[e.xsrfHeaderName]=E)}"setRequestHeader"in b&&n.forEach(v,(function(e,t){void 0===y&&"content-type"===t.toLowerCase()?delete v[t]:b.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),m&&"json"!==m&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){b&&(r(!e||e&&e.type?new d:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),y||(y=null);var S=h(j);S&&-1===["http","https","file"].indexOf(S)?r(new f("Unsupported protocol "+S+":",f.ERR_BAD_REQUEST,e)):b.send(y)}))}},8057:(e,t,r)=>{"use strict";var n=r(7485),o=r(875),i=r(5029),a=r(4941);var s=function e(t){var r=new i(t),s=o(i.prototype.request,r);return n.extend(s,i.prototype,r),n.extend(s,r),s.create=function(r){return e(a(t,r))},s}(r(8396));s.Axios=i,s.CanceledError=r(8870),s.CancelToken=r(4603),s.isCancel=r(1475),s.VERSION=r(3345).version,s.toFormData=r(1020),s.AxiosError=r(7354),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=r(5739),s.isAxiosError=r(5835),e.exports=s,e.exports.default=s},4603:(e,t,r)=>{"use strict";var n=r(8870);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},8870:(e,t,r)=>{"use strict";var n=r(7354);function o(e){n.call(this,null==e?"canceled":e,n.ERR_CANCELED),this.name="CanceledError"}r(7485).inherits(o,n,{__CANCEL__:!0}),e.exports=o},1475:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},5029:(e,t,r)=>{"use strict";var n=r(7485),o=r(581),i=r(8096),a=r(5009),s=r(4941),u=r(574),c=r(6144),l=c.validators;function f(e){this.defaults=e,this.interceptors={request:new i,response:new i}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!o){var f=[a,void 0];for(Array.prototype.unshift.apply(f,n),f=f.concat(u),i=Promise.resolve(t);f.length;)i=i.then(f.shift(),f.shift());return i}for(var d=t;n.length;){var h=n.shift(),p=n.shift();try{d=h(d)}catch(e){p(e);break}}try{i=a(d)}catch(e){return Promise.reject(e)}for(;u.length;)i=i.then(u.shift(),u.shift());return i},f.prototype.getUri=function(e){e=s(this.defaults,e);var t=u(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},n.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},7354:(e,t,r)=>{"use strict";var n=r(7485);function o(e,t,r,n,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}n.inherits(o,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}}});var i=o.prototype,a={};["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"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(o,a),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,r,a,s,u){var c=Object.create(i);return n.toFlatObject(e,c,(function(e){return e!==Error.prototype})),o.call(c,e.message,t,r,a,s),c.name=e.name,u&&Object.assign(c,u),c},e.exports=o},8096:(e,t,r)=>{"use strict";var n=r(7485);function o(){this.handlers=[]}o.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},574:(e,t,r)=>{"use strict";var n=r(2642),o=r(2288);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},5009:(e,t,r)=>{"use strict";var n=r(7485),o=r(9212),i=r(1475),a=r(8396),s=r(8870);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},4941:(e,t,r)=>{"use strict";var n=r(7485);e.exports=function(e,t){t=t||{};var r={};function o(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function i(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(e[r],t[r])}function a(e){if(!n.isUndefined(t[e]))return o(void 0,t[e])}function s(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(void 0,t[r])}function u(r){return r in t?o(e[r],t[r]):r in e?o(void 0,e[r]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,o=t(e);n.isUndefined(o)&&t!==u||(r[e]=o)})),r}},4570:(e,t,r)=>{"use strict";var n=r(7354);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(new n("Request failed with status code "+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}},9212:(e,t,r)=>{"use strict";var n=r(7485),o=r(8396);e.exports=function(e,t,r){var i=this||o;return n.forEach(r,(function(r){e=r.call(i,e,t)})),e}},8396:(e,t,r)=>{"use strict";var n=r(7061),o=r(7485),i=r(1446),a=r(7354),s=r(4832),u=r(1020),c={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var f,d={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==n&&"[object process]"===Object.prototype.toString.call(n))&&(f=r(4387)),f),transformRequest:[function(e,t){if(i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))return e;if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,n=o.isObject(e),a=t&&t["Content-Type"];if((r=o.isFileList(e))||n&&"multipart/form-data"===a){var s=this.env&&this.env.FormData;return u(r?{"files[]":e}:e,s&&new s)}return n||"application/json"===a?(l(t,"application/json"),function(e,t,r){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,r=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,i=!r&&"json"===this.responseType;if(i||n&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a.from(e,a.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:r(8750)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){d.headers[e]=o.merge(c)})),e.exports=d},4832:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},3345:e=>{e.exports={version:"0.27.2"}},875:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},581:(e,t,r)=>{"use strict";var n=r(7485);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},2288:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},2940:(e,t,r)=>{"use strict";var n=r(7485);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),n.isString(o)&&s.push("path="+o),n.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var 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(){}}},2642:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},5835:(e,t,r)=>{"use strict";var n=r(7485);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},8338:(e,t,r)=>{"use strict";var n=r(7485);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},1446:(e,t,r)=>{"use strict";var n=r(7485);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},8750:e=>{e.exports=null},3845:(e,t,r)=>{"use strict";var n=r(7485),o=["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"];e.exports=function(e){var t,r,i,a={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},4906:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},5739:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1020:(e,t,r)=>{"use strict";var n=r(816).Buffer,o=r(7485);e.exports=function(e,t){t=t||new FormData;var r=[];function i(e){return null===e?"":o.isDate(e)?e.toISOString():o.isArrayBuffer(e)||o.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):n.from(e):e}return function e(n,a){if(o.isPlainObject(n)||o.isArray(n)){if(-1!==r.indexOf(n))throw Error("Circular reference detected in "+a);r.push(n),o.forEach(n,(function(r,n){if(!o.isUndefined(r)){var s,u=a?a+"."+n:n;if(r&&!a&&"object"==typeof r)if(o.endsWith(n,"{}"))r=JSON.stringify(r);else if(o.endsWith(n,"[]")&&(s=o.toArray(r)))return void s.forEach((function(e){!o.isUndefined(e)&&t.append(u,i(e))}));e(r,u)}})),r.pop()}else t.append(a,i(n))}(e),t}},6144:(e,t,r)=>{"use strict";var n=r(3345).version,o=r(7354),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,r){function i(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new o(i(n," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),i=n.length;i-- >0;){var a=n[i],s=t[a];if(s){var u=e[a],c=void 0===u||s(u,a,e);if(!0!==c)throw new o("option "+a+" must be "+c,o.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}},validators:i}},7485:(e,t,r)=>{"use strict";var n,o=r(875),i=Object.prototype.toString,a=(n=Object.create(null),function(e){var t=i.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var l=s("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=s("Date"),p=s("File"),y=s("Blob"),v=s("FileList");function m(e){return"[object Function]"===i.call(e)}var g=s("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var w,x=(w="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return w&&e instanceof w});e.exports={isArray:u,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||m(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:d,isUndefined:c,isDate:h,isFile:p,isBlob:y,isFunction:m,isStream:function(e){return f(e)&&m(e.pipe)},isURLSearchParams:g,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:b,merge:function e(){var t={};function r(r,n){d(t[n])&&d(r)?t[n]=e(t[n],r):d(r)?t[n]=e({},r):u(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)b(arguments[n],r);return t},extend:function(e,t,r){return b(t,(function(t,n){e[n]=r&&"function"==typeof t?o(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r){var n,o,i,a={};t=t||{};do{for(o=(n=Object.getOwnPropertyNames(e)).length;o-- >0;)a[i=n[o]]||(t[i]=e[i],a[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:x,isFileList:v}},4782:(e,t)=>{"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,i=u(e),a=i[0],s=i[1],c=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),l=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t);1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=16383,s=0,u=n-o;s<u;s+=a)i.push(c(e,s,s+a>u?u:s+a));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var o,i,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},816:(e,t,r)=>{"use strict";var n=r(4782),o=r(8898),i=r(5182);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,r)}function c(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=d(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(t,r),o=(e=s(e,n)).write(t,r);o!==n&&(e=e.slice(0,o));return e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|h(t.length);return 0===(e=s(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?s(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=s(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function d(e,t){var r=t.length<0?0:0|h(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(n)return H(e).length;t=(""+t).toLowerCase(),n=!0}}function y(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,r);case"utf8":case"utf-8":return _(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return N(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,n,o){var i,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=r;i<s;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var f=!0,d=0;d<u;d++)if(c(e,i+d)!==c(t,d)){f=!1;break}if(f)return i}return-1}function b(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function w(e,t,r,n){return Y(H(t,e.length-r),e,r,n)}function x(e,t,r,n){return Y(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function j(e,t,r,n){return x(e,t,r,n)}function O(e,t,r,n){return Y(V(t),e,r,n)}function E(e,t,r,n){return Y(function(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function _(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,u,c=e[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=P));return r}(n)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==r.g.TYPED_ARRAY_SUPPORT?r.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return c(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return l(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var a=e[r];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?_(this,0,e):y.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(n,o),l=e.slice(t,r),f=0;f<s;++f)if(c[f]!==l[f]){i=c[f],a=l[f];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":return x(this,e,t,r);case"latin1":case"binary":return j(this,e,t,r);case"base64":return O(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function C(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function N(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function A(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=F(e[i]);return o}function T(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function R(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,r,n,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function L(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function I(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function D(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(e,t,r,n,i){return i||D(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function B(e,t,r,n,i){return i||D(e,0,r,8),o.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;r=new u(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},u.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||R(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||k(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||k(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);k(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);k(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return B(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return B(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=u.isBuffer(e)?e:H(new u(e,n).toString()),s=a.length;for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function V(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}},42:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&e.push(a)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var s in r)n.call(r,s)&&r[s]&&e.push(s);else e.push(r.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},8898:(e,t)=>{t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,c=u>>1,l=-7,f=r?o-1:0,d=r?-1:1,h=e[t+f];for(f+=d,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=c}return(h?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,p=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[r+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*y}},5182:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},2525:e=>{"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,u=o(e),c=1;c<arguments.length;c++){for(var l in a=Object(arguments[c]))r.call(a,l)&&(u[l]=a[l]);if(t){s=t(a);for(var f=0;f<s.length;f++)n.call(a,s[f])&&(u[s[f]]=a[s[f]])}}return u}},7061:e=>{var t,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s,u=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&d())}function d(){if(!c){var e=a(f);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new h(e,t)),1!==u.length||c||a(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},1426:(e,t,r)=>{"use strict";r(2525);var n=r(7363),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,i={},c=null,l=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,n)&&!u.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:l,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},4246:(e,t,r)=>{"use strict";e.exports=r(1426)},6248:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(e,t,r){var n=f;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=l(e,t,r);if("normal"===u.type){if(n=r.done?p:d,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(e,r,a),i}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",y={};function v(){}function m(){}function g(){}var b={};u(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==r&&n.call(x,i)&&(b=x);var j=g.prototype=v.prototype=Object.create(b);function O(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(o,i,a,s){var u=l(e[o],e,i);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function S(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,S(e,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:A}}function A(){return{value:t,done:!0}}return m.prototype=g,u(j,"constructor",g),u(g,"constructor",m),m.displayName=u(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,s,"GeneratorFunction")),e.prototype=Object.create(j),e},e.awrap=function(e){return{__await:e}},O(E.prototype),u(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new E(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(j),u(j,s,"Generator"),u(j,i,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=N,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},7363:e=>{"use strict";e.exports=React}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=wp.element,t=wp.i18n;var n=r(7363);function o(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}function i(e,t){var r,n,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(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=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++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.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],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var a,s=function(){},u=s(),c=Object,l=function(e){return e===u},f=function(e){return"function"==typeof e},d=function(e,t){return c.assign({},e,t)},h="undefined",p=function(){return typeof window!=h},y=new WeakMap,v=0,m=function(e){var t,r,n=typeof e,o=e&&e.constructor,i=o==Date;if(c(e)!==e||i||o==RegExp)t=i?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=y.get(e))return t;if(t=++v+"~",y.set(e,t),o==Array){for(t="@",r=0;r<e.length;r++)t+=m(e[r])+",";y.set(e,t)}if(o==c){t="#";for(var a=c.keys(e).sort();!l(r=a.pop());)l(e[r])||(t+=r+":"+m(e[r])+",");y.set(e,t)}}return t},g=!0,b=p(),w=typeof document!=h,x=b&&window.addEventListener?window.addEventListener.bind(window):s,j=w?document.addEventListener.bind(document):s,O=b&&window.removeEventListener?window.removeEventListener.bind(window):s,E=w?document.removeEventListener.bind(document):s,S={isOnline:function(){return g},isVisible:function(){var e=w&&document.visibilityState;return l(e)||"hidden"!==e}},_={initFocus:function(e){return j("visibilitychange",e),x("focus",e),function(){E("visibilitychange",e),O("focus",e)}},initReconnect:function(e){var t=function(){g=!0,e()},r=function(){g=!1};return x("online",t),x("offline",r),function(){O("online",t),O("offline",r)}}},P=!p()||"Deno"in window,C=function(e){return p()&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(e):setTimeout(e,1)},N=P?n.useEffect:n.useLayoutEffect,A="undefined"!=typeof navigator&&navigator.connection,T=!P&&A&&(["slow-2g","2g"].includes(A.effectiveType)||A.saveData),R=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)?m(e):"",t,e?"$swr$"+e:""]},k=new WeakMap,L=function(e,t,r,n,o,i,a){void 0===a&&(a=!0);var s=k.get(e),u=s[0],c=s[1],l=s[3],f=u[t],d=c[t];if(a&&d)for(var h=0;h<d.length;++h)d[h](r,n,o);return i&&(delete l[t],f&&f[0])?f[0](2).then((function(){return e.get(t)})):e.get(t)},I=0,D=function(){return++I},M=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(void 0,void 0,void 0,(function(){var t,r,n,o,a,s,c,h,p,y,v,m,g,b,w,x,j,O,E,S,_;return i(this,(function(i){switch(i.label){case 0:if(t=e[0],r=e[1],n=e[2],o=e[3],s=!!l((a="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||a.populateCache,c=!1!==a.revalidate,h=!1!==a.rollbackOnError,p=a.optimisticData,y=R(r),v=y[0],m=y[2],!v)return[2];if(g=k.get(t),b=g[2],e.length<3)return[2,L(t,v,t.get(v),u,u,c,!0)];if(w=n,j=D(),b[v]=[j,0],O=!l(p),E=t.get(v),O&&(S=f(p)?p(E):p,t.set(v,S),L(t,v,S)),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(),j!==b[v][0]){if(x)throw x;return[2,w]}x&&O&&h&&(s=!0,w=E,t.set(v,E)),i.label=2;case 2:return s&&(x||(f(s)&&(w=s(w,E)),t.set(v,w)),t.set(m,d(t.get(m),{error:x}))),b[v][1]=D(),[4,L(t,v,w,x,u,c,!!s)];case 3:if(_=i.sent(),x)throw x;return[2,s?_:w]}}))}))},B=function(e,t){for(var r in e)e[r][0]&&e[r][0](t)},U=function(e,t){if(!k.has(e)){var r=d(_,t),n={},o=M.bind(u,e),i=s;if(k.set(e,[n,{},{},{},o]),!P){var a=r.initFocus(setTimeout.bind(u,B.bind(u,n,0))),c=r.initReconnect(setTimeout.bind(u,B.bind(u,n,1)));i=function(){a&&a(),c&&c(),k.delete(e)}}return[e,o,i]}return[e,k.get(e)[4]]},F=U(new Map),H=F[0],V=F[1],Y=d({onLoadingSlow:s,onSuccess:s,onError:s,onErrorRetry:function(e,t,r,n,o){var i=r.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*r.errorRetryInterval;!l(i)&&a>i||setTimeout(n,s,o)},onDiscarded:s,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:function(e,t){return m(e)==m(t)},isPaused:function(){return!1},cache:H,mutate:V,fallback:{}},S),z=function(e,t){var r=d(e,t);if(t){var n=e.use,o=e.fallback,i=t.use,a=t.fallback;n&&i&&(r.use=n.concat(i)),o&&a&&(r.fallback=d(o,a))}return r},W=(0,n.createContext)({}),q=function(e){return f(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},Z=function(){return d(Y,(0,n.useContext)(W))},J=function(e,t,r){var n=t[e]||(t[e]=[]);return n.push(r),function(){var e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}},X={dedupe:!0},$=c.defineProperty((function(e){var t=e.value,r=z((0,n.useContext)(W),t),o=t&&t.provider,i=(0,n.useState)((function(){return o?U(o(r.cache||H),t):u}))[0];return i&&(r.cache=i[0],r.mutate=i[1]),N((function(){return i?i[2]:u}),[]),(0,n.createElement)(W.Provider,d(e,{value:r}))}),"default",{value:Y}),G=(a=function(e,t,r){var a=r.cache,s=r.compare,c=r.fallbackData,h=r.suspense,p=r.revalidateOnMount,y=r.refreshInterval,v=r.refreshWhenHidden,m=r.refreshWhenOffline,g=k.get(a),b=g[0],w=g[1],x=g[2],j=g[3],O=R(e),E=O[0],S=O[1],_=O[2],A=(0,n.useRef)(!1),T=(0,n.useRef)(!1),I=(0,n.useRef)(E),B=(0,n.useRef)(t),U=(0,n.useRef)(r),F=function(){return U.current},H=function(){return F().isVisible()&&F().isOnline()},V=function(e){return a.set(_,d(a.get(_),e))},Y=a.get(E),z=l(c)?r.fallback[E]:c,W=l(Y)?z:Y,q=a.get(_)||{},Z=q.error,$=!A.current,G=function(){return $&&!l(p)?p:!F().isPaused()&&(h?!l(W)&&r.revalidateIfStale:l(W)||r.revalidateIfStale)},K=!(!E||!t)&&(!!q.isValidating||$&&G()),Q=function(e,t){var r=(0,n.useState)({})[1],o=(0,n.useRef)(e),i=(0,n.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,n.useCallback)((function(e){var n=!1,a=o.current;for(var s in e){var u=s;a[u]!==e[u]&&(a[u]=e[u],i.current[u]&&(n=!0))}n&&!t.current&&r({})}),[]);return N((function(){o.current=e})),[o,i.current,a]}({data:W,error:Z,isValidating:K},T),ee=Q[0],te=Q[1],re=Q[2],ne=(0,n.useCallback)((function(e){return o(void 0,void 0,void 0,(function(){var t,n,o,c,d,h,p,y,v,m,g,b,w;return i(this,(function(i){switch(i.label){case 0:if(t=B.current,!E||!t||T.current||F().isPaused())return[2,!1];c=!0,d=e||{},h=!j[E]||!d.dedupe,p=function(){return!T.current&&E===I.current&&A.current},y=function(){var e=j[E];e&&e[1]===o&&delete j[E]},v={isValidating:!1},m=function(){V({isValidating:!1}),p()&&re(v)},V({isValidating:!0}),re({isValidating:!0}),i.label=1;case 1:return i.trys.push([1,3,,4]),h&&(L(a,E,ee.current.data,ee.current.error,!0),r.loadingTimeout&&!a.get(E)&&setTimeout((function(){c&&p()&&F().onLoadingSlow(E,r)}),r.loadingTimeout),j[E]=[t.apply(void 0,S),D()]),w=j[E],n=w[0],o=w[1],[4,n];case 2:return n=i.sent(),h&&setTimeout(y,r.dedupingInterval),j[E]&&j[E][1]===o?(V({error:u}),v.error=u,g=x[E],!l(g)&&(o<=g[0]||o<=g[1]||0===g[1])?(m(),h&&p()&&F().onDiscarded(E),[2,!1]):(s(ee.current.data,n)?v.data=ee.current.data:v.data=n,s(a.get(E),n)||a.set(E,n),h&&p()&&F().onSuccess(n,E,r),[3,4])):(h&&p()&&F().onDiscarded(E),[2,!1]);case 3:return b=i.sent(),y(),F().isPaused()||(V({error:b}),v.error=b,h&&p()&&(F().onError(b,E,r),("boolean"==typeof r.shouldRetryOnError&&r.shouldRetryOnError||f(r.shouldRetryOnError)&&r.shouldRetryOnError(b))&&H()&&F().onErrorRetry(b,E,r,ne,{retryCount:(d.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return c=!1,m(),p()&&h&&L(a,E,v.data,v.error,!1),[2,!0]}}))}))}),[E]),oe=(0,n.useCallback)(M.bind(u,a,(function(){return I.current})),[]);if(N((function(){B.current=t,U.current=r})),N((function(){if(E){var e=E!==I.current,t=ne.bind(u,X),r=0,n=J(E,w,(function(e,t,r){re(d({error:t,isValidating:r},s(ee.current.data,e)?u:{data:e}))})),o=J(E,b,(function(e){if(0==e){var n=Date.now();F().revalidateOnFocus&&n>r&&H()&&(r=n+F().focusThrottleInterval,t())}else if(1==e)F().revalidateOnReconnect&&H()&&t();else if(2==e)return ne()}));return T.current=!1,I.current=E,A.current=!0,e&&re({data:W,error:Z,isValidating:K}),G()&&(l(W)||P?t():C(t)),function(){T.current=!0,n(),o()}}}),[E,ne]),N((function(){var e;function t(){var t=f(y)?y(W):y;t&&-1!==e&&(e=setTimeout(r,t))}function r(){ee.current.error||!v&&!F().isVisible()||!m&&!F().isOnline()?t():ne(X).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[y,v,m,ne]),(0,n.useDebugValue)(W),h&&l(W)&&E)throw B.current=t,U.current=r,T.current=!1,l(Z)?ne(X):Z;return{mutate:oe,get data(){return te.data=!0,W},get error(){return te.error=!0,Z},get isValidating(){return te.isValidating=!0,K}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Z(),n=q(e),o=n[0],i=n[1],s=n[2],u=z(r,s),c=a,l=u.use;if(l)for(var f=l.length;f-- >0;)c=l[f](c);return c(o,i||u.fetcher,u)});const K=wp.components;var Q=r(4246),ee=function(){return(0,Q.jsx)("div",{className:"extendify-onboarding w-full fixed bottom-4 px-4 flex justify-end z-max",children:(0,Q.jsx)("div",{className:"shadow-2xl",children:(0,Q.jsx)(K.Snackbar,{children:(0,t.__)("Just a moment, this is taking longer than expected.","extendify")})})})};const te=wp.data;var re=r(7135),ne=r.n(re),oe=r(4206),ie=r.n(oe)().create({baseURL:window.extOnbData.root,headers:{"X-WP-Nonce":window.extOnbData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Onboarding":!0,"X-Extendify":!0}});function ae(e){return Object.prototype.hasOwnProperty.call(e,"data")?e.data:e}ie.interceptors.response.use((function(e){return ae(e)}),(function(e){return function(e){if(e.response)return console.error(e.response),Promise.reject(ae(e.response))}(e)})),ie.interceptors.request.use((function(e){return function(e){return 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}(e)}),(function(e){return e}));var se=function(e){return ie.get("onboarding/template",{params:e})};function ue(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function ce(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ue(i,n,o,a,s,"next",e)}function s(e){ue(i,n,o,a,s,"throw",e)}a(void 0)}))}}var le=function(e,t){return ie.post("onboarding/options",{option:e,value:t})},fe=function(){var e=ce(ne().mark((function e(t){var r,n;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ie.get("onboarding/options",{params:{option:t}});case 2:return r=e.sent,n=r.data,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),de=function(){var e=ce(ne().mark((function e(t){var r,n,o,i;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={method:"POST",headers:{"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce},body:JSON.stringify(t)},n="".concat(window.extOnbData.wpRoot,"wp/v2/pages"),e.next=4,fetch(n,r);case 4:return o=e.sent,e.next=7,o.json();case 7:return i=e.sent,e.abrupt("return",i);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),he=function(){var e=ce(ne().mark((function e(t){var r,n,o;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return r={"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce},n="".concat(window.extOnbData.wpRoot,"wp/v2/plugins"),e.next=6,fetch(n,{method:"POST",headers:r,body:JSON.stringify({slug:t,status:"active"})});case 6:if(!((o=e.sent).status>=200&&o.status<300)){e.next=11;break}return e.next=10,o.json();case 10:case 13:return e.abrupt("return",e.sent);case 11:return e.next=13,pe(t);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),pe=function(){var e=ce(ne().mark((function e(t){var r,n,o,i,a,s,u;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce},i="".concat(window.extOnbData.wpRoot,"wp/v2/plugins"),e.next=4,fetch("".concat(i,"?search=").concat(t),{headers:o});case 4:return a=e.sent,e.next=7,a.json();case 7:if(e.t1=r=e.sent,e.t0=null===e.t1,e.t0){e.next=11;break}e.t0=void 0===r;case 11:if(!e.t0){e.next=15;break}e.t2=void 0,e.next=16;break;case 15:e.t2=null===(n=r[0])||void 0===n?void 0:n.plugin;case 16:return s=e.t2,e.next=19,fetch("".concat(i,"/").concat(s),{method:"POST",headers:o,body:JSON.stringify({status:"active"})});case 19:return u=e.sent,e.next=22,u.json();case 22:return e.abrupt("return",e.sent);case 23:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ye=function(){var e=ce(ne().mark((function e(r,n){var o,i,a,s;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={method:"POST",headers:{"Content-type":"application/json","X-WP-Nonce":window.extOnbData.nonce},body:JSON.stringify({slug:"".concat(r),theme:"extendable",type:"wp_template_part",status:"publish",description:(0,t.__)("Added by Extendify Launch","extendify"),content:n})},e.prev=1,i="".concat(window.extOnbData.wpRoot,"wp/v2/template-parts/").concat(r),e.next=5,fetch(i,o);case 5:return a=e.sent,e.next=8,a.json();case 8:return s=e.sent,e.abrupt("return",s);case 12:e.prev=12,e.t0=e.catch(1);case 14:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(t,r){return e.apply(this,arguments)}}(),ve=function(e){var t=e.currentPageIndex,r=e.totalPages,n=Math.round((t+1)/r*100),o="(".concat(t+1,"/").concat(r,")");return(0,Q.jsxs)("div",{className:"flex-1 hidden md:flex justify-center items-center",children:[(0,Q.jsx)("div",{role:"progressbar","aria-valuenow":n,"aria-valuemin":"0","aria-valuetext":o,"aria-valuemax":"100",className:"w-32 bg-gray-200 h-2 rounded-full",children:(0,Q.jsx)("div",{className:"rounded-full bg-partner-primary-bg h-2",style:{width:"".concat(n,"%")}})}),(0,Q.jsx)("div",{className:"pl-2 flex justify-center",children:o})]})};function me(e){let t;const r=new Set,n=(e,n)=>{const o="function"==typeof e?e(t):e;if(o!==t){const e=t;t=n?o:Object.assign({},t,o),r.forEach((r=>r(t,e)))}},o=()=>t,i={setState:n,getState:o,subscribe:(e,n,i)=>n||i?((e,n=o,i=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=n(t);function s(){const r=n(t);if(!i(a,r)){const t=a;e(a=r,t)}}return r.add(s),()=>r.delete(s)})(e,n,i):(r.add(e),()=>r.delete(e)),destroy:()=>r.clear()};return t=e(n,o,i),i}const ge="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?n.useEffect:n.useLayoutEffect;function be(e){const t="function"==typeof e?me(e):e,r=(e=t.getState,r=Object.is)=>{const[,o]=(0,n.useReducer)((e=>e+1),0),i=t.getState(),a=(0,n.useRef)(i),s=(0,n.useRef)(e),u=(0,n.useRef)(r),c=(0,n.useRef)(!1),l=(0,n.useRef)();let f;void 0===l.current&&(l.current=e(i));let d=!1;(a.current!==i||s.current!==e||u.current!==r||c.current)&&(f=e(i),d=!r(l.current,f)),ge((()=>{d&&(l.current=f),a.current=i,s.current=e,u.current=r,c.current=!1}));const h=(0,n.useRef)(i);ge((()=>{const e=()=>{try{const e=t.getState(),r=s.current(e);u.current(l.current,r)||(a.current=e,l.current=r,o())}catch(e){c.current=!0,o()}},r=t.subscribe(e);return t.getState()!==h.current&&e(),r}),[]);const p=d?f:l.current;return(0,n.useDebugValue)(p),p};return Object.assign(r,t),r[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const e=[r,t];return{next(){const t=e.length<=0;return{value:e.shift(),done:t}}}},r}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function we(e,t){return(r,n,o)=>{var i;let a=!1;"string"!=typeof t||a||(console.warn("[zustand devtools middleware]: passing `name` as directly will be not allowed in next majorpass the `name` in an object `{ name: ... }` instead"),a=!0);const s=void 0===t?{name:void 0,anonymousActionType:void 0}:"string"==typeof t?{name:t}:t;let u;void 0!==(null==(i=null==s?void 0:s.serialize)?void 0:i.options)&&console.warn("[zustand devtools middleware]: `serialize.options` is deprecated, just use `serialize`");try{u=window.__REDUX_DEVTOOLS_EXTENSION__||window.top.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return"undefined"!=typeof window&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(r,n,o);let c=Object.create(u.connect(s)),l=!1;Object.defineProperty(o,"devtools",{get:()=>(l||(console.warn("[zustand devtools middleware] `devtools` property on the store is deprecated it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),l=!0),c),set:e=>{l||(console.warn("[zustand devtools middleware] `api.devtools` is deprecated, it will be removed in the next major.\nYou shouldn't interact with the extension directly. But in case you still want to you can patch `window.__REDUX_DEVTOOLS_EXTENSION__` directly"),l=!0),c=e}});let f=!1;Object.defineProperty(c,"prefix",{get:()=>(f||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),f=!0),""),set:()=>{f||(console.warn("[zustand devtools middleware] along with `api.devtools`, `api.devtools.prefix` is deprecated.\nWe no longer prefix the actions/names"+s.name===void 0?", pass the `name` option to create a separate instance of devtools for each store.":", because the `name` option already creates a separate instance of devtools for each store."),f=!0)}});let d=!0;o.setState=(e,t,o)=>{r(e,t),d&&c.send(void 0===o?{type:s.anonymousActionType||"anonymous"}:"string"==typeof o?{type:o}:o,n())};const h=(...e)=>{const t=d;d=!1,r(...e),d=t},p=e(o.setState,n,o);if(c.init(p),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let e=!1;const t=o.dispatch;o.dispatch=(...r)=>{"__setState"!==r[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(...r)}}return c.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):xe(e.payload,(e=>{"__setState"!==e.type?o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e):h(e.state)}));case"DISPATCH":switch(e.payload.type){case"RESET":return h(p),c.init(o.getState());case"COMMIT":return c.init(o.getState());case"ROLLBACK":return xe(e.state,(e=>{h(e),c.init(o.getState())}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return xe(e.state,(e=>{h(e)}));case"IMPORT_STATE":{const{nextLiftedState:r}=e.payload,n=null==(t=r.computedStates.slice(-1)[0])?void 0:t.state;if(!n)return;return h(n),void c.send(null,r)}case"PAUSE_RECORDING":return d=!d}return}})),p}}const xe=(e,t)=>{let r;try{r=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==r&&t(r)};var je=Object.defineProperty,Oe=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,_e=(e,t,r)=>t in e?je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Pe=(e,t)=>{for(var r in t||(t={}))Ee.call(t,r)&&_e(e,r,t[r]);if(Oe)for(var r of Oe(t))Se.call(t,r)&&_e(e,r,t[r]);return e};const Ce=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then:e=>Ce(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>Ce(t)(e)}}};var Ne=be(we((function(){return{generating:!1,generatedPages:{}}}))),Ae=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=G(e,t,n),i=o.data,a=o.error,s=null!==(r=null==i?void 0:i.data)&&void 0!==r?r:i;return{data:s,loading:!s&&!a,error:a}};function Te(e){return function(e){if(Array.isArray(e))return Re(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Re(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Re(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(r),!0).forEach((function(t){Ie(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ke(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ie(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var De,Me,Be={siteType:{},siteInformation:{title:""},style:null,pages:[],plugins:[],goals:[]},Ue=be((De=we((function(e,t){return Le(Le({},Be),{},{setSiteType:function(t){e({siteType:t})},setSiteInformation:function(r,n){var o=Le(Le({},t().siteInformation),{},Ie({},r,n));e({siteInformation:o})},has:function(e,r){return!(null==r||!r.id)&&t()[e].some((function(e){return e.id===r.id}))},add:function(r,n){t().has(r,n)||e(Ie({},r,[].concat(Te(t()[r]),[n])))},remove:function(r,n){e(Ie({},r,t()[r].filter((function(e){return e.id!==n.id}))))},toggle:function(e,r){t().has(e,r)?t().remove(e,r):t().add(e,r)},setStyle:function(t){e({style:t})},canLaunch:function(){var e,r,n,o,i,a,s,u;return(null===(e=Object.keys(null!==(r=null===(n=t())||void 0===n?void 0:n.siteType)&&void 0!==r?r:{}))||void 0===e?void 0:e.length)>0&&(null===(o=Object.keys(null!==(i=null===(a=t())||void 0===a?void 0:a.style)&&void 0!==i?i:{}))||void 0===o?void 0:o.length)>0&&(null===(s=t())||void 0===s||null===(u=s.pages)||void 0===u?void 0:u.length)>0},resetState:function(){e(Be)}})})),Me={name:"extendify",getStorage:function(){return sessionStorage}},(e,t,r)=>{let n=Pe({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>Pe(Pe({},t),e)},Me);(n.blacklist||n.whitelist)&&console.warn(`The ${n.blacklist?"blacklist":"whitelist"} option is deprecated and will be removed in the next version. Please use the 'partialize' option instead.`);let o=!1;const i=new Set,a=new Set;let s;try{s=n.getStorage()}catch(e){}if(!s)return De(((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${n.name}', the given storage is currently unavailable.`),e(...t)}),t,r);s.removeItem||console.warn(`[zustand persist middleware] The given storage for item '${n.name}' does not contain a 'removeItem' method, which will be required in v4.`);const u=Ce(n.serialize),c=()=>{const e=n.partialize(Pe({},t()));let r;n.whitelist&&Object.keys(e).forEach((t=>{var r;!(null==(r=n.whitelist)?void 0:r.includes(t))&&delete e[t]})),n.blacklist&&n.blacklist.forEach((t=>delete e[t]));const o=u({state:e,version:n.version}).then((e=>s.setItem(n.name,e))).catch((e=>{r=e}));if(r)throw r;return o},l=r.setState;r.setState=(e,t)=>{l(e,t),c()};const f=De(((...t)=>{e(...t),c()}),t,r);let d;const h=()=>{var r;if(!s)return;o=!1,i.forEach((e=>e(t())));const u=(null==(r=n.onRehydrateStorage)?void 0:r.call(n,t()))||void 0;return Ce(s.getItem.bind(s))(n.name).then((e=>{if(e)return n.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===n.version)return e.state;if(n.migrate)return n.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((r=>{var o;return d=n.merge(r,null!=(o=t())?o:f),e(d,!0),c()})).then((()=>{null==u||u(d,void 0),o=!0,a.forEach((e=>e(d)))})).catch((e=>{null==u||u(void 0,e)}))};return r.persist={setOptions:e=>{n=Pe(Pe({},n),e),e.getStorage&&(s=e.getStorage())},clearStorage:()=>{var e;null==(e=null==s?void 0:s.removeItem)||e.call(s,n.name)},rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(i.add(e),()=>{i.delete(e)}),onFinishHydration:e=>(a.add(e),()=>{a.delete(e)})},h(),d||f})),Fe=function(){return ie.get("onboarding/goals")},He=function(){return{key:"goals"}};function Ve(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function Ye(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}var ze=function(){var e,t=(e=ne().mark((function e(){var t;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fe("blogname");case 2:return t=e.sent,e.abrupt("return",{title:t});case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Ye(i,n,o,a,s,"next",e)}function s(e){Ye(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),We=function(){return{key:"site-info"}},qe=r(42),Ze=r.n(qe);const Je=wp.blockEditor,Xe=wp.blocks;var $e=function(e){var t,r;return[null==e||null===(t=e.template)||void 0===t?void 0:t.code,null==e||null===(r=e.template)||void 0===r?void 0:r.code2].filter(Boolean).join("")},Ge=["className"];function Ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(r),!0).forEach((function(t){et(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ke(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function et(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const rt=(0,e.memo)((function(e){var t=e.className,r=tt(e,Ge);return(0,Q.jsx)("svg",Qe(Qe({className:t,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:(0,Q.jsx)("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"})}))}));var nt=["className"];function ot(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function it(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(r),!0).forEach((function(t){at(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ot(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function at(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function st(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const ut=(0,e.memo)((function(e){var t=e.className,r=st(e,nt);return(0,Q.jsx)("svg",it(it({className:"icon ".concat(t),width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:(0,Q.jsx)("path",{d:"M10 17.5L15 12L10 6.5",stroke:"#1f1f1f",strokeWidth:"1.75"})}))}));var ct=["className"];function lt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(r),!0).forEach((function(t){dt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ht(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const pt=(0,e.memo)((function(e){var t=e.className,r=ht(e,ct);return(0,Q.jsxs)("svg",ft(ft({className:t,viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:[(0,Q.jsx)("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,Q.jsx)("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,Q.jsx)("path",{d:"M994.142 125H1150.14V176H994.142V125ZM1102.64 372H1041.64V48H1102.64V372Z",fill:"currentColor"}),(0,Q.jsx)("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,Q.jsx)("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,Q.jsx)("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,Q.jsx)("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,Q.jsx)("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,Q.jsx)("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,Q.jsx)("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"})]}))}));var yt=["className"];function vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(r),!0).forEach((function(t){gt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bt(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(0,e.memo)((function(e){var t=e.className,r=bt(e,yt);return(0,Q.jsx)("svg",mt(mt({className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:(0,Q.jsx)("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 wt=["className"];function xt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function jt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(r),!0).forEach((function(t){Ot(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Et(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const St=(0,e.memo)((function(e){var t=e.className,r=Et(e,wt);return(0,Q.jsxs)("svg",jt(jt({className:t,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:[(0,Q.jsx)("path",{d:"M8 18.5504L12 14.8899",stroke:"#1E1E1E",strokeWidth:"1.5"}),(0,Q.jsx)("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"})]}))}));var _t=["className"];function Pt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ct(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(r),!0).forEach((function(t){Nt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function At(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const Tt=(0,e.memo)((function(e){var t=e.className,r=At(e,_t);return(0,Q.jsxs)("svg",Ct(Ct({className:t,width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),{},{children:[(0,Q.jsx)("path",{d:"M87.5 48.8281H75V51.1719H87.5V48.8281Z",fill:"black"}),(0,Q.jsx)("path",{d:"M25 48.8281H12.5V51.1719H25V48.8281Z",fill:"black"}),(0,Q.jsx)("path",{d:"M51.1719 75H48.8281V87.5H51.1719V75Z",fill:"black"}),(0,Q.jsx)("path",{d:"M51.1719 12.5H48.8281V25H51.1719V12.5Z",fill:"black"}),(0,Q.jsx)("path",{d:"M77.3433 75.6868L69.4082 67.7517L67.7511 69.4088L75.6862 77.344L77.3433 75.6868Z",fill:"black"}),(0,Q.jsx)("path",{d:"M32.2457 30.5897L24.3105 22.6545L22.6534 24.3117L30.5885 32.2468L32.2457 30.5897Z",fill:"black"}),(0,Q.jsx)("path",{d:"M77.3407 24.3131L75.6836 22.656L67.7485 30.5911L69.4056 32.2483L77.3407 24.3131Z",fill:"black"}),(0,Q.jsx)("path",{d:"M32.2431 69.4074L30.5859 67.7502L22.6508 75.6854L24.3079 77.3425L32.2431 69.4074Z",fill:"black"})]}))}));function Rt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kt(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Lt=function(r){var n=r.style,o=r.selectStyle,i=r.blockHeight,a=r.onHover,s=void 0===a?null:a,u=Ue((function(e){return e.siteType})),c=function(){var t=(0,e.useRef)(!1);return(0,e.useEffect)((function(){return t.current=!0,function(){return t.current=!1}})),t}(),l=Rt((0,e.useState)(""),2),f=l[0],d=l[1],h=Rt((0,e.useState)(""),2),p=h[0],y=h[1],v=Rt((0,e.useState)(!1),2),m=v[0],g=v[1],b=Rt((0,e.useState)(!1),2),w=b[0],x=b[1],j=Rt((0,e.useState)(null),2),O=j[0],E=j[1],S=(0,e.useRef)(null),_=(0,e.useRef)(null),P=(0,e.useRef)(null),C=(0,e.useRef)(null),N=(0,e.useMemo)((function(){return(0,Xe.rawHandler)({HTML:(e=f,e.replace(/\w+:\/\/\S*(w=(\d*))&\w+\S*"/g,(function(e,t,r){return e.replace(t,"w="+Math.floor(Number(r))+"&q=10")})))});var e}),[f]),A=(0,e.useMemo)((function(){return(0,Je.transformStyles)([{css:p}],".editor-styles-wrapper")}),[p]);return(0,e.useEffect)((function(){null!=n&&n.themeJson?function(e){return ie.post("onboarding/parse-theme-json",{themeJson:e})}(n.themeJson).then((function(e){var t;y(null!==(t=null==e?void 0:e.styles)&&void 0!==t?t:"{}")})):y("{}")}),[null==n?void 0:n.themeJson]),(0,e.useEffect)((function(){if(p&&null!=n&&n.code){var e=[null==n?void 0:n.headerCode,null==n?void 0:n.code,null==n?void 0:n.footerCode].filter(Boolean).join("").replace(/<!-- wp:navigation {(.|\n)*?(\/wp:navigation -->|} \/-->)/g,'\x3c!-- wp:paragraph {"className":"tmp-nav"} --\x3e<p class="tmp-nav">Home | About | Contact</p >\x3c!-- /wp:paragraph --\x3e');d(e)}}),[null==u?void 0:u.slug,p,n]),(0,e.useEffect)((function(){var e,t;if(_.current&&m){var r=S.current,n=r.offsetWidth/1400,o=_.current.contentDocument.body;null!=o&&o.style&&(o.style.transitionProperty="all",o.style.top=0);var a=function(){var t,r;if(o.offsetHeight){var a=(null!==(t=null==P||null===(r=P.current)||void 0===r?void 0:r.offsetHeight)&&void 0!==t?t:i)-32,s=o.getBoundingClientRect().height-a/n;o.style.transitionDuration=Math.max(2*s,3e3)+"ms",e=window.requestAnimationFrame((function(){o.style.top=-1*Math.max(0,s)+"px"}))}},s=function(){var e,r;if(o.offsetHeight){var a=(null!==(e=null==P||null===(r=P.current)||void 0===r?void 0:r.offsetHeight)&&void 0!==e?e:i)-32,s=o.offsetHeight-a/n;o.style.transitionDuration=s+"ms",t=window.requestAnimationFrame((function(){o.style.top=0}))}};return r.addEventListener("focus",a),r.addEventListener("mouseenter",a),r.addEventListener("blur",s),r.addEventListener("mouseleave",s),function(){window.cancelAnimationFrame(e),window.cancelAnimationFrame(t),r.removeEventListener("focus",a),r.removeEventListener("mouseenter",a),r.removeEventListener("blur",s),r.removeEventListener("mouseleave",s)}}}),[i,m]),(0,e.useEffect)((function(){if(null!=N&&N.length&&w){var e,t=function(){var t,r,n;null!==(t=e.contentDocument)&&void 0!==t&&t.getElementById("ext-tj")||(null===(r=e.contentDocument)||void 0===r||null===(n=r.head)||void 0===n||n.insertAdjacentHTML("beforeend",'<style id="ext-tj">'.concat(A,"</style>")));_.current=e,setTimeout((function(){c.current&&g(!0)}),500)},r=new MutationObserver((function(){(e=S.current.querySelector("iframe[title]")).addEventListener("load",t),setTimeout((function(){t()}),2e3),r.disconnect()}));return r.observe(S.current,{attributes:!1,childList:!0,subtree:!1}),function(){var n;r.disconnect(),null===(n=e)||void 0===n||n.removeEventListener("load",t)}}}),[N,A,c,w]),(0,e.useEffect)((function(){return C.current||(C.current=new IntersectionObserver((function(e){e[0].isIntersecting&&x(!0)}))),C.current.observe(P.current),function(){C.current.disconnect()}}),[]),(0,Q.jsxs)(Q.Fragment,{children:[m&&f?null:(0,Q.jsx)("div",{className:"m-6 absolute inset-0 bg-gray-50 flex items-center justify-center",children:(0,Q.jsx)(Tt,{className:"spin w-8"})}),(0,Q.jsx)("div",{ref:P,role:o?"button":void 0,tabIndex:o?0:void 0,"aria-label":o?(0,t.__)("Press to select","extendify"):void 0,className:Ze()("w-full overflow-hidden bg-transparent z-10",{relative:m,"absolute opacity-0":!m,"button-focus button-card":o}),onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&o&&o(n)},onMouseEnter:function(){s&&E(s)},onMouseLeave:function(){O&&(O(),E(null))},onClick:o?function(){return o(n)}:function(){},children:(0,Q.jsx)("div",{ref:S,className:"relative rounded-lg",children:w?(0,Q.jsx)(Je.BlockPreview,{blocks:N,viewportWidth:1400,live:!1}):null})})]})};function It(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?It(Object(r),!0).forEach((function(t){Mt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):It(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Mt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Bt=function(e){return se(e)},Ut=function(e){var r=e.page,n=e.blockHeight,o=e.lock,i=void 0!==o&&o,a=e.displayOnly,s=void 0!==a&&a,u=Ue(),c=u.siteType,l=u.style,f=u.toggle,d=u.has,h="home"===(null==r?void 0:r.slug),p=Ae({siteType:c.slug,layoutType:r.slug,baseLayout:h?null==l?void 0:l.homeBaseLayout:null,kit:"home"!==r.slug?null==l?void 0:l.kit:null},Bt).data;return s?(0,Q.jsxs)("div",{className:"text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100",children:[(0,Q.jsx)("div",{className:"border-gray-100 border-b p-2 flex justify-between min-w-sm",children:r.title}),(0,Q.jsx)(Lt,{blockHeight:n,style:Dt(Dt({},l),{},{code:$e({template:p})})},null==l?void 0:l.recordId)]}):(0,Q.jsx)("div",{children:(0,Q.jsxs)("div",{role:"button",tabIndex:0,"aria-label":(0,t.__)("Press to select","extendify"),disabled:i,className:"text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100 button-focus",title:i?(0,t.__)("This page is required","extendify"):null,onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&(i||f("pages",r))},onClick:function(){return i||f("pages",r)},children:[(0,Q.jsxs)("div",{className:"border-gray-100 border-b p-2 flex justify-between min-w-sm",children:[(0,Q.jsxs)("div",{className:Ze()("flex items-center",{"text-gray-700":!d("pages",r)}),children:[(0,Q.jsx)("span",{children:r.title}),i&&(0,Q.jsx)("span",{className:"w-4 h-4 text-base leading-none pl-2 mr-6 dashicons dashicons-lock"})]}),d("pages",r)&&(0,Q.jsx)(rt,{className:"text-partner-primary-bg w-6"})]}),(0,Q.jsx)(Lt,{blockHeight:n,style:Dt(Dt({},l),{},{code:$e({template:p})})},null==l?void 0:l.recordId)]})})};function Ft(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||Vt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ht(e){return function(e){if(Array.isArray(e))return Yt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Vt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vt(e,t){if(e){if("string"==typeof e)return Yt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Yt(e,t):void 0}}function Yt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zt(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}var Wt=function(){var e,t=(e=ne().mark((function e(){var t,r,n,o,i,a;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ie.get("onboarding/layout-types");case 2:if(n=e.sent,null!=(o=null==n||null===(t=n.data)||void 0===t?void 0:t.map((function(e){return{id:e.id,slug:e.slug,title:e.title}})))&&o.length){e.next=6;break}throw new Error("Error fetching pages");case 6:return i=o[0],a=null===(r=o.slice(1))||void 0===r?void 0:r.sort((function(e,t){return e.title>t.title?1:-1})),e.abrupt("return",[i].concat(Ht(null!=a?a:[])));case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){zt(i,n,o,a,s,"next",e)}function s(e){zt(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),qt=function(){return{key:"layout-types"}};function Zt(e){return function(e){if(Array.isArray(e))return Kt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Gt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jt(e){return Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jt(e)}function Xt(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Gt(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function $t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||Gt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gt(e,t){if(e){if("string"==typeof e)return Kt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kt(e,t):void 0}}function Kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Qt(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function er(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Qt(i,n,o,a,s,"next",e)}function s(e){Qt(i,n,o,a,s,"throw",e)}a(void 0)}))}}var tr=function(){var e=er(ne().mark((function e(t){var r,n,o;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i=t,ie.get("onboarding/styles",{params:i});case 2:return o=e.sent,e.abrupt("return",null==o||null===(r=o.data)||void 0===r||null===(n=r.map((function(e){return{label:e.title,slug:e.slug,recordId:e.id,themeJson:null==e?void 0:e.themeJson,homeBaseLayout:null==e?void 0:e.homeBaseLayout,header:null==e?void 0:e.header,footer:null==e?void 0:e.footer,kit:null==e?void 0:e.kit,headerCode:null==e?void 0:e.headerCode,footerCode:null==e?void 0:e.footerCode,code:$e(e)}})))||void 0===n?void 0:n.filter((function(e){return e.code})));case 4:case"end":return e.stop()}var i}),e)})));return function(t){return e.apply(this,arguments)}}(),rr=function(e){var t,r,n;return{key:"site-style",siteType:null!==(r=null===(n=e=null!==(t=e)&&void 0!==t?t:null==Ue?void 0:Ue.getState().siteType)||void 0===n?void 0:n.slug)&&void 0!==r?r:"default"}},nr=function(e){var t=e.image,r=e.heading,n=e.name,o=e.description,i=e.selected,a=e.onClick,s=e.lock;return(0,Q.jsxs)("div",{role:s?void 0:"button",tabIndex:s?void 0:0,"aria-label":s?void 0:n,className:Ze()("text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100",{"button-focus":!s}),onKeyDown:function(e){["Enter","Space"," "].includes(e.key)&&(s||a())},onClick:function(){s||a()},children:[(0,Q.jsxs)("div",{className:"border-gray-100 border-b p-2 flex justify-between min-w-sm",children:[(0,Q.jsxs)("div",{className:Ze()("flex items-center",{"text-gray-700":!i}),children:[(0,Q.jsx)("span",{children:n}),s&&(0,Q.jsx)("span",{className:"w-4 h-4 text-base leading-none pl-2 mr-6 dashicons dashicons-lock"})]}),(s||i)&&(0,Q.jsx)(rt,{className:"text-partner-primary-bg w-6"})]}),(0,Q.jsxs)("div",{className:"flex flex-col",children:[(0,Q.jsx)("div",{style:{backgroundImage:"url(".concat(t,")")},className:"h-32 bg-cover"}),(0,Q.jsxs)("div",{className:"p-6 text-left",children:[(0,Q.jsx)("div",{className:"text-base font-bold mb-2",children:r}),(0,Q.jsx)("div",{className:"text-sm",children:o})]})]})]})};function or(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function ir(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ar(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ar(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ar(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var sr=function(){return ie.get("onboarding/site-types")},ur=function(){return{key:"site-types"}},cr=function(t){var r=t.option,n=t.selectSiteType,o=(0,e.useRef)(0);return(0,Q.jsxs)("button",{onClick:function(){return n(r)},onMouseEnter:function(){window.clearTimeout(o.current),o.current=window.setTimeout((function(){var e=function(){return rr(r)};V(e,(function(t){return null!=t&&t.length?t:tr(e())}))}),100)},onMouseLeave:function(){window.clearTimeout(o.current)},className:"flex bg-gray-100 hover:bg-gray-200 items-center justify-between mb-2 p-4 py-3 relative w-full button-focus",children:[(0,Q.jsx)("span",{children:r.title}),(0,Q.jsx)(ut,{})]})},lr=[["landing",{component:function(){var r=fr((function(e){return e.nextPage})),n=(0,e.useRef)(null);(0,e.useEffect)((function(){var e=requestAnimationFrame((function(){return n.current.focus()}));return function(){return cancelAnimationFrame(e)}}),[n]);var o=function(){var e,t=(e=ne().mark((function e(t){return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),e.next=3,le("extendify_onboarding_skipped",(new Date).toISOString());case 3:location.href=window.extOnbData.adminUrl;case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Ve(i,n,o,a,s,"next",e)}function s(e){Ve(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("Welcome to Your WordPress Site","extendify")}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("Design and launch your site with our guided experience, or jump right to the WordPress dashboard if you already know what you're doing.","extendify")})]}),(0,Q.jsxs)("div",{className:"",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("Pick one:","extendify")}),(0,Q.jsxs)("div",{className:"lg:flex lg:space-x-8",children:[(0,Q.jsxs)("button",{onClick:r,ref:n,type:"button","aria-label":(0,t.__)("Press to continue","extendify"),className:"button-card max-w-sm button-focus",children:[(0,Q.jsx)("div",{className:"bg-gray-100 w-full h-64 bg-cover border border-gray-200",style:{backgroundImage:"url(".concat(window.extOnbData.pluginUrl,"/public/assets/extendify-preview.png)")}}),(0,Q.jsx)("p",{className:"font-bold text-lg text-gray-900",children:(0,t.__)("Extendify Launch","extendify")}),(0,Q.jsx)("p",{className:"text-base text-gray-900",children:(0,t.__)("Create a super-fast, beautiful, and fully customized site in minutes. Simply answer a few questions and pick a design to get started. Then, everything can be fully customized in the core WordPress editor.","extendify")})]}),(0,Q.jsxs)("a",{onClick:function(e){return o(e)},className:"button-card max-w-sm button-focus",children:[(0,Q.jsx)("div",{className:"bg-gray-100 w-full h-64 bg-cover border border-gray-200",style:{backgroundImage:"url(".concat(window.extOnbData.pluginUrl,"/public/assets/wp-admin.png)")}}),(0,Q.jsx)("p",{className:"font-bold text-lg text-gray-900",children:(0,t.__)("WordPress Dashboard","extendify")}),(0,Q.jsx)("p",{className:"text-base text-gray-900",children:(0,t.__)("Are you a WordPress developer and want to go straight to the admin dashboard?","extendify")})]})]})]})]})}}],["site-information",{component:function(){var r,n=Ue(),o=n.siteInformation,i=n.setSiteInformation,a=(0,e.useRef)(null),s=fr((function(e){return e.nextPage})),u=Ae(We,ze).data;return(0,e.useEffect)((function(){var e=requestAnimationFrame((function(){return a.current.focus()}));return function(){return cancelAnimationFrame(e)}}),[a]),(0,e.useEffect)((function(){null!=u&&u.title&&i("title",u.title)}),[u,i]),(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("What's the name of your new site?","extendify")}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("You can change this later.","extendify")})]}),(0,Q.jsx)("div",{className:"w-full",children:(0,Q.jsxs)("form",{onSubmit:function(e){e.preventDefault(),s()},children:[(0,Q.jsx)("label",{htmlFor:"extendify-site-title-input",className:"block mt-0 mb-8 text-base",children:(0,t.__)("What's the name of your site?","extendify")}),(0,Q.jsx)("div",{className:"mb-8",children:(0,Q.jsx)("input",{autoComplete:"off",ref:a,type:"text",name:"site-title-input",id:"extendify-site-title-input",className:"w-96 max-w-full border h-12 input-focus",value:null!==(r=null==o?void 0:o.title)&&void 0!==r?r:"",onChange:function(e){return i("title",e.target.value)},placeholder:(0,t.__)("Enter your preferred site title...","extendify")})})]})})]})},fetcher:ze,fetchData:We}],["site-type-select",{component:function(){var r=Ue((function(e){return e.siteType})),n=fr((function(e){return e.nextPage})),o=ir((0,e.useState)([]),2),i=o[0],a=o[1],s=ir((0,e.useState)(""),2),u=s[0],c=s[1],l=ir((0,e.useState)(!0),2),f=l[0],d=l[1],h=(0,e.useRef)(null),p=Ae(ur,sr),y=p.data,v=p.loading;(0,e.useEffect)((function(){var e=requestAnimationFrame((function(){return h.current.focus()}));return function(){return cancelAnimationFrame(e)}}),[h]),(0,e.useEffect)((function(){if(!(v||null!=r&&r.slug)){var e=null==y?void 0:y.find((function(e){return"default"===e.slug}));e&&Ue.getState().setSiteType({label:e.title,recordId:e.id,slug:e.slug})}}),[v,null==r?void 0:r.slug,y]),(0,e.useEffect)((function(){v||((null==u?void 0:u.length)>0?a(null==y?void 0:y.filter((function(e){var t=e.title,r=e.keywords,n=null==u?void 0:u.toLowerCase();return!n||(t.toLowerCase().indexOf(n)>-1||!(null==r||!r.length)&&r.find((function(e){return e.toLowerCase().indexOf(n)>-1})))}))):(a(null==y?void 0:y.filter((function(e){return e.featured}))),d(!0)))}),[y,u,v]),(0,e.useEffect)((function(){v||a(f?y.filter((function(e){return e.featured})):y)}),[y,f,v]);var m=function(){var e,t=(e=ne().mark((function e(t){return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Ue.getState().setSiteType({label:t.title,recordId:t.id,slug:t.slug}),window.localStorage.removeItem("extendify-global-state"),e.next=4,r={siteType:{title:t.title,slug:t.slug}},ie.post("library/site-type",r);case 4:n();case 5:case"end":return e.stop()}var r}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){or(i,n,o,a,s,"next",e)}function s(e){or(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();return(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("What is your site about?","extendify")}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("Search for the industry that best suits your site.","extendify")})]}),(0,Q.jsxs)("div",{className:"w-80",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("Choose a site industry:","extendify")}),(0,Q.jsxs)("div",{className:"search-panel flex items-center justify-center relative mb-8",children:[(0,Q.jsx)("input",{ref:h,type:"text",className:"w-full border h-12 input-focus",value:u,onChange:function(e){return c(e.target.value)},placeholder:(0,t.__)("Search...","extendify")}),(0,Q.jsx)(St,{className:"icon-search"})]}),v&&(0,Q.jsx)("p",{children:(0,t.__)("Loading...","extendify")}),(null==i?void 0:i.length)>0&&(0,Q.jsxs)("div",{children:[(0,Q.jsxs)("div",{className:"flex justify-between mb-3",children:[(0,Q.jsx)("p",{className:"text-left uppercase text-xss m-0",children:(0,t.__)("Industries","extendify")}),(null==u?void 0:u.length)>0?null:(0,Q.jsx)("button",{type:"button",className:"bg-transparent hover:text-partner-primary-bg p-0 text-partner-primary-bg text-xs underline",onClick:function(){d((function(e){return!e})),h.current.focus()},children:f?(0,t.__)("Show all","extendify"):(0,t.__)("Show less","extendify")})]}),(0,Q.jsx)("div",{className:"overflow-y-auto p-2 -m-2",style:{maxHeight:"360px"},children:i.map((function(e){return(0,Q.jsx)(cr,{selectSiteType:m,option:e},e.id)}))})]})]})]})},fetcher:sr,fetchData:ur}],["goals",{component:function(){var r=Ae(He,Fe),n=r.data,o=r.loading,i=Ue(),a=i.toggle,s=i.has,u=fr((function(e){return e.nextPage})),c=(0,e.useRef)();return(0,e.useEffect)((function(){if(c.current){var e=requestAnimationFrame((function(){return c.current.querySelector("input").focus()}));return function(){return cancelAnimationFrame(e)}}}),[c]),(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("What do you want to accomplish with this new site?","extendify")}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("You can change these later.","extendify")})]}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("Select the goals relevant to your site:","extendify")}),o?(0,Q.jsx)("p",{children:(0,t.__)("Loading...","extendify")}):(0,Q.jsxs)("form",{onSubmit:function(e){e.preventDefault(),u()},className:"w-full max-w-2xl grid lg:grid-cols-2 gap-4 goal-select",children:[(0,Q.jsx)("input",{type:"submit",className:"hidden"}),n&&(null==n?void 0:n.map((function(e,t){return(0,Q.jsx)("div",{className:"border p-4",ref:0===t?c:void 0,children:(0,Q.jsx)(K.CheckboxControl,{label:e.title,checked:s("goals",e),onChange:function(){return a("goals",e)}})},e.id)})))]})]})]})},fetcher:Fe,fetchData:He}],["site-style-select",{component:function(){var r,n=Ue((function(e){return e.siteType})),o=fr((function(e){return e.nextPage})),i=Ae(rr,tr),a=i.data,s=i.loading,u=function(){var t=(0,e.useRef)(!1);return(0,e.useLayoutEffect)((function(){return t.current=!0,function(){return t.current=!1}})),t}(),c=(0,e.useCallback)((function(e){Ue.getState().setStyle(e),o()}),[o]),l=$t((0,e.useState)([]),2),f=l[0],d=l[1];return(0,e.useEffect)((function(){null!=a&&a.length&&er(ne().mark((function e(){var t,r,n,o;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Xt(a),e.prev=1,n=ne().mark((function e(){var t;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.value,u.current){e.next=3;break}return e.abrupt("return",{v:void 0});case 3:return d((function(e){return[].concat(Zt(e),[t])})),e.next=6,new Promise((function(e){return setTimeout(e,1e3)}));case 6:case"end":return e.stop()}}),e)})),t.s();case 4:if((r=t.n()).done){e.next=11;break}return e.delegateYield(n(),"t0",6);case 6:if("object"!==Jt(o=e.t0)){e.next=9;break}return e.abrupt("return",o.v);case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),t.e(e.t1);case 16:return e.prev=16,t.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[1,13,16,19]])})))()}),[a,u]),(0,e.useEffect)((function(){null!=f&&f.length&&!Ue.getState().style&&Ue.getState().setStyle(f[0])}),[f]),(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.sprintf)((0,t.__)("Now pick a design for your new %s site.","extendify"),null==n||null===(r=n.label)||void 0===r?void 0:r.toLowerCase())}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("You can personalize this later.","extendify")})]}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:s?(0,t.__)("Please wait a moment while we generate style previews...","extendify"):(0,t.__)("Pick your style","extendify")}),(0,Q.jsxs)("div",{className:"lg:flex space-y-6 -m-6 lg:space-y-0 flex-wrap",children:[null==f?void 0:f.map((function(e){return(0,Q.jsx)("div",{className:"p-6 relative",style:{height:590,width:425},children:(0,Q.jsx)(Lt,{style:e,selectStyle:c,blockHeight:590})},e.recordId)})),null==a?void 0:a.slice(null==f?void 0:f.length).map((function(e){return(0,Q.jsx)("div",{style:{height:590,width:425},className:"p-6 relative",children:(0,Q.jsx)("div",{className:"bg-gray-50 h-full w-full flex items-center justify-center",children:(0,Q.jsx)(Tt,{className:"spin w-8"})})},e.slug)}))]})]})]})}}],["site-pages-select",{component:function(){var r=Ae(qt,Wt).data,n=Ft((0,e.useState)(!1),2),o=n[0],i=n[1],a=Ue(),s=a.pages,u=a.add,c=a.remove;return(0,e.useEffect)((function(){i((null==s?void 0:s.length)===(null==r?void 0:r.length))}),[s,r]),(0,e.useEffect)((function(){null==r||r.map((function(e){return u("pages",e)}))}),[r,u]),(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("What pages do you want on this site?","extendify")}),(0,Q.jsx)("p",{className:"text-base opacity-70",children:(0,t.__)("You may add more later","extendify")})]}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsxs)("div",{className:"flex justify-between",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("Pick the pages you'd like to add to your site","extendify")}),(0,Q.jsx)(K.CheckboxControl,{label:(0,t.__)("Include all pages","extendify"),checked:o,onChange:function(){null==r||r.map((function(e){"home"!==e.slug&&(o?c("pages",e):u("pages",e))}))}})]}),(0,Q.jsx)("div",{className:"lg:flex space-y-6 -m-8 lg:space-y-0 flex-wrap",children:null==r?void 0:r.map((function(e){return(0,Q.jsx)("div",{className:"p-8 relative",style:{height:442.5,width:318.75},children:(0,Q.jsx)(Ut,{lock:"home"===(null==e?void 0:e.slug),page:e,blockHeight:442.5})},e.id)}))})]})]})},fetcher:Wt,fetchData:qt}],["site-summary",{component:function(){var e=Ue(),r=e.siteType,n=e.style,o=e.pages,i=e.plugins,a=fr((function(e){return e.setPage}));return(0,Q.jsxs)(hr,{children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("Let's launch your site!","extendify")}),(0,Q.jsx)("p",{className:"text-base",children:(0,t.__)("Review your site configuration.","extendify")})]}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("Site settings","extendify")}),(0,Q.jsxs)("div",{className:"flex flex-col space-y-8",children:[(0,Q.jsxs)("div",{className:"flex items-center",children:[(0,Q.jsx)("div",{className:"w-20 flex-shrink-0 text-base",children:(0,t.__)("Industry:","extendify")}),null!=r&&r.label?(0,Q.jsx)("div",{className:"p-4 py-2 rounded-lg text-base flex bg-transparent border border-gray-600 cursor-pointer",onClick:function(){return a("site-type-select")},title:(0,t.__)("Press to change the site type","extendify"),children:r.label}):(0,Q.jsx)("button",{onClick:function(){return a("site-type-select")},className:"bg-transparent text-partner-primary underline text-base",children:(0,t.__)("Press to set a site type","extendify")})]}),(0,Q.jsxs)("div",{className:"flex items-start",children:[(0,Q.jsx)("div",{className:"w-20 flex-shrink-0 text-base",children:(0,t.__)("Style:","extendify")}),null!=n&&n.label?(0,Q.jsx)("div",{className:"cursor-pointer overflow-hidden border rounded-lg",onClick:function(){return a("site-style-select")},title:(0,t.__)("Press to change the site style","extendify"),children:(0,Q.jsx)("div",{className:"p-2 relative",style:{height:354,width:255},children:(0,Q.jsx)(Lt,{style:n,blockHeight:354})},n.recordId)}):(0,Q.jsx)("button",{onClick:function(){return a("site-style-select")},className:"bg-transparent text-partner-primary underline text-base",children:(0,t.__)("Press to set a style type","extendify")})]}),(0,Q.jsxs)("div",{className:"flex items-start",children:[(0,Q.jsx)("div",{className:"w-20 flex-shrink-0 text-base",children:(0,t.__)("Pages:","extendify")}),o.length>0?(0,Q.jsx)("div",{className:"flex items-start space-x-2 cursor-pointer w-full",onClick:function(){return a("site-pages-select")},title:(0,t.__)("Press to change the selected pages","extendify"),children:(0,Q.jsx)("div",{className:"lg:flex space-y-6 -m-8 lg:space-y-0 flex-wrap",children:null==o?void 0:o.map((function(e){return(0,Q.jsx)("div",{className:"p-8 relative",style:{height:354,width:255},children:(0,Q.jsx)(Ut,{displayOnly:!0,page:e,blockHeight:175})},e.id)}))})}):(0,Q.jsx)("button",{onClick:function(){return a("site-pages-select")},className:"bg-transparent text-partner-primary underline text-base",children:(0,t.__)("Press to set your pages","extendify")})]}),i.length>0?(0,Q.jsxs)("div",{className:"flex items-start",children:[(0,Q.jsx)("div",{className:"w-20 flex-shrink-0 text-base",children:(0,t.__)("Plugins:","extendify")}),(0,Q.jsx)("div",{className:"flex items-start space-x-2 cursor-pointer w-full",onClick:function(){return a("suggested-plugins")},title:(0,t.__)("Press to change the selected plugins","extendify"),children:(0,Q.jsx)("div",{className:"grid w-full grid-cols-3 gap-4",children:i.map((function(e){return(0,Q.jsx)(nr,{lock:!0,image:(t=e.previewImage,null==t||null===(r=t[0])||void 0===r||null===(n=r.url)||void 0===n||null===(o=n.split(/[?#]/))||void 0===o?void 0:o[0]),name:e.name,heading:e.heading,description:e.description},e.id);var t,r,n,o}))})})]}):null]})]})]})}}]],fr=be(we((function(e,t){return{pages:new Map(lr),currentPageIndex:0,count:function(){return t().pages.size},pageOrder:function(){return Array.from(t().pages.keys())},currentPageData:function(){return t().pages.get(t().pageOrder()[t().currentPageIndex])},nextPageData:function(){var e=t().currentPageIndex+1;return e>t().pageOrder().length-1?{}:t().pages.get(t().pageOrder()[e])},setPage:function(r){"string"==typeof r&&(r=t().pageOrder().indexOf(r)),r>t().pageOrder().length-1||r<0||e({currentPageIndex:r})},nextPage:function(){t().setPage(t().currentPageIndex+1)},previousPage:function(){t().setPage(t().currentPageIndex-1)}}}))),dr=function(){var e=fr((function(e){return e.nextPage})),r=fr((function(e){return e.previousPage})),n=fr((function(e){return e.currentPageIndex})),o=fr((function(e){return e.count()})),i=Ue((function(e){return e.canLaunch()})),a=n===o-1,s=0===n;return(0,Q.jsxs)("div",{className:"flex items-center justify-between space-x-2",children:[(0,Q.jsx)("div",{className:"flex-1"}),(0,Q.jsx)(ve,{currentPageIndex:n,totalPages:o}),(0,Q.jsxs)("div",{className:"flex space-x-2 flex-1 justify-end",children:[s||(0,Q.jsx)("button",{className:"px-4 py-3 bg-transparent hover:bg-gray-200 font-medium button-focus focus:bg-gray-100",type:"button",onClick:r,children:(0,t.__)("Previous","extendify")}),i&&a?(0,Q.jsx)("button",{className:"px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",type:"button",onClick:function(){return Ne.setState({generating:!0})},children:(0,t.__)("Launch site","extendify")}):(0,Q.jsx)("button",{className:"px-4 py-3 font-bold bg-partner-primary-bg text-partner-primary-text button-focus",type:"button",onClick:e,children:(0,t.__)("Next","extendify")})]})]})},hr=function(e){var r,n,o,i=e.children,a=e.includeNav,s=void 0===a||a;return(0,Q.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,Q.jsxs)("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",children:[(0,Q.jsxs)("div",{className:"max-w-sm pr-8",children:[(null===(r=window.extOnbData)||void 0===r?void 0:r.partnerLogo)&&(0,Q.jsx)("div",{className:"pb-8",children:(0,Q.jsx)("img",{src:window.extOnbData.partnerLogo,alt:null!==(n=null===(o=window.extOnbData)||void 0===o?void 0:o.partnerName)&&void 0!==n?n:""})}),i[0]]}),(0,Q.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,Q.jsx)("span",{className:"opacity-70 text-xs",children:(0,t.__)("Powered by","extendify")}),(0,Q.jsxs)("span",{className:"relative",children:[(0,Q.jsx)(pt,{className:"logo text-white w-28"}),(0,Q.jsx)("span",{className:"absolute -bottom-2 right-3 font-semibold tracking-tight",children:(0,t.__)("Launch","extendify")})]})]})]}),(0,Q.jsxs)("div",{className:"flex-grow md:h-screen md:overflow-y-scroll",children:[s?(0,Q.jsx)("div",{className:"py-4 px-8 sticky top-0 bg-white z-50",children:(0,Q.jsx)(dr,{})}):null,(0,Q.jsx)("div",{className:"mt-8 p-8 lg:px-12 flex justify-center",children:i[1]})]})]})};function pr(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return yr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yr(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function yr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function vr(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}var mr=function(){var e,t=(e=ne().mark((function e(t,r,n){var o,i,a,s,u,c,l,f,d,h;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o={},i=pr(t),e.prev=2,i.s();case 4:if((a=i.n()).done){e.next=18;break}return s=a.value,e.next=8,se({siteType:r.slug,layoutType:s.slug,baseLayout:"home"===s.slug?null==n?void 0:n.homeBaseLayout:null,kit:"home"!==s.slug?null==n?void 0:n.kit:null});case 8:return u=e.sent,c="",null!=u&&u.data&&(c=[null==u||null===(l=u.data)||void 0===l?void 0:l.code,null==u||null===(f=u.data)||void 0===f?void 0:f.code2].filter(Boolean).join("")),d=s.slug,e.next=14,de({title:s.title,name:d,status:"publish",content:c});case 14:h=e.sent,o[d]={id:h.id,title:s.title};case 16:e.next=4;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(2),i.e(e.t0);case 23:return e.prev=23,i.f(),e.finish(23);case 26:if(null==o||!o.home){e.next=34;break}return e.next=29,le("show_on_front","page");case 29:return e.next=31,le("page_on_front",o.home.id);case 31:if(null==o||!o.blog){e.next=34;break}return e.next=34,le("page_for_posts",o.blog);case 34:return e.next=36,le("extendify_onboarding_completed",(new Date).toISOString());case 36:return e.abrupt("return",o);case 37:case"end":return e.stop()}}),e,null,[[2,20,23,26]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){vr(i,n,o,a,s,"next",e)}function s(e){vr(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e,r,n){return t.apply(this,arguments)}}(),gr=function(e){return function(e){return ie.post("onboarding/save-theme-json",{themeJson:e})}(e.themeJson)},br=function(){return(0,Q.jsxs)(hr,{includeNav:!1,children:[(0,Q.jsx)("div",{children:(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("We encountered an error.","extendify")})}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base",children:(0,t.__)("We encountered an error that we can't recover from. You can attempt to start over by pressing the button below.","extendify")}),(0,Q.jsx)("div",{className:"flex flex-col items-start space-y-4 text-base",children:(0,Q.jsx)("a",{href:"".concat(window.extOnbData.site,"/wp-admin/post-new.php?extendify=onboarding"),children:(0,t.__)("Start over")})})]})]})};function wr(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function xr(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){wr(i,n,o,a,s,"next",e)}function s(e){wr(i,n,o,a,s,"throw",e)}a(void 0)}))}}function jr(e){return function(e){if(Array.isArray(e))return Sr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Er(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Or(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||Er(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Er(e,t){if(e){if("string"==typeof e)return Sr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Sr(e,t):void 0}}function Sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var _r=function(){var r=Ue((function(e){return e.canLaunch()})),n=Ue(),o=n.siteType,i=n.siteInformation,a=n.pages,s=n.style,u=n.goals,c=n.plugins,l=Or((0,e.useState)([]),2),f=l[0],d=l[1],h=(0,te.useSelect)((function(e){return e("core").getCurrentTheme()})),p=function(e){return d((function(t){return[e].concat(jr(t))}))};(0,e.useEffect)((function(){var e=function(e){return e.preventDefault(),e.returnValue=""},t={capture:!0};return window.addEventListener("beforeunload",e,t),function(){window.removeEventListener("beforeunload",e,t)}}),[]);var y=(0,e.useCallback)(xr(ne().mark((function e(){var n;return ne().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}throw new Error((0,t.__)("Site is not ready to launch.","extendify"));case 2:return p((0,t.__)("Preparing your website","extendify")),e.next=5,le("blogname",i.title);case 5:return e.next=7,new Promise((function(e){return setTimeout(e,2e3)}));case 7:return p((0,t.__)("Installing your theme","extendify")),e.next=10,gr(s);case 10:if(null==c||!c.length){e.next=14;break}return p((0,t.__)("Installing plugins","extendify")),e.next=14,Promise.all([].concat(jr(c.map((function(e){return he(e.wordpressSlug)}))),[new Promise((function(e){return setTimeout(e,2e3)}))]));case 14:return e.next=16,gr(s);case 16:return e.next=18,new Promise((function(e){return setTimeout(e,2e3)}));case 18:return p((0,t.__)("Inserting header area","extendify")),e.next=21,ye("".concat(null==h?void 0:h.stylesheet,"//header"),null==s?void 0:s.headerCode);case 21:return e.next=23,new Promise((function(e){return setTimeout(e,2e3)}));case 23:return p((0,t.__)("Generating page content","extendify")),e.next=26,mr(a,o,s);case 26:return n=e.sent,e.next=29,new Promise((function(e){return setTimeout(e,2e3)}));case 29:return p((0,t.__)("Inserting footer area","extendify")),e.next=32,ye("".concat(null==h?void 0:h.stylesheet,"//footer"),null==s?void 0:s.footerCode);case 32:return e.next=34,new Promise((function(e){return setTimeout(e,2e3)}));case 34:return p((0,t.__)("Finalizing your site","extendify")),e.next=37,l={siteType:[o.recordId],style:[s.recordId],pages:null==a?void 0:a.map((function(e){return e.id})),goals:null==u?void 0:u.map((function(e){return e.id}))},ie.post("onboarding/orders",l);case 37:return e.abrupt("return",n);case 38:case"end":return e.stop()}var l}),e)}))),[a,u,c,o,s,r,null==h?void 0:h.stylesheet,i.title]);return(0,e.useEffect)((function(){null!=h&&h.stylesheet&&y().then((function(e){Ne.setState({generatedPages:e})}))}),[y,null==h?void 0:h.stylesheet]),r?(0,Q.jsxs)(hr,{includeNav:!1,children:[(0,Q.jsxs)("div",{children:[(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.__)("Building your site now!","extendify")}),(0,Q.jsx)("p",{className:"text-base",children:(0,t.__)("Please don't close the window.","extendify")})]}),(0,Q.jsx)("div",{className:"w-full",children:(0,Q.jsx)("div",{className:"flex flex-col items-start space-y-4",children:f.map((function(e,r){return r?(0,Q.jsxs)("div",{className:"ml-12 text-base text-gray-500 flex",children:[(0,Q.jsx)(rt,{className:"text-green-500 w-6 mr-1"}),(0,t.sprintf)(e,"...")]},e):(0,Q.jsxs)("div",{className:"text-4xl flex space-x-4 items-center",children:[(0,Q.jsx)(Tt,{className:"spin w-10 mr-2"}),(0,t.sprintf)(e,"...")]},e)}))})})]}):(0,Q.jsx)(br,{})};function Pr(e){return(function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce(((e,t)=>{const[r,n=""]=t.split("=").filter(Boolean).map(decodeURIComponent);if(r){!function(e,t,r){const n=t.length,o=n-1;for(let i=0;i<n;i++){let n=t[i];!n&&Array.isArray(e)&&(n=e.length.toString()),n=["__proto__","constructor","prototype"].includes(n)?n.toUpperCase():n;const a=!isNaN(Number(t[i+1]));e[n]=i===o?r:e[n]||(a?[]:{}),Array.isArray(e[n])&&!a&&(e[n]={...e[n]}),e=e[n]}}(e,r.replace(/\]/g,"").split("["),n)}return e}),Object.create(null))}function Cr(e){let t="";const r=Object.entries(e);let n;for(;n=r.shift();){let[e,o]=n;if(Array.isArray(o)||o&&o.constructor===Object){const t=Object.entries(o).reverse();for(const[n,o]of t)r.unshift([`${e}[${n}]`,o])}else void 0!==o&&(null===o&&(o=""),t+="&"+[e,o].map(encodeURIComponent).join("="))}return t.substr(1)}function Nr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;let r=e;const n=e.indexOf("?");return-1!==n&&(t=Object.assign(Pr(e),t),r=r.substr(0,n)),r+"?"+Cr(t)}var Ar={};!function e(t,r,n,o){var i=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function a(){}function s(e){var n=r.exports.Promise,o=void 0!==n?n:t.Promise;return"function"==typeof o?new o(e):(e(a,a),null)}var u,c,l,f,d,h,p,y,v,m=(l=Math.floor(1e3/60),f={},d=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(u=function(e){var t=Math.random();return f[t]=requestAnimationFrame((function r(n){d===n||d+l-1<n?(d=n,delete f[t],e()):f[t]=requestAnimationFrame(r)})),t},c=function(e){f[e]&&cancelAnimationFrame(f[e])}):(u=function(e){return setTimeout(e,l)},c=function(e){return clearTimeout(e)}),{frame:u,cancel:c}),g=(y={},function(){if(h)return h;if(!n&&i){var t=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{h=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,r){e.postMessage({options:t||{},callback:r})}e.init=function(t){var r=t.transferControlToOffscreen();e.postMessage({canvas:r},[r])},e.fire=function(r,n,o){if(p)return t(r,null),p;var i=Math.random().toString(36).slice(2);return p=s((function(n){function a(t){t.data.callback===i&&(delete y[i],e.removeEventListener("message",a),p=null,o(),n())}e.addEventListener("message",a),t(r,i),y[i]=a.bind(null,{data:{callback:i}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),y)y[t](),delete y[t]}}(h)}return h}),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,r){return function(e,t){return t?t(e):e}(e&&null!=e[t]?e[t]:b[t],r)}function x(e){return e<0?0:Math.floor(e)}function j(e){return parseInt(e,16)}function O(e){return e.map(E)}function E(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:j(t.substring(0,2)),g:j(t.substring(2,4)),b:j(t.substring(4,6))}}function S(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function _(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function P(e,t,r,i,a){var u,c,l=t.slice(),f=e.getContext("2d"),d=s((function(t){function s(){u=c=null,f.clearRect(0,0,i.width,i.height),a(),t()}u=m.frame((function t(){!n||i.width===o.width&&i.height===o.height||(i.width=e.width=o.width,i.height=e.height=o.height),i.width||i.height||(r(e),i.width=e.width,i.height=e.height),f.clearRect(0,0,i.width,i.height),l=l.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 r=t.tick++/t.totalTicks,n=t.x+t.random*t.tiltCos,o=t.y+t.random*t.tiltSin,i=t.wobbleX+t.random*t.tiltCos,a=t.wobbleY+t.random*t.tiltSin;return e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-r)+")",e.beginPath(),"circle"===t.shape?e.ellipse?e.ellipse(t.x,t.y,Math.abs(i-n)*t.ovalScalar,Math.abs(a-o)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,r,n,o,i,a,s,u){e.save(),e.translate(t,r),e.rotate(i),e.scale(n,o),e.arc(0,0,1,a,s,u),e.restore()}(e,t.x,t.y,Math.abs(i-n)*t.ovalScalar,Math.abs(a-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(i),Math.floor(a)),e.lineTo(Math.floor(n),Math.floor(t.wobbleY))),e.closePath(),e.fill(),t.tick<t.totalTicks}(f,e)})),l.length?u=m.frame(t):s()})),c=s}));return{addFettis:function(e){return l=l.concat(e),d},canvas:e,promise:d,reset:function(){u&&m.cancel(u),c&&c()}}}function C(e,r){var n,o=!e,a=!!w(r||{},"resize"),u=w(r,"disableForReducedMotion",Boolean),c=i&&!!w(r||{},"useWorker")?g():null,l=o?S:_,f=!(!e||!c)&&!!e.__confetti_initialized,d="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function h(t,r,o){for(var i,a,s,u,c,f=w(t,"particleCount",x),d=w(t,"angle",Number),h=w(t,"spread",Number),p=w(t,"startVelocity",Number),y=w(t,"decay",Number),v=w(t,"gravity",Number),m=w(t,"drift",Number),g=w(t,"colors",O),b=w(t,"ticks",Number),j=w(t,"shapes"),E=w(t,"scalar"),S=function(e){var t=w(e,"origin",Object);return t.x=w(t,"x",Number),t.y=w(t,"y",Number),t}(t),_=f,C=[],N=e.width*S.x,A=e.height*S.y;_--;)C.push((i={x:N,y:A,angle:d,spread:h,startVelocity:p,color:g[_%g.length],shape:j[(u=0,c=j.length,Math.floor(Math.random()*(c-u))+u)],ticks:b,decay:y,gravity:v,drift:m,scalar:E},a=void 0,s=void 0,a=i.angle*(Math.PI/180),s=i.spread*(Math.PI/180),{x:i.x,y:i.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*i.startVelocity+Math.random()*i.startVelocity,angle2D:-a+(.5*s-Math.random()*s),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:i.color,shape:i.shape,tick:0,totalTicks:i.ticks,decay:i.decay,drift:i.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*i.gravity,ovalScalar:.6,scalar:i.scalar}));return n?n.addFettis(C):(n=P(e,C,l,r,o)).promise}function p(r){var i=u||w(r,"disableForReducedMotion",Boolean),p=w(r,"zIndex",Number);if(i&&d)return s((function(e){e()}));o&&n?e=n.canvas:o&&!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}(p),document.body.appendChild(e)),a&&!f&&l(e);var y={width:e.width,height:e.height};function v(){if(c){var t={getBoundingClientRect:function(){if(!o)return e.getBoundingClientRect()}};return l(t),void c.postMessage({resize:{width:t.width,height:t.height}})}y.width=y.height=null}function m(){n=null,a&&t.removeEventListener("resize",v),o&&e&&(document.body.removeChild(e),e=null,f=!1)}return c&&!f&&c.init(e),f=!0,c&&(e.__confetti_initialized=!0),a&&t.addEventListener("resize",v,!1),c?c.fire(r,y,m):h(r,y,m)}return p.reset=function(){c&&c.reset(),n&&n.reset()},p}function N(){return v||(v=C(null,{useWorker:!0,resize:!0})),v}r.exports=function(){return N().apply(this,arguments)},r.exports.reset=function(){N().reset()},r.exports.create=C}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),Ar,!1);const Tr=Ar.exports;Ar.exports.create;function Rr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function kr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(r),!0).forEach((function(t){Lr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Lr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ir=function(){var r,n,o=Ne((function(e){return e.generatedPages})),i=Ue((function(e){return e.siteType}));return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(0,e.useEffect)((function(){var e=Date.now()+r;!function r(){Tr(kr(kr({},t),{},{disableForReducedMotion:!0,zIndex:1e5})),Date.now()<e&&requestAnimationFrame(r)}()}),[t,r])}({particleCount:2,angle:60,spread:55,origin:{x:0,y:.7},colors:["var(--ext-partner-theme-primary-text, #ffffff)"]},3e3),(0,Q.jsxs)(hr,{includeNav:!1,children:[(0,Q.jsx)("div",{children:(0,Q.jsx)("h1",{className:"text-3xl text-white mb-4 mt-0",children:(0,t.sprintf)((0,t.__)("Your site has been successfully created. Enjoy!","extendify"),null==i||null===(r=i.label)||void 0===r?void 0:r.toLowerCase())})}),(0,Q.jsxs)("div",{className:"w-full",children:[(0,Q.jsx)("p",{className:"mt-0 mb-8 text-base text-center",children:(0,t.__)("Your site is ready! You can now go to your site and start editing content.","extendify")}),(0,Q.jsxs)("div",{className:"text-center w-360 flex flex-col justify-center items-center -mt-150",children:[(0,Q.jsx)(rt,{className:"w-16 bg-partner-primary-bg text-partner-primary-text rounded-full"}),(0,Q.jsx)("h3",{className:"mb-8",children:(0,t.__)("All Done","extendify")}),(0,Q.jsx)("div",{className:"flex space-x-4",children:(0,Q.jsx)("a",{className:"px-4 py-3 rounded-md bg-gray-200 text-black no-underline hover:bg-partner-primary-bg hover:text-partner-primary-text font-medium",target:"_blank",rel:"noreferrer",href:window.extOnbData.home,children:(0,t.__)("View Site","extendify")})}),(0,Q.jsxs)("div",{className:"text-left self-start px-10 py-4 w-full",children:[(0,Q.jsx)("h4",{className:"",children:(0,t.__)("New Pages:","extendify")}),(0,Q.jsx)("div",{className:"",children:null===(n=Object.values(o))||void 0===n?void 0:n.map((function(e){return(0,Q.jsxs)("div",{className:"flex items-center mb-2",children:[(0,Q.jsx)(rt,{className:"w-6 text-green-500"}),(0,Q.jsx)("a",{target:"_blank",href:Nr("post.php",{post:e.id,action:"edit"}),className:"text-primary no-underline hover:underline ml-2 text-base",rel:"noreferrer",children:e.title})]},e.id)}))})]})]})]})]})};function Dr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Mr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Br,Ur=function(){var r,n,o=Ue((function(e){return e.resetState})),i=Dr((0,e.useState)(!1),2),a=i[0],s=i[1],u=fr((function(e){return e.currentPageData()})).component,c=fr((function(e){return e.nextPageData()})),l=c.fetcher,f=c.fetchData,d=Z().mutate,h=Ne((function(e){return e.generating})),p=Ne((function(e){return e.generatedPages})),y=Dr((0,e.useState)(!1),2),v=y[0],m=y[1];return n=(0,te.useSelect)((function(e){return e("core/edit-post").isFeatureActive("welcomeGuide")}),[]),(0,e.useEffect)((function(){n&&(0,te.dispatch)("core/edit-post").toggleFeature("welcomeGuide")}),[n]),(0,e.useLayoutEffect)((function(){var e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){return document.body.style.overflow=e}}),[]),(0,e.useEffect)((function(){if(v){var e=setTimeout((function(){window.dispatchEvent(new CustomEvent("extendify::close-library",{bubbles:!0}))}),0);return document.title=(0,t.__)("Extendify Launch","extendify"),function(){return clearTimeout(e)}}}),[v]),(0,e.useEffect)((function(){o();var e=new URLSearchParams(window.location.search);m(["onboarding"].includes(e.get("extendify")))}),[o]),(0,e.useEffect)((function(){l&&d(f,l)}),[l,d,f]),v?null!==(r=Object.keys(p))&&void 0!==r&&r.length?(0,Q.jsx)("div",{className:"h-screen w-screen fixed z-high inset-0 overflow-y-auto md:overflow-hidden bg-white",children:(0,Q.jsx)(Ir,{})}):(0,Q.jsxs)($,{value:{errorRetryInterval:1e3,onErrorRetry:function(e,t){var r;console.error(t,e),403!==(null==e||null===(r=e.data)||void 0===r?void 0:r.status)?a||(s(!0),setTimeout((function(){s(!1)}),5e3)):window.location.reload()}},children:[(0,Q.jsx)("div",{style:{zIndex:1e5},className:"h-screen w-screen fixed inset-0 overflow-y-auto md:overflow-hidden bg-white",children:h?(0,Q.jsx)(_r,{}):(0,Q.jsx)(u,{})}),a&&(0,Q.jsx)(ee,{})]}):null},Fr=Object.assign(document.createElement("div"),{id:"extendify-onboarding-root",className:"extendify-onboarding"});document.body.append(Fr),Br=function(){window._wpLoadBlockEditor&&(0,e.render)((0,Q.jsx)(Ur,{}),Fr)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",Br):Br())})()})();
|
public/build/extendify.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
div.extendify .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 .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 .pointer-events-none{pointer-events:none!important}div.extendify .invisible{visibility:hidden!important}div.extendify .group:focus .group-focus\:visible,div.extendify .group:hover .group-hover\:visible{visibility:visible!important}div.extendify .static{position:static!important}div.extendify .fixed{position:fixed!important}div.extendify .absolute{position:absolute!important}div.extendify .relative{position:relative!important}div.extendify .sticky{position:-webkit-sticky!important;position:sticky!important}div.extendify .inset-0{bottom:0!important;left:0!important;right:0!important;top:0!important}div.extendify .top-0{top:0!important}div.extendify .top-2{top:.5rem!important}div.extendify .top-4{top:1rem!important}div.extendify .-top-1\/4{top:-25%!important}div.extendify .right-0{right:0!important}div.extendify .right-1{right:.25rem!important}div.extendify .right-2{right:.5rem!important}div.extendify .right-3{right:.75rem!important}div.extendify .right-4{right:1rem!important}div.extendify .right-2\.5{right:.625rem!important}div.extendify .bottom-0{bottom:0!important}div.extendify .bottom-4{bottom:1rem!important}div.extendify .-bottom-2{bottom:-.5rem!important}div.extendify .left-0{left:0!important}div.extendify .group:hover .group-hover\:-top-2{top:-.5rem!important}div.extendify .group:hover .group-hover\:-top-2\.5{top:-.625rem!important}div.extendify .group:focus .group-focus\:-top-2{top:-.5rem!important}div.extendify .group:focus .group-focus\:-top-2\.5{top:-.625rem!important}div.extendify .z-10{z-index:10!important}div.extendify .z-20{z-index:20!important}div.extendify .z-30{z-index:30!important}div.extendify .z-40{z-index:40!important}div.extendify .z-50{z-index:50!important}div.extendify .z-high{z-index:99999!important}div.extendify .z-max{z-index:2147483647!important}div.extendify .m-0{margin:0!important}div.extendify .m-8{margin:2rem!important}div.extendify .m-auto{margin:auto!important}div.extendify .-m-2{margin:-.5rem!important}div.extendify .mx-1{margin-left:.25rem!important;margin-right:.25rem!important}div.extendify .mx-6{margin-left:1.5rem!important;margin-right:1.5rem!important}div.extendify .mx-auto{margin-left:auto!important;margin-right:auto!important}div.extendify .-mx-4{margin-left:-1rem!important;margin-right:-1rem!important}div.extendify .my-0{margin-bottom:0!important;margin-top:0!important}div.extendify .my-px{margin-bottom:1px!important;margin-top:1px!important}div.extendify .mt-0{margin-top:0!important}div.extendify .mt-2{margin-top:.5rem!important}div.extendify .mt-4{margin-top:1rem!important}div.extendify .mt-8{margin-top:2rem!important}div.extendify .mt-px{margin-top:1px!important}div.extendify .-mt-2{margin-top:-.5rem!important}div.extendify .-mt-5{margin-top:-1.25rem!important}div.extendify .mr-1{margin-right:.25rem!important}div.extendify .mr-2{margin-right:.5rem!important}div.extendify .mr-6{margin-right:1.5rem!important}div.extendify .-mr-1{margin-right:-.25rem!important}div.extendify .-mr-1\.5{margin-right:-.375rem!important}div.extendify .mb-0{margin-bottom:0!important}div.extendify .mb-1{margin-bottom:.25rem!important}div.extendify .mb-2{margin-bottom:.5rem!important}div.extendify .mb-3{margin-bottom:.75rem!important}div.extendify .mb-4{margin-bottom:1rem!important}div.extendify .mb-5{margin-bottom:1.25rem!important}div.extendify .mb-8{margin-bottom:2rem!important}div.extendify .mb-10{margin-bottom:2.5rem!important}div.extendify .ml-1{margin-left:.25rem!important}div.extendify .ml-2{margin-left:.5rem!important}div.extendify .ml-4{margin-left:1rem!important}div.extendify .ml-12{margin-left:3rem!important}div.extendify .-ml-1{margin-left:-.25rem!important}div.extendify .-ml-2{margin-left:-.5rem!important}div.extendify .-ml-6{margin-left:-1.5rem!important}div.extendify .-ml-px{margin-left:-1px!important}div.extendify .-ml-1\.5{margin-left:-.375rem!important}div.extendify .block{display:block!important}div.extendify .inline-block{display:inline-block!important}div.extendify .flex{display:flex!important}div.extendify .inline-flex{display:inline-flex!important}div.extendify .table{display:table!important}div.extendify .grid{display:grid!important}div.extendify .hidden{display:none!important}div.extendify .h-0{height:0!important}div.extendify .h-2{height:.5rem!important}div.extendify .h-4{height:1rem!important}div.extendify .h-8{height:2rem!important}div.extendify .h-12{height:3rem!important}div.extendify .h-64{height:16rem!important}div.extendify .h-auto{height:auto!important}div.extendify .h-full{height:100%!important}div.extendify .h-screen{height:100vh!important}div.extendify .max-h-96{max-height:24rem!important}div.extendify .min-h-screen{min-height:100vh!important}div.extendify .w-0{width:0!important}div.extendify .w-4{width:1rem!important}div.extendify .w-6{width:1.5rem!important}div.extendify .w-8{width:2rem!important}div.extendify .w-10{width:2.5rem!important}div.extendify .w-16{width:4rem!important}div.extendify .w-20{width:5rem!important}div.extendify .w-28{width:7rem!important}div.extendify .w-32{width:8rem!important}div.extendify .w-72{width:18rem!important}div.extendify .w-80{width:20rem!important}div.extendify .w-96{width:24rem!important}div.extendify .w-auto{width:auto!important}div.extendify .w-6\/12{width:50%!important}div.extendify .w-7\/12{width:58.333333%!important}div.extendify .w-full{width:100%!important}div.extendify .w-screen{width:100vw!important}div.extendify .min-w-0{min-width:0!important}div.extendify .min-w-sm{min-width:7rem!important}div.extendify .max-w-sm{max-width:24rem!important}div.extendify .max-w-md{max-width:28rem!important}div.extendify .max-w-lg{max-width:32rem!important}div.extendify .max-w-xl{max-width:36rem!important}div.extendify .max-w-2xl{max-width:42rem!important}div.extendify .max-w-full{max-width:100%!important}div.extendify .max-w-screen-4xl{max-width:1920px!important}div.extendify .flex-1{flex:1 1 0%!important}div.extendify .flex-shrink-0{flex-shrink:0!important}div.extendify .flex-grow-0{flex-grow:0!important}div.extendify .flex-grow{flex-grow:1!important}div.extendify .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 .-translate-x-1{--tw-translate-x:-0.25rem!important}div.extendify .translate-y-0{--tw-translate-y:0px!important}div.extendify .translate-y-4{--tw-translate-y:1rem!important}div.extendify .-translate-y-px{--tw-translate-y:-1px!important}div.extendify .-translate-y-full{--tw-translate-y:-100%!important}div.extendify .rotate-90{--tw-rotate:90deg!important}div.extendify .cursor-pointer{cursor:pointer!important}div.extendify .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}div.extendify .flex-col{flex-direction:column!important}div.extendify .items-start{align-items:flex-start!important}div.extendify .items-end{align-items:flex-end!important}div.extendify .items-center{align-items:center!important}div.extendify .justify-end{justify-content:flex-end!important}div.extendify .justify-center{justify-content:center!important}div.extendify .justify-between{justify-content:space-between!important}div.extendify .justify-evenly{justify-content:space-evenly!important}div.extendify .gap-4{gap:1rem!important}div.extendify .gap-6{gap:1.5rem!important}div.extendify .gap-8{gap:2rem!important}div.extendify .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 .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 .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 .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 .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 .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 .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 .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 .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 .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 .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 .self-start{align-self:flex-start!important}div.extendify .overflow-hidden{overflow:hidden!important}div.extendify .overflow-y-auto{overflow-y:auto!important}div.extendify .overflow-x-hidden{overflow-x:hidden!important}div.extendify .whitespace-nowrap{white-space:nowrap!important}div.extendify .rounded-sm{border-radius:.125rem!important}div.extendify .rounded{border-radius:.25rem!important}div.extendify .rounded-md{border-radius:.375rem!important}div.extendify .rounded-lg{border-radius:.5rem!important}div.extendify .rounded-full{border-radius:9999px!important}div.extendify .rounded-tr-sm{border-top-right-radius:.125rem!important}div.extendify .rounded-br-sm{border-bottom-right-radius:.125rem!important}div.extendify .border-0{border-width:0!important}div.extendify .border-2{border-width:2px!important}div.extendify .border-8{border-width:8px!important}div.extendify .border{border-width:1px!important}div.extendify .border-r{border-right-width:1px!important}div.extendify .border-b-0{border-bottom-width:0!important}div.extendify .border-b{border-bottom-width:1px!important}div.extendify .border-l-8{border-left-width:8px!important}div.extendify .border-solid{border-style:solid!important}div.extendify .border-none{border-style:none!important}div.extendify .border-transparent{border-color:transparent!important}div.extendify .border-black{--tw-border-opacity:1!important;border-color:rgba(0,0,0,var(--tw-border-opacity))!important}div.extendify .border-gray-100{--tw-border-opacity:1!important;border-color:rgba(240,240,240,var(--tw-border-opacity))!important}div.extendify .border-gray-200{--tw-border-opacity:1!important;border-color:rgba(224,224,224,var(--tw-border-opacity))!important}div.extendify .border-gray-600{--tw-border-opacity:1!important;border-color:rgba(148,148,148,var(--tw-border-opacity))!important}div.extendify .border-gray-900{--tw-border-opacity:1!important;border-color:rgba(30,30,30,var(--tw-border-opacity))!important}div.extendify .border-extendify-main{--tw-border-opacity:1!important;border-color:rgba(11,74,67,var(--tw-border-opacity))!important}div.extendify .border-extendify-secondary{--tw-border-opacity:1!important;border-color:rgba(203,195,245,var(--tw-border-opacity))!important}div.extendify .border-extendify-transparent-black-100{border-color:rgba(0,0,0,.07)!important}div.extendify .border-wp-alert-red{--tw-border-opacity:1!important;border-color:rgba(204,24,24,var(--tw-border-opacity))!important}div.extendify .focus\:border-transparent:focus{border-color:transparent!important}div.extendify .bg-transparent{background-color:transparent!important}div.extendify .bg-black{--tw-bg-opacity:1!important;background-color:rgba(0,0,0,var(--tw-bg-opacity))!important}div.extendify .bg-white{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}div.extendify .bg-gray-50{--tw-bg-opacity:1!important;background-color:rgba(251,251,251,var(--tw-bg-opacity))!important}div.extendify .bg-gray-100{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify .bg-gray-200{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify .bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify .bg-partner-primary-bg{background-color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify .bg-extendify-main{--tw-bg-opacity:1!important;background-color:rgba(11,74,67,var(--tw-bg-opacity))!important}div.extendify .bg-extendify-alert{--tw-bg-opacity:1!important;background-color:rgba(132,16,16,var(--tw-bg-opacity))!important}div.extendify .bg-extendify-secondary{--tw-bg-opacity:1!important;background-color:rgba(203,195,245,var(--tw-bg-opacity))!important}div.extendify .bg-extendify-transparent-white{background-color:hsla(0,0%,99%,.88)!important}div.extendify .bg-wp-theme-500{background-color:var(--wp-admin-theme-color,#007cba)!important}div.extendify .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 .hover\:bg-gray-200:hover{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify .hover\:bg-partner-primary-bg:hover{background-color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify .hover\:bg-extendify-main-dark:hover{--tw-bg-opacity:1!important;background-color:rgba(5,49,44,var(--tw-bg-opacity))!important}div.extendify .hover\:bg-wp-theme-600:hover{background-color:var(--wp-admin-theme-color-darker-10,#006ba1)!important}div.extendify .focus\:bg-gray-100:focus{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify .active\:bg-gray-900:active{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify .bg-opacity-40{--tw-bg-opacity:0.4!important}div.extendify .bg-cover{background-size:cover!important}div.extendify .bg-clip-padding{background-clip:padding-box!important}div.extendify .fill-current{fill:currentColor!important}div.extendify .stroke-current{stroke:currentColor!important}div.extendify .p-0{padding:0!important}div.extendify .p-1{padding:.25rem!important}div.extendify .p-2{padding:.5rem!important}div.extendify .p-3{padding:.75rem!important}div.extendify .p-4{padding:1rem!important}div.extendify .p-6{padding:1.5rem!important}div.extendify .p-8{padding:2rem!important}div.extendify .p-10{padding:2.5rem!important}div.extendify .p-12{padding:3rem!important}div.extendify .p-0\.5{padding:.125rem!important}div.extendify .p-1\.5{padding:.375rem!important}div.extendify .p-3\.5{padding:.875rem!important}div.extendify .px-0{padding-left:0!important;padding-right:0!important}div.extendify .px-1{padding-left:.25rem!important;padding-right:.25rem!important}div.extendify .px-2{padding-left:.5rem!important;padding-right:.5rem!important}div.extendify .px-3{padding-left:.75rem!important;padding-right:.75rem!important}div.extendify .px-4{padding-left:1rem!important;padding-right:1rem!important}div.extendify .px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}div.extendify .px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}div.extendify .px-8{padding-left:2rem!important;padding-right:2rem!important}div.extendify .px-10{padding-left:2.5rem!important;padding-right:2.5rem!important}div.extendify .px-0\.5{padding-left:.125rem!important;padding-right:.125rem!important}div.extendify .px-2\.5{padding-left:.625rem!important;padding-right:.625rem!important}div.extendify .py-0{padding-bottom:0!important;padding-top:0!important}div.extendify .py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}div.extendify .py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}div.extendify .py-3{padding-bottom:.75rem!important;padding-top:.75rem!important}div.extendify .py-4{padding-bottom:1rem!important;padding-top:1rem!important}div.extendify .py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}div.extendify .py-12{padding-bottom:3rem!important;padding-top:3rem!important}div.extendify .py-16{padding-bottom:4rem!important;padding-top:4rem!important}div.extendify .py-2\.5{padding-bottom:.625rem!important;padding-top:.625rem!important}div.extendify .pt-0{padding-top:0!important}div.extendify .pt-2{padding-top:.5rem!important}div.extendify .pt-4{padding-top:1rem!important}div.extendify .pt-6{padding-top:1.5rem!important}div.extendify .pt-px{padding-top:1px!important}div.extendify .pt-0\.5{padding-top:.125rem!important}div.extendify .pr-3{padding-right:.75rem!important}div.extendify .pr-8{padding-right:2rem!important}div.extendify .pb-2{padding-bottom:.5rem!important}div.extendify .pb-8{padding-bottom:2rem!important}div.extendify .pb-20{padding-bottom:5rem!important}div.extendify .pb-36{padding-bottom:9rem!important}div.extendify .pb-40{padding-bottom:10rem!important}div.extendify .pl-0{padding-left:0!important}div.extendify .pl-2{padding-left:.5rem!important}div.extendify .pl-6{padding-left:1.5rem!important}div.extendify .text-left{text-align:left!important}div.extendify .text-center{text-align:center!important}div.extendify .text-xs{font-size:.75rem!important;line-height:1rem!important}div.extendify .text-sm{font-size:.875rem!important;line-height:1.25rem!important}div.extendify .text-base{font-size:1rem!important;line-height:1.5rem!important}div.extendify .text-lg{font-size:1.125rem!important;line-height:1.75rem!important}div.extendify .text-xl{font-size:1.25rem!important;line-height:1.75rem!important}div.extendify .text-3xl{font-size:2rem!important;line-height:2.5rem!important}div.extendify .text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}div.extendify .text-xss{font-size:11px!important}div.extendify .font-light{font-weight:300!important}div.extendify .font-normal{font-weight:400!important}div.extendify .font-medium{font-weight:500!important}div.extendify .font-semibold{font-weight:600!important}div.extendify .font-bold{font-weight:700!important}div.extendify .uppercase{text-transform:uppercase!important}div.extendify .italic{font-style:italic!important}div.extendify .leading-none{line-height:1!important}div.extendify .tracking-tight{letter-spacing:-.025em!important}div.extendify .text-black{--tw-text-opacity:1!important;color:rgba(0,0,0,var(--tw-text-opacity))!important}div.extendify .text-white{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify .text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify .text-gray-500{--tw-text-opacity:1!important;color:rgba(204,204,204,var(--tw-text-opacity))!important}div.extendify .text-gray-700{--tw-text-opacity:1!important;color:rgba(117,117,117,var(--tw-text-opacity))!important}div.extendify .text-gray-800{--tw-text-opacity:1!important;color:rgba(31,41,55,var(--tw-text-opacity))!important}div.extendify .text-gray-900{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify .text-green-500{--tw-text-opacity:1!important;color:rgba(16,185,129,var(--tw-text-opacity))!important}div.extendify .text-partner-primary-text{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify .text-partner-primary-bg{color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify .text-extendify-main{--tw-text-opacity:1!important;color:rgba(11,74,67,var(--tw-text-opacity))!important}div.extendify .text-extendify-gray{--tw-text-opacity:1!important;color:rgba(95,95,95,var(--tw-text-opacity))!important}div.extendify .text-extendify-black{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify .text-wp-theme-500{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify .text-wp-alert-red{--tw-text-opacity:1!important;color:rgba(204,24,24,var(--tw-text-opacity))!important}div.extendify .group:hover .group-hover\:text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify .hover\:text-white:hover{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify .hover\:text-partner-primary-text:hover{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify .hover\:text-partner-primary-bg:hover{color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify .hover\:text-wp-theme-500:hover{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify .focus\:text-white:focus{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify .focus\:text-blue-500:focus{--tw-text-opacity:1!important;color:rgba(59,130,246,var(--tw-text-opacity))!important}div.extendify .underline{text-decoration:underline!important}div.extendify .no-underline{text-decoration:none!important}div.extendify .hover\:underline:hover{text-decoration:underline!important}div.extendify .hover\:no-underline:hover{text-decoration:none!important}div.extendify .opacity-0{opacity:0!important}div.extendify .opacity-30{opacity:.3!important}div.extendify .opacity-50{opacity:.5!important}div.extendify .opacity-70{opacity:.7!important}div.extendify .opacity-75{opacity:.75!important}div.extendify .focus\:opacity-100:focus,div.extendify .group:focus .group-focus\:opacity-100,div.extendify .group:hover .group-hover\:opacity-100,div.extendify .hover\:opacity-100:hover,div.extendify .opacity-100{opacity:1!important}div.extendify .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05)!important}div.extendify .shadow-md,div.extendify .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 .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 .shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25)!important}div.extendify .shadow-2xl,div.extendify .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 .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 .focus\:shadow-none: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}div.extendify .focus\:outline-none:focus,div.extendify .outline-none{outline:2px solid transparent!important;outline-offset:2px!important}div.extendify .focus\:ring-wp:focus,div.extendify .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 .ring-partner-primary-bg{--tw-ring-color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify .ring-offset-2{--tw-ring-offset-width:2px!important}div.extendify .ring-offset-white{--tw-ring-offset-color:#fff!important}div.extendify .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 .blur{--tw-blur:blur(8px)!important}div.extendify .invert{--tw-invert:invert(100%)!important}div.extendify .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 .backdrop-blur-xl{--tw-backdrop-blur:blur(24px)!important}div.extendify .backdrop-saturate-200{--tw-backdrop-saturate:saturate(2)!important}div.extendify .transition-all{transition-duration:.15s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify .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 .transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify .delay-200{transition-delay:.2s!important}div.extendify .duration-100{transition-duration:.1s!important}div.extendify .duration-200{transition-duration:.2s!important}div.extendify .duration-300{transition-duration:.3s!important}div.extendify .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}div.extendify .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.extendify{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/)!important;--tw-ring-offset-width:0px!important;--tw-ring-offset-color:transparent!important;--tw-ring-color:var(--wp-admin-theme-color)!important}.extendify *,.extendify :after,.extendify :before{border:0 solid #e5e7eb!important;box-sizing:border-box!important}.extendify .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 .button-focus{outline:2px solid transparent!important;outline-offset:2px!important}.extendify .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;--tw-ring-color:var(--wp-admin-theme-color,#007cba)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}div.extendify button.extendify-skip-to-sr-link:focus{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important;padding:1rem!important;position:fixed!important;top:0!important;z-index:99999!important}.button-extendify-main{--tw-bg-opacity:1!important;background-color:rgba(11,74,67,var(--tw-bg-opacity))!important;border-radius:.25rem!important;cursor:pointer!important;white-space:nowrap!important}.button-extendify-main:hover{--tw-bg-opacity:1!important;background-color:rgba(5,49,44,var(--tw-bg-opacity))!important}.button-extendify-main:active{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}.button-extendify-main{font-size:1rem!important;line-height:1.5rem!important;padding:.375rem .75rem!important}.button-extendify-main,.button-extendify-main:active,.button-extendify-main:focus,.button-extendify-main:hover{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}.button-extendify-main{text-decoration:none!important;transition-duration:.15s!important;transition-duration:.2s!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}.extendify .button-extendify-main: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 .button-extendify-main{outline:2px solid transparent!important;outline-offset:2px!important}.extendify .button-extendify-main: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(--wp-admin-theme-color,#007cba)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.extendify input.button-extendify-main:focus,.extendify input.button-focus:focus,.extendify select.button-extendify-main:focus,.extendify select.button-focus:focus{--tw-shadow:0 0 #0000!important;border-color:transparent!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;outline:2px solid transparent!important;outline-offset:2px!important}#extendify-search-input:not(:-moz-placeholder-shown)~svg{display:none!important}#extendify-search-input:not(:-ms-input-placeholder)~svg{display:none!important}#extendify-search-input:focus~svg,#extendify-search-input:not(:placeholder-shown)~svg{display:none!important}#extendify-search-input::-webkit-textfield-decoration-container{margin-right:.75rem!important}.extendify .components-panel__body>.components-panel__body-title{background-color:transparent!important;border-bottom:1px solid #e0e0e0!important}.extendify .components-modal__header{--tw-border-opacity:1!important;border-bottom-width:1px!important;border-color:rgba(221,221,221,var(--tw-border-opacity))!important}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container>.ext{max-width:none!important}.extendify .block-editor-block-preview__container{-webkit-animation:extendifyOpacityIn .2s cubic-bezier(.694,0,.335,1) 0ms forwards;animation:extendifyOpacityIn .2s cubic-bezier(.694,0,.335,1) 0ms forwards;opacity:0}.extendify .is-root-container>[data-align=full],.extendify .is-root-container>[data-align=full]>.wp-block,.extendify .is-root-container>[data-block]{margin-bottom:0!important;margin-top:0!important}.editor-styles-wrapper:not(.block-editor-writing-flow)>.is-root-container :where(.wp-block)[data-align=full]{margin-bottom:0!important;margin-top:0!important}@-webkit-keyframes extendifyOpacityIn{0%{opacity:0}to{opacity:1}}@keyframes extendifyOpacityIn{0%{opacity:0}to{opacity:1}}.extendify .with-light-shadow:after{--tw-shadow:inset 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,.025)!important;border-width:0!important;bottom:0!important;content:""!important;left:0!important;position:absolute!important;right:0!important;top:0!important}.extendify .with-light-shadow:after,.extendify .with-light-shadow:hover:after{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify .with-light-shadow:hover:after{--tw-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 3px 15px -3px rgba(0,0,0,.025),0 0 1px rgba(0,0,0,.02)!important}@supports not (((-webkit-backdrop-filter:saturate(2) blur(24px)) or (backdrop-filter:saturate(2) blur(24px)))){div.extendify .bg-extendify-transparent-white{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}}.components-panel__body.ext-type-control .components-panel__body-title{border-bottom-width:0!important;margin:0 -1rem!important;padding-left:1.25rem!important;padding-right:1.25rem!important}.extendify .animate-pulse{-webkit-animation:extendifyPulse 3s cubic-bezier(.4,0,.6,1) infinite;animation:extendifyPulse 3s cubic-bezier(.4,0,.6,1) infinite}@-webkit-keyframes extendifyPulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes extendifyPulse{0%,to{opacity:1}50%{opacity:.5}}.is-template--in-review:before,.is-template--inactive:before{--tw-border-opacity:1!important;border-color:rgba(203,195,245,var(--tw-border-opacity))!important;border-style:solid!important;border-width:8px!important;bottom:0!important;content:""!important;height:100%!important;left:0!important;position:absolute!important;right:0!important;top:0!important;width:100%!important;z-index:40!important}.is-template--inactive:before{border-color:#fdeab6!important}.extendify-tooltip-default:not(.is-without-arrow)[data-y-axis=bottom]:after{border-bottom-color:#1e1e1e!important}.extendify-tooltip-default:not(.is-without-arrow):before{border-color:transparent!important}.extendify-tooltip-default:not(.is-without-arrow) .components-popover__content{--tw-bg-opacity:1!important;--tw-text-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important;border-color:transparent!important;color:rgba(255,255,255,var(--tw-text-opacity))!important;min-width:250px!important;padding:1rem!important}.extendify-bottom-arrow:after{--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;--tw-translate-y:-1px!important;border-color:#1e1e1e transparent transparent!important;border-width:8px!important;bottom:-15px!important;content:""!important;display:inline-block!important;height:0!important;position:absolute!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;width:0!important}@media (min-width:480px){div.extendify .xs\:inline{display:inline!important}div.extendify .xs\:h-9{height:2.25rem!important}div.extendify .xs\:pr-3{padding-right:.75rem!important}div.extendify .xs\:pl-2{padding-left:.5rem!important}}@media (min-width:600px){div.extendify .sm\:mx-0{margin-left:0!important;margin-right:0!important}div.extendify .sm\:mt-0{margin-top:0!important}div.extendify .sm\:mb-8{margin-bottom:2rem!important}div.extendify .sm\:ml-2{margin-left:.5rem!important}div.extendify .sm\:block{display:block!important}div.extendify .sm\:flex{display:flex!important}div.extendify .sm\:h-auto{height:auto!important}div.extendify .sm\:w-72{width:18rem!important}div.extendify .sm\:w-auto{width:auto!important}div.extendify .sm\:translate-y-5{--tw-translate-y:1.25rem!important}div.extendify .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 .sm\:p-0{padding:0!important}div.extendify .sm\:py-0{padding-bottom:0!important;padding-top:0!important}div.extendify .sm\:pt-0{padding-top:0!important}div.extendify .sm\:pt-5{padding-top:1.25rem!important}}@media (min-width:782px){div.extendify .md\:m-0{margin:0!important}div.extendify .md\:-ml-8{margin-left:-2rem!important}div.extendify .md\:block{display:block!important}div.extendify .md\:flex{display:flex!important}div.extendify .md\:hidden{display:none!important}div.extendify .md\:h-screen{height:100vh!important}div.extendify .md\:w-40vw{width:40vw!important}div.extendify .md\:max-w-2xl{max-width:42rem!important}div.extendify .md\:flex-row{flex-direction:row!important}div.extendify .md\:gap-8{gap:2rem!important}div.extendify .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 .md\:overflow-hidden{overflow:hidden!important}div.extendify .md\:overflow-y-scroll{overflow-y:scroll!important}div.extendify .md\:p-8{padding:2rem!important}div.extendify .md\:px-8{padding-right:2rem!important}div.extendify .md\:pl-8,div.extendify .md\:px-8{padding-left:2rem!important}}@media (min-width:1080px){div.extendify .lg\:absolute{position:absolute!important}div.extendify .lg\:-mr-1{margin-right:-.25rem!important}div.extendify .lg\:block{display:block!important}div.extendify .lg\:flex{display:flex!important}div.extendify .lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify .lg\:overflow-hidden{overflow:hidden!important}div.extendify .lg\:p-16{padding:4rem!important}div.extendify .lg\:px-12{padding-left:3rem!important;padding-right:3rem!important}}
|
1 |
+
div.extendify .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 .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 .pointer-events-none{pointer-events:none!important}div.extendify .invisible{visibility:hidden!important}div.extendify .group:focus .group-focus\:visible,div.extendify .group:hover .group-hover\:visible{visibility:visible!important}div.extendify .static{position:static!important}div.extendify .fixed{position:fixed!important}div.extendify .absolute{position:absolute!important}div.extendify .relative{position:relative!important}div.extendify .sticky{position:-webkit-sticky!important;position:sticky!important}div.extendify .inset-0{bottom:0!important;left:0!important;right:0!important;top:0!important}div.extendify .top-0{top:0!important}div.extendify .top-2{top:.5rem!important}div.extendify .top-4{top:1rem!important}div.extendify .-top-1\/4{top:-25%!important}div.extendify .right-0{right:0!important}div.extendify .right-1{right:.25rem!important}div.extendify .right-2{right:.5rem!important}div.extendify .right-3{right:.75rem!important}div.extendify .right-4{right:1rem!important}div.extendify .right-2\.5{right:.625rem!important}div.extendify .bottom-0{bottom:0!important}div.extendify .bottom-4{bottom:1rem!important}div.extendify .-bottom-2{bottom:-.5rem!important}div.extendify .left-0{left:0!important}div.extendify .group:hover .group-hover\:-top-2{top:-.5rem!important}div.extendify .group:hover .group-hover\:-top-2\.5{top:-.625rem!important}div.extendify .group:focus .group-focus\:-top-2{top:-.5rem!important}div.extendify .group:focus .group-focus\:-top-2\.5{top:-.625rem!important}div.extendify .z-10{z-index:10!important}div.extendify .z-20{z-index:20!important}div.extendify .z-30{z-index:30!important}div.extendify .z-40{z-index:40!important}div.extendify .z-50{z-index:50!important}div.extendify .z-high{z-index:99999!important}div.extendify .z-max{z-index:2147483647!important}div.extendify .m-0{margin:0!important}div.extendify .m-6{margin:1.5rem!important}div.extendify .m-8{margin:2rem!important}div.extendify .m-auto{margin:auto!important}div.extendify .-m-2{margin:-.5rem!important}div.extendify .-m-6{margin:-1.5rem!important}div.extendify .-m-8{margin:-2rem!important}div.extendify .mx-1{margin-left:.25rem!important;margin-right:.25rem!important}div.extendify .mx-6{margin-left:1.5rem!important;margin-right:1.5rem!important}div.extendify .mx-auto{margin-left:auto!important;margin-right:auto!important}div.extendify .-mx-4{margin-left:-1rem!important;margin-right:-1rem!important}div.extendify .my-0{margin-bottom:0!important;margin-top:0!important}div.extendify .my-px{margin-bottom:1px!important;margin-top:1px!important}div.extendify .mt-0{margin-top:0!important}div.extendify .mt-2{margin-top:.5rem!important}div.extendify .mt-4{margin-top:1rem!important}div.extendify .mt-8{margin-top:2rem!important}div.extendify .mt-px{margin-top:1px!important}div.extendify .-mt-2{margin-top:-.5rem!important}div.extendify .-mt-5{margin-top:-1.25rem!important}div.extendify .mr-1{margin-right:.25rem!important}div.extendify .mr-2{margin-right:.5rem!important}div.extendify .mr-6{margin-right:1.5rem!important}div.extendify .-mr-1{margin-right:-.25rem!important}div.extendify .-mr-1\.5{margin-right:-.375rem!important}div.extendify .mb-0{margin-bottom:0!important}div.extendify .mb-1{margin-bottom:.25rem!important}div.extendify .mb-2{margin-bottom:.5rem!important}div.extendify .mb-3{margin-bottom:.75rem!important}div.extendify .mb-4{margin-bottom:1rem!important}div.extendify .mb-5{margin-bottom:1.25rem!important}div.extendify .mb-8{margin-bottom:2rem!important}div.extendify .mb-10{margin-bottom:2.5rem!important}div.extendify .ml-1{margin-left:.25rem!important}div.extendify .ml-2{margin-left:.5rem!important}div.extendify .ml-4{margin-left:1rem!important}div.extendify .ml-12{margin-left:3rem!important}div.extendify .-ml-1{margin-left:-.25rem!important}div.extendify .-ml-2{margin-left:-.5rem!important}div.extendify .-ml-6{margin-left:-1.5rem!important}div.extendify .-ml-px{margin-left:-1px!important}div.extendify .-ml-1\.5{margin-left:-.375rem!important}div.extendify .block{display:block!important}div.extendify .inline-block{display:inline-block!important}div.extendify .flex{display:flex!important}div.extendify .inline-flex{display:inline-flex!important}div.extendify .table{display:table!important}div.extendify .grid{display:grid!important}div.extendify .hidden{display:none!important}div.extendify .h-0{height:0!important}div.extendify .h-2{height:.5rem!important}div.extendify .h-4{height:1rem!important}div.extendify .h-8{height:2rem!important}div.extendify .h-12{height:3rem!important}div.extendify .h-32{height:8rem!important}div.extendify .h-64{height:16rem!important}div.extendify .h-auto{height:auto!important}div.extendify .h-full{height:100%!important}div.extendify .h-screen{height:100vh!important}div.extendify .max-h-96{max-height:24rem!important}div.extendify .min-h-screen{min-height:100vh!important}div.extendify .w-0{width:0!important}div.extendify .w-4{width:1rem!important}div.extendify .w-6{width:1.5rem!important}div.extendify .w-8{width:2rem!important}div.extendify .w-10{width:2.5rem!important}div.extendify .w-16{width:4rem!important}div.extendify .w-20{width:5rem!important}div.extendify .w-28{width:7rem!important}div.extendify .w-32{width:8rem!important}div.extendify .w-72{width:18rem!important}div.extendify .w-80{width:20rem!important}div.extendify .w-96{width:24rem!important}div.extendify .w-auto{width:auto!important}div.extendify .w-6\/12{width:50%!important}div.extendify .w-7\/12{width:58.333333%!important}div.extendify .w-full{width:100%!important}div.extendify .w-screen{width:100vw!important}div.extendify .min-w-0{min-width:0!important}div.extendify .min-w-sm{min-width:7rem!important}div.extendify .max-w-sm{max-width:24rem!important}div.extendify .max-w-md{max-width:28rem!important}div.extendify .max-w-lg{max-width:32rem!important}div.extendify .max-w-xl{max-width:36rem!important}div.extendify .max-w-2xl{max-width:42rem!important}div.extendify .max-w-full{max-width:100%!important}div.extendify .max-w-screen-4xl{max-width:1920px!important}div.extendify .flex-1{flex:1 1 0%!important}div.extendify .flex-shrink-0{flex-shrink:0!important}div.extendify .flex-grow-0{flex-grow:0!important}div.extendify .flex-grow{flex-grow:1!important}div.extendify .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 .-translate-x-1{--tw-translate-x:-0.25rem!important}div.extendify .translate-y-0{--tw-translate-y:0px!important}div.extendify .translate-y-4{--tw-translate-y:1rem!important}div.extendify .-translate-y-px{--tw-translate-y:-1px!important}div.extendify .-translate-y-full{--tw-translate-y:-100%!important}div.extendify .rotate-90{--tw-rotate:90deg!important}div.extendify .cursor-pointer{cursor:pointer!important}div.extendify .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}div.extendify .flex-col{flex-direction:column!important}div.extendify .flex-wrap{flex-wrap:wrap!important}div.extendify .items-start{align-items:flex-start!important}div.extendify .items-end{align-items:flex-end!important}div.extendify .items-center{align-items:center!important}div.extendify .justify-end{justify-content:flex-end!important}div.extendify .justify-center{justify-content:center!important}div.extendify .justify-between{justify-content:space-between!important}div.extendify .justify-evenly{justify-content:space-evenly!important}div.extendify .gap-4{gap:1rem!important}div.extendify .gap-6{gap:1.5rem!important}div.extendify .gap-8{gap:2rem!important}div.extendify .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 .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 .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 .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 .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 .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 .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 .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 .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 .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 .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 .self-start{align-self:flex-start!important}div.extendify .overflow-hidden{overflow:hidden!important}div.extendify .overflow-y-auto{overflow-y:auto!important}div.extendify .overflow-x-hidden{overflow-x:hidden!important}div.extendify .whitespace-nowrap{white-space:nowrap!important}div.extendify .rounded-sm{border-radius:.125rem!important}div.extendify .rounded{border-radius:.25rem!important}div.extendify .rounded-md{border-radius:.375rem!important}div.extendify .rounded-lg{border-radius:.5rem!important}div.extendify .rounded-full{border-radius:9999px!important}div.extendify .rounded-tr-sm{border-top-right-radius:.125rem!important}div.extendify .rounded-br-sm{border-bottom-right-radius:.125rem!important}div.extendify .border-0{border-width:0!important}div.extendify .border-2{border-width:2px!important}div.extendify .border-8{border-width:8px!important}div.extendify .border{border-width:1px!important}div.extendify .border-r{border-right-width:1px!important}div.extendify .border-b-0{border-bottom-width:0!important}div.extendify .border-b{border-bottom-width:1px!important}div.extendify .border-l-8{border-left-width:8px!important}div.extendify .border-solid{border-style:solid!important}div.extendify .border-none{border-style:none!important}div.extendify .border-transparent{border-color:transparent!important}div.extendify .border-black{--tw-border-opacity:1!important;border-color:rgba(0,0,0,var(--tw-border-opacity))!important}div.extendify .border-gray-100{--tw-border-opacity:1!important;border-color:rgba(240,240,240,var(--tw-border-opacity))!important}div.extendify .border-gray-200{--tw-border-opacity:1!important;border-color:rgba(224,224,224,var(--tw-border-opacity))!important}div.extendify .border-gray-600{--tw-border-opacity:1!important;border-color:rgba(148,148,148,var(--tw-border-opacity))!important}div.extendify .border-gray-900{--tw-border-opacity:1!important;border-color:rgba(30,30,30,var(--tw-border-opacity))!important}div.extendify .border-extendify-main{--tw-border-opacity:1!important;border-color:rgba(11,74,67,var(--tw-border-opacity))!important}div.extendify .border-extendify-secondary{--tw-border-opacity:1!important;border-color:rgba(203,195,245,var(--tw-border-opacity))!important}div.extendify .border-extendify-transparent-black-100{border-color:rgba(0,0,0,.07)!important}div.extendify .border-wp-alert-red{--tw-border-opacity:1!important;border-color:rgba(204,24,24,var(--tw-border-opacity))!important}div.extendify .focus\:border-transparent:focus{border-color:transparent!important}div.extendify .bg-transparent{background-color:transparent!important}div.extendify .bg-black{--tw-bg-opacity:1!important;background-color:rgba(0,0,0,var(--tw-bg-opacity))!important}div.extendify .bg-white{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important}div.extendify .bg-gray-50{--tw-bg-opacity:1!important;background-color:rgba(251,251,251,var(--tw-bg-opacity))!important}div.extendify .bg-gray-100{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify .bg-gray-200{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify .bg-gray-900{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify .bg-partner-primary-bg{background-color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify .bg-extendify-main{--tw-bg-opacity:1!important;background-color:rgba(11,74,67,var(--tw-bg-opacity))!important}div.extendify .bg-extendify-alert{--tw-bg-opacity:1!important;background-color:rgba(132,16,16,var(--tw-bg-opacity))!important}div.extendify .bg-extendify-secondary{--tw-bg-opacity:1!important;background-color:rgba(203,195,245,var(--tw-bg-opacity))!important}div.extendify .bg-extendify-transparent-white{background-color:hsla(0,0%,99%,.88)!important}div.extendify .bg-wp-theme-500{background-color:var(--wp-admin-theme-color,#007cba)!important}div.extendify .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 .hover\:bg-gray-200:hover{--tw-bg-opacity:1!important;background-color:rgba(224,224,224,var(--tw-bg-opacity))!important}div.extendify .hover\:bg-partner-primary-bg:hover{background-color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify .hover\:bg-extendify-main-dark:hover{--tw-bg-opacity:1!important;background-color:rgba(5,49,44,var(--tw-bg-opacity))!important}div.extendify .hover\:bg-wp-theme-600:hover{background-color:var(--wp-admin-theme-color-darker-10,#006ba1)!important}div.extendify .focus\:bg-gray-100:focus{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}div.extendify .active\:bg-gray-900:active{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}div.extendify .bg-opacity-40{--tw-bg-opacity:0.4!important}div.extendify .bg-cover{background-size:cover!important}div.extendify .bg-clip-padding{background-clip:padding-box!important}div.extendify .fill-current{fill:currentColor!important}div.extendify .stroke-current{stroke:currentColor!important}div.extendify .p-0{padding:0!important}div.extendify .p-1{padding:.25rem!important}div.extendify .p-2{padding:.5rem!important}div.extendify .p-3{padding:.75rem!important}div.extendify .p-4{padding:1rem!important}div.extendify .p-6{padding:1.5rem!important}div.extendify .p-8{padding:2rem!important}div.extendify .p-10{padding:2.5rem!important}div.extendify .p-12{padding:3rem!important}div.extendify .p-0\.5{padding:.125rem!important}div.extendify .p-1\.5{padding:.375rem!important}div.extendify .p-3\.5{padding:.875rem!important}div.extendify .px-0{padding-left:0!important;padding-right:0!important}div.extendify .px-1{padding-left:.25rem!important;padding-right:.25rem!important}div.extendify .px-2{padding-left:.5rem!important;padding-right:.5rem!important}div.extendify .px-3{padding-left:.75rem!important;padding-right:.75rem!important}div.extendify .px-4{padding-left:1rem!important;padding-right:1rem!important}div.extendify .px-5{padding-left:1.25rem!important;padding-right:1.25rem!important}div.extendify .px-6{padding-left:1.5rem!important;padding-right:1.5rem!important}div.extendify .px-8{padding-left:2rem!important;padding-right:2rem!important}div.extendify .px-10{padding-left:2.5rem!important;padding-right:2.5rem!important}div.extendify .px-0\.5{padding-left:.125rem!important;padding-right:.125rem!important}div.extendify .px-2\.5{padding-left:.625rem!important;padding-right:.625rem!important}div.extendify .py-0{padding-bottom:0!important;padding-top:0!important}div.extendify .py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}div.extendify .py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}div.extendify .py-3{padding-bottom:.75rem!important;padding-top:.75rem!important}div.extendify .py-4{padding-bottom:1rem!important;padding-top:1rem!important}div.extendify .py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}div.extendify .py-12{padding-bottom:3rem!important;padding-top:3rem!important}div.extendify .py-2\.5{padding-bottom:.625rem!important;padding-top:.625rem!important}div.extendify .pt-0{padding-top:0!important}div.extendify .pt-2{padding-top:.5rem!important}div.extendify .pt-4{padding-top:1rem!important}div.extendify .pt-6{padding-top:1.5rem!important}div.extendify .pt-px{padding-top:1px!important}div.extendify .pt-0\.5{padding-top:.125rem!important}div.extendify .pr-3{padding-right:.75rem!important}div.extendify .pr-8{padding-right:2rem!important}div.extendify .pb-2{padding-bottom:.5rem!important}div.extendify .pb-8{padding-bottom:2rem!important}div.extendify .pb-20{padding-bottom:5rem!important}div.extendify .pb-36{padding-bottom:9rem!important}div.extendify .pb-40{padding-bottom:10rem!important}div.extendify .pl-0{padding-left:0!important}div.extendify .pl-2{padding-left:.5rem!important}div.extendify .pl-6{padding-left:1.5rem!important}div.extendify .text-left{text-align:left!important}div.extendify .text-center{text-align:center!important}div.extendify .text-xs{font-size:.75rem!important;line-height:1rem!important}div.extendify .text-sm{font-size:.875rem!important;line-height:1.25rem!important}div.extendify .text-base{font-size:1rem!important;line-height:1.5rem!important}div.extendify .text-lg{font-size:1.125rem!important;line-height:1.75rem!important}div.extendify .text-xl{font-size:1.25rem!important;line-height:1.75rem!important}div.extendify .text-3xl{font-size:2rem!important;line-height:2.5rem!important}div.extendify .text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}div.extendify .text-xss{font-size:11px!important}div.extendify .font-light{font-weight:300!important}div.extendify .font-normal{font-weight:400!important}div.extendify .font-medium{font-weight:500!important}div.extendify .font-semibold{font-weight:600!important}div.extendify .font-bold{font-weight:700!important}div.extendify .uppercase{text-transform:uppercase!important}div.extendify .italic{font-style:italic!important}div.extendify .leading-none{line-height:1!important}div.extendify .tracking-tight{letter-spacing:-.025em!important}div.extendify .text-black{--tw-text-opacity:1!important;color:rgba(0,0,0,var(--tw-text-opacity))!important}div.extendify .text-white{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify .text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify .text-gray-500{--tw-text-opacity:1!important;color:rgba(204,204,204,var(--tw-text-opacity))!important}div.extendify .text-gray-700{--tw-text-opacity:1!important;color:rgba(117,117,117,var(--tw-text-opacity))!important}div.extendify .text-gray-800{--tw-text-opacity:1!important;color:rgba(31,41,55,var(--tw-text-opacity))!important}div.extendify .text-gray-900{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify .text-green-500{--tw-text-opacity:1!important;color:rgba(16,185,129,var(--tw-text-opacity))!important}div.extendify .text-partner-primary-text{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify .text-partner-primary-bg{color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify .text-extendify-main{--tw-text-opacity:1!important;color:rgba(11,74,67,var(--tw-text-opacity))!important}div.extendify .text-extendify-gray{--tw-text-opacity:1!important;color:rgba(95,95,95,var(--tw-text-opacity))!important}div.extendify .text-extendify-black{--tw-text-opacity:1!important;color:rgba(30,30,30,var(--tw-text-opacity))!important}div.extendify .text-wp-theme-500{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify .text-wp-alert-red{--tw-text-opacity:1!important;color:rgba(204,24,24,var(--tw-text-opacity))!important}div.extendify .group:hover .group-hover\:text-gray-50{--tw-text-opacity:1!important;color:rgba(251,251,251,var(--tw-text-opacity))!important}div.extendify .hover\:text-white:hover{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify .hover\:text-partner-primary-text:hover{color:var(--ext-partner-theme-primary-text,#fff)!important}div.extendify .hover\:text-partner-primary-bg:hover{color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify .hover\:text-wp-theme-500:hover{color:var(--wp-admin-theme-color,#007cba)!important}div.extendify .focus\:text-white:focus{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}div.extendify .focus\:text-blue-500:focus{--tw-text-opacity:1!important;color:rgba(59,130,246,var(--tw-text-opacity))!important}div.extendify .underline{text-decoration:underline!important}div.extendify .no-underline{text-decoration:none!important}div.extendify .hover\:underline:hover{text-decoration:underline!important}div.extendify .hover\:no-underline:hover{text-decoration:none!important}div.extendify .opacity-0{opacity:0!important}div.extendify .opacity-30{opacity:.3!important}div.extendify .opacity-50{opacity:.5!important}div.extendify .opacity-70{opacity:.7!important}div.extendify .opacity-75{opacity:.75!important}div.extendify .focus\:opacity-100:focus,div.extendify .group:focus .group-focus\:opacity-100,div.extendify .group:hover .group-hover\:opacity-100,div.extendify .hover\:opacity-100:hover,div.extendify .opacity-100{opacity:1!important}div.extendify .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05)!important}div.extendify .shadow-md,div.extendify .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 .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 .shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25)!important}div.extendify .shadow-2xl,div.extendify .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 .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 .focus\:shadow-none: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}div.extendify .focus\:outline-none:focus,div.extendify .outline-none{outline:2px solid transparent!important;outline-offset:2px!important}div.extendify .focus\:ring-wp:focus,div.extendify .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 .ring-partner-primary-bg{--tw-ring-color:var(--ext-partner-theme-primary-bg,#007cba)!important}div.extendify .ring-offset-2{--tw-ring-offset-width:2px!important}div.extendify .ring-offset-white{--tw-ring-offset-color:#fff!important}div.extendify .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 .blur{--tw-blur:blur(8px)!important}div.extendify .invert{--tw-invert:invert(100%)!important}div.extendify .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 .backdrop-blur-xl{--tw-backdrop-blur:blur(24px)!important}div.extendify .backdrop-saturate-200{--tw-backdrop-saturate:saturate(2)!important}div.extendify .transition-all{transition-duration:.15s!important;transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify .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 .transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}div.extendify .delay-200{transition-delay:.2s!important}div.extendify .duration-100{transition-duration:.1s!important}div.extendify .duration-200{transition-duration:.2s!important}div.extendify .duration-300{transition-duration:.3s!important}div.extendify .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)!important}div.extendify .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.extendify{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/)!important;--tw-ring-offset-width:0px!important;--tw-ring-offset-color:transparent!important;--tw-ring-color:var(--wp-admin-theme-color)!important}.extendify *,.extendify :after,.extendify :before{border:0 solid #e5e7eb!important;box-sizing:border-box!important}.extendify .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 .button-focus{outline:2px solid transparent!important;outline-offset:2px!important}.extendify .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;--tw-ring-color:var(--wp-admin-theme-color,#007cba)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}div.extendify button.extendify-skip-to-sr-link:focus{--tw-bg-opacity:1!important;background-color:rgba(255,255,255,var(--tw-bg-opacity))!important;padding:1rem!important;position:fixed!important;top:0!important;z-index:99999!important}.button-extendify-main{--tw-bg-opacity:1!important;background-color:rgba(11,74,67,var(--tw-bg-opacity))!important;border-radius:.25rem!important;cursor:pointer!important;white-space:nowrap!important}.button-extendify-main:hover{--tw-bg-opacity:1!important;background-color:rgba(5,49,44,var(--tw-bg-opacity))!important}.button-extendify-main:active{--tw-bg-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important}.button-extendify-main{font-size:1rem!important;line-height:1.5rem!important;padding:.375rem .75rem!important}.button-extendify-main,.button-extendify-main:active,.button-extendify-main:focus,.button-extendify-main:hover{--tw-text-opacity:1!important;color:rgba(255,255,255,var(--tw-text-opacity))!important}.button-extendify-main{text-decoration:none!important;transition-duration:.15s!important;transition-duration:.2s!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}.extendify .button-extendify-main: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 .button-extendify-main{outline:2px solid transparent!important;outline-offset:2px!important}.extendify .button-extendify-main: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(--wp-admin-theme-color,#007cba)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.extendify input.button-extendify-main:focus,.extendify input.button-focus:focus,.extendify select.button-extendify-main:focus,.extendify select.button-focus:focus{--tw-shadow:0 0 #0000!important;border-color:transparent!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important;outline:2px solid transparent!important;outline-offset:2px!important}#extendify-search-input:not(:-moz-placeholder-shown)~svg{display:none!important}#extendify-search-input:not(:-ms-input-placeholder)~svg{display:none!important}#extendify-search-input:focus~svg,#extendify-search-input:not(:placeholder-shown)~svg{display:none!important}#extendify-search-input::-webkit-textfield-decoration-container{margin-right:.75rem!important}.extendify .components-panel__body>.components-panel__body-title{background-color:transparent!important;border-bottom:1px solid #e0e0e0!important}.extendify .components-modal__header{--tw-border-opacity:1!important;border-bottom-width:1px!important;border-color:rgba(221,221,221,var(--tw-border-opacity))!important}.block-editor-block-preview__content .block-editor-block-list__layout.is-root-container>.ext{max-width:none!important}.extendify .block-editor-block-preview__container{-webkit-animation:extendifyOpacityIn .2s cubic-bezier(.694,0,.335,1) 0ms forwards;animation:extendifyOpacityIn .2s cubic-bezier(.694,0,.335,1) 0ms forwards;opacity:0}.extendify .is-root-container>[data-align=full],.extendify .is-root-container>[data-align=full]>.wp-block,.extendify .is-root-container>[data-block]{margin-bottom:0!important;margin-top:0!important}.editor-styles-wrapper:not(.block-editor-writing-flow)>.is-root-container :where(.wp-block)[data-align=full]{margin-bottom:0!important;margin-top:0!important}@-webkit-keyframes extendifyOpacityIn{0%{opacity:0}to{opacity:1}}@keyframes extendifyOpacityIn{0%{opacity:0}to{opacity:1}}.extendify .with-light-shadow:after{--tw-shadow:inset 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,.025)!important;border-width:0!important;bottom:0!important;content:""!important;left:0!important;position:absolute!important;right:0!important;top:0!important}.extendify .with-light-shadow:after,.extendify .with-light-shadow:hover:after{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.extendify .with-light-shadow:hover:after{--tw-shadow:inset 0 0 0 1px rgba(0,0,0,.2),0 3px 15px -3px rgba(0,0,0,.025),0 0 1px rgba(0,0,0,.02)!important}@supports not (((-webkit-backdrop-filter:saturate(2) blur(24px)) or (backdrop-filter:saturate(2) blur(24px)))){div.extendify .bg-extendify-transparent-white{--tw-bg-opacity:1!important;background-color:rgba(240,240,240,var(--tw-bg-opacity))!important}}.components-panel__body.ext-type-control .components-panel__body-title{border-bottom-width:0!important;margin:0 -1rem!important;padding-left:1.25rem!important;padding-right:1.25rem!important}.extendify .animate-pulse{-webkit-animation:extendifyPulse 3s cubic-bezier(.4,0,.6,1) infinite;animation:extendifyPulse 3s cubic-bezier(.4,0,.6,1) infinite}@-webkit-keyframes extendifyPulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes extendifyPulse{0%,to{opacity:1}50%{opacity:.5}}.is-template--in-review:before,.is-template--inactive:before{--tw-border-opacity:1!important;border-color:rgba(203,195,245,var(--tw-border-opacity))!important;border-style:solid!important;border-width:8px!important;bottom:0!important;content:""!important;height:100%!important;left:0!important;position:absolute!important;right:0!important;top:0!important;width:100%!important;z-index:40!important}.is-template--inactive:before{border-color:#fdeab6!important}.extendify-tooltip-default:not(.is-without-arrow)[data-y-axis=bottom]:after{border-bottom-color:#1e1e1e!important}.extendify-tooltip-default:not(.is-without-arrow):before{border-color:transparent!important}.extendify-tooltip-default:not(.is-without-arrow) .components-popover__content{--tw-bg-opacity:1!important;--tw-text-opacity:1!important;background-color:rgba(30,30,30,var(--tw-bg-opacity))!important;border-color:transparent!important;color:rgba(255,255,255,var(--tw-text-opacity))!important;min-width:250px!important;padding:1rem!important}.extendify-bottom-arrow:after{--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;--tw-translate-y:-1px!important;border-color:#1e1e1e transparent transparent!important;border-width:8px!important;bottom:-15px!important;content:""!important;display:inline-block!important;height:0!important;position:absolute!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;width:0!important}@media (min-width:480px){div.extendify .xs\:inline{display:inline!important}div.extendify .xs\:h-9{height:2.25rem!important}div.extendify .xs\:pr-3{padding-right:.75rem!important}div.extendify .xs\:pl-2{padding-left:.5rem!important}}@media (min-width:600px){div.extendify .sm\:mx-0{margin-left:0!important;margin-right:0!important}div.extendify .sm\:mt-0{margin-top:0!important}div.extendify .sm\:mb-8{margin-bottom:2rem!important}div.extendify .sm\:ml-2{margin-left:.5rem!important}div.extendify .sm\:block{display:block!important}div.extendify .sm\:flex{display:flex!important}div.extendify .sm\:h-auto{height:auto!important}div.extendify .sm\:w-72{width:18rem!important}div.extendify .sm\:w-auto{width:auto!important}div.extendify .sm\:translate-y-5{--tw-translate-y:1.25rem!important}div.extendify .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 .sm\:p-0{padding:0!important}div.extendify .sm\:py-0{padding-bottom:0!important;padding-top:0!important}div.extendify .sm\:pt-0{padding-top:0!important}div.extendify .sm\:pt-5{padding-top:1.25rem!important}}@media (min-width:782px){div.extendify .md\:m-0{margin:0!important}div.extendify .md\:-ml-8{margin-left:-2rem!important}div.extendify .md\:block{display:block!important}div.extendify .md\:flex{display:flex!important}div.extendify .md\:hidden{display:none!important}div.extendify .md\:h-screen{height:100vh!important}div.extendify .md\:w-40vw{width:40vw!important}div.extendify .md\:max-w-md{max-width:28rem!important}div.extendify .md\:max-w-2xl{max-width:42rem!important}div.extendify .md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))!important}div.extendify .md\:flex-row{flex-direction:row!important}div.extendify .md\:gap-8{gap:2rem!important}div.extendify .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 .md\:overflow-hidden{overflow:hidden!important}div.extendify .md\:overflow-y-scroll{overflow-y:scroll!important}div.extendify .md\:p-8{padding:2rem!important}div.extendify .md\:px-8{padding-right:2rem!important}div.extendify .md\:pl-8,div.extendify .md\:px-8{padding-left:2rem!important}}@media (min-width:1080px){div.extendify .lg\:absolute{position:absolute!important}div.extendify .lg\:-mr-1{margin-right:-.25rem!important}div.extendify .lg\:block{display:block!important}div.extendify .lg\:flex{display:flex!important}div.extendify .lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))!important}div.extendify .lg\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0!important;margin-left:calc(2rem*(1 - var(--tw-space-x-reverse)))!important;margin-right:calc(2rem*var(--tw-space-x-reverse))!important}div.extendify .lg\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0!important;margin-bottom:calc(0px*var(--tw-space-y-reverse))!important;margin-top:calc(0px*(1 - var(--tw-space-y-reverse)))!important}div.extendify .lg\:overflow-hidden{overflow:hidden!important}div.extendify .lg\:p-16{padding:4rem!important}div.extendify .lg\:px-12{padding-left:3rem!important;padding-right:3rem!important}}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: extendify, richtabor, kbat82, clubkert, arturgrabo
|
|
3 |
Tags: templates, patterns, layouts, blocks, gutenberg
|
4 |
Requires at least: 5.4
|
5 |
Tested up to: 6.0
|
6 |
-
Stable tag: 0.8.
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
@@ -124,6 +124,10 @@ Nope! Extendify imports lightweight block-based content that is served directly
|
|
124 |
|
125 |
== Changelog ==
|
126 |
|
|
|
|
|
|
|
|
|
127 |
= 0.8.2 - 2022-05-26 =
|
128 |
- Various bug fixes and updates
|
129 |
|
3 |
Tags: templates, patterns, layouts, blocks, gutenberg
|
4 |
Requires at least: 5.4
|
5 |
Tested up to: 6.0
|
6 |
+
Stable tag: 0.8.3
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
124 |
|
125 |
== Changelog ==
|
126 |
|
127 |
+
= 0.8.3 - 2022-06-09 =
|
128 |
+
- Add API language support
|
129 |
+
- Various bug fixes and updates
|
130 |
+
|
131 |
= 0.8.2 - 2022-05-26 =
|
132 |
- Various bug fixes and updates
|
133 |
|
routes/api.php
CHANGED
@@ -59,6 +59,7 @@ use Extendify\Library\Controllers\SiteSettingsController;
|
|
59 |
ApiRouter::get('/onboarding/styles', [DataController::class, 'getStyles']);
|
60 |
ApiRouter::get('/onboarding/layout-types', [DataController::class, 'getLayoutTypes']);
|
61 |
ApiRouter::get('/onboarding/goals', [DataController::class, 'getGoals']);
|
|
|
62 |
ApiRouter::get('/onboarding/template', [DataController::class, 'getTemplate']);
|
63 |
ApiRouter::post('/onboarding/orders', [DataController::class, 'createOrder']);
|
64 |
|
59 |
ApiRouter::get('/onboarding/styles', [DataController::class, 'getStyles']);
|
60 |
ApiRouter::get('/onboarding/layout-types', [DataController::class, 'getLayoutTypes']);
|
61 |
ApiRouter::get('/onboarding/goals', [DataController::class, 'getGoals']);
|
62 |
+
ApiRouter::get('/onboarding/suggested-plugins', [DataController::class, 'getSuggestedPlugins']);
|
63 |
ApiRouter::get('/onboarding/template', [DataController::class, 'getTemplate']);
|
64 |
ApiRouter::post('/onboarding/orders', [DataController::class, 'createOrder']);
|
65 |
|
src/Library/api/axios.js
CHANGED
@@ -65,7 +65,6 @@ Axios.interceptors.response.use(
|
|
65 |
(error) => handleErrors(error),
|
66 |
)
|
67 |
|
68 |
-
// TODO: setup a pipe function instead of this nested pattern
|
69 |
Axios.interceptors.request.use(
|
70 |
(request) => checkDevMode(addDefaults(request)),
|
71 |
(error) => error,
|
65 |
(error) => handleErrors(error),
|
66 |
)
|
67 |
|
|
|
68 |
Axios.interceptors.request.use(
|
69 |
(request) => checkDevMode(addDefaults(request)),
|
70 |
(error) => error,
|
src/Onboarding/api/DataApi.js
CHANGED
@@ -6,6 +6,7 @@ export const getStyles = (data) =>
|
|
6 |
api.get('onboarding/styles', { params: data })
|
7 |
|
8 |
export const getGoals = () => api.get('onboarding/goals')
|
|
|
9 |
|
10 |
export const getLayoutTypes = () => api.get('onboarding/layout-types')
|
11 |
|
6 |
api.get('onboarding/styles', { params: data })
|
7 |
|
8 |
export const getGoals = () => api.get('onboarding/goals')
|
9 |
+
export const getSuggestedPlugins = () => api.get('onboarding/suggested-plugins')
|
10 |
|
11 |
export const getLayoutTypes = () => api.get('onboarding/layout-types')
|
12 |
|
src/Onboarding/api/WPApi.js
CHANGED
@@ -32,6 +32,43 @@ export const createPage = async (pageData) => {
|
|
32 |
return data
|
33 |
}
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
export const updateTemplatePart = async (part, content) => {
|
36 |
const options = {
|
37 |
method: 'POST',
|
32 |
return data
|
33 |
}
|
34 |
|
35 |
+
export const installPlugin = async (slug) => {
|
36 |
+
// Fail silently if no slug is provided
|
37 |
+
if (!slug) return
|
38 |
+
const headers = {
|
39 |
+
'Content-type': 'application/json',
|
40 |
+
'X-WP-Nonce': window.extOnbData.nonce,
|
41 |
+
}
|
42 |
+
const url = `${window.extOnbData.wpRoot}wp/v2/plugins`
|
43 |
+
const response = await fetch(url, {
|
44 |
+
method: 'POST',
|
45 |
+
headers,
|
46 |
+
body: JSON.stringify({ slug, status: 'active' }),
|
47 |
+
})
|
48 |
+
if (response.status >= 200 && response.status < 300) {
|
49 |
+
return await response.json()
|
50 |
+
}
|
51 |
+
// The above could fail if the plugin is already installed
|
52 |
+
// But we at least want to try and activate it if that's the case
|
53 |
+
return await activatePlugin(slug)
|
54 |
+
}
|
55 |
+
|
56 |
+
export const activatePlugin = async (slug) => {
|
57 |
+
const headers = {
|
58 |
+
'Content-type': 'application/json',
|
59 |
+
'X-WP-Nonce': window.extOnbData.nonce,
|
60 |
+
}
|
61 |
+
const endpoint = `${window.extOnbData.wpRoot}wp/v2/plugins`
|
62 |
+
const response = await fetch(`${endpoint}?search=${slug}`, { headers })
|
63 |
+
const plugin = (await response.json())?.[0]?.plugin
|
64 |
+
const response2 = await fetch(`${endpoint}/${plugin}`, {
|
65 |
+
method: 'POST',
|
66 |
+
headers,
|
67 |
+
body: JSON.stringify({ status: 'active' }),
|
68 |
+
})
|
69 |
+
return await response2.json()
|
70 |
+
}
|
71 |
+
|
72 |
export const updateTemplatePart = async (part, content) => {
|
73 |
const options = {
|
74 |
method: 'POST',
|
src/Onboarding/api/axios.js
CHANGED
@@ -24,9 +24,21 @@ function handleErrors(error) {
|
|
24 |
return Promise.reject(findResponse(error.response))
|
25 |
}
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
Axios.interceptors.response.use(
|
28 |
(response) => findResponse(response),
|
29 |
(error) => handleErrors(error),
|
30 |
)
|
|
|
|
|
|
|
|
|
31 |
|
32 |
export { Axios }
|
24 |
return Promise.reject(findResponse(error.response))
|
25 |
}
|
26 |
|
27 |
+
function checkDevMode(request) {
|
28 |
+
request.headers['X-Extendify-Onboarding-Dev-Mode'] =
|
29 |
+
window.location.search.indexOf('DEVMODE') > -1
|
30 |
+
request.headers['X-Extendify-Onboarding-Local-Mode'] =
|
31 |
+
window.location.search.indexOf('LOCALMODE') > -1
|
32 |
+
return request
|
33 |
+
}
|
34 |
+
|
35 |
Axios.interceptors.response.use(
|
36 |
(response) => findResponse(response),
|
37 |
(error) => handleErrors(error),
|
38 |
)
|
39 |
+
Axios.interceptors.request.use(
|
40 |
+
(request) => checkDevMode(request),
|
41 |
+
(error) => error,
|
42 |
+
)
|
43 |
|
44 |
export { Axios }
|
src/Onboarding/app.css
CHANGED
@@ -31,9 +31,7 @@
|
|
31 |
.extendify-onboarding .input-focus {
|
32 |
@apply outline-none rounded-lg text-base ring-partner-primary-bg ring-offset-2 ring-offset-white focus:shadow-none focus:ring-wp;
|
33 |
}
|
34 |
-
|
35 |
-
@apply grid gap-8 lg:grid-cols-2;
|
36 |
-
}
|
37 |
.extendify-onboarding .button-card {
|
38 |
@apply m-0 block flex-1 overflow-hidden border p-4;
|
39 |
}
|
31 |
.extendify-onboarding .input-focus {
|
32 |
@apply outline-none rounded-lg text-base ring-partner-primary-bg ring-offset-2 ring-offset-white focus:shadow-none focus:ring-wp;
|
33 |
}
|
34 |
+
|
|
|
|
|
35 |
.extendify-onboarding .button-card {
|
36 |
@apply m-0 block flex-1 overflow-hidden border p-4;
|
37 |
}
|
src/Onboarding/components/Card.js
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import classNames from 'classnames'
|
2 |
+
import { Checkmark } from '@onboarding/svg'
|
3 |
+
|
4 |
+
export const Card = ({
|
5 |
+
image,
|
6 |
+
heading,
|
7 |
+
name,
|
8 |
+
description,
|
9 |
+
selected,
|
10 |
+
onClick,
|
11 |
+
lock,
|
12 |
+
}) => {
|
13 |
+
return (
|
14 |
+
<div
|
15 |
+
role={lock ? undefined : 'button'}
|
16 |
+
tabIndex={lock ? undefined : 0}
|
17 |
+
aria-label={lock ? undefined : name}
|
18 |
+
className={classNames(
|
19 |
+
'text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100',
|
20 |
+
{
|
21 |
+
'button-focus': !lock,
|
22 |
+
},
|
23 |
+
)}
|
24 |
+
onKeyDown={(e) => {
|
25 |
+
if (['Enter', 'Space', ' '].includes(e.key)) {
|
26 |
+
if (!lock) onClick()
|
27 |
+
}
|
28 |
+
}}
|
29 |
+
onClick={() => {
|
30 |
+
if (!lock) onClick()
|
31 |
+
}}>
|
32 |
+
<div className="border-gray-100 border-b p-2 flex justify-between min-w-sm">
|
33 |
+
<div
|
34 |
+
className={classNames('flex items-center', {
|
35 |
+
'text-gray-700': !selected,
|
36 |
+
})}>
|
37 |
+
<span>{name}</span>
|
38 |
+
{lock && (
|
39 |
+
<span className="w-4 h-4 text-base leading-none pl-2 mr-6 dashicons dashicons-lock"></span>
|
40 |
+
)}
|
41 |
+
</div>
|
42 |
+
{(lock || selected) && (
|
43 |
+
<Checkmark className="text-partner-primary-bg w-6" />
|
44 |
+
)}
|
45 |
+
</div>
|
46 |
+
<div className="flex flex-col">
|
47 |
+
<div
|
48 |
+
style={{ backgroundImage: `url(${image})` }}
|
49 |
+
className="h-32 bg-cover"
|
50 |
+
/>
|
51 |
+
<div className="p-6 text-left">
|
52 |
+
<div className="text-base font-bold mb-2">{heading}</div>
|
53 |
+
<div className="text-sm">{description}</div>
|
54 |
+
</div>
|
55 |
+
</div>
|
56 |
+
</div>
|
57 |
+
)
|
58 |
+
}
|
src/Onboarding/components/PagePreview.js
CHANGED
@@ -8,10 +8,13 @@ import { Checkmark } from '@onboarding/svg'
|
|
8 |
import { findTheCode } from '../lib/util'
|
9 |
|
10 |
export const fetcher = (data) => getTemplate(data)
|
11 |
-
export const PagePreview = ({
|
12 |
-
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
15 |
const isHome = page?.slug === 'home'
|
16 |
const { data: pageData } = useFetch(
|
17 |
{
|
@@ -22,61 +25,62 @@ export const PagePreview = ({ lock, page, blockHeight }) => {
|
|
22 |
},
|
23 |
fetcher,
|
24 |
)
|
25 |
-
if (
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
|
29 |
-
const isPageSelected = pagesSelected?.find((p) => p?.id === page?.id)
|
30 |
return (
|
31 |
-
<div
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
{
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
{lock && (
|
58 |
-
<span
|
59 |
-
title={
|
60 |
-
isHome
|
61 |
-
? __('Home page is required', 'extendify')
|
62 |
-
: null
|
63 |
-
}
|
64 |
-
className="w-4 h-4 text-base leading-none pl-2 mr-6 dashicons dashicons-lock"></span>
|
65 |
)}
|
66 |
</div>
|
67 |
-
|
68 |
-
|
69 |
-
|
|
|
|
|
|
|
|
|
|
|
70 |
</div>
|
71 |
-
|
72 |
-
<StylePreview
|
73 |
-
blockHeight={blockHeight}
|
74 |
-
key={style?.slug}
|
75 |
-
style={{
|
76 |
-
...style,
|
77 |
-
code: findTheCode({ template: pageData }),
|
78 |
-
}}
|
79 |
-
/>
|
80 |
</div>
|
81 |
)
|
82 |
}
|
8 |
import { findTheCode } from '../lib/util'
|
9 |
|
10 |
export const fetcher = (data) => getTemplate(data)
|
11 |
+
export const PagePreview = ({
|
12 |
+
page,
|
13 |
+
blockHeight,
|
14 |
+
lock = false,
|
15 |
+
displayOnly = false,
|
16 |
+
}) => {
|
17 |
+
const { siteType, style, toggle, has } = useUserSelectionStore()
|
18 |
const isHome = page?.slug === 'home'
|
19 |
const { data: pageData } = useFetch(
|
20 |
{
|
25 |
},
|
26 |
fetcher,
|
27 |
)
|
28 |
+
if (displayOnly) {
|
29 |
+
return (
|
30 |
+
<div className="text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100">
|
31 |
+
<div className="border-gray-100 border-b p-2 flex justify-between min-w-sm">
|
32 |
+
{page.title}
|
33 |
+
</div>
|
34 |
+
<StylePreview
|
35 |
+
blockHeight={blockHeight}
|
36 |
+
key={style?.recordId}
|
37 |
+
style={{
|
38 |
+
...style,
|
39 |
+
code: findTheCode({ template: pageData }),
|
40 |
+
}}
|
41 |
+
/>
|
42 |
+
</div>
|
43 |
+
)
|
44 |
}
|
45 |
|
|
|
46 |
return (
|
47 |
+
<div>
|
48 |
+
<div
|
49 |
+
role="button"
|
50 |
+
tabIndex={0}
|
51 |
+
aria-label={__('Press to select', 'extendify')}
|
52 |
+
disabled={lock}
|
53 |
+
className="text-base p-0 bg-transparent overflow-hidden rounded-lg border border-gray-100 button-focus"
|
54 |
+
title={lock ? __('This page is required', 'extendify') : null}
|
55 |
+
onKeyDown={(e) => {
|
56 |
+
if (['Enter', 'Space', ' '].includes(e.key)) {
|
57 |
+
if (!lock) toggle('pages', page)
|
58 |
+
}
|
59 |
+
}}
|
60 |
+
onClick={() => lock || toggle('pages', page)}>
|
61 |
+
<div className="border-gray-100 border-b p-2 flex justify-between min-w-sm">
|
62 |
+
<div
|
63 |
+
className={classNames('flex items-center', {
|
64 |
+
'text-gray-700': !has('pages', page),
|
65 |
+
})}>
|
66 |
+
<span>{page.title}</span>
|
67 |
+
{lock && (
|
68 |
+
<span className="w-4 h-4 text-base leading-none pl-2 mr-6 dashicons dashicons-lock"></span>
|
69 |
+
)}
|
70 |
+
</div>
|
71 |
+
{has('pages', page) && (
|
72 |
+
<Checkmark className="text-partner-primary-bg w-6" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
)}
|
74 |
</div>
|
75 |
+
<StylePreview
|
76 |
+
blockHeight={blockHeight}
|
77 |
+
key={style?.recordId}
|
78 |
+
style={{
|
79 |
+
...style,
|
80 |
+
code: findTheCode({ template: pageData }),
|
81 |
+
}}
|
82 |
+
/>
|
83 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
</div>
|
85 |
)
|
86 |
}
|
src/Onboarding/components/StyledPreview.js
CHANGED
@@ -4,18 +4,32 @@ import { useState, useRef, useEffect, useMemo } from '@wordpress/element'
|
|
4 |
import { __ } from '@wordpress/i18n'
|
5 |
import classNames from 'classnames'
|
6 |
import { parseThemeJson } from '@onboarding/api/WPApi'
|
|
|
|
|
7 |
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
8 |
import { SpinnerIcon } from '@onboarding/svg'
|
9 |
|
10 |
-
export const StylePreview = ({
|
|
|
|
|
|
|
|
|
|
|
11 |
const siteType = useUserSelectionStore((state) => state.siteType)
|
|
|
12 |
const [code, setCode] = useState('')
|
13 |
const [themeJson, setThemeJson] = useState('')
|
14 |
const [loaded, setLoaded] = useState(false)
|
|
|
15 |
const [hoverCleanup, setHoverCleanup] = useState(null)
|
16 |
const previewContainer = useRef(null)
|
17 |
const content = useRef(null)
|
18 |
-
const
|
|
|
|
|
|
|
|
|
|
|
19 |
const transformedStyles = useMemo(
|
20 |
() => transformStyles([{ css: themeJson }], '.editor-styles-wrapper'),
|
21 |
[themeJson],
|
@@ -51,15 +65,17 @@ export const StylePreview = ({ style, selectStyle, blockHeight, onHover }) => {
|
|
51 |
const scale = p.offsetWidth / 1400
|
52 |
const iframe = content.current
|
53 |
const body = iframe.contentDocument.body
|
54 |
-
iframe.style.maxHeight = `${blockHeight / scale}px`
|
55 |
if (body?.style) {
|
56 |
body.style.transitionProperty = 'all'
|
57 |
body.style.top = 0
|
58 |
}
|
59 |
|
60 |
const handleIn = () => {
|
61 |
-
|
62 |
-
|
|
|
|
|
|
|
63 |
body.style.transitionDuration =
|
64 |
Math.max(bodyHeight * 2, 3000) + 'ms'
|
65 |
raf1 = window.requestAnimationFrame(() => {
|
@@ -67,7 +83,10 @@ export const StylePreview = ({ style, selectStyle, blockHeight, onHover }) => {
|
|
67 |
})
|
68 |
}
|
69 |
const handleOut = () => {
|
70 |
-
|
|
|
|
|
|
|
71 |
body.style.transitionDuration = bodyHeight + 'ms'
|
72 |
raf2 = window.requestAnimationFrame(() => {
|
73 |
body.style.top = 0
|
@@ -89,7 +108,7 @@ export const StylePreview = ({ style, selectStyle, blockHeight, onHover }) => {
|
|
89 |
}, [blockHeight, loaded])
|
90 |
|
91 |
useEffect(() => {
|
92 |
-
if (!blocks?.length) return
|
93 |
let iframe
|
94 |
|
95 |
// Inserts theme styles after iframe is loaded
|
@@ -101,7 +120,9 @@ export const StylePreview = ({ style, selectStyle, blockHeight, onHover }) => {
|
|
101 |
)
|
102 |
}
|
103 |
content.current = iframe
|
104 |
-
|
|
|
|
|
105 |
}
|
106 |
// The callback will attach a load event to the iframe
|
107 |
const observer = new MutationObserver(() => {
|
@@ -123,22 +144,33 @@ export const StylePreview = ({ style, selectStyle, blockHeight, onHover }) => {
|
|
123 |
observer.disconnect()
|
124 |
iframe?.removeEventListener('load', handle)
|
125 |
}
|
126 |
-
}, [blocks, transformedStyles])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
|
128 |
return (
|
129 |
<>
|
130 |
{loaded && code ? null : (
|
131 |
-
<div
|
132 |
-
|
133 |
-
className="w-full h-full bg-gray-50 flex items-center justify-center">
|
134 |
-
<div className="flex flex-col items-center py-16">
|
135 |
-
<SpinnerIcon className="spin w-8" />
|
136 |
-
</div>
|
137 |
</div>
|
138 |
)}
|
139 |
<div
|
|
|
140 |
role={selectStyle ? 'button' : undefined}
|
141 |
-
style={{ maxHeight: blockHeight }}
|
142 |
tabIndex={selectStyle ? 0 : undefined}
|
143 |
aria-label={
|
144 |
selectStyle ? __('Press to select', 'extendify') : undefined
|
@@ -168,11 +200,13 @@ export const StylePreview = ({ style, selectStyle, blockHeight, onHover }) => {
|
|
168 |
}}
|
169 |
onClick={selectStyle ? () => selectStyle(style) : () => {}}>
|
170 |
<div ref={previewContainer} className="relative rounded-lg">
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
|
|
|
|
176 |
</div>
|
177 |
</div>
|
178 |
</>
|
4 |
import { __ } from '@wordpress/i18n'
|
5 |
import classNames from 'classnames'
|
6 |
import { parseThemeJson } from '@onboarding/api/WPApi'
|
7 |
+
import { useIsMounted } from '@onboarding/hooks/useIsMounted'
|
8 |
+
import { lowerImageQuality } from '@onboarding/lib/util'
|
9 |
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
10 |
import { SpinnerIcon } from '@onboarding/svg'
|
11 |
|
12 |
+
export const StylePreview = ({
|
13 |
+
style,
|
14 |
+
selectStyle,
|
15 |
+
blockHeight,
|
16 |
+
onHover = null,
|
17 |
+
}) => {
|
18 |
const siteType = useUserSelectionStore((state) => state.siteType)
|
19 |
+
const isMounted = useIsMounted()
|
20 |
const [code, setCode] = useState('')
|
21 |
const [themeJson, setThemeJson] = useState('')
|
22 |
const [loaded, setLoaded] = useState(false)
|
23 |
+
const [inView, setInView] = useState(false)
|
24 |
const [hoverCleanup, setHoverCleanup] = useState(null)
|
25 |
const previewContainer = useRef(null)
|
26 |
const content = useRef(null)
|
27 |
+
const blockRef = useRef(null)
|
28 |
+
const observer = useRef(null)
|
29 |
+
const blocks = useMemo(
|
30 |
+
() => rawHandler({ HTML: lowerImageQuality(code) }),
|
31 |
+
[code],
|
32 |
+
)
|
33 |
const transformedStyles = useMemo(
|
34 |
() => transformStyles([{ css: themeJson }], '.editor-styles-wrapper'),
|
35 |
[themeJson],
|
65 |
const scale = p.offsetWidth / 1400
|
66 |
const iframe = content.current
|
67 |
const body = iframe.contentDocument.body
|
|
|
68 |
if (body?.style) {
|
69 |
body.style.transitionProperty = 'all'
|
70 |
body.style.top = 0
|
71 |
}
|
72 |
|
73 |
const handleIn = () => {
|
74 |
+
if (!body.offsetHeight) return
|
75 |
+
const dynBlockHeight =
|
76 |
+
(blockRef?.current?.offsetHeight ?? blockHeight) - 32
|
77 |
+
const bodyHeight =
|
78 |
+
body.getBoundingClientRect().height - dynBlockHeight / scale
|
79 |
body.style.transitionDuration =
|
80 |
Math.max(bodyHeight * 2, 3000) + 'ms'
|
81 |
raf1 = window.requestAnimationFrame(() => {
|
83 |
})
|
84 |
}
|
85 |
const handleOut = () => {
|
86 |
+
if (!body.offsetHeight) return
|
87 |
+
const dynBlockHeight =
|
88 |
+
(blockRef?.current?.offsetHeight ?? blockHeight) - 32
|
89 |
+
const bodyHeight = body.offsetHeight - dynBlockHeight / scale
|
90 |
body.style.transitionDuration = bodyHeight + 'ms'
|
91 |
raf2 = window.requestAnimationFrame(() => {
|
92 |
body.style.top = 0
|
108 |
}, [blockHeight, loaded])
|
109 |
|
110 |
useEffect(() => {
|
111 |
+
if (!blocks?.length || !inView) return
|
112 |
let iframe
|
113 |
|
114 |
// Inserts theme styles after iframe is loaded
|
120 |
)
|
121 |
}
|
122 |
content.current = iframe
|
123 |
+
setTimeout(() => {
|
124 |
+
if (isMounted.current) setLoaded(true)
|
125 |
+
}, 500)
|
126 |
}
|
127 |
// The callback will attach a load event to the iframe
|
128 |
const observer = new MutationObserver(() => {
|
144 |
observer.disconnect()
|
145 |
iframe?.removeEventListener('load', handle)
|
146 |
}
|
147 |
+
}, [blocks, transformedStyles, isMounted, inView])
|
148 |
+
|
149 |
+
useEffect(() => {
|
150 |
+
// Only trigger the mutation observer if we are in view
|
151 |
+
if (!observer.current) {
|
152 |
+
observer.current = new IntersectionObserver((entries) => {
|
153 |
+
if (entries[0].isIntersecting) {
|
154 |
+
setInView(true)
|
155 |
+
}
|
156 |
+
})
|
157 |
+
}
|
158 |
+
observer.current.observe(blockRef.current)
|
159 |
+
return () => {
|
160 |
+
observer.current.disconnect()
|
161 |
+
}
|
162 |
+
}, [])
|
163 |
|
164 |
return (
|
165 |
<>
|
166 |
{loaded && code ? null : (
|
167 |
+
<div className="m-6 absolute inset-0 bg-gray-50 flex items-center justify-center">
|
168 |
+
<SpinnerIcon className="spin w-8" />
|
|
|
|
|
|
|
|
|
169 |
</div>
|
170 |
)}
|
171 |
<div
|
172 |
+
ref={blockRef}
|
173 |
role={selectStyle ? 'button' : undefined}
|
|
|
174 |
tabIndex={selectStyle ? 0 : undefined}
|
175 |
aria-label={
|
176 |
selectStyle ? __('Press to select', 'extendify') : undefined
|
200 |
}}
|
201 |
onClick={selectStyle ? () => selectStyle(style) : () => {}}>
|
202 |
<div ref={previewContainer} className="relative rounded-lg">
|
203 |
+
{inView ? (
|
204 |
+
<BlockPreview
|
205 |
+
blocks={blocks}
|
206 |
+
viewportWidth={1400}
|
207 |
+
live={false}
|
208 |
+
/>
|
209 |
+
) : null}
|
210 |
</div>
|
211 |
</div>
|
212 |
</>
|
src/Onboarding/hooks/useFetch.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import useSWR from 'swr'
|
2 |
|
3 |
-
export const useFetch = (params, fetcher) => {
|
4 |
-
const { data: fetchedData, error } = useSWR(params, fetcher,
|
5 |
const data = fetchedData?.data ?? fetchedData
|
6 |
-
return { data, loading: !data, error }
|
7 |
}
|
1 |
import useSWR from 'swr'
|
2 |
|
3 |
+
export const useFetch = (params, fetcher, options = {}) => {
|
4 |
+
const { data: fetchedData, error } = useSWR(params, fetcher, options)
|
5 |
const data = fetchedData?.data ?? fetchedData
|
6 |
+
return { data, loading: !data && !error, error }
|
7 |
}
|
src/Onboarding/hooks/useIsMounted.js
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { useRef, useEffect, useLayoutEffect } from '@wordpress/element'
|
2 |
+
|
3 |
+
export const useIsMounted = () => {
|
4 |
+
const isMounted = useRef(false)
|
5 |
+
|
6 |
+
useEffect(() => {
|
7 |
+
isMounted.current = true
|
8 |
+
return () => (isMounted.current = false)
|
9 |
+
})
|
10 |
+
return isMounted
|
11 |
+
}
|
12 |
+
export const useIsMountedLayout = () => {
|
13 |
+
const isMounted = useRef(false)
|
14 |
+
|
15 |
+
useLayoutEffect(() => {
|
16 |
+
isMounted.current = true
|
17 |
+
return () => (isMounted.current = false)
|
18 |
+
})
|
19 |
+
return isMounted
|
20 |
+
}
|
src/Onboarding/hooks/useWarnOnLeave.js
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { useEffect } from '@wordpress/element'
|
2 |
+
|
3 |
+
export const useWarnOnLeave = () => {
|
4 |
+
// Display warning alert if user tries to exit
|
5 |
+
useEffect(() => {
|
6 |
+
const handleUnload = (event) => {
|
7 |
+
event.preventDefault()
|
8 |
+
return (event.returnValue = '')
|
9 |
+
}
|
10 |
+
const opts = { capture: true }
|
11 |
+
window.addEventListener('beforeunload', handleUnload, opts)
|
12 |
+
return () => {
|
13 |
+
window.removeEventListener('beforeunload', handleUnload, opts)
|
14 |
+
}
|
15 |
+
}, [])
|
16 |
+
}
|
src/Onboarding/layouts/PageLayout.js
CHANGED
@@ -5,7 +5,7 @@ import { Logo } from '@onboarding/svg'
|
|
5 |
export const PageLayout = ({ children, includeNav = true }) => {
|
6 |
return (
|
7 |
<div className="flex flex-col md:flex-row">
|
8 |
-
<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-
|
9 |
<div className="max-w-sm pr-8">
|
10 |
{window.extOnbData?.partnerLogo && (
|
11 |
<div className="pb-8">
|
5 |
export const PageLayout = ({ children, includeNav = true }) => {
|
6 |
return (
|
7 |
<div className="flex flex-col md:flex-row">
|
8 |
+
<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">
|
9 |
<div className="max-w-sm pr-8">
|
10 |
{window.extOnbData?.partnerLogo && (
|
11 |
<div className="pb-8">
|
src/Onboarding/lib/pages.js
CHANGED
@@ -22,6 +22,12 @@ import {
|
|
22 |
fetchData as siteTypeData,
|
23 |
} from '@onboarding/pages/SiteTypeSelect'
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
export const pages = [
|
26 |
['landing', { component: Landing }],
|
27 |
[
|
@@ -32,14 +38,14 @@ export const pages = [
|
|
32 |
fetchData: siteInfoData,
|
33 |
},
|
34 |
],
|
35 |
-
[
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
],
|
43 |
[
|
44 |
'site-type-select',
|
45 |
{
|
@@ -48,6 +54,14 @@ export const pages = [
|
|
48 |
fetchData: siteTypeData,
|
49 |
},
|
50 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
['site-style-select', { component: SiteStyle }],
|
52 |
[
|
53 |
'site-pages-select',
|
22 |
fetchData as siteTypeData,
|
23 |
} from '@onboarding/pages/SiteTypeSelect'
|
24 |
|
25 |
+
// import {
|
26 |
+
// SuggestedPlugins,
|
27 |
+
// fetcher as suggestedPluginsFetcher,
|
28 |
+
// fetchData as suggestedPluginsData,
|
29 |
+
// } from '@onboarding/pages/SuggestedPlugins'
|
30 |
+
|
31 |
export const pages = [
|
32 |
['landing', { component: Landing }],
|
33 |
[
|
38 |
fetchData: siteInfoData,
|
39 |
},
|
40 |
],
|
41 |
+
// [
|
42 |
+
// 'suggested-plugins',
|
43 |
+
// {
|
44 |
+
// component: SuggestedPlugins,
|
45 |
+
// fetcher: suggestedPluginsFetcher,
|
46 |
+
// fetchData: suggestedPluginsData,
|
47 |
+
// },
|
48 |
+
// ],
|
49 |
[
|
50 |
'site-type-select',
|
51 |
{
|
54 |
fetchData: siteTypeData,
|
55 |
},
|
56 |
],
|
57 |
+
[
|
58 |
+
'goals',
|
59 |
+
{
|
60 |
+
component: Goals,
|
61 |
+
fetcher: goalsFetcher,
|
62 |
+
fetchData: goalsData,
|
63 |
+
},
|
64 |
+
],
|
65 |
['site-style-select', { component: SiteStyle }],
|
66 |
[
|
67 |
'site-pages-select',
|
src/Onboarding/lib/util.js
CHANGED
@@ -1,2 +1,14 @@
|
|
|
|
1 |
export const findTheCode = (item) =>
|
2 |
[item?.template?.code, item?.template?.code2].filter(Boolean).join('')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/** Takes each possible code section and filters out undefined */
|
2 |
export const findTheCode = (item) =>
|
3 |
[item?.template?.code, item?.template?.code2].filter(Boolean).join('')
|
4 |
+
|
5 |
+
/** Removes any hash or qs values from URL - Airtable adds timestamps */
|
6 |
+
export const stripUrlParams = (url) => url?.[0]?.url?.split(/[?#]/)?.[0]
|
7 |
+
|
8 |
+
/** Lowers the quality of images */
|
9 |
+
export const lowerImageQuality = (html) => {
|
10 |
+
return html.replace(/\w+:\/\/\S*(w=(\d*))&\w+\S*"/g, (url, w, width) =>
|
11 |
+
// Could lower the width here if needed
|
12 |
+
url.replace(w, 'w=' + Math.floor(Number(width)) + '&q=10'),
|
13 |
+
)
|
14 |
+
}
|
src/Onboarding/pages/CreatingSite.js
CHANGED
@@ -2,8 +2,9 @@ import { useSelect } from '@wordpress/data'
|
|
2 |
import { useEffect, useState, useCallback } from '@wordpress/element'
|
3 |
import { __, sprintf } from '@wordpress/i18n'
|
4 |
import { createOrder } from '@onboarding/api/DataApi'
|
5 |
-
import { updateTemplatePart } from '@onboarding/api/WPApi'
|
6 |
import { updateOption } from '@onboarding/api/WPApi'
|
|
|
7 |
import { PageLayout } from '@onboarding/layouts/PageLayout'
|
8 |
import { createWordpressPages, saveThemeJson } from '@onboarding/lib/wp'
|
9 |
import { CreateError } from '@onboarding/pages/CreateError'
|
@@ -13,13 +14,12 @@ import { Checkmark, SpinnerIcon } from '@onboarding/svg'
|
|
13 |
|
14 |
export const CreatingSite = () => {
|
15 |
const canLaunch = useUserSelectionStore((state) => state.canLaunch())
|
16 |
-
const { siteType, siteInformation, pages, style, goals } =
|
17 |
useUserSelectionStore()
|
18 |
const [info, setInfo] = useState([])
|
19 |
const theme = useSelect((select) => select('core').getCurrentTheme())
|
20 |
-
const inform = (msg) =>
|
21 |
-
|
22 |
-
}
|
23 |
const doEverything = useCallback(async () => {
|
24 |
if (!canLaunch) {
|
25 |
throw new Error(__('Site is not ready to launch.', 'extendify'))
|
@@ -29,6 +29,14 @@ export const CreatingSite = () => {
|
|
29 |
await new Promise((resolve) => setTimeout(resolve, 2000))
|
30 |
inform(__('Installing your theme', 'extendify'))
|
31 |
await saveThemeJson(style)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
await new Promise((resolve) => setTimeout(resolve, 2000))
|
33 |
inform(__('Inserting header area', 'extendify'))
|
34 |
await updateTemplatePart(
|
@@ -56,6 +64,7 @@ export const CreatingSite = () => {
|
|
56 |
}, [
|
57 |
pages,
|
58 |
goals,
|
|
|
59 |
siteType,
|
60 |
style,
|
61 |
canLaunch,
|
2 |
import { useEffect, useState, useCallback } from '@wordpress/element'
|
3 |
import { __, sprintf } from '@wordpress/i18n'
|
4 |
import { createOrder } from '@onboarding/api/DataApi'
|
5 |
+
import { installPlugin, updateTemplatePart } from '@onboarding/api/WPApi'
|
6 |
import { updateOption } from '@onboarding/api/WPApi'
|
7 |
+
import { useWarnOnLeave } from '@onboarding/hooks/useWarnOnLeave'
|
8 |
import { PageLayout } from '@onboarding/layouts/PageLayout'
|
9 |
import { createWordpressPages, saveThemeJson } from '@onboarding/lib/wp'
|
10 |
import { CreateError } from '@onboarding/pages/CreateError'
|
14 |
|
15 |
export const CreatingSite = () => {
|
16 |
const canLaunch = useUserSelectionStore((state) => state.canLaunch())
|
17 |
+
const { siteType, siteInformation, pages, style, goals, plugins } =
|
18 |
useUserSelectionStore()
|
19 |
const [info, setInfo] = useState([])
|
20 |
const theme = useSelect((select) => select('core').getCurrentTheme())
|
21 |
+
const inform = (msg) => setInfo((info) => [msg, ...info])
|
22 |
+
useWarnOnLeave()
|
|
|
23 |
const doEverything = useCallback(async () => {
|
24 |
if (!canLaunch) {
|
25 |
throw new Error(__('Site is not ready to launch.', 'extendify'))
|
29 |
await new Promise((resolve) => setTimeout(resolve, 2000))
|
30 |
inform(__('Installing your theme', 'extendify'))
|
31 |
await saveThemeJson(style)
|
32 |
+
if (plugins?.length) {
|
33 |
+
inform(__('Installing plugins', 'extendify'))
|
34 |
+
await Promise.all([
|
35 |
+
...plugins.map((plugin) => installPlugin(plugin.wordpressSlug)),
|
36 |
+
new Promise((resolve) => setTimeout(resolve, 2000)),
|
37 |
+
])
|
38 |
+
}
|
39 |
+
await saveThemeJson(style)
|
40 |
await new Promise((resolve) => setTimeout(resolve, 2000))
|
41 |
inform(__('Inserting header area', 'extendify'))
|
42 |
await updateTemplatePart(
|
64 |
}, [
|
65 |
pages,
|
66 |
goals,
|
67 |
+
plugins,
|
68 |
siteType,
|
69 |
style,
|
70 |
canLaunch,
|
src/Onboarding/pages/Goals.js
CHANGED
@@ -8,12 +8,10 @@ import { usePagesStore } from '@onboarding/state/Pages'
|
|
8 |
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
9 |
|
10 |
export const fetcher = () => getGoals()
|
11 |
-
export const fetchData = () => {
|
12 |
-
return { key: 'goals' }
|
13 |
-
}
|
14 |
export const Goals = () => {
|
15 |
-
const { data: goals } = useFetch(fetchData, fetcher)
|
16 |
-
const {
|
17 |
const nextPage = usePagesStore((state) => state.nextPage)
|
18 |
const initialFocus = useRef()
|
19 |
|
@@ -42,27 +40,34 @@ export const Goals = () => {
|
|
42 |
<p className="mt-0 mb-8 text-base">
|
43 |
{__('Select the goals relevant to your site:', 'extendify')}
|
44 |
</p>
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
</div>
|
67 |
</PageLayout>
|
68 |
)
|
8 |
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
9 |
|
10 |
export const fetcher = () => getGoals()
|
11 |
+
export const fetchData = () => ({ key: 'goals' })
|
|
|
|
|
12 |
export const Goals = () => {
|
13 |
+
const { data: goals, loading } = useFetch(fetchData, fetcher)
|
14 |
+
const { toggle, has } = useUserSelectionStore()
|
15 |
const nextPage = usePagesStore((state) => state.nextPage)
|
16 |
const initialFocus = useRef()
|
17 |
|
40 |
<p className="mt-0 mb-8 text-base">
|
41 |
{__('Select the goals relevant to your site:', 'extendify')}
|
42 |
</p>
|
43 |
+
{loading ? (
|
44 |
+
<p>{__('Loading...', 'extendify')}</p>
|
45 |
+
) : (
|
46 |
+
<form
|
47 |
+
onSubmit={(e) => {
|
48 |
+
e.preventDefault()
|
49 |
+
nextPage()
|
50 |
+
}}
|
51 |
+
className="w-full max-w-2xl grid lg:grid-cols-2 gap-4 goal-select">
|
52 |
+
{/* Added so forms can be submitted by pressing Enter */}
|
53 |
+
<input type="submit" className="hidden" />
|
54 |
+
{goals &&
|
55 |
+
goals?.map((goal, index) => (
|
56 |
+
<div
|
57 |
+
key={goal.id}
|
58 |
+
className="border p-4"
|
59 |
+
ref={
|
60 |
+
index === 0 ? initialFocus : undefined
|
61 |
+
}>
|
62 |
+
<CheckboxControl
|
63 |
+
label={goal.title}
|
64 |
+
checked={has('goals', goal)}
|
65 |
+
onChange={() => toggle('goals', goal)}
|
66 |
+
/>
|
67 |
+
</div>
|
68 |
+
))}
|
69 |
+
</form>
|
70 |
+
)}
|
71 |
</div>
|
72 |
</PageLayout>
|
73 |
)
|
src/Onboarding/pages/Landing.js
CHANGED
@@ -7,6 +7,7 @@ import { usePagesStore } from '@onboarding/state/Pages'
|
|
7 |
export const Landing = () => {
|
8 |
const nextPage = usePagesStore((state) => state.nextPage)
|
9 |
const continueButton = useRef(null)
|
|
|
10 |
useEffect(() => {
|
11 |
const raf = requestAnimationFrame(() => continueButton.current.focus())
|
12 |
return () => cancelAnimationFrame(raf)
|
@@ -41,7 +42,7 @@ export const Landing = () => {
|
|
41 |
<p className="mt-0 mb-8 text-base">
|
42 |
{__('Pick one:', 'extendify')}
|
43 |
</p>
|
44 |
-
<div className="
|
45 |
<button
|
46 |
onClick={nextPage}
|
47 |
ref={continueButton}
|
7 |
export const Landing = () => {
|
8 |
const nextPage = usePagesStore((state) => state.nextPage)
|
9 |
const continueButton = useRef(null)
|
10 |
+
|
11 |
useEffect(() => {
|
12 |
const raf = requestAnimationFrame(() => continueButton.current.focus())
|
13 |
return () => cancelAnimationFrame(raf)
|
42 |
<p className="mt-0 mb-8 text-base">
|
43 |
{__('Pick one:', 'extendify')}
|
44 |
</p>
|
45 |
+
<div className="lg:flex lg:space-x-8">
|
46 |
<button
|
47 |
onClick={nextPage}
|
48 |
ref={continueButton}
|
src/Onboarding/pages/SiteInformation.js
CHANGED
@@ -10,9 +10,7 @@ export const fetcher = async () => {
|
|
10 |
const title = await getOption('blogname')
|
11 |
return { title }
|
12 |
}
|
13 |
-
export const fetchData = () => {
|
14 |
-
return { key: 'site-info' }
|
15 |
-
}
|
16 |
export const SiteInformation = () => {
|
17 |
const { siteInformation, setSiteInformation } = useUserSelectionStore()
|
18 |
const initialFocus = useRef(null)
|
10 |
const title = await getOption('blogname')
|
11 |
return { title }
|
12 |
}
|
13 |
+
export const fetchData = () => ({ key: 'site-info' })
|
|
|
|
|
14 |
export const SiteInformation = () => {
|
15 |
const { siteInformation, setSiteInformation } = useUserSelectionStore()
|
16 |
const initialFocus = useRef(null)
|
src/Onboarding/pages/SitePages.js
CHANGED
@@ -3,9 +3,9 @@ import { useState, useEffect } from '@wordpress/element'
|
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
import { getLayoutTypes } from '@onboarding/api/DataApi'
|
5 |
import { PagePreview } from '@onboarding/components/PagePreview'
|
|
|
6 |
import { PageLayout } from '@onboarding/layouts/PageLayout'
|
7 |
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
8 |
-
import { useFetch } from '../hooks/useFetch'
|
9 |
|
10 |
export const fetcher = async () => {
|
11 |
// TODO: these transforms should be moved to the server eventually
|
@@ -30,14 +30,13 @@ export const fetchData = () => {
|
|
30 |
export const SitePages = () => {
|
31 |
const { data: availablePages } = useFetch(fetchData, fetcher)
|
32 |
const [toggleAllPages, setToggleAllPages] = useState(false)
|
33 |
-
const pagesSelected = useUserSelectionStore(
|
34 |
|
35 |
// Toggle all pages on/off (except home)
|
36 |
const updateToggleStatus = () => {
|
37 |
availablePages?.map((page) => {
|
38 |
-
|
39 |
-
|
40 |
-
: useUserSelectionStore.getState().addPage(page)
|
41 |
})
|
42 |
}
|
43 |
|
@@ -48,10 +47,8 @@ export const SitePages = () => {
|
|
48 |
|
49 |
// Select all pages by default
|
50 |
useEffect(() => {
|
51 |
-
availablePages?.map((page) =>
|
52 |
-
|
53 |
-
})
|
54 |
-
}, [availablePages])
|
55 |
|
56 |
return (
|
57 |
<PageLayout>
|
@@ -60,7 +57,7 @@ export const SitePages = () => {
|
|
60 |
{__('What pages do you want on this site?', 'extendify')}
|
61 |
</h1>
|
62 |
<p className="text-base opacity-70">
|
63 |
-
{__('You
|
64 |
</p>
|
65 |
</div>
|
66 |
<div className="w-full">
|
@@ -78,15 +75,19 @@ export const SitePages = () => {
|
|
78 |
onChange={updateToggleStatus}
|
79 |
/>
|
80 |
</div>
|
81 |
-
<div className="
|
82 |
{availablePages?.map((page) => {
|
83 |
return (
|
84 |
-
<
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
|
|
|
|
|
|
|
|
90 |
)
|
91 |
})}
|
92 |
</div>
|
3 |
import { __ } from '@wordpress/i18n'
|
4 |
import { getLayoutTypes } from '@onboarding/api/DataApi'
|
5 |
import { PagePreview } from '@onboarding/components/PagePreview'
|
6 |
+
import { useFetch } from '@onboarding/hooks/useFetch'
|
7 |
import { PageLayout } from '@onboarding/layouts/PageLayout'
|
8 |
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
|
|
9 |
|
10 |
export const fetcher = async () => {
|
11 |
// TODO: these transforms should be moved to the server eventually
|
30 |
export const SitePages = () => {
|
31 |
const { data: availablePages } = useFetch(fetchData, fetcher)
|
32 |
const [toggleAllPages, setToggleAllPages] = useState(false)
|
33 |
+
const { pages: pagesSelected, add, remove } = useUserSelectionStore()
|
34 |
|
35 |
// Toggle all pages on/off (except home)
|
36 |
const updateToggleStatus = () => {
|
37 |
availablePages?.map((page) => {
|
38 |
+
if (page.slug === 'home') return
|
39 |
+
toggleAllPages ? remove('pages', page) : add('pages', page)
|
|
|
40 |
})
|
41 |
}
|
42 |
|
47 |
|
48 |
// Select all pages by default
|
49 |
useEffect(() => {
|
50 |
+
availablePages?.map((page) => add('pages', page))
|
51 |
+
}, [availablePages, add])
|
|
|
|
|
52 |
|
53 |
return (
|
54 |
<PageLayout>
|
57 |
{__('What pages do you want on this site?', 'extendify')}
|
58 |
</h1>
|
59 |
<p className="text-base opacity-70">
|
60 |
+
{__('You may add more later', 'extendify')}
|
61 |
</p>
|
62 |
</div>
|
63 |
<div className="w-full">
|
75 |
onChange={updateToggleStatus}
|
76 |
/>
|
77 |
</div>
|
78 |
+
<div className="lg:flex space-y-6 -m-8 lg:space-y-0 flex-wrap">
|
79 |
{availablePages?.map((page) => {
|
80 |
return (
|
81 |
+
<div
|
82 |
+
className="p-8 relative"
|
83 |
+
style={{ height: 442.5, width: 318.75 }}
|
84 |
+
key={page.id}>
|
85 |
+
<PagePreview
|
86 |
+
lock={page?.slug === 'home'}
|
87 |
+
page={page}
|
88 |
+
blockHeight={442.5}
|
89 |
+
/>
|
90 |
+
</div>
|
91 |
)
|
92 |
})}
|
93 |
</div>
|
src/Onboarding/pages/SiteStyle.js
CHANGED
@@ -1,15 +1,14 @@
|
|
1 |
-
import { useEffect } from '@wordpress/element'
|
2 |
import { __, sprintf } from '@wordpress/i18n'
|
3 |
-
import { mutate } from 'swr'
|
4 |
import { getStyles } from '@onboarding/api/DataApi'
|
5 |
import { StylePreview } from '@onboarding/components/StyledPreview'
|
6 |
-
import {
|
|
|
7 |
import { PageLayout } from '@onboarding/layouts/PageLayout'
|
|
|
8 |
import { usePagesStore } from '@onboarding/state/Pages'
|
9 |
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
10 |
-
import {
|
11 |
-
import { useFetch } from '../hooks/useFetch'
|
12 |
-
import { findTheCode } from '../lib/util'
|
13 |
|
14 |
export const fetcher = async (params) => {
|
15 |
const res = await getStyles(params)
|
@@ -42,37 +41,27 @@ export const fetchData = (siteType) => {
|
|
42 |
export const SiteStyle = () => {
|
43 |
const siteType = useUserSelectionStore((state) => state.siteType)
|
44 |
const nextPage = usePagesStore((state) => state.nextPage)
|
45 |
-
const { data
|
46 |
-
const
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
mutate(data, (cache) => {
|
67 |
-
if (cache?.length) return cache
|
68 |
-
return pageDataFetcher(data)
|
69 |
-
})
|
70 |
-
})
|
71 |
-
}, 100)
|
72 |
-
return () => {
|
73 |
-
window.clearTimeout(hoveringTimeout)
|
74 |
-
}
|
75 |
-
}
|
76 |
|
77 |
useEffect(() => {
|
78 |
if (styles?.length && !useUserSelectionStore.getState().style) {
|
@@ -105,15 +94,28 @@ export const SiteStyle = () => {
|
|
105 |
)
|
106 |
: __('Pick your style', 'extendify')}
|
107 |
</p>
|
108 |
-
<div className="
|
109 |
{styles?.map((style) => (
|
110 |
-
<
|
111 |
-
|
112 |
-
style={
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
))}
|
118 |
</div>
|
119 |
</div>
|
1 |
+
import { useCallback, useEffect, useState } from '@wordpress/element'
|
2 |
import { __, sprintf } from '@wordpress/i18n'
|
|
|
3 |
import { getStyles } from '@onboarding/api/DataApi'
|
4 |
import { StylePreview } from '@onboarding/components/StyledPreview'
|
5 |
+
import { useFetch } from '@onboarding/hooks/useFetch'
|
6 |
+
import { useIsMountedLayout } from '@onboarding/hooks/useIsMounted'
|
7 |
import { PageLayout } from '@onboarding/layouts/PageLayout'
|
8 |
+
import { findTheCode } from '@onboarding/lib/util'
|
9 |
import { usePagesStore } from '@onboarding/state/Pages'
|
10 |
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
11 |
+
import { SpinnerIcon } from '@onboarding/svg'
|
|
|
|
|
12 |
|
13 |
export const fetcher = async (params) => {
|
14 |
const res = await getStyles(params)
|
41 |
export const SiteStyle = () => {
|
42 |
const siteType = useUserSelectionStore((state) => state.siteType)
|
43 |
const nextPage = usePagesStore((state) => state.nextPage)
|
44 |
+
const { data, loading } = useFetch(fetchData, fetcher)
|
45 |
+
const isMounted = useIsMountedLayout()
|
46 |
+
const selectStyle = useCallback(
|
47 |
+
(style) => {
|
48 |
+
useUserSelectionStore.getState().setStyle(style)
|
49 |
+
nextPage()
|
50 |
+
},
|
51 |
+
[nextPage],
|
52 |
+
)
|
53 |
+
const [styles, setStyles] = useState([])
|
54 |
+
|
55 |
+
useEffect(() => {
|
56 |
+
if (!data?.length) return
|
57 |
+
;(async () => {
|
58 |
+
for (const style of data) {
|
59 |
+
if (!isMounted.current) return
|
60 |
+
setStyles((styles) => [...styles, style])
|
61 |
+
await new Promise((resolve) => setTimeout(resolve, 1000))
|
62 |
+
}
|
63 |
+
})()
|
64 |
+
}, [data, isMounted])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
useEffect(() => {
|
67 |
if (styles?.length && !useUserSelectionStore.getState().style) {
|
94 |
)
|
95 |
: __('Pick your style', 'extendify')}
|
96 |
</p>
|
97 |
+
<div className="lg:flex space-y-6 -m-6 lg:space-y-0 flex-wrap">
|
98 |
{styles?.map((style) => (
|
99 |
+
<div
|
100 |
+
className="p-6 relative"
|
101 |
+
style={{ height: 590, width: 425 }}
|
102 |
+
key={style.recordId}>
|
103 |
+
<StylePreview
|
104 |
+
style={style}
|
105 |
+
selectStyle={selectStyle}
|
106 |
+
blockHeight={590}
|
107 |
+
/>
|
108 |
+
</div>
|
109 |
+
))}
|
110 |
+
{data?.slice(styles?.length).map((data) => (
|
111 |
+
<div
|
112 |
+
key={data.slug}
|
113 |
+
style={{ height: 590, width: 425 }}
|
114 |
+
className="p-6 relative">
|
115 |
+
<div className="bg-gray-50 h-full w-full flex items-center justify-center">
|
116 |
+
<SpinnerIcon className="spin w-8" />
|
117 |
+
</div>
|
118 |
+
</div>
|
119 |
))}
|
120 |
</div>
|
121 |
</div>
|
src/Onboarding/pages/SiteSummary.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
import { __ } from '@wordpress/i18n'
|
|
|
2 |
import { PagePreview } from '@onboarding/components/PagePreview'
|
3 |
import { StylePreview } from '@onboarding/components/StyledPreview'
|
4 |
import { PageLayout } from '@onboarding/layouts/PageLayout'
|
|
|
5 |
import { usePagesStore } from '@onboarding/state/Pages'
|
6 |
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
7 |
|
8 |
export const SiteSummary = () => {
|
9 |
-
const siteType = useUserSelectionStore(
|
10 |
-
const style = useUserSelectionStore((state) => state.style)
|
11 |
-
const pages = useUserSelectionStore((state) => state.pages)
|
12 |
const setPage = usePagesStore((state) => state.setPage)
|
13 |
|
14 |
return (
|
@@ -43,7 +43,7 @@ export const SiteSummary = () => {
|
|
43 |
) : (
|
44 |
<button
|
45 |
onClick={() => setPage('site-type-select')}
|
46 |
-
className="bg-transparent text-partner-primary underline">
|
47 |
{__('Press to set a site type', 'extendify')}
|
48 |
</button>
|
49 |
)}
|
@@ -54,18 +54,26 @@ export const SiteSummary = () => {
|
|
54 |
</div>
|
55 |
{style?.label ? (
|
56 |
<div
|
57 |
-
className="
|
58 |
onClick={() => setPage('site-style-select')}
|
59 |
title={__(
|
60 |
'Press to change the site style',
|
61 |
'extendify',
|
62 |
)}>
|
63 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
</div>
|
65 |
) : (
|
66 |
<button
|
67 |
onClick={() => setPage('site-style-select')}
|
68 |
-
className="bg-transparent text-partner-primary underline">
|
69 |
{__('Press to set a style type', 'extendify')}
|
70 |
</button>
|
71 |
)}
|
@@ -82,15 +90,22 @@ export const SiteSummary = () => {
|
|
82 |
'Press to change the selected pages',
|
83 |
'extendify',
|
84 |
)}>
|
85 |
-
<div className="
|
86 |
-
{pages
|
87 |
return (
|
88 |
-
<
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
)
|
95 |
})}
|
96 |
</div>
|
@@ -98,11 +113,40 @@ export const SiteSummary = () => {
|
|
98 |
) : (
|
99 |
<button
|
100 |
onClick={() => setPage('site-pages-select')}
|
101 |
-
className="bg-transparent text-partner-primary underline">
|
102 |
{__('Press to set your pages', 'extendify')}
|
103 |
</button>
|
104 |
)}
|
105 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
</div>
|
107 |
</div>
|
108 |
</PageLayout>
|
1 |
import { __ } from '@wordpress/i18n'
|
2 |
+
import { Card } from '@onboarding/components/Card'
|
3 |
import { PagePreview } from '@onboarding/components/PagePreview'
|
4 |
import { StylePreview } from '@onboarding/components/StyledPreview'
|
5 |
import { PageLayout } from '@onboarding/layouts/PageLayout'
|
6 |
+
import { stripUrlParams } from '@onboarding/lib/util'
|
7 |
import { usePagesStore } from '@onboarding/state/Pages'
|
8 |
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
9 |
|
10 |
export const SiteSummary = () => {
|
11 |
+
const { siteType, style, pages, plugins } = useUserSelectionStore()
|
|
|
|
|
12 |
const setPage = usePagesStore((state) => state.setPage)
|
13 |
|
14 |
return (
|
43 |
) : (
|
44 |
<button
|
45 |
onClick={() => setPage('site-type-select')}
|
46 |
+
className="bg-transparent text-partner-primary underline text-base">
|
47 |
{__('Press to set a site type', 'extendify')}
|
48 |
</button>
|
49 |
)}
|
54 |
</div>
|
55 |
{style?.label ? (
|
56 |
<div
|
57 |
+
className="cursor-pointer overflow-hidden border rounded-lg"
|
58 |
onClick={() => setPage('site-style-select')}
|
59 |
title={__(
|
60 |
'Press to change the site style',
|
61 |
'extendify',
|
62 |
)}>
|
63 |
+
<div
|
64 |
+
className="p-2 relative"
|
65 |
+
style={{ height: 354, width: 255 }}
|
66 |
+
key={style.recordId}>
|
67 |
+
<StylePreview
|
68 |
+
style={style}
|
69 |
+
blockHeight={354}
|
70 |
+
/>
|
71 |
+
</div>
|
72 |
</div>
|
73 |
) : (
|
74 |
<button
|
75 |
onClick={() => setPage('site-style-select')}
|
76 |
+
className="bg-transparent text-partner-primary underline text-base">
|
77 |
{__('Press to set a style type', 'extendify')}
|
78 |
</button>
|
79 |
)}
|
90 |
'Press to change the selected pages',
|
91 |
'extendify',
|
92 |
)}>
|
93 |
+
<div className="lg:flex space-y-6 -m-8 lg:space-y-0 flex-wrap">
|
94 |
+
{pages?.map((page) => {
|
95 |
return (
|
96 |
+
<div
|
97 |
+
className="p-8 relative"
|
98 |
+
style={{
|
99 |
+
height: 354,
|
100 |
+
width: 255,
|
101 |
+
}}
|
102 |
+
key={page.id}>
|
103 |
+
<PagePreview
|
104 |
+
displayOnly={true}
|
105 |
+
page={page}
|
106 |
+
blockHeight={175}
|
107 |
+
/>
|
108 |
+
</div>
|
109 |
)
|
110 |
})}
|
111 |
</div>
|
113 |
) : (
|
114 |
<button
|
115 |
onClick={() => setPage('site-pages-select')}
|
116 |
+
className="bg-transparent text-partner-primary underline text-base">
|
117 |
{__('Press to set your pages', 'extendify')}
|
118 |
</button>
|
119 |
)}
|
120 |
</div>
|
121 |
+
{plugins.length > 0 ? (
|
122 |
+
<div className="flex items-start">
|
123 |
+
<div className="w-20 flex-shrink-0 text-base">
|
124 |
+
{__('Plugins:', 'extendify')}
|
125 |
+
</div>
|
126 |
+
<div
|
127 |
+
className="flex items-start space-x-2 cursor-pointer w-full"
|
128 |
+
onClick={() => setPage('suggested-plugins')}
|
129 |
+
title={__(
|
130 |
+
'Press to change the selected plugins',
|
131 |
+
'extendify',
|
132 |
+
)}>
|
133 |
+
<div className="grid w-full grid-cols-3 gap-4">
|
134 |
+
{plugins.map((plugin) => (
|
135 |
+
<Card
|
136 |
+
key={plugin.id}
|
137 |
+
lock={true}
|
138 |
+
image={stripUrlParams(
|
139 |
+
plugin.previewImage,
|
140 |
+
)}
|
141 |
+
name={plugin.name}
|
142 |
+
heading={plugin.heading}
|
143 |
+
description={plugin.description}
|
144 |
+
/>
|
145 |
+
))}
|
146 |
+
</div>
|
147 |
+
</div>
|
148 |
+
</div>
|
149 |
+
) : null}
|
150 |
</div>
|
151 |
</div>
|
152 |
</PageLayout>
|
src/Onboarding/pages/SiteTypeSelect.js
CHANGED
@@ -14,9 +14,7 @@ import {
|
|
14 |
} from './SiteStyle'
|
15 |
|
16 |
export const fetcher = () => getSiteTypes()
|
17 |
-
export const fetchData = () => {
|
18 |
-
return { key: 'site-types' }
|
19 |
-
}
|
20 |
export const SiteTypeSelect = () => {
|
21 |
const siteType = useUserSelectionStore((state) => state.siteType)
|
22 |
const nextPage = usePagesStore((state) => state.nextPage)
|
@@ -34,7 +32,7 @@ export const SiteTypeSelect = () => {
|
|
34 |
useEffect(() => {
|
35 |
if (loading) return
|
36 |
if (siteType?.slug) return
|
37 |
-
const defaultSiteType = siteTypes
|
38 |
(record) => record.slug === 'default',
|
39 |
)
|
40 |
if (defaultSiteType) {
|
14 |
} from './SiteStyle'
|
15 |
|
16 |
export const fetcher = () => getSiteTypes()
|
17 |
+
export const fetchData = () => ({ key: 'site-types' })
|
|
|
|
|
18 |
export const SiteTypeSelect = () => {
|
19 |
const siteType = useUserSelectionStore((state) => state.siteType)
|
20 |
const nextPage = usePagesStore((state) => state.nextPage)
|
32 |
useEffect(() => {
|
33 |
if (loading) return
|
34 |
if (siteType?.slug) return
|
35 |
+
const defaultSiteType = siteTypes?.find(
|
36 |
(record) => record.slug === 'default',
|
37 |
)
|
38 |
if (defaultSiteType) {
|
src/Onboarding/pages/SuggestedPlugins.js
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { CheckboxControl } from '@wordpress/components'
|
2 |
+
import { useCallback, useEffect, useMemo } from '@wordpress/element'
|
3 |
+
import { __ } from '@wordpress/i18n'
|
4 |
+
import { getSuggestedPlugins } from '@onboarding/api/DataApi'
|
5 |
+
import { Card } from '@onboarding/components/Card'
|
6 |
+
import { useFetch } from '@onboarding/hooks/useFetch'
|
7 |
+
import { PageLayout } from '@onboarding/layouts/PageLayout'
|
8 |
+
import { stripUrlParams } from '@onboarding/lib/util'
|
9 |
+
import { useUserSelectionStore } from '@onboarding/state/UserSelections'
|
10 |
+
|
11 |
+
export const fetcher = () => getSuggestedPlugins()
|
12 |
+
export const fetchData = () => ({ key: 'suggested-plugins' })
|
13 |
+
export const SuggestedPlugins = () => {
|
14 |
+
// Airtable will tag the image url with a timestamp thus forcing a re-render on every fetch
|
15 |
+
// This will slow down revalidation to only occur if they are idle for 10 minutes
|
16 |
+
const { data: suggestedPlugins } = useFetch(fetchData, fetcher, {
|
17 |
+
dedupingInterval: 60_000,
|
18 |
+
refreshInterval: 0,
|
19 |
+
})
|
20 |
+
const { plugins, goals, toggle, has, add, remove } = useUserSelectionStore()
|
21 |
+
|
22 |
+
const nothingToRecommend = useMemo(() => {
|
23 |
+
if (!goals?.length) return true
|
24 |
+
// If no suggested plugins match any of the goals, return false
|
25 |
+
return !goals?.find((goal) => {
|
26 |
+
return suggestedPlugins?.some((plugin) =>
|
27 |
+
plugin?.goals?.includes(goal?.slug),
|
28 |
+
)
|
29 |
+
})
|
30 |
+
}, [goals, suggestedPlugins])
|
31 |
+
|
32 |
+
const hasGoal = useCallback(
|
33 |
+
(plugin) => {
|
34 |
+
// True if we have no recommendations
|
35 |
+
if (nothingToRecommend) return true
|
36 |
+
// Otherwise check the goal/suggestion overlap
|
37 |
+
const goalSlugs = goals.map((goal) => goal.slug)
|
38 |
+
return plugin?.goals.find((goalSlug) =>
|
39 |
+
goalSlugs.includes(goalSlug),
|
40 |
+
)
|
41 |
+
},
|
42 |
+
[goals, nothingToRecommend],
|
43 |
+
)
|
44 |
+
|
45 |
+
const allSelected =
|
46 |
+
suggestedPlugins?.filter(hasGoal)?.length === plugins?.length
|
47 |
+
|
48 |
+
const toggleAll = () => {
|
49 |
+
suggestedPlugins?.filter(hasGoal)?.forEach((plugin) => {
|
50 |
+
allSelected ? remove('plugins', plugin) : add('plugins', plugin)
|
51 |
+
})
|
52 |
+
}
|
53 |
+
|
54 |
+
useEffect(() => {
|
55 |
+
// Select all plugins that match goals on mount
|
56 |
+
suggestedPlugins
|
57 |
+
?.filter(hasGoal)
|
58 |
+
?.forEach((plugin) => add('plugins', plugin))
|
59 |
+
}, [suggestedPlugins, add, nothingToRecommend, hasGoal])
|
60 |
+
|
61 |
+
return (
|
62 |
+
<PageLayout>
|
63 |
+
<div>
|
64 |
+
<h1 className="text-3xl text-white mb-4 mt-0">
|
65 |
+
{__('Choose from these recommended plugins', 'extendify')}
|
66 |
+
</h1>
|
67 |
+
<p className="text-base opacity-70">
|
68 |
+
{__('You may add more later', 'extendify')}
|
69 |
+
</p>
|
70 |
+
</div>
|
71 |
+
<div className="w-full">
|
72 |
+
<div className="flex justify-between">
|
73 |
+
<p className="mt-0 mb-8 text-base">
|
74 |
+
{__('Install recommended plugins:', 'extendify')}
|
75 |
+
</p>
|
76 |
+
<CheckboxControl
|
77 |
+
label={__('Include all plugins', 'extendify')}
|
78 |
+
checked={allSelected}
|
79 |
+
onChange={toggleAll}
|
80 |
+
/>
|
81 |
+
</div>
|
82 |
+
<div className="grid w-full md:grid-cols-3 gap-8">
|
83 |
+
{suggestedPlugins?.filter(hasGoal)?.map((plugin) => (
|
84 |
+
<Card
|
85 |
+
key={plugin.id}
|
86 |
+
image={stripUrlParams(plugin.previewImage)}
|
87 |
+
selected={has('plugins', plugin)}
|
88 |
+
onClick={() => toggle('plugins', plugin)}
|
89 |
+
name={plugin.name}
|
90 |
+
heading={plugin.heading}
|
91 |
+
description={plugin.description}
|
92 |
+
/>
|
93 |
+
))}
|
94 |
+
</div>
|
95 |
+
</div>
|
96 |
+
</PageLayout>
|
97 |
+
)
|
98 |
+
}
|
src/Onboarding/state/UserSelections.js
CHANGED
@@ -8,6 +8,7 @@ const initialState = {
|
|
8 |
},
|
9 |
style: null,
|
10 |
pages: [],
|
|
|
11 |
goals: [],
|
12 |
}
|
13 |
const store = (set, get) => ({
|
@@ -19,46 +20,27 @@ const store = (set, get) => ({
|
|
19 |
const siteInformation = { ...get().siteInformation, [name]: value }
|
20 |
set({ siteInformation })
|
21 |
},
|
22 |
-
|
23 |
-
if (!
|
24 |
-
return get().
|
25 |
},
|
26 |
-
|
27 |
-
if (get().
|
28 |
-
set({
|
29 |
},
|
30 |
-
|
31 |
-
set({
|
32 |
},
|
33 |
-
|
34 |
-
if (get().
|
35 |
-
get().
|
36 |
return
|
37 |
}
|
38 |
-
get().
|
39 |
},
|
40 |
setStyle(style) {
|
41 |
set({ style })
|
42 |
},
|
43 |
-
hasPage(page) {
|
44 |
-
if (!page?.id) return false
|
45 |
-
return get().pages.some((p) => p.id === page.id)
|
46 |
-
},
|
47 |
-
addPage(page) {
|
48 |
-
if (get().hasPage(page)) return
|
49 |
-
set({ pages: [...get().pages, page] })
|
50 |
-
},
|
51 |
-
removePage(page) {
|
52 |
-
if (page.slug === 'home') return
|
53 |
-
set({ pages: get().pages.filter((p) => p.id !== page.id) })
|
54 |
-
},
|
55 |
-
togglePage(page) {
|
56 |
-
if (get().hasPage(page)) {
|
57 |
-
get().removePage(page)
|
58 |
-
return
|
59 |
-
}
|
60 |
-
get().addPage(page)
|
61 |
-
},
|
62 |
canLaunch() {
|
63 |
// The user can launch if they have a complete selection
|
64 |
return (
|
8 |
},
|
9 |
style: null,
|
10 |
pages: [],
|
11 |
+
plugins: [],
|
12 |
goals: [],
|
13 |
}
|
14 |
const store = (set, get) => ({
|
20 |
const siteInformation = { ...get().siteInformation, [name]: value }
|
21 |
set({ siteInformation })
|
22 |
},
|
23 |
+
has(type, item) {
|
24 |
+
if (!item?.id) return false
|
25 |
+
return get()[type].some((t) => t.id === item.id)
|
26 |
},
|
27 |
+
add(type, item) {
|
28 |
+
if (get().has(type, item)) return
|
29 |
+
set({ [type]: [...get()[type], item] })
|
30 |
},
|
31 |
+
remove(type, item) {
|
32 |
+
set({ [type]: get()[type].filter((t) => t.id !== item.id) })
|
33 |
},
|
34 |
+
toggle(type, item) {
|
35 |
+
if (get().has(type, item)) {
|
36 |
+
get().remove(type, item)
|
37 |
return
|
38 |
}
|
39 |
+
get().add(type, item)
|
40 |
},
|
41 |
setStyle(style) {
|
42 |
set({ style })
|
43 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
canLaunch() {
|
45 |
// The user can launch if they have a complete selection
|
46 |
return (
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitca3a0e826f8d4d56f78ebacbdecfa86d::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInitd52ed680e8f3d3d35e822e800615a76e
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
-
call_user_func(\Composer\Autoload\
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInitca3a0e826f8d4d56f78ebacbdecfa86d
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInitca3a0e826f8d4d56f78ebacbdecfa86d', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitca3a0e826f8d4d56f78ebacbdecfa86d', 'loadClassLoader'));
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
+
call_user_func(\Composer\Autoload\ComposerStaticInitca3a0e826f8d4d56f78ebacbdecfa86d::getInitializer($loader));
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'E' =>
|
@@ -23,8 +23,8 @@ class ComposerStaticInitd52ed680e8f3d3d35e822e800615a76e
|
|
23 |
public static function getInitializer(ClassLoader $loader)
|
24 |
{
|
25 |
return \Closure::bind(function () use ($loader) {
|
26 |
-
$loader->prefixLengthsPsr4 =
|
27 |
-
$loader->prefixDirsPsr4 =
|
28 |
|
29 |
}, null, ClassLoader::class);
|
30 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInitca3a0e826f8d4d56f78ebacbdecfa86d
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'E' =>
|
23 |
public static function getInitializer(ClassLoader $loader)
|
24 |
{
|
25 |
return \Closure::bind(function () use ($loader) {
|
26 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInitca3a0e826f8d4d56f78ebacbdecfa86d::$prefixLengthsPsr4;
|
27 |
+
$loader->prefixDirsPsr4 = ComposerStaticInitca3a0e826f8d4d56f78ebacbdecfa86d::$prefixDirsPsr4;
|
28 |
|
29 |
}, null, ClassLoader::class);
|
30 |
}
|