diff --git a/README.md b/README.md
index 5d241f4c26..85d03b3ad3 100644
--- a/README.md
+++ b/README.md
@@ -46,9 +46,11 @@ If you find an issue that you believe to be a *bug*, [let us know](https://githu
If you have restrictions on your server or site, these are the minimum versions that Pods will be supported to run on. Running the following minimum versions does bring with it their own risks including security and exposure to additional bugs that may have been resolved by the recommended versions above.
-* WordPress 6.3+
-* PHP 7.2+
-* MySQL 5.5+
+* WordPress 6.8+
+* PHP 8.0+
+* MySQL 5.7+
+
+It's recommended you use the latest stable version of each available to you.
## Contributions Welcome
diff --git a/classes/Pods.php b/classes/Pods.php
index b45d71e61d..140d65b955 100644
--- a/classes/Pods.php
+++ b/classes/Pods.php
@@ -673,7 +673,7 @@ public function field( $name, $single = null, $raw = false ) {
}
if ( null !== $params->single ) {
- $params->single = (boolean) $params->single;
+ $params->single = (bool) $params->single;
}
$params->name = trim( (string) $params->name );
@@ -2404,9 +2404,9 @@ public function find( $params = null, $limit = 15, $where = null, $sql = null )
'offset' => null,
'page' => (int) $this->page,
'page_var' => $this->page_var,
- 'pagination' => (boolean) $this->pagination,
+ 'pagination' => (bool) $this->pagination,
// Search parameters.
- 'search' => (boolean) $this->search,
+ 'search' => (bool) $this->search,
'search_var' => $this->search_var,
'search_query' => null,
'search_mode' => $this->search_mode,
@@ -2451,8 +2451,8 @@ public function find( $params = null, $limit = 15, $where = null, $sql = null )
$this->offset = (int) $params->offset;
$this->page = (int) $params->page;
$this->page_var = $params->page_var;
- $this->pagination = (boolean) $params->pagination;
- $this->search = (boolean) $params->search;
+ $this->pagination = (bool) $params->pagination;
+ $this->search = (bool) $params->search;
$this->search_var = $params->search_var;
$this->filter_var = $params->filter_var;
$params->join = (array) $params->join;
@@ -3644,7 +3644,7 @@ public function helper( $helper, $value = null, $name = null ) {
*
* @since 2.8.0
*/
- $include_obj = (boolean) apply_filters( 'pods_helper_include_obj', false, $params );
+ $include_obj = (bool) apply_filters( 'pods_helper_include_obj', false, $params );
// Clean up helper callback (if string).
if ( is_string( $params['helper'] ) ) {
diff --git a/classes/PodsAPI.php b/classes/PodsAPI.php
index b57f7a2dd8..53960a2509 100644
--- a/classes/PodsAPI.php
+++ b/classes/PodsAPI.php
@@ -1808,7 +1808,7 @@ public function save_pod( $params, $sanitized = false, $db = true ) {
$params->name = pods_clean_name( $params->name );
}
- $params->overwrite = ! empty( $params->overwrite ) ? (boolean) $params->overwrite : false;
+ $params->overwrite = ! empty( $params->overwrite ) ? (bool) $params->overwrite : false;
$order_group_fields = null;
@@ -3250,8 +3250,8 @@ public function save_field( $params, $table_operation = true, $sanitized = false
$params->pod_id = $pod['id'];
$params->pod = $pod['name'];
- $params->is_new = isset( $params->is_new ) ? (boolean) $params->is_new : false;
- $params->overwrite = isset( $params->overwrite ) ? (boolean) $params->overwrite : false;
+ $params->is_new = isset( $params->is_new ) ? (bool) $params->is_new : false;
+ $params->overwrite = isset( $params->overwrite ) ? (bool) $params->overwrite : false;
$reserved_keywords = pods_reserved_keywords( 'wp-post' );
@@ -4268,13 +4268,13 @@ public function save_group( $params, $sanitized = false, $db = true ) {
$id_required = false;
if ( isset( $params->id_required ) ) {
- $id_required = (boolean) $params->id_required;
+ $id_required = (bool) $params->id_required;
unset( $params->id_required );
}
- $params->is_new = isset( $params->is_new ) ? (boolean) $params->is_new : false;
- $params->overwrite = isset( $params->overwrite ) ? (boolean) $params->overwrite : false;
+ $params->is_new = isset( $params->is_new ) ? (bool) $params->is_new : false;
+ $params->overwrite = isset( $params->overwrite ) ? (bool) $params->overwrite : false;
if ( ! $pod && ( ! isset( $params->pod ) || empty( $params->pod ) ) && ( ! isset( $params->pod_id ) || empty( $params->pod_id ) ) ) {
return pods_error( __( 'Pod ID or name is required', 'pods' ), $this );
@@ -4938,7 +4938,7 @@ public function save_pod_item( $params ) {
}
if ( isset( $params->is_new_item ) ) {
- $is_new_item = (boolean) $params->is_new_item;
+ $is_new_item = (bool) $params->is_new_item;
}
// Allow Helpers to bypass subsequent helpers in recursive save_pod_item calls
@@ -5448,7 +5448,7 @@ public function save_pod_item( $params ) {
|| in_array( pods_v( 'pick_object', $field_data ), $simple_tableless_objects, true )
)
);
- $simple = (boolean) $this->do_hook( 'tableless_custom', $simple, $field_data, $field, $fields, $pod, $params );
+ $simple = (bool) $this->do_hook( 'tableless_custom', $simple, $field_data, $field, $fields, $pod, $params );
$is_repeatable_field = (
(
@@ -6678,6 +6678,7 @@ public function duplicate_pod( $params, $strict = false ) {
* $params['id'] int The Group ID.
* $params['name'] string The Group name.
* $params['new_name'] string The new Group name.
+ * $params['duplicate_fields'] bool Whether to duplicate the fields.
*
* @since 2.8.0
*
@@ -6716,7 +6717,11 @@ public function duplicate_group( $params, $strict = false ) {
return false;
}
+ $pod_data = null;
+
if ( $group instanceof Group ) {
+ $pod_data = $group->get_parent_object();
+
$group = $group->export(
[
'include_fields' => true,
@@ -6747,7 +6752,13 @@ public function duplicate_group( $params, $strict = false ) {
$fields = $group['fields'];
- unset( $group['id'], $group['parent'], $group['object_type'], $group['object_storage_type'], $group['fields'] );
+ unset( $group['id'], $group['object_type'], $group['object_storage_type'], $group['fields'] );
+
+ if ( $pod_data ) {
+ unset( $group['parent'] );
+
+ $group['pod_data'] = $pod_data;
+ }
try {
$group_id = $this->save_group( $group );
@@ -6761,16 +6772,24 @@ public function duplicate_group( $params, $strict = false ) {
return false;
}
- foreach ( $fields as $field => $field_data ) {
- unset( $field_data['id'], $field_data['parent'], $field_data['object_type'], $field_data['object_storage_type'], $field_data['group'] );
+ $group_data = $this->load_group( [ 'id' => $group_id ] );
- $field_data['group_id'] = $group_id;
+ if ( ! empty( $params->duplicate_fields ) ) {
+ foreach ( $fields as $field_data ) {
+ try {
+ $field_params = [
+ 'pod' => $pod_data,
+ 'id' => $field_data['id'],
+ 'name' => $field_data['name'],
+ 'new_group' => $group_data,
+ 'new_group_id' => $group_id,
+ ];
- try {
- $this->save_field( $field_data );
- } catch ( Exception $exception ) {
- // Field not saved.
- pods_debug_log( $exception );
+ $this->duplicate_field( $field_params, true || $strict );
+ } catch ( Exception $exception ) {
+ // Field not saved.
+ pods_debug_log( $exception );
+ }
}
}
@@ -7049,7 +7068,7 @@ public function export_pod_item( $params, $pod = null ) {
$params['fields'] = (array) pods_v( 'fields', $params, [], true );
$params['depth'] = (int) pods_v( 'depth', $params, 2, true );
$params['object_fields'] = (array) pods_v( 'object_fields', $pod->pod_data, [], true );
- $params['flatten'] = (boolean) pods_v( 'flatten', $params, false, true );
+ $params['flatten'] = (bool) pods_v( 'flatten', $params, false, true );
$params['context'] = pods_v( 'context', $params, null, true );
if ( empty( $params['fields'] ) ) {
@@ -7526,7 +7545,7 @@ public function delete_pod( $params, $strict = false, $delete_all = false ) {
$params->delete_all = $delete_all;
}
- $params->delete_all = (boolean) $params->delete_all;
+ $params->delete_all = (bool) $params->delete_all;
// Reset content
if ( true === $params->delete_all ) {
@@ -7740,7 +7759,7 @@ public function delete_field( $params, $table_operation = true ) {
}
$simple = ( 'pick' === $field['type'] && in_array( pods_v( 'pick_object', $field ), $simple_tableless_objects, true ) );
- $simple = (boolean) $this->do_hook( 'tableless_custom', $simple, $field, $pod, $params );
+ $simple = (bool) $this->do_hook( 'tableless_custom', $simple, $field, $pod, $params );
// @todo Push this logic into pods_object_storage_delete_pod action.
if ( $table_operation && $pod && 'table' === $pod['storage'] && ( ! in_array( $field['type'], $tableless_field_types, true ) || $simple ) ) {
@@ -7820,7 +7839,7 @@ public function delete_group( $params, $strict = false, $delete_all = false ) {
}
if ( ! isset( $params->delete_all ) ) {
- $params->delete_all = (boolean) $delete_all;
+ $params->delete_all = (bool) $delete_all;
}
$group = $this->load_group( $params, false );
@@ -8542,7 +8561,7 @@ public function load_pods( $params = [] ) {
$include_internal = false;
if ( isset( $params['include_internal'] ) ) {
- $include_internal = (boolean) $params['include_internal'];
+ $include_internal = (bool) $params['include_internal'];
unset( $params['include_internal'] );
}
@@ -8613,7 +8632,7 @@ public function field_exists( $params, $allow_id = true ) {
}
try {
- return (boolean) $this->load_field( $load_params );
+ return (bool) $this->load_field( $load_params );
} catch ( Exception $exception ) {
pods_debug_log( $exception );
@@ -8889,7 +8908,7 @@ public function load_fields( $params = [] ) {
$include_internal = false;
if ( isset( $params['include_internal'] ) ) {
- $include_internal = (boolean) $params['include_internal'];
+ $include_internal = (bool) $params['include_internal'];
unset( $params['include_internal'] );
}
@@ -8977,7 +8996,7 @@ public function group_exists( $params, $allow_id = true ) {
}
try {
- return (boolean) $this->load_group( $load_params );
+ return (bool) $this->load_group( $load_params );
} catch ( Exception $exception ) {
pods_debug_log( $exception );
@@ -9121,7 +9140,7 @@ public function load_groups( $params = [] ) {
$include_internal = false;
if ( isset( $params['include_internal'] ) ) {
- $include_internal = (boolean) $params['include_internal'];
+ $include_internal = (bool) $params['include_internal'];
unset( $params['include_internal'] );
}
@@ -11582,6 +11601,8 @@ public function csv_to_php( $data, $delimiter = ',' ) {
* @param bool $flush_rewrites Whether to flush rewrites.
* @param bool $flush_groups_and_fields Whether to flush cache for groups and fields.
* @param bool $static_only Whether to flush only static caches.
+ * @param bool $flush_object_cache Whether to fully flush object caches.
+ * @param bool $delete_transients Whether to fully delete transients.
*
* @return void
*
@@ -11589,9 +11610,11 @@ public function csv_to_php( $data, $delimiter = ',' ) {
*/
public function cache_flush_pods(
$pod = null,
- $flush_rewrites = true,
- $flush_groups_and_fields = true,
- $static_only = false
+ bool $flush_rewrites = true,
+ bool $flush_groups_and_fields = true,
+ bool $static_only = false,
+ bool $flush_object_cache = false,
+ bool $delete_transients = false
) {
/**
@@ -11666,11 +11689,11 @@ public function cache_flush_pods(
pods_init()->refresh_existing_content_types_cache( true );
if ( ! $static_only ) {
- // Delete transients in the database
+ // Delete transients in the database.
$wpdb->query( "DELETE FROM `{$wpdb->options}` WHERE `option_name` LIKE '_transient_pods%'" );
$wpdb->query( "DELETE FROM `{$wpdb->options}` WHERE `option_name` LIKE '_transient_timeout_pods%'" );
- // Delete Pods Options Cache in the database
+ // Delete Pods Options Cache in the database.
$wpdb->query( "DELETE FROM `{$wpdb->options}` WHERE `option_name` LIKE '_pods_option_%'" );
// Maybe use the test-based cache flushing to prevent major slowdowns.
@@ -11684,11 +11707,20 @@ class_exists( WP_UnitTestCase::class )
&& class_exists( \Pods_Unit_Tests\Pods_UnitTestCase::class )
) {
\Pods_Unit_Tests\Pods_UnitTestCase::flush_cache();
- } else {
+ } else{
// Do normal cache clear.
pods_cache_clear( true );
- wp_cache_flush();
+ // Maybe flush the full object cache.
+ if ( $flush_object_cache ) {
+ wp_cache_flush();
+ }
+
+ // Maybe delete all transients in the database.
+ if ( $delete_transients ) {
+ $wpdb->query( "DELETE FROM `{$wpdb->options}` WHERE `option_name` LIKE '_transient_%'" );
+ $wpdb->query( "DELETE FROM `{$wpdb->options}` WHERE `option_name` LIKE '_transient_timeout_%'" );
+ }
}
if ( $flush_rewrites ) {
@@ -11696,7 +11728,19 @@ class_exists( WP_UnitTestCase::class )
}
}
- do_action( 'pods_cache_flushed' );
+ /**
+ * Allow hooking into the end of the Pods cache flush process.
+ *
+ * @since unknown
+ *
+ * @param array|Pod|null $pod The pod object or null of flushing general cache.
+ * @param bool $flush_rewrites Whether to flush rewrites.
+ * @param bool $flush_groups_and_fields Whether to flush cache for groups and fields.
+ * @param bool $static_only Whether to flush only static caches.
+ * @param bool $flush_object_cache Whether to fully flush object caches.
+ * @param bool $delete_transients Whether to fully delete transients.
+ */
+ do_action( 'pods_cache_flushed', $pod, $flush_rewrites, $flush_groups_and_fields, $static_only, $flush_object_cache, $delete_transients );
}
/**
@@ -11728,6 +11772,16 @@ public function cache_flush_groups( $flush_fields = true, $static_only = false )
pods_static_cache_clear( true, \Pods\Whatsit\Storage\Collection::class . '/find_objects' );
pods_static_cache_clear( true, \Pods\Whatsit\Storage\Post_Type::class . '/find_objects/any' );
}
+
+ /**
+ * Allow hooking into the end of the Pods cache flush for groups process.
+ *
+ * @since 3.3.2
+ *
+ * @param bool $flush_fields Whether to flush cache for fields.
+ * @param bool $static_only Whether to flush only static caches.
+ */
+ do_action( 'pods_api_cache_flush_groups', $flush_fields, $static_only );
}
/**
@@ -11758,6 +11812,15 @@ public function cache_flush_fields( $static_only = false ) {
pods_static_cache_clear( true, \Pods\Whatsit\Storage\Collection::class . '/find_objects' );
pods_static_cache_clear( true, \Pods\Whatsit\Storage\Post_Type::class . '/find_objects/any' );
+
+ /**
+ * Allow hooking into the end of the Pods cache flush for fields process.
+ *
+ * @since 3.3.2
+ *
+ * @param bool $static_only Whether to flush only static caches.
+ */
+ do_action( 'pods_api_cache_flush_fields', $static_only );
}
/**
diff --git a/classes/PodsArray.php b/classes/PodsArray.php
index 43ca6ee057..d2dce630f2 100644
--- a/classes/PodsArray.php
+++ b/classes/PodsArray.php
@@ -154,7 +154,7 @@ public function validate( $offset, $default = null, $type = null, $extra = null
$value = abs( $value );
}
} elseif ( 'boolean' === $type || 'bool' === $type ) {
- $value = (boolean) $value;
+ $value = (bool) $value;
} elseif ( 'in_array' === $type && is_array( $default ) ) {
if ( is_array( $value ) ) {
foreach ( $value as $k => $v ) {
diff --git a/classes/PodsComponents.php b/classes/PodsComponents.php
index 4796064302..8ede5d4246 100644
--- a/classes/PodsComponents.php
+++ b/classes/PodsComponents.php
@@ -690,7 +690,7 @@ public function toggle( $component, $toggle_mode = false ) {
$toggled = null;
- $toggle_mode = (boolean) pods_v( 'toggle', 'get', $toggle_mode );
+ $toggle_mode = (bool) pods_v( 'toggle', 'get', $toggle_mode );
if ( $toggle_mode ) {
$toggled = $this->activate_component( $component );
@@ -719,11 +719,11 @@ public function admin_capabilities( $capabilities ) {
}
if ( ! pods_developer() ) {
- if ( true === (boolean) pods_v( 'DeveloperMode', $component_data, false ) ) {
+ if ( true === (bool) pods_v( 'DeveloperMode', $component_data, false ) ) {
continue;
}
- if ( true === (boolean) pods_v( 'TablelessMode', $component_data, false ) ) {
+ if ( true === (bool) pods_v( 'TablelessMode', $component_data, false ) ) {
continue;
}
}
diff --git a/classes/PodsData.php b/classes/PodsData.php
index 6476049d10..a8814a4570 100644
--- a/classes/PodsData.php
+++ b/classes/PodsData.php
@@ -1005,7 +1005,7 @@ public function build( $params ) {
// Validate.
$params->page = pods_absint( $params->page );
- $params->pagination = (boolean) $params->pagination;
+ $params->pagination = (bool) $params->pagination;
if ( 0 === $params->page || ! $params->pagination ) {
$params->page = 1;
@@ -1219,7 +1219,7 @@ public function build( $params ) {
$this->search_mode = $params->search_mode;
}
- $params->search = (boolean) $params->search;
+ $params->search = (bool) $params->search;
if ( 1 === (int) pods_v( 'pods_debug_params_all', 'get', 0 ) && pods_is_admin( array( 'pods' ) ) ) {
pods_debug( __METHOD__ . ':' . __LINE__ );
@@ -2997,7 +2997,7 @@ public static function query_field( $field, $q, $pod = null, &$params = null ) {
}
$field_compare = strtoupper( trim( (string) pods_v( 'compare', $q, $field_compare, true ) ) );
- $field_sanitize = (boolean) pods_v( 'sanitize', $q, true );
+ $field_sanitize = (bool) pods_v( 'sanitize', $q, true );
$field_sanitize_format = pods_v( 'sanitize_format', $q, null, true );
$field_cast = pods_v( 'cast', $q, null, true );
diff --git a/classes/PodsForm.php b/classes/PodsForm.php
index b4b6a9a5e2..0c5ca70319 100644
--- a/classes/PodsForm.php
+++ b/classes/PodsForm.php
@@ -1407,7 +1407,7 @@ public static function permission( $type, $name = null, $options = null, $fields
* @since 2.0.0
* @deprecated 2.8.0
*/
- return (boolean) apply_filters( 'pods_form_field_permission', $permission, $type, $name, $options, $fields, $pod, $id, $params );
+ return (bool) apply_filters( 'pods_form_field_permission', $permission, $type, $name, $options, $fields, $pod, $id, $params );
}
/**
diff --git a/classes/PodsInit.php b/classes/PodsInit.php
index 1f5f666967..6aa6ae11a1 100644
--- a/classes/PodsInit.php
+++ b/classes/PodsInit.php
@@ -160,6 +160,7 @@ public function __construct() {
add_action( 'plugins_loaded', [ $this, 'activate_install' ], 9 );
add_action( 'after_setup_theme', [ $this, 'after_setup_theme' ] );
add_action( 'wp_loaded', [ $this, 'flush_rewrite_rules' ] );
+ add_filter( 'plugin_action_links_' . PODS_SLUG, [ $this, 'settings_link' ] );
}
/**
@@ -1178,18 +1179,18 @@ public function setup_content_types( $force = false ) {
// Supported
$cpt_supported = [
- 'title' => (boolean) pods_v( 'supports_title', $post_type, false ),
- 'editor' => (boolean) pods_v( 'supports_editor', $post_type, false ),
- 'author' => (boolean) pods_v( 'supports_author', $post_type, false ),
- 'thumbnail' => (boolean) pods_v( 'supports_thumbnail', $post_type, false ),
- 'excerpt' => (boolean) pods_v( 'supports_excerpt', $post_type, false ),
- 'trackbacks' => (boolean) pods_v( 'supports_trackbacks', $post_type, false ),
- 'custom-fields' => (boolean) pods_v( 'supports_custom_fields', $post_type, false ),
- 'comments' => (boolean) pods_v( 'supports_comments', $post_type, false ),
- 'revisions' => (boolean) pods_v( 'supports_revisions', $post_type, false ),
- 'page-attributes' => (boolean) pods_v( 'supports_page_attributes', $post_type, false ),
- 'post-formats' => (boolean) pods_v( 'supports_post_formats', $post_type, false ),
- 'quick-edit' => (boolean) pods_v( 'supports_quick_edit', $post_type, true ),
+ 'title' => (bool) pods_v( 'supports_title', $post_type, false ),
+ 'editor' => (bool) pods_v( 'supports_editor', $post_type, false ),
+ 'author' => (bool) pods_v( 'supports_author', $post_type, false ),
+ 'thumbnail' => (bool) pods_v( 'supports_thumbnail', $post_type, false ),
+ 'excerpt' => (bool) pods_v( 'supports_excerpt', $post_type, false ),
+ 'trackbacks' => (bool) pods_v( 'supports_trackbacks', $post_type, false ),
+ 'custom-fields' => (bool) pods_v( 'supports_custom_fields', $post_type, false ),
+ 'comments' => (bool) pods_v( 'supports_comments', $post_type, false ),
+ 'revisions' => (bool) pods_v( 'supports_revisions', $post_type, false ),
+ 'page-attributes' => (bool) pods_v( 'supports_page_attributes', $post_type, false ),
+ 'post-formats' => (bool) pods_v( 'supports_post_formats', $post_type, false ),
+ 'quick-edit' => (bool) pods_v( 'supports_quick_edit', $post_type, true ),
];
// Custom Supported
@@ -1206,20 +1207,20 @@ public function setup_content_types( $force = false ) {
// Genesis Support
if ( function_exists( 'genesis' ) ) {
- $cpt_supported['genesis-seo'] = (boolean) pods_v( 'supports_genesis_seo', $post_type, false );
- $cpt_supported['genesis-layouts'] = (boolean) pods_v( 'supports_genesis_layouts', $post_type, false );
- $cpt_supported['genesis-simple-sidebars'] = (boolean) pods_v( 'supports_genesis_simple_sidebars', $post_type, false );
+ $cpt_supported['genesis-seo'] = (bool) pods_v( 'supports_genesis_seo', $post_type, false );
+ $cpt_supported['genesis-layouts'] = (bool) pods_v( 'supports_genesis_layouts', $post_type, false );
+ $cpt_supported['genesis-simple-sidebars'] = (bool) pods_v( 'supports_genesis_simple_sidebars', $post_type, false );
}
// YARPP Support
if ( defined( 'YARPP_VERSION' ) ) {
- $cpt_supported['yarpp_support'] = (boolean) pods_v( 'supports_yarpp_support', $post_type, false );
+ $cpt_supported['yarpp_support'] = (bool) pods_v( 'supports_yarpp_support', $post_type, false );
}
// Jetpack Support
if ( class_exists( 'Jetpack' ) ) {
- $cpt_supported['supports_jetpack_publicize'] = (boolean) pods_v( 'supports_jetpack_publicize', $post_type, false );
- $cpt_supported['supports_jetpack_markdown'] = (boolean) pods_v( 'supports_jetpack_markdown', $post_type, false );
+ $cpt_supported['supports_jetpack_publicize'] = (bool) pods_v( 'supports_jetpack_publicize', $post_type, false );
+ $cpt_supported['supports_jetpack_markdown'] = (bool) pods_v( 'supports_jetpack_markdown', $post_type, false );
}
$cpt_supports = [];
@@ -1239,12 +1240,12 @@ public function setup_content_types( $force = false ) {
}
// Rewrite
- $cpt_rewrite = (boolean) pods_v( 'rewrite', $post_type, true );
+ $cpt_rewrite = (bool) pods_v( 'rewrite', $post_type, true );
$cpt_rewrite_array = [
'slug' => pods_v( 'rewrite_custom_slug', $post_type, str_replace( '_', '-', $post_type_name ), true ),
- 'with_front' => (boolean) pods_v( 'rewrite_with_front', $post_type, true ),
- 'feeds' => (boolean) pods_v( 'rewrite_feeds', $post_type, (boolean) pods_v( 'has_archive', $post_type, false ) ),
- 'pages' => (boolean) pods_v( 'rewrite_pages', $post_type, true ),
+ 'with_front' => (bool) pods_v( 'rewrite_with_front', $post_type, true ),
+ 'feeds' => (bool) pods_v( 'rewrite_feeds', $post_type, (bool) pods_v( 'has_archive', $post_type, false ) ),
+ 'pages' => (bool) pods_v( 'rewrite_pages', $post_type, true ),
];
if ( false !== $cpt_rewrite ) {
@@ -1260,7 +1261,7 @@ public function setup_content_types( $force = false ) {
$capability_type = pods_v( 'capability_type_custom', $post_type, $post_type_name, true );
}
- $show_in_menu = (boolean) pods_v( 'show_in_menu', $post_type, true );
+ $show_in_menu = (bool) pods_v( 'show_in_menu', $post_type, true );
if ( $show_in_menu && 0 < strlen( (string) pods_v( 'menu_location_custom', $post_type ) ) ) {
$show_in_menu = (string) pods_v( 'menu_location_custom', $post_type );
@@ -1277,31 +1278,31 @@ public function setup_content_types( $force = false ) {
'label' => $cpt_label,
'labels' => $cpt_labels,
'description' => esc_html( pods_v( 'description', $post_type ) ),
- 'public' => (boolean) pods_v( 'public', $post_type, true ),
- 'publicly_queryable' => (boolean) pods_v( 'publicly_queryable', $post_type, (boolean) pods_v( 'public', $post_type, true ) ),
- 'exclude_from_search' => (boolean) pods_v( 'exclude_from_search', $post_type, ( (boolean) pods_v( 'public', $post_type, true ) ? false : true ) ),
- 'show_ui' => (boolean) pods_v( 'show_ui', $post_type, (boolean) pods_v( 'public', $post_type, true ) ),
+ 'public' => (bool) pods_v( 'public', $post_type, true ),
+ 'publicly_queryable' => (bool) pods_v( 'publicly_queryable', $post_type, (bool) pods_v( 'public', $post_type, true ) ),
+ 'exclude_from_search' => (bool) pods_v( 'exclude_from_search', $post_type, ( (bool) pods_v( 'public', $post_type, true ) ? false : true ) ),
+ 'show_ui' => (bool) pods_v( 'show_ui', $post_type, (bool) pods_v( 'public', $post_type, true ) ),
'show_in_menu' => $show_in_menu,
- 'show_in_nav_menus' => (boolean) pods_v( 'show_in_nav_menus', $post_type, (boolean) pods_v( 'public', $post_type, true ) ),
- 'show_in_admin_bar' => (boolean) pods_v( 'show_in_admin_bar', $post_type, (boolean) pods_v( 'show_in_menu', $post_type, true ) ),
+ 'show_in_nav_menus' => (bool) pods_v( 'show_in_nav_menus', $post_type, (bool) pods_v( 'public', $post_type, true ) ),
+ 'show_in_admin_bar' => (bool) pods_v( 'show_in_admin_bar', $post_type, (bool) pods_v( 'show_in_menu', $post_type, true ) ),
'menu_position' => (int) pods_v( 'menu_position', $post_type, 0, true ),
'menu_icon' => $menu_icon,
'capability_type' => $capability_type,
// 'capabilities' => $cpt_capabilities,
- 'map_meta_cap' => (boolean) pods_v( 'capability_type_extra', $post_type, true ),
- 'hierarchical' => (boolean) pods_v( 'hierarchical', $post_type, false ),
- 'can_export' => (boolean) pods_v( 'can_export', $post_type, true ),
+ 'map_meta_cap' => (bool) pods_v( 'capability_type_extra', $post_type, true ),
+ 'hierarchical' => (bool) pods_v( 'hierarchical', $post_type, false ),
+ 'can_export' => (bool) pods_v( 'can_export', $post_type, true ),
'supports' => $cpt_supports,
// 'register_meta_box_cb' => array($this, 'manage_meta_box'),
// 'permalink_epmask' => EP_PERMALINK,
- 'has_archive' => ( (boolean) pods_v( 'has_archive', $post_type, false ) ) ? pods_v( 'has_archive_slug', $post_type, true, true ) : false,
+ 'has_archive' => ( (bool) pods_v( 'has_archive', $post_type, false ) ) ? pods_v( 'has_archive_slug', $post_type, true, true ) : false,
'rewrite' => $cpt_rewrite,
- 'query_var' => ( false !== (boolean) pods_v( 'query_var', $post_type, true ) ? pods_v( 'query_var_string', $post_type, $post_type_name, true ) : false ),
- 'delete_with_user' => (boolean) pods_v( 'delete_with_user', $post_type, true ),
+ 'query_var' => ( false !== (bool) pods_v( 'query_var', $post_type, true ) ? pods_v( 'query_var_string', $post_type, $post_type_name, true ) : false ),
+ 'delete_with_user' => (bool) pods_v( 'delete_with_user', $post_type, true ),
'_provider' => 'pods',
];
- if ( (boolean) pods_v( 'disable_create_posts', $post_type, false ) ) {
+ if ( (bool) pods_v( 'disable_create_posts', $post_type, false ) ) {
$pods_post_types[ $post_type_name ]['capabilities'] = [
'create_posts' => false,
];
@@ -1314,7 +1315,7 @@ public function setup_content_types( $force = false ) {
}
// REST API
- $rest_enabled = (boolean) pods_v( 'rest_enable', $post_type, false );
+ $rest_enabled = (bool) pods_v( 'rest_enable', $post_type, false );
if ( $rest_enabled ) {
$rest_base = sanitize_title( pods_v( 'rest_base', $post_type, $post_type_name ) );
@@ -1375,7 +1376,7 @@ public function setup_content_types( $force = false ) {
continue;
}
- if ( false !== (boolean) pods_v( 'built_in_taxonomies_' . $taxonomy, $post_type, false ) ) {
+ if ( false !== (bool) pods_v( 'built_in_taxonomies_' . $taxonomy, $post_type, false ) ) {
$cpt_taxonomies[] = $taxonomy;
if ( isset( $supported_post_types[ $taxonomy ] ) && ! in_array( $post_type_name, $supported_post_types[ $taxonomy ], true ) ) {
@@ -1437,11 +1438,11 @@ public function setup_content_types( $force = false ) {
$ct_labels['desc_field_description'] = pods_v( 'label_desc_field_description', $taxonomy, '', true );
// Rewrite
- $ct_rewrite = (boolean) pods_v( 'rewrite', $taxonomy, true );
+ $ct_rewrite = (bool) pods_v( 'rewrite', $taxonomy, true );
$ct_rewrite_array = [
'slug' => pods_v( 'rewrite_custom_slug', $taxonomy, str_replace( '_', '-', $taxonomy_name ), true ),
- 'with_front' => (boolean) pods_v( 'rewrite_with_front', $taxonomy, true ),
- 'hierarchical' => (boolean) pods_v( 'rewrite_hierarchical', $taxonomy, (boolean) pods_v( 'hierarchical', $taxonomy, false ) ),
+ 'with_front' => (bool) pods_v( 'rewrite_with_front', $taxonomy, true ),
+ 'hierarchical' => (bool) pods_v( 'rewrite_hierarchical', $taxonomy, (bool) pods_v( 'hierarchical', $taxonomy, false ) ),
];
if ( false !== $ct_rewrite ) {
@@ -1483,22 +1484,22 @@ public function setup_content_types( $force = false ) {
'label' => $ct_label,
'labels' => $ct_labels,
'description' => esc_html( pods_v( 'description', $taxonomy ) ),
- 'public' => (boolean) pods_v( 'public', $taxonomy, true ),
- 'publicly_queryable' => (boolean) pods_v( 'publicly_queryable', $taxonomy, (boolean) pods_v( 'public', $taxonomy, true ) ),
- 'show_ui' => (boolean) pods_v( 'show_ui', $taxonomy, (boolean) pods_v( 'public', $taxonomy, true ) ),
- 'show_in_menu' => (boolean) pods_v( 'show_in_menu', $taxonomy, (boolean) pods_v( 'public', $taxonomy, true ) ),
- 'show_in_nav_menus' => (boolean) pods_v( 'show_in_nav_menus', $taxonomy, (boolean) pods_v( 'public', $taxonomy, true ) ),
- 'show_tagcloud' => (boolean) pods_v( 'show_tagcloud', $taxonomy, (boolean) pods_v( 'show_ui', $taxonomy, (boolean) pods_v( 'public', $taxonomy, true ) ) ),
- 'show_in_quick_edit' => (boolean) pods_v( 'show_in_quick_edit', $taxonomy, (boolean) pods_v( 'show_ui', $taxonomy, (boolean) pods_v( 'public', $taxonomy, true ) ) ),
- 'hierarchical' => (boolean) pods_v( 'hierarchical', $taxonomy, false ),
+ 'public' => (bool) pods_v( 'public', $taxonomy, true ),
+ 'publicly_queryable' => (bool) pods_v( 'publicly_queryable', $taxonomy, (bool) pods_v( 'public', $taxonomy, true ) ),
+ 'show_ui' => (bool) pods_v( 'show_ui', $taxonomy, (bool) pods_v( 'public', $taxonomy, true ) ),
+ 'show_in_menu' => (bool) pods_v( 'show_in_menu', $taxonomy, (bool) pods_v( 'public', $taxonomy, true ) ),
+ 'show_in_nav_menus' => (bool) pods_v( 'show_in_nav_menus', $taxonomy, (bool) pods_v( 'public', $taxonomy, true ) ),
+ 'show_tagcloud' => (bool) pods_v( 'show_tagcloud', $taxonomy, (bool) pods_v( 'show_ui', $taxonomy, (bool) pods_v( 'public', $taxonomy, true ) ) ),
+ 'show_in_quick_edit' => (bool) pods_v( 'show_in_quick_edit', $taxonomy, (bool) pods_v( 'show_ui', $taxonomy, (bool) pods_v( 'public', $taxonomy, true ) ) ),
+ 'hierarchical' => (bool) pods_v( 'hierarchical', $taxonomy, false ),
// 'capability_type' => $capability_type,
'capabilities' => $tax_capabilities,
- // 'map_meta_cap' => (boolean) pods_v( 'capability_type_extra', $taxonomy, true ),
+ // 'map_meta_cap' => (bool) pods_v( 'capability_type_extra', $taxonomy, true ),
'update_count_callback' => pods_v( 'update_count_callback', $taxonomy, null, true ),
- 'query_var' => ( false !== (boolean) pods_v( 'query_var', $taxonomy, true ) ? pods_v( 'query_var_string', $taxonomy, $taxonomy_name, true ) : false ),
+ 'query_var' => ( false !== (bool) pods_v( 'query_var', $taxonomy, true ) ? pods_v( 'query_var_string', $taxonomy, $taxonomy_name, true ) : false ),
'rewrite' => $ct_rewrite,
- 'show_admin_column' => (boolean) pods_v( 'show_admin_column', $taxonomy, false ),
- 'sort' => (boolean) pods_v( 'sort', $taxonomy, false ),
+ 'show_admin_column' => (bool) pods_v( 'show_admin_column', $taxonomy, false ),
+ 'sort' => (bool) pods_v( 'sort', $taxonomy, false ),
'_provider' => 'pods',
];
@@ -1522,7 +1523,7 @@ public function setup_content_types( $force = false ) {
}
// REST API
- $rest_enabled = (boolean) pods_v( 'rest_enable', $taxonomy, false );
+ $rest_enabled = (bool) pods_v( 'rest_enable', $taxonomy, false );
if ( $rest_enabled ) {
$rest_base = sanitize_title( pods_v( 'rest_base', $taxonomy, $taxonomy_name ) );
@@ -1551,8 +1552,8 @@ public function setup_content_types( $force = false ) {
// Integration for Single Value Taxonomy UI
if ( function_exists( 'tax_single_value_meta_box' ) ) {
- $pods_taxonomies[ $taxonomy_name ]['single_value'] = (boolean) pods_v( 'single_value', $taxonomy, false );
- $pods_taxonomies[ $taxonomy_name ]['required'] = (boolean) pods_v( 'single_value_required', $taxonomy, false );
+ $pods_taxonomies[ $taxonomy_name ]['single_value'] = (bool) pods_v( 'single_value', $taxonomy, false );
+ $pods_taxonomies[ $taxonomy_name ]['required'] = (bool) pods_v( 'single_value_required', $taxonomy, false );
}
// Post Types
@@ -1566,7 +1567,7 @@ public function setup_content_types( $force = false ) {
continue;
}
- if ( false !== (boolean) pods_v( 'built_in_post_types_' . $post_type, $taxonomy, false ) ) {
+ if ( false !== (bool) pods_v( 'built_in_post_types_' . $post_type, $taxonomy, false ) ) {
$ct_post_types[] = $post_type;
if ( isset( $supported_taxonomies[ $post_type ] ) && ! in_array( $taxonomy_name, $supported_taxonomies[ $post_type ], true ) ) {
@@ -1755,7 +1756,7 @@ public function setup_content_types( $force = false ) {
$pod = $post_types[ $post_type_name ];
// REST API
- $rest_enabled = (boolean) pods_v( 'rest_enable', $pod, false );
+ $rest_enabled = (bool) pods_v( 'rest_enable', $pod, false );
if ( $rest_enabled ) {
if ( empty( $wp_post_types[ $post_type_name ]->show_in_rest ) ) {
@@ -1784,7 +1785,7 @@ public function setup_content_types( $force = false ) {
$pod = $taxonomies[ $taxonomy_name ];
// REST API
- $rest_enabled = (boolean) pods_v( 'rest_enable', $pod, false );
+ $rest_enabled = (bool) pods_v( 'rest_enable', $pod, false );
if ( $rest_enabled ) {
if ( empty( $wp_taxonomies[ $taxonomy_name ]->show_in_rest ) ) {
@@ -1802,7 +1803,7 @@ public function setup_content_types( $force = false ) {
if ( ! empty( PodsMeta::$user ) ) {
$pod = current( PodsMeta::$user );
- $rest_enabled = (boolean) pods_v( 'rest_enable', $pod, false );
+ $rest_enabled = (bool) pods_v( 'rest_enable', $pod, false );
if ( $rest_enabled ) {
new PodsRESTFields( $pod );
@@ -1812,7 +1813,7 @@ public function setup_content_types( $force = false ) {
if ( ! empty( PodsMeta::$media ) ) {
$pod = current( PodsMeta::$media );
- $rest_enabled = (boolean) pods_v( 'rest_enable', $pod, false );
+ $rest_enabled = (bool) pods_v( 'rest_enable', $pod, false );
if ( $rest_enabled ) {
new PodsRESTFields( $pod );
@@ -1857,7 +1858,7 @@ public function quick_edit_enabled_for_post_type( bool $enable, string $post_typ
return $enable;
}
- return (boolean) pods_v( 'supports_quick_edit', PodsMeta::$post_types[ $post_type ], true );
+ return (bool) pods_v( 'supports_quick_edit', PodsMeta::$post_types[ $post_type ], true );
}
/**
@@ -1879,7 +1880,7 @@ public function quick_edit_enabled_for_taxonomy( bool $enable, string $taxonomy
return $enable;
}
- return (boolean) pods_v( 'supports_quick_edit', PodsMeta::$taxonomies[ $taxonomy ], true );
+ return (bool) pods_v( 'supports_quick_edit', PodsMeta::$taxonomies[ $taxonomy ], true );
}
/**
@@ -1907,6 +1908,35 @@ public function flush_rewrite_rules( $force = false ) {
}
}
+ /**
+ * Add custom action links for Pods.
+ *
+ * @since TBD
+ *
+ * @param string[] $actions An array of plugin action links.
+ *
+ * @return string[] An array of plugin action links.
+ **/
+ public function settings_link( array $links ): array {
+ // Check if the Pods admin menu is disabled.
+ if ( defined( 'PODS_DISABLE_ADMIN_MENU' ) && ! PODS_DISABLE_ADMIN_MENU ) {
+ return $links;
+ }
+
+ // Check if user has access to the Pods Settings page.
+ if ( ! pods_is_admin( 'pods_settings' ) ) {
+ return $links;
+ }
+
+ $links['pods_settings'] = sprintf(
+ '%s',
+ esc_url( admin_url( 'admin.php?page=pods-settings' ) ),
+ esc_html__( 'Settings', 'pods' )
+ );
+
+ return $links;
+ }
+
/**
* Update Post Type messages
*
@@ -1983,7 +2013,7 @@ public function setup_updated_messages( $messages ) {
10 => sprintf( __( '%1$s draft updated. Preview %3$s', 'pods' ), $labels['singular_name'], esc_url( $preview_post_link ), $labels['singular_name'] ),
];
- if ( false === (boolean) $pods_cpt_ct['post_types'][ $post_type['name'] ]['public'] ) {
+ if ( false === (bool) $pods_cpt_ct['post_types'][ $post_type['name'] ]['public'] ) {
// translators: %s is the singular label.
$messages[ $post_type['name'] ][1] = sprintf( __( '%s updated.', 'pods' ), $labels['singular_name'] );
// translators: %s is the singular label.
diff --git a/classes/PodsMeta.php b/classes/PodsMeta.php
index 681283e5b4..9855150cd2 100644
--- a/classes/PodsMeta.php
+++ b/classes/PodsMeta.php
@@ -1649,7 +1649,7 @@ public function save_post( $post_id, $post, $update = null ) {
$data = [];
if ( $pod ) {
- $rest_enable = (boolean) pods_v( 'rest_enable', $pod->pod_data, false );
+ $rest_enable = (bool) pods_v( 'rest_enable', $pod->pod_data, false );
// Block REST API saves, we handle those separately in PodsRESTHandlers
if ( defined( 'REST_REQUEST' ) && REST_REQUEST && $rest_enable ) {
@@ -1995,7 +1995,7 @@ public function save_media( $post, $attachment ) {
}
if ( $pod ) {
- $rest_enable = (boolean) pods_v( 'rest_enable', $pod->pod_data, false );
+ $rest_enable = (bool) pods_v( 'rest_enable', $pod->pod_data, false );
// Block REST API saves, we handle those separately in PodsRESTHandlers
if ( defined( 'REST_REQUEST' ) && REST_REQUEST && $rest_enable ) {
@@ -2236,7 +2236,7 @@ public function save_taxonomy( $term_id, $term_taxonomy_id, $taxonomy ) {
}
if ( $pod ) {
- $rest_enable = (boolean) pods_v( 'rest_enable', $pod->pod_data, false );
+ $rest_enable = (bool) pods_v( 'rest_enable', $pod->pod_data, false );
// Block REST API saves, we handle those separately in PodsRESTHandlers
if ( defined( 'REST_REQUEST' ) && REST_REQUEST && $rest_enable ) {
@@ -2454,7 +2454,7 @@ public function save_user( $user_id, $old_user_data = null ) {
$data = [];
if ( $pod ) {
- $rest_enable = (boolean) pods_v( 'rest_enable', $pod->pod_data, false );
+ $rest_enable = (bool) pods_v( 'rest_enable', $pod->pod_data, false );
// Block REST API saves, we handle those separately in PodsRESTHandlers
if ( defined( 'REST_REQUEST' ) && REST_REQUEST && $rest_enable ) {
@@ -2945,7 +2945,7 @@ public function save_comment( $comment_id ) {
}
if ( $pod ) {
- $rest_enable = (boolean) pods_v( 'rest_enable', $pod->pod_data, false );
+ $rest_enable = (bool) pods_v( 'rest_enable', $pod->pod_data, false );
// Block REST API saves, we handle those separately in PodsRESTHandlers
if ( defined( 'REST_REQUEST' ) && REST_REQUEST && $rest_enable ) {
diff --git a/classes/PodsRESTHandlers.php b/classes/PodsRESTHandlers.php
index b369277898..f3c9ae2333 100755
--- a/classes/PodsRESTHandlers.php
+++ b/classes/PodsRESTHandlers.php
@@ -282,7 +282,7 @@ public static function save_handler( $object, $request, $creating ) {
global $wp_rest_additional_fields;
- $rest_enable = (boolean) pods_v( 'rest_enable', $pod->pod_data, false );
+ $rest_enable = (bool) pods_v( 'rest_enable', $pod->pod_data, false );
if ( $pod && $rest_enable && ! empty( $wp_rest_additional_fields[ $type ] ) ) {
$fields = $pod->fields();
diff --git a/classes/cli/PodsAPI_CLI_Command.php b/classes/cli/PodsAPI_CLI_Command.php
index b4f389fec0..e83d72570c 100644
--- a/classes/cli/PodsAPI_CLI_Command.php
+++ b/classes/cli/PodsAPI_CLI_Command.php
@@ -362,15 +362,28 @@ public function deactivate_component( $args, $assoc_args ) {
/**
* Clear the Pods cache.
*
+ * [--skip-object-cache]
+ * : Skip flushing the full object cache (default: Flush full object cache).
+ *
+ * [--skip-transients]
+ * : Skip deleting all transients (default: Delete all transients).
+ *
* ## EXAMPLES
*
* wp pods-legacy-api clear-cache
*
* @subcommand clear-cache
*/
- public function cache_clear() {
-
- pods_api()->cache_flush_pods();
+ public function cache_clear( $args, $assoc_args ) {
+
+ pods_api()->cache_flush_pods(
+ null,
+ true,
+ true,
+ false,
+ empty( $assoc_args['skip-object-cache'] ),
+ empty( $assoc_args['skip-transients'] )
+ );
WP_CLI::success( __( 'Pods cache cleared', 'pods' ) );
diff --git a/classes/fields/datetime.php b/classes/fields/datetime.php
index 9c98b35a01..2cd50b9abb 100644
--- a/classes/fields/datetime.php
+++ b/classes/fields/datetime.php
@@ -263,12 +263,29 @@ public function is_empty( $value = null ) {
$is_empty = false;
- $value = trim( $value );
+ $value = pods_trim( (string) $value );
- if ( empty( $value ) || in_array( $value, [ '0000-00-00', '0000-00-00 00:00:00' ], true ) ) {
+ if ( empty( $value ) ) {
$is_empty = true;
}
+ $empty_values = [
+ '0000-00-00',
+ '0000-00-00 00:00:00',
+ ];
+
+ if ( is_array( $value ) ) {
+ foreach ( $value as $v ) {
+ if ( ! empty( $v ) && ! in_array( (string) $v, $empty_values, true ) ) {
+ $is_empty = false;
+
+ break;
+ }
+ }
+ } elseif ( ! empty( $v ) && ! in_array( (string) $v, $empty_values, true ) ) {
+ $is_empty = false;
+ }
+
return $is_empty;
}
diff --git a/classes/fields/file.php b/classes/fields/file.php
index 588de4483e..f86c843ffa 100644
--- a/classes/fields/file.php
+++ b/classes/fields/file.php
@@ -243,8 +243,8 @@ public function options() {
'data' => apply_filters(
"pods_form_ui_field_{$type}_type_templates",
[
- 'rows' => __( 'Rows', 'pods' ),
- 'tiles' => __( 'Tiles', 'pods' ),
+ 'rows' => __( 'Rows (small)', 'pods' ),
+ 'tiles' => __( 'Rows (large)', 'pods' ),
]
),
'pick_format_single' => 'dropdown',
@@ -1025,8 +1025,8 @@ public function markup( $attributes, $limit = 1, $editable = true, $id = null, $
$link = '{{link}}';
}
- $editable = (boolean) $editable;
- $linked = (boolean) $linked;
+ $editable = (bool) $editable;
+ $linked = (bool) $linked;
?>
item_id );
+ /**
+ * Allow filtering the attachment returned to JSON after the attachment has been uploaded through AJAX.
+ *
+ * @since 2.7.0
+ *
+ * @param array $attachment The attachment post data including filename, thumbnail, link, edit_link, and download.
+ * @param int $parent_post_id The parent post ID this attachment was uploaded to if provided, otherwise zero.
+ */
+ $attachment = apply_filters( 'pods_upload_attachment', $attachment, $parent_post_id );
wp_send_json( $attachment );
}//end if
diff --git a/classes/fields/link.php b/classes/fields/link.php
index 14f6f2de1f..e1490ae879 100644
--- a/classes/fields/link.php
+++ b/classes/fields/link.php
@@ -305,7 +305,7 @@ public function pre_save( $value, $id = null, $name = null, $options = null, $fi
* Init the editor needed for WP Link modal to work
*/
public function validate_link_modal() {
- $init = (boolean) pods_static_cache_get( 'init', __METHOD__ );
+ $init = (bool) pods_static_cache_get( 'init', __METHOD__ );
if ( $init ) {
return;
diff --git a/classes/fields/paragraph.php b/classes/fields/paragraph.php
index 45c8e68a98..36541afc21 100644
--- a/classes/fields/paragraph.php
+++ b/classes/fields/paragraph.php
@@ -202,29 +202,30 @@ public function display( $value = null, $name = null, $options = null, $pod = nu
$value = $this->trim_whitespace( $value, $options );
if ( 1 === (int) pods_v( static::$type . '_oembed', $options, 0 ) ) {
+ /** @var WP_Embed $embed */
$embed = $GLOBALS['wp_embed'];
- $value = $embed->run_shortcode( $value );
+ $value = $embed->run_shortcode( (string) $value );
$value = $embed->autoembed( $value );
}
if ( 1 === (int) pods_v( static::$type . '_wptexturize', $options, 1 ) ) {
- $value = wptexturize( $value );
+ $value = wptexturize( (string) $value );
}
if ( 1 === (int) pods_v( static::$type . '_convert_chars', $options, 1 ) ) {
- $value = convert_chars( $value );
+ $value = convert_chars( (string) $value );
}
if ( 1 === (int) pods_v( static::$type . '_wpautop', $options, 1 ) ) {
- $value = wpautop( $value );
+ $value = wpautop( (string) $value );
}
if ( 1 === (int) pods_v( static::$type . '_allow_shortcode', $options, 0 ) ) {
if ( 1 === (int) pods_v( static::$type . '_wpautop', $options, 1 ) ) {
- $value = shortcode_unautop( $value );
+ $value = shortcode_unautop( (string) $value );
}
- $value = do_shortcode( $value );
+ $value = do_shortcode( (string) $value );
}
/**
diff --git a/classes/fields/pick.php b/classes/fields/pick.php
index 640050e2a9..29cfd4d002 100644
--- a/classes/fields/pick.php
+++ b/classes/fields/pick.php
@@ -1110,7 +1110,7 @@ public function build_dfv_field_options( $options, $args ) {
$field_data = pods_static_cache_get( $field_options['name'] . '/' . $field_options['id'], __CLASS__ . '/field_data' ) ?: [];
if ( isset( $field_data['autocomplete'] ) ) {
- $ajax = (boolean) $field_data['autocomplete'];
+ $ajax = (bool) $field_data['autocomplete'];
}
}
@@ -1838,7 +1838,7 @@ public function validate( $value, $name = null, $options = null, $fields = null,
$related_data[ 'remove_ids_' . $id ] = $remove_ids;
- $related_required = (boolean) pods_v( 'required', $related_field, 0 );
+ $related_required = (bool) pods_v( 'required', $related_field, 0 );
$related_pick_limit = (int) pods_v( static::$type . '_limit', $related_field, 0 );
if ( 'single' === pods_v( static::$type . '_format_type', $related_field ) ) {
diff --git a/components/Migrate-ACF/Migrate-ACF.php b/components/Migrate-ACF/Migrate-ACF.php
index 9eb4c078c6..f9938019f4 100644
--- a/components/Migrate-ACF/Migrate-ACF.php
+++ b/components/Migrate-ACF/Migrate-ACF.php
@@ -120,7 +120,7 @@ public function ajax_migrate( $params ) {
if ( isset( $params->post_type ) && ! empty( $params->post_type ) ) {
foreach ( $params->post_type as $post_type => $checked ) {
- if ( true === (boolean) $checked ) {
+ if ( true === (bool) $checked ) {
$migrate_post_types[] = $post_type;
}
}
@@ -130,7 +130,7 @@ public function ajax_migrate( $params ) {
if ( isset( $params->taxonomy ) && ! empty( $params->taxonomy ) ) {
foreach ( $params->taxonomy as $taxonomy => $checked ) {
- if ( true === (boolean) $checked ) {
+ if ( true === (bool) $checked ) {
$migrate_taxonomies[] = $taxonomy;
}
}
diff --git a/components/Migrate-CPTUI/Migrate-CPTUI.php b/components/Migrate-CPTUI/Migrate-CPTUI.php
index b4d73b3b48..937e0ff928 100644
--- a/components/Migrate-CPTUI/Migrate-CPTUI.php
+++ b/components/Migrate-CPTUI/Migrate-CPTUI.php
@@ -126,7 +126,7 @@ public function ajax_migrate( $params ) {
if ( isset( $params->post_type ) && ! empty( $params->post_type ) ) {
foreach ( $params->post_type as $post_type => $checked ) {
- if ( true === (boolean) $checked ) {
+ if ( true === (bool) $checked ) {
$migrate_post_types[] = $post_type;
}
}
@@ -136,7 +136,7 @@ public function ajax_migrate( $params ) {
if ( isset( $params->taxonomy ) && ! empty( $params->taxonomy ) ) {
foreach ( $params->taxonomy as $taxonomy => $checked ) {
- if ( true === (boolean) $checked ) {
+ if ( true === (bool) $checked ) {
$migrate_taxonomies[] = $taxonomy;
}
}
diff --git a/components/Migrate-PHP/Migrate-PHP.php b/components/Migrate-PHP/Migrate-PHP.php
index 76c208048a..d92f92a43d 100644
--- a/components/Migrate-PHP/Migrate-PHP.php
+++ b/components/Migrate-PHP/Migrate-PHP.php
@@ -159,13 +159,13 @@ public function ajax_migrate( $params ) {
$has_objects_to_migrate = ! empty( $pod_templates_selected ) || ! empty( $pod_pages_selected );
foreach ( $pod_templates_selected as $object_id => $checked ) {
- if ( true === (boolean) $checked && isset( $pod_templates_available_to_migrate[ (int) $object_id ] ) ) {
+ if ( true === (bool) $checked && isset( $pod_templates_available_to_migrate[ (int) $object_id ] ) ) {
$pod_templates[] = $object_id;
}
}
foreach ( $pod_pages_selected as $object_id => $checked ) {
- if ( true === (boolean) $checked && isset( $pod_pages_available_to_migrate[ (int) $object_id ] ) ) {
+ if ( true === (bool) $checked && isset( $pod_pages_available_to_migrate[ (int) $object_id ] ) ) {
$pod_pages[] = $object_id;
}
}
diff --git a/components/Pages.php b/components/Pages.php
index 2925e78be9..b4ae7ea3bf 100644
--- a/components/Pages.php
+++ b/components/Pages.php
@@ -554,7 +554,7 @@ public function setup_updated_messages( $messages ) {
10 => sprintf( __( '%1$s draft updated. Preview %3$s', 'pods' ), $labels->singular_name, esc_url( add_query_arg( 'preview', 'true', get_permalink( $post_ID ) ) ), $labels->singular_name ),
];
- if ( false === (boolean) $post_type->public ) {
+ if ( false === (bool) $post_type->public ) {
// translators: %s is the singular label.
$messages[ $post_type->name ][1] = sprintf( __( '%s updated.', 'pods' ), $labels->singular_name );
// translators: %s is the singular label.
@@ -1045,13 +1045,13 @@ public static function exists( $uri = null ) {
'page_template' => get_post_meta( $object['ID'], 'page_template', true ),
'title' => get_post_meta( $object['ID'], 'page_title', true ),
'options' => [
- 'admin_only' => (boolean) get_post_meta( $object['ID'], 'admin_only', true ),
- 'restrict_role' => (boolean) get_post_meta( $object['ID'], 'restrict_role', true ),
- 'restrict_capability' => (boolean) get_post_meta( $object['ID'], 'restrict_capability', true ),
+ 'admin_only' => (bool) get_post_meta( $object['ID'], 'admin_only', true ),
+ 'restrict_role' => (bool) get_post_meta( $object['ID'], 'restrict_role', true ),
+ 'restrict_capability' => (bool) get_post_meta( $object['ID'], 'restrict_capability', true ),
'roles_allowed' => get_post_meta( $object['ID'], 'roles_allowed', true ),
'capability_allowed' => get_post_meta( $object['ID'], 'capability_allowed', true ),
- 'restrict_redirect' => (boolean) get_post_meta( $object['ID'], 'restrict_redirect', true ),
- 'restrict_redirect_login' => (boolean) get_post_meta( $object['ID'], 'restrict_redirect_login', true ),
+ 'restrict_redirect' => (bool) get_post_meta( $object['ID'], 'restrict_redirect', true ),
+ 'restrict_redirect_login' => (bool) get_post_meta( $object['ID'], 'restrict_redirect_login', true ),
'restrict_redirect_url' => get_post_meta( $object['ID'], 'restrict_redirect_url', true ),
'pod' => get_post_meta( $object['ID'], 'pod', true ),
'pod_slug' => get_post_meta( $object['ID'], 'pod_slug', true ),
@@ -1091,13 +1091,13 @@ public static function object_to_page( Page $object ): array {
'page_template' => get_post_meta( $id, 'page_template', true ),
'title' => get_post_meta( $id, 'page_title', true ),
'options' => [
- 'admin_only' => (boolean) get_post_meta( $id, 'admin_only', true ),
- 'restrict_role' => (boolean) get_post_meta( $id, 'restrict_role', true ),
- 'restrict_capability' => (boolean) get_post_meta( $id, 'restrict_capability', true ),
+ 'admin_only' => (bool) get_post_meta( $id, 'admin_only', true ),
+ 'restrict_role' => (bool) get_post_meta( $id, 'restrict_role', true ),
+ 'restrict_capability' => (bool) get_post_meta( $id, 'restrict_capability', true ),
'roles_allowed' => get_post_meta( $id, 'roles_allowed', true ),
'capability_allowed' => get_post_meta( $id, 'capability_allowed', true ),
- 'restrict_redirect' => (boolean) get_post_meta( $id, 'restrict_redirect', true ),
- 'restrict_redirect_login' => (boolean) get_post_meta( $id, 'restrict_redirect_login', true ),
+ 'restrict_redirect' => (bool) get_post_meta( $id, 'restrict_redirect', true ),
+ 'restrict_redirect_login' => (bool) get_post_meta( $id, 'restrict_redirect_login', true ),
'restrict_redirect_url' => get_post_meta( $id, 'restrict_redirect_url', true ),
'pod' => get_post_meta( $id, 'pod', true ),
'pod_slug' => get_post_meta( $id, 'pod_slug', true ),
@@ -1281,7 +1281,7 @@ public function precode() {
if ( false !== self::$exists ) {
$permission = pods_permission( self::$exists );
- $permission = (boolean) apply_filters( 'pods_pages_permission', $permission, self::$exists );
+ $permission = (bool) apply_filters( 'pods_pages_permission', $permission, self::$exists );
if ( $permission ) {
$content = false;
diff --git a/components/Roles/Roles.php b/components/Roles/Roles.php
index ac4d0ce985..4eda4faf4d 100644
--- a/components/Roles/Roles.php
+++ b/components/Roles/Roles.php
@@ -289,7 +289,7 @@ public function ajax_add( $params ) {
$capabilities = [];
foreach ( $params->capabilities as $capability => $x ) {
- if ( empty( $capability ) || true !== (boolean) $x ) {
+ if ( empty( $capability ) || true !== (bool) $x ) {
continue;
}
@@ -354,7 +354,7 @@ public function ajax_edit( $params ) {
$new_capabilities = [];
foreach ( $params->capabilities as $capability => $x ) {
- if ( empty( $capability ) || true !== (boolean) $x ) {
+ if ( empty( $capability ) || true !== (bool) $x ) {
continue;
}
diff --git a/components/Templates/Templates.php b/components/Templates/Templates.php
index 8747016145..0f82735f76 100644
--- a/components/Templates/Templates.php
+++ b/components/Templates/Templates.php
@@ -303,7 +303,7 @@ public function setup_updated_messages( $messages ) {
10 => sprintf( __( '%1$s draft updated. Preview %3$s', 'pods' ), $labels->singular_name, esc_url( add_query_arg( 'preview', 'true', get_permalink( $post_ID ) ) ), $labels->singular_name ),
];
- if ( false === (boolean) $post_type->public ) {
+ if ( false === (bool) $post_type->public ) {
// translators: %s is the singular label.
$messages[ $post_type->name ][1] = sprintf( __( '%s updated.', 'pods' ), $labels->singular_name );
// translators: %s is the singular label.
@@ -621,7 +621,7 @@ public static function template( $template_name, $code = null, $obj = null, $dep
$permission = pods_permission( $template );
- $permission = (boolean) apply_filters( 'pods_templates_permission', $permission, $code, $template, $obj );
+ $permission = (bool) apply_filters( 'pods_templates_permission', $permission, $code, $template, $obj );
if ( ! $permission ) {
if ( 1 === (int) pods_v( 'show_restrict_message', $options, 1 ) ) {
diff --git a/components/Templates/includes/functions-view_template.php b/components/Templates/includes/functions-view_template.php
index c72209a857..027d1891fe 100644
--- a/components/Templates/includes/functions-view_template.php
+++ b/components/Templates/includes/functions-view_template.php
@@ -165,14 +165,14 @@ function frontier_if_block( $attributes, $code ) {
if ( ! $has_value_compare_attribute ) {
$template = $code[0];
- // Maybe run any shortcode.
+ // Field exists and is not empty, use [IF] content
+ $template = $pod->do_magic_tags( $template );
+
+ // Maybe run other shortcodes after magic tags are evaluated.
if ( defined( 'PODS_TEMPLATES_ALLOW_OTHER_SHORTCODES' ) && PODS_TEMPLATES_ALLOW_OTHER_SHORTCODES ) {
$template = frontier_do_other_shortcodes( $template );
}
- // Field exists and is not empty, use [IF] content
- $template = $pod->do_magic_tags( $template );
-
return frontier_do_shortcode( $template );
}
@@ -289,28 +289,28 @@ function frontier_if_block( $attributes, $code ) {
if ( $pass ) {
$template = $code[0];
- // Maybe run any shortcode.
+ // IF statement true, use [IF] content as template.
+ $template = $pod->do_magic_tags( $template );
+
+ // Maybe run other shortcodes after magic tags are evaluated.
if ( defined( 'PODS_TEMPLATES_ALLOW_OTHER_SHORTCODES' ) && PODS_TEMPLATES_ALLOW_OTHER_SHORTCODES ) {
$template = frontier_do_other_shortcodes( $template );
}
- // IF statement true, use [IF] content as template.
- $template = $pod->do_magic_tags( $template );
-
return frontier_do_shortcode( $template );
}
if ( isset( $code[1] ) ) {
$template = $code[1];
- // Maybe run any shortcode.
+ // There is an [ELSE] tag
+ $template = $pod->do_magic_tags( $template );
+
+ // Maybe run other shortcodes after magic tags are evaluated.
if ( defined( 'PODS_TEMPLATES_ALLOW_OTHER_SHORTCODES' ) && PODS_TEMPLATES_ALLOW_OTHER_SHORTCODES ) {
$template = frontier_do_other_shortcodes( $template );
}
- // There is an [ELSE] tag
- $template = $pod->do_magic_tags( $template );
-
return frontier_do_shortcode( $template );
}
@@ -321,14 +321,14 @@ function frontier_if_block( $attributes, $code ) {
if ( isset( $code[1] ) ) {
$template = $code[1];
- // Maybe run any shortcode.
+ // No value or field is empty and there is an [ELSE] tag. Use [ELSE].
+ $template = $pod->do_magic_tags( $template );
+
+ // Maybe run other shortcodes after magic tags are evaluated.
if ( defined( 'PODS_TEMPLATES_ALLOW_OTHER_SHORTCODES' ) && PODS_TEMPLATES_ALLOW_OTHER_SHORTCODES ) {
$template = frontier_do_other_shortcodes( $template );
}
- // No value or field is empty and there is an [ELSE] tag. Use [ELSE].
- $template = $pod->do_magic_tags( $template );
-
return frontier_do_shortcode( $template );
}
diff --git a/composer.json b/composer.json
index ffc28978b7..51e831ef5e 100644
--- a/composer.json
+++ b/composer.json
@@ -47,7 +47,7 @@
"erusev/parsedown": "^1.7.4",
"lucatume/di52": "^4.0.1",
"mustangostang/spyc": "^0.6.3",
- "php": ">=7.2"
+ "php": ">=8.0"
},
"require-dev": {
"automattic/vipwpcs": "^3.0",
diff --git a/includes/general.php b/includes/general.php
index fa1612ee95..7f736c42cf 100644
--- a/includes/general.php
+++ b/includes/general.php
@@ -2940,7 +2940,7 @@ function pods_field( $pod, $id = null, $name = null, $single = false ) {
// allow for pods_field( 'field_name' );
if ( null === $name ) {
$name = $pod;
- $single = (boolean) $id;
+ $single = (bool) $id;
$pod = null;
$id = null;
@@ -3026,7 +3026,7 @@ function pods_field_display( $pod, $id = null, $name = null, $single = false ) {
// allow for pods_field_display( 'field_name' );
if ( null === $name ) {
$name = $pod;
- $single = (boolean) $id;
+ $single = (bool) $id;
$pod = null;
$id = null;
@@ -3062,7 +3062,7 @@ function pods_field_raw( $pod, $id = null, $name = null, $single = false ) {
// allow for pods_field_raw( 'field_name' );
if ( null === $name ) {
$name = $pod;
- $single = (boolean) $id;
+ $single = (bool) $id;
$pod = null;
$id = null;
diff --git a/init.php b/init.php
index 2efedce77e..84d432999e 100644
--- a/init.php
+++ b/init.php
@@ -10,14 +10,14 @@
* Plugin Name: Pods - Custom Content Types and Fields
* Plugin URI: https://pods.io/
* Description: Pods is a framework for creating, managing, and deploying customized content types and fields
- * Version: 3.3.9.2
+ * Version: 3.4.0-a-3
* Author: Pods Framework Team
* Author URI: https://pods.io/about/
* Text Domain: pods
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
- * Requires at least: 6.3
- * Requires PHP: 7.2
+ * Requires at least: 6.8
+ * Requires PHP: 8.0
* GitHub Plugin URI: https://github.com/pods-framework/pods
* Primary Branch: main
* Plugin ID: did:plc:e3rm6t7cspgpzaf47kn3nnsl
@@ -49,7 +49,7 @@
add_action( 'init', 'pods_deactivate_pods_ui' );
} else {
// Current version.
- define( 'PODS_VERSION', '3.3.9.2' );
+ define( 'PODS_VERSION', '3.4.0-a-3' );
// Current database version, this is the last version the database changed.
define( 'PODS_DB_VERSION', '2.3.5' );
@@ -61,10 +61,10 @@
*
* To be updated each Major x.x Pods release.
*
- * Next planned minimum WP version: 6.6
+ * Next planned minimum WP version: 6.9
*/
if ( ! defined( 'PODS_WP_VERSION_MINIMUM' ) ) {
- $pods_wp_version_minimum = getenv( 'PODS_WP_VERSION_MINIMUM' ) ?: '6.3';
+ $pods_wp_version_minimum = getenv( 'PODS_WP_VERSION_MINIMUM' ) ?: '6.8';
define( 'PODS_WP_VERSION_MINIMUM', $pods_wp_version_minimum );
}
@@ -73,10 +73,10 @@
*
* Found at: https://wordpress.org/about/stats/
*
- * Next planned minimum PHP version: 7.3
+ * Next planned minimum PHP version: 8.1
*/
if ( ! defined( 'PODS_PHP_VERSION_MINIMUM' ) ) {
- define( 'PODS_PHP_VERSION_MINIMUM', '7.2' );
+ define( 'PODS_PHP_VERSION_MINIMUM', '8.0' );
}
/**
@@ -84,10 +84,10 @@
*
* Found at: https://wordpress.org/about/stats/
*
- * Next planned minimum MySQL version: 5.6
+ * Next planned minimum MySQL version: 5.8
*/
if ( ! defined( 'PODS_MYSQL_VERSION_MINIMUM' ) ) {
- define( 'PODS_MYSQL_VERSION_MINIMUM', '5.5' );
+ define( 'PODS_MYSQL_VERSION_MINIMUM', '5.7' );
}
define( 'PODS_FILE', __FILE__ );
diff --git a/package.json b/package.json
index 994bbed182..79bb6c6ba7 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "pods",
- "version": "3.3.9.2",
+ "version": "3.4.0-a-3",
"description": "Pods is a development framework for creating, extending, managing, and deploying customized content types in WordPress.",
"author": "Pods Foundation, Inc",
"homepage": "https://pods.io/",
diff --git a/readme.txt b/readme.txt
index ec98a2e757..087ab223de 100644
--- a/readme.txt
+++ b/readme.txt
@@ -2,10 +2,10 @@
Contributors: sc0ttkclark, zrothauser, keraweb, jimtrue, quasel, nicdford, jamesgol, ramoonus, pglewis, dan.stefan, Desertsnowman, mgibbs189, Shelob9, clubduece, curtismchale, mikedamage, jchristopher, pcfreak30
Donate link: https://friends.pods.io/
Tags: pods, custom post types, custom taxonomies, content types, custom fields
-Requires at least: 6.3
+Requires at least: 6.8
Tested up to: 7.1
-Requires PHP: 7.2
-Stable tag: 3.3.9.2
+Requires PHP: 8.0
+Stable tag: 3.4.0-a-3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -182,6 +182,10 @@ Pods really wouldn't be where it is without all the contributions from our [dono
== Changelog ==
+= 3.3.10 - TBD =
+
+* Fixed: Resolved fatal error when calling the `Whatsit::count_groups()` method in some circumstances. (@markofapproval, @sc0ttkclark)
+
= 3.3.9.2 - August 31st, 2026 =
This is a major security hardening release covering multiple areas of the plugin. We recommend updating as soon as possible.
@@ -333,6 +337,9 @@ Our GitHub has the full list of all prior releases and changelogs for Pods: [htt
== Upgrade Notice ==
+= 3.4 =
+This upgrade requires a minimum versions of PHP 8.0+, WordPress 6.8+, and MySQL 5.7+.
+
= 3.1 =
This upgrade is security focused.
diff --git a/sql/upgrade/PodsUpgrade.php b/sql/upgrade/PodsUpgrade.php
index 1f39f4bf75..5d81d368fc 100644
--- a/sql/upgrade/PodsUpgrade.php
+++ b/sql/upgrade/PodsUpgrade.php
@@ -250,7 +250,7 @@ public function update_progress( $method, $v, $x = null ) {
$method = str_replace( 'migrate_', '', $method );
if ( null !== $x ) {
- $this->progress[ $method ][ $x ] = (boolean) $v;
+ $this->progress[ $method ][ $x ] = (bool) $v;
} else {
$this->progress[ $method ] = $v;
}
@@ -271,7 +271,7 @@ public function check_progress( $method, $x = null ) {
if ( null === $x ) {
return $this->progress[ $method ];
} elseif ( isset( $this->progress[ $method ][ $x ] ) ) {
- return (boolean) $this->progress[ $method ][ $x ];
+ return (bool) $this->progress[ $method ][ $x ];
}
}
diff --git a/src/Pods/Data/Conditional_Logic.php b/src/Pods/Data/Conditional_Logic.php
index 978a63489b..878f218753 100644
--- a/src/Pods/Data/Conditional_Logic.php
+++ b/src/Pods/Data/Conditional_Logic.php
@@ -161,7 +161,7 @@ public static function maybe_setup_from_old_syntax( $object ): ?Conditional_Logi
if ( $old_syntax['depends-on'] ) {
$logic = 'all';
- $rules = [];
+ $rules = [];
foreach ( $old_syntax['depends-on'] as $field_name => $value ) {
$field_name = self::maybe_migrate_field_name( $field_name );
@@ -175,14 +175,14 @@ public static function maybe_setup_from_old_syntax( $object ): ?Conditional_Logi
$logic_sets[] = [
'action' => $action,
- 'logic' => $logic,
- 'rules' => $rules,
+ 'logic' => $logic,
+ 'rules' => $rules,
];
}
if ( $old_syntax['depends-on-any'] ) {
- $logic = 'any';
- $rules = [];
+ $logic = 'any';
+ $rules = [];
foreach ( $old_syntax['depends-on-any'] as $field_name => $value ) {
$field_name = self::maybe_migrate_field_name( $field_name );
@@ -205,7 +205,7 @@ public static function maybe_setup_from_old_syntax( $object ): ?Conditional_Logi
if ( $old_syntax['depends-on-multi'] ) {
$logic = 'all';
- $rules = [];
+ $rules = [];
foreach ( $old_syntax['depends-on-multi'] as $field_name => $value ) {
$field_name = self::maybe_migrate_field_name( $field_name );
@@ -227,8 +227,8 @@ public static function maybe_setup_from_old_syntax( $object ): ?Conditional_Logi
}
if ( $old_syntax['excludes-on'] ) {
- $logic = 'any';
- $rules = [];
+ $logic = 'any';
+ $rules = [];
foreach ( $old_syntax['excludes-on'] as $field_name => $value ) {
$field_name = self::maybe_migrate_field_name( $field_name );
@@ -250,8 +250,8 @@ public static function maybe_setup_from_old_syntax( $object ): ?Conditional_Logi
}
if ( $old_syntax['wildcard-on'] ) {
- $logic = 'any';
- $rules = [];
+ $logic = 'any';
+ $rules = [];
foreach ( $old_syntax['wildcard-on'] as $field_name => $value ) {
$field_name = self::maybe_migrate_field_name( $field_name );
@@ -470,7 +470,7 @@ public function is_visible( array $values ): bool {
public function validate_rules( array $values ): bool {
if ( $this->logic_sets ) {
// Validate rules across logic sets.
- return !! array_filter(
+ return ! ! array_filter(
array_map(
function ( Conditional_Logic $logic ) use ( $values ) {
return $logic->validate_rules( $values );
@@ -511,287 +511,490 @@ function ( Conditional_Logic $logic ) use ( $values ) {
}
/**
- * Determine whether the rule validates for the field values provided.
+ * Helper function to compare values of differing items, which allows strings
+ * to match numbers.
+ *
+ * Comparing an array of 1 item could create false positives, because
+ * [ '123' ] when converted to string === '123', so compare objects (usually arrays)
+ * without using toString().
*
* @since 3.0
*
- * @param array $rule The conditional rule.
- * @param array $values The field values.
+ * @param mixed $item1 First item to compare.
+ * @param mixed $item2 Second item to compare.
*
- * @return bool Whether the rule validates for the field values provided.
+ * @return bool True if matches.
*/
- public function validate_rule( array $rule, array $values ): bool {
- $field = $rule['field'];
- $compare = ! empty( $rule['compare'] ) ? $rule['compare'] : '=';
- $value = $rule['value'];
-
- if ( empty( $field ) || empty( $compare ) ) {
- return true;
+ public function loose_string_equality_check( $item1, $item2 ): bool {
+ // Compare objects (usually arrays) using serialization.
+ if ( is_object( $item1 ) || is_object( $item2 ) || is_array( $item1 ) || is_array( $item2 ) ) {
+ return wp_json_encode( $item1 ) === wp_json_encode( $item2 );
}
- // Format for easier readability.
- $compare = strtoupper( str_replace( '-', ' ', $compare ) );
-
- $check_value = pods_v( $field, $values );
-
- if ( ! in_array( $compare, [
- 'EMPTY',
- 'NOT EMPTY',
- ], true ) ) {
- if ( null === $value ) {
- $value = '';
- } elseif ( is_bool( $value ) ) {
- $value = (int) $value;
- }
-
- if ( null === $check_value ) {
- $check_value = '';
- } elseif ( is_bool( $check_value ) ) {
- $check_value = (int) $check_value;
- }
+ // Convert booleans to integers.
+ if ( is_bool( $item1 ) ) {
+ $item1 = $item1 ? 1 : 0;
}
- if ( 'LIKE' === $compare ) {
- if ( '' === $value ) {
- return true;
- }
+ if ( is_bool( $item2 ) ) {
+ $item2 = $item2 ? 1 : 0;
+ }
- if ( null !== $check_value && ! is_scalar( $check_value ) ) {
- return false;
- }
+ // Attempt to normalize numbers.
+ if ( is_numeric( $item1 ) && is_numeric( $item2 ) ) {
+ $item1 = (float) $item1;
+ $item2 = (float) $item2;
+ }
- if ( null !== $value && ! is_scalar( $value ) ) {
- return false;
- }
+ // Case-insensitive string comparison.
+ return strtolower( (string) $item1 ) === strtolower( (string) $item2 );
+ }
- if ( function_exists( 'str_contains' ) ) {
- return str_contains( strtolower( (string) $check_value ), strtolower( (string) $value ) );
- }
+ /**
+ * Convert a string to an array by splitting on commas.
+ *
+ * @since 3.0
+ *
+ * @param mixed $value The value to convert.
+ *
+ * @return array The converted array.
+ */
+ public function convert_string_to_array( $value ): array {
+ if ( is_array( $value ) ) {
+ return $value;
+ }
- return false !== stripos( (string) $check_value, (string) $value );
+ if ( is_int( $value ) || is_float( $value ) ) {
+ return [ $value ];
}
- if ( 'NOT LIKE' === $compare ) {
- if ( '' === $value ) {
- return false;
- }
+ if ( ! is_string( $value ) ) {
+ return [];
+ }
- if ( null !== $check_value && ! is_scalar( $check_value ) ) {
- return true;
- }
+ // Split by comma and trim whitespace from each item.
+ return array_map( 'trim', explode( ',', $value ) );
+ }
- if ( null !== $value && ! is_scalar( $value ) ) {
- return true;
- }
+ /**
+ * Check if a value is considered empty.
+ *
+ * @since 3.0
+ *
+ * @param mixed $value_to_test The value to check.
+ *
+ * @return bool True if the value is empty.
+ */
+ public function is_value_empty( $value_to_test ): bool {
+ return in_array( $value_to_test, [ '', null, [], false ], true );
+ }
- if ( function_exists( 'str_contains' ) ) {
- return ! str_contains( strtolower( (string) $check_value ), strtolower( (string) $value ) );
+ /**
+ * Perform a string comparison operation.
+ *
+ * @since 3.0
+ *
+ * @param string $operation The operation to perform: 'contains', 'starts_with', or 'ends_with'.
+ * @param mixed $rule_value The value to compare against.
+ * @param mixed $value_to_test The value to be tested.
+ *
+ * @return bool True if the test passes.
+ */
+ public function string_comparison( string $operation, $rule_value, $value_to_test ): bool {
+ if ( null !== $value_to_test && ! is_scalar( $value_to_test ) ) {
+ if ( ! is_array( $value_to_test ) ) {
+ return false;
}
- return false === stripos( (string) $check_value, (string) $value );
+ $value_to_test = implode( ',', $value_to_test );
}
- if ( 'BEGINS' === $compare ) {
- if ( '' === $value ) {
- return true;
- }
-
- if ( null !== $check_value && ! is_scalar( $check_value ) ) {
+ if ( null !== $rule_value && ! is_scalar( $rule_value ) ) {
+ if ( ! is_array( $rule_value ) ) {
return false;
}
- if ( null !== $value && ! is_scalar( $value ) ) {
- return false;
- }
+ $rule_value = implode( ',', $rule_value );
+ }
- if ( function_exists( 'str_starts_with' ) ) {
- return str_starts_with( strtolower( (string) $check_value ), strtolower( (string) $value ) );
- }
+ $value_str = strtolower( (string) $value_to_test );
+ $rule_str = strtolower( (string) $rule_value );
- return 0 === stripos( (string) $check_value, (string) $value );
+ if ( '' === $rule_str ) {
+ return true;
}
- if ( 'NOT BEGINS' === $compare ) {
- if ( '' === $value ) {
- return false;
- }
+ switch ( $operation ) {
+ case 'contains':
+ if ( function_exists( 'str_contains' ) ) {
+ return str_contains( $value_str, $rule_str );
+ }
- if ( null !== $check_value && ! is_scalar( $check_value ) ) {
- return true;
- }
+ return false !== stripos( $value_str, $rule_str );
- if ( null !== $value && ! is_scalar( $value ) ) {
- return true;
- }
+ case 'starts_with':
+ if ( function_exists( 'str_starts_with' ) ) {
+ return str_starts_with( $value_str, $rule_str );
+ }
- if ( function_exists( 'str_starts_with' ) ) {
- return ! str_starts_with( strtolower( (string) $check_value ), strtolower( (string) $value ) );
- }
+ return 0 === stripos( $value_str, $rule_str );
- return 0 !== stripos( (string) $check_value, (string) $value );
- }
+ case 'ends_with':
+ if ( function_exists( 'str_ends_with' ) ) {
+ return str_ends_with( $value_str, $rule_str );
+ }
- if ( 'ENDS' === $compare ) {
- if ( '' === $value ) {
- return true;
- }
+ return 0 === substr_compare( $value_str, $rule_str, - strlen( $rule_str ) );
- if ( null !== $check_value && ! is_scalar( $check_value ) ) {
+ default:
return false;
- }
+ }
+ }
- if ( null !== $value && ! is_scalar( $value ) ) {
- return false;
- }
+ /**
+ * Perform a regex match operation.
+ *
+ * @since 3.0
+ *
+ * @param mixed $rule_value The regex pattern to match against.
+ * @param mixed $value_to_test The value to be tested.
+ *
+ * @return bool True if the test passes.
+ */
+ public function regex_match( $rule_value, $value_to_test ): bool {
+ $pattern = '/' . str_replace( '/', '\/', (string) $rule_value ) . '/';
- if ( function_exists( 'str_ends_with' ) ) {
- return str_ends_with( strtolower( (string) $check_value ), strtolower( (string) $value ) );
+ if ( is_array( $value_to_test ) ) {
+ foreach ( $value_to_test as $value_item ) {
+ if ( 1 === preg_match( $pattern, (string) $value_item ) ) {
+ return true;
+ }
}
- return 0 === substr_compare( (string) $check_value, (string) $value, - strlen( (string) $value ) );
+ return false;
}
- if ( 'NOT ENDS' === $compare ) {
- if ( '' === $value ) {
- return false;
- }
-
- if ( null !== $check_value && ! is_scalar( $check_value ) ) {
- return true;
- }
-
- if ( null !== $value && ! is_scalar( $value ) ) {
- return true;
- }
+ if ( ! is_scalar( $value_to_test ) ) {
+ return false;
+ }
- if ( function_exists( 'str_ends_with' ) ) {
- return ! str_ends_with( strtolower( (string) $check_value ), strtolower( (string) $value ) );
- }
+ return 1 === preg_match( $pattern, (string) $value_to_test );
+ }
- return 0 !== substr_compare( (string) $check_value, (string) $value, - strlen( (string) $value ) );
- }
+ /**
+ * Check if value_to_test is in the rule_value array.
+ *
+ * @since 3.0
+ *
+ * @param mixed $rule_value The array or string to check against.
+ * @param mixed $value_to_test The value to be tested.
+ * @param bool $exact If true, all items must match; if false, any item can match.
+ *
+ * @return bool True if the test passes.
+ */
+ public function in_comparison( $rule_value, $value_to_test, bool $exact = false ): bool {
+ // We can't compare 'in' if the rule's value is not an array.
+ if ( ! is_array( $rule_value ) ) {
+ // If ruleValue is a string and valueToTest is an array, convert string to array.
+ if ( is_array( $value_to_test ) && is_string( $rule_value ) ) {
+ $check_rule_value = $this->convert_string_to_array( $rule_value );
+
+ // Check if values in ruleValue are contained within the array valueToTest.
+ if ( $exact ) {
+ // ALL items in check_rule_value must be found in value_to_test.
+ foreach ( $check_rule_value as $rule_value_item ) {
+ $found = false;
+ foreach ( $value_to_test as $value_item ) {
+ if ( $this->loose_string_equality_check( $rule_value_item, $value_item ) ) {
+ $found = true;
+ break;
+ }
+ }
+ if ( ! $found ) {
+ return false;
+ }
+ }
- if ( 'MATCHES' === $compare ) {
- if ( is_array( $check_value ) ) {
- foreach ( $check_value as $check_value_item ) {
- if ( 1 === preg_match( '/' . str_replace( '/', '\/', (string) $value ) . '/', (string) $check_value_item ) ) {
- return true;
+ return true;
+ } else {
+ // ANY item in check_rule_value must be found in value_to_test.
+ foreach ( $check_rule_value as $rule_value_item ) {
+ foreach ( $value_to_test as $value_item ) {
+ if ( $this->loose_string_equality_check( $rule_value_item, $value_item ) ) {
+ return true;
+ }
+ }
}
- }
- return false;
+ return false;
+ }
}
- if ( ! is_scalar( $check_value ) ) {
- return false;
- }
+ return false;
+ }
- return 1 === preg_match( '/' . str_replace( '/', '\/', (string) $value ) . '/', (string) $check_value );
+ // value_to_test must be scalar for array comparison.
+ if ( ! is_scalar( $value_to_test ) ) {
+ return false;
}
- if ( 'NOT MATCHES' === $compare ) {
- if ( is_array( $check_value ) ) {
- foreach ( $check_value as $check_value_item ) {
- if ( 0 === preg_match( '/' . str_replace( '/', '\/', (string) $value ) . '/', (string) $check_value_item ) ) {
- return true;
- }
+ // Use loose equality check for all comparisons.
+ if ( $exact ) {
+ // ALL items in rule_value must match value_to_test.
+ foreach ( $rule_value as $rule_value_item ) {
+ if ( ! $this->loose_string_equality_check( $rule_value_item, $value_to_test ) ) {
+ return false;
}
-
- return false;
}
- if ( ! is_scalar( $check_value ) ) {
+ return true;
+ }
+
+ // ANY item in rule_value must match value_to_test.
+ foreach ( $rule_value as $rule_value_item ) {
+ if ( $this->loose_string_equality_check( $rule_value_item, $value_to_test ) ) {
return true;
}
-
- return 0 === preg_match( '/' . str_replace( '/', '\/', (string) $value ) . '/', (string) $check_value );
}
- if ( 'IN' === $compare ) {
- if ( ! is_scalar( $check_value ) ) {
- return false;
- }
+ return false;
+ }
- return in_array( $check_value, (array) $value, false );
- }
+ /**
+ * Check if rule_value is in the value_to_test array.
+ *
+ * @since 3.0
+ *
+ * @param mixed $rule_value The value to check for.
+ * @param mixed $value_to_test The array to check within.
+ * @param bool $exact If true, all items must match; if false, any item can match.
+ *
+ * @return bool True if the test passes.
+ */
+ public function in_values_comparison( $rule_value, $value_to_test, bool $exact = false ): bool {
+ // We can't compare 'in values' if valueToTest is not an array.
+ if ( ! is_array( $value_to_test ) ) {
+ // If valueToTest is a string and ruleValue is an array, convert string to array.
+ if ( is_array( $rule_value ) && is_string( $value_to_test ) ) {
+ $check_value_to_test = $this->convert_string_to_array( $value_to_test );
+
+ // Check if values in valueToTest are contained within the array ruleValue.
+ if ( $exact ) {
+ // ALL items in check_value_to_test must be found in rule_value.
+ foreach ( $check_value_to_test as $value_item ) {
+ $found = false;
+ foreach ( $rule_value as $rule_value_item ) {
+ if ( $this->loose_string_equality_check( $value_item, $rule_value_item ) ) {
+ $found = true;
+ break;
+ }
+ }
+ if ( ! $found ) {
+ return false;
+ }
+ }
- if ( 'NOT IN' === $compare ) {
- if ( ! is_scalar( $check_value ) ) {
- return true;
+ return true;
+ } else {
+ // ANY item in check_value_to_test must be found in rule_value.
+ foreach ( $check_value_to_test as $value_item ) {
+ foreach ( $rule_value as $rule_value_item ) {
+ if ( $this->loose_string_equality_check( $value_item, $rule_value_item ) ) {
+ return true;
+ }
+ }
+ }
+
+ return false;
+ }
}
- return ! in_array( $check_value, (array) $value, false );
+ return false;
}
- if ( 'IN VALUES' === $compare ) {
- if ( ! is_scalar( $value ) ) {
- return false;
+ // rule_value must be scalar for array comparison.
+ if ( ! is_scalar( $rule_value ) ) {
+ return false;
+ }
+
+ // Use loose equality check for all comparisons.
+ if ( $exact ) {
+ // ALL items in value_to_test must match rule_value.
+ foreach ( $value_to_test as $value_item ) {
+ if ( ! $this->loose_string_equality_check( $value_item, $rule_value ) ) {
+ return false;
+ }
}
- return in_array( $value, (array) $check_value, false );
+ return true;
}
- if ( 'NOT IN VALUES' === $compare ) {
- if ( ! is_scalar( $value ) ) {
+ // ANY item in value_to_test must match rule_value.
+ foreach ( $value_to_test as $value_item ) {
+ if ( $this->loose_string_equality_check( $value_item, $rule_value ) ) {
return true;
}
+ }
+
+ return false;
+ }
- return ! in_array( $value, (array) $check_value, false );
+ /**
+ * Perform an equality comparison.
+ *
+ * @since 3.0
+ *
+ * @param mixed $rule_value The value to compare against.
+ * @param mixed $value_to_test The value to be tested.
+ *
+ * @return bool True if the test passes.
+ */
+ public function equality_comparison( $rule_value, $value_to_test ): bool {
+ if ( ! is_scalar( $value_to_test ) ) {
+ return false;
}
- if ( 'EMPTY' === $compare ) {
- return in_array( $check_value, [ '', null, [], false ], true );
+ // Convert booleans to numbers to normalize.
+ if ( is_bool( $rule_value ) ) {
+ $rule_value = (int) $rule_value;
}
- if ( 'NOT EMPTY' === $compare ) {
- return ! in_array( $check_value, [ '', null, [], false ], true );
+ if ( is_bool( $value_to_test ) ) {
+ $value_to_test = (int) $value_to_test;
}
// Numeric comparisons enforce floats on numeric values for strict checks.
- if ( is_numeric( $value ) ) {
- $value = (float) $value;
+ if ( is_numeric( $rule_value ) ) {
+ $rule_value = (float) $rule_value;
}
- if ( is_numeric( $check_value ) ) {
- $check_value = (float) $check_value;
+ if ( is_numeric( $value_to_test ) ) {
+ $value_to_test = (float) $value_to_test;
}
- if ( '=' === $compare ) {
- if ( ! is_scalar( $check_value ) ) {
- return false;
- }
+ return $value_to_test === $rule_value;
+ }
- return $check_value === $value;
+ /**
+ * Perform a numeric comparison operation.
+ *
+ * @since 3.0
+ *
+ * @param mixed $value_to_test The value to be tested.
+ * @param string $operator The comparison operator: '<', '<=', '>', or '>='.
+ * @param mixed $rule_value The value to compare against.
+ *
+ * @return bool True if the test passes.
+ */
+ public function numeric_comparison( $value_to_test, string $operator, $rule_value ): bool {
+ if ( ! is_scalar( $rule_value ) || ! is_scalar( $value_to_test ) ) {
+ return false;
}
- if ( '!=' === $compare ) {
- if ( ! is_scalar( $check_value ) ) {
- return true;
- }
-
- return $check_value !== $value;
- }
+ $num_value = (float) $value_to_test;
+ $num_rule = (float) $rule_value;
- if ( ! is_scalar( $check_value ) ) {
- return false;
+ switch ( $operator ) {
+ case '<':
+ return $num_value < $num_rule;
+ case '<=':
+ return $num_value <= $num_rule;
+ case '>':
+ return $num_value > $num_rule;
+ case '>=':
+ return $num_value >= $num_rule;
+ default:
+ return false;
}
+ }
- if ( '<' === $compare ) {
- return (float) $value < (float) $check_value;
- }
+ /**
+ * Validate a single rule.
+ *
+ * @since 3.0
+ *
+ * @param array $rule The rule data.
+ * @param array $values The values to check.
+ *
+ * @return bool Whether the rule passes.
+ */
+ public function validate_rule( array $rule, array $values ): bool {
+ $field = $rule['field'];
+ $compare = ! empty( $rule['compare'] ) ? $rule['compare'] : '=';
+ $rule_value = $rule['rule_value'] ?? $rule['value'];
- if ( '<=' === $compare ) {
- return (float) $value <= (float) $check_value;
+ if ( empty( $field ) || empty( $compare ) ) {
+ return true;
}
- if ( '>' === $compare ) {
- return (float) $value > (float) $check_value;
- }
+ // Format for easier readability.
+ $compare = strtoupper( str_replace( '-', ' ', $compare ) );
- if ( '>=' === $compare ) {
- return (float) $value >= (float) $check_value;
+ $value_to_test = pods_v( $field, $values );
+
+ // Normalize values for non-empty comparisons.
+ if ( ! in_array( $compare, [ 'EMPTY', 'NOT EMPTY' ], true ) ) {
+ if ( null === $rule_value ) {
+ $rule_value = '';
+ } elseif ( is_bool( $rule_value ) ) {
+ $rule_value = (int) $rule_value;
+ }
+
+ if ( null === $value_to_test ) {
+ $value_to_test = '';
+ } elseif ( is_bool( $value_to_test ) ) {
+ $value_to_test = (int) $value_to_test;
+ }
+ }
+
+ switch ( $compare ) {
+ case 'LIKE':
+ return $this->string_comparison( 'contains', $rule_value, $value_to_test );
+ case 'NOT LIKE':
+ return ! $this->string_comparison( 'contains', $rule_value, $value_to_test );
+ case 'BEGINS':
+ return $this->string_comparison( 'starts_with', $rule_value, $value_to_test );
+ case 'NOT BEGINS':
+ return ! $this->string_comparison( 'starts_with', $rule_value, $value_to_test );
+ case 'ENDS':
+ return $this->string_comparison( 'ends_with', $rule_value, $value_to_test );
+ case 'NOT ENDS':
+ return ! $this->string_comparison( 'ends_with', $rule_value, $value_to_test );
+ case 'MATCHES':
+ return $this->regex_match( $rule_value, $value_to_test );
+ case 'NOT MATCHES':
+ return ! $this->regex_match( $rule_value, $value_to_test );
+ case 'IN':
+ return $this->in_comparison( $rule_value, $value_to_test );
+ case 'NOT IN':
+ return ! $this->in_comparison( $rule_value, $value_to_test );
+ case 'IN VALUES':
+ return $this->in_values_comparison( $rule_value, $value_to_test );
+ case 'NOT IN VALUES':
+ return ! $this->in_values_comparison( $rule_value, $value_to_test );
+ case 'ALL':
+ return $this->in_comparison( $rule_value, $value_to_test, true );
+ case 'NOT ALL':
+ return ! $this->in_comparison( $rule_value, $value_to_test, true );
+ case 'ALL VALUES':
+ return $this->in_values_comparison( $rule_value, $value_to_test, true );
+ case 'NOT ALL VALUES':
+ return ! $this->in_values_comparison( $rule_value, $value_to_test, true );
+ case 'EMPTY':
+ return $this->is_value_empty( $value_to_test );
+ case 'NOT EMPTY':
+ return ! $this->is_value_empty( $value_to_test );
+ case '=':
+ return $this->equality_comparison( $rule_value, $value_to_test );
+ case '!=':
+ return ! $this->equality_comparison( $rule_value, $value_to_test );
+ case '<':
+ case '<=':
+ case '>':
+ case '>=':
+ return $this->numeric_comparison( $value_to_test, $compare, $rule_value );
+ default:
+ return false;
}
-
- return false;
}
}
diff --git a/src/Pods/REST/V1/Endpoints/Group_Duplicate.php b/src/Pods/REST/V1/Endpoints/Group_Duplicate.php
new file mode 100644
index 0000000000..11ddd8f915
--- /dev/null
+++ b/src/Pods/REST/V1/Endpoints/Group_Duplicate.php
@@ -0,0 +1,186 @@
+\\d+)/duplicate';
+
+ /**
+ * {@inheritdoc}
+ *
+ * @since TBD
+ */
+ public $rest_doc_route = '/groups/{id}/duplicate';
+
+ /**
+ * {@inheritdoc}
+ *
+ * @since TBD
+ */
+ public $object = 'group';
+
+ /**
+ * {@inheritdoc}
+ *
+ * @since TBD
+ */
+ public function get_documentation() {
+ $POST_defaults = [
+ 'in' => 'body',
+ 'default' => '',
+ 'type' => 'string',
+ ];
+
+ return [
+ 'post' => [
+ 'summary' => 'Duplicate a specific Group',
+ 'parameters' => $this->swaggerize_args( $this->CREATE_args(), $POST_defaults ),
+ 'responses' => [
+ '201' => [
+ 'description' => 'Returns the newly duplicated Group',
+ 'content' => [
+ 'application/json' => [
+ 'schema' => [
+ '$ref' => '#/components/schemas/Group',
+ ],
+ ],
+ ],
+ ],
+ '400' => [
+ 'description' => 'The request was invalid or cannot be otherwise served',
+ 'content' => [
+ 'application/json' => [
+ 'schema' => [
+ 'type' => 'object',
+ ],
+ ],
+ ],
+ ],
+ '401' => [
+ 'description' => 'Unauthorized access - user does not have permission to duplicate this Group',
+ 'content' => [
+ 'application/json' => [
+ 'schema' => [
+ 'type' => 'object',
+ ],
+ ],
+ ],
+ ],
+ '404' => [
+ 'description' => 'The Group to duplicate was not found',
+ 'content' => [
+ 'application/json' => [
+ 'schema' => [
+ 'type' => 'object',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ];
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @since TBD
+ */
+ public function CREATE_args() {
+ return [
+ 'id' => [
+ 'type' => 'integer',
+ 'in' => 'path',
+ 'description' => __( 'The Group ID to duplicate.', 'pods' ),
+ 'required' => true,
+ 'validate_callback' => [ $this->validator, 'is_group_id' ],
+ ],
+ 'new_name' => [
+ 'type' => 'string',
+ 'description' => __( 'The name of the new Group.', 'pods' ),
+ 'required' => false,
+ ],
+ 'duplicate_fields' => [
+ 'type' => 'boolean',
+ 'description' => __( 'Whether to duplicate the fields in the Group (default: on).', 'pods' ),
+ 'default' => true,
+ 'cli_boolean' => true,
+ ],
+ 'include_fields' => [
+ 'type' => 'boolean',
+ 'description' => __( 'Whether to return the fields in the Group (default: on).', 'pods' ),
+ 'default' => true,
+ 'cli_boolean' => true,
+ ],
+ ];
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @since TBD
+ */
+ public function create( WP_REST_Request $request, $return_id = false ) {
+ $id = $request->get_param( 'id' );
+ $new_name = $request->get_param( 'new_name' );
+ $duplicate_fields = $request->get_param( 'duplicate_fields' );
+
+ $api = pods_api();
+ $api->display_errors = 'wp_error';
+
+ // Get the original group to duplicate
+ $group = $api->load_group( [ 'id' => $id ] );
+
+ if ( empty( $group ) ) {
+ return new \WP_Error( 'rest-group-not-found', __( 'Group not found', 'pods' ) );
+ }
+
+ // Prepare the parameters for the new group
+ $params = [
+ 'pod' => $group['pod'],
+ 'pod_id' => $group['pod_id'],
+ 'name' => $group['name'],
+ 'id' => $group['id'],
+ 'new_name' => $new_name,
+ 'duplicate_fields' => $duplicate_fields,
+ ];
+
+ // Duplicate the group.
+ $new_id = $api->duplicate_group( array_filter( $params ) );
+
+ if ( empty( $new_id ) ) {
+ return new \WP_Error( 'rest-group-not-duplicated', __( 'Group could not be duplicated', 'pods' ) );
+ }
+
+ return $this->get_by_args( [
+ 'id' => $new_id,
+ ], 'id', $request );
+ }
+
+ /**
+ * {@inheritdoc}
+ *
+ * @since TBD
+ */
+ public function can_create() {
+ return pods_is_admin( 'pods' );
+ }
+}
diff --git a/src/Pods/REST/V1/Service_Provider.php b/src/Pods/REST/V1/Service_Provider.php
index da40ddb643..2a073d75e8 100644
--- a/src/Pods/REST/V1/Service_Provider.php
+++ b/src/Pods/REST/V1/Service_Provider.php
@@ -13,6 +13,7 @@
use Pods\REST\V1\Endpoints\Fields;
use Pods\REST\V1\Endpoints\Group;
use Pods\REST\V1\Endpoints\Group_Slug;
+use Pods\REST\V1\Endpoints\Group_Duplicate;
use Pods\REST\V1\Endpoints\Groups;
use Pods\REST\V1\Endpoints\Pod;
use Pods\REST\V1\Endpoints\Pod_Slug;
@@ -81,16 +82,17 @@ public function register() {
*/
public function get_endpoints() {
$endpoints = [
- 'pods.rest-v1.endpoints.pods' => Pods::class,
- 'pods.rest-v1.endpoints.pod' => Pod::class,
- 'pods.rest-v1.endpoints.pod-slug' => Pod_Slug::class,
- 'pods.rest-v1.endpoints.fields' => Fields::class,
- 'pods.rest-v1.endpoints.field' => Field::class,
- 'pods.rest-v1.endpoints.field-slug' => Field_Slug::class,
- 'pods.rest-v1.endpoints.groups' => Groups::class,
- 'pods.rest-v1.endpoints.group' => Group::class,
- 'pods.rest-v1.endpoints.group-slug' => Group_Slug::class,
- 'pods.rest-v1.endpoints.documentation' => Swagger_Documentation::class,
+ 'pods.rest-v1.endpoints.pods' => Pods::class,
+ 'pods.rest-v1.endpoints.pod' => Pod::class,
+ 'pods.rest-v1.endpoints.pod-slug' => Pod_Slug::class,
+ 'pods.rest-v1.endpoints.fields' => Fields::class,
+ 'pods.rest-v1.endpoints.field' => Field::class,
+ 'pods.rest-v1.endpoints.field-slug' => Field_Slug::class,
+ 'pods.rest-v1.endpoints.groups' => Groups::class,
+ 'pods.rest-v1.endpoints.group' => Group::class,
+ 'pods.rest-v1.endpoints.group-slug' => Group_Slug::class,
+ 'pods.rest-v1.endpoints.group-duplicate' => Group_Duplicate::class,
+ 'pods.rest-v1.endpoints.documentation' => Swagger_Documentation::class,
];
return (array) apply_filters( 'pods_rest_v1_endpoints', $endpoints );
diff --git a/src/Pods/Whatsit.php b/src/Pods/Whatsit.php
index ff0ae461b9..7ce00f96d7 100644
--- a/src/Pods/Whatsit.php
+++ b/src/Pods/Whatsit.php
@@ -1388,7 +1388,7 @@ public function count_groups( array $args = [] ) {
$has_custom_args = ! empty( $args );
if ( null !== $this->_groups && ! $has_custom_args ) {
- return $this->_groups;
+ return count( $this->_groups );
}
$filtered_args = [
diff --git a/src/Pods/Whatsit/Block_Field.php b/src/Pods/Whatsit/Block_Field.php
index 374cbd32a4..3bea796867 100644
--- a/src/Pods/Whatsit/Block_Field.php
+++ b/src/Pods/Whatsit/Block_Field.php
@@ -307,7 +307,7 @@ public function get_boolean_block_args() {
];
$label = $this->get_arg( 'label' );
- $default = (boolean) $this->get_arg( 'default', 0 );
+ $default = (bool) $this->get_arg( 'default', 0 );
if ( 'radio' === $format_type ) {
return [
diff --git a/src/Pods/Whatsit/Storage.php b/src/Pods/Whatsit/Storage.php
index 36328ac9b6..24945871d0 100644
--- a/src/Pods/Whatsit/Storage.php
+++ b/src/Pods/Whatsit/Storage.php
@@ -486,7 +486,7 @@ public function save_args( Whatsit $object ) {
* @param bool $enabled Whether to enable fallback mode.
*/
public function fallback_mode( $enabled = true ) {
- $this->fallback_mode = (boolean) $enabled;
+ $this->fallback_mode = (bool) $enabled;
}
/**
diff --git a/src/Pods/Whatsit/Storage/Post_Type.php b/src/Pods/Whatsit/Storage/Post_Type.php
index 522e4826ac..1f72273ce6 100644
--- a/src/Pods/Whatsit/Storage/Post_Type.php
+++ b/src/Pods/Whatsit/Storage/Post_Type.php
@@ -194,7 +194,7 @@ public function find( array $args = [] ) {
$fallback_mode = $this->fallback_mode;
if ( isset( $args['fallback_mode'] ) ) {
- $fallback_mode = (boolean) $args['fallback_mode'];
+ $fallback_mode = (bool) $args['fallback_mode'];
}
$meta_query = [];
diff --git a/src/Pods/Whatsit/Store.php b/src/Pods/Whatsit/Store.php
index 400d96c293..fa77d6607f 100644
--- a/src/Pods/Whatsit/Store.php
+++ b/src/Pods/Whatsit/Store.php
@@ -714,7 +714,7 @@ public function get_objects( array $args = [] ) {
// Filter objects by internal.
if ( isset( $args['internal'] ) ) {
- $args['internal'] = (boolean) $args['internal'];
+ $args['internal'] = (bool) $args['internal'];
$objects = array_filter( $objects, static function( $object ) use ( $args ) {
$internal = false;
@@ -725,7 +725,7 @@ public function get_objects( array $args = [] ) {
$internal = $object['internal'];
}
- return $args['internal'] === (boolean) $internal;
+ return $args['internal'] === (bool) $internal;
} );
}
diff --git a/tests/codeception/_data/kitchen-sink-conditional-package.json b/tests/codeception/_data/kitchen-sink-conditional-package.json
index d5791c08b7..7f217d51b0 100644
--- a/tests/codeception/_data/kitchen-sink-conditional-package.json
+++ b/tests/codeception/_data/kitchen-sink-conditional-package.json
@@ -4222,6 +4222,7 @@
"description": "",
"weight": 0,
"type": "pick",
+ "pick_format_single": "list",
"required": "0",
"pick_object": "user",
"repeatable": "0",
diff --git a/tests/codeception/wpunit/Pods/Data/Conditional_LogicTest.php b/tests/codeception/wpunit/Pods/Data/Conditional_LogicTest.php
index b2121477fd..2bb9fdc5c4 100644
--- a/tests/codeception/wpunit/Pods/Data/Conditional_LogicTest.php
+++ b/tests/codeception/wpunit/Pods/Data/Conditional_LogicTest.php
@@ -12,14 +12,14 @@
*/
class Conditional_LogicTest extends WPTestCase {
- public function test_constructor_with_empty_action_and_logic() : void {
+ public function test_constructor_with_empty_action_and_logic(): void {
$sut = $this->sut( '', '', [] );
$this->assertEquals( 'show', $sut->get_action() );
$this->assertEquals( 'any', $sut->get_logic() );
}
- public function test_get_and_set_action() : void {
+ public function test_get_and_set_action(): void {
$sut = $this->sut( 'show', 'any', [] );
$this->assertEquals( 'show', $sut->get_action() );
@@ -29,7 +29,7 @@ public function test_get_and_set_action() : void {
$this->assertEquals( 'something-else', $sut->get_action() );
}
- public function test_get_and_set_logic() : void {
+ public function test_get_and_set_logic(): void {
$sut = $this->sut( 'show', 'any', [] );
$this->assertEquals( 'any', $sut->get_logic() );
@@ -39,7 +39,7 @@ public function test_get_and_set_logic() : void {
$this->assertEquals( 'something-else', $sut->get_logic() );
}
- public function test_get_and_set_rules() : void {
+ public function test_get_and_set_rules(): void {
$sut = $this->sut( 'show', 'any', [] );
$this->assertEquals( [], $sut->get_rules() );
@@ -61,7 +61,7 @@ public function test_get_and_set_rules() : void {
], $sut->get_rules() );
}
- public function test_to_array() : void {
+ public function test_to_array(): void {
$sut = $this->sut( 'show', 'any', [
[
'field' => 'field_one',
@@ -83,19 +83,19 @@ public function test_to_array() : void {
], $sut->to_array() );
}
- public function test_is_visible_with_show_action_and_empty_rules() : void {
+ public function test_is_visible_with_show_action_and_empty_rules(): void {
$sut = $this->sut( 'show', 'any', [] );
$this->assertTrue( $sut->is_visible( [] ) );
}
- public function test_is_visible_with_hide_action_and_empty_rules() : void {
+ public function test_is_visible_with_hide_action_and_empty_rules(): void {
$sut = $this->sut( 'hide', 'any', [] );
$this->assertFalse( $sut->is_visible( [] ) );
}
- public function test_is_visible_with_show_action() : void {
+ public function test_is_visible_with_show_action(): void {
$sut = $this->sut( 'show', 'any', [
[
'field' => 'field_one',
@@ -112,7 +112,7 @@ public function test_is_visible_with_show_action() : void {
] ) );
}
- public function test_is_visible_with_hide_action() : void {
+ public function test_is_visible_with_hide_action(): void {
$sut = $this->sut( 'hide', 'any', [
[
'field' => 'field_one',
@@ -129,7 +129,7 @@ public function test_is_visible_with_hide_action() : void {
] ) );
}
- public function test_validate_rules_with_any_logic() : void {
+ public function test_validate_rules_with_any_logic(): void {
$sut = $this->sut( 'show', 'any', [
[
'field' => 'field_one',
@@ -164,7 +164,7 @@ public function test_validate_rules_with_any_logic() : void {
] ) );
}
- public function test_validate_rules_with_all_logic() : void {
+ public function test_validate_rules_with_all_logic(): void {
$sut = $this->sut( 'show', 'all', [
[
'field' => 'field_one',
@@ -201,7 +201,7 @@ public function provider_validate_rule_comparison_provider() {
yield 'validate rule with LIKE' => [
[
'compare' => 'LIKE',
- 'value' => 'word',
+ 'rule_value' => 'word',
'value_assertions' => [
'pass' => [
'word',
@@ -224,7 +224,7 @@ public function provider_validate_rule_comparison_provider() {
yield 'validate rule with NOT LIKE' => [
[
'compare' => 'NOT LIKE',
- 'value' => 'word',
+ 'rule_value' => 'word',
'value_assertions' => [
'pass' => [
'wor d',
@@ -247,7 +247,7 @@ public function provider_validate_rule_comparison_provider() {
yield 'validate rule with BEGINS' => [
[
'compare' => 'BEGINS',
- 'value' => 'word',
+ 'rule_value' => 'word',
'value_assertions' => [
'pass' => [
'word',
@@ -270,7 +270,7 @@ public function provider_validate_rule_comparison_provider() {
yield 'validate rule with NOT BEGINS' => [
[
'compare' => 'NOT BEGINS',
- 'value' => 'word',
+ 'rule_value' => 'word',
'value_assertions' => [
'pass' => [
'1word',
@@ -293,7 +293,7 @@ public function provider_validate_rule_comparison_provider() {
yield 'validate rule with ENDS' => [
[
'compare' => 'ENDS',
- 'value' => 'word',
+ 'rule_value' => 'word',
'value_assertions' => [
'pass' => [
'1word',
@@ -316,7 +316,7 @@ public function provider_validate_rule_comparison_provider() {
yield 'validate rule with NOT ENDS' => [
[
'compare' => 'NOT ENDS',
- 'value' => 'word',
+ 'rule_value' => 'word',
'value_assertions' => [
'pass' => [
'sentence with word in it',
@@ -339,7 +339,7 @@ public function provider_validate_rule_comparison_provider() {
yield 'validate rule with MATCHES' => [
[
'compare' => 'MATCHES',
- 'value' => '^[a-z]+$',
+ 'rule_value' => '^[a-z]+$',
'value_assertions' => [
'pass' => [
'onlyletters',
@@ -356,7 +356,7 @@ public function provider_validate_rule_comparison_provider() {
yield 'validate rule with NOT MATCHES' => [
[
'compare' => 'NOT MATCHES',
- 'value' => '^[a-z]+$',
+ 'rule_value' => '^[a-z]+$',
'value_assertions' => [
'pass' => [
'letters with spaces',
@@ -373,7 +373,7 @@ public function provider_validate_rule_comparison_provider() {
yield 'validate rule with IN' => [
[
'compare' => 'IN',
- 'value' => [
+ 'rule_value' => [
'123456',
'7890',
],
@@ -398,7 +398,7 @@ public function provider_validate_rule_comparison_provider() {
yield 'validate rule with NOT IN' => [
[
'compare' => 'NOT IN',
- 'value' => [
+ 'rule_value' => [
'123456',
'7890',
],
@@ -423,7 +423,7 @@ public function provider_validate_rule_comparison_provider() {
yield 'validate rule with EMPTY' => [
[
'compare' => 'EMPTY',
- 'value' => '',
+ 'rule_value' => '',
'value_assertions' => [
'pass' => [
'',
@@ -448,7 +448,7 @@ public function provider_validate_rule_comparison_provider() {
yield 'validate rule with NOT EMPTY' => [
[
'compare' => 'NOT EMPTY',
- 'value' => '',
+ 'rule_value' => '',
'value_assertions' => [
'pass' => [
'some value',
@@ -473,7 +473,7 @@ public function provider_validate_rule_comparison_provider() {
yield 'validate rule with =' => [
[
'compare' => '=',
- 'value' => '123456',
+ 'rule_value' => '123456',
'value_assertions' => [
'pass' => [
123456,
@@ -493,7 +493,7 @@ public function provider_validate_rule_comparison_provider() {
yield 'validate rule with !=' => [
[
'compare' => '!=',
- 'value' => '123456',
+ 'rule_value' => '123456',
'value_assertions' => [
'pass' => [
1234,
@@ -512,89 +512,89 @@ public function provider_validate_rule_comparison_provider() {
yield 'validate rule with <' => [
[
- 'compare' => '<',
- 'value' => '123456',
'value_assertions' => [
'pass' => [
- 123457,
- '123457',
+ 123455,
+ '123455',
+ 1234,
+ '1234',
],
'fail' => [
- 123455,
+ 123457,
123456,
- 1234,
[
- 123457,
+ 123455,
],
],
],
+ 'compare' => '<',
+ 'rule_value' => '123456',
],
];
yield 'validate rule with <=' => [
[
- 'compare' => '<=',
- 'value' => '123456',
'value_assertions' => [
'pass' => [
- 123457,
- '123457',
+ 123455,
+ '123455',
123456,
'123456',
+ 1234,
+ '1234',
],
'fail' => [
- 123455,
- 1234,
+ 123457,
[
- 123457,
+ 123455,
],
],
],
+ 'compare' => '<=',
+ 'rule_value' => '123456',
],
];
yield 'validate rule with >' => [
[
- 'compare' => '>',
- 'value' => '123456',
'value_assertions' => [
'pass' => [
- 123455,
- '123455',
- 1234,
- '1234',
+ 123457,
+ '123457',
],
'fail' => [
- 123457,
+ 123455,
123456,
+ 1234,
[
- 123455,
+ 123457,
],
],
],
+ 'compare' => '>',
+ 'rule_value' => '123456',
],
];
yield 'validate rule with >=' => [
[
- 'compare' => '>=',
- 'value' => '123456',
'value_assertions' => [
'pass' => [
- 123455,
- '123455',
+ 123457,
+ '123457',
123456,
'123456',
- 1234,
- '1234',
],
'fail' => [
- 123457,
+ 123455,
+ 1234,
[
- 123455,
+ 123457,
],
],
],
+ 'compare' => '>=',
+ 'rule_value' => '123456',
],
];
}
@@ -602,41 +602,423 @@ public function provider_validate_rule_comparison_provider() {
/**
* @dataProvider provider_validate_rule_comparison_provider
*/
- public function test_validate_rule( array $test ) : void {
+ public function test_validate_rule( array $test ): void {
$sut = $this->sut( 'show', 'any', [] );
$rule_with_readable_compare = [
- 'field' => 'field_one',
- 'compare' => $test['compare'],
- 'value' => $test['value'],
+ 'field' => 'field_one',
+ 'compare' => $test['compare'],
+ 'rule_value' => $test['rule_value'],
];
$rule_with_basic_compare = [
- 'field' => 'field_one',
- 'compare' => str_replace( ' ', '-', strtolower( $test['compare'] ) ),
- 'value' => $test['value'],
+ 'field' => 'field_one',
+ 'compare' => str_replace( ' ', '-', strtolower( $test['compare'] ) ),
+ 'rule_value' => $test['rule_value'],
];
- foreach ( $test['value_assertions']['pass'] as $pass_value ) {
+ foreach ( $test['value_assertions']['pass'] as $value_to_test ) {
$values = [
- 'field_one' => $pass_value,
+ 'field_one' => $value_to_test,
+ ];
+
+ $debug = [
+ 'value_to_test' => $value_to_test,
+ 'compare' => $test['compare'],
+ 'rule_value' => $test['rule_value'],
];
- $this->assertTrue( $sut->validate_rule( $rule_with_readable_compare, $values ), 'Debug: ' . var_export( $values, true ) );
- $this->assertTrue( $sut->validate_rule( $rule_with_basic_compare, $values ), 'Debug: ' . var_export( $values, true ) );
+ $this->assertTrue( $sut->validate_rule( $rule_with_readable_compare, $values ), 'Debug: ' . var_export( $debug, true ) );
+ $this->assertTrue( $sut->validate_rule( $rule_with_basic_compare, $values ), 'Debug: ' . var_export( $debug, true ) );
}
- foreach ( $test['value_assertions']['fail'] as $fail_value ) {
+ foreach ( $test['value_assertions']['fail'] as $value_to_test ) {
$values = [
- 'field_one' => $fail_value,
+ 'field_one' => $value_to_test,
];
- $this->assertFalse( $sut->validate_rule( $rule_with_readable_compare, $values ), 'Debug: ' . var_export( $values, true ) );
- $this->assertFalse( $sut->validate_rule( $rule_with_basic_compare, $values ), 'Debug: ' . var_export( $values, true ) );
+ $debug = [
+ 'value_to_test' => $value_to_test,
+ 'compare' => $test['compare'],
+ 'rule_value' => $test['rule_value'],
+ ];
+
+ $this->assertFalse( $sut->validate_rule( $rule_with_readable_compare, $values ), 'Debug: ' . var_export( $debug, true ) );
+ $this->assertFalse( $sut->validate_rule( $rule_with_basic_compare, $values ), 'Debug: ' . var_export( $debug, true ) );
}
}
- private function sut( string $action, string $logic, array $rules ) : Conditional_Logic {
+ /**
+ * Direct unit tests for helper comparison methods
+ */
+
+ /**
+ * Test loose_string_equality_check method
+ */
+ public function test_loose_string_equality_check_identical_strings(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->loose_string_equality_check( 'test', 'test' ) );
+ }
+
+ public function test_loose_string_equality_check_case_insensitive(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->loose_string_equality_check( 'Test', 'test' ) );
+ $this->assertTrue( $sut->loose_string_equality_check( 'TEST', 'test' ) );
+ $this->assertTrue( $sut->loose_string_equality_check( 'abc', 'ABC' ) );
+ }
+
+ public function test_loose_string_equality_check_string_number_coercion(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->loose_string_equality_check( '123', 123 ) );
+ $this->assertTrue( $sut->loose_string_equality_check( 123, '123' ) );
+ $this->assertTrue( $sut->loose_string_equality_check( '456', 456 ) );
+ }
+
+ public function test_loose_string_equality_check_boolean_number_coercion(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->loose_string_equality_check( true, 1 ) );
+ $this->assertTrue( $sut->loose_string_equality_check( 1, true ) );
+ $this->assertTrue( $sut->loose_string_equality_check( false, 0 ) );
+ $this->assertTrue( $sut->loose_string_equality_check( 0, false ) );
+ }
+
+ public function test_loose_string_equality_check_boolean_string_coercion(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->loose_string_equality_check( true, '1' ) );
+ $this->assertTrue( $sut->loose_string_equality_check( '1', true ) );
+ $this->assertTrue( $sut->loose_string_equality_check( false, '0' ) );
+ $this->assertTrue( $sut->loose_string_equality_check( '0', false ) );
+ }
+
+ public function test_loose_string_equality_check_arrays(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->loose_string_equality_check( [ 1, 2 ], [ 1, 2 ] ) );
+ $this->assertFalse( $sut->loose_string_equality_check( [ 1, 2 ], [ 2, 1 ] ) );
+ $this->assertTrue( $sut->loose_string_equality_check( [ 'a' => 1 ], [ 'a' => 1 ] ) );
+ }
+
+ public function test_loose_string_equality_check_not_matching(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertFalse( $sut->loose_string_equality_check( 'abc', 'def' ) );
+ $this->assertFalse( $sut->loose_string_equality_check( 123, 456 ) );
+ $this->assertFalse( $sut->loose_string_equality_check( true, false ) );
+ }
+
+ /**
+ * Test convert_string_to_array method
+ */
+ public function test_convert_string_to_array_comma_separated(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertEquals( [ '123', '456', '789' ], $sut->convert_string_to_array( '123,456,789' ) );
+ }
+
+ public function test_convert_string_to_array_with_whitespace(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertEquals( [ '123', '456', '789' ], $sut->convert_string_to_array( '123, 456, 789' ) );
+ $this->assertEquals( [ '123', '456', '789' ], $sut->convert_string_to_array( ' 123 , 456 , 789 ' ) );
+ }
+
+ public function test_convert_string_to_array_already_array(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertEquals( [ '123', '456' ], $sut->convert_string_to_array( [ '123', '456' ] ) );
+ }
+
+ public function test_convert_string_to_array_non_string(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertEquals( [ 123 ], $sut->convert_string_to_array( 123 ) );
+ $this->assertEquals( [], $sut->convert_string_to_array( null ) );
+ }
+
+ /**
+ * Test is_value_empty method
+ */
+ public function test_is_value_empty_returns_true(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->is_value_empty( '' ) );
+ $this->assertTrue( $sut->is_value_empty( null ) );
+ $this->assertTrue( $sut->is_value_empty( [] ) );
+ $this->assertTrue( $sut->is_value_empty( false ) );
+ }
+
+ public function test_is_value_empty_returns_false(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertFalse( $sut->is_value_empty( 'value' ) );
+ $this->assertFalse( $sut->is_value_empty( 'null' ) );
+ $this->assertFalse( $sut->is_value_empty( '0' ) );
+ $this->assertFalse( $sut->is_value_empty( 0 ) );
+ $this->assertFalse( $sut->is_value_empty( 1 ) );
+ $this->assertFalse( $sut->is_value_empty( true ) );
+ $this->assertFalse( $sut->is_value_empty( [ 'item' ] ) );
+ }
+
+ /**
+ * Test string_comparison method
+ */
+ public function test_string_comparison_contains(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->string_comparison( 'contains', 'word', 'sentence with word in it' ) );
+ $this->assertTrue( $sut->string_comparison( 'contains', 'test', 'this is a test' ) );
+ $this->assertTrue( $sut->string_comparison( 'contains', 'WORD', 'word' ) ); // Case insensitive
+ $this->assertFalse( $sut->string_comparison( 'contains', 'word', 'no match' ) );
+ $this->assertTrue( $sut->string_comparison( 'contains', '', 'anything' ) ); // Empty search
+ }
+
+ public function test_string_comparison_starts_with(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->string_comparison( 'starts_with', 'word', 'word starts' ) );
+ $this->assertTrue( $sut->string_comparison( 'starts_with', 'test', 'testing' ) );
+ $this->assertTrue( $sut->string_comparison( 'starts_with', 'WORD', 'word' ) ); // Case insensitive
+ $this->assertFalse( $sut->string_comparison( 'starts_with', 'word', 'no word here' ) );
+ $this->assertTrue( $sut->string_comparison( 'starts_with', '', 'anything' ) ); // Empty search
+ }
+
+ public function test_string_comparison_ends_with(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->string_comparison( 'ends_with', 'word', 'ends with word' ) );
+ $this->assertTrue( $sut->string_comparison( 'ends_with', 'test', 'a test' ) );
+ $this->assertTrue( $sut->string_comparison( 'ends_with', 'WORD', 'word' ) ); // Case insensitive
+ $this->assertFalse( $sut->string_comparison( 'ends_with', 'word', 'word at start' ) );
+ $this->assertTrue( $sut->string_comparison( 'ends_with', '', 'anything' ) ); // Empty search
+ }
+
+ public function test_string_comparison_non_scalar(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->string_comparison( 'contains', 'word', [ 'word' ] ) );
+ $this->assertTrue( $sut->string_comparison( 'contains', [ 'word' ], 'word' ) );
+
+ $this->assertFalse( $sut->string_comparison( 'contains', 'word', (object) [ 'property' => 'word' ] ) );
+ $this->assertFalse( $sut->string_comparison( 'contains', (object) [ 'property' => 'word' ], 'word' ) );
+ }
+
+ /**
+ * Test regex_match method
+ */
+ public function test_regex_match_pattern(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->regex_match( '^[a-z]+$', 'onlyletters' ) );
+ $this->assertTrue( $sut->regex_match( '^\d+$', '12345' ) );
+ $this->assertFalse( $sut->regex_match( '^[a-z]+$', 'Has123' ) );
+ $this->assertFalse( $sut->regex_match( '^\d+$', 'abc' ) );
+ }
+
+ public function test_regex_match_partial(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->regex_match( 'test', 'this is a test' ) );
+ $this->assertFalse( $sut->regex_match( 'test', 'no match' ) );
+ }
+
+ public function test_regex_match_array(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ // ANY match in array
+ $this->assertTrue( $sut->regex_match( '^[a-z]+$', [ 'abc', '123' ] ) );
+ $this->assertFalse( $sut->regex_match( '^[a-z]+$', [ '123', '456' ] ) );
+ }
+
+ /**
+ * Test in_comparison method
+ */
+ public function test_in_comparison_any_match(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->in_comparison( [ '123', '456' ], '123', false ) );
+ $this->assertTrue( $sut->in_comparison( [ '123', '456' ], '456', false ) );
+ $this->assertFalse( $sut->in_comparison( [ '123', '456' ], '789', false ) );
+ }
+
+ public function test_in_comparison_loose_equality(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->in_comparison( [ '123', '456' ], 123, false ) );
+ $this->assertTrue( $sut->in_comparison( [ 123, 456 ], '123', false ) );
+ }
+
+ public function test_in_comparison_string_to_array(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->in_comparison( '123,456', [ '123', '999' ], false ) );
+ $this->assertFalse( $sut->in_comparison( '123,456', [ '999', '000' ], false ) );
+ }
+
+ public function test_in_comparison_all_match(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->in_comparison( [ '123' ], '123', true ) );
+ $this->assertTrue( $sut->in_comparison( [ '123', '123' ], '123', true ) );
+ $this->assertFalse( $sut->in_comparison( [ '123', '456' ], '123', true ) );
+ }
+
+ public function test_in_comparison_all_with_string_to_array(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->in_comparison( '123,456', [ '123', '456' ], true ) );
+ $this->assertTrue( $sut->in_comparison( '123,456', [ '123', '456', '789' ], true ) );
+ $this->assertFalse( $sut->in_comparison( '123,456,789', [ '123', '456' ], true ) );
+ }
+
+ /**
+ * Test in_values_comparison method
+ */
+ public function test_in_values_comparison_any_match(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->in_values_comparison( '123', [ '123', '456' ], false ) );
+ $this->assertTrue( $sut->in_values_comparison( '456', [ '123', '456' ], false ) );
+ $this->assertFalse( $sut->in_values_comparison( '789', [ '123', '456' ], false ) );
+ }
+
+ public function test_in_values_comparison_loose_equality(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->in_values_comparison( 123, [ '123', '456' ], false ) );
+ $this->assertTrue( $sut->in_values_comparison( '123', [ 123, 456 ], false ) );
+ }
+
+ public function test_in_values_comparison_empty_array(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertFalse( $sut->in_values_comparison( '123', [], false ) );
+ }
+
+ public function test_in_values_comparison_non_array(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertFalse( $sut->in_values_comparison( '123', '123', false ) );
+ $this->assertFalse( $sut->in_values_comparison( '123', 123, false ) );
+ }
+
+ public function test_in_values_comparison_all_match(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->in_values_comparison( '123', [ '123' ], true ) );
+ $this->assertTrue( $sut->in_values_comparison( '123', [ '123', '123' ], true ) );
+ $this->assertFalse( $sut->in_values_comparison( '123', [ '123', '456' ], true ) );
+ }
+
+ public function test_in_values_comparison_all_empty_array(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ // Empty array with "all" returns true (vacuous truth)
+ $this->assertTrue( $sut->in_values_comparison( '123', [], true ) );
+ }
+
+ /**
+ * Test equality_comparison method
+ */
+ public function test_equality_comparison_identical(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->equality_comparison( '123', '123' ) );
+ $this->assertTrue( $sut->equality_comparison( 123, 123 ) );
+ }
+
+ public function test_equality_comparison_type_coercion(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->equality_comparison( '123', 123 ) );
+ $this->assertTrue( $sut->equality_comparison( 123, '123' ) );
+ }
+
+ public function test_equality_comparison_boolean_number(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->equality_comparison( true, 1 ) );
+ $this->assertTrue( $sut->equality_comparison( 1, true ) );
+ $this->assertTrue( $sut->equality_comparison( false, 0 ) );
+ $this->assertTrue( $sut->equality_comparison( 0, false ) );
+ }
+
+ public function test_equality_comparison_boolean_string(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->equality_comparison( true, '1' ) );
+ $this->assertTrue( $sut->equality_comparison( '1', true ) );
+ $this->assertTrue( $sut->equality_comparison( false, '0' ) );
+ $this->assertTrue( $sut->equality_comparison( '0', false ) );
+ }
+
+ public function test_equality_comparison_not_matching(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertFalse( $sut->equality_comparison( '123', '456' ) );
+ $this->assertFalse( $sut->equality_comparison( 123, 456 ) );
+ $this->assertFalse( $sut->equality_comparison( true, false ) );
+ }
+
+ public function test_equality_comparison_non_scalar(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertFalse( $sut->equality_comparison( '123', [ '123' ] ) );
+ }
+
+ /**
+ * Test numeric_comparison method
+ */
+ public function test_numeric_comparison_less_than(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertFalse( $sut->numeric_comparison( '100', '<', 99 ) );
+ $this->assertFalse( $sut->numeric_comparison( '100', '<', '99' ) );
+ $this->assertFalse( $sut->numeric_comparison( '100', '<', 100 ) );
+ $this->assertTrue( $sut->numeric_comparison( '100', '<', 101 ) );
+ }
+
+ public function test_numeric_comparison_less_than_or_equal(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertFalse( $sut->numeric_comparison( '100', '<=', 99 ) );
+ $this->assertFalse( $sut->numeric_comparison( '100', '<=', '99' ) );
+ $this->assertTrue( $sut->numeric_comparison( '100', '<=', 100 ) );
+ $this->assertTrue( $sut->numeric_comparison( '100', '<=', 101 ) );
+ }
+
+ public function test_numeric_comparison_greater_than(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->numeric_comparison( '100', '>', 99 ) );
+ $this->assertTrue( $sut->numeric_comparison( '100', '>', '99' ) );
+ $this->assertFalse( $sut->numeric_comparison( '100', '>', 100 ) );
+ $this->assertFalse( $sut->numeric_comparison( '100', '>', 101 ) );
+ }
+
+ public function test_numeric_comparison_greater_than_or_equal(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertTrue( $sut->numeric_comparison( '100', '>=', 99 ) );
+ $this->assertTrue( $sut->numeric_comparison( '100', '>=', '99' ) );
+ $this->assertTrue( $sut->numeric_comparison( '100', '>=', 100 ) );
+ $this->assertFalse( $sut->numeric_comparison( '100', '>=', 101 ) );
+ }
+
+ public function test_numeric_comparison_non_scalar(): void {
+ $sut = $this->sut( 'show', 'any', [] );
+
+ $this->assertFalse( $sut->numeric_comparison( '100', '<', [ 99 ] ) );
+ $this->assertFalse( $sut->numeric_comparison( '100', '>', [ 101 ] ) );
+ $this->assertFalse( $sut->numeric_comparison( [ '100' ], '<', 99 ) );
+ $this->assertFalse( $sut->numeric_comparison( [ '100' ], '>', 101 ) );
+ }
+
+ private function sut( string $action, string $logic, array $rules ): Conditional_Logic {
return new Conditional_Logic( $action, $logic, $rules );
}
diff --git a/ui/admin/settings-settings.php b/ui/admin/settings-settings.php
index ed08f949c1..c84e7f35e7 100644
--- a/ui/admin/settings-settings.php
+++ b/ui/admin/settings-settings.php
@@ -45,13 +45,30 @@
// Handle clearing cache.
$api = pods_api();
- $api->cache_flush_pods();
+ $flush_objects = (int) pods_v( 'pods_cache_flush_objects', 'post' );
+ $delete_transients = (int) pods_v( 'pods_cache_delete_transients', 'post' );
+
+ $api->cache_flush_pods(
+ null,
+ true,
+ true,
+ false,
+ 1 === $flush_objects,
+ 1 === $delete_transients
+ );
if ( defined( 'PODS_PRELOAD_CONFIG_AFTER_FLUSH' ) && PODS_PRELOAD_CONFIG_AFTER_FLUSH ) {
$api->load_pods( [ 'bypass_cache' => true ] );
}
- pods_redirect( pods_query_arg( [ 'pods_cache_flushed' => 1 ], [ 'page', 'tab' ] ) );
+ pods_redirect( pods_query_arg( [
+ 'pods_cache_flushed' => 1,
+ 'pods_cache_flush_objects' => $flush_objects,
+ 'pods_cache_delete_transients' => $delete_transients,
+ ], [
+ 'page',
+ 'tab',
+ ] ) );
} else {
// Handle saving settings.
$action = __( 'saved', 'pods' );
@@ -124,8 +141,17 @@
-
+
+
+
+
+
diff --git a/ui/forms/form.php b/ui/forms/form.php
index 7c66c55260..3cd5192c1b 100644
--- a/ui/forms/form.php
+++ b/ui/forms/form.php
@@ -31,7 +31,7 @@
if ( ! isset( $duplicate ) || $is_settings_pod ) {
$duplicate = false;
} else {
- $duplicate = (boolean) $duplicate;
+ $duplicate = (bool) $duplicate;
}
$groups = PodsInit::$meta->groups_get( $pod->pod_data['type'], $pod->pod_data['name'], $fields );
diff --git a/ui/js/blocks/pods-blocks-api.min.asset.json b/ui/js/blocks/pods-blocks-api.min.asset.json
index 75cd1b8b7b..434ff0e59a 100644
--- a/ui/js/blocks/pods-blocks-api.min.asset.json
+++ b/ui/js/blocks/pods-blocks-api.min.asset.json
@@ -1 +1 @@
-{"dependencies":["lodash","react","react-dom","wp-api-fetch","wp-autop","wp-block-editor","wp-blocks","wp-components","wp-compose","wp-date","wp-element","wp-i18n","wp-keycodes","wp-server-side-render","wp-url"],"version":"a2200fa513f5de179d18"}
\ No newline at end of file
+{"dependencies":["lodash","react","react-dom","wp-api-fetch","wp-autop","wp-block-editor","wp-blocks","wp-components","wp-compose","wp-date","wp-element","wp-i18n","wp-keycodes","wp-server-side-render","wp-url"],"version":"dfc7dcd94d0409c1fde6"}
\ No newline at end of file
diff --git a/ui/js/blocks/pods-blocks-api.min.js b/ui/js/blocks/pods-blocks-api.min.js
index 2a66ac6c63..f3526fab2e 100644
--- a/ui/js/blocks/pods-blocks-api.min.js
+++ b/ui/js/blocks/pods-blocks-api.min.js
@@ -1 +1 @@
-(()=>{var e={2757(e,t,n){"use strict";const r=window.wp.blocks;const i=function(e){var t=e.namespace,n=e.title,i=e.icon;(0,r.registerBlockCollection)(t,{title:n,icon:i})};function o(e){return o="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},o(e)}function s(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}function a(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=n(6614);l.domToReact,l.htmlToDOM,l.attributesToProps,l.Element;const c=l;function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?G(j,--L):0,Z--,10===J&&(Z=1,H--),J}function q(){return J=L2||ne(J)>3?"":" "}function ae(e,t){for(;--t&&q()&&!(J<48||J>102||J>57&&J<65||J>70&&J<97););return te(e,ee()+(t<6&&32==$()&&32==q()))}function le(e){for(;q();)switch(J){case e:return L;case 34:case 39:34!==e&&39!==e&&le(J);break;case 40:41===e&&le(e);break;case 92:q()}return L}function ce(e,t){for(;q()&&e+J!==57&&(e+J!==84||47!==$()););return"/*"+te(t,L-1)+"*"+M(47===e?e:q())}function ue(e){for(;!ne($());)q();return te(e,L)}var Ae="-ms-",he="-moz-",de="-webkit-",pe="comm",fe="rule",me="decl",ge="@keyframes";function be(e,t){for(var n="",r=Y(e),i=0;i0&&K(I)-A&&P(d>32?xe(I+";",r,n,A-1):xe(V(I," ","")+";",r,n,A-2),l);break;case 59:I+=";";default:if(P(w=we(I,t,n,c,u,i,a,y,v=[],C=[],A),o),123===b)if(0===u)Ce(I,t,w,w,v,o,A,a,C);else switch(99===h&&110===G(I,3)?100:h){case 100:case 108:case 109:case 115:Ce(e,w,w,r&&P(we(e,w,w,0,0,i,a,y,i,v=[],A),C),i,C,A,a,r?v:C);break;default:Ce(I,w,w,w,[""],C,0,a,C)}}c=u=d=0,f=g=1,y=I="",A=s;break;case 58:A=1+K(I),d=p;default:if(f<1)if(123==b)--f;else if(125==b&&0==f++&&125==z())continue;switch(I+=M(b),b*f){case 38:g=u>0?1:(I+="\f",-1);break;case 44:a[c++]=(K(I)-1)*g,g=1;break;case 64:45===$()&&(I+=oe(q())),h=$(),u=A=K(y=I+=ue(ee())),b++;break;case 45:45===p&&2==K(I)&&(f=0)}}return o}function we(e,t,n,r,i,o,s,a,l,c,u){for(var A=i-1,h=0===i?o:[""],d=Y(h),p=0,f=0,m=0;p0?h[g]+" "+b:V(b,/&\f/g,h[g])))&&(l[m++]=y);return _(e,t,n,0===i?fe:a,l,c,u)}function Ie(e,t,n){return _(e,t,n,pe,M(J),W(e,2,-2),0)}function xe(e,t,n,r){return _(e,t,n,me,W(e,0,r),W(e,r+1,-1),r)}var Se=function(e,t,n){for(var r=0,i=0;r=i,i=$(),38===r&&12===i&&(t[n]=1),!ne(i);)q();return te(e,L)},Be=function(e,t){return ie(function(e,t){var n=-1,r=44;do{switch(ne(r)){case 0:38===r&&12===$()&&(t[n]=1),e[n]+=Se(L-1,t,n);break;case 2:e[n]+=oe(r);break;case 4:if(44===r){e[++n]=58===$()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=M(r)}}while(r=q());return e}(re(e),t))},Ee=new WeakMap,ke=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Ee.get(n))&&!r){Ee.set(e,!0);for(var i=[],o=Be(t,i),s=n.props,a=0,l=0;a6)switch(G(e,t+1)){case 109:if(45!==G(e,t+4))break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+de+"$2-$3$1"+he+(108==G(e,t+3)?"$3":"$2-$3"))+e;case 115:return~T(e,"stretch")?Oe(V(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==G(e,t+1))break;case 6444:switch(G(e,K(e)-3-(~T(e,"!important")&&10))){case 107:return V(e,":",":"+de)+e;case 101:return V(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+de+(45===G(e,14)?"inline-":"")+"box$3$1"+de+"$2$3$1"+Ae+"$2box$3")+e}break;case 5936:switch(G(e,t+11)){case 114:return de+e+Ae+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return de+e+Ae+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return de+e+Ae+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return de+e+Ae+e+e}return e}var Ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case me:e.return=Oe(e.value,e.length);break;case ge:return be([X(e,{value:V(e.value,"@","@"+de)})],r);case fe:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return be([X(e,{props:[V(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return be([X(e,{props:[V(t,/:(plac\w+)/,":"+de+"input-$1")]}),X(e,{props:[V(t,/:(plac\w+)/,":-moz-$1")]}),X(e,{props:[V(t,/:(plac\w+)/,Ae+"input-$1")]})],r)}return""})}}],Fe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,i,o=e.stylisPlugins||Ne,s={},a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:He}}var Le=!!d.useInsertionEffect&&d.useInsertionEffect,Je=Le||function(e){return e()},je=(Le||d.useLayoutEffect,d.createContext("undefined"!=typeof HTMLElement?Fe({key:"css"}):null)),_e=(je.Provider,function(e){return(0,d.forwardRef)(function(t,n){var r=(0,d.useContext)(je);return e(t,r,n)})}),Xe=d.createContext({});var ze,qe,$e={}.hasOwnProperty,et="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",tt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Me(t,n,r),Je(function(){return function(e,t,n){Me(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(t,n,r)}),null},nt=_e(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[et],o=[r],s="";"string"==typeof e.className?s=function(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}(t.registered,o,e.className):null!=e.className&&(s=e.className+" ");var a=Ue(o,void 0,d.useContext(Xe));s+=t.key+"-"+a.name;var l={};for(var c in e)$e.call(e,c)&&"css"!==c&&c!==et&&(l[c]=e[c]);return l.className=s,n&&(l.ref=n),d.createElement(d.Fragment,null,d.createElement(tt,{cache:t,serialized:a,isStringTag:"string"==typeof i}),d.createElement(i,l))}),rt=nt,it=(n(4146),function(e,t){var n=arguments;if(null==t||!$e.call(t,"css"))return d.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=rt,i[1]=function(e,t){var n={};for(var r in t)$e.call(t,r)&&(n[r]=t[r]);return n[et]=e,n}(e,t);for(var o=2;o({x:e,y:e});function ht(){return"undefined"!=typeof window}function dt(e){return mt(e)?(e.nodeName||"").toLowerCase():"#document"}function pt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ft(e){var t;return null==(t=(mt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function mt(e){return!!ht()&&(e instanceof Node||e instanceof pt(e).Node)}function gt(e){return!!ht()&&(e instanceof Element||e instanceof pt(e).Element)}function bt(e){return!!ht()&&(e instanceof HTMLElement||e instanceof pt(e).HTMLElement)}function yt(e){return!(!ht()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof pt(e).ShadowRoot)}function vt(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=xt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}let Ct;function wt(){return null==Ct&&(Ct="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ct}function It(e){return/^(html|body|#document)$/.test(dt(e))}function xt(e){return pt(e).getComputedStyle(e)}function St(e){if("html"===dt(e))return e;const t=e.assignedSlot||e.parentNode||yt(e)&&e.host||ft(e);return yt(t)?t.host:t}function Bt(e){const t=St(e);return It(t)?(e.ownerDocument||e).body:bt(t)&&vt(t)?t:Bt(t)}function Et(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Bt(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),s=pt(i);if(o){const e=kt(s);return t.concat(s,s.visualViewport||[],vt(i)?i:[],e&&n?Et(e):[])}return t.concat(i,Et(i,[],n))}function kt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dt(e){const t=xt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=bt(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=ct(n)!==o||ct(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Ot(e){return gt(e)?e:e.contextElement}function Nt(e){const t=Ot(e);if(!bt(t))return At(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Dt(t);let s=(o?ct(n.width):n.width)/r,a=(o?ct(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Ft=At(0);function Mt(e){const t=pt(e);return wt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ft}function Rt(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=Ot(e);let s=At(1);t&&(r?gt(r)&&(s=Nt(r)):s=Nt(e));const a=function(e,t,n){return void 0===t&&(t=!1),!!n&&t&&n===pt(e)}(o,n,r)?Mt(o):At(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,A=i.height/s.y;if(o&&r){const e=pt(o),t=gt(r)?pt(r):r;let n=e,i=kt(n);for(;i&&t!==n;){const e=Nt(i),t=i.getBoundingClientRect(),r=xt(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,A*=e.y,l+=o,c+=s,n=pt(i),i=kt(n)}}return function(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}({width:u,height:A,x:l,y:c})}function Qt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Vt(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Ot(e),u=i||o?[...c?Et(c):[],...t?Et(t):[]]:[];u.forEach(e=>{i&&e.addEventListener("scroll",n),o&&e.addEventListener("resize",n)});const A=c&&a?function(e,t,n){let r,i=null;const o=ft(e);function s(){var e;clearTimeout(r),null==(e=i)||e.disconnect(),i=null}function a(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),s();const c=e.getBoundingClientRect(),{left:u,top:A,width:h,height:d}=c;if(n||t(),!h||!d)return;const p={rootMargin:-ut(A)+"px "+-ut(o.clientWidth-(u+h))+"px "+-ut(o.clientHeight-(A+d))+"px "+-ut(u)+"px",threshold:lt(0,at(1,l))||1};let f=!0;function m(t){const n=t[0].intersectionRatio;if(!Qt(c,e.getBoundingClientRect()))return a();if(n!==l){if(!f)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}f=!1}try{i=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(m,p)}i.observe(e)}const l=pt(e),c=()=>a(n);return l.addEventListener("resize",c),a(!0),()=>{l.removeEventListener("resize",c),s()}}(c,n,o):null;let h,d=-1,p=null;s&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!l&&p.observe(c),t&&p.observe(t));let f=l?Rt(e):null;return l&&function t(){const r=Rt(e);f&&!Qt(f,r)&&n();f=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==A||A(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(h)}}var Tt=d.useLayoutEffect,Gt=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Wt=function(){};function Kt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Yt(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1}function Lt(e){return Ut(e)?window.pageYOffset:e.scrollTop}function Jt(e,t){Ut(e)?window.scrollTo(0,t):e.scrollTop=t}function jt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Wt,i=Lt(e),o=t-i,s=0;!function t(){var a,l=o*((a=(a=s+=10)/n-1)*a*a+1)+i;Jt(e,l),sn.bottom?Jt(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i=p)return{placement:"bottom",maxHeight:t};if(x>=p&&!s)return o&&jt(l,S,E),{placement:"bottom",maxHeight:t};if(!s&&x>=r||s&&w>=r)return o&&jt(l,S,E),{placement:"bottom",maxHeight:s?w-y:x-y};if("auto"===i||s){var k=t,D=s?C:I;return D>=r&&(k=Math.min(D-y-a,t)),{placement:"top",maxHeight:k}}if("bottom"===i)return o&&Jt(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(C>=p)return{placement:"top",maxHeight:t};if(I>=p&&!s)return o&&jt(l,B,E),{placement:"top",maxHeight:t};if(!s&&I>=r||s&&C>=r){var O=t;return(!s&&I>=r||s&&C>=r)&&(O=s?C-v:I-v),o&&jt(l,B,E),{placement:"top",maxHeight:O}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}var an,ln=function(e){return"auto"===e?"bottom":e},cn=(0,d.createContext)(null),un=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,o=e.menuPosition,s=e.menuShouldScrollIntoView,a=e.theme,l=((0,d.useContext)(cn)||{}).setPortalPlacement,c=(0,d.useRef)(null),u=y((0,d.useState)(r),2),A=u[0],h=u[1],p=y((0,d.useState)(null),2),f=p[0],g=p[1],b=a.spacing.controlHeight;return Tt(function(){var e=c.current;if(e){var t="fixed"===o,a=sn({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:b});h(a.maxHeight),g(a.placement),null==l||l(a.placement)}},[r,i,o,s,n,l,b]),t({ref:c,placerProps:m(m({},e),{},{placement:f||ln(i),maxHeight:A})})},An=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return it("div",u({},Zt(e,"menu",{menu:!0}),{ref:n},r),t)},hn=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return m({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},dn=hn,pn=hn,fn=["size"],mn=["innerProps","isRtl","size"];var gn,bn,yn={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},vn=function(e){var t=e.size,n=v(e,fn);return it("svg",u({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:yn},n))},Cn=function(e){return it(vn,u({size:20},e),it("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},wn=function(e){return it(vn,u({size:20},e),it("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},In=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return m({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},xn=In,Sn=In,Bn=function(){var e=ot.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(an||(gn=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],bn||(bn=gn.slice(0)),an=Object.freeze(Object.defineProperties(gn,{raw:{value:Object.freeze(bn)}})))),En=function(e){var t=e.delay,n=e.offset;return it("span",{css:ot({animation:"".concat(Bn," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},kn=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,s=e.menuIsOpen;return it("div",u({ref:i},Zt(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":s}),o,{"aria-disabled":n||void 0}),t)},Dn=["data"],On=function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,s=e.headingProps,a=e.innerProps,l=e.label,c=e.theme,A=e.selectProps;return it("div",u({},Zt(e,"group",{group:!0}),a),it(o,u({},s,{selectProps:A,theme:c,getStyles:r,getClassNames:i,cx:n}),l),it("div",null,t))},Nn=["innerRef","isDisabled","isHidden","inputClassName"],Fn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Mn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":m({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Fn)},Rn=function(e){return m({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Fn)},Qn=function(e){var t=e.children,n=e.innerProps;return it("div",n,t)};var Vn=function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,s=e.removeProps,a=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return it(l,{data:r,innerProps:m(m({},Zt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:a},it(c,{data:r,innerProps:m({},Zt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},t),it(u,{data:r,innerProps:m(m({},Zt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},s),selectProps:a}))},Tn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return it("div",u({},Zt(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||it(Cn,null))},Control:kn,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return it("div",u({},Zt(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||it(wn,null))},DownChevron:wn,CrossIcon:Cn,Group:On,GroupHeading:function(e){var t=Ht(e);t.data;var n=v(t,Dn);return it("div",u({},Zt(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return it("div",u({},Zt(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return it("span",u({},t,Zt(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Ht(e),i=r.innerRef,o=r.isDisabled,s=r.isHidden,a=r.inputClassName,l=v(r,Nn);return it("div",u({},Zt(e,"input",{"input-container":!0}),{"data-value":n||""}),it("input",u({className:t({input:!0},a),ref:i,style:Rn(s),disabled:o},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=void 0===r?4:r,o=v(e,mn);return it("div",u({},Zt(m(m({},o),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),it(En,{delay:0,offset:n}),it(En,{delay:160,offset:!0}),it(En,{delay:320,offset:!n}))},Menu:An,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return it("div",u({},Zt(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,o=e.menuPlacement,s=e.menuPosition,a=(0,d.useRef)(null),l=(0,d.useRef)(null),c=y((0,d.useState)(ln(o)),2),A=c[0],h=c[1],p=(0,d.useMemo)(function(){return{setPortalPlacement:h}},[]),f=y((0,d.useState)(null),2),g=f[0],b=f[1],v=(0,d.useCallback)(function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===s?0:window.pageYOffset,n=e[A]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||b({offset:n,rect:e})}},[r,s,A,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);Tt(function(){v()},[v]);var C=(0,d.useCallback)(function(){"function"==typeof l.current&&(l.current(),l.current=null),r&&a.current&&(l.current=Vt(r,a.current,v,{elementResize:"ResizeObserver"in window}))},[r,v]);Tt(function(){C()},[C]);var w=(0,d.useCallback)(function(e){a.current=e,C()},[C]);if(!t&&"fixed"!==s||!g)return null;var I=it("div",u({ref:w},Zt(m(m({},e),{},{offset:g.offset,position:s,rect:g.rect}),"menuPortal",{"menu-portal":!0}),i),n);return it(cn.Provider,{value:p},t?(0,st.createPortal)(I,t):I)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=v(e,on);return it("div",u({},Zt(m(m({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=v(e,rn);return it("div",u({},Zt(m(m({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Vn,MultiValueContainer:Qn,MultiValueLabel:Qn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return it("div",u({role:"button"},n),t||it(Cn,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,s=e.innerProps;return it("div",u({},Zt(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},s),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return it("div",u({},Zt(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return it("div",u({},Zt(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return it("div",u({},Zt(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return it("div",u({},Zt(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},Gn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Wn(e,t){return e===t||!(!Gn(e)||!Gn(t))}function Kn(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,s=e.selectValue,a=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(o," focused, ").concat(u(s,n),".");if("menu"===t&&c){var A=a?" disabled":"",h="".concat(l?" selected":"").concat(A);return"".concat(o).concat(h,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Zn=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,s=e.selectValue,a=e.selectProps,l=e.id,c=e.isAppleDevice,u=a.ariaLiveMessages,A=a.getOptionLabel,h=a.inputValue,p=a.isMulti,f=a.isOptionDisabled,g=a.isSearchable,b=a.menuIsOpen,y=a.options,v=a.screenReaderStatus,C=a.tabSelectsValue,w=a.isLoading,I=a["aria-label"],x=a["aria-live"],S=(0,d.useMemo)(function(){return m(m({},Hn),u||{})},[u]),B=(0,d.useMemo)(function(){var e,n="";if(t&&S.onChange){var r=t.option,i=t.options,o=t.removedValue,a=t.removedValues,l=t.value,c=o||r||(e=l,Array.isArray(e)?null:e),u=c?A(c):"",h=i||a||void 0,d=h?h.map(A):[],p=m({isDisabled:c&&f(c,s),label:u,labels:d},t);n=S.onChange(p)}return n},[t,S,f,s,A]),E=(0,d.useMemo)(function(){var e="",t=n||r,o=!!(n&&s&&s.includes(n));if(t&&S.onFocus){var a={focused:t,label:A(t),isDisabled:f(t,s),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:s,isAppleDevice:c};e=S.onFocus(a)}return e},[n,r,A,f,S,i,s,c]),k=(0,d.useMemo)(function(){var e="";if(b&&y.length&&!w&&S.onFilter){var t=v({count:i.length});e=S.onFilter({inputValue:h,resultsMessage:t})}return e},[i,h,b,S,y,v,w]),D="initial-input-focus"===(null==t?void 0:t.action),O=(0,d.useMemo)(function(){var e="";if(S.guidance){var t=r?"value":b?"menu":"input";e=S.guidance({"aria-label":I,context:t,isDisabled:n&&f(n,s),isMulti:p,isSearchable:g,tabSelectsValue:C,isInitialFocus:D})}return e},[I,n,r,p,f,g,b,S,s,C,D]),N=it(d.Fragment,null,it("span",{id:"aria-selection"},B),it("span",{id:"aria-focused"},E),it("span",{id:"aria-results"},k),it("span",{id:"aria-guidance"},O));return it(d.Fragment,null,it(Pn,{id:l},D&&N),it(Pn,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!D&&N))},Un=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Ln=new RegExp("["+Un.map(function(e){return e.letters}).join("")+"]","g"),Jn={},jn=0;jn1?t-1:0),r=1;r0,f=A-h-u,m=!1;f>t&&s.current&&(r&&r(e),s.current=!1),p&&a.current&&(o&&o(e),a.current=!1),p&&t>f?(n&&!s.current&&n(e),d.scrollTop=A,m=!0,s.current=!0):!p&&-t>u&&(i&&!a.current&&i(e),d.scrollTop=0,m=!0,a.current=!0),m&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,r,i,o]),A=(0,d.useCallback)(function(e){u(e,e.deltaY)},[u]),h=(0,d.useCallback)(function(e){l.current=e.changedTouches[0].clientY},[]),p=(0,d.useCallback)(function(e){var t=l.current-e.changedTouches[0].clientY;u(e,t)},[u]),f=(0,d.useCallback)(function(e){if(e){var t=!!en&&{passive:!1};e.addEventListener("wheel",A,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",p,t)}},[p,h,A]),m=(0,d.useCallback)(function(e){e&&(e.removeEventListener("wheel",A,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",p,!1))},[p,h,A]);return(0,d.useEffect)(function(){if(t){var e=c.current;return f(e),function(){m(e)}}},[t,f,m]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),o=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,d.useRef)({}),o=(0,d.useRef)(null),s=(0,d.useCallback)(function(e){if(cr){var t=document.body,n=t&&t.style;if(r&&rr.forEach(function(e){var t=n&&n[e];i.current[e]=t}),r&&ur<1){var o=parseInt(i.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,a=window.innerWidth-s+o||0;Object.keys(ir).forEach(function(e){var t=ir[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(a,"px"))}t&&lr()&&(t.addEventListener("touchmove",or,Ar),e&&(e.addEventListener("touchstart",ar,Ar),e.addEventListener("touchmove",sr,Ar))),ur+=1}},[r]),a=(0,d.useCallback)(function(e){if(cr){var t=document.body,n=t&&t.style;ur=Math.max(ur-1,0),r&&ur<1&&rr.forEach(function(e){var t=i.current[e];n&&(n[e]=t)}),t&&lr()&&(t.removeEventListener("touchmove",or,Ar),e&&(e.removeEventListener("touchstart",ar,Ar),e.removeEventListener("touchmove",sr,Ar)))}},[r]);return(0,d.useEffect)(function(){if(t){var e=o.current;return s(e),function(){a(e)}}},[t,s,a]),function(e){o.current=e}}({isEnabled:n});return it(d.Fragment,null,n&&it("div",{onClick:hr,css:dr}),t(function(e){i(e),o(e)}))}var fr={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},mr=function(e){var t=e.name,n=e.onFocus;return it("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:fr,value:"",onChange:function(){}})};function gr(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function br(){return gr(/^Mac/i)}function yr(){return gr(/^iPhone/i)||gr(/^iPad/i)||br()&&navigator.maxTouchPoints>1}var vr={clearIndicator:Sn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors,s=i.borderRadius;return m({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:xn,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return m({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return m({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,s=i.colors;return m(m({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Mn),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,s=i.spacing.baseUnit;return m({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*s})},loadingMessage:pn,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,s=i.spacing,l=i.colors;return m((a(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),a(n,"position","absolute"),a(n,"width","100%"),a(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return m({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors;return m({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return m({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,s=e.isFocused;return m({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:dn,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,s=o.spacing,a=o.colors;return m({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?a.primary:r?a.primary25:"transparent",color:n?a.neutral20:i?a.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?a.primary:a.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return m({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return m({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return m({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var Cr,wr={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ir={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Xt(),captureMenuScroll:!Xt(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=m({ignoreCase:!0,ignoreAccents:!0,stringify:er,trim:!0,matchFrom:"any"},Cr),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,s=n.trim,a=n.matchFrom,l=s?$n(t):t,c=s?$n(o(e)):o(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=qn(l),c=zn(c)),"start"===a?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function xr(e,t,n,r){return{type:"option",data:t,isDisabled:Fr(e,t,n),isSelected:Mr(e,t,n),label:Or(e,t),value:Nr(e,t),index:r}}function Sr(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(n,r){return xr(e,n,t,r)}).filter(function(t){return kr(e,t)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=xr(e,n,t,r);return kr(e,o)?o:void 0}).filter(tn)}function Br(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,O(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function Er(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,O(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function kr(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,s=t.label,a=t.value;return(!Qr(e)||!o)&&Rr(e,{label:s,value:a,data:i},r)}var Dr=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},Or=function(e,t){return e.getOptionLabel(t)},Nr=function(e,t){return e.getOptionValue(t)};function Fr(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Mr(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Nr(e,t);return n.some(function(t){return Nr(e,t)===r})}function Rr(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Qr=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Vr=1,Tr=function(e){B(n,e);var t=function(e){var t=k();return function(){var n,r=E(e);if(t){var i=E(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return D(this,n)}}(n);function n(e){var r;if(w(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,i=n.onChange,o=n.name;t.name=o,r.ariaOnChange(e,t),i(e,t)},r.setValue=function(e,t,n){var i=r.props,o=i.closeMenuOnSelect,s=i.isMulti,a=i.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:a}),o&&(r.setState({inputIsHiddenAfterUpdate:!s}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,i=t.isMulti,o=t.name,s=r.state.selectValue,a=i&&r.isOptionSelected(e,s),l=r.isOptionDisabled(e,s);if(a){var c=r.getOptionValue(e);r.setValue(s.filter(function(e){return r.getOptionValue(e)!==c}),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:o});i?r.setValue([].concat(O(s),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,i=r.getOptionValue(e),o=n.filter(function(e){return r.getOptionValue(e)!==i}),s=nn(t,o,o[0]||null);r.onChange(s,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(nn(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),o=nn(e,i,i[0]||null);n&&r.onChange(o,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return Dr(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Er(Sr(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n5||o>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return Qr(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,s=t.inputValue,a=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,A=t.tabSelectsValue,h=t.openMenuOnFocus,d=r.state,p=d.focusedOption,f=d.focusedValue,m=d.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||s)return;r.focusValue("previous");break;case"ArrowRight":if(!n||s)return;r.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(f)r.removeValue(f);else{if(!i)return;n?r.popValue():a&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!A||!p||h&&r.isOptionSelected(p,m))return;r.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(c){if(!p)return;if(r.isComposing)return;r.selectOption(p);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:s}),r.onMenuClose()):a&&o&&r.clearValue();break;case" ":if(s)return;if(!c){r.openMenu("first");break}if(!p)return;r.selectOption(p);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Vr),r.state.selectValue=Pt(e.value),e.menuIsOpen&&r.state.selectValue.length){var i=r.getFocusableOptionsWithIds(),o=r.buildFocusableOptions(),s=o.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=i,r.state.focusedOption=o[s],r.state.focusedOptionId=Dr(i,o[s])}return r}return x(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&_t(this.menuListRef,this.focusedOptionRef),(br()||yr())&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(_t(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),s="first"===e?0:o.length-1;if(!this.props.isMulti){var a=o.indexOf(r[0]);a>-1&&(s=a)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[s],focusedOptionId:this.getFocusedOptionId(o[s])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,s=-1;if(n.length){switch(e){case"previous":s=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(wr):m(m({},wr),this.props.theme):wr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,s=this.setValue,a=this.props,l=a.isMulti,c=a.isRtl,u=a.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:o,selectProps:a,setValue:s,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Fr(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Mr(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Rr(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,o=e.tabIndex,s=e.form,a=e.menuIsOpen,l=e.required,c=this.getComponents().Input,A=this.state,h=A.inputIsHidden,p=A.ariaSelection,f=this.commonProps,g=r||this.getElementId("input"),b=m(m(m({"aria-autocomplete":"list","aria-expanded":a,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},a&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?d.createElement(c,u({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:s,type:"text",value:i},b)):d.createElement(nr,u({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Wt,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:s,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,s=t.SingleValue,a=t.Placeholder,l=this.commonProps,c=this.props,A=c.controlShouldRenderValue,h=c.isDisabled,p=c.isMulti,f=c.inputValue,m=c.placeholder,g=this.state,b=g.selectValue,y=g.focusedValue,v=g.isFocused;if(!this.hasValue()||!A)return f?null:d.createElement(a,u({},l,{key:"placeholder",isDisabled:h,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return b.map(function(t,s){var a=t===y,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return d.createElement(n,u({},l,{components:{Container:r,Label:i,Remove:o},isFocused:a,isDisabled:h,key:c,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(f)return null;var C=b[0];return d.createElement(s,u({},l,{data:C,isDisabled:h}),this.formatOptionLabel(C,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return d.createElement(e,u({},t,{innerProps:s,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!e||!i)return null;return d.createElement(e,u({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:o}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return d.createElement(n,u({},r,{isDisabled:i,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return d.createElement(e,u({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,o=t.MenuList,s=t.MenuPortal,a=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,A=this.commonProps,h=this.state.focusedOption,p=this.props,f=p.captureMenuScroll,m=p.inputValue,g=p.isLoading,b=p.loadingMessage,y=p.minMenuHeight,v=p.maxMenuHeight,C=p.menuIsOpen,w=p.menuPlacement,I=p.menuPosition,x=p.menuPortalTarget,S=p.menuShouldBlockScroll,B=p.menuShouldScrollIntoView,E=p.noOptionsMessage,k=p.onMenuScrollToTop,D=p.onMenuScrollToBottom;if(!C)return null;var O,N=function(t,n){var r=t.type,i=t.data,o=t.isDisabled,s=t.isSelected,a=t.label,l=t.value,p=h===i,f=o?void 0:function(){return e.onOptionHover(i)},m=o?void 0:function(){return e.selectOption(i)},g="".concat(e.getElementId("option"),"-").concat(n),b={id:g,onClick:m,onMouseMove:f,onMouseOver:f,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:s};return d.createElement(c,u({},A,{innerProps:b,data:i,isDisabled:o,isSelected:s,key:g,label:a,type:r,value:l,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())O=this.getCategorizedOptions().map(function(t){if("group"===t.type){var i=t.data,o=t.options,s=t.index,a="".concat(e.getElementId("group"),"-").concat(s),l="".concat(a,"-heading");return d.createElement(n,u({},A,{key:a,data:i,options:o,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return N(e,"".concat(s,"-").concat(e.index))}))}if("option"===t.type)return N(t,"".concat(t.index))});else if(g){var F=b({inputValue:m});if(null===F)return null;O=d.createElement(a,A,F)}else{var M=E({inputValue:m});if(null===M)return null;O=d.createElement(l,A,M)}var R={minMenuHeight:y,maxMenuHeight:v,menuPlacement:w,menuPosition:I,menuShouldScrollIntoView:B},Q=d.createElement(un,u({},A,R),function(t){var n=t.ref,r=t.placerProps,s=r.placement,a=r.maxHeight;return d.createElement(i,u({},A,R,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:s}),d.createElement(pr,{captureEnabled:f,onTopArrive:k,onBottomArrive:D,lockEnabled:S},function(t){return d.createElement(o,u({},A,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":A.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:a,focusedOption:h}),O)}))});return x||"fixed"===I?d.createElement(s,u({},A,{appendTo:x,controlElement:this.controlRef,menuPlacement:w,menuPosition:I}),Q):Q}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,s=t.required,a=this.state.selectValue;if(s&&!this.hasValue()&&!r)return d.createElement(mr,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(n){var l=a.map(function(t){return e.getOptionValue(t)}).join(n);return d.createElement("input",{name:o,type:"hidden",value:l})}var c=a.length>0?a.map(function(t,n){return d.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})}):d.createElement("input",{name:o,type:"hidden",value:""});return d.createElement("div",null,c)}var u=a[0]?this.getOptionValue(a[0]):"";return d.createElement("input",{name:o,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.isFocused,s=t.selectValue,a=this.getFocusableOptions();return d.createElement(Zn,u({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:o,selectValue:s,focusableOptions:a,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,o=this.props,s=o.className,a=o.id,l=o.isDisabled,c=o.menuIsOpen,A=this.state.isFocused,h=this.commonProps=this.getCommonProps();return d.createElement(r,u({},h,{className:s,innerProps:{id:a,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:A}),this.renderLiveRegion(),d.createElement(t,u({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:A,menuIsOpen:c}),d.createElement(i,u({},h,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),d.createElement(n,u({},h,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,s=t.isFocused,a=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,A=e.menuIsOpen,h=e.inputValue,d=e.isMulti,p=Pt(u),f={};if(n&&(u!==n.value||c!==n.options||A!==n.menuIsOpen||h!==n.inputValue)){var g=A?function(e,t){return Br(Sr(e,t))}(e,p):[],b=A?Er(Sr(e,p),"".concat(l,"-option")):[],y=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r-1?n:t[0]}(t,g);f={selectValue:p,focusedOption:v,focusedOptionId:Dr(b,v),focusableOptionsWithIds:b,focusedValue:y,clearFocusValueOnUpdate:!1}}var C=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},w=o,I=s&&a;return s&&!I&&(w={value:nn(d,p,p[0]||null),options:p,action:"initial-input-focus"},I=!a),"initial-input-focus"===(null==o?void 0:o.action)&&(w=null),m(m(m({},f),C),{},{prevProps:e,ariaSelection:w,prevWasFocused:I})}}]),n}(d.Component);Tr.defaultProps=Ir;var Gr=(0,d.forwardRef)(function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,i=void 0!==r&&r,o=e.defaultValue,s=void 0===o?null:o,a=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,A=e.onMenuClose,h=e.onMenuOpen,p=e.value,f=v(e,C),g=y((0,d.useState)(void 0!==a?a:n),2),b=g[0],w=g[1],I=y((0,d.useState)(void 0!==l?l:i),2),x=I[0],S=I[1],B=y((0,d.useState)(void 0!==p?p:s),2),E=B[0],k=B[1],D=(0,d.useCallback)(function(e,t){"function"==typeof c&&c(e,t),k(e)},[c]),O=(0,d.useCallback)(function(e,t){var n;"function"==typeof u&&(n=u(e,t)),w(void 0!==n?n:e)},[u]),N=(0,d.useCallback)(function(){"function"==typeof h&&h(),S(!0)},[h]),F=(0,d.useCallback)(function(){"function"==typeof A&&A(),S(!1)},[A]),M=void 0!==a?a:b,R=void 0!==l?l:x,Q=void 0!==p?p:E;return m(m({},f),{},{inputValue:M,menuIsOpen:R,onChange:D,onInputChange:O,onMenuClose:F,onMenuOpen:N,value:Q})}(e);return d.createElement(Tr,u({ref:t},n))}),Wr=Gr,Kr=n(4728),Yr=n.n(Kr);const Pr=window.wp.i18n,Hr=window.wp.autop,Zr=window.wp.compose;var Ur=n(5556),Lr=n.n(Ur),Jr=n(6942),jr=n.n(Jr),_r="/home/runner/work/pods-private/pods-private/ui/js/blocks/src/components/CheckboxGroup/index.js",Xr=void 0,zr=function(e){var t=e.id,n=void 0===t?"":t,r=e.className,i=void 0===r?null:r,o=e.heading,s=void 0===o?null:o,a=e.help,l=void 0===a?null:a,c=e.options,u=void 0===c?[]:c,A=e.values,d=void 0===A?[]:A,p=e.onChange,f=function(e,t){var n=O(d),r=n.findIndex(function(t){return t.value===e});-1!==r?n[r].checked=t:n.push({value:e,checked:t}),p(n)};return React.createElement("fieldset",{className:jr()("components-block-fields-checkbox-group",i),__self:Xr,__source:{fileName:_r,lineNumber:43,columnNumber:3}},s&&React.createElement("legend",{__self:Xr,__source:{fileName:_r,lineNumber:44,columnNumber:17}},s),u.map(function(e){var t=d.find(function(t){return t.value===e.value})||!1;return React.createElement(h.CheckboxControl,{key:e.value,label:e.label,checked:t.checked||!1,onChange:function(t){return f(e.value,t)},__nextHasNoMarginBottom:!0,__self:Xr,__source:{fileName:_r,lineNumber:50,columnNumber:6}})}),!!l&&React.createElement("p",{id:n+"__help",className:"components-block-fields-checkbox-group__help",__self:Xr,__source:{fileName:_r,lineNumber:61,columnNumber:5}},l))};zr.propTypes={id:Lr().string,className:Lr().string,heading:Lr().string,help:Lr().string,options:Lr().arrayOf(Lr().shape({label:Lr().string.isRequired,value:Lr().string.isRequired})),values:Lr().arrayOf(Lr().shape({value:Lr().string.isRequired,checked:Lr().bool})),onChange:Lr().func.isRequired};const qr=zr;var $r="/home/runner/work/pods-private/pods-private/ui/js/blocks/src/components/CheckboxControlExtended/index.js",ei=void 0,ti=function(e){var t=e.className,n=void 0===t?null:t,r=e.heading,i=void 0===r?null:r,o=e.label,s=void 0===o?null:o,a=e.help,l=void 0===a?null:a,c=e.checked,u=void 0!==c&&c,A=e.onChange;return React.createElement("fieldset",{className:jr()("components-block-fields-checkbox-control",n),__self:ei,__source:{fileName:$r,lineNumber:23,columnNumber:3}},i&&React.createElement("legend",{__self:ei,__source:{fileName:$r,lineNumber:24,columnNumber:17}},i),React.createElement(h.CheckboxControl,{label:s,help:l,checked:u,onChange:A,__nextHasNoMarginBottom:!0,__self:ei,__source:{fileName:$r,lineNumber:25,columnNumber:4}}))};ti.propTypes={className:Lr().string,heading:Lr().string,label:Lr().string,help:Lr().string,checked:Lr().bool,onChange:Lr().func.isRequired};const ni=ti,ri=window.lodash,ii=window.wp.keycodes;var oi=["className","isShiftStepEnabled","max","min","onChange","onKeyDown","shiftStep","step"];function si(e){var t=e.className,n=e.isShiftStepEnabled,r=void 0===n||n,i=e.max,o=void 0===i?1/0:i,s=e.min,a=void 0===s?-1/0:s,l=e.onChange,c=void 0===l?ri.noop:l,A=e.onKeyDown,h=void 0===A?ri.noop:A,d=e.shiftStep,p=void 0===d?10:d,f=e.step,m=void 0===f?1:f,g=v(e,oi),b=(0,ri.clamp)(0,a,o),y=jr()("component-number-control",t);return React.createElement("input",u({inputMode:"numeric"},g,{className:y,type:"number",onChange:function(e){c(e.target.value,{event:e})},onKeyDown:function(e){h(e);var t=e.target.value,n=""===t,i=e.shiftKey&&r?parseFloat(p):parseFloat(m),s=n?b:t;switch(s=parseFloat(s),e.keyCode){case ii.UP:e.preventDefault(),s+=i,s=(0,ri.clamp)(s,a,o),c(s.toString(),{event:e});break;case ii.DOWN:e.preventDefault(),s-=i,s=(0,ri.clamp)(s,a,o),c(s.toString(),{event:e})}},__self:this,__source:{fileName:"/home/runner/work/pods-private/pods-private/ui/js/blocks/src/components/NumberControl/index.js",lineNumber:70,columnNumber:3}}))}var ai={allowedTags:["blockquote","caption","div","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","li","ol","p","pre","section","table","tbody","td","th","thead","tr","ul","a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"],allowedAttributes:{"*":["class","id","data-*","style"],iframe:["*"],a:["href","name","target"],img:["src","srcset","sizes","alt","width","height"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto"],allowedSchemesByTag:{},allowProtocolRelative:!0},li={allowedTags:[],allowedAttributes:{}},ci="/home/runner/work/pods-private/pods-private/ui/js/blocks/src/blocks/components/RenderedField.js",ui=void 0;function Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hi(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,Ii.addQueryArgs)("/wp/v2/block-renderer/".concat(e),Di(Di({context:"edit"},null!==t?{attributes:t}:{}),n))}(n,l?null:i,void 0===a?{}:a),u=l?{attributes:i}:null,A=this.currentFetchRequest=wi()({path:c,data:u,method:l?"POST":"GET"}).then(function(e){t.isStillMounted&&A===t.currentFetchRequest&&e&&t.setState({response:e.rendered})}).catch(function(e){t.isStillMounted&&A===t.currentFetchRequest&&t.setState({response:{error:!0,errorMsg:e.message}})});return A}}},{key:"render",value:function(){var e=this,t=this.state.response,n=this.props,r=n.className,i=n.EmptyResponsePlaceholder,o=n.ErrorResponsePlaceholder,s=n.LoadingResponsePlaceholder;return""===t?React.createElement(i,u({response:t},this.props,{__self:this,__source:{fileName:xi,lineNumber:117,columnNumber:11}})):t?t.error?React.createElement(o,u({response:t},this.props,{__self:this,__source:{fileName:xi,lineNumber:126,columnNumber:5}})):c(t,{replace:function(t){if("innerblocks"===t.name)return void 0!==t.attribs.template&&(t.attribs.template=JSON.parse(t.attribs.template)),void 0!==t.attribs.allowedBlocks&&(t.attribs.allowedBlocks=JSON.parse(t.attribs.allowedBlocks)),void 0!==t.attribs.templateLock&&"false"===t.attribs.templateLock&&(t.attribs.templateLock=!1),React.createElement(A.InnerBlocks,u({className:r},t.attribs,{__self:e,__source:{fileName:xi,lineNumber:144,columnNumber:13}}))}}):React.createElement(s,u({response:t},this.props,{__self:this,__source:{fileName:xi,lineNumber:121,columnNumber:5}}))}}])}(vi.Component);Oi.defaultProps={EmptyResponsePlaceholder:function(e){var t=e.className;return React.createElement(h.Placeholder,{className:t,__self:Si,__source:{fileName:xi,lineNumber:153,columnNumber:3}},(0,Pr.__)("Block rendered as empty."))},ErrorResponsePlaceholder:function(e){var t=e.response,n=e.className,r=(0,Pr.sprintf)((0,Pr.__)("Error loading block: %s"),t.errorMsg);return React.createElement(h.Placeholder,{className:n,__self:Si,__source:{fileName:xi,lineNumber:163,columnNumber:10}},r)},LoadingResponsePlaceholder:function(e){var t=e.className;return React.createElement(h.Placeholder,{className:t,__self:Si,__source:{fileName:xi,lineNumber:167,columnNumber:4}},React.createElement(h.Spinner,{__self:Si,__source:{fileName:xi,lineNumber:168,columnNumber:5}}))}};const Ni=Oi;function Fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const Mi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=Yr()(e,ai),s=[];return t.forEach(function(e){var t="function"==typeof i?r(e,n,i):r(e,n);t&&(s[e.name]=function(e){for(var t=1;t0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}}),no=n.n(to),ro=n.cjs(function(e,t){var n={};e.exports=function(e,t){var r=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}}),io=n.n(ro),oo=n.cjs(function(e,t){e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}}),so=n.n(oo),ao=n.cjs(function(e,t){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}}),lo=n.n(ao),co=n.cjs(function(e,t){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}),uo=n.n(co),Ao=n(4449),ho={};ho.styleTagTransform=uo(),ho.setAttributes=so(),ho.insert=io().bind(null,"head"),ho.domAPI=no(),ho.insertStyleElement=lo();eo()(Ao.A,ho);Ao.A&&Ao.A.locals&&Ao.A.locals;window.podsBlocksConfig.collections.forEach(i),window.podsBlocksConfig.blocks.forEach(ji),window.podsBlocksConfig.commands.forEach(zi),window.podsBlocksConfig.panelsToDisable.forEach(qi)},4449(e,t,n){"use strict";var r=n(1601),i=n.n(r),o=n(6314),s=n.n(o)()(i());s.push([e.id,".pods-inspector-row .components-datetime{padding-left:0;padding-right:0}.pods-inspector-row .full-width-base-control{width:100%}",""]);const a=s;n.d(t,["A",0,a])},6314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},1601(e){"use strict";e.exports=function(e){return e[1]}},4353(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",s="hour",a="day",l="week",c="month",u="quarter",A="year",h="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()1)return e(s[0])}else{var a=t.name;v[a]=t,i=a}return!r&&i&&(y=i),i||!r&&y},x=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new B(n)},S=b;S.l=I,S.i=w,S.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var B=function(){function m(e){this.$L=I(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[C]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(e,t){var n=x(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return x(e)0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=d;var p=function(e){function t(t){return e.call(this,s.ElementType.Root,t)||this}return i(t,e),t}(d);t.Document=p;var f=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var o=e.call(this,i,r)||this;return o.name=t,o.attribs=n,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}})},enumerable:!1,configurable:!0}),t}(d);function m(e){return(0,s.isTag)(e)}function g(e){return e.type===s.ElementType.CDATA}function b(e){return e.type===s.ElementType.Text}function y(e){return e.type===s.ElementType.Comment}function v(e){return e.type===s.ElementType.Directive}function C(e){return e.type===s.ElementType.Root}function w(e,t){var n;if(void 0===t&&(t=!1),b(e))n=new u(e.data);else if(y(e))n=new A(e.data);else if(m(e)){var r=t?I(e.children):[],i=new f(e.name,o({},e.attribs),r);r.forEach(function(e){return e.parent=i}),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(g(e)){r=t?I(e.children):[];var a=new d(s.ElementType.CDATA,r);r.forEach(function(e){return e.parent=a}),n=a}else if(C(e)){r=t?I(e.children):[];var l=new p(r);r.forEach(function(e){return e.parent=l}),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!v(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new h(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function I(e){for(var t=e.map(function(e){return w(e,!0)}),n=1;n{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},4146(e,t,n){"use strict";var r=n(3404),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,A=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=d(n);i&&i!==p&&e(t,i,r)}var s=u(n);A&&(s=s.concat(A(n)));for(var a=l(t),f=l(n),m=0;m/i,l=//i,c=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var A=new window.DOMParser;c=u=function(e,t){return t&&(e="<"+t+">"+e+""+t+">"),A.parseFromString(e,"text/html")}}if(document.implementation){var h=n(7731).isIE,d=document.implementation.createHTMLDocument(h()?"html-dom-parser":void 0);c=function(e,t){return t?(d.documentElement.getElementsByTagName(t)[0].innerHTML=e,d):(d.documentElement.innerHTML=e,d)}}var p,f=document.createElement("template");f.content&&(p=function(e){return f.innerHTML=e,f.content.childNodes}),e.exports=function(e){var t,n,A,h,d=e.match(s);switch(d&&d[1]&&(t=d[1].toLowerCase()),t){case r:return n=u(e),a.test(e)||(A=n.getElementsByTagName(i)[0])&&A.parentNode.removeChild(A),l.test(e)||(A=n.getElementsByTagName(o)[0])&&A.parentNode.removeChild(A),n.getElementsByTagName(r);case i:case o:return h=c(e).getElementsByTagName(t),l.test(e)&&a.test(e)?h[0].parentNode.childNodes:h;default:return p?p(e):c(e,o).getElementsByTagName(o)[0].childNodes}}},2471(e,t,n){var r=n(5496),i=n(7731).formatDOM,o=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(o);return n&&n[1]&&(t=n[1]),i(r(e),null,t)}},7731(e,t,n){for(var r,i=n(5270),o=n(6957),s=i.CASE_SENSITIVE_TAG_NAMES,a=o.Comment,l=o.Element,c=o.ProcessingInstruction,u=o.Text,A={},h=0,d=s.length;h1&&(u=p(u,{key:u.key||v})),g.push(u);else if("text"!==o.type){switch(A=o.attribs,l(o)?s(A.style,A):A&&(A=i(A)),h=null,o.type){case"script":case"style":o.children[0]&&(A.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?A.defaultValue=o.children[0].data:o.children&&o.children.length&&(h=e(o.children,n));break;default:continue}C>1&&(A.key=v),g.push(f(o.name,A,h))}else{if((c=!o.data.trim().length)&&o.parent&&!a(o.parent))continue;if(y&&c)continue;g.push(o.data)}return 1===g.length?g[0]:g}},4958(e,t,n){var r=n(1609),i=n(5229).default;var o={reactCompat:!0};var s=r.version.split(".")[0]>=16,a=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:s,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,i="function"==typeof t,o={},s={};for(n in e)r=e[n],i&&(o=t(n,r))&&2===o.length?s[o[0]]=o[1]:"string"==typeof r&&(s[r]=n);return s},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,o)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!a.has(e.name)},elementsWithNoTextChildren:a}},9788(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var A=1,h=1;function d(e){var t=e.match(n);t&&(A+=t.length);var r=e.lastIndexOf("\n");h=~r?e.length-r:h+e.length}function p(){var e={line:A,column:h};return function(t){return t.position=new f(e),y(),t}}function f(e){this.start=e,this.end={line:A,column:h},this.source=l.source}f.prototype.content=e;var m=[];function g(t){var n=new Error(l.source+":"+A+":"+h+": "+t);if(n.reason=t,n.filename=l.source,n.line=A,n.column=h,n.source=e,!l.silent)throw n;m.push(n)}function b(t){var n=t.exec(e);if(n){var r=n[0];return d(r),e=e.slice(r.length),n}}function y(){b(r)}function v(e){var t;for(e=e||[];t=C();)!1!==t&&e.push(t);return e}function C(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return h+=2,d(r),e=e.slice(n),h+=2,t({type:"comment",comment:r})}}function w(){var e=p(),n=b(i);if(n){if(C(),!b(o))return g("property missing ':'");var r=b(s),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return b(a),l}}return y(),function(){var e,t=[];for(v(t);e=w();)!1!==e&&(t.push(e),v(t));return t}()}},8682(e,t){"use strict";function n(e){return"[object Object]"===Object.prototype.toString.call(e)}t.isPlainObject=function(e){var t,r;return!1!==n(e)&&(void 0===(t=e.constructor)||!1!==n(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}},3624(e,t,n){const r=n(4353);function i(e){for(e=e.replace(/[\x00-\x20]+/g,"");;){const t=e.indexOf("\x3c!--");if(-1===t)break;const n=e.indexOf("--\x3e",t+4);if(-1===n)break;e=e.substring(0,t)+e.substring(n+3)}return e}function o(e,t){const n=(t=t||{}).allowedSchemes||["http","https","ftp","mailto","tel","sms"],r=!1!==t.allowProtocolRelative;if("string"!=typeof e)return!1;const o=(e=i(e)).match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!o)return!!e.match(/^[/\\]{2}/)&&!r;const s=o[1].toLowerCase();return-1===n.indexOf(s)}e.exports=function(e){const t={};return t.options=e||{},t.filterTag=t.options.filterTag||function(e){return(e=e.trim()).toLowerCase()},t.string=function(e,t){return"string"!=typeof e&&("number"==typeof e||"boolean"==typeof e?e+="":e=""),e=e.trim(),void 0!==t&&""===e&&(e=t),e},t.strings=function(e){return Array.isArray(e)?e.map(function(e){return t.string(e)}):[]},t.integer=function(e,t,n,r){if(void 0===t&&(t=0),"number"==typeof e)e=Math.floor(e);else try{e=parseInt(e,10),isNaN(e)&&(e=t)}catch(n){e=t}return"number"==typeof n&&er&&(e=r),e},t.padInteger=function(e,t){let n=e+"";for(;n.lengthr&&(e=r),e},t.naughtyHref=o,t.url=function(e,n,r){return(e=t.string(e,n))===n?e:o(e=i(e))||null===(e=function(e){if(e.match(/^(((https?|ftp):\/\/)|((mailto|tel|sms):)|#|([^/.]+)?\/|[^/.]+$)/))return e;if(e.match(/^[^/.]+\.[^/.]+/)){return(r?"https://":"http://")+e}return null}(e))?n:e},t.select=function(e,n,r){if(e=t.string(e),!n||!n.length)return r;let i;return"object"==typeof n[0]?(i=n.find(function(t){return null!==t.value&&void 0!==t.value&&t.value.toString()===e}),null!=i?i.value:r):(i=n.find(function(t){return null!=t&&t.toString()===e}),void 0!==i?i:r)},t.boolean=function(e,n){return!0===e||!1!==e&&((e=t.string(e,n))===n?void 0!==e&&e:""!==(e=e.toLowerCase().charAt(0))&&"n"!==e&&"0"!==e&&"f"!==e&&("t"===e||"y"===e||"1"===e))},t.addBooleanFilterToCriteria=function(e,n,r,i){void 0===i&&(i=null);let o="object"==typeof e&&null!==e?e[n]:e;o=void 0===o?i:o,o=t.booleanOrNull(o),null===o||(r[n]=!!o||{$ne:!0})},t.booleanOrNull=function(e,n){return!0===e||!1===e||null===e?e:(e=t.string(e,n))===n?void 0===n?null:e:"null"===e?null:""!==(e=e.toLowerCase().charAt(0))&&"n"!==e&&"0"!==e&&"f"!==e&&("t"===e||"y"===e||"1"===e||("a"===e?null:n))},t.date=function(e,n,i){let o;function s(){return void 0===n&&(n=r().format("YYYY-MM-DD")),n}if("string"==typeof e){if(e.match(/\//)){if(o=e.split("/"),2===o.length)return(i||new Date).getFullYear()+"-"+t.padInteger(o[0],2)+"-"+t.padInteger(o[1],2);if(3===o.length){if(o[2]<100){const e=i||new Date,t=e.getFullYear()%100,n=e.getFullYear()-t;let r=parseInt(o[2])+n;r-e.getFullYear()>50&&(r-=100),o[2]=r}return t.padInteger(o[2],4)+"-"+t.padInteger(o[0],2)+"-"+t.padInteger(o[1],2)}return s()}if(e.match(/-/))return o=e.split("-"),2===o.length?(i||new Date).getFullYear()+"-"+t.padInteger(o[0],2)+"-"+t.padInteger(o[1],2):3===o.length?t.padInteger(o[0],4)+"-"+t.padInteger(o[1],2)+"-"+t.padInteger(o[2],2):s()}try{return null===e?s():(e=i||new Date(e),isNaN(e.getTime())?s():e.getFullYear()+"-"+t.padInteger(e.getMonth()+1,2)+"-"+t.padInteger(e.getDate(),2))}catch(e){return s()}},t.formatDate=function(e){return r(e).format("YYYY-MM-DD")},t.time=function(e,n){const i=(e=(e=t.string(e).toLowerCase()).trim()).match(/^(\d+)([:|.](\d+))?([:|.](\d+))?\s*(am|pm|AM|PM|a|p|A|M)?$/);if(i){let e=parseInt(i[1],10);const n=void 0!==i[3]?parseInt(i[3],10):0,r=void 0!==i[5]?parseInt(i[5],10):0;let o=i[6]?i[6].toLowerCase():i[6];return o=o&&o.charAt(0),12===e&&"a"===o?e-=12:12===e&&"p"===o||"p"===o&&(e+=12),24!==e&&"24"!==e||(e=0),t.padInteger(e,2)+":"+t.padInteger(n,2)+":"+t.padInteger(r,2)}return void 0!==n?n:r().format("HH:mm")},t.formatTime=function(e){return r(e).format("HH:mm:ss")},t.tags=function(e,n){if("string"==typeof e&&(e=e.split(/,\s*/)),!Array.isArray(e))return[];return e.map(e=>t.string(e)).map(n||t.filterTag).filter(e=>e.length>0)},t.idRegExp=t.options.idRegExp||/^[A-Za-z0-9_]+$/,t.id=function(e,n){const r=t.string(e,n);return r===n||r.match(t.idRegExp)?r:n},t.ids=function(e){if(!Array.isArray(e))return[];return e.filter(function(e){return void 0!==t.id(e)})},t},e.exports.naughtyHref=o},9466(e,t){var n,r,i;r=[],void 0===(i="function"==typeof(n=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function n(t){var n,r=t.exec(e.substring(f));if(r)return n=r[0],f+=n.length,n}for(var r,i,o,s,a,l=e.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,A=/^[^ \t\n\r\u000c]+/,h=/[,]+$/,d=/^\d+$/,p=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,f=0,m=[];;){if(n(u),f>=l)return m;r=n(A),i=[],","===r.slice(-1)?(r=r.replace(h,""),b()):g()}function g(){for(n(c),o="",s="in descriptor";;){if(a=e.charAt(f),"in descriptor"===s)if(t(a))o&&(i.push(o),o="",s="after descriptor");else{if(","===a)return f+=1,o&&i.push(o),void b();if("("===a)o+=a,s="in parens";else{if(""===a)return o&&i.push(o),void b();o+=a}}else if("in parens"===s)if(")"===a)o+=a,s="in descriptor";else{if(""===a)return i.push(o),void b();o+=a}else if("after descriptor"===s)if(t(a));else{if(""===a)return void b();s="in descriptor",f-=1}f+=1}}function b(){var t,n,o,s,a,l,c,u,A,h=!1,f={};for(s=0;s0;){let n=t.pop();if(n===this||n.cleanRaws===h.prototype.cleanRaws){if(c.prototype.cleanRaws.call(n,e),n.nodes)for(let e of n.nodes)t.push(e)}else n.cleanRaws(e)}}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map(e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e)):"every"===t||"some"===t?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)n=this.indexes[e],r0;){let e=t.pop();if(delete e.source,e.nodes){e.nodes=e.nodes.slice();for(let n of e.nodes)t.push(n)}}return e.slice()}(i(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new l(e)]}else if(e.selector||e.selectors)e=[new s(e)];else if(e.name)e=[new r(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new a(e)]}return e.map(e=>(e[A]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[u]&&function(e){let t=[e];for(;t.length>0;){let e=t.pop();if(e[u]=!1,e.proxyOf.nodes)for(let n of e.proxyOf.nodes)t.push(n)}}(e),e.raws||(e.raws={}),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){if(!this.proxyOf.nodes)return;let t=[{iterator:this.getIterator(),node:this.proxyOf}];for(;t.length>0;){let{iterator:n,node:r}=t[t.length-1],i=r.indexes[n];if(i>=r.proxyOf.nodes.length){delete r.indexes[n],t.pop();let e=t[t.length-1];e&&(e.node.indexes[e.iterator]+=1);continue}let o,s=r.proxyOf.nodes[i];try{o=e(s,i)}catch(e){throw s.addToError(e)}if(!1===o){for(let e of t)delete e.node.indexes[e.iterator];return!1}s.walk&&s.proxyOf.nodes?t.push({iterator:s.getIterator(),node:s}):r.indexes[n]+=1}}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("atrule"===e.type)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if("comment"===t.type)return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("decl"===e.type)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("rule"===e.type)return t(e,n)}))}}h.registerParse=e=>{i=e},h.registerRule=e=>{s=e},h.registerAtRule=e=>{r=e},h.registerRoot=e=>{o=e},e.exports=h,h.default=h,h.rebuild=e=>{let t=[e];for(;t.length>0;){let e=t.pop();if("atrule"===e.type?Object.setPrototypeOf(e,r.prototype):"rule"===e.type?Object.setPrototypeOf(e,s.prototype):"decl"===e.type?Object.setPrototypeOf(e,l.prototype):"comment"===e.type?Object.setPrototypeOf(e,a.prototype):"root"===e.type&&Object.setPrototypeOf(e,o.prototype),e[A]=!0,e.nodes)for(let n of e.nodes)t.push(n)}}},3614(e,t,n){"use strict";let r=n(8633),i=n(9746);class o extends Error{constructor(e,t,n,r,i,s){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),r&&(this.source=r),s&&(this.plugin=s),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,o)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=r.isColorSupported);let n=e=>e,o=e=>e,s=e=>e;if(e){let{bold:e,gray:t,red:a}=r.createColors(!0);o=t=>e(a(t)),n=e=>t(e),i&&(s=e=>i(e))}let a=t.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),u=String(c).length;return a.slice(l,c).map((e,t)=>{let r=l+1+t,i=" "+(" "+r).slice(-u)+" | ";if(r===this.line){if(e.length>160){let t=20,r=Math.max(0,this.column-t),a=Math.max(this.column+t,this.endColumn+t),l=e.slice(r,a),c=n(i.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,t-1)).replace(/[^\t]/g," ");return o(">")+n(i)+s(l)+"\n "+c+o("^")}let t=n(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(i)+s(e)+"\n "+t+o("^")}return" "+n(i)+s(e)}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=o,o.default=o},5238(e,t,n){"use strict";let r=n(3152);class i extends r{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}}e.exports=i,i.default=i},145(e,t,n){"use strict";let r,i,o=n(7793);class s extends o{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new r(new i,this,e).stringify()}}s.registerLazyResult=e=>{r=e},s.registerProcessor=e=>{i=e},e.exports=s,s.default=s},3438(e,t,n){"use strict";let r=n(396),i=n(9371),o=n(5238),s=n(1106),a=n(3878),l=n(5644),c=n(1534);function u(e,t){return e.inputs?e.inputs.map(e=>{let t={...e,__proto__:s.prototype};return t.map&&(t.map={...t.map,__proto__:a.prototype}),t}):t}function A(e,t,n){let s,a={...e};if(delete a.inputs,delete a.nodes,a.source){let{inputId:e,...n}=a.source;a.source=n,null!=e&&(a.source.input=t[e])}if("root"===a.type)s=new l(a);else if("decl"===a.type)s=new o(a);else if("rule"===a.type)s=new c(a);else if("comment"===a.type)s=new i(a);else{if("atrule"!==a.type)throw new Error("Unknown node type: "+e.type);s=new r(a)}if(n){s.nodes=n;for(let e of n)e.parent=s}return s}function h(e,t){if(Array.isArray(e))return e.map(e=>h(e));let n,r=[{childIndex:0,children:[],inputs:u(e,t),json:e}];for(;r.length>0;){let e=r[r.length-1],t=e.json.nodes;if(t&&e.childIndex0?r[r.length-1].children.push(i):n=i}return n}e.exports=h,h.default=h},1106(e,t,n){"use strict";let{nanoid:r}=n(5042),{isAbsolute:i,resolve:o}=n(197),{SourceMapConsumer:s,SourceMapGenerator:a}=n(1866),{fileURLToPath:l,pathToFileURL:c}=n(2739),u=n(3614),A=n(3878),h=n(9746),d=Symbol("lineToIndexCache"),p=Boolean(s&&a),f=Boolean(o&&i);function m(e){if(e[d])return e[d];let t=e.css.split("\n"),n=new Array(t.length),r=0;for(let e=0,i=t.length;e"),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,o,s,a,l;if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){a=e.offset;let r=this.fromOffset(a);t=r.line,n=r.col}else t=e.line,n=e.column,a=this.fromLineAndColumn(t,n);if("number"==typeof r.offset){s=r.offset;let e=this.fromOffset(s);o=e.line,i=e.col}else o=r.line,i=r.column,s=this.fromLineAndColumn(r.line,r.column)}else if(n)a=this.fromLineAndColumn(t,n);else{a=t;let e=this.fromOffset(a);t=e.line,n=e.col}let A=this.origin(t,n,o,i);return l=A?new u(e,void 0===A.endLine?A.line:{column:A.column,line:A.line},void 0===A.endLine?A.column:{column:A.endColumn,line:A.endLine},A.source,A.file,r.plugin):new u(e,void 0===o?t:{column:n,line:t},void 0===o?n:{column:i,line:o},this.css,this.file,r.plugin),l.input={column:n,endColumn:i,endLine:o,endOffset:s,line:t,offset:a,source:this.css},this.file&&(c&&(l.input.url=c(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(e,t){return m(this)[e-1]+t-1}fromOffset(e){let t=m(this),n=0;if(e>=t[t.length-1])n=t.length-1;else{let r,i=t.length-2;for(;n>1),e=t[r+1])){n=r;break}n=r+1}}return{col:e-t[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:o(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let o,s,a=this.map.consumer(),u=a.originalPositionFor({column:t-1,line:e});if(!u.source)return!1;if("number"==typeof n){let e=a.originalPositionFor({column:r-1,line:n});e.source&&(o=e)}s=i(u.source)?c(u.source):new URL(u.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let A={column:u.column+1,endColumn:o&&o.column+1,endLine:o&&o.line,line:u.line,url:s.toString()};if("file:"===s.protocol){if(!l)throw new Error("file: protocol is not available in this PostCSS build");A.file=l(s)}let h=a.sourceContentFor(u.source);return h&&(A.source=h),A}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}e.exports=g,g.default=g,h&&h.registerInput&&h.registerInput(g)},6966(e,t,n){"use strict";let r=n(7793),i=n(145),o=n(3604),s=n(9577),a=n(3717),l=n(5644),c=n(3303),{isClean:u,my:A}=n(4151);n(6156);const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},p={Once:!0,postcssPlugin:!0,prepare:!0};function f(e){return"object"==typeof e&&"function"==typeof e.then}function m(e){let t=!1,n=h[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function g(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:m(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function b(e){let t=[e];for(;t.length>0;){let e=t.pop();if(e[u]=!1,e.nodes)for(let n of e.nodes)t.push(n)}return e}let y={};class v{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,n){let i;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof v||t instanceof a)i=b(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=s;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{i=e(t,n)}catch(e){this.processed=!0,this.error=e}i&&!i[A]&&r.rebuild(i)}else i=b(t);this.result=new a(e,i,n),this.helpers={...y,postcss:y,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!d[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[n])if("object"==typeof t[n])for(let r in t[n])e(t,"*"===r?n:n+"-"+r.toLowerCase(),t[n][r]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e0;){let e=this.visitTick(t);if(f(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return f(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=c;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=this.result.root.source;if(void 0===e.map&&!(n&&n.input&&n.input.map)){let e="";return t(this.result.root,t=>{e+=t}),this.result.css=e,this.result}let r=new o(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(f(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[u];)e[u]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){let e;this.result.lastPlugin=n;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(f(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(r.length>0&&t.visitorIndex0;){let e=t[t.length-1],n=e.node;if(0!==e.iterator){let r,i=e.iterator;e.descending&&(e.descending=!1,n.indexes[i]+=1);let o=!1;for(;r=n.nodes[n.indexes[i]];){if(!r[u]){r[u]=!0,e.descending=!0,t.push({eventIndex:0,events:m(r),iterator:0,node:r}),o=!0;break}n.indexes[i]+=1}if(o)continue;e.iterator=0,delete n.indexes[i]}if(e.eventIndex{y=e},e.exports=v,v.default=v,l.registerLazyResult(v),i.registerLazyResult(v)},1752(e){"use strict";let t={comma:e=>t.split(e,[","],!0),space:e=>t.split(e,[" ","\n","\t"]),split(e,t,n){if("string"!=typeof e)return[];let r=[],i="",o=!1,s=0,a=!1,l="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:a?n===l&&(a=!1):'"'===n||"'"===n?(a=!0,l=n):"("===n?s+=1:")"===n?s>0&&(s-=1):0===s&&t.includes(n)&&(o=!0),o?(""!==i&&r.push(i.trim()),i="",o=!1):i+=n;return(n||""!==i)&&r.push(i.trim()),r}};e.exports=t,t.default=t},3604(e,t,n){"use strict";let{dirname:r,relative:i,resolve:o,sep:s}=n(197),{SourceMapConsumer:a,SourceMapGenerator:l}=n(1866),{pathToFileURL:c}=n(2739),u=n(1106),A=Boolean(a&&l),h=Boolean(r&&o&&i&&s);e.exports=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),i=e.root||r(e.file);!1===this.mapOpts.sourcesContent?(t=new a(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(i)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else if(this.css){let e;for(;-1!==(e=this.css.lastIndexOf("/*#"));){let t=this.css.indexOf("*/",e+3);if(-1===t)break;for(;e>0&&"\n"===this.css[e-1];)e--;this.css=this.css.slice(0,e)+this.css.slice(t+2)}}}generate(){if(this.clearAnnotation(),h&&A&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=l.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,n=1,r=1,i="",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(s,a,l)=>{if(this.css+=s,a&&"end"!==l&&(o.generated.line=n,o.generated.column=r-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,this.map.addMapping(o))),t=s.match(/\n/g),t?(n+=t.length,e=s.lastIndexOf("\n"),r=s.length-e):r+=s.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===e.last&&!e.raws.semicolon||(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=n,o.generated.column=r-2,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=n,o.generated.column=r-1,this.map.addMapping(o)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?r(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=r(o(n,this.mapOpts.annotation)));let s=i(n,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new u(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(c){let t=c(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===s&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}},4211(e,t,n){"use strict";let r=n(3604),i=n(9577),o=n(3717),s=n(3303);n(6156);class a{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=i;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i=s;this.result=new o(this._processor,void 0,this._opts),this.result.css=t;let a=this;Object.defineProperty(this.result,"root",{get:()=>a.root});let l=new r(i,void 0,this._opts,t);if(l.isMap()){let[e,t]=l.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}}e.exports=a,a.default=a},3152(e,t,n){"use strict";let r=n(3614),i=n(7668),o=n(3303),{isClean:s,my:a}=n(4151);function l(e,t){if(t&&void 0!==t.offset)return t.offset;let n=1,r=1,i=0;for(let o=0;o0;){let[e,t,n]=r.pop();for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;if("proxyCache"===i)continue;let o=e[i],s=typeof o;if("parent"===i&&"object"===s)n&&(t[i]=n);else if("source"===i)t[i]=o;else if(Array.isArray(o)){let e=[];t[i]=e;for(let n of o){let i=new n.constructor;e.push(i),r.push([n,i,t])}}else{if("object"===s&&null!==o){let e=new o.constructor;r.push([o,e,void 0]),o=e}t[i]=o}}}return n}(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new r(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markClean(){this[s]=!0}markDirty(){if(this[s]){this[s]=!1;let e=this;for(;e=e.parent;)e[s]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:l(t,this.source.start)};if(e.index)n=this.positionInside(e.index);else if(e.word){let r=t.slice(l(t,this.source.start),l(t,this.source.end)).indexOf(e.word);-1!==r&&(n=this.positionInside(r))}return n}positionInside(e){let t=this.source.start.column,n=this.source.start.line,r="document"in this.source.input?this.source.input.document:this.source.input.css,i=l(r,this.source.start),o=i+e;for(let e=i;ee.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=o){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,n={}){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}}e.exports=c,c.default=c},9577(e,t,n){"use strict";let r=n(7793),i=n(1106),o=n(8339);function s(e,t){let n=new i(e,t),r=new o(n);try{r.parse()}catch(e){throw e}return r.root}e.exports=s,s.default=s,r.registerParse(s)},8339(e,t,n){"use strict";let r=n(396),i=n(9371),o=n(5238),s=n(5644),a=n(1534),l=n(5781);const c={empty:!0,space:!0};function u(e,t,n){let r="";for(let i=t;i0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(l.length>0){for(i=l.length-1,n=l[i];n&&"space"===n[0];)n=l[--i];n&&(o.source.end=this.getPosition(n[3]||n[2]),o.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(o.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(o,"params",l),s&&(e=l[l.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),a&&(o.nodes=[],this.current=o)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let i=t-1;i>=0&&(n=e[i],"space"===n[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(e){let t,n,r,i=0;for(let[o,s]of e.entries()){if(n=s,r=n[0],"("===r&&(i+=1),")"===r&&(i-=1),0===i&&":"===r){if(t){if("word"===t[0]&&"progid"===t[1])continue;return o}this.doubleColon(n)}t=n}return!1}comment(e){let t=new i;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(n.trim()){let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}else t.text="",t.raws.left=n,t.raws.right=""}createTokenizer(){this.tokenizer=l(this.input)}decl(e,t){let n=new o;this.init(n,e[0][2]);let r=e[e.length-1];";"===r[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}(e)),n.source.end.offset++;let i=0;for(;"word"!==e[i][0];)i===e.length-1&&this.unknownWord([e[i]]),i++;n.raws.before+=u(e,0,i),n.source.start=this.getPosition(e[i][2]);let s=i;for(;i=0;t--){if(a=e[t],"!important"===a[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===a[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(i.trim().startsWith("!")&&"space"!==t)break;i=r.pop()[1]+i}i.trim().startsWith("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==a[0]&&"comment"!==a[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(n.raws.between+=A.map(e=>e[1]).join(""),A=[]),this.raw(n,"value",A.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new a;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],l=e;for(;l;){if(n=l[0],a.push(l),"("===n||"["===n)i||(i=l),o.push("("===n?")":"]");else if(s&&r&&"{"===n)i||(i=l),o.push("}");else if(0===o.length){if(";"===n){if(r)return void this.decl(a,s);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&r){if(!s)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,o,s,a,l=n.length,u="",A=!0;for(let e=0;ee+t[1],"");e.raws[t]={raw:r,value:u}}e[t]=u}rule(e){e.pop();let t=new a;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r(n||(n=i()),n)}),i.process=function(e,t,n){return C([i(n)]).process(e,t)},i},C.stringify=y,C.parse=p,C.fromJSON=c,C.list=h,C.comment=e=>new i(e),C.atRule=e=>new r(e),C.decl=e=>new a(e),C.rule=e=>new b(e),C.root=e=>new g(e),C.document=e=>new l(e),C.CssSyntaxError=s,C.Declaration=a,C.Container=o,C.Processor=f,C.Document=l,C.Comment=i,C.Warning=v,C.AtRule=r,C.Result=m,C.Input=u,C.Rule=b,C.Root=g,C.Node=d,A.registerPostcss(C),e.exports=C,C.default=C},3878(e,t,n){"use strict";let{existsSync:r,readFileSync:i,realpathSync:o}=n(9977),{dirname:s,isAbsolute:a,join:l,relative:c,sep:u}=n(197),{SourceMapConsumer:A,SourceMapGenerator:h}=n(1866);function d(e){try{return o(e)}catch{return e}}class p{constructor(e,t){if(!1===t.map)return;t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=s(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new A(this.json||this.text)),this.consumerCache}decodeInline(e){let t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));let n=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(n)return r=e.substr(n[0].length),Buffer?Buffer.from(r,"base64").toString():window.atob(r);var r;let i=e.slice(22);throw i=i.slice(0,i.indexOf(",")),new Error("Unsupported source map encoding "+i)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e,t,n){if(!n&&!this.unsafeMap){if(!/\.map$/i.test(e))return;if(!t)return;let n=c(d(s(t)),d(e));if(".."===n||n.startsWith(".."+u)||a(n))return}if(this.root=s(e),r(e))return this.mapFile=e,i(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof A)return h.fromSourceMap(t).toString();if(t instanceof h)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let t=this.loadFile(n,e,!0);if(!t)throw new Error("Unable to load previous source map: "+n.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;e&&(t=l(s(e),t));let n=this.loadFile(t,e,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=p,p.default=p},6846(e,t,n){"use strict";let r=n(145),i=n(6966),o=n(4211),s=n(5644);class a{constructor(e=[]){this.version="8.5.26",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new i(this,e,t):new o(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=a,a.default=a,s.registerProcessor(a),r.registerProcessor(a)},3717(e,t,n){"use strict";let r=n(38);class i{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new r(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>"warning"===e.type)}}e.exports=i,i.default=i},5644(e,t,n){"use strict";let r,i,o=n(7793);class s extends o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=new Set;for(let t of Array.isArray(e)?e:[e])t&&"object"==typeof t&&!t.parent&&t.raws&&void 0!==t.raws.before&&r.add(t.raws);let i=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of i)r.has(e.raws)||(e.raws.before=t.raws.before);return i}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new r(new i,this,e).stringify()}}s.registerLazyResult=e=>{r=e},s.registerProcessor=e=>{i=e},e.exports=s,s.default=s,o.registerRoot(s)},1534(e,t,n){"use strict";let r=n(7793),i=n(1752);class o extends r{get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}}e.exports=o,o.default=o,r.registerRule(o)},7668(e){"use strict";const t=/(<)(\/?style\b)/gi,n=/(<)(!--)/g,r=/[\t\n\f\r "#'()/;[\\\]{}]/;function i(e){return"string"!=typeof e?e:e.includes("<")?e.replace(t,"\\3c $2").replace(n,"\\3c $2"):e}const o={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function s(e,t){let n="@"+t.name,i=t.params?e.rawValue(t,"params"):"",o=t.raws.afterName;return void 0===o?o=i?" ":"":""===o&&i&&!r.test(i[0])&&(o=" "),n+o+i}function a(e,t,n){let r=n.nodes,i=r.length-1;for(;i>0&&"comment"===r[i].type;)i-=1;let o=e.raw(n,"semicolon"),s="document"===n.type;for(let e=r.length-1;e>=0;e--){let n=r[e],a=i!==e||o;!a&&e{let t=s?e.raw(n,"after"):e.raw(n,"after","emptyBody");t&&e.builder(i(t)),e.builder("}",n,"end"),"rule"===n.type&&n.raws.ownSemicolon&&e.builder(i(n.raws.ownSemicolon),n,"end")};s?(t.push(l),a(e,t,n)):l()}class c{constructor(e){this.builder=e}atrule(e,t){let n=s(this,e);if(e.nodes)this.block(e,n);else{let r=(e.raws.between||"")+(t?";":"");this.builder(i(n+r),e)}}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;ethis[e]===t[e]),r=[];for(a(this,r,e);r.length>0;){let e=r.pop();if("function"==typeof e){e();continue}let t=e.node,o=this.raw(t,"before");o&&this.builder(e.document?o:i(o)),n&&"rule"===t.type?l(this,r,t,this.rawValue(t,"selector")):n&&"atrule"===t.type&&t.nodes?l(this,r,t,s(this,t)):this.stringify(t,e.semicolon)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder(i("/*"+t+e.text+n+"*/"),e)}decl(e,t){let n=e.raws,r=this.raw(e,"between","colon"),o=e.prop+r+this.rawValue(e,"value");e.important&&(o+=n.important||" !important"),t&&(o+=";"),this.builder(i(o),e)}document(e){this.body(e)}raw(e,t,n){let r;if(n||(n=t),t&&(r=e.raws[t],void 0!==r))return r;let i=e.parent;if("before"===n){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return o[n];let s=e.root(),a=s.rawCache||(s.rawCache={});if(void 0!==a[n])return a[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let i="raw"+((l=n)[0].toUpperCase()+l.slice(1));this[i]?r=this[i](s,e):s.walk(e=>{if(r=e.raws[t],void 0!==r)return!1})}var l;return void 0===r&&(r=o[n]),a[n]=r,r}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){if(e.source&&e.source.input.hasBOM&&this.builder("\ufeff",e,"start"),this.body(e),e.raws.after){let t=e.raws.after,n=e.parent&&"document"===e.parent.type;this.builder(n?t:i(t))}}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(i(e.raws.ownSemicolon),e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}e.exports=c,c.default=c},3303(e,t,n){"use strict";let r=n(7668);function i(e,t){new r(t).stringify(e)}e.exports=i,i.default=i},4151(e){"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},5781(e){"use strict";const t="'".charCodeAt(0),n='"'.charCodeAt(0),r="\\".charCodeAt(0),i="/".charCodeAt(0),o="\n".charCodeAt(0),s=" ".charCodeAt(0),a="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),u="[".charCodeAt(0),A="]".charCodeAt(0),h="(".charCodeAt(0),d=")".charCodeAt(0),p="{".charCodeAt(0),f="}".charCodeAt(0),m=";".charCodeAt(0),g="*".charCodeAt(0),b=":".charCodeAt(0),y="@".charCodeAt(0),v=/[\t\n\f\r "#'()/;[\\\]{}]/g,C=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,I=/[\da-f]/i;e.exports=function(e,x={}){let S,B,E,k,D,O,N,F,M,R,Q=e.css.valueOf(),V=x.ignoreErrors,T=Q.length,G=0,W=[],K=[],Y=-1;function P(t){throw e.error("Unclosed "+t,G)}return{back:function(e){K.push(e)},endOfFile:function(){return 0===K.length&&G>=T},nextToken:function(e){if(K.length)return K.pop();if(G>=T)return;let x=!!e&&e.ignoreUnclosed;switch(S=Q.charCodeAt(G),S){case o:case s:case l:case c:case a:k=G;do{k+=1,S=Q.charCodeAt(k)}while(S===s||S===o||S===l||S===c||S===a);O=["space",Q.slice(G,k)],G=k-1;break;case u:case A:case p:case f:case b:case m:case d:{let e=String.fromCharCode(S);O=[e,e,G];break}case h:if(R=W.length?W.pop()[1]:"",M=Q.charCodeAt(G+1),"url"===R&&M!==t&&M!==n&&M!==s&&M!==o&&M!==l&&M!==a&&M!==c){k=G;do{if(N=!1,k=Q.indexOf(")",k+1),-1===k){if(V||x){k=G;break}P("bracket")}for(F=k;Q.charCodeAt(F-1)===r;)F-=1,N=!N}while(N);O=["brackets",Q.slice(G,k+1),G,k],G=k}else G<=Y?O=["(","(",G]:(k=Q.indexOf(")",G+1),B=Q.slice(G,k+1),-1===k||w.test(B)?(Y=-1===k?T:k,O=["(","(",G]):(O=["brackets",B,G,k],G=k));break;case t:case n:D=S===t?"'":'"',k=G;do{if(N=!1,k=Q.indexOf(D,k+1),-1===k){if(V||x){k=G+1;break}P("string")}for(F=k;Q.charCodeAt(F-1)===r;)F-=1,N=!N}while(N);O=["string",Q.slice(G,k+1),G,k],G=k;break;case y:v.lastIndex=G+1,v.test(Q),k=0===v.lastIndex?Q.length-1:v.lastIndex-2,O=["at-word",Q.slice(G,k+1),G,k],G=k;break;case r:for(k=G,E=!0;Q.charCodeAt(k+1)===r;)k+=1,E=!E;if(S=Q.charCodeAt(k+1),E&&S!==i&&S!==s&&S!==o&&S!==l&&S!==c&&S!==a&&(k+=1,I.test(Q.charAt(k)))){for(;I.test(Q.charAt(k+1));)k+=1;Q.charCodeAt(k+1)===s&&(k+=1)}O=["word",Q.slice(G,k+1),G,k],G=k;break;default:S===i&&Q.charCodeAt(G+1)===g?(k=Q.indexOf("*/",G+2)+1,0===k&&(V||x?k=Q.length:P("comment")),O=["comment",Q.slice(G,k+1),G,k],G=k):(C.lastIndex=G+1,C.test(Q),k=0===C.lastIndex?Q.length-1:C.lastIndex-2,O=["word",Q.slice(G,k+1),G,k],W.push(O),G=k)}return G++,O},position:function(){return G}}}},6156(e){"use strict";let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},38(e,t,n){"use strict";let r=n(7793),{my:i}=n(4151);class o{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){t.node[i]||r.rebuild(t.node);let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=o,o.default=o},2694(e,t,n){"use strict";var r=n(6925);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4210(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n]+$/;function m(e,t,n){if(null==e)return"";"number"==typeof e&&(e=e.toString());let b="",y="";function v(e,t){const n=this;this.tag=e,this.attribs=t||{},this.tagPosition=b.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(N.length){N[N.length-1].text+=n.text}},this.updateParentNodeMediaChildren=function(){if(N.length&&u.includes(this.tag)){N[N.length-1].mediaChildren.push(this.tag)}}}(t=Object.assign({},m.defaults,t)).parser=Object.assign({},g,t.parser);const C=function(e){return!1===t.allowedTags||(t.allowedTags||[]).indexOf(e)>-1};A.forEach(function(e){C(e)&&!t.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)});const w=t.nonTextTags||["script","style","textarea","option","xmp"];let I,x;t.allowedAttributes&&(I={},x={},h(t.allowedAttributes,function(e,t){I[t]=[];const n=[];e.forEach(function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):I[t].push(e)}),n.length&&(x[t]=new RegExp("^("+n.join("|")+")$"))}));const S={},B={},E={};h(t.allowedClasses,function(e,t){if(I&&(d(I,t)||(I[t]=[]),I[t].push("class")),S[t]=e,Array.isArray(e)){const n=[];S[t]=[],E[t]=[],e.forEach(function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):e instanceof RegExp?E[t].push(e):S[t].push(e)}),n.length&&(B[t]=new RegExp("^("+n.join("|")+")$"))}});const k={};let D,O,N,F,M,R,Q;h(t.transformTags,function(e,t){let n;"function"==typeof e?n=e:"string"==typeof e&&(n=m.simpleTransform(e)),"*"===t?D=n:k[t]=n});let V=!1;G();const T=new r.Parser({onopentag:function(e,n){if(t.onOpenTag&&t.onOpenTag(e,n),t.enforceHtmlBoundary&&"html"===e&&G(),R)return void Q++;const r=new v(e,n);N.push(r);let i=!1;const c=!!r.text;let u;if(d(k,e)&&(u=k[e](e,n),r.attribs=n=u.attribs,void 0!==u.text&&(r.innerText=u.text),e!==u.tagName&&(r.name=e=u.tagName,M[O]=u.tagName)),D&&(u=D(e,n),r.attribs=n=u.attribs,e!==u.tagName&&(r.name=e=u.tagName,M[O]=u.tagName)),(!C(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(const t in e)if(d(e,t))return!1;return!0}(F)||null!=t.nestingLimit&&O>=t.nestingLimit)&&(i=!0,F[O]=!0,"discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||-1!==w.indexOf(e)&&(R=!0,Q=1)),O++,i){if("discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode){if(r.innerText&&!c){const n=W(r.innerText);t.textFilter?b+=t.textFilter(n,e):b+=n,V=!0}return}y=b,b=""}b+="<"+e,"script"===e&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(r.innerText="");if(i&&("escape"===t.disallowedTagsMode||"recursiveEscape"===t.disallowedTagsMode)&&t.preserveEscapedAttributes?h(n,function(e,t){b+=" "+t+'="'+W(e||"",!0)+'"'}):(!I||d(I,e)||I["*"])&&h(n,function(n,i){if(!f.test(i))return void delete r.attribs[i];if(""===n&&!t.allowedEmptyAttributes.includes(i)&&(t.nonBooleanAttributes.includes(i)||t.nonBooleanAttributes.includes("*")))return void delete r.attribs[i];let c=!1;if(!I||d(I,e)&&-1!==I[e].indexOf(i)||I["*"]&&-1!==I["*"].indexOf(i)||d(x,e)&&x[e].test(i)||x["*"]&&x["*"].test(i))c=!0;else if(I&&I[e])for(const t of I[e])if(o(t)&&t.name&&t.name===i){c=!0;let e="";if(!0===t.multiple){const r=n.split(" ");for(const n of r)-1!==t.values.indexOf(n)&&(""===e?e=n:e+=" "+n)}else t.values.indexOf(n)>=0&&(e=n);n=e}if(c){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(i)&&K(e,n))return void delete r.attribs[i];if("script"===e&&"src"===i){let e=!0;try{const r=Y(n);if(t.allowedScriptHostnames||t.allowedScriptDomains){const n=(t.allowedScriptHostnames||[]).find(function(e){return e===r.url.hostname}),i=(t.allowedScriptDomains||[]).find(function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)});e=n||i}}catch(t){e=!1}if(!e)return void delete r.attribs[i]}if("iframe"===e&&"src"===i){let e=!0;try{const r=Y(n);if(r.isRelativeUrl)e=d(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const n=(t.allowedIframeHostnames||[]).find(function(e){return e===r.url.hostname}),i=(t.allowedIframeDomains||[]).find(function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)});e=n||i}}catch(t){e=!1}if(!e)return void delete r.attribs[i]}if("srcset"===i||"imagesrcset"===i)try{let e=a(n);if(e.forEach(function(e){K(i,e.url)&&(e.evil=!0)}),e=p(e,function(e){return!e.evil}),!e.length)return void delete r.attribs[i];n=p(e,function(e){return!e.evil}).map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", "),r.attribs[i]=n}catch(e){return void delete r.attribs[i]}if("class"===i){const t=S[e],o=S["*"],a=B[e],l=E[e],c=E["*"],u=[a,B["*"]].concat(l,c).filter(function(e){return e});if(!(n=P(n,t&&o?s(t,o):t||o,u)).length)return void delete r.attribs[i]}if("style"===i)if(t.parseStyleAttributes)try{const o=function(e,t){if(!t)return e;const n=e.nodes[0];let r;r=t[n.selector]&&t["*"]?s(t[n.selector],t["*"]):t[n.selector]||t["*"];r&&(e.nodes[0].nodes=n.nodes.reduce(function(e){return function(t,n){if(d(e,n.prop)){e[n.prop].some(function(e){return e.test(n.value)})&&t.push(n)}return t}}(r),[]));return e}(l(e+" {"+n+"}",{map:!1}),t.allowedStyles);if(n=function(e){return e.nodes[0].nodes.reduce(function(e,t){return e.push(`${t.prop}:${t.value}${t.important?" !important":""}`),e},[]).join(";")}(o),0===n.length)return void delete r.attribs[i]}catch(t){return"undefined"!=typeof window&&console.warn('Failed to parse "'+e+" {"+n+"}\", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547"),void delete r.attribs[i]}else if(t.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");b+=" "+i,n&&n.length?b+='="'+W(n,!0)+'"':t.allowedEmptyAttributes.includes(i)&&(b+='=""')}else delete r.attribs[i]}),-1!==t.selfClosing.indexOf(e))b+=" />";else if(b+=">",r.innerText&&!c){const n=W(r.innerText);t.textFilter?b+=t.textFilter(n,e):b+=n,V=!0}i&&(b=y+W(b),y=""),r.openingTagLength=b.length-r.tagPosition},ontext:function(e){if(R)return;const n=N[N.length-1];let r;if(n&&(r=n.tag,e=void 0!==n.innerText?n.innerText:e),"completelyDiscard"!==t.disallowedTagsMode||C(r))if(!r||!C(r)||"discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||"script"!==r&&"style"!==r)if(!r||!C(r)||"discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||"textarea"!==r&&"xmp"!==r){if(!V){const n=W(e,!1);t.textFilter?b+=t.textFilter(n,r):b+=n}}else b+="xmp"===r?e.replace(//g,">"):W(e,!1);else b+=e;else e="";if(N.length){N[N.length-1].text+=e}},onclosetag:function(e,n){if(t.onCloseTag&&t.onCloseTag(e,n),R){if(Q--,Q)return;R=!1}const r=N.pop();if(!r)return;if(r.tag!==e)return void N.push(r);R=!!t.enforceHtmlBoundary&&"html"===e,O--;const i=F[O];if(i){if(delete F[O],"discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode)return void r.updateParentNodeText();y=b,b=""}if(M[O]&&(e=M[O],delete M[O]),t.exclusiveFilter){const e=t.exclusiveFilter(r);if("excludeTag"===e)return i&&(b=y,y=""),void(b=b.substring(0,r.tagPosition)+b.substring(r.tagPosition+r.openingTagLength));if(e)return void(b=b.substring(0,r.tagPosition))}r.updateParentNodeMediaChildren(),r.updateParentNodeText(),-1!==t.selfClosing.indexOf(e)||n&&!C(e)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0?i&&(b=y,y=""):(b+=""+e+">",i&&(b=y+W(b),y=""),V=!1)}},t.parser);if(T.write(e),T.end(),"escape"===t.disallowedTagsMode||"recursiveEscape"===t.disallowedTagsMode){const t=T.endIndex;if(null!=t&&t>=0&&t0&&""===b&&(b=W(e))}return b;function G(){b="",O=0,N=[],F={},M={},R=!1,Q=0}function W(e,n){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&").replace(//g,">"),n&&(e=e.replace(/"/g,"""))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">"),n&&(e=e.replace(/"/g,""")),e}function K(e,n){const r=d(t.allowedSchemesByTag,e)?t.allowedSchemesByTag[e]:t.allowedSchemes||[];return c(n,{allowedSchemes:r,allowProtocolRelative:t.allowProtocolRelative})}function Y(e){if((e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let t="relative://relative-site";for(let e=0;e<100;e++)t+=`/${e}`;const n=new URL(e,t);return{isRelativeUrl:n&&"relative-site"===n.hostname&&"relative:"===n.protocol,url:n}}function P(e,t,n){return t?(e=e.split(/\s+/)).filter(function(e){return-1!==t.indexOf(e)||n.some(function(t){return t.test(e)})}).join(" "):e}}const g={decodeEntities:!0};m.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta","col"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite","action","formaction","data","xlink:href","poster","background","ping","longdesc","usemap","codebase","classid","archive","profile","manifest","itemid","dynsrc","lowsrc"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1},m.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(r,i){let o;if(n)for(o in t)i[o]=t[o];else i=t;return{tagName:e,attribs:i}}}},5229(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=r(n(9108)),o=n(8917);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,i.default)(e,function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)}),n):n}},8917(e,t){"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||i.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(o,l)).replace(r,a))}},9108(e,t,n){var r=n(9788);e.exports=function(e,t){var n,i=null;if(!e||"string"!=typeof e)return i;for(var o,s,a=r(e),l="function"==typeof t,c=0,u=a.length;c{let t="",n=0|e;for(;n-- >0;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=0|n;for(;i-- >0;)r+=e[Math.random()*e.length|0];return r}}},4559(e,t,n){"use strict";n.d(t,{Parser:()=>W});const r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var i,o;!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.FLAG13=8192]="FLAG13",e[e.BRANCH_LENGTH=8064]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(i||(i={})),function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(o||(o={}));function s(e){return e>=o.ZERO&&e<=o.NINE}function a(e){return e>=o.UPPER_A&&e<=o.UPPER_F||e>=o.LOWER_A&&e<=o.LOWER_F}function l(e){return e===o.EQUALS||function(e){return e>=o.UPPER_A&&e<=o.UPPER_Z||e>=o.LOWER_A&&e<=o.LOWER_Z||s(e)}(e)}var c,u;!function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(c||(c={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(u||(u={}));class A{decodeTree;emitCodePoint;errors;constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n}state=c.EntityStart;consumed=1;result=0;treeIndex=0;excess=1;decodeMode=u.Strict;runConsumed=0;startEntity(e){this.decodeMode=e,this.state=c.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case c.EntityStart:return e.charCodeAt(t)===o.NUM?(this.state=c.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=c.NamedEntity,this.stateNamedEntity(e,t));case c.NumericStart:return this.stateNumericStart(e,t);case c.NumericDecimal:return this.stateNumericDecimal(e,t);case c.NumericHex:return this.stateNumericHex(e,t);case c.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===o.LOWER_X?(this.state=c.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=c.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){for(;t=55296&&n<=57343||n>1114111?65533:r.get(n)??n,this.consumed),this.errors&&(e!==o.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],s=(r&i.VALUE_LENGTH)>>14;for(;t>7;if(0===this.runConsumed){const n=r&i.JUMP_TABLE;if(e.charCodeAt(t)!==n)return 0===this.result?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}for(;this.runConsumed=e.length)return-1;const r=this.runConsumed-1,i=n[this.treeIndex+1+(r>>1)],o=r%2==0?255&i:i>>8&255;if(e.charCodeAt(t)!==o)return this.runConsumed=0,0===this.result?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(o>>1),r=n[this.treeIndex],s=(r&i.VALUE_LENGTH)>>14}if(t>=e.length)break;const a=e.charCodeAt(t);if(a===o.SEMI&&0!==s&&0!==(r&i.FLAG13))return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);if(this.treeIndex=h(n,r,this.treeIndex+Math.max(1,s),a),this.treeIndex<0)return 0===this.result||this.decodeMode===u.Attribute&&(0===s||l(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],s=(r&i.VALUE_LENGTH)>>14,0!==s){if(a===o.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==u.Strict&&0===(r&i.FLAG13)&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}t++,this.excess++}return-1}emitNotTerminatedNamedEntity(){const{result:e,decodeTree:t}=this,n=(t[e]&i.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,n,this.consumed),this.errors?.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~(i.VALUE_LENGTH|i.FLAG13):r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){switch(this.state){case c.NamedEntity:return 0===this.result||this.decodeMode===u.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case c.NumericDecimal:return this.emitNumericEntity(0,2);case c.NumericHex:return this.emitNumericEntity(0,3);case c.NumericStart:return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case c.EntityStart:return 0}}}function h(e,t,n,r){const o=(t&i.BRANCH_LENGTH)>>7,s=t&i.JUMP_TABLE;if(0===o)return 0!==s&&r===s?n:-1;if(s){const t=r-s;return t<0||t>=o?-1:e[n+t]-1}const a=o+1>>1;let l=0,c=o-1;for(;l<=c;){const t=l+c>>>1,i=e[n+(t>>1)]>>8*(1&t)&255;if(ir))return e[n+a+t];c=t-1}}return-1}function d(e){const t=atob(e),n=-2&t.length,r=new Uint16Array(n/2);for(let e=0,i=0;ethis.emitCodePoint(e,t))}reset(){this.state=g.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=g.Text,this.isSpecial=!1,this.currentSequence=C.Empty,this.sequenceIndex=0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=g.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===m.Amp&&this.startEntity()}currentSequence=C.Empty;sequenceIndex=0;enterTagBody(){this.currentSequence===C.Plaintext?(this.currentSequence=C.Empty,this.state=g.InPlainText):this.isSpecial?(this.state=g.InSpecialTag,this.sequenceIndex=0):this.state=g.Text}stateSpecialStartSequence(e){const t=32|e;if(this.sequenceIndex=m.LowerA&&e<=m.LowerZ||e>=m.UpperA&&e<=m.UpperZ}(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(v(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=0)this.state=this.baseState,0===t&&(this.index-=1);else{if(e=e))switch(this.state){case g.InTagName:case g.BeforeAttributeName:case g.BeforeAttributeValue:case g.AfterAttributeName:case g.InAttributeName:case g.InAttributeValueSq:case g.InAttributeValueDq:case g.InAttributeValueNq:case g.InClosingTagName:break;default:this.cbs.ontext(this.sectionStart,e)}}emitCodePoint(e,t){this.baseState!==g.Text&&this.baseState!==g.InSpecialTag?(this.sectionStart1){const e=V.get(n);if(void 0!==e&&this.stack.includes(e))return e}return this.isInForeignContext()?n:"image"===n?"img":n}onopentagname(e,t){this.endIndex=t,this.emitOpenTag(this.readTagName(e,t))}emitOpenTag(e){if(this.openTagStart=this.startIndex,this.tagname=e,this.htmlMode&&"form"===e&&this.stack.includes("form"))return void(this.tagname="");const t=this.htmlMode&&N.get(e);if(t)for(;this.stack.length>0&&t.has(this.stack[0]);)this.popElement(!0);this.isVoidElement(e)||(this.stack.unshift(e),this.htmlMode&&("svg"===e?this.foreignContext.unshift(T.Svg):"math"===e?this.foreignContext.unshift(T.MathML):Q.has(e)&&this.foreignContext.unshift(T.None))),this.cbs.onopentagname?.(e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){this.startIndex=this.openTagStart,this.attribs&&(this.cbs.onopentag?.(this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){this.endIndex=t;const n=this.readTagName(e,t);if(this.isVoidElement(n))this.htmlMode&&"br"===n&&(this.cbs.onopentagname?.("br"),this.cbs.onopentag?.("br",{},!0),this.cbs.onclosetag?.("br",!1));else{const e=this.stack.indexOf(n);if(-1!==e){for(let t=0;t=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){this.ended?this.cbs.onerror?.(new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))}end(e){this.ended?this.cbs.onerror?.(new Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{if(Array.isArray(t))for(var r=0;rObject.prototype.hasOwnProperty.call(e,t),n.cjs=e=>{const t={exports:{}};return e.call(t.exports,t,t.exports),t.exports},n.nc=void 0;n(2757)})();
\ No newline at end of file
+(()=>{var e={2757(e,t,n){"use strict";const r=window.wp.blocks;const i=function(e){var t=e.namespace,n=e.title,i=e.icon;(0,r.registerBlockCollection)(t,{title:n,icon:i})};function o(e){return o="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},o(e)}function s(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}function a(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=n(6614);l.domToReact,l.htmlToDOM,l.attributesToProps,l.Element;const c=l;function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);n0?G(j,--Z):0,U--,10===J&&(U=1,H--),J}function q(){return J=Z2||ne(J)>3?"":" "}function ae(e,t){for(;--t&&q()&&!(J<48||J>102||J>57&&J<65||J>70&&J<97););return te(e,ee()+(t<6&&32==$()&&32==q()))}function le(e){for(;q();)switch(J){case e:return Z;case 34:case 39:34!==e&&39!==e&&le(J);break;case 40:41===e&&le(e);break;case 92:q()}return Z}function ce(e,t){for(;q()&&e+J!==57&&(e+J!==84||47!==$()););return"/*"+te(t,Z-1)+"*"+M(47===e?e:q())}function ue(e){for(;!ne($());)q();return te(e,Z)}var Ae="-ms-",he="-moz-",de="-webkit-",pe="comm",fe="rule",me="decl",ge="@keyframes";function be(e,t){for(var n="",r=Y(e),i=0;i0&&K(I)-A&&P(d>32?xe(I+";",r,n,A-1):xe(V(I," ","")+";",r,n,A-2),l);break;case 59:I+=";";default:if(P(w=we(I,t,n,c,u,i,a,y,v=[],C=[],A),o),123===b)if(0===u)Ce(I,t,w,w,v,o,A,a,C);else switch(99===h&&110===G(I,3)?100:h){case 100:case 108:case 109:case 115:Ce(e,w,w,r&&P(we(e,w,w,0,0,i,a,y,i,v=[],A),C),i,C,A,a,r?v:C);break;default:Ce(I,w,w,w,[""],C,0,a,C)}}c=u=d=0,f=g=1,y=I="",A=s;break;case 58:A=1+K(I),d=p;default:if(f<1)if(123==b)--f;else if(125==b&&0==f++&&125==z())continue;switch(I+=M(b),b*f){case 38:g=u>0?1:(I+="\f",-1);break;case 44:a[c++]=(K(I)-1)*g,g=1;break;case 64:45===$()&&(I+=oe(q())),h=$(),u=A=K(y=I+=ue(ee())),b++;break;case 45:45===p&&2==K(I)&&(f=0)}}return o}function we(e,t,n,r,i,o,s,a,l,c,u){for(var A=i-1,h=0===i?o:[""],d=Y(h),p=0,f=0,m=0;p0?h[g]+" "+b:V(b,/&\f/g,h[g])))&&(l[m++]=y);return _(e,t,n,0===i?fe:a,l,c,u)}function Ie(e,t,n){return _(e,t,n,pe,M(J),W(e,2,-2),0)}function xe(e,t,n,r){return _(e,t,n,me,W(e,0,r),W(e,r+1,-1),r)}var Se=function(e,t,n){for(var r=0,i=0;r=i,i=$(),38===r&&12===i&&(t[n]=1),!ne(i);)q();return te(e,Z)},Be=function(e,t){return ie(function(e,t){var n=-1,r=44;do{switch(ne(r)){case 0:38===r&&12===$()&&(t[n]=1),e[n]+=Se(Z-1,t,n);break;case 2:e[n]+=oe(r);break;case 4:if(44===r){e[++n]=58===$()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=M(r)}}while(r=q());return e}(re(e),t))},Ee=new WeakMap,ke=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Ee.get(n))&&!r){Ee.set(e,!0);for(var i=[],o=Be(t,i),s=n.props,a=0,l=0;a6)switch(G(e,t+1)){case 109:if(45!==G(e,t+4))break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+de+"$2-$3$1"+he+(108==G(e,t+3)?"$3":"$2-$3"))+e;case 115:return~T(e,"stretch")?Oe(V(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==G(e,t+1))break;case 6444:switch(G(e,K(e)-3-(~T(e,"!important")&&10))){case 107:return V(e,":",":"+de)+e;case 101:return V(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+de+(45===G(e,14)?"inline-":"")+"box$3$1"+de+"$2$3$1"+Ae+"$2box$3")+e}break;case 5936:switch(G(e,t+11)){case 114:return de+e+Ae+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return de+e+Ae+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return de+e+Ae+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return de+e+Ae+e+e}return e}var Ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case me:e.return=Oe(e.value,e.length);break;case ge:return be([X(e,{value:V(e.value,"@","@"+de)})],r);case fe:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return be([X(e,{props:[V(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return be([X(e,{props:[V(t,/:(plac\w+)/,":"+de+"input-$1")]}),X(e,{props:[V(t,/:(plac\w+)/,":-moz-$1")]}),X(e,{props:[V(t,/:(plac\w+)/,Ae+"input-$1")]})],r)}return""})}}],Fe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,i,o=e.stylisPlugins||Ne,s={},a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:He}}var Ze=!!d.useInsertionEffect&&d.useInsertionEffect,Je=Ze||function(e){return e()},je=(Ze||d.useLayoutEffect,d.createContext("undefined"!=typeof HTMLElement?Fe({key:"css"}):null)),_e=(je.Provider,function(e){return(0,d.forwardRef)(function(t,n){var r=(0,d.useContext)(je);return e(t,r,n)})}),Xe=d.createContext({});var ze,qe,$e={}.hasOwnProperty,et="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",tt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Me(t,n,r),Je(function(){return function(e,t,n){Me(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(t,n,r)}),null},nt=_e(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[et],o=[r],s="";"string"==typeof e.className?s=function(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}(t.registered,o,e.className):null!=e.className&&(s=e.className+" ");var a=Le(o,void 0,d.useContext(Xe));s+=t.key+"-"+a.name;var l={};for(var c in e)$e.call(e,c)&&"css"!==c&&c!==et&&(l[c]=e[c]);return l.className=s,n&&(l.ref=n),d.createElement(d.Fragment,null,d.createElement(tt,{cache:t,serialized:a,isStringTag:"string"==typeof i}),d.createElement(i,l))}),rt=nt,it=(n(4146),function(e,t){var n=arguments;if(null==t||!$e.call(t,"css"))return d.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=rt,i[1]=function(e,t){var n={};for(var r in t)$e.call(t,r)&&(n[r]=t[r]);return n[et]=e,n}(e,t);for(var o=2;o({x:e,y:e});function ht(){return"undefined"!=typeof window}function dt(e){return mt(e)?(e.nodeName||"").toLowerCase():"#document"}function pt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ft(e){var t;return null==(t=(mt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function mt(e){return!!ht()&&(e instanceof Node||e instanceof pt(e).Node)}function gt(e){return!!ht()&&(e instanceof Element||e instanceof pt(e).Element)}function bt(e){return!!ht()&&(e instanceof HTMLElement||e instanceof pt(e).HTMLElement)}function yt(e){return!(!ht()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof pt(e).ShadowRoot)}function vt(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=xt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}let Ct;function wt(){return null==Ct&&(Ct="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ct}function It(e){return/^(html|body|#document)$/.test(dt(e))}function xt(e){return pt(e).getComputedStyle(e)}function St(e){if("html"===dt(e))return e;const t=e.assignedSlot||e.parentNode||yt(e)&&e.host||ft(e);return yt(t)?t.host:t}function Bt(e){const t=St(e);return It(t)?(e.ownerDocument||e).body:bt(t)&&vt(t)?t:Bt(t)}function Et(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Bt(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),s=pt(i);if(o){const e=kt(s);return t.concat(s,s.visualViewport||[],vt(i)?i:[],e&&n?Et(e):[])}return t.concat(i,Et(i,[],n))}function kt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dt(e){const t=xt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=bt(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=ct(n)!==o||ct(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Ot(e){return gt(e)?e:e.contextElement}function Nt(e){const t=Ot(e);if(!bt(t))return At(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Dt(t);let s=(o?ct(n.width):n.width)/r,a=(o?ct(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Ft=At(0);function Mt(e){const t=pt(e);return wt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ft}function Rt(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=Ot(e);let s=At(1);t&&(r?gt(r)&&(s=Nt(r)):s=Nt(e));const a=function(e,t,n){return void 0===t&&(t=!1),!!n&&t&&n===pt(e)}(o,n,r)?Mt(o):At(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,A=i.height/s.y;if(o&&r){const e=pt(o),t=gt(r)?pt(r):r;let n=e,i=kt(n);for(;i&&t!==n;){const e=Nt(i),t=i.getBoundingClientRect(),r=xt(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,A*=e.y,l+=o,c+=s,n=pt(i),i=kt(n)}}return function(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}({width:u,height:A,x:l,y:c})}function Qt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Vt(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Ot(e),u=i||o?[...c?Et(c):[],...t?Et(t):[]]:[];u.forEach(e=>{i&&e.addEventListener("scroll",n),o&&e.addEventListener("resize",n)});const A=c&&a?function(e,t,n){let r,i=null;const o=ft(e);function s(){var e;clearTimeout(r),null==(e=i)||e.disconnect(),i=null}function a(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),s();const c=e.getBoundingClientRect(),{left:u,top:A,width:h,height:d}=c;if(n||t(),!h||!d)return;const p={rootMargin:-ut(A)+"px "+-ut(o.clientWidth-(u+h))+"px "+-ut(o.clientHeight-(A+d))+"px "+-ut(u)+"px",threshold:lt(0,at(1,l))||1};let f=!0;function m(t){const n=t[0].intersectionRatio;if(!Qt(c,e.getBoundingClientRect()))return a();if(n!==l){if(!f)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}f=!1}try{i=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(m,p)}i.observe(e)}const l=pt(e),c=()=>a(n);return l.addEventListener("resize",c),a(!0),()=>{l.removeEventListener("resize",c),s()}}(c,n,o):null;let h,d=-1,p=null;s&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!l&&p.observe(c),t&&p.observe(t));let f=l?Rt(e):null;return l&&function t(){const r=Rt(e);f&&!Qt(f,r)&&n();f=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==A||A(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(h)}}var Tt=d.useLayoutEffect,Gt=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Wt=function(){};function Kt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Yt(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1}function Zt(e){return Lt(e)?window.pageYOffset:e.scrollTop}function Jt(e,t){Lt(e)?window.scrollTo(0,t):e.scrollTop=t}function jt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Wt,i=Zt(e),o=t-i,s=0;!function t(){var a,l=o*((a=(a=s+=10)/n-1)*a*a+1)+i;Jt(e,l),sn.bottom?Jt(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i=p)return{placement:"bottom",maxHeight:t};if(x>=p&&!s)return o&&jt(l,S,E),{placement:"bottom",maxHeight:t};if(!s&&x>=r||s&&w>=r)return o&&jt(l,S,E),{placement:"bottom",maxHeight:s?w-y:x-y};if("auto"===i||s){var k=t,D=s?C:I;return D>=r&&(k=Math.min(D-y-a,t)),{placement:"top",maxHeight:k}}if("bottom"===i)return o&&Jt(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(C>=p)return{placement:"top",maxHeight:t};if(I>=p&&!s)return o&&jt(l,B,E),{placement:"top",maxHeight:t};if(!s&&I>=r||s&&C>=r){var O=t;return(!s&&I>=r||s&&C>=r)&&(O=s?C-v:I-v),o&&jt(l,B,E),{placement:"top",maxHeight:O}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}var an,ln=function(e){return"auto"===e?"bottom":e},cn=(0,d.createContext)(null),un=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,o=e.menuPosition,s=e.menuShouldScrollIntoView,a=e.theme,l=((0,d.useContext)(cn)||{}).setPortalPlacement,c=(0,d.useRef)(null),u=y((0,d.useState)(r),2),A=u[0],h=u[1],p=y((0,d.useState)(null),2),f=p[0],g=p[1],b=a.spacing.controlHeight;return Tt(function(){var e=c.current;if(e){var t="fixed"===o,a=sn({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:b});h(a.maxHeight),g(a.placement),null==l||l(a.placement)}},[r,i,o,s,n,l,b]),t({ref:c,placerProps:m(m({},e),{},{placement:f||ln(i),maxHeight:A})})},An=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return it("div",u({},Ut(e,"menu",{menu:!0}),{ref:n},r),t)},hn=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return m({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},dn=hn,pn=hn,fn=["size"],mn=["innerProps","isRtl","size"];var gn,bn,yn={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},vn=function(e){var t=e.size,n=v(e,fn);return it("svg",u({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:yn},n))},Cn=function(e){return it(vn,u({size:20},e),it("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},wn=function(e){return it(vn,u({size:20},e),it("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},In=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return m({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},xn=In,Sn=In,Bn=function(){var e=ot.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(an||(gn=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],bn||(bn=gn.slice(0)),an=Object.freeze(Object.defineProperties(gn,{raw:{value:Object.freeze(bn)}})))),En=function(e){var t=e.delay,n=e.offset;return it("span",{css:ot({animation:"".concat(Bn," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},kn=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,s=e.menuIsOpen;return it("div",u({ref:i},Ut(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":s}),o,{"aria-disabled":n||void 0}),t)},Dn=["data"],On=function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,s=e.headingProps,a=e.innerProps,l=e.label,c=e.theme,A=e.selectProps;return it("div",u({},Ut(e,"group",{group:!0}),a),it(o,u({},s,{selectProps:A,theme:c,getStyles:r,getClassNames:i,cx:n}),l),it("div",null,t))},Nn=["innerRef","isDisabled","isHidden","inputClassName"],Fn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Mn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":m({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Fn)},Rn=function(e){return m({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Fn)},Qn=function(e){var t=e.children,n=e.innerProps;return it("div",n,t)};var Vn=function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,s=e.removeProps,a=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return it(l,{data:r,innerProps:m(m({},Ut(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:a},it(c,{data:r,innerProps:m({},Ut(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},t),it(u,{data:r,innerProps:m(m({},Ut(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},s),selectProps:a}))},Tn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return it("div",u({},Ut(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||it(Cn,null))},Control:kn,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return it("div",u({},Ut(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||it(wn,null))},DownChevron:wn,CrossIcon:Cn,Group:On,GroupHeading:function(e){var t=Ht(e);t.data;var n=v(t,Dn);return it("div",u({},Ut(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return it("div",u({},Ut(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return it("span",u({},t,Ut(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Ht(e),i=r.innerRef,o=r.isDisabled,s=r.isHidden,a=r.inputClassName,l=v(r,Nn);return it("div",u({},Ut(e,"input",{"input-container":!0}),{"data-value":n||""}),it("input",u({className:t({input:!0},a),ref:i,style:Rn(s),disabled:o},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=void 0===r?4:r,o=v(e,mn);return it("div",u({},Ut(m(m({},o),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),it(En,{delay:0,offset:n}),it(En,{delay:160,offset:!0}),it(En,{delay:320,offset:!n}))},Menu:An,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return it("div",u({},Ut(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,o=e.menuPlacement,s=e.menuPosition,a=(0,d.useRef)(null),l=(0,d.useRef)(null),c=y((0,d.useState)(ln(o)),2),A=c[0],h=c[1],p=(0,d.useMemo)(function(){return{setPortalPlacement:h}},[]),f=y((0,d.useState)(null),2),g=f[0],b=f[1],v=(0,d.useCallback)(function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===s?0:window.pageYOffset,n=e[A]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||b({offset:n,rect:e})}},[r,s,A,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);Tt(function(){v()},[v]);var C=(0,d.useCallback)(function(){"function"==typeof l.current&&(l.current(),l.current=null),r&&a.current&&(l.current=Vt(r,a.current,v,{elementResize:"ResizeObserver"in window}))},[r,v]);Tt(function(){C()},[C]);var w=(0,d.useCallback)(function(e){a.current=e,C()},[C]);if(!t&&"fixed"!==s||!g)return null;var I=it("div",u({ref:w},Ut(m(m({},e),{},{offset:g.offset,position:s,rect:g.rect}),"menuPortal",{"menu-portal":!0}),i),n);return it(cn.Provider,{value:p},t?(0,st.createPortal)(I,t):I)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=v(e,on);return it("div",u({},Ut(m(m({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=v(e,rn);return it("div",u({},Ut(m(m({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Vn,MultiValueContainer:Qn,MultiValueLabel:Qn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return it("div",u({role:"button"},n),t||it(Cn,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,s=e.innerProps;return it("div",u({},Ut(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},s),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return it("div",u({},Ut(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return it("div",u({},Ut(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return it("div",u({},Ut(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return it("div",u({},Ut(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},Gn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Wn(e,t){return e===t||!(!Gn(e)||!Gn(t))}function Kn(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,s=e.selectValue,a=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(o," focused, ").concat(u(s,n),".");if("menu"===t&&c){var A=a?" disabled":"",h="".concat(l?" selected":"").concat(A);return"".concat(o).concat(h,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Un=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,s=e.selectValue,a=e.selectProps,l=e.id,c=e.isAppleDevice,u=a.ariaLiveMessages,A=a.getOptionLabel,h=a.inputValue,p=a.isMulti,f=a.isOptionDisabled,g=a.isSearchable,b=a.menuIsOpen,y=a.options,v=a.screenReaderStatus,C=a.tabSelectsValue,w=a.isLoading,I=a["aria-label"],x=a["aria-live"],S=(0,d.useMemo)(function(){return m(m({},Hn),u||{})},[u]),B=(0,d.useMemo)(function(){var e,n="";if(t&&S.onChange){var r=t.option,i=t.options,o=t.removedValue,a=t.removedValues,l=t.value,c=o||r||(e=l,Array.isArray(e)?null:e),u=c?A(c):"",h=i||a||void 0,d=h?h.map(A):[],p=m({isDisabled:c&&f(c,s),label:u,labels:d},t);n=S.onChange(p)}return n},[t,S,f,s,A]),E=(0,d.useMemo)(function(){var e="",t=n||r,o=!!(n&&s&&s.includes(n));if(t&&S.onFocus){var a={focused:t,label:A(t),isDisabled:f(t,s),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:s,isAppleDevice:c};e=S.onFocus(a)}return e},[n,r,A,f,S,i,s,c]),k=(0,d.useMemo)(function(){var e="";if(b&&y.length&&!w&&S.onFilter){var t=v({count:i.length});e=S.onFilter({inputValue:h,resultsMessage:t})}return e},[i,h,b,S,y,v,w]),D="initial-input-focus"===(null==t?void 0:t.action),O=(0,d.useMemo)(function(){var e="";if(S.guidance){var t=r?"value":b?"menu":"input";e=S.guidance({"aria-label":I,context:t,isDisabled:n&&f(n,s),isMulti:p,isSearchable:g,tabSelectsValue:C,isInitialFocus:D})}return e},[I,n,r,p,f,g,b,S,s,C,D]),N=it(d.Fragment,null,it("span",{id:"aria-selection"},B),it("span",{id:"aria-focused"},E),it("span",{id:"aria-results"},k),it("span",{id:"aria-guidance"},O));return it(d.Fragment,null,it(Pn,{id:l},D&&N),it(Pn,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!D&&N))},Ln=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Zn=new RegExp("["+Ln.map(function(e){return e.letters}).join("")+"]","g"),Jn={},jn=0;jn1?t-1:0),r=1;r0,f=A-h-u,m=!1;f>t&&s.current&&(r&&r(e),s.current=!1),p&&a.current&&(o&&o(e),a.current=!1),p&&t>f?(n&&!s.current&&n(e),d.scrollTop=A,m=!0,s.current=!0):!p&&-t>u&&(i&&!a.current&&i(e),d.scrollTop=0,m=!0,a.current=!0),m&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,r,i,o]),A=(0,d.useCallback)(function(e){u(e,e.deltaY)},[u]),h=(0,d.useCallback)(function(e){l.current=e.changedTouches[0].clientY},[]),p=(0,d.useCallback)(function(e){var t=l.current-e.changedTouches[0].clientY;u(e,t)},[u]),f=(0,d.useCallback)(function(e){if(e){var t=!!en&&{passive:!1};e.addEventListener("wheel",A,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",p,t)}},[p,h,A]),m=(0,d.useCallback)(function(e){e&&(e.removeEventListener("wheel",A,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",p,!1))},[p,h,A]);return(0,d.useEffect)(function(){if(t){var e=c.current;return f(e),function(){m(e)}}},[t,f,m]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),o=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=(0,d.useRef)({}),o=(0,d.useRef)(null),s=(0,d.useCallback)(function(e){if(cr){var t=document.body,n=t&&t.style;if(r&&rr.forEach(function(e){var t=n&&n[e];i.current[e]=t}),r&&ur<1){var o=parseInt(i.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,a=window.innerWidth-s+o||0;Object.keys(ir).forEach(function(e){var t=ir[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(a,"px"))}t&&lr()&&(t.addEventListener("touchmove",or,Ar),e&&(e.addEventListener("touchstart",ar,Ar),e.addEventListener("touchmove",sr,Ar))),ur+=1}},[r]),a=(0,d.useCallback)(function(e){if(cr){var t=document.body,n=t&&t.style;ur=Math.max(ur-1,0),r&&ur<1&&rr.forEach(function(e){var t=i.current[e];n&&(n[e]=t)}),t&&lr()&&(t.removeEventListener("touchmove",or,Ar),e&&(e.removeEventListener("touchstart",ar,Ar),e.removeEventListener("touchmove",sr,Ar)))}},[r]);return(0,d.useEffect)(function(){if(t){var e=o.current;return s(e),function(){a(e)}}},[t,s,a]),function(e){o.current=e}}({isEnabled:n});return it(d.Fragment,null,n&&it("div",{onClick:hr,css:dr}),t(function(e){i(e),o(e)}))}var fr={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},mr=function(e){var t=e.name,n=e.onFocus;return it("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:fr,value:"",onChange:function(){}})};function gr(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function br(){return gr(/^Mac/i)}function yr(){return gr(/^iPhone/i)||gr(/^iPad/i)||br()&&navigator.maxTouchPoints>1}var vr={clearIndicator:Sn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors,s=i.borderRadius;return m({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:xn,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return m({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return m({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,s=i.colors;return m(m({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Mn),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:s.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,s=i.spacing.baseUnit;return m({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*s})},loadingMessage:pn,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,s=i.spacing,l=i.colors;return m((a(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),a(n,"position","absolute"),a(n,"width","100%"),a(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return m({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors;return m({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return m({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,s=e.isFocused;return m({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:s?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:dn,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,s=o.spacing,a=o.colors;return m({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?a.primary:r?a.primary25:"transparent",color:n?a.neutral20:i?a.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?a.primary:a.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return m({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return m({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return m({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var Cr,wr={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Ir={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Xt(),captureMenuScroll:!Xt(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=m({ignoreCase:!0,ignoreAccents:!0,stringify:er,trim:!0,matchFrom:"any"},Cr),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,s=n.trim,a=n.matchFrom,l=s?$n(t):t,c=s?$n(o(e)):o(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=qn(l),c=zn(c)),"start"===a?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function xr(e,t,n,r){return{type:"option",data:t,isDisabled:Fr(e,t,n),isSelected:Mr(e,t,n),label:Or(e,t),value:Nr(e,t),index:r}}function Sr(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(n,r){return xr(e,n,t,r)}).filter(function(t){return kr(e,t)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=xr(e,n,t,r);return kr(e,o)?o:void 0}).filter(tn)}function Br(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,O(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function Er(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,O(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function kr(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,o=t.isSelected,s=t.label,a=t.value;return(!Qr(e)||!o)&&Rr(e,{label:s,value:a,data:i},r)}var Dr=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},Or=function(e,t){return e.getOptionLabel(t)},Nr=function(e,t){return e.getOptionValue(t)};function Fr(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Mr(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Nr(e,t);return n.some(function(t){return Nr(e,t)===r})}function Rr(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Qr=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Vr=1,Tr=function(e){B(n,e);var t=function(e){var t=k();return function(){var n,r=E(e);if(t){var i=E(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return D(this,n)}}(n);function n(e){var r;if(w(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,i=n.onChange,o=n.name;t.name=o,r.ariaOnChange(e,t),i(e,t)},r.setValue=function(e,t,n){var i=r.props,o=i.closeMenuOnSelect,s=i.isMulti,a=i.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:a}),o&&(r.setState({inputIsHiddenAfterUpdate:!s}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,i=t.isMulti,o=t.name,s=r.state.selectValue,a=i&&r.isOptionSelected(e,s),l=r.isOptionDisabled(e,s);if(a){var c=r.getOptionValue(e);r.setValue(s.filter(function(e){return r.getOptionValue(e)!==c}),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:o});i?r.setValue([].concat(O(s),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,i=r.getOptionValue(e),o=n.filter(function(e){return r.getOptionValue(e)!==i}),s=nn(t,o,o[0]||null);r.onChange(s,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(nn(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),o=nn(e,i,i[0]||null);n&&r.onChange(o,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return Dr(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Er(Sr(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n5||o>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return Qr(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,i=t.backspaceRemovesValue,o=t.escapeClearsValue,s=t.inputValue,a=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,A=t.tabSelectsValue,h=t.openMenuOnFocus,d=r.state,p=d.focusedOption,f=d.focusedValue,m=d.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||s)return;r.focusValue("previous");break;case"ArrowRight":if(!n||s)return;r.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(f)r.removeValue(f);else{if(!i)return;n?r.popValue():a&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!A||!p||h&&r.isOptionSelected(p,m))return;r.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(c){if(!p)return;if(r.isComposing)return;r.selectOption(p);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:s}),r.onMenuClose()):a&&o&&r.clearValue();break;case" ":if(s)return;if(!c){r.openMenu("first");break}if(!p)return;r.selectOption(p);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Vr),r.state.selectValue=Pt(e.value),e.menuIsOpen&&r.state.selectValue.length){var i=r.getFocusableOptionsWithIds(),o=r.buildFocusableOptions(),s=o.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=i,r.state.focusedOption=o[s],r.state.focusedOptionId=Dr(i,o[s])}return r}return x(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&_t(this.menuListRef,this.focusedOptionRef),(br()||yr())&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(_t(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),s="first"===e?0:o.length-1;if(!this.props.isMulti){var a=o.indexOf(r[0]);a>-1&&(s=a)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[s],focusedOptionId:this.getFocusedOptionId(o[s])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,s=-1;if(n.length){switch(e){case"previous":s=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(wr):m(m({},wr),this.props.theme):wr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,s=this.setValue,a=this.props,l=a.isMulti,c=a.isRtl,u=a.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:o,selectProps:a,setValue:s,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Fr(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Mr(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Rr(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,o=e.tabIndex,s=e.form,a=e.menuIsOpen,l=e.required,c=this.getComponents().Input,A=this.state,h=A.inputIsHidden,p=A.ariaSelection,f=this.commonProps,g=r||this.getElementId("input"),b=m(m(m({"aria-autocomplete":"list","aria-expanded":a,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},a&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?d.createElement(c,u({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:s,type:"text",value:i},b)):d.createElement(nr,u({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Wt,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:s,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,s=t.SingleValue,a=t.Placeholder,l=this.commonProps,c=this.props,A=c.controlShouldRenderValue,h=c.isDisabled,p=c.isMulti,f=c.inputValue,m=c.placeholder,g=this.state,b=g.selectValue,y=g.focusedValue,v=g.isFocused;if(!this.hasValue()||!A)return f?null:d.createElement(a,u({},l,{key:"placeholder",isDisabled:h,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return b.map(function(t,s){var a=t===y,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return d.createElement(n,u({},l,{components:{Container:r,Label:i,Remove:o},isFocused:a,isDisabled:h,key:c,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(f)return null;var C=b[0];return d.createElement(s,u({},l,{data:C,isDisabled:h}),this.formatOptionLabel(C,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return d.createElement(e,u({},t,{innerProps:s,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!e||!i)return null;return d.createElement(e,u({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:o}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return d.createElement(n,u({},r,{isDisabled:i,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return d.createElement(e,u({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,i=t.Menu,o=t.MenuList,s=t.MenuPortal,a=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,A=this.commonProps,h=this.state.focusedOption,p=this.props,f=p.captureMenuScroll,m=p.inputValue,g=p.isLoading,b=p.loadingMessage,y=p.minMenuHeight,v=p.maxMenuHeight,C=p.menuIsOpen,w=p.menuPlacement,I=p.menuPosition,x=p.menuPortalTarget,S=p.menuShouldBlockScroll,B=p.menuShouldScrollIntoView,E=p.noOptionsMessage,k=p.onMenuScrollToTop,D=p.onMenuScrollToBottom;if(!C)return null;var O,N=function(t,n){var r=t.type,i=t.data,o=t.isDisabled,s=t.isSelected,a=t.label,l=t.value,p=h===i,f=o?void 0:function(){return e.onOptionHover(i)},m=o?void 0:function(){return e.selectOption(i)},g="".concat(e.getElementId("option"),"-").concat(n),b={id:g,onClick:m,onMouseMove:f,onMouseOver:f,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:s};return d.createElement(c,u({},A,{innerProps:b,data:i,isDisabled:o,isSelected:s,key:g,label:a,type:r,value:l,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())O=this.getCategorizedOptions().map(function(t){if("group"===t.type){var i=t.data,o=t.options,s=t.index,a="".concat(e.getElementId("group"),"-").concat(s),l="".concat(a,"-heading");return d.createElement(n,u({},A,{key:a,data:i,options:o,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return N(e,"".concat(s,"-").concat(e.index))}))}if("option"===t.type)return N(t,"".concat(t.index))});else if(g){var F=b({inputValue:m});if(null===F)return null;O=d.createElement(a,A,F)}else{var M=E({inputValue:m});if(null===M)return null;O=d.createElement(l,A,M)}var R={minMenuHeight:y,maxMenuHeight:v,menuPlacement:w,menuPosition:I,menuShouldScrollIntoView:B},Q=d.createElement(un,u({},A,R),function(t){var n=t.ref,r=t.placerProps,s=r.placement,a=r.maxHeight;return d.createElement(i,u({},A,R,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:s}),d.createElement(pr,{captureEnabled:f,onTopArrive:k,onBottomArrive:D,lockEnabled:S},function(t){return d.createElement(o,u({},A,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":A.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:a,focusedOption:h}),O)}))});return x||"fixed"===I?d.createElement(s,u({},A,{appendTo:x,controlElement:this.controlRef,menuPlacement:w,menuPosition:I}),Q):Q}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,s=t.required,a=this.state.selectValue;if(s&&!this.hasValue()&&!r)return d.createElement(mr,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(n){var l=a.map(function(t){return e.getOptionValue(t)}).join(n);return d.createElement("input",{name:o,type:"hidden",value:l})}var c=a.length>0?a.map(function(t,n){return d.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})}):d.createElement("input",{name:o,type:"hidden",value:""});return d.createElement("div",null,c)}var u=a[0]?this.getOptionValue(a[0]):"";return d.createElement("input",{name:o,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.isFocused,s=t.selectValue,a=this.getFocusableOptions();return d.createElement(Un,u({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:o,selectValue:s,focusableOptions:a,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,o=this.props,s=o.className,a=o.id,l=o.isDisabled,c=o.menuIsOpen,A=this.state.isFocused,h=this.commonProps=this.getCommonProps();return d.createElement(r,u({},h,{className:s,innerProps:{id:a,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:A}),this.renderLiveRegion(),d.createElement(t,u({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:A,menuIsOpen:c}),d.createElement(i,u({},h,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),d.createElement(n,u({},h,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,s=t.isFocused,a=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,A=e.menuIsOpen,h=e.inputValue,d=e.isMulti,p=Pt(u),f={};if(n&&(u!==n.value||c!==n.options||A!==n.menuIsOpen||h!==n.inputValue)){var g=A?function(e,t){return Br(Sr(e,t))}(e,p):[],b=A?Er(Sr(e,p),"".concat(l,"-option")):[],y=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r-1?n:t[0]}(t,g);f={selectValue:p,focusedOption:v,focusedOptionId:Dr(b,v),focusableOptionsWithIds:b,focusedValue:y,clearFocusValueOnUpdate:!1}}var C=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},w=o,I=s&&a;return s&&!I&&(w={value:nn(d,p,p[0]||null),options:p,action:"initial-input-focus"},I=!a),"initial-input-focus"===(null==o?void 0:o.action)&&(w=null),m(m(m({},f),C),{},{prevProps:e,ariaSelection:w,prevWasFocused:I})}}]),n}(d.Component);Tr.defaultProps=Ir;var Gr=(0,d.forwardRef)(function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,i=void 0!==r&&r,o=e.defaultValue,s=void 0===o?null:o,a=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,A=e.onMenuClose,h=e.onMenuOpen,p=e.value,f=v(e,C),g=y((0,d.useState)(void 0!==a?a:n),2),b=g[0],w=g[1],I=y((0,d.useState)(void 0!==l?l:i),2),x=I[0],S=I[1],B=y((0,d.useState)(void 0!==p?p:s),2),E=B[0],k=B[1],D=(0,d.useCallback)(function(e,t){"function"==typeof c&&c(e,t),k(e)},[c]),O=(0,d.useCallback)(function(e,t){var n;"function"==typeof u&&(n=u(e,t)),w(void 0!==n?n:e)},[u]),N=(0,d.useCallback)(function(){"function"==typeof h&&h(),S(!0)},[h]),F=(0,d.useCallback)(function(){"function"==typeof A&&A(),S(!1)},[A]),M=void 0!==a?a:b,R=void 0!==l?l:x,Q=void 0!==p?p:E;return m(m({},f),{},{inputValue:M,menuIsOpen:R,onChange:D,onInputChange:O,onMenuClose:F,onMenuOpen:N,value:Q})}(e);return d.createElement(Tr,u({ref:t},n))}),Wr=Gr,Kr=n(4728),Yr=n.n(Kr);const Pr=window.wp.i18n,Hr=window.wp.autop,Ur=window.wp.compose;var Lr=n(5556),Zr=n.n(Lr),Jr=n(6942),jr=n.n(Jr),_r="/Users/sclark3/Local Sites/testpodslocal/app/public/wp-content/plugins/pods/ui/js/blocks/src/components/CheckboxGroup/index.js",Xr=void 0,zr=function(e){var t=e.id,n=void 0===t?"":t,r=e.className,i=void 0===r?null:r,o=e.heading,s=void 0===o?null:o,a=e.help,l=void 0===a?null:a,c=e.options,u=void 0===c?[]:c,A=e.values,d=void 0===A?[]:A,p=e.onChange,f=function(e,t){var n=O(d),r=n.findIndex(function(t){return t.value===e});-1!==r?n[r].checked=t:n.push({value:e,checked:t}),p(n)};return React.createElement("fieldset",{className:jr()("components-block-fields-checkbox-group",i),__self:Xr,__source:{fileName:_r,lineNumber:43,columnNumber:3}},s&&React.createElement("legend",{__self:Xr,__source:{fileName:_r,lineNumber:44,columnNumber:17}},s),u.map(function(e){var t=d.find(function(t){return t.value===e.value})||!1;return React.createElement(h.CheckboxControl,{key:e.value,label:e.label,checked:t.checked||!1,onChange:function(t){return f(e.value,t)},__nextHasNoMarginBottom:!0,__self:Xr,__source:{fileName:_r,lineNumber:50,columnNumber:6}})}),!!l&&React.createElement("p",{id:n+"__help",className:"components-block-fields-checkbox-group__help",__self:Xr,__source:{fileName:_r,lineNumber:61,columnNumber:5}},l))};zr.propTypes={id:Zr().string,className:Zr().string,heading:Zr().string,help:Zr().string,options:Zr().arrayOf(Zr().shape({label:Zr().string.isRequired,value:Zr().string.isRequired})),values:Zr().arrayOf(Zr().shape({value:Zr().string.isRequired,checked:Zr().bool})),onChange:Zr().func.isRequired};const qr=zr;var $r="/Users/sclark3/Local Sites/testpodslocal/app/public/wp-content/plugins/pods/ui/js/blocks/src/components/CheckboxControlExtended/index.js",ei=void 0,ti=function(e){var t=e.className,n=void 0===t?null:t,r=e.heading,i=void 0===r?null:r,o=e.label,s=void 0===o?null:o,a=e.help,l=void 0===a?null:a,c=e.checked,u=void 0!==c&&c,A=e.onChange;return React.createElement("fieldset",{className:jr()("components-block-fields-checkbox-control",n),__self:ei,__source:{fileName:$r,lineNumber:23,columnNumber:3}},i&&React.createElement("legend",{__self:ei,__source:{fileName:$r,lineNumber:24,columnNumber:17}},i),React.createElement(h.CheckboxControl,{label:s,help:l,checked:u,onChange:A,__nextHasNoMarginBottom:!0,__self:ei,__source:{fileName:$r,lineNumber:25,columnNumber:4}}))};ti.propTypes={className:Zr().string,heading:Zr().string,label:Zr().string,help:Zr().string,checked:Zr().bool,onChange:Zr().func.isRequired};const ni=ti,ri=window.lodash,ii=window.wp.keycodes;var oi=["className","isShiftStepEnabled","max","min","onChange","onKeyDown","shiftStep","step"];function si(e){var t=e.className,n=e.isShiftStepEnabled,r=void 0===n||n,i=e.max,o=void 0===i?1/0:i,s=e.min,a=void 0===s?-1/0:s,l=e.onChange,c=void 0===l?ri.noop:l,A=e.onKeyDown,h=void 0===A?ri.noop:A,d=e.shiftStep,p=void 0===d?10:d,f=e.step,m=void 0===f?1:f,g=v(e,oi),b=(0,ri.clamp)(0,a,o),y=jr()("component-number-control",t);return React.createElement("input",u({inputMode:"numeric"},g,{className:y,type:"number",onChange:function(e){c(e.target.value,{event:e})},onKeyDown:function(e){h(e);var t=e.target.value,n=""===t,i=e.shiftKey&&r?parseFloat(p):parseFloat(m),s=n?b:t;switch(s=parseFloat(s),e.keyCode){case ii.UP:e.preventDefault(),s+=i,s=(0,ri.clamp)(s,a,o),c(s.toString(),{event:e});break;case ii.DOWN:e.preventDefault(),s-=i,s=(0,ri.clamp)(s,a,o),c(s.toString(),{event:e})}},__self:this,__source:{fileName:"/Users/sclark3/Local Sites/testpodslocal/app/public/wp-content/plugins/pods/ui/js/blocks/src/components/NumberControl/index.js",lineNumber:70,columnNumber:3}}))}var ai={allowedTags:["blockquote","caption","div","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","li","ol","p","pre","section","table","tbody","td","th","thead","tr","ul","a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"],allowedAttributes:{"*":["class","id","data-*","style"],iframe:["*"],a:["href","name","target"],img:["src","srcset","sizes","alt","width","height"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto"],allowedSchemesByTag:{},allowProtocolRelative:!0},li={allowedTags:[],allowedAttributes:{}},ci="/Users/sclark3/Local Sites/testpodslocal/app/public/wp-content/plugins/pods/ui/js/blocks/src/blocks/components/RenderedField.js",ui=void 0;function Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hi(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,Ii.addQueryArgs)("/wp/v2/block-renderer/".concat(e),Di(Di({context:"edit"},null!==t?{attributes:t}:{}),n))}(n,l?null:i,void 0===a?{}:a),u=l?{attributes:i}:null,A=this.currentFetchRequest=wi()({path:c,data:u,method:l?"POST":"GET"}).then(function(e){t.isStillMounted&&A===t.currentFetchRequest&&e&&t.setState({response:e.rendered})}).catch(function(e){t.isStillMounted&&A===t.currentFetchRequest&&t.setState({response:{error:!0,errorMsg:e.message}})});return A}}},{key:"render",value:function(){var e=this,t=this.state.response,n=this.props,r=n.className,i=n.EmptyResponsePlaceholder,o=n.ErrorResponsePlaceholder,s=n.LoadingResponsePlaceholder;return""===t?React.createElement(i,u({response:t},this.props,{__self:this,__source:{fileName:xi,lineNumber:117,columnNumber:11}})):t?t.error?React.createElement(o,u({response:t},this.props,{__self:this,__source:{fileName:xi,lineNumber:126,columnNumber:5}})):c(t,{replace:function(t){if("innerblocks"===t.name)return void 0!==t.attribs.template&&(t.attribs.template=JSON.parse(t.attribs.template)),void 0!==t.attribs.allowedBlocks&&(t.attribs.allowedBlocks=JSON.parse(t.attribs.allowedBlocks)),void 0!==t.attribs.templateLock&&"false"===t.attribs.templateLock&&(t.attribs.templateLock=!1),React.createElement(A.InnerBlocks,u({className:r},t.attribs,{__self:e,__source:{fileName:xi,lineNumber:144,columnNumber:13}}))}}):React.createElement(s,u({response:t},this.props,{__self:this,__source:{fileName:xi,lineNumber:121,columnNumber:5}}))}}])}(vi.Component);Oi.defaultProps={EmptyResponsePlaceholder:function(e){var t=e.className;return React.createElement(h.Placeholder,{className:t,__self:Si,__source:{fileName:xi,lineNumber:153,columnNumber:3}},(0,Pr.__)("Block rendered as empty."))},ErrorResponsePlaceholder:function(e){var t=e.response,n=e.className,r=(0,Pr.sprintf)((0,Pr.__)("Error loading block: %s"),t.errorMsg);return React.createElement(h.Placeholder,{className:n,__self:Si,__source:{fileName:xi,lineNumber:163,columnNumber:10}},r)},LoadingResponsePlaceholder:function(e){var t=e.className;return React.createElement(h.Placeholder,{className:t,__self:Si,__source:{fileName:xi,lineNumber:167,columnNumber:4}},React.createElement(h.Spinner,{__self:Si,__source:{fileName:xi,lineNumber:168,columnNumber:5}}))}};const Ni=Oi;function Fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}const Mi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=Yr()(e,ai),s=[];return t.forEach(function(e){var t="function"==typeof i?r(e,n,i):r(e,n);t&&(s[e.name]=function(e){for(var t=1;t0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}}),no=n.n(to),ro=n.cjs(function(e,t){var n={};e.exports=function(e,t){var r=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}}),io=n.n(ro),oo=n.cjs(function(e,t){e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}}),so=n.n(oo),ao=n.cjs(function(e,t){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}}),lo=n.n(ao),co=n.cjs(function(e,t){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}),uo=n.n(co),Ao=n(4449),ho={};ho.styleTagTransform=uo(),ho.setAttributes=so(),ho.insert=io().bind(null,"head"),ho.domAPI=no(),ho.insertStyleElement=lo();eo()(Ao.A,ho);Ao.A&&Ao.A.locals&&Ao.A.locals;window.podsBlocksConfig.collections.forEach(i),window.podsBlocksConfig.blocks.forEach(ji),window.podsBlocksConfig.commands.forEach(zi),window.podsBlocksConfig.panelsToDisable.forEach(qi)},4449(e,t,n){"use strict";var r=n(1601),i=n.n(r),o=n(6314),s=n.n(o)()(i());s.push([e.id,".pods-inspector-row .components-datetime{padding-left:0;padding-right:0}.pods-inspector-row .full-width-base-control{width:100%}",""]);const a=s;n.d(t,["A",0,a])},6314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},1601(e){"use strict";e.exports=function(e){return e[1]}},4353(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",s="hour",a="day",l="week",c="month",u="quarter",A="year",h="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()1)return e(s[0])}else{var a=t.name;v[a]=t,i=a}return!r&&i&&(y=i),i||!r&&y},x=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new B(n)},S=b;S.l=I,S.i=w,S.w=function(e,t){return x(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var B=function(){function m(e){this.$L=I(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[C]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(e,t){var n=x(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return x(e)0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(l);t.NodeWithChildren=d;var p=function(e){function t(t){return e.call(this,s.ElementType.Root,t)||this}return i(t,e),t}(d);t.Document=p;var f=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var o=e.call(this,i,r)||this;return o.name=t,o.attribs=n,o}return i(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}})},enumerable:!1,configurable:!0}),t}(d);function m(e){return(0,s.isTag)(e)}function g(e){return e.type===s.ElementType.CDATA}function b(e){return e.type===s.ElementType.Text}function y(e){return e.type===s.ElementType.Comment}function v(e){return e.type===s.ElementType.Directive}function C(e){return e.type===s.ElementType.Root}function w(e,t){var n;if(void 0===t&&(t=!1),b(e))n=new u(e.data);else if(y(e))n=new A(e.data);else if(m(e)){var r=t?I(e.children):[],i=new f(e.name,o({},e.attribs),r);r.forEach(function(e){return e.parent=i}),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=o({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=o({},e["x-attribsPrefix"])),n=i}else if(g(e)){r=t?I(e.children):[];var a=new d(s.ElementType.CDATA,r);r.forEach(function(e){return e.parent=a}),n=a}else if(C(e)){r=t?I(e.children):[];var l=new p(r);r.forEach(function(e){return e.parent=l}),e["x-mode"]&&(l["x-mode"]=e["x-mode"]),n=l}else{if(!v(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new h(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function I(e){for(var t=e.map(function(e){return w(e,!0)}),n=1;n{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},4146(e,t,n){"use strict";var r=n(3404),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,A=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=d(n);i&&i!==p&&e(t,i,r)}var s=u(n);A&&(s=s.concat(A(n)));for(var a=l(t),f=l(n),m=0;m/i,l=//i,c=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};if("function"==typeof window.DOMParser){var A=new window.DOMParser;c=u=function(e,t){return t&&(e="<"+t+">"+e+""+t+">"),A.parseFromString(e,"text/html")}}if(document.implementation){var h=n(7731).isIE,d=document.implementation.createHTMLDocument(h()?"html-dom-parser":void 0);c=function(e,t){return t?(d.documentElement.getElementsByTagName(t)[0].innerHTML=e,d):(d.documentElement.innerHTML=e,d)}}var p,f=document.createElement("template");f.content&&(p=function(e){return f.innerHTML=e,f.content.childNodes}),e.exports=function(e){var t,n,A,h,d=e.match(s);switch(d&&d[1]&&(t=d[1].toLowerCase()),t){case r:return n=u(e),a.test(e)||(A=n.getElementsByTagName(i)[0])&&A.parentNode.removeChild(A),l.test(e)||(A=n.getElementsByTagName(o)[0])&&A.parentNode.removeChild(A),n.getElementsByTagName(r);case i:case o:return h=c(e).getElementsByTagName(t),l.test(e)&&a.test(e)?h[0].parentNode.childNodes:h;default:return p?p(e):c(e,o).getElementsByTagName(o)[0].childNodes}}},2471(e,t,n){var r=n(5496),i=n(7731).formatDOM,o=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(o);return n&&n[1]&&(t=n[1]),i(r(e),null,t)}},7731(e,t,n){for(var r,i=n(5270),o=n(6957),s=i.CASE_SENSITIVE_TAG_NAMES,a=o.Comment,l=o.Element,c=o.ProcessingInstruction,u=o.Text,A={},h=0,d=s.length;h1&&(u=p(u,{key:u.key||v})),g.push(u);else if("text"!==o.type){switch(A=o.attribs,l(o)?s(A.style,A):A&&(A=i(A)),h=null,o.type){case"script":case"style":o.children[0]&&(A.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?A.defaultValue=o.children[0].data:o.children&&o.children.length&&(h=e(o.children,n));break;default:continue}C>1&&(A.key=v),g.push(f(o.name,A,h))}else{if((c=!o.data.trim().length)&&o.parent&&!a(o.parent))continue;if(y&&c)continue;g.push(o.data)}return 1===g.length?g[0]:g}},4958(e,t,n){var r=n(1609),i=n(5229).default;var o={reactCompat:!0};var s=r.version.split(".")[0]>=16,a=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:s,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,i="function"==typeof t,o={},s={};for(n in e)r=e[n],i&&(o=t(n,r))&&2===o.length?s[o[0]]=o[1]:"string"==typeof r&&(s[r]=n);return s},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,o)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!a.has(e.name)},elementsWithNoTextChildren:a}},9788(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var A=1,h=1;function d(e){var t=e.match(n);t&&(A+=t.length);var r=e.lastIndexOf("\n");h=~r?e.length-r:h+e.length}function p(){var e={line:A,column:h};return function(t){return t.position=new f(e),y(),t}}function f(e){this.start=e,this.end={line:A,column:h},this.source=l.source}f.prototype.content=e;var m=[];function g(t){var n=new Error(l.source+":"+A+":"+h+": "+t);if(n.reason=t,n.filename=l.source,n.line=A,n.column=h,n.source=e,!l.silent)throw n;m.push(n)}function b(t){var n=t.exec(e);if(n){var r=n[0];return d(r),e=e.slice(r.length),n}}function y(){b(r)}function v(e){var t;for(e=e||[];t=C();)!1!==t&&e.push(t);return e}function C(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return h+=2,d(r),e=e.slice(n),h+=2,t({type:"comment",comment:r})}}function w(){var e=p(),n=b(i);if(n){if(C(),!b(o))return g("property missing ':'");var r=b(s),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return b(a),l}}return y(),function(){var e,t=[];for(v(t);e=w();)!1!==e&&(t.push(e),v(t));return t}()}},8682(e,t){"use strict";function n(e){return"[object Object]"===Object.prototype.toString.call(e)}t.isPlainObject=function(e){var t,r;return!1!==n(e)&&(void 0===(t=e.constructor)||!1!==n(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}},3624(e,t,n){const r=n(4353);function i(e){for(e=e.replace(/[\x00-\x20]+/g,"");;){const t=e.indexOf("\x3c!--");if(-1===t)break;const n=e.indexOf("--\x3e",t+4);if(-1===n)break;e=e.substring(0,t)+e.substring(n+3)}return e}function o(e,t){const n=(t=t||{}).allowedSchemes||["http","https","ftp","mailto","tel","sms"],r=!1!==t.allowProtocolRelative;if("string"!=typeof e)return!1;const o=(e=i(e)).match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!o)return!!e.match(/^[/\\]{2}/)&&!r;const s=o[1].toLowerCase();return-1===n.indexOf(s)}e.exports=function(e){const t={};return t.options=e||{},t.filterTag=t.options.filterTag||function(e){return(e=e.trim()).toLowerCase()},t.string=function(e,t){return"string"!=typeof e&&("number"==typeof e||"boolean"==typeof e?e+="":e=""),e=e.trim(),void 0!==t&&""===e&&(e=t),e},t.strings=function(e){return Array.isArray(e)?e.map(function(e){return t.string(e)}):[]},t.integer=function(e,t,n,r){if(void 0===t&&(t=0),"number"==typeof e)e=Math.floor(e);else try{e=parseInt(e,10),isNaN(e)&&(e=t)}catch(n){e=t}return"number"==typeof n&&er&&(e=r),e},t.padInteger=function(e,t){let n=e+"";for(;n.lengthr&&(e=r),e},t.naughtyHref=o,t.url=function(e,n,r){return(e=t.string(e,n))===n?e:o(e=i(e))||null===(e=function(e){if(e.match(/^(((https?|ftp):\/\/)|((mailto|tel|sms):)|#|([^/.]+)?\/|[^/.]+$)/))return e;if(e.match(/^[^/.]+\.[^/.]+/)){return(r?"https://":"http://")+e}return null}(e))?n:e},t.select=function(e,n,r){if(e=t.string(e),!n||!n.length)return r;let i;return"object"==typeof n[0]?(i=n.find(function(t){return null!==t.value&&void 0!==t.value&&t.value.toString()===e}),null!=i?i.value:r):(i=n.find(function(t){return null!=t&&t.toString()===e}),void 0!==i?i:r)},t.boolean=function(e,n){return!0===e||!1!==e&&((e=t.string(e,n))===n?void 0!==e&&e:""!==(e=e.toLowerCase().charAt(0))&&"n"!==e&&"0"!==e&&"f"!==e&&("t"===e||"y"===e||"1"===e))},t.addBooleanFilterToCriteria=function(e,n,r,i){void 0===i&&(i=null);let o="object"==typeof e&&null!==e?e[n]:e;o=void 0===o?i:o,o=t.booleanOrNull(o),null===o||(r[n]=!!o||{$ne:!0})},t.booleanOrNull=function(e,n){return!0===e||!1===e||null===e?e:(e=t.string(e,n))===n?void 0===n?null:e:"null"===e?null:""!==(e=e.toLowerCase().charAt(0))&&"n"!==e&&"0"!==e&&"f"!==e&&("t"===e||"y"===e||"1"===e||("a"===e?null:n))},t.date=function(e,n,i){let o;function s(){return void 0===n&&(n=r().format("YYYY-MM-DD")),n}if("string"==typeof e){if(e.match(/\//)){if(o=e.split("/"),2===o.length)return(i||new Date).getFullYear()+"-"+t.padInteger(o[0],2)+"-"+t.padInteger(o[1],2);if(3===o.length){if(o[2]<100){const e=i||new Date,t=e.getFullYear()%100,n=e.getFullYear()-t;let r=parseInt(o[2])+n;r-e.getFullYear()>50&&(r-=100),o[2]=r}return t.padInteger(o[2],4)+"-"+t.padInteger(o[0],2)+"-"+t.padInteger(o[1],2)}return s()}if(e.match(/-/))return o=e.split("-"),2===o.length?(i||new Date).getFullYear()+"-"+t.padInteger(o[0],2)+"-"+t.padInteger(o[1],2):3===o.length?t.padInteger(o[0],4)+"-"+t.padInteger(o[1],2)+"-"+t.padInteger(o[2],2):s()}try{return null===e?s():(e=i||new Date(e),isNaN(e.getTime())?s():e.getFullYear()+"-"+t.padInteger(e.getMonth()+1,2)+"-"+t.padInteger(e.getDate(),2))}catch(e){return s()}},t.formatDate=function(e){return r(e).format("YYYY-MM-DD")},t.time=function(e,n){const i=(e=(e=t.string(e).toLowerCase()).trim()).match(/^(\d+)([:|.](\d+))?([:|.](\d+))?\s*(am|pm|AM|PM|a|p|A|M)?$/);if(i){let e=parseInt(i[1],10);const n=void 0!==i[3]?parseInt(i[3],10):0,r=void 0!==i[5]?parseInt(i[5],10):0;let o=i[6]?i[6].toLowerCase():i[6];return o=o&&o.charAt(0),12===e&&"a"===o?e-=12:12===e&&"p"===o||"p"===o&&(e+=12),24!==e&&"24"!==e||(e=0),t.padInteger(e,2)+":"+t.padInteger(n,2)+":"+t.padInteger(r,2)}return void 0!==n?n:r().format("HH:mm")},t.formatTime=function(e){return r(e).format("HH:mm:ss")},t.tags=function(e,n){if("string"==typeof e&&(e=e.split(/,\s*/)),!Array.isArray(e))return[];return e.map(e=>t.string(e)).map(n||t.filterTag).filter(e=>e.length>0)},t.idRegExp=t.options.idRegExp||/^[A-Za-z0-9_]+$/,t.id=function(e,n){const r=t.string(e,n);return r===n||r.match(t.idRegExp)?r:n},t.ids=function(e){if(!Array.isArray(e))return[];return e.filter(function(e){return void 0!==t.id(e)})},t},e.exports.naughtyHref=o},9466(e,t){var n,r,i;r=[],void 0===(i="function"==typeof(n=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function n(t){var n,r=t.exec(e.substring(f));if(r)return n=r[0],f+=n.length,n}for(var r,i,o,s,a,l=e.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,A=/^[^ \t\n\r\u000c]+/,h=/[,]+$/,d=/^\d+$/,p=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,f=0,m=[];;){if(n(u),f>=l)return m;r=n(A),i=[],","===r.slice(-1)?(r=r.replace(h,""),b()):g()}function g(){for(n(c),o="",s="in descriptor";;){if(a=e.charAt(f),"in descriptor"===s)if(t(a))o&&(i.push(o),o="",s="after descriptor");else{if(","===a)return f+=1,o&&i.push(o),void b();if("("===a)o+=a,s="in parens";else{if(""===a)return o&&i.push(o),void b();o+=a}}else if("in parens"===s)if(")"===a)o+=a,s="in descriptor";else{if(""===a)return i.push(o),void b();o+=a}else if("after descriptor"===s)if(t(a));else{if(""===a)return void b();s="in descriptor",f-=1}f+=1}}function b(){var t,n,o,s,a,l,c,u,A,h=!1,f={};for(s=0;s0;){let n=t.pop();if(n===this||n.cleanRaws===h.prototype.cleanRaws){if(c.prototype.cleanRaws.call(n,e),n.nodes)for(let e of n.nodes)t.push(e)}else n.cleanRaws(e)}}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map(e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e)):"every"===t||"some"===t?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)n=this.indexes[e],r0;){let e=t.pop();if(delete e.source,e.nodes){e.nodes=e.nodes.slice();for(let n of e.nodes)t.push(n)}}return e.slice()}(i(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new l(e)]}else if(e.selector||e.selectors)e=[new s(e)];else if(e.name)e=[new r(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new a(e)]}return e.map(e=>(e[A]||h.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[u]&&function(e){let t=[e];for(;t.length>0;){let e=t.pop();if(e[u]=!1,e.proxyOf.nodes)for(let n of e.proxyOf.nodes)t.push(n)}}(e),e.raws||(e.raws={}),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){if(!this.proxyOf.nodes)return;let t=[{iterator:this.getIterator(),node:this.proxyOf}];for(;t.length>0;){let{iterator:n,node:r}=t[t.length-1],i=r.indexes[n];if(i>=r.proxyOf.nodes.length){delete r.indexes[n],t.pop();let e=t[t.length-1];e&&(e.node.indexes[e.iterator]+=1);continue}let o,s=r.proxyOf.nodes[i];try{o=e(s,i)}catch(e){throw s.addToError(e)}if(!1===o){for(let e of t)delete e.node.indexes[e.iterator];return!1}s.walk&&s.proxyOf.nodes?t.push({iterator:s.getIterator(),node:s}):r.indexes[n]+=1}}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("atrule"===e.type)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if("comment"===t.type)return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("decl"===e.type)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if("rule"===e.type)return t(e,n)}))}}h.registerParse=e=>{i=e},h.registerRule=e=>{s=e},h.registerAtRule=e=>{r=e},h.registerRoot=e=>{o=e},e.exports=h,h.default=h,h.rebuild=e=>{let t=[e];for(;t.length>0;){let e=t.pop();if("atrule"===e.type?Object.setPrototypeOf(e,r.prototype):"rule"===e.type?Object.setPrototypeOf(e,s.prototype):"decl"===e.type?Object.setPrototypeOf(e,l.prototype):"comment"===e.type?Object.setPrototypeOf(e,a.prototype):"root"===e.type&&Object.setPrototypeOf(e,o.prototype),e[A]=!0,e.nodes)for(let n of e.nodes)t.push(n)}}},3614(e,t,n){"use strict";let r=n(8633),i=n(9746);class o extends Error{constructor(e,t,n,r,i,s){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),r&&(this.source=r),s&&(this.plugin=s),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,o)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=r.isColorSupported);let n=e=>e,o=e=>e,s=e=>e;if(e){let{bold:e,gray:t,red:a}=r.createColors(!0);o=t=>e(a(t)),n=e=>t(e),i&&(s=e=>i(e))}let a=t.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),u=String(c).length;return a.slice(l,c).map((e,t)=>{let r=l+1+t,i=" "+(" "+r).slice(-u)+" | ";if(r===this.line){if(e.length>160){let t=20,r=Math.max(0,this.column-t),a=Math.max(this.column+t,this.endColumn+t),l=e.slice(r,a),c=n(i.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,t-1)).replace(/[^\t]/g," ");return o(">")+n(i)+s(l)+"\n "+c+o("^")}let t=n(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(i)+s(e)+"\n "+t+o("^")}return" "+n(i)+s(e)}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=o,o.default=o},5238(e,t,n){"use strict";let r=n(3152);class i extends r{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}}e.exports=i,i.default=i},145(e,t,n){"use strict";let r,i,o=n(7793);class s extends o{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new r(new i,this,e).stringify()}}s.registerLazyResult=e=>{r=e},s.registerProcessor=e=>{i=e},e.exports=s,s.default=s},3438(e,t,n){"use strict";let r=n(396),i=n(9371),o=n(5238),s=n(1106),a=n(3878),l=n(5644),c=n(1534);function u(e,t){return e.inputs?e.inputs.map(e=>{let t={...e,__proto__:s.prototype};return t.map&&(t.map={...t.map,__proto__:a.prototype}),t}):t}function A(e,t,n){let s,a={...e};if(delete a.inputs,delete a.nodes,a.source){let{inputId:e,...n}=a.source;a.source=n,null!=e&&(a.source.input=t[e])}if("root"===a.type)s=new l(a);else if("decl"===a.type)s=new o(a);else if("rule"===a.type)s=new c(a);else if("comment"===a.type)s=new i(a);else{if("atrule"!==a.type)throw new Error("Unknown node type: "+e.type);s=new r(a)}if(n){s.nodes=n;for(let e of n)e.parent=s}return s}function h(e,t){if(Array.isArray(e))return e.map(e=>h(e));let n,r=[{childIndex:0,children:[],inputs:u(e,t),json:e}];for(;r.length>0;){let e=r[r.length-1],t=e.json.nodes;if(t&&e.childIndex0?r[r.length-1].children.push(i):n=i}return n}e.exports=h,h.default=h},1106(e,t,n){"use strict";let{nanoid:r}=n(5042),{isAbsolute:i,resolve:o}=n(197),{SourceMapConsumer:s,SourceMapGenerator:a}=n(1866),{fileURLToPath:l,pathToFileURL:c}=n(2739),u=n(3614),A=n(3878),h=n(9746),d=Symbol("lineToIndexCache"),p=Boolean(s&&a),f=Boolean(o&&i);function m(e){if(e[d])return e[d];let t=e.css.split("\n"),n=new Array(t.length),r=0;for(let e=0,i=t.length;e"),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,o,s,a,l;if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){a=e.offset;let r=this.fromOffset(a);t=r.line,n=r.col}else t=e.line,n=e.column,a=this.fromLineAndColumn(t,n);if("number"==typeof r.offset){s=r.offset;let e=this.fromOffset(s);o=e.line,i=e.col}else o=r.line,i=r.column,s=this.fromLineAndColumn(r.line,r.column)}else if(n)a=this.fromLineAndColumn(t,n);else{a=t;let e=this.fromOffset(a);t=e.line,n=e.col}let A=this.origin(t,n,o,i);return l=A?new u(e,void 0===A.endLine?A.line:{column:A.column,line:A.line},void 0===A.endLine?A.column:{column:A.endColumn,line:A.endLine},A.source,A.file,r.plugin):new u(e,void 0===o?t:{column:n,line:t},void 0===o?n:{column:i,line:o},this.css,this.file,r.plugin),l.input={column:n,endColumn:i,endLine:o,endOffset:s,line:t,offset:a,source:this.css},this.file&&(c&&(l.input.url=c(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(e,t){return m(this)[e-1]+t-1}fromOffset(e){let t=m(this),n=0;if(e>=t[t.length-1])n=t.length-1;else{let r,i=t.length-2;for(;n>1),e=t[r+1])){n=r;break}n=r+1}}return{col:e-t[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:o(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let o,s,a=this.map.consumer(),u=a.originalPositionFor({column:t-1,line:e});if(!u.source)return!1;if("number"==typeof n){let e=a.originalPositionFor({column:r-1,line:n});e.source&&(o=e)}s=i(u.source)?c(u.source):new URL(u.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let A={column:u.column+1,endColumn:o&&o.column+1,endLine:o&&o.line,line:u.line,url:s.toString()};if("file:"===s.protocol){if(!l)throw new Error("file: protocol is not available in this PostCSS build");A.file=l(s)}let h=a.sourceContentFor(u.source);return h&&(A.source=h),A}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}e.exports=g,g.default=g,h&&h.registerInput&&h.registerInput(g)},6966(e,t,n){"use strict";let r=n(7793),i=n(145),o=n(3604),s=n(9577),a=n(3717),l=n(5644),c=n(3303),{isClean:u,my:A}=n(4151);n(6156);const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},p={Once:!0,postcssPlugin:!0,prepare:!0};function f(e){return"object"==typeof e&&"function"==typeof e.then}function m(e){let t=!1,n=h[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function g(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:m(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function b(e){let t=[e];for(;t.length>0;){let e=t.pop();if(e[u]=!1,e.nodes)for(let n of e.nodes)t.push(n)}return e}let y={};class v{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,n){let i;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof v||t instanceof a)i=b(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=s;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{i=e(t,n)}catch(e){this.processed=!0,this.error=e}i&&!i[A]&&r.rebuild(i)}else i=b(t);this.result=new a(e,i,n),this.helpers={...y,postcss:y,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!d[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[n])if("object"==typeof t[n])for(let r in t[n])e(t,"*"===r?n:n+"-"+r.toLowerCase(),t[n][r]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e0;){let e=this.visitTick(t);if(f(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return f(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=c;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=this.result.root.source;if(void 0===e.map&&!(n&&n.input&&n.input.map)){let e="";return t(this.result.root,t=>{e+=t}),this.result.css=e,this.result}let r=new o(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(f(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[u];)e[u]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){let e;this.result.lastPlugin=n;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(f(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(r.length>0&&t.visitorIndex0;){let e=t[t.length-1],n=e.node;if(0!==e.iterator){let r,i=e.iterator;e.descending&&(e.descending=!1,n.indexes[i]+=1);let o=!1;for(;r=n.nodes[n.indexes[i]];){if(!r[u]){r[u]=!0,e.descending=!0,t.push({eventIndex:0,events:m(r),iterator:0,node:r}),o=!0;break}n.indexes[i]+=1}if(o)continue;e.iterator=0,delete n.indexes[i]}if(e.eventIndex{y=e},e.exports=v,v.default=v,l.registerLazyResult(v),i.registerLazyResult(v)},1752(e){"use strict";let t={comma:e=>t.split(e,[","],!0),space:e=>t.split(e,[" ","\n","\t"]),split(e,t,n){if("string"!=typeof e)return[];let r=[],i="",o=!1,s=0,a=!1,l="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:a?n===l&&(a=!1):'"'===n||"'"===n?(a=!0,l=n):"("===n?s+=1:")"===n?s>0&&(s-=1):0===s&&t.includes(n)&&(o=!0),o?(""!==i&&r.push(i.trim()),i="",o=!1):i+=n;return(n||""!==i)&&r.push(i.trim()),r}};e.exports=t,t.default=t},3604(e,t,n){"use strict";let{dirname:r,relative:i,resolve:o,sep:s}=n(197),{SourceMapConsumer:a,SourceMapGenerator:l}=n(1866),{pathToFileURL:c}=n(2739),u=n(1106),A=Boolean(a&&l),h=Boolean(r&&o&&i&&s);e.exports=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),i=e.root||r(e.file);!1===this.mapOpts.sourcesContent?(t=new a(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(i)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else if(this.css){let e;for(;-1!==(e=this.css.lastIndexOf("/*#"));){let t=this.css.indexOf("*/",e+3);if(-1===t)break;for(;e>0&&"\n"===this.css[e-1];)e--;this.css=this.css.slice(0,e)+this.css.slice(t+2)}}}generate(){if(this.clearAnnotation(),h&&A&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=l.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,n=1,r=1,i="",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(s,a,l)=>{if(this.css+=s,a&&"end"!==l&&(o.generated.line=n,o.generated.column=r-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,this.map.addMapping(o))),t=s.match(/\n/g),t?(n+=t.length,e=s.lastIndexOf("\n"),r=s.length-e):r+=s.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===e.last&&!e.raws.semicolon||(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=n,o.generated.column=r-2,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=n,o.generated.column=r-1,this.map.addMapping(o)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?r(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=r(o(n,this.mapOpts.annotation)));let s=i(n,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new u(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(c){let t=c(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===s&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}},4211(e,t,n){"use strict";let r=n(3604),i=n(9577),o=n(3717),s=n(3303);n(6156);class a{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=i;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i=s;this.result=new o(this._processor,void 0,this._opts),this.result.css=t;let a=this;Object.defineProperty(this.result,"root",{get:()=>a.root});let l=new r(i,void 0,this._opts,t);if(l.isMap()){let[e,t]=l.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}}e.exports=a,a.default=a},3152(e,t,n){"use strict";let r=n(3614),i=n(7668),o=n(3303),{isClean:s,my:a}=n(4151);function l(e,t){if(t&&void 0!==t.offset)return t.offset;let n=1,r=1,i=0;for(let o=0;o0;){let[e,t,n]=r.pop();for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;if("proxyCache"===i)continue;let o=e[i],s=typeof o;if("parent"===i&&"object"===s)n&&(t[i]=n);else if("source"===i)t[i]=o;else if(Array.isArray(o)){let e=[];t[i]=e;for(let n of o){let i=new n.constructor;e.push(i),r.push([n,i,t])}}else{if("object"===s&&null!==o){let e=new o.constructor;r.push([o,e,void 0]),o=e}t[i]=o}}}return n}(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new r(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markClean(){this[s]=!0}markDirty(){if(this[s]){this[s]=!1;let e=this;for(;e=e.parent;)e[s]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:l(t,this.source.start)};if(e.index)n=this.positionInside(e.index);else if(e.word){let r=t.slice(l(t,this.source.start),l(t,this.source.end)).indexOf(e.word);-1!==r&&(n=this.positionInside(r))}return n}positionInside(e){let t=this.source.start.column,n=this.source.start.line,r="document"in this.source.input?this.source.input.document:this.source.input.css,i=l(r,this.source.start),o=i+e;for(let e=i;ee.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=o){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,n={}){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}}e.exports=c,c.default=c},9577(e,t,n){"use strict";let r=n(7793),i=n(1106),o=n(8339);function s(e,t){let n=new i(e,t),r=new o(n);try{r.parse()}catch(e){throw e}return r.root}e.exports=s,s.default=s,r.registerParse(s)},8339(e,t,n){"use strict";let r=n(396),i=n(9371),o=n(5238),s=n(5644),a=n(1534),l=n(5781);const c={empty:!0,space:!0};function u(e,t,n){let r="";for(let i=t;i0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){a=!0;break}if("}"===t){if(l.length>0){for(i=l.length-1,n=l[i];n&&"space"===n[0];)n=l[--i];n&&(o.source.end=this.getPosition(n[3]||n[2]),o.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(o.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(o,"params",l),s&&(e=l[l.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),a&&(o.nodes=[],this.current=o)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let i=t-1;i>=0&&(n=e[i],"space"===n[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(e){let t,n,r,i=0;for(let[o,s]of e.entries()){if(n=s,r=n[0],"("===r&&(i+=1),")"===r&&(i-=1),0===i&&":"===r){if(t){if("word"===t[0]&&"progid"===t[1])continue;return o}this.doubleColon(n)}t=n}return!1}comment(e){let t=new i;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(n.trim()){let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}else t.text="",t.raws.left=n,t.raws.right=""}createTokenizer(){this.tokenizer=l(this.input)}decl(e,t){let n=new o;this.init(n,e[0][2]);let r=e[e.length-1];";"===r[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}(e)),n.source.end.offset++;let i=0;for(;"word"!==e[i][0];)i===e.length-1&&this.unknownWord([e[i]]),i++;n.raws.before+=u(e,0,i),n.source.start=this.getPosition(e[i][2]);let s=i;for(;i=0;t--){if(a=e[t],"!important"===a[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===a[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(i.trim().startsWith("!")&&"space"!==t)break;i=r.pop()[1]+i}i.trim().startsWith("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==a[0]&&"comment"!==a[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(n.raws.between+=A.map(e=>e[1]).join(""),A=[]),this.raw(n,"value",A.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new a;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],l=e;for(;l;){if(n=l[0],a.push(l),"("===n||"["===n)i||(i=l),o.push("("===n?")":"]");else if(s&&r&&"{"===n)i||(i=l),o.push("}");else if(0===o.length){if(";"===n){if(r)return void this.decl(a,s);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&r){if(!s)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,o,s,a,l=n.length,u="",A=!0;for(let e=0;ee+t[1],"");e.raws[t]={raw:r,value:u}}e[t]=u}rule(e){e.pop();let t=new a;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r(n||(n=i()),n)}),i.process=function(e,t,n){return C([i(n)]).process(e,t)},i},C.stringify=y,C.parse=p,C.fromJSON=c,C.list=h,C.comment=e=>new i(e),C.atRule=e=>new r(e),C.decl=e=>new a(e),C.rule=e=>new b(e),C.root=e=>new g(e),C.document=e=>new l(e),C.CssSyntaxError=s,C.Declaration=a,C.Container=o,C.Processor=f,C.Document=l,C.Comment=i,C.Warning=v,C.AtRule=r,C.Result=m,C.Input=u,C.Rule=b,C.Root=g,C.Node=d,A.registerPostcss(C),e.exports=C,C.default=C},3878(e,t,n){"use strict";let{existsSync:r,readFileSync:i,realpathSync:o}=n(9977),{dirname:s,isAbsolute:a,join:l,relative:c,sep:u}=n(197),{SourceMapConsumer:A,SourceMapGenerator:h}=n(1866);function d(e){try{return o(e)}catch{return e}}class p{constructor(e,t){if(!1===t.map)return;t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=s(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new A(this.json||this.text)),this.consumerCache}decodeInline(e){let t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));let n=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(n)return r=e.substr(n[0].length),Buffer?Buffer.from(r,"base64").toString():window.atob(r);var r;let i=e.slice(22);throw i=i.slice(0,i.indexOf(",")),new Error("Unsupported source map encoding "+i)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e,t,n){if(!n&&!this.unsafeMap){if(!/\.map$/i.test(e))return;if(!t)return;let n=c(d(s(t)),d(e));if(".."===n||n.startsWith(".."+u)||a(n))return}if(this.root=s(e),r(e))return this.mapFile=e,i(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof A)return h.fromSourceMap(t).toString();if(t instanceof h)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let t=this.loadFile(n,e,!0);if(!t)throw new Error("Unable to load previous source map: "+n.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;e&&(t=l(s(e),t));let n=this.loadFile(t,e,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=p,p.default=p},6846(e,t,n){"use strict";let r=n(145),i=n(6966),o=n(4211),s=n(5644);class a{constructor(e=[]){this.version="8.5.26",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new i(this,e,t):new o(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=a,a.default=a,s.registerProcessor(a),r.registerProcessor(a)},3717(e,t,n){"use strict";let r=n(38);class i{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new r(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>"warning"===e.type)}}e.exports=i,i.default=i},5644(e,t,n){"use strict";let r,i,o=n(7793);class s extends o{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=new Set;for(let t of Array.isArray(e)?e:[e])t&&"object"==typeof t&&!t.parent&&t.raws&&void 0!==t.raws.before&&r.add(t.raws);let i=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of i)r.has(e.raws)||(e.raws.before=t.raws.before);return i}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new r(new i,this,e).stringify()}}s.registerLazyResult=e=>{r=e},s.registerProcessor=e=>{i=e},e.exports=s,s.default=s,o.registerRoot(s)},1534(e,t,n){"use strict";let r=n(7793),i=n(1752);class o extends r{get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}}e.exports=o,o.default=o,r.registerRule(o)},7668(e){"use strict";const t=/(<)(\/?style\b)/gi,n=/(<)(!--)/g,r=/[\t\n\f\r "#'()/;[\\\]{}]/;function i(e){return"string"!=typeof e?e:e.includes("<")?e.replace(t,"\\3c $2").replace(n,"\\3c $2"):e}const o={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function s(e,t){let n="@"+t.name,i=t.params?e.rawValue(t,"params"):"",o=t.raws.afterName;return void 0===o?o=i?" ":"":""===o&&i&&!r.test(i[0])&&(o=" "),n+o+i}function a(e,t,n){let r=n.nodes,i=r.length-1;for(;i>0&&"comment"===r[i].type;)i-=1;let o=e.raw(n,"semicolon"),s="document"===n.type;for(let e=r.length-1;e>=0;e--){let n=r[e],a=i!==e||o;!a&&e{let t=s?e.raw(n,"after"):e.raw(n,"after","emptyBody");t&&e.builder(i(t)),e.builder("}",n,"end"),"rule"===n.type&&n.raws.ownSemicolon&&e.builder(i(n.raws.ownSemicolon),n,"end")};s?(t.push(l),a(e,t,n)):l()}class c{constructor(e){this.builder=e}atrule(e,t){let n=s(this,e);if(e.nodes)this.block(e,n);else{let r=(e.raws.between||"")+(t?";":"");this.builder(i(n+r),e)}}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;ethis[e]===t[e]),r=[];for(a(this,r,e);r.length>0;){let e=r.pop();if("function"==typeof e){e();continue}let t=e.node,o=this.raw(t,"before");o&&this.builder(e.document?o:i(o)),n&&"rule"===t.type?l(this,r,t,this.rawValue(t,"selector")):n&&"atrule"===t.type&&t.nodes?l(this,r,t,s(this,t)):this.stringify(t,e.semicolon)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder(i("/*"+t+e.text+n+"*/"),e)}decl(e,t){let n=e.raws,r=this.raw(e,"between","colon"),o=e.prop+r+this.rawValue(e,"value");e.important&&(o+=n.important||" !important"),t&&(o+=";"),this.builder(i(o),e)}document(e){this.body(e)}raw(e,t,n){let r;if(n||(n=t),t&&(r=e.raws[t],void 0!==r))return r;let i=e.parent;if("before"===n){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return o[n];let s=e.root(),a=s.rawCache||(s.rawCache={});if(void 0!==a[n])return a[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let i="raw"+((l=n)[0].toUpperCase()+l.slice(1));this[i]?r=this[i](s,e):s.walk(e=>{if(r=e.raws[t],void 0!==r)return!1})}var l;return void 0===r&&(r=o[n]),a[n]=r,r}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){if(e.source&&e.source.input.hasBOM&&this.builder("\ufeff",e,"start"),this.body(e),e.raws.after){let t=e.raws.after,n=e.parent&&"document"===e.parent.type;this.builder(n?t:i(t))}}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(i(e.raws.ownSemicolon),e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}e.exports=c,c.default=c},3303(e,t,n){"use strict";let r=n(7668);function i(e,t){new r(t).stringify(e)}e.exports=i,i.default=i},4151(e){"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},5781(e){"use strict";const t="'".charCodeAt(0),n='"'.charCodeAt(0),r="\\".charCodeAt(0),i="/".charCodeAt(0),o="\n".charCodeAt(0),s=" ".charCodeAt(0),a="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),u="[".charCodeAt(0),A="]".charCodeAt(0),h="(".charCodeAt(0),d=")".charCodeAt(0),p="{".charCodeAt(0),f="}".charCodeAt(0),m=";".charCodeAt(0),g="*".charCodeAt(0),b=":".charCodeAt(0),y="@".charCodeAt(0),v=/[\t\n\f\r "#'()/;[\\\]{}]/g,C=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,I=/[\da-f]/i;e.exports=function(e,x={}){let S,B,E,k,D,O,N,F,M,R,Q=e.css.valueOf(),V=x.ignoreErrors,T=Q.length,G=0,W=[],K=[],Y=-1;function P(t){throw e.error("Unclosed "+t,G)}return{back:function(e){K.push(e)},endOfFile:function(){return 0===K.length&&G>=T},nextToken:function(e){if(K.length)return K.pop();if(G>=T)return;let x=!!e&&e.ignoreUnclosed;switch(S=Q.charCodeAt(G),S){case o:case s:case l:case c:case a:k=G;do{k+=1,S=Q.charCodeAt(k)}while(S===s||S===o||S===l||S===c||S===a);O=["space",Q.slice(G,k)],G=k-1;break;case u:case A:case p:case f:case b:case m:case d:{let e=String.fromCharCode(S);O=[e,e,G];break}case h:if(R=W.length?W.pop()[1]:"",M=Q.charCodeAt(G+1),"url"===R&&M!==t&&M!==n&&M!==s&&M!==o&&M!==l&&M!==a&&M!==c){k=G;do{if(N=!1,k=Q.indexOf(")",k+1),-1===k){if(V||x){k=G;break}P("bracket")}for(F=k;Q.charCodeAt(F-1)===r;)F-=1,N=!N}while(N);O=["brackets",Q.slice(G,k+1),G,k],G=k}else G<=Y?O=["(","(",G]:(k=Q.indexOf(")",G+1),B=Q.slice(G,k+1),-1===k||w.test(B)?(Y=-1===k?T:k,O=["(","(",G]):(O=["brackets",B,G,k],G=k));break;case t:case n:D=S===t?"'":'"',k=G;do{if(N=!1,k=Q.indexOf(D,k+1),-1===k){if(V||x){k=G+1;break}P("string")}for(F=k;Q.charCodeAt(F-1)===r;)F-=1,N=!N}while(N);O=["string",Q.slice(G,k+1),G,k],G=k;break;case y:v.lastIndex=G+1,v.test(Q),k=0===v.lastIndex?Q.length-1:v.lastIndex-2,O=["at-word",Q.slice(G,k+1),G,k],G=k;break;case r:for(k=G,E=!0;Q.charCodeAt(k+1)===r;)k+=1,E=!E;if(S=Q.charCodeAt(k+1),E&&S!==i&&S!==s&&S!==o&&S!==l&&S!==c&&S!==a&&(k+=1,I.test(Q.charAt(k)))){for(;I.test(Q.charAt(k+1));)k+=1;Q.charCodeAt(k+1)===s&&(k+=1)}O=["word",Q.slice(G,k+1),G,k],G=k;break;default:S===i&&Q.charCodeAt(G+1)===g?(k=Q.indexOf("*/",G+2)+1,0===k&&(V||x?k=Q.length:P("comment")),O=["comment",Q.slice(G,k+1),G,k],G=k):(C.lastIndex=G+1,C.test(Q),k=0===C.lastIndex?Q.length-1:C.lastIndex-2,O=["word",Q.slice(G,k+1),G,k],W.push(O),G=k)}return G++,O},position:function(){return G}}}},6156(e){"use strict";let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},38(e,t,n){"use strict";let r=n(7793),{my:i}=n(4151);class o{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){t.node[i]||r.rebuild(t.node);let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=o,o.default=o},2694(e,t,n){"use strict";var r=n(6925);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4210(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n]+$/;function m(e,t,n){if(null==e)return"";"number"==typeof e&&(e=e.toString());let b="",y="";function v(e,t){const n=this;this.tag=e,this.attribs=t||{},this.tagPosition=b.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(N.length){N[N.length-1].text+=n.text}},this.updateParentNodeMediaChildren=function(){if(N.length&&u.includes(this.tag)){N[N.length-1].mediaChildren.push(this.tag)}}}(t=Object.assign({},m.defaults,t)).parser=Object.assign({},g,t.parser);const C=function(e){return!1===t.allowedTags||(t.allowedTags||[]).indexOf(e)>-1};A.forEach(function(e){C(e)&&!t.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)});const w=t.nonTextTags||["script","style","textarea","option","xmp"];let I,x;t.allowedAttributes&&(I={},x={},h(t.allowedAttributes,function(e,t){I[t]=[];const n=[];e.forEach(function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):I[t].push(e)}),n.length&&(x[t]=new RegExp("^("+n.join("|")+")$"))}));const S={},B={},E={};h(t.allowedClasses,function(e,t){if(I&&(d(I,t)||(I[t]=[]),I[t].push("class")),S[t]=e,Array.isArray(e)){const n=[];S[t]=[],E[t]=[],e.forEach(function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):e instanceof RegExp?E[t].push(e):S[t].push(e)}),n.length&&(B[t]=new RegExp("^("+n.join("|")+")$"))}});const k={};let D,O,N,F,M,R,Q;h(t.transformTags,function(e,t){let n;"function"==typeof e?n=e:"string"==typeof e&&(n=m.simpleTransform(e)),"*"===t?D=n:k[t]=n});let V=!1;G();const T=new r.Parser({onopentag:function(e,n){if(t.onOpenTag&&t.onOpenTag(e,n),t.enforceHtmlBoundary&&"html"===e&&G(),R)return void Q++;const r=new v(e,n);N.push(r);let i=!1;const c=!!r.text;let u;if(d(k,e)&&(u=k[e](e,n),r.attribs=n=u.attribs,void 0!==u.text&&(r.innerText=u.text),e!==u.tagName&&(r.name=e=u.tagName,M[O]=u.tagName)),D&&(u=D(e,n),r.attribs=n=u.attribs,e!==u.tagName&&(r.name=e=u.tagName,M[O]=u.tagName)),(!C(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(const t in e)if(d(e,t))return!1;return!0}(F)||null!=t.nestingLimit&&O>=t.nestingLimit)&&(i=!0,F[O]=!0,"discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||-1!==w.indexOf(e)&&(R=!0,Q=1)),O++,i){if("discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode){if(r.innerText&&!c){const n=W(r.innerText);t.textFilter?b+=t.textFilter(n,e):b+=n,V=!0}return}y=b,b=""}b+="<"+e,"script"===e&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(r.innerText="");if(i&&("escape"===t.disallowedTagsMode||"recursiveEscape"===t.disallowedTagsMode)&&t.preserveEscapedAttributes?h(n,function(e,t){b+=" "+t+'="'+W(e||"",!0)+'"'}):(!I||d(I,e)||I["*"])&&h(n,function(n,i){if(!f.test(i))return void delete r.attribs[i];if(""===n&&!t.allowedEmptyAttributes.includes(i)&&(t.nonBooleanAttributes.includes(i)||t.nonBooleanAttributes.includes("*")))return void delete r.attribs[i];let c=!1;if(!I||d(I,e)&&-1!==I[e].indexOf(i)||I["*"]&&-1!==I["*"].indexOf(i)||d(x,e)&&x[e].test(i)||x["*"]&&x["*"].test(i))c=!0;else if(I&&I[e])for(const t of I[e])if(o(t)&&t.name&&t.name===i){c=!0;let e="";if(!0===t.multiple){const r=n.split(" ");for(const n of r)-1!==t.values.indexOf(n)&&(""===e?e=n:e+=" "+n)}else t.values.indexOf(n)>=0&&(e=n);n=e}if(c){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(i)&&K(e,n))return void delete r.attribs[i];if("script"===e&&"src"===i){let e=!0;try{const r=Y(n);if(t.allowedScriptHostnames||t.allowedScriptDomains){const n=(t.allowedScriptHostnames||[]).find(function(e){return e===r.url.hostname}),i=(t.allowedScriptDomains||[]).find(function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)});e=n||i}}catch(t){e=!1}if(!e)return void delete r.attribs[i]}if("iframe"===e&&"src"===i){let e=!0;try{const r=Y(n);if(r.isRelativeUrl)e=d(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const n=(t.allowedIframeHostnames||[]).find(function(e){return e===r.url.hostname}),i=(t.allowedIframeDomains||[]).find(function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)});e=n||i}}catch(t){e=!1}if(!e)return void delete r.attribs[i]}if("srcset"===i||"imagesrcset"===i)try{let e=a(n);if(e.forEach(function(e){K(i,e.url)&&(e.evil=!0)}),e=p(e,function(e){return!e.evil}),!e.length)return void delete r.attribs[i];n=p(e,function(e){return!e.evil}).map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", "),r.attribs[i]=n}catch(e){return void delete r.attribs[i]}if("class"===i){const t=S[e],o=S["*"],a=B[e],l=E[e],c=E["*"],u=[a,B["*"]].concat(l,c).filter(function(e){return e});if(!(n=P(n,t&&o?s(t,o):t||o,u)).length)return void delete r.attribs[i]}if("style"===i)if(t.parseStyleAttributes)try{const o=function(e,t){if(!t)return e;const n=e.nodes[0];let r;r=t[n.selector]&&t["*"]?s(t[n.selector],t["*"]):t[n.selector]||t["*"];r&&(e.nodes[0].nodes=n.nodes.reduce(function(e){return function(t,n){if(d(e,n.prop)){e[n.prop].some(function(e){return e.test(n.value)})&&t.push(n)}return t}}(r),[]));return e}(l(e+" {"+n+"}",{map:!1}),t.allowedStyles);if(n=function(e){return e.nodes[0].nodes.reduce(function(e,t){return e.push(`${t.prop}:${t.value}${t.important?" !important":""}`),e},[]).join(";")}(o),0===n.length)return void delete r.attribs[i]}catch(t){return"undefined"!=typeof window&&console.warn('Failed to parse "'+e+" {"+n+"}\", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547"),void delete r.attribs[i]}else if(t.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");b+=" "+i,n&&n.length?b+='="'+W(n,!0)+'"':t.allowedEmptyAttributes.includes(i)&&(b+='=""')}else delete r.attribs[i]}),-1!==t.selfClosing.indexOf(e))b+=" />";else if(b+=">",r.innerText&&!c){const n=W(r.innerText);t.textFilter?b+=t.textFilter(n,e):b+=n,V=!0}i&&(b=y+W(b),y=""),r.openingTagLength=b.length-r.tagPosition},ontext:function(e){if(R)return;const n=N[N.length-1];let r;if(n&&(r=n.tag,e=void 0!==n.innerText?n.innerText:e),"completelyDiscard"!==t.disallowedTagsMode||C(r))if(!r||!C(r)||"discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||"script"!==r&&"style"!==r)if(!r||!C(r)||"discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||"textarea"!==r&&"xmp"!==r){if(!V){const n=W(e,!1);t.textFilter?b+=t.textFilter(n,r):b+=n}}else b+="xmp"===r?e.replace(//g,">"):W(e,!1);else b+=e;else e="";if(N.length){N[N.length-1].text+=e}},onclosetag:function(e,n){if(t.onCloseTag&&t.onCloseTag(e,n),R){if(Q--,Q)return;R=!1}const r=N.pop();if(!r)return;if(r.tag!==e)return void N.push(r);R=!!t.enforceHtmlBoundary&&"html"===e,O--;const i=F[O];if(i){if(delete F[O],"discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode)return void r.updateParentNodeText();y=b,b=""}if(M[O]&&(e=M[O],delete M[O]),t.exclusiveFilter){const e=t.exclusiveFilter(r);if("excludeTag"===e)return i&&(b=y,y=""),void(b=b.substring(0,r.tagPosition)+b.substring(r.tagPosition+r.openingTagLength));if(e)return void(b=b.substring(0,r.tagPosition))}r.updateParentNodeMediaChildren(),r.updateParentNodeText(),-1!==t.selfClosing.indexOf(e)||n&&!C(e)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0?i&&(b=y,y=""):(b+=""+e+">",i&&(b=y+W(b),y=""),V=!1)}},t.parser);if(T.write(e),T.end(),"escape"===t.disallowedTagsMode||"recursiveEscape"===t.disallowedTagsMode){const t=T.endIndex;if(null!=t&&t>=0&&t0&&""===b&&(b=W(e))}return b;function G(){b="",O=0,N=[],F={},M={},R=!1,Q=0}function W(e,n){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&").replace(//g,">"),n&&(e=e.replace(/"/g,"""))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">"),n&&(e=e.replace(/"/g,""")),e}function K(e,n){const r=d(t.allowedSchemesByTag,e)?t.allowedSchemesByTag[e]:t.allowedSchemes||[];return c(n,{allowedSchemes:r,allowProtocolRelative:t.allowProtocolRelative})}function Y(e){if((e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let t="relative://relative-site";for(let e=0;e<100;e++)t+=`/${e}`;const n=new URL(e,t);return{isRelativeUrl:n&&"relative-site"===n.hostname&&"relative:"===n.protocol,url:n}}function P(e,t,n){return t?(e=e.split(/\s+/)).filter(function(e){return-1!==t.indexOf(e)||n.some(function(t){return t.test(e)})}).join(" "):e}}const g={decodeEntities:!0};m.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta","col"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite","action","formaction","data","xlink:href","poster","background","ping","longdesc","usemap","codebase","classid","archive","profile","manifest","itemid","dynsrc","lowsrc"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1},m.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(r,i){let o;if(n)for(o in t)i[o]=t[o];else i=t;return{tagName:e,attribs:i}}}},5229(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=r(n(9108)),o=n(8917);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,i.default)(e,function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)}),n):n}},8917(e,t){"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||i.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(o,l)).replace(r,a))}},9108(e,t,n){var r=n(9788);e.exports=function(e,t){var n,i=null;if(!e||"string"!=typeof e)return i;for(var o,s,a=r(e),l="function"==typeof t,c=0,u=a.length;c{let t="",n=0|e;for(;n-- >0;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=0|n;for(;i-- >0;)r+=e[Math.random()*e.length|0];return r}}},4559(e,t,n){"use strict";n.d(t,{Parser:()=>W});const r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var i,o;!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.FLAG13=8192]="FLAG13",e[e.BRANCH_LENGTH=8064]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(i||(i={})),function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(o||(o={}));function s(e){return e>=o.ZERO&&e<=o.NINE}function a(e){return e>=o.UPPER_A&&e<=o.UPPER_F||e>=o.LOWER_A&&e<=o.LOWER_F}function l(e){return e===o.EQUALS||function(e){return e>=o.UPPER_A&&e<=o.UPPER_Z||e>=o.LOWER_A&&e<=o.LOWER_Z||s(e)}(e)}var c,u;!function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(c||(c={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(u||(u={}));class A{decodeTree;emitCodePoint;errors;constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n}state=c.EntityStart;consumed=1;result=0;treeIndex=0;excess=1;decodeMode=u.Strict;runConsumed=0;startEntity(e){this.decodeMode=e,this.state=c.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case c.EntityStart:return e.charCodeAt(t)===o.NUM?(this.state=c.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=c.NamedEntity,this.stateNamedEntity(e,t));case c.NumericStart:return this.stateNumericStart(e,t);case c.NumericDecimal:return this.stateNumericDecimal(e,t);case c.NumericHex:return this.stateNumericHex(e,t);case c.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===o.LOWER_X?(this.state=c.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=c.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){for(;t=55296&&n<=57343||n>1114111?65533:r.get(n)??n,this.consumed),this.errors&&(e!==o.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],s=(r&i.VALUE_LENGTH)>>14;for(;t>7;if(0===this.runConsumed){const n=r&i.JUMP_TABLE;if(e.charCodeAt(t)!==n)return 0===this.result?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}for(;this.runConsumed=e.length)return-1;const r=this.runConsumed-1,i=n[this.treeIndex+1+(r>>1)],o=r%2==0?255&i:i>>8&255;if(e.charCodeAt(t)!==o)return this.runConsumed=0,0===this.result?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(o>>1),r=n[this.treeIndex],s=(r&i.VALUE_LENGTH)>>14}if(t>=e.length)break;const a=e.charCodeAt(t);if(a===o.SEMI&&0!==s&&0!==(r&i.FLAG13))return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);if(this.treeIndex=h(n,r,this.treeIndex+Math.max(1,s),a),this.treeIndex<0)return 0===this.result||this.decodeMode===u.Attribute&&(0===s||l(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],s=(r&i.VALUE_LENGTH)>>14,0!==s){if(a===o.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==u.Strict&&0===(r&i.FLAG13)&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}t++,this.excess++}return-1}emitNotTerminatedNamedEntity(){const{result:e,decodeTree:t}=this,n=(t[e]&i.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,n,this.consumed),this.errors?.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~(i.VALUE_LENGTH|i.FLAG13):r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){switch(this.state){case c.NamedEntity:return 0===this.result||this.decodeMode===u.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case c.NumericDecimal:return this.emitNumericEntity(0,2);case c.NumericHex:return this.emitNumericEntity(0,3);case c.NumericStart:return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case c.EntityStart:return 0}}}function h(e,t,n,r){const o=(t&i.BRANCH_LENGTH)>>7,s=t&i.JUMP_TABLE;if(0===o)return 0!==s&&r===s?n:-1;if(s){const t=r-s;return t<0||t>=o?-1:e[n+t]-1}const a=o+1>>1;let l=0,c=o-1;for(;l<=c;){const t=l+c>>>1,i=e[n+(t>>1)]>>8*(1&t)&255;if(ir))return e[n+a+t];c=t-1}}return-1}function d(e){const t=atob(e),n=-2&t.length,r=new Uint16Array(n/2);for(let e=0,i=0;ethis.emitCodePoint(e,t))}reset(){this.state=g.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=g.Text,this.isSpecial=!1,this.currentSequence=C.Empty,this.sequenceIndex=0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=g.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===m.Amp&&this.startEntity()}currentSequence=C.Empty;sequenceIndex=0;enterTagBody(){this.currentSequence===C.Plaintext?(this.currentSequence=C.Empty,this.state=g.InPlainText):this.isSpecial?(this.state=g.InSpecialTag,this.sequenceIndex=0):this.state=g.Text}stateSpecialStartSequence(e){const t=32|e;if(this.sequenceIndex=m.LowerA&&e<=m.LowerZ||e>=m.UpperA&&e<=m.UpperZ}(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(v(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=0)this.state=this.baseState,0===t&&(this.index-=1);else{if(e=e))switch(this.state){case g.InTagName:case g.BeforeAttributeName:case g.BeforeAttributeValue:case g.AfterAttributeName:case g.InAttributeName:case g.InAttributeValueSq:case g.InAttributeValueDq:case g.InAttributeValueNq:case g.InClosingTagName:break;default:this.cbs.ontext(this.sectionStart,e)}}emitCodePoint(e,t){this.baseState!==g.Text&&this.baseState!==g.InSpecialTag?(this.sectionStart1){const e=V.get(n);if(void 0!==e&&this.stack.includes(e))return e}return this.isInForeignContext()?n:"image"===n?"img":n}onopentagname(e,t){this.endIndex=t,this.emitOpenTag(this.readTagName(e,t))}emitOpenTag(e){if(this.openTagStart=this.startIndex,this.tagname=e,this.htmlMode&&"form"===e&&this.stack.includes("form"))return void(this.tagname="");const t=this.htmlMode&&N.get(e);if(t)for(;this.stack.length>0&&t.has(this.stack[0]);)this.popElement(!0);this.isVoidElement(e)||(this.stack.unshift(e),this.htmlMode&&("svg"===e?this.foreignContext.unshift(T.Svg):"math"===e?this.foreignContext.unshift(T.MathML):Q.has(e)&&this.foreignContext.unshift(T.None))),this.cbs.onopentagname?.(e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){this.startIndex=this.openTagStart,this.attribs&&(this.cbs.onopentag?.(this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){this.endIndex=t;const n=this.readTagName(e,t);if(this.isVoidElement(n))this.htmlMode&&"br"===n&&(this.cbs.onopentagname?.("br"),this.cbs.onopentag?.("br",{},!0),this.cbs.onclosetag?.("br",!1));else{const e=this.stack.indexOf(n);if(-1!==e){for(let t=0;t=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){this.ended?this.cbs.onerror?.(new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))}end(e){this.ended?this.cbs.onerror?.(new Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{if(Array.isArray(t))for(var r=0;rObject.prototype.hasOwnProperty.call(e,t),n.cjs=e=>{const t={exports:{}};return e.call(t.exports,t,t.exports),t.exports},n.nc=void 0;n(2757)})();
\ No newline at end of file
diff --git a/ui/js/dfv/pods-dfv.min.asset.json b/ui/js/dfv/pods-dfv.min.asset.json
index 3c3375f516..ee26dd8fcf 100644
--- a/ui/js/dfv/pods-dfv.min.asset.json
+++ b/ui/js/dfv/pods-dfv.min.asset.json
@@ -1 +1 @@
-{"dependencies":["lodash","moment","react","react-dom","react-jsx-runtime","regenerator-runtime","wp-api-fetch","wp-autop","wp-components","wp-compose","wp-data","wp-element","wp-hooks","wp-i18n","wp-keycodes","wp-plugins","wp-primitives","wp-url"],"version":"555b3e6214108133cdb6"}
\ No newline at end of file
+{"dependencies":["lodash","moment","react","react-dom","react-jsx-runtime","regenerator-runtime","wp-api-fetch","wp-autop","wp-components","wp-compose","wp-data","wp-element","wp-hooks","wp-i18n","wp-keycodes","wp-plugins","wp-primitives","wp-url"],"version":"5777ba0ea5bf5b0e5104"}
\ No newline at end of file
diff --git a/ui/js/dfv/pods-dfv.min.js b/ui/js/dfv/pods-dfv.min.js
index 480fa54cfa..2f0b18fde4 100644
--- a/ui/js/dfv/pods-dfv.min.js
+++ b/ui/js/dfv/pods-dfv.min.js
@@ -1 +1 @@
-(()=>{var e={6838(e,t,n){"use strict";var i={};n.r(i),n.d(i,{getActiveTab:()=>jn,getDeleteStatus:()=>Nn,getFieldDeleteMessage:()=>ei,getFieldDeleteMessages:()=>Jn,getFieldDeleteStatus:()=>Kn,getFieldDeleteStatuses:()=>Gn,getFieldRelatedObjects:()=>Dn,getFieldSaveMessage:()=>Un,getFieldSaveMessages:()=>Bn,getFieldSaveStatus:()=>Fn,getFieldSaveStatuses:()=>Vn,getFieldTypeObject:()=>Pn,getFieldTypeObjects:()=>xn,getFieldsFromAllGroups:()=>wn,getGlobalFieldOptions:()=>Ln,getGlobalGroupOptions:()=>Tn,getGlobalPodFieldsFromAllGroups:()=>Qn,getGlobalPodGroup:()=>Sn,getGlobalPodGroupFields:()=>Yn,getGlobalPodGroups:()=>An,getGlobalPodOption:()=>kn,getGlobalPodOptions:()=>Mn,getGlobalShowFields:()=>$n,getGroup:()=>bn,getGroupDeleteMessage:()=>zn,getGroupDeleteMessages:()=>Zn,getGroupDeleteStatus:()=>Hn,getGroupDeleteStatuses:()=>Wn,getGroupFields:()=>vn,getGroupSaveMessage:()=>In,getGroupSaveMessages:()=>Xn,getGroupSaveStatus:()=>qn,getGroupSaveStatuses:()=>Rn,getGroups:()=>yn,getPodID:()=>fn,getPodName:()=>On,getPodOption:()=>gn,getPodOptions:()=>_n,getSaveMessage:()=>Cn,getSaveStatus:()=>En,getState:()=>pn});var r={};n.r(r),n.d(r,{addGroup:()=>Oi,addGroupField:()=>bi,deleteField:()=>Yi,deleteGroup:()=>Ai,deletePod:()=>Mi,moveGroup:()=>fi,refreshPodData:()=>mi,removeGroup:()=>_i,removeGroupField:()=>vi,resetFieldSaveStatus:()=>li,resetGroupSaveStatus:()=>si,saveField:()=>Si,saveGroup:()=>ki,savePod:()=>$i,setActiveTab:()=>ti,setDeleteStatus:()=>ii,setFieldDeleteStatus:()=>di,setFieldSaveStatus:()=>ai,setGroupData:()=>gi,setGroupDeleteStatus:()=>oi,setGroupFieldData:()=>wi,setGroupFields:()=>yi,setGroupSaveStatus:()=>ri,setGroups:()=>pi,setOptionValue:()=>ci,setOptionsValues:()=>hi,setPodName:()=>ui,setSaveStatus:()=>ni});var s={};function o(e){return o="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},o(e)}function a(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}function l(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);nLq,AttributorStore:()=>Rq,BlockBlot:()=>Gq,ClassAttributor:()=>Eq,ContainerBlot:()=>Jq,EmbedBlot:()=>eX,InlineBlot:()=>Bq,LeafBlot:()=>Wq,ParentBlot:()=>Vq,Registry:()=>Dq,Scope:()=>Tq,ScrollBlot:()=>iX,StyleAttributor:()=>Nq,TextBlot:()=>sX});var h=n(1609),m=n.n(h),p=n(5795),f=n.n(p);const O=window.lodash,g=window.wp.hooks,y=window.wp.data,b=window.wp.plugins;function v(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i3?t.i-4:t.i:Array.isArray(e)?1:T(e)?2:L(e)?3:0}function A(e,t){return 2===k(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function S(e,t){return 2===k(e)?e.get(t):e[t]}function Y(e,t,n){var i=k(e);2===i?e.set(t,n):3===i?e.add(n):e[t]=n}function Q(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function T(e){return oe&&e instanceof Map}function L(e){return ae&&e instanceof Set}function x(e){return e.o||e.t}function P(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=pe(e);delete t[ce];for(var n=me(t),i=0;i1&&(e.set=e.add=e.clear=e.delete=j),Object.freeze(e),t&&M(e,function(e,t){return D(t,!0)},!0)),e}function j(){v(2)}function E(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function C(e){var t=fe[e];return t||v(18,e),t}function N(e,t){fe[e]||(fe[e]=t)}function R(){return re}function q(e,t){t&&(C("Patches"),e.u=[],e.s=[],e.v=t)}function X(e){I(e),e.p.forEach(H),e.p=null}function I(e){e===re&&(re=e.l)}function W(e){return re={p:[],l:re,h:e,m:!0,_:0}}function H(e){var t=e[ce];0===t.i||1===t.i?t.j():t.g=!0}function Z(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.O||C("ES5").S(t,e,i),i?(n[ce].P&&(X(t),v(4)),$(e)&&(e=z(t,e),t.l||F(t,e)),t.u&&C("Patches").M(n[ce].t,e,t.u,t.s)):e=z(t,n,[]),X(t),t.u&&t.v(t.u,t.s),e!==de?e:void 0}function z(e,t,n){if(E(t))return t;var i=t[ce];if(!i)return M(t,function(r,s){return V(e,i,t,r,s,n)},!0),t;if(i.A!==e)return t;if(!i.P)return F(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=P(i.k):i.o,s=r,o=!1;3===i.i&&(s=new Set(r),r.clear(),o=!0),M(s,function(t,s){return V(e,i,r,t,s,n,o)}),F(e,r,!1),n&&e.u&&C("Patches").N(i,n,e.u,e.s)}return i.o}function V(e,t,n,i,r,s,o){if(w(r)){var a=z(e,r,s&&t&&3!==t.i&&!A(t.R,i)?s.concat(i):void 0);if(Y(n,i,a),!w(a))return;e.m=!1}else o&&n.add(r);if($(r)&&!E(r)){if(!e.h.D&&e._<1)return;z(e,r),t&&t.A.l||F(e,r)}}function F(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&D(t,n)}function B(e,t){var n=e[ce];return(n?x(n):e)[t]}function U(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Object.getPrototypeOf(n)}}function G(e){e.P||(e.P=!0,e.l&&G(e.l))}function K(e){e.o||(e.o=P(e.t))}function J(e,t,n){var i=T(t)?C("MapSet").F(t,n):L(t)?C("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),i={i:n?1:0,A:t?t.A:R(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},r=i,s=Oe;n&&(r=[i],s=_e);var o=Proxy.revocable(r,s),a=o.revoke,l=o.proxy;return i.k=l,i.j=a,l}(t,n):C("ES5").J(t,n);return(n?n.A:R()).p.push(i),i}function ee(e){return w(e)||v(22,e),function e(t){if(!$(t))return t;var n,i=t[ce],r=k(t);if(i){if(!i.P&&(i.i<4||!C("ES5").K(i)))return i.t;i.I=!0,n=te(t,r),i.I=!1}else n=te(t,r);return M(n,function(t,r){i&&S(i.t,t)===r||Y(n,t,e(r))}),3===r?new Set(n):n}(e)}function te(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return P(e)}function ne(){function e(e,t){var n=r[e];return n?n.enumerable=t:r[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[ce];return Oe.get(t,e)},set:function(t){var n=this[ce];Oe.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var r=e[t][ce];if(!r.P)switch(r.i){case 5:i(r)&&G(r);break;case 4:n(r)&&G(r)}}}function n(e){for(var t=e.t,n=e.k,i=me(n),r=i.length-1;r>=0;r--){var s=i[r];if(s!==ce){var o=t[s];if(void 0===o&&!A(t,s))return!0;var a=n[s],l=a&&a[ce];if(l?l.t!==o:!Q(a,o))return!0}}var d=!!t[ce];return i.length!==me(t).length+(d?0:1)}function i(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var i=0;i1?i-1:0),a=1;a1?i-1:0),s=1;s=0;n--){var i=t[n];if(0===i.path.length&&"replace"===i.op){e=i.value;break}}n>-1&&(t=t.slice(n+1));var r=C("Patches").$;return w(e)?r(e,t):this.produce(e,function(e){return r(e,t)})},e}(),ye=new ge;ye.produce,ye.produceWithPatches.bind(ye),ye.setAutoFreeze.bind(ye),ye.setUseProxies.bind(ye),ye.applyPatches.bind(ye),ye.createDraft.bind(ye),ye.finishDraft.bind(ye);function be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ve(e){for(var t=1;t0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]1&&void 0!==arguments[1]?arguments[1]:e)},tailGetFrom:function(t){return ht(t,ut(e))},createTree:function(t){return ct(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:e)},tailCreateTree:function(t){return ct(t,ut(e))}}},pt=mt("currentPod"),ft=mt("".concat(pt.path,".name")),Ot=mt("".concat(pt.path,".id")),_t=mt("".concat(pt.path,".groups")),gt=mt("global"),yt=mt("".concat(gt.path,".showFields")),bt=mt("".concat(gt.path,".pod")),vt=mt("".concat(bt.path,".groups")),wt=mt("".concat(gt.path,".group")),$t=mt("".concat(gt.path,".field")),Mt=mt("data"),kt=mt("".concat(Mt.path,".fieldTypes")),At=mt("".concat(Mt.path,".relatedObjects")),St=mt("ui"),Yt=mt("".concat(St.path,".activeTab")),Qt=mt("".concat(St.path,".saveStatus")),Tt=mt("".concat(St.path,".deleteStatus")),Lt=mt("".concat(St.path,".saveMessage")),xt=mt("".concat(St.path,".groupSaveStatuses")),Pt=mt("".concat(St.path,".groupSaveMessages")),Dt=mt("".concat(St.path,".groupDeleteStatuses")),jt=mt("".concat(St.path,".groupDeleteMessages")),Et=mt("".concat(St.path,".fieldSaveStatuses")),Ct=mt("".concat(St.path,".fieldSaveMessages")),Nt=mt("".concat(St.path,".fieldDeleteStatuses")),Rt=mt("".concat(St.path,".fieldDeleteMessages")),qt="pods/dfv",Xt={NONE:"",DELETING:"DELETING",DELETE_SUCCESS:"DELETE_SUCCESS",DELETE_ERROR:"DELETE_ERROR"},It={NONE:"",SAVING:"SAVING",SAVE_SUCCESS:"SAVE_SUCCESS",SAVE_ERROR:"SAVE_ERROR",DELETE_ERROR:"DELETE_ERROR"},Wt="UI/SET_ACTIVE_TAB",Ht="UI/SET_SAVE_STATUS",Zt="UI/SET_DELETE_STATUS",zt="UI/SET_GROUP_SAVE_STATUS",Vt="UI/SET_GROUP_DELETE_STATUS",Ft="UI/SET_FIELD_SAVE_STATUS",Bt="UI/SET_FIELD_DELETE_STATUS",Ut="CURRENT_POD/SET_POD_NAME",Gt="CURRENT_POD/SET_OPTION_ITEM_VALUE",Kt="CURRENT_POD/SET_OPTIONS_VALUES",Jt="CURRENT_POD/SET_GROUPS",en="CURRENT_POD/MOVE_GROUP",tn="CURRENT_POD/ADD_GROUP",nn="CURRENT_POD/REMOVE_GROUP",rn="CURRENT_POD/SET_GROUP_DATA",sn="CURRENT_POD/SET_GROUP_FIELDS",on="CURRENT_POD/ADD_GROUP_FIELD",an="CURRENT_POD/REMOVE_GROUP_FIELD",ln="CURRENT_POD/SET_GROUP_FIELD_DATA",dn="CURRENT_POD/API_REQUEST",un={activeTab:"manage-fields",saveStatus:It.NONE,saveMessage:null,deleteStatus:Xt.NONE,deleteMessage:null,groupSaveStatuses:{},groupSaveMessages:{},groupDeleteStatuses:{},groupDeleteMessages:{},fieldSaveStatuses:{},fieldSaveMessages:{},fieldDeleteStatuses:{},fieldDeleteMessages:{}};function cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function hn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:un,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case Wt:return hn(hn({},e),{},{activeTab:t.activeTab});case Ht:var n,i=Object.values(It).includes(t.saveStatus)?t.saveStatus:un.saveStatus;return hn(hn({},e),{},{saveStatus:i,saveMessage:(null===(n=t.result)||void 0===n?void 0:n.message)||""});case Zt:var r,s=Object.values(Xt).includes(t.deleteStatus)?t.deleteStatus:un.deleteStatus;return hn(hn({},e),{},{deleteStatus:s,deleteMessage:(null===(r=t.result)||void 0===r?void 0:r.message)||""});case zt:var o,a,d,u,c=t.result,h=Object.values(It).includes(t.saveStatus)?t.saveStatus:un.saveStatus,m=(null===(o=c.group)||void 0===o?void 0:o.name)&&(null===(a=c.group)||void 0===a?void 0:a.name)!==t.previousGroupName||!1?null===(d=c.group)||void 0===d?void 0:d.name:t.previousGroupName,p=hn(hn({},(0,O.omit)(e.groupSaveStatuses,[t.previousGroupName])),{},l({},m,h)),f=hn(hn({},(0,O.omit)(e.groupSaveMessages,[t.previousGroupName])),{},l({},m,(null===(u=t.result)||void 0===u?void 0:u.message)||""));return hn(hn({},e),{},{groupSaveStatuses:p,groupSaveMessages:f});case Vt:var _,g=Object.values(Xt).includes(t.deleteStatus)?t.deleteStatus:Xt.NONE;return t.name?hn(hn({},e),{},{groupDeleteStatuses:hn(hn({},e.groupDeleteStatuses),{},l({},t.name,g)),groupDeleteMessages:hn(hn({},e.groupDeleteMessages),{},l({},t.name,(null===(_=t.result)||void 0===_?void 0:_.message)||""))}):e;case Ft:var y,b,v,w=t.result,$=Object.values(It).includes(t.saveStatus)?t.saveStatus:un.saveStatus,M=(null===(y=w.field)||void 0===y?void 0:y.name)&&(null===(b=w.field)||void 0===b?void 0:b.name)!==t.previousFieldName||!1?w.field.name:t.previousFieldName,k=hn(hn({},(0,O.omit)(e.fieldSaveStatuses,[t.previousFieldName])),{},l({},M,$)),A=hn(hn({},(0,O.omit)(e.fieldSaveMessages,[t.previousFieldName])),{},l({},M,(null===(v=t.result)||void 0===v?void 0:v.message)||""));return hn(hn({},e),{},{fieldSaveStatuses:k,fieldSaveMessages:A});case Bt:var S,Y=Object.values(Xt).includes(t.deleteStatus)?t.deleteStatus:Xt.NONE;return t.name?hn(hn({},e),{},{fieldDeleteStatuses:hn(hn({},e.fieldDeleteStatuses),{},l({},t.name,Y)),fieldDeleteMessages:hn(hn({},e.fieldDeleteMessages),{},l({},t.name,null===(S=t.result)||void 0===S?void 0:S.message))}):e;default:return e}},currentPod:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case Ut:return hn(hn({},e),{},{name:t.name});case Gt:var n=t.optionName,i=t.value;return hn(hn({},e),{},l({},n,i));case Kt:return hn(hn({},e),t.options);case en:var r=t.oldIndex,s=t.newIndex;if(null===r||null===s||r===s)return e;if(r>=e.groups.length||0>r)return e;if(s>=e.groups.length||0>s)return e;var o=c(e.groups);return o.splice(s,0,o.splice(r,1)[0]),hn(hn({},e),{},{groups:o});case Jt:return hn(hn({},e),{},l({},_t.tailPath,t.groups));case tn:var a,d;return null!=t&&null!==(a=t.result)&&void 0!==a&&null!==(a=a.group)&&void 0!==a&&a.id?hn(hn({},e),{},{groups:[].concat(c(e.groups),[null==t||null===(d=t.result)||void 0===d?void 0:d.group])}):e;case nn:return hn(hn({},e),{},{groups:e.groups?e.groups.filter(function(e){return e.id!==t.groupID}):void 0});case rn:var u=t.result,h=e.groups.map(function(e){var n,i;return e.id!==(null===(n=u.group)||void 0===n?void 0:n.id)?e:hn(hn({},t.result.group),{},{fields:(null===(i=u.group)||void 0===i?void 0:i.fields)||e.fields||[]})});return hn(hn({},e),{},{groups:h});case sn:var m=e.groups.map(function(e){return e.name!==t.groupName?e:hn(hn({},e),{},{fields:t.fields})});return hn(hn({},e),{},{groups:m});case on:var p;if(null==t||null===(p=t.result)||void 0===p||null===(p=p.field)||void 0===p||!p.id)return e;var f=e.groups.map(function(e){var n;if(e.name!==t.groupName)return e;var i=t.index?t.index:(null===(n=e.fields)||void 0===n?void 0:n.length)||0,r=c(e.fields||[]);return r.splice(i,0,t.result.field),hn(hn({},e),{},{fields:r})});return hn(hn({},e),{},{groups:f});case an:var O=e.groups.map(function(e){return e.id!==t.groupID?e:hn(hn({},e),{},{fields:e.fields.filter(function(e){return e.id!==t.fieldID})})});return hn(hn({},e),{},{groups:O});case ln:var _=t.result,g=e.groups.map(function(e){if(e.name!==t.groupName)return e;var n=e.fields.map(function(e){return e.id===_.field.id?_.field:e});return hn(hn({},e),{},{fields:n})});return hn(hn({},e),{},{groups:g});default:return e}},global:function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},data:function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}});var pn=function(e){return e},fn=function(e){return Ot.getFrom(e)},On=function(e){return ft.getFrom(e)},_n=function(e){return pt.getFrom(e)},gn=function(e,t){return pt.getFrom(e)[t]},yn=function(e){return _t.getFrom(e)},bn=function(e,t){return yn(e).find(function(e){return t===e.name})},vn=function(e,t){var n,i;return null!==(n=null===(i=bn(e,t))||void 0===i?void 0:i.fields)&&void 0!==n?n:[]},wn=function(e){return yn(e).reduce(function(e,t){return[].concat(c(e),c((null==t?void 0:t.fields)||[]))},[])},$n=function(e){return yt.getFrom(e)},Mn=function(e){return bt.getFrom(e)},kn=function(e,t){return bt.getFrom(e)[t]},An=function(e){return vt.getFrom(e)},Sn=function(e,t){return An(e).find(function(e){return e.name===t})},Yn=function(e,t){var n;return(null===(n=Sn(e,t))||void 0===n?void 0:n.fields)||[]},Qn=function(e){return An(e).reduce(function(e,t){return[].concat(c(e),c((null==t?void 0:t.fields)||[]))},[])},Tn=function(e){return wt.getFrom(e)},Ln=function(e){return $t.getFrom(e)},xn=function(e){return kt.getFrom(e)},Pn=function(e,t){return kt.getFrom(e)[t]},Dn=function(e){return At.getFrom(e)},jn=function(e){return Yt.getFrom(e)},En=function(e){return Qt.getFrom(e)},Cn=function(e){return Lt.getFrom(e)},Nn=function(e){return Tt.getFrom(e)},Rn=function(e){return xt.getFrom(e)},qn=function(e,t){return xt.getFrom(e)[t]},Xn=function(e){return Pt.getFrom(e)},In=function(e,t){return Pt.getFrom(e)[t]},Wn=function(e){return Dt.getFrom(e)},Hn=function(e,t){return Dt.getFrom(e)[t]},Zn=function(e){return jt.getFrom(e)},zn=function(e,t){return jt.getFrom(e)[t]},Vn=function(e){return Et.getFrom(e)},Fn=function(e,t){return Et.getFrom(e)[t]},Bn=function(e){return Ct.getFrom(e)},Un=function(e,t){return Ct.getFrom(e)[t]},Gn=function(e){return Nt.getFrom(e)},Kn=function(e,t){return Nt.getFrom(e)[t]},Jn=function(e){return Rt.getFrom(e)},ei=function(e,t){return Rt.getFrom(e)[t]},ti=function(e){return{type:Wt,activeTab:e}},ni=function(e){return function(){return{type:Ht,saveStatus:e,result:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}},ii=function(e){return function(){return{type:Zt,deleteStatus:e,result:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}},ri=function(e,t){return function(){return{type:zt,previousGroupName:t,saveStatus:e,result:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}},si=function(e){return{type:zt,previousGroupName:e,saveStatus:It.NONE,result:{}}},oi=function(e,t){return function(){return{type:Vt,name:t,deleteStatus:e,result:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}},ai=function(e,t){return function(){return{type:Ft,previousFieldName:t,saveStatus:e,result:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}},li=function(e){return{type:Ft,previousFieldName:e,saveStatus:It.NONE,result:{}}},di=function(e,t){return function(){return{type:Bt,name:t,deleteStatus:e,result:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}},ui=function(e){return{type:Ut,name:e}},ci=function(e,t){return{type:Gt,optionName:e,value:t}},hi=function(){return{type:Kt,options:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}},mi=function(e){return hi((null==e?void 0:e.pod)||{})},pi=function(e){return{type:Jt,groups:e}},fi=function(e,t){return{type:en,oldIndex:e,newIndex:t}},Oi=function(e){return{type:tn,result:e}},_i=function(e){return{type:nn,groupID:e}},gi=function(){return{type:rn,result:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}},yi=function(e,t){return{type:sn,groupName:e,fields:t}},bi=function(e,t){return function(n){return{type:on,groupName:e,index:t,result:n}}},vi=function(e,t){return{type:an,groupID:e,fieldID:t}},wi=function(e){return function(){return{type:ln,groupName:e,result:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}},$i=function(e,t){var n=(0,O.omit)(e,["id","label","name","object_type","storage","object_storage_type","type","_locale","groups"]),i={groups:(e.groups||[]).map(function(e){return{group_id:e.id,fields:(e.fields||[]).map(function(e){return e.id})}})},r={name:e.name||"",label:e.label||"",args:n,order:i};return{type:dn,payload:{url:t?"/pods/v1/pods/".concat(t):"/pods/v1/pods",method:"POST",data:r,onSuccess:[ni(It.SAVE_SUCCESS),mi],onFailure:ni(It.SAVE_ERROR),onStart:ni(It.SAVING)}}},Mi=function(e){return{type:dn,payload:{url:"/pods/v1/pods/".concat(e),method:"DELETE",onSuccess:ii(Xt.DELETE_SUCCESS),onFailure:ii(Xt.DELETE_ERROR),onStart:ii(Xt.DELETING)}}},ki=function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5?arguments[5]:void 0;return{type:dn,payload:{url:s?"/pods/v1/groups/".concat(s):"/pods/v1/groups",method:"POST",data:{pod_id:e.toString(),name:n,label:i,args:r},onSuccess:[ri(It.SAVE_SUCCESS,t),s?gi:Oi],onFailure:ri(It.SAVE_ERROR,t),onStart:ri(It.SAVING,t)}}},Ai=function(e,t){return{type:dn,payload:{url:"/pods/v1/groups/".concat(e),method:"DELETE",onSuccess:oi(Xt.DELETE_SUCCESS,t),onFailure:oi(Xt.DELETE_ERROR,t),onStart:oi(Xt.DELETING,t)}}},Si=function(e,t,n,i,r,s,o,a,l){var d=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null;return{type:dn,payload:{url:l?"/pods/v1/fields/".concat(l):"/pods/v1/fields",method:"POST",data:{pod_id:e.toString(),group_id:t.toString(),name:r,label:s,type:o,args:a},onSuccess:[ai(It.SAVE_SUCCESS,i),l?wi(n):bi(n,d)],onFailure:ai(It.SAVE_ERROR,i),onStart:ai(It.SAVING,i)}}},Yi=function(e,t){return{type:dn,payload:{url:"/pods/v1/fields/".concat(e),method:"DELETE",onSuccess:di(Xt.DELETE_SUCCESS,t),onFailure:di(Xt.DELETE_ERROR,t),onStart:di(Xt.DELETING,t)}}};function Qi(e,t,n,i,r,s,o){try{var a=e[s](o),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,r)}function Ti(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var s=e.apply(t,n);function o(e){Qi(s,i,r,o,a,"next",e)}function a(e){Qi(s,i,r,o,a,"throw",e)}o(void 0)})}}const Li=window.regeneratorRuntime;var xi=n.n(Li);const Pi=window.wp.apiFetch;var Di=n.n(Pi);function ji(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,s,o,a=[],l=!0,d=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=s.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){d=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw r}}return a}}(e,t)||u(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.")}()}const Ei=function(e){return"object"!==o(e)||null===e||(Object.entries(e).forEach(function(t){var n=ji(t,2),i=n[0],r=n[1];"boolean"==typeof r?e[i]=r?1:0:void 0===r&&(e[i]="")}),void 0!==e.args&&Object.entries(e.args).forEach(function(t){var n=ji(t,2),i=n[0],r=n[1];"boolean"==typeof r?e.args[i]=r?1:0:void 0===r&&(e.args[i]="")})),e};var Ci=dn;const Ni=function(e){var t=e.dispatch;return function(e){return function(){var n=Ti(xi().mark(function n(i){var r,s,o,a,l,d,u,c,h;return xi().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(e(i),Ci===i.type){n.next=1;break}return n.abrupt("return");case 1:return r=i.payload,s=r.url,o=r.method,a=r.data,l=r.onSuccess,d=r.onFailure,(u=r.onStart)&&t(u()),n.prev=2,n.next=3,Di()({path:s,method:o,parse:!0,data:Ei(a)});case 3:c=n.sent,Array.isArray(l)?l.forEach(function(e){return t(e(c))}):t(l(c)),n.next=5;break;case 4:n.prev=4,h=n.catch(2),Array.isArray(d)?d.forEach(function(e){return t(e(h))}):t(d(h));case 5:case"end":return n.stop()}},n,null,[[2,4]])}));return function(e){return n.apply(this,arguments)}}()}};function Ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function qi(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return i.length?"".concat(i,"-").concat(e,"-").concat(t,"-").concat(n):"".concat(e,"-").concat(t,"-").concat(n)},Ii=function(e,t){var n=et({reducer:mn,middleware:[Ni],preloadedState:e}),s=Object.keys(i).reduce(function(e,t){return e[t]=function(){for(var e=arguments.length,r=new Array(e),s=0;s0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}}),dr=n.n(lr),ur=n.cjs(function(e,t){var n={};e.exports=function(e,t){var i=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}}),cr=n.n(ur),hr=n.cjs(function(e,t){e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}}),mr=n.n(hr),pr=n.cjs(function(e,t){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}}),fr=n.n(pr),Or=n.cjs(function(e,t){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}),_r=n.n(Or),gr=n(6475),yr={};yr.styleTagTransform=_r(),yr.setAttributes=mr(),yr.insert=cr().bind(null,"head"),yr.domAPI=dr(),yr.insertStyleElement=fr();ar()(gr.A,yr);gr.A&&gr.A.locals&&gr.A.locals;var br="/home/runner/work/pods-private/pods-private/ui/js/dfv/src/components/field-wrapper/div-field-layout.js",vr=void 0,wr=function(e){var t=e.fieldType,n=e.labelComponent,i=e.descriptionComponent,r=e.inputComponent,s=e.validationMessagesComponent,o=sr()("pods-dfv-container","pods-dfv-container-".concat(t));return m().createElement("div",{className:"pods-field-option",__self:vr,__source:{fileName:br,lineNumber:20,columnNumber:3}},n||void 0,m().createElement("div",{className:"pods-field-option__field",__self:vr,__source:{fileName:br,lineNumber:23,columnNumber:4}},m().createElement("div",{className:o,__self:vr,__source:{fileName:br,lineNumber:24,columnNumber:5}},r,s),i||void 0))};wr.propTypes={fieldType:Hi().string.isRequired,labelComponent:Hi().element,descriptionComponent:Hi().element,inputComponent:Hi().element.isRequired,validationMessagesComponent:Hi().element};const $r=wr;var Mr=n(4728),kr=n.n(Mr);const Ar=window.wp.autop;var Sr={allowedTags:["blockquote","caption","div","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","li","ol","p","pre","section","table","tbody","td","th","thead","tr","ul","a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"],allowedAttributes:{"*":["class","id","data-*","style"],iframe:["*"],a:["href","name","target"],img:["src","srcset","sizes","alt","width","height"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto"],allowedSchemesByTag:{},allowProtocolRelative:!0},Yr={allowedTags:["a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"],allowedAttributes:{"*":["class","id","data-*","style"],a:["href","name","target"],img:["src","srcset","sizes","alt","width","height"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto"],allowedSchemesByTag:{},allowProtocolRelative:!0},Qr={allowedTags:["h1","h2","h3","h4","h5","h6","blockquote","p","ul","ol","nl","li","b","i","strong","em","strike","code","cite","hr","br","div","table","thead","caption","tbody","tr","th","td","pre","img","figure","figcaption","iframe","section"],allowedAttributes:{"*":["class","id","data-*","style"],iframe:["*"],img:["src","srcset","sizes","alt","width","height"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"]},Tr=n(3994),Lr={};Lr.styleTagTransform=_r(),Lr.setAttributes=mr(),Lr.insert=cr().bind(null,"head"),Lr.domAPI=dr(),Lr.insertStyleElement=fr();ar()(Tr.A,Lr);Tr.A&&Tr.A.locals&&Tr.A.locals;var xr=function(e){var t=e.description;return m().createElement("p",{className:"pods-field-description",dangerouslySetInnerHTML:{__html:(0,Ar.removep)(kr()(t,Qr))},__self:void 0,__source:{fileName:"/home/runner/work/pods-private/pods-private/ui/js/dfv/src/components/field-description.js",lineNumber:12,columnNumber:2}})};xr.propTypes={description:Hi().string.isRequired};const Pr=xr;function Dr(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function jr(e){return e instanceof Dr(e).Element||e instanceof Element}function Er(e){return e instanceof Dr(e).HTMLElement||e instanceof HTMLElement}function Cr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Dr(e).ShadowRoot||e instanceof ShadowRoot)}var Nr=Math.max,Rr=Math.min,qr=Math.round;function Xr(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Ir(){return!/^((?!chrome|android).)*safari/i.test(Xr())}function Wr(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),r=1,s=1;t&&Er(e)&&(r=e.offsetWidth>0&&qr(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&qr(i.height)/e.offsetHeight||1);var o=(jr(e)?Dr(e):window).visualViewport,a=!Ir()&&n,l=(i.left+(a&&o?o.offsetLeft:0))/r,d=(i.top+(a&&o?o.offsetTop:0))/s,u=i.width/r,c=i.height/s;return{width:u,height:c,top:d,right:l+u,bottom:d+c,left:l,x:l,y:d}}function Hr(e){var t=Dr(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Zr(e){return e?(e.nodeName||"").toLowerCase():null}function zr(e){return((jr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Vr(e){return Wr(zr(e)).left+Hr(e).scrollLeft}function Fr(e){return Dr(e).getComputedStyle(e)}function Br(e){var t=Fr(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function Ur(e,t,n){void 0===n&&(n=!1);var i=Er(t),r=Er(t)&&function(e){var t=e.getBoundingClientRect(),n=qr(t.width)/e.offsetWidth||1,i=qr(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),s=zr(t),o=Wr(e,r,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==Zr(t)||Br(s))&&(a=function(e){return e!==Dr(e)&&Er(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Hr(e);var t}(t)),Er(t)?((l=Wr(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Vr(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function Gr(e){var t=Wr(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Kr(e){return"html"===Zr(e)?e:e.assignedSlot||e.parentNode||(Cr(e)?e.host:null)||zr(e)}function Jr(e){return["html","body","#document"].indexOf(Zr(e))>=0?e.ownerDocument.body:Er(e)&&Br(e)?e:Jr(Kr(e))}function es(e,t){var n;void 0===t&&(t=[]);var i=Jr(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),s=Dr(i),o=r?[s].concat(s.visualViewport||[],Br(i)?i:[]):i,a=t.concat(o);return r?a:a.concat(es(Kr(o)))}function ts(e){return["table","td","th"].indexOf(Zr(e))>=0}function ns(e){return Er(e)&&"fixed"!==Fr(e).position?e.offsetParent:null}function is(e){for(var t=Dr(e),n=ns(e);n&&ts(n)&&"static"===Fr(n).position;)n=ns(n);return n&&("html"===Zr(n)||"body"===Zr(n)&&"static"===Fr(n).position)?t:n||function(e){var t=/firefox/i.test(Xr());if(/Trident/i.test(Xr())&&Er(e)&&"fixed"===Fr(e).position)return null;var n=Kr(e);for(Cr(n)&&(n=n.host);Er(n)&&["html","body"].indexOf(Zr(n))<0;){var i=Fr(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var rs="top",ss="bottom",os="right",as="left",ls="auto",ds=[rs,ss,os,as],us="start",cs="end",hs="viewport",ms="popper",ps=ds.reduce(function(e,t){return e.concat([t+"-"+us,t+"-"+cs])},[]),fs=[].concat(ds,[ls]).reduce(function(e,t){return e.concat([t,t+"-"+us,t+"-"+cs])},[]),Os=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function _s(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||r(e)}),i}function gs(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var ys={placement:"bottom",modifiers:[],strategy:"absolute"};function bs(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function Ss(e){var t,n=e.reference,i=e.element,r=e.placement,s=r?Ms(r):null,o=r?ks(r):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(s){case rs:t={x:a,y:n.y-i.height};break;case ss:t={x:a,y:n.y+n.height};break;case os:t={x:n.x+n.width,y:l};break;case as:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var d=s?As(s):null;if(null!=d){var u="y"===d?"height":"width";switch(o){case us:t[d]=t[d]-(n[u]/2-i[u]/2);break;case cs:t[d]=t[d]+(n[u]/2-i[u]/2)}}return t}const Ys={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ss({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Qs={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ts(e){var t,n=e.popper,i=e.popperRect,r=e.placement,s=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,c=e.isFixed,h=o.x,m=void 0===h?0:h,p=o.y,f=void 0===p?0:p,O="function"==typeof u?u({x:m,y:f}):{x:m,y:f};m=O.x,f=O.y;var _=o.hasOwnProperty("x"),g=o.hasOwnProperty("y"),y=as,b=rs,v=window;if(d){var w=is(n),$="clientHeight",M="clientWidth";if(w===Dr(n)&&"static"!==Fr(w=zr(n)).position&&"absolute"===a&&($="scrollHeight",M="scrollWidth"),r===rs||(r===as||r===os)&&s===cs)b=ss,f-=(c&&w===v&&v.visualViewport?v.visualViewport.height:w[$])-i.height,f*=l?1:-1;if(r===as||(r===rs||r===ss)&&s===cs)y=os,m-=(c&&w===v&&v.visualViewport?v.visualViewport.width:w[M])-i.width,m*=l?1:-1}var k,A=Object.assign({position:a},d&&Qs),S=!0===u?function(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:qr(n*r)/r||0,y:qr(i*r)/r||0}}({x:m,y:f},Dr(n)):{x:m,y:f};return m=S.x,f=S.y,l?Object.assign({},A,((k={})[b]=g?"0":"",k[y]=_?"0":"",k.transform=(v.devicePixelRatio||1)<=1?"translate("+m+"px, "+f+"px)":"translate3d("+m+"px, "+f+"px, 0)",k)):Object.assign({},A,((t={})[b]=g?f+"px":"",t[y]=_?m+"px":"",t.transform="",t))}const Ls={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,s=n.adaptive,o=void 0===s||s,a=n.roundOffsets,l=void 0===a||a,d={placement:Ms(t.placement),variation:ks(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ts(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ts(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};const xs={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];Er(r)&&Zr(r)&&(Object.assign(r.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],r=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});Er(i)&&Zr(i)&&(Object.assign(i.style,s),Object.keys(r).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};const Ps={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,s=void 0===r?[0,0]:r,o=fs.reduce(function(e,n){return e[n]=function(e,t,n){var i=Ms(e),r=[as,rs].indexOf(i)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*r,[as,os].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}(n,t.rects,s),e},{}),a=o[t.placement],l=a.x,d=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=o}};var Ds={left:"right",right:"left",bottom:"top",top:"bottom"};function js(e){return e.replace(/left|right|bottom|top/g,function(e){return Ds[e]})}var Es={start:"end",end:"start"};function Cs(e){return e.replace(/start|end/g,function(e){return Es[e]})}function Ns(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Cr(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Rs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qs(e,t,n){return t===hs?Rs(function(e,t){var n=Dr(e),i=zr(e),r=n.visualViewport,s=i.clientWidth,o=i.clientHeight,a=0,l=0;if(r){s=r.width,o=r.height;var d=Ir();(d||!d&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:o,x:a+Vr(e),y:l}}(e,n)):jr(t)?function(e,t){var n=Wr(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Rs(function(e){var t,n=zr(e),i=Hr(e),r=null==(t=e.ownerDocument)?void 0:t.body,s=Nr(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=Nr(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+Vr(e),l=-i.scrollTop;return"rtl"===Fr(r||n).direction&&(a+=Nr(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}(zr(e)))}function Xs(e,t,n,i){var r="clippingParents"===t?function(e){var t=es(Kr(e)),n=["absolute","fixed"].indexOf(Fr(e).position)>=0&&Er(e)?is(e):e;return jr(n)?t.filter(function(e){return jr(e)&&Ns(e,n)&&"body"!==Zr(e)}):[]}(e):[].concat(t),s=[].concat(r,[n]),o=s[0],a=s.reduce(function(t,n){var r=qs(e,n,i);return t.top=Nr(r.top,t.top),t.right=Rr(r.right,t.right),t.bottom=Rr(r.bottom,t.bottom),t.left=Nr(r.left,t.left),t},qs(e,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Is(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ws(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function Hs(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=void 0===i?e.placement:i,s=n.strategy,o=void 0===s?e.strategy:s,a=n.boundary,l=void 0===a?"clippingParents":a,d=n.rootBoundary,u=void 0===d?hs:d,c=n.elementContext,h=void 0===c?ms:c,m=n.altBoundary,p=void 0!==m&&m,f=n.padding,O=void 0===f?0:f,_=Is("number"!=typeof O?O:Ws(O,ds)),g=h===ms?"reference":ms,y=e.rects.popper,b=e.elements[p?g:h],v=Xs(jr(b)?b:b.contextElement||zr(e.elements.popper),l,u,o),w=Wr(e.elements.reference),$=Ss({reference:w,element:y,strategy:"absolute",placement:r}),M=Rs(Object.assign({},y,$)),k=h===ms?M:w,A={top:v.top-k.top+_.top,bottom:k.bottom-v.bottom+_.bottom,left:v.left-k.left+_.left,right:k.right-v.right+_.right},S=e.modifiersData.offset;if(h===ms&&S){var Y=S[r];Object.keys(A).forEach(function(e){var t=[os,ss].indexOf(e)>=0?1:-1,n=[rs,ss].indexOf(e)>=0?"y":"x";A[e]+=Y[n]*t})}return A}const Zs={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,s=void 0===r||r,o=n.altAxis,a=void 0===o||o,l=n.fallbackPlacements,d=n.padding,u=n.boundary,c=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,p=void 0===m||m,f=n.allowedAutoPlacements,O=t.options.placement,_=Ms(O),g=l||(_===O||!p?[js(O)]:function(e){if(Ms(e)===ls)return[];var t=js(e);return[Cs(e),t,Cs(t)]}(O)),y=[O].concat(g).reduce(function(e,n){return e.concat(Ms(n)===ls?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,d=void 0===l?fs:l,u=ks(i),c=u?a?ps:ps.filter(function(e){return ks(e)===u}):ds,h=c.filter(function(e){return d.indexOf(e)>=0});0===h.length&&(h=c);var m=h.reduce(function(t,n){return t[n]=Hs(e,{placement:n,boundary:r,rootBoundary:s,padding:o})[Ms(n)],t},{});return Object.keys(m).sort(function(e,t){return m[e]-m[t]})}(t,{placement:n,boundary:u,rootBoundary:c,padding:d,flipVariations:p,allowedAutoPlacements:f}):n)},[]),b=t.rects.reference,v=t.rects.popper,w=new Map,$=!0,M=y[0],k=0;k=0,T=Q?"width":"height",L=Hs(t,{placement:A,boundary:u,rootBoundary:c,altBoundary:h,padding:d}),x=Q?Y?os:as:Y?ss:rs;b[T]>v[T]&&(x=js(x));var P=js(x),D=[];if(s&&D.push(L[S]<=0),a&&D.push(L[x]<=0,L[P]<=0),D.every(function(e){return e})){M=A,$=!1;break}w.set(A,D)}if($)for(var j=function(e){var t=y.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return M=t,"break"},E=p?3:1;E>0;E--){if("break"===j(E))break}t.placement!==M&&(t.modifiersData[i]._skip=!0,t.placement=M,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function zs(e,t,n){return Nr(e,Rr(t,n))}const Vs={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,s=void 0===r||r,o=n.altAxis,a=void 0!==o&&o,l=n.boundary,d=n.rootBoundary,u=n.altBoundary,c=n.padding,h=n.tether,m=void 0===h||h,p=n.tetherOffset,f=void 0===p?0:p,O=Hs(t,{boundary:l,rootBoundary:d,padding:c,altBoundary:u}),_=Ms(t.placement),g=ks(t.placement),y=!g,b=As(_),v="x"===b?"y":"x",w=t.modifiersData.popperOffsets,$=t.rects.reference,M=t.rects.popper,k="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,A="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(w){if(s){var Q,T="y"===b?rs:as,L="y"===b?ss:os,x="y"===b?"height":"width",P=w[b],D=P+O[T],j=P-O[L],E=m?-M[x]/2:0,C=g===us?$[x]:M[x],N=g===us?-M[x]:-$[x],R=t.elements.arrow,q=m&&R?Gr(R):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},I=X[T],W=X[L],H=zs(0,$[x],q[x]),Z=y?$[x]/2-E-H-I-A.mainAxis:C-H-I-A.mainAxis,z=y?-$[x]/2+E+H+W+A.mainAxis:N+H+W+A.mainAxis,V=t.elements.arrow&&is(t.elements.arrow),F=V?"y"===b?V.clientTop||0:V.clientLeft||0:0,B=null!=(Q=null==S?void 0:S[b])?Q:0,U=P+z-B,G=zs(m?Rr(D,P+Z-B-F):D,P,m?Nr(j,U):j);w[b]=G,Y[b]=G-P}if(a){var K,J="x"===b?rs:as,ee="x"===b?ss:os,te=w[v],ne="y"===v?"height":"width",ie=te+O[J],re=te-O[ee],se=-1!==[rs,as].indexOf(_),oe=null!=(K=null==S?void 0:S[v])?K:0,ae=se?ie:te-$[ne]-M[ne]-oe+A.altAxis,le=se?te+$[ne]+M[ne]-oe-A.altAxis:re,de=m&&se?function(e,t,n){var i=zs(e,t,n);return i>n?n:i}(ae,te,le):zs(m?ae:ie,te,m?le:re);w[v]=de,Y[v]=de-te}t.modifiersData[i]=Y}},requiresIfExists:["offset"]};const Fs={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=Ms(n.placement),l=As(a),d=[as,os].indexOf(a)>=0?"height":"width";if(s&&o){var u=function(e,t){return Is("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ws(e,ds))}(r.padding,n),c=Gr(s),h="y"===l?rs:as,m="y"===l?ss:os,p=n.rects.reference[d]+n.rects.reference[l]-o[l]-n.rects.popper[d],f=o[l]-n.rects.reference[l],O=is(s),_=O?"y"===l?O.clientHeight||0:O.clientWidth||0:0,g=p/2-f/2,y=u[h],b=_-c[d]-u[m],v=_/2-c[d]/2+g,w=zs(y,v,b),$=l;n.modifiersData[i]=((t={})[$]=w,t.centerOffset=w-v,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&Ns(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Bs(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Us(e){return[rs,os,ss,as].some(function(t){return e[t]>=0})}const Gs={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,o=Hs(t,{elementContext:"reference"}),a=Hs(t,{altBoundary:!0}),l=Bs(o,i),d=Bs(a,r,s),u=Us(l),c=Us(d);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":c})}};var Ks=vs({defaultModifiers:[$s,Ys,Ls,xs,Ps,Zs,Vs,Fs,Gs]}),Js="tippy-content",eo="tippy-backdrop",to="tippy-arrow",no="tippy-svg-arrow",io={passive:!0,capture:!0},ro=function(){return document.body};function so(e,t,n){if(Array.isArray(e)){var i=e[t];return i??(Array.isArray(n)?n[t]:n)}return e}function oo(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function ao(e,t){return"function"==typeof e?e.apply(void 0,t):e}function lo(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout(function(){e(i)},t)};var n}function uo(e){return[].concat(e)}function co(e,t){-1===e.indexOf(t)&&e.push(t)}function ho(e){return e.split("-")[0]}function mo(e){return[].slice.call(e)}function po(e){return Object.keys(e).reduce(function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t},{})}function fo(){return document.createElement("div")}function Oo(e){return["Element","Fragment"].some(function(t){return oo(e,t)})}function _o(e){return oo(e,"MouseEvent")}function go(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function yo(e){return Oo(e)?[e]:function(e){return oo(e,"NodeList")}(e)?mo(e):Array.isArray(e)?e:mo(document.querySelectorAll(e))}function bo(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function vo(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function wo(e){var t,n=uo(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function $o(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[i](t,n)})}function Mo(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var ko={isTouch:!1},Ao=0;function So(){ko.isTouch||(ko.isTouch=!0,window.performance&&document.addEventListener("mousemove",Yo))}function Yo(){var e=performance.now();e-Ao<20&&(ko.isTouch=!1,document.removeEventListener("mousemove",Yo)),Ao=e}function Qo(){var e=document.activeElement;if(go(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var To=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var Lo={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},xo=Object.assign({appendTo:ro,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Lo,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Po=Object.keys(xo);function Do(e){var t=(e.plugins||[]).reduce(function(t,n){var i,r=n.name,s=n.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(i=xo[r])?i:s);return t},{});return Object.assign({},e,t)}function jo(e,t){var n=Object.assign({},t,{content:ao(t.content,[e])},t.ignoreAttributes?{}:function(e,t){var n=(t?Object.keys(Do(Object.assign({},xo,{plugins:t}))):Po).reduce(function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t},{});return n}(e,t.plugins));return n.aria=Object.assign({},xo.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Eo(e,t){e.innerHTML=t}function Co(e){var t=fo();return!0===e?t.className=to:(t.className=no,Oo(e)?t.appendChild(e):Eo(t,e)),t}function No(e,t){Oo(t.content)?(Eo(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Eo(e,t.content):e.textContent=t.content)}function Ro(e){var t=e.firstElementChild,n=mo(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(Js)}),arrow:n.find(function(e){return e.classList.contains(to)||e.classList.contains(no)}),backdrop:n.find(function(e){return e.classList.contains(eo)})}}function qo(e){var t=fo(),n=fo();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=fo();function r(n,i){var r=Ro(t),s=r.box,o=r.content,a=r.arrow;i.theme?s.setAttribute("data-theme",i.theme):s.removeAttribute("data-theme"),"string"==typeof i.animation?s.setAttribute("data-animation",i.animation):s.removeAttribute("data-animation"),i.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?s.setAttribute("role",i.role):s.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||No(o,e.props),i.arrow?a?n.arrow!==i.arrow&&(s.removeChild(a),s.appendChild(Co(i.arrow))):s.appendChild(Co(i.arrow)):a&&s.removeChild(a)}return i.className=Js,i.setAttribute("data-state","hidden"),No(i,e.props),t.appendChild(n),n.appendChild(i),r(e.props,e.props),{popper:t,onUpdate:r}}qo.$$tippy=!0;var Xo=1,Io=[],Wo=[];function Ho(e,t){var n,i,r,s,o,a,l,d,u=jo(e,Object.assign({},xo,Do(po(t)))),c=!1,h=!1,m=!1,p=!1,f=[],O=lo(V,u.interactiveDebounce),_=Xo++,g=(d=u.plugins).filter(function(e,t){return d.indexOf(e)===t}),y={id:_,reference:e,popper:fo(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:g,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(t){0;if(y.state.isDestroyed)return;P("onBeforeUpdate",[y,t]),Z();var n=y.props,i=jo(e,Object.assign({},n,po(t),{ignoreAttributes:!0}));y.props=i,H(),n.interactiveDebounce!==i.interactiveDebounce&&(E(),O=lo(V,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?uo(n.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):i.triggerTarget&&e.removeAttribute("aria-expanded");j(),x(),w&&w(n,i);y.popperInstance&&(G(),J().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));P("onAfterUpdate",[y,t])},setContent:function(e){y.setProps({content:e})},show:function(){0;var e=y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,i=ko.isTouch&&!y.props.touch,r=so(y.props.duration,0,xo.duration);if(e||t||n||i)return;if(Y().hasAttribute("disabled"))return;if(P("onShow",[y],!1),!1===y.props.onShow(y))return;y.state.isVisible=!0,S()&&(v.style.visibility="visible");x(),q(),y.state.isMounted||(v.style.transition="none");if(S()){var s=T();bo([s.box,s.content],0)}a=function(){var e;if(y.state.isVisible&&!p){if(p=!0,v.offsetHeight,v.style.transition=y.props.moveTransition,S()&&y.props.animation){var t=T(),n=t.box,i=t.content;bo([n,i],r),vo([n,i],"visible")}D(),j(),co(Wo,y),null==(e=y.popperInstance)||e.forceUpdate(),P("onMount",[y]),y.props.animation&&S()&&function(e,t){I(e,t)}(r,function(){y.state.isShown=!0,P("onShown",[y])})}},function(){var e,t=y.props.appendTo,n=Y();e=y.props.interactive&&t===ro||"parent"===t?n.parentNode:ao(t,[n]);e.contains(v)||e.appendChild(v);y.state.isMounted=!0,G(),!1}()},hide:function(){0;var e=!y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,i=so(y.props.duration,1,xo.duration);if(e||t||n)return;if(P("onHide",[y],!1),!1===y.props.onHide(y))return;y.state.isVisible=!1,y.state.isShown=!1,p=!1,c=!1,S()&&(v.style.visibility="hidden");if(E(),X(),x(!0),S()){var r=T(),s=r.box,o=r.content;y.props.animation&&(bo([s,o],i),vo([s,o],"hidden"))}D(),j(),y.props.animation?S()&&function(e,t){I(e,function(){!y.state.isVisible&&v.parentNode&&v.parentNode.contains(v)&&t()})}(i,y.unmount):y.unmount()},hideWithInteractivity:function(e){0;Q().addEventListener("mousemove",O),co(Io,O),O(e)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){0;y.state.isVisible&&y.hide();if(!y.state.isMounted)return;K(),J().forEach(function(e){e._tippy.unmount()}),v.parentNode&&v.parentNode.removeChild(v);Wo=Wo.filter(function(e){return e!==y}),y.state.isMounted=!1,P("onHidden",[y])},destroy:function(){0;if(y.state.isDestroyed)return;y.clearDelayTimeouts(),y.unmount(),Z(),delete e._tippy,y.state.isDestroyed=!0,P("onDestroy",[y])}};if(!u.render)return y;var b=u.render(y),v=b.popper,w=b.onUpdate;v.setAttribute("data-tippy-root",""),v.id="tippy-"+y.id,y.popper=v,e._tippy=y,v._tippy=y;var $=g.map(function(e){return e.fn(y)}),M=e.hasAttribute("aria-expanded");return H(),j(),x(),P("onCreate",[y]),u.showOnCreate&&ee(),v.addEventListener("mouseenter",function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),v.addEventListener("mouseleave",function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&Q().addEventListener("mousemove",O)}),y;function k(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function A(){return"hold"===k()[0]}function S(){var e;return!(null==(e=y.props.render)||!e.$$tippy)}function Y(){return l||e}function Q(){var e=Y().parentNode;return e?wo(e):document}function T(){return Ro(v)}function L(e){return y.state.isMounted&&!y.state.isVisible||ko.isTouch||s&&"focus"===s.type?0:so(y.props.delay,e?0:1,xo.delay)}function x(e){void 0===e&&(e=!1),v.style.pointerEvents=y.props.interactive&&!e?"":"none",v.style.zIndex=""+y.props.zIndex}function P(e,t,n){var i;(void 0===n&&(n=!0),$.forEach(function(n){n[e]&&n[e].apply(n,t)}),n)&&(i=y.props)[e].apply(i,t)}function D(){var t=y.props.aria;if(t.content){var n="aria-"+t.content,i=v.id;uo(y.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(y.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var r=t&&t.replace(i,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}})}}function j(){!M&&y.props.aria.expanded&&uo(y.props.triggerTarget||e).forEach(function(e){y.props.interactive?e.setAttribute("aria-expanded",y.state.isVisible&&e===Y()?"true":"false"):e.removeAttribute("aria-expanded")})}function E(){Q().removeEventListener("mousemove",O),Io=Io.filter(function(e){return e!==O})}function C(t){if(!ko.isTouch||!m&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!y.props.interactive||!Mo(v,n)){if(uo(y.props.triggerTarget||e).some(function(e){return Mo(e,n)})){if(ko.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else P("onClickOutside",[y,t]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),h=!0,setTimeout(function(){h=!1}),y.state.isMounted||X())}}}function N(){m=!0}function R(){m=!1}function q(){var e=Q();e.addEventListener("mousedown",C,!0),e.addEventListener("touchend",C,io),e.addEventListener("touchstart",R,io),e.addEventListener("touchmove",N,io)}function X(){var e=Q();e.removeEventListener("mousedown",C,!0),e.removeEventListener("touchend",C,io),e.removeEventListener("touchstart",R,io),e.removeEventListener("touchmove",N,io)}function I(e,t){var n=T().box;function i(e){e.target===n&&($o(n,"remove",i),t())}if(0===e)return t();$o(n,"remove",o),$o(n,"add",i),o=i}function W(t,n,i){void 0===i&&(i=!1),uo(y.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,i),f.push({node:e,eventType:t,handler:n,options:i})})}function H(){var e;A()&&(W("touchstart",z,{passive:!0}),W("touchend",F,{passive:!0})),(e=y.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(W(e,z),e){case"mouseenter":W("mouseleave",F);break;case"focus":W(To?"focusout":"blur",B);break;case"focusin":W("focusout",B)}})}function Z(){f.forEach(function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)}),f=[]}function z(e){var t,n=!1;if(y.state.isEnabled&&!U(e)&&!h){var i="focus"===(null==(t=s)?void 0:t.type);s=e,l=e.currentTarget,j(),!y.state.isVisible&&_o(e)&&Io.forEach(function(t){return t(e)}),"click"===e.type&&(y.props.trigger.indexOf("mouseenter")<0||c)&&!1!==y.props.hideOnClick&&y.state.isVisible?n=!0:ee(e),"click"===e.type&&(c=!n),n&&!i&&te(e)}}function V(e){var t=e.target,n=Y().contains(t)||v.contains(t);if("mousemove"!==e.type||!n){var i=J().concat(v).map(function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null}).filter(Boolean);(function(e,t){var n=t.clientX,i=t.clientY;return e.every(function(e){var t=e.popperRect,r=e.popperState,s=e.props.interactiveBorder,o=ho(r.placement),a=r.modifiersData.offset;if(!a)return!0;var l="bottom"===o?a.top.y:0,d="top"===o?a.bottom.y:0,u="right"===o?a.left.x:0,c="left"===o?a.right.x:0,h=t.top-i+l>s,m=i-t.bottom-d>s,p=t.left-n+u>s,f=n-t.right-c>s;return h||m||p||f})})(i,e)&&(E(),te(e))}}function F(e){U(e)||y.props.trigger.indexOf("click")>=0&&c||(y.props.interactive?y.hideWithInteractivity(e):te(e))}function B(e){y.props.trigger.indexOf("focusin")<0&&e.target!==Y()||y.props.interactive&&e.relatedTarget&&v.contains(e.relatedTarget)||te(e)}function U(e){return!!ko.isTouch&&A()!==e.type.indexOf("touch")>=0}function G(){K();var t=y.props,n=t.popperOptions,i=t.placement,r=t.offset,s=t.getReferenceClientRect,o=t.moveTransition,l=S()?Ro(v).arrow:null,d=s?{getBoundingClientRect:s,contextElement:s.contextElement||Y()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(S()){var n=T().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)}),t.attributes.popper={}}}},c=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!o}},u];S()&&l&&c.push({name:"arrow",options:{element:l,padding:3}}),c.push.apply(c,(null==n?void 0:n.modifiers)||[]),y.popperInstance=Ks(d,v,Object.assign({},n,{placement:i,onFirstUpdate:a,modifiers:c}))}function K(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function J(){return mo(v.querySelectorAll("[data-tippy-root]"))}function ee(e){y.clearDelayTimeouts(),e&&P("onTrigger",[y,e]),q();var t=L(!0),i=k(),r=i[0],s=i[1];ko.isTouch&&"hold"===r&&s&&(t=s),t?n=setTimeout(function(){y.show()},t):y.show()}function te(e){if(y.clearDelayTimeouts(),P("onUntrigger",[y,e]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&c)){var t=L(!1);t?i=setTimeout(function(){y.state.isVisible&&y.hide()},t):r=requestAnimationFrame(function(){y.hide()})}}else X()}}function Zo(e,t){void 0===t&&(t={});var n=xo.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",So,io),window.addEventListener("blur",Qo);var i=Object.assign({},t,{plugins:n}),r=yo(e).reduce(function(e,t){var n=t&&Ho(t,i);return n&&e.push(n),e},[]);return Oo(e)?r[0]:r}Zo.defaultProps=xo,Zo.setDefaultProps=function(e){Object.keys(e).forEach(function(t){xo[t]=e[t]})},Zo.currentInput=ko;Object.assign({},xs,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});Zo.setDefaultProps({render:qo});const zo=Zo;function Vo(e,t){if(null==e)return{};var n,i,r={},s=Object.keys(e);for(i=0;i=0||(r[n]=e[n]);return r}var Fo="undefined"!=typeof window&&"undefined"!=typeof document;function Bo(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Uo(){return Fo&&document.createElement("div")}function Go(e,t){if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!Go(e[n],t[n]))return!1}return!0}return!1}function Ko(e){var t=[];return e.forEach(function(e){t.find(function(t){return Go(e,t)})||t.push(e)}),t}function Jo(e,t){var n,i;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:Ko([].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(i=t.popperOptions)?void 0:i.modifiers)||[]))})})}var ea=Fo?h.useLayoutEffect:h.useEffect;function ta(e){var t=(0,h.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function na(e,t,n){n.split(/\s+/).forEach(function(n){n&&e.classList[t](n)})}var ia={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function i(){e.props.className&&!n()||na(t,"add",e.props.className)}return{onCreate:i,onBeforeUpdate:function(){n()&&na(t,"remove",e.props.className)},onAfterUpdate:i}}};function ra(e){return function(t){var n=t.children,i=t.content,r=t.visible,s=t.singleton,o=t.render,a=t.reference,l=t.disabled,d=void 0!==l&&l,u=t.ignoreAttributes,c=void 0===u||u,f=(t.__source,t.__self,Vo(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),O=void 0!==r,_=void 0!==s,g=(0,h.useState)(!1),y=g[0],b=g[1],v=(0,h.useState)({}),w=v[0],$=v[1],M=(0,h.useState)(),k=M[0],A=M[1],S=ta(function(){return{container:Uo(),renders:1}}),Y=Object.assign({ignoreAttributes:c},f,{content:S.container});O&&(Y.trigger="manual",Y.hideOnClick=!1),_&&(d=!0);var Q=Y,T=Y.plugins||[];o&&(Q=Object.assign({},Y,{plugins:_&&null!=s.data?[].concat(T,[{fn:function(){return{onTrigger:function(e,t){var n=s.data.children.find(function(e){return e.instance.reference===t.currentTarget});e.state.$$activeSingletonInstance=n.instance,A(n.content)}}}}]):T,render:function(){return{popper:S.container}}}));var L=[a].concat(n?[n.type]:[]);return ea(function(){var t=a;a&&a.hasOwnProperty("current")&&(t=a.current);var n=e(t||S.ref||Uo(),Object.assign({},Q,{plugins:[ia].concat(Y.plugins||[])}));return S.instance=n,d&&n.disable(),r&&n.show(),_&&s.hook({instance:n,content:i,props:Q,setSingletonContent:A}),b(!0),function(){n.destroy(),null==s||s.cleanup(n)}},L),ea(function(){var e;if(1!==S.renders){var t=S.instance;t.setProps(Jo(t.props,Q)),null==(e=t.popperInstance)||e.forceUpdate(),d?t.disable():t.enable(),O&&(r?t.show():t.hide()),_&&s.hook({instance:t,content:i,props:Q,setSingletonContent:A})}else S.renders++}),ea(function(){var e;if(o){var t=S.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter(function(e){return"$$tippyReact"!==e.name}),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,i=null==(t=n.modifiersData)?void 0:t.hide;w.placement===n.placement&&w.referenceHidden===(null==i?void 0:i.isReferenceHidden)&&w.escaped===(null==i?void 0:i.hasPopperEscaped)||$({placement:n.placement,referenceHidden:null==i?void 0:i.isReferenceHidden,escaped:null==i?void 0:i.hasPopperEscaped}),n.attributes.popper={}}}])})})}},[w.placement,w.referenceHidden,w.escaped].concat(L)),m().createElement(m().Fragment,null,n?(0,h.cloneElement)(n,{ref:function(e){S.ref=e,Bo(n.ref,e)}}):null,y&&(0,p.createPortal)(o?o(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(w),k,S.instance):i,S.container))}}var sa=function(e,t){return(0,h.forwardRef)(function(n,i){var r=n.children,s=Vo(n,["children"]);return m().createElement(e,Object.assign({},t,s),r?(0,h.cloneElement)(r,{ref:function(e){Bo(i,e),Bo(r.ref,e)}}):null)})};const oa=sa(ra(zo)),aa=window.wp.components;var la=n(1002),da={};da.styleTagTransform=_r(),da.setAttributes=mr(),da.insert=cr().bind(null,"head"),da.domAPI=dr(),da.insertStyleElement=fr();ar()(la.A,da);la.A&&la.A.locals&&la.A.locals;var ua=n(7274),ca={};ca.styleTagTransform=_r(),ca.setAttributes=mr(),ca.insert=cr().bind(null,"head"),ca.domAPI=dr(),ca.insertStyleElement=fr();ar()(ua.A,ca);ua.A&&ua.A.locals&&ua.A.locals;var ha="/home/runner/work/pods-private/pods-private/ui/js/dfv/src/components/help-tooltip.js",ma=void 0,pa=function(e){var t=e.helpText,n=e.helpLink;return m().createElement(oa,{className:"pods-help-tooltip",trigger:"click",zIndex:100001,interactive:!0,content:n?m().createElement("a",{href:n,target:"_blank",rel:"noopener noreferrer",__self:ma,__source:{fileName:ha,lineNumber:24,columnNumber:5}},m().createElement("span",{dangerouslySetInnerHTML:{__html:kr()(t,Yr)},__self:ma,__source:{fileName:ha,lineNumber:25,columnNumber:6}}),m().createElement(aa.Dashicon,{icon:"external",__self:ma,__source:{fileName:ha,lineNumber:30,columnNumber:6}})):m().createElement("span",{dangerouslySetInnerHTML:{__html:kr()(t,Yr)},__self:ma,__source:{fileName:ha,lineNumber:33,columnNumber:5}}),__self:ma,__source:{fileName:ha,lineNumber:17,columnNumber:3}},m().createElement("span",{tabIndex:"0",role:"button",className:"pods-help-tooltip__icon",__self:ma,__source:{fileName:ha,lineNumber:40,columnNumber:4}},m().createElement(aa.Dashicon,{icon:"editor-help",__self:ma,__source:{fileName:ha,lineNumber:45,columnNumber:5}})))};pa.propTypes={helpText:Hi().string.isRequired,helpLink:Hi().string};const fa=pa;var Oa=n(4310),_a={};_a.styleTagTransform=_r(),_a.setAttributes=mr(),_a.insert=cr().bind(null,"head"),_a.domAPI=dr(),_a.insertStyleElement=fr();ar()(Oa.A,_a);Oa.A&&Oa.A.locals&&Oa.A.locals;var ga="/home/runner/work/pods-private/pods-private/ui/js/dfv/src/components/field-label.js",ya=void 0,ba=function(e){var t=e.name,n=void 0===t?"":t,i=e.label,r=e.required,s=void 0!==r&&r,o=e.htmlFor,a=e.helpTextString,l=void 0===a?null:a,d=e.helpLink,u=void 0===d?null:d;return m().createElement("div",{className:"pods-field-label pods-field-label-".concat(n),__self:ya,__source:{fileName:ga,lineNumber:21,columnNumber:2}},m().createElement("label",{className:"pods-field-label__label",htmlFor:o,"data-testid":"field-label",__self:ya,__source:{fileName:ga,lineNumber:22,columnNumber:3}},m().createElement("span",{dangerouslySetInnerHTML:{__html:(0,Ar.removep)(kr()(i,Qr))},"data-testid":"field-label-text",__self:ya,__source:{fileName:ga,lineNumber:27,columnNumber:4}}),s&&m().createElement("span",{className:"pods-field-label__required",__self:ya,__source:{fileName:ga,lineNumber:34,columnNumber:5}}," ","*")),l&&m().createElement("span",{className:"pods-field-label__tooltip-wrapper",__self:ya,__source:{fileName:ga,lineNumber:39,columnNumber:4}}," ",m().createElement(fa,{helpText:l,helpLink:u,__self:ya,__source:{fileName:ga,lineNumber:41,columnNumber:5}})))};ba.propTypes={name:Hi().string,label:Hi().string.isRequired,htmlFor:Hi().string.isRequired,helpTextString:Hi().string,helpLink:Hi().string};const va=ba;var wa="/home/runner/work/pods-private/pods-private/ui/js/dfv/src/components/validation-messages.js",$a=void 0,Ma=function(e){var t=e.messages;return t.length?m().createElement("div",{className:"pods-validation-messages","data-testid":"validation-messages",__self:$a,__source:{fileName:wa,lineNumber:12,columnNumber:3}},t.map(function(e,t){return m().createElement(aa.Notice,{key:"message-".concat(t),status:"error",isDismissible:!1,politeness:"polite","data-testid":"validation-message",__self:$a,__source:{fileName:wa,lineNumber:14,columnNumber:5}},e)})):null};Ma.propTypes={messages:Hi().arrayOf(Hi().string).isRequired};const ka=Ma;var Aa=n(6154),Sa=n.n(Aa),Ya=function(e){return function(t,n){var i=e.toString().split(t);return i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,n),i.join(t)}},Qa=function(e,t){if(!t)return"0";var n=ji(e.toString().replace(".","").split("e-"),2),i=n[0],r=function(e,t){return Number(e)+2-t}(n[1],i.length),s="".concat("0.".padEnd(r+2,"0")).concat(i);return t?s.substring(0,2)+s.substring(2,t+2):s};const Ta=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";if(null===e||"number"!=typeof e)throw new TypeError("number is not valid");return function(e){return e.toString().includes("e")}(e)?function(e,t,n,i){return function(e){return e.toString().includes("-")}(e)?Qa(e,t):Ya(BigInt(e))(n,i)}(e,t,n,i):function(e,t,n,i){if(!isFinite(e))throw new TypeError("number is not finite number");var r="auto"===t?(""+parseFloat(e)).replace(".",n):parseFloat(e).toFixed(t).replace(".",n);return Ya(r)(n,i)}(e,t,n,i)};var La=function(e){var t,n=((null===(t=window)||void 0===t||null===(t=t.podsDFVConfig)||void 0===t||null===(t=t.wp_locale)||void 0===t?void 0:t.number_format)||{}).thousands_sep;switch(e){case"9,999.99":n=",";break;case"9999.99":case"9999,99":n="";break;case"9.999,99":n=".";break;case"9'999.99":n="'";break;case"9 999,99":n=" "}return n},xa=function(e){var t,n=((null===(t=window)||void 0===t||null===(t=t.podsDFVConfig)||void 0===t||null===(t=t.wp_locale)||void 0===t?void 0:t.number_format)||{}).decimal_point;switch(e){case"9,999.99":case"9999.99":case"9'999.99":n=".";break;case"9.999,99":case"9999,99":case"9 999,99":n=","}return n},Pa=function(e,t){if(""===e)return 0;if("number"==typeof e)return e;var n=La(t),i=xa(t);return parseFloat(e.split(n).join("").split(i).join("."))},Da=function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"auto";if(""===e||null==e)return"0";var o=La(t),a=xa(t),l="string"==typeof e?Pa(e,t):e,d=isNaN(l)?void 0:Ta(l,s,a,o);if(void 0===d||!i&&"none"===r)return d;var u=d.split(a),c=10)},Ea=function(e,t){return function(n){if((t&&Array.isArray(n)?n:[n]).some(ja))return!0;throw(0,zi.sprintf)((0,zi.__)("%s is required.","pods"),e)}},Ca=function(e,t,n){return function(i){var r=Da(i,n,!1);if(!r)return!0;var s=La(n),o=xa(n),a=r.split(o),l=a[0].replace(new RegExp(s,"g"),""),d=parseInt(e,10)||-1;if(-1!==d&&l.length>d)throw(0,zi.__)("Exceeded maximum digit length.","pods");var u=a[1]||"",c=parseInt(t,10)||-1;if(-1!==c&&u.length>c)throw(0,zi.__)("Exceeded maximum decimal length.","pods");return!0}},Na=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(i){if(!i&&n)return!0;if(void 0===e||!e.length)return!0;var r=Sa()("".concat(e[0],"-01-01")),s=Sa()("".concat(e[e.length-1],"-12-31")),o=Sa()(i,t);if(!1===o.isValid())throw(0,zi.__)("Invalid date.","pods");if(!o.isSameOrAfter(r))throw(0,zi.__)("Date occurs before the valid range.","pods");if(!o.isSameOrBefore(s))throw(0,zi.__)("Date occurs after the valid range.","pods");return!0}},Ra=function(e){return!!+e};const qa=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";if(null==e)return"";var n=kr()(e.replace(/\&/g,""),{allowedTags:[],parser:{decodeEntities:!1}});return(0,O.deburr)(n).replace(/[\s\./\\+=]+/g,t).replace(/[^\w\-_]+/g,"").toLowerCase()};const Xa=function(e){var t=e.type;if(void 0===t)throw new Error("Invalid field config.");return!!["text","website","phone","email","password","paragraph","wysiwyg","datetime","date","time","number","currency","oembed","color"].includes(t)&&Ra((null==e?void 0:e.repeatable)||!1)};function Ia(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Wa(e){for(var t=1;t0):[null,void 0].includes(n)?(console.debug("Conditional logic: value to test is null or undefined"),!1):["0",0].includes(n)?(console.debug("Conditional logic: value to test is '0' or 0"),!0):Boolean(n);case"=":return Ha(t,n);case"!=":return!Ha(t,n);case"<":return!Array.isArray(t)&&!Array.isArray(n)&&Number(n)":return!Array.isArray(t)&&!Array.isArray(n)&&Number(n)>Number(t);case">=":return!Array.isArray(t)&&!Array.isArray(n)&&Number(n)>=Number(t);default:return console.debug("Conditional logic: rule is unsupported"),console.debug({rule:e,ruleValue:t,valueToTest:n}),!1}}(i,r,a);if(console.debug("Conditional logic: validateConditionalValue doesValueMatch"),console.debug({fieldName:s,fieldNameToTest:o,doesValueMatch:l,compare:i,ruleValue:r,valueToTest:a}),!1===l)return!1;var d=n.get(o);return!d||Za(d,t,n)},c=!1;return c="all"===l?d.every(u):d.some(u),"hide"===a&&(c=!c),c};const za=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Map;return Za(e,t,n)};const Va=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=ji((0,h.useState)(e),2),i=n[0],r=n[1],s=ji((0,h.useState)([]),2),o=s[0],a=s[1];(0,h.useEffect)(function(){var e=[];i.forEach(function(n){if(n.condition())try{n.rule(t)}catch(t){"string"==typeof t&&e.push(t)}}),a(e)},[t]);return[o,function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(e){r(function(t){return[].concat(c(t),[e])})})}]};const Fa=function(e,t,n){(0,h.useEffect)(function(){if(null!=t&&t.current){var e=t.current.closest(".pods-field__container");e&&(e.style.display=n?"":"none")}},[e,t,n])};function Ba(){return Ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t[<%- id %>][id]"\n\tdata-name-clean="<%- htmlAttr.name_clean %>-id"\n\tid="<%- htmlAttr.id %>-<%- id %>-id"\n\tclass="<%- htmlAttr.class %>"\n\ttype="hidden"\n\tvalue="<%- id %>" />\n\n'),className:"pods-dfv-list-item",ui:{dragHandle:".pods-dfv-list-handle",editLink:".pods-dfv-list-edit-link",viewLink:".pods-dfv-list-link",downloadLink:".pods-dfv-list-download",removeButton:".pods-dfv-list-remove",itemName:".pods-dfv-list-name"},triggers:{"click @ui.removeButton":"remove:file:click"}}),Ml=gl.extend({childViewEventPrefix:!1,tagName:"ul",className:"pods-dfv-list",childView:$l,childViewTriggers:{"remove:file:click":"childview:remove:file:click"},onAttach:function(){var e=this.options.fieldModel.get("fieldConfig"),t="y";1!==parseInt(e.file_limit,10)&&("tiles"===e.file_field_template&&(t=""),this.$el.sortable({containment:"parent",axis:t,scrollSensitivity:40,tolerance:"pointer",opacity:.6}))}}),kl=yl.extend({childViewEventPrefix:!1,tagName:"div",template:_.template('<%- fieldConfig.file_add_button %>\n'),ui:{addButton:".pods-dfv-list-add"},triggers:{"click @ui.addButton":"childview:add:file:click"}}),Al=Ga().Object.extend({constructor:function(e){this.browseButton=e.browseButton,this.uiRegion=e.uiRegion,this.fieldConfig=e.fieldConfig,this.fileCollection=e.fileCollection,Ga().Object.call(this,e)}}),Sl=Ja().Model.extend({defaults:{id:0,filename:"",progress:0,errorMsg:""}}),Yl=Ga().View.extend({model:Sl,tagName:"li",template:_.template('\n<% if ( \'\' !== errorMsg ) { %>\n\t<%- errorMsg %>
\n<% } %>\n'),attributes:function(){return{class:"pods-dfv-list-item",id:this.model.get("id")}},modelEvents:{change:"onModelChanged"},onModelChanged:function(){this.render()}}),Ql=Ga().CollectionView.extend({tagName:"ul",className:"pods-dfv-list pods-dfv-list-queue",childView:Yl}),Tl=Al.extend({plupload:{},fileUploader:"plupload",pendingModels:[],pendingFiles:[],initialize:function(){this.fieldConfig.plupload_init.browse_button=this.browseButton[0],this.plupload=new plupload.Uploader(this.fieldConfig.plupload_init),this.plupload.init(),this.plupload.bind("FilesAdded",this.onFilesAdded,this),this.plupload.bind("UploadProgress",this.onUploadProgress,this),this.plupload.bind("FileUploaded",this.onFileUploaded,this),this.plupload.bind("UploadComplete",this.onUploadComplete,this),this.pendingFiles=[],this.pendingModels=[]},onFilesAdded:function(e,t){var n,i,r,s=new(Ja().Collection),o=parseInt(null!==(n=null===(i=this.fieldConfig)||void 0===i?void 0:i.file_limit)&&void 0!==n?n:0,10);if(0"===n.response.substr(0,3))s=s.replace(/(<([^>]+)>)/gi,""),window.console&&console.debug(s),r.set({progress:0,errorMsg:s});else{if("object"!==o(i=null!==(i=s.match(/{.*}$/))&&0\n\n\n'),regions:{list:".pods-ui-file-list",uiRegion:".pods-ui-region",form:".pods-ui-form"},childViewEvents:{"childview:remove:file:click":"onChildviewRemoveFileClick","childview:add:file:click":"onChildviewAddFileClick"},uploader:{},onBeforeRender:function(){void 0===this.collection&&(this.collection=new wl(this.fieldItemData))},onRender:function(){var e=new Ml({collection:this.collection,fieldModel:this.model}),t=new kl({fieldModel:this.model});this.showChildView("list",e),this.showChildView("form",t),this.uploader=this.createUploader(),this.listenTo(this.uploader,"added:files",this.onAddedFiles)},onChildviewRemoveFileClick:function(e){this.collection.remove(e.model)},onChildviewAddFileClick:function(){"function"==typeof this.uploader.invoke&&this.uploader.invoke()},onAddedFiles:function(e){var t,n=this.model.get("fieldConfig"),i=parseInt(n.file_limit,10),r=this.collection.clone();0===i||r.length=r.length-i}),this.collection.reset(t)},createUploader:function(){var e,t=this.model.get("fieldConfig"),n=t.file_uploader||"attachment";if(xl.forEach(function(t,i){if(n===t.prototype.fileUploader)return e=t,!1}),void 0!==e)return this.uploader=new e({browseButton:this.getRegion("form").getEl(".pods-dfv-list-add").get(),uiRegion:this.getRegion("uiRegion"),fieldConfig:t,fileCollection:this.collection}),this.uploader;throw"Could not locate file uploader '".concat(n,"'")}}),Dl=function(){var e=Ti(xi().mark(function e(t){var n,i;return xi().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,Di()({path:"/wp/v2/media/".concat(t)});case 1:return i=e.sent,e.abrupt("return",{id:t,icon:null==i||null===(n=i.media_details)||void 0===n||null===(n=n.sizes)||void 0===n||null===(n=n.thumbnail)||void 0===n?void 0:n.source_url,name:i.title.rendered,edit_link:"/wp-admin/post.php?post=".concat(t,"&action=edit"),link:i.link,download:i.source_url});case 2:return e.prev=2,e.catch(0),e.abrupt("return",{id:t});case 3:case"end":return e.stop()}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}();const jl=function(e,t,n){var i=ji((0,h.useState)([]),2),r=i[0],s=i[1];return(0,h.useEffect)(function(){if(e){var i=function(){var e=Ti(xi().mark(function e(n){var i,r,o;return xi().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=!0,r=n.map(function(e){var n=t.find(function(t){return Number(t.id)===Number(e)});return n||(i=!1,null)}),!i){e.next=1;break}return s(r),e.abrupt("return");case 1:return e.next=2,Promise.all(n.map(Dl));case 2:o=e.sent,s(o);case 3:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();Array.isArray(e)?i(e):"object"===o(e)?s(e):"string"==typeof e?i(e.split(",")):"number"==typeof e?i([e]):console.error("Invalid value type for file field: ".concat(n))}else s([])},[]),[r,s]};function El(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Cl(e){for(var t=1;t{t.current=e}),(0,h.useCallback)(function(){for(var e=arguments.length,n=new Array(e),i=0;i{n.current!==e&&(n.current=e)},t),n}function Gl(e,t){const n=(0,h.useRef)();return(0,h.useMemo)(()=>{const t=e(n.current);return n.current=t,t},[...t])}function Kl(e){const t=Bl(e),n=(0,h.useRef)(null),i=(0,h.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,i]}function Jl(e){const t=(0,h.useRef)();return(0,h.useEffect)(()=>{t.current=e},[e]),t.current}let ed={};function td(e,t){return(0,h.useMemo)(()=>{if(t)return t;const n=null==ed[e]?0:ed[e]+1;return ed[e]=n,e+"-"+n},[e,t])}function nd(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r{const i=Object.entries(n);for(const[n,r]of i){const i=t[n];null!=i&&(t[n]=i+e*r)}return t},{...t})}}const id=nd(1),rd=nd(-1);function sd(e){if(!e)return!1;const{KeyboardEvent:t}=Wl(e.target);return t&&e instanceof t}function od(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=Wl(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const ad=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[ad.Translate.toString(e),ad.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:i}=e;return t+" "+n+"ms "+i}}}),ld="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function dd(e){return e.matches(ld)?e:e.querySelector(ld)}const ud={display:"none"};function cd(e){let{id:t,value:n}=e;return m().createElement("div",{id:t,style:ud},n)}function hd(e){let{id:t,announcement:n,ariaLiveType:i="assertive"}=e;return m().createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":i,"aria-atomic":!0},n)}const md=(0,h.createContext)(null);const pd={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},fd={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Od(e){let{announcements:t=fd,container:n,hiddenTextDescribedById:i,screenReaderInstructions:r=pd}=e;const{announce:s,announcement:o}=function(){const[e,t]=(0,h.useState)("");return{announce:(0,h.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),a=td("DndLiveRegion"),[l,d]=(0,h.useState)(!1);if((0,h.useEffect)(()=>{d(!0)},[]),function(e){const t=(0,h.useContext)(md);(0,h.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}((0,h.useMemo)(()=>({onDragStart(e){let{active:n}=e;s(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:i}=e;t.onDragMove&&s(t.onDragMove({active:n,over:i}))},onDragOver(e){let{active:n,over:i}=e;s(t.onDragOver({active:n,over:i}))},onDragEnd(e){let{active:n,over:i}=e;s(t.onDragEnd({active:n,over:i}))},onDragCancel(e){let{active:n,over:i}=e;s(t.onDragCancel({active:n,over:i}))}}),[s,t])),!l)return null;const u=m().createElement(m().Fragment,null,m().createElement(cd,{id:i,value:r.draggable}),m().createElement(hd,{id:a,announcement:o}));return n?(0,p.createPortal)(u,n):u}var _d;function gd(){}function yd(e,t){return(0,h.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function bd(){for(var e=arguments.length,t=new Array(e),n=0;n[...t].filter(e=>null!=e),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(_d||(_d={}));const vd=Object.freeze({x:0,y:0});function wd(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function $d(e,t){const n=od(e);if(!n)return"0 0";return(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%"}function Md(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return n-i}function kd(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return i-n}function Ad(e){let{left:t,top:n,height:i,width:r}=e;return[{x:t,y:n},{x:t+r,y:n},{x:t,y:n+i},{x:t+r,y:n+i}]}function Sd(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function Yd(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const Qd=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const r=Yd(t,t.left,t.top),s=[];for(const e of i){const{id:t}=e,i=n.get(t);if(i){const n=wd(Yd(i),r);s.push({id:t,data:{droppableContainer:e,value:n}})}}return s.sort(Md)},Td=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const r=Ad(t),s=[];for(const e of i){const{id:t}=e,i=n.get(t);if(i){const n=Ad(i),o=r.reduce((e,t,i)=>e+wd(n[i],t),0),a=Number((o/4).toFixed(4));s.push({id:t,data:{droppableContainer:e,value:a}})}}return s.sort(Md)};function Ld(e,t){const n=Math.max(t.top,e.top),i=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),o=r-i,a=s-n;if(i{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const r=[];for(const e of i){const{id:i}=e,s=n.get(i);if(s){const n=Ld(s,t);n>0&&r.push({id:i,data:{droppableContainer:e,value:n}})}}return r.sort(kd)};function Pd(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:vd}function Dd(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}const jd=Dd(1);function Ed(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const Cd={ignoreTransform:!1};function Nd(e,t){void 0===t&&(t=Cd);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:i}=Wl(e).getComputedStyle(e);t&&(n=function(e,t,n){const i=Ed(t);if(!i)return e;const{scaleX:r,scaleY:s,x:o,y:a}=i,l=e.left-o-(1-r)*parseFloat(n),d=e.top-a-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),u=r?e.width/r:e.width,c=s?e.height/s:e.height;return{width:u,height:c,top:d,right:l+u,bottom:d+c,left:l}}(n,t,i))}const{top:i,left:r,width:s,height:o,bottom:a,right:l}=n;return{top:i,left:r,width:s,height:o,bottom:a,right:l}}function Rd(e){return Nd(e,{ignoreTransform:!0})}function qd(e,t){const n=[];return e?function i(r){if(null!=t&&n.length>=t)return n;if(!r)return n;if(Hl(r)&&null!=r.scrollingElement&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!Zl(r)||zl(r))return n;if(n.includes(r))return n;const s=Wl(e).getComputedStyle(r);return r!==e&&function(e,t){void 0===t&&(t=Wl(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const i=t[e];return"string"==typeof i&&n.test(i)})}(r,s)&&n.push(r),function(e,t){return void 0===t&&(t=Wl(e).getComputedStyle(e)),"fixed"===t.position}(r,s)?n:i(r.parentNode)}(e):n}function Xd(e){const[t]=qd(e,1);return null!=t?t:null}function Id(e){return ql&&e?Xl(e)?e:Il(e)?Hl(e)||e===Vl(e).scrollingElement?window:Zl(e)?e:null:null:null}function Wd(e){return Xl(e)?e.scrollX:e.scrollLeft}function Hd(e){return Xl(e)?e.scrollY:e.scrollTop}function Zd(e){return{x:Wd(e),y:Hd(e)}}var zd;function Vd(e){return!(!ql||!e)&&e===document.scrollingElement}function Fd(e){const t={x:0,y:0},n=Vd(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=i.y,isRight:e.scrollLeft>=i.x,maxScroll:i,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(zd||(zd={}));const Bd={x:.2,y:.2};function Ud(e,t,n,i,r){let{top:s,left:o,right:a,bottom:l}=n;void 0===i&&(i=10),void 0===r&&(r=Bd);const{isTop:d,isBottom:u,isLeft:c,isRight:h}=Fd(e),m={x:0,y:0},p={x:0,y:0},f=t.height*r.y,O=t.width*r.x;return!d&&s<=t.top+f?(m.y=zd.Backward,p.y=i*Math.abs((t.top+f-s)/f)):!u&&l>=t.bottom-f&&(m.y=zd.Forward,p.y=i*Math.abs((t.bottom-f-l)/f)),!h&&a>=t.right-O?(m.x=zd.Forward,p.x=i*Math.abs((t.right-O-a)/O)):!c&&o<=t.left+O&&(m.x=zd.Backward,p.x=i*Math.abs((t.left+O-o)/O)),{direction:m,speed:p}}function Gd(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:i,bottom:r}=e.getBoundingClientRect();return{top:t,left:n,right:i,bottom:r,width:e.clientWidth,height:e.clientHeight}}function Kd(e){return e.reduce((e,t)=>id(e,Zd(t)),vd)}function Jd(e,t){if(void 0===t&&(t=Nd),!e)return;const{top:n,left:i,bottom:r,right:s}=t(e);Xd(e)&&(r<=0||s<=0||n>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const eu=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+Wd(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+Hd(t),0)}]];class tu{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=qd(t),i=Kd(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,r]of eu)for(const s of t)Object.defineProperty(this,s,{get:()=>{const t=r(n),o=i[e]-t;return this.rect[s]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class nu{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var i;null==(i=this.target)||i.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function iu(e,t){const n=Math.abs(e.x),i=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+i**2)>t:"x"in t&&"y"in t?n>t.x&&i>t.y:"x"in t?n>t.x:"y"in t&&i>t.y}var ru,su;function ou(e){e.preventDefault()}function au(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(ru||(ru={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(su||(su={}));const lu={start:[su.Space,su.Enter],cancel:[su.Esc],end:[su.Space,su.Enter,su.Tab]},du=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case su.Right:return{...n,x:n.x+25};case su.Left:return{...n,x:n.x-25};case su.Down:return{...n,y:n.y+25};case su.Up:return{...n,y:n.y-25}}};class uu{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new nu(Vl(t)),this.windowListeners=new nu(Wl(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ru.Resize,this.handleCancel),this.windowListeners.add(ru.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ru.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Jd(n),t(vd)}handleKeyDown(e){if(sd(e)){const{active:t,context:n,options:i}=this.props,{keyboardCodes:r=lu,coordinateGetter:s=du,scrollBehavior:o="smooth"}=i,{code:a}=e;if(r.end.includes(a))return void this.handleEnd(e);if(r.cancel.includes(a))return void this.handleCancel(e);const{collisionRect:l}=n.current,d=l?{x:l.left,y:l.top}:vd;this.referenceCoordinates||(this.referenceCoordinates=d);const u=s(e,{active:t,context:n.current,currentCoordinates:d});if(u){const t=rd(u,d),i={x:0,y:0},{scrollableAncestors:r}=n.current;for(const n of r){const r=e.code,{isTop:s,isRight:a,isLeft:l,isBottom:d,maxScroll:c,minScroll:h}=Fd(n),m=Gd(n),p={x:Math.min(r===su.Right?m.right-m.width/2:m.right,Math.max(r===su.Right?m.left:m.left+m.width/2,u.x)),y:Math.min(r===su.Down?m.bottom-m.height/2:m.bottom,Math.max(r===su.Down?m.top:m.top+m.height/2,u.y))},f=r===su.Right&&!a||r===su.Left&&!l,O=r===su.Down&&!d||r===su.Up&&!s;if(f&&p.x!==u.x){const e=n.scrollLeft+t.x,s=r===su.Right&&e<=c.x||r===su.Left&&e>=h.x;if(s&&!t.y)return void n.scrollTo({left:e,behavior:o});i.x=s?n.scrollLeft-e:r===su.Right?n.scrollLeft-c.x:n.scrollLeft-h.x,i.x&&n.scrollBy({left:-i.x,behavior:o});break}if(O&&p.y!==u.y){const e=n.scrollTop+t.y,s=r===su.Down&&e<=c.y||r===su.Up&&e>=h.y;if(s&&!t.x)return void n.scrollTo({top:e,behavior:o});i.y=s?n.scrollTop-e:r===su.Down?n.scrollTop-c.y:n.scrollTop-h.y,i.y&&n.scrollBy({top:-i.y,behavior:o});break}}this.handleMove(e,id(rd(u,this.referenceCoordinates),i))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function cu(e){return Boolean(e&&"distance"in e)}function hu(e){return Boolean(e&&"delay"in e)}uu.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:i=lu,onActivation:r}=t,{active:s}=n;const{code:o}=e.nativeEvent;if(i.start.includes(o)){const t=s.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==r||r({event:e.nativeEvent}),!0)}return!1}}];class mu{constructor(e,t,n){var i;void 0===n&&(n=function(e){const{EventTarget:t}=Wl(e);return e instanceof t?e:Vl(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:r}=e,{target:s}=r;this.props=e,this.events=t,this.document=Vl(s),this.documentListeners=new nu(this.document),this.listeners=new nu(n),this.windowListeners=new nu(Wl(s)),this.initialCoordinates=null!=(i=od(r))?i:vd,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(ru.Resize,this.handleCancel),this.windowListeners.add(ru.DragStart,ou),this.windowListeners.add(ru.VisibilityChange,this.handleCancel),this.windowListeners.add(ru.ContextMenu,ou),this.documentListeners.add(ru.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(hu(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(cu(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:i}=this.props;i(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(ru.Click,au,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ru.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:i,props:r}=this,{onMove:s,options:{activationConstraint:o}}=r;if(!i)return;const a=null!=(t=od(e))?t:vd,l=rd(i,a);if(!n&&o){if(cu(o)){if(null!=o.tolerance&&iu(l,o.tolerance))return this.handleCancel();if(iu(l,o.distance))return this.handleStart()}return hu(o)&&iu(l,o.tolerance)?this.handleCancel():void this.handlePending(o,l)}e.cancelable&&e.preventDefault(),s(a)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===su.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const pu={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class fu extends mu{constructor(e){const{event:t}=e,n=Vl(t.target);super(e,pu,n)}}fu.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return!(!n.isPrimary||0!==n.button)&&(null==i||i({event:n}),!0)}}];const Ou={move:{name:"mousemove"},end:{name:"mouseup"}};var _u;!function(e){e[e.RightClick=2]="RightClick"}(_u||(_u={}));(class extends mu{constructor(e){super(e,Ou,Vl(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return n.button!==_u.RightClick&&(null==i||i({event:n}),!0)}}];const gu={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var yu,bu;function vu(e){let{acceleration:t,activator:n=yu.Pointer,canScroll:i,draggingRect:r,enabled:s,interval:o=5,order:a=bu.TreeOrder,pointerCoordinates:l,scrollableAncestors:d,scrollableAncestorRects:u,delta:c,threshold:m}=e;const p=function(e){let{delta:t,disabled:n}=e;const i=Jl(t);return Gl(e=>{if(n||!i||!e)return wu;const r={x:Math.sign(t.x-i.x),y:Math.sign(t.y-i.y)};return{x:{[zd.Backward]:e.x[zd.Backward]||-1===r.x,[zd.Forward]:e.x[zd.Forward]||1===r.x},y:{[zd.Backward]:e.y[zd.Backward]||-1===r.y,[zd.Forward]:e.y[zd.Forward]||1===r.y}}},[n,t,i])}({delta:c,disabled:!s}),[f,O]=function(){const e=(0,h.useRef)(null),t=(0,h.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]);return[t,(0,h.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),_=(0,h.useRef)({x:0,y:0}),g=(0,h.useRef)({x:0,y:0}),y=(0,h.useMemo)(()=>{switch(n){case yu.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case yu.DraggableRect:return r}},[n,r,l]),b=(0,h.useRef)(null),v=(0,h.useCallback)(()=>{const e=b.current;if(!e)return;const t=_.current.x*g.current.x,n=_.current.y*g.current.y;e.scrollBy(t,n)},[]),w=(0,h.useMemo)(()=>a===bu.TreeOrder?[...d].reverse():d,[a,d]);(0,h.useEffect)(()=>{if(s&&d.length&&y){for(const e of w){if(!1===(null==i?void 0:i(e)))continue;const n=d.indexOf(e),r=u[n];if(!r)continue;const{direction:s,speed:a}=Ud(e,r,y,t,m);for(const e of["x","y"])p[e][s[e]]||(a[e]=0,s[e]=0);if(a.x>0||a.y>0)return O(),b.current=e,f(v,o),_.current=a,void(g.current=s)}_.current={x:0,y:0},g.current={x:0,y:0},O()}else O()},[t,v,i,O,s,o,JSON.stringify(y),JSON.stringify(p),f,d,w,u,JSON.stringify(m)])}(class extends mu{constructor(e){super(e,gu)}static setup(){return window.addEventListener(gu.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(gu.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;const{touches:r}=n;return!(r.length>1)&&(null==i||i({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(yu||(yu={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(bu||(bu={}));const wu={x:{[zd.Backward]:!1,[zd.Forward]:!1},y:{[zd.Backward]:!1,[zd.Forward]:!1}};var $u,Mu;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}($u||($u={})),function(e){e.Optimized="optimized"}(Mu||(Mu={}));const ku=new Map;function Au(e,t){return Gl(n=>e?n||("function"==typeof t?t(e):e):null,[t,e])}function Su(e){let{callback:t,disabled:n}=e;const i=Bl(t),r=(0,h.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(i)},[n]);return(0,h.useEffect)(()=>()=>null==r?void 0:r.disconnect(),[r]),r}function Yu(e){return new tu(Nd(e),e)}function Qu(e,t,n){void 0===t&&(t=Yu);const[i,r]=(0,h.useState)(null);function s(){r(i=>{if(!e)return null;var r;if(!1===e.isConnected)return null!=(r=null!=i?i:n)?r:null;const s=t(e);return JSON.stringify(i)===JSON.stringify(s)?i:s})}const o=function(e){let{callback:t,disabled:n}=e;const i=Bl(t),r=(0,h.useMemo)(()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(i)},[i,n]);return(0,h.useEffect)(()=>()=>null==r?void 0:r.disconnect(),[r]),r}({callback(t){if(e)for(const n of t){const{type:t,target:i}=n;if("childList"===t&&i instanceof HTMLElement&&i.contains(e)){s();break}}}}),a=Su({callback:s});return Fl(()=>{s(),e?(null==a||a.observe(e),null==o||o.observe(document.body,{childList:!0,subtree:!0})):(null==a||a.disconnect(),null==o||o.disconnect())},[e]),i}const Tu=[];function Lu(e,t){void 0===t&&(t=[]);const n=(0,h.useRef)(null);return(0,h.useEffect)(()=>{n.current=null},t),(0,h.useEffect)(()=>{const t=e!==vd;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?rd(e,n.current):vd}function xu(e){return(0,h.useMemo)(()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}const Pu=[];function Du(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Zl(t)?t:e}const ju=[{sensor:fu,options:{}},{sensor:uu,options:{}}],Eu={current:{}},Cu={draggable:{measure:Rd},droppable:{measure:Rd,strategy:$u.WhileDragging,frequency:Mu.Optimized},dragOverlay:{measure:Nd}};class Nu extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Ru={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Nu,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:gd},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Cu,measureDroppableContainers:gd,windowRect:null,measuringScheduled:!1},qu={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:gd,draggableNodes:new Map,over:null,measureDroppableContainers:gd},Xu=(0,h.createContext)(qu),Iu=(0,h.createContext)(Ru);function Wu(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Nu}}}function Hu(e,t){switch(t.type){case _d.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case _d.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case _d.DragEnd:case _d.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case _d.RegisterDroppable:{const{element:n}=t,{id:i}=n,r=new Nu(e.droppable.containers);return r.set(i,n),{...e,droppable:{...e.droppable,containers:r}}}case _d.SetDroppableDisabled:{const{id:n,key:i,disabled:r}=t,s=e.droppable.containers.get(n);if(!s||i!==s.key)return e;const o=new Nu(e.droppable.containers);return o.set(n,{...s,disabled:r}),{...e,droppable:{...e.droppable,containers:o}}}case _d.UnregisterDroppable:{const{id:n,key:i}=t,r=e.droppable.containers.get(n);if(!r||i!==r.key)return e;const s=new Nu(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function Zu(e){let{disabled:t}=e;const{active:n,activatorEvent:i,draggableNodes:r}=(0,h.useContext)(Xu),s=Jl(i),o=Jl(null==n?void 0:n.id);return(0,h.useEffect)(()=>{if(!t&&!i&&s&&null!=o){if(!sd(s))return;if(document.activeElement===s.target)return;const e=r.get(o);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=dd(e);if(t){t.focus();break}}})}},[i,t,r,o,s]),null}function zu(e,t){let{transform:n,...i}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...i}),n):n}const Vu=(0,h.createContext)({...vd,scaleX:1,scaleY:1});var Fu;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Fu||(Fu={}));const Bu=(0,h.memo)(function(e){var t,n,i,r;let{id:s,accessibility:o,autoScroll:a=!0,children:l,sensors:d=ju,collisionDetection:u=xd,measuring:c,modifiers:f,...O}=e;const _=(0,h.useReducer)(Hu,void 0,Wu),[g,y]=_,[b,v]=function(){const[e]=(0,h.useState)(()=>new Set),t=(0,h.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]),n=(0,h.useCallback)(t=>{let{type:n,event:i}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,i)})},[e]);return[n,t]}(),[w,$]=(0,h.useState)(Fu.Uninitialized),M=w===Fu.Initialized,{draggable:{active:k,nodes:A,translate:S},droppable:{containers:Y}}=g,Q=null!=k?A.get(k):null,T=(0,h.useRef)({initial:null,translated:null}),L=(0,h.useMemo)(()=>{var e;return null!=k?{id:k,data:null!=(e=null==Q?void 0:Q.data)?e:Eu,rect:T}:null},[k,Q]),x=(0,h.useRef)(null),[P,D]=(0,h.useState)(null),[j,E]=(0,h.useState)(null),C=Ul(O,Object.values(O)),N=td("DndDescribedBy",s),R=(0,h.useMemo)(()=>Y.getEnabled(),[Y]),q=function(e){return(0,h.useMemo)(()=>({draggable:{...Cu.draggable,...null==e?void 0:e.draggable},droppable:{...Cu.droppable,...null==e?void 0:e.droppable},dragOverlay:{...Cu.dragOverlay,...null==e?void 0:e.dragOverlay}}),[null==e?void 0:e.draggable,null==e?void 0:e.droppable,null==e?void 0:e.dragOverlay])}(c),{droppableRects:X,measureDroppableContainers:I,measuringScheduled:W}=function(e,t){let{dragging:n,dependencies:i,config:r}=t;const[s,o]=(0,h.useState)(null),{frequency:a,measure:l,strategy:d}=r,u=(0,h.useRef)(e),c=function(){switch(d){case $u.Always:return!1;case $u.BeforeDragging:return n;default:return!n}}(),m=Ul(c),p=(0,h.useCallback)(function(e){void 0===e&&(e=[]),m.current||o(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[m]),f=(0,h.useRef)(null),O=Gl(t=>{if(c&&!n)return ku;if(!t||t===ku||u.current!==e||null!=s){const t=new Map;for(let n of e){if(!n)continue;if(s&&s.length>0&&!s.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,i=e?new tu(l(e),e):null;n.rect.current=i,i&&t.set(n.id,i)}return t}return t},[e,s,n,c,l]);return(0,h.useEffect)(()=>{u.current=e},[e]),(0,h.useEffect)(()=>{c||p()},[n,c]),(0,h.useEffect)(()=>{s&&s.length>0&&o(null)},[JSON.stringify(s)]),(0,h.useEffect)(()=>{c||"number"!=typeof a||null!==f.current||(f.current=setTimeout(()=>{p(),f.current=null},a))},[a,c,p,...i]),{droppableRects:O,measureDroppableContainers:p,measuringScheduled:null!=s}}(R,{dragging:M,dependencies:[S.x,S.y],config:q.droppable}),H=function(e,t){const n=null!=t?e.get(t):void 0,i=n?n.node.current:null;return Gl(e=>{var n;return null==t?null:null!=(n=null!=i?i:e)?n:null},[i,t])}(A,k),Z=(0,h.useMemo)(()=>j?od(j):null,[j]),z=function(){const e=!1===(null==P?void 0:P.autoScrollEnabled),t="object"==typeof a?!1===a.enabled:!1===a,n=M&&!e&&!t;if("object"==typeof a)return{...a,enabled:n};return{enabled:n}}(),V=function(e,t){return Au(e,t)}(H,q.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:i,config:r=!0}=e;const s=(0,h.useRef)(!1),{x:o,y:a}="boolean"==typeof r?{x:r,y:r}:r;Fl(()=>{if(!o&&!a||!t)return void(s.current=!1);if(s.current||!i)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=Pd(n(e),i);if(o||(r.x=0),a||(r.y=0),s.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=Xd(e);t&&t.scrollBy({top:r.y,left:r.x})}},[t,o,a,i,n])}({activeNode:null!=k?A.get(k):null,config:z.layoutShiftCompensation,initialRect:V,measure:q.draggable.measure});const F=Qu(H,q.draggable.measure,V),B=Qu(H?H.parentElement:null),U=(0,h.useRef)({activatorEvent:null,active:null,activeNode:H,collisionRect:null,collisions:null,droppableRects:X,draggableNodes:A,draggingNode:null,draggingNodeRect:null,droppableContainers:Y,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),G=Y.getNodeFor(null==(t=U.current.over)?void 0:t.id),K=function(e){let{measure:t}=e;const[n,i]=(0,h.useState)(null),r=Su({callback:(0,h.useCallback)(e=>{for(const{target:n}of e)if(Zl(n)){i(e=>{const i=t(n);return e?{...e,width:i.width,height:i.height}:i});break}},[t])}),s=(0,h.useCallback)(e=>{const n=Du(e);null==r||r.disconnect(),n&&(null==r||r.observe(n)),i(n?t(n):null)},[t,r]),[o,a]=Kl(s);return(0,h.useMemo)(()=>({nodeRef:o,rect:n,setRef:a}),[n,o,a])}({measure:q.dragOverlay.measure}),J=null!=(n=K.nodeRef.current)?n:H,ee=M?null!=(i=K.rect)?i:F:null,te=Boolean(K.nodeRef.current&&K.rect),ne=Pd(ie=te?null:F,Au(ie));var ie;const re=xu(J?Wl(J):null),se=function(e){const t=(0,h.useRef)(e),n=Gl(n=>e?n&&n!==Tu&&e&&t.current&&e.parentNode===t.current.parentNode?n:qd(e):Tu,[e]);return(0,h.useEffect)(()=>{t.current=e},[e]),n}(M?null!=G?G:H:null),oe=function(e,t){void 0===t&&(t=Nd);const[n]=e,i=xu(n?Wl(n):null),[r,s]=(0,h.useState)(Pu);function o(){s(()=>e.length?e.map(e=>Vd(e)?i:new tu(t(e),e)):Pu)}const a=Su({callback:o});return Fl(()=>{null==a||a.disconnect(),o(),e.forEach(e=>null==a?void 0:a.observe(e))},[e]),r}(se),ae=zu(f,{transform:{x:S.x-ne.x,y:S.y-ne.y,scaleX:1,scaleY:1},activatorEvent:j,active:L,activeNodeRect:F,containerNodeRect:B,draggingNodeRect:ee,over:U.current.over,overlayNodeRect:K.rect,scrollableAncestors:se,scrollableAncestorRects:oe,windowRect:re}),le=Z?id(Z,S):null,de=function(e){const[t,n]=(0,h.useState)(null),i=(0,h.useRef)(e),r=(0,h.useCallback)(e=>{const t=Id(e.target);t&&n(e=>e?(e.set(t,Zd(t)),new Map(e)):null)},[]);return(0,h.useEffect)(()=>{const t=i.current;if(e!==t){s(t);const o=e.map(e=>{const t=Id(e);return t?(t.addEventListener("scroll",r,{passive:!0}),[t,Zd(t)]):null}).filter(e=>null!=e);n(o.length?new Map(o):null),i.current=e}return()=>{s(e),s(t)};function s(e){e.forEach(e=>{const t=Id(e);null==t||t.removeEventListener("scroll",r)})}},[r,e]),(0,h.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>id(e,t),vd):Kd(e):vd,[e,t])}(se),ue=Lu(de),ce=Lu(de,[F]),he=id(ae,ue),me=ee?jd(ee,ae):null,pe=L&&me?u({active:L,collisionRect:me,droppableRects:X,droppableContainers:R,pointerCoordinates:le}):null,fe=Sd(pe,"id"),[Oe,_e]=(0,h.useState)(null),ge=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(te?ae:id(ae,ce),null!=(r=null==Oe?void 0:Oe.rect)?r:null,F),ye=(0,h.useRef)(null),be=(0,h.useCallback)((e,t)=>{let{sensor:n,options:i}=t;if(null==x.current)return;const r=A.get(x.current);if(!r)return;const s=e.nativeEvent,o=new n({active:x.current,activeNode:r,event:s,options:i,context:U,onAbort(e){if(!A.get(e))return;const{onDragAbort:t}=C.current,n={id:e};null==t||t(n),b({type:"onDragAbort",event:n})},onPending(e,t,n,i){if(!A.get(e))return;const{onDragPending:r}=C.current,s={id:e,constraint:t,initialCoordinates:n,offset:i};null==r||r(s),b({type:"onDragPending",event:s})},onStart(e){const t=x.current;if(null==t)return;const n=A.get(t);if(!n)return;const{onDragStart:i}=C.current,r={activatorEvent:s,active:{id:t,data:n.data,rect:T}};(0,p.unstable_batchedUpdates)(()=>{null==i||i(r),$(Fu.Initializing),y({type:_d.DragStart,initialCoordinates:e,active:t}),b({type:"onDragStart",event:r}),D(ye.current),E(s)})},onMove(e){y({type:_d.DragMove,coordinates:e})},onEnd:a(_d.DragEnd),onCancel:a(_d.DragCancel)});function a(e){return async function(){const{active:t,collisions:n,over:i,scrollAdjustedTranslate:r}=U.current;let o=null;if(t&&r){const{cancelDrop:a}=C.current;if(o={activatorEvent:s,active:t,collisions:n,delta:r,over:i},e===_d.DragEnd&&"function"==typeof a){await Promise.resolve(a(o))&&(e=_d.DragCancel)}}x.current=null,(0,p.unstable_batchedUpdates)(()=>{y({type:e}),$(Fu.Uninitialized),_e(null),D(null),E(null),ye.current=null;const t=e===_d.DragEnd?"onDragEnd":"onDragCancel";if(o){const e=C.current[t];null==e||e(o),b({type:t,event:o})}})}}ye.current=o},[A]),ve=(0,h.useCallback)((e,t)=>(n,i)=>{const r=n.nativeEvent,s=A.get(i);if(null!==x.current||!s||r.dndKit||r.defaultPrevented)return;const o={active:s};!0===e(n,t.options,o)&&(r.dndKit={capturedBy:t.sensor},x.current=i,be(n,t))},[A,be]),we=function(e,t){return(0,h.useMemo)(()=>e.reduce((e,n)=>{const{sensor:i}=n;return[...e,...i.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}))]},[]),[e,t])}(d,ve);!function(e){(0,h.useEffect)(()=>{if(!ql)return;const t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)null==e||e()}},e.map(e=>{let{sensor:t}=e;return t}))}(d),Fl(()=>{F&&w===Fu.Initializing&&$(Fu.Initialized)},[F,w]),(0,h.useEffect)(()=>{const{onDragMove:e}=C.current,{active:t,activatorEvent:n,collisions:i,over:r}=U.current;if(!t||!n)return;const s={active:t,activatorEvent:n,collisions:i,delta:{x:he.x,y:he.y},over:r};(0,p.unstable_batchedUpdates)(()=>{null==e||e(s),b({type:"onDragMove",event:s})})},[he.x,he.y]),(0,h.useEffect)(()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:i,scrollAdjustedTranslate:r}=U.current;if(!e||null==x.current||!t||!r)return;const{onDragOver:s}=C.current,o=i.get(fe),a=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:r.x,y:r.y},over:a};(0,p.unstable_batchedUpdates)(()=>{_e(a),null==s||s(l),b({type:"onDragOver",event:l})})},[fe]),Fl(()=>{U.current={activatorEvent:j,active:L,activeNode:H,collisionRect:me,collisions:pe,droppableRects:X,draggableNodes:A,draggingNode:J,draggingNodeRect:ee,droppableContainers:Y,over:Oe,scrollableAncestors:se,scrollAdjustedTranslate:he},T.current={initial:ee,translated:me}},[L,H,pe,me,A,J,ee,X,Y,Oe,se,he]),vu({...z,delta:S,draggingRect:me,pointerCoordinates:le,scrollableAncestors:se,scrollableAncestorRects:oe});const $e=(0,h.useMemo)(()=>({active:L,activeNode:H,activeNodeRect:F,activatorEvent:j,collisions:pe,containerNodeRect:B,dragOverlay:K,draggableNodes:A,droppableContainers:Y,droppableRects:X,over:Oe,measureDroppableContainers:I,scrollableAncestors:se,scrollableAncestorRects:oe,measuringConfiguration:q,measuringScheduled:W,windowRect:re}),[L,H,F,j,pe,B,K,A,Y,X,Oe,I,se,oe,q,W,re]),Me=(0,h.useMemo)(()=>({activatorEvent:j,activators:we,active:L,activeNodeRect:F,ariaDescribedById:{draggable:N},dispatch:y,draggableNodes:A,over:Oe,measureDroppableContainers:I}),[j,we,L,F,y,N,A,Oe,I]);return m().createElement(md.Provider,{value:v},m().createElement(Xu.Provider,{value:Me},m().createElement(Iu.Provider,{value:$e},m().createElement(Vu.Provider,{value:ge},l)),m().createElement(Zu,{disabled:!1===(null==o?void 0:o.restoreFocus)})),m().createElement(Od,{...o,hiddenTextDescribedById:N}))}),Uu=(0,h.createContext)(null),Gu="button";function Ku(e){let{id:t,data:n,disabled:i=!1,attributes:r}=e;const s=td("Draggable"),{activators:o,activatorEvent:a,active:l,activeNodeRect:d,ariaDescribedById:u,draggableNodes:c,over:m}=(0,h.useContext)(Xu),{role:p=Gu,roleDescription:f="draggable",tabIndex:O=0}=null!=r?r:{},_=(null==l?void 0:l.id)===t,g=(0,h.useContext)(_?Vu:Uu),[y,b]=Kl(),[v,w]=Kl(),$=function(e,t){return(0,h.useMemo)(()=>e.reduce((e,n)=>{let{eventName:i,handler:r}=n;return e[i]=e=>{r(e,t)},e},{}),[e,t])}(o,t),M=Ul(n);Fl(()=>(c.set(t,{id:t,key:s,node:y,activatorNode:v,data:M}),()=>{const e=c.get(t);e&&e.key===s&&c.delete(t)}),[c,t]);return{active:l,activatorEvent:a,activeNodeRect:d,attributes:(0,h.useMemo)(()=>({role:p,tabIndex:O,"aria-disabled":i,"aria-pressed":!(!_||p!==Gu)||void 0,"aria-roledescription":f,"aria-describedby":u.draggable}),[i,p,O,_,f,u.draggable]),isDragging:_,listeners:i?void 0:$,node:y,over:m,setNodeRef:b,setActivatorNodeRef:w,transform:g}}function Ju(){return(0,h.useContext)(Iu)}const ec={timeout:25};function tc(e){let{data:t,disabled:n=!1,id:i,resizeObserverConfig:r}=e;const s=td("Droppable"),{active:o,dispatch:a,over:l,measureDroppableContainers:d}=(0,h.useContext)(Xu),u=(0,h.useRef)({disabled:n}),c=(0,h.useRef)(!1),m=(0,h.useRef)(null),p=(0,h.useRef)(null),{disabled:f,updateMeasurementsFor:O,timeout:_}={...ec,...r},g=Ul(null!=O?O:i),y=Su({callback:(0,h.useCallback)(()=>{c.current?(null!=p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{d(Array.isArray(g.current)?g.current:[g.current]),p.current=null},_)):c.current=!0},[_]),disabled:f||!o}),b=(0,h.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),c.current=!1),e&&y.observe(e))},[y]),[v,w]=Kl(b),$=Ul(t);return(0,h.useEffect)(()=>{y&&v.current&&(y.disconnect(),c.current=!1,y.observe(v.current))},[v,y]),(0,h.useEffect)(()=>(a({type:_d.RegisterDroppable,element:{id:i,key:s,disabled:n,node:v,rect:m,data:$}}),()=>a({type:_d.UnregisterDroppable,key:s,id:i})),[i]),(0,h.useEffect)(()=>{n!==u.current.disabled&&(a({type:_d.SetDroppableDisabled,id:i,key:s,disabled:n}),u.current.disabled=n)},[i,s,n,a]),{active:o,rect:m,isOver:(null==l?void 0:l.id)===i,node:v,over:l,setNodeRef:w}}function nc(e){let{animation:t,children:n}=e;const[i,r]=(0,h.useState)(null),[s,o]=(0,h.useState)(null),a=Jl(n);return n||i||!a||r(a),Fl(()=>{if(!s)return;const e=null==i?void 0:i.key,n=null==i?void 0:i.props.id;null!=e&&null!=n?Promise.resolve(t(n,s)).then(()=>{r(null)}):r(null)},[t,i,s]),m().createElement(m().Fragment,null,n,i?(0,h.cloneElement)(i,{ref:o}):null)}const ic={x:0,y:0,scaleX:1,scaleY:1};function rc(e){let{children:t}=e;return m().createElement(Xu.Provider,{value:qu},m().createElement(Vu.Provider,{value:ic},t))}const sc={position:"fixed",touchAction:"none"},oc=e=>sd(e)?"transform 250ms ease":void 0,ac=(0,h.forwardRef)((e,t)=>{let{as:n,activatorEvent:i,adjustScale:r,children:s,className:o,rect:a,style:l,transform:d,transition:u=oc}=e;if(!a)return null;const c=r?d:{...d,scaleX:1,scaleY:1},h={...sc,width:a.width,height:a.height,top:a.top,left:a.left,transform:ad.Transform.toString(c),transformOrigin:r&&i?$d(i,a):void 0,transition:"function"==typeof u?u(i):u,...l};return m().createElement(n,{className:o,style:h,ref:t},s)}),lc=e=>t=>{let{active:n,dragOverlay:i}=t;const r={},{styles:s,className:o}=e;if(null!=s&&s.active)for(const[e,t]of Object.entries(s.active))void 0!==t&&(r[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=s&&s.dragOverlay)for(const[e,t]of Object.entries(s.dragOverlay))void 0!==t&&i.node.style.setProperty(e,t);return null!=o&&o.active&&n.node.classList.add(o.active),null!=o&&o.dragOverlay&&i.node.classList.add(o.dragOverlay),function(){for(const[e,t]of Object.entries(r))n.node.style.setProperty(e,t);null!=o&&o.active&&n.node.classList.remove(o.active)}},dc={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:ad.Transform.toString(t)},{transform:ad.Transform.toString(n)}]},sideEffects:lc({styles:{active:{opacity:"0"}}})};function uc(e){let{config:t,draggableNodes:n,droppableContainers:i,measuringConfiguration:r}=e;return Bl((e,s)=>{if(null===t)return;const o=n.get(e);if(!o)return;const a=o.node.current;if(!a)return;const l=Du(s);if(!l)return;const{transform:d}=Wl(s).getComputedStyle(s),u=Ed(d);if(!u)return;const c="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:i,keyframes:r}={...dc,...e};return e=>{let{active:s,dragOverlay:o,transform:a,...l}=e;if(!t)return;const d={x:o.rect.left-s.rect.left,y:o.rect.top-s.rect.top},u={scaleX:1!==a.scaleX?s.rect.width*a.scaleX/o.rect.width:1,scaleY:1!==a.scaleY?s.rect.height*a.scaleY/o.rect.height:1},c={x:a.x-d.x,y:a.y-d.y,...u},h=r({...l,active:s,dragOverlay:o,transform:{initial:a,final:c}}),[m]=h,p=h[h.length-1];if(JSON.stringify(m)===JSON.stringify(p))return;const f=null==i?void 0:i({active:s,dragOverlay:o,...l}),O=o.node.animate(h,{duration:t,easing:n,fill:"forwards"});return new Promise(e=>{O.onfinish=()=>{null==f||f(),e()}})}}(t);return Jd(a,r.draggable.measure),c({active:{id:e,data:o.data,node:a,rect:r.draggable.measure(a)},draggableNodes:n,dragOverlay:{node:s,rect:r.dragOverlay.measure(l)},droppableContainers:i,measuringConfiguration:r,transform:u})})}let cc=0;function hc(e){return(0,h.useMemo)(()=>{if(null!=e)return cc++,cc},[e])}const mc=m().memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:i,style:r,transition:s,modifiers:o,wrapperElement:a="div",className:l,zIndex:d=999}=e;const{activatorEvent:u,active:c,activeNodeRect:p,containerNodeRect:f,draggableNodes:O,droppableContainers:_,dragOverlay:g,over:y,measuringConfiguration:b,scrollableAncestors:v,scrollableAncestorRects:w,windowRect:$}=Ju(),M=(0,h.useContext)(Vu),k=hc(null==c?void 0:c.id),A=zu(o,{activatorEvent:u,active:c,activeNodeRect:p,containerNodeRect:f,draggingNodeRect:g.rect,over:y,overlayNodeRect:g.rect,scrollableAncestors:v,scrollableAncestorRects:w,transform:M,windowRect:$}),S=Au(p),Y=uc({config:i,draggableNodes:O,droppableContainers:_,measuringConfiguration:b}),Q=S?g.setRef:void 0;return m().createElement(rc,null,m().createElement(nc,{animation:Y},c&&k?m().createElement(ac,{key:k,id:c.id,ref:Q,as:a,activatorEvent:u,adjustScale:t,className:l,transition:s,rect:S,style:{zIndex:d,...r},transform:A},n):null))});const pc=e=>{let{transform:t}=e;return{...t,y:0}};function fc(e,t,n){const i={...e};return t.top+e.y<=n.top?i.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(i.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?i.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(i.x=n.left+n.width-t.right),i}const Oc=e=>{let{containerNodeRect:t,draggingNodeRect:n,transform:i}=e;return n&&t?fc(i,n,t):i},_c=e=>{let{transform:t}=e;return{...t,x:0}},gc=e=>{let{transform:t,draggingNodeRect:n,windowRect:i}=e;return n&&i?fc(t,n,i):t};function yc(e,t,n){const i=e.slice();return i.splice(n<0?i.length+n:n,0,i.splice(t,1)[0]),i}function bc(e,t){return e.reduce((e,n,i)=>{const r=t.get(n);return r&&(e[i]=r),e},Array(e.length))}function vc(e){return null!==e&&e>=0}const wc={scaleX:1,scaleY:1},$c=e=>{var t;let{rects:n,activeNodeRect:i,activeIndex:r,overIndex:s,index:o}=e;const a=null!=(t=n[r])?t:i;if(!a)return null;const l=function(e,t,n){const i=e[t],r=e[t-1],s=e[t+1];if(!i||!r&&!s)return 0;if(nr&&o<=s?{x:-a.width-l,y:0,...wc}:o=s?{x:a.width+l,y:0,...wc}:{x:0,y:0,...wc}};const Mc=e=>{let{rects:t,activeIndex:n,overIndex:i,index:r}=e;const s=yc(t,i,n),o=t[r],a=s[r];return a&&o?{x:a.left-o.left,y:a.top-o.top,scaleX:a.width/o.width,scaleY:a.height/o.height}:null},kc={scaleX:1,scaleY:1},Ac=e=>{var t;let{activeIndex:n,activeNodeRect:i,index:r,rects:s,overIndex:o}=e;const a=null!=(t=s[n])?t:i;if(!a)return null;if(r===n){const e=s[o];return e?{x:0,y:nn&&r<=o?{x:0,y:-a.height-l,...kc}:r=o?{x:0,y:a.height+l,...kc}:{x:0,y:0,...kc}};const Sc="Sortable",Yc=m().createContext({activeIndex:-1,containerId:Sc,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Mc,disabled:{draggable:!1,droppable:!1}});function Qc(e){let{children:t,id:n,items:i,strategy:r=Mc,disabled:s=!1}=e;const{active:o,dragOverlay:a,droppableRects:l,over:d,measureDroppableContainers:u}=Ju(),c=td(Sc,n),p=Boolean(null!==a.rect),f=(0,h.useMemo)(()=>i.map(e=>"object"==typeof e&&"id"in e?e.id:e),[i]),O=null!=o,_=o?f.indexOf(o.id):-1,g=d?f.indexOf(d.id):-1,y=(0,h.useRef)(f),b=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{b&&O&&u(f)},[b,f,O,u]),(0,h.useEffect)(()=>{y.current=f},[f]);const $=(0,h.useMemo)(()=>({activeIndex:_,containerId:c,disabled:w,disableTransforms:v,items:f,overIndex:g,useDragOverlay:p,sortedRects:bc(f,l),strategy:r}),[_,c,w.draggable,w.droppable,v,f,g,l,p,r]);return m().createElement(Yc.Provider,{value:$},t)}const Tc=e=>{let{id:t,items:n,activeIndex:i,overIndex:r}=e;return yc(n,i,r).indexOf(t)},Lc=e=>{let{containerId:t,isSorting:n,wasDragging:i,index:r,items:s,newIndex:o,previousItems:a,previousContainerId:l,transition:d}=e;return!(!d||!i)&&((a===s||r!==o)&&(!!n||o!==r&&t===l))},xc={duration:200,easing:"ease"},Pc="transform",Dc=ad.Transition.toString({property:Pc,duration:0,easing:"linear"}),jc={roleDescription:"sortable"};function Ec(e){let{animateLayoutChanges:t=Lc,attributes:n,disabled:i,data:r,getNewIndex:s=Tc,id:o,strategy:a,resizeObserverConfig:l,transition:d=xc}=e;const{items:u,containerId:c,activeIndex:m,disabled:p,disableTransforms:f,sortedRects:O,overIndex:_,useDragOverlay:g,strategy:y}=(0,h.useContext)(Yc),b=function(e,t){var n,i;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(i=null==e?void 0:e.droppable)?i:t.droppable}}(i,p),v=u.indexOf(o),w=(0,h.useMemo)(()=>({sortable:{containerId:c,index:v,items:u},...r}),[c,r,v,u]),$=(0,h.useMemo)(()=>u.slice(u.indexOf(o)),[u,o]),{rect:M,node:k,isOver:A,setNodeRef:S}=tc({id:o,data:w,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:$,...l}}),{active:Y,activatorEvent:Q,activeNodeRect:T,attributes:L,setNodeRef:x,listeners:P,isDragging:D,over:j,setActivatorNodeRef:E,transform:C}=Ku({id:o,data:w,attributes:{...jc,...n},disabled:b.draggable}),N=function(){for(var e=arguments.length,t=new Array(e),n=0;ne=>{t.forEach(t=>t(e))},t)}(S,x),R=Boolean(Y),q=R&&!f&&vc(m)&&vc(_),X=!g&&D,I=X&&q?C:null,W=q?null!=I?I:(null!=a?a:y)({rects:O,activeNodeRect:T,activeIndex:m,overIndex:_,index:v}):null,H=vc(m)&&vc(_)?s({id:o,items:u,activeIndex:m,overIndex:_}):v,Z=null==Y?void 0:Y.id,z=(0,h.useRef)({activeId:Z,items:u,newIndex:H,containerId:c}),V=u!==z.current.items,F=t({active:Y,containerId:c,isDragging:D,isSorting:R,id:o,index:v,items:u,newIndex:z.current.newIndex,previousItems:z.current.items,previousContainerId:z.current.containerId,transition:d,wasDragging:null!=z.current.activeId}),B=function(e){let{disabled:t,index:n,node:i,rect:r}=e;const[s,o]=(0,h.useState)(null),a=(0,h.useRef)(n);return Fl(()=>{if(!t&&n!==a.current&&i.current){const e=r.current;if(e){const t=Nd(i.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&o(n)}}n!==a.current&&(a.current=n)},[t,n,i,r]),(0,h.useEffect)(()=>{s&&o(null)},[s]),s}({disabled:!F,index:v,node:k,rect:M});return(0,h.useEffect)(()=>{R&&z.current.newIndex!==H&&(z.current.newIndex=H),c!==z.current.containerId&&(z.current.containerId=c),u!==z.current.items&&(z.current.items=u)},[R,H,c,u]),(0,h.useEffect)(()=>{if(Z===z.current.activeId)return;if(Z&&!z.current.activeId)return void(z.current.activeId=Z);const e=setTimeout(()=>{z.current.activeId=Z},50);return()=>clearTimeout(e)},[Z]),{active:Y,activeIndex:m,attributes:L,data:w,rect:M,index:v,newIndex:H,items:u,isOver:A,isSorting:R,isDragging:D,listeners:P,node:k,overIndex:_,over:j,setNodeRef:N,setActivatorNodeRef:E,setDroppableNodeRef:S,setDraggableNodeRef:x,transform:null!=B?B:W,transition:function(){if(B||V&&z.current.newIndex===v)return Dc;if(X&&!sd(Q)||!d)return;if(R||F)return ad.Transition.toString({...d,property:Pc});return}()}}function Cc(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Nc=[su.Down,su.Right,su.Up,su.Left],Rc=(e,t)=>{let{context:{active:n,collisionRect:i,droppableRects:r,droppableContainers:s,over:o,scrollableAncestors:a}}=t;if(Nc.includes(e.code)){if(e.preventDefault(),!n||!i)return;const t=[];s.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;const s=r.get(n.id);if(s)switch(e.code){case su.Down:i.tops.top&&t.push(n);break;case su.Left:i.left>s.left&&t.push(n);break;case su.Right:i.left1&&(d=l[1].id),null!=d){const e=s.get(n.id),t=s.get(d),o=t?r.get(t.id):null,l=null==t?void 0:t.node.current;if(l&&o&&e&&t){const n=qd(l).some((e,t)=>a[t]!==e),r=qc(e,t),s=function(e,t){if(!Cc(e)||!Cc(t))return!1;if(!qc(e,t))return!1;return e.data.current.sortable.indexn.length&&(A.current=A.current.slice(0,n.length));var S=function(e,t){if(o&&void 0!==(null==n?void 0:n[e])&&void 0!==(null==n?void 0:n[t])){var i=c(A.current),r=i[t];i[t]=i[e],i[e]=r,A.current=i;var a=c(n),l=a[t];a[t]=a[e],a[e]=l,s(a.map(function(e){return e.value}))}},Y=bd(yd(fu),yd(uu,{coordinateGetter:Rc})),Q=function(e){var t=e.label,n=e.value,r=i.find(function(e){return e.id.toString()===n.toString()});return{label:null!=r&&r.name?r.name:t,value:n}},T=!M&&o&&1!==a;return m().createElement("div",{className:"pods-list-select-values-container",__self:fh,__source:{fileName:ph,lineNumber:156,columnNumber:3}},m().createElement(Bu,{sensors:Y,collisionDetection:Qd,onDragEnd:function(e){var t=e.active,i=e.over;if(o&&null!=i&&i.id&&t.id!==i.id){var r=parseInt(t.id,10),a=parseInt(i.id,10);A.current=yc(A.current,r,a);var l=yc(n,r,a);s(l.map(function(e){return e.value}))}},modifiers:[Oc,_c],__self:fh,__source:{fileName:ph,lineNumber:157,columnNumber:4}},m().createElement(Qc,{items:n.map(function(e,t){return t.toString()}),strategy:Ac,__self:fh,__source:{fileName:ph,lineNumber:166,columnNumber:5}},n.length?m().createElement("div",{className:"pods-list-select-values",__self:fh,__source:{fileName:ph,lineNumber:171,columnNumber:7}},n.map(function(e,a){return m().createElement(ch,{key:"".concat(t,"-").concat(A.current[a]),fieldName:t,value:Q(e),index:a,isDraggable:T,isRemovable:!M,removeItem:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;A.current=[].concat(c(A.current.slice(0,e)),c(A.current.slice(e+1))),s(o?[].concat(c(n.slice(0,e)),c(n.slice(e+1))).map(function(e){return e.value}):void 0)}(a)},fieldItemData:i,setFieldItemData:r,defaultIcon:l,showIcon:u,showDownloadLink:f,showViewLink:_,showEditLink:!M&&y,showEditTitle:!M&&v,editIframeTitle:w,moveUp:T&&0!==a?function(){return S(a,a-1)}:void 0,moveDown:T&&a!==n.length-1?function(){return S(a,a+1)}:void 0,__self:fh,__source:{fileName:ph,lineNumber:174,columnNumber:10}})})):null)))};Oh.propTypes={fieldName:Hi().string.isRequired,value:Hi().arrayOf(Hi().shape({label:Hi().string.isRequired,value:Hi().string.isRequired})),setValue:Hi().func.isRequired,fieldItemData:Hi().arrayOf(Hi().any),setFieldItemData:Hi().func.isRequired,isMulti:Hi().bool.isRequired,limit:Hi().number.isRequired,defaultIcon:Hi().string,showIcon:Hi().bool,showDownloadLink:Hi().bool,showViewLink:Hi().bool,showEditLink:Hi().bool,showEditTitle:Hi().bool,editIframeTitle:Hi().string,readOnly:Hi().bool};const _h=Oh;var gh="/home/runner/work/pods-private/pods-private/ui/js/dfv/src/fields/file/file-read-only.js",yh=void 0;function bh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function vh(e){for(var t=1;t0?Rh(Bh,--Vh):0,Zh--,10===Fh&&(Zh=1,Hh--),Fh}function Jh(){return Fh=Vh2||im(Fh)>3?"":" "}function lm(e,t){for(;--t&&Jh()&&!(Fh<48||Fh>102||Fh>57&&Fh<65||Fh>70&&Fh<97););return nm(e,tm()+(t<6&&32==em()&&32==Jh()))}function dm(e){for(;Jh();)switch(Fh){case e:return Vh;case 34:case 39:34!==e&&39!==e&&dm(Fh);break;case 40:41===e&&dm(e);break;case 92:Jh()}return Vh}function um(e,t){for(;Jh()&&e+Fh!==57&&(e+Fh!==84||47!==em()););return"/*"+nm(t,Vh-1)+"*"+Dh(47===e?e:Jh())}function cm(e){for(;!im(em());)Jh();return nm(e,Vh)}var hm="-ms-",mm="-moz-",pm="-webkit-",fm="comm",Om="rule",_m="decl",gm="@keyframes";function ym(e,t){for(var n="",i=Ih(e),r=0;r0&&Xh($)-c&&Wh(m>32?km($+";",i,n,c-1):km(Ch($," ","")+";",i,n,c-2),l);break;case 59:$+=";";default:if(Wh(w=$m($,t,n,d,u,r,a,y,b=[],v=[],c),s),123===g)if(0===u)wm($,t,w,w,b,s,c,a,v);else switch(99===h&&110===Rh($,3)?100:h){case 100:case 108:case 109:case 115:wm(e,w,w,i&&Wh($m(e,w,w,0,0,r,a,y,r,b=[],c),v),r,v,c,a,i?b:v);break;default:wm($,w,w,w,[""],v,0,a,v)}}d=u=m=0,f=_=1,y=$="",c=o;break;case 58:c=1+Xh($),m=p;default:if(f<1)if(123==g)--f;else if(125==g&&0==f++&&125==Kh())continue;switch($+=Dh(g),g*f){case 38:_=u>0?1:($+="\f",-1);break;case 44:a[d++]=(Xh($)-1)*_,_=1;break;case 64:45===em()&&($+=om(Jh())),h=em(),u=c=Xh(y=$+=cm(tm())),g++;break;case 45:45===p&&2==Xh($)&&(f=0)}}return s}function $m(e,t,n,i,r,s,o,a,l,d,u){for(var c=r-1,h=0===r?s:[""],m=Ih(h),p=0,f=0,O=0;p0?h[_]+" "+g:Ch(g,/&\f/g,h[_])))&&(l[O++]=y);return Uh(e,t,n,0===r?Om:a,l,d,u)}function Mm(e,t,n){return Uh(e,t,n,fm,Dh(Fh),qh(e,2,-2),0)}function km(e,t,n,i){return Uh(e,t,n,_m,qh(e,0,i),qh(e,i+1,-1),i)}var Am=function(e,t,n){for(var i=0,r=0;i=r,r=em(),38===i&&12===r&&(t[n]=1),!im(r);)Jh();return nm(e,Vh)},Sm=function(e,t){return sm(function(e,t){var n=-1,i=44;do{switch(im(i)){case 0:38===i&&12===em()&&(t[n]=1),e[n]+=Am(Vh-1,t,n);break;case 2:e[n]+=om(i);break;case 4:if(44===i){e[++n]=58===em()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Dh(i)}}while(i=Jh());return e}(rm(e),t))},Ym=new WeakMap,Qm=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,i=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Ym.get(n))&&!i){Ym.set(e,!0);for(var r=[],s=Sm(t,r),o=n.props,a=0,l=0;a6)switch(Rh(e,t+1)){case 109:if(45!==Rh(e,t+4))break;case 102:return Ch(e,/(.+:)(.+)-([^]+)/,"$1"+pm+"$2-$3$1"+mm+(108==Rh(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Nh(e,"stretch")?Lm(Ch(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Rh(e,t+1))break;case 6444:switch(Rh(e,Xh(e)-3-(~Nh(e,"!important")&&10))){case 107:return Ch(e,":",":"+pm)+e;case 101:return Ch(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pm+(45===Rh(e,14)?"inline-":"")+"box$3$1"+pm+"$2$3$1"+hm+"$2box$3")+e}break;case 5936:switch(Rh(e,t+11)){case 114:return pm+e+hm+Ch(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pm+e+hm+Ch(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pm+e+hm+Ch(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pm+e+hm+e+e}return e}var xm=[function(e,t,n,i){if(e.length>-1&&!e.return)switch(e.type){case _m:e.return=Lm(e.value,e.length);break;case gm:return ym([Gh(e,{value:Ch(e.value,"@","@"+pm)})],i);case Om:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ym([Gh(e,{props:[Ch(t,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return ym([Gh(e,{props:[Ch(t,/:(plac\w+)/,":"+pm+"input-$1")]}),Gh(e,{props:[Ch(t,/:(plac\w+)/,":-moz-$1")]}),Gh(e,{props:[Ch(t,/:(plac\w+)/,hm+"input-$1")]})],i)}return""})}}],Pm=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var i,r,s=e.stylisPlugins||xm,o={},a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++i,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(i+2))<<16;case 2:n^=(255&e.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+l;return{name:d,styles:r,next:Hm}}var Vm=!!h.useInsertionEffect&&h.useInsertionEffect,Fm=Vm||function(e){return e()},Bm=(Vm||h.useLayoutEffect,h.createContext("undefined"!=typeof HTMLElement?Pm({key:"css"}):null)),Um=(Bm.Provider,function(e){return(0,h.forwardRef)(function(t,n){var i=(0,h.useContext)(Bm);return e(t,i,n)})}),Gm=h.createContext({});var Km,Jm,ep={}.hasOwnProperty,tp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",np=function(e){var t=e.cache,n=e.serialized,i=e.isStringTag;return Dm(t,n,i),Fm(function(){return function(e,t,n){Dm(e,t,n);var i=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+i:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(t,n,i)}),null},ip=Um(function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var r=e[tp],s=[i],o="";"string"==typeof e.className?o=function(e,t,n){var i="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(i+=n+" ")}),i}(t.registered,s,e.className):null!=e.className&&(o=e.className+" ");var a=zm(s,void 0,h.useContext(Gm));o+=t.key+"-"+a.name;var l={};for(var d in e)ep.call(e,d)&&"css"!==d&&d!==tp&&(l[d]=e[d]);return l.className=o,n&&(l.ref=n),h.createElement(h.Fragment,null,h.createElement(np,{cache:t,serialized:a,isStringTag:"string"==typeof r}),h.createElement(r,l))}),rp=ip,sp=(n(4146),function(e,t){var n=arguments;if(null==t||!ep.call(t,"css"))return h.createElement.apply(void 0,n);var i=n.length,r=new Array(i);r[0]=rp,r[1]=function(e,t){var n={};for(var i in t)ep.call(t,i)&&(n[i]=t[i]);return n[tp]=e,n}(e,t);for(var s=2;s({x:e,y:e});function mp(){return"undefined"!=typeof window}function pp(e){return _p(e)?(e.nodeName||"").toLowerCase():"#document"}function fp(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Op(e){var t;return null==(t=(_p(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function _p(e){return!!mp()&&(e instanceof Node||e instanceof fp(e).Node)}function gp(e){return!!mp()&&(e instanceof Element||e instanceof fp(e).Element)}function yp(e){return!!mp()&&(e instanceof HTMLElement||e instanceof fp(e).HTMLElement)}function bp(e){return!(!mp()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof fp(e).ShadowRoot)}function vp(e){const{overflow:t,overflowX:n,overflowY:i,display:r}=Ap(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&"inline"!==r&&"contents"!==r}let $p;function Mp(){return null==$p&&($p="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),$p}function kp(e){return/^(html|body|#document)$/.test(pp(e))}function Ap(e){return fp(e).getComputedStyle(e)}function Sp(e){if("html"===pp(e))return e;const t=e.assignedSlot||e.parentNode||bp(e)&&e.host||Op(e);return bp(t)?t.host:t}function Yp(e){const t=Sp(e);return kp(t)?(e.ownerDocument||e).body:yp(t)&&vp(t)?t:Yp(t)}function Qp(e,t,n){var i;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=Yp(e),s=r===(null==(i=e.ownerDocument)?void 0:i.body),o=fp(r);if(s){const e=Tp(o);return t.concat(o,o.visualViewport||[],vp(r)?r:[],e&&n?Qp(e):[])}return t.concat(r,Qp(r,[],n))}function Tp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lp(e){const t=Ap(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=yp(e),s=r?e.offsetWidth:n,o=r?e.offsetHeight:i,a=up(n)!==s||up(i)!==o;return a&&(n=s,i=o),{width:n,height:i,$:a}}function xp(e){return gp(e)?e:e.contextElement}function Pp(e){const t=xp(e);if(!yp(t))return hp(1);const n=t.getBoundingClientRect(),{width:i,height:r,$:s}=Lp(t);let o=(s?up(n.width):n.width)/i,a=(s?up(n.height):n.height)/r;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}const Dp=hp(0);function jp(e){const t=fp(e);return Mp()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Dp}function Ep(e,t,n,i){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),s=xp(e);let o=hp(1);t&&(i?gp(i)&&(o=Pp(i)):o=Pp(e));const a=function(e,t,n){return void 0===t&&(t=!1),!!n&&t&&n===fp(e)}(s,n,i)?jp(s):hp(0);let l=(r.left+a.x)/o.x,d=(r.top+a.y)/o.y,u=r.width/o.x,c=r.height/o.y;if(s&&i){const e=fp(s),t=gp(i)?fp(i):i;let n=e,r=Tp(n);for(;r&&t!==n;){const e=Pp(r),t=r.getBoundingClientRect(),i=Ap(r),s=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,o=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;l*=e.x,d*=e.y,u*=e.x,c*=e.y,l+=s,d+=o,n=fp(r),r=Tp(n)}}return function(e){const{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}({width:u,height:c,x:l,y:d})}function Cp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Np(e,t,n,i){void 0===i&&(i={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:o="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,d=xp(e),u=r||s?[...d?Qp(d):[],...t?Qp(t):[]]:[];u.forEach(e=>{r&&e.addEventListener("scroll",n),s&&e.addEventListener("resize",n)});const c=d&&a?function(e,t,n){let i,r=null;const s=Op(e);function o(){var e;clearTimeout(i),null==(e=r)||e.disconnect(),r=null}function a(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),o();const d=e.getBoundingClientRect(),{left:u,top:c,width:h,height:m}=d;if(n||t(),!h||!m)return;const p={rootMargin:-cp(c)+"px "+-cp(s.clientWidth-(u+h))+"px "+-cp(s.clientHeight-(c+m))+"px "+-cp(u)+"px",threshold:dp(0,lp(1,l))||1};let f=!0;function O(t){const n=t[0].intersectionRatio;if(!Cp(d,e.getBoundingClientRect()))return a();if(n!==l){if(!f)return a();n?a(!1,n):i=setTimeout(()=>{a(!1,1e-7)},1e3)}f=!1}try{r=new IntersectionObserver(O,{...p,root:s.ownerDocument})}catch(e){r=new IntersectionObserver(O,p)}r.observe(e)}const l=fp(e),d=()=>a(n);return l.addEventListener("resize",d),a(!0),()=>{l.removeEventListener("resize",d),o()}}(d,n,s):null;let h,m=-1,p=null;o&&(p=new ResizeObserver(e=>{let[i]=e;i&&i.target===d&&p&&t&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),d&&!l&&p.observe(d),t&&p.observe(t));let f=l?Ep(e):null;return l&&function t(){const i=Ep(e);f&&!Cp(f,i)&&n();f=i,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{r&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==c||c(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(h)}}var Rp=h.useLayoutEffect,qp=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Xp=function(){};function Ip(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Wp(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r-1}function Fp(e){return Vp(e)?window.pageYOffset:e.scrollTop}function Bp(e,t){Vp(e)?window.scrollTo(0,t):e.scrollTop=t}function Up(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Xp,r=Fp(e),s=t-r,o=0;!function t(){var a=function(e,t,n,i){return n*((e=e/i-1)*e*e+1)+t}(o+=10,r,s,n);Bp(e,a),on.bottom?Bp(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):i.top-r=p)return{placement:"bottom",maxHeight:t};if(M>=p&&!o)return s&&Up(l,k,S),{placement:"bottom",maxHeight:t};if(!o&&M>=i||o&&w>=i)return s&&Up(l,k,S),{placement:"bottom",maxHeight:o?w-y:M-y};if("auto"===r||o){var Y=t,Q=o?v:$;return Q>=i&&(Y=Math.min(Q-y-a,t)),{placement:"top",maxHeight:Y}}if("bottom"===r)return s&&Bp(l,k),{placement:"bottom",maxHeight:t};break;case"top":if(v>=p)return{placement:"top",maxHeight:t};if($>=p&&!o)return s&&Up(l,A,S),{placement:"top",maxHeight:t};if(!o&&$>=i||o&&v>=i){var T=t;return(!o&&$>=i||o&&v>=i)&&(T=o?v-b:$-b),s&&Up(l,A,S),{placement:"top",maxHeight:T}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return d}var df,uf=function(e){return"auto"===e?"bottom":e},cf=(0,h.createContext)(null),hf=function(e){var t=e.children,n=e.minMenuHeight,i=e.maxMenuHeight,r=e.menuPlacement,s=e.menuPosition,o=e.menuShouldScrollIntoView,a=e.theme,l=((0,h.useContext)(cf)||{}).setPortalPlacement,d=(0,h.useRef)(null),u=ji((0,h.useState)(i),2),c=u[0],m=u[1],p=ji((0,h.useState)(null),2),f=p[0],O=p[1],_=a.spacing.controlHeight;return Rp(function(){var e=d.current;if(e){var t="fixed"===s,a=lf({maxHeight:i,menuEl:e,minHeight:n,placement:r,shouldScroll:o&&!t,isFixedPosition:t,controlHeight:_});m(a.maxHeight),O(a.placement),null==l||l(a.placement)}},[i,r,s,o,n,l,_]),t({ref:d,placerProps:ve(ve({},e),{},{placement:f||uf(r),maxHeight:c})})},mf=function(e){var t=e.children,n=e.innerRef,i=e.innerProps;return sp("div",Ba({},zp(e,"menu",{menu:!0}),{ref:n},i),t)},pf=function(e,t){var n=e.theme,i=n.spacing.baseUnit,r=n.colors;return ve({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*i,"px ").concat(3*i,"px")})},ff=pf,Of=pf,_f=["size"],gf=["innerProps","isRtl","size"];var yf={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},bf=function(e){var t=e.size,n=ap(e,_f);return sp("svg",Ba({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:yf},n))},vf=function(e){return sp(bf,Ba({size:20},e),sp("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},wf=function(e){return sp(bf,Ba({size:20},e),sp("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},$f=function(e,t){var n=e.isFocused,i=e.theme,r=i.spacing.baseUnit,s=i.colors;return ve({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?s.neutral60:s.neutral20,padding:2*r,":hover":{color:n?s.neutral80:s.neutral40}})},Mf=$f,kf=$f,Af=function(){var e=op.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(df||(df=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),Sf=function(e){var t=e.delay,n=e.offset;return sp("span",{css:op({animation:"".concat(Af," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Yf=function(e){var t=e.children,n=e.isDisabled,i=e.isFocused,r=e.innerRef,s=e.innerProps,o=e.menuIsOpen;return sp("div",Ba({ref:r},zp(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":i,"control--menu-is-open":o}),s,{"aria-disabled":n||void 0}),t)},Qf=["data"],Tf=function(e){var t=e.children,n=e.cx,i=e.getStyles,r=e.getClassNames,s=e.Heading,o=e.headingProps,a=e.innerProps,l=e.label,d=e.theme,u=e.selectProps;return sp("div",Ba({},zp(e,"group",{group:!0}),a),sp(s,Ba({},o,{selectProps:u,theme:d,getStyles:i,getClassNames:r,cx:n}),l),sp("div",null,t))},Lf=["innerRef","isDisabled","isHidden","inputClassName"],xf={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Pf={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":ve({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},xf)},Df=function(e){return ve({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},xf)},jf=function(e){var t=e.children,n=e.innerProps;return sp("div",n,t)};var Ef=function(e){var t=e.children,n=e.components,i=e.data,r=e.innerProps,s=e.isDisabled,o=e.removeProps,a=e.selectProps,l=n.Container,d=n.Label,u=n.Remove;return sp(l,{data:i,innerProps:ve(ve({},zp(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),r),selectProps:a},sp(d,{data:i,innerProps:ve({},zp(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},t),sp(u,{data:i,innerProps:ve(ve({},zp(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},o),selectProps:a}))},Cf={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return sp("div",Ba({},zp(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||sp(vf,null))},Control:Yf,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return sp("div",Ba({},zp(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||sp(wf,null))},DownChevron:wf,CrossIcon:vf,Group:Tf,GroupHeading:function(e){var t=Zp(e);t.data;var n=ap(t,Qf);return sp("div",Ba({},zp(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return sp("div",Ba({},zp(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return sp("span",Ba({},t,zp(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,i=Zp(e),r=i.innerRef,s=i.isDisabled,o=i.isHidden,a=i.inputClassName,l=ap(i,Lf);return sp("div",Ba({},zp(e,"input",{"input-container":!0}),{"data-value":n||""}),sp("input",Ba({className:t({input:!0},a),ref:r,style:Df(o),disabled:s},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,i=e.size,r=void 0===i?4:i,s=ap(e,gf);return sp("div",Ba({},zp(ve(ve({},s),{},{innerProps:t,isRtl:n,size:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),sp(Sf,{delay:0,offset:n}),sp(Sf,{delay:160,offset:!0}),sp(Sf,{delay:320,offset:!n}))},Menu:mf,MenuList:function(e){var t=e.children,n=e.innerProps,i=e.innerRef,r=e.isMulti;return sp("div",Ba({},zp(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:i},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,i=e.controlElement,r=e.innerProps,s=e.menuPlacement,o=e.menuPosition,a=(0,h.useRef)(null),l=(0,h.useRef)(null),d=ji((0,h.useState)(uf(s)),2),u=d[0],c=d[1],m=(0,h.useMemo)(function(){return{setPortalPlacement:c}},[]),f=ji((0,h.useState)(null),2),O=f[0],_=f[1],g=(0,h.useCallback)(function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===o?0:window.pageYOffset,n=e[u]+t;n===(null==O?void 0:O.offset)&&e.left===(null==O?void 0:O.rect.left)&&e.width===(null==O?void 0:O.rect.width)||_({offset:n,rect:e})}},[i,o,u,null==O?void 0:O.offset,null==O?void 0:O.rect.left,null==O?void 0:O.rect.width]);Rp(function(){g()},[g]);var y=(0,h.useCallback)(function(){"function"==typeof l.current&&(l.current(),l.current=null),i&&a.current&&(l.current=Np(i,a.current,g,{elementResize:"ResizeObserver"in window}))},[i,g]);Rp(function(){y()},[y]);var b=(0,h.useCallback)(function(e){a.current=e,y()},[y]);if(!t&&"fixed"!==o||!O)return null;var v=sp("div",Ba({ref:b},zp(ve(ve({},e),{},{offset:O.offset,position:o,rect:O.rect}),"menuPortal",{"menu-portal":!0}),r),n);return sp(cf.Provider,{value:m},t?(0,p.createPortal)(v,t):v)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,i=e.innerProps,r=ap(e,af);return sp("div",Ba({},zp(ve(ve({},r),{},{children:n,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,i=e.innerProps,r=ap(e,of);return sp("div",Ba({},zp(ve(ve({},r),{},{children:n,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),n)},MultiValue:Ef,MultiValueContainer:jf,MultiValueLabel:jf,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return sp("div",Ba({role:"button"},n),t||sp(vf,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,i=e.isFocused,r=e.isSelected,s=e.innerRef,o=e.innerProps;return sp("div",Ba({},zp(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":i,"option--is-selected":r}),{ref:s,"aria-disabled":n},o),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return sp("div",Ba({},zp(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,i=e.isDisabled,r=e.isRtl;return sp("div",Ba({},zp(e,"container",{"--is-disabled":i,"--is-rtl":r}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,i=e.innerProps;return sp("div",Ba({},zp(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),i),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,i=e.isMulti,r=e.hasValue;return sp("div",Ba({},zp(e,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":r}),n),t)}},Nf=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Rf(e){var t=e.defaultInputValue,n=void 0===t?"":t,i=e.defaultMenuIsOpen,r=void 0!==i&&i,s=e.defaultValue,o=void 0===s?null:s,a=e.inputValue,l=e.menuIsOpen,d=e.onChange,u=e.onInputChange,c=e.onMenuClose,m=e.onMenuOpen,p=e.value,f=ap(e,Nf),O=ji((0,h.useState)(void 0!==a?a:n),2),_=O[0],g=O[1],y=ji((0,h.useState)(void 0!==l?l:r),2),b=y[0],v=y[1],w=ji((0,h.useState)(void 0!==p?p:o),2),$=w[0],M=w[1],k=(0,h.useCallback)(function(e,t){"function"==typeof d&&d(e,t),M(e)},[d]),A=(0,h.useCallback)(function(e,t){var n;"function"==typeof u&&(n=u(e,t)),g(void 0!==n?n:e)},[u]),S=(0,h.useCallback)(function(){"function"==typeof m&&m(),v(!0)},[m]),Y=(0,h.useCallback)(function(){"function"==typeof c&&c(),v(!1)},[c]),Q=void 0!==a?a:_,T=void 0!==l?l:b,L=void 0!==p?p:$;return ve(ve({},f),{},{inputValue:Q,menuIsOpen:T,onChange:k,onInputChange:A,onMenuClose:Y,onMenuOpen:S,value:L})}function qf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qf=function(){return!!e})()}var Xf=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function If(e,t){return e===t||!(!Xf(e)||!Xf(t))}function Wf(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(i,s?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,i=e.options,r=e.label,s=void 0===r?"":r,o=e.selectValue,a=e.isDisabled,l=e.isSelected,d=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&o)return"value ".concat(s," focused, ").concat(u(o,n),".");if("menu"===t&&d){var c=a?" disabled":"",h="".concat(l?" selected":"").concat(c);return"".concat(s).concat(h,", ").concat(u(i,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Vf=function(e){var t=e.ariaSelection,n=e.focusedOption,i=e.focusedValue,r=e.focusableOptions,s=e.isFocused,o=e.selectValue,a=e.selectProps,l=e.id,d=e.isAppleDevice,u=a.ariaLiveMessages,c=a.getOptionLabel,m=a.inputValue,p=a.isMulti,f=a.isOptionDisabled,O=a.isSearchable,_=a.menuIsOpen,g=a.options,y=a.screenReaderStatus,b=a.tabSelectsValue,v=a.isLoading,w=a["aria-label"],$=a["aria-live"],M=(0,h.useMemo)(function(){return ve(ve({},zf),u||{})},[u]),k=(0,h.useMemo)(function(){var e,n="";if(t&&M.onChange){var i=t.option,r=t.options,s=t.removedValue,a=t.removedValues,l=t.value,d=s||i||(e=l,Array.isArray(e)?null:e),u=d?c(d):"",h=r||a||void 0,m=h?h.map(c):[],p=ve({isDisabled:d&&f(d,o),label:u,labels:m},t);n=M.onChange(p)}return n},[t,M,f,o,c]),A=(0,h.useMemo)(function(){var e="",t=n||i,s=!!(n&&o&&o.includes(n));if(t&&M.onFocus){var a={focused:t,label:c(t),isDisabled:f(t,o),isSelected:s,options:r,context:t===n?"menu":"value",selectValue:o,isAppleDevice:d};e=M.onFocus(a)}return e},[n,i,c,f,M,r,o,d]),S=(0,h.useMemo)(function(){var e="";if(_&&g.length&&!v&&M.onFilter){var t=y({count:r.length});e=M.onFilter({inputValue:m,resultsMessage:t})}return e},[r,m,_,M,g,y,v]),Y="initial-input-focus"===(null==t?void 0:t.action),Q=(0,h.useMemo)(function(){var e="";if(M.guidance){var t=i?"value":_?"menu":"input";e=M.guidance({"aria-label":w,context:t,isDisabled:n&&f(n,o),isMulti:p,isSearchable:O,tabSelectsValue:b,isInitialFocus:Y})}return e},[w,n,i,p,f,O,_,M,o,b,Y]),T=sp(h.Fragment,null,sp("span",{id:"aria-selection"},k),sp("span",{id:"aria-focused"},A),sp("span",{id:"aria-results"},S),sp("span",{id:"aria-guidance"},Q));return sp(h.Fragment,null,sp(Zf,{id:l},Y&&T),sp(Zf,{"aria-live":$,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!Y&&T))},Ff=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Bf=new RegExp("["+Ff.map(function(e){return e.letters}).join("")+"]","g"),Uf={},Gf=0;Gf1?t-1:0),i=1;i0,f=c-h-u,O=!1;f>t&&o.current&&(i&&i(e),o.current=!1),p&&a.current&&(s&&s(e),a.current=!1),p&&t>f?(n&&!o.current&&n(e),m.scrollTop=c,O=!0,o.current=!0):!p&&-t>u&&(r&&!a.current&&r(e),m.scrollTop=0,O=!0,a.current=!0),O&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,i,r,s]),c=(0,h.useCallback)(function(e){u(e,e.deltaY)},[u]),m=(0,h.useCallback)(function(e){l.current=e.changedTouches[0].clientY},[]),p=(0,h.useCallback)(function(e){var t=l.current-e.changedTouches[0].clientY;u(e,t)},[u]),f=(0,h.useCallback)(function(e){if(e){var t=!!nf&&{passive:!1};e.addEventListener("wheel",c,t),e.addEventListener("touchstart",m,t),e.addEventListener("touchmove",p,t)}},[p,m,c]),O=(0,h.useCallback)(function(e){e&&(e.removeEventListener("wheel",c,!1),e.removeEventListener("touchstart",m,!1),e.removeEventListener("touchmove",p,!1))},[p,m,c]);return(0,h.useEffect)(function(){if(t){var e=d.current;return f(e),function(){O(e)}}},[t,f,O]),function(e){d.current=e}}({isEnabled:void 0===i||i,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),s=function(e){var t=e.isEnabled,n=e.accountForScrollbars,i=void 0===n||n,r=(0,h.useRef)({}),s=(0,h.useRef)(null),o=(0,h.useCallback)(function(e){if(hO){var t=document.body,n=t&&t.style;if(i&&oO.forEach(function(e){var t=n&&n[e];r.current[e]=t}),i&&mO<1){var s=parseInt(r.current.paddingRight,10)||0,o=document.body?document.body.clientWidth:0,a=window.innerWidth-o+s||0;Object.keys(aO).forEach(function(e){var t=aO[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(a,"px"))}t&&cO()&&(t.addEventListener("touchmove",lO,pO),e&&(e.addEventListener("touchstart",uO,pO),e.addEventListener("touchmove",dO,pO))),mO+=1}},[i]),a=(0,h.useCallback)(function(e){if(hO){var t=document.body,n=t&&t.style;mO=Math.max(mO-1,0),i&&mO<1&&oO.forEach(function(e){var t=r.current[e];n&&(n[e]=t)}),t&&cO()&&(t.removeEventListener("touchmove",lO,pO),e&&(e.removeEventListener("touchstart",uO,pO),e.removeEventListener("touchmove",dO,pO)))}},[i]);return(0,h.useEffect)(function(){if(t){var e=s.current;return o(e),function(){a(e)}}},[t,o,a]),function(e){s.current=e}}({isEnabled:n});return sp(h.Fragment,null,n&&sp("div",{onClick:fO,css:OO}),t(function(e){r(e),s(e)}))}var gO={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},yO=function(e){var t=e.name,n=e.onFocus;return sp("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:gO,value:"",onChange:function(){}})};function bO(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function vO(){return bO(/^Mac/i)}function wO(){return bO(/^iPhone/i)||bO(/^iPad/i)||vO()&&navigator.maxTouchPoints>1}var $O=function(e){return e.label},MO=function(e){return e.value},kO={clearIndicator:kf,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,i=e.isFocused,r=e.theme,s=r.colors,o=r.borderRadius;return ve({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:r.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?s.neutral5:s.neutral0,borderColor:n?s.neutral10:i?s.primary:s.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:i?s.primary:s.neutral30}})},dropdownIndicator:Mf,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,i=n.colors,r=n.spacing;return ve({label:"group",cursor:"default",display:"block"},t?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,i=e.theme,r=i.spacing.baseUnit,s=i.colors;return ve({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?s.neutral10:s.neutral20,marginBottom:2*r,marginTop:2*r})},input:function(e,t){var n=e.isDisabled,i=e.value,r=e.theme,s=r.spacing,o=r.colors;return ve(ve({visibility:n?"hidden":"visible",transform:i?"translateZ(0)":""},Pf),t?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:o.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,i=e.size,r=e.theme,s=r.colors,o=r.spacing.baseUnit;return ve({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?s.neutral60:s.neutral20,padding:2*o})},loadingMessage:Of,menu:function(e,t){var n,i=e.placement,r=e.theme,s=r.borderRadius,o=r.spacing,a=r.colors;return ve((l(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(i),"100%"),l(n,"position","absolute"),l(n,"width","100%"),l(n,"zIndex",1),n),t?{}:{backgroundColor:a.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:o.menuGutter,marginTop:o.menuGutter})},menuList:function(e,t){var n=e.maxHeight,i=e.theme.spacing.baseUnit;return ve({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:i,paddingTop:i})},menuPortal:function(e){var t=e.rect,n=e.offset,i=e.position;return{left:t.left,position:i,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,i=n.spacing,r=n.borderRadius,s=n.colors;return ve({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:s.neutral10,borderRadius:r/2,margin:i.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,i=n.borderRadius,r=n.colors,s=e.cropWithEllipsis;return ve({overflow:"hidden",textOverflow:s||void 0===s?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:i/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,i=n.spacing,r=n.borderRadius,s=n.colors,o=e.isFocused;return ve({alignItems:"center",display:"flex"},t?{}:{borderRadius:r/2,backgroundColor:o?s.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},noOptionsMessage:ff,option:function(e,t){var n=e.isDisabled,i=e.isFocused,r=e.isSelected,s=e.theme,o=s.spacing,a=s.colors;return ve({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?a.primary:i?a.primary25:"transparent",color:n?a.neutral20:r?a.neutral0:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?a.primary:a.primary50}})},placeholder:function(e,t){var n=e.theme,i=n.spacing,r=n.colors;return ve({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,i=e.theme,r=i.spacing,s=i.colors;return ve({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?s.neutral40:s.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,i=e.isMulti,r=e.hasValue,s=e.selectProps.controlShouldRenderValue;return ve({alignItems:"center",display:i&&r&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var AO={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},SO={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Kp(),captureMenuScroll:!Kp(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){if(t.data.__isNew__)return!0;var i=ve({ignoreCase:!0,ignoreAccents:!0,stringify:iO,trim:!0,matchFrom:"any"},e),r=i.ignoreCase,s=i.ignoreAccents,o=i.stringify,a=i.trim,l=i.matchFrom,d=a?nO(n):n,u=a?nO(o(t)):o(t);return r&&(d=d.toLowerCase(),u=u.toLowerCase()),s&&(d=tO(d),u=eO(u)),"start"===l?u.substr(0,d.length)===d:u.indexOf(d)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:$O,getOptionValue:MO,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function YO(e,t,n,i){return{type:"option",data:t,isDisabled:EO(e,t,n),isSelected:CO(e,t,n),label:DO(e,t),value:jO(e,t),index:i}}function QO(e,t){return e.options.map(function(n,i){if("options"in n){var r=n.options.map(function(n,i){return YO(e,n,t,i)}).filter(function(t){return xO(e,t)});return r.length>0?{type:"group",data:n,options:r,index:i}:void 0}var s=YO(e,n,t,i);return xO(e,s)?s:void 0}).filter(rf)}function TO(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,c(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function LO(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,c(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function xO(e,t){var n=e.inputValue,i=void 0===n?"":n,r=t.data,s=t.isSelected,o=t.label,a=t.value;return(!RO(e)||!s)&&NO(e,{label:o,value:a,data:r},i)}var PO=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},DO=function(e,t){return e.getOptionLabel(t)},jO=function(e,t){return e.getOptionValue(t)};function EO(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function CO(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var i=jO(e,t);return n.some(function(t){return jO(e,t)===i})}function NO(e,t,n){return!e.filterOption||e.filterOption(t,n)}var RO=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},qO=1,XO=function(e){Ji(n,e);var t=function(e){var t=qf();return function(){var n,i=Gi(e);if(t){var r=Gi(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return Ui(this,n)}}(n);function n(e){var i;if(Vi(this,n),(i=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(e){i.controlRef=e},i.focusedOptionRef=null,i.getFocusedOptionRef=function(e){i.focusedOptionRef=e},i.menuListRef=null,i.getMenuListRef=function(e){i.menuListRef=e},i.inputRef=null,i.getInputRef=function(e){i.inputRef=e},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(e,t){var n=i.props,r=n.onChange,s=n.name;t.name=s,i.ariaOnChange(e,t),r(e,t)},i.setValue=function(e,t,n){var r=i.props,s=r.closeMenuOnSelect,o=r.isMulti,a=r.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:a}),s&&(i.setState({inputIsHiddenAfterUpdate:!o}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(e,{action:t,option:n})},i.selectOption=function(e){var t=i.props,n=t.blurInputOnSelect,r=t.isMulti,s=t.name,o=i.state.selectValue,a=r&&i.isOptionSelected(e,o),l=i.isOptionDisabled(e,o);if(a){var d=i.getOptionValue(e);i.setValue(o.filter(function(e){return i.getOptionValue(e)!==d}),"deselect-option",e)}else{if(l)return void i.ariaOnChange(e,{action:"select-option",option:e,name:s});r?i.setValue([].concat(c(o),[e]),"select-option",e):i.setValue(e,"select-option")}n&&i.blurInput()},i.removeValue=function(e){var t=i.props.isMulti,n=i.state.selectValue,r=i.getOptionValue(e),s=n.filter(function(e){return i.getOptionValue(e)!==r}),o=sf(t,s,s[0]||null);i.onChange(o,{action:"remove-value",removedValue:e}),i.focusInput()},i.clearValue=function(){var e=i.state.selectValue;i.onChange(sf(i.props.isMulti,[],null),{action:"clear",removedValues:e})},i.popValue=function(){var e=i.props.isMulti,t=i.state.selectValue,n=t[t.length-1],r=t.slice(0,t.length-1),s=sf(e,r,r[0]||null);n&&i.onChange(s,{action:"pop-value",removedValue:n})},i.getFocusedOptionId=function(e){return PO(i.state.focusableOptionsWithIds,e)},i.getFocusableOptionsWithIds=function(){return LO(QO(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n5||s>5}},i.onTouchEnd=function(e){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(e.target)&&i.menuListRef&&!i.menuListRef.contains(e.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(e){i.userIsDragging||i.onControlMouseDown(e)},i.onClearIndicatorTouchEnd=function(e){i.userIsDragging||i.onClearIndicatorMouseDown(e)},i.onDropdownIndicatorTouchEnd=function(e){i.userIsDragging||i.onDropdownIndicatorMouseDown(e)},i.handleInputChange=function(e){var t=i.props.inputValue,n=e.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(n,{action:"input-change",prevInputValue:t}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(e){i.props.onFocus&&i.props.onFocus(e),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(e){var t=i.props.inputValue;i.menuListRef&&i.menuListRef.contains(document.activeElement)?i.inputRef.focus():(i.props.onBlur&&i.props.onBlur(e),i.onInputChange("",{action:"input-blur",prevInputValue:t}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1}))},i.onOptionHover=function(e){if(!i.blockOptionHover&&i.state.focusedOption!==e){var t=i.getFocusableOptions().indexOf(e);i.setState({focusedOption:e,focusedOptionId:t>-1?i.getFocusedOptionId(e):null})}},i.shouldHideSelectedOptions=function(){return RO(i.props)},i.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),i.focus()},i.onKeyDown=function(e){var t=i.props,n=t.isMulti,r=t.backspaceRemovesValue,s=t.escapeClearsValue,o=t.inputValue,a=t.isClearable,l=t.isDisabled,d=t.menuIsOpen,u=t.onKeyDown,c=t.tabSelectsValue,h=t.openMenuOnFocus,m=i.state,p=m.focusedOption,f=m.focusedValue,O=m.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(i.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||o)return;i.focusValue("previous");break;case"ArrowRight":if(!n||o)return;i.focusValue("next");break;case"Delete":case"Backspace":if(o)return;if(f)i.removeValue(f);else{if(!r)return;n?i.popValue():a&&i.clearValue()}break;case"Tab":if(i.isComposing)return;if(e.shiftKey||!d||!c||!p||h&&i.isOptionSelected(p,O))return;i.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(d){if(!p)return;if(i.isComposing)return;i.selectOption(p);break}return;case"Escape":d?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:o}),i.onMenuClose()):a&&s&&i.clearValue();break;case" ":if(o)return;if(!d){i.openMenu("first");break}if(!p)return;i.selectOption(p);break;case"ArrowUp":d?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":d?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!d)return;i.focusOption("pageup");break;case"PageDown":if(!d)return;i.focusOption("pagedown");break;case"Home":if(!d)return;i.focusOption("first");break;case"End":if(!d)return;i.focusOption("last");break;default:return}e.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++qO),i.state.selectValue=Hp(e.value),e.menuIsOpen&&i.state.selectValue.length){var r=i.getFocusableOptionsWithIds(),s=i.buildFocusableOptions(),o=s.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=r,i.state.focusedOption=s[o],i.state.focusedOptionId=PO(r,s[o])}return i}return Bi(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Gp(this.menuListRef,this.focusedOptionRef),(vO()||wO())&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,i=t.menuIsOpen,r=this.state.isFocused;(r&&!n&&e.isDisabled||r&&i&&!e.menuIsOpen)&&this.focusInput(),r&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Gp(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,i=n.selectValue,r=n.isFocused,s=this.buildFocusableOptions(),o="first"===e?0:s.length-1;if(!this.props.isMulti){var a=s.indexOf(i[0]);a>-1&&(o=a)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:s[o],focusedOptionId:this.getFocusedOptionId(s[o])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,i=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(i);i||(r=-1);var s=n.length-1,o=-1;if(n.length){switch(e){case"previous":o=0===r?0:-1===r?s:r-1;break;case"next":r>-1&&r0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,i=this.getFocusableOptions();if(i.length){var r=0,s=i.indexOf(n);n||(s=-1),"up"===e?r=s>0?s-1:i.length-1:"down"===e?r=(s+1)%i.length:"pageup"===e?(r=s-t)<0&&(r=0):"pagedown"===e?(r=s+t)>i.length-1&&(r=i.length-1):"last"===e&&(r=i.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:i[r],focusedValue:null,focusedOptionId:this.getFocusedOptionId(i[r])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(AO):ve(ve({},AO),this.props.theme):AO}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,i=this.getClassNames,r=this.getValue,s=this.selectOption,o=this.setValue,a=this.props,l=a.isMulti,d=a.isRtl,u=a.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:i,getValue:r,hasValue:this.hasValue(),isMulti:l,isRtl:d,options:u,selectOption:s,selectProps:a,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return EO(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return CO(this.props,e,t)}},{key:"filterOption",value:function(e,t){return NO(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,i=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:i})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,i=e.inputId,r=e.inputValue,s=e.tabIndex,o=e.form,a=e.menuIsOpen,l=e.required,d=this.getComponents().Input,u=this.state,c=u.inputIsHidden,m=u.ariaSelection,p=this.commonProps,f=i||this.getElementId("input"),O=ve(ve(ve({"aria-autocomplete":"list","aria-expanded":a,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},a&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==m?void 0:m.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?h.createElement(d,Ba({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:f,innerRef:this.getInputRef,isDisabled:t,isHidden:c,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:o,type:"text",value:r},O)):h.createElement(sO,Ba({id:f,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Xp,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:o,value:""},O))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,i=t.MultiValueContainer,r=t.MultiValueLabel,s=t.MultiValueRemove,o=t.SingleValue,a=t.Placeholder,l=this.commonProps,d=this.props,u=d.controlShouldRenderValue,c=d.isDisabled,m=d.isMulti,p=d.inputValue,f=d.placeholder,O=this.state,_=O.selectValue,g=O.focusedValue,y=O.isFocused;if(!this.hasValue()||!u)return p?null:h.createElement(a,Ba({},l,{key:"placeholder",isDisabled:c,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),f);if(m)return _.map(function(t,o){var a=t===g,d="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return h.createElement(n,Ba({},l,{components:{Container:i,Label:r,Remove:s},isFocused:a,isDisabled:c,key:d,index:o,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(p)return null;var b=_[0];return h.createElement(o,Ba({},l,{data:b,isDisabled:c}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,r=n.isLoading,s=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||r)return null;var o={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return h.createElement(e,Ba({},t,{innerProps:o,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,r=n.isLoading,s=this.state.isFocused;if(!e||!r)return null;return h.createElement(e,Ba({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:s}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var i=this.commonProps,r=this.props.isDisabled,s=this.state.isFocused;return h.createElement(n,Ba({},i,{isDisabled:r,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,i=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return h.createElement(e,Ba({},t,{innerProps:r,isDisabled:n,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,i=t.GroupHeading,r=t.Menu,s=t.MenuList,o=t.MenuPortal,a=t.LoadingMessage,l=t.NoOptionsMessage,d=t.Option,u=this.commonProps,c=this.state.focusedOption,m=this.props,p=m.captureMenuScroll,f=m.inputValue,O=m.isLoading,_=m.loadingMessage,g=m.minMenuHeight,y=m.maxMenuHeight,b=m.menuIsOpen,v=m.menuPlacement,w=m.menuPosition,$=m.menuPortalTarget,M=m.menuShouldBlockScroll,k=m.menuShouldScrollIntoView,A=m.noOptionsMessage,S=m.onMenuScrollToTop,Y=m.onMenuScrollToBottom;if(!b)return null;var Q,T=function(t,n){var i=t.type,r=t.data,s=t.isDisabled,o=t.isSelected,a=t.label,l=t.value,m=c===r,p=s?void 0:function(){return e.onOptionHover(r)},f=s?void 0:function(){return e.selectOption(r)},O="".concat(e.getElementId("option"),"-").concat(n),_={id:O,onClick:f,onMouseMove:p,onMouseOver:p,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:o};return h.createElement(d,Ba({},u,{innerProps:_,data:r,isDisabled:s,isSelected:o,key:O,label:a,type:i,value:l,isFocused:m,innerRef:m?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())Q=this.getCategorizedOptions().map(function(t){if("group"===t.type){var r=t.data,s=t.options,o=t.index,a="".concat(e.getElementId("group"),"-").concat(o),l="".concat(a,"-heading");return h.createElement(n,Ba({},u,{key:a,data:r,options:s,Heading:i,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return T(e,"".concat(o,"-").concat(e.index))}))}if("option"===t.type)return T(t,"".concat(t.index))});else if(O){var L=_({inputValue:f});if(null===L)return null;Q=h.createElement(a,u,L)}else{var x=A({inputValue:f});if(null===x)return null;Q=h.createElement(l,u,x)}var P={minMenuHeight:g,maxMenuHeight:y,menuPlacement:v,menuPosition:w,menuShouldScrollIntoView:k},D=h.createElement(hf,Ba({},u,P),function(t){var n=t.ref,i=t.placerProps,o=i.placement,a=i.maxHeight;return h.createElement(r,Ba({},u,P,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:O,placement:o}),h.createElement(_O,{captureEnabled:p,onTopArrive:S,onBottomArrive:Y,lockEnabled:M},function(t){return h.createElement(s,Ba({},u,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:e.getElementId("listbox")},isLoading:O,maxHeight:a,focusedOption:c}),Q)}))});return $||"fixed"===w?h.createElement(o,Ba({},u,{appendTo:$,controlElement:this.controlRef,menuPlacement:v,menuPosition:w}),D):D}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,i=t.isDisabled,r=t.isMulti,s=t.name,o=t.required,a=this.state.selectValue;if(o&&!this.hasValue()&&!i)return h.createElement(yO,{name:s,onFocus:this.onValueInputFocus});if(s&&!i){if(r){if(n){var l=a.map(function(t){return e.getOptionValue(t)}).join(n);return h.createElement("input",{name:s,type:"hidden",value:l})}var d=a.length>0?a.map(function(t,n){return h.createElement("input",{key:"i-".concat(n),name:s,type:"hidden",value:e.getOptionValue(t)})}):h.createElement("input",{name:s,type:"hidden",value:""});return h.createElement("div",null,d)}var u=a[0]?this.getOptionValue(a[0]):"";return h.createElement("input",{name:s,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,i=t.focusedOption,r=t.focusedValue,s=t.isFocused,o=t.selectValue,a=this.getFocusableOptions();return h.createElement(Vf,Ba({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:i,focusedValue:r,isFocused:s,selectValue:o,focusableOptions:a,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,i=e.SelectContainer,r=e.ValueContainer,s=this.props,o=s.className,a=s.id,l=s.isDisabled,d=s.menuIsOpen,u=this.state.isFocused,c=this.commonProps=this.getCommonProps();return h.createElement(i,Ba({},c,{className:o,innerProps:{id:a,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:u}),this.renderLiveRegion(),h.createElement(t,Ba({},c,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:u,menuIsOpen:d}),h.createElement(r,Ba({},c,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),h.createElement(n,Ba({},c,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,i=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,s=t.ariaSelection,o=t.isFocused,a=t.prevWasFocused,l=t.instancePrefix,d=e.options,u=e.value,c=e.menuIsOpen,h=e.inputValue,m=e.isMulti,p=Hp(u),f={};if(n&&(u!==n.value||d!==n.options||c!==n.menuIsOpen||h!==n.inputValue)){var O=c?function(e,t){return TO(QO(e,t))}(e,p):[],_=c?LO(QO(e,p),"".concat(l,"-option")):[],g=i?function(e,t){var n=e.focusedValue,i=e.selectValue.indexOf(n);if(i>-1){if(t.indexOf(n)>-1)return n;if(i-1?n:t[0]}(t,O);f={selectValue:p,focusedOption:y,focusedOptionId:PO(_,y),focusableOptionsWithIds:_,focusedValue:g,clearFocusValueOnUpdate:!1}}var b=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},v=s,w=o&&a;return o&&!w&&(v={value:sf(m,p,p[0]||null),options:p,action:"initial-input-focus"},w=!a),"initial-input-focus"===(null==s?void 0:s.action)&&(v=null),ve(ve(ve({},f),b),{},{prevProps:e,ariaSelection:v,prevWasFocused:w})}}]),n}(h.Component);XO.defaultProps=SO;var IO=(0,h.forwardRef)(function(e,t){var n=Rf(e);return h.createElement(XO,Ba({ref:t},n))}),WO=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"];function HO(e){var t=e.defaultOptions,n=void 0!==t&&t,i=e.cacheOptions,r=void 0!==i&&i,s=e.loadOptions;e.options;var o=e.isLoading,a=void 0!==o&&o,d=e.onInputChange,u=e.filterOption,c=void 0===u?null:u,m=ap(e,WO),p=m.inputValue,f=(0,h.useRef)(void 0),O=(0,h.useRef)(!1),_=ji((0,h.useState)(Array.isArray(n)?n:void 0),2),g=_[0],y=_[1],b=ji((0,h.useState)(void 0!==p?p:""),2),v=b[0],w=b[1],$=ji((0,h.useState)(!0===n),2),M=$[0],k=$[1],A=ji((0,h.useState)(void 0),2),S=A[0],Y=A[1],Q=ji((0,h.useState)([]),2),T=Q[0],L=Q[1],x=ji((0,h.useState)(!1),2),P=x[0],D=x[1],j=ji((0,h.useState)({}),2),E=j[0],C=j[1],N=ji((0,h.useState)(void 0),2),R=N[0],q=N[1],X=ji((0,h.useState)(void 0),2),I=X[0],W=X[1];r!==I&&(C({}),W(r)),n!==R&&(y(Array.isArray(n)?n:void 0),q(n)),(0,h.useEffect)(function(){return O.current=!0,function(){O.current=!1}},[]);var H=(0,h.useCallback)(function(e,t){if(!s)return t();var n=s(e,t);n&&"function"==typeof n.then&&n.then(t,function(){return t()})},[s]);(0,h.useEffect)(function(){!0===n&&H(v,function(e){O.current&&(y(e||[]),k(!!f.current))})},[]);var Z=(0,h.useCallback)(function(e,t){var n=function(e,t,n){if(n){var i=n(e,t);if("string"==typeof i)return i}return e}(e,t,d);if(!n)return f.current=void 0,w(""),Y(""),L([]),k(!1),void D(!1);if(r&&E[n])w(n),Y(n),L(E[n]),k(!1),D(!1);else{var i=f.current={};w(n),k(!0),D(!S),H(n,function(e){O&&i===f.current&&(f.current=void 0,k(!1),Y(n),L(e||[]),D(!1),C(e?ve(ve({},E),{},l({},n,e)):E))})}},[r,H,S,E,d]),z=P?[]:v&&S?T:g||[];return ve(ve({},m),{},{options:z,isLoading:M||a,onInputChange:Z,filterOption:c})}var ZO=(0,h.forwardRef)(function(e,t){var n=Rf(HO(e));return h.createElement(XO,Ba({ref:t},n))}),zO=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],VO=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),i=String(t.getOptionValue(e)).toLowerCase(),r=String(t.getOptionLabel(e)).toLowerCase();return i===n||r===n},FO={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,i){return!(!e||t.some(function(t){return VO(e,t,i)})||n.some(function(t){return VO(e,t,i)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};var BO=(0,h.forwardRef)(function(e,t){var n=function(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,i=e.createOptionPosition,r=void 0===i?"last":i,s=e.formatCreateLabel,o=void 0===s?FO.formatCreateLabel:s,a=e.isValidNewOption,l=void 0===a?FO.isValidNewOption:a,d=e.getNewOptionData,u=void 0===d?FO.getNewOptionData:d,m=e.onCreateOption,p=e.options,f=void 0===p?[]:p,O=e.onChange,_=ap(e,zO),g=_.getOptionValue,y=void 0===g?MO:g,b=_.getOptionLabel,v=void 0===b?$O:b,w=_.inputValue,$=_.isLoading,M=_.isMulti,k=_.value,A=_.name,S=(0,h.useMemo)(function(){return l(w,Hp(k),f,{getOptionValue:y,getOptionLabel:v})?u(w,o(w)):void 0},[o,u,v,y,w,l,f,k]),Y=(0,h.useMemo)(function(){return!n&&$||!S?f:"first"===r?[S].concat(c(f)):[].concat(c(f),[S])},[n,r,$,S,f]),Q=(0,h.useCallback)(function(e,t){if("select-option"!==t.action)return O(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==S)O(e,t);else if(m)m(w);else{var i=u(w,w),r={action:"create-option",name:A,option:i};O(sf(M,[].concat(c(Hp(k)),[i]),i),r)}},[u,w,M,A,S,m,O,k]);return ve(ve({},_),{},{options:Y,onChange:Q})}(Rf(HO(e)));return h.createElement(XO,Ba({ref:t},n))}),UO=BO;const GO=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ti(xi().mark(function t(){var n,i,r,s,o,a,l,d,u,c,h=arguments;return xi().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=h.length>0&&void 0!==h[0]?h[0]:"",a={_wpnonce:null==e?void 0:e._wpnonce,action:"pods_relationship",method:"select2",pod_name:null!==(n=null==e?void 0:e.pod_name)&&void 0!==n?n:"",field_name:null!==(i=null==e?void 0:e.field_name)&&void 0!==i?i:"",uri_hash:null!==(r=null==e?void 0:e.uri_hash)&&void 0!==r?r:"",id:null!==(s=null==e?void 0:e.id)&&void 0!==s?s:0,query:o},l=new FormData,Object.keys(a).forEach(function(e){l.append(e,a[e])}),t.prev=1,t.next=2,fetch(ajaxurl+"?pods_ajax=1",{method:"POST",body:l});case 2:return d=t.sent,t.next=3,d.json();case 3:if(null!=(u=t.sent)&&u.results){t.next=4;break}throw new Error("Invalid response.");case 4:return c=u.results.map(function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id}}),t.abrupt("return",c);case 5:throw t.prev=5,t.catch(1);case 6:case"end":return t.stop()}},t,null,[[1,5]])}))};var KO="/home/runner/work/pods-private/pods-private/ui/js/dfv/src/fields/pick/full-select.js",JO=void 0;function e_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function t_(e){for(var t=1;t1?"".concat(f,"[").concat(r,"]"):f,_=t.id?t.id:"pods-form-ui-".concat(n);return 1n||(q(t),I(!0))}else q(void 0)};(0,h.useEffect)(function(){var e=function(e){if(e.origin===window.location.origin&&"PODS_MESSAGE"===e.data.type&&e.data.data){J(!1);var t=e.data.data,n=void 0===t?{}:t;ie(function(e){var t;return[].concat(c(e),[A_(A_({},n),{},{id:null===(t=n.id)||void 0===t?void 0:t.toString()})])}),se([].concat(c(null!=V?V:[]),[null==n?void 0:n.id.toString()]))}};return K?window.addEventListener("message",e,!1):window.removeEventListener("message",e,!1),function(){window.removeEventListener("message",e,!1)}},[K]);return m().createElement(m().Fragment,null,function(){if(!U&&"radio"===Q)return m().createElement(m_,{htmlAttributes:r,name:O,value:null!=V?V:"",setValue:se,options:ne,readOnly:Ra(s),__self:M_,__source:{fileName:$_,lineNumber:308,columnNumber:5}});if(B&&"checkbox"===Q||U&&"checkbox"===S){var e=V;return U&&(e=Array.isArray(V)?V:"string"==typeof V?(null!=V?V:"").split(","):[]),m().createElement(y_,{htmlAttributes:r,name:O,value:e,isMulti:U,setValue:se,options:ne,readOnly:Ra(s),__self:M_,__source:{fileName:$_,lineNumber:336,columnNumber:5}})}var t=r.name||O;if(B&&"list"===Q||U&&"list"===S||B&&"autocomplete"===Q||U&&"autocomplete"===S){var i=B&&"list"===Q||U&&"list"===S,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return[];if(!n){var i=t.find(function(t){var n;return(null==t||null===(n=t.id)||void 0===n?void 0:n.toString())===e.toString()});return[{label:null==i?void 0:i.name,value:null==i?void 0:i.id.toString()}]}return(Array.isArray(e)?e:e.split(",")).map(function(e){var n=t.find(function(t){var n;return(null==t||null===(n=t.id)||void 0===n?void 0:n.toString())===e.toString()});return n?{label:null==n?void 0:n.name,value:null==n?void 0:n.id.toString()}:null}).filter(function(e){return null!==e})}(V,ne,U),a=ne.map(function(e){var t,n;return{label:null!==(t=e.name)&&void 0!==t?t:e.label,value:null!==(n=e.id)&&void 0!==n?n:e.collection}});return m().createElement(m().Fragment,null,m().createElement(s_,{isTaggable:E,ajaxData:n,shouldRenderValue:!i,formattedOptions:a,value:U?o:o[0],setValue:se,addNewItem:function(e){ie(function(t){var n=t.map(function(e){return e.id}),i=c(t);return(U?e:[e]).forEach(function(e){null!=e&&e.value&&(n.includes(null==e?void 0:e.value)||i.push({id:e.value,name:e.label}))}),i}),se(null===e?"":U?e.map(function(e){return e.value}):e.value)},placeholder:F,isMulti:U,isClearable:!E&&!Ra(g),isReadOnly:Ra(s),__self:M_,__source:{fileName:$_,lineNumber:409,columnNumber:6}}),i?m().createElement(_h,{fieldName:O,value:o,setValue:se,fieldItemData:ne,setFieldItemData:ie,isMulti:U,limit:parseInt(x,10)||0,defaultIcon:y,showIcon:Ra(D),showViewLink:Ra(j),showEditLink:Ra(P),editIframeTitle:w,readOnly:Ra(s),__self:M_,__source:{fileName:$_,lineNumber:424,columnNumber:7}}):null,o.map(function(e,n){return m().createElement("input",{name:"".concat(t,"[").concat(n,"]"),key:"".concat(O,"-").concat(e.value),type:"hidden",value:e.value,__self:M_,__source:{fileName:$_,lineNumber:442,columnNumber:7}})}))}return m().createElement(d_,{htmlAttributes:r,name:O,value:S_(V,U),setValue:function(e){return se(e)},options:ne,isMulti:U,readOnly:Ra(s),__self:M_,__source:{fileName:$_,lineNumber:454,columnNumber:4}})}(),$&&b&&!Ra(s)?m().createElement(aa.Button,{className:"pods-related-add-new pods-modal",onClick:function(){return J(!0)},isSecondary:!0,"aria-label":(0,zi.__)("Create and add a new item to this list","pods"),__self:M_,__source:{fileName:$_,lineNumber:471,columnNumber:5}},k):null,K?m().createElement(th,{title:v,iframeSrc:b,onClose:function(){return J(!1)},__self:M_,__source:{fileName:$_,lineNumber:482,columnNumber:5}}):null)};Y_.propTypes=A_(A_({},hl),{},{podType:Hi().string,podName:Hi().string,allPodValues:Hi().object,value:Hi().oneOfType([Hi().arrayOf(Hi().oneOfType([Hi().string,Hi().number])),Hi().string,Hi().number])});const Q_=Y_;function T_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function L_(e){for(var t=1;t>1;if(e=V_[i]))return!0;t=i+1}if(t==n)return!1}}function B_(e){return e>=127462&&e<=127487}(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let t=0,n=0;t=0&&B_(J_(e,i));)n++,i-=2;if(n%2==0)break;t+=2}}}return t}function K_(e,t,n){for(;t>1;){let i=G_(e,t-2,n);if(i=56320&&e<57344}function tg(e){return e>=55296&&e<56320}function ng(e){return e<65536?1:2}class ig{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=hg(this,e,t);let i=[];return this.decompose(0,e,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(t,this.length,i,1),sg.from(i,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=hg(this,e,t);let n=[];return this.decompose(e,t,n,0),sg.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),i=new lg(this),r=new lg(e);for(let e=t,s=t;;){if(i.next(e),r.next(e),e=0,i.lineBreak!=r.lineBreak||i.done!=r.done||i.value!=r.value)return!1;if(s+=i.value.length,i.done||s>=n)return!0}}iter(e=1){return new lg(this,e)}iterRange(e,t=this.length){return new dg(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let i=this.line(e).from;n=this.iterRange(i,Math.max(i,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new ug(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new rg(e):sg.from(rg.split(e,[])):ig.empty}}class rg extends ig{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,i){for(let r=0;;r++){let s=this.text[r],o=i+s.length;if((t?n:o)>=e)return new cg(i,o,n,s);i=o+1,n++}}decompose(e,t,n,i){let r=e<=0&&t>=this.length?this:new rg(ag(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&i){let e=n.pop(),t=og(r.text,e.text.slice(),0,r.length);if(t.length<=32)n.push(new rg(t,e.length+r.length));else{let e=t.length>>1;n.push(new rg(t.slice(0,e)),new rg(t.slice(e)))}}else n.push(r)}replace(e,t,n){if(!(n instanceof rg))return super.replace(e,t,n);[e,t]=hg(this,e,t);let i=og(this.text,og(n.text,ag(this.text,0,e)),t),r=this.length+n.length-(t-e);return i.length<=32?new rg(i,r):sg.from(rg.split(i,[]),r)}sliceString(e,t=this.length,n="\n"){[e,t]=hg(this,e,t);let i="";for(let r=0,s=0;r<=t&&se&&s&&(i+=n),er&&(i+=o.slice(Math.max(0,e-r),t-r)),r=a+1}return i}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],i=-1;for(let r of e)n.push(r),i+=r.length+1,32==n.length&&(t.push(new rg(n,i)),n=[],i=-1);return i>-1&&t.push(new rg(n,i)),t}}class sg extends ig{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,n,i){for(let r=0;;r++){let s=this.children[r],o=i+s.length,a=n+s.lines-1;if((t?a:o)>=e)return s.lineInner(e,t,n,i);i=o+1,n=a+1}}decompose(e,t,n,i){for(let r=0,s=0;s<=t&&r=s){let r=i&((s<=e?1:0)|(a>=t?2:0));s>=e&&a<=t&&!r?n.push(o):o.decompose(e-s,t-s,n,r)}s=a+1}}replace(e,t,n){if([e,t]=hg(this,e,t),n.lines=r&&t<=o){let a=s.replace(e-r,t-r,n),l=this.lines-s.lines+a.lines;if(a.lines>4&&a.lines>l>>6){let r=this.children.slice();return r[i]=a,new sg(r,this.length-(t-e)+n.length)}return super.replace(r,o,a)}r=o+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){[e,t]=hg(this,e,t);let i="";for(let r=0,s=0;re&&r&&(i+=n),es&&(i+=o.sliceString(e-s,t-s,n)),s=a+1}return i}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof sg))return 0;let n=0,[i,r,s,o]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=t,r+=t){if(i==s||r==o)return n;let a=this.children[i],l=e.children[r];if(a!=l)return n+a.scanIdentical(l,t);n+=a.length+1}}static from(e,t=e.reduce((e,t)=>e+t.length+1,-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new rg(n,t)}let i=Math.max(32,n>>5),r=i<<1,s=i>>1,o=[],a=0,l=-1,d=[];function u(e){let t;if(e.lines>r&&e instanceof sg)for(let t of e.children)u(t);else e.lines>s&&(a>s||!a)?(c(),o.push(e)):e instanceof rg&&a&&(t=d[d.length-1])instanceof rg&&e.lines+t.lines<=32?(a+=e.lines,l+=e.length+1,d[d.length-1]=new rg(t.text.concat(e.text),t.length+1+e.length)):(a+e.lines>i&&c(),a+=e.lines,l+=e.length+1,d.push(e))}function c(){0!=a&&(o.push(1==d.length?d[0]:sg.from(d,l)),l=-1,a=d.length=0)}for(let t of e)u(t);return c(),1==o.length?o[0]:new sg(o,t)}}function og(e,t,n=0,i=1e9){for(let r=0,s=0,o=!0;s=n&&(l>i&&(a=a.slice(0,i-r)),r0?1:(e instanceof rg?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,i=this.nodes[n],r=this.offsets[n],s=r>>1,o=i instanceof rg?i.text.length:i.children.length;if(s==(t>0?o:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&r)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(i instanceof rg){let r=i.text[s+(t<0?-1:0)];if(this.offsets[n]+=t,r.length>Math.max(0,e))return this.value=0==e?r:t>0?r.slice(e):r.slice(0,r.length-e),this;e-=r.length}else{let r=i.children[s+(t<0?-1:0)];e>r.length?(e-=r.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(r),this.offsets.push(t>0?1:(r instanceof rg?r.text.length:r.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class dg{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new lg(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*t,this.value=i.length<=n?i:t<0?i.slice(i.length-n):i.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class ug{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:i}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(ig.prototype[Symbol.iterator]=function(){return this.iter()},lg.prototype[Symbol.iterator]=dg.prototype[Symbol.iterator]=ug.prototype[Symbol.iterator]=function(){return this});class cg{constructor(e,t,n,i){this.from=e,this.to=t,this.number=n,this.text=i}get length(){return this.to-this.from}}function hg(e,t,n){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,n))]}function mg(e,t,n=!0,i=!0){return U_(e,t,n,i)}function pg(e,t){let n=e.charCodeAt(t);if(!(i=n,i>=55296&&i<56320&&t+1!=e.length))return n;var i;let r=e.charCodeAt(t+1);return function(e){return e>=56320&&e<57344}(r)?r-56320+(n-55296<<10)+65536:n}function fg(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function Og(e){return e<65536?1:2}const _g=/\r\n?|\n/;var gg=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(gg||(gg={}));class yg{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return r+(e-i);r+=o}else{if(n!=gg.Simple&&l>=e&&(n==gg.TrackDel&&ie||n==gg.TrackBefore&&ie))return null;if(l>e||l==e&&t<0&&!o)return e==i||t<0?r:r+a;r+=a}i=l}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return r}touchesRange(e,t=e){for(let n=0,i=0;n=0&&i<=t&&r>=e)return!(it)||"cover";i=r}return!1}toString(){let e="";for(let t=0;t=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw new RangeError("Invalid JSON representation of ChangeDesc");return new yg(e)}static create(e){return new yg(e)}}class bg extends yg{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return $g(this,(t,n,i,r,s)=>e=e.replace(i,i+(n-t),s),!1),e}mapDesc(e,t=!1){return Mg(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,r=0;i=0){t[i]=o,t[i+1]=s;let a=i>>1;for(;n.length0&&wg(n,t,r.text),r.forward(e),o+=e}let l=e[s++];for(;o>1].toJSON()))}return e}static of(e,t,n){let i=[],r=[],s=0,o=null;function a(e=!1){if(!e&&!i.length)return;so||e<0||o>t)throw new RangeError(`Invalid change range ${e} to ${o} (in doc of length ${t})`);let u=d?"string"==typeof d?ig.of(d.split(n||_g)):d:ig.empty,c=u.length;if(e==o&&0==c)return;es&&vg(i,e-s,-1),vg(i,o-e,c),wg(r,i,u),s=o}}(e),a(!o),o}static empty(e){return new bg(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;it&&"string"!=typeof e))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==r.length)t.push(r[0],0);else{for(;n.length=0&&n<=0&&n==e[r+1]?e[r]+=t:r>=0&&0==t&&0==e[r]?e[r+1]+=n:i?(e[r]+=t,e[r+1]+=n):e.push(t,n)}function wg(e,t,n){if(0==n.length)return;let i=t.length-2>>1;if(i>1])),!(n||o==e.sections.length||e.sections[o+1]<0);)a=e.sections[o++],l=e.sections[o++];t(r,d,s,u,c),r=d,s=u}}}function Mg(e,t,n,i=!1){let r=[],s=i?[]:null,o=new Ag(e),a=new Ag(t);for(let e=-1;;){if(o.done&&a.len||a.done&&o.len)throw new Error("Mismatched change set lengths");if(-1==o.ins&&-1==a.ins){let e=Math.min(o.len,a.len);vg(r,e,-1),o.forward(e),a.forward(e)}else if(a.ins>=0&&(o.ins<0||e==o.i||0==o.off&&(a.len=0&&e=0)){if(o.done&&a.done)return s?bg.createSet(r,s):yg.create(r);throw new Error("Mismatched change set lengths")}{let t=0,n=o.len;for(;n;)if(-1==a.ins){let e=Math.min(n,a.len);t+=e,n-=e,a.forward(e)}else{if(!(0==a.ins&&a.lent||o.ins>=0&&o.len>t)&&(e||i.length>n),s.forward2(t),o.forward(t)}}else vg(i,0,o.ins,e),r&&wg(r,i,o.text),o.next()}}class Ag{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?ig.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?ig.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Sg{constructor(e,t,n,i){this.from=e,this.to=t,this.flags=n,this.goalColumn=i}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get undirectional(){return(64&this.flags)>0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}map(e,t=-1){let n,i;return this.empty?n=i=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),n==this.from&&i==this.to?this:new Sg(n,i,this.flags,this.goalColumn)}extend(e,t=e,n=0){if(e<=this.anchor&&t>=this.anchor)return Yg.range(e,t,void 0,void 0,n);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return Yg.range(this.anchor,i,void 0,void 0,n)}eq(e,t=!1){return!(this.anchor!=e.anchor||this.head!=e.head||this.goalColumn!=e.goalColumn||t&&this.empty&&this.assoc!=e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return Yg.range(e.anchor,e.head)}static create(e,t,n,i){return new Sg(e,t,n,i)}}class Yg{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:Yg.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;ne.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Yg(e.ranges.map(e=>Sg.fromJSON(e)),e.main)}static single(e,t=e){return new Yg([Yg.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,i=0;ie.from-t.from),t=e.indexOf(n);for(let n=1;ni.head?Yg.range(o,s):Yg.range(s,o))}}return new Yg(e,t)}}function Qg(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let Tg=0;class Lg{constructor(e,t,n,i,r){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=i,this.id=Tg++,this.default=e([]),this.extensions="function"==typeof r?r(this):r}get reader(){return this}static define(e={}){return new Lg(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:xg),!!e.static,e.enables)}of(e){return new Pg([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Pg(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Pg(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],n=>t(n.field(e)))}}function xg(e,t){return e==t||e.length==t.length&&e.every((e,n)=>e===t[n])}class Pg{constructor(e,t,n,i){this.dependencies=e,this.facet=t,this.type=n,this.value=i,this.id=Tg++}dynamicSlot(e){var t;let n=this.value,i=this.facet.compareInput,r=this.id,s=e[r]>>1,o=2==this.type,a=!1,l=!1,d=[];for(let n of this.dependencies)"doc"==n?a=!0:"selection"==n?l=!0:1&(null!==(t=e[n.id])&&void 0!==t?t:1)||d.push(e[n.id]);return{create:e=>(e.values[s]=n(e),1),update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||jg(e,d)){let t=n(e);if(o?!Dg(t,e.values[s],i):!i(t,e.values[s]))return e.values[s]=t,1}return 0},reconfigure:(e,t)=>{let a,l=t.config.address[r];if(null!=l){let r=Ug(t,l);if(this.dependencies.every(n=>n instanceof Lg?t.facet(n)===e.facet(n):!(n instanceof Ng)||t.field(n,!1)==e.field(n,!1))||(o?Dg(a=n(e),r,i):i(a=n(e),r)))return e.values[s]=r,0}else a=n(e);return e.values[s]=a,1}}}get extension(){return this}}function Dg(e,t,n){if(e.length!=t.length)return!1;for(let i=0;ie[t.id]),r=n.map(e=>e.type),s=i.filter(e=>!(1&e)),o=e[t.id]>>1;function a(e){let n=[];for(let t=0;te===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Cg).find(e=>e.field==this);return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let i=e.values[t],r=this.updateF(i,n);return this.compareF(i,r)?0:(e.values[t]=r,1)},reconfigure:(e,n)=>{let i,r=e.facet(Cg),s=n.facet(Cg);return(i=r.find(e=>e.field==this))&&i!=s.find(e=>e.field==this)?(e.values[t]=i.create(e),1):null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}}init(e){return[this,Cg.of({field:this,create:e})]}get extension(){return this}}const Rg=4,qg=3,Xg=2,Ig=1;function Wg(e){return t=>new Zg(t,e)}const Hg={highest:Wg(0),high:Wg(Ig),default:Wg(Xg),low:Wg(qg),lowest:Wg(Rg)};class Zg{constructor(e,t){this.inner=e,this.prec=t}get extension(){return this}}class zg{of(e){return new Vg(this,e)}reconfigure(e){return zg.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Vg{constructor(e,t){this.compartment=e,this.inner=t}get extension(){return this}}class Fg{constructor(e,t,n,i,r,s){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=i,this.staticValues=r,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let i=[],r=Object.create(null),s=new Map;for(let n of function(e,t,n){let i=[[],[],[],[],[]],r=new Map;function s(e,o){let a=r.get(e);if(null!=a){if(a<=o)return;let t=i[a].indexOf(e);t>-1&&i[a].splice(t,1),e instanceof Vg&&n.delete(e.compartment)}if(r.set(e,o),Array.isArray(e))for(let t of e)s(t,o);else if(e instanceof Vg){if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");let i=t.get(e.compartment)||e.inner;n.set(e.compartment,i),s(i,o)}else if(e instanceof Zg)s(e.inner,e.prec);else if(e instanceof Ng)i[o].push(e),e.provides&&s(e.provides,o);else if(e instanceof Pg)i[o].push(e),e.facet.extensions&&s(e.facet.extensions,Xg);else{let t=e.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${e}).`);if(t==e)throw new Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(t,o)}}return s(e,Xg),i.reduce((e,t)=>e.concat(t))}(e,t,s))n instanceof Ng?i.push(n):(r[n.facet.id]||(r[n.facet.id]=[])).push(n);let o=Object.create(null),a=[],l=[];for(let e of i)o[e.id]=l.length<<1,l.push(t=>e.slot(t));let d=null==n?void 0:n.config.facets;for(let e in r){let t=r[e],i=t[0].facet,s=d&&d[e]||[];if(t.every(e=>0==e.type))if(o[i.id]=a.length<<1|1,xg(s,t))a.push(n.facet(i));else{let e=i.combine(t.map(e=>e.value));a.push(n&&i.compare(e,n.facet(i))?n.facet(i):e)}else{for(let e of t)0==e.type?(o[e.id]=a.length<<1|1,a.push(e.value)):(o[e.id]=l.length<<1,l.push(t=>e.dynamicSlot(t)));o[i.id]=l.length<<1,l.push(e=>Eg(e,i,t))}}let u=l.map(e=>e(o));return new Fg(e,s,u,o,a,r)}}function Bg(e,t){if(1&t)return 2;let n=t>>1,i=e.status[n];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;e.status[n]=4;let r=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|r}function Ug(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const Gg=Lg.define(),Kg=Lg.define({combine:e=>e.some(e=>e),static:!0}),Jg=Lg.define({combine:e=>e.length?e[0]:void 0,static:!0}),ey=Lg.define(),ty=Lg.define(),ny=Lg.define(),iy=Lg.define({combine:e=>!!e.length&&e[0]});class ry{constructor(e,t){this.type=e,this.value=t}static define(){return new sy}}class sy{of(e){return new ry(this,e)}}class oy{constructor(e){this.map=e}of(e){return new ay(this,e)}}class ay{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new ay(this.type,t)}is(e){return this.type==e}static define(e={}){return new oy(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let i of e){let e=i.map(t);e&&n.push(e)}return n}}ay.reconfigure=ay.define(),ay.appendConfig=ay.define();class ly{constructor(e,t,n,i,r,s){this.startState=e,this.changes=t,this.selection=n,this.effects=i,this.annotations=r,this.scrollIntoView=s,this._doc=null,this._state=null,n&&Qg(n,t.newLength),r.some(e=>e.type==ly.time)||(this.annotations=r.concat(ly.time.of(Date.now())))}static create(e,t,n,i,r,s){return new ly(e,t,n,i,r,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ly.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function dy(e,t){let n=[];for(let i=0,r=0;;){let s,o;if(i=e[i]))s=e[i++],o=e[i++];else{if(!(r=0;r--){let s=n[r](e);s&&Object.keys(s).length&&(i=uy(i,cy(t,s,e.changes.newLength),!0))}return i==e?e:ly.create(t,e.changes,e.selection,i.effects,i.annotations,i.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let i of t.facet(ey)){let t=i(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:dy(n,t))}if(!0!==n){let i,r;if(!1===n)r=e.changes.invertedDesc,i=bg.empty(t.doc.length);else{let t=e.changes.filter(n);i=t.changes,r=t.filtered.mapDesc(t.changes).invertedDesc}e=ly.create(t,i,e.selection&&e.selection.map(r),ay.mapEffects(e.effects,r),e.annotations,e.scrollIntoView)}let i=t.facet(ty);for(let n=i.length-1;n>=0;n--){let r=i[n](e);e=r instanceof ly?r:Array.isArray(r)&&1==r.length&&r[0]instanceof ly?r[0]:hy(t,py(r),!1)}return e}(r):r)}ly.time=ry.define(),ly.userEvent=ry.define(),ly.addToHistory=ry.define(),ly.remote=ry.define();const my=[];function py(e){return null==e?my:Array.isArray(e)?e:[e]}var fy=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(fy||(fy={}));const Oy=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let _y;try{_y=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}function gy(e){return t=>{if(!/\S/.test(t))return fy.Space;if(function(e){if(_y)return _y.test(e);for(let t=0;t""&&(n.toUpperCase()!=n.toLowerCase()||Oy.test(n)))return!0}return!1}(t))return fy.Word;for(let n=0;n-1)return fy.Word;return fy.Other}}class yy{constructor(e,t,n,i,r,s){this.config=e,this.doc=t,this.selection=n,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=r,s&&(s._state=this);for(let e=0;er.set(t,e)),n=null),r.set(t.value.compartment,t.value.extension)):t.is(ay.reconfigure)?(n=null,i=t.value):t.is(ay.appendConfig)&&(n=null,i=py(i).concat(t.value));if(n)t=e.startState.values.slice();else{n=Fg.resolve(i,r,this),t=new yy(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values}let s=e.startState.facet(Kg)?e.newSelection:e.newSelection.asSingle();new yy(n,e.newDoc,s,t,(t,n)=>n.update(t,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:Yg.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),i=this.changes(n.changes),r=[n.range],s=py(n.effects);for(let n=1;nr.spec.fromJSON(s,e)))}return yy.create({doc:e.doc,selection:Yg.fromJSON(e.selection),extensions:t.extensions?i.concat([t.extensions]):i})}static create(e={}){let t=Fg.resolve(e.extensions||[],new Map),n=e.doc instanceof ig?e.doc:ig.of((e.doc||"").split(t.staticFacet(yy.lineSeparator)||_g)),i=e.selection?e.selection instanceof Yg?e.selection:Yg.single(e.selection.anchor,e.selection.head):Yg.single(0);return Qg(i,n.length),t.staticFacet(Kg)||(i=i.asSingle()),new yy(t,n,i,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(yy.tabSize)}get lineBreak(){return this.facet(yy.lineSeparator)||"\n"}get readOnly(){return this.facet(iy)}phrase(e,...t){for(let t of this.facet(yy.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(e,n)=>{if("$"==n)return"$";let i=+(n||1);return!i||i>t.length?e:t[i-1]})),e}languageDataAt(e,t,n=-1){let i=[];for(let r of this.facet(Gg))for(let s of r(this,t,n))Object.prototype.hasOwnProperty.call(s,e)&&i.push(s[e]);return i}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return gy(t.length?t[0]:"")}wordAt(e){let{text:t,from:n,length:i}=this.doc.lineAt(e),r=this.charCategorizer(e),s=e-n,o=e-n;for(;s>0;){let e=mg(t,s,!1);if(r(t.slice(e,s))!=fy.Word)break;s=e}for(;oe.length?e[0]:4}),yy.lineSeparator=Jg,yy.readOnly=iy,yy.phrases=Lg.define({compare(e,t){let n=Object.keys(e),i=Object.keys(t);return n.length==i.length&&n.every(n=>e[n]==t[n])}}),yy.languageData=Gg,yy.changeFilter=ey,yy.transactionFilter=ty,yy.transactionExtender=ny,zg.reconfigure=ay.define();class vy{eq(e){return this==e}range(e,t=e){return $y.create(e,t,this)}}function wy(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}vy.prototype.startSide=vy.prototype.endSide=0,vy.prototype.point=!1,vy.prototype.mapMode=gg.TrackDel;class $y{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new $y(e,t,n)}}function My(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class ky{constructor(e,t,n,i){this.from=e,this.to=t,this.value=n,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,i=0){let r=n?this.to:this.from;for(let s=i,o=r.length;;){if(s==o)return s;let i=s+o>>1,a=r[i]-e||(n?this.value[i].endSide:this.value[i].startSide)-t;if(i==s)return a>=0?s:o;a>=0?o=i:s=i+1}}between(e,t,n,i){for(let r=this.findIndex(t,-1e9,!0),s=this.findIndex(n,1e9,!1,r);rd||l==d&&u.startSide>0&&u.endSide<=0)continue;(d-l||u.endSide-u.startSide)<0||(s<0&&(s=l),u.point&&(o=Math.max(o,d-l)),n.push(u),i.push(l-s),r.push(d-s))}return{mapped:n.length?new ky(i,r,n,o):null,pos:s}}}class Ay{constructor(e,t,n,i){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=i}static create(e,t,n,i){return new Ay(e,t,n,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:i=0,filterTo:r=this.length}=e,s=e.filter;if(0==t.length&&!s)return this;if(n&&(t=t.slice().sort(My)),this.isEmpty)return t.length?Ay.of(t):this;let o=new Qy(this,null,-1).goto(0),a=0,l=[],d=new Sy;for(;o.value||a=0){let e=t[a++];d.addInner(e.from,e.to,e.value)||l.push(e)}else 1==o.rangeIndex&&o.chunkIndexthis.chunkEnd(o.chunkIndex)||ro.to||r=r&&e<=r+s.length&&!1===s.between(r,e-r,t-r,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return Ty.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Ty.from(e).goto(t)}static compare(e,t,n,i,r=-1){let s=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r),o=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r),a=Yy(s,o,n),l=new xy(s,a,r),d=new xy(o,a,r);n.iterGaps((e,t,n)=>Py(l,e,d,t,n,i)),n.empty&&0==n.length&&Py(l,0,d,0,0,i)}static eq(e,t,n=0,i){null==i&&(i=999999999);let r=e.filter(e=>!e.isEmpty&&t.indexOf(e)<0),s=t.filter(t=>!t.isEmpty&&e.indexOf(t)<0);if(r.length!=s.length)return!1;if(!r.length)return!0;let o=Yy(r,s),a=new xy(r,o,0).goto(n),l=new xy(s,o,0).goto(n);for(;;){if(a.to!=l.to||!Dy(a.active,l.active)||a.point&&(!l.point||!wy(a.point,l.point)))return!1;if(a.to>i)return!0;a.next(),l.next()}}static spans(e,t,n,i,r=-1){let s=new xy(e,null,r).goto(t),o=t,a=s.openStart;for(;;){let e=Math.min(s.to,n);if(s.point){let n=s.activeForPoint(s.to),r=s.pointFromo&&(i.span(o,e,s.active,a),a=s.openEnd(e));if(s.to>n)return a+(s.point&&s.to>n?1:0);o=s.to,s.next()}}static of(e,t=!1){let n=new Sy;for(let i of e instanceof $y?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(My);t=i}return e}(e):e)n.add(i.from,i.to,i.value);return n.finish()}static join(e){if(!e.length)return Ay.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let i=e[n];i!=Ay.empty;i=i.nextLayer)t=new Ay(i.chunkPos,i.chunk,t,Math.max(i.maxPoint,t.maxPoint));return t}}Ay.empty=new Ay([],[],null,-1),Ay.empty.nextLayer=Ay.empty;class Sy{finishChunk(e){this.chunks.push(new ky(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new Sy)).add(e,t,n)}addInner(e,t,n){let i=e-this.lastTo||n.startSide-this.last.endSide;if(i<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(i<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(Ay.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=Ay.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function Yy(e,t,n){let i=new Map;for(let t of e)for(let e=0;e=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=n&&i.push(new Qy(s,t,n,r));return 1==i.length?i[0]:new Ty(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)Ly(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)Ly(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Ly(this.heap,0)}}}function Ly(e,t){for(let n=e[t];;){let i=1+(t<<1);if(i>=e.length)break;let r=e[i];if(i+1=0&&(r=e[i+1],i++),n.compare(r)<0)break;e[i]=n,e[t]=r,t=i}}class xy{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Ty.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){jy(this.active,e),jy(this.activeTo,e),jy(this.activeRank,e),this.minActive=Cy(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:i,rank:r}=this.cursor;for(;t0;)t++;Ey(this.active,t,n),Ey(this.activeTo,t,i),Ey(this.activeRank,t,r),e&&Ey(e,t,this.cursor.from),this.minActive=Cy(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&jy(n,i)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from=0&&n[t]=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function Py(e,t,n,i,r,s){e.goto(t),n.goto(i);let o=i+r,a=i,l=i-t,d=!!s.boundChange;for(let t=!1;;){let i=e.to+l-n.to,r=i||e.endSide-n.endSide,u=r<0?e.to+l:n.to,c=Math.min(u,o);if(e.point||n.point?(e.point&&n.point&&wy(e.point,n.point)&&Dy(e.activeForPoint(e.to),n.activeForPoint(n.to))||s.comparePoint(a,c,e.point,n.point),t=!1):(t&&s.boundChange(a),c>a&&!Dy(e.active,n.active)&&s.compareRange(a,c,e.active,n.active),d&&co)break;a=u,r<=0&&e.next(),r>=0&&n.next()}}function Dy(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;n--)e[n+1]=e[n];e[t]=n}function Cy(e,t){let n=-1,i=1e9;for(let r=0;r=t)return i;if(i==e.length)break;r+=9==e.charCodeAt(i)?n-r%n:1,i=mg(e,i)}return!0===i?-1:e.length}const qy="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),Xy="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),Iy="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class Wy{constructor(e,t){this.rules=[];let{finish:n}=t||{};function i(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function r(e,t,s,o){let a=[],l=/^@(\w+)\b/.exec(e[0]),d=l&&"keyframes"==l[1];if(l&&null==t)return s.push(e[0]+";");for(let n in t){let o=t[n];if(/&/.test(n))r(n.split(/,\s*/).map(t=>e.map(e=>t.replace(/&/,e))).reduce((e,t)=>e.concat(t)),o,s);else if(o&&"object"==typeof o){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");r(i(n),o,a,d)}else null!=o&&a.push(n.replace(/_.*/,"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())+": "+o+";")}(a.length||d)&&s.push((!n||l||o?e:e.map(n)).join(", ")+" {"+a.join(" ")+"}")}for(let t in e)r(i(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=Iy[qy]||1;return Iy[qy]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let i=e[Xy],r=n&&n.nonce;i?r&&i.setNonce(r):i=new Zy(e,r),i.mount(Array.isArray(t)?t:[t],e)}}let Hy=new Map;class Zy{constructor(e,t){let n=e.ownerDocument||e,i=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let t=Hy.get(n);if(t)return e[Xy]=t;this.sheet=new i.CSSStyleSheet,Hy.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[Xy]=this}mount(e,t){let n=this.sheet,i=0,r=0;for(let t=0;t-1&&(this.modules.splice(o,1),r--,o=-1),-1==o){if(this.modules.splice(r++,0,s),n)for(let e=0;e",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Fy="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),By="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Uy=0;Uy<10;Uy++)zy[48+Uy]=zy[96+Uy]=String(Uy);for(Uy=1;Uy<=24;Uy++)zy[Uy+111]="F"+Uy;for(Uy=65;Uy<=90;Uy++)zy[Uy]=String.fromCharCode(Uy+32),Vy[Uy]=String.fromCharCode(Uy);for(var Gy in zy)Vy.hasOwnProperty(Gy)||(Vy[Gy]=zy[Gy]);function Ky(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i];"string"==typeof r?e.setAttribute(i,r):null!=r&&(e[i]=r)}t++}for(;t2);var cb={mac:ub||/Mac/.test(eb.platform),windows:/Win/.test(eb.platform),linux:/Linux|X11/.test(eb.platform),ie:sb,ie_version:ib?tb.documentMode||6:rb?+rb[1]:nb?+nb[1]:0,gecko:ob,gecko_version:ob?+(/Firefox\/(\d+)/.exec(eb.userAgent)||[0,0])[1]:0,chrome:!!ab,chrome_version:ab?+ab[1]:0,ios:ub,android:/Android\b/.test(eb.userAgent),webkit:lb,webkit_version:lb?+(/\bAppleWebKit\/(\d+)/.exec(eb.userAgent)||[0,0])[1]:0,safari:db,safari_version:db?+(/\bVersion\/(\d+(\.\d+)?)/.exec(eb.userAgent)||[0,0])[1]:0,tabSize:null!=tb.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};function hb(e,t){for(let n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}const mb=Object.create(null);function pb(e,t,n){if(e==t)return!0;e||(e=mb),t||(t=mb);let i=Object.keys(e),r=Object.keys(t);if(i.length-(n&&i.indexOf(n)>-1?1:0)!=r.length-(n&&r.indexOf(n)>-1?1:0))return!1;for(let s of i)if(s!=n&&(-1==r.indexOf(s)||e[s]!==t[s]))return!1;return!0}function fb(e,t,n){let i=!1;if(t)for(let r in t)n&&r in n||(i=!0,"style"==r?e.style.cssText="":e.removeAttribute(r));if(n)for(let r in n)t&&t[r]==n[r]||(i=!0,"style"==r?e.style.cssText=n[r]:e.setAttribute(r,n[r]));return i}function Ob(e){let t=Object.create(null);for(let n=0;n0?3e8:-4e8:t>0?1e8:-1e8,new wb(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,i=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:r,end:s}=$b(e,i);t=(r?i?-3e8:-1:5e8)-1,n=1+(s?i?2e8:1:-6e8)}return new wb(e,t,n,i,e.widget||null,!0)}static line(e){return new vb(e)}static set(e,t=!1){return Ay.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}yb.none=Ay.empty;class bb extends yb{constructor(e){let{start:t,end:n}=$b(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?hb(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||mb}eq(e){return this==e||e instanceof bb&&this.tagName==e.tagName&&pb(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}bb.prototype.point=!1;class vb extends yb{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof vb&&this.spec.class==e.spec.class&&pb(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}vb.prototype.mapMode=gg.TrackBefore,vb.prototype.point=!0;class wb extends yb{constructor(e,t,n,i,r,s){super(t,n,r,e),this.block=i,this.isReplace=s,this.mapMode=i?t<=0?gg.TrackBefore:gg.TrackAfter:gg.TrackDel}get type(){return this.startSide!=this.endSide?gb.WidgetRange:this.startSide<=0?gb.WidgetBefore:gb.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof wb&&function(e,t){return e==t||!!(e&&t&&e.compare(t))}(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function $b(e,t=!1){let{inclusiveStart:n,inclusiveEnd:i}=e;return null==n&&(n=e.inclusive),null==i&&(i=e.inclusive),{start:null!=n?n:t,end:null!=i?i:t}}function Mb(e,t,n,i=0){let r=n.length-1;r>=0&&n[r]+i>=e?n[r]=Math.max(n[r],t):n.push(e,t)}wb.prototype.point=!0;class kb extends vy{constructor(e,t,n){super(),this.tagName=e,this.attributes=t,this.rank=n}eq(e){return e==this||e instanceof kb&&this.tagName==e.tagName&&pb(this.attributes,e.attributes)}static create(e){return new kb(e.tagName,e.attributes||mb,null==e.rank?50:Math.max(0,Math.min(e.rank,100)))}static set(e,t=!1){return Ay.of(e,t)}}function Ab(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function Sb(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function Yb(e,t){if(!t.anchorNode)return!1;try{return Sb(e,t.anchorNode)}catch(e){return!1}}function Qb(e){return 3==e.nodeType?Zb(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function Tb(e,t,n,i){return!!n&&(Pb(e,t,n,i,-1)||Pb(e,t,n,i,1))}function Lb(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function xb(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function Pb(e,t,n,i,r){for(;;){if(e==n&&t==i)return!0;if(t==(r<0?0:Db(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=Lb(e)+(r<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(r<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=r<0?Db(e):0}}}function Db(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function jb(e,t){let{left:n,right:i}=e;if(n==i)return e;let r=t?n:i;return{left:r,right:r,top:e.top,bottom:e.bottom}}function Eb(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function Cb(e,t){let n=t.width/e.offsetWidth,i=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(t.height-e.offsetHeight)<1)&&(i=1),{scaleX:n,scaleY:i}}function Nb(e,t=!0){let n=e.ownerDocument,i=null,r=null;for(let s=e.parentNode;s&&(s!=n.body&&(t&&!i||!r));)if(1==s.nodeType)!r&&s.scrollHeight>s.clientHeight&&(r=s),t&&!i&&s.scrollWidth>s.clientWidth&&(i=s),s=s.assignedSlot||s.parentNode;else{if(11!=s.nodeType)break;s=s.host}return{x:i,y:r}}kb.prototype.startSide=kb.prototype.endSide=-1;class Rb{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?Db(t):0),n,Math.min(e.focusOffset,n?Db(n):0))}set(e,t,n,i){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=i}}function qb(e){let t=[];for(let n=e;n;n=11==n.nodeType?n.host:n.parentNode)1==n.nodeType&&t.push({node:n,left:n.scrollLeft,top:n.scrollTop});return t}function Xb(e,t=!0){for(let{node:n,left:i,top:r}of e)t&&n.scrollTop!=r&&(n.scrollTop=r),n.scrollLeft!=i&&(n.scrollLeft=i)}let Ib,Wb=null;function Hb(e){if(e.setActive)return e.setActive();if(Wb)return e.focus(Wb);let t=qb(e);e.focus(null==Wb?{get preventScroll(){return Wb={preventScroll:!0},!0}}:void 0),Wb||(Wb=!1,Xb(t))}function Zb(e,t,n=t){let i=Ib||(Ib=document.createRange());return i.setEnd(e,n),i.setStart(e,t),i}function zb(e,t,n,i){let r={key:t,code:t,keyCode:n,which:n,cancelable:!0};i&&({altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey,metaKey:r.metaKey}=i);let s=new KeyboardEvent("keydown",r);s.synthetic=!0,e.dispatchEvent(s);let o=new KeyboardEvent("keyup",r);return o.synthetic=!0,e.dispatchEvent(o),s.defaultPrevented||o.defaultPrevented}function Vb(e){return e instanceof Window?e.pageYOffset>Math.max(0,e.document.documentElement.scrollHeight-e.innerHeight-4):e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}function Fb(e,t){for(let n=e,i=t;;){if(3==n.nodeType&&i>0)return{node:n,offset:i};if(1==n.nodeType&&i>0){if("false"==n.contentEditable)return null;n=n.childNodes[i-1],i=Db(n)}else{if(!n.parentNode||xb(n))return null;i=Lb(n),n=n.parentNode}}}function Bb(e,t){for(let n=e,i=t;;){if(3==n.nodeType&&i