File manager - Edit - /home/aresglob/public_html/wp/wp-includes/images/smilies/admin.tar
Back
bsf-analytics/modules/deactivation-survey/classes/class-deactivation-survey-feedback.php 0000644 00000026154 15105342353 0025771 0 ustar 00 <?php /** * Deactivation Survey Feedback. * * @package bsf-analytics */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Deactivation_Survey_Feedback' ) ) { /** * Class Deactivation_Survey_Feedback. */ class Deactivation_Survey_Feedback { /** * Feedback URL. * * @var string */ private static $feedback_api_endpoint = 'api/plugin-deactivate'; /** * Instance * * @access private * @var object Class object. * @since 1.1.6 */ private static $instance; /** * Initiator * * @since 1.1.6 * @return object initialized object of class. */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor */ public function __construct() { add_action( 'admin_enqueue_scripts', array( $this, 'load_form_styles' ) ); add_action( 'wp_ajax_uds_plugin_deactivate_feedback', array( $this, 'send_plugin_deactivate_feedback' ) ); } /** * Render feedback HTML on plugins.php admin page only. * * This function renders the feedback form HTML on the plugins.php admin page. * It takes an optional string parameter $id for the form wrapper ID and an optional array parameter $args for customizing the form. * * @since 1.1.6 * @param array $args Optional. Custom arguments for the form. Defaults to an empty array. * @return void */ public static function show_feedback_form( array $args = array() ) { // Return if not in admin. if ( ! is_admin() ) { return; } // Set default arguments for the feedback form. $defaults = array( 'source' => 'User Deactivation Survey', 'popup_logo' => '', 'plugin_slug' => 'user-deactivation-survey', 'plugin_version' => '', 'popup_title' => __( 'Quick Feedback', 'astra-sites' ), 'support_url' => 'https://brainstormforce.com/contact/', 'popup_reasons' => self::get_default_reasons(), 'popup_description' => __( 'If you have a moment, please share why you are deactivating the plugin.', 'astra-sites' ), 'show_on_screens' => array( 'plugins' ), ); // Parse the arguments with defaults. $args = wp_parse_args( $args, $defaults ); $id = ''; // Set a default ID if none is provided. if ( empty( $args['id'] ) ) { $id = 'uds-feedback-form--wrapper'; } $id = sanitize_text_field( $args['id'] ); // Return if not on the allowed screen. if ( ! BSF_Analytics_Helper::is_allowed_screen() ) { return; } // Product slug used for input fields and labels in each plugin's deactivation survey. $product_slug = isset( $args['plugin_slug'] ) ? sanitize_text_field( $args['plugin_slug'] ) : 'bsf'; ?> <div id="<?php echo esc_attr( $id ); ?>" class="uds-feedback-form--wrapper" style="display: none"> <div class="uds-feedback-form--container"> <div class="uds-form-header--wrapper"> <div class="uds-form-title--icon-wrapper"> <?php if ( ! empty( $args['popup_logo'] ) ) { ?> <img class="uds-icon" src="<?php echo esc_url( $args['popup_logo'] ); ?>" title="<?php echo esc_attr( $args['plugin_slug'] ); ?> <?php echo esc_attr( __( 'Icon', 'astra-sites' ) ); ?>" /> <?php } ?> <h2 class="uds-title"><?php echo esc_html( $args['popup_title'] ); ?></h2> </div> <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="uds-close"> <path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" /> </svg> </div> <div class="uds-form-body--content"> <?php if ( ! empty( $args['popup_description'] ) ) { ?> <p class="uds-form-description"><?php echo esc_html( $args['popup_description'] ); ?></p> <?php } ?> <form class="uds-feedback-form" id="uds-feedback-form" method="post"> <?php foreach ( $args['popup_reasons'] as $key => $value ) { $input_id = $product_slug . '_uds_reason_input_' . $key; ?> <fieldset> <div class="reason"> <input type="radio" class="uds-reason-input" name="uds_reason_input" id="<?php echo esc_attr( $input_id ); ?>" value="<?php echo esc_attr( $key ); ?>" data-placeholder="<?php echo esc_attr( $value['placeholder'] ); ?>" data-show_cta="<?php echo esc_attr( $value['show_cta'] ); ?>" data-accept_feedback="<?php echo esc_attr( $value['accept_feedback'] ); ?>"> <label class="uds-reason-label" for="<?php echo esc_attr( $input_id ); ?>"><?php echo esc_html( $value['label'] ); ?></label> </div> </fieldset> <?php } ?> <fieldset> <textarea class="uds-options-feedback hide" id="uds-options-feedback" rows="3" name="uds_options_feedback" placeholder="<?php echo esc_attr( __( 'Please tell us more details.', 'astra-sites' ) ); ?>"></textarea> <?php if ( ! empty( $args['support_url'] ) ) { ?> <p class="uds-option-feedback-cta hide"> <?php echo wp_kses_post( sprintf( /* translators: %1$s: link html start, %2$s: link html end*/ __( 'Need help from our experts? %1$sClick here to contact us.%2$s', 'astra-sites' ), '<a href="' . esc_url( $args['support_url'] ) . '" target="_blank">', '</a>' ) ); ?> </p> <?php } ?> </fieldset> <div class="uds-feedback-form-sumbit--actions"> <button class="button button-primary uds-feedback-submit" data-action="submit"><?php esc_html_e( 'Submit & Deactivate', 'astra-sites' ); ?></button> <button class="button button-secondary uds-feedback-skip" data-action="skip"><?php esc_html_e( 'Skip & Deactivate', 'astra-sites' ); ?></button> <input type="hidden" name="referer" value="<?php echo esc_url( get_site_url() ); ?>"> <input type="hidden" name="version" value="<?php echo esc_attr( $args['plugin_version'] ); ?>"> <input type="hidden" name="source" value="<?php echo esc_attr( $args['plugin_slug'] ); ?>"> </div> </form> </div> </div> </div> <?php } /** * Load form styles. * * This function loads the necessary styles for the feedback form. * * @since 1.1.6 * @return void */ public static function load_form_styles() { if ( ! BSF_Analytics_Helper::is_allowed_screen() ) { return; } $dir_path = BSF_ANALYTICS_URI . '/modules/deactivation-survey/'; $file_ext = ! SCRIPT_DEBUG ? '.min' : ''; wp_enqueue_script( 'uds-feedback-script', $dir_path . 'assets/js/feedback' . $file_ext . '.js', array( 'jquery' ), BSF_ANALYTICS_VERSION, true ); $data = apply_filters( 'uds_survey_vars', array( 'ajaxurl' => esc_url( admin_url( 'admin-ajax.php' ) ), '_ajax_nonce' => wp_create_nonce( 'uds_plugin_deactivate_feedback' ), '_current_theme' => function_exists( 'wp_get_theme' ) ? wp_get_theme()->get_template() : '', '_plugin_slug' => array(), ) ); // Add localize JS. wp_localize_script( 'uds-feedback-script', 'udsVars', $data ); wp_enqueue_style( 'uds-feedback-style', $dir_path . 'assets/css/feedback' . $file_ext . '.css', array(), BSF_ANALYTICS_VERSION ); wp_style_add_data( 'uds-feedback-style', 'rtl', 'replace' ); } /** * Sends plugin deactivation feedback to the server. * * This function checks the user's permission and verifies the nonce for the request. * If the checks pass, it sends the feedback data to the server for processing. * * @return void */ public function send_plugin_deactivate_feedback() { $response_data = array( 'message' => __( 'Sorry, you are not allowed to do this operation.', 'astra-sites' ) ); /** * Check permission */ if ( ! current_user_can( 'manage_options' ) ) { wp_send_json_error( $response_data ); } /** * Nonce verification */ if ( ! check_ajax_referer( 'uds_plugin_deactivate_feedback', 'security', false ) ) { $response_data = array( 'message' => __( 'Nonce validation failed', 'astra-sites' ) ); wp_send_json_error( $response_data ); } $feedback_data = array( 'reason' => isset( $_POST['reason'] ) ? sanitize_text_field( wp_unslash( $_POST['reason'] ) ) : '', 'feedback' => isset( $_POST['feedback'] ) ? sanitize_text_field( wp_unslash( $_POST['feedback'] ) ) : '', 'domain_name' => isset( $_POST['referer'] ) ? sanitize_text_field( wp_unslash( $_POST['referer'] ) ) : '', 'version' => isset( $_POST['version'] ) ? sanitize_text_field( wp_unslash( $_POST['version'] ) ) : '', 'plugin' => isset( $_POST['source'] ) ? sanitize_text_field( wp_unslash( $_POST['source'] ) ) : '', ); $api_args = array( 'body' => wp_json_encode( $feedback_data ), 'headers' => BSF_Analytics_Helper::get_api_headers(), 'timeout' => 90, //phpcs:ignore WordPressVIPMinimum.Performance.RemoteRequestTimeout.timeout_timeout ); $target_url = BSF_Analytics_Helper::get_api_url() . self::$feedback_api_endpoint; $response = wp_safe_remote_post( $target_url, $api_args ); $has_errors = BSF_Analytics_Helper::is_api_error( $response ); if ( $has_errors['error'] ) { wp_send_json_error( array( 'success' => false, 'message' => $has_errors['error_message'], ) ); } wp_send_json_success(); } /** * Get the array of default reasons. * * @return array Default reasons. */ public static function get_default_reasons() { return apply_filters( 'uds_default_deactivation_reasons', array( 'temporary_deactivation' => array( 'label' => esc_html__( 'This is a temporary deactivation for testing.', 'astra-sites' ), 'placeholder' => esc_html__( 'How can we assist you?', 'astra-sites' ), 'show_cta' => 'false', 'accept_feedback' => 'false', ), 'plugin_not_working' => array( 'label' => esc_html__( 'The plugin isn\'t working properly.', 'astra-sites' ), 'placeholder' => esc_html__( 'Please tell us more about what went wrong?', 'astra-sites' ), 'show_cta' => 'true', 'accept_feedback' => 'true', ), 'found_better_plugin' => array( 'label' => esc_html__( 'I found a better alternative plugin.', 'astra-sites' ), 'placeholder' => esc_html__( 'Could you please specify which plugin?', 'astra-sites' ), 'show_cta' => 'false', 'accept_feedback' => 'true', ), 'missing_a_feature' => array( 'label' => esc_html__( 'It\'s missing a specific feature.', 'astra-sites' ), 'placeholder' => esc_html__( 'Please tell us more about the feature.', 'astra-sites' ), 'show_cta' => 'false', 'accept_feedback' => 'true', ), 'other' => array( 'label' => esc_html__( 'Other', 'astra-sites' ), 'placeholder' => esc_html__( 'Please tell us more details.', 'astra-sites' ), 'show_cta' => 'false', 'accept_feedback' => 'true', ), ) ); } } Deactivation_Survey_Feedback::get_instance(); } bsf-analytics/modules/deactivation-survey/assets/css/feedback.css 0000644 00000013111 15105342353 0021306 0 ustar 00 /* Base CSS to normalize the default. */ .uds-feedback-form--wrapper h2, .uds-feedback-form--wrapper p, .uds-feedback-form--wrapper input[type="radio"] { margin: 0; padding: 0; } .uds-feedback-form--wrapper .show { display: block; } .uds-feedback-form--wrapper .hide { display: none; } .uds-feedback-form--wrapper { align-items: center; background-color: rgba( 0, 0, 0, 0.75 ); bottom: 0; display: none; justify-content: center; left: 0; position: fixed; right: 0; top: 0; user-select: none; z-index: -9999; } .uds-feedback-form--wrapper.show_popup { display: flex !important; z-index: 99999; } .uds-feedback-form--wrapper .uds-feedback-form--container { background-color: #fff; border-radius: 8px; box-shadow: 4px 4px 24px rgba( 0, 0, 0, 0.25 ); max-width: 90%; width: 540px; } .uds-feedback-form--container .uds-form-header--wrapper { align-items: center; display: flex; justify-content: space-between; padding: 16px 20px 0; } .uds-feedback-form--container .uds-form-title--icon-wrapper { display: flex; align-items: center; gap: 12px; } .uds-feedback-form--container .uds-form-title--icon-wrapper .uds-icon, .uds-feedback-form--container .uds-form-header--wrapper .uds-close { width: 20px; height: 20px; } .uds-feedback-form--container .uds-form-title--icon-wrapper .uds-title { color: #1f2937; font-size: 16px; font-weight: 600; line-height: 24px; text-align: left; } .uds-feedback-form--container .uds-form-header--wrapper .uds-close { color: #9ca3af; cursor: pointer; } .uds-feedback-form--container .uds-form-header--wrapper .uds-close:hover { color: #4b5563; } .uds-feedback-form--container .uds-form-body--content { padding: 20px 20px 0 20px; display: flex; flex-direction: column; gap: 20px; } .uds-feedback-form--container .uds-form-body--content .uds-form-description { color: #1f2937; font-size: 16px; font-weight: 500; line-height: 24px; text-align: left; } .uds-feedback-form--container .uds-form-body--content #uds-feedback-form .reason { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } .uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback { color: #6b7280; font-size: 14px; font-weight: 400; line-height: 20px; text-align: left; width: 100%; padding: 9px 13px; border-radius: 6px; border-width: 1px; border-style: solid; border-color: #e5e7eb; box-shadow: 0 1px 2px 0 #0000000d; background: #fff; } .uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback:hover, .uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback:focus, .uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback:active { border-color: #d1d5db; } .uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-option-feedback-cta { color: #4b5563; margin-top: 10px; font-size: 13px; font-weight: 400; line-height: 20px; text-align: left; } .uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-option-feedback-cta a { text-decoration: none; color: #006ba1; } .uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback::placeholder { font-size: 14px; font-weight: 400; line-height: 20px; text-align: left; color: #6b7280; opacity: 1; } .uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background-color: #f6f7f7; border-top: 1px solid #e1e1e1; margin: 40px -20px 0; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; } .uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button { padding: 7px 13px; border-radius: 3px; border-width: 1px; font-size: 14px; font-weight: 400; line-height: 20px; text-align: left; border-style: solid; display: flex; gap: 8px; align-items: center; } .uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button:focus { outline: none; box-shadow: none; } .uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button.processing { pointer-events: none; opacity: 0.8; } .uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button.processing::before { content: "\f463"; animation: spin 2s linear infinite; font-family: dashicons, sans-serif; font-weight: 400; font-size: 18px; cursor: pointer; } .uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-reason-label { font-size: 14px; font-weight: 400; line-height: 20px; text-align: left; } .uds-feedback-form--container .uds-form-body--content #uds-feedback-form input[type="radio"] { display: flex; justify-content: center; height: 18px; width: 18px; cursor: pointer; margin: 0; border: 1px solid #d1d5db; border-radius: 50%; line-height: 0; box-shadow: inset 0 1px 2px rgb( 0 0 0 / 10% ); transition: 0.05s border-color ease-in-out; -webkit-appearance: none; padding: 0; } .uds-feedback-form--container .uds-form-body--content #uds-feedback-form input[type="radio"]:checked { vertical-align: middle; background-color: #006ba1; } .uds-feedback-form--container .uds-form-body--content #uds-feedback-form input[type="radio"]:checked::before { background-color: #fff !important; border-radius: 50px; content: "\2022"; font-size: 24px; height: 6px; line-height: 13px; margin: 5px; text-indent: -9999px; width: 6px; } @keyframes spin { 0% { transform: rotate( 0deg ); } 100% { transform: rotate( 360deg ); } } bsf-analytics/modules/deactivation-survey/assets/css/feedback-rtl.min.css 0000644 00000023571 15105342353 0022702 0 ustar 00 .uds-feedback-form--wrapper h2,.uds-feedback-form--wrapper input[type=radio],.uds-feedback-form--wrapper p{margin:0;padding:0}.uds-feedback-form--wrapper .show{display:block}.uds-feedback-form--wrapper .hide{display:none}.uds-feedback-form--wrapper{align-items:center;background-color:rgba(0,0,0,.75);bottom:0;display:none;justify-content:center;right:0;position:fixed;left:0;top:0;user-select:none;z-index:-9999}.uds-feedback-form--wrapper.show_popup{display:flex!important;z-index:99999}.uds-feedback-form--wrapper .uds-feedback-form--container{background-color:#fff;border-radius:8px;box-shadow:-4px 4px 24px rgba(0,0,0,.25);max-width:90%;width:540px}.uds-feedback-form--container .uds-form-header--wrapper{align-items:center;display:flex;justify-content:space-between;padding:16px 20px 0}.uds-feedback-form--container .uds-form-title--icon-wrapper{display:flex;align-items:center;gap:12px}.uds-feedback-form--container .uds-form-header--wrapper .uds-close,.uds-feedback-form--container .uds-form-title--icon-wrapper .uds-icon{width:20px;height:20px}.uds-feedback-form--container .uds-form-title--icon-wrapper .uds-title{color:#1f2937;font-size:16px;font-weight:600;line-height:24px;text-align:right}.uds-feedback-form--container .uds-form-header--wrapper .uds-close{color:#9ca3af;cursor:pointer}.uds-feedback-form--container .uds-form-header--wrapper .uds-close:hover{color:#4b5563}.uds-feedback-form--container .uds-form-body--content{padding:20px 20px 0 20px;display:flex;flex-direction:column;gap:20px}.uds-feedback-form--container .uds-form-body--content .uds-form-description{color:#1f2937;font-size:16px;font-weight:500;line-height:24px;text-align:right}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .reason{display:flex;align-items:center;gap:12px;margin-bottom:12px}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback{color:#6b7280;font-size:14px;font-weight:400;line-height:20px;text-align:right;width:100%;padding:9px 13px;border-radius:6px;border-width:1px;border-style:solid;border-color:#e5e7eb;box-shadow:0 1px 2px 0 #0000000d;background:#fff}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback:active,.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback:focus,.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback:hover{border-color:#d1d5db}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-option-feedback-cta{color:#4b5563;margin-top:10px;font-size:13px;font-weight:400;line-height:20px;text-align:right}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-option-feedback-cta a{text-decoration:none;color:#006ba1}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback::placeholder{font-size:14px;font-weight:400;line-height:20px;text-align:right;color:#6b7280;opacity:1}.uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background-color:#f6f7f7;border-top:1px solid #e1e1e1;margin:40px -20px 0;border-bottom-right-radius:8px;border-bottom-left-radius:8px}.uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button{padding:7px 13px;border-radius:3px;border-width:1px;font-size:14px;font-weight:400;line-height:20px;text-align:right;border-style:solid;display:flex;gap:8px;align-items:center}.uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button:focus{outline:0;box-shadow:none}.uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button.processing{pointer-events:none;opacity:.8}.uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button.processing::before{content:"\f463";animation:spin 2s linear infinite;font-family:dashicons,sans-serif;font-weight:400;font-size:18px;cursor:pointer}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-reason-label{font-size:14px;font-weight:400;line-height:20px;text-align:right}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form input[type=radio]{display:flex;justify-content:center;height:18px;width:18px;cursor:pointer;margin:0;border:1px solid #d1d5db;border-radius:50%;line-height:0;box-shadow:inset 0 1px 2px rgb(0 0 0 / 10%);transition:50ms border-color ease-in-out;-webkit-appearance:none;padding:0}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form input[type=radio]:checked{vertical-align:middle;background-color:#006ba1}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form input[type=radio]:checked::before{background-color:#fff!important;border-radius:50px;content:"\2022";font-size:24px;height:6px;line-height:13px;margin:5px;text-indent:-9999px;width:6px}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(-360deg)}},.uds-feedback-form--wrapper h2,.uds-feedback-form--wrapper input[type=radio],.uds-feedback-form--wrapper p{margin:0;padding:0}.uds-feedback-form--wrapper .show{display:block}.uds-feedback-form--wrapper .hide{display:none}.uds-feedback-form--wrapper{align-items:center;background-color:rgba(0,0,0,.75);bottom:0;display:none;justify-content:center;right:0;position:fixed;left:0;top:0;user-select:none;z-index:-9999}.uds-feedback-form--wrapper.show_popup{display:flex!important;z-index:99999}.uds-feedback-form--wrapper .uds-feedback-form--container{background-color:#fff;border-radius:8px;box-shadow:-4px 4px 24px rgba(0,0,0,.25);max-width:90%;width:540px}.uds-feedback-form--container .uds-form-header--wrapper{align-items:center;display:flex;justify-content:space-between;padding:16px 20px 0}.uds-feedback-form--container .uds-form-title--icon-wrapper{display:flex;align-items:center;gap:12px}.uds-feedback-form--container .uds-form-header--wrapper .uds-close,.uds-feedback-form--container .uds-form-title--icon-wrapper .uds-icon{width:20px;height:20px}.uds-feedback-form--container .uds-form-title--icon-wrapper .uds-title{color:#1f2937;font-size:16px;font-weight:600;line-height:24px;text-align:right}.uds-feedback-form--container .uds-form-header--wrapper .uds-close{color:#9ca3af;cursor:pointer}.uds-feedback-form--container .uds-form-header--wrapper .uds-close:hover{color:#4b5563}.uds-feedback-form--container .uds-form-body--content{padding:20px 20px 0 20px;display:flex;flex-direction:column;gap:20px}.uds-feedback-form--container .uds-form-body--content .uds-form-description{color:#1f2937;font-size:16px;font-weight:500;line-height:24px;text-align:right}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .reason{display:flex;align-items:center;gap:12px;margin-bottom:12px}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback{color:#6b7280;font-size:14px;font-weight:400;line-height:20px;text-align:right;width:100%;padding:9px 13px;border-radius:6px;border-width:1px;border-style:solid;border-color:#e5e7eb;box-shadow:0 1px 2px 0 #0000000d;background:#fff}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback:active,.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback:focus,.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback:hover{border-color:#d1d5db}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-option-feedback-cta{color:#4b5563;margin-top:10px;font-size:13px;font-weight:400;line-height:20px;text-align:right}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-option-feedback-cta a{text-decoration:none;color:#006ba1}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback::placeholder{font-size:14px;font-weight:400;line-height:20px;text-align:right;color:#6b7280;opacity:1}.uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background-color:#f6f7f7;border-top:1px solid #e1e1e1;margin:40px -20px 0;border-bottom-right-radius:8px;border-bottom-left-radius:8px}.uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button{padding:7px 13px;border-radius:3px;border-width:1px;font-size:14px;font-weight:400;line-height:20px;text-align:right;border-style:solid;display:flex;gap:8px;align-items:center}.uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button:focus{outline:0;box-shadow:none}.uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button.processing{pointer-events:none;opacity:.8}.uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button.processing::before{content:"\f463";animation:spin 2s linear infinite;font-family:dashicons,sans-serif;font-weight:400;font-size:18px;cursor:pointer}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-reason-label{font-size:14px;font-weight:400;line-height:20px;text-align:right}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form input[type=radio]{display:flex;justify-content:center;height:18px;width:18px;cursor:pointer;margin:0;border:1px solid #d1d5db;border-radius:50%;line-height:0;box-shadow:inset 0 1px 2px rgb(0 0 0 / 10%);transition:50ms border-color ease-in-out;-webkit-appearance:none;padding:0}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form input[type=radio]:checked{vertical-align:middle;background-color:#006ba1}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form input[type=radio]:checked::before{background-color:#fff!important;border-radius:50px;content:"\2022";font-size:24px;height:6px;line-height:13px;margin:5px;text-indent:-9999px;width:6px}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(-360deg)}} bsf-analytics/modules/deactivation-survey/assets/css/feedback-rtl.css 0000644 00000025017 15105342353 0022115 0 ustar 00 /* Base CSS to normalize the default. */ .uds-feedback-form--wrapper h2, .uds-feedback-form--wrapper p, .uds-feedback-form--wrapper input[type="radio"] { margin: 0; padding: 0; } .uds-feedback-form--wrapper .show { display: block; } .uds-feedback-form--wrapper .hide { display: none; } .uds-feedback-form--wrapper { align-items: center; background-color: rgba( 0, 0, 0, 0.75 ); bottom: 0; display: none; justify-content: center; right: 0; position: fixed; left: 0; top: 0; user-select: none; z-index: -9999; } .uds-feedback-form--wrapper.show_popup { display: flex !important; z-index: 99999; } .uds-feedback-form--wrapper .uds-feedback-form--container { background-color: #fff; border-radius: 8px; box-shadow: -4px 4px 24px rgba( 0, 0, 0, 0.25 ); max-width: 90%; width: 540px; } .uds-feedback-form--container .uds-form-header--wrapper { align-items: center; display: flex; justify-content: space-between; padding: 16px 20px 0; } .uds-feedback-form--container .uds-form-title--icon-wrapper { display: flex; align-items: center; gap: 12px; } .uds-feedback-form--container .uds-form-title--icon-wrapper .uds-icon, .uds-feedback-form--container .uds-form-header--wrapper .uds-close { width: 20px; height: 20px; } .uds-feedback-form--container .uds-form-title--icon-wrapper .uds-title { color: #1f2937; font-size: 16px; font-weight: 600; line-height: 24px; text-align: right; } .uds-feedback-form--container .uds-form-header--wrapper .uds-close { color: #9ca3af; cursor: pointer; } .uds-feedback-form--container .uds-form-header--wrapper .uds-close:hover { color: #4b5563; } .uds-feedback-form--container .uds-form-body--content { padding: 20px 20px 0 20px; display: flex; flex-direction: column; gap: 20px; } .uds-feedback-form--container .uds-form-body--content .uds-form-description { color: #1f2937; font-size: 16px; font-weight: 500; line-height: 24px; text-align: right; } .uds-feedback-form--container .uds-form-body--content #uds-feedback-form .reason { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } .uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback { color: #6b7280; font-size: 14px; font-weight: 400; line-height: 20px; text-align: right; width: 100%; padding: 9px 13px; border-radius: 6px; border-width: 1px; border-style: solid; border-color: #e5e7eb; box-shadow: 0 1px 2px 0 #0000000d; background: #fff; } .uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback:hover, .uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback:focus, .uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback:active { border-color: #d1d5db; } .uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-option-feedback-cta { color: #4b5563; margin-top: 10px; font-size: 13px; font-weight: 400; line-height: 20px; text-align: right; } .uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-option-feedback-cta a { text-decoration: none; color: #006ba1; } .uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback::placeholder { font-size: 14px; font-weight: 400; line-height: 20px; text-align: right; color: #6b7280; opacity: 1; } .uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background-color: #f6f7f7; border-top: 1px solid #e1e1e1; margin: 40px -20px 0; border-bottom-right-radius: 8px; border-bottom-left-radius: 8px; } .uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button { padding: 7px 13px; border-radius: 3px; border-width: 1px; font-size: 14px; font-weight: 400; line-height: 20px; text-align: right; border-style: solid; display: flex; gap: 8px; align-items: center; } .uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button:focus { outline: none; box-shadow: none; } .uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button.processing { pointer-events: none; opacity: 0.8; } .uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button.processing::before { content: "\f463"; animation: spin 2s linear infinite; font-family: dashicons, sans-serif; font-weight: 400; font-size: 18px; cursor: pointer; } .uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-reason-label { font-size: 14px; font-weight: 400; line-height: 20px; text-align: right; } .uds-feedback-form--container .uds-form-body--content #uds-feedback-form input[type="radio"] { display: flex; justify-content: center; height: 18px; width: 18px; cursor: pointer; margin: 0; border: 1px solid #d1d5db; border-radius: 50%; line-height: 0; box-shadow: inset 0 1px 2px rgb( 0 0 0 / 10% ); transition: 0.05s border-color ease-in-out; -webkit-appearance: none; padding: 0; } .uds-feedback-form--container .uds-form-body--content #uds-feedback-form input[type="radio"]:checked { vertical-align: middle; background-color: #006ba1; } .uds-feedback-form--container .uds-form-body--content #uds-feedback-form input[type="radio"]:checked::before { background-color: #fff !important; border-radius: 50px; content: "\2022"; font-size: 24px; height: 6px; line-height: 13px; margin: 5px; text-indent: -9999px; width: 6px; } @keyframes spin { 0% { transform: rotate( 0deg ); } 100% { transform: rotate( -360deg ); } } ,.uds-feedback-form--wrapper h2,.uds-feedback-form--wrapper input[type=radio],.uds-feedback-form--wrapper p{margin:0;padding:0}.uds-feedback-form--wrapper .show{display:block}.uds-feedback-form--wrapper .hide{display:none}.uds-feedback-form--wrapper{align-items:center;background-color:rgba(0,0,0,.75);bottom:0;display:none;justify-content:center;right:0;position:fixed;left:0;top:0;user-select:none;z-index:-9999}.uds-feedback-form--wrapper.show_popup{display:flex!important;z-index:99999}.uds-feedback-form--wrapper .uds-feedback-form--container{background-color:#fff;border-radius:8px;box-shadow:-4px 4px 24px rgba(0,0,0,.25);max-width:90%;width:540px}.uds-feedback-form--container .uds-form-header--wrapper{align-items:center;display:flex;justify-content:space-between;padding:16px 20px 0}.uds-feedback-form--container .uds-form-title--icon-wrapper{display:flex;align-items:center;gap:12px}.uds-feedback-form--container .uds-form-header--wrapper .uds-close,.uds-feedback-form--container .uds-form-title--icon-wrapper .uds-icon{width:20px;height:20px}.uds-feedback-form--container .uds-form-title--icon-wrapper .uds-title{color:#1f2937;font-size:16px;font-weight:600;line-height:24px;text-align:right}.uds-feedback-form--container .uds-form-header--wrapper .uds-close{color:#9ca3af;cursor:pointer}.uds-feedback-form--container .uds-form-header--wrapper .uds-close:hover{color:#4b5563}.uds-feedback-form--container .uds-form-body--content{padding:20px 20px 0 20px;display:flex;flex-direction:column;gap:20px}.uds-feedback-form--container .uds-form-body--content .uds-form-description{color:#1f2937;font-size:16px;font-weight:500;line-height:24px;text-align:right}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .reason{display:flex;align-items:center;gap:12px;margin-bottom:12px}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback{color:#6b7280;font-size:14px;font-weight:400;line-height:20px;text-align:right;width:100%;padding:9px 13px;border-radius:6px;border-width:1px;border-style:solid;border-color:#e5e7eb;box-shadow:0 1px 2px 0 #0000000d;background:#fff}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback:active,.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback:focus,.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback:hover{border-color:#d1d5db}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-option-feedback-cta{color:#4b5563;margin-top:10px;font-size:13px;font-weight:400;line-height:20px;text-align:right}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-option-feedback-cta a{text-decoration:none;color:#006ba1}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback::placeholder{font-size:14px;font-weight:400;line-height:20px;text-align:right;color:#6b7280;opacity:1}.uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background-color:#f6f7f7;border-top:1px solid #e1e1e1;margin:40px -20px 0;border-bottom-right-radius:8px;border-bottom-left-radius:8px}.uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button{padding:7px 13px;border-radius:3px;border-width:1px;font-size:14px;font-weight:400;line-height:20px;text-align:right;border-style:solid;display:flex;gap:8px;align-items:center}.uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button:focus{outline:0;box-shadow:none}.uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button.processing{pointer-events:none;opacity:.8}.uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button.processing::before{content:"\f463";animation:spin 2s linear infinite;font-family:dashicons,sans-serif;font-weight:400;font-size:18px;cursor:pointer}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-reason-label{font-size:14px;font-weight:400;line-height:20px;text-align:right}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form input[type=radio]{display:flex;justify-content:center;height:18px;width:18px;cursor:pointer;margin:0;border:1px solid #d1d5db;border-radius:50%;line-height:0;box-shadow:inset 0 1px 2px rgb(0 0 0 / 10%);transition:50ms border-color ease-in-out;-webkit-appearance:none;padding:0}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form input[type=radio]:checked{vertical-align:middle;background-color:#006ba1}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form input[type=radio]:checked::before{background-color:#fff!important;border-radius:50px;content:"\2022";font-size:24px;height:6px;line-height:13px;margin:5px;text-indent:-9999px;width:6px}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(-360deg)}} bsf-analytics/modules/deactivation-survey/assets/css/feedback.min.css 0000644 00000011663 15105342353 0022102 0 ustar 00 .uds-feedback-form--wrapper h2,.uds-feedback-form--wrapper input[type=radio],.uds-feedback-form--wrapper p{margin:0;padding:0}.uds-feedback-form--wrapper .show{display:block}.uds-feedback-form--wrapper .hide{display:none}.uds-feedback-form--wrapper{align-items:center;background-color:rgba(0,0,0,.75);bottom:0;display:none;justify-content:center;left:0;position:fixed;right:0;top:0;user-select:none;z-index:-9999}.uds-feedback-form--wrapper.show_popup{display:flex!important;z-index:99999}.uds-feedback-form--wrapper .uds-feedback-form--container{background-color:#fff;border-radius:8px;box-shadow:4px 4px 24px rgba(0,0,0,.25);max-width:90%;width:540px}.uds-feedback-form--container .uds-form-header--wrapper{align-items:center;display:flex;justify-content:space-between;padding:16px 20px 0}.uds-feedback-form--container .uds-form-title--icon-wrapper{display:flex;align-items:center;gap:12px}.uds-feedback-form--container .uds-form-header--wrapper .uds-close,.uds-feedback-form--container .uds-form-title--icon-wrapper .uds-icon{width:20px;height:20px}.uds-feedback-form--container .uds-form-title--icon-wrapper .uds-title{color:#1f2937;font-size:16px;font-weight:600;line-height:24px;text-align:left}.uds-feedback-form--container .uds-form-header--wrapper .uds-close{color:#9ca3af;cursor:pointer}.uds-feedback-form--container .uds-form-header--wrapper .uds-close:hover{color:#4b5563}.uds-feedback-form--container .uds-form-body--content{padding:20px 20px 0 20px;display:flex;flex-direction:column;gap:20px}.uds-feedback-form--container .uds-form-body--content .uds-form-description{color:#1f2937;font-size:16px;font-weight:500;line-height:24px;text-align:left}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .reason{display:flex;align-items:center;gap:12px;margin-bottom:12px}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback{color:#6b7280;font-size:14px;font-weight:400;line-height:20px;text-align:left;width:100%;padding:9px 13px;border-radius:6px;border-width:1px;border-style:solid;border-color:#e5e7eb;box-shadow:0 1px 2px 0 #0000000d;background:#fff}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback:active,.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback:focus,.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback:hover{border-color:#d1d5db}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-option-feedback-cta{color:#4b5563;margin-top:10px;font-size:13px;font-weight:400;line-height:20px;text-align:left}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-option-feedback-cta a{text-decoration:none;color:#006ba1}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-options-feedback::placeholder{font-size:14px;font-weight:400;line-height:20px;text-align:left;color:#6b7280;opacity:1}.uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background-color:#f6f7f7;border-top:1px solid #e1e1e1;margin:40px -20px 0;border-bottom-left-radius:8px;border-bottom-right-radius:8px}.uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button{padding:7px 13px;border-radius:3px;border-width:1px;font-size:14px;font-weight:400;line-height:20px;text-align:left;border-style:solid;display:flex;gap:8px;align-items:center}.uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button:focus{outline:0;box-shadow:none}.uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button.processing{pointer-events:none;opacity:.8}.uds-feedback-form--container .uds-form-body--content .uds-feedback-form-sumbit--actions .button.processing::before{content:"\f463";animation:spin 2s linear infinite;font-family:dashicons,sans-serif;font-weight:400;font-size:18px;cursor:pointer}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form .uds-reason-label{font-size:14px;font-weight:400;line-height:20px;text-align:left}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form input[type=radio]{display:flex;justify-content:center;height:18px;width:18px;cursor:pointer;margin:0;border:1px solid #d1d5db;border-radius:50%;line-height:0;box-shadow:inset 0 1px 2px rgb(0 0 0 / 10%);transition:50ms border-color ease-in-out;-webkit-appearance:none;padding:0}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form input[type=radio]:checked{vertical-align:middle;background-color:#006ba1}.uds-feedback-form--container .uds-form-body--content #uds-feedback-form input[type=radio]:checked::before{background-color:#fff!important;border-radius:50px;content:"\2022";font-size:24px;height:6px;line-height:13px;margin:5px;text-indent:-9999px;width:6px}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}} bsf-analytics/modules/deactivation-survey/assets/js/feedback.js 0000644 00000015472 15105342353 0020772 0 ustar 00 ( function ( $ ) { const UserDeactivationPopup = { slug: '', skipButton: '', formWrapper: '', radioButton: '', closeButton: '', buttonAction: '', feedbackForm: '', feedbackInput: '', deactivateUrl: '', buttonTrigger: '', deactivateButton: '', submitDeactivate: '', /** * Caches elements for later use. */ _cacheElements() { this.slug = udsVars?._plugin_slug || ''; this.skipButton = $( '.uds-feedback-skip' ); this.submitDeactivate = $( '.uds-feedback-submit' ); this.deactivateButton = $( '#the-list' ).find( `.row-actions span.deactivate a` ); this.feedbackForm = $( '.uds-feedback-form' ); // Feedback Form. this.feedbackInput = $( '.uds-options-feedback' ); // Feedback Textarea. this.formWrapper = $( '.uds-feedback-form--wrapper' ); this.closeButton = $( '.uds-feedback-form--wrapper .uds-close' ); this.radioButton = $( '.uds-reason-input' ); }, /** * Shows the feedback popup by adding the 'show' class to the form wrapper. * * @param {string} slug - The slug of the plugin. */ _showPopup( slug ) { $( `#deactivation-survey-${ slug }` ).addClass( 'show_popup' ); }, /** * Hides the feedback popup by removing the 'show' class from the form wrapper. */ _hidePopup() { this.formWrapper.removeClass( 'show_popup' ); }, /** * Redirects to the deactivate URL if it exists, otherwise reloads the current page. */ _redirectOrReload() { if ( this.deactivateUrl ) { window.location.href = this.deactivateUrl; } else { location.reload(); } }, /** * Toggles the visibility of the feedback form and CTA based on the event target's attributes. * * @param {Event} event - The event that triggered this function. */ _hideShowFeedbackAndCTA( event ) { const acceptFeedback = $( event.target ).attr( 'data-accept_feedback' ) === 'true'; const showCta = $( event.target ).attr( 'data-show_cta' ) === 'true'; $( event.target ) .closest( this.formWrapper ) .find( '.uds-options-feedback' ) .removeClass( 'hide' ) .addClass( acceptFeedback ? 'show' : 'hide' ); $( event.target ) .closest( this.formWrapper ) .find( '.uds-option-feedback-cta' ) .removeClass( 'hide' ) .addClass( showCta ? 'show' : 'hide' ); }, /** * Changes the placeholder text of the feedback input based on the event target's attribute. * * @param {Event} event - The event that triggered this function. */ _changePlaceholderText( event ) { const radioButtonPlaceholder = event.target.getAttribute( 'data-placeholder' ); $( event.target ) .closest( this.formWrapper ) .find( this.feedbackInput ) .attr( 'placeholder', radioButtonPlaceholder || '' ); this._hideShowFeedbackAndCTA( event ); }, /** * Submits the feedback form and handles the response. * * @param {Event} event - The event that triggered this function. * @param {Object} self - A reference to the current object. */ _submitFeedback( event, self ) { event.preventDefault(); const currentForm = $( event.target ); const closestForm = currentForm.closest( this.feedbackForm ); // Cache the closest form // Gather form data. const formData = { action: 'uds_plugin_deactivate_feedback', security: udsVars?._ajax_nonce || '', reason: closestForm .find( this.radioButton.filter( ':checked' ) ) .val() || '', // Get the selected radio button value from the current form. source: closestForm.find( 'input[name="source"]' ).val() || '', referer: closestForm.find( 'input[name="referer"]' ).val() || '', version: closestForm.find( 'input[name="version"]' ).val() || '', feedback: closestForm.find( this.feedbackInput ).val() || '', // Get the feedback input value from the current form. }; currentForm .find( '.uds-feedback-' + this.buttonAction ) .text( 'Deactivating.' ) .addClass( 'processing' ); // Prepare AJAX call. $.ajax( { url: udsVars?.ajaxurl, // URL to send the request to. type: 'POST', // HTTP method. data: formData, // Data to be sent. success( response ) { if ( response.success ) { self._redirectOrReload(); } self._hidePopup(); }, /* eslint-disable */ error( xhr, status, error ) { /* eslint-disable */ self._redirectOrReload(); }, } ); }, _handleClick( e ) { // Close feedback form or show/hide popup if clicked outside and add a click on a Activate button of Theme. if ( e.target.classList.contains( 'show_popup' ) && e.target.closest( '.uds-feedback-form--wrapper' ) ) { this._hidePopup(); } else if ( e.target.classList.contains( 'activate' ) ) { this.deactivateUrl = e.target.href; // Don't show for Child Themes if parent theme is active & Parent Theme if child theme is active. if ( -1 !== this.deactivateUrl.indexOf( `stylesheet=${ udsVars?._current_theme }-child` ) || -1 !== this.deactivateUrl.indexOf(`stylesheet=${udsVars?._current_theme}&`) ) { return; } e.preventDefault(); this._showPopup( udsVars?._current_theme ); } }, /** * Initializes the feedback popup by caching elements and binding events. */ _init() { this._cacheElements(); this._bind(); }, /** * Binds event listeners to various elements to handle user interactions. */ _bind() { const self = this; // Store reference to the current object. // Open the popup when clicked on the deactivate button. this.deactivateButton.on( 'click', function ( event ) { let closestTr = $( event.target ).closest( 'tr' ); let slug = closestTr.data( 'slug' ); if ( self.slug.includes( slug ) ) { event.preventDefault(); // Set the deactivation URL. self.deactivateUrl = $( event.target ).attr( 'href' ); self._showPopup( slug ); } } ); // Close the popup on a click of Close button. this.closeButton.on( 'click', function ( event ) { event.preventDefault(); self._hidePopup(); // Use self to refer to the UserDeactivationPopup instance. } ); // Click event on radio button to change the placeholder of textarea. this.radioButton.on( 'click', function ( event ) { self._changePlaceholderText( event ); } ); // Combined submit and skip button actions. this.submitDeactivate .add( this.skipButton ) .on( 'click', function ( event ) { event.preventDefault(); // Prevent default button action. self.buttonAction = $( event.target ).attr( 'data-action' ); $( event.target ).closest( self.feedbackForm ).submit(); } ); this.feedbackForm.on( 'submit', function ( event ) { self._submitFeedback( event, self ); } ); document.addEventListener( 'click', function ( e ) { self._handleClick( e ); } ); }, }; $( function () { UserDeactivationPopup._init(); } ); } )( jQuery ); bsf-analytics/modules/deactivation-survey/assets/js/feedback.min.js 0000644 00000006275 15105342353 0021555 0 ustar 00 (i=>{let t={slug:"",skipButton:"",formWrapper:"",radioButton:"",closeButton:"",buttonAction:"",feedbackForm:"",feedbackInput:"",deactivateUrl:"",buttonTrigger:"",deactivateButton:"",submitDeactivate:"",_cacheElements(){this.slug=udsVars?._plugin_slug||"",this.skipButton=i(".uds-feedback-skip"),this.submitDeactivate=i(".uds-feedback-submit"),this.deactivateButton=i("#the-list").find(".row-actions span.deactivate a"),this.feedbackForm=i(".uds-feedback-form"),this.feedbackInput=i(".uds-options-feedback"),this.formWrapper=i(".uds-feedback-form--wrapper"),this.closeButton=i(".uds-feedback-form--wrapper .uds-close"),this.radioButton=i(".uds-reason-input")},_showPopup(t){i("#deactivation-survey-"+t).addClass("show_popup")},_hidePopup(){this.formWrapper.removeClass("show_popup")},_redirectOrReload(){this.deactivateUrl?window.location.href=this.deactivateUrl:location.reload()},_hideShowFeedbackAndCTA(t){var e="true"===i(t.target).attr("data-accept_feedback"),a="true"===i(t.target).attr("data-show_cta");i(t.target).closest(this.formWrapper).find(".uds-options-feedback").removeClass("hide").addClass(e?"show":"hide"),i(t.target).closest(this.formWrapper).find(".uds-option-feedback-cta").removeClass("hide").addClass(a?"show":"hide")},_changePlaceholderText(t){var e=t.target.getAttribute("data-placeholder");i(t.target).closest(this.formWrapper).find(this.feedbackInput).attr("placeholder",e||""),this._hideShowFeedbackAndCTA(t)},_submitFeedback(t,s){t.preventDefault();var t=i(t.target),e=t.closest(this.feedbackForm),e={action:"uds_plugin_deactivate_feedback",security:udsVars?._ajax_nonce||"",reason:e.find(this.radioButton.filter(":checked")).val()||"",source:e.find('input[name="source"]').val()||"",referer:e.find('input[name="referer"]').val()||"",version:e.find('input[name="version"]').val()||"",feedback:e.find(this.feedbackInput).val()||""};t.find(".uds-feedback-"+this.buttonAction).text("Deactivating.").addClass("processing"),i.ajax({url:udsVars?.ajaxurl,type:"POST",data:e,success(t){t.success&&s._redirectOrReload(),s._hidePopup()},error(t,e,a){s._redirectOrReload()}})},_handleClick(t){t.target.classList.contains("show_popup")&&t.target.closest(".uds-feedback-form--wrapper")?this._hidePopup():t.target.classList.contains("activate")&&(this.deactivateUrl=t.target.href,-1===this.deactivateUrl.indexOf(`stylesheet=${udsVars?._current_theme}-child`))&&-1===this.deactivateUrl.indexOf(`stylesheet=${udsVars?._current_theme}&`)&&(t.preventDefault(),this._showPopup(udsVars?._current_theme))},_init(){this._cacheElements(),this._bind()},_bind(){let a=this;this.deactivateButton.on("click",function(t){var e=i(t.target).closest("tr").data("slug");a.slug.includes(e)&&(t.preventDefault(),a.deactivateUrl=i(t.target).attr("href"),a._showPopup(e))}),this.closeButton.on("click",function(t){t.preventDefault(),a._hidePopup()}),this.radioButton.on("click",function(t){a._changePlaceholderText(t)}),this.submitDeactivate.add(this.skipButton).on("click",function(t){t.preventDefault(),a.buttonAction=i(t.target).attr("data-action"),i(t.target).closest(a.feedbackForm).submit()}),this.feedbackForm.on("submit",function(t){a._submitFeedback(t,a)}),document.addEventListener("click",function(t){a._handleClick(t)})}};i(function(){t._init()})})(jQuery); bsf-analytics/modules/utm-analytics.php 0000644 00000011236 15105342353 0014262 0 ustar 00 <?php /** * UTM Analytics class * * @package bsf-analytics */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if ( ! class_exists( 'BSF_UTM_Analytics' ) ) { if ( ! defined( 'BSF_UTM_ANALYTICS_REFERER' ) ) { define( 'BSF_UTM_ANALYTICS_REFERER', 'bsf_product_referers' ); } /** * UTM Analytics class * * @since 1.1.10 */ class BSF_UTM_Analytics { /** * List of slugs of all the bsf products that will be referer, referring another product. * * @var array<string> * @since 1.1.10 */ private static $bsf_product_slugs = [ 'all-in-one-schemaorg-rich-snippets', 'astra', 'astra-portfolio', 'astra-sites', 'bb-ultimate-addon', 'cartflows', 'checkout-paypal-woo', 'checkout-plugins-stripe-woo', 'convertpro', 'header-footer-elementor', 'latepoint', 'presto-player', 'surecart', 'sureforms', 'suremails', 'surerank', 'suretriggers', 'ultimate-addons-for-beaver-builder-lite', 'ultimate-addons-for-gutenberg', 'ultimate-elementor', 'Ultimate_VC_Addons', 'variation-swatches-woo', 'woo-cart-abandonment-recovery', 'wp-schema-pro', 'zipwp' ]; /** * This function will help to determine if provided slug is a valid bsf product or not, * This way we will maintain consistency through out all our products. * * @param string $slug unique slug of the product which can be used for referer, product. * @since 1.1.10 * @return boolean */ public static function is_valid_bsf_product_slug( $slug ) { if ( empty( $slug ) || ! is_string( $slug ) ) { return false; } return in_array( $slug, self::$bsf_product_slugs, true ); } /** * This function updates value of referer and product in option * bsf_product_referer in form of key value pair as 'product' => 'referer' * * @param string $referer slug of the product which is refering another product. * @param string $product slug of the product which is refered. * @since 1.1.10 * @return void */ public static function update_referer( $referer, $product ) { $slugs = [ 'referer' => $referer, 'product' => $product, ]; $error_count = 0; foreach ( $slugs as $type => $slug ) { if ( ! self::is_valid_bsf_product_slug( $slug ) ) { error_log( sprintf( 'Invalid %1$s slug provided "%2$s", does not match bsf_product_slugs', $type, $slug ) ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- adding logs in case of failure will help in debugging. $error_count++; } } if ( $error_count > 0 ) { return; } $slugs = array_map( 'sanitize_text_field', $slugs ); $bsf_product_referers = get_option( BSF_UTM_ANALYTICS_REFERER, [] ); if ( ! is_array( $bsf_product_referers ) ) { $bsf_product_referers = []; } $bsf_product_referers[ $slugs['product'] ] = $slugs['referer']; update_option( BSF_UTM_ANALYTICS_REFERER, $bsf_product_referers ); } /** * This function will add utm_args to pro link or purchase link * added utm_source by default additional utm_args such as utm_medium etc can be provided to generate location specific links * * @param string $link Ideally this should be product site link where utm_params can be tracked. * @param string $product Product slug whose utm_link need to be created. * @param mixed $utm_args additional args to be passed ex: [ 'utm_medium' => 'dashboard']. * @since 1.1.10 * @return string */ public static function get_utm_ready_link( $link, $product, $utm_args = [] ) { if ( false === wp_http_validate_url( $link ) ) { error_log( 'Invalid url passed to get_utm_ready_link function' ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- adding logs in case of failure will help in debugging. return $link; } if ( empty( $product ) || ! is_string( $product ) || ! self::is_valid_bsf_product_slug( $product ) ) { error_log( sprintf( 'Invalid product slug provided "%1$s", does not match bsf_product_slugs', $product ) ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- adding logs in case of failure will help in debugging. return $link; } $bsf_product_referers = get_option( BSF_UTM_ANALYTICS_REFERER, [] ); if ( ! is_array( $bsf_product_referers ) || empty( $bsf_product_referers[ $product ] ) ) { return $link; } if ( ! self::is_valid_bsf_product_slug( $bsf_product_referers[ $product ] ) ) { return $link; } if ( ! is_array( $utm_args ) ) { $utm_args = []; } $utm_args['utm_source'] = $bsf_product_referers[ $product ]; $link = add_query_arg( $utm_args, $link ); return $link; } } } bsf-analytics/class-bsf-analytics-loader.php 0000644 00000004601 15105342353 0015124 0 ustar 00 <?php /** * BSF analytics loader file. * * @version 1.0.0 * * @package bsf-analytics */ if ( ! defined( 'ABSPATH' ) ) { exit(); } /** * Class BSF_Analytics_Loader. */ class BSF_Analytics_Loader { /** * Analytics Entities. * * @access private * @var array Entities array. */ private $entities = array(); /** * Analytics Version. * * @access private * @var float analytics version. */ private $analytics_version = ''; /** * Analytics path. * * @access private * @var string path array. */ private $analytics_path = ''; /** * Instance * * @access private * @var object Class object. */ private static $instance = null; /** * Get instace of class. * * @return object */ public static function get_instance() { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; } /** * Constructor */ public function __construct() { add_action( 'init', array( $this, 'load_analytics' ) ); } /** * Set entity for analytics. * * @param string $data Entity attributes data. * @return void */ public function set_entity( $data ) { array_push( $this->entities, $data ); } /** * Load Analytics library. * * @return void */ public function load_analytics() { $unique_entities = array(); if ( ! empty( $this->entities ) ) { foreach ( $this->entities as $entity ) { foreach ( $entity as $key => $data ) { if ( isset( $data['path'] ) ) { if ( file_exists( $data['path'] . '/version.json' ) ) { $file_contents = file_get_contents( $data['path'] . '/version.json' ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents $analytics_version = json_decode( $file_contents, 1 ); $analytics_version = $analytics_version['bsf-analytics-ver']; if ( version_compare( $analytics_version, $this->analytics_version, '>' ) ) { $this->analytics_version = $analytics_version; $this->analytics_path = $data['path']; } } } if ( ! isset( $unique_entities[ $key ] ) ) { $unique_entities[ $key ] = $data; } } } if ( file_exists( $this->analytics_path ) && ! class_exists( 'BSF_Analytics' ) ) { require_once $this->analytics_path . '/class-bsf-analytics.php'; new BSF_Analytics( $unique_entities, $this->analytics_path, $this->analytics_version ); } } } } bsf-analytics/version.json 0000644 00000000050 15105342353 0011657 0 ustar 00 { "bsf-analytics-ver": "1.1.16" } bsf-analytics/changelog.txt 0000644 00000001442 15105342353 0011775 0 ustar 00 v1.1.16 - 15-July-2025 - Improvement: Added `SureRank` slug to UTM analytics. v1.1.15 - 1-July-2025 - Improvement: Added `Ultimate_VC_Addons` slug to UTM analytics. v1.1.14 - 6-May-2025 - New: Introduced a key 'hide_optin_checkbox' to hide checkbox from Settings > General. - Improvement: Single optin notice for all bsf products. - Improvement: Introduced delay of 7 days for next optin message if user has reqested request from product. v1.1.13 - 17-April-2025 - Improvement: Ensured unique id for label's `for` attribute in deactivation survey fields by prefixing them with product slugs. - Improvement: Prevented deactivation survey from triggering when switching from a child theme to its parent. v1.1.12 - 24-March-2025 - Improvement: Added `suremails` and `latepoint` slugs to UTM analytics. bsf-analytics/class-bsf-analytics-stats.php 0000644 00000015312 15105342353 0015015 0 ustar 00 <?php /** * BSF analytics stat class file. * * @package bsf-analytics */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if ( ! class_exists( 'BSF_Analytics_Stats' ) ) { /** * BSF analytics stat class. */ class BSF_Analytics_Stats { /** * Active plugins. * * Holds the sites active plugins list. * * @var array */ private $plugins; /** * Instance of BSF_Analytics_Stats. * * Holds only the first object of class. * * @var object */ private static $instance = null; /** * Create only once instance of a class. * * @return object * @since 1.0.0 */ public static function instance() { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; } /** * Get stats. * * @return array stats data. * @since 1.0.0 */ public function get_stats() { return apply_filters( 'bsf_core_stats', $this->get_default_stats() ); } /** * Retrieve stats for site. * * @return array stats data. * @since 1.0.0 */ private function get_default_stats() { return array( 'graupi_version' => defined( 'BSF_UPDATER_VERSION' ) ? BSF_UPDATER_VERSION : false, 'domain_name' => get_site_url(), 'php_os' => PHP_OS, 'server_software' => isset( $_SERVER['SERVER_SOFTWARE'] ) ? wp_kses( wp_unslash( $_SERVER['SERVER_SOFTWARE'] ), [] ) : '', 'mysql_version' => $this->get_mysql_version(), 'php_version' => $this->get_php_version(), 'php_max_input_vars' => ini_get( 'max_input_vars' ), // phpcs:ignore:PHPCompatibility.IniDirectives.NewIniDirectives.max_input_varsFound 'php_post_max_size' => ini_get( 'post_max_size' ), 'php_max_execution_time' => ini_get( 'max_execution_time' ), 'php_memory_limit' => ini_get( 'memory_limit' ), 'zip_installed' => extension_loaded( 'zip' ), 'imagick_availabile' => extension_loaded( 'imagick' ), 'xmlreader_exists' => class_exists( 'XMLReader' ), 'gd_available' => extension_loaded( 'gd' ), 'curl_version' => $this->get_curl_version(), 'curl_ssl_version' => $this->get_curl_ssl_version(), 'is_writable' => $this->is_content_writable(), 'wp_version' => get_bloginfo( 'version' ), 'user_count' => $this->get_user_count(), 'posts_count' => wp_count_posts()->publish, 'page_count' => wp_count_posts( 'page' )->publish, 'site_language' => get_locale(), 'timezone' => wp_timezone_string(), 'is_ssl' => is_ssl(), 'is_multisite' => is_multisite(), 'network_url' => network_site_url(), 'external_object_cache' => (bool) wp_using_ext_object_cache(), 'wp_debug' => WP_DEBUG, 'wp_debug_display' => WP_DEBUG_DISPLAY, 'script_debug' => SCRIPT_DEBUG, 'active_plugins' => $this->get_active_plugins(), 'active_theme' => get_template(), 'active_stylesheet' => get_stylesheet(), ); } /** * Get installed PHP version. * * @return float PHP version. * @since 1.0.0 */ private function get_php_version() { if ( defined( 'PHP_MAJOR_VERSION' ) && defined( 'PHP_MINOR_VERSION' ) && defined( 'PHP_RELEASE_VERSION' ) ) { // phpcs:ignore return PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . '.' . PHP_RELEASE_VERSION; } return phpversion(); } /** * User count on site. * * @return int User count. * @since 1.0.0 */ private function get_user_count() { if ( is_multisite() ) { $user_count = get_user_count(); } else { $count = count_users(); $user_count = $count['total_users']; } return $user_count; } /** * Get active plugin's data. * * @return array active plugin's list. * @since 1.0.0 */ private function get_active_plugins() { if ( ! $this->plugins ) { // Ensure get_plugin_data function is loaded. if ( ! function_exists( 'get_plugin_data' ) ) { require_once ABSPATH . 'wp-admin/includes/plugin.php'; } $plugins = wp_get_active_and_valid_plugins(); $plugins = array_map( 'get_plugin_data', $plugins ); $this->plugins = array_map( array( $this, 'format_plugin' ), $plugins ); } return $this->plugins; } /** * Format plugin data. * * @param string $plugin plugin. * @return array formatted plugin data. * @since 1.0.0 */ public function format_plugin( $plugin ) { return array( 'name' => html_entity_decode( $plugin['Name'], ENT_COMPAT, 'UTF-8' ), 'url' => $plugin['PluginURI'], 'version' => $plugin['Version'], 'slug' => $plugin['TextDomain'], 'author_name' => html_entity_decode( wp_strip_all_tags( $plugin['Author'] ), ENT_COMPAT, 'UTF-8' ), 'author_url' => $plugin['AuthorURI'], ); } /** * Curl SSL version. * * @return float SSL version. * @since 1.0.0 */ private function get_curl_ssl_version() { $curl = array(); if ( function_exists( 'curl_version' ) ) { $curl = curl_version(); // phpcs:ignore WordPress.WP.AlternativeFunctions.curl_curl_version } return isset( $curl['ssl_version'] ) ? $curl['ssl_version'] : false; } /** * Get cURL version. * * @return float cURL version. * @since 1.0.0 */ private function get_curl_version() { if ( function_exists( 'curl_version' ) ) { $curl = curl_version(); // phpcs:ignore WordPress.WP.AlternativeFunctions.curl_curl_version } return isset( $curl['version'] ) ? $curl['version'] : false; } /** * Get MySQL version. * * @return float MySQL version. * @since 1.0.0 */ private function get_mysql_version() { global $wpdb; return $wpdb->db_version(); } /** * Check if content directory is writable. * * @return bool * @since 1.0.0 */ private function is_content_writable() { $upload_dir = wp_upload_dir(); return wp_is_writable( $upload_dir['basedir'] ); } } } /** * Polyfill for sites using WP version less than 5.3 */ if ( ! function_exists( 'wp_timezone_string' ) ) { /** * Get timezone string. * * @return string timezone string. * @since 1.0.0 */ function wp_timezone_string() { $timezone_string = get_option( 'timezone_string' ); if ( $timezone_string ) { return $timezone_string; } $offset = (float) get_option( 'gmt_offset' ); $hours = (int) $offset; $minutes = ( $offset - $hours ); $sign = ( $offset < 0 ) ? '-' : '+'; $abs_hour = abs( $hours ); $abs_mins = abs( $minutes * 60 ); $tz_offset = sprintf( '%s%02d:%02d', $sign, $abs_hour, $abs_mins ); return $tz_offset; } } bsf-analytics/class-bsf-analytics.php 0000644 00000042147 15105342353 0013667 0 ustar 00 <?php /** * BSF analytics class file. * * @version 1.0.0 * * @package bsf-analytics */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if ( ! class_exists( 'BSF_Analytics' ) ) { /** * BSF analytics */ class BSF_Analytics { /** * Member Variable * * @var array Entities data. */ private $entities; /** * Member Variable * * @var string Usage tracking document URL */ public $usage_doc_link = 'https://store.brainstormforce.com/usage-tracking/?utm_source=wp_dashboard&utm_medium=general_settings&utm_campaign=usage_tracking'; /** * Setup actions, load files. * * @param array $args entity data for analytics. * @param string $analytics_path directory path to analytics library. * @param float $analytics_version analytics library version. * @since 1.0.0 */ public function __construct( $args, $analytics_path, $analytics_version ) { // Bail when no analytics entities are registered. if ( empty( $args ) ) { return; } $this->entities = $args; define( 'BSF_ANALYTICS_VERSION', $analytics_version ); define( 'BSF_ANALYTICS_URI', $this->get_analytics_url( $analytics_path ) ); add_action( 'admin_init', array( $this, 'handle_optin_optout' ) ); add_action( 'admin_init', array( $this, 'option_notice' ) ); add_action( 'init', array( $this, 'maybe_track_analytics' ), 99 ); $this->set_actions(); add_action( 'admin_init', array( $this, 'register_usage_tracking_setting' ) ); $this->includes(); $this->load_deactivation_survey_actions(); } /** * Function to load the deactivation survey form actions. * * @since 1.1.6 * @return void */ public function load_deactivation_survey_actions() { // If not in a admin area then return it. if ( ! is_admin() ) { return; } add_filter( 'uds_survey_vars', array( $this, 'add_slugs_to_uds_vars' ) ); add_action( 'admin_footer', array( $this, 'load_deactivation_survey_form' ) ); } /** * Setup actions for admin notice style and analytics cron event. * * @since 1.0.4 */ public function set_actions() { foreach ( $this->entities as $key => $data ) { add_action( 'astra_notice_before_markup_' . $key . '-optin-notice', array( $this, 'enqueue_assets' ) ); add_action( 'update_option_' . $key . '_analytics_optin', array( $this, 'update_analytics_option_callback' ), 10, 3 ); add_action( 'add_option_' . $key . '_analytics_optin', array( $this, 'add_analytics_option_callback' ), 10, 2 ); } } /** * BSF Analytics URL * * @param string $analytics_path directory path to analytics library. * @return String URL of bsf-analytics directory. * @since 1.0.0 */ public function get_analytics_url( $analytics_path ) { $content_dir_path = wp_normalize_path( WP_CONTENT_DIR ); $analytics_path = wp_normalize_path( $analytics_path ); return str_replace( $content_dir_path, content_url(), $analytics_path ); } /** * Enqueue Scripts. * * @since 1.0.0 * @return void */ public function enqueue_assets() { /** * Load unminified if SCRIPT_DEBUG is true. * * Directory and Extensions. */ $dir_name = ( SCRIPT_DEBUG ) ? 'unminified' : 'minified'; $file_rtl = ( is_rtl() ) ? '-rtl' : ''; $css_ext = ( SCRIPT_DEBUG ) ? '.css' : '.min.css'; $css_uri = BSF_ANALYTICS_URI . '/assets/css/' . $dir_name . '/style' . $file_rtl . $css_ext; wp_enqueue_style( 'bsf-analytics-admin-style', $css_uri, false, BSF_ANALYTICS_VERSION, 'all' ); } /** * Send analytics API call. * * @since 1.0.0 */ public function send() { $api_url = BSF_Analytics_Helper::get_api_url(); wp_remote_post( $api_url . 'api/analytics/', array( 'body' => BSF_Analytics_Stats::instance()->get_stats(), 'timeout' => 5, 'blocking' => false, ) ); } /** * Check if usage tracking is enabled. * * @return bool * @since 1.0.0 */ public function is_tracking_enabled() { foreach ( $this->entities as $key => $data ) { $is_enabled = get_site_option( $key . '_analytics_optin' ) === 'yes' ? true : false; $is_enabled = $this->is_white_label_enabled( $key ) ? false : $is_enabled; if ( apply_filters( $key . '_tracking_enabled', $is_enabled ) ) { return true; } } return false; } /** * Check if WHITE label is enabled for BSF products. * * @param string $source source of analytics. * @return bool * @since 1.0.0 */ public function is_white_label_enabled( $source ) { $options = apply_filters( $source . '_white_label_options', array() ); $is_enabled = false; if ( is_array( $options ) ) { foreach ( $options as $option ) { if ( true === $option ) { $is_enabled = true; break; } } } return $is_enabled; } /** * Display admin notice for usage tracking. * * @since 1.0.0 */ public function option_notice() { if ( ! current_user_can( 'manage_options' ) ) { return; } if( $this->is_tracking_enabled() ) { return; // Don't need to display notice if any of our plugin already have the permission. } // If the user has opted out of tracking, don't show the notice till 7 days. if ( get_site_option( 'bsf_analytics_last_displayed_time' ) > time() - ( 7 * DAY_IN_SECONDS ) ) { return; // Don't display the notice if it was displayed recently. } foreach ( $this->entities as $key => $data ) { $time_to_display = isset( $data['time_to_display'] ) ? $data['time_to_display'] : '+24 hours'; $usage_doc_link = isset( $data['usage_doc_link'] ) ? $data['usage_doc_link'] : $this->usage_doc_link; // Don't display the notice if tracking is disabled or White Label is enabled for any of our plugins. if ( false !== get_site_option( $key . '_analytics_optin', false ) || $this->is_white_label_enabled( $key ) ) { continue; } // Show tracker consent notice after 24 hours from installed time. if ( strtotime( $time_to_display, $this->get_analytics_install_time( $key ) ) > time() ) { continue; } /* translators: %s product name */ $notice_string = sprintf( __( 'Help us improve %1$s and our other products!<br><br>With your permission, we\'d like to collect <strong>non-sensitive information</strong> from your website — like your PHP version and which features you use — so we can fix bugs faster, make smarter decisions, and build features that actually matter to you. <em>No personal info. Ever.</em>', 'astra-sites' ), '<strong>' . esc_html( $data['product_name'] ) . '</strong>' ); if ( is_multisite() ) { $notice_string .= __( 'This will be applicable for all sites from the network.', 'astra-sites' ); } $language_dir = is_rtl() ? 'rtl' : 'ltr'; Astra_Notices::add_notice( array( 'id' => $key . '-optin-notice', 'type' => '', 'message' => sprintf( '<div class="notice-content"> <div class="notice-heading"> %1$s </div> <div class="astra-notices-container"> <a href="%2$s" class="astra-notices button-primary"> %3$s </a> <a href="%4$s" data-repeat-notice-after="%5$s" class="astra-notices button-secondary"> %6$s </a> </div> </div>', /* translators: %s usage doc link */ sprintf( $notice_string . '<span dir="%1s"><a href="%2s" target="_blank" rel="noreferrer noopener">%3s</a><span><br><br>', $language_dir, esc_url( $usage_doc_link ), __( ' Know More.', 'astra-sites' ) ), esc_url( add_query_arg( array( $key . '_analytics_optin' => 'yes', $key . '_analytics_nonce' => wp_create_nonce( $key . '_analytics_optin' ), 'bsf_analytics_source' => $key, ) ) ), __( 'Yes! Allow it', 'astra-sites' ), esc_url( add_query_arg( array( $key . '_analytics_optin' => 'no', $key . '_analytics_nonce' => wp_create_nonce( $key . '_analytics_optin' ), 'bsf_analytics_source' => $key, ) ) ), MONTH_IN_SECONDS, __( 'No Thanks', 'astra-sites' ) ), 'show_if' => true, 'repeat-notice-after' => false, 'priority' => 18, 'display-with-other-notices' => true, ) ); return; } } /** * Process usage tracking opt out. * * @since 1.0.0 */ public function handle_optin_optout() { if ( ! current_user_can( 'manage_options' ) ) { return; } $source = isset( $_GET['bsf_analytics_source'] ) ? sanitize_text_field( wp_unslash( $_GET['bsf_analytics_source'] ) ) : ''; if ( ! isset( $_GET[ $source . '_analytics_nonce' ] ) ) { return; } if ( ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET[ $source . '_analytics_nonce' ] ) ), $source . '_analytics_optin' ) ) { return; } $optin_status = isset( $_GET[ $source . '_analytics_optin' ] ) ? sanitize_text_field( wp_unslash( $_GET[ $source . '_analytics_optin' ] ) ) : ''; if ( 'yes' === $optin_status ) { $this->optin( $source ); } elseif ( 'no' === $optin_status ) { $this->optout( $source ); } wp_safe_redirect( esc_url_raw( remove_query_arg( array( $source . '_analytics_optin', $source . '_analytics_nonce', 'bsf_analytics_source', ) ) ) ); } /** * Opt in to usage tracking. * * @param string $source source of analytics. * @since 1.0.0 */ private function optin( $source ) { update_site_option( $source . '_analytics_optin', 'yes' ); } /** * Opt out to usage tracking. * * @param string $source source of analytics. * @since 1.0.0 */ private function optout( $source ) { update_site_option( $source . '_analytics_optin', 'no' ); update_site_option( 'bsf_analytics_last_displayed_time', time() ); } /** * Load analytics stat class. * * @since 1.0.0 */ private function includes() { require_once __DIR__ . '/classes/class-bsf-analytics-helper.php'; require_once __DIR__ . '/class-bsf-analytics-stats.php'; // Loads all the modules. require_once __DIR__ . '/modules/deactivation-survey/classes/class-deactivation-survey-feedback.php'; require_once __DIR__ . '/modules/utm-analytics.php'; } /** * Register usage tracking option in General settings page. * * @since 1.0.0 */ public function register_usage_tracking_setting() { foreach ( $this->entities as $key => $data ) { if ( ! apply_filters( $key . '_tracking_enabled', true ) || $this->is_white_label_enabled( $key ) ) { return; } /** * Introducing a new key 'hide_optin_checkbox, which allows individual plugin to hide optin checkbox * If they are providing providing in-plugin option to manage this option. * from General > Settings page. * * @since 1.1.14 */ if( ! empty( $data['hide_optin_checkbox'] ) && true === $data['hide_optin_checkbox'] ) { continue; } $usage_doc_link = isset( $data['usage_doc_link'] ) ? $data['usage_doc_link'] : $this->usage_doc_link; $author = isset( $data['author'] ) ? $data['author'] : 'Brainstorm Force'; register_setting( 'general', // Options group. $key . '_analytics_optin', // Option name/database. array( 'sanitize_callback' => array( $this, 'sanitize_option' ) ) // sanitize callback function. ); add_settings_field( $key . '-analytics-optin', // Field ID. __( 'Usage Tracking', 'astra-sites' ), // Field title. array( $this, 'render_settings_field_html' ), // Field callback function. 'general', 'default', // Settings page slug. array( 'type' => 'checkbox', 'title' => $author, 'name' => $key . '_analytics_optin', 'label_for' => $key . '-analytics-optin', 'id' => $key . '-analytics-optin', 'usage_doc_link' => $usage_doc_link, ) ); } } /** * Sanitize Callback Function * * @param bool $input Option value. * @since 1.0.0 */ public function sanitize_option( $input ) { if ( ! $input || 'no' === $input ) { return 'no'; } return 'yes'; } /** * Print settings field HTML. * * @param array $args arguments to field. * @since 1.0.0 */ public function render_settings_field_html( $args ) { ?> <fieldset> <label for="<?php echo esc_attr( $args['label_for'] ); ?>"> <input id="<?php echo esc_attr( $args['id'] ); ?>" type="checkbox" value="1" name="<?php echo esc_attr( $args['name'] ); ?>" <?php checked( get_site_option( $args['name'], 'no' ), 'yes' ); ?>> <?php /* translators: %s Product title */ echo esc_html( sprintf( __( 'Allow %s products to track non-sensitive usage tracking data.', 'astra-sites' ), $args['title'] ) );// phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText if ( is_multisite() ) { esc_html_e( ' This will be applicable for all sites from the network.', 'astra-sites' ); } ?> </label> <?php echo wp_kses_post( sprintf( '<a href="%1s" target="_blank" rel="noreferrer noopener">%2s</a>', esc_url( $args['usage_doc_link'] ), __( 'Learn More.', 'astra-sites' ) ) ); ?> </fieldset> <?php } /** * Set analytics installed time in option. * * @param string $source source of analytics. * @return string $time analytics installed time. * @since 1.0.0 */ private function get_analytics_install_time( $source ) { $time = get_site_option( $source . '_analytics_installed_time' ); if ( ! $time ) { $time = time(); update_site_option( $source . '_analytics_installed_time', time() ); } return $time; } /** * Schedule/unschedule cron event on updation of option. * * @param string $old_value old value of option. * @param string $value value of option. * @param string $option Option name. * @since 1.0.0 */ public function update_analytics_option_callback( $old_value, $value, $option ) { if ( is_multisite() ) { $this->add_option_to_network( $option, $value ); } } /** * Analytics option add callback. * * @param string $option Option name. * @param string $value value of option. * @since 1.0.0 */ public function add_analytics_option_callback( $option, $value ) { if ( is_multisite() ) { $this->add_option_to_network( $option, $value ); } } /** * Send analytics track event if tracking is enabled. * * @since 1.0.0 */ public function maybe_track_analytics() { if ( ! $this->is_tracking_enabled() ) { return; } $analytics_track = get_site_transient( 'bsf_analytics_track' ); // If the last data sent is 2 days old i.e. transient is expired. if ( ! $analytics_track ) { $this->send(); set_site_transient( 'bsf_analytics_track', true, 2 * DAY_IN_SECONDS ); } } /** * Save analytics option to network. * * @param string $option name of option. * @param string $value value of option. * @since 1.0.0 */ public function add_option_to_network( $option, $value ) { // If action coming from general settings page. if ( isset( $_POST['option_page'] ) && 'general' === $_POST['option_page'] ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing if ( get_site_option( $option ) ) { update_site_option( $option, $value ); } else { add_site_option( $option, $value ); } } } /** * Function to load the deactivation survey form on the admin footer. * * This function checks if the Deactivation_Survey_Feedback class exists and if so, it loads the deactivation survey form. * The form is configured with specific settings for plugin. Example: For CartFlows, including the source, logo, plugin slug, title, support URL, description, and the screen on which to show the form. * * @since 1.1.6 * @return void */ public function load_deactivation_survey_form() { if ( class_exists( 'Deactivation_Survey_Feedback' ) ) { foreach ( $this->entities as $key => $data ) { // If the deactivation_survey info in available then only add the form. if ( ! empty( $data['deactivation_survey'] ) && is_array( $data['deactivation_survey'] ) ) { foreach ( $data['deactivation_survey'] as $key => $survey_args ) { Deactivation_Survey_Feedback::show_feedback_form( $survey_args ); } } } } } /** * Function to add plugin slugs to Deactivation Survey vars for JS operations. * * @param array $vars UDS vars array. * @return array Modified UDS vars array with plugin slugs. * @since 1.1.6 */ public function add_slugs_to_uds_vars( $vars ) { foreach ( $this->entities as $key => $data ) { if ( ! empty( $data['deactivation_survey'] ) && is_array( $data['deactivation_survey'] ) ) { foreach ( $data['deactivation_survey'] as $key => $survey_args ) { $vars['_plugin_slug'] = isset( $vars['_plugin_slug'] ) ? array_merge( $vars['_plugin_slug'], array( $survey_args['plugin_slug'] ) ) : array( $survey_args['plugin_slug'] ); } } } return $vars; } } } bsf-analytics/classes/class-bsf-analytics-helper.php 0000644 00000005462 15105342353 0016600 0 ustar 00 <?php /** * BSF analytics Helper Class File. * * @package bsf-analytics */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if ( ! class_exists( 'BSF_Analytics_Helper' ) ) { /** * BSF analytics stat class. */ class BSF_Analytics_Helper { /** * Check is error in the received response. * * @param object $response Received API Response. * @return array $result Error result. */ public static function is_api_error( $response ) { $result = array( 'error' => false, 'error_message' => __( 'Oops! Something went wrong. Please refresh the page and try again.', 'astra-sites' ), 'error_code' => 0, ); if ( is_wp_error( $response ) ) { $result['error'] = true; $result['error_message'] = $response->get_error_message(); $result['error_code'] = $response->get_error_code(); } elseif ( ! empty( wp_remote_retrieve_response_code( $response ) ) && ! in_array( wp_remote_retrieve_response_code( $response ), array( 200, 201, 204 ), true ) ) { $result['error'] = true; $result['error_message'] = wp_remote_retrieve_response_message( $response ); $result['error_code'] = wp_remote_retrieve_response_code( $response ); } return $result; } /** * Get API headers * * @since 1.1.6 * @return array<string, string> */ public static function get_api_headers() { return array( 'Content-Type' => 'application/json', 'Accept' => 'application/json', ); } /** * Get API URL for sending analytics. * * @return string API URL. * @since 1.0.0 */ public static function get_api_url() { return defined( 'BSF_ANALYTICS_API_BASE_URL' ) ? BSF_ANALYTICS_API_BASE_URL : 'https://analytics.brainstormforce.com/'; } /** * Check if the current screen is allowed for the survey. * * This function checks if the current screen is one of the allowed screens for displaying the survey. * It uses the `get_current_screen` function to get the current screen information and compares it with the list of allowed screens. * * @since 1.1.6 * @return bool True if the current screen is allowed, false otherwise. */ public static function is_allowed_screen() { // This filter allows to dynamically modify the list of allowed screens for the survey. $allowed_screens = apply_filters( 'uds_survey_allowed_screens', array( 'plugins' ) ); $current_screen = get_current_screen(); // Check if $current_screen is a valid object before accessing its properties. if ( ! is_object( $current_screen ) ) { return false; // Return false if current screen is not valid. } $screen_id = $current_screen->id; if ( ! empty( $screen_id ) && in_array( $screen_id, $allowed_screens, true ) ) { return true; } return false; } } } bsf-analytics/assets/css/unminified/style.css 0000644 00000000561 15105342353 0015401 0 ustar 00 [ID*="-optin-notice"] { padding: 1px 12px; border-left-color: #007cba; } [ID*="-optin-notice"] .notice-container { padding-top: 10px; padding-bottom: 12px; } [ID*="-optin-notice"] .notice-content { margin: 0; } [ID*="-optin-notice"] .notice-heading { padding: 0 20px 12px 0; } [ID*="-optin-notice"] .button-primary { margin-right: 5px; } bsf-analytics/assets/css/unminified/style-rtl.css 0000644 00000000561 15105342353 0016200 0 ustar 00 [ID*="-optin-notice"] { padding: 1px 12px; border-right-color: #007cba; } [ID*="-optin-notice"] .notice-container { padding-top: 10px; padding-bottom: 12px; } [ID*="-optin-notice"] .notice-content { margin: 0; } [ID*="-optin-notice"] .notice-heading { padding: 0 0 12px 20px; } [ID*="-optin-notice"] .button-primary { margin-left: 5px; } bsf-analytics/assets/css/minified/style-rtl.min.css 0000644 00000000460 15105342353 0016415 0 ustar 00 [ID*="-optin-notice"]{padding:1px 12px;border-right-color:#007cba}[ID*="-optin-notice"] .notice-container{padding-top:10px;padding-bottom:12px}[ID*="-optin-notice"] .notice-content{margin:0}[ID*="-optin-notice"] .notice-heading{padding:0 0 12px 20px}[ID*="-optin-notice"] .button-primary{margin-left:5px} bsf-analytics/assets/css/minified/style.min.css 0000644 00000000460 15105342353 0015616 0 ustar 00 [ID*="-optin-notice"]{padding:1px 12px;border-left-color:#007cba}[ID*="-optin-notice"] .notice-container{padding-top:10px;padding-bottom:12px}[ID*="-optin-notice"] .notice-content{margin:0}[ID*="-optin-notice"] .notice-heading{padding:0 20px 12px 0}[ID*="-optin-notice"] .button-primary{margin-right:5px} class-astra-admin-loader.php 0000644 00000003736 15105354057 0012042 0 ustar 00 <?php /** * Astra Admin Loader * * @package Astra * @since 4.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if ( ! class_exists( 'Astra_Admin_Loader' ) ) { /** * Astra_Admin_Loader * * @since 4.0.0 */ class Astra_Admin_Loader { /** * Instance * * @var null $instance * @since 4.0.0 */ private static $instance; /** * Initiator * * @since 4.0.0 * @return object initialized object of class. */ public static function get_instance() { if ( ! isset( self::$instance ) ) { /** @psalm-suppress InvalidPropertyAssignmentValue */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort self::$instance = new self(); /** @psalm-suppress InvalidPropertyAssignmentValue */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort } return self::$instance; } /** * Constructor * * @since 4.0.0 */ public function __construct() { define( 'ASTRA_THEME_ADMIN_DIR', ASTRA_THEME_DIR . 'admin/' ); define( 'ASTRA_THEME_ADMIN_URL', ASTRA_THEME_URI . 'admin/' ); $this->includes(); } /** * Include required classes. * * @since 4.0.0 */ public function includes() { /* Ajax init */ require_once ASTRA_THEME_ADMIN_DIR . 'includes/class-astra-admin-ajax.php'; // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound -- Not a template file so loading in a normal way. /* Setup Menu */ require_once ASTRA_THEME_ADMIN_DIR . 'includes/class-astra-menu.php'; // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound -- Not a template file so loading in a normal way. require_once ASTRA_THEME_ADMIN_DIR . 'includes/class-astra-theme-builder-free.php'; // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound -- Not a template file so loading in a normal way. /* BSF Analytics */ require_once ASTRA_THEME_ADMIN_DIR . 'class-astra-bsf-analytics.php'; } } } Astra_Admin_Loader::get_instance(); includes/class-astra-theme-builder-free.php 0000644 00000015417 15105354057 0014760 0 ustar 00 <?php /** * Site Builder Free Version Preview. * * @package Astra */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if ( ! class_exists( 'Astra_Theme_Builder_Free' ) ) { define( 'ASTRA_THEME_BUILDER_FREE_DIR', ASTRA_THEME_DIR . 'admin/assets/theme-builder/' ); define( 'ASTRA_THEME_BUILDER_FREE_URI', ASTRA_THEME_URI . 'admin/assets/theme-builder/' ); /** * Site Builder initial setup. * * @since 4.5.0 */ class Astra_Theme_Builder_Free { /** * Member Variable * * @var null $instance */ private static $instance; /** * Initiator * * @since 4.5.0 */ public static function get_instance() { if ( ! isset( self::$instance ) ) { /** @psalm-suppress InvalidPropertyAssignmentValue */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort self::$instance = new self(); /** @psalm-suppress InvalidPropertyAssignmentValue */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort } return self::$instance; } /** * Constructor * * @since 4.5.0 * @return void */ public function __construct() { $is_astra_addon_active = defined( 'ASTRA_EXT_VER' ); if ( ! $is_astra_addon_active ) { add_action( 'admin_enqueue_scripts', array( $this, 'theme_builder_admin_enqueue_scripts' ) ); add_action( 'admin_body_class', array( $this, 'admin_body_class' ) ); add_action( 'admin_menu', array( $this, 'setup_menu' ) ); add_action( 'admin_init', array( $this, 'astra_theme_builder_disable_notices' ) ); } add_action( 'admin_page_access_denied', array( $this, 'astra_theme_builder_access_denied_redirect' ) ); } /** * Enqueue scripts and styles. * * @since 4.5.0 * @return void */ public function theme_builder_admin_enqueue_scripts() { $file_prefix = ''; if ( is_rtl() ) { $file_prefix .= '.rtl'; } wp_enqueue_style( 'astra-theme-builder-style', ASTRA_THEME_BUILDER_FREE_URI . 'build/index' . $file_prefix . '.css', array(), ASTRA_THEME_VERSION ); wp_enqueue_script( 'astra-theme-builder-script', ASTRA_THEME_BUILDER_FREE_URI . 'build/index.js', array( 'wp-element' ), ASTRA_THEME_VERSION, true ); wp_enqueue_style( 'dashicons' ); $astra_addon_locale = ASTRA_THEME_ORG_VERSION ? 'astra-addon/astra-addon.php' : 'astra-pro/astra-pro.php'; $localized_data = array( 'title' => esc_html__( 'Site Builder', 'astra' ), 'rest_url' => '/wp-json/astra-addon/v1/custom-layouts/', 'new_custom_layout_base_url' => admin_url( 'post-new.php?post_type=astra-advanced-hook' ), 'astra_pricing_page_url' => astra_get_pro_url( '/pricing/', 'free-theme', 'site-builder', 'upgrade' ), 'astra_docs_page_url' => astra_get_pro_url( '/docs/custom-layouts-pro/', 'free-theme', 'site-builder', 'documentation' ), 'astra_base_url' => admin_url( 'admin.php?page=' . Astra_Menu::get_theme_page_slug() ), ); wp_localize_script( 'astra-theme-builder-script', 'astra_theme_builder', $localized_data ); wp_set_script_translations( 'astra-theme-builder-script', 'astra' ); $localize = array( 'pro_installed_status' => 'installed' === Astra_Menu::get_plugin_status( $astra_addon_locale ) ? true : false, 'ajax_url' => admin_url( 'admin-ajax.php' ), 'upgrade_url' => astra_get_upgrade_url( 'dashboard' ), 'astra_base_url' => admin_url( 'admin.php?page=' . Astra_Menu::get_theme_page_slug() ), 'update_nonce' => wp_create_nonce( 'astra_update_admin_setting' ), 'plugin_manager_nonce' => wp_create_nonce( 'astra_plugin_manager_nonce' ), 'plugin_installer_nonce' => wp_create_nonce( 'updates' ), 'plugin_installing_text' => esc_html__( 'Installing', 'astra' ), 'plugin_installed_text' => esc_html__( 'Installed', 'astra' ), 'plugin_activating_text' => esc_html__( 'Activating', 'astra' ), 'plugin_activated_text' => esc_html__( 'Activated', 'astra' ), 'plugin_activate_text' => esc_html__( 'Activate', 'astra' ), ); wp_localize_script( 'astra-theme-builder-script', 'astra_admin', $localize ); } /** * Admin Body Classes * * @since 4.5.0 * @param string $classes Space separated class string. */ public function admin_body_class( $classes = '' ) { $theme_builder_class = isset( $_GET['page'] ) && 'theme-builder-free' === $_GET['page'] ? 'ast-theme-builder' : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Fetching a $_GET value, no nonce available to validate. $classes .= ' ' . $theme_builder_class . ' '; return $classes; } /** * Renders the admin settings. * * @since 4.5.0 * @return void */ public function render_theme_builder() { ?> <div class="ast-tb-menu-page-wrapper"> <div id="ast-tb-menu-page"> <div class="ast-tb-menu-page-content"> <div id="ast-tb-app-root" class="ast-tb-app-root"></div> </div> </div> </div> <?php } /** * Setup menu. * * @since 4.5.0 * @return void */ public function setup_menu() { add_submenu_page( // phpcs:ignore WPThemeReview.PluginTerritory.NoAddAdminPages.add_menu_pages_add_submenu_page -- Taken the menu on top level 'astra', __( 'Site Builder', 'astra' ), __( 'Site Builder', 'astra' ), 'manage_options', 'theme-builder-free', array( $this, 'render_theme_builder' ), 2 ); } /** * Disable notices for Site Builder page. * * @since 4.5.0 * @return void */ public function astra_theme_builder_disable_notices() { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Fetching a $_GET value, no nonce available to validate. if ( isset( $_GET['page'] ) && 'theme-builder-free' === $_GET['page'] ) { remove_all_actions( 'admin_notices' ); remove_all_actions( 'all_admin_notices' ); // For older versions of WordPress } } /** * Redirect to Site Builder pro from free preview if pro module is active. * * @since 4.5.0 * @return void */ public function astra_theme_builder_access_denied_redirect() { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Fetching a $_GET value, no nonce available to validate. if ( isset( $_GET['page'] ) && 'theme-builder-free' === $_GET['page'] ) { /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $is_astra_addon_active = ( defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'advanced-hooks' ) ); /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( $is_astra_addon_active ) { wp_safe_redirect( admin_url( 'admin.php?page=theme-builder' ) ); exit; } } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Theme_Builder_Free::get_instance(); } includes/class-astra-admin-ajax.php 0000644 00000035002 15105354057 0013314 0 ustar 00 <?php /** * Astra Admin Ajax Base. * * @package Astra * @since 4.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Class Astra_Admin_Ajax. * * @since 4.0.0 */ class Astra_Admin_Ajax { /** * Ajax action prefix. * * @var string * @since 4.0.0 */ private $prefix = 'astra'; /** * Instance * * @var null $instance * @since 4.0.0 */ private static $instance; /** * Initiator * * @since 4.0.0 * @return object initialized object of class. */ public static function get_instance() { if ( ! isset( self::$instance ) ) { /** @psalm-suppress InvalidPropertyAssignmentValue */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort self::$instance = new self(); /** @psalm-suppress InvalidPropertyAssignmentValue */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort } return self::$instance; } /** * Errors class instance. * * @var array * @since 4.0.0 */ private $errors = array(); /** * Constructor * * @since 4.0.0 */ public function __construct() { add_action( 'init', function() { $this->errors = array( 'permission' => esc_html__( 'Sorry, you are not allowed to do this operation.', 'astra' ), 'nonce' => esc_html__( 'Nonce validation failed', 'astra' ), 'default' => esc_html__( 'Sorry, something went wrong.', 'astra' ), 'invalid' => esc_html__( 'No post data found!', 'astra' ), ); } ); add_action( 'wp_ajax_ast_disable_pro_notices', array( $this, 'disable_astra_pro_notices' ) ); add_action( 'wp_ajax_astra_recommended_plugin_install', array( $this, 'required_plugin_install' ) ); add_action( 'wp_ajax_ast_migrate_to_builder', array( $this, 'migrate_to_builder' ) ); add_action( 'wp_ajax_astra_update_admin_setting', array( $this, 'astra_update_admin_setting' ) ); add_action( 'wp_ajax_astra_analytics_optin_status', array( $this, 'astra_analytics_optin_status' ) ); add_action( 'wp_ajax_astra_recommended_plugin_activate', array( $this, 'required_plugin_activate' ) ); add_action( 'wp_ajax_astra_recommended_plugin_deactivate', array( $this, 'required_plugin_deactivate' ) ); } /** * Return boolean settings for admin dashboard app. * * @return array * @since 4.0.0 */ public function astra_admin_settings_typewise() { return apply_filters( 'astra_admin_settings_datatypes', array( 'self_hosted_gfonts' => 'bool', 'preload_local_fonts' => 'bool', 'use_old_header_footer' => 'bool', ) ); } /** * Disable pro upgrade notice from all over in Astra. * * @since 4.0.0 */ public function disable_astra_pro_notices() { $response_data = array( 'message' => $this->get_error_msg( 'permission' ) ); if ( ! current_user_can( 'manage_options' ) ) { wp_send_json_error( $response_data ); } if ( empty( $_POST ) ) { $response_data = array( 'message' => $this->get_error_msg( 'invalid' ) ); wp_send_json_error( $response_data ); } /** * Nonce verification. */ if ( ! check_ajax_referer( 'astra_update_admin_setting', 'security', false ) ) { $response_data = array( 'message' => $this->get_error_msg( 'nonce' ) ); wp_send_json_error( $response_data ); } if ( ! current_user_can( 'manage_options' ) ) { wp_send_json_error( esc_html__( 'You don\'t have the access', 'astra' ) ); } /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $migrate = isset( $_POST['status'] ) ? sanitize_key( $_POST['status'] ) : ''; /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $migrate = 'true' === $migrate ? true : false; astra_update_option( 'ast-disable-upgrade-notices', $migrate ); wp_send_json_success(); } /** * Migrate to New Header Builder * * @since 4.0.0 */ public function migrate_to_builder() { $response_data = array( 'message' => $this->get_error_msg( 'permission' ) ); if ( ! current_user_can( 'manage_options' ) ) { wp_send_json_error( $response_data ); } if ( empty( $_POST ) ) { $response_data = array( 'message' => $this->get_error_msg( 'invalid' ) ); wp_send_json_error( $response_data ); } /** * Nonce verification. */ if ( ! check_ajax_referer( 'astra_update_admin_setting', 'security', false ) ) { $response_data = array( 'message' => $this->get_error_msg( 'nonce' ) ); wp_send_json_error( $response_data ); } /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $migrate = isset( $_POST['status'] ) ? sanitize_key( $_POST['status'] ) : ''; /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $migrate = 'true' === $migrate ? true : false; /** @psalm-suppress InvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $migration_flag = astra_get_option( 'v3-option-migration', false ); astra_update_option( 'is-header-footer-builder', $migrate ); if ( $migrate && false === $migration_flag ) { require_once ASTRA_THEME_DIR . 'inc/theme-update/astra-builder-migration-updater.php'; // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound astra_header_builder_migration(); } wp_send_json_success(); } /** * Save settings. * * @return void * @since 4.0.0 */ public function astra_update_admin_setting() { $response_data = array( 'message' => $this->get_error_msg( 'permission' ) ); if ( ! current_user_can( 'manage_options' ) ) { wp_send_json_error( $response_data ); } if ( empty( $_POST ) ) { $response_data = array( 'message' => $this->get_error_msg( 'invalid' ) ); wp_send_json_error( $response_data ); } /** * Nonce verification. */ if ( ! check_ajax_referer( 'astra_update_admin_setting', 'security', false ) ) { $response_data = array( 'message' => $this->get_error_msg( 'nonce' ) ); wp_send_json_error( $response_data ); } $get_bool_settings = $this->astra_admin_settings_typewise(); /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $sub_option_key = isset( $_POST['key'] ) ? sanitize_text_field( wp_unslash( $_POST['key'] ) ) : ''; /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $sub_option_value = ''; // @codingStandardsIgnoreStart if ( isset( $get_bool_settings[ $sub_option_key ] ) ) { if ( 'bool' === $get_bool_settings[ $sub_option_key ] ) { /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $val = isset( $_POST['value'] ) && 'true' === sanitize_text_field( $_POST['value'] ) ? true : false; /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $sub_option_value = $val; } else { /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $val = isset( $_POST['value'] ) ? sanitize_text_field( wp_unslash( $_POST['value'] ) ) : ''; /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $sub_option_value = $val; } } // @codingStandardsIgnoreEnd Astra_API_Init::update_admin_settings_option( $sub_option_key, $sub_option_value ); $response_data = array( 'message' => esc_html__( 'Successfully saved data!', 'astra' ), ); wp_send_json_success( $response_data ); } /** * Astra Analytics Opt-in. * * @return void * @since 4.10.0 */ public function astra_analytics_optin_status() { $response_data = array( 'message' => $this->get_error_msg( 'permission' ) ); if ( ! current_user_can( 'manage_options' ) ) { wp_send_json_error( $response_data ); } if ( empty( $_POST ) ) { $response_data = array( 'message' => $this->get_error_msg( 'invalid' ) ); wp_send_json_error( $response_data ); } /* Nonce verification */ if ( ! check_ajax_referer( 'astra_update_admin_setting', 'security', false ) ) { $response_data = array( 'message' => $this->get_error_msg( 'nonce' ) ); wp_send_json_error( $response_data ); } $opt_in = filter_input( INPUT_POST, 'value', FILTER_VALIDATE_BOOLEAN ) ? 'yes' : 'no'; update_site_option( 'astra_analytics_optin', $opt_in ); $response_data = array( 'message' => esc_html__( 'Successfully saved data!', 'astra' ), ); wp_send_json_success( $response_data ); } /** * Get ajax error message. * * @param string $type Message type. * @return string * @since 4.0.0 */ public function get_error_msg( $type ) { if ( ! isset( $this->errors[ $type ] ) ) { $type = 'default'; } return $this->errors[ $type ]; } /** * Handles the installation and saving of required plugins. * * This function is responsible for installing and saving required plugins for the Astra theme. * It checks for the plugin slug in the AJAX request, verifies the nonce, and initiates the plugin installation process. * If the plugin is successfully installed, it schedules a database update to map the plugin slug to a custom key for analytics tracking. * * @since 4.8.12 */ public function required_plugin_install() { check_ajax_referer( 'updates', '_ajax_nonce' ); // Fetching the plugin slug from the AJAX request. // @psalm-suppress PossiblyInvalidArgument $plugin_slug = isset( $_POST['slug'] ) && is_string( $_POST['slug'] ) ? sanitize_text_field( wp_unslash( $_POST['slug'] ) ) : ''; if ( empty( $plugin_slug ) ) { wp_send_json_error( array( 'message' => __( 'Plugin slug is missing.', 'astra' ) ) ); } // Schedule the database update if the plugin is installed successfully. add_action( 'shutdown', static function () use ( $plugin_slug ) { // Iterate through all plugins to check if the installed plugin matches the current plugin slug. $all_plugins = get_plugins(); foreach ( $all_plugins as $plugin_file => $_ ) { if ( is_callable( 'BSF_UTM_Analytics::update_referer' ) && strpos( $plugin_file, $plugin_slug . '/' ) === 0 ) { // If the plugin is found and the update_referer function is callable, update the referer with the corresponding product slug. BSF_UTM_Analytics::update_referer( 'astra', $plugin_slug ); return; } } } ); if ( function_exists( 'wp_ajax_install_plugin' ) ) { // @psalm-suppress NoValue wp_ajax_install_plugin(); } else { wp_send_json_error( array( 'message' => __( 'Plugin installation function not found.', 'astra' ) ) ); } } /** * Required Plugin Activate * * @since 1.2.4 */ public function required_plugin_activate() { $response_data = array( 'message' => $this->get_error_msg( 'permission' ) ); if ( ! current_user_can( 'manage_options' ) ) { wp_send_json_error( $response_data ); } if ( empty( $_POST ) ) { $response_data = array( 'message' => $this->get_error_msg( 'invalid' ) ); wp_send_json_error( $response_data ); } /** * Nonce verification. */ if ( ! check_ajax_referer( 'astra_plugin_manager_nonce', 'security', false ) ) { $response_data = array( 'message' => $this->get_error_msg( 'nonce' ) ); wp_send_json_error( $response_data ); } /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( ! current_user_can( 'install_plugins' ) || ! isset( $_POST['init'] ) || ! sanitize_text_field( wp_unslash( $_POST['init'] ) ) ) { /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort wp_send_json_error( array( 'success' => false, 'message' => esc_html__( 'No plugin specified', 'astra' ), ) ); } /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $plugin_init = isset( $_POST['init'] ) ? sanitize_text_field( wp_unslash( $_POST['init'] ) ) : ''; /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $activate = activate_plugin( $plugin_init ); if ( is_wp_error( $activate ) ) { /** @psalm-suppress PossiblyNullReference */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort wp_send_json_error( array( 'success' => false, 'message' => $activate->get_error_message(), ) ); /** @psalm-suppress PossiblyNullReference */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort } /** * Added this flag as tracker to track onboarding and funnel stats for SureCart owners. * * @since 4.7.0 */ if ( 'surecart/surecart.php' === $plugin_init ) { update_option( 'surecart_source', 'astra', false ); } wp_send_json_success( array( 'success' => true, 'message' => esc_html__( 'Plugin Successfully Activated', 'astra' ), ) ); } /** * Required Plugin Activate * * @since 1.2.4 */ public function required_plugin_deactivate() { $response_data = array( 'message' => $this->get_error_msg( 'permission' ) ); if ( ! current_user_can( 'manage_options' ) ) { wp_send_json_error( $response_data ); } if ( empty( $_POST ) ) { $response_data = array( 'message' => $this->get_error_msg( 'invalid' ) ); wp_send_json_error( $response_data ); } /** * Nonce verification. */ if ( ! check_ajax_referer( 'astra_plugin_manager_nonce', 'security', false ) ) { $response_data = array( 'message' => $this->get_error_msg( 'nonce' ) ); wp_send_json_error( $response_data ); } /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( ! current_user_can( 'install_plugins' ) || ! isset( $_POST['init'] ) || ! sanitize_text_field( wp_unslash( $_POST['init'] ) ) ) { /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort wp_send_json_error( array( 'success' => false, 'message' => esc_html__( 'No plugin specified', 'astra' ), ) ); } /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $plugin_init = isset( $_POST['init'] ) ? sanitize_text_field( wp_unslash( $_POST['init'] ) ) : ''; /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $deactivate = deactivate_plugins( $plugin_init ); if ( is_wp_error( $deactivate ) ) { wp_send_json_error( array( 'success' => false, 'message' => $deactivate->get_error_message(), ) ); } wp_send_json_success( array( 'success' => true, 'message' => esc_html__( 'Plugin Successfully Deactivated', 'astra' ), ) ); } } Astra_Admin_Ajax::get_instance(); includes/class-astra-api-init.php 0000644 00000010471 15105354057 0013020 0 ustar 00 <?php /** * Class Astra_API_Init. * * @package Astra * @since 4.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } // Bail if WP_REST_Controller class does not exist. if ( ! class_exists( 'WP_REST_Controller' ) ) { return; } /** * Astra_API_Init. * * @since 4.1.0 */ class Astra_API_Init extends WP_REST_Controller { /** * Instance * * @var null $instance * @since 4.0.0 */ private static $instance; /** * Initiator * * @since 4.0.0 * @return object initialized object of class. */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Namespace. * * @var string */ protected $namespace = 'astra/v1'; /** * Route base. * * @var string */ protected $rest_base = '/admin/settings/'; /** * Option name * * @var string $option_name DB option name. * @since 4.0.0 */ private static $option_name = 'astra_admin_settings'; /** * Admin settings dataset * * @var array $astra_admin_settings Settings array. * @since 4.0.0 */ private static $astra_admin_settings = array(); /** * Constructor * * @since 4.0.0 */ public function __construct() { self::$astra_admin_settings = get_option( self::$option_name, array() ); // REST API extensions init. add_action( 'rest_api_init', array( $this, 'register_routes' ) ); } /** * Register API routes. * * @since 4.0.0 */ public function register_routes() { register_rest_route( $this->namespace, $this->rest_base, array( array( 'methods' => WP_REST_Server::READABLE, 'callback' => array( $this, 'get_admin_settings' ), 'permission_callback' => array( $this, 'get_permissions_check' ), 'args' => array(), ), 'schema' => array( $this, 'get_public_item_schema' ), ) ); } /** * Get common settings. * * @param WP_REST_Request $request Full details about the request. * @return array $updated_option defaults + set DB option data. * * @since 4.0.0 */ public function get_admin_settings( $request ) { $db_option = get_option( 'astra_admin_settings', array() ); $defaults = apply_filters( 'astra_dashboard_rest_options', array( 'self_hosted_gfonts' => self::get_admin_settings_option( 'self_hosted_gfonts', false ), 'preload_local_fonts' => self::get_admin_settings_option( 'preload_local_fonts', false ), 'use_old_header_footer' => astra_get_option( 'is-header-footer-builder', false ), 'use_upgrade_notices' => astra_showcase_upgrade_notices(), 'analytics_enabled' => get_option( 'astra_analytics_optin', 'no' ) === 'yes', ) ); return wp_parse_args( $db_option, $defaults ); } /** * Check whether a given request has permission to read notes. * * @param WP_REST_Request $request Full details about the request. * @return WP_Error|bool * @since 4.0.0 */ public function get_permissions_check( $request ) { if ( ! current_user_can( 'edit_theme_options' ) ) { return new WP_Error( 'astra_rest_cannot_view', esc_html__( 'Sorry, you cannot list resources.', 'astra' ), array( 'status' => rest_authorization_required_code() ) ); } return true; } /** * Returns an value, * based on the settings database option for the admin settings page. * * @param string $key The sub-option key. * @param mixed $default Option default value if option is not available. * @return mixed Return the option value based on provided key * @since 4.0.0 */ public static function get_admin_settings_option( $key, $default = false ) { return isset( self::$astra_admin_settings[ $key ] ) ? self::$astra_admin_settings[ $key ] : $default; } /** * Update an value of a key, * from the settings database option for the admin settings page. * * @param string $key The option key. * @param mixed $value The value to update. * @return mixed Return the option value based on provided key * @since 4.0.0 */ public static function update_admin_settings_option( $key, $value ) { $astra_admin_updated_settings = get_option( self::$option_name, array() ); $astra_admin_updated_settings[ $key ] = $value; update_option( self::$option_name, $astra_admin_updated_settings ); } } Astra_API_Init::get_instance(); includes/class-astra-menu.php 0000644 00000132463 15105354057 0012260 0 ustar 00 <?php /** * Class Astra_Menu. * * @package Astra * @since 4.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Astra_Menu. * * @since 4.1.0 */ class Astra_Menu { /** * Instance * * @var null $instance * @since 4.0.0 */ private static $instance; /** * Initiator * * @since 4.0.0 * @return object initialized object of class. */ public static function get_instance() { if ( ! isset( self::$instance ) ) { /** @psalm-suppress InvalidPropertyAssignmentValue */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort self::$instance = new self(); /** @psalm-suppress InvalidPropertyAssignmentValue */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort } return self::$instance; } /** * Page title * * @since 4.0.0 * @var string $page_title */ public static $page_title = 'Astra'; /** * Plugin slug * * @since 4.0.0 * @var string $plugin_slug */ public static $plugin_slug = 'astra'; /** * Constructor * * @since 4.0.0 */ public function __construct() { $this->initialize_hooks(); } /** * Init Hooks. * * @since 4.0.0 * @return void */ public function initialize_hooks() { self::$plugin_slug = self::get_theme_page_slug(); add_action( 'admin_menu', array( $this, 'setup_menu' ) ); add_action( 'admin_init', array( $this, 'settings_admin_scripts' ) ); add_filter( 'install_plugins_tabs', array( $this, 'add_astra_woo_suggestions_link' ), 1 ); add_action( 'install_plugins_pre_astra-woo', array( $this, 'update_plugin_suggestions_tab_link' ) ); } /** * Add Astra~Woo Suggestions plugin tab link. * * @param array $tabs Plugin tabs. * @since 4.7.3 * @return array */ public function add_astra_woo_suggestions_link( $tabs ) { if ( class_exists( 'WooCommerce' ) ) { $tabs['astra-woo'] = esc_html__( 'For ', 'astra' ) . self::$page_title . '~Woo'; } return $tabs; } /** * Update plugin suggestions tab link. * * @since 4.7.3 * @return void */ public function update_plugin_suggestions_tab_link() { // phpcs:disable WordPress.Security.NonceVerification.Recommended if ( ! isset( $_GET['tab'] ) || 'astra-woo' !== $_GET['tab'] ) { return; } // phpcs:enable WordPress.Security.NonceVerification.Recommended $extensions_url = add_query_arg( array( 'page' => self::$plugin_slug, 'path' => 'woocommerce', 'ref' => 'plugins', ), admin_url( 'admin.php' ) ); wp_safe_redirect( $extensions_url ); exit; } /** * Theme options page Slug getter including White Label string. * * @since 4.0.0 * @return string Theme Options Page Slug. */ public static function get_theme_page_slug() { return apply_filters( 'astra_theme_page_slug', self::$plugin_slug ); } /** * Initialize after Astra gets loaded. * * @since 4.0.0 */ public function settings_admin_scripts() { // Enqueue admin scripts. /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( ! empty( $_GET['page'] ) && ( self::$plugin_slug === $_GET['page'] || false !== strpos( $_GET['page'], self::$plugin_slug . '_' ) ) ) { //phpcs:ignore /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort add_action( 'admin_enqueue_scripts', array( $this, 'styles_scripts' ) ); add_filter( 'admin_footer_text', array( $this, 'astra_admin_footer_link' ), 99 ); } } /** * Add submenu to admin menu. * * @since 4.0.0 */ public function setup_menu() { global $submenu; $capability = 'manage_options'; if ( ! current_user_can( $capability ) ) { return; } self::$page_title = apply_filters( 'astra_page_title', esc_html__( 'Astra', 'astra' ) ); $astra_icon = apply_filters( 'astra_menu_icon', 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzcyIiBoZWlnaHQ9Ijc3MiIgdmlld0JveD0iMCAwIDc3MiA3NzIiIGZpbGw9IiNhN2FhYWQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+DQo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTM4NiA3NzJDNTk5LjE4MiA3NzIgNzcyIDU5OS4xODIgNzcyIDM4NkM3NzIgMTcyLjgxOCA1OTkuMTgyIDAgMzg2IDBDMTcyLjgxOCAwIDAgMTcyLjgxOCAwIDM4NkMwIDU5OS4xODIgMTcyLjgxOCA3NzIgMzg2IDc3MlpNMjYxLjcxMyAzNDMuODg2TDI2MS42NzUgMzQzLjk2OEMyMjIuNDE3IDQyNi45OTQgMTgzLjE1OSA1MTAuMDE5IDE0My45MDIgNTkyLjk1MkgyNDQuODQ3QzI3Ni42MjcgNTI4LjczOSAzMDguNDA3IDQ2NC40MzQgMzQwLjE4NyA0MDAuMTI4QzM3MS45NjUgMzM1LjgyNyA0MDMuNzQyIDI3MS41MjcgNDM1LjUyIDIwNy4zMkwzNzkuNDQgOTVDMzQwLjE5NyAxNzcuOSAzMDAuOTU1IDI2MC44OTMgMjYxLjcxMyAzNDMuODg2Wk00MzYuNjczIDQwNC4wNzVDNDUyLjkwNiAzNzAuNzQ1IDQ2OS4xMzkgMzM3LjQxNSA0ODUuNDY3IDMwNC4wODVDNTA5LjMwMSAzNTIuMjI5IDUzMy4wNDIgNDAwLjM3NCA1NTYuNzgyIDQ0OC41MThDNTgwLjUyMyA0OTYuNjYzIDYwNC4yNjQgNTQ0LjgwNyA2MjguMDk4IDU5Mi45NTJINTE5LjI0OEM1MTMuMDU0IDU3OC42OTMgNTA2Ljc2NyA1NjQuNTI3IDUwMC40OCA1NTAuMzYyQzQ5NC4xOTMgNTM2LjE5NiA0ODcuOTA2IDUyMi4wMzEgNDgxLjcxMyA1MDcuNzczSDM4NkwzODcuODc3IDUwNC4wNjlDNDA0LjIwNSA0NzAuNzM4IDQyMC40MzkgNDM3LjQwNiA0MzYuNjczIDQwNC4wNzVaIiBmaWxsPSIjYTdhYWFkIi8+DQo8L3N2Zz4=' ); $priority = apply_filters( 'astra_menu_priority', 59 ); add_menu_page( // phpcs:ignore WPThemeReview.PluginTerritory.NoAddAdminPages.add_menu_pages_add_menu_page -- Taken the menu on top level self::$page_title, self::$page_title, $capability, self::$plugin_slug, array( $this, 'render_admin_dashboard' ), $astra_icon, $priority ); // Add Customize submenu. add_submenu_page( // phpcs:ignore WPThemeReview.PluginTerritory.NoAddAdminPages.add_menu_pages_add_submenu_page -- Taken the menu on top level self::$plugin_slug, __( 'Customize', 'astra' ), __( 'Customize', 'astra' ), $capability, 'customize.php' ); // Add Custom Layout submenu. /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $show_custom_layout_submenu = defined( 'ASTRA_EXT_VER' ) && ! Astra_Ext_Extension::is_active( 'advanced-hooks' ) ? false : true; /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( $show_custom_layout_submenu && defined( 'ASTRA_EXT_VER' ) && version_compare( ASTRA_EXT_VER, '4.5.0', '<' ) ) { add_submenu_page( // phpcs:ignore WPThemeReview.PluginTerritory.NoAddAdminPages.add_menu_pages_add_submenu_page -- Taken the menu on top level self::$plugin_slug, __( 'Custom Layouts', 'astra' ), __( 'Custom Layouts', 'astra' ), $capability, /* @psalm-suppress UndefinedClass */ defined( 'ASTRA_EXT_VER' ) && Astra_Ext_Extension::is_active( 'advanced-hooks' ) ? 'edit.php?post_type=astra-advanced-hook' : 'admin.php?page=' . self::$plugin_slug . '&path=custom-layouts' ); } if ( ! astra_is_white_labelled() ) { // Add Astra~Woo Extensions page or Spectra submenu. /** @psalm-suppress TypeDoesNotContainType */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( ASTRA_THEME_ORG_VERSION && class_exists( 'WooCommerce' ) ) { /** @psalm-suppress TypeDoesNotContainType */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort add_submenu_page( // phpcs:ignore WPThemeReview.PluginTerritory.NoAddAdminPages.add_menu_pages_add_submenu_page -- Taken the menu on top level self::$plugin_slug, 'WooCommerce', 'WooCommerce', $capability, 'admin.php?page=' . self::$plugin_slug . '&path=woocommerce' ); } elseif ( ASTRA_THEME_ORG_VERSION && ! $this->spectra_has_top_level_menu() ) { add_submenu_page( // phpcs:ignore WPThemeReview.PluginTerritory.NoAddAdminPages.add_menu_pages_add_submenu_page -- Taken the menu on top level self::$plugin_slug, 'Spectra', 'Spectra', $capability, $this->get_spectra_page_admin_link() ); } } // Rename to Home menu. $submenu[ self::$plugin_slug ][0][0] = esc_html__( 'Dashboard', 'astra' ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited -- Required to rename the home menu. } /** * In version 2.4.1 Spectra introduces top level admin menu so there is no meaning to show Spectra submenu from Astra menu. * * @since 4.1.4 * @return bool true|false. */ public function spectra_has_top_level_menu() { return defined( 'UAGB_VER' ) && version_compare( UAGB_VER, '2.4.1', '>=' ) ? true : false; } /** * Provide the Spectra admin page URL. * * @since 4.1.1 * @return string url. */ public function get_spectra_page_admin_link() { $spectra_admin_url = defined( 'UAGB_VER' ) ? ( $this->spectra_has_top_level_menu() ? admin_url( 'admin.php?page=' . UAGB_SLUG ) : admin_url( 'options-general.php?page=' . UAGB_SLUG ) ) : 'admin.php?page=' . self::$plugin_slug . '&path=spectra'; return apply_filters( 'astra_dashboard_spectra_admin_link', $spectra_admin_url ); } /** * Renders the admin settings. * * @since 4.0.0 * @return void */ public function render_admin_dashboard() { $page_action = ''; if ( isset( $_GET['action'] ) ) { //phpcs:ignore /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $page_action = sanitize_text_field( wp_unslash( $_GET['action'] ) ); //phpcs:ignore /** @psalm-suppress PossiblyInvalidArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $page_action = str_replace( '_', '-', $page_action ); } ?> <div class="ast-menu-page-wrapper"> <div id="ast-menu-page"> <div class="ast-menu-page-content"> <div id="astra-dashboard-app" class="astra-dashboard-app"> </div> </div> </div> </div> <?php } /** * Enqueues the needed CSS/JS for the builder's admin settings page. * * @since 4.0.0 */ public function styles_scripts() { if ( is_customize_preview() ) { return; } wp_enqueue_style( 'astra-admin-font', 'https://fonts.googleapis.com/css2?family=Inter:wght@200;400;500&display=swap', array(), ASTRA_THEME_VERSION ); // Styles. wp_enqueue_style( 'wp-components' ); /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $show_self_branding = defined( 'ASTRA_EXT_VER' ) && is_callable( 'Astra_Ext_White_Label_Markup::show_branding' ) ? Astra_Ext_White_Label_Markup::show_branding() : true; /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $user_firstname = wp_get_current_user()->user_firstname; /** @psalm-suppress TypeDoesNotContainType */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $astra_addon_locale = ASTRA_THEME_ORG_VERSION ? 'astra-addon/astra-addon.php' : 'astra-pro/astra-pro.php'; /** @psalm-suppress TypeDoesNotContainType */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $localize = array( 'current_user' => ! empty( $user_firstname ) ? ucfirst( $user_firstname ) : ucfirst( wp_get_current_user()->display_name ), 'admin_base_url' => admin_url(), 'plugin_dir' => ASTRA_THEME_URI, 'plugin_ver' => defined( 'ASTRA_EXT_VER' ) ? ASTRA_EXT_VER : '', 'version' => ASTRA_THEME_VERSION, 'pro_available' => defined( 'ASTRA_EXT_VER' ) ? true : false, 'pro_installed_status' => 'installed' === self::get_plugin_status( $astra_addon_locale ) ? true : false, 'astra_addon_locale' => $astra_addon_locale, /** @psalm-suppress TypeDoesNotContainType */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort 'astra_rating_url' => ASTRA_THEME_ORG_VERSION ? 'https://wordpress.org/support/theme/astra/reviews/?rate=5#new-post' : 'https://woo.com/products/astra/#reviews', /** @psalm-suppress TypeDoesNotContainType */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort 'spectra_plugin_status' => self::get_plugin_status( 'ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php' ), 'theme_name' => astra_get_theme_name(), 'plugin_name' => astra_get_addon_name(), 'quick_settings' => self::astra_get_quick_links(), 'ajax_url' => admin_url( 'admin-ajax.php' ), 'is_whitelabel' => astra_is_white_labelled(), 'show_self_branding' => $show_self_branding, 'admin_url' => admin_url( 'admin.php' ), 'home_slug' => self::$plugin_slug, 'upgrade_url' => astra_get_upgrade_url( 'dashboard' ), 'customize_url' => admin_url( 'customize.php' ), 'astra_base_url' => admin_url( 'admin.php?page=' . self::$plugin_slug ), 'logo_url' => apply_filters( 'astra_admin_menu_icon', ASTRA_THEME_URI . 'inc/assets/images/astra-logo.svg' ), 'update_nonce' => wp_create_nonce( 'astra_update_admin_setting' ), /** @psalm-suppress TypeDoesNotContainType */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort 'show_plugins' => apply_filters( 'astra_show_free_extend_plugins', true ) && ASTRA_THEME_ORG_VERSION ? true : false, // Legacy filter support. /** @psalm-suppress TypeDoesNotContainType */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort 'useful_plugins' => self::astra_get_useful_plugins(), 'extensions' => self::astra_get_pro_extensions(), 'plugin_manager_nonce' => wp_create_nonce( 'astra_plugin_manager_nonce' ), 'plugin_installer_nonce' => wp_create_nonce( 'updates' ), 'free_vs_pro_link' => admin_url( 'admin.php?page=' . self::$plugin_slug . '&path=free-vs-pro' ), 'show_builder_migration' => Astra_Builder_Helper::is_header_footer_builder_active(), 'plugin_installing_text' => esc_html__( 'Installing', 'astra' ), 'plugin_installed_text' => esc_html__( 'Installed', 'astra' ), 'plugin_activating_text' => esc_html__( 'Activating', 'astra' ), 'plugin_activated_text' => esc_html__( 'Activated', 'astra' ), 'plugin_activate_text' => esc_html__( 'Activate', 'astra' ), 'starter_templates_data' => self::get_starter_template_plugin_data(), 'astra_docs_data' => astra_remote_docs_data(), 'upgrade_notice' => astra_showcase_upgrade_notices(), 'show_banner_video' => apply_filters( 'astra_show_banner_video', true ), 'is_woo_active' => class_exists( 'WooCommerce' ) ? true : false, 'woo_extensions' => self::astra_get_woo_extensions( false ), 'astraWebsite' => array( 'baseUrl' => ASTRA_WEBSITE_BASE_URL, 'docsUrl' => astra_get_pro_url( '/docs/', 'free-theme', 'dashboard', 'documentation' ), 'docsCategoryDynamicUrl' => astra_get_pro_url( '/docs-category/{{category}}', 'free-theme', 'dashboard', 'documentation' ), 'vipPrioritySupportUrl' => astra_get_pro_url( '/vip-priority-support/', 'free-theme', 'dashboard', 'vip-priority-support' ), 'templatesUrl' => astra_get_pro_url( '/website-templates/', 'free-theme', 'dashboard', 'starter-templates' ), 'whatsNewFeedUrl' => esc_url( ASTRA_WEBSITE_BASE_URL . '/whats-new/feed/' ), ), /** @psalm-suppress TypeDoesNotContainType */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort 'astra_cta_btn_url' => ASTRA_THEME_ORG_VERSION ? astra_get_pro_url( '/pricing/', 'free-theme', 'dashboard', 'unlock-pro-features-CTA' ) : 'https://woocommerce.com/products/astra-pro/', /** @psalm-suppress TypeDoesNotContainType */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort 'plugin_configuring_text' => esc_html__( 'Configuring', 'astra' ), 'bsfUsageTrackingUrl' => 'https://store.brainstormforce.com/usage-tracking/?utm_source=astra&utm_medium=dashboard&utm_campaign=usage_tracking', ); $this->settings_app_scripts( apply_filters( 'astra_react_admin_localize', $localize ) ); } /** * Get customizer quick links for easy navigation. * * @return array * @since 4.0.0 */ public static function astra_get_quick_links() { return apply_filters( 'astra_quick_settings', array( 'logo-favicon' => array( 'title' => __( 'Site Identity', 'astra' ), 'quick_url' => admin_url( 'customize.php?autofocus[control]=site_icon' ), ), 'header' => array( 'title' => __( 'Header Settings', 'astra' ), 'quick_url' => admin_url( 'customize.php?autofocus[panel]=panel-header-group' ), ), 'footer' => array( 'title' => __( 'Footer Settings', 'astra' ), 'quick_url' => admin_url( 'customize.php?autofocus[section]=section-footer-group' ), ), 'colors' => array( 'title' => __( 'Color', 'astra' ), 'quick_url' => admin_url( 'customize.php?autofocus[section]=section-colors-background' ), ), 'typography' => array( 'title' => __( 'Typography', 'astra' ), 'quick_url' => admin_url( 'customize.php?autofocus[section]=section-typography' ), ), 'button' => array( 'title' => __( 'Button', 'astra' ), 'quick_url' => admin_url( 'customize.php?autofocus[section]=section-buttons' ), ), 'blog-options' => array( 'title' => __( 'Blog Options', 'astra' ), 'quick_url' => admin_url( 'customize.php?autofocus[section]=section-blog-group' ), ), 'layout' => array( 'title' => __( 'Layout', 'astra' ), 'quick_url' => admin_url( 'customize.php?autofocus[section]=section-container-layout' ), ), ) ); } /** * Check if Starter Templates promotions is being disabled. * * @return bool * @since 4.8.9 */ public static function is_promoting_starter_templates() { /** * Filter to disable Starter Templates promotions. * Used in the Website Learners platform: A popular YouTube channel that has been our partner since 2017. * * @param bool $disable_starter_templates_promotions Whether to disable Starter Templates promotions. * * @since 4.8.9 */ return ! apply_filters( 'astra_disable_starter_templates_promotions', false ); } /** * Get Starter Templates plugin data. * * @return array * @since 4.0.0 */ public static function get_starter_template_plugin_data() { /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $st_data = array( 'title' => is_callable( 'Astra_Ext_White_Label_Markup::get_whitelabel_string' ) ? Astra_Ext_White_Label_Markup::get_whitelabel_string( 'astra-sites', 'name', __( 'Starter Templates', 'astra' ) ) : __( 'Starter Templates', 'astra' ), 'description' => is_callable( 'Astra_Ext_White_Label_Markup::get_whitelabel_string' ) ? Astra_Ext_White_Label_Markup::get_whitelabel_string( 'astra-sites', 'description', __( 'Create professional designed pixel perfect websites in minutes. Get access to 300+ pre-made full website templates for your favorite page builder.', 'astra' ) ) : __( 'Create professional designed pixel perfect websites in minutes. Get access to 300+ pre-made full website templates for your favorite page builder.', 'astra' ), 'is_available' => defined( 'ASTRA_PRO_SITES_VER' ) || defined( 'ASTRA_SITES_VER' ) ? true : false, 'redirection' => admin_url( 'themes.php?page=starter-templates' ), 'icon_path' => 'https://ps.w.org/astra-sites/assets/icon-256x256.gif', 'is_promoting' => self::is_promoting_starter_templates(), ); /** @psalm-suppress UndefinedClass */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $skip_free_version = false; $pro_plugin_status = self::get_plugin_status( 'astra-pro-sites/astra-pro-sites.php' ); if ( 'installed' === $pro_plugin_status || 'activated' === $pro_plugin_status ) { $skip_free_version = true; $st_data['slug'] = 'astra-pro-sites'; $st_data['status'] = $pro_plugin_status; $st_data['path'] = 'astra-pro-sites/astra-pro-sites.php'; } $free_plugin_status = self::get_plugin_status( 'astra-sites/astra-sites.php' ); if ( ! $skip_free_version ) { $st_data['slug'] = 'astra-sites'; $st_data['status'] = $free_plugin_status; $st_data['path'] = 'astra-sites/astra-sites.php'; } return $st_data; } /** * Method to check plugin configuration status. * * @since 4.8.2 * * @param string $plugin_init_file Plugin init file. * * @return bool Returns true if plugin is configured, false otherwise. */ public static function is_plugin_configured( $plugin_init_file ) { switch ( $plugin_init_file ) { case 'surecart/surecart.php': /** @psalm-suppress UndefinedClass */ return class_exists( '\SureCart\Models\ApiToken' ) && \SureCart\Models\ApiToken::get(); case 'suretriggers/suretriggers.php': if ( class_exists( '\SureTriggers\Controllers\OptionController' ) ) { /** @psalm-suppress UndefinedClass */ $st_key = \SureTriggers\Controllers\OptionController::get_option( 'secret_key' ); return $st_key && $st_key !== 'connection-denied'; } // Fall through: Intentional fall-through without returning. return false; case 'checkout-plugins-stripe-woo/checkout-plugins-stripe-woo.php': // If the setup is not skipped and connected to the Stripe. /** @psalm-suppress UndefinedClass */ return 'skipped' !== get_option( 'cpsw_setup_status', false ) && class_exists( '\CPSW\Admin\Admin_Controller' ) && \CPSW\Admin\Admin_Controller::get_instance()->is_stripe_connected(); case 'checkout-paypal-woo/checkout-paypal-woo.php': if ( ! class_exists( '\CPPW\Gateway\Paypal\Api\Client' ) ) { return false; } $remote_url = 'v1/identity/oauth2/userinfo?schema=paypalv1.1'; try { /** @psalm-suppress UndefinedClass */ $response = \CPPW\Gateway\Paypal\Api\Client::request( $remote_url, array(), 'get' ); if ( ! is_array( $response ) || empty( $response['user_id'] ) ) { return false; } return true; } catch ( \Exception $e ) { // Handle exception silently. return false; } // Fall through: This catch block will always return false if an exception is caught. return false; } return true; } /** * Get plugin status * * @since 4.0.0 * * @param string $plugin_init_file Plugin init file. * @return mixed */ public static function get_plugin_status( $plugin_init_file ) { $installed_plugins = get_plugins(); if ( ! isset( $installed_plugins[ $plugin_init_file ] ) ) { return 'install'; } if ( is_plugin_active( $plugin_init_file ) ) { if ( ! self::is_plugin_configured( $plugin_init_file ) ) { return 'configure'; } return 'activated'; } return 'installed'; } /** * Get Astra's pro extension list. * * @since 4.0.0 * @return array */ public static function astra_get_pro_extensions() { return apply_filters( 'astra_addon_list', array( 'colors-and-background' => array( 'title' => __( 'Colors & Background', 'astra' ), 'class' => 'ast-addon', 'title_url' => astra_get_pro_url( '/docs/colors-background-module/', 'free-theme', 'dashboard', 'documentation' ), 'links' => array( array( 'link_class' => 'ast-learn-more', 'link_url' => astra_get_pro_url( '/docs/colors-background-module/', 'free-theme', 'dashboard', 'documentation' ), 'link_text' => __( 'Documentation', 'astra' ), 'target_blank' => true, ), ), ), 'typography' => array( 'title' => __( 'Typography', 'astra' ), 'class' => 'ast-addon', 'title_url' => astra_get_pro_url( '/docs/typography-module/', 'free-theme', 'dashboard', 'documentation' ), 'links' => array( array( 'link_class' => 'ast-learn-more', 'link_url' => astra_get_pro_url( '/docs/typography-module/', 'free-theme', 'dashboard', 'documentation' ), 'link_text' => __( 'Documentation', 'astra' ), 'target_blank' => true, ), ), ), 'spacing' => array( 'title' => __( 'Spacing', 'astra' ), 'class' => 'ast-addon', 'title_url' => astra_get_pro_url( '/docs/spacing-addon-overview/', 'free-theme', 'dashboard', 'documentation' ), 'links' => array( array( 'link_class' => 'ast-learn-more', 'link_url' => astra_get_pro_url( '/docs/spacing-addon-overview/', 'free-theme', 'dashboard', 'documentation' ), 'link_text' => __( 'Documentation', 'astra' ), 'target_blank' => true, ), ), ), 'blog-pro' => array( 'title' => __( 'Blog Pro', 'astra' ), 'class' => 'ast-addon', 'title_url' => astra_get_pro_url( '/docs/blog-pro-overview/', 'free-theme', 'dashboard', 'documentation' ), 'links' => array( array( 'link_class' => 'ast-learn-more', 'link_url' => astra_get_pro_url( '/docs/blog-pro-overview/', 'free-theme', 'dashboard', 'documentation' ), 'link_text' => __( 'Documentation', 'astra' ), 'target_blank' => true, ), ), ), 'mobile-header' => array( 'title' => __( 'Mobile Header', 'astra' ), 'class' => 'ast-addon', 'title_url' => astra_get_pro_url( '/docs/mobile-header-with-astra/', 'free-theme', 'dashboard', 'documentation' ), 'links' => array( array( 'link_class' => 'ast-learn-more', 'link_url' => astra_get_pro_url( '/docs/mobile-header-with-astra/', 'free-theme', 'dashboard', 'documentation' ), 'link_text' => __( 'Documentation', 'astra' ), 'target_blank' => true, ), ), ), 'header-sections' => array( 'title' => __( 'Header Sections', 'astra' ), 'class' => 'ast-addon', 'title_url' => astra_get_pro_url( '/docs/header-sections-pro/', 'free-theme', 'dashboard', 'documentation' ), 'links' => array( array( 'link_class' => 'ast-learn-more', 'link_url' => astra_get_pro_url( '/docs/header-sections-pro/', 'free-theme', 'dashboard', 'documentation' ), 'link_text' => __( 'Documentation', 'astra' ), 'target_blank' => true, ), ), ), 'sticky-header' => array( 'title' => __( 'Sticky Header', 'astra' ), 'class' => 'ast-addon', 'title_url' => astra_get_pro_url( '/docs/sticky-header-pro/', 'free-theme', 'dashboard', 'documentation' ), 'links' => array( array( 'link_class' => 'ast-learn-more', 'link_url' => astra_get_pro_url( '/docs/sticky-header-pro/', 'free-theme', 'dashboard', 'documentation' ), 'link_text' => __( 'Documentation', 'astra' ), 'target_blank' => true, ), ), ), 'site-layouts' => array( 'title' => __( 'Site Layouts', 'astra' ), 'class' => 'ast-addon', 'title_url' => astra_get_pro_url( '/docs/site-layout-overview/', 'free-theme', 'dashboard', 'documentation' ), 'links' => array( array( 'link_class' => 'ast-learn-more', 'link_url' => astra_get_pro_url( '/docs/site-layout-overview/', 'free-theme', 'dashboard', 'documentation' ), 'link_text' => __( 'Documentation', 'astra' ), 'target_blank' => true, ), ), ), 'advanced-footer' => array( 'title' => __( 'Footer Widgets', 'astra' ), 'class' => 'ast-addon', 'title_url' => astra_get_pro_url( '/docs/footer-widgets-astra-pro/', 'free-theme', 'dashboard', 'documentation' ), 'links' => array( array( 'link_class' => 'ast-learn-more', 'link_url' => astra_get_pro_url( '/docs/footer-widgets-astra-pro/', 'free-theme', 'dashboard', 'documentation' ), 'link_text' => __( 'Documentation', 'astra' ), 'target_blank' => true, ), ), ), 'nav-menu' => array( 'title' => __( 'Nav Menu', 'astra' ), 'class' => 'ast-addon', 'title_url' => astra_get_pro_url( '/docs/nav-menu-addon/', 'free-theme', 'dashboard', 'documentation' ), 'links' => array( array( 'link_class' => 'ast-learn-more', 'link_url' => astra_get_pro_url( '/docs/nav-menu-addon/', 'free-theme', 'dashboard', 'documentation' ), 'link_text' => __( 'Documentation', 'astra' ), 'target_blank' => true, ), ), ), 'advanced-hooks' => array( 'title' => defined( 'ASTRA_EXT_VER' ) && version_compare( ASTRA_EXT_VER, '4.5.0', '<' ) ? __( 'Custom Layouts', 'astra' ) : __( 'Site Builder', 'astra' ), 'description' => __( 'Add content conditionally in the various hook areas of the theme.', 'astra' ), 'manage_settings' => true, 'class' => 'ast-addon', 'title_url' => astra_get_pro_url( '/docs/custom-layouts-pro/', 'free-theme', 'dashboard', 'documentation' ), 'links' => array( array( 'link_class' => 'ast-learn-more', 'link_url' => astra_get_pro_url( '/docs/custom-layouts-pro/', 'free-theme', 'dashboard', 'documentation' ), 'link_text' => __( 'Documentation', 'astra' ), 'target_blank' => true, ), ), ), 'advanced-headers' => array( 'title' => __( 'Page Headers', 'astra' ), 'description' => __( 'Make your header layouts look more appealing and sexy!', 'astra' ), 'manage_settings' => true, 'class' => 'ast-addon', 'title_url' => astra_get_pro_url( '/docs/page-headers-overview/', 'free-theme', 'dashboard', 'documentation' ), 'links' => array( array( 'link_class' => 'ast-learn-more', 'link_url' => astra_get_pro_url( '/docs/page-headers-overview/', 'free-theme', 'dashboard', 'documentation' ), 'link_text' => __( 'Documentation', 'astra' ), 'target_blank' => true, ), ), ), 'woocommerce' => array( 'title' => 'WooCommerce', 'class' => 'ast-addon', 'isActive' => defined( 'ASTRA_EXT_VER' ) && class_exists( 'WooCommerce' ) ? true : false, 'title_url' => astra_get_pro_url( '/docs/woocommerce-module-overview/', 'free-theme', 'dashboard', 'documentation' ), 'links' => array( array( 'link_class' => 'ast-learn-more', 'link_url' => astra_get_pro_url( '/docs/woocommerce-module-overview/', 'free-theme', 'dashboard', 'documentation' ), 'link_text' => __( 'Documentation', 'astra' ), 'target_blank' => true, ), ), ), 'edd' => array( 'title' => 'Easy Digital Downloads', 'class' => 'ast-addon', 'isActive' => defined( 'ASTRA_EXT_VER' ) && class_exists( 'Easy_Digital_Downloads' ) ? true : false, 'title_url' => astra_get_pro_url( '/docs/easy-digital-downloads-module-overview/', 'free-theme', 'dashboard', 'documentation' ), 'links' => array( array( 'link_class' => 'ast-learn-more', 'link_url' => astra_get_pro_url( '/docs/easy-digital-downloads-module-overview/', 'free-theme', 'dashboard', 'documentation' ), 'link_text' => __( 'Documentation', 'astra' ), 'target_blank' => true, ), ), ), 'learndash' => array( 'title' => 'LearnDash', 'isActive' => defined( 'ASTRA_EXT_VER' ) && class_exists( 'SFWD_LMS' ) ? true : false, 'description' => __( 'Supercharge your LearnDash website with amazing design features.', 'astra' ), 'class' => 'ast-addon', 'title_url' => astra_get_pro_url( '/docs/learndash-integration-in-astra-pro/', 'free-theme', 'dashboard', 'documentation' ), 'links' => array( array( 'link_class' => 'ast-learn-more', 'link_url' => astra_get_pro_url( '/docs/learndash-integration-in-astra-pro/', 'free-theme', 'dashboard', 'documentation' ), 'link_text' => __( 'Documentation', 'astra' ), 'target_blank' => true, ), ), ), 'lifterlms' => array( 'title' => 'LifterLMS', 'class' => 'ast-addon', 'isActive' => defined( 'ASTRA_EXT_VER' ) && class_exists( 'LifterLMS' ) ? true : false, 'title_url' => astra_get_pro_url( '/docs/lifterlms-module-pro/', 'free-theme', 'dashboard', 'documentation' ), 'links' => array( array( 'link_class' => 'ast-learn-more', 'link_url' => astra_get_pro_url( '/docs/lifterlms-module-pro/', 'free-theme', 'dashboard', 'documentation' ), 'link_text' => __( 'Documentation', 'astra' ), 'target_blank' => true, ), ), ), 'white-label' => array( 'title' => __( 'White Label', 'astra' ), 'class' => 'ast-addon', 'title_url' => astra_get_pro_url( '/docs/how-to-white-label-astra/', 'free-theme', 'dashboard', 'documentation' ), 'links' => array( array( 'link_class' => 'ast-learn-more', 'link_url' => astra_get_pro_url( '/docs/how-to-white-label-astra/', 'free-theme', 'dashboard', 'documentation' ), 'link_text' => __( 'Documentation', 'astra' ), 'target_blank' => true, ), ), ), ) ); } /** * Get Astra's recommended WooCommerce extensions. * * @param bool $under_useful_plugins Add under useful plugins or not. * * @since 4.7.3 * @return array */ public static function astra_get_woo_extensions( $under_useful_plugins = true ) { $extensions = array( array( 'title' => 'CartFlows: Create Sales Funnel', 'subtitle' => $under_useful_plugins ? __( '#1 Sales Funnel WordPress Builder.', 'astra' ) : __( 'Build high-converting E-Commerce stores with CartFlows, the ultimate checkout and funnel builder.', 'astra' ), 'status' => self::get_plugin_status( 'cartflows/cartflows.php' ), 'slug' => 'cartflows', 'path' => 'cartflows/cartflows.php', 'redirection' => false === get_option( 'wcf_setup_complete', false ) && ! get_option( 'wcf_setup_skipped', false ) ? admin_url( 'index.php?page=cartflow-setup' ) : admin_url( 'admin.php?page=cartflows' ), 'ratings' => '(400+)', 'activations' => '200,000 +', 'logoPath' => array( 'internal_icon' => false, 'icon_path' => 'https://ps.w.org/cartflows/assets/icon-256x256.gif', ), ), ); if ( ! $under_useful_plugins ) { $extensions[] = array( 'title' => 'OttoKit: WordPress Automation', 'subtitle' => __( 'Connect your WordPress plugins, WooCommerce sites, apps, and websites for powerful automations.', 'astra' ), 'status' => self::get_plugin_status( 'suretriggers/suretriggers.php' ), 'slug' => 'suretriggers', 'path' => 'suretriggers/suretriggers.php', 'redirection' => admin_url( 'admin.php?page=suretriggers' ), 'ratings' => '(60+)', 'activations' => '1,00,000 +', 'logoPath' => array( 'internal_icon' => true, 'icon_path' => 'ottokit', ), ); } $extensions[] = array( 'title' => 'Spectra: Blocks Builder', 'subtitle' => $under_useful_plugins ? __( 'Free WordPress Page Builder.', 'astra' ) : __( 'Power-up block editor with advanced blocks for faster and effortlessly website creation.', 'astra' ), 'status' => self::get_plugin_status( 'ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php' ), 'slug' => 'ultimate-addons-for-gutenberg', 'path' => 'ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php', 'redirection' => admin_url( 'options-general.php?page=spectra' ), 'ratings' => '(1500+)', 'activations' => '1,000,000 +', 'logoPath' => array( 'internal_icon' => false, 'icon_path' => 'https://ps.w.org/ultimate-addons-for-gutenberg/assets/icon-256x256.gif', ), ); $extensions[] = array( 'title' => 'Modern Cart for WooCommerce', 'subtitle' => $under_useful_plugins ? __( 'Modern Cart: A smarter way to sell', 'astra' ) : __( 'Say goodbye to slow checkouts – boost sales with a smooth, hassle-free experience.', 'astra' ), 'status' => 'visit', 'slug' => '', 'path' => '', 'redirection' => esc_url( 'https://cartflows.com/modern-cart-for-woocommerce/?utm_source=cross_promotions&utm_medium=referral&utm_campaign=astra_dashboard' ), 'ratings' => '(25+)', 'activations' => '100 +', 'logoPath' => array( 'internal_icon' => true, 'icon_path' => 'moderncart', ), ); if ( ! $under_useful_plugins ) { $extensions[] = array( 'title' => 'PayPal Payments For WooCommerce', 'subtitle' => __( 'PayPal Payments For WooCommerce simplifies and secures PayPal transactions on your store.', 'astra' ), 'status' => self::get_plugin_status( 'checkout-paypal-woo/checkout-paypal-woo.php' ), 'slug' => 'checkout-paypal-woo', 'path' => 'checkout-paypal-woo/checkout-paypal-woo.php', 'redirection' => admin_url( 'admin.php?page=wc-settings&tab=cppw_api_settings' ), 'ratings' => '(2)', 'activations' => '6,000 +', 'logoPath' => array( 'internal_icon' => false, 'icon_path' => 'https://ps.w.org/checkout-paypal-woo/assets/icon-128x128.jpg', ), ); } $extensions[] = array( 'title' => 'Cart Abandonment Recovery', 'subtitle' => $under_useful_plugins ? __( 'Recover lost revenue automatically.', 'astra' ) : __( 'Capture emails at checkout and send follow-up emails to recover lost revenue.', 'astra' ), 'status' => self::get_plugin_status( 'woo-cart-abandonment-recovery/woo-cart-abandonment-recovery.php' ), 'slug' => 'woo-cart-abandonment-recovery', 'path' => 'woo-cart-abandonment-recovery/woo-cart-abandonment-recovery.php', 'redirection' => admin_url( 'admin.php?page=woo-cart-abandonment-recovery' ), 'ratings' => '(490+)', 'activations' => '300,000 +', 'logoPath' => array( 'internal_icon' => false, 'icon_path' => 'https://ps.w.org/woo-cart-abandonment-recovery/assets/icon-128x128.png', ), ); if ( ! $under_useful_plugins ) { $extensions[] = array( 'title' => 'Variations Swatches by CartFlows', 'subtitle' => __( 'Convert WooCommerce variation dropdown attributes into attractive swatches instantly.', 'astra' ), 'status' => self::get_plugin_status( 'variation-swatches-woo/variation-swatches-woo.php' ), 'slug' => 'variation-swatches-woo', 'path' => 'variation-swatches-woo/variation-swatches-woo.php', 'redirection' => admin_url( 'admin.php?page=cfvsw_settings' ), 'ratings' => '(30+)', 'activations' => '200,000 +', 'logoPath' => array( 'internal_icon' => false, 'icon_path' => 'https://ps.w.org/variation-swatches-woo/assets/icon.svg', ), ); } return $extensions; } /** * Get Astra's useful plugins. * Extend this in following way - * * // array( * // 'title' => "Plugin Name", * // 'subtitle' => "Plugin description goes here.", * // 'path' => 'plugin-slug/plugin-slug.php', * // 'redirection' => admin_url( 'admin.php?page=sc-dashboard' ), * // 'status' => self::get_plugin_status( 'plugin-slug/plugin-slug.php' ), * // 'logoPath' => array( * // 'internal_icon' => true, // true = will take internal Astra's any icon. false = provide next custom icon link. * // 'icon_path' => "spectra", // If internal_icon false then - example custom SVG URL: ASTRA_THEME_URI . 'inc/assets/images/astra.svg'. * // ), * // ), * * @since 4.0.0 * @return array */ public static function astra_get_useful_plugins() { // Making useful plugin section dynamic. if ( class_exists( 'WooCommerce' ) ) { $useful_plugins = self::astra_get_woo_extensions(); } else { $surecart_status = self::get_plugin_status( 'surecart/surecart.php' ); $surecart_redirection = 'activated' === $surecart_status ? 'sc-dashboard' : 'sc-getting-started'; $plugins = array( 'surecart' => array( 'title' => 'SureCart', 'subtitle' => __( 'Sell products, services, subscriptions & more.', 'astra' ), 'status' => $surecart_status, 'slug' => 'surecart', 'path' => 'surecart/surecart.php', 'redirection' => admin_url( 'admin.php?page=' . esc_attr( $surecart_redirection ) ), 'logoPath' => array( 'internal_icon' => true, 'icon_path' => 'surecart_logo', ), ), 'spectra' => array( 'title' => 'Spectra', 'subtitle' => __( 'Free WordPress Page Builder.', 'astra' ), 'status' => self::get_plugin_status( 'ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php' ), 'slug' => 'ultimate-addons-for-gutenberg', 'path' => 'ultimate-addons-for-gutenberg/ultimate-addons-for-gutenberg.php', 'redirection' => admin_url( 'options-general.php?page=spectra' ), 'logoPath' => array( 'internal_icon' => false, 'icon_path' => 'https://ps.w.org/ultimate-addons-for-gutenberg/assets/icon-256x256.gif', ), ), 'suretriggers' => array( 'title' => 'OttoKit', 'subtitle' => __( 'Automate your WordPress setup.', 'astra' ), 'isPro' => false, 'status' => self::get_plugin_status( 'suretriggers/suretriggers.php' ), 'slug' => 'suretriggers', 'path' => 'suretriggers/suretriggers.php', 'redirection' => admin_url( 'admin.php?page=suretriggers' ), 'logoPath' => array( 'internal_icon' => true, 'icon_path' => 'ottokit', ), ), 'sureforms' => array( 'title' => 'SureForms', 'subtitle' => __( 'A versatile form builder plugin.', 'astra' ), 'status' => self::get_plugin_status( 'sureforms/sureforms.php' ), 'slug' => 'sureforms', 'path' => 'sureforms/sureforms.php', 'redirection' => admin_url( 'admin.php?page=sureforms_menu' ), 'logoPath' => array( 'internal_icon' => true, 'icon_path' => 'sureforms', ), ), 'presto-player' => array( 'title' => 'Presto Player', 'subtitle' => __( 'Ultimate Video Player For WordPress.', 'astra' ), 'status' => self::get_plugin_status( 'presto-player/presto-player.php' ), 'slug' => 'presto-player', 'path' => 'presto-player/presto-player.php', 'redirection' => admin_url( 'edit.php?post_type=pp_video_block' ), 'logoPath' => array( 'internal_icon' => false, 'icon_path' => 'https://ps.w.org/presto-player/assets/icon-128x128.png', ), ), 'uael' => array( 'title' => 'Ultimate Addons for Elementor', 'subtitle' => __( 'Extend Elementor with premium widgets.', 'astra' ), 'status' => self::get_plugin_status( 'header-footer-elementor/header-footer-elementor.php' ), 'slug' => 'header-footer-elementor', 'path' => 'header-footer-elementor/header-footer-elementor.php', 'redirection' => admin_url( 'admin.php?page=hfe#onboarding' ), 'logoPath' => array( 'internal_icon' => false, 'icon_path' => 'https://ps.w.org/header-footer-elementor/assets/icon-256x256.gif', ), ), ); // Pick useful plugins depending on Elementor status. $useful_plugins_keys = defined( 'ELEMENTOR_VERSION' ) ? array( 'uael', 'sureforms', 'spectra', 'suretriggers', 'presto-player' ) : array( 'sureforms', 'spectra', 'suretriggers', 'surecart', 'presto-player' ); $useful_plugins = array_map( static fn( $key ) => $plugins[ $key ], $useful_plugins_keys ); } return apply_filters( 'astra_useful_plugins', $useful_plugins ); } /** * Settings app scripts * * @since 4.0.0 * @param array $localize Variable names. */ public function settings_app_scripts( $localize ) { $handle = 'astra-admin-dashboard-app'; $build_path = ASTRA_THEME_ADMIN_DIR . 'assets/build/'; $build_url = ASTRA_THEME_ADMIN_URL . 'assets/build/'; $script_asset_path = $build_path . 'dashboard-app.asset.php'; /** @psalm-suppress MissingFile */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $script_info = file_exists( $script_asset_path ) ? include $script_asset_path : array( // phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound -- Not a template file so loading in a normal way. 'dependencies' => array(), 'version' => ASTRA_THEME_VERSION, ); /** @psalm-suppress MissingFile */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $script_dep = array_merge( $script_info['dependencies'], array( 'updates', 'wp-hooks' ) ); wp_register_script( $handle, $build_url . 'dashboard-app.js', $script_dep, $script_info['version'], true ); wp_register_style( $handle, $build_url . 'dashboard-app.css', array(), ASTRA_THEME_VERSION ); wp_enqueue_script( $handle ); wp_set_script_translations( $handle, 'astra' ); wp_enqueue_style( $handle ); wp_style_add_data( $handle, 'rtl', 'replace' ); wp_localize_script( $handle, 'astra_admin', $localize ); } /** * Add footer link. * * @since 4.0.0 */ public function astra_admin_footer_link() { $theme_name = astra_get_theme_name(); /** @psalm-suppress TypeDoesNotContainType */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $rating_url = ASTRA_THEME_ORG_VERSION ? 'https://wordpress.org/support/theme/astra/reviews/?rate=5#new-post' : 'https://woo.com/products/astra/#reviews'; /** @psalm-suppress TypeDoesNotContainType */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( astra_is_white_labelled() ) { $footer_text = '<span id="footer-thankyou">' . __( 'Thank you for using', 'astra' ) . '<span class="focus:text-astra-hover active:text-astra-hover hover:text-astra-hover"> ' . esc_html( $theme_name ) . '.</span></span>'; } else { $footer_text = sprintf( /* translators: 1: Astra, 2: Theme rating link */ __( 'Enjoyed %1$s? Please leave us a %2$s rating. We really appreciate your support!', 'astra' ), '<span class="ast-footer-thankyou"><strong>' . esc_html( $theme_name ) . '</strong>', '<a href="' . esc_url( $rating_url ) . '" target="_blank">★★★★★</a></span>' ); } return $footer_text; } } Astra_Menu::get_instance(); class-astra-bsf-analytics.php 0000644 00000014114 15105354057 0012235 0 ustar 00 <?php /** * Astra BSF Analytics class helps to connect BSF Analytics. * * @package astra. */ defined( 'ABSPATH' ) or exit; /** * Astra BSF Analytics class. * * @since 4.10.0 */ class Astra_BSF_Analytics { /** * Instance object. * * @var self|null Class Instance. */ private static $instance = null; /** * Class constructor. * * @return void * @since 4.10.0 */ public function __construct() { /* * BSF Analytics. */ if ( ! class_exists( 'BSF_Analytics_Loader' ) ) { require_once ASTRA_THEME_DIR . 'inc/lib/bsf-analytics/class-bsf-analytics-loader.php'; } add_action( 'init', array( $this, 'init_bsf_analytics' ), 5 ); add_filter( 'bsf_core_stats', array( $this, 'add_astra_analytics_data' ) ); } /** * Initializes BSF Analytics. * * @since 4.10.0 * @return void */ public function init_bsf_analytics() { // Bail early if BSF_Analytics_Loader::get_instance is not callable and if Astra white labelling is enabled. if ( ! is_callable( '\BSF_Analytics_Loader::get_instance' ) || astra_is_white_labelled() ) { return; } // Kept it for future reference. // add_filter( // 'uds_survey_allowed_screens', // static function ( $screens ) { // $screens[] = 'themes'; // return $screens; // } // ); $bsf_analytics = \BSF_Analytics_Loader::get_instance(); $bsf_analytics->set_entity( array( 'astra' => array( 'product_name' => 'Astra', 'path' => ASTRA_THEME_DIR . 'inc/lib/bsf-analytics', 'author' => 'brainstormforce', 'time_to_display' => '+24 hours', 'hide_optin_checkbox' => true, /* Deactivation Survey */ 'deactivation_survey' => apply_filters( 'astra_deactivation_survey_data', array( // Kept it for future reference. // array( // 'id' => 'deactivation-survey-astra', // 'popup_logo' => ASTRA_THEME_URI . 'inc/assets/images/astra-logo.svg', // 'plugin_slug' => 'astra', // 'popup_title' => __( 'Quick Feedback', 'astra' ), // 'support_url' => 'https://wpastra.com/contact/', // 'popup_description' => __( 'If you have a moment, please share why you are deactivating Astra:', 'astra' ), // 'show_on_screens' => array( 'themes' ), // 'plugin_version' => ASTRA_THEME_VERSION, // 'popup_reasons' => self::get_default_reasons(), // ), ) ), ), ) ); } /** * Get the array of default reasons. * * @since 4.10.0 * @return array Default reasons. */ public static function get_default_reasons() { return array( 'temporary_deactivation' => array( 'label' => esc_html__( 'This is a temporary deactivation for testing.', 'astra' ), 'placeholder' => esc_html__( 'How can we assist you?', 'astra' ), 'show_cta' => 'false', 'accept_feedback' => 'false', ), 'theme_not_working' => array( 'label' => esc_html__( 'The theme isn\'t working properly.', 'astra' ), 'placeholder' => esc_html__( 'Please tell us more about what went wrong?', 'astra' ), 'show_cta' => 'true', 'accept_feedback' => 'true', ), 'found_better_theme' => array( 'label' => esc_html__( 'I found a better alternative theme.', 'astra' ), 'placeholder' => esc_html__( 'Could you please specify which theme?', 'astra' ), 'show_cta' => 'false', 'accept_feedback' => 'true', ), 'missing_a_feature' => array( 'label' => esc_html__( 'It\'s missing a specific feature.', 'astra' ), 'placeholder' => esc_html__( 'Please tell us more about the feature.', 'astra' ), 'show_cta' => 'false', 'accept_feedback' => 'true', ), 'other' => array( 'label' => esc_html__( 'Other', 'astra' ), 'placeholder' => esc_html__( 'Please tell us more details.', 'astra' ), 'show_cta' => 'false', 'accept_feedback' => 'true', ), ); } /** * Callback function to add Astra specific analytics data. * * @param array $stats_data existing stats_data. * * @since 4.10.0 * @return array */ public function add_astra_analytics_data( $stats_data ) { if ( ! isset( $stats_data['plugin_data']['astra'] ) ) { $stats_data['plugin_data']['astra'] = array(); } $bsf_internal_referrer = get_option( 'bsf_product_referers', array() ); $admin_dashboard_settings = get_option( 'astra_admin_settings', array() ); $is_hf_builder_active = class_exists( 'Astra_Builder_Helper' ) ? Astra_Builder_Helper::$is_header_footer_builder_active : true; $astra_stats = array( 'free_version' => ASTRA_THEME_VERSION, 'site_language' => get_locale(), 'numeric_values' => array(), 'boolean_values' => array( 'pro_active' => defined( 'ASTRA_EXT_VER' ), 'astra_sites_active' => is_plugin_active( 'astra-sites/astra-sites.php' ), 'astra_pro_sites_active' => is_plugin_active( 'astra-pro-sites/astra-pro-sites.php' ), 'is_using_dark_palette' => Astra_Global_Palette::is_dark_palette(), ), 'internal_referrer' => empty( $bsf_internal_referrer['astra'] ) ? '' : $bsf_internal_referrer['astra'], 'using_old_header_footer' => $is_hf_builder_active ? 'no' : 'yes', 'loading_google_fonts_locally' => isset( $admin_dashboard_settings['self_hosted_gfonts'] ) && $admin_dashboard_settings['self_hosted_gfonts'] ? 'yes' : 'no', 'preloading_local_fonts' => isset( $admin_dashboard_settings['preload_local_fonts'] ) && $admin_dashboard_settings['preload_local_fonts'] ? 'yes' : 'no', ); $stats_data['plugin_data']['astra'] = array_merge_recursive( $stats_data['plugin_data']['astra'], $astra_stats ); return $stats_data; } /** * Initiator. * * @since 4.10.0 * @return self initialized object of class. */ public static function get_instance() { if ( null === self::$instance ) { self::$instance = new self(); } return self::$instance; } } /** * Initiates the Astra_BSF_Analytics class instance. */ Astra_BSF_Analytics::get_instance(); assets/utils/helpers.js 0000644 00000013754 15105354057 0011225 0 ustar 00 import { __ } from '@wordpress/i18n'; import apiFetch from '@wordpress/api-fetch'; import DOMPurify from 'dompurify'; /** * Returns the class names. * * @param {...string} classes The class names. * * @return {string} Returns the class names. */ const classNames = ( ...classes ) => classes.filter( Boolean ).join( ' ' ); /** * Handles the Astra Pro CTA button click event, opening the upgrade URL in a new tab. * This function also handles the display of a spinner during the upgrade process. * * @param {Event} e - The event object. * @param {Object} options - Options for the upgrade process. * @param {string} options.url - The URL for the upgrade. * @param {string} options.campaign - The UTM campaign parameter. * @param {boolean} options.disableSpinner - Optional. Disables the spinner if true. * @param {string} options.spinnerPosition - Optional. The position of the spinner. */ const handleGetAstraPro = ( e, { url = astra_admin.upgrade_url, campaign = '', disableSpinner = false, spinnerPosition = 'right' } = {} ) => { e.preventDefault(); e.stopPropagation(); if ( ! astra_admin.pro_installed_status ) { // If a custom campaign is provided, modify the URL if ( campaign ) { const urlObj = new URL( url ); urlObj.searchParams.set( 'utm_campaign', campaign ); url = urlObj.toString(); } window.open( url, '_blank' ); return; } const spinnerHTML = disableSpinner ? '' : getSpinner(); const buttonHTML = spinnerPosition === 'right' ? `<span class="button-text">${astra_admin.plugin_activating_text}</span>${spinnerHTML}` : `${spinnerHTML}<span class="button-text">${astra_admin.plugin_activating_text}</span>`; e.target.innerHTML = DOMPurify.sanitize( buttonHTML ); e.target.disabled = true; const formData = new window.FormData(); formData.append( 'action', 'astra_recommended_plugin_activate' ); formData.append( 'security', astra_admin.plugin_manager_nonce ); formData.append( 'init', 'astra-addon/astra-addon.php' ); apiFetch( { url: astra_admin.ajax_url, method: 'POST', body: formData, } ) .then( ( data ) => { if ( data.success ) { window.open( astra_admin.astra_base_url, '_self' ); return; } } ) .catch( ( error ) => { e.target.innerText = __( 'Activation failed. Please try again.', 'astra' ); e.target.disabled = false; console.error( 'Error during API request:', error ); // Optionally, notify the user about the error or handle it appropriately. } ); }; /** * Creates a debounced function that delays its execution until after the specified delay. * * The debounce() function can also be used from lodash.debounce package in future. * * @param {Function} func - The function to debounce. * @param {number} delay - The delay in milliseconds before the function is executed. * * @returns {Function} A debounced function. */ const debounce = ( func, delay ) => { let timer; function debounced( ...args ) { clearTimeout( timer ); timer = setTimeout( () => func( ...args ), delay ); } // Attach a `cancel` method to clear the timeout. debounced.cancel = () => { clearTimeout( timer ); }; return debounced; }; /** * Returns the Astra Pro title. * * @return {string} Returns the Astra Pro title. */ const getAstraProTitle = () => { return astra_admin.pro_installed_status ? __( 'Activate Now', 'astra' ) : __( 'Upgrade Now', 'astra' ); }; /** * Returns the Astra Pro title. * * @return {string} Returns the Astra Pro title. */ const getAstraProTitleFreePage = () => { return astra_admin.pro_installed_status ? __( 'Activate Now', 'astra' ) : __( 'See all Astra Pro Features', 'astra' ); }; /** * Returns the spinner SVG text. * * @return {string} Returns the spinner SVG text.. */ const getSpinner = () => { return ` <svg class="animate-spin installer-spinner ml-2 inline-block align-middle" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" width="16" height="16"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path> </svg> `; }; /** * A function to save astra admin settings. * * @function * * @param {string} key - Settings key. * @param {string} value - The data to send. * @param {Function} dispatch - The dispatch function. * @param {Object} abortControllerRef - The ref object with to hold abort controller. * * @return {Promise} Returns a promise representing the processed request. */ const saveSetting = debounce( ( { action = 'astra_update_admin_setting', security = astra_admin.update_nonce, key = '', value }, dispatch, abortControllerRef = { current: {} } ) => { // Abort any previous request. if ( abortControllerRef.current[ key ] ) { abortControllerRef.current[ key ]?.abort(); } // Create a new AbortController. const abortController = new AbortController(); abortControllerRef.current[ key ] = abortController; const formData = new window.FormData(); formData.append( 'action', action ); formData.append( 'security', security ); formData.append( 'key', key ); formData.append( 'value', value ); return apiFetch( { url: astra_admin.ajax_url, method: 'POST', body: formData, signal: abortControllerRef.current[ key ]?.signal, // Pass the signal to the fetch request. } ) .then( () => { dispatch( { type: 'UPDATE_SETTINGS_SAVED_NOTIFICATION', payload: __( 'Successfully saved!', 'astra' ), } ); } ) .catch( ( error ) => { // Ignore if it is intentionally aborted. if ( error.name === 'AbortError' ) { return; } console.error( 'Error during API request:', error ); dispatch( { type: 'UPDATE_SETTINGS_SAVED_NOTIFICATION', payload: __( 'An error occurred while saving.', 'astra' ), } ); } ); }, 300 ); export { classNames, handleGetAstraPro, debounce, getAstraProTitle, getAstraProTitleFreePage, getSpinner, saveSetting }; assets/theme-builder/build/index.rtl.css 0000644 00000277103 15105354057 0014333 0 ustar 00 /*!************************************************************************************************************************************************************************!*\ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./src/style/main.css ***! \************************************************************************************************************************************************************************/.ast-theme-builder #adminmenuback,.ast-theme-builder #adminmenumain,.ast-theme-builder #adminmenuwrap,.ast-theme-builder #wpfooter{display:none}.ast-theme-builder #wpcontent{margin:0;padding:0}.ast-tb-app{height:100vh;flex-direction:column;position:absolute;border-radius:0}.ast-tb-app,.ast-tb-main{display:flex;overflow:hidden;width:100%;max-width:100%}.ast-tb-main{height:100%;flex-grow:1}.ast-tb-header-items{display:flex;align-items:center;justify-content:flex-start;gap:20px;width:99%}.ast-tb-main-title{font-size:20px;font-style:normal;font-weight:600;line-height:24px;border-left:1px solid #e2e8f0;border-right:1px solid #e2e8f0;padding:0 20px}.ast-tb-breadcrumbs{color:#4b5563;font-size:13.081px;font-style:normal;font-weight:500;line-height:23.546px}.ast-tb-breadcrumbs a{color:#4b5563;text-decoration:none}.ast-tb-breadcrumbs a:focus{box-shadow:none;outline:none}.ast-tb-crumb-icon{padding:0 8px}.ast-tb-sidebar-header{border-bottom:1px solid #d1d5db}.ast-tb-sidebar-header-left{gap:8px}.ast-tb-sidebar-header-left,.ast-tb-sidebar-header-right{display:flex;align-items:center}.ast-tb-sidebar-header-right>svg{width:14px;position:relative;left:20px}.ast-tb-sidebar-header>h2{color:#1e293b;font-size:16px;font-style:normal;font-weight:600;line-height:24px}.ast-tb-sidebar-subtitle>h3{color:#1e293b;font-size:14px;font-style:normal;font-weight:500;line-height:24px}.ast-tb-sidebar-item{display:flex;align-items:center;gap:8px;cursor:pointer;justify-content:space-between;max-height:28px}.ast-tb-sidebar-item-selected,.ast-tb-sidebar-item:hover{background:#eff6ff}.ast-tb-sidebar-item-label{color:#1e293b;font-size:14px;font-style:normal;font-weight:400;line-height:20px;padding-bottom:2px}.ast-tb-canvas-header{border-bottom:1px solid #d1d5db;margin-top:-20px}.ast-tb-card-title-wrapper{border-top:.5px solid #e9e9e9}.ast-tb-locked{position:absolute;top:30%;right:35%;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:12px;z-index:3}.ast-tb-sidebar-help{bottom:40px;padding:12px 8px 10px;cursor:pointer;justify-content:flex-start}.ast-tb-breadcrumb-icon{position:relative;top:2px}.ast-tb-help-divider{width:100%;border-top:.5px solid #e2e8f0;margin-top:24px;margin-bottom:16px}.ast-upgrade-btn{outline:none!important}.ast-tb-sidebar>div:nth-child(2){padding-bottom:20px} /*!*********************************************************************************************************************************************************************************************************************************************!*\ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/style/index.scss ***! \*********************************************************************************************************************************************************************************************************************************************/*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,0.5);--tw-ring-offset-shadow:0 0 transparent;--tw-ring-shadow:0 0 transparent;--tw-shadow:0 0 transparent;--tw-shadow-colored:0 0 transparent}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,0.5);--tw-ring-offset-shadow:0 0 transparent;--tw-ring-shadow:0 0 transparent;--tw-shadow:0 0 transparent;--tw-shadow-colored:0 0 transparent}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}#ast-tb-app-root .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}#ast-tb-app-root .not-sr-only{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal}#ast-tb-app-root .pointer-events-none{pointer-events:none}#ast-tb-app-root .pointer-events-auto{pointer-events:auto}#ast-tb-app-root .visible{visibility:visible}#ast-tb-app-root .invisible{visibility:hidden}#ast-tb-app-root .collapse{visibility:collapse}#ast-tb-app-root .static{position:static}#ast-tb-app-root .fixed{position:fixed}#ast-tb-app-root .absolute{position:absolute}#ast-tb-app-root .relative{position:relative}#ast-tb-app-root .sticky{position:sticky}#ast-tb-app-root .-inset-1{inset:-.25rem}#ast-tb-app-root .inset-0{inset:0}#ast-tb-app-root .inset-x-0{right:0;left:0}#ast-tb-app-root .inset-y-0{top:0;bottom:0}#ast-tb-app-root .-bottom-px{bottom:-1px}#ast-tb-app-root .bottom-0{bottom:0}#ast-tb-app-root .bottom-1{bottom:.25rem}#ast-tb-app-root .bottom-1\.5{bottom:.375rem}#ast-tb-app-root .left-0{right:0}#ast-tb-app-root .left-1{right:.25rem}#ast-tb-app-root .left-1\/2,#ast-tb-app-root .left-2\/4{right:50%}#ast-tb-app-root .left-\[calc\(50\%\+10px\)\]{right:calc(50% + 10px)}#ast-tb-app-root .left-\[calc\(50\%\+12px\)\]{right:calc(50% + 12px)}#ast-tb-app-root .left-\[calc\(50\%\+14px\)\]{right:calc(50% + 14px)}#ast-tb-app-root .right-0{left:0}#ast-tb-app-root .right-1\/2{left:50%}#ast-tb-app-root .right-3{left:.75rem}#ast-tb-app-root .right-4{left:1rem}#ast-tb-app-root .right-\[calc\(-50\%\+10px\)\]{left:calc(-50% + 10px)}#ast-tb-app-root .right-\[calc\(-50\%\+12px\)\]{left:calc(-50% + 12px)}#ast-tb-app-root .right-\[calc\(-50\%\+14px\)\]{left:calc(-50% + 14px)}#ast-tb-app-root .top-0{top:0}#ast-tb-app-root .top-2\.5{top:.625rem}#ast-tb-app-root .top-2\/4{top:50%}#ast-tb-app-root .top-3{top:.75rem}#ast-tb-app-root .top-3\.5{top:.875rem}#ast-tb-app-root .top-4{top:1rem}#ast-tb-app-root .top-full{top:100%}#ast-tb-app-root .isolate{isolation:isolate}#ast-tb-app-root .isolation-auto{isolation:auto}#ast-tb-app-root .-z-10{z-index:-10}#ast-tb-app-root .z-10{z-index:10}#ast-tb-app-root .z-20{z-index:20}#ast-tb-app-root .z-999999{z-index:999999}#ast-tb-app-root .z-\[1\]{z-index:1}#ast-tb-app-root .z-auto{z-index:auto}#ast-tb-app-root .order-1{order:1}#ast-tb-app-root .order-10{order:10}#ast-tb-app-root .order-11{order:11}#ast-tb-app-root .order-12{order:12}#ast-tb-app-root .order-2{order:2}#ast-tb-app-root .order-3{order:3}#ast-tb-app-root .order-4{order:4}#ast-tb-app-root .order-5{order:5}#ast-tb-app-root .order-6{order:6}#ast-tb-app-root .order-7{order:7}#ast-tb-app-root .order-8{order:8}#ast-tb-app-root .order-9{order:9}#ast-tb-app-root .order-first{order:-9999}#ast-tb-app-root .order-last{order:9999}#ast-tb-app-root .order-none{order:0}#ast-tb-app-root .col-span-1{grid-column:span 1/span 1}#ast-tb-app-root .col-span-10{grid-column:span 10/span 10}#ast-tb-app-root .col-span-11{grid-column:span 11/span 11}#ast-tb-app-root .col-span-12{grid-column:span 12/span 12}#ast-tb-app-root .col-span-2{grid-column:span 2/span 2}#ast-tb-app-root .col-span-3{grid-column:span 3/span 3}#ast-tb-app-root .col-span-4{grid-column:span 4/span 4}#ast-tb-app-root .col-span-5{grid-column:span 5/span 5}#ast-tb-app-root .col-span-6{grid-column:span 6/span 6}#ast-tb-app-root .col-span-7{grid-column:span 7/span 7}#ast-tb-app-root .col-span-8{grid-column:span 8/span 8}#ast-tb-app-root .col-span-9{grid-column:span 9/span 9}#ast-tb-app-root .col-start-1{grid-column-start:1}#ast-tb-app-root .col-start-10{grid-column-start:10}#ast-tb-app-root .col-start-11{grid-column-start:11}#ast-tb-app-root .col-start-12{grid-column-start:12}#ast-tb-app-root .col-start-2{grid-column-start:2}#ast-tb-app-root .col-start-3{grid-column-start:3}#ast-tb-app-root .col-start-4{grid-column-start:4}#ast-tb-app-root .col-start-5{grid-column-start:5}#ast-tb-app-root .col-start-6{grid-column-start:6}#ast-tb-app-root .col-start-7{grid-column-start:7}#ast-tb-app-root .col-start-8{grid-column-start:8}#ast-tb-app-root .col-start-9{grid-column-start:9}#ast-tb-app-root .m-0{margin:0}#ast-tb-app-root .mx-0{margin-right:0;margin-left:0}#ast-tb-app-root .mx-1{margin-right:.25rem;margin-left:.25rem}#ast-tb-app-root .mx-2{margin-right:.5rem;margin-left:.5rem}#ast-tb-app-root .mx-auto{margin-right:auto;margin-left:auto}#ast-tb-app-root .my-0{margin-top:0;margin-bottom:0}#ast-tb-app-root .my-12{margin-top:3rem;margin-bottom:3rem}#ast-tb-app-root .my-2{margin-top:.5rem;margin-bottom:.5rem}#ast-tb-app-root .my-5{margin-top:1.25rem;margin-bottom:1.25rem}#ast-tb-app-root .mb-0{margin-bottom:0}#ast-tb-app-root .mb-1{margin-bottom:.25rem}#ast-tb-app-root .ml-0{margin-right:0}#ast-tb-app-root .ml-1{margin-right:.25rem}#ast-tb-app-root .ml-10{margin-right:2.5rem}#ast-tb-app-root .ml-2{margin-right:.5rem}#ast-tb-app-root .ml-4{margin-right:1rem}#ast-tb-app-root .ml-\[-5px\]{margin-right:-5px}#ast-tb-app-root .ml-auto{margin-right:auto}#ast-tb-app-root .mr-0{margin-left:0}#ast-tb-app-root .mr-0\.5{margin-left:.125rem}#ast-tb-app-root .mr-1{margin-left:.25rem}#ast-tb-app-root .mr-10{margin-left:2.5rem}#ast-tb-app-root .mr-2{margin-left:.5rem}#ast-tb-app-root .mr-3{margin-left:.75rem}#ast-tb-app-root .mr-6{margin-left:1.5rem}#ast-tb-app-root .mr-7{margin-left:1.75rem}#ast-tb-app-root .mt-0{margin-top:0}#ast-tb-app-root .mt-0\.5{margin-top:.125rem}#ast-tb-app-root .mt-1{margin-top:.25rem}#ast-tb-app-root .mt-1\.5{margin-top:.375rem}#ast-tb-app-root .mt-14{margin-top:3.5rem}#ast-tb-app-root .mt-2{margin-top:.5rem}#ast-tb-app-root .mt-2\.5{margin-top:.625rem}#ast-tb-app-root .mt-7{margin-top:1.75rem}#ast-tb-app-root .mt-\[-20px\]{margin-top:-20px}#ast-tb-app-root .mt-\[0\.5px\]{margin-top:.5px}#ast-tb-app-root .mt-\[2px\]{margin-top:2px}#ast-tb-app-root .mt-auto{margin-top:auto}#ast-tb-app-root .mt-px{margin-top:1px}#ast-tb-app-root .box-border{box-sizing:border-box}#ast-tb-app-root .block{display:block}#ast-tb-app-root .inline-block{display:inline-block}#ast-tb-app-root .inline{display:inline}#ast-tb-app-root .flex{display:flex}#ast-tb-app-root .inline-flex{display:inline-flex}#ast-tb-app-root .table{display:table}#ast-tb-app-root .inline-table{display:inline-table}#ast-tb-app-root .table-caption{display:table-caption}#ast-tb-app-root .table-cell{display:table-cell}#ast-tb-app-root .table-column{display:table-column}#ast-tb-app-root .table-column-group{display:table-column-group}#ast-tb-app-root .table-footer-group{display:table-footer-group}#ast-tb-app-root .table-header-group{display:table-header-group}#ast-tb-app-root .table-row-group{display:table-row-group}#ast-tb-app-root .table-row{display:table-row}#ast-tb-app-root .flow-root{display:flow-root}#ast-tb-app-root .grid{display:grid}#ast-tb-app-root .inline-grid{display:inline-grid}#ast-tb-app-root .contents{display:contents}#ast-tb-app-root .list-item{display:list-item}#ast-tb-app-root .hidden{display:none}#ast-tb-app-root .size-1\.5{width:.375rem;height:.375rem}#ast-tb-app-root .size-10{width:2.5rem;height:2.5rem}#ast-tb-app-root .size-12{width:3rem;height:3rem}#ast-tb-app-root .size-2{width:.5rem;height:.5rem}#ast-tb-app-root .size-2\.5{width:.625rem;height:.625rem}#ast-tb-app-root .size-3{width:.75rem;height:.75rem}#ast-tb-app-root .size-3\.5{width:.875rem;height:.875rem}#ast-tb-app-root .size-4{width:1rem;height:1rem}#ast-tb-app-root .size-5{width:1.25rem;height:1.25rem}#ast-tb-app-root .size-6{width:1.5rem;height:1.5rem}#ast-tb-app-root .size-7{width:1.75rem;height:1.75rem}#ast-tb-app-root .size-8{width:2rem;height:2rem}#ast-tb-app-root .h-0{height:0}#ast-tb-app-root .h-1{height:.25rem}#ast-tb-app-root .h-10{height:2.5rem}#ast-tb-app-root .h-12{height:3rem}#ast-tb-app-root .h-2{height:.5rem}#ast-tb-app-root .h-2\.5{height:.625rem}#ast-tb-app-root .h-3{height:.75rem}#ast-tb-app-root .h-4{height:1rem}#ast-tb-app-root .h-5{height:1.25rem}#ast-tb-app-root .h-6{height:1.5rem}#ast-tb-app-root .h-7{height:1.75rem}#ast-tb-app-root .h-8{height:2rem}#ast-tb-app-root .h-\[20px\]{height:20px}#ast-tb-app-root .h-\[80px\]{height:80px}#ast-tb-app-root .h-auto{height:auto}#ast-tb-app-root .h-fit{height:-moz-fit-content;height:fit-content}#ast-tb-app-root .h-full{height:100%}#ast-tb-app-root .h-px{height:1px}#ast-tb-app-root .h-screen{height:100vh}#ast-tb-app-root .max-h-\[10\.75rem\]{max-height:10.75rem}#ast-tb-app-root .max-h-\[13\.5rem\]{max-height:13.5rem}#ast-tb-app-root .min-h-16{min-height:4rem}#ast-tb-app-root .min-h-\[2\.5rem\]{min-height:2.5rem}#ast-tb-app-root .min-h-\[2rem\]{min-height:2rem}#ast-tb-app-root .min-h-\[3rem\]{min-height:3rem}#ast-tb-app-root .min-h-full{min-height:100%}#ast-tb-app-root .w-0{width:0}#ast-tb-app-root .w-1{width:.25rem}#ast-tb-app-root .w-1\/10{width:10%}#ast-tb-app-root .w-1\/11{width:9.0909091%}#ast-tb-app-root .w-1\/12{width:8.3333333%}#ast-tb-app-root .w-1\/2{width:50%}#ast-tb-app-root .w-1\/3{width:33.333333%}#ast-tb-app-root .w-1\/4{width:25%}#ast-tb-app-root .w-1\/5{width:20%}#ast-tb-app-root .w-1\/6{width:16.666667%}#ast-tb-app-root .w-1\/7{width:14.2857143%}#ast-tb-app-root .w-1\/8{width:12.5%}#ast-tb-app-root .w-1\/9{width:11.1111111%}#ast-tb-app-root .w-10{width:2.5rem}#ast-tb-app-root .w-11{width:2.75rem}#ast-tb-app-root .w-120{width:30rem}#ast-tb-app-root .w-16{width:4rem}#ast-tb-app-root .w-2{width:.5rem}#ast-tb-app-root .w-2\.5{width:.625rem}#ast-tb-app-root .w-4{width:1rem}#ast-tb-app-root .w-5{width:1.25rem}#ast-tb-app-root .w-6{width:1.5rem}#ast-tb-app-root .w-72{width:18rem}#ast-tb-app-root .w-80{width:20rem}#ast-tb-app-root .w-96{width:24rem}#ast-tb-app-root .w-\[15rem\]{width:15rem}#ast-tb-app-root .w-\[18\.5rem\]{width:18.5rem}#ast-tb-app-root .w-\[20px\]{width:20px}#ast-tb-app-root .w-\[22\.5rem\]{width:22.5rem}#ast-tb-app-root .w-\[4\.375rem\]{width:4.375rem}#ast-tb-app-root .w-\[calc\(100\%\+0\.75rem\)\]{width:calc(100% + .75rem)}#ast-tb-app-root .w-\[calc\(100\%\+1rem\)\]{width:calc(100% + 1rem)}#ast-tb-app-root .w-\[calc\(100\%_-_5\.5rem\)\]{width:calc(100% - 5.5rem)}#ast-tb-app-root .w-auto{width:auto}#ast-tb-app-root .w-fit{width:-moz-fit-content;width:fit-content}#ast-tb-app-root .w-full{width:100%}#ast-tb-app-root .min-w-10{min-width:2.5rem}#ast-tb-app-root .min-w-12{min-width:3rem}#ast-tb-app-root .min-w-6{min-width:1.5rem}#ast-tb-app-root .min-w-8{min-width:2rem}#ast-tb-app-root .min-w-80{min-width:20rem}#ast-tb-app-root .min-w-\[180px\]{min-width:180px}#ast-tb-app-root .min-w-\[228px\]{min-width:228px}#ast-tb-app-root .min-w-\[8rem\]{min-width:8rem}#ast-tb-app-root .min-w-full{min-width:100%}#ast-tb-app-root .max-w-32{max-width:8rem}#ast-tb-app-root .max-w-80{max-width:20rem}#ast-tb-app-root .max-w-\[352px\]{max-width:352px}#ast-tb-app-root .max-w-full{max-width:100%}#ast-tb-app-root .max-w-xs{max-width:20rem}#ast-tb-app-root .flex-1{flex:1 1 0%}#ast-tb-app-root .flex-shrink-0{flex-shrink:0}#ast-tb-app-root .shrink{flex-shrink:1}#ast-tb-app-root .shrink-0{flex-shrink:0}#ast-tb-app-root .flex-grow,#ast-tb-app-root .grow{flex-grow:1}#ast-tb-app-root .grow-0{flex-grow:0}#ast-tb-app-root .table-fixed{table-layout:fixed}#ast-tb-app-root .border-collapse{border-collapse:collapse}#ast-tb-app-root .border-separate{border-collapse:separate}#ast-tb-app-root .border-spacing-0{--tw-border-spacing-x:0px;--tw-border-spacing-y:0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}#ast-tb-app-root .origin-left{transform-origin:right}#ast-tb-app-root .-translate-x-2\/4{--tw-translate-x:-50%}#ast-tb-app-root .-translate-x-2\/4,#ast-tb-app-root .-translate-y-2\/4{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ast-tb-app-root .-translate-y-2\/4{--tw-translate-y:-50%}#ast-tb-app-root .translate-x-\[-0\.375rem\]{--tw-translate-x:-0.375rem}#ast-tb-app-root .translate-x-\[-0\.5rem\],#ast-tb-app-root .translate-x-\[-0\.375rem\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ast-tb-app-root .translate-x-\[-0\.5rem\]{--tw-translate-x:-0.5rem}#ast-tb-app-root .rotate-0{--tw-rotate:0deg}#ast-tb-app-root .rotate-0,#ast-tb-app-root .rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ast-tb-app-root .rotate-180{--tw-rotate:180deg}#ast-tb-app-root .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}#ast-tb-app-root .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(-1turn)}}#ast-tb-app-root .animate-spin{animation:spin 1s linear infinite}#ast-tb-app-root .cursor-auto{cursor:auto}#ast-tb-app-root .cursor-default{cursor:default}#ast-tb-app-root .cursor-not-allowed{cursor:not-allowed}#ast-tb-app-root .cursor-pointer{cursor:pointer}#ast-tb-app-root .touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}#ast-tb-app-root .resize{resize:both}#ast-tb-app-root .list-none{list-style-type:none}#ast-tb-app-root .appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}#ast-tb-app-root .auto-cols-auto{grid-auto-columns:auto}#ast-tb-app-root .grid-flow-row{grid-auto-flow:row}#ast-tb-app-root .grid-flow-col{grid-auto-flow:column}#ast-tb-app-root .grid-flow-row-dense{grid-auto-flow:row dense}#ast-tb-app-root .grid-flow-col-dense{grid-auto-flow:column dense}#ast-tb-app-root .auto-rows-auto{grid-auto-rows:auto}#ast-tb-app-root .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}#ast-tb-app-root .grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}#ast-tb-app-root .grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}#ast-tb-app-root .grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}#ast-tb-app-root .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}#ast-tb-app-root .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}#ast-tb-app-root .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}#ast-tb-app-root .grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}#ast-tb-app-root .grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}#ast-tb-app-root .grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}#ast-tb-app-root .grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}#ast-tb-app-root .grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}#ast-tb-app-root .grid-cols-\[repeat\(auto-fill\2c _minmax\(250px\2c _1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}#ast-tb-app-root .grid-cols-subgrid{grid-template-columns:subgrid}#ast-tb-app-root .grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}#ast-tb-app-root .grid-rows-subgrid{grid-template-rows:subgrid}#ast-tb-app-root .flex-row{flex-direction:row}#ast-tb-app-root .flex-row-reverse{flex-direction:row-reverse}#ast-tb-app-root .flex-col{flex-direction:column}#ast-tb-app-root .flex-col-reverse{flex-direction:column-reverse}#ast-tb-app-root .flex-wrap{flex-wrap:wrap}#ast-tb-app-root .flex-wrap-reverse{flex-wrap:wrap-reverse}#ast-tb-app-root .flex-nowrap{flex-wrap:nowrap}#ast-tb-app-root .place-content-center{place-content:center}#ast-tb-app-root .content-center{align-content:center}#ast-tb-app-root .content-start{align-content:flex-start}#ast-tb-app-root .items-start{align-items:flex-start}#ast-tb-app-root .items-end{align-items:flex-end}#ast-tb-app-root .items-center{align-items:center}#ast-tb-app-root .items-baseline{align-items:baseline}#ast-tb-app-root .items-stretch{align-items:stretch}#ast-tb-app-root .justify-normal{justify-content:normal}#ast-tb-app-root .justify-start{justify-content:flex-start}#ast-tb-app-root .justify-end{justify-content:flex-end}#ast-tb-app-root .justify-center{justify-content:center}#ast-tb-app-root .justify-between{justify-content:space-between}#ast-tb-app-root .justify-around{justify-content:space-around}#ast-tb-app-root .justify-evenly{justify-content:space-evenly}#ast-tb-app-root .justify-stretch{justify-content:stretch}#ast-tb-app-root .gap-0{gap:0}#ast-tb-app-root .gap-0\.5{gap:.125rem}#ast-tb-app-root .gap-1{gap:.25rem}#ast-tb-app-root .gap-1\.5{gap:.375rem}#ast-tb-app-root .gap-2{gap:.5rem}#ast-tb-app-root .gap-2\.5{gap:.625rem}#ast-tb-app-root .gap-3{gap:.75rem}#ast-tb-app-root .gap-4{gap:1rem}#ast-tb-app-root .gap-5{gap:1.25rem}#ast-tb-app-root .gap-6{gap:1.5rem}#ast-tb-app-root .gap-8{gap:2rem}#ast-tb-app-root .gap-\[30px\]{gap:30px}#ast-tb-app-root .gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}#ast-tb-app-root .gap-x-4{-moz-column-gap:1rem;column-gap:1rem}#ast-tb-app-root .gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}#ast-tb-app-root .gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}#ast-tb-app-root .gap-x-8{-moz-column-gap:2rem;column-gap:2rem}#ast-tb-app-root .gap-y-2{row-gap:.5rem}#ast-tb-app-root .gap-y-4{row-gap:1rem}#ast-tb-app-root .gap-y-5{row-gap:1.25rem}#ast-tb-app-root .gap-y-6{row-gap:1.5rem}#ast-tb-app-root .gap-y-8{row-gap:2rem}#ast-tb-app-root :is(.space-x-1>:not([hidden])~:not){--tw-space-x-reverse:0;margin-left:calc(0.25rem*var(--tw-space-x-reverse));margin-right:calc(0.25rem*(1 - var(--tw-space-x-reverse)))}#ast-tb-app-root :is(.space-y-0\.5>:not([hidden])~:not){--tw-space-y-reverse:0;margin-top:calc(0.125rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.125rem*var(--tw-space-y-reverse))}#ast-tb-app-root :is(.space-y-1>:not([hidden])~:not){--tw-space-y-reverse:0;margin-top:calc(0.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.25rem*var(--tw-space-y-reverse))}#ast-tb-app-root :is(.space-y-1\.5>:not([hidden])~:not){--tw-space-y-reverse:0;margin-top:calc(0.375rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.375rem*var(--tw-space-y-reverse))}#ast-tb-app-root :is(.space-y-2>:not([hidden])~:not){--tw-space-y-reverse:0;margin-top:calc(0.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem*var(--tw-space-y-reverse))}#ast-tb-app-root :is(.space-y-3>:not([hidden])~:not){--tw-space-y-reverse:0;margin-top:calc(0.75rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.75rem*var(--tw-space-y-reverse))}#ast-tb-app-root :is(.space-y-4>:not([hidden])~:not){--tw-space-y-reverse:0;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}#ast-tb-app-root :is(.space-y-reverse>:not([hidden])~:not){--tw-space-y-reverse:1}#ast-tb-app-root :is(.space-x-reverse>:not([hidden])~:not){--tw-space-x-reverse:1}#ast-tb-app-root :is(.divide-x>:not([hidden])~:not){--tw-divide-x-reverse:0;border-left-width:calc(1px*var(--tw-divide-x-reverse));border-right-width:calc(1px*(1 - var(--tw-divide-x-reverse)))}#ast-tb-app-root :is(.divide-x-0>:not([hidden])~:not){--tw-divide-x-reverse:0;border-left-width:calc(0px*var(--tw-divide-x-reverse));border-right-width:calc(0px*(1 - var(--tw-divide-x-reverse)))}#ast-tb-app-root :is(.divide-y>:not([hidden])~:not){--tw-divide-y-reverse:0;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px*var(--tw-divide-y-reverse))}#ast-tb-app-root :is(.divide-y-0\.5>:not([hidden])~:not){--tw-divide-y-reverse:0;border-top-width:calc(0.5px*(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0.5px*var(--tw-divide-y-reverse))}#ast-tb-app-root :is(.divide-y-reverse>:not([hidden])~:not){--tw-divide-y-reverse:1}#ast-tb-app-root :is(.divide-x-reverse>:not([hidden])~:not){--tw-divide-x-reverse:1}#ast-tb-app-root :is(.divide-solid>:not([hidden])~:not){border-style:solid}#ast-tb-app-root :is(.divide-border-subtle>:not([hidden])~:not){--tw-divide-opacity:1;border-color:rgb(230 230 239/var(--tw-divide-opacity,1))}#ast-tb-app-root .self-start{align-self:flex-start}#ast-tb-app-root .self-end{align-self:flex-end}#ast-tb-app-root .self-center{align-self:center}#ast-tb-app-root .self-stretch{align-self:stretch}#ast-tb-app-root .self-baseline{align-self:baseline}#ast-tb-app-root .justify-self-auto{justify-self:auto}#ast-tb-app-root .justify-self-start{justify-self:start}#ast-tb-app-root .justify-self-end{justify-self:end}#ast-tb-app-root .justify-self-center{justify-self:center}#ast-tb-app-root .justify-self-stretch{justify-self:stretch}#ast-tb-app-root .overflow-auto{overflow:auto}#ast-tb-app-root .overflow-hidden{overflow:hidden}#ast-tb-app-root .overflow-visible{overflow:visible}#ast-tb-app-root .overflow-x-auto{overflow-x:auto}#ast-tb-app-root .overflow-y-auto{overflow-y:auto}#ast-tb-app-root .overflow-x-hidden{overflow-x:hidden}#ast-tb-app-root .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#ast-tb-app-root .text-ellipsis{text-overflow:ellipsis}#ast-tb-app-root .text-clip{text-overflow:clip}#ast-tb-app-root .text-wrap{text-wrap:wrap}#ast-tb-app-root .text-nowrap{text-wrap:nowrap}#ast-tb-app-root .rounded{border-radius:.25rem}#ast-tb-app-root .rounded-full{border-radius:9999px}#ast-tb-app-root .rounded-lg{border-radius:.5rem}#ast-tb-app-root .rounded-md{border-radius:.375rem}#ast-tb-app-root .rounded-none{border-radius:0}#ast-tb-app-root .rounded-sm{border-radius:.125rem}#ast-tb-app-root .rounded-xl{border-radius:.75rem}#ast-tb-app-root .rounded-b{border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}#ast-tb-app-root .rounded-b-none{border-bottom-left-radius:0;border-bottom-right-radius:0}#ast-tb-app-root .rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}#ast-tb-app-root .rounded-l{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}#ast-tb-app-root .rounded-r{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}#ast-tb-app-root .rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}#ast-tb-app-root .rounded-t{border-top-right-radius:.25rem;border-top-left-radius:.25rem}#ast-tb-app-root .rounded-bl{border-bottom-right-radius:.25rem}#ast-tb-app-root .rounded-bl-md{border-bottom-right-radius:.375rem}#ast-tb-app-root .rounded-br{border-bottom-left-radius:.25rem}#ast-tb-app-root .rounded-br-md{border-bottom-left-radius:.375rem}#ast-tb-app-root .rounded-ee{border-end-end-radius:.25rem}#ast-tb-app-root .rounded-es{border-end-start-radius:.25rem}#ast-tb-app-root .rounded-se{border-start-end-radius:.25rem}#ast-tb-app-root .rounded-ss{border-start-start-radius:.25rem}#ast-tb-app-root .rounded-tl{border-top-right-radius:.25rem}#ast-tb-app-root .rounded-tl-md{border-top-right-radius:.375rem}#ast-tb-app-root .rounded-tl-none{border-top-right-radius:0}#ast-tb-app-root .rounded-tr{border-top-left-radius:.25rem}#ast-tb-app-root .rounded-tr-md{border-top-left-radius:.375rem}#ast-tb-app-root .rounded-tr-none{border-top-left-radius:0}#ast-tb-app-root .border{border-width:1px}#ast-tb-app-root .border-0{border-width:0}#ast-tb-app-root .border-0\.5,#ast-tb-app-root .border-\[0\.5px\]{border-width:.5px}#ast-tb-app-root .border-x{border-right-width:1px;border-left-width:1px}#ast-tb-app-root .border-x-0{border-right-width:0;border-left-width:0}#ast-tb-app-root .border-y{border-top-width:1px;border-bottom-width:1px}#ast-tb-app-root .border-y-0{border-top-width:0;border-bottom-width:0}#ast-tb-app-root .border-b{border-bottom-width:1px}#ast-tb-app-root .border-b-0{border-bottom-width:0}#ast-tb-app-root .border-b-0\.5{border-bottom-width:.5px}#ast-tb-app-root .border-e{border-inline-end-width:1px}#ast-tb-app-root .border-l{border-right-width:1px}#ast-tb-app-root .border-l-0{border-right-width:0}#ast-tb-app-root .border-r{border-left-width:1px}#ast-tb-app-root .border-r-0{border-left-width:0}#ast-tb-app-root .border-s{border-inline-start-width:1px}#ast-tb-app-root .border-t{border-top-width:1px}#ast-tb-app-root .border-t-0{border-top-width:0}#ast-tb-app-root .border-solid{border-style:solid}#ast-tb-app-root .border-dashed{border-style:dashed}#ast-tb-app-root .border-dotted{border-style:dotted}#ast-tb-app-root .border-double{border-style:double}#ast-tb-app-root .border-hidden{border-style:hidden}#ast-tb-app-root .border-none{border-style:none}#ast-tb-app-root .border-\[\#e9e9e9\]{--tw-border-opacity:1;border-color:rgb(233 233 233/var(--tw-border-opacity,1))}#ast-tb-app-root .border-alert-border-danger{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}#ast-tb-app-root .border-alert-border-green{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity,1))}#ast-tb-app-root .border-alert-border-info{--tw-border-opacity:1;border-color:rgb(186 230 253/var(--tw-border-opacity,1))}#ast-tb-app-root .border-alert-border-neutral{--tw-border-opacity:1;border-color:rgb(230 230 239/var(--tw-border-opacity,1))}#ast-tb-app-root .border-alert-border-warning{--tw-border-opacity:1;border-color:rgb(254 240 138/var(--tw-border-opacity,1))}#ast-tb-app-root .border-background-inverse{--tw-border-opacity:1;border-color:rgb(20 19 56/var(--tw-border-opacity,1))}#ast-tb-app-root .border-badge-border-disabled,#ast-tb-app-root .border-badge-border-gray{--tw-border-opacity:1;border-color:rgb(230 230 239/var(--tw-border-opacity,1))}#ast-tb-app-root .border-badge-border-green{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity,1))}#ast-tb-app-root .border-badge-border-red{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}#ast-tb-app-root .border-badge-border-sky{--tw-border-opacity:1;border-color:rgb(186 230 253/var(--tw-border-opacity,1))}#ast-tb-app-root .border-badge-border-yellow{--tw-border-opacity:1;border-color:rgb(254 240 138/var(--tw-border-opacity,1))}#ast-tb-app-root .border-border-disabled{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}#ast-tb-app-root .border-border-strong{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity,1))}#ast-tb-app-root .border-border-subtle{--tw-border-opacity:1;border-color:rgb(230 230 239/var(--tw-border-opacity,1))}#ast-tb-app-root .border-brand-primary-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}#ast-tb-app-root .border-button-primary{--tw-border-opacity:1;border-color:rgb(92 46 222/var(--tw-border-opacity,1))}#ast-tb-app-root .border-field-border{--tw-border-opacity:1;border-color:rgb(230 230 239/var(--tw-border-opacity,1))}#ast-tb-app-root .border-field-dropzone-color{--tw-border-opacity:1;border-color:rgb(92 46 222/var(--tw-border-opacity,1))}#ast-tb-app-root .border-focus-error-border{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}#ast-tb-app-root .border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}#ast-tb-app-root .border-tab-border{--tw-border-opacity:1;border-color:rgb(230 230 239/var(--tw-border-opacity,1))}#ast-tb-app-root .border-text-inverse{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1))}#ast-tb-app-root .border-toggle-off-border{--tw-border-opacity:1;border-color:rgb(232 207 248/var(--tw-border-opacity,1))}#ast-tb-app-root .border-transparent{border-color:transparent}#ast-tb-app-root .bg-alert-background-danger{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-alert-background-green{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-alert-background-info{--tw-bg-opacity:1;background-color:rgb(240 249 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-alert-background-neutral{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-alert-background-warning{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-background-brand{--tw-bg-opacity:1;background-color:rgb(92 46 222/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-background-inverse{--tw-bg-opacity:1;background-color:rgb(20 19 56/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-background-inverse\/90{background-color:rgba(20,19,56,.9)}#ast-tb-app-root .bg-background-primary{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-background-secondary,#ast-tb-app-root .bg-badge-background-disabled{--tw-bg-opacity:1;background-color:rgb(243 243 248/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-badge-background-gray{--tw-bg-opacity:1;background-color:rgb(249 250 252/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-badge-background-green{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-badge-background-red{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-badge-background-sky{--tw-bg-opacity:1;background-color:rgb(240 249 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-badge-background-yellow{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-border-interactive{--tw-bg-opacity:1;background-color:rgb(92 46 222/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-brand-background-50{--tw-bg-opacity:1;background-color:rgb(231 224 250/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-brand-primary-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-button-danger{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-button-disabled{--tw-bg-opacity:1;background-color:rgb(243 243 248/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-button-primary{--tw-bg-opacity:1;background-color:rgb(92 46 222/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-button-secondary{--tw-bg-opacity:1;background-color:rgb(239 215 249/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-button-tertiary{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-button-tertiary-hover{--tw-bg-opacity:1;background-color:rgb(243 243 248/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-current{background-color:currentColor}#ast-tb-app-root .bg-field-background-disabled,#ast-tb-app-root .bg-field-dropzone-background-hover,#ast-tb-app-root .bg-field-primary-background{--tw-bg-opacity:1;background-color:rgb(249 250 252/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-field-secondary-background{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-icon-interactive{--tw-bg-opacity:1;background-color:rgb(92 46 222/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-misc-progress-background{--tw-bg-opacity:1;background-color:rgb(230 230 239/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-tab-background{--tw-bg-opacity:1;background-color:rgb(249 250 252/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-text-tertiary{--tw-bg-opacity:1;background-color:rgb(159 159 191/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-toggle-dial-background{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-toggle-off{--tw-bg-opacity:1;background-color:rgb(239 215 249/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-toggle-off-disabled{--tw-bg-opacity:1;background-color:rgb(243 243 248/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-tooltip-background-dark{--tw-bg-opacity:1;background-color:rgb(20 19 56/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-tooltip-background-light{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-transparent{background-color:transparent}#ast-tb-app-root .bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-opacity-90{--tw-bg-opacity:0.9}#ast-tb-app-root .bg-repeat{background-repeat:repeat}#ast-tb-app-root .fill-current{fill:currentColor}#ast-tb-app-root .stroke-icon-primary{stroke:#141338}#ast-tb-app-root .object-contain{-o-object-fit:contain;object-fit:contain}#ast-tb-app-root .object-cover{-o-object-fit:cover;object-fit:cover}#ast-tb-app-root .object-center{-o-object-position:center;object-position:center}#ast-tb-app-root .p-0{padding:0}#ast-tb-app-root .p-0\.5{padding:.125rem}#ast-tb-app-root .p-1{padding:.25rem}#ast-tb-app-root .p-1\.5{padding:.375rem}#ast-tb-app-root .p-10{padding:2.5rem}#ast-tb-app-root .p-2{padding:.5rem}#ast-tb-app-root .p-2\.5{padding:.625rem}#ast-tb-app-root .p-3{padding:.75rem}#ast-tb-app-root .p-3\.5{padding:.875rem}#ast-tb-app-root .p-4{padding:1rem}#ast-tb-app-root .p-5{padding:1.25rem}#ast-tb-app-root .p-6{padding:1.5rem}#ast-tb-app-root .p-\[10px\]{padding:10px}#ast-tb-app-root .px-0\.5{padding-right:.125rem;padding-left:.125rem}#ast-tb-app-root .px-1{padding-right:.25rem;padding-left:.25rem}#ast-tb-app-root .px-1\.5{padding-right:.375rem;padding-left:.375rem}#ast-tb-app-root .px-2{padding-right:.5rem;padding-left:.5rem}#ast-tb-app-root .px-2\.5{padding-right:.625rem;padding-left:.625rem}#ast-tb-app-root .px-3{padding-right:.75rem;padding-left:.75rem}#ast-tb-app-root .px-3\.5{padding-right:.875rem;padding-left:.875rem}#ast-tb-app-root .px-4{padding-right:1rem;padding-left:1rem}#ast-tb-app-root .px-5{padding-right:1.25rem;padding-left:1.25rem}#ast-tb-app-root .px-5\.5{padding-right:1.375rem;padding-left:1.375rem}#ast-tb-app-root .px-6{padding-right:1.5rem;padding-left:1.5rem}#ast-tb-app-root .px-8{padding-right:2rem;padding-left:2rem}#ast-tb-app-root .py-0{padding-top:0;padding-bottom:0}#ast-tb-app-root .py-0\.5{padding-top:.125rem;padding-bottom:.125rem}#ast-tb-app-root .py-1{padding-top:.25rem;padding-bottom:.25rem}#ast-tb-app-root .py-1\.5{padding-top:.375rem;padding-bottom:.375rem}#ast-tb-app-root .py-2{padding-top:.5rem;padding-bottom:.5rem}#ast-tb-app-root .py-2\.5{padding-top:.625rem;padding-bottom:.625rem}#ast-tb-app-root .py-3{padding-top:.75rem;padding-bottom:.75rem}#ast-tb-app-root .py-3\.5{padding-top:.875rem;padding-bottom:.875rem}#ast-tb-app-root .py-4{padding-top:1rem;padding-bottom:1rem}#ast-tb-app-root .py-6{padding-top:1.5rem;padding-bottom:1.5rem}#ast-tb-app-root .pb-1{padding-bottom:.25rem}#ast-tb-app-root .pb-3{padding-bottom:.75rem}#ast-tb-app-root .pb-4{padding-bottom:1rem}#ast-tb-app-root .pb-5{padding-bottom:1.25rem}#ast-tb-app-root .pl-10{padding-right:2.5rem}#ast-tb-app-root .pl-2{padding-right:.5rem}#ast-tb-app-root .pl-2\.5{padding-right:.625rem}#ast-tb-app-root .pl-3{padding-right:.75rem}#ast-tb-app-root .pl-4{padding-right:1rem}#ast-tb-app-root .pl-8{padding-right:2rem}#ast-tb-app-root .pl-9{padding-right:2.25rem}#ast-tb-app-root .pr-10{padding-left:2.5rem}#ast-tb-app-root .pr-12{padding-left:3rem}#ast-tb-app-root .pr-2{padding-left:.5rem}#ast-tb-app-root .pr-2\.5{padding-left:.625rem}#ast-tb-app-root .pr-3{padding-left:.75rem}#ast-tb-app-root .pr-4{padding-left:1rem}#ast-tb-app-root .pr-8{padding-left:2rem}#ast-tb-app-root .pr-9{padding-left:2.25rem}#ast-tb-app-root .pt-2{padding-top:.5rem}#ast-tb-app-root .pt-3{padding-top:.75rem}#ast-tb-app-root .pt-5{padding-top:1.25rem}#ast-tb-app-root .text-left{text-align:right}#ast-tb-app-root .text-center{text-align:center}#ast-tb-app-root .align-middle{vertical-align:middle}#ast-tb-app-root .font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}#ast-tb-app-root .text-2xl{font-size:1.5rem;line-height:2rem}#ast-tb-app-root .text-\[12px\]{font-size:12px}#ast-tb-app-root .text-\[16px\]{font-size:16px}#ast-tb-app-root .text-\[18px\]{font-size:18px}#ast-tb-app-root .text-\[20px\]{font-size:20px}#ast-tb-app-root .text-\[24px\]{font-size:24px}#ast-tb-app-root .text-base{font-size:1rem;line-height:1.5rem}#ast-tb-app-root .text-lg{font-size:1.125rem;line-height:1.75rem}#ast-tb-app-root .text-sm{font-size:.875rem;line-height:1.25rem}#ast-tb-app-root .text-tiny{font-size:.625rem}#ast-tb-app-root .text-xl{font-size:1.25rem;line-height:1.75rem}#ast-tb-app-root .text-xs{font-size:.75rem;line-height:1rem}#ast-tb-app-root .font-bold{font-weight:700}#ast-tb-app-root .font-medium{font-weight:500}#ast-tb-app-root .font-normal{font-weight:400}#ast-tb-app-root .font-semibold{font-weight:600}#ast-tb-app-root .uppercase{text-transform:uppercase}#ast-tb-app-root .lowercase{text-transform:lowercase}#ast-tb-app-root .capitalize{text-transform:capitalize}#ast-tb-app-root .normal-case{text-transform:none}#ast-tb-app-root .italic{font-style:italic}#ast-tb-app-root .not-italic{font-style:normal}#ast-tb-app-root .normal-nums{font-variant-numeric:normal}#ast-tb-app-root .ordinal{--tw-ordinal:ordinal}#ast-tb-app-root .ordinal,#ast-tb-app-root .slashed-zero{font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}#ast-tb-app-root .slashed-zero{--tw-slashed-zero:slashed-zero}#ast-tb-app-root .lining-nums{--tw-numeric-figure:lining-nums}#ast-tb-app-root .lining-nums,#ast-tb-app-root .oldstyle-nums{font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}#ast-tb-app-root .oldstyle-nums{--tw-numeric-figure:oldstyle-nums}#ast-tb-app-root .proportional-nums{--tw-numeric-spacing:proportional-nums}#ast-tb-app-root .proportional-nums,#ast-tb-app-root .tabular-nums{font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}#ast-tb-app-root .tabular-nums{--tw-numeric-spacing:tabular-nums}#ast-tb-app-root .diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}#ast-tb-app-root .leading-4{line-height:1rem}#ast-tb-app-root .leading-5{line-height:1.25rem}#ast-tb-app-root .leading-6{line-height:1.5rem}#ast-tb-app-root .leading-\[16px\]{line-height:16px}#ast-tb-app-root .leading-\[24px\]{line-height:24px}#ast-tb-app-root .leading-\[30px\]{line-height:30px}#ast-tb-app-root .leading-\[32px\]{line-height:32px}#ast-tb-app-root .leading-none{line-height:1}#ast-tb-app-root .tracking-\[-0\.005em\]{letter-spacing:-.005em}#ast-tb-app-root .tracking-\[-0\.006em\]{letter-spacing:-.006em}#ast-tb-app-root .tracking-normal{letter-spacing:0}#ast-tb-app-root .text-\[\#6F6B99\]{--tw-text-opacity:1;color:rgb(111 107 153/var(--tw-text-opacity,1))}#ast-tb-app-root .text-background-primary{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}#ast-tb-app-root .text-badge-color-disabled{--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root .text-badge-color-gray{--tw-text-opacity:1;color:rgb(35 34 80/var(--tw-text-opacity,1))}#ast-tb-app-root .text-badge-color-green{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}#ast-tb-app-root .text-badge-color-red{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}#ast-tb-app-root .text-badge-color-sky{--tw-text-opacity:1;color:rgb(3 105 161/var(--tw-text-opacity,1))}#ast-tb-app-root .text-badge-color-yellow{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity,1))}#ast-tb-app-root .text-border-strong{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}#ast-tb-app-root .text-brand-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}#ast-tb-app-root .text-brand-primary-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}#ast-tb-app-root .text-button-danger{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}#ast-tb-app-root .text-button-primary{--tw-text-opacity:1;color:rgb(92 46 222/var(--tw-text-opacity,1))}#ast-tb-app-root .text-button-secondary{--tw-text-opacity:1;color:rgb(239 215 249/var(--tw-text-opacity,1))}#ast-tb-app-root .text-button-tertiary-color{--tw-text-opacity:1;color:rgb(20 19 56/var(--tw-text-opacity,1))}#ast-tb-app-root .text-field-color-disabled{--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root .text-field-dropzone-color{--tw-text-opacity:1;color:rgb(92 46 222/var(--tw-text-opacity,1))}#ast-tb-app-root .text-field-helper{--tw-text-opacity:1;color:rgb(159 159 191/var(--tw-text-opacity,1))}#ast-tb-app-root .text-field-input{--tw-text-opacity:1;color:rgb(20 19 56/var(--tw-text-opacity,1))}#ast-tb-app-root .text-field-label{--tw-text-opacity:1;color:rgb(79 78 124/var(--tw-text-opacity,1))}#ast-tb-app-root .text-field-placeholder{--tw-text-opacity:1;color:rgb(159 159 191/var(--tw-text-opacity,1))}#ast-tb-app-root .text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}#ast-tb-app-root .text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}#ast-tb-app-root .text-icon-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}#ast-tb-app-root .text-icon-inverse,#ast-tb-app-root .text-icon-on-color-disabled{--tw-text-opacity:1;color:rgb(159 159 191/var(--tw-text-opacity,1))}#ast-tb-app-root .text-icon-primary{--tw-text-opacity:1;color:rgb(20 19 56/var(--tw-text-opacity,1))}#ast-tb-app-root .text-icon-secondary{--tw-text-opacity:1;color:rgb(111 107 153/var(--tw-text-opacity,1))}#ast-tb-app-root .text-link-primary{--tw-text-opacity:1;color:rgb(92 46 222/var(--tw-text-opacity,1))}#ast-tb-app-root .text-support-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}#ast-tb-app-root .text-support-error-inverse{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}#ast-tb-app-root .text-support-info{--tw-text-opacity:1;color:rgb(2 132 199/var(--tw-text-opacity,1))}#ast-tb-app-root .text-support-info-inverse{--tw-text-opacity:1;color:rgb(56 189 248/var(--tw-text-opacity,1))}#ast-tb-app-root .text-support-success{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}#ast-tb-app-root .text-support-success-inverse{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity,1))}#ast-tb-app-root .text-support-warning{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}#ast-tb-app-root .text-support-warning-inverse{--tw-text-opacity:1;color:rgb(253 224 71/var(--tw-text-opacity,1))}#ast-tb-app-root .text-text-disabled{--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root .text-text-inverse,#ast-tb-app-root .text-text-on-color{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}#ast-tb-app-root .text-text-primary{--tw-text-opacity:1;color:rgb(20 19 56/var(--tw-text-opacity,1))}#ast-tb-app-root .text-text-secondary{--tw-text-opacity:1;color:rgb(79 78 124/var(--tw-text-opacity,1))}#ast-tb-app-root .text-text-tertiary{--tw-text-opacity:1;color:rgb(159 159 191/var(--tw-text-opacity,1))}#ast-tb-app-root .text-tooltip-background-dark{--tw-text-opacity:1;color:rgb(20 19 56/var(--tw-text-opacity,1))}#ast-tb-app-root .text-tooltip-background-light,#ast-tb-app-root .text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}#ast-tb-app-root .underline{text-decoration-line:underline}#ast-tb-app-root .overline{text-decoration-line:overline}#ast-tb-app-root .line-through{text-decoration-line:line-through}#ast-tb-app-root .no-underline{text-decoration-line:none}#ast-tb-app-root .antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#ast-tb-app-root .subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}#ast-tb-app-root .placeholder-text-tertiary::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(159 159 191/var(--tw-placeholder-opacity,1))}#ast-tb-app-root .placeholder-text-tertiary::placeholder{--tw-placeholder-opacity:1;color:rgb(159 159 191/var(--tw-placeholder-opacity,1))}#ast-tb-app-root .opacity-0{opacity:0}#ast-tb-app-root .opacity-40{opacity:.4}#ast-tb-app-root .opacity-50{opacity:.5}#ast-tb-app-root .shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px -1px rgba(0,0,0,0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}#ast-tb-app-root .shadow,#ast-tb-app-root .shadow-2xl{box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}#ast-tb-app-root .shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,0.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}#ast-tb-app-root .shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -4px rgba(0,0,0,0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}#ast-tb-app-root .shadow-lg,#ast-tb-app-root .shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}#ast-tb-app-root .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,0.1),0 2px 4px -2px rgba(0,0,0,0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}#ast-tb-app-root .shadow-none{--tw-shadow:0 0 transparent;--tw-shadow-colored:0 0 transparent}#ast-tb-app-root .shadow-none,#ast-tb-app-root .shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}#ast-tb-app-root .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,0.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}#ast-tb-app-root .shadow-soft-shadow-2xl{--tw-shadow:0px 24px 64px -12px rgba(149,160,178,0.32);--tw-shadow-colored:0px 24px 64px -12px var(--tw-shadow-color)}#ast-tb-app-root .shadow-soft-shadow-2xl,#ast-tb-app-root .shadow-soft-shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}#ast-tb-app-root .shadow-soft-shadow-lg{--tw-shadow:0px 12px 32px -12px rgba(149,160,178,0.24);--tw-shadow-colored:0px 12px 32px -12px var(--tw-shadow-color)}#ast-tb-app-root .shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,0.1),0 8px 10px -6px rgba(0,0,0,0.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}#ast-tb-app-root .outline-none{outline:2px solid transparent;outline-offset:2px}#ast-tb-app-root .outline{outline-style:solid}#ast-tb-app-root .outline-1{outline-width:1px}#ast-tb-app-root .outline-border-disabled{outline-color:#e5e7eb}#ast-tb-app-root .outline-border-subtle{outline-color:#e6e6ef}#ast-tb-app-root .outline-button-danger{outline-color:#dc2626}#ast-tb-app-root .outline-button-primary{outline-color:#5c2ede}#ast-tb-app-root .outline-button-secondary{outline-color:#efd7f9}#ast-tb-app-root .outline-field-border{outline-color:#e6e6ef}#ast-tb-app-root .outline-field-border-disabled{outline-color:#f3f3f8}#ast-tb-app-root .outline-focus-error-border{outline-color:#fecaca}#ast-tb-app-root .outline-transparent{outline-color:transparent}#ast-tb-app-root .ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}#ast-tb-app-root .ring,#ast-tb-app-root .ring-0{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}#ast-tb-app-root .ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}#ast-tb-app-root .ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}#ast-tb-app-root .ring-1,#ast-tb-app-root .ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}#ast-tb-app-root .ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}#ast-tb-app-root .ring-inset{--tw-ring-inset:inset}#ast-tb-app-root .ring-alert-border-danger{--tw-ring-opacity:1;--tw-ring-color:rgb(254 202 202/var(--tw-ring-opacity,1))}#ast-tb-app-root .ring-alert-border-green{--tw-ring-opacity:1;--tw-ring-color:rgb(187 247 208/var(--tw-ring-opacity,1))}#ast-tb-app-root .ring-alert-border-info{--tw-ring-opacity:1;--tw-ring-color:rgb(186 230 253/var(--tw-ring-opacity,1))}#ast-tb-app-root .ring-alert-border-neutral{--tw-ring-opacity:1;--tw-ring-color:rgb(230 230 239/var(--tw-ring-opacity,1))}#ast-tb-app-root .ring-alert-border-warning{--tw-ring-opacity:1;--tw-ring-color:rgb(254 240 138/var(--tw-ring-opacity,1))}#ast-tb-app-root .ring-background-inverse{--tw-ring-opacity:1;--tw-ring-color:rgb(20 19 56/var(--tw-ring-opacity,1))}#ast-tb-app-root .ring-border-interactive{--tw-ring-opacity:1;--tw-ring-color:rgb(92 46 222/var(--tw-ring-opacity,1))}#ast-tb-app-root .ring-border-subtle{--tw-ring-opacity:1;--tw-ring-color:rgb(230 230 239/var(--tw-ring-opacity,1))}#ast-tb-app-root .ring-border-transparent-subtle{--tw-ring-color:rgba(55,65,81,0.0784313725490196)}#ast-tb-app-root .ring-brand-primary-600{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity,1))}#ast-tb-app-root .ring-tab-border{--tw-ring-opacity:1;--tw-ring-color:rgb(230 230 239/var(--tw-ring-opacity,1))}#ast-tb-app-root .ring-offset-0{--tw-ring-offset-width:0px}#ast-tb-app-root .blur{--tw-blur:blur(8px)}#ast-tb-app-root .blur,#ast-tb-app-root .drop-shadow{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#ast-tb-app-root .drop-shadow{--tw-drop-shadow:drop-shadow(0 1px 2px rgba(0,0,0,0.1)) drop-shadow(0 1px 1px rgba(0,0,0,0.06))}#ast-tb-app-root .grayscale{--tw-grayscale:grayscale(100%)}#ast-tb-app-root .grayscale,#ast-tb-app-root .invert{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#ast-tb-app-root .invert{--tw-invert:invert(100%)}#ast-tb-app-root .sepia{--tw-sepia:sepia(100%)}#ast-tb-app-root .filter,#ast-tb-app-root .sepia{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#ast-tb-app-root .backdrop-blur{--tw-backdrop-blur:blur(8px)}#ast-tb-app-root .backdrop-blur,#ast-tb-app-root .backdrop-grayscale{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}#ast-tb-app-root .backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%)}#ast-tb-app-root .backdrop-invert{--tw-backdrop-invert:invert(100%)}#ast-tb-app-root .backdrop-invert,#ast-tb-app-root .backdrop-sepia{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}#ast-tb-app-root .backdrop-sepia{--tw-backdrop-sepia:sepia(100%)}#ast-tb-app-root .backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}#ast-tb-app-root .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#ast-tb-app-root .transition-\[box-shadow\2c color\2c background-color\]{transition-property:box-shadow,color,background-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#ast-tb-app-root .transition-\[color\2c box-shadow\2c outline\]{transition-property:color,box-shadow,outline;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#ast-tb-app-root .transition-\[color\2c outline\2c box-shadow\]{transition-property:color,outline,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#ast-tb-app-root .transition-\[outline\2c background-color\2c color\2c box-shadow\]{transition-property:outline,background-color,color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#ast-tb-app-root .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#ast-tb-app-root .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#ast-tb-app-root .transition-none{transition-property:none}#ast-tb-app-root .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#ast-tb-app-root .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#ast-tb-app-root .duration-150{transition-duration:.15s}#ast-tb-app-root .duration-200{transition-duration:.2s}#ast-tb-app-root .duration-300{transition-duration:.3s}#ast-tb-app-root .duration-500{transition-duration:.5s}#ast-tb-app-root .ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}#ast-tb-app-root .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}#ast-tb-app-root .ease-linear{transition-timing-function:linear}#ast-tb-app-root .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}#ast-tb-app-root .\[grid-area\:1\/1\/2\/3\]{grid-area:1/1/2/3}#ast-tb-app-root .file\:border-0::file-selector-button{border-width:0}#ast-tb-app-root .file\:bg-transparent::file-selector-button{background-color:transparent}#ast-tb-app-root .file\:text-text-tertiary::file-selector-button{--tw-text-opacity:1;color:rgb(159 159 191/var(--tw-text-opacity,1))}#ast-tb-app-root .placeholder\:text-field-placeholder::-moz-placeholder{--tw-text-opacity:1;color:rgb(159 159 191/var(--tw-text-opacity,1))}#ast-tb-app-root .placeholder\:text-field-placeholder::placeholder{--tw-text-opacity:1;color:rgb(159 159 191/var(--tw-text-opacity,1))}#ast-tb-app-root .placeholder\:text-text-disabled::-moz-placeholder{--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root .placeholder\:text-text-disabled::placeholder{--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root .before\:absolute:before{content:var(--tw-content);position:absolute}#ast-tb-app-root .before\:left-2\/4:before{content:var(--tw-content);right:50%}#ast-tb-app-root .before\:top-2\/4:before{content:var(--tw-content);top:50%}#ast-tb-app-root .before\:hidden:before{content:var(--tw-content);display:none}#ast-tb-app-root .before\:h-10:before{content:var(--tw-content);height:2.5rem}#ast-tb-app-root .before\:w-10:before{content:var(--tw-content);width:2.5rem}#ast-tb-app-root .before\:-translate-x-2\/4:before{--tw-translate-x:-50%}#ast-tb-app-root .before\:-translate-x-2\/4:before,#ast-tb-app-root .before\:-translate-y-2\/4:before{content:var(--tw-content);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ast-tb-app-root .before\:-translate-y-2\/4:before{--tw-translate-y:-50%}#ast-tb-app-root .before\:rounded-full:before{content:var(--tw-content);border-radius:9999px}#ast-tb-app-root .before\:opacity-0:before{content:var(--tw-content);opacity:0}#ast-tb-app-root .before\:transition-opacity:before{content:var(--tw-content);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#ast-tb-app-root .before\:content-\[\'\'\]:before{--tw-content:"";content:var(--tw-content)}#ast-tb-app-root .after\:ml-0\.5:after{content:var(--tw-content);margin-right:.125rem}#ast-tb-app-root .after\:text-field-required:after{content:var(--tw-content);--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}#ast-tb-app-root .after\:content-\[\'\*\'\]:after{--tw-content:"*";content:var(--tw-content)}#ast-tb-app-root .first\:rounded-bl:first-child{border-bottom-right-radius:.25rem}#ast-tb-app-root .first\:rounded-tl:first-child{border-top-right-radius:.25rem}#ast-tb-app-root .first\:border-0:first-child{border-width:0}#ast-tb-app-root .first\:border-r:first-child{border-left-width:1px}#ast-tb-app-root .first\:border-border-subtle:first-child{--tw-border-opacity:1;border-color:rgb(230 230 239/var(--tw-border-opacity,1))}#ast-tb-app-root .last\:rounded-br:last-child{border-bottom-left-radius:.25rem}#ast-tb-app-root .last\:rounded-tr:last-child{border-top-left-radius:.25rem}#ast-tb-app-root .last\:border-0:last-child{border-width:0}#ast-tb-app-root .checked\:border-border-interactive:checked{--tw-border-opacity:1;border-color:rgb(92 46 222/var(--tw-border-opacity,1))}#ast-tb-app-root .checked\:border-toggle-on-border:checked{--tw-border-opacity:1;border-color:rgb(99 74 224/var(--tw-border-opacity,1))}#ast-tb-app-root .checked\:bg-toggle-on:checked{--tw-bg-opacity:1;background-color:rgb(92 46 222/var(--tw-bg-opacity,1))}#ast-tb-app-root .checked\:\[background-image\:none\]:checked{background-image:none}#ast-tb-app-root .checked\:before\:hidden:checked:before{content:var(--tw-content);display:none}#ast-tb-app-root .checked\:before\:content-\[\'\'\]:checked:before{--tw-content:"";content:var(--tw-content)}#ast-tb-app-root .focus-within\:z-10:focus-within{z-index:10}#ast-tb-app-root .focus-within\:border-focus-border:focus-within{--tw-border-opacity:1;border-color:rgb(232 207 248/var(--tw-border-opacity,1))}#ast-tb-app-root .focus-within\:text-field-input:focus-within{--tw-text-opacity:1;color:rgb(20 19 56/var(--tw-text-opacity,1))}#ast-tb-app-root .focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}#ast-tb-app-root .focus-within\:outline-focus-border:focus-within{outline-color:#e8cff8}#ast-tb-app-root .focus-within\:ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}#ast-tb-app-root .focus-within\:ring-focus:focus-within{--tw-ring-opacity:1;--tw-ring-color:rgb(92 46 222/var(--tw-ring-opacity,1))}#ast-tb-app-root .focus-within\:ring-offset-2:focus-within{--tw-ring-offset-width:2px}#ast-tb-app-root .hover\:border-border-disabled:hover{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}#ast-tb-app-root .hover\:border-border-interactive:hover{--tw-border-opacity:1;border-color:rgb(92 46 222/var(--tw-border-opacity,1))}#ast-tb-app-root .hover\:border-border-strong:hover{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity,1))}#ast-tb-app-root .hover\:border-button-primary:hover{--tw-border-opacity:1;border-color:rgb(92 46 222/var(--tw-border-opacity,1))}#ast-tb-app-root .hover\:border-field-border:hover{--tw-border-opacity:1;border-color:rgb(230 230 239/var(--tw-border-opacity,1))}#ast-tb-app-root .hover\:border-field-dropzone-color:hover{--tw-border-opacity:1;border-color:rgb(92 46 222/var(--tw-border-opacity,1))}#ast-tb-app-root .hover\:border-text-inverse:hover{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1))}#ast-tb-app-root .hover\:bg-\[\#141338\]:hover{--tw-bg-opacity:1;background-color:rgb(20 19 56/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-\[\#F3F3F8\]:hover{--tw-bg-opacity:1;background-color:rgb(243 243 248/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-background-brand:hover{--tw-bg-opacity:1;background-color:rgb(92 46 222/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-background-secondary:hover,#ast-tb-app-root .hover\:bg-badge-hover-disabled:hover,#ast-tb-app-root .hover\:bg-badge-hover-gray:hover{--tw-bg-opacity:1;background-color:rgb(243 243 248/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-badge-hover-green:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-badge-hover-red:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-badge-hover-sky:hover{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-badge-hover-yellow:hover{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-button-danger-hover:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-button-primary-hover:hover{--tw-bg-opacity:1;background-color:rgb(173 56 226/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-button-secondary-hover:hover{--tw-bg-opacity:1;background-color:rgb(59 58 106/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-button-tertiary-hover:hover{--tw-bg-opacity:1;background-color:rgb(243 243 248/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-field-background-error:hover{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-field-dropzone-background-hover:hover{--tw-bg-opacity:1;background-color:rgb(249 250 252/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-transparent:hover{background-color:transparent}#ast-tb-app-root .hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}#ast-tb-app-root .hover\:text-button-danger-secondary:hover{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}#ast-tb-app-root .hover\:text-button-primary-hover:hover,#ast-tb-app-root .hover\:text-link-primary-hover:hover{--tw-text-opacity:1;color:rgb(173 56 226/var(--tw-text-opacity,1))}#ast-tb-app-root .hover\:text-text-disabled:hover{--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root .hover\:text-text-inverse:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}#ast-tb-app-root .hover\:text-text-primary:hover{--tw-text-opacity:1;color:rgb(20 19 56/var(--tw-text-opacity,1))}#ast-tb-app-root .hover\:underline:hover{text-decoration-line:underline}#ast-tb-app-root .hover\:no-underline:hover{text-decoration-line:none}#ast-tb-app-root .hover\:shadow-sm:hover{--tw-shadow:0 1px 2px 0 rgba(0,0,0,0.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}#ast-tb-app-root .hover\:outline-border-disabled:hover{outline-color:#e5e7eb}#ast-tb-app-root .hover\:outline-border-strong:hover{outline-color:#6b7280}#ast-tb-app-root .hover\:outline-border-subtle:hover{outline-color:#e6e6ef}#ast-tb-app-root .hover\:outline-button-danger:hover{outline-color:#dc2626}#ast-tb-app-root .hover\:outline-button-danger-hover:hover{outline-color:#b91c1c}#ast-tb-app-root .hover\:outline-button-primary-hover:hover{outline-color:#ad38e2}#ast-tb-app-root .hover\:outline-button-secondary-hover:hover{outline-color:#3b3a6a}#ast-tb-app-root .hover\:outline-field-border-disabled:hover{outline-color:#f3f3f8}#ast-tb-app-root .hover\:ring-2:hover{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}#ast-tb-app-root .hover\:ring-border-interactive:hover{--tw-ring-opacity:1;--tw-ring-color:rgb(92 46 222/var(--tw-ring-opacity,1))}#ast-tb-app-root .hover\:\[color\:\#141338\]:hover{color:#141338}#ast-tb-app-root .hover\:before\:opacity-10:hover:before{content:var(--tw-content);opacity:.1}#ast-tb-app-root .checked\:hover\:border-toggle-on-hover:hover:checked{--tw-border-opacity:1;border-color:rgb(92 46 222/var(--tw-border-opacity,1))}#ast-tb-app-root .checked\:hover\:bg-toggle-on-hover:hover:checked{--tw-bg-opacity:1;background-color:rgb(92 46 222/var(--tw-bg-opacity,1))}#ast-tb-app-root .focus-within\:hover\:border-focus-border:hover:focus-within{--tw-border-opacity:1;border-color:rgb(232 207 248/var(--tw-border-opacity,1))}#ast-tb-app-root .hover\:focus-within\:outline-focus-border:focus-within:hover{outline-color:#e8cff8}#ast-tb-app-root .focus\:rounded-sm:focus{border-radius:.125rem}#ast-tb-app-root .focus\:border-border-interactive:focus{--tw-border-opacity:1;border-color:rgb(92 46 222/var(--tw-border-opacity,1))}#ast-tb-app-root .focus\:border-focus-border:focus{--tw-border-opacity:1;border-color:rgb(232 207 248/var(--tw-border-opacity,1))}#ast-tb-app-root .focus\:border-focus-error-border:focus{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}#ast-tb-app-root .focus\:border-toggle-off-border:focus{--tw-border-opacity:1;border-color:rgb(232 207 248/var(--tw-border-opacity,1))}#ast-tb-app-root .focus\:border-transparent:focus{border-color:transparent}#ast-tb-app-root .focus\:bg-background-secondary:focus,#ast-tb-app-root .focus\:bg-button-tertiary-hover:focus{--tw-bg-opacity:1;background-color:rgb(243 243 248/var(--tw-bg-opacity,1))}#ast-tb-app-root .focus\:shadow-none:focus{--tw-shadow:0 0 transparent;--tw-shadow-colored:0 0 transparent;box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}#ast-tb-app-root .focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}#ast-tb-app-root .focus\:outline:focus{outline-style:solid}#ast-tb-app-root .focus\:outline-1:focus{outline-width:1px}#ast-tb-app-root .focus\:outline-border-subtle:focus{outline-color:#e6e6ef}#ast-tb-app-root .focus\:outline-focus-border:focus{outline-color:#e8cff8}#ast-tb-app-root .focus\:outline-focus-error-border:focus{outline-color:#fecaca}#ast-tb-app-root .focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}#ast-tb-app-root .focus\:ring-0:focus,#ast-tb-app-root .focus\:ring:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}#ast-tb-app-root .focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}#ast-tb-app-root .focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}#ast-tb-app-root .focus\:ring-1:focus,#ast-tb-app-root .focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}#ast-tb-app-root .focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}#ast-tb-app-root .focus\:ring-border-interactive:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(92 46 222/var(--tw-ring-opacity,1))}#ast-tb-app-root .focus\:ring-field-color-error:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity,1))}#ast-tb-app-root .focus\:ring-focus:focus,#ast-tb-app-root .focus\:ring-toggle-on:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(92 46 222/var(--tw-ring-opacity,1))}#ast-tb-app-root .focus\:ring-transparent:focus{--tw-ring-color:transparent}#ast-tb-app-root .focus\:ring-offset-0:focus{--tw-ring-offset-width:0px}#ast-tb-app-root .focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}#ast-tb-app-root .focus\:\[box-shadow\:none\]:focus{box-shadow:none}#ast-tb-app-root .checked\:focus\:border-toggle-on-border:focus:checked{--tw-border-opacity:1;border-color:rgb(99 74 224/var(--tw-border-opacity,1))}#ast-tb-app-root .focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}#ast-tb-app-root .active\:text-button-primary:active{--tw-text-opacity:1;color:rgb(92 46 222/var(--tw-text-opacity,1))}#ast-tb-app-root .active\:outline-none:active{outline:2px solid transparent;outline-offset:2px}#ast-tb-app-root .disabled\:cursor-default:disabled{cursor:default}#ast-tb-app-root .disabled\:cursor-not-allowed:disabled{cursor:not-allowed}#ast-tb-app-root .disabled\:border-border-disabled:disabled{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}#ast-tb-app-root .disabled\:border-field-border-disabled:disabled{--tw-border-opacity:1;border-color:rgb(243 243 248/var(--tw-border-opacity,1))}#ast-tb-app-root .disabled\:border-transparent:disabled{border-color:transparent}#ast-tb-app-root .disabled\:bg-button-disabled:disabled{--tw-bg-opacity:1;background-color:rgb(243 243 248/var(--tw-bg-opacity,1))}#ast-tb-app-root .disabled\:bg-button-tertiary:disabled,#ast-tb-app-root .disabled\:bg-white:disabled{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .disabled\:text-text-disabled:disabled{--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root .disabled\:outline-border-disabled:disabled{outline-color:#e5e7eb}#ast-tb-app-root .disabled\:outline-button-disabled:disabled,#ast-tb-app-root .disabled\:outline-field-border-disabled:disabled{outline-color:#f3f3f8}#ast-tb-app-root .checked\:disabled\:border-border-disabled:disabled:checked{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}#ast-tb-app-root .checked\:disabled\:bg-toggle-on-disabled:disabled:checked{--tw-bg-opacity:1;background-color:rgb(231 224 250/var(--tw-bg-opacity,1))}#ast-tb-app-root .checked\:disabled\:bg-white:disabled:checked{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#ast-tb-app-root :is(.group\/switch:focus-within .group-focus-within\/switch\:left-0\.5){right:.125rem}#ast-tb-app-root :is(.group\/switch:focus-within .group-focus-within\/switch\:size-4){width:1rem;height:1rem}#ast-tb-app-root :is(.group\/switch:focus-within .group-focus-within\/switch\:size-5){width:1.25rem;height:1.25rem}#ast-tb-app-root :is(.group:focus-within .group-focus-within\:text-icon-primary){--tw-text-opacity:1;color:rgb(20 19 56/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.group\/switch:hover .group-hover\/switch\:left-0\.5){right:.125rem}#ast-tb-app-root :is(.group\/switch:hover .group-hover\/switch\:size-4){width:1rem;height:1rem}#ast-tb-app-root :is(.group\/switch:hover .group-hover\/switch\:size-5){width:1.25rem;height:1.25rem}#ast-tb-app-root :is(.group\/switch:hover .group-hover\/switch\:bg-toggle-off-hover){--tw-bg-opacity:1;background-color:rgb(232 207 248/var(--tw-bg-opacity,1))}#ast-tb-app-root :is(.group:hover .group-hover\:stroke-\[\#141338\]){stroke:#141338}#ast-tb-app-root :is(.group:hover .group-hover\:text-\[\#141338\]),#ast-tb-app-root :is(.group:hover .group-hover\:text-field-input),#ast-tb-app-root :is(.group:hover .group-hover\:text-icon-primary){--tw-text-opacity:1;color:rgb(20 19 56/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.group:hover .group-hover\:text-text-disabled){--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.group:hover .group-hover\:text-text-primary){--tw-text-opacity:1;color:rgb(20 19 56/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.group:hover .group-hover\:\[color\:\#141338\]){color:#141338}#ast-tb-app-root :is(.group\/switch:hover .checked\:group-hover\/switch\:border-toggle-on-border:checked){--tw-border-opacity:1;border-color:rgb(99 74 224/var(--tw-border-opacity,1))}#ast-tb-app-root :is(.group\/switch:hover .checked\:group-hover\/switch\:bg-toggle-on-hover:checked){--tw-bg-opacity:1;background-color:rgb(92 46 222/var(--tw-bg-opacity,1))}#ast-tb-app-root :is(.group:disabled .group-disabled\:text-field-color-disabled){--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.group:disabled .group-disabled\:text-icon-disabled){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.peer:checked~.peer-checked\:translate-x-5){--tw-translate-x:1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ast-tb-app-root :is(.peer:checked~.peer-checked\:opacity-100){opacity:1}#ast-tb-app-root :is(.peer:disabled~.peer-disabled\:cursor-not-allowed){cursor:not-allowed}#ast-tb-app-root :is(.peer:disabled~.peer-disabled\:text-border-disabled){--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}@media (min-width:768px){#ast-tb-app-root .md\:order-1{order:1}#ast-tb-app-root .md\:order-10{order:10}#ast-tb-app-root .md\:order-11{order:11}#ast-tb-app-root .md\:order-12{order:12}#ast-tb-app-root .md\:order-2{order:2}#ast-tb-app-root .md\:order-3{order:3}#ast-tb-app-root .md\:order-4{order:4}#ast-tb-app-root .md\:order-5{order:5}#ast-tb-app-root .md\:order-6{order:6}#ast-tb-app-root .md\:order-7{order:7}#ast-tb-app-root .md\:order-8{order:8}#ast-tb-app-root .md\:order-9{order:9}#ast-tb-app-root .md\:order-first{order:-9999}#ast-tb-app-root .md\:order-last{order:9999}#ast-tb-app-root .md\:order-none{order:0}#ast-tb-app-root .md\:col-span-1{grid-column:span 1/span 1}#ast-tb-app-root .md\:col-span-10{grid-column:span 10/span 10}#ast-tb-app-root .md\:col-span-11{grid-column:span 11/span 11}#ast-tb-app-root .md\:col-span-12{grid-column:span 12/span 12}#ast-tb-app-root .md\:col-span-2{grid-column:span 2/span 2}#ast-tb-app-root .md\:col-span-3{grid-column:span 3/span 3}#ast-tb-app-root .md\:col-span-4{grid-column:span 4/span 4}#ast-tb-app-root .md\:col-span-5{grid-column:span 5/span 5}#ast-tb-app-root .md\:col-span-6{grid-column:span 6/span 6}#ast-tb-app-root .md\:col-span-7{grid-column:span 7/span 7}#ast-tb-app-root .md\:col-span-8{grid-column:span 8/span 8}#ast-tb-app-root .md\:col-span-9{grid-column:span 9/span 9}#ast-tb-app-root .md\:col-start-1{grid-column-start:1}#ast-tb-app-root .md\:col-start-10{grid-column-start:10}#ast-tb-app-root .md\:col-start-11{grid-column-start:11}#ast-tb-app-root .md\:col-start-12{grid-column-start:12}#ast-tb-app-root .md\:col-start-2{grid-column-start:2}#ast-tb-app-root .md\:col-start-3{grid-column-start:3}#ast-tb-app-root .md\:col-start-4{grid-column-start:4}#ast-tb-app-root .md\:col-start-5{grid-column-start:5}#ast-tb-app-root .md\:col-start-6{grid-column-start:6}#ast-tb-app-root .md\:col-start-7{grid-column-start:7}#ast-tb-app-root .md\:col-start-8{grid-column-start:8}#ast-tb-app-root .md\:col-start-9{grid-column-start:9}#ast-tb-app-root .md\:w-1\/10{width:10%}#ast-tb-app-root .md\:w-1\/11{width:9.0909091%}#ast-tb-app-root .md\:w-1\/12{width:8.3333333%}#ast-tb-app-root .md\:w-1\/2{width:50%}#ast-tb-app-root .md\:w-1\/3{width:33.333333%}#ast-tb-app-root .md\:w-1\/4{width:25%}#ast-tb-app-root .md\:w-1\/5{width:20%}#ast-tb-app-root .md\:w-1\/6{width:16.666667%}#ast-tb-app-root .md\:w-1\/7{width:14.2857143%}#ast-tb-app-root .md\:w-1\/8{width:12.5%}#ast-tb-app-root .md\:w-1\/9{width:11.1111111%}#ast-tb-app-root .md\:w-full{width:100%}#ast-tb-app-root .md\:shrink{flex-shrink:1}#ast-tb-app-root .md\:shrink-0{flex-shrink:0}#ast-tb-app-root .md\:grow{flex-grow:1}#ast-tb-app-root .md\:grow-0{flex-grow:0}#ast-tb-app-root .md\:grid-flow-row{grid-auto-flow:row}#ast-tb-app-root .md\:grid-flow-col{grid-auto-flow:column}#ast-tb-app-root .md\:grid-flow-row-dense{grid-auto-flow:row dense}#ast-tb-app-root .md\:grid-flow-col-dense{grid-auto-flow:column dense}#ast-tb-app-root .md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}#ast-tb-app-root .md\:flex-row{flex-direction:row}#ast-tb-app-root .md\:flex-row-reverse{flex-direction:row-reverse}#ast-tb-app-root .md\:flex-col{flex-direction:column}#ast-tb-app-root .md\:flex-col-reverse{flex-direction:column-reverse}#ast-tb-app-root .md\:flex-wrap{flex-wrap:wrap}#ast-tb-app-root .md\:flex-wrap-reverse{flex-wrap:wrap-reverse}#ast-tb-app-root .md\:flex-nowrap{flex-wrap:nowrap}#ast-tb-app-root .md\:items-start{align-items:flex-start}#ast-tb-app-root .md\:items-end{align-items:flex-end}#ast-tb-app-root .md\:items-center{align-items:center}#ast-tb-app-root .md\:items-baseline{align-items:baseline}#ast-tb-app-root .md\:items-stretch{align-items:stretch}#ast-tb-app-root .md\:justify-normal{justify-content:normal}#ast-tb-app-root .md\:justify-start{justify-content:flex-start}#ast-tb-app-root .md\:justify-end{justify-content:flex-end}#ast-tb-app-root .md\:justify-center{justify-content:center}#ast-tb-app-root .md\:justify-between{justify-content:space-between}#ast-tb-app-root .md\:justify-around{justify-content:space-around}#ast-tb-app-root .md\:justify-evenly{justify-content:space-evenly}#ast-tb-app-root .md\:justify-stretch{justify-content:stretch}#ast-tb-app-root .md\:gap-2{gap:.5rem}#ast-tb-app-root .md\:gap-4{gap:1rem}#ast-tb-app-root .md\:gap-5{gap:1.25rem}#ast-tb-app-root .md\:gap-6{gap:1.5rem}#ast-tb-app-root .md\:gap-8{gap:2rem}#ast-tb-app-root .md\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}#ast-tb-app-root .md\:gap-x-4{-moz-column-gap:1rem;column-gap:1rem}#ast-tb-app-root .md\:gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}#ast-tb-app-root .md\:gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}#ast-tb-app-root .md\:gap-x-8{-moz-column-gap:2rem;column-gap:2rem}#ast-tb-app-root .md\:gap-y-2{row-gap:.5rem}#ast-tb-app-root .md\:gap-y-4{row-gap:1rem}#ast-tb-app-root .md\:gap-y-5{row-gap:1.25rem}#ast-tb-app-root .md\:gap-y-6{row-gap:1.5rem}#ast-tb-app-root .md\:gap-y-8{row-gap:2rem}#ast-tb-app-root :is(.md\:space-x-1>:not([hidden])~:not){--tw-space-x-reverse:0;margin-left:calc(0.25rem*var(--tw-space-x-reverse));margin-right:calc(0.25rem*(1 - var(--tw-space-x-reverse)))}#ast-tb-app-root .md\:self-start{align-self:flex-start}#ast-tb-app-root .md\:self-end{align-self:flex-end}#ast-tb-app-root .md\:self-center{align-self:center}#ast-tb-app-root .md\:self-stretch{align-self:stretch}#ast-tb-app-root .md\:self-baseline{align-self:baseline}#ast-tb-app-root .md\:justify-self-auto{justify-self:auto}#ast-tb-app-root .md\:justify-self-start{justify-self:start}#ast-tb-app-root .md\:justify-self-end{justify-self:end}#ast-tb-app-root .md\:justify-self-center{justify-self:center}#ast-tb-app-root .md\:justify-self-stretch{justify-self:stretch}}@media (min-width:1024px){#ast-tb-app-root .lg\:order-1{order:1}#ast-tb-app-root .lg\:order-10{order:10}#ast-tb-app-root .lg\:order-11{order:11}#ast-tb-app-root .lg\:order-12{order:12}#ast-tb-app-root .lg\:order-2{order:2}#ast-tb-app-root .lg\:order-3{order:3}#ast-tb-app-root .lg\:order-4{order:4}#ast-tb-app-root .lg\:order-5{order:5}#ast-tb-app-root .lg\:order-6{order:6}#ast-tb-app-root .lg\:order-7{order:7}#ast-tb-app-root .lg\:order-8{order:8}#ast-tb-app-root .lg\:order-9{order:9}#ast-tb-app-root .lg\:order-first{order:-9999}#ast-tb-app-root .lg\:order-last{order:9999}#ast-tb-app-root .lg\:order-none{order:0}#ast-tb-app-root .lg\:col-span-1{grid-column:span 1/span 1}#ast-tb-app-root .lg\:col-span-10{grid-column:span 10/span 10}#ast-tb-app-root .lg\:col-span-11{grid-column:span 11/span 11}#ast-tb-app-root .lg\:col-span-12{grid-column:span 12/span 12}#ast-tb-app-root .lg\:col-span-2{grid-column:span 2/span 2}#ast-tb-app-root .lg\:col-span-3{grid-column:span 3/span 3}#ast-tb-app-root .lg\:col-span-4{grid-column:span 4/span 4}#ast-tb-app-root .lg\:col-span-5{grid-column:span 5/span 5}#ast-tb-app-root .lg\:col-span-6{grid-column:span 6/span 6}#ast-tb-app-root .lg\:col-span-7{grid-column:span 7/span 7}#ast-tb-app-root .lg\:col-span-8{grid-column:span 8/span 8}#ast-tb-app-root .lg\:col-span-9{grid-column:span 9/span 9}#ast-tb-app-root .lg\:col-start-1{grid-column-start:1}#ast-tb-app-root .lg\:col-start-10{grid-column-start:10}#ast-tb-app-root .lg\:col-start-11{grid-column-start:11}#ast-tb-app-root .lg\:col-start-12{grid-column-start:12}#ast-tb-app-root .lg\:col-start-2{grid-column-start:2}#ast-tb-app-root .lg\:col-start-3{grid-column-start:3}#ast-tb-app-root .lg\:col-start-4{grid-column-start:4}#ast-tb-app-root .lg\:col-start-5{grid-column-start:5}#ast-tb-app-root .lg\:col-start-6{grid-column-start:6}#ast-tb-app-root .lg\:col-start-7{grid-column-start:7}#ast-tb-app-root .lg\:col-start-8{grid-column-start:8}#ast-tb-app-root .lg\:col-start-9{grid-column-start:9}#ast-tb-app-root .lg\:w-1\/10{width:10%}#ast-tb-app-root .lg\:w-1\/11{width:9.0909091%}#ast-tb-app-root .lg\:w-1\/12{width:8.3333333%}#ast-tb-app-root .lg\:w-1\/2{width:50%}#ast-tb-app-root .lg\:w-1\/3{width:33.333333%}#ast-tb-app-root .lg\:w-1\/4{width:25%}#ast-tb-app-root .lg\:w-1\/5{width:20%}#ast-tb-app-root .lg\:w-1\/6{width:16.666667%}#ast-tb-app-root .lg\:w-1\/7{width:14.2857143%}#ast-tb-app-root .lg\:w-1\/8{width:12.5%}#ast-tb-app-root .lg\:w-1\/9{width:11.1111111%}#ast-tb-app-root .lg\:w-\[47\.5rem\]{width:47.5rem}#ast-tb-app-root .lg\:w-full{width:100%}#ast-tb-app-root .lg\:shrink{flex-shrink:1}#ast-tb-app-root .lg\:shrink-0{flex-shrink:0}#ast-tb-app-root .lg\:grow{flex-grow:1}#ast-tb-app-root .lg\:grow-0{flex-grow:0}#ast-tb-app-root .lg\:grid-flow-row{grid-auto-flow:row}#ast-tb-app-root .lg\:grid-flow-col{grid-auto-flow:column}#ast-tb-app-root .lg\:grid-flow-row-dense{grid-auto-flow:row dense}#ast-tb-app-root .lg\:grid-flow-col-dense{grid-auto-flow:column dense}#ast-tb-app-root .lg\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}#ast-tb-app-root .lg\:flex-row{flex-direction:row}#ast-tb-app-root .lg\:flex-row-reverse{flex-direction:row-reverse}#ast-tb-app-root .lg\:flex-col{flex-direction:column}#ast-tb-app-root .lg\:flex-col-reverse{flex-direction:column-reverse}#ast-tb-app-root .lg\:flex-wrap{flex-wrap:wrap}#ast-tb-app-root .lg\:flex-wrap-reverse{flex-wrap:wrap-reverse}#ast-tb-app-root .lg\:flex-nowrap{flex-wrap:nowrap}#ast-tb-app-root .lg\:items-start{align-items:flex-start}#ast-tb-app-root .lg\:items-end{align-items:flex-end}#ast-tb-app-root .lg\:items-center{align-items:center}#ast-tb-app-root .lg\:items-baseline{align-items:baseline}#ast-tb-app-root .lg\:items-stretch{align-items:stretch}#ast-tb-app-root .lg\:justify-normal{justify-content:normal}#ast-tb-app-root .lg\:justify-start{justify-content:flex-start}#ast-tb-app-root .lg\:justify-end{justify-content:flex-end}#ast-tb-app-root .lg\:justify-center{justify-content:center}#ast-tb-app-root .lg\:justify-between{justify-content:space-between}#ast-tb-app-root .lg\:justify-around{justify-content:space-around}#ast-tb-app-root .lg\:justify-evenly{justify-content:space-evenly}#ast-tb-app-root .lg\:justify-stretch{justify-content:stretch}#ast-tb-app-root .lg\:gap-2{gap:.5rem}#ast-tb-app-root .lg\:gap-4{gap:1rem}#ast-tb-app-root .lg\:gap-5{gap:1.25rem}#ast-tb-app-root .lg\:gap-6{gap:1.5rem}#ast-tb-app-root .lg\:gap-8{gap:2rem}#ast-tb-app-root .lg\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}#ast-tb-app-root .lg\:gap-x-4{-moz-column-gap:1rem;column-gap:1rem}#ast-tb-app-root .lg\:gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}#ast-tb-app-root .lg\:gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}#ast-tb-app-root .lg\:gap-x-8{-moz-column-gap:2rem;column-gap:2rem}#ast-tb-app-root .lg\:gap-y-2{row-gap:.5rem}#ast-tb-app-root .lg\:gap-y-4{row-gap:1rem}#ast-tb-app-root .lg\:gap-y-5{row-gap:1.25rem}#ast-tb-app-root .lg\:gap-y-6{row-gap:1.5rem}#ast-tb-app-root .lg\:gap-y-8{row-gap:2rem}#ast-tb-app-root .lg\:self-start{align-self:flex-start}#ast-tb-app-root .lg\:self-end{align-self:flex-end}#ast-tb-app-root .lg\:self-center{align-self:center}#ast-tb-app-root .lg\:self-stretch{align-self:stretch}#ast-tb-app-root .lg\:self-baseline{align-self:baseline}#ast-tb-app-root .lg\:justify-self-auto{justify-self:auto}#ast-tb-app-root .lg\:justify-self-start{justify-self:start}#ast-tb-app-root .lg\:justify-self-end{justify-self:end}#ast-tb-app-root .lg\:justify-self-center{justify-self:center}#ast-tb-app-root .lg\:justify-self-stretch{justify-self:stretch}}#ast-tb-app-root .\[\&\:hover\:has\(\:disabled\)\]\:outline-field-border-disabled:hover:has(:disabled){outline-color:#f3f3f8}#ast-tb-app-root .\[\&\:hover\:not\(\:focus\)\:not\(\:disabled\)\]\:outline-border-strong:hover:not(:focus):not(:disabled){outline-color:#6b7280}#ast-tb-app-root .\[\&\:is\(\[data-hover\=true\]\)\]\:rounded-none:is([data-hover=true]){border-radius:0}#ast-tb-app-root .\[\&\:is\(\[data-hover\=true\]\)\]\:bg-brand-background-50:is([data-hover=true]){--tw-bg-opacity:1;background-color:rgb(231 224 250/var(--tw-bg-opacity,1))}#ast-tb-app-root :is(.\[\&\>\*\:not\(svg\)\]\:m-1>:not(svg)){margin:.25rem}#ast-tb-app-root :is(.\[\&\>\*\:not\(svg\)\]\:mx-1>:not(svg)){margin-right:.25rem;margin-left:.25rem}#ast-tb-app-root :is(.\[\&\>\*\:not\(svg\)\]\:my-0\.5>:not(svg)){margin-top:.125rem;margin-bottom:.125rem}#ast-tb-app-root :is(.\[\&\>\*\]\:box-border>*){box-sizing:border-box}#ast-tb-app-root :is(.\[\&\>\*\]\:text-2xl>*){font-size:1.5rem;line-height:2rem}#ast-tb-app-root :is(.\[\&\>\*\]\:text-base>*){font-size:1rem;line-height:1.5rem}#ast-tb-app-root :is(.\[\&\>\*\]\:text-lg>*){font-size:1.125rem;line-height:1.75rem}#ast-tb-app-root :is(.\[\&\>\*\]\:text-sm>*){font-size:.875rem;line-height:1.25rem}#ast-tb-app-root :is(.\[\&\>\*\]\:text-xl>*){font-size:1.25rem;line-height:1.75rem}#ast-tb-app-root :is(.\[\&\>\*\]\:text-xs>*){font-size:.75rem;line-height:1rem}#ast-tb-app-root :is(.\[\&\>\*\]\:text-field-color-disabled>*){--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.\[\&\>\*\]\:text-field-helper>*){--tw-text-opacity:1;color:rgb(159 159 191/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.\[\&\>\*\]\:text-field-label>*){--tw-text-opacity:1;color:rgb(79 78 124/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.\[\&\>\*\]\:text-support-error>*){--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.\[\&\>li\]\:pointer-events-auto>li){pointer-events:auto}#ast-tb-app-root :is(.\[\&\>p\]\:m-0>p){margin:0}#ast-tb-app-root :is(.\[\&\>p\]\:w-full>p){width:100%}#ast-tb-app-root :is(.\[\&\>span\:first-child\]\:shrink-0>span:first-child){flex-shrink:0}#ast-tb-app-root :is(.\[\&\>span\]\:flex>span){display:flex}#ast-tb-app-root :is(.\[\&\>span\]\:items-center>span){align-items:center}#ast-tb-app-root :is(.\[\&\>svg\]\:m-1>svg){margin:.25rem}#ast-tb-app-root :is(.\[\&\>svg\]\:m-1\.5>svg){margin:.375rem}#ast-tb-app-root :is(.\[\&\>svg\]\:block>svg){display:block}#ast-tb-app-root :is(.\[\&\>svg\]\:size-12>svg){width:3rem;height:3rem}#ast-tb-app-root :is(.\[\&\>svg\]\:size-3>svg){width:.75rem;height:.75rem}#ast-tb-app-root :is(.\[\&\>svg\]\:size-3\.5>svg){width:.875rem;height:.875rem}#ast-tb-app-root :is(.\[\&\>svg\]\:size-4>svg){width:1rem;height:1rem}#ast-tb-app-root :is(.\[\&\>svg\]\:size-5>svg){width:1.25rem;height:1.25rem}#ast-tb-app-root :is(.\[\&\>svg\]\:size-6>svg){width:1.5rem;height:1.5rem}#ast-tb-app-root :is(.\[\&\>svg\]\:size-8>svg){width:2rem;height:2rem}#ast-tb-app-root :is(.\[\&\>svg\]\:h-3>svg){height:.75rem}#ast-tb-app-root :is(.\[\&\>svg\]\:h-4>svg){height:1rem}#ast-tb-app-root :is(.\[\&\>svg\]\:h-5>svg){height:1.25rem}#ast-tb-app-root :is(.\[\&\>svg\]\:w-3>svg){width:.75rem}#ast-tb-app-root :is(.\[\&\>svg\]\:w-4>svg){width:1rem}#ast-tb-app-root :is(.\[\&\>svg\]\:w-5>svg){width:1.25rem}#ast-tb-app-root :is(.\[\&\>svg\]\:shrink-0>svg){flex-shrink:0}#ast-tb-app-root :is(.\[\&\>svg\]\:text-icon-interactive>svg){--tw-text-opacity:1;color:rgb(92 46 222/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.\[\&_\*\]\:box-border *){box-sizing:border-box}#ast-tb-app-root :is(.\[\&_\*\]\:text-sm *){font-size:.875rem;line-height:1.25rem}#ast-tb-app-root :is(.\[\&_\*\]\:leading-5 *){line-height:1.25rem}#ast-tb-app-root :is(.\[\&_\.editor-content\>p\]\:min-h-5 .editor-content>p){min-height:1.25rem}#ast-tb-app-root :is(.\[\&_\.editor-content\>p\]\:min-h-6 .editor-content>p){min-height:1.5rem}#ast-tb-app-root :is(.\[\&_\.editor-content\>p\]\:min-h-7 .editor-content>p){min-height:1.75rem}#ast-tb-app-root :is(.\[\&_\.editor-content\>p\]\:content-center .editor-content>p){align-content:center}#ast-tb-app-root :is(.\[\&_\.editor-content\>p\]\:text-base .editor-content>p){font-size:1rem;line-height:1.5rem}#ast-tb-app-root :is(.\[\&_\.editor-content\>p\]\:text-sm .editor-content>p){font-size:.875rem;line-height:1.25rem}#ast-tb-app-root :is(.\[\&_\.editor-content\>p\]\:text-xs .editor-content>p){font-size:.75rem;line-height:1rem}#ast-tb-app-root :is(.\[\&_\.editor-content\>p\]\:font-normal .editor-content>p){font-weight:400}#ast-tb-app-root :is(.\[\&_\.pointer-events-none\]\:text-base .pointer-events-none){font-size:1rem;line-height:1.5rem}#ast-tb-app-root :is(.\[\&_\.pointer-events-none\]\:text-sm .pointer-events-none){font-size:.875rem;line-height:1.25rem}#ast-tb-app-root :is(.\[\&_\.pointer-events-none\]\:text-xs .pointer-events-none){font-size:.75rem;line-height:1rem}#ast-tb-app-root :is(.\[\&_\.pointer-events-none\]\:font-normal .pointer-events-none){font-weight:400}#ast-tb-app-root :is(.\[\&_p\]\:m-0 p){margin:0}#ast-tb-app-root :is(.\[\&_p\]\:text-badge-color-disabled p){--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.\[\&_svg\]\:size-3 svg){width:.75rem;height:.75rem}#ast-tb-app-root :is(.\[\&_svg\]\:size-4 svg){width:1rem;height:1rem}#ast-tb-app-root :is(.\[\&_svg\]\:size-5 svg){width:1.25rem;height:1.25rem}#ast-tb-app-root :is(.\[\&_svg\]\:size-6 svg){width:1.5rem;height:1.5rem} assets/theme-builder/build/index.css 0000644 00000277100 15105354057 0013530 0 ustar 00 /*!************************************************************************************************************************************************************************!*\ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./src/style/main.css ***! \************************************************************************************************************************************************************************/.ast-theme-builder #adminmenuback,.ast-theme-builder #adminmenumain,.ast-theme-builder #adminmenuwrap,.ast-theme-builder #wpfooter{display:none}.ast-theme-builder #wpcontent{margin:0;padding:0}.ast-tb-app{height:100vh;flex-direction:column;position:absolute;border-radius:0}.ast-tb-app,.ast-tb-main{display:flex;overflow:hidden;width:100%;max-width:100%}.ast-tb-main{height:100%;flex-grow:1}.ast-tb-header-items{display:flex;align-items:center;justify-content:flex-start;gap:20px;width:99%}.ast-tb-main-title{font-size:20px;font-style:normal;font-weight:600;line-height:24px;border-right:1px solid #e2e8f0;border-left:1px solid #e2e8f0;padding:0 20px}.ast-tb-breadcrumbs{color:#4b5563;font-size:13.081px;font-style:normal;font-weight:500;line-height:23.546px}.ast-tb-breadcrumbs a{color:#4b5563;text-decoration:none}.ast-tb-breadcrumbs a:focus{box-shadow:none;outline:none}.ast-tb-crumb-icon{padding:0 8px}.ast-tb-sidebar-header{border-bottom:1px solid #d1d5db}.ast-tb-sidebar-header-left{gap:8px}.ast-tb-sidebar-header-left,.ast-tb-sidebar-header-right{display:flex;align-items:center}.ast-tb-sidebar-header-right>svg{width:14px;position:relative;right:20px}.ast-tb-sidebar-header>h2{color:#1e293b;font-size:16px;font-style:normal;font-weight:600;line-height:24px}.ast-tb-sidebar-subtitle>h3{color:#1e293b;font-size:14px;font-style:normal;font-weight:500;line-height:24px}.ast-tb-sidebar-item{display:flex;align-items:center;gap:8px;cursor:pointer;justify-content:space-between;max-height:28px}.ast-tb-sidebar-item-selected,.ast-tb-sidebar-item:hover{background:#eff6ff}.ast-tb-sidebar-item-label{color:#1e293b;font-size:14px;font-style:normal;font-weight:400;line-height:20px;padding-bottom:2px}.ast-tb-canvas-header{border-bottom:1px solid #d1d5db;margin-top:-20px}.ast-tb-card-title-wrapper{border-top:.5px solid #e9e9e9}.ast-tb-locked{position:absolute;top:30%;left:35%;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:12px;z-index:3}.ast-tb-sidebar-help{bottom:40px;padding:12px 8px 10px;cursor:pointer;justify-content:flex-start}.ast-tb-breadcrumb-icon{position:relative;top:2px}.ast-tb-help-divider{width:100%;border-top:.5px solid #e2e8f0;margin-top:24px;margin-bottom:16px}.ast-upgrade-btn{outline:none!important}.ast-tb-sidebar>div:nth-child(2){padding-bottom:20px} /*!*********************************************************************************************************************************************************************************************************************************************!*\ !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/style/index.scss ***! \*********************************************************************************************************************************************************************************************************************************************/*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,0.5);--tw-ring-offset-shadow:0 0 transparent;--tw-ring-shadow:0 0 transparent;--tw-shadow:0 0 transparent;--tw-shadow-colored:0 0 transparent}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,0.5);--tw-ring-offset-shadow:0 0 transparent;--tw-ring-shadow:0 0 transparent;--tw-shadow:0 0 transparent;--tw-shadow-colored:0 0 transparent}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}#ast-tb-app-root .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}#ast-tb-app-root .not-sr-only{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal}#ast-tb-app-root .pointer-events-none{pointer-events:none}#ast-tb-app-root .pointer-events-auto{pointer-events:auto}#ast-tb-app-root .visible{visibility:visible}#ast-tb-app-root .invisible{visibility:hidden}#ast-tb-app-root .collapse{visibility:collapse}#ast-tb-app-root .static{position:static}#ast-tb-app-root .fixed{position:fixed}#ast-tb-app-root .absolute{position:absolute}#ast-tb-app-root .relative{position:relative}#ast-tb-app-root .sticky{position:sticky}#ast-tb-app-root .-inset-1{inset:-.25rem}#ast-tb-app-root .inset-0{inset:0}#ast-tb-app-root .inset-x-0{left:0;right:0}#ast-tb-app-root .inset-y-0{top:0;bottom:0}#ast-tb-app-root .-bottom-px{bottom:-1px}#ast-tb-app-root .bottom-0{bottom:0}#ast-tb-app-root .bottom-1{bottom:.25rem}#ast-tb-app-root .bottom-1\.5{bottom:.375rem}#ast-tb-app-root .left-0{left:0}#ast-tb-app-root .left-1{left:.25rem}#ast-tb-app-root .left-1\/2,#ast-tb-app-root .left-2\/4{left:50%}#ast-tb-app-root .left-\[calc\(50\%\+10px\)\]{left:calc(50% + 10px)}#ast-tb-app-root .left-\[calc\(50\%\+12px\)\]{left:calc(50% + 12px)}#ast-tb-app-root .left-\[calc\(50\%\+14px\)\]{left:calc(50% + 14px)}#ast-tb-app-root .right-0{right:0}#ast-tb-app-root .right-1\/2{right:50%}#ast-tb-app-root .right-3{right:.75rem}#ast-tb-app-root .right-4{right:1rem}#ast-tb-app-root .right-\[calc\(-50\%\+10px\)\]{right:calc(-50% + 10px)}#ast-tb-app-root .right-\[calc\(-50\%\+12px\)\]{right:calc(-50% + 12px)}#ast-tb-app-root .right-\[calc\(-50\%\+14px\)\]{right:calc(-50% + 14px)}#ast-tb-app-root .top-0{top:0}#ast-tb-app-root .top-2\.5{top:.625rem}#ast-tb-app-root .top-2\/4{top:50%}#ast-tb-app-root .top-3{top:.75rem}#ast-tb-app-root .top-3\.5{top:.875rem}#ast-tb-app-root .top-4{top:1rem}#ast-tb-app-root .top-full{top:100%}#ast-tb-app-root .isolate{isolation:isolate}#ast-tb-app-root .isolation-auto{isolation:auto}#ast-tb-app-root .-z-10{z-index:-10}#ast-tb-app-root .z-10{z-index:10}#ast-tb-app-root .z-20{z-index:20}#ast-tb-app-root .z-999999{z-index:999999}#ast-tb-app-root .z-\[1\]{z-index:1}#ast-tb-app-root .z-auto{z-index:auto}#ast-tb-app-root .order-1{order:1}#ast-tb-app-root .order-10{order:10}#ast-tb-app-root .order-11{order:11}#ast-tb-app-root .order-12{order:12}#ast-tb-app-root .order-2{order:2}#ast-tb-app-root .order-3{order:3}#ast-tb-app-root .order-4{order:4}#ast-tb-app-root .order-5{order:5}#ast-tb-app-root .order-6{order:6}#ast-tb-app-root .order-7{order:7}#ast-tb-app-root .order-8{order:8}#ast-tb-app-root .order-9{order:9}#ast-tb-app-root .order-first{order:-9999}#ast-tb-app-root .order-last{order:9999}#ast-tb-app-root .order-none{order:0}#ast-tb-app-root .col-span-1{grid-column:span 1/span 1}#ast-tb-app-root .col-span-10{grid-column:span 10/span 10}#ast-tb-app-root .col-span-11{grid-column:span 11/span 11}#ast-tb-app-root .col-span-12{grid-column:span 12/span 12}#ast-tb-app-root .col-span-2{grid-column:span 2/span 2}#ast-tb-app-root .col-span-3{grid-column:span 3/span 3}#ast-tb-app-root .col-span-4{grid-column:span 4/span 4}#ast-tb-app-root .col-span-5{grid-column:span 5/span 5}#ast-tb-app-root .col-span-6{grid-column:span 6/span 6}#ast-tb-app-root .col-span-7{grid-column:span 7/span 7}#ast-tb-app-root .col-span-8{grid-column:span 8/span 8}#ast-tb-app-root .col-span-9{grid-column:span 9/span 9}#ast-tb-app-root .col-start-1{grid-column-start:1}#ast-tb-app-root .col-start-10{grid-column-start:10}#ast-tb-app-root .col-start-11{grid-column-start:11}#ast-tb-app-root .col-start-12{grid-column-start:12}#ast-tb-app-root .col-start-2{grid-column-start:2}#ast-tb-app-root .col-start-3{grid-column-start:3}#ast-tb-app-root .col-start-4{grid-column-start:4}#ast-tb-app-root .col-start-5{grid-column-start:5}#ast-tb-app-root .col-start-6{grid-column-start:6}#ast-tb-app-root .col-start-7{grid-column-start:7}#ast-tb-app-root .col-start-8{grid-column-start:8}#ast-tb-app-root .col-start-9{grid-column-start:9}#ast-tb-app-root .m-0{margin:0}#ast-tb-app-root .mx-0{margin-left:0;margin-right:0}#ast-tb-app-root .mx-1{margin-left:.25rem;margin-right:.25rem}#ast-tb-app-root .mx-2{margin-left:.5rem;margin-right:.5rem}#ast-tb-app-root .mx-auto{margin-left:auto;margin-right:auto}#ast-tb-app-root .my-0{margin-top:0;margin-bottom:0}#ast-tb-app-root .my-12{margin-top:3rem;margin-bottom:3rem}#ast-tb-app-root .my-2{margin-top:.5rem;margin-bottom:.5rem}#ast-tb-app-root .my-5{margin-top:1.25rem;margin-bottom:1.25rem}#ast-tb-app-root .mb-0{margin-bottom:0}#ast-tb-app-root .mb-1{margin-bottom:.25rem}#ast-tb-app-root .ml-0{margin-left:0}#ast-tb-app-root .ml-1{margin-left:.25rem}#ast-tb-app-root .ml-10{margin-left:2.5rem}#ast-tb-app-root .ml-2{margin-left:.5rem}#ast-tb-app-root .ml-4{margin-left:1rem}#ast-tb-app-root .ml-\[-5px\]{margin-left:-5px}#ast-tb-app-root .ml-auto{margin-left:auto}#ast-tb-app-root .mr-0{margin-right:0}#ast-tb-app-root .mr-0\.5{margin-right:.125rem}#ast-tb-app-root .mr-1{margin-right:.25rem}#ast-tb-app-root .mr-10{margin-right:2.5rem}#ast-tb-app-root .mr-2{margin-right:.5rem}#ast-tb-app-root .mr-3{margin-right:.75rem}#ast-tb-app-root .mr-6{margin-right:1.5rem}#ast-tb-app-root .mr-7{margin-right:1.75rem}#ast-tb-app-root .mt-0{margin-top:0}#ast-tb-app-root .mt-0\.5{margin-top:.125rem}#ast-tb-app-root .mt-1{margin-top:.25rem}#ast-tb-app-root .mt-1\.5{margin-top:.375rem}#ast-tb-app-root .mt-14{margin-top:3.5rem}#ast-tb-app-root .mt-2{margin-top:.5rem}#ast-tb-app-root .mt-2\.5{margin-top:.625rem}#ast-tb-app-root .mt-7{margin-top:1.75rem}#ast-tb-app-root .mt-\[-20px\]{margin-top:-20px}#ast-tb-app-root .mt-\[0\.5px\]{margin-top:.5px}#ast-tb-app-root .mt-\[2px\]{margin-top:2px}#ast-tb-app-root .mt-auto{margin-top:auto}#ast-tb-app-root .mt-px{margin-top:1px}#ast-tb-app-root .box-border{box-sizing:border-box}#ast-tb-app-root .block{display:block}#ast-tb-app-root .inline-block{display:inline-block}#ast-tb-app-root .inline{display:inline}#ast-tb-app-root .flex{display:flex}#ast-tb-app-root .inline-flex{display:inline-flex}#ast-tb-app-root .table{display:table}#ast-tb-app-root .inline-table{display:inline-table}#ast-tb-app-root .table-caption{display:table-caption}#ast-tb-app-root .table-cell{display:table-cell}#ast-tb-app-root .table-column{display:table-column}#ast-tb-app-root .table-column-group{display:table-column-group}#ast-tb-app-root .table-footer-group{display:table-footer-group}#ast-tb-app-root .table-header-group{display:table-header-group}#ast-tb-app-root .table-row-group{display:table-row-group}#ast-tb-app-root .table-row{display:table-row}#ast-tb-app-root .flow-root{display:flow-root}#ast-tb-app-root .grid{display:grid}#ast-tb-app-root .inline-grid{display:inline-grid}#ast-tb-app-root .contents{display:contents}#ast-tb-app-root .list-item{display:list-item}#ast-tb-app-root .hidden{display:none}#ast-tb-app-root .size-1\.5{width:.375rem;height:.375rem}#ast-tb-app-root .size-10{width:2.5rem;height:2.5rem}#ast-tb-app-root .size-12{width:3rem;height:3rem}#ast-tb-app-root .size-2{width:.5rem;height:.5rem}#ast-tb-app-root .size-2\.5{width:.625rem;height:.625rem}#ast-tb-app-root .size-3{width:.75rem;height:.75rem}#ast-tb-app-root .size-3\.5{width:.875rem;height:.875rem}#ast-tb-app-root .size-4{width:1rem;height:1rem}#ast-tb-app-root .size-5{width:1.25rem;height:1.25rem}#ast-tb-app-root .size-6{width:1.5rem;height:1.5rem}#ast-tb-app-root .size-7{width:1.75rem;height:1.75rem}#ast-tb-app-root .size-8{width:2rem;height:2rem}#ast-tb-app-root .h-0{height:0}#ast-tb-app-root .h-1{height:.25rem}#ast-tb-app-root .h-10{height:2.5rem}#ast-tb-app-root .h-12{height:3rem}#ast-tb-app-root .h-2{height:.5rem}#ast-tb-app-root .h-2\.5{height:.625rem}#ast-tb-app-root .h-3{height:.75rem}#ast-tb-app-root .h-4{height:1rem}#ast-tb-app-root .h-5{height:1.25rem}#ast-tb-app-root .h-6{height:1.5rem}#ast-tb-app-root .h-7{height:1.75rem}#ast-tb-app-root .h-8{height:2rem}#ast-tb-app-root .h-\[20px\]{height:20px}#ast-tb-app-root .h-\[80px\]{height:80px}#ast-tb-app-root .h-auto{height:auto}#ast-tb-app-root .h-fit{height:-moz-fit-content;height:fit-content}#ast-tb-app-root .h-full{height:100%}#ast-tb-app-root .h-px{height:1px}#ast-tb-app-root .h-screen{height:100vh}#ast-tb-app-root .max-h-\[10\.75rem\]{max-height:10.75rem}#ast-tb-app-root .max-h-\[13\.5rem\]{max-height:13.5rem}#ast-tb-app-root .min-h-16{min-height:4rem}#ast-tb-app-root .min-h-\[2\.5rem\]{min-height:2.5rem}#ast-tb-app-root .min-h-\[2rem\]{min-height:2rem}#ast-tb-app-root .min-h-\[3rem\]{min-height:3rem}#ast-tb-app-root .min-h-full{min-height:100%}#ast-tb-app-root .w-0{width:0}#ast-tb-app-root .w-1{width:.25rem}#ast-tb-app-root .w-1\/10{width:10%}#ast-tb-app-root .w-1\/11{width:9.0909091%}#ast-tb-app-root .w-1\/12{width:8.3333333%}#ast-tb-app-root .w-1\/2{width:50%}#ast-tb-app-root .w-1\/3{width:33.333333%}#ast-tb-app-root .w-1\/4{width:25%}#ast-tb-app-root .w-1\/5{width:20%}#ast-tb-app-root .w-1\/6{width:16.666667%}#ast-tb-app-root .w-1\/7{width:14.2857143%}#ast-tb-app-root .w-1\/8{width:12.5%}#ast-tb-app-root .w-1\/9{width:11.1111111%}#ast-tb-app-root .w-10{width:2.5rem}#ast-tb-app-root .w-11{width:2.75rem}#ast-tb-app-root .w-120{width:30rem}#ast-tb-app-root .w-16{width:4rem}#ast-tb-app-root .w-2{width:.5rem}#ast-tb-app-root .w-2\.5{width:.625rem}#ast-tb-app-root .w-4{width:1rem}#ast-tb-app-root .w-5{width:1.25rem}#ast-tb-app-root .w-6{width:1.5rem}#ast-tb-app-root .w-72{width:18rem}#ast-tb-app-root .w-80{width:20rem}#ast-tb-app-root .w-96{width:24rem}#ast-tb-app-root .w-\[15rem\]{width:15rem}#ast-tb-app-root .w-\[18\.5rem\]{width:18.5rem}#ast-tb-app-root .w-\[20px\]{width:20px}#ast-tb-app-root .w-\[22\.5rem\]{width:22.5rem}#ast-tb-app-root .w-\[4\.375rem\]{width:4.375rem}#ast-tb-app-root .w-\[calc\(100\%\+0\.75rem\)\]{width:calc(100% + .75rem)}#ast-tb-app-root .w-\[calc\(100\%\+1rem\)\]{width:calc(100% + 1rem)}#ast-tb-app-root .w-\[calc\(100\%_-_5\.5rem\)\]{width:calc(100% - 5.5rem)}#ast-tb-app-root .w-auto{width:auto}#ast-tb-app-root .w-fit{width:-moz-fit-content;width:fit-content}#ast-tb-app-root .w-full{width:100%}#ast-tb-app-root .min-w-10{min-width:2.5rem}#ast-tb-app-root .min-w-12{min-width:3rem}#ast-tb-app-root .min-w-6{min-width:1.5rem}#ast-tb-app-root .min-w-8{min-width:2rem}#ast-tb-app-root .min-w-80{min-width:20rem}#ast-tb-app-root .min-w-\[180px\]{min-width:180px}#ast-tb-app-root .min-w-\[228px\]{min-width:228px}#ast-tb-app-root .min-w-\[8rem\]{min-width:8rem}#ast-tb-app-root .min-w-full{min-width:100%}#ast-tb-app-root .max-w-32{max-width:8rem}#ast-tb-app-root .max-w-80{max-width:20rem}#ast-tb-app-root .max-w-\[352px\]{max-width:352px}#ast-tb-app-root .max-w-full{max-width:100%}#ast-tb-app-root .max-w-xs{max-width:20rem}#ast-tb-app-root .flex-1{flex:1 1 0%}#ast-tb-app-root .flex-shrink-0{flex-shrink:0}#ast-tb-app-root .shrink{flex-shrink:1}#ast-tb-app-root .shrink-0{flex-shrink:0}#ast-tb-app-root .flex-grow,#ast-tb-app-root .grow{flex-grow:1}#ast-tb-app-root .grow-0{flex-grow:0}#ast-tb-app-root .table-fixed{table-layout:fixed}#ast-tb-app-root .border-collapse{border-collapse:collapse}#ast-tb-app-root .border-separate{border-collapse:separate}#ast-tb-app-root .border-spacing-0{--tw-border-spacing-x:0px;--tw-border-spacing-y:0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}#ast-tb-app-root .origin-left{transform-origin:left}#ast-tb-app-root .-translate-x-2\/4{--tw-translate-x:-50%}#ast-tb-app-root .-translate-x-2\/4,#ast-tb-app-root .-translate-y-2\/4{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ast-tb-app-root .-translate-y-2\/4{--tw-translate-y:-50%}#ast-tb-app-root .translate-x-\[-0\.375rem\]{--tw-translate-x:-0.375rem}#ast-tb-app-root .translate-x-\[-0\.5rem\],#ast-tb-app-root .translate-x-\[-0\.375rem\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ast-tb-app-root .translate-x-\[-0\.5rem\]{--tw-translate-x:-0.5rem}#ast-tb-app-root .rotate-0{--tw-rotate:0deg}#ast-tb-app-root .rotate-0,#ast-tb-app-root .rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ast-tb-app-root .rotate-180{--tw-rotate:180deg}#ast-tb-app-root .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}#ast-tb-app-root .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}#ast-tb-app-root .animate-spin{animation:spin 1s linear infinite}#ast-tb-app-root .cursor-auto{cursor:auto}#ast-tb-app-root .cursor-default{cursor:default}#ast-tb-app-root .cursor-not-allowed{cursor:not-allowed}#ast-tb-app-root .cursor-pointer{cursor:pointer}#ast-tb-app-root .touch-pinch-zoom{--tw-pinch-zoom:pinch-zoom;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}#ast-tb-app-root .resize{resize:both}#ast-tb-app-root .list-none{list-style-type:none}#ast-tb-app-root .appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}#ast-tb-app-root .auto-cols-auto{grid-auto-columns:auto}#ast-tb-app-root .grid-flow-row{grid-auto-flow:row}#ast-tb-app-root .grid-flow-col{grid-auto-flow:column}#ast-tb-app-root .grid-flow-row-dense{grid-auto-flow:row dense}#ast-tb-app-root .grid-flow-col-dense{grid-auto-flow:column dense}#ast-tb-app-root .auto-rows-auto{grid-auto-rows:auto}#ast-tb-app-root .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}#ast-tb-app-root .grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}#ast-tb-app-root .grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}#ast-tb-app-root .grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}#ast-tb-app-root .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}#ast-tb-app-root .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}#ast-tb-app-root .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}#ast-tb-app-root .grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}#ast-tb-app-root .grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}#ast-tb-app-root .grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}#ast-tb-app-root .grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}#ast-tb-app-root .grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}#ast-tb-app-root .grid-cols-\[repeat\(auto-fill\2c _minmax\(250px\2c _1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}#ast-tb-app-root .grid-cols-subgrid{grid-template-columns:subgrid}#ast-tb-app-root .grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}#ast-tb-app-root .grid-rows-subgrid{grid-template-rows:subgrid}#ast-tb-app-root .flex-row{flex-direction:row}#ast-tb-app-root .flex-row-reverse{flex-direction:row-reverse}#ast-tb-app-root .flex-col{flex-direction:column}#ast-tb-app-root .flex-col-reverse{flex-direction:column-reverse}#ast-tb-app-root .flex-wrap{flex-wrap:wrap}#ast-tb-app-root .flex-wrap-reverse{flex-wrap:wrap-reverse}#ast-tb-app-root .flex-nowrap{flex-wrap:nowrap}#ast-tb-app-root .place-content-center{place-content:center}#ast-tb-app-root .content-center{align-content:center}#ast-tb-app-root .content-start{align-content:flex-start}#ast-tb-app-root .items-start{align-items:flex-start}#ast-tb-app-root .items-end{align-items:flex-end}#ast-tb-app-root .items-center{align-items:center}#ast-tb-app-root .items-baseline{align-items:baseline}#ast-tb-app-root .items-stretch{align-items:stretch}#ast-tb-app-root .justify-normal{justify-content:normal}#ast-tb-app-root .justify-start{justify-content:flex-start}#ast-tb-app-root .justify-end{justify-content:flex-end}#ast-tb-app-root .justify-center{justify-content:center}#ast-tb-app-root .justify-between{justify-content:space-between}#ast-tb-app-root .justify-around{justify-content:space-around}#ast-tb-app-root .justify-evenly{justify-content:space-evenly}#ast-tb-app-root .justify-stretch{justify-content:stretch}#ast-tb-app-root .gap-0{gap:0}#ast-tb-app-root .gap-0\.5{gap:.125rem}#ast-tb-app-root .gap-1{gap:.25rem}#ast-tb-app-root .gap-1\.5{gap:.375rem}#ast-tb-app-root .gap-2{gap:.5rem}#ast-tb-app-root .gap-2\.5{gap:.625rem}#ast-tb-app-root .gap-3{gap:.75rem}#ast-tb-app-root .gap-4{gap:1rem}#ast-tb-app-root .gap-5{gap:1.25rem}#ast-tb-app-root .gap-6{gap:1.5rem}#ast-tb-app-root .gap-8{gap:2rem}#ast-tb-app-root .gap-\[30px\]{gap:30px}#ast-tb-app-root .gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}#ast-tb-app-root .gap-x-4{-moz-column-gap:1rem;column-gap:1rem}#ast-tb-app-root .gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}#ast-tb-app-root .gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}#ast-tb-app-root .gap-x-8{-moz-column-gap:2rem;column-gap:2rem}#ast-tb-app-root .gap-y-2{row-gap:.5rem}#ast-tb-app-root .gap-y-4{row-gap:1rem}#ast-tb-app-root .gap-y-5{row-gap:1.25rem}#ast-tb-app-root .gap-y-6{row-gap:1.5rem}#ast-tb-app-root .gap-y-8{row-gap:2rem}#ast-tb-app-root :is(.space-x-1>:not([hidden])~:not){--tw-space-x-reverse:0;margin-right:calc(0.25rem*var(--tw-space-x-reverse));margin-left:calc(0.25rem*(1 - var(--tw-space-x-reverse)))}#ast-tb-app-root :is(.space-y-0\.5>:not([hidden])~:not){--tw-space-y-reverse:0;margin-top:calc(0.125rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.125rem*var(--tw-space-y-reverse))}#ast-tb-app-root :is(.space-y-1>:not([hidden])~:not){--tw-space-y-reverse:0;margin-top:calc(0.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.25rem*var(--tw-space-y-reverse))}#ast-tb-app-root :is(.space-y-1\.5>:not([hidden])~:not){--tw-space-y-reverse:0;margin-top:calc(0.375rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.375rem*var(--tw-space-y-reverse))}#ast-tb-app-root :is(.space-y-2>:not([hidden])~:not){--tw-space-y-reverse:0;margin-top:calc(0.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.5rem*var(--tw-space-y-reverse))}#ast-tb-app-root :is(.space-y-3>:not([hidden])~:not){--tw-space-y-reverse:0;margin-top:calc(0.75rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0.75rem*var(--tw-space-y-reverse))}#ast-tb-app-root :is(.space-y-4>:not([hidden])~:not){--tw-space-y-reverse:0;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}#ast-tb-app-root :is(.space-y-reverse>:not([hidden])~:not){--tw-space-y-reverse:1}#ast-tb-app-root :is(.space-x-reverse>:not([hidden])~:not){--tw-space-x-reverse:1}#ast-tb-app-root :is(.divide-x>:not([hidden])~:not){--tw-divide-x-reverse:0;border-right-width:calc(1px*var(--tw-divide-x-reverse));border-left-width:calc(1px*(1 - var(--tw-divide-x-reverse)))}#ast-tb-app-root :is(.divide-x-0>:not([hidden])~:not){--tw-divide-x-reverse:0;border-right-width:calc(0px*var(--tw-divide-x-reverse));border-left-width:calc(0px*(1 - var(--tw-divide-x-reverse)))}#ast-tb-app-root :is(.divide-y>:not([hidden])~:not){--tw-divide-y-reverse:0;border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px*var(--tw-divide-y-reverse))}#ast-tb-app-root :is(.divide-y-0\.5>:not([hidden])~:not){--tw-divide-y-reverse:0;border-top-width:calc(0.5px*(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0.5px*var(--tw-divide-y-reverse))}#ast-tb-app-root :is(.divide-y-reverse>:not([hidden])~:not){--tw-divide-y-reverse:1}#ast-tb-app-root :is(.divide-x-reverse>:not([hidden])~:not){--tw-divide-x-reverse:1}#ast-tb-app-root :is(.divide-solid>:not([hidden])~:not){border-style:solid}#ast-tb-app-root :is(.divide-border-subtle>:not([hidden])~:not){--tw-divide-opacity:1;border-color:rgb(230 230 239/var(--tw-divide-opacity,1))}#ast-tb-app-root .self-start{align-self:flex-start}#ast-tb-app-root .self-end{align-self:flex-end}#ast-tb-app-root .self-center{align-self:center}#ast-tb-app-root .self-stretch{align-self:stretch}#ast-tb-app-root .self-baseline{align-self:baseline}#ast-tb-app-root .justify-self-auto{justify-self:auto}#ast-tb-app-root .justify-self-start{justify-self:start}#ast-tb-app-root .justify-self-end{justify-self:end}#ast-tb-app-root .justify-self-center{justify-self:center}#ast-tb-app-root .justify-self-stretch{justify-self:stretch}#ast-tb-app-root .overflow-auto{overflow:auto}#ast-tb-app-root .overflow-hidden{overflow:hidden}#ast-tb-app-root .overflow-visible{overflow:visible}#ast-tb-app-root .overflow-x-auto{overflow-x:auto}#ast-tb-app-root .overflow-y-auto{overflow-y:auto}#ast-tb-app-root .overflow-x-hidden{overflow-x:hidden}#ast-tb-app-root .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#ast-tb-app-root .text-ellipsis{text-overflow:ellipsis}#ast-tb-app-root .text-clip{text-overflow:clip}#ast-tb-app-root .text-wrap{text-wrap:wrap}#ast-tb-app-root .text-nowrap{text-wrap:nowrap}#ast-tb-app-root .rounded{border-radius:.25rem}#ast-tb-app-root .rounded-full{border-radius:9999px}#ast-tb-app-root .rounded-lg{border-radius:.5rem}#ast-tb-app-root .rounded-md{border-radius:.375rem}#ast-tb-app-root .rounded-none{border-radius:0}#ast-tb-app-root .rounded-sm{border-radius:.125rem}#ast-tb-app-root .rounded-xl{border-radius:.75rem}#ast-tb-app-root .rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}#ast-tb-app-root .rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}#ast-tb-app-root .rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}#ast-tb-app-root .rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}#ast-tb-app-root .rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}#ast-tb-app-root .rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}#ast-tb-app-root .rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}#ast-tb-app-root .rounded-bl{border-bottom-left-radius:.25rem}#ast-tb-app-root .rounded-bl-md{border-bottom-left-radius:.375rem}#ast-tb-app-root .rounded-br{border-bottom-right-radius:.25rem}#ast-tb-app-root .rounded-br-md{border-bottom-right-radius:.375rem}#ast-tb-app-root .rounded-ee{border-end-end-radius:.25rem}#ast-tb-app-root .rounded-es{border-end-start-radius:.25rem}#ast-tb-app-root .rounded-se{border-start-end-radius:.25rem}#ast-tb-app-root .rounded-ss{border-start-start-radius:.25rem}#ast-tb-app-root .rounded-tl{border-top-left-radius:.25rem}#ast-tb-app-root .rounded-tl-md{border-top-left-radius:.375rem}#ast-tb-app-root .rounded-tl-none{border-top-left-radius:0}#ast-tb-app-root .rounded-tr{border-top-right-radius:.25rem}#ast-tb-app-root .rounded-tr-md{border-top-right-radius:.375rem}#ast-tb-app-root .rounded-tr-none{border-top-right-radius:0}#ast-tb-app-root .border{border-width:1px}#ast-tb-app-root .border-0{border-width:0}#ast-tb-app-root .border-0\.5,#ast-tb-app-root .border-\[0\.5px\]{border-width:.5px}#ast-tb-app-root .border-x{border-left-width:1px;border-right-width:1px}#ast-tb-app-root .border-x-0{border-left-width:0;border-right-width:0}#ast-tb-app-root .border-y{border-top-width:1px;border-bottom-width:1px}#ast-tb-app-root .border-y-0{border-top-width:0;border-bottom-width:0}#ast-tb-app-root .border-b{border-bottom-width:1px}#ast-tb-app-root .border-b-0{border-bottom-width:0}#ast-tb-app-root .border-b-0\.5{border-bottom-width:.5px}#ast-tb-app-root .border-e{border-inline-end-width:1px}#ast-tb-app-root .border-l{border-left-width:1px}#ast-tb-app-root .border-l-0{border-left-width:0}#ast-tb-app-root .border-r{border-right-width:1px}#ast-tb-app-root .border-r-0{border-right-width:0}#ast-tb-app-root .border-s{border-inline-start-width:1px}#ast-tb-app-root .border-t{border-top-width:1px}#ast-tb-app-root .border-t-0{border-top-width:0}#ast-tb-app-root .border-solid{border-style:solid}#ast-tb-app-root .border-dashed{border-style:dashed}#ast-tb-app-root .border-dotted{border-style:dotted}#ast-tb-app-root .border-double{border-style:double}#ast-tb-app-root .border-hidden{border-style:hidden}#ast-tb-app-root .border-none{border-style:none}#ast-tb-app-root .border-\[\#e9e9e9\]{--tw-border-opacity:1;border-color:rgb(233 233 233/var(--tw-border-opacity,1))}#ast-tb-app-root .border-alert-border-danger{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}#ast-tb-app-root .border-alert-border-green{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity,1))}#ast-tb-app-root .border-alert-border-info{--tw-border-opacity:1;border-color:rgb(186 230 253/var(--tw-border-opacity,1))}#ast-tb-app-root .border-alert-border-neutral{--tw-border-opacity:1;border-color:rgb(230 230 239/var(--tw-border-opacity,1))}#ast-tb-app-root .border-alert-border-warning{--tw-border-opacity:1;border-color:rgb(254 240 138/var(--tw-border-opacity,1))}#ast-tb-app-root .border-background-inverse{--tw-border-opacity:1;border-color:rgb(20 19 56/var(--tw-border-opacity,1))}#ast-tb-app-root .border-badge-border-disabled,#ast-tb-app-root .border-badge-border-gray{--tw-border-opacity:1;border-color:rgb(230 230 239/var(--tw-border-opacity,1))}#ast-tb-app-root .border-badge-border-green{--tw-border-opacity:1;border-color:rgb(187 247 208/var(--tw-border-opacity,1))}#ast-tb-app-root .border-badge-border-red{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}#ast-tb-app-root .border-badge-border-sky{--tw-border-opacity:1;border-color:rgb(186 230 253/var(--tw-border-opacity,1))}#ast-tb-app-root .border-badge-border-yellow{--tw-border-opacity:1;border-color:rgb(254 240 138/var(--tw-border-opacity,1))}#ast-tb-app-root .border-border-disabled{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}#ast-tb-app-root .border-border-strong{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity,1))}#ast-tb-app-root .border-border-subtle{--tw-border-opacity:1;border-color:rgb(230 230 239/var(--tw-border-opacity,1))}#ast-tb-app-root .border-brand-primary-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}#ast-tb-app-root .border-button-primary{--tw-border-opacity:1;border-color:rgb(92 46 222/var(--tw-border-opacity,1))}#ast-tb-app-root .border-field-border{--tw-border-opacity:1;border-color:rgb(230 230 239/var(--tw-border-opacity,1))}#ast-tb-app-root .border-field-dropzone-color{--tw-border-opacity:1;border-color:rgb(92 46 222/var(--tw-border-opacity,1))}#ast-tb-app-root .border-focus-error-border{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}#ast-tb-app-root .border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}#ast-tb-app-root .border-tab-border{--tw-border-opacity:1;border-color:rgb(230 230 239/var(--tw-border-opacity,1))}#ast-tb-app-root .border-text-inverse{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1))}#ast-tb-app-root .border-toggle-off-border{--tw-border-opacity:1;border-color:rgb(232 207 248/var(--tw-border-opacity,1))}#ast-tb-app-root .border-transparent{border-color:transparent}#ast-tb-app-root .bg-alert-background-danger{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-alert-background-green{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-alert-background-info{--tw-bg-opacity:1;background-color:rgb(240 249 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-alert-background-neutral{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-alert-background-warning{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-background-brand{--tw-bg-opacity:1;background-color:rgb(92 46 222/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-background-inverse{--tw-bg-opacity:1;background-color:rgb(20 19 56/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-background-inverse\/90{background-color:rgba(20,19,56,.9)}#ast-tb-app-root .bg-background-primary{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-background-secondary,#ast-tb-app-root .bg-badge-background-disabled{--tw-bg-opacity:1;background-color:rgb(243 243 248/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-badge-background-gray{--tw-bg-opacity:1;background-color:rgb(249 250 252/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-badge-background-green{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-badge-background-red{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-badge-background-sky{--tw-bg-opacity:1;background-color:rgb(240 249 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-badge-background-yellow{--tw-bg-opacity:1;background-color:rgb(254 252 232/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-border-interactive{--tw-bg-opacity:1;background-color:rgb(92 46 222/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-brand-background-50{--tw-bg-opacity:1;background-color:rgb(231 224 250/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-brand-primary-600{--tw-bg-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-button-danger{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-button-disabled{--tw-bg-opacity:1;background-color:rgb(243 243 248/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-button-primary{--tw-bg-opacity:1;background-color:rgb(92 46 222/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-button-secondary{--tw-bg-opacity:1;background-color:rgb(239 215 249/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-button-tertiary{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-button-tertiary-hover{--tw-bg-opacity:1;background-color:rgb(243 243 248/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-current{background-color:currentColor}#ast-tb-app-root .bg-field-background-disabled,#ast-tb-app-root .bg-field-dropzone-background-hover,#ast-tb-app-root .bg-field-primary-background{--tw-bg-opacity:1;background-color:rgb(249 250 252/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-field-secondary-background{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-icon-interactive{--tw-bg-opacity:1;background-color:rgb(92 46 222/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-misc-progress-background{--tw-bg-opacity:1;background-color:rgb(230 230 239/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-tab-background{--tw-bg-opacity:1;background-color:rgb(249 250 252/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-text-tertiary{--tw-bg-opacity:1;background-color:rgb(159 159 191/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-toggle-dial-background{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-toggle-off{--tw-bg-opacity:1;background-color:rgb(239 215 249/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-toggle-off-disabled{--tw-bg-opacity:1;background-color:rgb(243 243 248/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-tooltip-background-dark{--tw-bg-opacity:1;background-color:rgb(20 19 56/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-tooltip-background-light{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-transparent{background-color:transparent}#ast-tb-app-root .bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .bg-opacity-90{--tw-bg-opacity:0.9}#ast-tb-app-root .bg-repeat{background-repeat:repeat}#ast-tb-app-root .fill-current{fill:currentColor}#ast-tb-app-root .stroke-icon-primary{stroke:#141338}#ast-tb-app-root .object-contain{-o-object-fit:contain;object-fit:contain}#ast-tb-app-root .object-cover{-o-object-fit:cover;object-fit:cover}#ast-tb-app-root .object-center{-o-object-position:center;object-position:center}#ast-tb-app-root .p-0{padding:0}#ast-tb-app-root .p-0\.5{padding:.125rem}#ast-tb-app-root .p-1{padding:.25rem}#ast-tb-app-root .p-1\.5{padding:.375rem}#ast-tb-app-root .p-10{padding:2.5rem}#ast-tb-app-root .p-2{padding:.5rem}#ast-tb-app-root .p-2\.5{padding:.625rem}#ast-tb-app-root .p-3{padding:.75rem}#ast-tb-app-root .p-3\.5{padding:.875rem}#ast-tb-app-root .p-4{padding:1rem}#ast-tb-app-root .p-5{padding:1.25rem}#ast-tb-app-root .p-6{padding:1.5rem}#ast-tb-app-root .p-\[10px\]{padding:10px}#ast-tb-app-root .px-0\.5{padding-left:.125rem;padding-right:.125rem}#ast-tb-app-root .px-1{padding-left:.25rem;padding-right:.25rem}#ast-tb-app-root .px-1\.5{padding-left:.375rem;padding-right:.375rem}#ast-tb-app-root .px-2{padding-left:.5rem;padding-right:.5rem}#ast-tb-app-root .px-2\.5{padding-left:.625rem;padding-right:.625rem}#ast-tb-app-root .px-3{padding-left:.75rem;padding-right:.75rem}#ast-tb-app-root .px-3\.5{padding-left:.875rem;padding-right:.875rem}#ast-tb-app-root .px-4{padding-left:1rem;padding-right:1rem}#ast-tb-app-root .px-5{padding-left:1.25rem;padding-right:1.25rem}#ast-tb-app-root .px-5\.5{padding-left:1.375rem;padding-right:1.375rem}#ast-tb-app-root .px-6{padding-left:1.5rem;padding-right:1.5rem}#ast-tb-app-root .px-8{padding-left:2rem;padding-right:2rem}#ast-tb-app-root .py-0{padding-top:0;padding-bottom:0}#ast-tb-app-root .py-0\.5{padding-top:.125rem;padding-bottom:.125rem}#ast-tb-app-root .py-1{padding-top:.25rem;padding-bottom:.25rem}#ast-tb-app-root .py-1\.5{padding-top:.375rem;padding-bottom:.375rem}#ast-tb-app-root .py-2{padding-top:.5rem;padding-bottom:.5rem}#ast-tb-app-root .py-2\.5{padding-top:.625rem;padding-bottom:.625rem}#ast-tb-app-root .py-3{padding-top:.75rem;padding-bottom:.75rem}#ast-tb-app-root .py-3\.5{padding-top:.875rem;padding-bottom:.875rem}#ast-tb-app-root .py-4{padding-top:1rem;padding-bottom:1rem}#ast-tb-app-root .py-6{padding-top:1.5rem;padding-bottom:1.5rem}#ast-tb-app-root .pb-1{padding-bottom:.25rem}#ast-tb-app-root .pb-3{padding-bottom:.75rem}#ast-tb-app-root .pb-4{padding-bottom:1rem}#ast-tb-app-root .pb-5{padding-bottom:1.25rem}#ast-tb-app-root .pl-10{padding-left:2.5rem}#ast-tb-app-root .pl-2{padding-left:.5rem}#ast-tb-app-root .pl-2\.5{padding-left:.625rem}#ast-tb-app-root .pl-3{padding-left:.75rem}#ast-tb-app-root .pl-4{padding-left:1rem}#ast-tb-app-root .pl-8{padding-left:2rem}#ast-tb-app-root .pl-9{padding-left:2.25rem}#ast-tb-app-root .pr-10{padding-right:2.5rem}#ast-tb-app-root .pr-12{padding-right:3rem}#ast-tb-app-root .pr-2{padding-right:.5rem}#ast-tb-app-root .pr-2\.5{padding-right:.625rem}#ast-tb-app-root .pr-3{padding-right:.75rem}#ast-tb-app-root .pr-4{padding-right:1rem}#ast-tb-app-root .pr-8{padding-right:2rem}#ast-tb-app-root .pr-9{padding-right:2.25rem}#ast-tb-app-root .pt-2{padding-top:.5rem}#ast-tb-app-root .pt-3{padding-top:.75rem}#ast-tb-app-root .pt-5{padding-top:1.25rem}#ast-tb-app-root .text-left{text-align:left}#ast-tb-app-root .text-center{text-align:center}#ast-tb-app-root .align-middle{vertical-align:middle}#ast-tb-app-root .font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}#ast-tb-app-root .text-2xl{font-size:1.5rem;line-height:2rem}#ast-tb-app-root .text-\[12px\]{font-size:12px}#ast-tb-app-root .text-\[16px\]{font-size:16px}#ast-tb-app-root .text-\[18px\]{font-size:18px}#ast-tb-app-root .text-\[20px\]{font-size:20px}#ast-tb-app-root .text-\[24px\]{font-size:24px}#ast-tb-app-root .text-base{font-size:1rem;line-height:1.5rem}#ast-tb-app-root .text-lg{font-size:1.125rem;line-height:1.75rem}#ast-tb-app-root .text-sm{font-size:.875rem;line-height:1.25rem}#ast-tb-app-root .text-tiny{font-size:.625rem}#ast-tb-app-root .text-xl{font-size:1.25rem;line-height:1.75rem}#ast-tb-app-root .text-xs{font-size:.75rem;line-height:1rem}#ast-tb-app-root .font-bold{font-weight:700}#ast-tb-app-root .font-medium{font-weight:500}#ast-tb-app-root .font-normal{font-weight:400}#ast-tb-app-root .font-semibold{font-weight:600}#ast-tb-app-root .uppercase{text-transform:uppercase}#ast-tb-app-root .lowercase{text-transform:lowercase}#ast-tb-app-root .capitalize{text-transform:capitalize}#ast-tb-app-root .normal-case{text-transform:none}#ast-tb-app-root .italic{font-style:italic}#ast-tb-app-root .not-italic{font-style:normal}#ast-tb-app-root .normal-nums{font-variant-numeric:normal}#ast-tb-app-root .ordinal{--tw-ordinal:ordinal}#ast-tb-app-root .ordinal,#ast-tb-app-root .slashed-zero{font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}#ast-tb-app-root .slashed-zero{--tw-slashed-zero:slashed-zero}#ast-tb-app-root .lining-nums{--tw-numeric-figure:lining-nums}#ast-tb-app-root .lining-nums,#ast-tb-app-root .oldstyle-nums{font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}#ast-tb-app-root .oldstyle-nums{--tw-numeric-figure:oldstyle-nums}#ast-tb-app-root .proportional-nums{--tw-numeric-spacing:proportional-nums}#ast-tb-app-root .proportional-nums,#ast-tb-app-root .tabular-nums{font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}#ast-tb-app-root .tabular-nums{--tw-numeric-spacing:tabular-nums}#ast-tb-app-root .diagonal-fractions{--tw-numeric-fraction:diagonal-fractions;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}#ast-tb-app-root .leading-4{line-height:1rem}#ast-tb-app-root .leading-5{line-height:1.25rem}#ast-tb-app-root .leading-6{line-height:1.5rem}#ast-tb-app-root .leading-\[16px\]{line-height:16px}#ast-tb-app-root .leading-\[24px\]{line-height:24px}#ast-tb-app-root .leading-\[30px\]{line-height:30px}#ast-tb-app-root .leading-\[32px\]{line-height:32px}#ast-tb-app-root .leading-none{line-height:1}#ast-tb-app-root .tracking-\[-0\.005em\]{letter-spacing:-.005em}#ast-tb-app-root .tracking-\[-0\.006em\]{letter-spacing:-.006em}#ast-tb-app-root .tracking-normal{letter-spacing:0}#ast-tb-app-root .text-\[\#6F6B99\]{--tw-text-opacity:1;color:rgb(111 107 153/var(--tw-text-opacity,1))}#ast-tb-app-root .text-background-primary{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}#ast-tb-app-root .text-badge-color-disabled{--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root .text-badge-color-gray{--tw-text-opacity:1;color:rgb(35 34 80/var(--tw-text-opacity,1))}#ast-tb-app-root .text-badge-color-green{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity,1))}#ast-tb-app-root .text-badge-color-red{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity,1))}#ast-tb-app-root .text-badge-color-sky{--tw-text-opacity:1;color:rgb(3 105 161/var(--tw-text-opacity,1))}#ast-tb-app-root .text-badge-color-yellow{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity,1))}#ast-tb-app-root .text-border-strong{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}#ast-tb-app-root .text-brand-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}#ast-tb-app-root .text-brand-primary-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}#ast-tb-app-root .text-button-danger{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}#ast-tb-app-root .text-button-primary{--tw-text-opacity:1;color:rgb(92 46 222/var(--tw-text-opacity,1))}#ast-tb-app-root .text-button-secondary{--tw-text-opacity:1;color:rgb(239 215 249/var(--tw-text-opacity,1))}#ast-tb-app-root .text-button-tertiary-color{--tw-text-opacity:1;color:rgb(20 19 56/var(--tw-text-opacity,1))}#ast-tb-app-root .text-field-color-disabled{--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root .text-field-dropzone-color{--tw-text-opacity:1;color:rgb(92 46 222/var(--tw-text-opacity,1))}#ast-tb-app-root .text-field-helper{--tw-text-opacity:1;color:rgb(159 159 191/var(--tw-text-opacity,1))}#ast-tb-app-root .text-field-input{--tw-text-opacity:1;color:rgb(20 19 56/var(--tw-text-opacity,1))}#ast-tb-app-root .text-field-label{--tw-text-opacity:1;color:rgb(79 78 124/var(--tw-text-opacity,1))}#ast-tb-app-root .text-field-placeholder{--tw-text-opacity:1;color:rgb(159 159 191/var(--tw-text-opacity,1))}#ast-tb-app-root .text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}#ast-tb-app-root .text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}#ast-tb-app-root .text-icon-disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}#ast-tb-app-root .text-icon-inverse,#ast-tb-app-root .text-icon-on-color-disabled{--tw-text-opacity:1;color:rgb(159 159 191/var(--tw-text-opacity,1))}#ast-tb-app-root .text-icon-primary{--tw-text-opacity:1;color:rgb(20 19 56/var(--tw-text-opacity,1))}#ast-tb-app-root .text-icon-secondary{--tw-text-opacity:1;color:rgb(111 107 153/var(--tw-text-opacity,1))}#ast-tb-app-root .text-link-primary{--tw-text-opacity:1;color:rgb(92 46 222/var(--tw-text-opacity,1))}#ast-tb-app-root .text-support-error{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}#ast-tb-app-root .text-support-error-inverse{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}#ast-tb-app-root .text-support-info{--tw-text-opacity:1;color:rgb(2 132 199/var(--tw-text-opacity,1))}#ast-tb-app-root .text-support-info-inverse{--tw-text-opacity:1;color:rgb(56 189 248/var(--tw-text-opacity,1))}#ast-tb-app-root .text-support-success{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}#ast-tb-app-root .text-support-success-inverse{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity,1))}#ast-tb-app-root .text-support-warning{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}#ast-tb-app-root .text-support-warning-inverse{--tw-text-opacity:1;color:rgb(253 224 71/var(--tw-text-opacity,1))}#ast-tb-app-root .text-text-disabled{--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root .text-text-inverse,#ast-tb-app-root .text-text-on-color{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}#ast-tb-app-root .text-text-primary{--tw-text-opacity:1;color:rgb(20 19 56/var(--tw-text-opacity,1))}#ast-tb-app-root .text-text-secondary{--tw-text-opacity:1;color:rgb(79 78 124/var(--tw-text-opacity,1))}#ast-tb-app-root .text-text-tertiary{--tw-text-opacity:1;color:rgb(159 159 191/var(--tw-text-opacity,1))}#ast-tb-app-root .text-tooltip-background-dark{--tw-text-opacity:1;color:rgb(20 19 56/var(--tw-text-opacity,1))}#ast-tb-app-root .text-tooltip-background-light,#ast-tb-app-root .text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}#ast-tb-app-root .underline{text-decoration-line:underline}#ast-tb-app-root .overline{text-decoration-line:overline}#ast-tb-app-root .line-through{text-decoration-line:line-through}#ast-tb-app-root .no-underline{text-decoration-line:none}#ast-tb-app-root .antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#ast-tb-app-root .subpixel-antialiased{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}#ast-tb-app-root .placeholder-text-tertiary::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(159 159 191/var(--tw-placeholder-opacity,1))}#ast-tb-app-root .placeholder-text-tertiary::placeholder{--tw-placeholder-opacity:1;color:rgb(159 159 191/var(--tw-placeholder-opacity,1))}#ast-tb-app-root .opacity-0{opacity:0}#ast-tb-app-root .opacity-40{opacity:.4}#ast-tb-app-root .opacity-50{opacity:.5}#ast-tb-app-root .shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,0.1),0 1px 2px -1px rgba(0,0,0,0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}#ast-tb-app-root .shadow,#ast-tb-app-root .shadow-2xl{box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}#ast-tb-app-root .shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,0.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}#ast-tb-app-root .shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -4px rgba(0,0,0,0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}#ast-tb-app-root .shadow-lg,#ast-tb-app-root .shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}#ast-tb-app-root .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,0.1),0 2px 4px -2px rgba(0,0,0,0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}#ast-tb-app-root .shadow-none{--tw-shadow:0 0 transparent;--tw-shadow-colored:0 0 transparent}#ast-tb-app-root .shadow-none,#ast-tb-app-root .shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}#ast-tb-app-root .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,0.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}#ast-tb-app-root .shadow-soft-shadow-2xl{--tw-shadow:0px 24px 64px -12px rgba(149,160,178,0.32);--tw-shadow-colored:0px 24px 64px -12px var(--tw-shadow-color)}#ast-tb-app-root .shadow-soft-shadow-2xl,#ast-tb-app-root .shadow-soft-shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}#ast-tb-app-root .shadow-soft-shadow-lg{--tw-shadow:0px 12px 32px -12px rgba(149,160,178,0.24);--tw-shadow-colored:0px 12px 32px -12px var(--tw-shadow-color)}#ast-tb-app-root .shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,0.1),0 8px 10px -6px rgba(0,0,0,0.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}#ast-tb-app-root .outline-none{outline:2px solid transparent;outline-offset:2px}#ast-tb-app-root .outline{outline-style:solid}#ast-tb-app-root .outline-1{outline-width:1px}#ast-tb-app-root .outline-border-disabled{outline-color:#e5e7eb}#ast-tb-app-root .outline-border-subtle{outline-color:#e6e6ef}#ast-tb-app-root .outline-button-danger{outline-color:#dc2626}#ast-tb-app-root .outline-button-primary{outline-color:#5c2ede}#ast-tb-app-root .outline-button-secondary{outline-color:#efd7f9}#ast-tb-app-root .outline-field-border{outline-color:#e6e6ef}#ast-tb-app-root .outline-field-border-disabled{outline-color:#f3f3f8}#ast-tb-app-root .outline-focus-error-border{outline-color:#fecaca}#ast-tb-app-root .outline-transparent{outline-color:transparent}#ast-tb-app-root .ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}#ast-tb-app-root .ring,#ast-tb-app-root .ring-0{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}#ast-tb-app-root .ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}#ast-tb-app-root .ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}#ast-tb-app-root .ring-1,#ast-tb-app-root .ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}#ast-tb-app-root .ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}#ast-tb-app-root .ring-inset{--tw-ring-inset:inset}#ast-tb-app-root .ring-alert-border-danger{--tw-ring-opacity:1;--tw-ring-color:rgb(254 202 202/var(--tw-ring-opacity,1))}#ast-tb-app-root .ring-alert-border-green{--tw-ring-opacity:1;--tw-ring-color:rgb(187 247 208/var(--tw-ring-opacity,1))}#ast-tb-app-root .ring-alert-border-info{--tw-ring-opacity:1;--tw-ring-color:rgb(186 230 253/var(--tw-ring-opacity,1))}#ast-tb-app-root .ring-alert-border-neutral{--tw-ring-opacity:1;--tw-ring-color:rgb(230 230 239/var(--tw-ring-opacity,1))}#ast-tb-app-root .ring-alert-border-warning{--tw-ring-opacity:1;--tw-ring-color:rgb(254 240 138/var(--tw-ring-opacity,1))}#ast-tb-app-root .ring-background-inverse{--tw-ring-opacity:1;--tw-ring-color:rgb(20 19 56/var(--tw-ring-opacity,1))}#ast-tb-app-root .ring-border-interactive{--tw-ring-opacity:1;--tw-ring-color:rgb(92 46 222/var(--tw-ring-opacity,1))}#ast-tb-app-root .ring-border-subtle{--tw-ring-opacity:1;--tw-ring-color:rgb(230 230 239/var(--tw-ring-opacity,1))}#ast-tb-app-root .ring-border-transparent-subtle{--tw-ring-color:rgba(55,65,81,0.0784313725490196)}#ast-tb-app-root .ring-brand-primary-600{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity,1))}#ast-tb-app-root .ring-tab-border{--tw-ring-opacity:1;--tw-ring-color:rgb(230 230 239/var(--tw-ring-opacity,1))}#ast-tb-app-root .ring-offset-0{--tw-ring-offset-width:0px}#ast-tb-app-root .blur{--tw-blur:blur(8px)}#ast-tb-app-root .blur,#ast-tb-app-root .drop-shadow{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#ast-tb-app-root .drop-shadow{--tw-drop-shadow:drop-shadow(0 1px 2px rgba(0,0,0,0.1)) drop-shadow(0 1px 1px rgba(0,0,0,0.06))}#ast-tb-app-root .grayscale{--tw-grayscale:grayscale(100%)}#ast-tb-app-root .grayscale,#ast-tb-app-root .invert{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#ast-tb-app-root .invert{--tw-invert:invert(100%)}#ast-tb-app-root .sepia{--tw-sepia:sepia(100%)}#ast-tb-app-root .filter,#ast-tb-app-root .sepia{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#ast-tb-app-root .backdrop-blur{--tw-backdrop-blur:blur(8px)}#ast-tb-app-root .backdrop-blur,#ast-tb-app-root .backdrop-grayscale{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}#ast-tb-app-root .backdrop-grayscale{--tw-backdrop-grayscale:grayscale(100%)}#ast-tb-app-root .backdrop-invert{--tw-backdrop-invert:invert(100%)}#ast-tb-app-root .backdrop-invert,#ast-tb-app-root .backdrop-sepia{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}#ast-tb-app-root .backdrop-sepia{--tw-backdrop-sepia:sepia(100%)}#ast-tb-app-root .backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}#ast-tb-app-root .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#ast-tb-app-root .transition-\[box-shadow\2c color\2c background-color\]{transition-property:box-shadow,color,background-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#ast-tb-app-root .transition-\[color\2c box-shadow\2c outline\]{transition-property:color,box-shadow,outline;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#ast-tb-app-root .transition-\[color\2c outline\2c box-shadow\]{transition-property:color,outline,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#ast-tb-app-root .transition-\[outline\2c background-color\2c color\2c box-shadow\]{transition-property:outline,background-color,color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#ast-tb-app-root .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#ast-tb-app-root .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#ast-tb-app-root .transition-none{transition-property:none}#ast-tb-app-root .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#ast-tb-app-root .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#ast-tb-app-root .duration-150{transition-duration:.15s}#ast-tb-app-root .duration-200{transition-duration:.2s}#ast-tb-app-root .duration-300{transition-duration:.3s}#ast-tb-app-root .duration-500{transition-duration:.5s}#ast-tb-app-root .ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}#ast-tb-app-root .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}#ast-tb-app-root .ease-linear{transition-timing-function:linear}#ast-tb-app-root .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}#ast-tb-app-root .\[grid-area\:1\/1\/2\/3\]{grid-area:1/1/2/3}#ast-tb-app-root .file\:border-0::file-selector-button{border-width:0}#ast-tb-app-root .file\:bg-transparent::file-selector-button{background-color:transparent}#ast-tb-app-root .file\:text-text-tertiary::file-selector-button{--tw-text-opacity:1;color:rgb(159 159 191/var(--tw-text-opacity,1))}#ast-tb-app-root .placeholder\:text-field-placeholder::-moz-placeholder{--tw-text-opacity:1;color:rgb(159 159 191/var(--tw-text-opacity,1))}#ast-tb-app-root .placeholder\:text-field-placeholder::placeholder{--tw-text-opacity:1;color:rgb(159 159 191/var(--tw-text-opacity,1))}#ast-tb-app-root .placeholder\:text-text-disabled::-moz-placeholder{--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root .placeholder\:text-text-disabled::placeholder{--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root .before\:absolute:before{content:var(--tw-content);position:absolute}#ast-tb-app-root .before\:left-2\/4:before{content:var(--tw-content);left:50%}#ast-tb-app-root .before\:top-2\/4:before{content:var(--tw-content);top:50%}#ast-tb-app-root .before\:hidden:before{content:var(--tw-content);display:none}#ast-tb-app-root .before\:h-10:before{content:var(--tw-content);height:2.5rem}#ast-tb-app-root .before\:w-10:before{content:var(--tw-content);width:2.5rem}#ast-tb-app-root .before\:-translate-x-2\/4:before{--tw-translate-x:-50%}#ast-tb-app-root .before\:-translate-x-2\/4:before,#ast-tb-app-root .before\:-translate-y-2\/4:before{content:var(--tw-content);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ast-tb-app-root .before\:-translate-y-2\/4:before{--tw-translate-y:-50%}#ast-tb-app-root .before\:rounded-full:before{content:var(--tw-content);border-radius:9999px}#ast-tb-app-root .before\:opacity-0:before{content:var(--tw-content);opacity:0}#ast-tb-app-root .before\:transition-opacity:before{content:var(--tw-content);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}#ast-tb-app-root .before\:content-\[\'\'\]:before{--tw-content:"";content:var(--tw-content)}#ast-tb-app-root .after\:ml-0\.5:after{content:var(--tw-content);margin-left:.125rem}#ast-tb-app-root .after\:text-field-required:after{content:var(--tw-content);--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}#ast-tb-app-root .after\:content-\[\'\*\'\]:after{--tw-content:"*";content:var(--tw-content)}#ast-tb-app-root .first\:rounded-bl:first-child{border-bottom-left-radius:.25rem}#ast-tb-app-root .first\:rounded-tl:first-child{border-top-left-radius:.25rem}#ast-tb-app-root .first\:border-0:first-child{border-width:0}#ast-tb-app-root .first\:border-r:first-child{border-right-width:1px}#ast-tb-app-root .first\:border-border-subtle:first-child{--tw-border-opacity:1;border-color:rgb(230 230 239/var(--tw-border-opacity,1))}#ast-tb-app-root .last\:rounded-br:last-child{border-bottom-right-radius:.25rem}#ast-tb-app-root .last\:rounded-tr:last-child{border-top-right-radius:.25rem}#ast-tb-app-root .last\:border-0:last-child{border-width:0}#ast-tb-app-root .checked\:border-border-interactive:checked{--tw-border-opacity:1;border-color:rgb(92 46 222/var(--tw-border-opacity,1))}#ast-tb-app-root .checked\:border-toggle-on-border:checked{--tw-border-opacity:1;border-color:rgb(99 74 224/var(--tw-border-opacity,1))}#ast-tb-app-root .checked\:bg-toggle-on:checked{--tw-bg-opacity:1;background-color:rgb(92 46 222/var(--tw-bg-opacity,1))}#ast-tb-app-root .checked\:\[background-image\:none\]:checked{background-image:none}#ast-tb-app-root .checked\:before\:hidden:checked:before{content:var(--tw-content);display:none}#ast-tb-app-root .checked\:before\:content-\[\'\'\]:checked:before{--tw-content:"";content:var(--tw-content)}#ast-tb-app-root .focus-within\:z-10:focus-within{z-index:10}#ast-tb-app-root .focus-within\:border-focus-border:focus-within{--tw-border-opacity:1;border-color:rgb(232 207 248/var(--tw-border-opacity,1))}#ast-tb-app-root .focus-within\:text-field-input:focus-within{--tw-text-opacity:1;color:rgb(20 19 56/var(--tw-text-opacity,1))}#ast-tb-app-root .focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}#ast-tb-app-root .focus-within\:outline-focus-border:focus-within{outline-color:#e8cff8}#ast-tb-app-root .focus-within\:ring-2:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}#ast-tb-app-root .focus-within\:ring-focus:focus-within{--tw-ring-opacity:1;--tw-ring-color:rgb(92 46 222/var(--tw-ring-opacity,1))}#ast-tb-app-root .focus-within\:ring-offset-2:focus-within{--tw-ring-offset-width:2px}#ast-tb-app-root .hover\:border-border-disabled:hover{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}#ast-tb-app-root .hover\:border-border-interactive:hover{--tw-border-opacity:1;border-color:rgb(92 46 222/var(--tw-border-opacity,1))}#ast-tb-app-root .hover\:border-border-strong:hover{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity,1))}#ast-tb-app-root .hover\:border-button-primary:hover{--tw-border-opacity:1;border-color:rgb(92 46 222/var(--tw-border-opacity,1))}#ast-tb-app-root .hover\:border-field-border:hover{--tw-border-opacity:1;border-color:rgb(230 230 239/var(--tw-border-opacity,1))}#ast-tb-app-root .hover\:border-field-dropzone-color:hover{--tw-border-opacity:1;border-color:rgb(92 46 222/var(--tw-border-opacity,1))}#ast-tb-app-root .hover\:border-text-inverse:hover{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1))}#ast-tb-app-root .hover\:bg-\[\#141338\]:hover{--tw-bg-opacity:1;background-color:rgb(20 19 56/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-\[\#F3F3F8\]:hover{--tw-bg-opacity:1;background-color:rgb(243 243 248/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-background-brand:hover{--tw-bg-opacity:1;background-color:rgb(92 46 222/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-background-secondary:hover,#ast-tb-app-root .hover\:bg-badge-hover-disabled:hover,#ast-tb-app-root .hover\:bg-badge-hover-gray:hover{--tw-bg-opacity:1;background-color:rgb(243 243 248/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-badge-hover-green:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-badge-hover-red:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-badge-hover-sky:hover{--tw-bg-opacity:1;background-color:rgb(224 242 254/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-badge-hover-yellow:hover{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-button-danger-hover:hover{--tw-bg-opacity:1;background-color:rgb(185 28 28/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-button-primary-hover:hover{--tw-bg-opacity:1;background-color:rgb(173 56 226/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-button-secondary-hover:hover{--tw-bg-opacity:1;background-color:rgb(59 58 106/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-button-tertiary-hover:hover{--tw-bg-opacity:1;background-color:rgb(243 243 248/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-field-background-error:hover{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-field-dropzone-background-hover:hover{--tw-bg-opacity:1;background-color:rgb(249 250 252/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:bg-transparent:hover{background-color:transparent}#ast-tb-app-root .hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .hover\:text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}#ast-tb-app-root .hover\:text-button-danger-secondary:hover{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}#ast-tb-app-root .hover\:text-button-primary-hover:hover,#ast-tb-app-root .hover\:text-link-primary-hover:hover{--tw-text-opacity:1;color:rgb(173 56 226/var(--tw-text-opacity,1))}#ast-tb-app-root .hover\:text-text-disabled:hover{--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root .hover\:text-text-inverse:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}#ast-tb-app-root .hover\:text-text-primary:hover{--tw-text-opacity:1;color:rgb(20 19 56/var(--tw-text-opacity,1))}#ast-tb-app-root .hover\:underline:hover{text-decoration-line:underline}#ast-tb-app-root .hover\:no-underline:hover{text-decoration-line:none}#ast-tb-app-root .hover\:shadow-sm:hover{--tw-shadow:0 1px 2px 0 rgba(0,0,0,0.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}#ast-tb-app-root .hover\:outline-border-disabled:hover{outline-color:#e5e7eb}#ast-tb-app-root .hover\:outline-border-strong:hover{outline-color:#6b7280}#ast-tb-app-root .hover\:outline-border-subtle:hover{outline-color:#e6e6ef}#ast-tb-app-root .hover\:outline-button-danger:hover{outline-color:#dc2626}#ast-tb-app-root .hover\:outline-button-danger-hover:hover{outline-color:#b91c1c}#ast-tb-app-root .hover\:outline-button-primary-hover:hover{outline-color:#ad38e2}#ast-tb-app-root .hover\:outline-button-secondary-hover:hover{outline-color:#3b3a6a}#ast-tb-app-root .hover\:outline-field-border-disabled:hover{outline-color:#f3f3f8}#ast-tb-app-root .hover\:ring-2:hover{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}#ast-tb-app-root .hover\:ring-border-interactive:hover{--tw-ring-opacity:1;--tw-ring-color:rgb(92 46 222/var(--tw-ring-opacity,1))}#ast-tb-app-root .hover\:\[color\:\#141338\]:hover{color:#141338}#ast-tb-app-root .hover\:before\:opacity-10:hover:before{content:var(--tw-content);opacity:.1}#ast-tb-app-root .checked\:hover\:border-toggle-on-hover:hover:checked{--tw-border-opacity:1;border-color:rgb(92 46 222/var(--tw-border-opacity,1))}#ast-tb-app-root .checked\:hover\:bg-toggle-on-hover:hover:checked{--tw-bg-opacity:1;background-color:rgb(92 46 222/var(--tw-bg-opacity,1))}#ast-tb-app-root .focus-within\:hover\:border-focus-border:hover:focus-within{--tw-border-opacity:1;border-color:rgb(232 207 248/var(--tw-border-opacity,1))}#ast-tb-app-root .hover\:focus-within\:outline-focus-border:focus-within:hover{outline-color:#e8cff8}#ast-tb-app-root .focus\:rounded-sm:focus{border-radius:.125rem}#ast-tb-app-root .focus\:border-border-interactive:focus{--tw-border-opacity:1;border-color:rgb(92 46 222/var(--tw-border-opacity,1))}#ast-tb-app-root .focus\:border-focus-border:focus{--tw-border-opacity:1;border-color:rgb(232 207 248/var(--tw-border-opacity,1))}#ast-tb-app-root .focus\:border-focus-error-border:focus{--tw-border-opacity:1;border-color:rgb(254 202 202/var(--tw-border-opacity,1))}#ast-tb-app-root .focus\:border-toggle-off-border:focus{--tw-border-opacity:1;border-color:rgb(232 207 248/var(--tw-border-opacity,1))}#ast-tb-app-root .focus\:border-transparent:focus{border-color:transparent}#ast-tb-app-root .focus\:bg-background-secondary:focus,#ast-tb-app-root .focus\:bg-button-tertiary-hover:focus{--tw-bg-opacity:1;background-color:rgb(243 243 248/var(--tw-bg-opacity,1))}#ast-tb-app-root .focus\:shadow-none:focus{--tw-shadow:0 0 transparent;--tw-shadow-colored:0 0 transparent;box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}#ast-tb-app-root .focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}#ast-tb-app-root .focus\:outline:focus{outline-style:solid}#ast-tb-app-root .focus\:outline-1:focus{outline-width:1px}#ast-tb-app-root .focus\:outline-border-subtle:focus{outline-color:#e6e6ef}#ast-tb-app-root .focus\:outline-focus-border:focus{outline-color:#e8cff8}#ast-tb-app-root .focus\:outline-focus-error-border:focus{outline-color:#fecaca}#ast-tb-app-root .focus\:ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}#ast-tb-app-root .focus\:ring-0:focus,#ast-tb-app-root .focus\:ring:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}#ast-tb-app-root .focus\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}#ast-tb-app-root .focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}#ast-tb-app-root .focus\:ring-1:focus,#ast-tb-app-root .focus\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 transparent)}#ast-tb-app-root .focus\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}#ast-tb-app-root .focus\:ring-border-interactive:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(92 46 222/var(--tw-ring-opacity,1))}#ast-tb-app-root .focus\:ring-field-color-error:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity,1))}#ast-tb-app-root .focus\:ring-focus:focus,#ast-tb-app-root .focus\:ring-toggle-on:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(92 46 222/var(--tw-ring-opacity,1))}#ast-tb-app-root .focus\:ring-transparent:focus{--tw-ring-color:transparent}#ast-tb-app-root .focus\:ring-offset-0:focus{--tw-ring-offset-width:0px}#ast-tb-app-root .focus\:ring-offset-2:focus{--tw-ring-offset-width:2px}#ast-tb-app-root .focus\:\[box-shadow\:none\]:focus{box-shadow:none}#ast-tb-app-root .checked\:focus\:border-toggle-on-border:focus:checked{--tw-border-opacity:1;border-color:rgb(99 74 224/var(--tw-border-opacity,1))}#ast-tb-app-root .focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}#ast-tb-app-root .active\:text-button-primary:active{--tw-text-opacity:1;color:rgb(92 46 222/var(--tw-text-opacity,1))}#ast-tb-app-root .active\:outline-none:active{outline:2px solid transparent;outline-offset:2px}#ast-tb-app-root .disabled\:cursor-default:disabled{cursor:default}#ast-tb-app-root .disabled\:cursor-not-allowed:disabled{cursor:not-allowed}#ast-tb-app-root .disabled\:border-border-disabled:disabled{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}#ast-tb-app-root .disabled\:border-field-border-disabled:disabled{--tw-border-opacity:1;border-color:rgb(243 243 248/var(--tw-border-opacity,1))}#ast-tb-app-root .disabled\:border-transparent:disabled{border-color:transparent}#ast-tb-app-root .disabled\:bg-button-disabled:disabled{--tw-bg-opacity:1;background-color:rgb(243 243 248/var(--tw-bg-opacity,1))}#ast-tb-app-root .disabled\:bg-button-tertiary:disabled,#ast-tb-app-root .disabled\:bg-white:disabled{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#ast-tb-app-root .disabled\:text-text-disabled:disabled{--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root .disabled\:outline-border-disabled:disabled{outline-color:#e5e7eb}#ast-tb-app-root .disabled\:outline-button-disabled:disabled,#ast-tb-app-root .disabled\:outline-field-border-disabled:disabled{outline-color:#f3f3f8}#ast-tb-app-root .checked\:disabled\:border-border-disabled:disabled:checked{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}#ast-tb-app-root .checked\:disabled\:bg-toggle-on-disabled:disabled:checked{--tw-bg-opacity:1;background-color:rgb(231 224 250/var(--tw-bg-opacity,1))}#ast-tb-app-root .checked\:disabled\:bg-white:disabled:checked{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#ast-tb-app-root :is(.group\/switch:focus-within .group-focus-within\/switch\:left-0\.5){left:.125rem}#ast-tb-app-root :is(.group\/switch:focus-within .group-focus-within\/switch\:size-4){width:1rem;height:1rem}#ast-tb-app-root :is(.group\/switch:focus-within .group-focus-within\/switch\:size-5){width:1.25rem;height:1.25rem}#ast-tb-app-root :is(.group:focus-within .group-focus-within\:text-icon-primary){--tw-text-opacity:1;color:rgb(20 19 56/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.group\/switch:hover .group-hover\/switch\:left-0\.5){left:.125rem}#ast-tb-app-root :is(.group\/switch:hover .group-hover\/switch\:size-4){width:1rem;height:1rem}#ast-tb-app-root :is(.group\/switch:hover .group-hover\/switch\:size-5){width:1.25rem;height:1.25rem}#ast-tb-app-root :is(.group\/switch:hover .group-hover\/switch\:bg-toggle-off-hover){--tw-bg-opacity:1;background-color:rgb(232 207 248/var(--tw-bg-opacity,1))}#ast-tb-app-root :is(.group:hover .group-hover\:stroke-\[\#141338\]){stroke:#141338}#ast-tb-app-root :is(.group:hover .group-hover\:text-\[\#141338\]),#ast-tb-app-root :is(.group:hover .group-hover\:text-field-input),#ast-tb-app-root :is(.group:hover .group-hover\:text-icon-primary){--tw-text-opacity:1;color:rgb(20 19 56/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.group:hover .group-hover\:text-text-disabled){--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.group:hover .group-hover\:text-text-primary){--tw-text-opacity:1;color:rgb(20 19 56/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.group:hover .group-hover\:\[color\:\#141338\]){color:#141338}#ast-tb-app-root :is(.group\/switch:hover .checked\:group-hover\/switch\:border-toggle-on-border:checked){--tw-border-opacity:1;border-color:rgb(99 74 224/var(--tw-border-opacity,1))}#ast-tb-app-root :is(.group\/switch:hover .checked\:group-hover\/switch\:bg-toggle-on-hover:checked){--tw-bg-opacity:1;background-color:rgb(92 46 222/var(--tw-bg-opacity,1))}#ast-tb-app-root :is(.group:disabled .group-disabled\:text-field-color-disabled){--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.group:disabled .group-disabled\:text-icon-disabled){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.peer:checked~.peer-checked\:translate-x-5){--tw-translate-x:1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#ast-tb-app-root :is(.peer:checked~.peer-checked\:opacity-100){opacity:1}#ast-tb-app-root :is(.peer:disabled~.peer-disabled\:cursor-not-allowed){cursor:not-allowed}#ast-tb-app-root :is(.peer:disabled~.peer-disabled\:text-border-disabled){--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}@media (min-width:768px){#ast-tb-app-root .md\:order-1{order:1}#ast-tb-app-root .md\:order-10{order:10}#ast-tb-app-root .md\:order-11{order:11}#ast-tb-app-root .md\:order-12{order:12}#ast-tb-app-root .md\:order-2{order:2}#ast-tb-app-root .md\:order-3{order:3}#ast-tb-app-root .md\:order-4{order:4}#ast-tb-app-root .md\:order-5{order:5}#ast-tb-app-root .md\:order-6{order:6}#ast-tb-app-root .md\:order-7{order:7}#ast-tb-app-root .md\:order-8{order:8}#ast-tb-app-root .md\:order-9{order:9}#ast-tb-app-root .md\:order-first{order:-9999}#ast-tb-app-root .md\:order-last{order:9999}#ast-tb-app-root .md\:order-none{order:0}#ast-tb-app-root .md\:col-span-1{grid-column:span 1/span 1}#ast-tb-app-root .md\:col-span-10{grid-column:span 10/span 10}#ast-tb-app-root .md\:col-span-11{grid-column:span 11/span 11}#ast-tb-app-root .md\:col-span-12{grid-column:span 12/span 12}#ast-tb-app-root .md\:col-span-2{grid-column:span 2/span 2}#ast-tb-app-root .md\:col-span-3{grid-column:span 3/span 3}#ast-tb-app-root .md\:col-span-4{grid-column:span 4/span 4}#ast-tb-app-root .md\:col-span-5{grid-column:span 5/span 5}#ast-tb-app-root .md\:col-span-6{grid-column:span 6/span 6}#ast-tb-app-root .md\:col-span-7{grid-column:span 7/span 7}#ast-tb-app-root .md\:col-span-8{grid-column:span 8/span 8}#ast-tb-app-root .md\:col-span-9{grid-column:span 9/span 9}#ast-tb-app-root .md\:col-start-1{grid-column-start:1}#ast-tb-app-root .md\:col-start-10{grid-column-start:10}#ast-tb-app-root .md\:col-start-11{grid-column-start:11}#ast-tb-app-root .md\:col-start-12{grid-column-start:12}#ast-tb-app-root .md\:col-start-2{grid-column-start:2}#ast-tb-app-root .md\:col-start-3{grid-column-start:3}#ast-tb-app-root .md\:col-start-4{grid-column-start:4}#ast-tb-app-root .md\:col-start-5{grid-column-start:5}#ast-tb-app-root .md\:col-start-6{grid-column-start:6}#ast-tb-app-root .md\:col-start-7{grid-column-start:7}#ast-tb-app-root .md\:col-start-8{grid-column-start:8}#ast-tb-app-root .md\:col-start-9{grid-column-start:9}#ast-tb-app-root .md\:w-1\/10{width:10%}#ast-tb-app-root .md\:w-1\/11{width:9.0909091%}#ast-tb-app-root .md\:w-1\/12{width:8.3333333%}#ast-tb-app-root .md\:w-1\/2{width:50%}#ast-tb-app-root .md\:w-1\/3{width:33.333333%}#ast-tb-app-root .md\:w-1\/4{width:25%}#ast-tb-app-root .md\:w-1\/5{width:20%}#ast-tb-app-root .md\:w-1\/6{width:16.666667%}#ast-tb-app-root .md\:w-1\/7{width:14.2857143%}#ast-tb-app-root .md\:w-1\/8{width:12.5%}#ast-tb-app-root .md\:w-1\/9{width:11.1111111%}#ast-tb-app-root .md\:w-full{width:100%}#ast-tb-app-root .md\:shrink{flex-shrink:1}#ast-tb-app-root .md\:shrink-0{flex-shrink:0}#ast-tb-app-root .md\:grow{flex-grow:1}#ast-tb-app-root .md\:grow-0{flex-grow:0}#ast-tb-app-root .md\:grid-flow-row{grid-auto-flow:row}#ast-tb-app-root .md\:grid-flow-col{grid-auto-flow:column}#ast-tb-app-root .md\:grid-flow-row-dense{grid-auto-flow:row dense}#ast-tb-app-root .md\:grid-flow-col-dense{grid-auto-flow:column dense}#ast-tb-app-root .md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}#ast-tb-app-root .md\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}#ast-tb-app-root .md\:flex-row{flex-direction:row}#ast-tb-app-root .md\:flex-row-reverse{flex-direction:row-reverse}#ast-tb-app-root .md\:flex-col{flex-direction:column}#ast-tb-app-root .md\:flex-col-reverse{flex-direction:column-reverse}#ast-tb-app-root .md\:flex-wrap{flex-wrap:wrap}#ast-tb-app-root .md\:flex-wrap-reverse{flex-wrap:wrap-reverse}#ast-tb-app-root .md\:flex-nowrap{flex-wrap:nowrap}#ast-tb-app-root .md\:items-start{align-items:flex-start}#ast-tb-app-root .md\:items-end{align-items:flex-end}#ast-tb-app-root .md\:items-center{align-items:center}#ast-tb-app-root .md\:items-baseline{align-items:baseline}#ast-tb-app-root .md\:items-stretch{align-items:stretch}#ast-tb-app-root .md\:justify-normal{justify-content:normal}#ast-tb-app-root .md\:justify-start{justify-content:flex-start}#ast-tb-app-root .md\:justify-end{justify-content:flex-end}#ast-tb-app-root .md\:justify-center{justify-content:center}#ast-tb-app-root .md\:justify-between{justify-content:space-between}#ast-tb-app-root .md\:justify-around{justify-content:space-around}#ast-tb-app-root .md\:justify-evenly{justify-content:space-evenly}#ast-tb-app-root .md\:justify-stretch{justify-content:stretch}#ast-tb-app-root .md\:gap-2{gap:.5rem}#ast-tb-app-root .md\:gap-4{gap:1rem}#ast-tb-app-root .md\:gap-5{gap:1.25rem}#ast-tb-app-root .md\:gap-6{gap:1.5rem}#ast-tb-app-root .md\:gap-8{gap:2rem}#ast-tb-app-root .md\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}#ast-tb-app-root .md\:gap-x-4{-moz-column-gap:1rem;column-gap:1rem}#ast-tb-app-root .md\:gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}#ast-tb-app-root .md\:gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}#ast-tb-app-root .md\:gap-x-8{-moz-column-gap:2rem;column-gap:2rem}#ast-tb-app-root .md\:gap-y-2{row-gap:.5rem}#ast-tb-app-root .md\:gap-y-4{row-gap:1rem}#ast-tb-app-root .md\:gap-y-5{row-gap:1.25rem}#ast-tb-app-root .md\:gap-y-6{row-gap:1.5rem}#ast-tb-app-root .md\:gap-y-8{row-gap:2rem}#ast-tb-app-root :is(.md\:space-x-1>:not([hidden])~:not){--tw-space-x-reverse:0;margin-right:calc(0.25rem*var(--tw-space-x-reverse));margin-left:calc(0.25rem*(1 - var(--tw-space-x-reverse)))}#ast-tb-app-root .md\:self-start{align-self:flex-start}#ast-tb-app-root .md\:self-end{align-self:flex-end}#ast-tb-app-root .md\:self-center{align-self:center}#ast-tb-app-root .md\:self-stretch{align-self:stretch}#ast-tb-app-root .md\:self-baseline{align-self:baseline}#ast-tb-app-root .md\:justify-self-auto{justify-self:auto}#ast-tb-app-root .md\:justify-self-start{justify-self:start}#ast-tb-app-root .md\:justify-self-end{justify-self:end}#ast-tb-app-root .md\:justify-self-center{justify-self:center}#ast-tb-app-root .md\:justify-self-stretch{justify-self:stretch}}@media (min-width:1024px){#ast-tb-app-root .lg\:order-1{order:1}#ast-tb-app-root .lg\:order-10{order:10}#ast-tb-app-root .lg\:order-11{order:11}#ast-tb-app-root .lg\:order-12{order:12}#ast-tb-app-root .lg\:order-2{order:2}#ast-tb-app-root .lg\:order-3{order:3}#ast-tb-app-root .lg\:order-4{order:4}#ast-tb-app-root .lg\:order-5{order:5}#ast-tb-app-root .lg\:order-6{order:6}#ast-tb-app-root .lg\:order-7{order:7}#ast-tb-app-root .lg\:order-8{order:8}#ast-tb-app-root .lg\:order-9{order:9}#ast-tb-app-root .lg\:order-first{order:-9999}#ast-tb-app-root .lg\:order-last{order:9999}#ast-tb-app-root .lg\:order-none{order:0}#ast-tb-app-root .lg\:col-span-1{grid-column:span 1/span 1}#ast-tb-app-root .lg\:col-span-10{grid-column:span 10/span 10}#ast-tb-app-root .lg\:col-span-11{grid-column:span 11/span 11}#ast-tb-app-root .lg\:col-span-12{grid-column:span 12/span 12}#ast-tb-app-root .lg\:col-span-2{grid-column:span 2/span 2}#ast-tb-app-root .lg\:col-span-3{grid-column:span 3/span 3}#ast-tb-app-root .lg\:col-span-4{grid-column:span 4/span 4}#ast-tb-app-root .lg\:col-span-5{grid-column:span 5/span 5}#ast-tb-app-root .lg\:col-span-6{grid-column:span 6/span 6}#ast-tb-app-root .lg\:col-span-7{grid-column:span 7/span 7}#ast-tb-app-root .lg\:col-span-8{grid-column:span 8/span 8}#ast-tb-app-root .lg\:col-span-9{grid-column:span 9/span 9}#ast-tb-app-root .lg\:col-start-1{grid-column-start:1}#ast-tb-app-root .lg\:col-start-10{grid-column-start:10}#ast-tb-app-root .lg\:col-start-11{grid-column-start:11}#ast-tb-app-root .lg\:col-start-12{grid-column-start:12}#ast-tb-app-root .lg\:col-start-2{grid-column-start:2}#ast-tb-app-root .lg\:col-start-3{grid-column-start:3}#ast-tb-app-root .lg\:col-start-4{grid-column-start:4}#ast-tb-app-root .lg\:col-start-5{grid-column-start:5}#ast-tb-app-root .lg\:col-start-6{grid-column-start:6}#ast-tb-app-root .lg\:col-start-7{grid-column-start:7}#ast-tb-app-root .lg\:col-start-8{grid-column-start:8}#ast-tb-app-root .lg\:col-start-9{grid-column-start:9}#ast-tb-app-root .lg\:w-1\/10{width:10%}#ast-tb-app-root .lg\:w-1\/11{width:9.0909091%}#ast-tb-app-root .lg\:w-1\/12{width:8.3333333%}#ast-tb-app-root .lg\:w-1\/2{width:50%}#ast-tb-app-root .lg\:w-1\/3{width:33.333333%}#ast-tb-app-root .lg\:w-1\/4{width:25%}#ast-tb-app-root .lg\:w-1\/5{width:20%}#ast-tb-app-root .lg\:w-1\/6{width:16.666667%}#ast-tb-app-root .lg\:w-1\/7{width:14.2857143%}#ast-tb-app-root .lg\:w-1\/8{width:12.5%}#ast-tb-app-root .lg\:w-1\/9{width:11.1111111%}#ast-tb-app-root .lg\:w-\[47\.5rem\]{width:47.5rem}#ast-tb-app-root .lg\:w-full{width:100%}#ast-tb-app-root .lg\:shrink{flex-shrink:1}#ast-tb-app-root .lg\:shrink-0{flex-shrink:0}#ast-tb-app-root .lg\:grow{flex-grow:1}#ast-tb-app-root .lg\:grow-0{flex-grow:0}#ast-tb-app-root .lg\:grid-flow-row{grid-auto-flow:row}#ast-tb-app-root .lg\:grid-flow-col{grid-auto-flow:column}#ast-tb-app-root .lg\:grid-flow-row-dense{grid-auto-flow:row dense}#ast-tb-app-root .lg\:grid-flow-col-dense{grid-auto-flow:column dense}#ast-tb-app-root .lg\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}#ast-tb-app-root .lg\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}#ast-tb-app-root .lg\:flex-row{flex-direction:row}#ast-tb-app-root .lg\:flex-row-reverse{flex-direction:row-reverse}#ast-tb-app-root .lg\:flex-col{flex-direction:column}#ast-tb-app-root .lg\:flex-col-reverse{flex-direction:column-reverse}#ast-tb-app-root .lg\:flex-wrap{flex-wrap:wrap}#ast-tb-app-root .lg\:flex-wrap-reverse{flex-wrap:wrap-reverse}#ast-tb-app-root .lg\:flex-nowrap{flex-wrap:nowrap}#ast-tb-app-root .lg\:items-start{align-items:flex-start}#ast-tb-app-root .lg\:items-end{align-items:flex-end}#ast-tb-app-root .lg\:items-center{align-items:center}#ast-tb-app-root .lg\:items-baseline{align-items:baseline}#ast-tb-app-root .lg\:items-stretch{align-items:stretch}#ast-tb-app-root .lg\:justify-normal{justify-content:normal}#ast-tb-app-root .lg\:justify-start{justify-content:flex-start}#ast-tb-app-root .lg\:justify-end{justify-content:flex-end}#ast-tb-app-root .lg\:justify-center{justify-content:center}#ast-tb-app-root .lg\:justify-between{justify-content:space-between}#ast-tb-app-root .lg\:justify-around{justify-content:space-around}#ast-tb-app-root .lg\:justify-evenly{justify-content:space-evenly}#ast-tb-app-root .lg\:justify-stretch{justify-content:stretch}#ast-tb-app-root .lg\:gap-2{gap:.5rem}#ast-tb-app-root .lg\:gap-4{gap:1rem}#ast-tb-app-root .lg\:gap-5{gap:1.25rem}#ast-tb-app-root .lg\:gap-6{gap:1.5rem}#ast-tb-app-root .lg\:gap-8{gap:2rem}#ast-tb-app-root .lg\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}#ast-tb-app-root .lg\:gap-x-4{-moz-column-gap:1rem;column-gap:1rem}#ast-tb-app-root .lg\:gap-x-5{-moz-column-gap:1.25rem;column-gap:1.25rem}#ast-tb-app-root .lg\:gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}#ast-tb-app-root .lg\:gap-x-8{-moz-column-gap:2rem;column-gap:2rem}#ast-tb-app-root .lg\:gap-y-2{row-gap:.5rem}#ast-tb-app-root .lg\:gap-y-4{row-gap:1rem}#ast-tb-app-root .lg\:gap-y-5{row-gap:1.25rem}#ast-tb-app-root .lg\:gap-y-6{row-gap:1.5rem}#ast-tb-app-root .lg\:gap-y-8{row-gap:2rem}#ast-tb-app-root .lg\:self-start{align-self:flex-start}#ast-tb-app-root .lg\:self-end{align-self:flex-end}#ast-tb-app-root .lg\:self-center{align-self:center}#ast-tb-app-root .lg\:self-stretch{align-self:stretch}#ast-tb-app-root .lg\:self-baseline{align-self:baseline}#ast-tb-app-root .lg\:justify-self-auto{justify-self:auto}#ast-tb-app-root .lg\:justify-self-start{justify-self:start}#ast-tb-app-root .lg\:justify-self-end{justify-self:end}#ast-tb-app-root .lg\:justify-self-center{justify-self:center}#ast-tb-app-root .lg\:justify-self-stretch{justify-self:stretch}}#ast-tb-app-root .\[\&\:hover\:has\(\:disabled\)\]\:outline-field-border-disabled:hover:has(:disabled){outline-color:#f3f3f8}#ast-tb-app-root .\[\&\:hover\:not\(\:focus\)\:not\(\:disabled\)\]\:outline-border-strong:hover:not(:focus):not(:disabled){outline-color:#6b7280}#ast-tb-app-root .\[\&\:is\(\[data-hover\=true\]\)\]\:rounded-none:is([data-hover=true]){border-radius:0}#ast-tb-app-root .\[\&\:is\(\[data-hover\=true\]\)\]\:bg-brand-background-50:is([data-hover=true]){--tw-bg-opacity:1;background-color:rgb(231 224 250/var(--tw-bg-opacity,1))}#ast-tb-app-root :is(.\[\&\>\*\:not\(svg\)\]\:m-1>:not(svg)){margin:.25rem}#ast-tb-app-root :is(.\[\&\>\*\:not\(svg\)\]\:mx-1>:not(svg)){margin-left:.25rem;margin-right:.25rem}#ast-tb-app-root :is(.\[\&\>\*\:not\(svg\)\]\:my-0\.5>:not(svg)){margin-top:.125rem;margin-bottom:.125rem}#ast-tb-app-root :is(.\[\&\>\*\]\:box-border>*){box-sizing:border-box}#ast-tb-app-root :is(.\[\&\>\*\]\:text-2xl>*){font-size:1.5rem;line-height:2rem}#ast-tb-app-root :is(.\[\&\>\*\]\:text-base>*){font-size:1rem;line-height:1.5rem}#ast-tb-app-root :is(.\[\&\>\*\]\:text-lg>*){font-size:1.125rem;line-height:1.75rem}#ast-tb-app-root :is(.\[\&\>\*\]\:text-sm>*){font-size:.875rem;line-height:1.25rem}#ast-tb-app-root :is(.\[\&\>\*\]\:text-xl>*){font-size:1.25rem;line-height:1.75rem}#ast-tb-app-root :is(.\[\&\>\*\]\:text-xs>*){font-size:.75rem;line-height:1rem}#ast-tb-app-root :is(.\[\&\>\*\]\:text-field-color-disabled>*){--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.\[\&\>\*\]\:text-field-helper>*){--tw-text-opacity:1;color:rgb(159 159 191/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.\[\&\>\*\]\:text-field-label>*){--tw-text-opacity:1;color:rgb(79 78 124/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.\[\&\>\*\]\:text-support-error>*){--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.\[\&\>li\]\:pointer-events-auto>li){pointer-events:auto}#ast-tb-app-root :is(.\[\&\>p\]\:m-0>p){margin:0}#ast-tb-app-root :is(.\[\&\>p\]\:w-full>p){width:100%}#ast-tb-app-root :is(.\[\&\>span\:first-child\]\:shrink-0>span:first-child){flex-shrink:0}#ast-tb-app-root :is(.\[\&\>span\]\:flex>span){display:flex}#ast-tb-app-root :is(.\[\&\>span\]\:items-center>span){align-items:center}#ast-tb-app-root :is(.\[\&\>svg\]\:m-1>svg){margin:.25rem}#ast-tb-app-root :is(.\[\&\>svg\]\:m-1\.5>svg){margin:.375rem}#ast-tb-app-root :is(.\[\&\>svg\]\:block>svg){display:block}#ast-tb-app-root :is(.\[\&\>svg\]\:size-12>svg){width:3rem;height:3rem}#ast-tb-app-root :is(.\[\&\>svg\]\:size-3>svg){width:.75rem;height:.75rem}#ast-tb-app-root :is(.\[\&\>svg\]\:size-3\.5>svg){width:.875rem;height:.875rem}#ast-tb-app-root :is(.\[\&\>svg\]\:size-4>svg){width:1rem;height:1rem}#ast-tb-app-root :is(.\[\&\>svg\]\:size-5>svg){width:1.25rem;height:1.25rem}#ast-tb-app-root :is(.\[\&\>svg\]\:size-6>svg){width:1.5rem;height:1.5rem}#ast-tb-app-root :is(.\[\&\>svg\]\:size-8>svg){width:2rem;height:2rem}#ast-tb-app-root :is(.\[\&\>svg\]\:h-3>svg){height:.75rem}#ast-tb-app-root :is(.\[\&\>svg\]\:h-4>svg){height:1rem}#ast-tb-app-root :is(.\[\&\>svg\]\:h-5>svg){height:1.25rem}#ast-tb-app-root :is(.\[\&\>svg\]\:w-3>svg){width:.75rem}#ast-tb-app-root :is(.\[\&\>svg\]\:w-4>svg){width:1rem}#ast-tb-app-root :is(.\[\&\>svg\]\:w-5>svg){width:1.25rem}#ast-tb-app-root :is(.\[\&\>svg\]\:shrink-0>svg){flex-shrink:0}#ast-tb-app-root :is(.\[\&\>svg\]\:text-icon-interactive>svg){--tw-text-opacity:1;color:rgb(92 46 222/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.\[\&_\*\]\:box-border *){box-sizing:border-box}#ast-tb-app-root :is(.\[\&_\*\]\:text-sm *){font-size:.875rem;line-height:1.25rem}#ast-tb-app-root :is(.\[\&_\*\]\:leading-5 *){line-height:1.25rem}#ast-tb-app-root :is(.\[\&_\.editor-content\>p\]\:min-h-5 .editor-content>p){min-height:1.25rem}#ast-tb-app-root :is(.\[\&_\.editor-content\>p\]\:min-h-6 .editor-content>p){min-height:1.5rem}#ast-tb-app-root :is(.\[\&_\.editor-content\>p\]\:min-h-7 .editor-content>p){min-height:1.75rem}#ast-tb-app-root :is(.\[\&_\.editor-content\>p\]\:content-center .editor-content>p){align-content:center}#ast-tb-app-root :is(.\[\&_\.editor-content\>p\]\:text-base .editor-content>p){font-size:1rem;line-height:1.5rem}#ast-tb-app-root :is(.\[\&_\.editor-content\>p\]\:text-sm .editor-content>p){font-size:.875rem;line-height:1.25rem}#ast-tb-app-root :is(.\[\&_\.editor-content\>p\]\:text-xs .editor-content>p){font-size:.75rem;line-height:1rem}#ast-tb-app-root :is(.\[\&_\.editor-content\>p\]\:font-normal .editor-content>p){font-weight:400}#ast-tb-app-root :is(.\[\&_\.pointer-events-none\]\:text-base .pointer-events-none){font-size:1rem;line-height:1.5rem}#ast-tb-app-root :is(.\[\&_\.pointer-events-none\]\:text-sm .pointer-events-none){font-size:.875rem;line-height:1.25rem}#ast-tb-app-root :is(.\[\&_\.pointer-events-none\]\:text-xs .pointer-events-none){font-size:.75rem;line-height:1rem}#ast-tb-app-root :is(.\[\&_\.pointer-events-none\]\:font-normal .pointer-events-none){font-weight:400}#ast-tb-app-root :is(.\[\&_p\]\:m-0 p){margin:0}#ast-tb-app-root :is(.\[\&_p\]\:text-badge-color-disabled p){--tw-text-opacity:1;color:rgb(189 193 199/var(--tw-text-opacity,1))}#ast-tb-app-root :is(.\[\&_svg\]\:size-3 svg){width:.75rem;height:.75rem}#ast-tb-app-root :is(.\[\&_svg\]\:size-4 svg){width:1rem;height:1rem}#ast-tb-app-root :is(.\[\&_svg\]\:size-5 svg){width:1.25rem;height:1.25rem}#ast-tb-app-root :is(.\[\&_svg\]\:size-6 svg){width:1.5rem;height:1.5rem} assets/theme-builder/build/index.js 0000644 00010234435 15105354057 0013361 0 ustar 00 /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "../../node_modules/dompurify/dist/purify.es.mjs": /*!*******************************************************!*\ !*** ../../node_modules/dompurify/dist/purify.es.mjs ***! \*******************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ purify) /* harmony export */ }); /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */ const { entries, setPrototypeOf, isFrozen, getPrototypeOf, getOwnPropertyDescriptor } = Object; let { freeze, seal, create } = Object; // eslint-disable-line import/no-mutable-exports let { apply, construct } = typeof Reflect !== 'undefined' && Reflect; if (!freeze) { freeze = function freeze(x) { return x; }; } if (!seal) { seal = function seal(x) { return x; }; } if (!apply) { apply = function apply(fun, thisValue, args) { return fun.apply(thisValue, args); }; } if (!construct) { construct = function construct(Func, args) { return new Func(...args); }; } const arrayForEach = unapply(Array.prototype.forEach); const arrayLastIndexOf = unapply(Array.prototype.lastIndexOf); const arrayPop = unapply(Array.prototype.pop); const arrayPush = unapply(Array.prototype.push); const arraySplice = unapply(Array.prototype.splice); const stringToLowerCase = unapply(String.prototype.toLowerCase); const stringToString = unapply(String.prototype.toString); const stringMatch = unapply(String.prototype.match); const stringReplace = unapply(String.prototype.replace); const stringIndexOf = unapply(String.prototype.indexOf); const stringTrim = unapply(String.prototype.trim); const objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty); const regExpTest = unapply(RegExp.prototype.test); const typeErrorCreate = unconstruct(TypeError); /** * Creates a new function that calls the given function with a specified thisArg and arguments. * * @param func - The function to be wrapped and called. * @returns A new function that calls the given function with a specified thisArg and arguments. */ function unapply(func) { return function (thisArg) { if (thisArg instanceof RegExp) { thisArg.lastIndex = 0; } for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } return apply(func, thisArg, args); }; } /** * Creates a new function that constructs an instance of the given constructor function with the provided arguments. * * @param func - The constructor function to be wrapped and called. * @returns A new function that constructs an instance of the given constructor function with the provided arguments. */ function unconstruct(func) { return function () { for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { args[_key2] = arguments[_key2]; } return construct(func, args); }; } /** * Add properties to a lookup table * * @param set - The set to which elements will be added. * @param array - The array containing elements to be added to the set. * @param transformCaseFunc - An optional function to transform the case of each element before adding to the set. * @returns The modified set with added elements. */ function addToSet(set, array) { let transformCaseFunc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : stringToLowerCase; if (setPrototypeOf) { // Make 'in' and truthy checks like Boolean(set.constructor) // independent of any properties defined on Object.prototype. // Prevent prototype setters from intercepting set as a this value. setPrototypeOf(set, null); } let l = array.length; while (l--) { let element = array[l]; if (typeof element === 'string') { const lcElement = transformCaseFunc(element); if (lcElement !== element) { // Config presets (e.g. tags.js, attrs.js) are immutable. if (!isFrozen(array)) { array[l] = lcElement; } element = lcElement; } } set[element] = true; } return set; } /** * Clean up an array to harden against CSPP * * @param array - The array to be cleaned. * @returns The cleaned version of the array */ function cleanArray(array) { for (let index = 0; index < array.length; index++) { const isPropertyExist = objectHasOwnProperty(array, index); if (!isPropertyExist) { array[index] = null; } } return array; } /** * Shallow clone an object * * @param object - The object to be cloned. * @returns A new object that copies the original. */ function clone(object) { const newObject = create(null); for (const [property, value] of entries(object)) { const isPropertyExist = objectHasOwnProperty(object, property); if (isPropertyExist) { if (Array.isArray(value)) { newObject[property] = cleanArray(value); } else if (value && typeof value === 'object' && value.constructor === Object) { newObject[property] = clone(value); } else { newObject[property] = value; } } } return newObject; } /** * This method automatically checks if the prop is function or getter and behaves accordingly. * * @param object - The object to look up the getter function in its prototype chain. * @param prop - The property name for which to find the getter function. * @returns The getter function found in the prototype chain or a fallback function. */ function lookupGetter(object, prop) { while (object !== null) { const desc = getOwnPropertyDescriptor(object, prop); if (desc) { if (desc.get) { return unapply(desc.get); } if (typeof desc.value === 'function') { return unapply(desc.value); } } object = getPrototypeOf(object); } function fallbackValue() { return null; } return fallbackValue; } const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'section', 'select', 'shadow', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']); const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']); const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']); // List of SVG elements that are disallowed by default. // We still need to know them so that we can do namespace // checks properly in case one wants to add them to // allow-list. const svgDisallowed = freeze(['animate', 'color-profile', 'cursor', 'discard', 'font-face', 'font-face-format', 'font-face-name', 'font-face-src', 'font-face-uri', 'foreignobject', 'hatch', 'hatchpath', 'mesh', 'meshgradient', 'meshpatch', 'meshrow', 'missing-glyph', 'script', 'set', 'solidcolor', 'unknown', 'use']); const mathMl$1 = freeze(['math', 'menclose', 'merror', 'mfenced', 'mfrac', 'mglyph', 'mi', 'mlabeledtr', 'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom', 'mroot', 'mrow', 'ms', 'mspace', 'msqrt', 'mstyle', 'msub', 'msup', 'msubsup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder', 'munderover', 'mprescripts']); // Similarly to SVG, we want to know all MathML elements, // even those that we disallow by default. const mathMlDisallowed = freeze(['maction', 'maligngroup', 'malignmark', 'mlongdiv', 'mscarries', 'mscarry', 'msgroup', 'mstack', 'msline', 'msrow', 'semantics', 'annotation', 'annotation-xml', 'mprescripts', 'none']); const text = freeze(['#text']); const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']); const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'exponent', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'slope', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']); const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']); const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']); // eslint-disable-next-line unicorn/better-regex const MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm); // Specify template detection regex for SAFE_FOR_TEMPLATES mode const ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm); const TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm); // eslint-disable-line unicorn/better-regex const DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/); // eslint-disable-line no-useless-escape const ARIA_ATTR = seal(/^aria-[\-\w]+$/); // eslint-disable-line no-useless-escape const IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i // eslint-disable-line no-useless-escape ); const IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i); const ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g // eslint-disable-line no-control-regex ); const DOCTYPE_NAME = seal(/^html$/i); const CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i); var EXPRESSIONS = /*#__PURE__*/Object.freeze({ __proto__: null, ARIA_ATTR: ARIA_ATTR, ATTR_WHITESPACE: ATTR_WHITESPACE, CUSTOM_ELEMENT: CUSTOM_ELEMENT, DATA_ATTR: DATA_ATTR, DOCTYPE_NAME: DOCTYPE_NAME, ERB_EXPR: ERB_EXPR, IS_ALLOWED_URI: IS_ALLOWED_URI, IS_SCRIPT_OR_DATA: IS_SCRIPT_OR_DATA, MUSTACHE_EXPR: MUSTACHE_EXPR, TMPLIT_EXPR: TMPLIT_EXPR }); /* eslint-disable @typescript-eslint/indent */ // https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType const NODE_TYPE = { element: 1, attribute: 2, text: 3, cdataSection: 4, entityReference: 5, // Deprecated entityNode: 6, // Deprecated progressingInstruction: 7, comment: 8, document: 9, documentType: 10, documentFragment: 11, notation: 12 // Deprecated }; const getGlobal = function getGlobal() { return typeof window === 'undefined' ? null : window; }; /** * Creates a no-op policy for internal use only. * Don't export this function outside this module! * @param trustedTypes The policy factory. * @param purifyHostElement The Script element used to load DOMPurify (to determine policy name suffix). * @return The policy created (or null, if Trusted Types * are not supported or creating the policy failed). */ const _createTrustedTypesPolicy = function _createTrustedTypesPolicy(trustedTypes, purifyHostElement) { if (typeof trustedTypes !== 'object' || typeof trustedTypes.createPolicy !== 'function') { return null; } // Allow the callers to control the unique policy name // by adding a data-tt-policy-suffix to the script element with the DOMPurify. // Policy creation with duplicate names throws in Trusted Types. let suffix = null; const ATTR_NAME = 'data-tt-policy-suffix'; if (purifyHostElement && purifyHostElement.hasAttribute(ATTR_NAME)) { suffix = purifyHostElement.getAttribute(ATTR_NAME); } const policyName = 'dompurify' + (suffix ? '#' + suffix : ''); try { return trustedTypes.createPolicy(policyName, { createHTML(html) { return html; }, createScriptURL(scriptUrl) { return scriptUrl; } }); } catch (_) { // Policy creation failed (most likely another DOMPurify script has // already run). Skip creating the policy, as this will only cause errors // if TT are enforced. console.warn('TrustedTypes policy ' + policyName + ' could not be created.'); return null; } }; const _createHooksMap = function _createHooksMap() { return { afterSanitizeAttributes: [], afterSanitizeElements: [], afterSanitizeShadowDOM: [], beforeSanitizeAttributes: [], beforeSanitizeElements: [], beforeSanitizeShadowDOM: [], uponSanitizeAttribute: [], uponSanitizeElement: [], uponSanitizeShadowNode: [] }; }; function createDOMPurify() { let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal(); const DOMPurify = root => createDOMPurify(root); DOMPurify.version = '3.2.6'; DOMPurify.removed = []; if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) { // Not running in a browser, provide a factory function // so that you can pass your own Window DOMPurify.isSupported = false; return DOMPurify; } let { document } = window; const originalDocument = document; const currentScript = originalDocument.currentScript; const { DocumentFragment, HTMLTemplateElement, Node, Element, NodeFilter, NamedNodeMap = window.NamedNodeMap || window.MozNamedAttrMap, HTMLFormElement, DOMParser, trustedTypes } = window; const ElementPrototype = Element.prototype; const cloneNode = lookupGetter(ElementPrototype, 'cloneNode'); const remove = lookupGetter(ElementPrototype, 'remove'); const getNextSibling = lookupGetter(ElementPrototype, 'nextSibling'); const getChildNodes = lookupGetter(ElementPrototype, 'childNodes'); const getParentNode = lookupGetter(ElementPrototype, 'parentNode'); // As per issue #47, the web-components registry is inherited by a // new document created via createHTMLDocument. As per the spec // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries) // a new empty registry is used when creating a template contents owner // document, so we use that as our parent document to ensure nothing // is inherited. if (typeof HTMLTemplateElement === 'function') { const template = document.createElement('template'); if (template.content && template.content.ownerDocument) { document = template.content.ownerDocument; } } let trustedTypesPolicy; let emptyHTML = ''; const { implementation, createNodeIterator, createDocumentFragment, getElementsByTagName } = document; const { importNode } = originalDocument; let hooks = _createHooksMap(); /** * Expose whether this browser supports running the full DOMPurify. */ DOMPurify.isSupported = typeof entries === 'function' && typeof getParentNode === 'function' && implementation && implementation.createHTMLDocument !== undefined; const { MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR, DATA_ATTR, ARIA_ATTR, IS_SCRIPT_OR_DATA, ATTR_WHITESPACE, CUSTOM_ELEMENT } = EXPRESSIONS; let { IS_ALLOWED_URI: IS_ALLOWED_URI$1 } = EXPRESSIONS; /** * We consider the elements and attributes below to be safe. Ideally * don't add any new ones but feel free to remove unwanted ones. */ /* allowed element names */ let ALLOWED_TAGS = null; const DEFAULT_ALLOWED_TAGS = addToSet({}, [...html$1, ...svg$1, ...svgFilters, ...mathMl$1, ...text]); /* Allowed attribute names */ let ALLOWED_ATTR = null; const DEFAULT_ALLOWED_ATTR = addToSet({}, [...html, ...svg, ...mathMl, ...xml]); /* * Configure how DOMPurify should handle custom elements and their attributes as well as customized built-in elements. * @property {RegExp|Function|null} tagNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any custom elements) * @property {RegExp|Function|null} attributeNameCheck one of [null, regexPattern, predicate]. Default: `null` (disallow any attributes not on the allow list) * @property {boolean} allowCustomizedBuiltInElements allow custom elements derived from built-ins if they pass CUSTOM_ELEMENT_HANDLING.tagNameCheck. Default: `false`. */ let CUSTOM_ELEMENT_HANDLING = Object.seal(create(null, { tagNameCheck: { writable: true, configurable: false, enumerable: true, value: null }, attributeNameCheck: { writable: true, configurable: false, enumerable: true, value: null }, allowCustomizedBuiltInElements: { writable: true, configurable: false, enumerable: true, value: false } })); /* Explicitly forbidden tags (overrides ALLOWED_TAGS/ADD_TAGS) */ let FORBID_TAGS = null; /* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */ let FORBID_ATTR = null; /* Decide if ARIA attributes are okay */ let ALLOW_ARIA_ATTR = true; /* Decide if custom data attributes are okay */ let ALLOW_DATA_ATTR = true; /* Decide if unknown protocols are okay */ let ALLOW_UNKNOWN_PROTOCOLS = false; /* Decide if self-closing tags in attributes are allowed. * Usually removed due to a mXSS issue in jQuery 3.0 */ let ALLOW_SELF_CLOSE_IN_ATTR = true; /* Output should be safe for common template engines. * This means, DOMPurify removes data attributes, mustaches and ERB */ let SAFE_FOR_TEMPLATES = false; /* Output should be safe even for XML used within HTML and alike. * This means, DOMPurify removes comments when containing risky content. */ let SAFE_FOR_XML = true; /* Decide if document with <html>... should be returned */ let WHOLE_DOCUMENT = false; /* Track whether config is already set on this instance of DOMPurify. */ let SET_CONFIG = false; /* Decide if all elements (e.g. style, script) must be children of * document.body. By default, browsers might move them to document.head */ let FORCE_BODY = false; /* Decide if a DOM `HTMLBodyElement` should be returned, instead of a html * string (or a TrustedHTML object if Trusted Types are supported). * If `WHOLE_DOCUMENT` is enabled a `HTMLHtmlElement` will be returned instead */ let RETURN_DOM = false; /* Decide if a DOM `DocumentFragment` should be returned, instead of a html * string (or a TrustedHTML object if Trusted Types are supported) */ let RETURN_DOM_FRAGMENT = false; /* Try to return a Trusted Type object instead of a string, return a string in * case Trusted Types are not supported */ let RETURN_TRUSTED_TYPE = false; /* Output should be free from DOM clobbering attacks? * This sanitizes markups named with colliding, clobberable built-in DOM APIs. */ let SANITIZE_DOM = true; /* Achieve full DOM Clobbering protection by isolating the namespace of named * properties and JS variables, mitigating attacks that abuse the HTML/DOM spec rules. * * HTML/DOM spec rules that enable DOM Clobbering: * - Named Access on Window (§7.3.3) * - DOM Tree Accessors (§3.1.5) * - Form Element Parent-Child Relations (§4.10.3) * - Iframe srcdoc / Nested WindowProxies (§4.8.5) * - HTMLCollection (§4.2.10.2) * * Namespace isolation is implemented by prefixing `id` and `name` attributes * with a constant string, i.e., `user-content-` */ let SANITIZE_NAMED_PROPS = false; const SANITIZE_NAMED_PROPS_PREFIX = 'user-content-'; /* Keep element content when removing element? */ let KEEP_CONTENT = true; /* If a `Node` is passed to sanitize(), then performs sanitization in-place instead * of importing it into a new Document and returning a sanitized copy */ let IN_PLACE = false; /* Allow usage of profiles like html, svg and mathMl */ let USE_PROFILES = {}; /* Tags to ignore content of when KEEP_CONTENT is true */ let FORBID_CONTENTS = null; const DEFAULT_FORBID_CONTENTS = addToSet({}, ['annotation-xml', 'audio', 'colgroup', 'desc', 'foreignobject', 'head', 'iframe', 'math', 'mi', 'mn', 'mo', 'ms', 'mtext', 'noembed', 'noframes', 'noscript', 'plaintext', 'script', 'style', 'svg', 'template', 'thead', 'title', 'video', 'xmp']); /* Tags that are safe for data: URIs */ let DATA_URI_TAGS = null; const DEFAULT_DATA_URI_TAGS = addToSet({}, ['audio', 'video', 'img', 'source', 'image', 'track']); /* Attributes safe for values like "javascript:" */ let URI_SAFE_ATTRIBUTES = null; const DEFAULT_URI_SAFE_ATTRIBUTES = addToSet({}, ['alt', 'class', 'for', 'id', 'label', 'name', 'pattern', 'placeholder', 'role', 'summary', 'title', 'value', 'style', 'xmlns']); const MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML'; const SVG_NAMESPACE = 'http://www.w3.org/2000/svg'; const HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml'; /* Document namespace */ let NAMESPACE = HTML_NAMESPACE; let IS_EMPTY_INPUT = false; /* Allowed XHTML+XML namespaces */ let ALLOWED_NAMESPACES = null; const DEFAULT_ALLOWED_NAMESPACES = addToSet({}, [MATHML_NAMESPACE, SVG_NAMESPACE, HTML_NAMESPACE], stringToString); let MATHML_TEXT_INTEGRATION_POINTS = addToSet({}, ['mi', 'mo', 'mn', 'ms', 'mtext']); let HTML_INTEGRATION_POINTS = addToSet({}, ['annotation-xml']); // Certain elements are allowed in both SVG and HTML // namespace. We need to specify them explicitly // so that they don't get erroneously deleted from // HTML namespace. const COMMON_SVG_AND_HTML_ELEMENTS = addToSet({}, ['title', 'style', 'font', 'a', 'script']); /* Parsing of strict XHTML documents */ let PARSER_MEDIA_TYPE = null; const SUPPORTED_PARSER_MEDIA_TYPES = ['application/xhtml+xml', 'text/html']; const DEFAULT_PARSER_MEDIA_TYPE = 'text/html'; let transformCaseFunc = null; /* Keep a reference to config to pass to hooks */ let CONFIG = null; /* Ideally, do not touch anything below this line */ /* ______________________________________________ */ const formElement = document.createElement('form'); const isRegexOrFunction = function isRegexOrFunction(testValue) { return testValue instanceof RegExp || testValue instanceof Function; }; /** * _parseConfig * * @param cfg optional config literal */ // eslint-disable-next-line complexity const _parseConfig = function _parseConfig() { let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; if (CONFIG && CONFIG === cfg) { return; } /* Shield configuration object from tampering */ if (!cfg || typeof cfg !== 'object') { cfg = {}; } /* Shield configuration object from prototype pollution */ cfg = clone(cfg); PARSER_MEDIA_TYPE = // eslint-disable-next-line unicorn/prefer-includes SUPPORTED_PARSER_MEDIA_TYPES.indexOf(cfg.PARSER_MEDIA_TYPE) === -1 ? DEFAULT_PARSER_MEDIA_TYPE : cfg.PARSER_MEDIA_TYPE; // HTML tags and attributes are not case-sensitive, converting to lowercase. Keeping XHTML as is. transformCaseFunc = PARSER_MEDIA_TYPE === 'application/xhtml+xml' ? stringToString : stringToLowerCase; /* Set configuration parameters */ ALLOWED_TAGS = objectHasOwnProperty(cfg, 'ALLOWED_TAGS') ? addToSet({}, cfg.ALLOWED_TAGS, transformCaseFunc) : DEFAULT_ALLOWED_TAGS; ALLOWED_ATTR = objectHasOwnProperty(cfg, 'ALLOWED_ATTR') ? addToSet({}, cfg.ALLOWED_ATTR, transformCaseFunc) : DEFAULT_ALLOWED_ATTR; ALLOWED_NAMESPACES = objectHasOwnProperty(cfg, 'ALLOWED_NAMESPACES') ? addToSet({}, cfg.ALLOWED_NAMESPACES, stringToString) : DEFAULT_ALLOWED_NAMESPACES; URI_SAFE_ATTRIBUTES = objectHasOwnProperty(cfg, 'ADD_URI_SAFE_ATTR') ? addToSet(clone(DEFAULT_URI_SAFE_ATTRIBUTES), cfg.ADD_URI_SAFE_ATTR, transformCaseFunc) : DEFAULT_URI_SAFE_ATTRIBUTES; DATA_URI_TAGS = objectHasOwnProperty(cfg, 'ADD_DATA_URI_TAGS') ? addToSet(clone(DEFAULT_DATA_URI_TAGS), cfg.ADD_DATA_URI_TAGS, transformCaseFunc) : DEFAULT_DATA_URI_TAGS; FORBID_CONTENTS = objectHasOwnProperty(cfg, 'FORBID_CONTENTS') ? addToSet({}, cfg.FORBID_CONTENTS, transformCaseFunc) : DEFAULT_FORBID_CONTENTS; FORBID_TAGS = objectHasOwnProperty(cfg, 'FORBID_TAGS') ? addToSet({}, cfg.FORBID_TAGS, transformCaseFunc) : clone({}); FORBID_ATTR = objectHasOwnProperty(cfg, 'FORBID_ATTR') ? addToSet({}, cfg.FORBID_ATTR, transformCaseFunc) : clone({}); USE_PROFILES = objectHasOwnProperty(cfg, 'USE_PROFILES') ? cfg.USE_PROFILES : false; ALLOW_ARIA_ATTR = cfg.ALLOW_ARIA_ATTR !== false; // Default true ALLOW_DATA_ATTR = cfg.ALLOW_DATA_ATTR !== false; // Default true ALLOW_UNKNOWN_PROTOCOLS = cfg.ALLOW_UNKNOWN_PROTOCOLS || false; // Default false ALLOW_SELF_CLOSE_IN_ATTR = cfg.ALLOW_SELF_CLOSE_IN_ATTR !== false; // Default true SAFE_FOR_TEMPLATES = cfg.SAFE_FOR_TEMPLATES || false; // Default false SAFE_FOR_XML = cfg.SAFE_FOR_XML !== false; // Default true WHOLE_DOCUMENT = cfg.WHOLE_DOCUMENT || false; // Default false RETURN_DOM = cfg.RETURN_DOM || false; // Default false RETURN_DOM_FRAGMENT = cfg.RETURN_DOM_FRAGMENT || false; // Default false RETURN_TRUSTED_TYPE = cfg.RETURN_TRUSTED_TYPE || false; // Default false FORCE_BODY = cfg.FORCE_BODY || false; // Default false SANITIZE_DOM = cfg.SANITIZE_DOM !== false; // Default true SANITIZE_NAMED_PROPS = cfg.SANITIZE_NAMED_PROPS || false; // Default false KEEP_CONTENT = cfg.KEEP_CONTENT !== false; // Default true IN_PLACE = cfg.IN_PLACE || false; // Default false IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI; NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE; MATHML_TEXT_INTEGRATION_POINTS = cfg.MATHML_TEXT_INTEGRATION_POINTS || MATHML_TEXT_INTEGRATION_POINTS; HTML_INTEGRATION_POINTS = cfg.HTML_INTEGRATION_POINTS || HTML_INTEGRATION_POINTS; CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {}; if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) { CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck; } if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)) { CUSTOM_ELEMENT_HANDLING.attributeNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.attributeNameCheck; } if (cfg.CUSTOM_ELEMENT_HANDLING && typeof cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements === 'boolean') { CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements = cfg.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements; } if (SAFE_FOR_TEMPLATES) { ALLOW_DATA_ATTR = false; } if (RETURN_DOM_FRAGMENT) { RETURN_DOM = true; } /* Parse profile info */ if (USE_PROFILES) { ALLOWED_TAGS = addToSet({}, text); ALLOWED_ATTR = []; if (USE_PROFILES.html === true) { addToSet(ALLOWED_TAGS, html$1); addToSet(ALLOWED_ATTR, html); } if (USE_PROFILES.svg === true) { addToSet(ALLOWED_TAGS, svg$1); addToSet(ALLOWED_ATTR, svg); addToSet(ALLOWED_ATTR, xml); } if (USE_PROFILES.svgFilters === true) { addToSet(ALLOWED_TAGS, svgFilters); addToSet(ALLOWED_ATTR, svg); addToSet(ALLOWED_ATTR, xml); } if (USE_PROFILES.mathMl === true) { addToSet(ALLOWED_TAGS, mathMl$1); addToSet(ALLOWED_ATTR, mathMl); addToSet(ALLOWED_ATTR, xml); } } /* Merge configuration parameters */ if (cfg.ADD_TAGS) { if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) { ALLOWED_TAGS = clone(ALLOWED_TAGS); } addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc); } if (cfg.ADD_ATTR) { if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) { ALLOWED_ATTR = clone(ALLOWED_ATTR); } addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc); } if (cfg.ADD_URI_SAFE_ATTR) { addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc); } if (cfg.FORBID_CONTENTS) { if (FORBID_CONTENTS === DEFAULT_FORBID_CONTENTS) { FORBID_CONTENTS = clone(FORBID_CONTENTS); } addToSet(FORBID_CONTENTS, cfg.FORBID_CONTENTS, transformCaseFunc); } /* Add #text in case KEEP_CONTENT is set to true */ if (KEEP_CONTENT) { ALLOWED_TAGS['#text'] = true; } /* Add html, head and body to ALLOWED_TAGS in case WHOLE_DOCUMENT is true */ if (WHOLE_DOCUMENT) { addToSet(ALLOWED_TAGS, ['html', 'head', 'body']); } /* Add tbody to ALLOWED_TAGS in case tables are permitted, see #286, #365 */ if (ALLOWED_TAGS.table) { addToSet(ALLOWED_TAGS, ['tbody']); delete FORBID_TAGS.tbody; } if (cfg.TRUSTED_TYPES_POLICY) { if (typeof cfg.TRUSTED_TYPES_POLICY.createHTML !== 'function') { throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.'); } if (typeof cfg.TRUSTED_TYPES_POLICY.createScriptURL !== 'function') { throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.'); } // Overwrite existing TrustedTypes policy. trustedTypesPolicy = cfg.TRUSTED_TYPES_POLICY; // Sign local variables required by `sanitize`. emptyHTML = trustedTypesPolicy.createHTML(''); } else { // Uninitialized policy, attempt to initialize the internal dompurify policy. if (trustedTypesPolicy === undefined) { trustedTypesPolicy = _createTrustedTypesPolicy(trustedTypes, currentScript); } // If creating the internal policy succeeded sign internal variables. if (trustedTypesPolicy !== null && typeof emptyHTML === 'string') { emptyHTML = trustedTypesPolicy.createHTML(''); } } // Prevent further manipulation of configuration. // Not available in IE8, Safari 5, etc. if (freeze) { freeze(cfg); } CONFIG = cfg; }; /* Keep track of all possible SVG and MathML tags * so that we can perform the namespace checks * correctly. */ const ALL_SVG_TAGS = addToSet({}, [...svg$1, ...svgFilters, ...svgDisallowed]); const ALL_MATHML_TAGS = addToSet({}, [...mathMl$1, ...mathMlDisallowed]); /** * @param element a DOM element whose namespace is being checked * @returns Return false if the element has a * namespace that a spec-compliant parser would never * return. Return true otherwise. */ const _checkValidNamespace = function _checkValidNamespace(element) { let parent = getParentNode(element); // In JSDOM, if we're inside shadow DOM, then parentNode // can be null. We just simulate parent in this case. if (!parent || !parent.tagName) { parent = { namespaceURI: NAMESPACE, tagName: 'template' }; } const tagName = stringToLowerCase(element.tagName); const parentTagName = stringToLowerCase(parent.tagName); if (!ALLOWED_NAMESPACES[element.namespaceURI]) { return false; } if (element.namespaceURI === SVG_NAMESPACE) { // The only way to switch from HTML namespace to SVG // is via <svg>. If it happens via any other tag, then // it should be killed. if (parent.namespaceURI === HTML_NAMESPACE) { return tagName === 'svg'; } // The only way to switch from MathML to SVG is via` // svg if parent is either <annotation-xml> or MathML // text integration points. if (parent.namespaceURI === MATHML_NAMESPACE) { return tagName === 'svg' && (parentTagName === 'annotation-xml' || MATHML_TEXT_INTEGRATION_POINTS[parentTagName]); } // We only allow elements that are defined in SVG // spec. All others are disallowed in SVG namespace. return Boolean(ALL_SVG_TAGS[tagName]); } if (element.namespaceURI === MATHML_NAMESPACE) { // The only way to switch from HTML namespace to MathML // is via <math>. If it happens via any other tag, then // it should be killed. if (parent.namespaceURI === HTML_NAMESPACE) { return tagName === 'math'; } // The only way to switch from SVG to MathML is via // <math> and HTML integration points if (parent.namespaceURI === SVG_NAMESPACE) { return tagName === 'math' && HTML_INTEGRATION_POINTS[parentTagName]; } // We only allow elements that are defined in MathML // spec. All others are disallowed in MathML namespace. return Boolean(ALL_MATHML_TAGS[tagName]); } if (element.namespaceURI === HTML_NAMESPACE) { // The only way to switch from SVG to HTML is via // HTML integration points, and from MathML to HTML // is via MathML text integration points if (parent.namespaceURI === SVG_NAMESPACE && !HTML_INTEGRATION_POINTS[parentTagName]) { return false; } if (parent.namespaceURI === MATHML_NAMESPACE && !MATHML_TEXT_INTEGRATION_POINTS[parentTagName]) { return false; } // We disallow tags that are specific for MathML // or SVG and should never appear in HTML namespace return !ALL_MATHML_TAGS[tagName] && (COMMON_SVG_AND_HTML_ELEMENTS[tagName] || !ALL_SVG_TAGS[tagName]); } // For XHTML and XML documents that support custom namespaces if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && ALLOWED_NAMESPACES[element.namespaceURI]) { return true; } // The code should never reach this place (this means // that the element somehow got namespace that is not // HTML, SVG, MathML or allowed via ALLOWED_NAMESPACES). // Return false just in case. return false; }; /** * _forceRemove * * @param node a DOM node */ const _forceRemove = function _forceRemove(node) { arrayPush(DOMPurify.removed, { element: node }); try { // eslint-disable-next-line unicorn/prefer-dom-node-remove getParentNode(node).removeChild(node); } catch (_) { remove(node); } }; /** * _removeAttribute * * @param name an Attribute name * @param element a DOM node */ const _removeAttribute = function _removeAttribute(name, element) { try { arrayPush(DOMPurify.removed, { attribute: element.getAttributeNode(name), from: element }); } catch (_) { arrayPush(DOMPurify.removed, { attribute: null, from: element }); } element.removeAttribute(name); // We void attribute values for unremovable "is" attributes if (name === 'is') { if (RETURN_DOM || RETURN_DOM_FRAGMENT) { try { _forceRemove(element); } catch (_) {} } else { try { element.setAttribute(name, ''); } catch (_) {} } } }; /** * _initDocument * * @param dirty - a string of dirty markup * @return a DOM, filled with the dirty markup */ const _initDocument = function _initDocument(dirty) { /* Create a HTML document */ let doc = null; let leadingWhitespace = null; if (FORCE_BODY) { dirty = '<remove></remove>' + dirty; } else { /* If FORCE_BODY isn't used, leading whitespace needs to be preserved manually */ const matches = stringMatch(dirty, /^[\r\n\t ]+/); leadingWhitespace = matches && matches[0]; } if (PARSER_MEDIA_TYPE === 'application/xhtml+xml' && NAMESPACE === HTML_NAMESPACE) { // Root of XHTML doc must contain xmlns declaration (see https://www.w3.org/TR/xhtml1/normative.html#strict) dirty = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + dirty + '</body></html>'; } const dirtyPayload = trustedTypesPolicy ? trustedTypesPolicy.createHTML(dirty) : dirty; /* * Use the DOMParser API by default, fallback later if needs be * DOMParser not work for svg when has multiple root element. */ if (NAMESPACE === HTML_NAMESPACE) { try { doc = new DOMParser().parseFromString(dirtyPayload, PARSER_MEDIA_TYPE); } catch (_) {} } /* Use createHTMLDocument in case DOMParser is not available */ if (!doc || !doc.documentElement) { doc = implementation.createDocument(NAMESPACE, 'template', null); try { doc.documentElement.innerHTML = IS_EMPTY_INPUT ? emptyHTML : dirtyPayload; } catch (_) { // Syntax error if dirtyPayload is invalid xml } } const body = doc.body || doc.documentElement; if (dirty && leadingWhitespace) { body.insertBefore(document.createTextNode(leadingWhitespace), body.childNodes[0] || null); } /* Work on whole document or just its body */ if (NAMESPACE === HTML_NAMESPACE) { return getElementsByTagName.call(doc, WHOLE_DOCUMENT ? 'html' : 'body')[0]; } return WHOLE_DOCUMENT ? doc.documentElement : body; }; /** * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document. * * @param root The root element or node to start traversing on. * @return The created NodeIterator */ const _createNodeIterator = function _createNodeIterator(root) { return createNodeIterator.call(root.ownerDocument || root, root, // eslint-disable-next-line no-bitwise NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null); }; /** * _isClobbered * * @param element element to check for clobbering attacks * @return true if clobbered, false if safe */ const _isClobbered = function _isClobbered(element) { return element instanceof HTMLFormElement && (typeof element.nodeName !== 'string' || typeof element.textContent !== 'string' || typeof element.removeChild !== 'function' || !(element.attributes instanceof NamedNodeMap) || typeof element.removeAttribute !== 'function' || typeof element.setAttribute !== 'function' || typeof element.namespaceURI !== 'string' || typeof element.insertBefore !== 'function' || typeof element.hasChildNodes !== 'function'); }; /** * Checks whether the given object is a DOM node. * * @param value object to check whether it's a DOM node * @return true is object is a DOM node */ const _isNode = function _isNode(value) { return typeof Node === 'function' && value instanceof Node; }; function _executeHooks(hooks, currentNode, data) { arrayForEach(hooks, hook => { hook.call(DOMPurify, currentNode, data, CONFIG); }); } /** * _sanitizeElements * * @protect nodeName * @protect textContent * @protect removeChild * @param currentNode to check for permission to exist * @return true if node was killed, false if left alive */ const _sanitizeElements = function _sanitizeElements(currentNode) { let content = null; /* Execute a hook if present */ _executeHooks(hooks.beforeSanitizeElements, currentNode, null); /* Check if element is clobbered or can clobber */ if (_isClobbered(currentNode)) { _forceRemove(currentNode); return true; } /* Now let's check the element's type and name */ const tagName = transformCaseFunc(currentNode.nodeName); /* Execute a hook if present */ _executeHooks(hooks.uponSanitizeElement, currentNode, { tagName, allowedTags: ALLOWED_TAGS }); /* Detect mXSS attempts abusing namespace confusion */ if (SAFE_FOR_XML && currentNode.hasChildNodes() && !_isNode(currentNode.firstElementChild) && regExpTest(/<[/\w!]/g, currentNode.innerHTML) && regExpTest(/<[/\w!]/g, currentNode.textContent)) { _forceRemove(currentNode); return true; } /* Remove any occurrence of processing instructions */ if (currentNode.nodeType === NODE_TYPE.progressingInstruction) { _forceRemove(currentNode); return true; } /* Remove any kind of possibly harmful comments */ if (SAFE_FOR_XML && currentNode.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, currentNode.data)) { _forceRemove(currentNode); return true; } /* Remove element if anything forbids its presence */ if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) { /* Check if we have a custom element to handle */ if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) { if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) { return false; } if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(tagName)) { return false; } } /* Keep content except for bad-listed elements */ if (KEEP_CONTENT && !FORBID_CONTENTS[tagName]) { const parentNode = getParentNode(currentNode) || currentNode.parentNode; const childNodes = getChildNodes(currentNode) || currentNode.childNodes; if (childNodes && parentNode) { const childCount = childNodes.length; for (let i = childCount - 1; i >= 0; --i) { const childClone = cloneNode(childNodes[i], true); childClone.__removalCount = (currentNode.__removalCount || 0) + 1; parentNode.insertBefore(childClone, getNextSibling(currentNode)); } } } _forceRemove(currentNode); return true; } /* Check whether element has a valid namespace */ if (currentNode instanceof Element && !_checkValidNamespace(currentNode)) { _forceRemove(currentNode); return true; } /* Make sure that older browsers don't get fallback-tag mXSS */ if ((tagName === 'noscript' || tagName === 'noembed' || tagName === 'noframes') && regExpTest(/<\/no(script|embed|frames)/i, currentNode.innerHTML)) { _forceRemove(currentNode); return true; } /* Sanitize element content to be template-safe */ if (SAFE_FOR_TEMPLATES && currentNode.nodeType === NODE_TYPE.text) { /* Get the element's text content */ content = currentNode.textContent; arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => { content = stringReplace(content, expr, ' '); }); if (currentNode.textContent !== content) { arrayPush(DOMPurify.removed, { element: currentNode.cloneNode() }); currentNode.textContent = content; } } /* Execute a hook if present */ _executeHooks(hooks.afterSanitizeElements, currentNode, null); return false; }; /** * _isValidAttribute * * @param lcTag Lowercase tag name of containing element. * @param lcName Lowercase attribute name. * @param value Attribute value. * @return Returns true if `value` is valid, otherwise false. */ // eslint-disable-next-line complexity const _isValidAttribute = function _isValidAttribute(lcTag, lcName, value) { /* Make sure attribute cannot clobber */ if (SANITIZE_DOM && (lcName === 'id' || lcName === 'name') && (value in document || value in formElement)) { return false; } /* Allow valid data-* attributes: At least one character after "-" (https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes) XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804) We don't need to check the value; it's always URI safe. */ if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) { if ( // First condition does a very basic check if a) it's basically a valid custom element tagname AND // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck _isBasicCustomElement(lcTag) && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, lcTag) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(lcTag)) && (CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.attributeNameCheck, lcName) || CUSTOM_ELEMENT_HANDLING.attributeNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.attributeNameCheck(lcName)) || // Alternative, second condition checks if it's an `is`-attribute, AND // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck lcName === 'is' && CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements && (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, value) || CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof Function && CUSTOM_ELEMENT_HANDLING.tagNameCheck(value))) ; else { return false; } /* Check value is safe. First, is attr inert? If so, is safe */ } else if (URI_SAFE_ATTRIBUTES[lcName]) ; else if (regExpTest(IS_ALLOWED_URI$1, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if ((lcName === 'src' || lcName === 'xlink:href' || lcName === 'href') && lcTag !== 'script' && stringIndexOf(value, 'data:') === 0 && DATA_URI_TAGS[lcTag]) ; else if (ALLOW_UNKNOWN_PROTOCOLS && !regExpTest(IS_SCRIPT_OR_DATA, stringReplace(value, ATTR_WHITESPACE, ''))) ; else if (value) { return false; } else ; return true; }; /** * _isBasicCustomElement * checks if at least one dash is included in tagName, and it's not the first char * for more sophisticated checking see https://github.com/sindresorhus/validate-element-name * * @param tagName name of the tag of the node to sanitize * @returns Returns true if the tag name meets the basic criteria for a custom element, otherwise false. */ const _isBasicCustomElement = function _isBasicCustomElement(tagName) { return tagName !== 'annotation-xml' && stringMatch(tagName, CUSTOM_ELEMENT); }; /** * _sanitizeAttributes * * @protect attributes * @protect nodeName * @protect removeAttribute * @protect setAttribute * * @param currentNode to sanitize */ const _sanitizeAttributes = function _sanitizeAttributes(currentNode) { /* Execute a hook if present */ _executeHooks(hooks.beforeSanitizeAttributes, currentNode, null); const { attributes } = currentNode; /* Check if we have attributes; if not we might have a text node */ if (!attributes || _isClobbered(currentNode)) { return; } const hookEvent = { attrName: '', attrValue: '', keepAttr: true, allowedAttributes: ALLOWED_ATTR, forceKeepAttr: undefined }; let l = attributes.length; /* Go backwards over all attributes; safely remove bad ones */ while (l--) { const attr = attributes[l]; const { name, namespaceURI, value: attrValue } = attr; const lcName = transformCaseFunc(name); const initValue = attrValue; let value = name === 'value' ? initValue : stringTrim(initValue); /* Execute a hook if present */ hookEvent.attrName = lcName; hookEvent.attrValue = value; hookEvent.keepAttr = true; hookEvent.forceKeepAttr = undefined; // Allows developers to see this is a property they can set _executeHooks(hooks.uponSanitizeAttribute, currentNode, hookEvent); value = hookEvent.attrValue; /* Full DOM Clobbering protection via namespace isolation, * Prefix id and name attributes with `user-content-` */ if (SANITIZE_NAMED_PROPS && (lcName === 'id' || lcName === 'name')) { // Remove the attribute with this value _removeAttribute(name, currentNode); // Prefix the value and later re-create the attribute with the sanitized value value = SANITIZE_NAMED_PROPS_PREFIX + value; } /* Work around a security issue with comments inside attributes */ if (SAFE_FOR_XML && regExpTest(/((--!?|])>)|<\/(style|title)/i, value)) { _removeAttribute(name, currentNode); continue; } /* Did the hooks approve of the attribute? */ if (hookEvent.forceKeepAttr) { continue; } /* Did the hooks approve of the attribute? */ if (!hookEvent.keepAttr) { _removeAttribute(name, currentNode); continue; } /* Work around a security issue in jQuery 3.0 */ if (!ALLOW_SELF_CLOSE_IN_ATTR && regExpTest(/\/>/i, value)) { _removeAttribute(name, currentNode); continue; } /* Sanitize attribute content to be template-safe */ if (SAFE_FOR_TEMPLATES) { arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => { value = stringReplace(value, expr, ' '); }); } /* Is `value` valid for this attribute? */ const lcTag = transformCaseFunc(currentNode.nodeName); if (!_isValidAttribute(lcTag, lcName, value)) { _removeAttribute(name, currentNode); continue; } /* Handle attributes that require Trusted Types */ if (trustedTypesPolicy && typeof trustedTypes === 'object' && typeof trustedTypes.getAttributeType === 'function') { if (namespaceURI) ; else { switch (trustedTypes.getAttributeType(lcTag, lcName)) { case 'TrustedHTML': { value = trustedTypesPolicy.createHTML(value); break; } case 'TrustedScriptURL': { value = trustedTypesPolicy.createScriptURL(value); break; } } } } /* Handle invalid data-* attribute set by try-catching it */ if (value !== initValue) { try { if (namespaceURI) { currentNode.setAttributeNS(namespaceURI, name, value); } else { /* Fallback to setAttribute() for browser-unrecognized namespaces e.g. "x-schema". */ currentNode.setAttribute(name, value); } if (_isClobbered(currentNode)) { _forceRemove(currentNode); } else { arrayPop(DOMPurify.removed); } } catch (_) { _removeAttribute(name, currentNode); } } } /* Execute a hook if present */ _executeHooks(hooks.afterSanitizeAttributes, currentNode, null); }; /** * _sanitizeShadowDOM * * @param fragment to iterate over recursively */ const _sanitizeShadowDOM = function _sanitizeShadowDOM(fragment) { let shadowNode = null; const shadowIterator = _createNodeIterator(fragment); /* Execute a hook if present */ _executeHooks(hooks.beforeSanitizeShadowDOM, fragment, null); while (shadowNode = shadowIterator.nextNode()) { /* Execute a hook if present */ _executeHooks(hooks.uponSanitizeShadowNode, shadowNode, null); /* Sanitize tags and elements */ _sanitizeElements(shadowNode); /* Check attributes next */ _sanitizeAttributes(shadowNode); /* Deep shadow DOM detected */ if (shadowNode.content instanceof DocumentFragment) { _sanitizeShadowDOM(shadowNode.content); } } /* Execute a hook if present */ _executeHooks(hooks.afterSanitizeShadowDOM, fragment, null); }; // eslint-disable-next-line complexity DOMPurify.sanitize = function (dirty) { let cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; let body = null; let importedNode = null; let currentNode = null; let returnNode = null; /* Make sure we have a string to sanitize. DO NOT return early, as this will return the wrong type if the user has requested a DOM object rather than a string */ IS_EMPTY_INPUT = !dirty; if (IS_EMPTY_INPUT) { dirty = '<!-->'; } /* Stringify, in case dirty is an object */ if (typeof dirty !== 'string' && !_isNode(dirty)) { if (typeof dirty.toString === 'function') { dirty = dirty.toString(); if (typeof dirty !== 'string') { throw typeErrorCreate('dirty is not a string, aborting'); } } else { throw typeErrorCreate('toString is not a function'); } } /* Return dirty HTML if DOMPurify cannot run */ if (!DOMPurify.isSupported) { return dirty; } /* Assign config vars */ if (!SET_CONFIG) { _parseConfig(cfg); } /* Clean up removed elements */ DOMPurify.removed = []; /* Check if dirty is correctly typed for IN_PLACE */ if (typeof dirty === 'string') { IN_PLACE = false; } if (IN_PLACE) { /* Do some early pre-sanitization to avoid unsafe root nodes */ if (dirty.nodeName) { const tagName = transformCaseFunc(dirty.nodeName); if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) { throw typeErrorCreate('root node is forbidden and cannot be sanitized in-place'); } } } else if (dirty instanceof Node) { /* If dirty is a DOM element, append to an empty document to avoid elements being stripped by the parser */ body = _initDocument('<!---->'); importedNode = body.ownerDocument.importNode(dirty, true); if (importedNode.nodeType === NODE_TYPE.element && importedNode.nodeName === 'BODY') { /* Node is already a body, use as is */ body = importedNode; } else if (importedNode.nodeName === 'HTML') { body = importedNode; } else { // eslint-disable-next-line unicorn/prefer-dom-node-append body.appendChild(importedNode); } } else { /* Exit directly if we have nothing to do */ if (!RETURN_DOM && !SAFE_FOR_TEMPLATES && !WHOLE_DOCUMENT && // eslint-disable-next-line unicorn/prefer-includes dirty.indexOf('<') === -1) { return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(dirty) : dirty; } /* Initialize the document to work on */ body = _initDocument(dirty); /* Check we have a DOM node from the data */ if (!body) { return RETURN_DOM ? null : RETURN_TRUSTED_TYPE ? emptyHTML : ''; } } /* Remove first element node (ours) if FORCE_BODY is set */ if (body && FORCE_BODY) { _forceRemove(body.firstChild); } /* Get node iterator */ const nodeIterator = _createNodeIterator(IN_PLACE ? dirty : body); /* Now start iterating over the created document */ while (currentNode = nodeIterator.nextNode()) { /* Sanitize tags and elements */ _sanitizeElements(currentNode); /* Check attributes next */ _sanitizeAttributes(currentNode); /* Shadow DOM detected, sanitize it */ if (currentNode.content instanceof DocumentFragment) { _sanitizeShadowDOM(currentNode.content); } } /* If we sanitized `dirty` in-place, return it. */ if (IN_PLACE) { return dirty; } /* Return sanitized string or DOM */ if (RETURN_DOM) { if (RETURN_DOM_FRAGMENT) { returnNode = createDocumentFragment.call(body.ownerDocument); while (body.firstChild) { // eslint-disable-next-line unicorn/prefer-dom-node-append returnNode.appendChild(body.firstChild); } } else { returnNode = body; } if (ALLOWED_ATTR.shadowroot || ALLOWED_ATTR.shadowrootmode) { /* AdoptNode() is not used because internal state is not reset (e.g. the past names map of a HTMLFormElement), this is safe in theory but we would rather not risk another attack vector. The state that is cloned by importNode() is explicitly defined by the specs. */ returnNode = importNode.call(originalDocument, returnNode, true); } return returnNode; } let serializedHTML = WHOLE_DOCUMENT ? body.outerHTML : body.innerHTML; /* Serialize doctype if allowed */ if (WHOLE_DOCUMENT && ALLOWED_TAGS['!doctype'] && body.ownerDocument && body.ownerDocument.doctype && body.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, body.ownerDocument.doctype.name)) { serializedHTML = '<!DOCTYPE ' + body.ownerDocument.doctype.name + '>\n' + serializedHTML; } /* Sanitize final string template-safe */ if (SAFE_FOR_TEMPLATES) { arrayForEach([MUSTACHE_EXPR, ERB_EXPR, TMPLIT_EXPR], expr => { serializedHTML = stringReplace(serializedHTML, expr, ' '); }); } return trustedTypesPolicy && RETURN_TRUSTED_TYPE ? trustedTypesPolicy.createHTML(serializedHTML) : serializedHTML; }; DOMPurify.setConfig = function () { let cfg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; _parseConfig(cfg); SET_CONFIG = true; }; DOMPurify.clearConfig = function () { CONFIG = null; SET_CONFIG = false; }; DOMPurify.isValidAttribute = function (tag, attr, value) { /* Initialize shared config vars if necessary. */ if (!CONFIG) { _parseConfig({}); } const lcTag = transformCaseFunc(tag); const lcName = transformCaseFunc(attr); return _isValidAttribute(lcTag, lcName, value); }; DOMPurify.addHook = function (entryPoint, hookFunction) { if (typeof hookFunction !== 'function') { return; } arrayPush(hooks[entryPoint], hookFunction); }; DOMPurify.removeHook = function (entryPoint, hookFunction) { if (hookFunction !== undefined) { const index = arrayLastIndexOf(hooks[entryPoint], hookFunction); return index === -1 ? undefined : arraySplice(hooks[entryPoint], index, 1)[0]; } return arrayPop(hooks[entryPoint]); }; DOMPurify.removeHooks = function (entryPoint) { hooks[entryPoint] = []; }; DOMPurify.removeAllHooks = function () { hooks = _createHooksMap(); }; return DOMPurify; } var purify = createDOMPurify(); //# sourceMappingURL=purify.es.mjs.map /***/ }), /***/ "../utils/helpers.js": /*!***************************!*\ !*** ../utils/helpers.js ***! \***************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ classNames: () => (/* binding */ classNames), /* harmony export */ debounce: () => (/* binding */ debounce), /* harmony export */ getAstraProTitle: () => (/* binding */ getAstraProTitle), /* harmony export */ getAstraProTitleFreePage: () => (/* binding */ getAstraProTitleFreePage), /* harmony export */ getSpinner: () => (/* binding */ getSpinner), /* harmony export */ handleGetAstraPro: () => (/* binding */ handleGetAstraPro), /* harmony export */ saveSetting: () => (/* binding */ saveSetting) /* harmony export */ }); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/api-fetch */ "@wordpress/api-fetch"); /* harmony import */ var _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var dompurify__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! dompurify */ "../../node_modules/dompurify/dist/purify.es.mjs"); /** * Returns the class names. * * @param {...string} classes The class names. * * @return {string} Returns the class names. */ const classNames = (...classes) => classes.filter(Boolean).join(' '); /** * Handles the Astra Pro CTA button click event, opening the upgrade URL in a new tab. * This function also handles the display of a spinner during the upgrade process. * * @param {Event} e - The event object. * @param {Object} options - Options for the upgrade process. * @param {string} options.url - The URL for the upgrade. * @param {string} options.campaign - The UTM campaign parameter. * @param {boolean} options.disableSpinner - Optional. Disables the spinner if true. * @param {string} options.spinnerPosition - Optional. The position of the spinner. */ const handleGetAstraPro = (e, { url = astra_admin.upgrade_url, campaign = '', disableSpinner = false, spinnerPosition = 'right' } = {}) => { e.preventDefault(); e.stopPropagation(); if (!astra_admin.pro_installed_status) { // If a custom campaign is provided, modify the URL if (campaign) { const urlObj = new URL(url); urlObj.searchParams.set('utm_campaign', campaign); url = urlObj.toString(); } window.open(url, '_blank'); return; } const spinnerHTML = disableSpinner ? '' : getSpinner(); const buttonHTML = spinnerPosition === 'right' ? `<span class="button-text">${astra_admin.plugin_activating_text}</span>${spinnerHTML}` : `${spinnerHTML}<span class="button-text">${astra_admin.plugin_activating_text}</span>`; e.target.innerHTML = dompurify__WEBPACK_IMPORTED_MODULE_2__["default"].sanitize(buttonHTML); e.target.disabled = true; const formData = new window.FormData(); formData.append('action', 'astra_recommended_plugin_activate'); formData.append('security', astra_admin.plugin_manager_nonce); formData.append('init', 'astra-addon/astra-addon.php'); _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_1___default()({ url: astra_admin.ajax_url, method: 'POST', body: formData }).then(data => { if (data.success) { window.open(astra_admin.astra_base_url, '_self'); return; } }).catch(error => { e.target.innerText = (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Activation failed. Please try again.', 'astra'); e.target.disabled = false; console.error('Error during API request:', error); // Optionally, notify the user about the error or handle it appropriately. }); }; /** * Creates a debounced function that delays its execution until after the specified delay. * * The debounce() function can also be used from lodash.debounce package in future. * * @param {Function} func - The function to debounce. * @param {number} delay - The delay in milliseconds before the function is executed. * * @returns {Function} A debounced function. */ const debounce = (func, delay) => { let timer; function debounced(...args) { clearTimeout(timer); timer = setTimeout(() => func(...args), delay); } // Attach a `cancel` method to clear the timeout. debounced.cancel = () => { clearTimeout(timer); }; return debounced; }; /** * Returns the Astra Pro title. * * @return {string} Returns the Astra Pro title. */ const getAstraProTitle = () => { return astra_admin.pro_installed_status ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Activate Now', 'astra') : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Upgrade Now', 'astra'); }; /** * Returns the Astra Pro title. * * @return {string} Returns the Astra Pro title. */ const getAstraProTitleFreePage = () => { return astra_admin.pro_installed_status ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Activate Now', 'astra') : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('See all Astra Pro Features', 'astra'); }; /** * Returns the spinner SVG text. * * @return {string} Returns the spinner SVG text.. */ const getSpinner = () => { return ` <svg class="animate-spin installer-spinner ml-2 inline-block align-middle" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" width="16" height="16"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path> </svg> `; }; /** * A function to save astra admin settings. * * @function * * @param {string} key - Settings key. * @param {string} value - The data to send. * @param {Function} dispatch - The dispatch function. * @param {Object} abortControllerRef - The ref object with to hold abort controller. * * @return {Promise} Returns a promise representing the processed request. */ const saveSetting = debounce(({ action = 'astra_update_admin_setting', security = astra_admin.update_nonce, key = '', value }, dispatch, abortControllerRef = { current: {} }) => { // Abort any previous request. if (abortControllerRef.current[key]) { abortControllerRef.current[key]?.abort(); } // Create a new AbortController. const abortController = new AbortController(); abortControllerRef.current[key] = abortController; const formData = new window.FormData(); formData.append('action', action); formData.append('security', security); formData.append('key', key); formData.append('value', value); return _wordpress_api_fetch__WEBPACK_IMPORTED_MODULE_1___default()({ url: astra_admin.ajax_url, method: 'POST', body: formData, signal: abortControllerRef.current[key]?.signal // Pass the signal to the fetch request. }).then(() => { dispatch({ type: 'UPDATE_SETTINGS_SAVED_NOTIFICATION', payload: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('Successfully saved!', 'astra') }); }).catch(error => { // Ignore if it is intentionally aborted. if (error.name === 'AbortError') { return; } console.error('Error during API request:', error); dispatch({ type: 'UPDATE_SETTINGS_SAVED_NOTIFICATION', payload: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)('An error occurred while saving.', 'astra') }); }); }, 300); /***/ }), /***/ "./node_modules/@bsf/force-ui/dist/_commonjsHelpers-DaMA6jEr.js": /*!**********************************************************************!*\ !*** ./node_modules/@bsf/force-ui/dist/_commonjsHelpers-DaMA6jEr.js ***! \**********************************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ c: () => (/* binding */ o), /* harmony export */ g: () => (/* binding */ l) /* harmony export */ }); var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; function l(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } /***/ }), /***/ "./node_modules/@bsf/force-ui/dist/force-ui.js": /*!*****************************************************!*\ !*** ./node_modules/@bsf/force-ui/dist/force-ui.js ***! \*****************************************************/ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => { var react__WEBPACK_IMPORTED_MODULE_1___namespace_cache; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ Accordion: () => (/* binding */ ake), /* harmony export */ Alert: () => (/* binding */ nke), /* harmony export */ AreaChart: () => (/* binding */ uke), /* harmony export */ Avatar: () => (/* binding */ GEe), /* harmony export */ Badge: () => (/* binding */ mg), /* harmony export */ BarChart: () => (/* binding */ ske), /* harmony export */ Breadcrumb: () => (/* binding */ Xs), /* harmony export */ Button: () => (/* binding */ Hn), /* harmony export */ ButtonGroup: () => (/* binding */ XEe), /* harmony export */ Checkbox: () => (/* binding */ Jw), /* harmony export */ Container: () => (/* binding */ kR), /* harmony export */ DatePicker: () => (/* binding */ oke), /* harmony export */ Dialog: () => (/* binding */ Xo), /* harmony export */ Drawer: () => (/* binding */ Jo), /* harmony export */ DropdownMenu: () => (/* binding */ Js), /* harmony export */ Dropzone: () => (/* binding */ FEe), /* harmony export */ EditorInput: () => (/* binding */ UQ), /* harmony export */ HamburgerMenu: () => (/* binding */ zg), /* harmony export */ Input: () => (/* binding */ fY), /* harmony export */ Label: () => (/* binding */ to), /* harmony export */ LineChart: () => (/* binding */ lke), /* harmony export */ Loader: () => (/* binding */ d1), /* harmony export */ Menu: () => (/* binding */ Ha), /* harmony export */ Pagination: () => (/* binding */ Fc), /* harmony export */ PieChart: () => (/* binding */ cke), /* harmony export */ ProgressBar: () => (/* binding */ qEe), /* harmony export */ ProgressSteps: () => (/* binding */ qQ), /* harmony export */ RadioButton: () => (/* binding */ KEe), /* harmony export */ SearchBox: () => (/* binding */ Zo), /* harmony export */ Select: () => (/* binding */ QEe), /* harmony export */ Sidebar: () => (/* binding */ ike), /* harmony export */ Skeleton: () => (/* binding */ rke), /* harmony export */ Switch: () => (/* binding */ J$), /* harmony export */ Table: () => (/* binding */ ol), /* harmony export */ Tabs: () => (/* binding */ K1), /* harmony export */ TextArea: () => (/* binding */ cY), /* harmony export */ Title: () => (/* binding */ YEe), /* harmony export */ Toaster: () => (/* binding */ tke), /* harmony export */ Tooltip: () => (/* binding */ f1), /* harmony export */ Topbar: () => (/* binding */ _d), /* harmony export */ toast: () => (/* binding */ eke) /* harmony export */ }); /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/react/jsx-runtime.js"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "react-dom"); /* harmony import */ var _commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./_commonjsHelpers-DaMA6jEr.js */ "./node_modules/@bsf/force-ui/dist/_commonjsHelpers-DaMA6jEr.js"); "use client"; var nH = Object.defineProperty; var pT = (e) => { throw TypeError(e); }; var rH = (e, t, n) => t in e ? nH(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n; var ha = (e, t, n) => rH(e, typeof t != "symbol" ? t + "" : t, n), mT = (e, t, n) => t.has(e) || pT("Cannot " + n); var Dr = (e, t, n) => (mT(e, t, "read from private field"), n ? n.call(e) : t.get(e)), zv = (e, t, n) => t.has(e) ? pT("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), as = (e, t, n, r) => (mT(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n); const qw = "-", sH = (e) => { const t = cH(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e; return { getClassGroupId: (a) => { const s = a.split(qw); return s[0] === "" && s.length !== 1 && s.shift(), K$(s, t) || lH(a); }, getConflictingClassGroupIds: (a, s) => { const l = n[a] || []; return s && r[a] ? [...l, ...r[a]] : l; } }; }, K$ = (e, t) => { var a; if (e.length === 0) return t.classGroupId; const n = e[0], r = t.nextPart.get(n), i = r ? K$(e.slice(1), r) : void 0; if (i) return i; if (t.validators.length === 0) return; const o = e.join(qw); return (a = t.validators.find(({ validator: s }) => s(o))) == null ? void 0 : a.classGroupId; }, gT = /^\[(.+)\]$/, lH = (e) => { if (gT.test(e)) { const t = gT.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":")); if (n) return "arbitrary.." + n; } }, cH = (e) => { const { theme: t, prefix: n } = e, r = { nextPart: /* @__PURE__ */ new Map(), validators: [] }; return fH(Object.entries(e.classGroups), n).forEach(([o, a]) => { u0(a, r, o, t); }), r; }, u0 = (e, t, n, r) => { e.forEach((i) => { if (typeof i == "string") { const o = i === "" ? t : yT(t, i); o.classGroupId = n; return; } if (typeof i == "function") { if (uH(i)) { u0(i(r), t, n, r); return; } t.validators.push({ validator: i, classGroupId: n }); return; } Object.entries(i).forEach(([o, a]) => { u0(a, yT(t, o), n, r); }); }); }, yT = (e, t) => { let n = e; return t.split(qw).forEach((r) => { n.nextPart.has(r) || n.nextPart.set(r, { nextPart: /* @__PURE__ */ new Map(), validators: [] }), n = n.nextPart.get(r); }), n; }, uH = (e) => e.isThemeGetter, fH = (e, t) => t ? e.map(([n, r]) => { const i = r.map((o) => typeof o == "string" ? t + o : typeof o == "object" ? Object.fromEntries(Object.entries(o).map(([a, s]) => [t + a, s])) : o); return [n, i]; }) : e, dH = (e) => { if (e < 1) return { get: () => { }, set: () => { } }; let t = 0, n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(); const i = (o, a) => { n.set(o, a), t++, t > e && (t = 0, r = n, n = /* @__PURE__ */ new Map()); }; return { get(o) { let a = n.get(o); if (a !== void 0) return a; if ((a = r.get(o)) !== void 0) return i(o, a), a; }, set(o, a) { n.has(o) ? n.set(o, a) : i(o, a); } }; }, G$ = "!", hH = (e) => { const { separator: t, experimentalParseClassName: n } = e, r = t.length === 1, i = t[0], o = t.length, a = (s) => { const l = []; let c = 0, f = 0, d; for (let v = 0; v < s.length; v++) { let x = s[v]; if (c === 0) { if (x === i && (r || s.slice(v, v + o) === t)) { l.push(s.slice(f, v)), f = v + o; continue; } if (x === "/") { d = v; continue; } } x === "[" ? c++ : x === "]" && c--; } const p = l.length === 0 ? s : s.substring(f), m = p.startsWith(G$), y = m ? p.substring(1) : p, g = d && d > f ? d - f : void 0; return { modifiers: l, hasImportantModifier: m, baseClassName: y, maybePostfixModifierPosition: g }; }; return n ? (s) => n({ className: s, parseClassName: a }) : a; }, pH = (e) => { if (e.length <= 1) return e; const t = []; let n = []; return e.forEach((r) => { r[0] === "[" ? (t.push(...n.sort(), r), n = []) : n.push(r); }), t.push(...n.sort()), t; }, mH = (e) => ({ cache: dH(e.cacheSize), parseClassName: hH(e), ...sH(e) }), gH = /\s+/, yH = (e, t) => { const { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i } = t, o = [], a = e.trim().split(gH); let s = ""; for (let l = a.length - 1; l >= 0; l -= 1) { const c = a[l], { modifiers: f, hasImportantModifier: d, baseClassName: p, maybePostfixModifierPosition: m } = n(c); let y = !!m, g = r(y ? p.substring(0, m) : p); if (!g) { if (!y) { s = c + (s.length > 0 ? " " + s : s); continue; } if (g = r(p), !g) { s = c + (s.length > 0 ? " " + s : s); continue; } y = !1; } const v = pH(f).join(":"), x = d ? v + G$ : v, w = x + g; if (o.includes(w)) continue; o.push(w); const S = i(g, y); for (let A = 0; A < S.length; ++A) { const _ = S[A]; o.push(x + _); } s = c + (s.length > 0 ? " " + s : s); } return s; }; function vH() { let e = 0, t, n, r = ""; for (; e < arguments.length; ) (t = arguments[e++]) && (n = Y$(t)) && (r && (r += " "), r += n); return r; } const Y$ = (e) => { if (typeof e == "string") return e; let t, n = ""; for (let r = 0; r < e.length; r++) e[r] && (t = Y$(e[r])) && (n && (n += " "), n += t); return n; }; function bH(e, ...t) { let n, r, i, o = a; function a(l) { const c = t.reduce((f, d) => d(f), e()); return n = mH(c), r = n.cache.get, i = n.cache.set, o = s, s(l); } function s(l) { const c = r(l); if (c) return c; const f = yH(l, n); return i(l, f), f; } return function() { return o(vH.apply(null, arguments)); }; } const Wt = (e) => { const t = (n) => n[e] || []; return t.isThemeGetter = !0, t; }, q$ = /^\[(?:([a-z-]+):)?(.+)\]$/i, xH = /^\d+\/\d+$/, wH = /* @__PURE__ */ new Set(["px", "full", "screen"]), _H = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, SH = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, OH = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, AH = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, TH = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, bo = (e) => Vl(e) || wH.has(e) || xH.test(e), pa = (e) => Nc(e, "length", DH), Vl = (e) => !!e && !Number.isNaN(Number(e)), Vv = (e) => Nc(e, "number", Vl), bu = (e) => !!e && Number.isInteger(Number(e)), PH = (e) => e.endsWith("%") && Vl(e.slice(0, -1)), Je = (e) => q$.test(e), ma = (e) => _H.test(e), CH = /* @__PURE__ */ new Set(["length", "size", "percentage"]), EH = (e) => Nc(e, CH, X$), kH = (e) => Nc(e, "position", X$), MH = /* @__PURE__ */ new Set(["image", "url"]), NH = (e) => Nc(e, MH, RH), $H = (e) => Nc(e, "", IH), xu = () => !0, Nc = (e, t, n) => { const r = q$.exec(e); return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1; }, DH = (e) => ( // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths. // For example, `hsl(0 0% 0%)` would be classified as a length without this check. // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough. SH.test(e) && !OH.test(e) ), X$ = () => !1, IH = (e) => AH.test(e), RH = (e) => TH.test(e), jH = () => { const e = Wt("colors"), t = Wt("spacing"), n = Wt("blur"), r = Wt("brightness"), i = Wt("borderColor"), o = Wt("borderRadius"), a = Wt("borderSpacing"), s = Wt("borderWidth"), l = Wt("contrast"), c = Wt("grayscale"), f = Wt("hueRotate"), d = Wt("invert"), p = Wt("gap"), m = Wt("gradientColorStops"), y = Wt("gradientColorStopPositions"), g = Wt("inset"), v = Wt("margin"), x = Wt("opacity"), w = Wt("padding"), S = Wt("saturate"), A = Wt("scale"), _ = Wt("sepia"), O = Wt("skew"), P = Wt("space"), C = Wt("translate"), k = () => ["auto", "contain", "none"], I = () => ["auto", "hidden", "clip", "visible", "scroll"], $ = () => ["auto", Je, t], N = () => [Je, t], D = () => ["", bo, pa], j = () => ["auto", Vl, Je], F = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], W = () => ["solid", "dashed", "dotted", "double", "none"], z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], H = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], U = () => ["", "0", Je], V = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Y = () => [Vl, Je]; return { cacheSize: 500, separator: ":", theme: { colors: [xu], spacing: [bo, pa], blur: ["none", "", ma, Je], brightness: Y(), borderColor: [e], borderRadius: ["none", "", "full", ma, Je], borderSpacing: N(), borderWidth: D(), contrast: Y(), grayscale: U(), hueRotate: Y(), invert: U(), gap: N(), gradientColorStops: [e], gradientColorStopPositions: [PH, pa], inset: $(), margin: $(), opacity: Y(), padding: N(), saturate: Y(), scale: Y(), sepia: U(), skew: Y(), space: N(), translate: N() }, classGroups: { // Layout /** * Aspect Ratio * @see https://tailwindcss.com/docs/aspect-ratio */ aspect: [{ aspect: ["auto", "square", "video", Je] }], /** * Container * @see https://tailwindcss.com/docs/container */ container: ["container"], /** * Columns * @see https://tailwindcss.com/docs/columns */ columns: [{ columns: [ma] }], /** * Break After * @see https://tailwindcss.com/docs/break-after */ "break-after": [{ "break-after": V() }], /** * Break Before * @see https://tailwindcss.com/docs/break-before */ "break-before": [{ "break-before": V() }], /** * Break Inside * @see https://tailwindcss.com/docs/break-inside */ "break-inside": [{ "break-inside": ["auto", "avoid", "avoid-page", "avoid-column"] }], /** * Box Decoration Break * @see https://tailwindcss.com/docs/box-decoration-break */ "box-decoration": [{ "box-decoration": ["slice", "clone"] }], /** * Box Sizing * @see https://tailwindcss.com/docs/box-sizing */ box: [{ box: ["border", "content"] }], /** * Display * @see https://tailwindcss.com/docs/display */ display: ["block", "inline-block", "inline", "flex", "inline-flex", "table", "inline-table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row-group", "table-row", "flow-root", "grid", "inline-grid", "contents", "list-item", "hidden"], /** * Floats * @see https://tailwindcss.com/docs/float */ float: [{ float: ["right", "left", "none", "start", "end"] }], /** * Clear * @see https://tailwindcss.com/docs/clear */ clear: [{ clear: ["left", "right", "both", "none", "start", "end"] }], /** * Isolation * @see https://tailwindcss.com/docs/isolation */ isolation: ["isolate", "isolation-auto"], /** * Object Fit * @see https://tailwindcss.com/docs/object-fit */ "object-fit": [{ object: ["contain", "cover", "fill", "none", "scale-down"] }], /** * Object Position * @see https://tailwindcss.com/docs/object-position */ "object-position": [{ object: [...F(), Je] }], /** * Overflow * @see https://tailwindcss.com/docs/overflow */ overflow: [{ overflow: I() }], /** * Overflow X * @see https://tailwindcss.com/docs/overflow */ "overflow-x": [{ "overflow-x": I() }], /** * Overflow Y * @see https://tailwindcss.com/docs/overflow */ "overflow-y": [{ "overflow-y": I() }], /** * Overscroll Behavior * @see https://tailwindcss.com/docs/overscroll-behavior */ overscroll: [{ overscroll: k() }], /** * Overscroll Behavior X * @see https://tailwindcss.com/docs/overscroll-behavior */ "overscroll-x": [{ "overscroll-x": k() }], /** * Overscroll Behavior Y * @see https://tailwindcss.com/docs/overscroll-behavior */ "overscroll-y": [{ "overscroll-y": k() }], /** * Position * @see https://tailwindcss.com/docs/position */ position: ["static", "fixed", "absolute", "relative", "sticky"], /** * Top / Right / Bottom / Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ inset: [{ inset: [g] }], /** * Right / Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-x": [{ "inset-x": [g] }], /** * Top / Bottom * @see https://tailwindcss.com/docs/top-right-bottom-left */ "inset-y": [{ "inset-y": [g] }], /** * Start * @see https://tailwindcss.com/docs/top-right-bottom-left */ start: [{ start: [g] }], /** * End * @see https://tailwindcss.com/docs/top-right-bottom-left */ end: [{ end: [g] }], /** * Top * @see https://tailwindcss.com/docs/top-right-bottom-left */ top: [{ top: [g] }], /** * Right * @see https://tailwindcss.com/docs/top-right-bottom-left */ right: [{ right: [g] }], /** * Bottom * @see https://tailwindcss.com/docs/top-right-bottom-left */ bottom: [{ bottom: [g] }], /** * Left * @see https://tailwindcss.com/docs/top-right-bottom-left */ left: [{ left: [g] }], /** * Visibility * @see https://tailwindcss.com/docs/visibility */ visibility: ["visible", "invisible", "collapse"], /** * Z-Index * @see https://tailwindcss.com/docs/z-index */ z: [{ z: ["auto", bu, Je] }], // Flexbox and Grid /** * Flex Basis * @see https://tailwindcss.com/docs/flex-basis */ basis: [{ basis: $() }], /** * Flex Direction * @see https://tailwindcss.com/docs/flex-direction */ "flex-direction": [{ flex: ["row", "row-reverse", "col", "col-reverse"] }], /** * Flex Wrap * @see https://tailwindcss.com/docs/flex-wrap */ "flex-wrap": [{ flex: ["wrap", "wrap-reverse", "nowrap"] }], /** * Flex * @see https://tailwindcss.com/docs/flex */ flex: [{ flex: ["1", "auto", "initial", "none", Je] }], /** * Flex Grow * @see https://tailwindcss.com/docs/flex-grow */ grow: [{ grow: U() }], /** * Flex Shrink * @see https://tailwindcss.com/docs/flex-shrink */ shrink: [{ shrink: U() }], /** * Order * @see https://tailwindcss.com/docs/order */ order: [{ order: ["first", "last", "none", bu, Je] }], /** * Grid Template Columns * @see https://tailwindcss.com/docs/grid-template-columns */ "grid-cols": [{ "grid-cols": [xu] }], /** * Grid Column Start / End * @see https://tailwindcss.com/docs/grid-column */ "col-start-end": [{ col: ["auto", { span: ["full", bu, Je] }, Je] }], /** * Grid Column Start * @see https://tailwindcss.com/docs/grid-column */ "col-start": [{ "col-start": j() }], /** * Grid Column End * @see https://tailwindcss.com/docs/grid-column */ "col-end": [{ "col-end": j() }], /** * Grid Template Rows * @see https://tailwindcss.com/docs/grid-template-rows */ "grid-rows": [{ "grid-rows": [xu] }], /** * Grid Row Start / End * @see https://tailwindcss.com/docs/grid-row */ "row-start-end": [{ row: ["auto", { span: [bu, Je] }, Je] }], /** * Grid Row Start * @see https://tailwindcss.com/docs/grid-row */ "row-start": [{ "row-start": j() }], /** * Grid Row End * @see https://tailwindcss.com/docs/grid-row */ "row-end": [{ "row-end": j() }], /** * Grid Auto Flow * @see https://tailwindcss.com/docs/grid-auto-flow */ "grid-flow": [{ "grid-flow": ["row", "col", "dense", "row-dense", "col-dense"] }], /** * Grid Auto Columns * @see https://tailwindcss.com/docs/grid-auto-columns */ "auto-cols": [{ "auto-cols": ["auto", "min", "max", "fr", Je] }], /** * Grid Auto Rows * @see https://tailwindcss.com/docs/grid-auto-rows */ "auto-rows": [{ "auto-rows": ["auto", "min", "max", "fr", Je] }], /** * Gap * @see https://tailwindcss.com/docs/gap */ gap: [{ gap: [p] }], /** * Gap X * @see https://tailwindcss.com/docs/gap */ "gap-x": [{ "gap-x": [p] }], /** * Gap Y * @see https://tailwindcss.com/docs/gap */ "gap-y": [{ "gap-y": [p] }], /** * Justify Content * @see https://tailwindcss.com/docs/justify-content */ "justify-content": [{ justify: ["normal", ...H()] }], /** * Justify Items * @see https://tailwindcss.com/docs/justify-items */ "justify-items": [{ "justify-items": ["start", "end", "center", "stretch"] }], /** * Justify Self * @see https://tailwindcss.com/docs/justify-self */ "justify-self": [{ "justify-self": ["auto", "start", "end", "center", "stretch"] }], /** * Align Content * @see https://tailwindcss.com/docs/align-content */ "align-content": [{ content: ["normal", ...H(), "baseline"] }], /** * Align Items * @see https://tailwindcss.com/docs/align-items */ "align-items": [{ items: ["start", "end", "center", "baseline", "stretch"] }], /** * Align Self * @see https://tailwindcss.com/docs/align-self */ "align-self": [{ self: ["auto", "start", "end", "center", "stretch", "baseline"] }], /** * Place Content * @see https://tailwindcss.com/docs/place-content */ "place-content": [{ "place-content": [...H(), "baseline"] }], /** * Place Items * @see https://tailwindcss.com/docs/place-items */ "place-items": [{ "place-items": ["start", "end", "center", "baseline", "stretch"] }], /** * Place Self * @see https://tailwindcss.com/docs/place-self */ "place-self": [{ "place-self": ["auto", "start", "end", "center", "stretch"] }], // Spacing /** * Padding * @see https://tailwindcss.com/docs/padding */ p: [{ p: [w] }], /** * Padding X * @see https://tailwindcss.com/docs/padding */ px: [{ px: [w] }], /** * Padding Y * @see https://tailwindcss.com/docs/padding */ py: [{ py: [w] }], /** * Padding Start * @see https://tailwindcss.com/docs/padding */ ps: [{ ps: [w] }], /** * Padding End * @see https://tailwindcss.com/docs/padding */ pe: [{ pe: [w] }], /** * Padding Top * @see https://tailwindcss.com/docs/padding */ pt: [{ pt: [w] }], /** * Padding Right * @see https://tailwindcss.com/docs/padding */ pr: [{ pr: [w] }], /** * Padding Bottom * @see https://tailwindcss.com/docs/padding */ pb: [{ pb: [w] }], /** * Padding Left * @see https://tailwindcss.com/docs/padding */ pl: [{ pl: [w] }], /** * Margin * @see https://tailwindcss.com/docs/margin */ m: [{ m: [v] }], /** * Margin X * @see https://tailwindcss.com/docs/margin */ mx: [{ mx: [v] }], /** * Margin Y * @see https://tailwindcss.com/docs/margin */ my: [{ my: [v] }], /** * Margin Start * @see https://tailwindcss.com/docs/margin */ ms: [{ ms: [v] }], /** * Margin End * @see https://tailwindcss.com/docs/margin */ me: [{ me: [v] }], /** * Margin Top * @see https://tailwindcss.com/docs/margin */ mt: [{ mt: [v] }], /** * Margin Right * @see https://tailwindcss.com/docs/margin */ mr: [{ mr: [v] }], /** * Margin Bottom * @see https://tailwindcss.com/docs/margin */ mb: [{ mb: [v] }], /** * Margin Left * @see https://tailwindcss.com/docs/margin */ ml: [{ ml: [v] }], /** * Space Between X * @see https://tailwindcss.com/docs/space */ "space-x": [{ "space-x": [P] }], /** * Space Between X Reverse * @see https://tailwindcss.com/docs/space */ "space-x-reverse": ["space-x-reverse"], /** * Space Between Y * @see https://tailwindcss.com/docs/space */ "space-y": [{ "space-y": [P] }], /** * Space Between Y Reverse * @see https://tailwindcss.com/docs/space */ "space-y-reverse": ["space-y-reverse"], // Sizing /** * Width * @see https://tailwindcss.com/docs/width */ w: [{ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", Je, t] }], /** * Min-Width * @see https://tailwindcss.com/docs/min-width */ "min-w": [{ "min-w": [Je, t, "min", "max", "fit"] }], /** * Max-Width * @see https://tailwindcss.com/docs/max-width */ "max-w": [{ "max-w": [Je, t, "none", "full", "min", "max", "fit", "prose", { screen: [ma] }, ma] }], /** * Height * @see https://tailwindcss.com/docs/height */ h: [{ h: [Je, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"] }], /** * Min-Height * @see https://tailwindcss.com/docs/min-height */ "min-h": [{ "min-h": [Je, t, "min", "max", "fit", "svh", "lvh", "dvh"] }], /** * Max-Height * @see https://tailwindcss.com/docs/max-height */ "max-h": [{ "max-h": [Je, t, "min", "max", "fit", "svh", "lvh", "dvh"] }], /** * Size * @see https://tailwindcss.com/docs/size */ size: [{ size: [Je, t, "auto", "min", "max", "fit"] }], // Typography /** * Font Size * @see https://tailwindcss.com/docs/font-size */ "font-size": [{ text: ["base", ma, pa] }], /** * Font Smoothing * @see https://tailwindcss.com/docs/font-smoothing */ "font-smoothing": ["antialiased", "subpixel-antialiased"], /** * Font Style * @see https://tailwindcss.com/docs/font-style */ "font-style": ["italic", "not-italic"], /** * Font Weight * @see https://tailwindcss.com/docs/font-weight */ "font-weight": [{ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Vv] }], /** * Font Family * @see https://tailwindcss.com/docs/font-family */ "font-family": [{ font: [xu] }], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-normal": ["normal-nums"], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-ordinal": ["ordinal"], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-slashed-zero": ["slashed-zero"], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-figure": ["lining-nums", "oldstyle-nums"], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-spacing": ["proportional-nums", "tabular-nums"], /** * Font Variant Numeric * @see https://tailwindcss.com/docs/font-variant-numeric */ "fvn-fraction": ["diagonal-fractions", "stacked-fractons"], /** * Letter Spacing * @see https://tailwindcss.com/docs/letter-spacing */ tracking: [{ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", Je] }], /** * Line Clamp * @see https://tailwindcss.com/docs/line-clamp */ "line-clamp": [{ "line-clamp": ["none", Vl, Vv] }], /** * Line Height * @see https://tailwindcss.com/docs/line-height */ leading: [{ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", bo, Je] }], /** * List Style Image * @see https://tailwindcss.com/docs/list-style-image */ "list-image": [{ "list-image": ["none", Je] }], /** * List Style Type * @see https://tailwindcss.com/docs/list-style-type */ "list-style-type": [{ list: ["none", "disc", "decimal", Je] }], /** * List Style Position * @see https://tailwindcss.com/docs/list-style-position */ "list-style-position": [{ list: ["inside", "outside"] }], /** * Placeholder Color * @deprecated since Tailwind CSS v3.0.0 * @see https://tailwindcss.com/docs/placeholder-color */ "placeholder-color": [{ placeholder: [e] }], /** * Placeholder Opacity * @see https://tailwindcss.com/docs/placeholder-opacity */ "placeholder-opacity": [{ "placeholder-opacity": [x] }], /** * Text Alignment * @see https://tailwindcss.com/docs/text-align */ "text-alignment": [{ text: ["left", "center", "right", "justify", "start", "end"] }], /** * Text Color * @see https://tailwindcss.com/docs/text-color */ "text-color": [{ text: [e] }], /** * Text Opacity * @see https://tailwindcss.com/docs/text-opacity */ "text-opacity": [{ "text-opacity": [x] }], /** * Text Decoration * @see https://tailwindcss.com/docs/text-decoration */ "text-decoration": ["underline", "overline", "line-through", "no-underline"], /** * Text Decoration Style * @see https://tailwindcss.com/docs/text-decoration-style */ "text-decoration-style": [{ decoration: [...W(), "wavy"] }], /** * Text Decoration Thickness * @see https://tailwindcss.com/docs/text-decoration-thickness */ "text-decoration-thickness": [{ decoration: ["auto", "from-font", bo, pa] }], /** * Text Underline Offset * @see https://tailwindcss.com/docs/text-underline-offset */ "underline-offset": [{ "underline-offset": ["auto", bo, Je] }], /** * Text Decoration Color * @see https://tailwindcss.com/docs/text-decoration-color */ "text-decoration-color": [{ decoration: [e] }], /** * Text Transform * @see https://tailwindcss.com/docs/text-transform */ "text-transform": ["uppercase", "lowercase", "capitalize", "normal-case"], /** * Text Overflow * @see https://tailwindcss.com/docs/text-overflow */ "text-overflow": ["truncate", "text-ellipsis", "text-clip"], /** * Text Wrap * @see https://tailwindcss.com/docs/text-wrap */ "text-wrap": [{ text: ["wrap", "nowrap", "balance", "pretty"] }], /** * Text Indent * @see https://tailwindcss.com/docs/text-indent */ indent: [{ indent: N() }], /** * Vertical Alignment * @see https://tailwindcss.com/docs/vertical-align */ "vertical-align": [{ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", Je] }], /** * Whitespace * @see https://tailwindcss.com/docs/whitespace */ whitespace: [{ whitespace: ["normal", "nowrap", "pre", "pre-line", "pre-wrap", "break-spaces"] }], /** * Word Break * @see https://tailwindcss.com/docs/word-break */ break: [{ break: ["normal", "words", "all", "keep"] }], /** * Hyphens * @see https://tailwindcss.com/docs/hyphens */ hyphens: [{ hyphens: ["none", "manual", "auto"] }], /** * Content * @see https://tailwindcss.com/docs/content */ content: [{ content: ["none", Je] }], // Backgrounds /** * Background Attachment * @see https://tailwindcss.com/docs/background-attachment */ "bg-attachment": [{ bg: ["fixed", "local", "scroll"] }], /** * Background Clip * @see https://tailwindcss.com/docs/background-clip */ "bg-clip": [{ "bg-clip": ["border", "padding", "content", "text"] }], /** * Background Opacity * @deprecated since Tailwind CSS v3.0.0 * @see https://tailwindcss.com/docs/background-opacity */ "bg-opacity": [{ "bg-opacity": [x] }], /** * Background Origin * @see https://tailwindcss.com/docs/background-origin */ "bg-origin": [{ "bg-origin": ["border", "padding", "content"] }], /** * Background Position * @see https://tailwindcss.com/docs/background-position */ "bg-position": [{ bg: [...F(), kH] }], /** * Background Repeat * @see https://tailwindcss.com/docs/background-repeat */ "bg-repeat": [{ bg: ["no-repeat", { repeat: ["", "x", "y", "round", "space"] }] }], /** * Background Size * @see https://tailwindcss.com/docs/background-size */ "bg-size": [{ bg: ["auto", "cover", "contain", EH] }], /** * Background Image * @see https://tailwindcss.com/docs/background-image */ "bg-image": [{ bg: ["none", { "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"] }, NH] }], /** * Background Color * @see https://tailwindcss.com/docs/background-color */ "bg-color": [{ bg: [e] }], /** * Gradient Color Stops From Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-from-pos": [{ from: [y] }], /** * Gradient Color Stops Via Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-via-pos": [{ via: [y] }], /** * Gradient Color Stops To Position * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-to-pos": [{ to: [y] }], /** * Gradient Color Stops From * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-from": [{ from: [m] }], /** * Gradient Color Stops Via * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-via": [{ via: [m] }], /** * Gradient Color Stops To * @see https://tailwindcss.com/docs/gradient-color-stops */ "gradient-to": [{ to: [m] }], // Borders /** * Border Radius * @see https://tailwindcss.com/docs/border-radius */ rounded: [{ rounded: [o] }], /** * Border Radius Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-s": [{ "rounded-s": [o] }], /** * Border Radius End * @see https://tailwindcss.com/docs/border-radius */ "rounded-e": [{ "rounded-e": [o] }], /** * Border Radius Top * @see https://tailwindcss.com/docs/border-radius */ "rounded-t": [{ "rounded-t": [o] }], /** * Border Radius Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-r": [{ "rounded-r": [o] }], /** * Border Radius Bottom * @see https://tailwindcss.com/docs/border-radius */ "rounded-b": [{ "rounded-b": [o] }], /** * Border Radius Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-l": [{ "rounded-l": [o] }], /** * Border Radius Start Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-ss": [{ "rounded-ss": [o] }], /** * Border Radius Start End * @see https://tailwindcss.com/docs/border-radius */ "rounded-se": [{ "rounded-se": [o] }], /** * Border Radius End End * @see https://tailwindcss.com/docs/border-radius */ "rounded-ee": [{ "rounded-ee": [o] }], /** * Border Radius End Start * @see https://tailwindcss.com/docs/border-radius */ "rounded-es": [{ "rounded-es": [o] }], /** * Border Radius Top Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-tl": [{ "rounded-tl": [o] }], /** * Border Radius Top Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-tr": [{ "rounded-tr": [o] }], /** * Border Radius Bottom Right * @see https://tailwindcss.com/docs/border-radius */ "rounded-br": [{ "rounded-br": [o] }], /** * Border Radius Bottom Left * @see https://tailwindcss.com/docs/border-radius */ "rounded-bl": [{ "rounded-bl": [o] }], /** * Border Width * @see https://tailwindcss.com/docs/border-width */ "border-w": [{ border: [s] }], /** * Border Width X * @see https://tailwindcss.com/docs/border-width */ "border-w-x": [{ "border-x": [s] }], /** * Border Width Y * @see https://tailwindcss.com/docs/border-width */ "border-w-y": [{ "border-y": [s] }], /** * Border Width Start * @see https://tailwindcss.com/docs/border-width */ "border-w-s": [{ "border-s": [s] }], /** * Border Width End * @see https://tailwindcss.com/docs/border-width */ "border-w-e": [{ "border-e": [s] }], /** * Border Width Top * @see https://tailwindcss.com/docs/border-width */ "border-w-t": [{ "border-t": [s] }], /** * Border Width Right * @see https://tailwindcss.com/docs/border-width */ "border-w-r": [{ "border-r": [s] }], /** * Border Width Bottom * @see https://tailwindcss.com/docs/border-width */ "border-w-b": [{ "border-b": [s] }], /** * Border Width Left * @see https://tailwindcss.com/docs/border-width */ "border-w-l": [{ "border-l": [s] }], /** * Border Opacity * @see https://tailwindcss.com/docs/border-opacity */ "border-opacity": [{ "border-opacity": [x] }], /** * Border Style * @see https://tailwindcss.com/docs/border-style */ "border-style": [{ border: [...W(), "hidden"] }], /** * Divide Width X * @see https://tailwindcss.com/docs/divide-width */ "divide-x": [{ "divide-x": [s] }], /** * Divide Width X Reverse * @see https://tailwindcss.com/docs/divide-width */ "divide-x-reverse": ["divide-x-reverse"], /** * Divide Width Y * @see https://tailwindcss.com/docs/divide-width */ "divide-y": [{ "divide-y": [s] }], /** * Divide Width Y Reverse * @see https://tailwindcss.com/docs/divide-width */ "divide-y-reverse": ["divide-y-reverse"], /** * Divide Opacity * @see https://tailwindcss.com/docs/divide-opacity */ "divide-opacity": [{ "divide-opacity": [x] }], /** * Divide Style * @see https://tailwindcss.com/docs/divide-style */ "divide-style": [{ divide: W() }], /** * Border Color * @see https://tailwindcss.com/docs/border-color */ "border-color": [{ border: [i] }], /** * Border Color X * @see https://tailwindcss.com/docs/border-color */ "border-color-x": [{ "border-x": [i] }], /** * Border Color Y * @see https://tailwindcss.com/docs/border-color */ "border-color-y": [{ "border-y": [i] }], /** * Border Color S * @see https://tailwindcss.com/docs/border-color */ "border-color-s": [{ "border-s": [i] }], /** * Border Color E * @see https://tailwindcss.com/docs/border-color */ "border-color-e": [{ "border-e": [i] }], /** * Border Color Top * @see https://tailwindcss.com/docs/border-color */ "border-color-t": [{ "border-t": [i] }], /** * Border Color Right * @see https://tailwindcss.com/docs/border-color */ "border-color-r": [{ "border-r": [i] }], /** * Border Color Bottom * @see https://tailwindcss.com/docs/border-color */ "border-color-b": [{ "border-b": [i] }], /** * Border Color Left * @see https://tailwindcss.com/docs/border-color */ "border-color-l": [{ "border-l": [i] }], /** * Divide Color * @see https://tailwindcss.com/docs/divide-color */ "divide-color": [{ divide: [i] }], /** * Outline Style * @see https://tailwindcss.com/docs/outline-style */ "outline-style": [{ outline: ["", ...W()] }], /** * Outline Offset * @see https://tailwindcss.com/docs/outline-offset */ "outline-offset": [{ "outline-offset": [bo, Je] }], /** * Outline Width * @see https://tailwindcss.com/docs/outline-width */ "outline-w": [{ outline: [bo, pa] }], /** * Outline Color * @see https://tailwindcss.com/docs/outline-color */ "outline-color": [{ outline: [e] }], /** * Ring Width * @see https://tailwindcss.com/docs/ring-width */ "ring-w": [{ ring: D() }], /** * Ring Width Inset * @see https://tailwindcss.com/docs/ring-width */ "ring-w-inset": ["ring-inset"], /** * Ring Color * @see https://tailwindcss.com/docs/ring-color */ "ring-color": [{ ring: [e] }], /** * Ring Opacity * @see https://tailwindcss.com/docs/ring-opacity */ "ring-opacity": [{ "ring-opacity": [x] }], /** * Ring Offset Width * @see https://tailwindcss.com/docs/ring-offset-width */ "ring-offset-w": [{ "ring-offset": [bo, pa] }], /** * Ring Offset Color * @see https://tailwindcss.com/docs/ring-offset-color */ "ring-offset-color": [{ "ring-offset": [e] }], // Effects /** * Box Shadow * @see https://tailwindcss.com/docs/box-shadow */ shadow: [{ shadow: ["", "inner", "none", ma, $H] }], /** * Box Shadow Color * @see https://tailwindcss.com/docs/box-shadow-color */ "shadow-color": [{ shadow: [xu] }], /** * Opacity * @see https://tailwindcss.com/docs/opacity */ opacity: [{ opacity: [x] }], /** * Mix Blend Mode * @see https://tailwindcss.com/docs/mix-blend-mode */ "mix-blend": [{ "mix-blend": [...z(), "plus-lighter", "plus-darker"] }], /** * Background Blend Mode * @see https://tailwindcss.com/docs/background-blend-mode */ "bg-blend": [{ "bg-blend": z() }], // Filters /** * Filter * @deprecated since Tailwind CSS v3.0.0 * @see https://tailwindcss.com/docs/filter */ filter: [{ filter: ["", "none"] }], /** * Blur * @see https://tailwindcss.com/docs/blur */ blur: [{ blur: [n] }], /** * Brightness * @see https://tailwindcss.com/docs/brightness */ brightness: [{ brightness: [r] }], /** * Contrast * @see https://tailwindcss.com/docs/contrast */ contrast: [{ contrast: [l] }], /** * Drop Shadow * @see https://tailwindcss.com/docs/drop-shadow */ "drop-shadow": [{ "drop-shadow": ["", "none", ma, Je] }], /** * Grayscale * @see https://tailwindcss.com/docs/grayscale */ grayscale: [{ grayscale: [c] }], /** * Hue Rotate * @see https://tailwindcss.com/docs/hue-rotate */ "hue-rotate": [{ "hue-rotate": [f] }], /** * Invert * @see https://tailwindcss.com/docs/invert */ invert: [{ invert: [d] }], /** * Saturate * @see https://tailwindcss.com/docs/saturate */ saturate: [{ saturate: [S] }], /** * Sepia * @see https://tailwindcss.com/docs/sepia */ sepia: [{ sepia: [_] }], /** * Backdrop Filter * @deprecated since Tailwind CSS v3.0.0 * @see https://tailwindcss.com/docs/backdrop-filter */ "backdrop-filter": [{ "backdrop-filter": ["", "none"] }], /** * Backdrop Blur * @see https://tailwindcss.com/docs/backdrop-blur */ "backdrop-blur": [{ "backdrop-blur": [n] }], /** * Backdrop Brightness * @see https://tailwindcss.com/docs/backdrop-brightness */ "backdrop-brightness": [{ "backdrop-brightness": [r] }], /** * Backdrop Contrast * @see https://tailwindcss.com/docs/backdrop-contrast */ "backdrop-contrast": [{ "backdrop-contrast": [l] }], /** * Backdrop Grayscale * @see https://tailwindcss.com/docs/backdrop-grayscale */ "backdrop-grayscale": [{ "backdrop-grayscale": [c] }], /** * Backdrop Hue Rotate * @see https://tailwindcss.com/docs/backdrop-hue-rotate */ "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [f] }], /** * Backdrop Invert * @see https://tailwindcss.com/docs/backdrop-invert */ "backdrop-invert": [{ "backdrop-invert": [d] }], /** * Backdrop Opacity * @see https://tailwindcss.com/docs/backdrop-opacity */ "backdrop-opacity": [{ "backdrop-opacity": [x] }], /** * Backdrop Saturate * @see https://tailwindcss.com/docs/backdrop-saturate */ "backdrop-saturate": [{ "backdrop-saturate": [S] }], /** * Backdrop Sepia * @see https://tailwindcss.com/docs/backdrop-sepia */ "backdrop-sepia": [{ "backdrop-sepia": [_] }], // Tables /** * Border Collapse * @see https://tailwindcss.com/docs/border-collapse */ "border-collapse": [{ border: ["collapse", "separate"] }], /** * Border Spacing * @see https://tailwindcss.com/docs/border-spacing */ "border-spacing": [{ "border-spacing": [a] }], /** * Border Spacing X * @see https://tailwindcss.com/docs/border-spacing */ "border-spacing-x": [{ "border-spacing-x": [a] }], /** * Border Spacing Y * @see https://tailwindcss.com/docs/border-spacing */ "border-spacing-y": [{ "border-spacing-y": [a] }], /** * Table Layout * @see https://tailwindcss.com/docs/table-layout */ "table-layout": [{ table: ["auto", "fixed"] }], /** * Caption Side * @see https://tailwindcss.com/docs/caption-side */ caption: [{ caption: ["top", "bottom"] }], // Transitions and Animation /** * Tranisition Property * @see https://tailwindcss.com/docs/transition-property */ transition: [{ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", Je] }], /** * Transition Duration * @see https://tailwindcss.com/docs/transition-duration */ duration: [{ duration: Y() }], /** * Transition Timing Function * @see https://tailwindcss.com/docs/transition-timing-function */ ease: [{ ease: ["linear", "in", "out", "in-out", Je] }], /** * Transition Delay * @see https://tailwindcss.com/docs/transition-delay */ delay: [{ delay: Y() }], /** * Animation * @see https://tailwindcss.com/docs/animation */ animate: [{ animate: ["none", "spin", "ping", "pulse", "bounce", Je] }], // Transforms /** * Transform * @see https://tailwindcss.com/docs/transform */ transform: [{ transform: ["", "gpu", "none"] }], /** * Scale * @see https://tailwindcss.com/docs/scale */ scale: [{ scale: [A] }], /** * Scale X * @see https://tailwindcss.com/docs/scale */ "scale-x": [{ "scale-x": [A] }], /** * Scale Y * @see https://tailwindcss.com/docs/scale */ "scale-y": [{ "scale-y": [A] }], /** * Rotate * @see https://tailwindcss.com/docs/rotate */ rotate: [{ rotate: [bu, Je] }], /** * Translate X * @see https://tailwindcss.com/docs/translate */ "translate-x": [{ "translate-x": [C] }], /** * Translate Y * @see https://tailwindcss.com/docs/translate */ "translate-y": [{ "translate-y": [C] }], /** * Skew X * @see https://tailwindcss.com/docs/skew */ "skew-x": [{ "skew-x": [O] }], /** * Skew Y * @see https://tailwindcss.com/docs/skew */ "skew-y": [{ "skew-y": [O] }], /** * Transform Origin * @see https://tailwindcss.com/docs/transform-origin */ "transform-origin": [{ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", Je] }], // Interactivity /** * Accent Color * @see https://tailwindcss.com/docs/accent-color */ accent: [{ accent: ["auto", e] }], /** * Appearance * @see https://tailwindcss.com/docs/appearance */ appearance: [{ appearance: ["none", "auto"] }], /** * Cursor * @see https://tailwindcss.com/docs/cursor */ cursor: [{ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", Je] }], /** * Caret Color * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities */ "caret-color": [{ caret: [e] }], /** * Pointer Events * @see https://tailwindcss.com/docs/pointer-events */ "pointer-events": [{ "pointer-events": ["none", "auto"] }], /** * Resize * @see https://tailwindcss.com/docs/resize */ resize: [{ resize: ["none", "y", "x", ""] }], /** * Scroll Behavior * @see https://tailwindcss.com/docs/scroll-behavior */ "scroll-behavior": [{ scroll: ["auto", "smooth"] }], /** * Scroll Margin * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-m": [{ "scroll-m": N() }], /** * Scroll Margin X * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-mx": [{ "scroll-mx": N() }], /** * Scroll Margin Y * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-my": [{ "scroll-my": N() }], /** * Scroll Margin Start * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-ms": [{ "scroll-ms": N() }], /** * Scroll Margin End * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-me": [{ "scroll-me": N() }], /** * Scroll Margin Top * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-mt": [{ "scroll-mt": N() }], /** * Scroll Margin Right * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-mr": [{ "scroll-mr": N() }], /** * Scroll Margin Bottom * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-mb": [{ "scroll-mb": N() }], /** * Scroll Margin Left * @see https://tailwindcss.com/docs/scroll-margin */ "scroll-ml": [{ "scroll-ml": N() }], /** * Scroll Padding * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-p": [{ "scroll-p": N() }], /** * Scroll Padding X * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-px": [{ "scroll-px": N() }], /** * Scroll Padding Y * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-py": [{ "scroll-py": N() }], /** * Scroll Padding Start * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-ps": [{ "scroll-ps": N() }], /** * Scroll Padding End * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-pe": [{ "scroll-pe": N() }], /** * Scroll Padding Top * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-pt": [{ "scroll-pt": N() }], /** * Scroll Padding Right * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-pr": [{ "scroll-pr": N() }], /** * Scroll Padding Bottom * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-pb": [{ "scroll-pb": N() }], /** * Scroll Padding Left * @see https://tailwindcss.com/docs/scroll-padding */ "scroll-pl": [{ "scroll-pl": N() }], /** * Scroll Snap Align * @see https://tailwindcss.com/docs/scroll-snap-align */ "snap-align": [{ snap: ["start", "end", "center", "align-none"] }], /** * Scroll Snap Stop * @see https://tailwindcss.com/docs/scroll-snap-stop */ "snap-stop": [{ snap: ["normal", "always"] }], /** * Scroll Snap Type * @see https://tailwindcss.com/docs/scroll-snap-type */ "snap-type": [{ snap: ["none", "x", "y", "both"] }], /** * Scroll Snap Type Strictness * @see https://tailwindcss.com/docs/scroll-snap-type */ "snap-strictness": [{ snap: ["mandatory", "proximity"] }], /** * Touch Action * @see https://tailwindcss.com/docs/touch-action */ touch: [{ touch: ["auto", "none", "manipulation"] }], /** * Touch Action X * @see https://tailwindcss.com/docs/touch-action */ "touch-x": [{ "touch-pan": ["x", "left", "right"] }], /** * Touch Action Y * @see https://tailwindcss.com/docs/touch-action */ "touch-y": [{ "touch-pan": ["y", "up", "down"] }], /** * Touch Action Pinch Zoom * @see https://tailwindcss.com/docs/touch-action */ "touch-pz": ["touch-pinch-zoom"], /** * User Select * @see https://tailwindcss.com/docs/user-select */ select: [{ select: ["none", "text", "all", "auto"] }], /** * Will Change * @see https://tailwindcss.com/docs/will-change */ "will-change": [{ "will-change": ["auto", "scroll", "contents", "transform", Je] }], // SVG /** * Fill * @see https://tailwindcss.com/docs/fill */ fill: [{ fill: [e, "none"] }], /** * Stroke Width * @see https://tailwindcss.com/docs/stroke-width */ "stroke-w": [{ stroke: [bo, pa, Vv] }], /** * Stroke * @see https://tailwindcss.com/docs/stroke */ stroke: [{ stroke: [e, "none"] }], // Accessibility /** * Screen Readers * @see https://tailwindcss.com/docs/screen-readers */ sr: ["sr-only", "not-sr-only"], /** * Forced Color Adjust * @see https://tailwindcss.com/docs/forced-color-adjust */ "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }] }, conflictingClassGroups: { overflow: ["overflow-x", "overflow-y"], overscroll: ["overscroll-x", "overscroll-y"], inset: ["inset-x", "inset-y", "start", "end", "top", "right", "bottom", "left"], "inset-x": ["right", "left"], "inset-y": ["top", "bottom"], flex: ["basis", "grow", "shrink"], gap: ["gap-x", "gap-y"], p: ["px", "py", "ps", "pe", "pt", "pr", "pb", "pl"], px: ["pr", "pl"], py: ["pt", "pb"], m: ["mx", "my", "ms", "me", "mt", "mr", "mb", "ml"], mx: ["mr", "ml"], my: ["mt", "mb"], size: ["w", "h"], "font-size": ["leading"], "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"], "fvn-ordinal": ["fvn-normal"], "fvn-slashed-zero": ["fvn-normal"], "fvn-figure": ["fvn-normal"], "fvn-spacing": ["fvn-normal"], "fvn-fraction": ["fvn-normal"], "line-clamp": ["display", "overflow"], rounded: ["rounded-s", "rounded-e", "rounded-t", "rounded-r", "rounded-b", "rounded-l", "rounded-ss", "rounded-se", "rounded-ee", "rounded-es", "rounded-tl", "rounded-tr", "rounded-br", "rounded-bl"], "rounded-s": ["rounded-ss", "rounded-es"], "rounded-e": ["rounded-se", "rounded-ee"], "rounded-t": ["rounded-tl", "rounded-tr"], "rounded-r": ["rounded-tr", "rounded-br"], "rounded-b": ["rounded-br", "rounded-bl"], "rounded-l": ["rounded-tl", "rounded-bl"], "border-spacing": ["border-spacing-x", "border-spacing-y"], "border-w": ["border-w-s", "border-w-e", "border-w-t", "border-w-r", "border-w-b", "border-w-l"], "border-w-x": ["border-w-r", "border-w-l"], "border-w-y": ["border-w-t", "border-w-b"], "border-color": ["border-color-s", "border-color-e", "border-color-t", "border-color-r", "border-color-b", "border-color-l"], "border-color-x": ["border-color-r", "border-color-l"], "border-color-y": ["border-color-t", "border-color-b"], "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"], "scroll-mx": ["scroll-mr", "scroll-ml"], "scroll-my": ["scroll-mt", "scroll-mb"], "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"], "scroll-px": ["scroll-pr", "scroll-pl"], "scroll-py": ["scroll-pt", "scroll-pb"], touch: ["touch-x", "touch-y", "touch-pz"], "touch-x": ["touch"], "touch-y": ["touch"], "touch-pz": ["touch"] }, conflictingClassGroupModifiers: { "font-size": ["leading"] } }; }, LH = /* @__PURE__ */ bH(jH); function Z$(e) { var t, n, r = ""; if (typeof e == "string" || typeof e == "number") r += e; else if (typeof e == "object") if (Array.isArray(e)) { var i = e.length; for (t = 0; t < i; t++) e[t] && (n = Z$(e[t])) && (r && (r += " "), r += n); } else for (n in e) e[n] && (r && (r += " "), r += n); return r; } function Xe() { for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Z$(e)) && (r && (r += " "), r += t); return r; } const K = (...e) => LH(Xe(...e)), cf = (...e) => (...t) => e.forEach((n) => n == null ? void 0 : n(...t)), Jm = (e) => { const t = { 0: "gap-0", xxs: "gap-1", xs: "gap-2", sm: "gap-3", md: "gap-4", lg: "gap-5", xl: "gap-6", "2xl": "gap-8" }; return t[e] || t.md; }, BH = { 1: "grid-cols-1", 2: "grid-cols-2", 3: "grid-cols-3", 4: "grid-cols-4", 5: "grid-cols-5", 6: "grid-cols-6", 7: "grid-cols-7", 8: "grid-cols-8", 9: "grid-cols-9", 10: "grid-cols-10", 11: "grid-cols-11", 12: "grid-cols-12" }, FH = () => { var i, o; const e = ((o = (i = window.navigator) == null ? void 0 : i.userAgentData) == null ? void 0 : o.platform) || window.navigator.platform, t = [ "macOS", "Macintosh", "MacIntel", "MacPPC", "Mac68K" ], n = ["Win32", "Win64", "Windows", "WinCE"]; let r = "null"; return t.includes(e) ? r = "Mac OS" : n.includes(e) && (r = "Windows"), r; }, WH = (e) => e < 1024 ? `${e} bytes` : e < 1024 * 1024 ? `${(e / 1024).toFixed(2)} KB` : e < 1024 * 1024 * 1024 ? `${(e / (1024 * 1024)).toFixed(2)} MB` : `${(e / (1024 * 1024 * 1024)).toFixed(2)} GB`, ju = { set: (e, t) => { if (!(typeof window > "u")) try { localStorage.setItem(e, JSON.stringify(t)); } catch (n) { console.error(n); } }, get: (e) => { if (typeof window > "u") return null; try { const t = localStorage.getItem(e); return t ? JSON.parse(t) : null; } catch (t) { return console.error(t), null; } }, remove: (e) => { if (!(typeof window > "u")) try { localStorage.removeItem(e); } catch (t) { console.error(t); } } }, Hn = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)( (e, t) => { const { variant: n = "primary", // primary, secondary, outline, ghost, link size: r = "md", // xs, sm, md, lg type: i = "button", tag: o = "button", className: a, children: s, disabled: l = !1, destructive: c = !1, // true, false icon: f = null, // icon component iconPosition: d = "left", // left, right, loading: p = !1, ...m } = e, y = "outline outline-1 border-none cursor-pointer transition-colors duration-300 ease-in-out text-xs font-semibold focus:ring-2 focus:ring-toggle-on focus:ring-offset-2 disabled:text-text-disabled", g = p ? "opacity-50 disabled:cursor-not-allowed" : "", v = { primary: "text-text-on-color bg-button-primary hover:bg-button-primary-hover outline-button-primary hover:outline-button-primary-hover disabled:bg-button-disabled disabled:outline-button-disabled", secondary: "text-text-on-color bg-button-secondary hover:bg-button-secondary-hover outline-button-secondary hover:outline-button-secondary-hover disabled:bg-button-disabled disabled:outline-button-disabled", outline: "text-button-tertiary-color outline-border-subtle bg-button-tertiary hover:bg-button-tertiary-hover hover:outline-border-subtle disabled:bg-button-tertiary disabled:outline-border-disabled", ghost: "text-text-primary bg-transparent outline-transparent hover:bg-button-tertiary-hover", link: "outline-none text-link-primary bg-transparent hover:text-link-primary-hover hover:underline p-0 border-0 leading-none" }[n], x = c && !l ? { primary: "bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover", secondary: "bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover", outline: "text-button-danger outline outline-1 outline-button-danger hover:outline-button-danger bg-button-tertiary hover:bg-field-background-error", ghost: "text-button-danger hover:bg-field-background-error", link: "text-button-danger hover:text-button-danger-secondary" }[n] : "", w = { xs: "p-1 rounded [&>svg]:size-4", sm: "p-2 rounded [&>svg]:size-4 gap-0.5", md: "p-2.5 rounded-md text-sm [&>svg]:size-5 gap-1", lg: "p-3 rounded-lg text-base [&>svg]:size-6 gap-1" }[r]; let S, A = null, _ = ""; return f && (_ = "flex items-center justify-center", d === "left" ? S = f : A = f), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( o, { ref: t, type: i, className: K( _, y, w, v, x, g, { "cursor-default": l }, a ), disabled: l, ...m, children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, { children: S }, "left-icon"), s ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "px-1", children: s }) : null, /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, { children: A }, "right-icon") ] } ); } ); Hn.displayName = "Button"; const zH = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"; let io = (e = 21) => { let t = "", n = crypto.getRandomValues(new Uint8Array(e)); for (; e--; ) t += zH[n[e] & 63]; return t; }; const to = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)( ({ children: e = null, tag: t = "label", size: n = "sm", // xs, sm, md className: r = "", variant: i = "neutral", // neutral, help, error, disabled required: o = !1, ...a }, s) => { const l = "font-medium text-field-label flex items-center gap-0.5", c = { xs: "text-xs [&>*]:text-xs [&>svg]:h-3 [&>svg]:w-3", sm: "text-sm [&>*]:text-sm [&>svg]:h-4 [&>svg]:w-4", md: "text-base [&>*]:text-base [&>svg]:h-5 [&>svg]:w-5" }, f = { neutral: "text-field-label [&>*]:text-field-label", help: "text-field-helper [&>*]:text-field-helper", error: "text-support-error [&>*]:text-support-error", disabled: "text-field-color-disabled disabled cursor-not-allowed [&>*]:text-field-color-disabled" }, d = { neutral: "", help: "font-normal", error: "font-normal", disabled: "" }; if (!e) return null; let p = ""; return o && (p = "after:content-['*'] after:text-field-required after:ml-0.5"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( t, { ref: s, className: K( l, c[n], f[i], p, d == null ? void 0 : d[i], r ), ...a, children: e } ); } ); to.displayName = "Label"; const VH = ({ label: e, switchId: t, disabled: n = !1, children: r, size: i }) => { const o = { sm: "text-sm leading-5 font-medium", md: "text-base leading-6 font-medium" }, a = { sm: "text-sm leading-5 font-normal", md: "text-sm leading-5 font-normal" }, s = { sm: "space-y-0.5", md: "space-y-1" }; if ((0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(e)) return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K("inline-flex items-center gap-3", "items-start"), children: [ r, e ] } ); const c = () => { const { heading: p = "", description: m = "" } = e || {}; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: K("space-y-0.5", s[i]), children: [ p && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( to, { htmlFor: t, className: K("m-0", o[i]), ...n && { variant: "disabled" }, children: p } ), m && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( to, { tag: "p", variant: "help", className: K( "text-sm font-normal leading-5 m-0", a[i] ), ...n && { variant: "disabled" }, children: m } ) ] }); }, f = !(e != null && e.heading) && !(e != null && e.description), d = !(e != null && e.heading) || !(e != null && e.description) ? "items-center" : "items-start"; return f ? r : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: K("inline-flex", d, "gap-3"), children: [ r, c() ] }); }, UH = ({ id: e, onChange: t, value: n, defaultValue: r = !1, size: i = "sm", disabled: o = !1, label: a = { heading: "", description: "" }, name: s, className: l, ...c }, f) => { const d = i === "lg" ? "md" : i, p = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => typeof n < "u", [n]), m = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => e || `switch-${io()}`, []), [y, g] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(r), v = "primary", x = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)( () => p ? n : y, [p, n, y] ), w = (C) => { if (o) return; const k = C.target.checked; p || g(k), typeof t == "function" && t(k); }, S = { primary: { input: "bg-toggle-off checked:bg-toggle-on focus:ring focus:ring-toggle-on focus:ring-offset-2 border border-solid border-toggle-off-border checked:border-toggle-on-border shadow-toggleContainer focus:outline-none checked:focus:border-toggle-on-border focus:border-toggle-off-border", toggleDial: "bg-toggle-dial-background shadow-toggleDial" } }, A = { primary: { input: "group-hover/switch:bg-toggle-off-hover checked:group-hover/switch:bg-toggle-on-hover checked:group-hover/switch:border-toggle-on-border" } }, _ = { md: { container: "w-11 h-6", toggleDial: "size-4 peer-checked:translate-x-5" }, sm: { container: "w-10 h-5", toggleDial: "size-3 peer-checked:translate-x-5" } }, O = { md: "group-hover/switch:size-5 group-focus-within/switch:size-5 group-focus-within/switch:left-0.5 group-hover/switch:left-0.5", sm: "group-hover/switch:size-4 group-focus-within/switch:size-4 group-focus-within/switch:left-0.5 group-hover/switch:left-0.5" }, P = { input: "bg-toggle-off-disabled disabled:border-transparent shadow-none disabled:cursor-not-allowed checked:disabled:bg-toggle-on-disabled", toggleDial: "peer-disabled:cursor-not-allowed" }; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( VH, { label: a, switchId: m, disabled: o, size: d, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K( "relative group/switch inline-block cursor-pointer rounded-full shrink-0", _[d].container, l ), children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "input", { ref: f, id: m, type: "checkbox", className: K( "peer appearance-none absolute rounded-full cursor-pointer transition-colors duration-300 h-full w-full before:content-[''] checked:before:content-[''] m-0 checked:[background-image:none]", S[v].input, o && P.input, !o && A[v].input ), checked: x(), onChange: w, disabled: o, name: s, ...c } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "label", { htmlFor: m, className: K( "peer/toggle-dial bg-white border rounded-full absolute cursor-pointer shadow-md before:content[''] before:transition-opacity before:opacity-0 hover:before:opacity-10 before:hidden border-none transition-all duration-300 top-2/4 left-1 -translate-y-2/4 before:w-10 before:h-10 before:rounded-full before:absolute before:top-2/4 before:left-2/4 before:-translate-y-2/4 before:-translate-x-2/4", _[d].toggleDial, S[v].toggleDial, o && P.toggleDial, !o && O[d] ) } ) ] } ) } ); }, J$ = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(UH); J$.displayName = "Switch"; /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const HH = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Q$ = (...e) => e.filter((t, n, r) => !!t && r.indexOf(t) === n).join(" "); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ var KH = { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }; /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const GH = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)( ({ color: e = "currentColor", size: t = 24, strokeWidth: n = 2, absoluteStrokeWidth: r, className: i = "", children: o, iconNode: a, ...s }, l) => (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)( "svg", { ref: l, ...KH, width: t, height: t, stroke: e, strokeWidth: r ? Number(n) * 24 / Number(t) : n, className: Q$("lucide", i), ...s }, [ ...a.map(([c, f]) => (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)(c, f)), ...Array.isArray(o) ? o : [o] ] ) ); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const on = (e, t) => { const n = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)( ({ className: r, ...i }, o) => (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)(GH, { ref: o, iconNode: t, className: Q$(`lucide-${HH(e)}`, r), ...i }) ); return n.displayName = `${e}`, n; }; /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const sd = on("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Xw = on("ChevronDown", [ ["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }] ]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const eD = on("ChevronLeft", [ ["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }] ]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Zw = on("ChevronRight", [ ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }] ]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const YH = on("ChevronsUpDown", [ ["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }], ["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }] ]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const qH = on("CloudUpload", [ ["path", { d: "M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242", key: "1pljnt" }], ["path", { d: "M12 12v9", key: "192myk" }], ["path", { d: "m16 16-4-4-4 4", key: "119tzi" }] ]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const XH = on("Ellipsis", [ ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }], ["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }], ["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }] ]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const ZH = on("File", [ ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }], ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }] ]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const JH = on("ImageOff", [ ["line", { x1: "2", x2: "22", y1: "2", y2: "22", key: "a6p6uj" }], ["path", { d: "M10.41 10.41a2 2 0 1 1-2.83-2.83", key: "1bzlo9" }], ["line", { x1: "13.5", x2: "6", y1: "13.5", y2: "21", key: "1q0aeu" }], ["line", { x1: "18", x2: "21", y1: "12", y2: "15", key: "5mozeu" }], [ "path", { d: "M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59", key: "mmje98" } ], ["path", { d: "M21 15V5a2 2 0 0 0-2-2H9", key: "43el77" }] ]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const f0 = on("Info", [ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }], ["path", { d: "M12 16v-4", key: "1dtifu" }], ["path", { d: "M12 8h.01", key: "e9boi3" }] ]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const QH = on("LoaderCircle", [ ["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }] ]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const tD = on("Minus", [["path", { d: "M5 12h14", key: "1ays0h" }]]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const eK = on("PanelLeftClose", [ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }], ["path", { d: "M9 3v18", key: "fh3hqa" }], ["path", { d: "m16 15-3-3 3-3", key: "14y99z" }] ]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const tK = on("PanelLeftOpen", [ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }], ["path", { d: "M9 3v18", key: "fh3hqa" }], ["path", { d: "m14 9 3 3-3 3", key: "8010ee" }] ]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const nD = on("Plus", [ ["path", { d: "M5 12h14", key: "1ays0h" }], ["path", { d: "M12 5v14", key: "s699le" }] ]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const rD = on("Search", [ ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }], ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }] ]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const nK = on("Trash2", [ ["path", { d: "M3 6h18", key: "d0wm0j" }], ["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }], ["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }], ["line", { x1: "10", x2: "10", y1: "11", y2: "17", key: "1uufr5" }], ["line", { x1: "14", x2: "14", y1: "11", y2: "17", key: "xtxkd" }] ]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const rK = on("Trash", [ ["path", { d: "M3 6h18", key: "d0wm0j" }], ["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }], ["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }] ]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const iK = on("TriangleAlert", [ [ "path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3", key: "wmoenq" } ], ["path", { d: "M12 9v4", key: "juzpu7" }], ["path", { d: "M12 17h.01", key: "p32p05" }] ]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const vT = on("Upload", [ ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }], ["polyline", { points: "17 8 12 3 7 8", key: "t8dd8p" }], ["line", { x1: "12", x2: "12", y1: "3", y2: "15", key: "widbto" }] ]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const oK = on("User", [ ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }], ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }] ]); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const $a = on("X", [ ["path", { d: "M18 6 6 18", key: "1bl5f8" }], ["path", { d: "m6 6 12 12", key: "d8bk6v" }] ]), aK = ({ id: e, label: t, defaultChecked: n = !1, checked: r, onChange: i, indeterminate: o, disabled: a, size: s = "md", className: l, ...c }, f) => { var O, P; const d = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => e || `checkbox-${io()}`, [e]), p = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)( () => typeof r < "u", [r] ), [m, y] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(n || !1), g = "primary", v = { sm: { checkbox: "size-4 rounded gap-1", icon: "size-3", text: "text-sm", // text class for sm description: "text-sm", gap: "gap-0.5" }, md: { checkbox: "size-5 rounded gap-1", icon: "size-4", text: "text-base", // text class for md description: "text-sm", gap: "gap-1" } }, x = { primary: { checkbox: "border-border-strong hover:border-border-interactive checked:border-border-interactive bg-white checked:bg-toggle-on checked:hover:bg-toggle-on-hover checked:hover:border-toggle-on-hover focus:ring-2 focus:ring-offset-2 focus:ring-focus", icon: "text-white" } }, w = { checkbox: "cursor-not-allowed disabled:bg-white checked:disabled:bg-white disabled:border-border-disabled checked:disabled:border-border-disabled", icon: "cursor-not-allowed peer-disabled:text-border-disabled" }, S = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)( () => p ? r : m, [p, r, m] ), A = (C) => { if (a) return; const k = C.target.checked; p || y(k), typeof i == "function" && i(k); }, _ = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(t) ? t : !(t != null && t.heading) && !(t != null && t.description) ? null : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: v[s].gap, children: [ (t == null ? void 0 : t.heading) && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( to, { className: K( "text-text-primary font-medium leading-4 m-0", v[s].text, v[s].gap, a && "text-text-disabled" ), htmlFor: d, children: t == null ? void 0 : t.heading } ), (t == null ? void 0 : t.description) && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( to, { tag: "p", className: K( "font-normal leading-5 m-0", v[s].description, a && "text-text-disabled" ), variant: "help", children: t == null ? void 0 : t.description } ) ] }), [t, s, a]); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K( "inline-flex items-center justify-center gap-2", !!t && "items-start", a && "cursor-not-allowed" ), children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "label", { className: K( "relative flex items-center justify-center rounded-full p-0.5", !a && "cursor-pointer" ), htmlFor: d, children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "input", { ref: f, id: d, type: "checkbox", className: K( "peer relative cursor-pointer appearance-none transition-all m-0 before:content-[''] checked:before:content-[''] checked:before:hidden before:hidden !border-1.5 border-solid", x[g].checkbox, v[s].checkbox, a && w.checkbox, l ), checked: S(), onChange: A, disabled: a, ...c } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "span", { className: K( "pointer-events-none inline-flex items-center absolute top-2/4 left-2/4 -translate-y-2/4 -translate-x-2/4 text-white opacity-0 transition-opacity peer-checked:opacity-100", x[g].icon, a && w.icon ), children: o ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(tD, { className: K((O = v[s]) == null ? void 0 : O.icon) }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(sd, { className: K((P = v[s]) == null ? void 0 : P.icon) }) } ) ] } ), !!t && _() ] } ); }, Jw = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(aK); Jw.displayName = "Checkbox"; const bT = { primary: { checkbox: "border-border-strong hover:border-border-interactive checked:border-border-interactive bg-white checked:bg-toggle-on checked:hover:bg-toggle-on-hover checked:hover:border-toggle-on-hover focus:ring-2 focus:ring-offset-2 focus:ring-focus", icon: "text-white" } }, xT = { checkbox: "disabled:bg-white checked:disabled:bg-white disabled:border-border-disabled checked:disabled:border-border-disabled cursor-not-allowed", icon: "peer-disabled:text-border-disabled cursor-not-allowed" }, sK = { sm: "text-sm leading-5", md: "text-base leading-6" }, Uv = { sm: { checkbox: "size-4", icon: "size-1.5", info: "size-4" }, md: { checkbox: "size-5", icon: "size-2", info: "size-5" } }, wT = { sm: { switch: "mt-1", radio: "mt-0.5" }, md: { switch: "mt-0.5", radio: "mt-px" } }, lK = { xs: "py-1 px-1 text-sm gap-0.5 [&>svg]:size-4", sm: "py-1 px-1.5 text-base gap-1 [&>svg]:size-4", md: "py-2 px-2.5 text-base gap-1 [&>svg]:size-5", lg: "py-2.5 px-3 text-base gap-1 [&>svg]:size-6" }, cK = "border-0 border-r border-border-subtle border-solid", uK = "bg-background-primary text-primary cursor-pointer flex items-center justify-center", fK = "hover:bg-button-tertiary-hover", dK = "focus:outline-none"; function Qm() { return typeof window < "u"; } function za(e) { return iD(e) ? (e.nodeName || "").toLowerCase() : "#document"; } function Or(e) { var t; return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window; } function oo(e) { var t; return (t = (iD(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement; } function iD(e) { return Qm() ? e instanceof Node || e instanceof Or(e).Node : !1; } function Ct(e) { return Qm() ? e instanceof Element || e instanceof Or(e).Element : !1; } function pn(e) { return Qm() ? e instanceof HTMLElement || e instanceof Or(e).HTMLElement : !1; } function d0(e) { return !Qm() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Or(e).ShadowRoot; } function ld(e) { const { overflow: t, overflowX: n, overflowY: r, display: i } = Hr(e); return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(i); } function hK(e) { return ["table", "td", "th"].includes(za(e)); } function eg(e) { return [":popover-open", ":modal"].some((t) => { try { return e.matches(t); } catch { return !1; } }); } function Qw(e) { const t = tg(), n = Ct(e) ? Hr(e) : e; return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r)); } function pK(e) { let t = Fo(e); for (; pn(t) && !Da(t); ) { if (Qw(t)) return t; if (eg(t)) return null; t = Fo(t); } return null; } function tg() { return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none"); } function Da(e) { return ["html", "body", "#document"].includes(za(e)); } function Hr(e) { return Or(e).getComputedStyle(e); } function ng(e) { return Ct(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.scrollX, scrollTop: e.scrollY }; } function Fo(e) { if (za(e) === "html") return e; const t = ( // Step into the shadow DOM of the parent of a slotted node. e.assignedSlot || // DOM Element detected. e.parentNode || // ShadowRoot detected. d0(e) && e.host || // Fallback. oo(e) ); return d0(t) ? t.host : t; } function oD(e) { const t = Fo(e); return Da(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : pn(t) && ld(t) ? t : oD(t); } function Ca(e, t, n) { var r; t === void 0 && (t = []), n === void 0 && (n = !0); const i = oD(e), o = i === ((r = e.ownerDocument) == null ? void 0 : r.body), a = Or(i); if (o) { const s = h0(a); return t.concat(a, a.visualViewport || [], ld(i) ? i : [], s && n ? Ca(s) : []); } return t.concat(i, Ca(i, [], n)); } function h0(e) { return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null; } function Pi(e) { let t = e.activeElement; for (; ((n = t) == null || (n = n.shadowRoot) == null ? void 0 : n.activeElement) != null; ) { var n; t = t.shadowRoot.activeElement; } return t; } function hn(e, t) { if (!e || !t) return !1; const n = t.getRootNode == null ? void 0 : t.getRootNode(); if (e.contains(t)) return !0; if (n && d0(n)) { let r = t; for (; r; ) { if (e === r) return !0; r = r.parentNode || r.host; } } return !1; } function aD() { const e = navigator.userAgentData; return e != null && e.platform ? e.platform : navigator.platform; } function sD() { const e = navigator.userAgentData; return e && Array.isArray(e.brands) ? e.brands.map((t) => { let { brand: n, version: r } = t; return n + "/" + r; }).join(" ") : navigator.userAgent; } function lD(e) { return e.mozInputSource === 0 && e.isTrusted ? !0 : p0() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType; } function e1(e) { return mK() ? !1 : !p0() && e.width === 0 && e.height === 0 || p0() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height. e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch"; } function t1() { return /apple/i.test(navigator.vendor); } function p0() { const e = /android/i; return e.test(aD()) || e.test(sD()); } function cD() { return aD().toLowerCase().startsWith("mac") && !navigator.maxTouchPoints; } function mK() { return sD().includes("jsdom/"); } function uf(e, t) { const n = ["mouse", "pen"]; return t || n.push("", void 0), n.includes(e); } function gK(e) { return "nativeEvent" in e; } function yK(e) { return e.matches("html,body"); } function Kn(e) { return (e == null ? void 0 : e.ownerDocument) || document; } function Hv(e, t) { if (t == null) return !1; if ("composedPath" in e) return e.composedPath().includes(t); const n = e; return n.target != null && t.contains(n.target); } function Ao(e) { return "composedPath" in e ? e.composedPath()[0] : e.target; } const vK = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])"; function n1(e) { return pn(e) && e.matches(vK); } function Un(e) { e.preventDefault(), e.stopPropagation(); } function m0(e) { return e ? e.getAttribute("role") === "combobox" && n1(e) : !1; } const Ia = Math.min, Br = Math.max, hp = Math.round, kl = Math.floor, Ki = (e) => ({ x: e, y: e }), bK = { left: "right", right: "left", bottom: "top", top: "bottom" }, xK = { start: "end", end: "start" }; function g0(e, t, n) { return Br(e, Ia(t, n)); } function $c(e, t) { return typeof e == "function" ? e(t) : e; } function Ra(e) { return e.split("-")[0]; } function Dc(e) { return e.split("-")[1]; } function uD(e) { return e === "x" ? "y" : "x"; } function r1(e) { return e === "y" ? "height" : "width"; } function Is(e) { return ["top", "bottom"].includes(Ra(e)) ? "y" : "x"; } function i1(e) { return uD(Is(e)); } function wK(e, t, n) { n === void 0 && (n = !1); const r = Dc(e), i = i1(e), o = r1(i); let a = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top"; return t.reference[o] > t.floating[o] && (a = pp(a)), [a, pp(a)]; } function _K(e) { const t = pp(e); return [y0(e), t, y0(t)]; } function y0(e) { return e.replace(/start|end/g, (t) => xK[t]); } function SK(e, t, n) { const r = ["left", "right"], i = ["right", "left"], o = ["top", "bottom"], a = ["bottom", "top"]; switch (e) { case "top": case "bottom": return n ? t ? i : r : t ? r : i; case "left": case "right": return t ? o : a; default: return []; } } function OK(e, t, n, r) { const i = Dc(e); let o = SK(Ra(e), n === "start", r); return i && (o = o.map((a) => a + "-" + i), t && (o = o.concat(o.map(y0)))), o; } function pp(e) { return e.replace(/left|right|bottom|top/g, (t) => bK[t]); } function AK(e) { return { top: 0, right: 0, bottom: 0, left: 0, ...e }; } function fD(e) { return typeof e != "number" ? AK(e) : { top: e, right: e, bottom: e, left: e }; } function mp(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 }; } /*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */ var TK = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], gp = /* @__PURE__ */ TK.join(","), dD = typeof Element > "u", Jl = dD ? function() { } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, yp = !dD && Element.prototype.getRootNode ? function(e) { var t; return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e); } : function(e) { return e == null ? void 0 : e.ownerDocument; }, vp = function e(t, n) { var r; n === void 0 && (n = !0); var i = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "inert"), o = i === "" || i === "true", a = o || n && t && e(t.parentNode); return a; }, PK = function(t) { var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable"); return r === "" || r === "true"; }, CK = function(t, n, r) { if (vp(t)) return []; var i = Array.prototype.slice.apply(t.querySelectorAll(gp)); return n && Jl.call(t, gp) && i.unshift(t), i = i.filter(r), i; }, EK = function e(t, n, r) { for (var i = [], o = Array.from(t); o.length; ) { var a = o.shift(); if (!vp(a, !1)) if (a.tagName === "SLOT") { var s = a.assignedElements(), l = s.length ? s : a.children, c = e(l, !0, r); r.flatten ? i.push.apply(i, c) : i.push({ scopeParent: a, candidates: c }); } else { var f = Jl.call(a, gp); f && r.filter(a) && (n || !t.includes(a)) && i.push(a); var d = a.shadowRoot || // check for an undisclosed shadow typeof r.getShadowRoot == "function" && r.getShadowRoot(a), p = !vp(d, !1) && (!r.shadowRootFilter || r.shadowRootFilter(a)); if (d && p) { var m = e(d === !0 ? a.children : d.children, !0, r); r.flatten ? i.push.apply(i, m) : i.push({ scopeParent: a, candidates: m }); } else o.unshift.apply(o, a.children); } } return i; }, hD = function(t) { return !isNaN(parseInt(t.getAttribute("tabindex"), 10)); }, pD = function(t) { if (!t) throw new Error("No node provided"); return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || PK(t)) && !hD(t) ? 0 : t.tabIndex; }, kK = function(t, n) { var r = pD(t); return r < 0 && n && !hD(t) ? 0 : r; }, MK = function(t, n) { return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex; }, mD = function(t) { return t.tagName === "INPUT"; }, NK = function(t) { return mD(t) && t.type === "hidden"; }, $K = function(t) { var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) { return r.tagName === "SUMMARY"; }); return n; }, DK = function(t, n) { for (var r = 0; r < t.length; r++) if (t[r].checked && t[r].form === n) return t[r]; }, IK = function(t) { if (!t.name) return !0; var n = t.form || yp(t), r = function(s) { return n.querySelectorAll('input[type="radio"][name="' + s + '"]'); }, i; if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function") i = r(window.CSS.escape(t.name)); else try { i = r(t.name); } catch (a) { return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", a.message), !1; } var o = DK(i, t.form); return !o || o === t; }, RK = function(t) { return mD(t) && t.type === "radio"; }, jK = function(t) { return RK(t) && !IK(t); }, LK = function(t) { var n, r = t && yp(t), i = (n = r) === null || n === void 0 ? void 0 : n.host, o = !1; if (r && r !== t) { var a, s, l; for (o = !!((a = i) !== null && a !== void 0 && (s = a.ownerDocument) !== null && s !== void 0 && s.contains(i) || t != null && (l = t.ownerDocument) !== null && l !== void 0 && l.contains(t)); !o && i; ) { var c, f, d; r = yp(i), i = (c = r) === null || c === void 0 ? void 0 : c.host, o = !!((f = i) !== null && f !== void 0 && (d = f.ownerDocument) !== null && d !== void 0 && d.contains(i)); } } return o; }, _T = function(t) { var n = t.getBoundingClientRect(), r = n.width, i = n.height; return r === 0 && i === 0; }, BK = function(t, n) { var r = n.displayCheck, i = n.getShadowRoot; if (getComputedStyle(t).visibility === "hidden") return !0; var o = Jl.call(t, "details>summary:first-of-type"), a = o ? t.parentElement : t; if (Jl.call(a, "details:not([open]) *")) return !0; if (!r || r === "full" || r === "legacy-full") { if (typeof i == "function") { for (var s = t; t; ) { var l = t.parentElement, c = yp(t); if (l && !l.shadowRoot && i(l) === !0) return _T(t); t.assignedSlot ? t = t.assignedSlot : !l && c !== t.ownerDocument ? t = c.host : t = l; } t = s; } if (LK(t)) return !t.getClientRects().length; if (r !== "legacy-full") return !0; } else if (r === "non-zero-area") return _T(t); return !1; }, FK = function(t) { if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName)) for (var n = t.parentElement; n; ) { if (n.tagName === "FIELDSET" && n.disabled) { for (var r = 0; r < n.children.length; r++) { var i = n.children.item(r); if (i.tagName === "LEGEND") return Jl.call(n, "fieldset[disabled] *") ? !0 : !i.contains(t); } return !0; } n = n.parentElement; } return !1; }, WK = function(t, n) { return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor // because we're limited in the type of selectors we can use in JSDom (see related // note related to `candidateSelectors`) vp(n) || NK(n) || BK(n, t) || // For a details element with a summary, the summary element gets the focus $K(n) || FK(n)); }, v0 = function(t, n) { return !(jK(n) || pD(n) < 0 || !WK(t, n)); }, zK = function(t) { var n = parseInt(t.getAttribute("tabindex"), 10); return !!(isNaN(n) || n >= 0); }, VK = function e(t) { var n = [], r = []; return t.forEach(function(i, o) { var a = !!i.scopeParent, s = a ? i.scopeParent : i, l = kK(s, a), c = a ? e(i.candidates) : s; l === 0 ? a ? n.push.apply(n, c) : n.push(s) : r.push({ documentOrder: o, tabIndex: l, item: i, isScope: a, content: c }); }), r.sort(MK).reduce(function(i, o) { return o.isScope ? i.push.apply(i, o.content) : i.push(o.content), i; }, []).concat(n); }, rg = function(t, n) { n = n || {}; var r; return n.getShadowRoot ? r = EK([t], n.includeContainer, { filter: v0.bind(null, n), flatten: !1, getShadowRoot: n.getShadowRoot, shadowRootFilter: zK }) : r = CK(t, n.includeContainer, v0.bind(null, n)), VK(r); }, UK = function(t, n) { if (n = n || {}, !t) throw new Error("No node provided"); return Jl.call(t, gp) === !1 ? !1 : v0(n, t); }; function ST(e, t, n) { let { reference: r, floating: i } = e; const o = Is(t), a = i1(t), s = r1(a), l = Ra(t), c = o === "y", f = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, p = r[s] / 2 - i[s] / 2; let m; switch (l) { case "top": m = { x: f, y: r.y - i.height }; break; case "bottom": m = { x: f, y: r.y + r.height }; break; case "right": m = { x: r.x + r.width, y: d }; break; case "left": m = { x: r.x - i.width, y: d }; break; default: m = { x: r.x, y: r.y }; } switch (Dc(t)) { case "start": m[a] -= p * (n && c ? -1 : 1); break; case "end": m[a] += p * (n && c ? -1 : 1); break; } return m; } const HK = async (e, t, n) => { const { placement: r = "bottom", strategy: i = "absolute", middleware: o = [], platform: a } = n, s = o.filter(Boolean), l = await (a.isRTL == null ? void 0 : a.isRTL(t)); let c = await a.getElementRects({ reference: e, floating: t, strategy: i }), { x: f, y: d } = ST(c, r, l), p = r, m = {}, y = 0; for (let g = 0; g < s.length; g++) { const { name: v, fn: x } = s[g], { x: w, y: S, data: A, reset: _ } = await x({ x: f, y: d, initialPlacement: r, placement: p, strategy: i, middlewareData: m, rects: c, platform: a, elements: { reference: e, floating: t } }); f = w ?? f, d = S ?? d, m = { ...m, [v]: { ...m[v], ...A } }, _ && y <= 50 && (y++, typeof _ == "object" && (_.placement && (p = _.placement), _.rects && (c = _.rects === !0 ? await a.getElementRects({ reference: e, floating: t, strategy: i }) : _.rects), { x: f, y: d } = ST(c, p, l)), g = -1); } return { x: f, y: d, placement: p, strategy: i, middlewareData: m }; }; async function o1(e, t) { var n; t === void 0 && (t = {}); const { x: r, y: i, platform: o, rects: a, elements: s, strategy: l } = e, { boundary: c = "clippingAncestors", rootBoundary: f = "viewport", elementContext: d = "floating", altBoundary: p = !1, padding: m = 0 } = $c(t, e), y = fD(m), v = s[p ? d === "floating" ? "reference" : "floating" : d], x = mp(await o.getClippingRect({ element: (n = await (o.isElement == null ? void 0 : o.isElement(v))) == null || n ? v : v.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)), boundary: c, rootBoundary: f, strategy: l })), w = d === "floating" ? { x: r, y: i, width: a.floating.width, height: a.floating.height } : a.reference, S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)), A = await (o.isElement == null ? void 0 : o.isElement(S)) ? await (o.getScale == null ? void 0 : o.getScale(S)) || { x: 1, y: 1 } : { x: 1, y: 1 }, _ = mp(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({ elements: s, rect: w, offsetParent: S, strategy: l }) : w); return { top: (x.top - _.top + y.top) / A.y, bottom: (_.bottom - x.bottom + y.bottom) / A.y, left: (x.left - _.left + y.left) / A.x, right: (_.right - x.right + y.right) / A.x }; } const KK = (e) => ({ name: "arrow", options: e, async fn(t) { const { x: n, y: r, placement: i, rects: o, platform: a, elements: s, middlewareData: l } = t, { element: c, padding: f = 0 } = $c(e, t) || {}; if (c == null) return {}; const d = fD(f), p = { x: n, y: r }, m = i1(i), y = r1(m), g = await a.getDimensions(c), v = m === "y", x = v ? "top" : "left", w = v ? "bottom" : "right", S = v ? "clientHeight" : "clientWidth", A = o.reference[y] + o.reference[m] - p[m] - o.floating[y], _ = p[m] - o.reference[m], O = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c)); let P = O ? O[S] : 0; (!P || !await (a.isElement == null ? void 0 : a.isElement(O))) && (P = s.floating[S] || o.floating[y]); const C = A / 2 - _ / 2, k = P / 2 - g[y] / 2 - 1, I = Ia(d[x], k), $ = Ia(d[w], k), N = I, D = P - g[y] - $, j = P / 2 - g[y] / 2 + C, F = g0(N, j, D), W = !l.arrow && Dc(i) != null && j !== F && o.reference[y] / 2 - (j < N ? I : $) - g[y] / 2 < 0, z = W ? j < N ? j - N : j - D : 0; return { [m]: p[m] + z, data: { [m]: F, centerOffset: j - F - z, ...W && { alignmentOffset: z } }, reset: W }; } }), GK = function(e) { return e === void 0 && (e = {}), { name: "flip", options: e, async fn(t) { var n, r; const { placement: i, middlewareData: o, rects: a, initialPlacement: s, platform: l, elements: c } = t, { mainAxis: f = !0, crossAxis: d = !0, fallbackPlacements: p, fallbackStrategy: m = "bestFit", fallbackAxisSideDirection: y = "none", flipAlignment: g = !0, ...v } = $c(e, t); if ((n = o.arrow) != null && n.alignmentOffset) return {}; const x = Ra(i), w = Is(s), S = Ra(s) === s, A = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), _ = p || (S || !g ? [pp(s)] : _K(s)), O = y !== "none"; !p && O && _.push(...OK(s, g, y, A)); const P = [s, ..._], C = await o1(t, v), k = []; let I = ((r = o.flip) == null ? void 0 : r.overflows) || []; if (f && k.push(C[x]), d) { const j = wK(i, a, A); k.push(C[j[0]], C[j[1]]); } if (I = [...I, { placement: i, overflows: k }], !k.every((j) => j <= 0)) { var $, N; const j = ((($ = o.flip) == null ? void 0 : $.index) || 0) + 1, F = P[j]; if (F) return { data: { index: j, overflows: I }, reset: { placement: F } }; let W = (N = I.filter((z) => z.overflows[0] <= 0).sort((z, H) => z.overflows[1] - H.overflows[1])[0]) == null ? void 0 : N.placement; if (!W) switch (m) { case "bestFit": { var D; const z = (D = I.filter((H) => { if (O) { const U = Is(H.placement); return U === w || // Create a bias to the `y` side axis due to horizontal // reading directions favoring greater width. U === "y"; } return !0; }).map((H) => [H.placement, H.overflows.filter((U) => U > 0).reduce((U, V) => U + V, 0)]).sort((H, U) => H[1] - U[1])[0]) == null ? void 0 : D[0]; z && (W = z); break; } case "initialPlacement": W = s; break; } if (i !== W) return { reset: { placement: W } }; } return {}; } }; }; async function YK(e, t) { const { placement: n, platform: r, elements: i } = e, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), a = Ra(n), s = Dc(n), l = Is(n) === "y", c = ["left", "top"].includes(a) ? -1 : 1, f = o && l ? -1 : 1, d = $c(t, e); let { mainAxis: p, crossAxis: m, alignmentAxis: y } = typeof d == "number" ? { mainAxis: d, crossAxis: 0, alignmentAxis: null } : { mainAxis: d.mainAxis || 0, crossAxis: d.crossAxis || 0, alignmentAxis: d.alignmentAxis }; return s && typeof y == "number" && (m = s === "end" ? y * -1 : y), l ? { x: m * f, y: p * c } : { x: p * c, y: m * f }; } const qK = function(e) { return e === void 0 && (e = 0), { name: "offset", options: e, async fn(t) { var n, r; const { x: i, y: o, placement: a, middlewareData: s } = t, l = await YK(t, e); return a === ((n = s.offset) == null ? void 0 : n.placement) && (r = s.arrow) != null && r.alignmentOffset ? {} : { x: i + l.x, y: o + l.y, data: { ...l, placement: a } }; } }; }, XK = function(e) { return e === void 0 && (e = {}), { name: "shift", options: e, async fn(t) { const { x: n, y: r, placement: i } = t, { mainAxis: o = !0, crossAxis: a = !1, limiter: s = { fn: (v) => { let { x, y: w } = v; return { x, y: w }; } }, ...l } = $c(e, t), c = { x: n, y: r }, f = await o1(t, l), d = Is(Ra(i)), p = uD(d); let m = c[p], y = c[d]; if (o) { const v = p === "y" ? "top" : "left", x = p === "y" ? "bottom" : "right", w = m + f[v], S = m - f[x]; m = g0(w, m, S); } if (a) { const v = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", w = y + f[v], S = y - f[x]; y = g0(w, y, S); } const g = s.fn({ ...t, [p]: m, [d]: y }); return { ...g, data: { x: g.x - n, y: g.y - r, enabled: { [p]: o, [d]: a } } }; } }; }, ZK = function(e) { return e === void 0 && (e = {}), { name: "size", options: e, async fn(t) { var n, r; const { placement: i, rects: o, platform: a, elements: s } = t, { apply: l = () => { }, ...c } = $c(e, t), f = await o1(t, c), d = Ra(i), p = Dc(i), m = Is(i) === "y", { width: y, height: g } = o.floating; let v, x; d === "top" || d === "bottom" ? (v = d, x = p === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (x = d, v = p === "end" ? "top" : "bottom"); const w = g - f.top - f.bottom, S = y - f.left - f.right, A = Ia(g - f[v], w), _ = Ia(y - f[x], S), O = !t.middlewareData.shift; let P = A, C = _; if ((n = t.middlewareData.shift) != null && n.enabled.x && (C = S), (r = t.middlewareData.shift) != null && r.enabled.y && (P = w), O && !p) { const I = Br(f.left, 0), $ = Br(f.right, 0), N = Br(f.top, 0), D = Br(f.bottom, 0); m ? C = y - 2 * (I !== 0 || $ !== 0 ? I + $ : Br(f.left, f.right)) : P = g - 2 * (N !== 0 || D !== 0 ? N + D : Br(f.top, f.bottom)); } await l({ ...t, availableWidth: C, availableHeight: P }); const k = await a.getDimensions(s.floating); return y !== k.width || g !== k.height ? { reset: { rects: !0 } } : {}; } }; }; function gD(e) { const t = Hr(e); let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0; const i = pn(e), o = i ? e.offsetWidth : n, a = i ? e.offsetHeight : r, s = hp(n) !== o || hp(r) !== a; return s && (n = o, r = a), { width: n, height: r, $: s }; } function a1(e) { return Ct(e) ? e : e.contextElement; } function Ul(e) { const t = a1(e); if (!pn(t)) return Ki(1); const n = t.getBoundingClientRect(), { width: r, height: i, $: o } = gD(t); let a = (o ? hp(n.width) : n.width) / r, s = (o ? hp(n.height) : n.height) / i; return (!a || !Number.isFinite(a)) && (a = 1), (!s || !Number.isFinite(s)) && (s = 1), { x: a, y: s }; } const JK = /* @__PURE__ */ Ki(0); function yD(e) { const t = Or(e); return !tg() || !t.visualViewport ? JK : { x: t.visualViewport.offsetLeft, y: t.visualViewport.offsetTop }; } function QK(e, t, n) { return t === void 0 && (t = !1), !n || t && n !== Or(e) ? !1 : t; } function Rs(e, t, n, r) { t === void 0 && (t = !1), n === void 0 && (n = !1); const i = e.getBoundingClientRect(), o = a1(e); let a = Ki(1); t && (r ? Ct(r) && (a = Ul(r)) : a = Ul(e)); const s = QK(o, n, r) ? yD(o) : Ki(0); let l = (i.left + s.x) / a.x, c = (i.top + s.y) / a.y, f = i.width / a.x, d = i.height / a.y; if (o) { const p = Or(o), m = r && Ct(r) ? Or(r) : r; let y = p, g = h0(y); for (; g && r && m !== y; ) { const v = Ul(g), x = g.getBoundingClientRect(), w = Hr(g), S = x.left + (g.clientLeft + parseFloat(w.paddingLeft)) * v.x, A = x.top + (g.clientTop + parseFloat(w.paddingTop)) * v.y; l *= v.x, c *= v.y, f *= v.x, d *= v.y, l += S, c += A, y = Or(g), g = h0(y); } } return mp({ width: f, height: d, x: l, y: c }); } function s1(e, t) { const n = ng(e).scrollLeft; return t ? t.left + n : Rs(oo(e)).left + n; } function vD(e, t, n) { n === void 0 && (n = !1); const r = e.getBoundingClientRect(), i = r.left + t.scrollLeft - (n ? 0 : ( // RTL <body> scrollbar. s1(e, r) )), o = r.top + t.scrollTop; return { x: i, y: o }; } function eG(e) { let { elements: t, rect: n, offsetParent: r, strategy: i } = e; const o = i === "fixed", a = oo(r), s = t ? eg(t.floating) : !1; if (r === a || s && o) return n; let l = { scrollLeft: 0, scrollTop: 0 }, c = Ki(1); const f = Ki(0), d = pn(r); if ((d || !d && !o) && ((za(r) !== "body" || ld(a)) && (l = ng(r)), pn(r))) { const m = Rs(r); c = Ul(r), f.x = m.x + r.clientLeft, f.y = m.y + r.clientTop; } const p = a && !d && !o ? vD(a, l, !0) : Ki(0); return { width: n.width * c.x, height: n.height * c.y, x: n.x * c.x - l.scrollLeft * c.x + f.x + p.x, y: n.y * c.y - l.scrollTop * c.y + f.y + p.y }; } function tG(e) { return Array.from(e.getClientRects()); } function nG(e) { const t = oo(e), n = ng(e), r = e.ownerDocument.body, i = Br(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), o = Br(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight); let a = -n.scrollLeft + s1(e); const s = -n.scrollTop; return Hr(r).direction === "rtl" && (a += Br(t.clientWidth, r.clientWidth) - i), { width: i, height: o, x: a, y: s }; } function rG(e, t) { const n = Or(e), r = oo(e), i = n.visualViewport; let o = r.clientWidth, a = r.clientHeight, s = 0, l = 0; if (i) { o = i.width, a = i.height; const c = tg(); (!c || c && t === "fixed") && (s = i.offsetLeft, l = i.offsetTop); } return { width: o, height: a, x: s, y: l }; } function iG(e, t) { const n = Rs(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, o = pn(e) ? Ul(e) : Ki(1), a = e.clientWidth * o.x, s = e.clientHeight * o.y, l = i * o.x, c = r * o.y; return { width: a, height: s, x: l, y: c }; } function OT(e, t, n) { let r; if (t === "viewport") r = rG(e, n); else if (t === "document") r = nG(oo(e)); else if (Ct(t)) r = iG(t, n); else { const i = yD(e); r = { x: t.x - i.x, y: t.y - i.y, width: t.width, height: t.height }; } return mp(r); } function bD(e, t) { const n = Fo(e); return n === t || !Ct(n) || Da(n) ? !1 : Hr(n).position === "fixed" || bD(n, t); } function oG(e, t) { const n = t.get(e); if (n) return n; let r = Ca(e, [], !1).filter((s) => Ct(s) && za(s) !== "body"), i = null; const o = Hr(e).position === "fixed"; let a = o ? Fo(e) : e; for (; Ct(a) && !Da(a); ) { const s = Hr(a), l = Qw(a); !l && s.position === "fixed" && (i = null), (o ? !l && !i : !l && s.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || ld(a) && !l && bD(e, a)) ? r = r.filter((f) => f !== a) : i = s, a = Fo(a); } return t.set(e, r), r; } function aG(e) { let { element: t, boundary: n, rootBoundary: r, strategy: i } = e; const a = [...n === "clippingAncestors" ? eg(t) ? [] : oG(t, this._c) : [].concat(n), r], s = a[0], l = a.reduce((c, f) => { const d = OT(t, f, i); return c.top = Br(d.top, c.top), c.right = Ia(d.right, c.right), c.bottom = Ia(d.bottom, c.bottom), c.left = Br(d.left, c.left), c; }, OT(t, s, i)); return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top }; } function sG(e) { const { width: t, height: n } = gD(e); return { width: t, height: n }; } function lG(e, t, n) { const r = pn(t), i = oo(t), o = n === "fixed", a = Rs(e, !0, o, t); let s = { scrollLeft: 0, scrollTop: 0 }; const l = Ki(0); if (r || !r && !o) if ((za(t) !== "body" || ld(i)) && (s = ng(t)), r) { const p = Rs(t, !0, o, t); l.x = p.x + t.clientLeft, l.y = p.y + t.clientTop; } else i && (l.x = s1(i)); const c = i && !r && !o ? vD(i, s) : Ki(0), f = a.left + s.scrollLeft - l.x - c.x, d = a.top + s.scrollTop - l.y - c.y; return { x: f, y: d, width: a.width, height: a.height }; } function Kv(e) { return Hr(e).position === "static"; } function AT(e, t) { if (!pn(e) || Hr(e).position === "fixed") return null; if (t) return t(e); let n = e.offsetParent; return oo(e) === n && (n = n.ownerDocument.body), n; } function xD(e, t) { const n = Or(e); if (eg(e)) return n; if (!pn(e)) { let i = Fo(e); for (; i && !Da(i); ) { if (Ct(i) && !Kv(i)) return i; i = Fo(i); } return n; } let r = AT(e, t); for (; r && hK(r) && Kv(r); ) r = AT(r, t); return r && Da(r) && Kv(r) && !Qw(r) ? n : r || pK(e) || n; } const cG = async function(e) { const t = this.getOffsetParent || xD, n = this.getDimensions, r = await n(e.floating); return { reference: lG(e.reference, await t(e.floating), e.strategy), floating: { x: 0, y: 0, width: r.width, height: r.height } }; }; function uG(e) { return Hr(e).direction === "rtl"; } const fG = { convertOffsetParentRelativeRectToViewportRelativeRect: eG, getDocumentElement: oo, getClippingRect: aG, getOffsetParent: xD, getElementRects: cG, getClientRects: tG, getDimensions: sG, getScale: Ul, isElement: Ct, isRTL: uG }; function dG(e, t) { let n = null, r; const i = oo(e); function o() { var s; clearTimeout(r), (s = n) == null || s.disconnect(), n = null; } function a(s, l) { s === void 0 && (s = !1), l === void 0 && (l = 1), o(); const { left: c, top: f, width: d, height: p } = e.getBoundingClientRect(); if (s || t(), !d || !p) return; const m = kl(f), y = kl(i.clientWidth - (c + d)), g = kl(i.clientHeight - (f + p)), v = kl(c), w = { rootMargin: -m + "px " + -y + "px " + -g + "px " + -v + "px", threshold: Br(0, Ia(1, l)) || 1 }; let S = !0; function A(_) { const O = _[0].intersectionRatio; if (O !== l) { if (!S) return a(); O ? a(!1, O) : r = setTimeout(() => { a(!1, 1e-7); }, 1e3); } S = !1; } try { n = new IntersectionObserver(A, { ...w, // Handle <iframe>s root: i.ownerDocument }); } catch { n = new IntersectionObserver(A, w); } n.observe(e); } return a(!0), o; } function ig(e, t, n, r) { r === void 0 && (r = {}); const { ancestorScroll: i = !0, ancestorResize: o = !0, elementResize: a = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: l = !1 } = r, c = a1(e), f = i || o ? [...c ? Ca(c) : [], ...Ca(t)] : []; f.forEach((x) => { i && x.addEventListener("scroll", n, { passive: !0 }), o && x.addEventListener("resize", n); }); const d = c && s ? dG(c, n) : null; let p = -1, m = null; a && (m = new ResizeObserver((x) => { let [w] = x; w && w.target === c && m && (m.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => { var S; (S = m) == null || S.observe(t); })), n(); }), c && !l && m.observe(c), m.observe(t)); let y, g = l ? Rs(e) : null; l && v(); function v() { const x = Rs(e); g && (x.x !== g.x || x.y !== g.y || x.width !== g.width || x.height !== g.height) && n(), g = x, y = requestAnimationFrame(v); } return n(), () => { var x; f.forEach((w) => { i && w.removeEventListener("scroll", n), o && w.removeEventListener("resize", n); }), d == null || d(), (x = m) == null || x.disconnect(), m = null, l && cancelAnimationFrame(y); }; } const hG = qK, pG = XK, mG = GK, gG = ZK, TT = KK, yG = (e, t, n) => { const r = /* @__PURE__ */ new Map(), i = { platform: fG, ...n }, o = { ...i.platform, _c: r }; return HK(e, t, { ...i, platform: o }); }; var rp = typeof document < "u" ? react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_1__.useEffect; function bp(e, t) { if (e === t) return !0; if (typeof e != typeof t) return !1; if (typeof e == "function" && e.toString() === t.toString()) return !0; let n, r, i; if (e && t && typeof e == "object") { if (Array.isArray(e)) { if (n = e.length, n !== t.length) return !1; for (r = n; r-- !== 0; ) if (!bp(e[r], t[r])) return !1; return !0; } if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1; for (r = n; r-- !== 0; ) if (!{}.hasOwnProperty.call(t, i[r])) return !1; for (r = n; r-- !== 0; ) { const o = i[r]; if (!(o === "_owner" && e.$$typeof) && !bp(e[o], t[o])) return !1; } return !0; } return e !== e && t !== t; } function wD(e) { return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1; } function PT(e, t) { const n = wD(e); return Math.round(t * n) / n; } function Gv(e) { const t = react__WEBPACK_IMPORTED_MODULE_1__.useRef(e); return rp(() => { t.current = e; }), t; } function vG(e) { e === void 0 && (e = {}); const { placement: t = "bottom", strategy: n = "absolute", middleware: r = [], platform: i, elements: { reference: o, floating: a } = {}, transform: s = !0, whileElementsMounted: l, open: c } = e, [f, d] = react__WEBPACK_IMPORTED_MODULE_1__.useState({ x: 0, y: 0, strategy: n, placement: t, middlewareData: {}, isPositioned: !1 }), [p, m] = react__WEBPACK_IMPORTED_MODULE_1__.useState(r); bp(p, r) || m(r); const [y, g] = react__WEBPACK_IMPORTED_MODULE_1__.useState(null), [v, x] = react__WEBPACK_IMPORTED_MODULE_1__.useState(null), w = react__WEBPACK_IMPORTED_MODULE_1__.useCallback((H) => { H !== O.current && (O.current = H, g(H)); }, []), S = react__WEBPACK_IMPORTED_MODULE_1__.useCallback((H) => { H !== P.current && (P.current = H, x(H)); }, []), A = o || y, _ = a || v, O = react__WEBPACK_IMPORTED_MODULE_1__.useRef(null), P = react__WEBPACK_IMPORTED_MODULE_1__.useRef(null), C = react__WEBPACK_IMPORTED_MODULE_1__.useRef(f), k = l != null, I = Gv(l), $ = Gv(i), N = Gv(c), D = react__WEBPACK_IMPORTED_MODULE_1__.useCallback(() => { if (!O.current || !P.current) return; const H = { placement: t, strategy: n, middleware: p }; $.current && (H.platform = $.current), yG(O.current, P.current, H).then((U) => { const V = { ...U, // The floating element's position may be recomputed while it's closed // but still mounted (such as when transitioning out). To ensure // `isPositioned` will be `false` initially on the next open, avoid // setting it to `true` when `open === false` (must be specified). isPositioned: N.current !== !1 }; j.current && !bp(C.current, V) && (C.current = V, react_dom__WEBPACK_IMPORTED_MODULE_2__.flushSync(() => { d(V); })); }); }, [p, t, n, $, N]); rp(() => { c === !1 && C.current.isPositioned && (C.current.isPositioned = !1, d((H) => ({ ...H, isPositioned: !1 }))); }, [c]); const j = react__WEBPACK_IMPORTED_MODULE_1__.useRef(!1); rp(() => (j.current = !0, () => { j.current = !1; }), []), rp(() => { if (A && (O.current = A), _ && (P.current = _), A && _) { if (I.current) return I.current(A, _, D); D(); } }, [A, _, D, I, k]); const F = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ reference: O, floating: P, setReference: w, setFloating: S }), [w, S]), W = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ reference: A, floating: _ }), [A, _]), z = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => { const H = { position: n, left: 0, top: 0 }; if (!W.floating) return H; const U = PT(W.floating, f.x), V = PT(W.floating, f.y); return s ? { ...H, transform: "translate(" + U + "px, " + V + "px)", ...wD(W.floating) >= 1.5 && { willChange: "transform" } } : { position: n, left: U, top: V }; }, [n, s, W.floating, f.x, f.y]); return react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ ...f, update: D, refs: F, elements: W, floatingStyles: z }), [f, D, F, W, z]); } const bG = (e) => { function t(n) { return {}.hasOwnProperty.call(n, "current"); } return { name: "arrow", options: e, fn(n) { const { element: r, padding: i } = typeof e == "function" ? e(n) : e; return r && t(r) ? r.current != null ? TT({ element: r.current, padding: i }).fn(n) : {} : r ? TT({ element: r, padding: i }).fn(n) : {}; } }; }, og = (e, t) => ({ ...hG(e), options: [e, t] }), _D = (e, t) => ({ ...pG(e), options: [e, t] }), ag = (e, t) => ({ ...mG(e), options: [e, t] }), SD = (e, t) => ({ ...gG(e), options: [e, t] }), xG = (e, t) => ({ ...bG(e), options: [e, t] }), OD = { .../*#__PURE__*/ (react__WEBPACK_IMPORTED_MODULE_1___namespace_cache || (react__WEBPACK_IMPORTED_MODULE_1___namespace_cache = __webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_1__, 2))) }, wG = OD.useInsertionEffect, _G = wG || ((e) => e()); function Nn(e) { const t = react__WEBPACK_IMPORTED_MODULE_1__.useRef(() => { if (true) throw new Error("Cannot call an event handler while rendering."); }); return _G(() => { t.current = e; }), react__WEBPACK_IMPORTED_MODULE_1__.useCallback(function() { for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i]; return t.current == null ? void 0 : t.current(...r); }, []); } const l1 = "ArrowUp", cd = "ArrowDown", Ea = "ArrowLeft", ka = "ArrowRight"; function Th(e, t, n) { return Math.floor(e / t) !== n; } function Uu(e, t) { return t < 0 || t >= e.current.length; } function Yv(e, t) { return Qn(e, { disabledIndices: t }); } function CT(e, t) { return Qn(e, { decrement: !0, startingIndex: e.current.length, disabledIndices: t }); } function Qn(e, t) { let { startingIndex: n = -1, decrement: r = !1, disabledIndices: i, amount: o = 1 } = t === void 0 ? {} : t; const a = e.current; let s = n; do s += r ? -o : o; while (s >= 0 && s <= a.length - 1 && ip(a, s, i)); return s; } function SG(e, t) { let { event: n, orientation: r, loop: i, rtl: o, cols: a, disabledIndices: s, minIndex: l, maxIndex: c, prevIndex: f, stopEvent: d = !1 } = t, p = f; if (n.key === l1) { if (d && Un(n), f === -1) p = c; else if (p = Qn(e, { startingIndex: p, amount: a, decrement: !0, disabledIndices: s }), i && (f - a < l || p < 0)) { const m = f % a, y = c % a, g = c - (y - m); y === m ? p = c : p = y > m ? g : g - a; } Uu(e, p) && (p = f); } if (n.key === cd && (d && Un(n), f === -1 ? p = l : (p = Qn(e, { startingIndex: f, amount: a, disabledIndices: s }), i && f + a > c && (p = Qn(e, { startingIndex: f % a - a, amount: a, disabledIndices: s }))), Uu(e, p) && (p = f)), r === "both") { const m = kl(f / a); n.key === (o ? Ea : ka) && (d && Un(n), f % a !== a - 1 ? (p = Qn(e, { startingIndex: f, disabledIndices: s }), i && Th(p, a, m) && (p = Qn(e, { startingIndex: f - f % a - 1, disabledIndices: s }))) : i && (p = Qn(e, { startingIndex: f - f % a - 1, disabledIndices: s })), Th(p, a, m) && (p = f)), n.key === (o ? ka : Ea) && (d && Un(n), f % a !== 0 ? (p = Qn(e, { startingIndex: f, decrement: !0, disabledIndices: s }), i && Th(p, a, m) && (p = Qn(e, { startingIndex: f + (a - f % a), decrement: !0, disabledIndices: s }))) : i && (p = Qn(e, { startingIndex: f + (a - f % a), decrement: !0, disabledIndices: s })), Th(p, a, m) && (p = f)); const y = kl(c / a) === m; Uu(e, p) && (i && y ? p = n.key === (o ? ka : Ea) ? c : Qn(e, { startingIndex: f - f % a - 1, disabledIndices: s }) : p = f); } return p; } function OG(e, t, n) { const r = []; let i = 0; return e.forEach((o, a) => { let { width: s, height: l } = o; if (s > t && "development" !== "production") throw new Error("[Floating UI]: Invalid grid - item width at index " + a + " is greater than grid columns"); let c = !1; for (n && (i = 0); !c; ) { const f = []; for (let d = 0; d < s; d++) for (let p = 0; p < l; p++) f.push(i + d + p * t); i % t + s <= t && f.every((d) => r[d] == null) ? (f.forEach((d) => { r[d] = a; }), c = !0) : i++; } }), [...r]; } function AG(e, t, n, r, i) { if (e === -1) return -1; const o = n.indexOf(e), a = t[e]; switch (i) { case "tl": return o; case "tr": return a ? o + a.width - 1 : o; case "bl": return a ? o + (a.height - 1) * r : o; case "br": return n.lastIndexOf(e); } } function TG(e, t) { return t.flatMap((n, r) => e.includes(n) ? [r] : []); } function ip(e, t, n) { if (n) return n.includes(t); const r = e[t]; return r == null || r.hasAttribute("disabled") || r.getAttribute("aria-disabled") === "true"; } var Nt = typeof document < "u" ? react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_1__.useEffect; function ff() { return ff = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, ff.apply(this, arguments); } let ET = !1, PG = 0; const kT = () => ( // Ensure the id is unique with multiple independent versions of Floating UI // on <React 18 "floating-ui-" + Math.random().toString(36).slice(2, 6) + PG++ ); function CG() { const [e, t] = react__WEBPACK_IMPORTED_MODULE_1__.useState(() => ET ? kT() : void 0); return Nt(() => { e == null && t(kT()); }, []), react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { ET = !0; }, []), e; } const EG = OD.useId, sg = EG || CG; let df; true && (df = /* @__PURE__ */ new Set()); function op() { for (var e, t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r]; const i = "Floating UI: " + n.join(" "); if (!((e = df) != null && e.has(i))) { var o; (o = df) == null || o.add(i), console.warn(i); } } function kG() { for (var e, t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r]; const i = "Floating UI: " + n.join(" "); if (!((e = df) != null && e.has(i))) { var o; (o = df) == null || o.add(i), console.error(i); } } const MG = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(function(t, n) { const { context: { placement: r, elements: { floating: i }, middlewareData: { arrow: o, shift: a } }, width: s = 14, height: l = 7, tipRadius: c = 0, strokeWidth: f = 0, staticOffset: d, stroke: p, d: m, style: { transform: y, ...g } = {}, ...v } = t; true && (n || op("The `ref` prop is required for `FloatingArrow`.")); const x = sg(), [w, S] = react__WEBPACK_IMPORTED_MODULE_1__.useState(!1); if (Nt(() => { if (!i) return; Hr(i).direction === "rtl" && S(!0); }, [i]), !i) return null; const [A, _] = r.split("-"), O = A === "top" || A === "bottom"; let P = d; (O && a != null && a.x || !O && a != null && a.y) && (P = null); const C = f * 2, k = C / 2, I = s / 2 * (c / -8 + 1), $ = l / 2 * c / 4, N = !!m, D = P && _ === "end" ? "bottom" : "top"; let j = P && _ === "end" ? "right" : "left"; P && w && (j = _ === "end" ? "left" : "right"); const F = (o == null ? void 0 : o.x) != null ? P || o.x : "", W = (o == null ? void 0 : o.y) != null ? P || o.y : "", z = m || "M0,0" + (" H" + s) + (" L" + (s - I) + "," + (l - $)) + (" Q" + s / 2 + "," + l + " " + I + "," + (l - $)) + " Z", H = { top: N ? "rotate(180deg)" : "", left: N ? "rotate(90deg)" : "rotate(-90deg)", bottom: N ? "" : "rotate(180deg)", right: N ? "rotate(-90deg)" : "rotate(90deg)" }[A]; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("svg", ff({}, v, { "aria-hidden": !0, ref: n, width: N ? s : s + C, height: s, viewBox: "0 0 " + s + " " + (l > s ? l : s), style: { position: "absolute", pointerEvents: "none", [j]: F, [D]: W, [A]: O || N ? "100%" : "calc(100% - " + C / 2 + "px)", transform: [H, y].filter((U) => !!U).join(" "), ...g } }), C > 0 && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("path", { clipPath: "url(#" + x + ")", fill: "none", stroke: p, strokeWidth: C + (m ? 0 : 1), d: z }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("path", { stroke: C && !m ? v.fill : "none", d: z }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("clipPath", { id: x }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("rect", { x: -k, y: k * (N ? -1 : 1), width: s + C, height: s }))); }); function NG() { const e = /* @__PURE__ */ new Map(); return { emit(t, n) { var r; (r = e.get(t)) == null || r.forEach((i) => i(n)); }, on(t, n) { e.set(t, [...e.get(t) || [], n]); }, off(t, n) { var r; e.set(t, ((r = e.get(t)) == null ? void 0 : r.filter((i) => i !== n)) || []); } }; } const $G = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createContext(null), DG = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createContext(null), lg = () => { var e; return ((e = react__WEBPACK_IMPORTED_MODULE_1__.useContext($G)) == null ? void 0 : e.id) || null; }, ud = () => react__WEBPACK_IMPORTED_MODULE_1__.useContext(DG); function js(e) { return "data-floating-ui-" + e; } function Yn(e) { const t = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(e); return Nt(() => { t.current = e; }), t; } const MT = /* @__PURE__ */ js("safe-polygon"); function qv(e, t, n) { return n && !uf(n) ? 0 : typeof e == "number" ? e : e == null ? void 0 : e[t]; } function IG(e, t) { t === void 0 && (t = {}); const { open: n, onOpenChange: r, dataRef: i, events: o, elements: a } = e, { enabled: s = !0, delay: l = 0, handleClose: c = null, mouseOnly: f = !1, restMs: d = 0, move: p = !0 } = t, m = ud(), y = lg(), g = Yn(c), v = Yn(l), x = Yn(n), w = react__WEBPACK_IMPORTED_MODULE_1__.useRef(), S = react__WEBPACK_IMPORTED_MODULE_1__.useRef(-1), A = react__WEBPACK_IMPORTED_MODULE_1__.useRef(), _ = react__WEBPACK_IMPORTED_MODULE_1__.useRef(-1), O = react__WEBPACK_IMPORTED_MODULE_1__.useRef(!0), P = react__WEBPACK_IMPORTED_MODULE_1__.useRef(!1), C = react__WEBPACK_IMPORTED_MODULE_1__.useRef(() => { }), k = react__WEBPACK_IMPORTED_MODULE_1__.useRef(!1), I = react__WEBPACK_IMPORTED_MODULE_1__.useCallback(() => { var z; const H = (z = i.current.openEvent) == null ? void 0 : z.type; return (H == null ? void 0 : H.includes("mouse")) && H !== "mousedown"; }, [i]); react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { if (!s) return; function z(H) { let { open: U } = H; U || (clearTimeout(S.current), clearTimeout(_.current), O.current = !0, k.current = !1); } return o.on("openchange", z), () => { o.off("openchange", z); }; }, [s, o]), react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { if (!s || !g.current || !n) return; function z(U) { I() && r(!1, U, "hover"); } const H = Kn(a.floating).documentElement; return H.addEventListener("mouseleave", z), () => { H.removeEventListener("mouseleave", z); }; }, [a.floating, n, r, s, g, I]); const $ = react__WEBPACK_IMPORTED_MODULE_1__.useCallback(function(z, H, U) { H === void 0 && (H = !0), U === void 0 && (U = "hover"); const V = qv(v.current, "close", w.current); V && !A.current ? (clearTimeout(S.current), S.current = window.setTimeout(() => r(!1, z, U), V)) : H && (clearTimeout(S.current), r(!1, z, U)); }, [v, r]), N = Nn(() => { C.current(), A.current = void 0; }), D = Nn(() => { if (P.current) { const z = Kn(a.floating).body; z.style.pointerEvents = "", z.removeAttribute(MT), P.current = !1; } }), j = Nn(() => i.current.openEvent ? ["click", "mousedown"].includes(i.current.openEvent.type) : !1); react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { if (!s) return; function z(Y) { if (clearTimeout(S.current), O.current = !1, f && !uf(w.current) || d > 0 && !qv(v.current, "open")) return; const Q = qv(v.current, "open", w.current); Q ? S.current = window.setTimeout(() => { x.current || r(!0, Y, "hover"); }, Q) : n || r(!0, Y, "hover"); } function H(Y) { if (j()) return; C.current(); const Q = Kn(a.floating); if (clearTimeout(_.current), k.current = !1, g.current && i.current.floatingContext) { n || clearTimeout(S.current), A.current = g.current({ ...i.current.floatingContext, tree: m, x: Y.clientX, y: Y.clientY, onClose() { D(), N(), j() || $(Y, !0, "safe-polygon"); } }); const re = A.current; Q.addEventListener("mousemove", re), C.current = () => { Q.removeEventListener("mousemove", re); }; return; } (w.current === "touch" ? !hn(a.floating, Y.relatedTarget) : !0) && $(Y); } function U(Y) { j() || i.current.floatingContext && (g.current == null || g.current({ ...i.current.floatingContext, tree: m, x: Y.clientX, y: Y.clientY, onClose() { D(), N(), j() || $(Y); } })(Y)); } if (Ct(a.domReference)) { var V; const Y = a.domReference; return n && Y.addEventListener("mouseleave", U), (V = a.floating) == null || V.addEventListener("mouseleave", U), p && Y.addEventListener("mousemove", z, { once: !0 }), Y.addEventListener("mouseenter", z), Y.addEventListener("mouseleave", H), () => { var Q; n && Y.removeEventListener("mouseleave", U), (Q = a.floating) == null || Q.removeEventListener("mouseleave", U), p && Y.removeEventListener("mousemove", z), Y.removeEventListener("mouseenter", z), Y.removeEventListener("mouseleave", H); }; } }, [a, s, e, f, d, p, $, N, D, r, n, x, m, v, g, i, j]), Nt(() => { var z; if (s && n && (z = g.current) != null && z.__options.blockPointerEvents && I()) { P.current = !0; const U = a.floating; if (Ct(a.domReference) && U) { var H; const V = Kn(a.floating).body; V.setAttribute(MT, ""); const Y = a.domReference, Q = m == null || (H = m.nodesRef.current.find((ne) => ne.id === y)) == null || (H = H.context) == null ? void 0 : H.elements.floating; return Q && (Q.style.pointerEvents = ""), V.style.pointerEvents = "none", Y.style.pointerEvents = "auto", U.style.pointerEvents = "auto", () => { V.style.pointerEvents = "", Y.style.pointerEvents = "", U.style.pointerEvents = ""; }; } } }, [s, n, y, a, m, g, I]), Nt(() => { n || (w.current = void 0, k.current = !1, N(), D()); }, [n, N, D]), react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => () => { N(), clearTimeout(S.current), clearTimeout(_.current), D(); }, [s, a.domReference, N, D]); const F = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => { function z(H) { w.current = H.pointerType; } return { onPointerDown: z, onPointerEnter: z, onMouseMove(H) { const { nativeEvent: U } = H; function V() { !O.current && !x.current && r(!0, U, "hover"); } f && !uf(w.current) || n || d === 0 || k.current && H.movementX ** 2 + H.movementY ** 2 < 2 || (clearTimeout(_.current), w.current === "touch" ? V() : (k.current = !0, _.current = window.setTimeout(V, d))); } }; }, [f, r, n, x, d]), W = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ onMouseEnter() { clearTimeout(S.current); }, onMouseLeave(z) { j() || $(z.nativeEvent, !1); } }), [$, j]); return react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => s ? { reference: F, floating: W } : {}, [s, F, W]); } let NT = 0; function xa(e, t) { t === void 0 && (t = {}); const { preventScroll: n = !1, cancelPrevious: r = !0, sync: i = !1 } = t; r && cancelAnimationFrame(NT); const o = () => e == null ? void 0 : e.focus({ preventScroll: n }); i ? o() : NT = requestAnimationFrame(o); } function RG(e, t) { var n; let r = [], i = (n = e.find((o) => o.id === t)) == null ? void 0 : n.parentId; for (; i; ) { const o = e.find((a) => a.id === i); i = o == null ? void 0 : o.parentId, o && (r = r.concat(o)); } return r; } function Cs(e, t) { let n = e.filter((i) => { var o; return i.parentId === t && ((o = i.context) == null ? void 0 : o.open); }), r = n; for (; r.length; ) r = e.filter((i) => { var o; return (o = r) == null ? void 0 : o.some((a) => { var s; return i.parentId === a.id && ((s = i.context) == null ? void 0 : s.open); }); }), n = n.concat(r); return n; } function jG(e, t) { let n, r = -1; function i(o, a) { a > r && (n = o, r = a), Cs(e, o).forEach((l) => { i(l.id, a + 1); }); } return i(t, 0), e.find((o) => o.id === n); } let xl = /* @__PURE__ */ new WeakMap(), Ph = /* @__PURE__ */ new WeakSet(), Ch = {}, Xv = 0; const LG = () => typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, AD = (e) => e && (e.host || AD(e.parentNode)), BG = (e, t) => t.map((n) => { if (e.contains(n)) return n; const r = AD(n); return e.contains(r) ? r : null; }).filter((n) => n != null); function FG(e, t, n, r) { const i = "data-floating-ui-inert", o = r ? "inert" : n ? "aria-hidden" : null, a = BG(t, e), s = /* @__PURE__ */ new Set(), l = new Set(a), c = []; Ch[i] || (Ch[i] = /* @__PURE__ */ new WeakMap()); const f = Ch[i]; a.forEach(d), p(t), s.clear(); function d(m) { !m || s.has(m) || (s.add(m), m.parentNode && d(m.parentNode)); } function p(m) { !m || l.has(m) || [].forEach.call(m.children, (y) => { if (za(y) !== "script") if (s.has(y)) p(y); else { const g = o ? y.getAttribute(o) : null, v = g !== null && g !== "false", x = (xl.get(y) || 0) + 1, w = (f.get(y) || 0) + 1; xl.set(y, x), f.set(y, w), c.push(y), x === 1 && v && Ph.add(y), w === 1 && y.setAttribute(i, ""), !v && o && y.setAttribute(o, "true"); } }); } return Xv++, () => { c.forEach((m) => { const y = (xl.get(m) || 0) - 1, g = (f.get(m) || 0) - 1; xl.set(m, y), f.set(m, g), y || (!Ph.has(m) && o && m.removeAttribute(o), Ph.delete(m)), g || m.removeAttribute(i); }), Xv--, Xv || (xl = /* @__PURE__ */ new WeakMap(), xl = /* @__PURE__ */ new WeakMap(), Ph = /* @__PURE__ */ new WeakSet(), Ch = {}); }; } function $T(e, t, n) { t === void 0 && (t = !1), n === void 0 && (n = !1); const r = Kn(e[0]).body; return FG(e.concat(Array.from(r.querySelectorAll("[aria-live]"))), r, t, n); } const hf = () => ({ getShadowRoot: !0, displayCheck: ( // JSDOM does not support the `tabbable` library. To solve this we can // check if `ResizeObserver` is a real function (not polyfilled), which // determines if the current environment is JSDOM-like. typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none" ) }); function TD(e, t) { const n = rg(e, hf()); t === "prev" && n.reverse(); const r = n.indexOf(Pi(Kn(e))); return n.slice(r + 1)[0]; } function PD() { return TD(document.body, "next"); } function CD() { return TD(document.body, "prev"); } function Hu(e, t) { const n = t || e.currentTarget, r = e.relatedTarget; return !r || !hn(n, r); } function WG(e) { rg(e, hf()).forEach((n) => { n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1"); }); } function DT(e) { e.querySelectorAll("[data-tabindex]").forEach((n) => { const r = n.dataset.tabindex; delete n.dataset.tabindex, r ? n.setAttribute("tabindex", r) : n.removeAttribute("tabindex"); }); } const cg = { border: 0, clip: "rect(0 0 0 0)", height: "1px", margin: "-1px", overflow: "hidden", padding: 0, position: "fixed", whiteSpace: "nowrap", width: "1px", top: 0, left: 0 }; let zG; function IT(e) { e.key === "Tab" && (e.target, clearTimeout(zG)); } const xp = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(function(t, n) { const [r, i] = react__WEBPACK_IMPORTED_MODULE_1__.useState(); Nt(() => (t1() && i("button"), document.addEventListener("keydown", IT), () => { document.removeEventListener("keydown", IT); }), []); const o = { ref: n, tabIndex: 0, // Role is only for VoiceOver role: r, "aria-hidden": r ? void 0 : !0, [js("focus-guard")]: "", style: cg }; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", ff({}, t, o)); }), ED = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createContext(null), RT = /* @__PURE__ */ js("portal"); function VG(e) { e === void 0 && (e = {}); const { id: t, root: n } = e, r = sg(), i = kD(), [o, a] = react__WEBPACK_IMPORTED_MODULE_1__.useState(null), s = react__WEBPACK_IMPORTED_MODULE_1__.useRef(null); return Nt(() => () => { o == null || o.remove(), queueMicrotask(() => { s.current = null; }); }, [o]), Nt(() => { if (!r || s.current) return; const l = t ? document.getElementById(t) : null; if (!l) return; const c = document.createElement("div"); c.id = r, c.setAttribute(RT, ""), l.appendChild(c), s.current = c, a(c); }, [t, r]), Nt(() => { if (n === null || !r || s.current) return; let l = n || (i == null ? void 0 : i.portalNode); l && !Ct(l) && (l = l.current), l = l || document.body; let c = null; t && (c = document.createElement("div"), c.id = t, l.appendChild(c)); const f = document.createElement("div"); f.id = r, f.setAttribute(RT, ""), l = c || l, l.appendChild(f), s.current = f, a(f); }, [t, n, r, i]), o; } function ug(e) { const { children: t, id: n, root: r, preserveTabOrder: i = !0 } = e, o = VG({ id: n, root: r }), [a, s] = react__WEBPACK_IMPORTED_MODULE_1__.useState(null), l = react__WEBPACK_IMPORTED_MODULE_1__.useRef(null), c = react__WEBPACK_IMPORTED_MODULE_1__.useRef(null), f = react__WEBPACK_IMPORTED_MODULE_1__.useRef(null), d = react__WEBPACK_IMPORTED_MODULE_1__.useRef(null), p = a == null ? void 0 : a.modal, m = a == null ? void 0 : a.open, y = ( // The FocusManager and therefore floating element are currently open/ // rendered. !!a && // Guards are only for non-modal focus management. !a.modal && // Don't render if unmount is transitioning. a.open && i && !!(r || o) ); return react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { if (!o || !i || p) return; function g(v) { o && Hu(v) && (v.type === "focusin" ? DT : WG)(o); } return o.addEventListener("focusin", g, !0), o.addEventListener("focusout", g, !0), () => { o.removeEventListener("focusin", g, !0), o.removeEventListener("focusout", g, !0); }; }, [o, i, p]), react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { o && (m || DT(o)); }, [m, o]), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(ED.Provider, { value: react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ preserveTabOrder: i, beforeOutsideRef: l, afterOutsideRef: c, beforeInsideRef: f, afterInsideRef: d, portalNode: o, setFocusManagerState: s }), [i, o]) }, y && o && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(xp, { "data-type": "outside", ref: l, onFocus: (g) => { if (Hu(g, o)) { var v; (v = f.current) == null || v.focus(); } else { const x = CD() || (a == null ? void 0 : a.refs.domReference.current); x == null || x.focus(); } } }), y && o && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { "aria-owns": o.id, style: cg }), o && /* @__PURE__ */ react_dom__WEBPACK_IMPORTED_MODULE_2__.createPortal(t, o), y && o && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(xp, { "data-type": "outside", ref: c, onFocus: (g) => { if (Hu(g, o)) { var v; (v = d.current) == null || v.focus(); } else { const x = PD() || (a == null ? void 0 : a.refs.domReference.current); x == null || x.focus(), a != null && a.closeOnFocusOut && (a == null || a.onOpenChange(!1, g.nativeEvent, "focus-out")); } } })); } const kD = () => react__WEBPACK_IMPORTED_MODULE_1__.useContext(ED), b0 = "data-floating-ui-focusable"; function MD(e) { return e ? e.hasAttribute(b0) ? e : e.querySelector("[" + b0 + "]") || e : null; } const jT = 20; let hs = []; function Zv(e) { hs = hs.filter((n) => n.isConnected); let t = e; if (!(!t || za(t) === "body")) { if (!UK(t, hf())) { const n = rg(t, hf())[0]; n && (t = n); } hs.push(t), hs.length > jT && (hs = hs.slice(-jT)); } } function LT() { return hs.slice().reverse().find((e) => e.isConnected); } const UG = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(function(t, n) { return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", ff({}, t, { type: "button", ref: n, tabIndex: -1, style: cg })); }); function HG(e) { const { context: t, children: n, disabled: r = !1, order: i = ["content"], guards: o = !0, initialFocus: a = 0, returnFocus: s = !0, restoreFocus: l = !1, modal: c = !0, visuallyHiddenDismiss: f = !1, closeOnFocusOut: d = !0 } = e, { open: p, refs: m, nodeId: y, onOpenChange: g, events: v, dataRef: x, floatingId: w, elements: { domReference: S, floating: A } } = t, _ = typeof a == "number" && a < 0, O = m0(S) && _, P = LG() ? o : !0, C = Yn(i), k = Yn(a), I = Yn(s), $ = ud(), N = kD(), D = react__WEBPACK_IMPORTED_MODULE_1__.useRef(null), j = react__WEBPACK_IMPORTED_MODULE_1__.useRef(null), F = react__WEBPACK_IMPORTED_MODULE_1__.useRef(!1), W = react__WEBPACK_IMPORTED_MODULE_1__.useRef(!1), z = react__WEBPACK_IMPORTED_MODULE_1__.useRef(-1), H = N != null, U = MD(A), V = Nn(function(re) { return re === void 0 && (re = U), re ? rg(re, hf()) : []; }), Y = Nn((re) => { const ce = V(re); return C.current.map((oe) => S && oe === "reference" ? S : U && oe === "floating" ? U : ce).filter(Boolean).flat(); }); react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { if (r || !c) return; function re(oe) { if (oe.key === "Tab") { hn(U, Pi(Kn(U))) && V().length === 0 && !O && Un(oe); const fe = Y(), ae = Ao(oe); C.current[0] === "reference" && ae === S && (Un(oe), oe.shiftKey ? xa(fe[fe.length - 1]) : xa(fe[1])), C.current[1] === "floating" && ae === U && oe.shiftKey && (Un(oe), xa(fe[0])); } } const ce = Kn(U); return ce.addEventListener("keydown", re), () => { ce.removeEventListener("keydown", re); }; }, [r, S, U, c, C, O, V, Y]), react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { if (r || !A) return; function re(ce) { const oe = Ao(ce), ae = V().indexOf(oe); ae !== -1 && (z.current = ae); } return A.addEventListener("focusin", re), () => { A.removeEventListener("focusin", re); }; }, [r, A, V]), react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { if (r || !d) return; function re() { W.current = !0, setTimeout(() => { W.current = !1; }); } function ce(oe) { const fe = oe.relatedTarget; queueMicrotask(() => { const ae = !(hn(S, fe) || hn(A, fe) || hn(fe, A) || hn(N == null ? void 0 : N.portalNode, fe) || fe != null && fe.hasAttribute(js("focus-guard")) || $ && (Cs($.nodesRef.current, y).find((ee) => { var se, ge; return hn((se = ee.context) == null ? void 0 : se.elements.floating, fe) || hn((ge = ee.context) == null ? void 0 : ge.elements.domReference, fe); }) || RG($.nodesRef.current, y).find((ee) => { var se, ge; return ((se = ee.context) == null ? void 0 : se.elements.floating) === fe || ((ge = ee.context) == null ? void 0 : ge.elements.domReference) === fe; }))); if (l && ae && Pi(Kn(U)) === Kn(U).body) { pn(U) && U.focus(); const ee = z.current, se = V(), ge = se[ee] || se[se.length - 1] || U; pn(ge) && ge.focus(); } (O || !c) && fe && ae && !W.current && // Fix React 18 Strict Mode returnFocus due to double rendering. fe !== LT() && (F.current = !0, g(!1, oe, "focus-out")); }); } if (A && pn(S)) return S.addEventListener("focusout", ce), S.addEventListener("pointerdown", re), A.addEventListener("focusout", ce), () => { S.removeEventListener("focusout", ce), S.removeEventListener("pointerdown", re), A.removeEventListener("focusout", ce); }; }, [r, S, A, U, c, y, $, N, g, d, l, V, O]), react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { var re; if (r) return; const ce = Array.from((N == null || (re = N.portalNode) == null ? void 0 : re.querySelectorAll("[" + js("portal") + "]")) || []); if (A) { const oe = [A, ...ce, D.current, j.current, C.current.includes("reference") || O ? S : null].filter((ae) => ae != null), fe = c || O ? $T(oe, P, !P) : $T(oe); return () => { fe(); }; } }, [r, S, A, c, C, N, O, P]), Nt(() => { if (r || !pn(U)) return; const re = Kn(U), ce = Pi(re); queueMicrotask(() => { const oe = Y(U), fe = k.current, ae = (typeof fe == "number" ? oe[fe] : fe.current) || U, ee = hn(U, ce); !_ && !ee && p && xa(ae, { preventScroll: ae === U }); }); }, [r, p, U, _, Y, k]), Nt(() => { if (r || !U) return; let re = !1; const ce = Kn(U), oe = Pi(ce); let ae = x.current.openEvent; Zv(oe); function ee(X) { let { open: $e, reason: de, event: ke, nested: it } = X; $e && (ae = ke), de === "escape-key" && m.domReference.current && Zv(m.domReference.current), de === "hover" && ke.type === "mouseleave" && (F.current = !0), de === "outside-press" && (it ? (F.current = !1, re = !0) : F.current = !(lD(ke) || e1(ke))); } v.on("openchange", ee); const se = ce.createElement("span"); se.setAttribute("tabindex", "-1"), se.setAttribute("aria-hidden", "true"), Object.assign(se.style, cg), H && S && S.insertAdjacentElement("afterend", se); function ge() { return typeof I.current == "boolean" ? LT() || se : I.current.current || se; } return () => { v.off("openchange", ee); const X = Pi(ce), $e = hn(A, X) || $ && Cs($.nodesRef.current, y).some((it) => { var lt; return hn((lt = it.context) == null ? void 0 : lt.elements.floating, X); }); ($e || ae && ["click", "mousedown"].includes(ae.type)) && m.domReference.current && Zv(m.domReference.current); const ke = ge(); queueMicrotask(() => { // eslint-disable-next-line react-hooks/exhaustive-deps I.current && !F.current && pn(ke) && // If the focus moved somewhere else after mount, avoid returning focus // since it likely entered a different element which should be // respected: https://github.com/floating-ui/floating-ui/issues/2607 (!(ke !== X && X !== ce.body) || $e) && ke.focus({ preventScroll: re }), se.remove(); }); }; }, [r, A, U, I, x, m, v, $, y, H, S]), react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { queueMicrotask(() => { F.current = !1; }); }, [r]), Nt(() => { if (!r && N) return N.setFocusManagerState({ modal: c, closeOnFocusOut: d, open: p, onOpenChange: g, refs: m }), () => { N.setFocusManagerState(null); }; }, [r, N, c, p, g, m, d]), Nt(() => { if (r || !U || typeof MutationObserver != "function" || _) return; const re = () => { const oe = U.getAttribute("tabindex"), fe = V(), ae = Pi(Kn(A)), ee = fe.indexOf(ae); ee !== -1 && (z.current = ee), C.current.includes("floating") || ae !== m.domReference.current && fe.length === 0 ? oe !== "0" && U.setAttribute("tabindex", "0") : oe !== "-1" && U.setAttribute("tabindex", "-1"); }; re(); const ce = new MutationObserver(re); return ce.observe(U, { childList: !0, subtree: !0, attributes: !0 }), () => { ce.disconnect(); }; }, [r, A, U, m, C, V, _]); function Q(re) { return r || !f || !c ? null : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(UG, { ref: re === "start" ? D : j, onClick: (ce) => g(!1, ce.nativeEvent) }, typeof f == "string" ? f : "Dismiss"); } const ne = !r && P && (c ? !O : !0) && (H || c); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, ne && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(xp, { "data-type": "inside", ref: N == null ? void 0 : N.beforeInsideRef, onFocus: (re) => { if (c) { const oe = Y(); xa(i[0] === "reference" ? oe[0] : oe[oe.length - 1]); } else if (N != null && N.preserveTabOrder && N.portalNode) if (F.current = !1, Hu(re, N.portalNode)) { const oe = PD() || S; oe == null || oe.focus(); } else { var ce; (ce = N.beforeOutsideRef.current) == null || ce.focus(); } } }), !O && Q("start"), n, Q("end"), ne && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(xp, { "data-type": "inside", ref: N == null ? void 0 : N.afterInsideRef, onFocus: (re) => { if (c) xa(Y()[0]); else if (N != null && N.preserveTabOrder && N.portalNode) if (d && (F.current = !0), Hu(re, N.portalNode)) { const oe = CD() || S; oe == null || oe.focus(); } else { var ce; (ce = N.afterOutsideRef.current) == null || ce.focus(); } } })); } function BT(e) { return pn(e.target) && e.target.tagName === "BUTTON"; } function FT(e) { return n1(e); } function c1(e, t) { t === void 0 && (t = {}); const { open: n, onOpenChange: r, dataRef: i, elements: { domReference: o } } = e, { enabled: a = !0, event: s = "click", toggle: l = !0, ignoreMouse: c = !1, keyboardHandlers: f = !0, stickIfOpen: d = !0 } = t, p = react__WEBPACK_IMPORTED_MODULE_1__.useRef(), m = react__WEBPACK_IMPORTED_MODULE_1__.useRef(!1), y = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ onPointerDown(g) { p.current = g.pointerType; }, onMouseDown(g) { const v = p.current; g.button === 0 && s !== "click" && (uf(v, !0) && c || (n && l && (!(i.current.openEvent && d) || i.current.openEvent.type === "mousedown") ? r(!1, g.nativeEvent, "click") : (g.preventDefault(), r(!0, g.nativeEvent, "click")))); }, onClick(g) { const v = p.current; if (s === "mousedown" && p.current) { p.current = void 0; return; } uf(v, !0) && c || (n && l && (!(i.current.openEvent && d) || i.current.openEvent.type === "click") ? r(!1, g.nativeEvent, "click") : r(!0, g.nativeEvent, "click")); }, onKeyDown(g) { p.current = void 0, !(g.defaultPrevented || !f || BT(g)) && (g.key === " " && !FT(o) && (g.preventDefault(), m.current = !0), g.key === "Enter" && r(!(n && l), g.nativeEvent, "click")); }, onKeyUp(g) { g.defaultPrevented || !f || BT(g) || FT(o) || g.key === " " && m.current && (m.current = !1, r(!(n && l), g.nativeEvent, "click")); } }), [i, o, s, c, f, r, n, d, l]); return react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => a ? { reference: y } : {}, [a, y]); } const KG = { pointerdown: "onPointerDown", mousedown: "onMouseDown", click: "onClick" }, GG = { pointerdown: "onPointerDownCapture", mousedown: "onMouseDownCapture", click: "onClickCapture" }, WT = (e) => { var t, n; return { escapeKey: typeof e == "boolean" ? e : (t = e == null ? void 0 : e.escapeKey) != null ? t : !1, outsidePress: typeof e == "boolean" ? e : (n = e == null ? void 0 : e.outsidePress) != null ? n : !0 }; }; function fg(e, t) { t === void 0 && (t = {}); const { open: n, onOpenChange: r, elements: i, dataRef: o } = e, { enabled: a = !0, escapeKey: s = !0, outsidePress: l = !0, outsidePressEvent: c = "pointerdown", referencePress: f = !1, referencePressEvent: d = "pointerdown", ancestorScroll: p = !1, bubbles: m, capture: y } = t, g = ud(), v = Nn(typeof l == "function" ? l : () => !1), x = typeof l == "function" ? v : l, w = react__WEBPACK_IMPORTED_MODULE_1__.useRef(!1), S = react__WEBPACK_IMPORTED_MODULE_1__.useRef(!1), { escapeKey: A, outsidePress: _ } = WT(m), { escapeKey: O, outsidePress: P } = WT(y), C = react__WEBPACK_IMPORTED_MODULE_1__.useRef(!1), k = Nn((F) => { var W; if (!n || !a || !s || F.key !== "Escape" || C.current) return; const z = (W = o.current.floatingContext) == null ? void 0 : W.nodeId, H = g ? Cs(g.nodesRef.current, z) : []; if (!A && (F.stopPropagation(), H.length > 0)) { let U = !0; if (H.forEach((V) => { var Y; if ((Y = V.context) != null && Y.open && !V.context.dataRef.current.__escapeKeyBubbles) { U = !1; return; } }), !U) return; } r(!1, gK(F) ? F.nativeEvent : F, "escape-key"); }), I = Nn((F) => { var W; const z = () => { var H; k(F), (H = Ao(F)) == null || H.removeEventListener("keydown", z); }; (W = Ao(F)) == null || W.addEventListener("keydown", z); }), $ = Nn((F) => { var W; const z = w.current; w.current = !1; const H = S.current; if (S.current = !1, c === "click" && H || z || typeof x == "function" && !x(F)) return; const U = Ao(F), V = "[" + js("inert") + "]", Y = Kn(i.floating).querySelectorAll(V); let Q = Ct(U) ? U : null; for (; Q && !Da(Q); ) { const oe = Fo(Q); if (Da(oe) || !Ct(oe)) break; Q = oe; } if (Y.length && Ct(U) && !yK(U) && // Clicked on a direct ancestor (e.g. FloatingOverlay). !hn(U, i.floating) && // If the target root element contains none of the markers, then the // element was injected after the floating element rendered. Array.from(Y).every((oe) => !hn(Q, oe))) return; if (pn(U) && j) { const oe = U.clientWidth > 0 && U.scrollWidth > U.clientWidth, fe = U.clientHeight > 0 && U.scrollHeight > U.clientHeight; let ae = fe && F.offsetX > U.clientWidth; if (fe && Hr(U).direction === "rtl" && (ae = F.offsetX <= U.offsetWidth - U.clientWidth), ae || oe && F.offsetY > U.clientHeight) return; } const ne = (W = o.current.floatingContext) == null ? void 0 : W.nodeId, re = g && Cs(g.nodesRef.current, ne).some((oe) => { var fe; return Hv(F, (fe = oe.context) == null ? void 0 : fe.elements.floating); }); if (Hv(F, i.floating) || Hv(F, i.domReference) || re) return; const ce = g ? Cs(g.nodesRef.current, ne) : []; if (ce.length > 0) { let oe = !0; if (ce.forEach((fe) => { var ae; if ((ae = fe.context) != null && ae.open && !fe.context.dataRef.current.__outsidePressBubbles) { oe = !1; return; } }), !oe) return; } r(!1, F, "outside-press"); }), N = Nn((F) => { var W; const z = () => { var H; $(F), (H = Ao(F)) == null || H.removeEventListener(c, z); }; (W = Ao(F)) == null || W.addEventListener(c, z); }); react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { if (!n || !a) return; o.current.__escapeKeyBubbles = A, o.current.__outsidePressBubbles = _; let F = -1; function W(Y) { r(!1, Y, "ancestor-scroll"); } function z() { window.clearTimeout(F), C.current = !0; } function H() { F = window.setTimeout( () => { C.current = !1; }, // 0ms or 1ms don't work in Safari. 5ms appears to consistently work. // Only apply to WebKit for the test to remain 0ms. tg() ? 5 : 0 ); } const U = Kn(i.floating); s && (U.addEventListener("keydown", O ? I : k, O), U.addEventListener("compositionstart", z), U.addEventListener("compositionend", H)), x && U.addEventListener(c, P ? N : $, P); let V = []; return p && (Ct(i.domReference) && (V = Ca(i.domReference)), Ct(i.floating) && (V = V.concat(Ca(i.floating))), !Ct(i.reference) && i.reference && i.reference.contextElement && (V = V.concat(Ca(i.reference.contextElement)))), V = V.filter((Y) => { var Q; return Y !== ((Q = U.defaultView) == null ? void 0 : Q.visualViewport); }), V.forEach((Y) => { Y.addEventListener("scroll", W, { passive: !0 }); }), () => { s && (U.removeEventListener("keydown", O ? I : k, O), U.removeEventListener("compositionstart", z), U.removeEventListener("compositionend", H)), x && U.removeEventListener(c, P ? N : $, P), V.forEach((Y) => { Y.removeEventListener("scroll", W); }), window.clearTimeout(F); }; }, [o, i, s, x, c, n, r, p, a, A, _, k, O, I, $, P, N]), react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { w.current = !1; }, [x, c]); const D = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ onKeyDown: k, [KG[d]]: (F) => { f && r(!1, F.nativeEvent, "reference-press"); } }), [k, r, f, d]), j = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ onKeyDown: k, onMouseDown() { S.current = !0; }, onMouseUp() { S.current = !0; }, [GG[c]]: () => { w.current = !0; } }), [k, c]); return react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => a ? { reference: D, floating: j } : {}, [a, D, j]); } function YG(e) { const { open: t = !1, onOpenChange: n, elements: r } = e, i = sg(), o = react__WEBPACK_IMPORTED_MODULE_1__.useRef({}), [a] = react__WEBPACK_IMPORTED_MODULE_1__.useState(() => NG()), s = lg() != null; if (true) { const m = r.reference; m && !Ct(m) && kG("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead."); } const [l, c] = react__WEBPACK_IMPORTED_MODULE_1__.useState(r.reference), f = Nn((m, y, g) => { o.current.openEvent = m ? y : void 0, a.emit("openchange", { open: m, event: y, reason: g, nested: s }), n == null || n(m, y, g); }), d = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ setPositionReference: c }), []), p = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ reference: l || r.reference || null, floating: r.floating || null, domReference: r.reference }), [l, r.reference, r.floating]); return react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ dataRef: o, open: t, onOpenChange: f, elements: p, events: a, floatingId: i, refs: d }), [t, f, p, a, i, d]); } function dg(e) { e === void 0 && (e = {}); const { nodeId: t } = e, n = YG({ ...e, elements: { reference: null, floating: null, ...e.elements } }), r = e.rootContext || n, i = r.elements, [o, a] = react__WEBPACK_IMPORTED_MODULE_1__.useState(null), [s, l] = react__WEBPACK_IMPORTED_MODULE_1__.useState(null), f = (i == null ? void 0 : i.domReference) || o, d = react__WEBPACK_IMPORTED_MODULE_1__.useRef(null), p = ud(); Nt(() => { f && (d.current = f); }, [f]); const m = vG({ ...e, elements: { ...i, ...s && { reference: s } } }), y = react__WEBPACK_IMPORTED_MODULE_1__.useCallback((S) => { const A = Ct(S) ? { getBoundingClientRect: () => S.getBoundingClientRect(), contextElement: S } : S; l(A), m.refs.setReference(A); }, [m.refs]), g = react__WEBPACK_IMPORTED_MODULE_1__.useCallback((S) => { (Ct(S) || S === null) && (d.current = S, a(S)), (Ct(m.refs.reference.current) || m.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to // `null` to support `positionReference` + an unstable `reference` // callback ref. S !== null && !Ct(S)) && m.refs.setReference(S); }, [m.refs]), v = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ ...m.refs, setReference: g, setPositionReference: y, domReference: d }), [m.refs, g, y]), x = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ ...m.elements, domReference: f }), [m.elements, f]), w = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ ...m, ...r, refs: v, elements: x, nodeId: t }), [m, v, x, t, r]); return Nt(() => { r.dataRef.current.floatingContext = w; const S = p == null ? void 0 : p.nodesRef.current.find((A) => A.id === t); S && (S.context = w); }), react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ ...m, context: w, refs: v, elements: x }), [m, v, x, w]); } function qG(e, t) { t === void 0 && (t = {}); const { open: n, onOpenChange: r, events: i, dataRef: o, elements: a } = e, { enabled: s = !0, visibleOnly: l = !0 } = t, c = react__WEBPACK_IMPORTED_MODULE_1__.useRef(!1), f = react__WEBPACK_IMPORTED_MODULE_1__.useRef(), d = react__WEBPACK_IMPORTED_MODULE_1__.useRef(!0); react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { if (!s) return; const m = Or(a.domReference); function y() { !n && pn(a.domReference) && a.domReference === Pi(Kn(a.domReference)) && (c.current = !0); } function g() { d.current = !0; } return m.addEventListener("blur", y), m.addEventListener("keydown", g, !0), () => { m.removeEventListener("blur", y), m.removeEventListener("keydown", g, !0); }; }, [a.domReference, n, s]), react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { if (!s) return; function m(y) { let { reason: g } = y; (g === "reference-press" || g === "escape-key") && (c.current = !0); } return i.on("openchange", m), () => { i.off("openchange", m); }; }, [i, s]), react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => () => { clearTimeout(f.current); }, []); const p = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ onPointerDown(m) { e1(m.nativeEvent) || (d.current = !1); }, onMouseLeave() { c.current = !1; }, onFocus(m) { if (c.current) return; const y = Ao(m.nativeEvent); if (l && Ct(y)) try { if (t1() && cD()) throw Error(); if (!y.matches(":focus-visible")) return; } catch { if (!d.current && !n1(y)) return; } r(!0, m.nativeEvent, "focus"); }, onBlur(m) { c.current = !1; const y = m.relatedTarget, g = m.nativeEvent, v = Ct(y) && y.hasAttribute(js("focus-guard")) && y.getAttribute("data-type") === "outside"; f.current = window.setTimeout(() => { var x; const w = Pi(a.domReference ? a.domReference.ownerDocument : document); !y && w === a.domReference || hn((x = o.current.floatingContext) == null ? void 0 : x.refs.floating.current, w) || hn(a.domReference, w) || v || r(!1, g, "focus"); }); } }), [o, a.domReference, r, l]); return react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => s ? { reference: p } : {}, [s, p]); } const zT = "active", VT = "selected"; function Jv(e, t, n) { const r = /* @__PURE__ */ new Map(), i = n === "item"; let o = e; if (i && e) { const { [zT]: a, [VT]: s, ...l } = e; o = l; } return { ...n === "floating" && { tabIndex: -1, [b0]: "" }, ...o, ...t.map((a) => { const s = a ? a[n] : null; return typeof s == "function" ? e ? s(e) : null : s; }).concat(e).reduce((a, s) => (s && Object.entries(s).forEach((l) => { let [c, f] = l; if (!(i && [zT, VT].includes(c))) if (c.indexOf("on") === 0) { if (r.has(c) || r.set(c, []), typeof f == "function") { var d; (d = r.get(c)) == null || d.push(f), a[c] = function() { for (var p, m = arguments.length, y = new Array(m), g = 0; g < m; g++) y[g] = arguments[g]; return (p = r.get(c)) == null ? void 0 : p.map((v) => v(...y)).find((v) => v !== void 0); }; } } else a[c] = f; }), a), {}) }; } function hg(e) { e === void 0 && (e = []); const t = e.map((s) => s == null ? void 0 : s.reference), n = e.map((s) => s == null ? void 0 : s.floating), r = e.map((s) => s == null ? void 0 : s.item), i = react__WEBPACK_IMPORTED_MODULE_1__.useCallback( (s) => Jv(s, e, "reference"), // eslint-disable-next-line react-hooks/exhaustive-deps t ), o = react__WEBPACK_IMPORTED_MODULE_1__.useCallback( (s) => Jv(s, e, "floating"), // eslint-disable-next-line react-hooks/exhaustive-deps n ), a = react__WEBPACK_IMPORTED_MODULE_1__.useCallback( (s) => Jv(s, e, "item"), // eslint-disable-next-line react-hooks/exhaustive-deps r ); return react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ getReferenceProps: i, getFloatingProps: o, getItemProps: a }), [i, o, a]); } let UT = !1; function pg(e, t, n) { switch (e) { case "vertical": return t; case "horizontal": return n; default: return t || n; } } function HT(e, t) { return pg(t, e === l1 || e === cd, e === Ea || e === ka); } function Qv(e, t, n) { return pg(t, e === cd, n ? e === Ea : e === ka) || e === "Enter" || e === " " || e === ""; } function XG(e, t, n) { return pg(t, n ? e === Ea : e === ka, e === cd); } function KT(e, t, n) { return pg(t, n ? e === ka : e === Ea, e === l1); } function ZG(e, t) { const { open: n, onOpenChange: r, elements: i } = e, { listRef: o, activeIndex: a, onNavigate: s = () => { }, enabled: l = !0, selectedIndex: c = null, allowEscape: f = !1, loop: d = !1, nested: p = !1, rtl: m = !1, virtual: y = !1, focusItemOnOpen: g = "auto", focusItemOnHover: v = !0, openOnArrowKeyDown: x = !0, disabledIndices: w = void 0, orientation: S = "vertical", cols: A = 1, scrollItemIntoView: _ = !0, virtualItemRef: O, itemSizes: P, dense: C = !1 } = t; true && (f && (d || op("`useListNavigation` looping must be enabled to allow escaping."), y || op("`useListNavigation` must be virtual to allow escaping.")), S === "vertical" && A > 1 && op("In grid list navigation mode (`cols` > 1), the `orientation` should", 'be either "horizontal" or "both".')); const k = MD(i.floating), I = Yn(k), $ = lg(), N = ud(), D = Nn(s), j = m0(i.domReference), F = react__WEBPACK_IMPORTED_MODULE_1__.useRef(g), W = react__WEBPACK_IMPORTED_MODULE_1__.useRef(c ?? -1), z = react__WEBPACK_IMPORTED_MODULE_1__.useRef(null), H = react__WEBPACK_IMPORTED_MODULE_1__.useRef(!0), U = react__WEBPACK_IMPORTED_MODULE_1__.useRef(D), V = react__WEBPACK_IMPORTED_MODULE_1__.useRef(!!i.floating), Y = react__WEBPACK_IMPORTED_MODULE_1__.useRef(n), Q = react__WEBPACK_IMPORTED_MODULE_1__.useRef(!1), ne = react__WEBPACK_IMPORTED_MODULE_1__.useRef(!1), re = Yn(w), ce = Yn(n), oe = Yn(_), fe = Yn(c), [ae, ee] = react__WEBPACK_IMPORTED_MODULE_1__.useState(), [se, ge] = react__WEBPACK_IMPORTED_MODULE_1__.useState(), X = Nn(function(Ie, ct, Oe) { Oe === void 0 && (Oe = !1); function Ge(mt) { y ? (ee(mt.id), N == null || N.events.emit("virtualfocus", mt), O && (O.current = mt)) : xa(mt, { preventScroll: !0, // Mac Safari does not move the virtual cursor unless the focus call // is sync. However, for the very first focus call, we need to wait // for the position to be ready in order to prevent unwanted // scrolling. This means the virtual cursor will not move to the first // item when first opening the floating element, but will on // subsequent calls. `preventScroll` is supported in modern Safari, // so we can use that instead. // iOS Safari must be async or the first item will not be focused. sync: cD() && t1() ? UT || Q.current : !1 }); } const Zt = Ie.current[ct.current]; Zt && Ge(Zt), requestAnimationFrame(() => { const mt = Ie.current[ct.current] || Zt; if (!mt) return; Zt || Ge(mt); const en = oe.current; en && de && (Oe || !H.current) && (mt.scrollIntoView == null || mt.scrollIntoView(typeof en == "boolean" ? { block: "nearest", inline: "nearest" } : en)); }); }); Nt(() => { document.createElement("div").focus({ get preventScroll() { return UT = !0, !1; } }); }, []), Nt(() => { l && (n && i.floating ? F.current && c != null && (ne.current = !0, W.current = c, D(c)) : V.current && (W.current = -1, U.current(null))); }, [l, n, i.floating, c, D]), Nt(() => { if (l && n && i.floating) if (a == null) { if (Q.current = !1, fe.current != null) return; if (V.current && (W.current = -1, X(o, W)), (!Y.current || !V.current) && F.current && (z.current != null || F.current === !0 && z.current == null)) { let Ie = 0; const ct = () => { o.current[0] == null ? (Ie < 2 && (Ie ? requestAnimationFrame : queueMicrotask)(ct), Ie++) : (W.current = z.current == null || Qv(z.current, S, m) || p ? Yv(o, re.current) : CT(o, re.current), z.current = null, D(W.current)); }; ct(); } } else Uu(o, a) || (W.current = a, X(o, W, ne.current), ne.current = !1); }, [l, n, i.floating, a, fe, p, o, S, m, D, X, re]), Nt(() => { var Ie; if (!l || i.floating || !N || y || !V.current) return; const ct = N.nodesRef.current, Oe = (Ie = ct.find((mt) => mt.id === $)) == null || (Ie = Ie.context) == null ? void 0 : Ie.elements.floating, Ge = Pi(Kn(i.floating)), Zt = ct.some((mt) => mt.context && hn(mt.context.elements.floating, Ge)); Oe && !Zt && H.current && Oe.focus({ preventScroll: !0 }); }, [l, i.floating, N, $, y]), Nt(() => { if (!l || !N || !y || $) return; function Ie(ct) { ge(ct.id), O && (O.current = ct); } return N.events.on("virtualfocus", Ie), () => { N.events.off("virtualfocus", Ie); }; }, [l, N, y, $, O]), Nt(() => { U.current = D, V.current = !!i.floating; }), Nt(() => { n || (z.current = null); }, [n]), Nt(() => { Y.current = n; }, [n]); const $e = a != null, de = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => { function Ie(Oe) { if (!n) return; const Ge = o.current.indexOf(Oe); Ge !== -1 && D(Ge); } return { onFocus(Oe) { let { currentTarget: Ge } = Oe; Ie(Ge); }, onClick: (Oe) => { let { currentTarget: Ge } = Oe; return Ge.focus({ preventScroll: !0 }); }, // Safari ...v && { onMouseMove(Oe) { let { currentTarget: Ge } = Oe; Ie(Ge); }, onPointerLeave(Oe) { let { pointerType: Ge } = Oe; !H.current || Ge === "touch" || (W.current = -1, X(o, W), D(null), y || xa(I.current, { preventScroll: !0 })); } } }; }, [n, I, X, v, o, D, y]), ke = Nn((Ie) => { if (H.current = !1, Q.current = !0, Ie.which === 229 || !ce.current && Ie.currentTarget === I.current) return; if (p && KT(Ie.key, S, m)) { Un(Ie), r(!1, Ie.nativeEvent, "list-navigation"), pn(i.domReference) && (y ? N == null || N.events.emit("virtualfocus", i.domReference) : i.domReference.focus()); return; } const ct = W.current, Oe = Yv(o, w), Ge = CT(o, w); if (j || (Ie.key === "Home" && (Un(Ie), W.current = Oe, D(W.current)), Ie.key === "End" && (Un(Ie), W.current = Ge, D(W.current))), A > 1) { const Zt = P || Array.from({ length: o.current.length }, () => ({ width: 1, height: 1 })), mt = OG(Zt, A, C), en = mt.findIndex((yn) => yn != null && !ip(o.current, yn, w)), Yr = mt.reduce((yn, mr, tt) => mr != null && !ip(o.current, mr, w) ? tt : yn, -1), Cn = mt[SG({ current: mt.map((yn) => yn != null ? o.current[yn] : null) }, { event: Ie, orientation: S, loop: d, rtl: m, cols: A, // treat undefined (empty grid spaces) as disabled indices so we // don't end up in them disabledIndices: TG([...w || o.current.map((yn, mr) => ip(o.current, mr) ? mr : void 0), void 0], mt), minIndex: en, maxIndex: Yr, prevIndex: AG( W.current > Ge ? Oe : W.current, Zt, mt, A, // use a corner matching the edge closest to the direction // we're moving in so we don't end up in the same item. Prefer // top/left over bottom/right. Ie.key === cd ? "bl" : Ie.key === (m ? Ea : ka) ? "tr" : "tl" ), stopEvent: !0 })]; if (Cn != null && (W.current = Cn, D(W.current)), S === "both") return; } if (HT(Ie.key, S)) { if (Un(Ie), n && !y && Pi(Ie.currentTarget.ownerDocument) === Ie.currentTarget) { W.current = Qv(Ie.key, S, m) ? Oe : Ge, D(W.current); return; } Qv(Ie.key, S, m) ? d ? W.current = ct >= Ge ? f && ct !== o.current.length ? -1 : Oe : Qn(o, { startingIndex: ct, disabledIndices: w }) : W.current = Math.min(Ge, Qn(o, { startingIndex: ct, disabledIndices: w })) : d ? W.current = ct <= Oe ? f && ct !== -1 ? o.current.length : Ge : Qn(o, { startingIndex: ct, decrement: !0, disabledIndices: w }) : W.current = Math.max(Oe, Qn(o, { startingIndex: ct, decrement: !0, disabledIndices: w })), Uu(o, W.current) ? D(null) : D(W.current); } }), it = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => y && n && $e && { "aria-activedescendant": se || ae }, [y, n, $e, se, ae]), lt = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ "aria-orientation": S === "both" ? void 0 : S, ...!m0(i.domReference) && it, onKeyDown: ke, onPointerMove() { H.current = !0; } }), [it, ke, i.domReference, S]), Xn = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => { function Ie(Oe) { g === "auto" && lD(Oe.nativeEvent) && (F.current = !0); } function ct(Oe) { F.current = g, g === "auto" && e1(Oe.nativeEvent) && (F.current = !0); } return { ...it, onKeyDown(Oe) { H.current = !1; const Ge = Oe.key.startsWith("Arrow"), Zt = ["Home", "End"].includes(Oe.key), mt = Ge || Zt, en = XG(Oe.key, S, m), Yr = KT(Oe.key, S, m), Cn = HT(Oe.key, S), yn = (p ? en : Cn) || Oe.key === "Enter" || Oe.key.trim() === ""; if (y && n) { const St = N == null ? void 0 : N.nodesRef.current.find((qr) => qr.parentId == null), jn = N && St ? jG(N.nodesRef.current, St.id) : null; if (mt && jn && O) { const qr = new KeyboardEvent("keydown", { key: Oe.key, bubbles: !0 }); if (en || Yr) { var mr, tt; const lo = ((mr = jn.context) == null ? void 0 : mr.elements.domReference) === Oe.currentTarget, un = Yr && !lo ? (tt = jn.context) == null ? void 0 : tt.elements.domReference : en ? o.current.find((Pr) => (Pr == null ? void 0 : Pr.id) === ae) : null; un && (Un(Oe), un.dispatchEvent(qr), ge(void 0)); } if ((Cn || Zt) && jn.context && jn.context.open && jn.parentId && Oe.currentTarget !== jn.context.elements.domReference) { var Kt; Un(Oe), (Kt = jn.context.elements.domReference) == null || Kt.dispatchEvent(qr); return; } } return ke(Oe); } if (!(!n && !x && Ge)) { if (yn && (z.current = p && Cn ? null : Oe.key), p) { en && (Un(Oe), n ? (W.current = Yv(o, re.current), D(W.current)) : r(!0, Oe.nativeEvent, "list-navigation")); return; } Cn && (c != null && (W.current = c), Un(Oe), !n && x ? r(!0, Oe.nativeEvent, "list-navigation") : ke(Oe), n && D(W.current)); } }, onFocus() { n && !y && D(null); }, onPointerDown: ct, onMouseDown: Ie, onClick: Ie }; }, [ae, it, ke, re, g, o, p, D, r, n, x, S, m, c, N, y, O]); return react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => l ? { reference: Xn, floating: lt, item: de } : {}, [l, Xn, lt, de]); } const JG = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]); function u1(e, t) { var n; t === void 0 && (t = {}); const { open: r, floatingId: i } = e, { enabled: o = !0, role: a = "dialog" } = t, s = (n = JG.get(a)) != null ? n : a, l = sg(), f = lg() != null, d = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => s === "tooltip" || a === "label" ? { ["aria-" + (a === "label" ? "labelledby" : "describedby")]: r ? i : void 0 } : { "aria-expanded": r ? "true" : "false", "aria-haspopup": s === "alertdialog" ? "dialog" : s, "aria-controls": r ? i : void 0, ...s === "listbox" && { role: "combobox" }, ...s === "menu" && { id: l }, ...s === "menu" && f && { role: "menuitem" }, ...a === "select" && { "aria-autocomplete": "none" }, ...a === "combobox" && { "aria-autocomplete": "list" } }, [s, i, f, r, l, a]), p = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => { const y = { id: i, ...s && { role: s } }; return s === "tooltip" || a === "label" ? y : { ...y, ...s === "menu" && { "aria-labelledby": l } }; }, [s, i, l, a]), m = react__WEBPACK_IMPORTED_MODULE_1__.useCallback((y) => { let { active: g, selected: v } = y; const x = { role: "option", ...g && { id: i + "-option" } }; switch (a) { case "select": return { ...x, "aria-selected": g && v }; case "combobox": return { ...x, ...g && { "aria-selected": !0 } }; } return {}; }, [i, a]); return react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => o ? { reference: d, floating: p, item: m } : {}, [o, d, p, m]); } const GT = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, n) => (n ? "-" : "") + t.toLowerCase()); function wl(e, t) { return typeof e == "function" ? e(t) : e; } function QG(e, t) { const [n, r] = react__WEBPACK_IMPORTED_MODULE_1__.useState(e); return e && !n && r(!0), react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { if (!e && n) { const i = setTimeout(() => r(!1), t); return () => clearTimeout(i); } }, [e, n, t]), n; } function eY(e, t) { t === void 0 && (t = {}); const { open: n, elements: { floating: r } } = e, { duration: i = 250 } = t, a = (typeof i == "number" ? i : i.close) || 0, [s, l] = react__WEBPACK_IMPORTED_MODULE_1__.useState("unmounted"), c = QG(n, a); return !c && s === "close" && l("unmounted"), Nt(() => { if (r) { if (n) { l("initial"); const f = requestAnimationFrame(() => { l("open"); }); return () => { cancelAnimationFrame(f); }; } l("close"); } }, [n, r]), { isMounted: c, status: s }; } function ND(e, t) { t === void 0 && (t = {}); const { initial: n = { opacity: 0 }, open: r, close: i, common: o, duration: a = 250 } = t, s = e.placement, l = s.split("-")[0], c = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ side: l, placement: s }), [l, s]), f = typeof a == "number", d = (f ? a : a.open) || 0, p = (f ? a : a.close) || 0, [m, y] = react__WEBPACK_IMPORTED_MODULE_1__.useState(() => ({ ...wl(o, c), ...wl(n, c) })), { isMounted: g, status: v } = eY(e, { duration: a }), x = Yn(n), w = Yn(r), S = Yn(i), A = Yn(o); return Nt(() => { const _ = wl(x.current, c), O = wl(S.current, c), P = wl(A.current, c), C = wl(w.current, c) || Object.keys(_).reduce((k, I) => (k[I] = "", k), {}); if (v === "initial" && y((k) => ({ transitionProperty: k.transitionProperty, ...P, ..._ })), v === "open" && y({ transitionProperty: Object.keys(C).map(GT).join(","), transitionDuration: d + "ms", ...P, ...C }), v === "close") { const k = O || _; y({ transitionProperty: Object.keys(k).map(GT).join(","), transitionDuration: p + "ms", ...P, ...k }); } }, [p, S, x, w, A, d, v, c]), { isMounted: g, styles: m }; } function tY(e, t) { var n; const { open: r, dataRef: i } = e, { listRef: o, activeIndex: a, onMatch: s, onTypingChange: l, enabled: c = !0, findMatch: f = null, resetMs: d = 750, ignoreKeys: p = [], selectedIndex: m = null } = t, y = react__WEBPACK_IMPORTED_MODULE_1__.useRef(), g = react__WEBPACK_IMPORTED_MODULE_1__.useRef(""), v = react__WEBPACK_IMPORTED_MODULE_1__.useRef((n = m ?? a) != null ? n : -1), x = react__WEBPACK_IMPORTED_MODULE_1__.useRef(null), w = Nn(s), S = Nn(l), A = Yn(f), _ = Yn(p); Nt(() => { r && (clearTimeout(y.current), x.current = null, g.current = ""); }, [r]), Nt(() => { if (r && g.current === "") { var I; v.current = (I = m ?? a) != null ? I : -1; } }, [r, m, a]); const O = Nn((I) => { I ? i.current.typing || (i.current.typing = I, S(I)) : i.current.typing && (i.current.typing = I, S(I)); }), P = Nn((I) => { function $(W, z, H) { const U = A.current ? A.current(z, H) : z.find((V) => (V == null ? void 0 : V.toLocaleLowerCase().indexOf(H.toLocaleLowerCase())) === 0); return U ? W.indexOf(U) : -1; } const N = o.current; if (g.current.length > 0 && g.current[0] !== " " && ($(N, N, g.current) === -1 ? O(!1) : I.key === " " && Un(I)), N == null || _.current.includes(I.key) || // Character key. I.key.length !== 1 || // Modifier key. I.ctrlKey || I.metaKey || I.altKey) return; r && I.key !== " " && (Un(I), O(!0)), N.every((W) => { var z, H; return W ? ((z = W[0]) == null ? void 0 : z.toLocaleLowerCase()) !== ((H = W[1]) == null ? void 0 : H.toLocaleLowerCase()) : !0; }) && g.current === I.key && (g.current = "", v.current = x.current), g.current += I.key, clearTimeout(y.current), y.current = setTimeout(() => { g.current = "", v.current = x.current, O(!1); }, d); const j = v.current, F = $(N, [...N.slice((j || 0) + 1), ...N.slice(0, (j || 0) + 1)], g.current); F !== -1 ? (w(F), x.current = F) : I.key !== " " && (g.current = "", O(!1)); }), C = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ onKeyDown: P }), [P]), k = react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => ({ onKeyDown: P, onKeyUp(I) { I.key === " " && O(!1); } }), [P, O]); return react__WEBPACK_IMPORTED_MODULE_1__.useMemo(() => c ? { reference: C, floating: k } : {}, [c, C, k]); } function YT(e, t) { const [n, r] = e; let i = !1; const o = t.length; for (let a = 0, s = o - 1; a < o; s = a++) { const [l, c] = t[a] || [0, 0], [f, d] = t[s] || [0, 0]; c >= r != d >= r && n <= (f - l) * (r - c) / (d - c) + l && (i = !i); } return i; } function nY(e, t) { return e[0] >= t.x && e[0] <= t.x + t.width && e[1] >= t.y && e[1] <= t.y + t.height; } function rY(e) { e === void 0 && (e = {}); const { buffer: t = 0.5, blockPointerEvents: n = !1, requireIntent: r = !0 } = e; let i, o = !1, a = null, s = null, l = performance.now(); function c(d, p) { const m = performance.now(), y = m - l; if (a === null || s === null || y === 0) return a = d, s = p, l = m, null; const g = d - a, v = p - s, w = Math.sqrt(g * g + v * v) / y; return a = d, s = p, l = m, w; } const f = (d) => { let { x: p, y: m, placement: y, elements: g, onClose: v, nodeId: x, tree: w } = d; return function(A) { function _() { clearTimeout(i), v(); } if (clearTimeout(i), !g.domReference || !g.floating || y == null || p == null || m == null) return; const { clientX: O, clientY: P } = A, C = [O, P], k = Ao(A), I = A.type === "mouseleave", $ = hn(g.floating, k), N = hn(g.domReference, k), D = g.domReference.getBoundingClientRect(), j = g.floating.getBoundingClientRect(), F = y.split("-")[0], W = p > j.right - j.width / 2, z = m > j.bottom - j.height / 2, H = nY(C, D), U = j.width > D.width, V = j.height > D.height, Y = (U ? D : j).left, Q = (U ? D : j).right, ne = (V ? D : j).top, re = (V ? D : j).bottom; if ($ && (o = !0, !I)) return; if (N && (o = !1), N && !I) { o = !0; return; } if (I && Ct(A.relatedTarget) && hn(g.floating, A.relatedTarget) || w && Cs(w.nodesRef.current, x).some((fe) => { let { context: ae } = fe; return ae == null ? void 0 : ae.open; })) return; if (F === "top" && m >= D.bottom - 1 || F === "bottom" && m <= D.top + 1 || F === "left" && p >= D.right - 1 || F === "right" && p <= D.left + 1) return _(); let ce = []; switch (F) { case "top": ce = [[Y, D.top + 1], [Y, j.bottom - 1], [Q, j.bottom - 1], [Q, D.top + 1]]; break; case "bottom": ce = [[Y, j.top + 1], [Y, D.bottom - 1], [Q, D.bottom - 1], [Q, j.top + 1]]; break; case "left": ce = [[j.right - 1, re], [j.right - 1, ne], [D.left + 1, ne], [D.left + 1, re]]; break; case "right": ce = [[D.right - 1, re], [D.right - 1, ne], [j.left + 1, ne], [j.left + 1, re]]; break; } function oe(fe) { let [ae, ee] = fe; switch (F) { case "top": { const se = [U ? ae + t / 2 : W ? ae + t * 4 : ae - t * 4, ee + t + 1], ge = [U ? ae - t / 2 : W ? ae + t * 4 : ae - t * 4, ee + t + 1], X = [[j.left, W || U ? j.bottom - t : j.top], [j.right, W ? U ? j.bottom - t : j.top : j.bottom - t]]; return [se, ge, ...X]; } case "bottom": { const se = [U ? ae + t / 2 : W ? ae + t * 4 : ae - t * 4, ee - t], ge = [U ? ae - t / 2 : W ? ae + t * 4 : ae - t * 4, ee - t], X = [[j.left, W || U ? j.top + t : j.bottom], [j.right, W ? U ? j.top + t : j.bottom : j.top + t]]; return [se, ge, ...X]; } case "left": { const se = [ae + t + 1, V ? ee + t / 2 : z ? ee + t * 4 : ee - t * 4], ge = [ae + t + 1, V ? ee - t / 2 : z ? ee + t * 4 : ee - t * 4]; return [...[[z || V ? j.right - t : j.left, j.top], [z ? V ? j.right - t : j.left : j.right - t, j.bottom]], se, ge]; } case "right": { const se = [ae - t, V ? ee + t / 2 : z ? ee + t * 4 : ee - t * 4], ge = [ae - t, V ? ee - t / 2 : z ? ee + t * 4 : ee - t * 4], X = [[z || V ? j.left + t : j.right, j.top], [z ? V ? j.left + t : j.right : j.left + t, j.bottom]]; return [se, ge, ...X]; } } } if (!YT([O, P], ce)) { if (o && !H) return _(); if (!I && r) { const fe = c(A.clientX, A.clientY); if (fe !== null && fe < 0.1) return _(); } YT([O, P], oe([p, m])) ? !o && r && (i = window.setTimeout(_, 40)) : _(); } }; }; return f.__options = { blockPointerEvents: n }, f; } const fd = "light", $D = "neutral", iY = "button", oY = ({ theme: e = fd, variant: t = $D }) => { let n = e === "light" ? "text-icon-secondary" : "text-icon-inverse"; return n = { info: e === "light" ? "text-support-info" : "text-support-info-inverse", success: e === "light" ? "text-support-success" : "text-support-success-inverse", warning: e === "light" ? "text-support-warning" : "text-support-warning-inverse", error: e === "light" ? "text-support-error" : "text-support-error-inverse" }[t] || n, n; }, wp = ({ icon: e, theme: t = fd, variant: n = $D }) => { var a; const r = "[&>svg]:h-5 [&>svg]:w-5", i = oY({ theme: t, variant: n }); if (e && (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(e)) return (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(e, { className: K( r, i, ((a = e == null ? void 0 : e.props) == null ? void 0 : a.className) ?? "" ) }); const o = { neutral: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(f0, { className: K(r, i) }), info: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(f0, { className: K(r, i) }), success: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(sd, { className: K(r, i) }), warning: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(iK, { className: K(r, i) }), error: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(nK, { className: K(r, i) }) }; return o[n] || o.neutral; }, x0 = ({ actionType: e = iY, onAction: t = () => { }, actionLabel: n = "", theme: r = fd }) => { const i = "focus:ring-0 focus:ring-offset-0 ring-offset-0 focus:outline-none"; let o = "text-button-primary border-button-primary hover:border-button-primary hover:text-button-primary-hover"; switch (r === "dark" && (o = "text-text-inverse border-text-inverse hover:border-text-inverse hover:text-text-inverse"), e) { case "button": return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Hn, { variant: "outline", size: "xs", onClick: t, className: K( "rounded", i, o, r === "dark" ? "bg-transparent hover:bg-transparent" : "bg-white hover:bg-white" ), children: n } ); case "link": return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Hn, { variant: "link", size: "xs", onClick: t, className: K(i, o), children: n } ); default: return null; } }, _p = ({ theme: e = fd, title: t = "", inline: n = !1 }) => t ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "span", { className: K( "block", { light: "text-text-primary", dark: "text-text-inverse" }[e], "text-sm leading-5 font-semibold", n ? "inline" : "block" ), children: t } ) : null, Sp = ({ theme: e = fd, content: t = "", inline: n = !1 }) => t ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "span", { className: K( { light: "text-text-primary", dark: "text-text-inverse" }[e], "block text-sm [&_*]:text-sm leading-5 [&_*]:leading-5 font-normal", n ? "inline" : "block" ), children: t } ) : null, w0 = (...e) => (t) => { e.forEach((n) => { typeof n == "function" ? n(t) : n && (n.current = t); }); }, f1 = ({ variant: e = "dark", // 'light' | 'dark'; placement: t = "bottom", // | 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'; title: n = "", content: r, arrow: i = !1, open: o, setOpen: a, children: s, className: l, tooltipPortalRoot: c, // Root element where the dropdown will be rendered. tooltipPortalId: f, // Id of the dropdown portal where the dropdown will be rendered. boundary: d = "clippingAncestors", strategy: p = "fixed", // 'fixed' | 'absolute'; offset: m = 8, // Offset option or number value. Default is 8. triggers: y = ["hover", "focus"], // 'click' | 'hover' | 'focus'; interactive: g = !1 }) => { const v = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)( () => typeof o == "boolean" && typeof a == "function", [o, a] ), [x, w] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1), S = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), { refs: A, floatingStyles: _, context: O } = dg({ open: v ? o : x, onOpenChange: v ? a : w, placement: t, strategy: p, middleware: [ og(m), ag({ boundary: d }), // Ensure this is correctly cast _D({ boundary: d }), // Ensure this is correctly cast xG({ element: S }) ], whileElementsMounted: ig }), P = c1(O, { enabled: !v && y.includes("click") }), C = IG(O, { move: !1, enabled: !v && y.includes("hover"), ...g && { handleClose: rY() } }), k = qG(O, { enabled: !v && y.includes("focus") }), I = fg(O), $ = u1(O, { role: "tooltip" }), { getReferenceProps: N, getFloatingProps: D } = hg([ P, C, k, I, $ ]), { isMounted: j, styles: F } = ND(O, { duration: 150, initial: { opacity: 0 }, open: { opacity: 1 }, close: { opacity: 0 } }), W = "absolute z-20 py-2 px-3 rounded-md text-xs leading-4 shadow-soft-shadow-lg", z = { light: "bg-tooltip-background-light text-text-primary", dark: "bg-tooltip-background-dark text-text-on-color" }[e], H = e === "dark" ? "text-tooltip-background-dark" : "text-tooltip-background-light"; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, { children: [ (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(s) && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, { children: (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(s, { ref: w0( s.ref, A.setReference ), className: K(s.props.className), ...N() }) }, "tooltip-reference"), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(ug, { id: f, root: c, children: j && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K( W, z, "max-w-80 w-fit", l ), ref: A.setFloating, style: { ..._, ...F }, ...D(), children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { children: [ !!n && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "span", { className: "font-semibold", children: n }, "tooltip-title" ), !!r && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: "font-normal", children: r }, "tooltip-content" ) ] }), i && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( MG, { ref: S, context: O, className: K("fill-current", H) } ) ] } ) }) ] }); }; f1.displayName = "Tooltip"; const DD = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)({}), ID = () => (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(DD), RD = ({ children: e, name: t, style: n = "simple", size: r = "md", value: i, defaultValue: o, by: a = "id", as: s = "div", onChange: l, className: c, disableGroup: f = !1, vertical: d = !1, columns: p = 4, multiSelection: m = !1, gapClassName: y = "gap-2" }) => { const g = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => typeof i < "u", [i]), v = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)( () => t || `radio-button-group-${io()}`, [t] ); let x; g ? x = i : m ? x = o ?? [] : x = o; const [w, S] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(x), A = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)( (P) => { if (m) S((C) => { const k = Array.isArray(C) && typeof P == "string" && C.includes(P); let I; return k ? I = C.filter( ($) => $ !== P ) : I = [ ...Array.isArray(C) ? C : [], ...typeof P == "string" ? [P] : [] ], typeof l == "function" && l(I), I; }); else { if (g || S(P), typeof l != "function") return; l(P); } }, [l] ); c = K( "grid grid-cols-4", BH[p], y, n === "tile" && "gap-0", d && "grid-cols-1", c ); const _ = K( n === "tile" ? "border border-border-subtle border-solid rounded-md shadow-sm" : "gap-6", c ), O = () => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( DD.Provider, { value: { name: v, value: g ? i : w, by: a, onChange: A, isControlled: g, disableAll: f, style: n, columns: p, multiSelection: m, size: r }, children: react__WEBPACK_IMPORTED_MODULE_1__.Children.map(e, (P) => (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(P) ? P : null) } ); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: n === "tile" ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: _, children: O() }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(s, { ...s === react__WEBPACK_IMPORTED_MODULE_1__.Fragment ? {} : { className: c }, children: O() }) }); }; RD.displayName = "RadioButton.Group"; const aY = ({ id: e, label: t, value: n, children: r, disabled: i, icon: o = null, inlineIcon: a = !1, hideSelection: s = !1, reversePosition: l = !1, borderOn: c = !1, borderOnActive: f = !0, badgeItem: d = null, useSwitch: p = !1, info: m = void 0, minWidth: y = !0, ...g }, v) => { var H, U; const { buttonWrapperClasses: x, ...w } = g, S = ID(), { name: A, value: _, by: O, onChange: P, disableAll: C, checked: k, multiSelection: I, size: $ = "md" // Default size to 'md' if not provided } = S, N = "primary", D = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => e || `radio-button-${io()}`, [e]), j = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)( () => C || i, [C, i] ), F = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => I ? Array.isArray(_) && _.includes(n) : typeof k < "u" ? k : typeof _ != typeof n ? !1 : typeof _ == "string" ? _ === n : Array.isArray(_) ? _.includes(n) : _[O] === n[O], [_, n, k]), W = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(t) ? t : t != null && t.heading ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K( !a && "space-y-1.5 mt-[2px]", l && (p ? "ml-10" : "ml-4"), a && "flex gap-2", a && !t.description && "items-center" ), children: [ o && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: o }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: K("space-y-1.5"), children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "p", { className: K( "text-text-primary font-medium m-0", sK[$], i && "text-text-disabled cursor-not-allowed" ), children: t.heading } ), t.description && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("p", { className: "text-text-tertiary text-sm font-normal leading-5 m-0", children: t.description }) ] }) ] } ) : null, [t]); if (S.style === "tile") return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( sY, { id: e, label: t, value: n, disabled: i, size: $, children: r } ); const z = () => { j || (I ? p && P(n, !F) : P(n)); }; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "label", { className: K( "inline-flex items-center relative cursor-pointer transition-all duration-300", !!t && "items-start justify-between", y && "min-w-[180px]", c && "border border-border-subtle border-solid rounded-md shadow-sm hover:ring-2 hover:ring-border-interactive", f && c && F && "ring-2 ring-border-interactive", $ === "sm" ? "px-3 py-3" : "px-4 py-4", "pr-12", j && "cursor-not-allowed opacity-40", x ), htmlFor: D, onClick: z, children: [ !!t && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "label", { className: K( "cursor-pointer", j && "cursor-not-allowed" ), htmlFor: D, children: W() } ), !!m && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "absolute mr-0.5 bottom-1.5 right-3", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(f1, { title: m == null ? void 0 : m.heading, content: m == null ? void 0 : m.description, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( f0, { className: K( "text-text-primary", (H = Uv[$]) == null ? void 0 : H.info ) } ) }) }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "label", { className: K( "absolute mr-0.5 right-3 flex items-center cursor-pointer rounded-full gap-2", l && "left-0", j && "cursor-not-allowed", a && "mr-3", p ? wT[$].switch : wT[$].radio ), onClick: z, children: [ !!d && d, !s && (p ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( J$, { defaultValue: !1, size: $, onChange: () => { I ? P(n, !F) : P(n); }, checked: F, ...w, "aria-label": (t == null ? void 0 : t.heading) ?? "Switch" } ) }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", { className: "relative p-0.5", children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "input", { ref: v, id: D, type: I ? "checkbox" : "radio", className: K( "peer flex relative cursor-pointer appearance-none transition-all m-0 before:content-[''] checked:before:content-[''] checked:before:hidden before:hidden !border-1.5 border-solid", !I && "rounded-full", bT[N].checkbox, Uv[$].checkbox, j && xT.checkbox ), name: A, value: n, onChange: (V) => P(V.target.value), checked: F, disabled: j, ...w } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "span", { className: K( "inline-flex items-center absolute top-2/4 left-2/4 -translate-y-2/4 -translate-x-2/4 text-white opacity-0 transition-opacity peer-checked:opacity-100", bT[N].icon, j && xT.icon ), children: I ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( sd, { className: $ === "sm" ? "size-3" : "size-4" } ) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "rounded-full bg-current", $ === "sm" && "mt-[0.5px]", (U = Uv[$]) == null ? void 0 : U.icon ) } ) } ) ] })) ] } ) ] } ); }, _0 = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(aY); _0.displayName = "RadioButton.Button"; const sY = ({ id: e, children: t, value: n, disabled: r, size: i = "md", ...o }) => { const a = ID(), { name: s, value: l, by: c, onChange: f, disableAll: d, checked: p } = a || {}, m = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => e || `radio-button-${io()}`, [e]), y = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)( () => d || r, [d, r] ), g = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => typeof p < "u" ? p : typeof l != typeof n ? !1 : typeof l == "string" ? l === n : Array.isArray(l) ? l.includes(n) : l && c ? l[c] === n[c] : !1, [l, n, p, c]), v = () => { f && f(n); }, w = K( uK, fK, dK, y ? "text-text-disabled cursor-not-allowed" : "", lK[i], cK ); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "button", { type: "button", id: m, "aria-label": "Radio Button", className: K( w, "first:rounded-tl first:rounded-bl first:border-0 first:border-r first:border-border-subtle last:rounded-tr last:rounded-br last:border-0", g && "bg-button-disabled" ), onClick: v, disabled: y, ...o, children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "input", { type: "hidden", value: n, name: s, checked: g, onChange: (S) => f == null ? void 0 : f(S.target.value) } ), t ] } ) }); }, KEe = Object.assign(_0, { Group: RD, Button: _0 }), mg = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)( ({ label: e = "", size: t = "sm", // xxs, xs, sm, md, lg className: n = "", type: r = "pill", // pill, rounded variant: i = "neutral", // neutral, red, yellow, green, blue, inverse icon: o = null, disabled: a = !1, onClose: s = () => { }, closable: l = !1, onMouseDown: c = () => { }, disableHover: f = !1 }, d) => { const p = "font-medium border-badge-border-gray flex items-center justify-center border border-solid box-border max-w-full transition-colors duration-150 ease-in-out", m = { xxs: "py-0.5 px-0.5 text-xs h-4", xs: "py-0.5 px-1 text-xs h-5", sm: "py-1 px-1.5 text-xs h-6", md: "py-1 px-1.5 text-sm h-7", lg: "py-1 px-1.5 text-base h-8" }, y = { pill: "rounded-full", rounded: "rounded" }, g = { neutral: "hover:bg-badge-hover-gray", red: "hover:bg-badge-hover-red", yellow: "hover:bg-badge-hover-yellow", green: "hover:bg-badge-hover-green", blue: "hover:bg-badge-hover-sky", inverse: "hover:bg-badge-hover-inverse", disabled: "hover:bg-badge-hover-disabled" }, v = { neutral: "bg-badge-background-gray text-badge-color-gray border-badge-border-gray", red: "bg-badge-background-red text-badge-color-red border-badge-border-red", yellow: "bg-badge-background-yellow text-badge-color-yellow border-badge-border-yellow", green: "bg-badge-background-green text-badge-color-green border-badge-border-green", blue: "bg-badge-background-sky text-badge-color-sky border-badge-border-sky", inverse: "bg-background-inverse text-text-inverse border-background-inverse", disabled: "bg-badge-background-disabled text-badge-color-disabled border-badge-border-disabled disabled cursor-not-allowed" }; let x = "", w = "group relative justify-center flex items-center cursor-pointer"; const S = { xxs: "[&>svg]:size-3", xs: "[&>svg]:size-3", sm: "[&>svg]:size-3", md: "[&>svg]:size-4", lg: "[&>svg]:size-5" }; return a ? (x = v.disabled, w += " cursor-not-allowed disabled") : x = v[i], e ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "span", { className: K( p, m[t], y[r], "gap-0.5", x, !f && g[i], n ), ref: d, children: [ o ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "span", { className: K( "justify-center flex items-center", S[t] ), children: o } ) : null, /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "px-1 truncate inline-block", children: e }), l && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "span", { className: K(w, S[t]), onMouseDown: c, role: "button", tabIndex: 0, ...!a && { onClick: s }, children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "sr-only", children: `Remove ${e}` }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)($a, {}), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "absolute -inset-1" }) ] } ) ] } ) : null; } ); mg.displayName = "Badge"; const lY = ({ id: e, defaultValue: t = "", value: n, size: r = "sm", // sm, md, lg className: i = "", disabled: o = !1, onChange: a = () => { }, error: s = !1, onError: l = () => { }, ...c }, f) => { const d = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => e || `input-textarea-${io()}`, [e]), p = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => typeof n < "u", [n]), [m, y] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(t), g = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)( () => p ? n : m, [p, n, m] ), v = (P) => { if (o) return; const C = P.target.value; p || y(C), typeof a == "function" && a(C); }, x = "py-2 rounded border border-solid border-border-subtle bg-field-secondary-background font-normal placeholder-text-tertiary text-text-primary focus:outline-none", w = { sm: "px-3 rounded text-xs", md: "px-3 rounded-md text-sm", lg: "px-4 rounded-lg text-base" }, S = o ? "hover:border-border-disabled" : "hover:border-border-strong", A = "focus:border-focus-border focus:ring-2 focus:ring-toggle-on focus:ring-offset-2", _ = s ? "focus:border-focus-error-border focus:ring-field-color-error border-focus-error-border" : ""; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "textarea", { ref: f, id: d, className: K( x, o ? "border-border-disabled bg-field-background-disabled cursor-not-allowed text-text-disabled" : "", w[r], A, S, _, i ), disabled: o, onChange: v, onInvalid: l, value: g(), ...c } ); }, cY = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(lY); cY.displayName = "TextArea"; const GEe = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)( ({ variant: e = "primary", size: t = "md", border: n = "subtle", src: r, alt: i, children: o, className: a, ...s }, l) => { const [c, f] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1), d = r && n === "none" ? "subtle" : n, p = "rounded-full overflow-hidden flex items-center justify-center", m = { white: "text-text-primary bg-background-primary", gray: "text-text-primary bg-background-secondary", primary: "text-text-on-color bg-background-brand", "primary-light": "text-text-primary bg-brand-background-50", dark: "text-text-on-color bg-button-secondary" }[e], y = { xxs: "size-5 [&>svg]:size-3 text-xs", xs: "size-6 [&>svg]:size-4 text-sm", sm: "size-8 [&>svg]:size-5 text-base", md: "size-10 [&>svg]:size-6 text-lg", lg: "size-12 [&>svg]:size-12 text-lg" }[t], g = { none: "", subtle: "ring-1 ring-border-transparent-subtle", ring: "ring ring-border-subtle" }[d], v = r ? "object-cover object-center" : "", x = () => { var _, O, P; if (r && c) { if (i && typeof i == "string") return (_ = i == null ? void 0 : i[0]) == null ? void 0 : _.toUpperCase(); if (o && typeof o == "string") return (O = o == null ? void 0 : o[0]) == null ? void 0 : O.toUpperCase(); if (!o && !i) return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(oK, {}); } return o ? typeof o == "string" ? (P = o == null ? void 0 : o[0]) == null ? void 0 : P.toUpperCase() : o : null; }, w = () => { f(!0); }, S = !r || c, A = S ? "div" : "img"; return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { f(!1); }, [r]), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( A, { ref: l, className: K( p, S && m, y, g, v, a ), ...S ? { children: x() } : { src: r, alt: i, onError: w }, ...s } ); } ), uY = ({ id: e, type: t = "text", defaultValue: n = "", value: r, size: i = "sm", // sm, md, lg className: o = "", disabled: a = !1, onChange: s = () => { }, error: l = !1, onError: c = () => { }, prefix: f = null, suffix: d = null, label: p = "", ...m }, y) => { const g = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), v = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => e || `input-${t}-${io()}`, [e]), x = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => typeof r < "u", [r]), [w, S] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(n), [A, _] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), O = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)( () => x ? r : w, [x, r, w] ), P = (ae) => { if (a) return; let ee; t === "file" ? (ee = ae.target.files, ee && ee.length > 0 ? _(ee[0].name) : _(null)) : ee = ae.target.value, !x && t !== "file" && S(ee), typeof s == "function" && s(ee); }, C = () => { _(null), g.current && (g.current.value = ""), s(null); }, k = "bg-field-secondary-background font-normal placeholder-text-tertiary text-text-primary w-full outline outline-1 outline-border-subtle border-none transition-[color,box-shadow,outline] duration-200", I = { xs: "px-2 py-1 rounded", sm: "p-3 py-2 rounded", md: "p-3.5 py-2.5 rounded-md", lg: "p-4 py-3 rounded-lg" }, $ = { xs: "text-xs font-medium", sm: "text-sm font-medium", md: "text-sm font-medium", lg: "text-base font-medium" }, N = { xs: "text-xs", sm: "text-xs", md: "text-sm", lg: "text-base" }, D = { sm: f ? "pl-8" : "", md: f ? "pl-9" : "", lg: f ? "pl-10" : "" }, j = { sm: d ? "pr-8" : "", md: d ? "pr-9" : "", lg: d ? "pr-10" : "" }, F = a ? "hover:outline-border-disabled" : "hover:outline-border-strong", W = "focus:outline-focus-border focus:ring-2 focus:ring-toggle-on focus:ring-offset-2", z = l ? "focus:outline-focus-error-border focus:ring-field-color-error outline-focus-error-border" : "", H = l ? "focus:outline-focus-error-border focus:ring-field-color-error outline-focus-error-border" : "", U = a ? "outline-border-disabled bg-field-background-disabled cursor-not-allowed text-text-disabled" : "", V = a ? "outline-border-disabled cursor-not-allowed text-text-disabled file:text-text-tertiary" : "", Y = "font-normal placeholder-text-tertiary text-text-primary pointer-events-none absolute inset-y-0 flex flex-1 items-center [&>svg]:h-4 [&>svg]:w-4", Q = a ? "font-normal placeholder-text-tertiary text-icon-disabled pointer-events-none absolute inset-y-0 flex flex-1 items-center" : "font-normal placeholder-text-tertiary text-field-placeholder pointer-events-none absolute inset-y-0 flex flex-1 items-center", ne = { xs: "[&>svg]:size-4", sm: "[&>svg]:size-4", md: "[&>svg]:size-5", lg: "[&>svg]:size-6" }, re = () => f ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: K(Y, "left-0 pl-3", N[i]), children: f }) : null, ce = () => t === "file" ? A ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( Q, "right-0 pr-3 cursor-pointer z-20 pointer-events-auto", ne[i] ), onClick: C, role: "button", tabIndex: 0, onKeyDown: (ae) => { (ae.key === "Enter" || ae.key === " ") && C(); }, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)($a, {}) } ) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( Q, "right-0 pr-3", ne[i] ), children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(vT, {}) } ) : d ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: K(Y, "right-0 pr-3", N[i]), children: d }) : null, oe = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => p ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( to, { className: K($[i]), htmlFor: v, ...(m == null ? void 0 : m.required) && { required: !0 }, children: p } ) : null, [p, i, v]), fe = A ? "file:border-0 file:bg-transparent pr-10" : "text-text-tertiary file:border-0 file:bg-transparent pr-10"; return t === "file" ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex flex-col items-start gap-1.5 [&_*]:box-border box-border", children: [ oe, /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K( "w-full relative flex focus-within:z-10", o ), children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "input", { ref: w0(g, y), id: v, type: "file", className: K( k, V, I[i], N[i], W, F, H, fe ), disabled: a, onChange: P, onInvalid: c, ...m } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( Q, "right-0 pr-3", ne[i] ), children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(vT, {}) } ) ] } ) ] }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex flex-col items-start gap-1.5 [&_*]:box-border box-border", children: [ oe, /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K( "w-full relative flex focus-within:z-10", o ), children: [ re(), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "input", { ref: w0(g, y), id: v, type: t, className: K( k, U, I[i], N[i], D[i], j[i], W, F, z ), disabled: a, onChange: P, onInvalid: c, value: O(), ...m } ), ce() ] } ) ] }); }, fY = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(uY); fY.displayName = "Input"; const YEe = ({ title: e = "", description: t = "", icon: n = null, iconPosition: r = "right", // left, right tag: i = "h2", // h1, h2, h3, h4, h5, h6 size: o = "sm", // xs, sm, md, lg className: a = "" }) => { const s = { xs: "gap-1 [&>svg]:size-3.5", sm: "gap-1 [&>svg]:size-4", md: "gap-1.5 [&>svg]:size-5", lg: "gap-1.5 [&>svg]:size-5" }; if (!e) return null; const l = () => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(i, { className: K("font-semibold p-0 m-0", { xs: "text-base [&>*]:text-base gap-1", sm: "text-lg [&>*]:text-lg gap-1", md: "text-xl [&>*]:text-xl gap-1.5", lg: "text-2xl [&>*]:text-2xl gap-1.5" }[o]), children: e }), c = () => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "p", { className: K( "text-text-secondary font-normal my-0", { xs: "text-sm", sm: "text-sm", md: "text-base", lg: "text-base" }[o] ), children: t } ); return t ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: a, children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { children: [ n && r === "left" && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: K("flex items-center", s[o]), children: [ n, l() ] }), n && r === "right" && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: K("flex items-center", s[o]), children: [ l(), n ] }), !n && l() ] }), c() ] }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: a, children: [ n && r === "left" && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: K("flex items-center", s[o]), children: [ n, l() ] }), n && r === "right" && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: K("flex items-center", s[o]), children: [ l(), n ] }), !n && l() ] }); }, d1 = ({ variant: e = "primary", // primary, secondary size: t = "md", // sm, md, lg, xl, icon: n = null, className: r = "" }) => { const i = { primary: "text-brand-primary-600", secondary: "text-background-primary" }[e], o = { sm: "[&>svg]:size-4", md: "[&>svg]:size-5", lg: "[&>svg]:size-6", xl: "[&>svg]:size-8" }[t]; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "span", { className: K("flex", o, i, r), children: n || /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(QH, { className: "animate-spin shrink-0" }) } ); }, qEe = ({ progress: e = 0, // 0-100 speed: t = 200, className: n = "" }) => { let r = e; e < 0 && (r = 0), e > 100 && (r = 100); const i = `translateX(-${100 - r}%)`, o = `h-2 rounded-full bg-background-brand absolute left-0 top-0 w-full bottom-0 origin-left transition-transform duration-${t} ease-linear`; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "h-2 rounded-full bg-misc-progress-background overflow-hidden relative", n ), role: "progressbar", "aria-valuenow": r, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": "Progress Bar", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: o, style: { transform: i } } ) } ); }, jD = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)({ activeItem: null, onChange: () => { }, size: "md", iconPosition: "left" }), dY = ({ children: e, activeItem: t = null, onChange: n, className: r, size: i = "md", iconPosition: o = "left" }) => { const a = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)( (l) => { n && n(l); }, [n] ), s = K( "box-border flex border border-border-subtle border-solid rounded", r ); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: s, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( jD.Provider, { value: { activeItem: t, onChange: a, size: i, iconPosition: o }, children: react__WEBPACK_IMPORTED_MODULE_1__.Children.map(e, (l, c) => { if (!(0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(l)) return null; const f = c === 0, d = c === react__WEBPACK_IMPORTED_MODULE_1__.Children.count(e) - 1; return react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(l, { ...l.props, index: c, isFirstChild: f, isLastChild: d }); }) } ) }); }, hY = ({ slug: e, text: t, icon: n, className: r, disabled: i = !1, isFirstChild: o, isLastChild: a, ...s }, l) => { const c = react__WEBPACK_IMPORTED_MODULE_1__.useContext(jD); if (!c) throw new Error("Button should be used inside Button Group"); const { activeItem: f, onChange: d, size: p, iconPosition: m } = c, y = { xs: "py-1 px-1 text-sm gap-0.5 [&>svg]:size-4", sm: "py-2 px-2 text-base gap-1 [&>svg]:size-4", md: "py-2.5 px-2.5 text-base gap-1 [&>svg]:size-5" }, g = "bg-background-primary text-primary cursor-pointer flex items-center justify-center", v = "hover:bg-button-tertiary-hover", x = "focus:outline-none", w = i ? "text-text-disabled cursor-not-allowed" : "", S = o ? "rounded-tl rounded-bl border-0 border-r border-border-subtle" : "", A = a ? "rounded-tr rounded-br border-0" : "", _ = "border-0 border-r border-border-subtle border-solid", O = f === e ? "bg-button-disabled" : "", P = K( g, v, x, w, y[p], _, O, S, A, r ); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "button", { ref: l, className: P, disabled: i, onClick: (k) => { d({ event: k, value: { slug: e, text: t } }); }, ...s, children: [ m === "left" && n && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "mr-1", children: n }), t, m === "right" && n && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "ml-1", children: n }) ] } ); }, LD = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(hY); LD.displayName = "Button"; const XEe = { Group: dY, Button: LD }, qT = /* @__PURE__ */ new Set(); function gg(e, t, n) { e || qT.has(t) || (console.warn(t), qT.add(t)); } function pY(e) { if (typeof Proxy > "u") return e; const t = /* @__PURE__ */ new Map(), n = (...r) => ( true && gg(!1, "motion() is deprecated. Use motion.create() instead."), e(...r)); return new Proxy(n, { /** * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc. * The prop name is passed through as `key` and we can use that to generate a `motion` * DOM component with that name. */ get: (r, i) => i === "create" ? e : (t.has(i) || t.set(i, e(i)), t.get(i)) }); } function yg(e) { return e !== null && typeof e == "object" && typeof e.start == "function"; } const S0 = (e) => Array.isArray(e); function BD(e, t) { if (!Array.isArray(t)) return !1; const n = t.length; if (n !== e.length) return !1; for (let r = 0; r < n; r++) if (t[r] !== e[r]) return !1; return !0; } function pf(e) { return typeof e == "string" || Array.isArray(e); } function XT(e) { const t = [{}, {}]; return e == null || e.values.forEach((n, r) => { t[0][r] = n.get(), t[1][r] = n.getVelocity(); }), t; } function h1(e, t, n, r) { if (typeof t == "function") { const [i, o] = XT(r); t = t(n !== void 0 ? n : e.custom, i, o); } if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") { const [i, o] = XT(r); t = t(n !== void 0 ? n : e.custom, i, o); } return t; } function vg(e, t, n) { const r = e.getProps(); return h1(r, t, n !== void 0 ? n : r.custom, e); } const p1 = [ "animate", "whileInView", "whileFocus", "whileHover", "whileTap", "whileDrag", "exit" ], m1 = ["initial", ...p1], dd = [ "transformPerspective", "x", "y", "z", "translateX", "translateY", "translateZ", "scale", "scaleX", "scaleY", "rotate", "rotateX", "rotateY", "rotateZ", "skew", "skewX", "skewY" ], Gs = new Set(dd), Gi = (e) => e * 1e3, No = (e) => e / 1e3, mY = { type: "spring", stiffness: 500, damping: 25, restSpeed: 10 }, gY = (e) => ({ type: "spring", stiffness: 550, damping: e === 0 ? 2 * Math.sqrt(550) : 30, restSpeed: 10 }), yY = { type: "keyframes", duration: 0.8 }, vY = { type: "keyframes", ease: [0.25, 0.1, 0.35, 1], duration: 0.3 }, bY = (e, { keyframes: t }) => t.length > 2 ? yY : Gs.has(e) ? e.startsWith("scale") ? gY(t[1]) : mY : vY; function g1(e, t) { return e ? e[t] || e.default || e : void 0; } const xY = { skipAnimations: !1, useManualTiming: !1 }, wY = (e) => e !== null; function bg(e, { repeat: t, repeatType: n = "loop" }, r) { const i = e.filter(wY), o = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1; return !o || r === void 0 ? i[o] : r; } const qn = (e) => e; function _Y(e) { let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1; const o = /* @__PURE__ */ new WeakSet(); let a = { delta: 0, timestamp: 0, isProcessing: !1 }; function s(c) { o.has(c) && (l.schedule(c), e()), c(a); } const l = { /** * Schedule a process to run on the next frame. */ schedule: (c, f = !1, d = !1) => { const m = d && r ? t : n; return f && o.add(c), m.has(c) || m.add(c), c; }, /** * Cancel the provided callback from running on the next frame. */ cancel: (c) => { n.delete(c), o.delete(c); }, /** * Execute all schedule callbacks. */ process: (c) => { if (a = c, r) { i = !0; return; } r = !0, [t, n] = [n, t], n.clear(), t.forEach(s), r = !1, i && (i = !1, l.process(c)); } }; return l; } const Eh = [ "read", // Read "resolveKeyframes", // Write/Read/Write/Read "update", // Compute "preRender", // Compute "render", // Write "postRender" // Compute ], SY = 40; function FD(e, t) { let n = !1, r = !0; const i = { delta: 0, timestamp: 0, isProcessing: !1 }, o = () => n = !0, a = Eh.reduce((x, w) => (x[w] = _Y(o), x), {}), { read: s, resolveKeyframes: l, update: c, preRender: f, render: d, postRender: p } = a, m = () => { const x = performance.now(); n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(x - i.timestamp, SY), 1), i.timestamp = x, i.isProcessing = !0, s.process(i), l.process(i), c.process(i), f.process(i), d.process(i), p.process(i), i.isProcessing = !1, n && t && (r = !1, e(m)); }, y = () => { n = !0, r = !0, i.isProcessing || e(m); }; return { schedule: Eh.reduce((x, w) => { const S = a[w]; return x[w] = (A, _ = !1, O = !1) => (n || y(), S.schedule(A, _, O)), x; }, {}), cancel: (x) => { for (let w = 0; w < Eh.length; w++) a[Eh[w]].cancel(x); }, state: i, steps: a }; } const { schedule: Tt, cancel: ja, state: zn, steps: eb } = FD(typeof requestAnimationFrame < "u" ? requestAnimationFrame : qn, !0), WD = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, OY = 1e-7, AY = 12; function TY(e, t, n, r, i) { let o, a, s = 0; do a = t + (n - t) / 2, o = WD(a, r, i) - e, o > 0 ? n = a : t = a; while (Math.abs(o) > OY && ++s < AY); return a; } function hd(e, t, n, r) { if (e === t && n === r) return qn; const i = (o) => TY(o, 0, 1, e, n); return (o) => o === 0 || o === 1 ? o : WD(i(o), t, r); } const zD = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, VD = (e) => (t) => 1 - e(1 - t), UD = /* @__PURE__ */ hd(0.33, 1.53, 0.69, 0.99), y1 = /* @__PURE__ */ VD(UD), HD = /* @__PURE__ */ zD(y1), KD = (e) => (e *= 2) < 1 ? 0.5 * y1(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), v1 = (e) => 1 - Math.sin(Math.acos(e)), GD = VD(v1), YD = zD(v1), qD = (e) => /^0[^.\s]+$/u.test(e); function PY(e) { return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || qD(e) : !0; } let Ic = qn, Wo = qn; true && (Ic = (e, t) => { !e && typeof console < "u" && console.warn(t); }, Wo = (e, t) => { if (!e) throw new Error(t); }); const XD = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), ZD = (e) => (t) => typeof t == "string" && t.startsWith(e), JD = /* @__PURE__ */ ZD("--"), CY = /* @__PURE__ */ ZD("var(--"), b1 = (e) => CY(e) ? EY.test(e.split("/*")[0].trim()) : !1, EY = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, kY = ( // eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u ); function MY(e) { const t = kY.exec(e); if (!t) return [,]; const [, n, r, i] = t; return [`--${n ?? r}`, i]; } const NY = 4; function QD(e, t, n = 1) { Wo(n <= NY, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`); const [r, i] = MY(e); if (!r) return; const o = window.getComputedStyle(t).getPropertyValue(r); if (o) { const a = o.trim(); return XD(a) ? parseFloat(a) : a; } return b1(i) ? QD(i, t, n + 1) : i; } const La = (e, t, n) => n > t ? t : n < e ? e : n, Rc = { test: (e) => typeof e == "number", parse: parseFloat, transform: (e) => e }, mf = { ...Rc, transform: (e) => La(0, 1, e) }, kh = { ...Rc, default: 1 }, pd = (e) => ({ test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1, parse: parseFloat, transform: (t) => `${t}${e}` }), va = /* @__PURE__ */ pd("deg"), Yi = /* @__PURE__ */ pd("%"), Be = /* @__PURE__ */ pd("px"), $Y = /* @__PURE__ */ pd("vh"), DY = /* @__PURE__ */ pd("vw"), ZT = { ...Yi, parse: (e) => Yi.parse(e) / 100, transform: (e) => Yi.transform(e * 100) }, IY = /* @__PURE__ */ new Set([ "width", "height", "top", "left", "right", "bottom", "x", "y", "translateX", "translateY" ]), JT = (e) => e === Rc || e === Be, QT = (e, t) => parseFloat(e.split(", ")[t]), eP = (e, t) => (n, { transform: r }) => { if (r === "none" || !r) return 0; const i = r.match(/^matrix3d\((.+)\)$/u); if (i) return QT(i[1], t); { const o = r.match(/^matrix\((.+)\)$/u); return o ? QT(o[1], e) : 0; } }, RY = /* @__PURE__ */ new Set(["x", "y", "z"]), jY = dd.filter((e) => !RY.has(e)); function LY(e) { const t = []; return jY.forEach((n) => { const r = e.getValue(n); r !== void 0 && (t.push([n, r.get()]), r.set(n.startsWith("scale") ? 1 : 0)); }), t; } const Ql = { // Dimensions width: ({ x: e }, { paddingLeft: t = "0", paddingRight: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n), height: ({ y: e }, { paddingTop: t = "0", paddingBottom: n = "0" }) => e.max - e.min - parseFloat(t) - parseFloat(n), top: (e, { top: t }) => parseFloat(t), left: (e, { left: t }) => parseFloat(t), bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min), right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min), // Transform x: eP(4, 13), y: eP(5, 14) }; Ql.translateX = Ql.x; Ql.translateY = Ql.y; const eI = (e) => (t) => t.test(e), BY = { test: (e) => e === "auto", parse: (e) => e }, tI = [Rc, Be, Yi, va, DY, $Y, BY], tP = (e) => tI.find(eI(e)), Es = /* @__PURE__ */ new Set(); let O0 = !1, A0 = !1; function nI() { if (A0) { const e = Array.from(Es).filter((r) => r.needsMeasurement), t = new Set(e.map((r) => r.element)), n = /* @__PURE__ */ new Map(); t.forEach((r) => { const i = LY(r); i.length && (n.set(r, i), r.render()); }), e.forEach((r) => r.measureInitialState()), t.forEach((r) => { r.render(); const i = n.get(r); i && i.forEach(([o, a]) => { var s; (s = r.getValue(o)) === null || s === void 0 || s.set(a); }); }), e.forEach((r) => r.measureEndState()), e.forEach((r) => { r.suspendedScrollY !== void 0 && window.scrollTo(0, r.suspendedScrollY); }); } A0 = !1, O0 = !1, Es.forEach((e) => e.complete()), Es.clear(); } function rI() { Es.forEach((e) => { e.readKeyframes(), e.needsMeasurement && (A0 = !0); }); } function FY() { rI(), nI(); } class x1 { constructor(t, n, r, i, o, a = !1) { this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = r, this.motionValue = i, this.element = o, this.isAsync = a; } scheduleResolve() { this.isScheduled = !0, this.isAsync ? (Es.add(this), O0 || (O0 = !0, Tt.read(rI), Tt.resolveKeyframes(nI))) : (this.readKeyframes(), this.complete()); } readKeyframes() { const { unresolvedKeyframes: t, name: n, element: r, motionValue: i } = this; for (let o = 0; o < t.length; o++) if (t[o] === null) if (o === 0) { const a = i == null ? void 0 : i.get(), s = t[t.length - 1]; if (a !== void 0) t[0] = a; else if (r && n) { const l = r.readValue(n, s); l != null && (t[0] = l); } t[0] === void 0 && (t[0] = s), i && a === void 0 && i.set(t[0]); } else t[o] = t[o - 1]; } setFinalKeyframe() { } measureInitialState() { } renderEndStyles() { } measureEndState() { } complete() { this.isComplete = !0, this.onComplete(this.unresolvedKeyframes, this.finalKeyframe), Es.delete(this); } cancel() { this.isComplete || (this.isScheduled = !1, Es.delete(this)); } resume() { this.isComplete || this.scheduleResolve(); } } const Ku = (e) => Math.round(e * 1e5) / 1e5, w1 = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu; function WY(e) { return e == null; } const zY = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, _1 = (e, t) => (n) => !!(typeof n == "string" && zY.test(n) && n.startsWith(e) || t && !WY(n) && Object.prototype.hasOwnProperty.call(n, t)), iI = (e, t, n) => (r) => { if (typeof r != "string") return r; const [i, o, a, s] = r.match(w1); return { [e]: parseFloat(i), [t]: parseFloat(o), [n]: parseFloat(a), alpha: s !== void 0 ? parseFloat(s) : 1 }; }, VY = (e) => La(0, 255, e), tb = { ...Rc, transform: (e) => Math.round(VY(e)) }, ws = { test: /* @__PURE__ */ _1("rgb", "red"), parse: /* @__PURE__ */ iI("red", "green", "blue"), transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + tb.transform(e) + ", " + tb.transform(t) + ", " + tb.transform(n) + ", " + Ku(mf.transform(r)) + ")" }; function UY(e) { let t = "", n = "", r = "", i = ""; return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), { red: parseInt(t, 16), green: parseInt(n, 16), blue: parseInt(r, 16), alpha: i ? parseInt(i, 16) / 255 : 1 }; } const T0 = { test: /* @__PURE__ */ _1("#"), parse: UY, transform: ws.transform }, Ml = { test: /* @__PURE__ */ _1("hsl", "hue"), parse: /* @__PURE__ */ iI("hue", "saturation", "lightness"), transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Yi.transform(Ku(t)) + ", " + Yi.transform(Ku(n)) + ", " + Ku(mf.transform(r)) + ")" }, er = { test: (e) => ws.test(e) || T0.test(e) || Ml.test(e), parse: (e) => ws.test(e) ? ws.parse(e) : Ml.test(e) ? Ml.parse(e) : T0.parse(e), transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? ws.transform(e) : Ml.transform(e) }, HY = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu; function KY(e) { var t, n; return isNaN(e) && typeof e == "string" && (((t = e.match(w1)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(HY)) === null || n === void 0 ? void 0 : n.length) || 0) > 0; } const oI = "number", aI = "color", GY = "var", YY = "var(", nP = "${}", qY = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu; function gf(e) { const t = e.toString(), n = [], r = { color: [], number: [], var: [] }, i = []; let o = 0; const s = t.replace(qY, (l) => (er.test(l) ? (r.color.push(o), i.push(aI), n.push(er.parse(l))) : l.startsWith(YY) ? (r.var.push(o), i.push(GY), n.push(l)) : (r.number.push(o), i.push(oI), n.push(parseFloat(l))), ++o, nP)).split(nP); return { values: n, split: s, indexes: r, types: i }; } function sI(e) { return gf(e).values; } function lI(e) { const { split: t, types: n } = gf(e), r = t.length; return (i) => { let o = ""; for (let a = 0; a < r; a++) if (o += t[a], i[a] !== void 0) { const s = n[a]; s === oI ? o += Ku(i[a]) : s === aI ? o += er.transform(i[a]) : o += i[a]; } return o; }; } const XY = (e) => typeof e == "number" ? 0 : e; function ZY(e) { const t = sI(e); return lI(e)(t.map(XY)); } const Ba = { test: KY, parse: sI, createTransformer: lI, getAnimatableNone: ZY }, JY = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]); function QY(e) { const [t, n] = e.slice(0, -1).split("("); if (t === "drop-shadow") return e; const [r] = n.match(w1) || []; if (!r) return e; const i = n.replace(r, ""); let o = JY.has(t) ? 1 : 0; return r !== n && (o *= 100), t + "(" + o + i + ")"; } const eq = /\b([a-z-]*)\(.*?\)/gu, P0 = { ...Ba, getAnimatableNone: (e) => { const t = e.match(eq); return t ? t.map(QY).join(" ") : e; } }, tq = { // Border props borderWidth: Be, borderTopWidth: Be, borderRightWidth: Be, borderBottomWidth: Be, borderLeftWidth: Be, borderRadius: Be, radius: Be, borderTopLeftRadius: Be, borderTopRightRadius: Be, borderBottomRightRadius: Be, borderBottomLeftRadius: Be, // Positioning props width: Be, maxWidth: Be, height: Be, maxHeight: Be, top: Be, right: Be, bottom: Be, left: Be, // Spacing props padding: Be, paddingTop: Be, paddingRight: Be, paddingBottom: Be, paddingLeft: Be, margin: Be, marginTop: Be, marginRight: Be, marginBottom: Be, marginLeft: Be, // Misc backgroundPositionX: Be, backgroundPositionY: Be }, nq = { rotate: va, rotateX: va, rotateY: va, rotateZ: va, scale: kh, scaleX: kh, scaleY: kh, scaleZ: kh, skew: va, skewX: va, skewY: va, distance: Be, translateX: Be, translateY: Be, translateZ: Be, x: Be, y: Be, z: Be, perspective: Be, transformPerspective: Be, opacity: mf, originX: ZT, originY: ZT, originZ: Be }, rP = { ...Rc, transform: Math.round }, S1 = { ...tq, ...nq, zIndex: rP, size: Be, // SVG fillOpacity: mf, strokeOpacity: mf, numOctaves: rP }, rq = { ...S1, // Color props color: er, backgroundColor: er, outlineColor: er, fill: er, stroke: er, // Border props borderColor: er, borderTopColor: er, borderRightColor: er, borderBottomColor: er, borderLeftColor: er, filter: P0, WebkitFilter: P0 }, O1 = (e) => rq[e]; function cI(e, t) { let n = O1(e); return n !== P0 && (n = Ba), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0; } const iq = /* @__PURE__ */ new Set(["auto", "none", "0"]); function oq(e, t, n) { let r = 0, i; for (; r < e.length && !i; ) { const o = e[r]; typeof o == "string" && !iq.has(o) && gf(o).values.length && (i = e[r]), r++; } if (i && n) for (const o of t) e[o] = cI(n, i); } class uI extends x1 { constructor(t, n, r, i, o) { super(t, n, r, i, o, !0); } readKeyframes() { const { unresolvedKeyframes: t, element: n, name: r } = this; if (!n || !n.current) return; super.readKeyframes(); for (let l = 0; l < t.length; l++) { let c = t[l]; if (typeof c == "string" && (c = c.trim(), b1(c))) { const f = QD(c, n.current); f !== void 0 && (t[l] = f), l === t.length - 1 && (this.finalKeyframe = c); } } if (this.resolveNoneKeyframes(), !IY.has(r) || t.length !== 2) return; const [i, o] = t, a = tP(i), s = tP(o); if (a !== s) if (JT(a) && JT(s)) for (let l = 0; l < t.length; l++) { const c = t[l]; typeof c == "string" && (t[l] = parseFloat(c)); } else this.needsMeasurement = !0; } resolveNoneKeyframes() { const { unresolvedKeyframes: t, name: n } = this, r = []; for (let i = 0; i < t.length; i++) PY(t[i]) && r.push(i); r.length && oq(t, r, n); } measureInitialState() { const { element: t, unresolvedKeyframes: n, name: r } = this; if (!t || !t.current) return; r === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Ql[r](t.measureViewportBox(), window.getComputedStyle(t.current)), n[0] = this.measuredOrigin; const i = n[n.length - 1]; i !== void 0 && t.getValue(r, i).jump(i, !1); } measureEndState() { var t; const { element: n, name: r, unresolvedKeyframes: i } = this; if (!n || !n.current) return; const o = n.getValue(r); o && o.jump(this.measuredOrigin, !1); const a = i.length - 1, s = i[a]; i[a] = Ql[r](n.measureViewportBox(), window.getComputedStyle(n.current)), s !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = s), !((t = this.removedTransforms) === null || t === void 0) && t.length && this.removedTransforms.forEach(([l, c]) => { n.getValue(l).set(c); }), this.resolveNoneKeyframes(); } } function A1(e) { return typeof e == "function"; } let ap; function aq() { ap = void 0; } const qi = { now: () => (ap === void 0 && qi.set(zn.isProcessing || xY.useManualTiming ? zn.timestamp : performance.now()), ap), set: (e) => { ap = e, queueMicrotask(aq); } }, iP = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string (Ba.test(e) || e === "0") && // And it contains numbers and/or colors !e.startsWith("url(")); function sq(e) { const t = e[0]; if (e.length === 1) return !0; for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0; } function lq(e, t, n, r) { const i = e[0]; if (i === null) return !1; if (t === "display" || t === "visibility") return !0; const o = e[e.length - 1], a = iP(i, t), s = iP(o, t); return Ic(a === s, `You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`), !a || !s ? !1 : sq(e) || (n === "spring" || A1(n)) && r; } const cq = 40; class fI { constructor({ autoplay: t = !0, delay: n = 0, type: r = "keyframes", repeat: i = 0, repeatDelay: o = 0, repeatType: a = "loop", ...s }) { this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = qi.now(), this.options = { autoplay: t, delay: n, type: r, repeat: i, repeatDelay: o, repeatType: a, ...s }, this.updateFinishedPromise(); } /** * This method uses the createdAt and resolvedAt to calculate the * animation startTime. *Ideally*, we would use the createdAt time as t=0 * as the following frame would then be the first frame of the animation in * progress, which would feel snappier. * * However, if there's a delay (main thread work) between the creation of * the animation and the first commited frame, we prefer to use resolvedAt * to avoid a sudden jump into the animation. */ calcStartTime() { return this.resolvedAt ? this.resolvedAt - this.createdAt > cq ? this.resolvedAt : this.createdAt : this.createdAt; } /** * A getter for resolved data. If keyframes are not yet resolved, accessing * this.resolved will synchronously flush all pending keyframe resolvers. * This is a deoptimisation, but at its worst still batches read/writes. */ get resolved() { return !this._resolved && !this.hasAttemptedResolve && FY(), this._resolved; } /** * A method to be called when the keyframes resolver completes. This method * will check if its possible to run the animation and, if not, skip it. * Otherwise, it will call initPlayback on the implementing class. */ onKeyframesResolved(t, n) { this.resolvedAt = qi.now(), this.hasAttemptedResolve = !0; const { name: r, type: i, velocity: o, delay: a, onComplete: s, onUpdate: l, isGenerator: c } = this.options; if (!c && !lq(t, r, i, o)) if (a) this.options.duration = 0; else { l == null || l(bg(t, this.options, n)), s == null || s(), this.resolveFinishedPromise(); return; } const f = this.initPlayback(t, n); f !== !1 && (this._resolved = { keyframes: t, finalKeyframe: n, ...f }, this.onPostResolved()); } onPostResolved() { } /** * Allows the returned animation to be awaited or promise-chained. Currently * resolves when the animation finishes at all but in a future update could/should * reject if its cancels. */ then(t, n) { return this.currentFinishedPromise.then(t, n); } flatten() { this.options.type = "keyframes", this.options.ease = "linear"; } updateFinishedPromise() { this.currentFinishedPromise = new Promise((t) => { this.resolveFinishedPromise = t; }); } } function dI(e, t) { return t ? e * (1e3 / t) : 0; } const uq = 5; function hI(e, t, n) { const r = Math.max(t - uq, 0); return dI(n - e(r), t - r); } const nb = 1e-3, fq = 0.01, oP = 10, dq = 0.05, hq = 1; function pq({ duration: e = 800, bounce: t = 0.25, velocity: n = 0, mass: r = 1 }) { let i, o; Ic(e <= Gi(oP), "Spring duration must be 10 seconds or less"); let a = 1 - t; a = La(dq, hq, a), e = La(fq, oP, No(e)), a < 1 ? (i = (c) => { const f = c * a, d = f * e, p = f - n, m = C0(c, a), y = Math.exp(-d); return nb - p / m * y; }, o = (c) => { const d = c * a * e, p = d * n + n, m = Math.pow(a, 2) * Math.pow(c, 2) * e, y = Math.exp(-d), g = C0(Math.pow(c, 2), a); return (-i(c) + nb > 0 ? -1 : 1) * ((p - m) * y) / g; }) : (i = (c) => { const f = Math.exp(-c * e), d = (c - n) * e + 1; return -nb + f * d; }, o = (c) => { const f = Math.exp(-c * e), d = (n - c) * (e * e); return f * d; }); const s = 5 / e, l = gq(i, o, s); if (e = Gi(e), isNaN(l)) return { stiffness: 100, damping: 10, duration: e }; { const c = Math.pow(l, 2) * r; return { stiffness: c, damping: a * 2 * Math.sqrt(r * c), duration: e }; } } const mq = 12; function gq(e, t, n) { let r = n; for (let i = 1; i < mq; i++) r = r - e(r) / t(r); return r; } function C0(e, t) { return e * Math.sqrt(1 - t * t); } const yq = ["duration", "bounce"], vq = ["stiffness", "damping", "mass"]; function aP(e, t) { return t.some((n) => e[n] !== void 0); } function bq(e) { let t = { velocity: 0, stiffness: 100, damping: 10, mass: 1, isResolvedFromDuration: !1, ...e }; if (!aP(e, vq) && aP(e, yq)) { const n = pq(e); t = { ...t, ...n, mass: 1 }, t.isResolvedFromDuration = !0; } return t; } function pI({ keyframes: e, restDelta: t, restSpeed: n, ...r }) { const i = e[0], o = e[e.length - 1], a = { done: !1, value: i }, { stiffness: s, damping: l, mass: c, duration: f, velocity: d, isResolvedFromDuration: p } = bq({ ...r, velocity: -No(r.velocity || 0) }), m = d || 0, y = l / (2 * Math.sqrt(s * c)), g = o - i, v = No(Math.sqrt(s / c)), x = Math.abs(g) < 5; n || (n = x ? 0.01 : 2), t || (t = x ? 5e-3 : 0.5); let w; if (y < 1) { const S = C0(v, y); w = (A) => { const _ = Math.exp(-y * v * A); return o - _ * ((m + y * v * g) / S * Math.sin(S * A) + g * Math.cos(S * A)); }; } else if (y === 1) w = (S) => o - Math.exp(-v * S) * (g + (m + v * g) * S); else { const S = v * Math.sqrt(y * y - 1); w = (A) => { const _ = Math.exp(-y * v * A), O = Math.min(S * A, 300); return o - _ * ((m + y * v * g) * Math.sinh(O) + S * g * Math.cosh(O)) / S; }; } return { calculatedDuration: p && f || null, next: (S) => { const A = w(S); if (p) a.done = S >= f; else { let _ = 0; y < 1 && (_ = S === 0 ? Gi(m) : hI(w, S, A)); const O = Math.abs(_) <= n, P = Math.abs(o - A) <= t; a.done = O && P; } return a.value = a.done ? o : A, a; } }; } function sP({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: o = 500, modifyTarget: a, min: s, max: l, restDelta: c = 0.5, restSpeed: f }) { const d = e[0], p = { done: !1, value: d }, m = (C) => s !== void 0 && C < s || l !== void 0 && C > l, y = (C) => s === void 0 ? l : l === void 0 || Math.abs(s - C) < Math.abs(l - C) ? s : l; let g = n * t; const v = d + g, x = a === void 0 ? v : a(v); x !== v && (g = x - d); const w = (C) => -g * Math.exp(-C / r), S = (C) => x + w(C), A = (C) => { const k = w(C), I = S(C); p.done = Math.abs(k) <= c, p.value = p.done ? x : I; }; let _, O; const P = (C) => { m(p.value) && (_ = C, O = pI({ keyframes: [p.value, y(p.value)], velocity: hI(S, C, p.value), // TODO: This should be passing * 1000 damping: i, stiffness: o, restDelta: c, restSpeed: f })); }; return P(0), { calculatedDuration: null, next: (C) => { let k = !1; return !O && _ === void 0 && (k = !0, A(C), P(C)), _ !== void 0 && C >= _ ? O.next(C - _) : (!k && A(C), p); } }; } const xq = /* @__PURE__ */ hd(0.42, 0, 1, 1), wq = /* @__PURE__ */ hd(0, 0, 0.58, 1), mI = /* @__PURE__ */ hd(0.42, 0, 0.58, 1), _q = (e) => Array.isArray(e) && typeof e[0] != "number", T1 = (e) => Array.isArray(e) && typeof e[0] == "number", lP = { linear: qn, easeIn: xq, easeInOut: mI, easeOut: wq, circIn: v1, circInOut: YD, circOut: GD, backIn: y1, backInOut: HD, backOut: UD, anticipate: KD }, cP = (e) => { if (T1(e)) { Wo(e.length === 4, "Cubic bezier arrays must contain four numerical values."); const [t, n, r, i] = e; return hd(t, n, r, i); } else if (typeof e == "string") return Wo(lP[e] !== void 0, `Invalid easing type '${e}'`), lP[e]; return e; }, Sq = (e, t) => (n) => t(e(n)), $o = (...e) => e.reduce(Sq), ec = (e, t, n) => { const r = t - e; return r === 0 ? 1 : (n - e) / r; }, Qt = (e, t, n) => e + (t - e) * n; function rb(e, t, n) { return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e; } function Oq({ hue: e, saturation: t, lightness: n, alpha: r }) { e /= 360, t /= 100, n /= 100; let i = 0, o = 0, a = 0; if (!t) i = o = a = n; else { const s = n < 0.5 ? n * (1 + t) : n + t - n * t, l = 2 * n - s; i = rb(l, s, e + 1 / 3), o = rb(l, s, e), a = rb(l, s, e - 1 / 3); } return { red: Math.round(i * 255), green: Math.round(o * 255), blue: Math.round(a * 255), alpha: r }; } function Op(e, t) { return (n) => n > 0 ? t : e; } const ib = (e, t, n) => { const r = e * e, i = n * (t * t - r) + r; return i < 0 ? 0 : Math.sqrt(i); }, Aq = [T0, ws, Ml], Tq = (e) => Aq.find((t) => t.test(e)); function uP(e) { const t = Tq(e); if (Ic(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`), !t) return !1; let n = t.parse(e); return t === Ml && (n = Oq(n)), n; } const fP = (e, t) => { const n = uP(e), r = uP(t); if (!n || !r) return Op(e, t); const i = { ...n }; return (o) => (i.red = ib(n.red, r.red, o), i.green = ib(n.green, r.green, o), i.blue = ib(n.blue, r.blue, o), i.alpha = Qt(n.alpha, r.alpha, o), ws.transform(i)); }, E0 = /* @__PURE__ */ new Set(["none", "hidden"]); function Pq(e, t) { return E0.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e; } function Cq(e, t) { return (n) => Qt(e, t, n); } function P1(e) { return typeof e == "number" ? Cq : typeof e == "string" ? b1(e) ? Op : er.test(e) ? fP : Mq : Array.isArray(e) ? gI : typeof e == "object" ? er.test(e) ? fP : Eq : Op; } function gI(e, t) { const n = [...e], r = n.length, i = e.map((o, a) => P1(o)(o, t[a])); return (o) => { for (let a = 0; a < r; a++) n[a] = i[a](o); return n; }; } function Eq(e, t) { const n = { ...e, ...t }, r = {}; for (const i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = P1(e[i])(e[i], t[i])); return (i) => { for (const o in r) n[o] = r[o](i); return n; }; } function kq(e, t) { var n; const r = [], i = { color: 0, var: 0, number: 0 }; for (let o = 0; o < t.values.length; o++) { const a = t.types[o], s = e.indexes[a][i[a]], l = (n = e.values[s]) !== null && n !== void 0 ? n : 0; r[o] = l, i[a]++; } return r; } const Mq = (e, t) => { const n = Ba.createTransformer(t), r = gf(e), i = gf(t); return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? E0.has(e) && !i.values.length || E0.has(t) && !r.values.length ? Pq(e, t) : $o(gI(kq(r, i), i.values), n) : (Ic(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Op(e, t)); }; function yI(e, t, n) { return typeof e == "number" && typeof t == "number" && typeof n == "number" ? Qt(e, t, n) : P1(e)(e, t); } function Nq(e, t, n) { const r = [], i = n || yI, o = e.length - 1; for (let a = 0; a < o; a++) { let s = i(e[a], e[a + 1]); if (t) { const l = Array.isArray(t) ? t[a] || qn : t; s = $o(l, s); } r.push(s); } return r; } function $q(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) { const o = e.length; if (Wo(o === t.length, "Both input and output ranges must be the same length"), o === 1) return () => t[0]; if (o === 2 && e[0] === e[1]) return () => t[1]; e[0] > e[o - 1] && (e = [...e].reverse(), t = [...t].reverse()); const a = Nq(t, r, i), s = a.length, l = (c) => { let f = 0; if (s > 1) for (; f < e.length - 2 && !(c < e[f + 1]); f++) ; const d = ec(e[f], e[f + 1], c); return a[f](d); }; return n ? (c) => l(La(e[0], e[o - 1], c)) : l; } function Dq(e, t) { const n = e[e.length - 1]; for (let r = 1; r <= t; r++) { const i = ec(0, t, r); e.push(Qt(n, 1, i)); } } function Iq(e) { const t = [0]; return Dq(t, e.length - 1), t; } function Rq(e, t) { return e.map((n) => n * t); } function jq(e, t) { return e.map(() => t || mI).splice(0, e.length - 1); } function Ap({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) { const i = _q(r) ? r.map(cP) : cP(r), o = { done: !1, value: t[0] }, a = Rq( // Only use the provided offsets if they're the correct length // TODO Maybe we should warn here if there's a length mismatch n && n.length === t.length ? n : Iq(t), e ), s = $q(a, t, { ease: Array.isArray(i) ? i : jq(t, i) }); return { calculatedDuration: e, next: (l) => (o.value = s(l), o.done = l >= e, o) }; } const dP = 2e4; function Lq(e) { let t = 0; const n = 50; let r = e.next(t); for (; !r.done && t < dP; ) t += n, r = e.next(t); return t >= dP ? 1 / 0 : t; } const Bq = (e) => { const t = ({ timestamp: n }) => e(n); return { start: () => Tt.update(t, !0), stop: () => ja(t), /** * If we're processing this frame we can use the * framelocked timestamp to keep things in sync. */ now: () => zn.isProcessing ? zn.timestamp : qi.now() }; }, Fq = { decay: sP, inertia: sP, tween: Ap, keyframes: Ap, spring: pI }, Wq = (e) => e / 100; class C1 extends fI { constructor(t) { super(t), this.holdTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.startTime = null, this.state = "idle", this.stop = () => { if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle") return; this.teardown(); const { onStop: l } = this.options; l && l(); }; const { name: n, motionValue: r, element: i, keyframes: o } = this.options, a = (i == null ? void 0 : i.KeyframeResolver) || x1, s = (l, c) => this.onKeyframesResolved(l, c); this.resolver = new a(o, s, n, r, i), this.resolver.scheduleResolve(); } flatten() { super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes)); } initPlayback(t) { const { type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: o, velocity: a = 0 } = this.options, s = A1(n) ? n : Fq[n] || Ap; let l, c; s !== Ap && typeof t[0] != "number" && ( true && Wo(t.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), l = $o(Wq, yI(t[0], t[1])), t = [0, 100]); const f = s({ ...this.options, keyframes: t }); o === "mirror" && (c = s({ ...this.options, keyframes: [...t].reverse(), velocity: -a })), f.calculatedDuration === null && (f.calculatedDuration = Lq(f)); const { calculatedDuration: d } = f, p = d + i, m = p * (r + 1) - i; return { generator: f, mirroredGenerator: c, mapPercentToKeyframes: l, calculatedDuration: d, resolvedDuration: p, totalDuration: m }; } onPostResolved() { const { autoplay: t = !0 } = this.options; this.play(), this.pendingPlayState === "paused" || !t ? this.pause() : this.state = this.pendingPlayState; } tick(t, n = !1) { const { resolved: r } = this; if (!r) { const { keyframes: C } = this.options; return { done: !0, value: C[C.length - 1] }; } const { finalKeyframe: i, generator: o, mirroredGenerator: a, mapPercentToKeyframes: s, keyframes: l, calculatedDuration: c, totalDuration: f, resolvedDuration: d } = r; if (this.startTime === null) return o.next(0); const { delay: p, repeat: m, repeatType: y, repeatDelay: g, onUpdate: v } = this.options; this.speed > 0 ? this.startTime = Math.min(this.startTime, t) : this.speed < 0 && (this.startTime = Math.min(t - f / this.speed, this.startTime)), n ? this.currentTime = t : this.holdTime !== null ? this.currentTime = this.holdTime : this.currentTime = Math.round(t - this.startTime) * this.speed; const x = this.currentTime - p * (this.speed >= 0 ? 1 : -1), w = this.speed >= 0 ? x < 0 : x > f; this.currentTime = Math.max(x, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = f); let S = this.currentTime, A = o; if (m) { const C = Math.min(this.currentTime, f) / d; let k = Math.floor(C), I = C % 1; !I && C >= 1 && (I = 1), I === 1 && k--, k = Math.min(k, m + 1), !!(k % 2) && (y === "reverse" ? (I = 1 - I, g && (I -= g / d)) : y === "mirror" && (A = a)), S = La(0, 1, I) * d; } const _ = w ? { done: !1, value: l[0] } : A.next(S); s && (_.value = s(_.value)); let { done: O } = _; !w && c !== null && (O = this.speed >= 0 ? this.currentTime >= f : this.currentTime <= 0); const P = this.holdTime === null && (this.state === "finished" || this.state === "running" && O); return P && i !== void 0 && (_.value = bg(l, this.options, i)), v && v(_.value), P && this.finish(), _; } get duration() { const { resolved: t } = this; return t ? No(t.calculatedDuration) : 0; } get time() { return No(this.currentTime); } set time(t) { t = Gi(t), this.currentTime = t, this.holdTime !== null || this.speed === 0 ? this.holdTime = t : this.driver && (this.startTime = this.driver.now() - t / this.speed); } get speed() { return this.playbackSpeed; } set speed(t) { const n = this.playbackSpeed !== t; this.playbackSpeed = t, n && (this.time = No(this.currentTime)); } play() { if (this.resolver.isScheduled || this.resolver.resume(), !this._resolved) { this.pendingPlayState = "running"; return; } if (this.isStopped) return; const { driver: t = Bq, onPlay: n, startTime: r } = this.options; this.driver || (this.driver = t((o) => this.tick(o))), n && n(); const i = this.driver.now(); this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime ? this.state === "finished" && (this.startTime = i) : this.startTime = r ?? this.calcStartTime(), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start(); } pause() { var t; if (!this._resolved) { this.pendingPlayState = "paused"; return; } this.state = "paused", this.holdTime = (t = this.currentTime) !== null && t !== void 0 ? t : 0; } complete() { this.state !== "running" && this.play(), this.pendingPlayState = this.state = "finished", this.holdTime = null; } finish() { this.teardown(), this.state = "finished"; const { onComplete: t } = this.options; t && t(); } cancel() { this.cancelTime !== null && this.tick(this.cancelTime), this.teardown(), this.updateFinishedPromise(); } teardown() { this.state = "idle", this.stopDriver(), this.resolveFinishedPromise(), this.updateFinishedPromise(), this.startTime = this.cancelTime = null, this.resolver.cancel(); } stopDriver() { this.driver && (this.driver.stop(), this.driver = void 0); } sample(t) { return this.startTime = 0, this.tick(t, !0); } } const zq = /* @__PURE__ */ new Set([ "opacity", "clipPath", "filter", "transform" // TODO: Can be accelerated but currently disabled until https://issues.chromium.org/issues/41491098 is resolved // or until we implement support for linear() easing. // "background-color" ]), Vq = 10, Uq = (e, t) => { let n = ""; const r = Math.max(Math.round(t / Vq), 2); for (let i = 0; i < r; i++) n += e(ec(0, r - 1, i)) + ", "; return `linear(${n.substring(0, n.length - 2)})`; }; function E1(e) { let t; return () => (t === void 0 && (t = e()), t); } const Hq = { linearEasing: void 0 }; function Kq(e, t) { const n = E1(e); return () => { var r; return (r = Hq[t]) !== null && r !== void 0 ? r : n(); }; } const Tp = /* @__PURE__ */ Kq(() => { try { document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" }); } catch { return !1; } return !0; }, "linearEasing"); function vI(e) { return !!(typeof e == "function" && Tp() || !e || typeof e == "string" && (e in k0 || Tp()) || T1(e) || Array.isArray(e) && e.every(vI)); } const Lu = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, k0 = { linear: "linear", ease: "ease", easeIn: "ease-in", easeOut: "ease-out", easeInOut: "ease-in-out", circIn: /* @__PURE__ */ Lu([0, 0.65, 0.55, 1]), circOut: /* @__PURE__ */ Lu([0.55, 0, 1, 0.45]), backIn: /* @__PURE__ */ Lu([0.31, 0.01, 0.66, -0.59]), backOut: /* @__PURE__ */ Lu([0.33, 1.53, 0.69, 0.99]) }; function bI(e, t) { if (e) return typeof e == "function" && Tp() ? Uq(e, t) : T1(e) ? Lu(e) : Array.isArray(e) ? e.map((n) => bI(n, t) || k0.easeOut) : k0[e]; } function Gq(e, t, n, { delay: r = 0, duration: i = 300, repeat: o = 0, repeatType: a = "loop", ease: s = "easeInOut", times: l } = {}) { const c = { [t]: n }; l && (c.offset = l); const f = bI(s, i); return Array.isArray(f) && (c.easing = f), e.animate(c, { delay: r, duration: i, easing: Array.isArray(f) ? "linear" : f, fill: "both", iterations: o + 1, direction: a === "reverse" ? "alternate" : "normal" }); } function hP(e, t) { e.timeline = t, e.onfinish = null; } const Yq = /* @__PURE__ */ E1(() => Object.hasOwnProperty.call(Element.prototype, "animate")), Pp = 10, qq = 2e4; function Xq(e) { return A1(e.type) || e.type === "spring" || !vI(e.ease); } function Zq(e, t) { const n = new C1({ ...t, keyframes: e, repeat: 0, delay: 0, isGenerator: !0 }); let r = { done: !1, value: e[0] }; const i = []; let o = 0; for (; !r.done && o < qq; ) r = n.sample(o), i.push(r.value), o += Pp; return { times: void 0, keyframes: i, duration: o - Pp, ease: "linear" }; } const xI = { anticipate: KD, backInOut: HD, circInOut: YD }; function Jq(e) { return e in xI; } class pP extends fI { constructor(t) { super(t); const { name: n, motionValue: r, element: i, keyframes: o } = this.options; this.resolver = new uI(o, (a, s) => this.onKeyframesResolved(a, s), n, r, i), this.resolver.scheduleResolve(); } initPlayback(t, n) { var r; let { duration: i = 300, times: o, ease: a, type: s, motionValue: l, name: c, startTime: f } = this.options; if (!(!((r = l.owner) === null || r === void 0) && r.current)) return !1; if (typeof a == "string" && Tp() && Jq(a) && (a = xI[a]), Xq(this.options)) { const { onComplete: p, onUpdate: m, motionValue: y, element: g, ...v } = this.options, x = Zq(t, v); t = x.keyframes, t.length === 1 && (t[1] = t[0]), i = x.duration, o = x.times, a = x.ease, s = "keyframes"; } const d = Gq(l.owner.current, c, t, { ...this.options, duration: i, times: o, ease: a }); return d.startTime = f ?? this.calcStartTime(), this.pendingTimeline ? (hP(d, this.pendingTimeline), this.pendingTimeline = void 0) : d.onfinish = () => { const { onComplete: p } = this.options; l.set(bg(t, this.options, n)), p && p(), this.cancel(), this.resolveFinishedPromise(); }, { animation: d, duration: i, times: o, type: s, ease: a, keyframes: t }; } get duration() { const { resolved: t } = this; if (!t) return 0; const { duration: n } = t; return No(n); } get time() { const { resolved: t } = this; if (!t) return 0; const { animation: n } = t; return No(n.currentTime || 0); } set time(t) { const { resolved: n } = this; if (!n) return; const { animation: r } = n; r.currentTime = Gi(t); } get speed() { const { resolved: t } = this; if (!t) return 1; const { animation: n } = t; return n.playbackRate; } set speed(t) { const { resolved: n } = this; if (!n) return; const { animation: r } = n; r.playbackRate = t; } get state() { const { resolved: t } = this; if (!t) return "idle"; const { animation: n } = t; return n.playState; } get startTime() { const { resolved: t } = this; if (!t) return null; const { animation: n } = t; return n.startTime; } /** * Replace the default DocumentTimeline with another AnimationTimeline. * Currently used for scroll animations. */ attachTimeline(t) { if (!this._resolved) this.pendingTimeline = t; else { const { resolved: n } = this; if (!n) return qn; const { animation: r } = n; hP(r, t); } return qn; } play() { if (this.isStopped) return; const { resolved: t } = this; if (!t) return; const { animation: n } = t; n.playState === "finished" && this.updateFinishedPromise(), n.play(); } pause() { const { resolved: t } = this; if (!t) return; const { animation: n } = t; n.pause(); } stop() { if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle") return; this.resolveFinishedPromise(), this.updateFinishedPromise(); const { resolved: t } = this; if (!t) return; const { animation: n, keyframes: r, duration: i, type: o, ease: a, times: s } = t; if (n.playState === "idle" || n.playState === "finished") return; if (this.time) { const { motionValue: c, onUpdate: f, onComplete: d, element: p, ...m } = this.options, y = new C1({ ...m, keyframes: r, duration: i, type: o, ease: a, times: s, isGenerator: !0 }), g = Gi(this.time); c.setWithVelocity(y.sample(g - Pp).value, y.sample(g).value, Pp); } const { onStop: l } = this.options; l && l(), this.cancel(); } complete() { const { resolved: t } = this; t && t.animation.finish(); } cancel() { const { resolved: t } = this; t && t.animation.cancel(); } static supports(t) { const { motionValue: n, name: r, repeatDelay: i, repeatType: o, damping: a, type: s } = t; return Yq() && r && zq.has(r) && n && n.owner && n.owner.current instanceof HTMLElement && /** * If we're outputting values to onUpdate then we can't use WAAPI as there's * no way to read the value from WAAPI every frame. */ !n.owner.getProps().onUpdate && !i && o !== "mirror" && a !== 0 && s !== "inertia"; } } const Qq = E1(() => window.ScrollTimeline !== void 0); class e9 { constructor(t) { this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean); } then(t, n) { return Promise.all(this.animations).then(t).catch(n); } /** * TODO: Filter out cancelled or stopped animations before returning */ getAll(t) { return this.animations[0][t]; } setAll(t, n) { for (let r = 0; r < this.animations.length; r++) this.animations[r][t] = n; } attachTimeline(t, n) { const r = this.animations.map((i) => Qq() && i.attachTimeline ? i.attachTimeline(t) : n(i)); return () => { r.forEach((i, o) => { i && i(), this.animations[o].stop(); }); }; } get time() { return this.getAll("time"); } set time(t) { this.setAll("time", t); } get speed() { return this.getAll("speed"); } set speed(t) { this.setAll("speed", t); } get startTime() { return this.getAll("startTime"); } get duration() { let t = 0; for (let n = 0; n < this.animations.length; n++) t = Math.max(t, this.animations[n].duration); return t; } runAll(t) { this.animations.forEach((n) => n[t]()); } flatten() { this.runAll("flatten"); } play() { this.runAll("play"); } pause() { this.runAll("pause"); } cancel() { this.runAll("cancel"); } complete() { this.runAll("complete"); } } function t9({ when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: o, repeatType: a, repeatDelay: s, from: l, elapsed: c, ...f }) { return !!Object.keys(f).length; } const k1 = (e, t, n, r = {}, i, o) => (a) => { const s = g1(r, e) || {}, l = s.delay || r.delay || 0; let { elapsed: c = 0 } = r; c = c - Gi(l); let f = { keyframes: Array.isArray(n) ? n : [null, n], ease: "easeOut", velocity: t.getVelocity(), ...s, delay: -c, onUpdate: (p) => { t.set(p), s.onUpdate && s.onUpdate(p); }, onComplete: () => { a(), s.onComplete && s.onComplete(); }, name: e, motionValue: t, element: o ? void 0 : i }; t9(s) || (f = { ...f, ...bY(e, f) }), f.duration && (f.duration = Gi(f.duration)), f.repeatDelay && (f.repeatDelay = Gi(f.repeatDelay)), f.from !== void 0 && (f.keyframes[0] = f.from); let d = !1; if ((f.type === !1 || f.duration === 0 && !f.repeatDelay) && (f.duration = 0, f.delay === 0 && (d = !0)), d && !o && t.get() !== void 0) { const p = bg(f.keyframes, s); if (p !== void 0) return Tt.update(() => { f.onUpdate(p), f.onComplete(); }), new e9([]); } return !o && pP.supports(f) ? new pP(f) : new C1(f); }, n9 = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), r9 = (e) => S0(e) ? e[e.length - 1] || 0 : e; function M1(e, t) { e.indexOf(t) === -1 && e.push(t); } function N1(e, t) { const n = e.indexOf(t); n > -1 && e.splice(n, 1); } class $1 { constructor() { this.subscriptions = []; } add(t) { return M1(this.subscriptions, t), () => N1(this.subscriptions, t); } notify(t, n, r) { const i = this.subscriptions.length; if (i) if (i === 1) this.subscriptions[0](t, n, r); else for (let o = 0; o < i; o++) { const a = this.subscriptions[o]; a && a(t, n, r); } } getSize() { return this.subscriptions.length; } clear() { this.subscriptions.length = 0; } } const mP = 30, i9 = (e) => !isNaN(parseFloat(e)); class o9 { /** * @param init - The initiating value * @param config - Optional configuration options * * - `transformer`: A function to transform incoming values with. * * @internal */ constructor(t, n = {}) { this.version = "11.11.17", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (r, i = !0) => { const o = qi.now(); this.updatedAt !== o && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(r), this.current !== this.prev && this.events.change && this.events.change.notify(this.current), i && this.events.renderRequest && this.events.renderRequest.notify(this.current); }, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner; } setCurrent(t) { this.current = t, this.updatedAt = qi.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = i9(this.current)); } setPrevFrameValue(t = this.current) { this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt; } /** * Adds a function that will be notified when the `MotionValue` is updated. * * It returns a function that, when called, will cancel the subscription. * * When calling `onChange` inside a React component, it should be wrapped with the * `useEffect` hook. As it returns an unsubscribe function, this should be returned * from the `useEffect` function to ensure you don't add duplicate subscribers.. * * ```jsx * export const MyComponent = () => { * const x = useMotionValue(0) * const y = useMotionValue(0) * const opacity = useMotionValue(1) * * useEffect(() => { * function updateOpacity() { * const maxXY = Math.max(x.get(), y.get()) * const newOpacity = transform(maxXY, [0, 100], [1, 0]) * opacity.set(newOpacity) * } * * const unsubscribeX = x.on("change", updateOpacity) * const unsubscribeY = y.on("change", updateOpacity) * * return () => { * unsubscribeX() * unsubscribeY() * } * }, []) * * return <motion.div style={{ x }} /> * } * ``` * * @param subscriber - A function that receives the latest value. * @returns A function that, when called, will cancel this subscription. * * @deprecated */ onChange(t) { return true && gg(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t); } on(t, n) { this.events[t] || (this.events[t] = new $1()); const r = this.events[t].add(n); return t === "change" ? () => { r(), Tt.read(() => { this.events.change.getSize() || this.stop(); }); } : r; } clearListeners() { for (const t in this.events) this.events[t].clear(); } /** * Attaches a passive effect to the `MotionValue`. * * @internal */ attach(t, n) { this.passiveEffect = t, this.stopPassiveEffect = n; } /** * Sets the state of the `MotionValue`. * * @remarks * * ```jsx * const x = useMotionValue(0) * x.set(10) * ``` * * @param latest - Latest value to set. * @param render - Whether to notify render subscribers. Defaults to `true` * * @public */ set(t, n = !0) { !n || !this.passiveEffect ? this.updateAndNotify(t, n) : this.passiveEffect(t, this.updateAndNotify); } setWithVelocity(t, n, r) { this.set(n), this.prev = void 0, this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt - r; } /** * Set the state of the `MotionValue`, stopping any active animations, * effects, and resets velocity to `0`. */ jump(t, n = !0) { this.updateAndNotify(t), this.prev = t, this.prevUpdatedAt = this.prevFrameValue = void 0, n && this.stop(), this.stopPassiveEffect && this.stopPassiveEffect(); } /** * Returns the latest state of `MotionValue` * * @returns - The latest state of `MotionValue` * * @public */ get() { return this.current; } /** * @public */ getPrevious() { return this.prev; } /** * Returns the latest velocity of `MotionValue` * * @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical. * * @public */ getVelocity() { const t = qi.now(); if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > mP) return 0; const n = Math.min(this.updatedAt - this.prevUpdatedAt, mP); return dI(parseFloat(this.current) - parseFloat(this.prevFrameValue), n); } /** * Registers a new animation to control this `MotionValue`. Only one * animation can drive a `MotionValue` at one time. * * ```jsx * value.start() * ``` * * @param animation - A function that starts the provided animation * * @internal */ start(t) { return this.stop(), new Promise((n) => { this.hasAnimated = !0, this.animation = t(n), this.events.animationStart && this.events.animationStart.notify(); }).then(() => { this.events.animationComplete && this.events.animationComplete.notify(), this.clearAnimation(); }); } /** * Stop the currently active animation. * * @public */ stop() { this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation(); } /** * Returns `true` if this value is currently animating. * * @public */ isAnimating() { return !!this.animation; } clearAnimation() { delete this.animation; } /** * Destroy and clean up subscribers to this `MotionValue`. * * The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically * handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually * created a `MotionValue` via the `motionValue` function. * * @public */ destroy() { this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect(); } } function yf(e, t) { return new o9(e, t); } function a9(e, t, n) { e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, yf(n)); } function s9(e, t) { const n = vg(e, t); let { transitionEnd: r = {}, transition: i = {}, ...o } = n || {}; o = { ...o, ...r }; for (const a in o) { const s = r9(o[a]); a9(e, a, s); } } const D1 = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), l9 = "framerAppearId", wI = "data-" + D1(l9); function _I(e) { return e.props[wI]; } const rr = (e) => !!(e && e.getVelocity); function c9(e) { return !!(rr(e) && e.add); } function M0(e, t) { const n = e.getValue("willChange"); if (c9(n)) return n.add(t); } function u9({ protectedKeys: e, needsAnimating: t }, n) { const r = e.hasOwnProperty(n) && t[n] !== !0; return t[n] = !1, r; } function SI(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) { var o; let { transition: a = e.getDefaultTransition(), transitionEnd: s, ...l } = t; r && (a = r); const c = [], f = i && e.animationState && e.animationState.getState()[i]; for (const d in l) { const p = e.getValue(d, (o = e.latestValues[d]) !== null && o !== void 0 ? o : null), m = l[d]; if (m === void 0 || f && u9(f, d)) continue; const y = { delay: n, ...g1(a || {}, d) }; let g = !1; if (window.MotionHandoffAnimation) { const x = _I(e); if (x) { const w = window.MotionHandoffAnimation(x, d, Tt); w !== null && (y.startTime = w, g = !0); } } M0(e, d), p.start(k1(d, p, m, e.shouldReduceMotion && Gs.has(d) ? { type: !1 } : y, e, g)); const v = p.animation; v && c.push(v); } return s && Promise.all(c).then(() => { Tt.update(() => { s && s9(e, s); }); }), c; } function N0(e, t, n = {}) { var r; const i = vg(e, t, n.type === "exit" ? (r = e.presenceContext) === null || r === void 0 ? void 0 : r.custom : void 0); let { transition: o = e.getDefaultTransition() || {} } = i || {}; n.transitionOverride && (o = n.transitionOverride); const a = i ? () => Promise.all(SI(e, i, n)) : () => Promise.resolve(), s = e.variantChildren && e.variantChildren.size ? (c = 0) => { const { delayChildren: f = 0, staggerChildren: d, staggerDirection: p } = o; return f9(e, t, f + c, d, p, n); } : () => Promise.resolve(), { when: l } = o; if (l) { const [c, f] = l === "beforeChildren" ? [a, s] : [s, a]; return c().then(() => f()); } else return Promise.all([a(), s(n.delay)]); } function f9(e, t, n = 0, r = 0, i = 1, o) { const a = [], s = (e.variantChildren.size - 1) * r, l = i === 1 ? (c = 0) => c * r : (c = 0) => s - c * r; return Array.from(e.variantChildren).sort(d9).forEach((c, f) => { c.notify("AnimationStart", t), a.push(N0(c, t, { ...o, delay: n + l(f) }).then(() => c.notify("AnimationComplete", t))); }), Promise.all(a); } function d9(e, t) { return e.sortNodePosition(t); } function h9(e, t, n = {}) { e.notify("AnimationStart", t); let r; if (Array.isArray(t)) { const i = t.map((o) => N0(e, o, n)); r = Promise.all(i); } else if (typeof t == "string") r = N0(e, t, n); else { const i = typeof t == "function" ? vg(e, t, n.custom) : t; r = Promise.all(SI(e, i, n)); } return r.then(() => { e.notify("AnimationComplete", t); }); } const p9 = m1.length; function OI(e) { if (!e) return; if (!e.isControllingVariants) { const n = e.parent ? OI(e.parent) || {} : {}; return e.props.initial !== void 0 && (n.initial = e.props.initial), n; } const t = {}; for (let n = 0; n < p9; n++) { const r = m1[n], i = e.props[r]; (pf(i) || i === !1) && (t[r] = i); } return t; } const m9 = [...p1].reverse(), g9 = p1.length; function y9(e) { return (t) => Promise.all(t.map(({ animation: n, options: r }) => h9(e, n, r))); } function v9(e) { let t = y9(e), n = gP(), r = !0; const i = (l) => (c, f) => { var d; const p = vg(e, f, l === "exit" ? (d = e.presenceContext) === null || d === void 0 ? void 0 : d.custom : void 0); if (p) { const { transition: m, transitionEnd: y, ...g } = p; c = { ...c, ...g, ...y }; } return c; }; function o(l) { t = l(e); } function a(l) { const { props: c } = e, f = OI(e.parent) || {}, d = [], p = /* @__PURE__ */ new Set(); let m = {}, y = 1 / 0; for (let v = 0; v < g9; v++) { const x = m9[v], w = n[x], S = c[x] !== void 0 ? c[x] : f[x], A = pf(S), _ = x === l ? w.isActive : null; _ === !1 && (y = v); let O = S === f[x] && S !== c[x] && A; if (O && r && e.manuallyAnimateOnMount && (O = !1), w.protectedKeys = { ...m }, // If it isn't active and hasn't *just* been set as inactive !w.isActive && _ === null || // If we didn't and don't have any defined prop for this animation type !S && !w.prevProp || // Or if the prop doesn't define an animation yg(S) || typeof S == "boolean") continue; const P = b9(w.prevProp, S); let C = P || // If we're making this variant active, we want to always make it active x === l && w.isActive && !O && A || // If we removed a higher-priority variant (i is in reverse order) v > y && A, k = !1; const I = Array.isArray(S) ? S : [S]; let $ = I.reduce(i(x), {}); _ === !1 && ($ = {}); const { prevResolvedValues: N = {} } = w, D = { ...N, ...$ }, j = (z) => { C = !0, p.has(z) && (k = !0, p.delete(z)), w.needsAnimating[z] = !0; const H = e.getValue(z); H && (H.liveStyle = !1); }; for (const z in D) { const H = $[z], U = N[z]; if (m.hasOwnProperty(z)) continue; let V = !1; S0(H) && S0(U) ? V = !BD(H, U) : V = H !== U, V ? H != null ? j(z) : p.add(z) : H !== void 0 && p.has(z) ? j(z) : w.protectedKeys[z] = !0; } w.prevProp = S, w.prevResolvedValues = $, w.isActive && (m = { ...m, ...$ }), r && e.blockInitialAnimation && (C = !1), C && (!(O && P) || k) && d.push(...I.map((z) => ({ animation: z, options: { type: x } }))); } if (p.size) { const v = {}; p.forEach((x) => { const w = e.getBaseTarget(x), S = e.getValue(x); S && (S.liveStyle = !0), v[x] = w ?? null; }), d.push({ animation: v }); } let g = !!d.length; return r && (c.initial === !1 || c.initial === c.animate) && !e.manuallyAnimateOnMount && (g = !1), r = !1, g ? t(d) : Promise.resolve(); } function s(l, c) { var f; if (n[l].isActive === c) return Promise.resolve(); (f = e.variantChildren) === null || f === void 0 || f.forEach((p) => { var m; return (m = p.animationState) === null || m === void 0 ? void 0 : m.setActive(l, c); }), n[l].isActive = c; const d = a(l); for (const p in n) n[p].protectedKeys = {}; return d; } return { animateChanges: a, setActive: s, setAnimateFunction: o, getState: () => n, reset: () => { n = gP(), r = !0; } }; } function b9(e, t) { return typeof t == "string" ? t !== e : Array.isArray(t) ? !BD(t, e) : !1; } function ss(e = !1) { return { isActive: e, protectedKeys: {}, needsAnimating: {}, prevResolvedValues: {} }; } function gP() { return { animate: ss(!0), whileInView: ss(), whileHover: ss(), whileTap: ss(), whileDrag: ss(), whileFocus: ss(), exit: ss() }; } class Va { constructor(t) { this.isMounted = !1, this.node = t; } update() { } } class x9 extends Va { /** * We dynamically generate the AnimationState manager as it contains a reference * to the underlying animation library. We only want to load that if we load this, * so people can optionally code split it out using the `m` component. */ constructor(t) { super(t), t.animationState || (t.animationState = v9(t)); } updateAnimationControlsSubscription() { const { animate: t } = this.node.getProps(); yg(t) && (this.unmountControls = t.subscribe(this.node)); } /** * Subscribe any provided AnimationControls to the component's VisualElement */ mount() { this.updateAnimationControlsSubscription(); } update() { const { animate: t } = this.node.getProps(), { animate: n } = this.node.prevProps || {}; t !== n && this.updateAnimationControlsSubscription(); } unmount() { var t; this.node.animationState.reset(), (t = this.unmountControls) === null || t === void 0 || t.call(this); } } let w9 = 0; class _9 extends Va { constructor() { super(...arguments), this.id = w9++; } update() { if (!this.node.presenceContext) return; const { isPresent: t, onExitComplete: n } = this.node.presenceContext, { isPresent: r } = this.node.prevPresenceContext || {}; if (!this.node.animationState || t === r) return; const i = this.node.animationState.setActive("exit", !t); n && !t && i.then(() => n(this.id)); } mount() { const { register: t } = this.node.presenceContext || {}; t && (this.unmount = t(this.id)); } unmount() { } } const S9 = { animation: { Feature: x9 }, exit: { Feature: _9 } }, AI = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1; function xg(e, t = "page") { return { point: { x: e[`${t}X`], y: e[`${t}Y`] } }; } const O9 = (e) => (t) => AI(t) && e(t, xg(t)); function To(e, t, n, r = { passive: !0 }) { return e.addEventListener(t, n, r), () => e.removeEventListener(t, n); } function Do(e, t, n, r) { return To(e, t, O9(n), r); } const yP = (e, t) => Math.abs(e - t); function A9(e, t) { const n = yP(e.x, t.x), r = yP(e.y, t.y); return Math.sqrt(n ** 2 + r ** 2); } class TI { constructor(t, n, { transformPagePoint: r, contextWindow: i, dragSnapToOrigin: o = !1 } = {}) { if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => { if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return; const d = ab(this.lastMoveEventInfo, this.history), p = this.startEvent !== null, m = A9(d.offset, { x: 0, y: 0 }) >= 3; if (!p && !m) return; const { point: y } = d, { timestamp: g } = zn; this.history.push({ ...y, timestamp: g }); const { onStart: v, onMove: x } = this.handlers; p || (v && v(this.lastMoveEvent, d), this.startEvent = this.lastMoveEvent), x && x(this.lastMoveEvent, d); }, this.handlePointerMove = (d, p) => { this.lastMoveEvent = d, this.lastMoveEventInfo = ob(p, this.transformPagePoint), Tt.update(this.updatePoint, !0); }, this.handlePointerUp = (d, p) => { this.end(); const { onEnd: m, onSessionEnd: y, resumeAnimation: g } = this.handlers; if (this.dragSnapToOrigin && g && g(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return; const v = ab(d.type === "pointercancel" ? this.lastMoveEventInfo : ob(p, this.transformPagePoint), this.history); this.startEvent && m && m(d, v), y && y(d, v); }, !AI(t)) return; this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = r, this.contextWindow = i || window; const a = xg(t), s = ob(a, this.transformPagePoint), { point: l } = s, { timestamp: c } = zn; this.history = [{ ...l, timestamp: c }]; const { onSessionStart: f } = n; f && f(t, ab(s, this.history)), this.removeListeners = $o(Do(this.contextWindow, "pointermove", this.handlePointerMove), Do(this.contextWindow, "pointerup", this.handlePointerUp), Do(this.contextWindow, "pointercancel", this.handlePointerUp)); } updateHandlers(t) { this.handlers = t; } end() { this.removeListeners && this.removeListeners(), ja(this.updatePoint); } } function ob(e, t) { return t ? { point: t(e.point) } : e; } function vP(e, t) { return { x: e.x - t.x, y: e.y - t.y }; } function ab({ point: e }, t) { return { point: e, delta: vP(e, PI(t)), offset: vP(e, T9(t)), velocity: P9(t, 0.1) }; } function T9(e) { return e[0]; } function PI(e) { return e[e.length - 1]; } function P9(e, t) { if (e.length < 2) return { x: 0, y: 0 }; let n = e.length - 1, r = null; const i = PI(e); for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > Gi(t))); ) n--; if (!r) return { x: 0, y: 0 }; const o = No(i.timestamp - r.timestamp); if (o === 0) return { x: 0, y: 0 }; const a = { x: (i.x - r.x) / o, y: (i.y - r.y) / o }; return a.x === 1 / 0 && (a.x = 0), a.y === 1 / 0 && (a.y = 0), a; } function CI(e) { let t = null; return () => { const n = () => { t = null; }; return t === null ? (t = e, n) : !1; }; } const bP = CI("dragHorizontal"), xP = CI("dragVertical"); function EI(e) { let t = !1; if (e === "y") t = xP(); else if (e === "x") t = bP(); else { const n = bP(), r = xP(); n && r ? t = () => { n(), r(); } : (n && n(), r && r()); } return t; } function kI() { const e = EI(!0); return e ? (e(), !1) : !0; } function Nl(e) { return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current"); } const MI = 1e-4, C9 = 1 - MI, E9 = 1 + MI, NI = 0.01, k9 = 0 - NI, M9 = 0 + NI; function Kr(e) { return e.max - e.min; } function N9(e, t, n) { return Math.abs(e - t) <= n; } function wP(e, t, n, r = 0.5) { e.origin = r, e.originPoint = Qt(t.min, t.max, e.origin), e.scale = Kr(n) / Kr(t), e.translate = Qt(n.min, n.max, e.origin) - e.originPoint, (e.scale >= C9 && e.scale <= E9 || isNaN(e.scale)) && (e.scale = 1), (e.translate >= k9 && e.translate <= M9 || isNaN(e.translate)) && (e.translate = 0); } function Gu(e, t, n, r) { wP(e.x, t.x, n.x, r ? r.originX : void 0), wP(e.y, t.y, n.y, r ? r.originY : void 0); } function _P(e, t, n) { e.min = n.min + t.min, e.max = e.min + Kr(t); } function $9(e, t, n) { _P(e.x, t.x, n.x), _P(e.y, t.y, n.y); } function SP(e, t, n) { e.min = t.min - n.min, e.max = e.min + Kr(t); } function Yu(e, t, n) { SP(e.x, t.x, n.x), SP(e.y, t.y, n.y); } function D9(e, { min: t, max: n }, r) { return t !== void 0 && e < t ? e = r ? Qt(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? Qt(n, e, r.max) : Math.min(e, n)), e; } function OP(e, t, n) { return { min: t !== void 0 ? e.min + t : void 0, max: n !== void 0 ? e.max + n - (e.max - e.min) : void 0 }; } function I9(e, { top: t, left: n, bottom: r, right: i }) { return { x: OP(e.x, n, i), y: OP(e.y, t, r) }; } function AP(e, t) { let n = t.min - e.min, r = t.max - e.max; return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), { min: n, max: r }; } function R9(e, t) { return { x: AP(e.x, t.x), y: AP(e.y, t.y) }; } function j9(e, t) { let n = 0.5; const r = Kr(e), i = Kr(t); return i > r ? n = ec(t.min, t.max - r, e.min) : r > i && (n = ec(e.min, e.max - i, t.min)), La(0, 1, n); } function L9(e, t) { const n = {}; return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n; } const $0 = 0.35; function B9(e = $0) { return e === !1 ? e = 0 : e === !0 && (e = $0), { x: TP(e, "left", "right"), y: TP(e, "top", "bottom") }; } function TP(e, t, n) { return { min: PP(e, t), max: PP(e, n) }; } function PP(e, t) { return typeof e == "number" ? e : e[t] || 0; } const CP = () => ({ translate: 0, scale: 1, origin: 0, originPoint: 0 }), $l = () => ({ x: CP(), y: CP() }), EP = () => ({ min: 0, max: 0 }), ln = () => ({ x: EP(), y: EP() }); function ci(e) { return [e("x"), e("y")]; } function $I({ top: e, left: t, right: n, bottom: r }) { return { x: { min: t, max: n }, y: { min: e, max: r } }; } function F9({ x: e, y: t }) { return { top: t.min, right: e.max, bottom: t.max, left: e.min }; } function W9(e, t) { if (!t) return e; const n = t({ x: e.left, y: e.top }), r = t({ x: e.right, y: e.bottom }); return { top: n.y, left: n.x, bottom: r.y, right: r.x }; } function sb(e) { return e === void 0 || e === 1; } function D0({ scale: e, scaleX: t, scaleY: n }) { return !sb(e) || !sb(t) || !sb(n); } function ps(e) { return D0(e) || DI(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY; } function DI(e) { return kP(e.x) || kP(e.y); } function kP(e) { return e && e !== "0%"; } function Cp(e, t, n) { const r = e - n, i = t * r; return n + i; } function MP(e, t, n, r, i) { return i !== void 0 && (e = Cp(e, i, r)), Cp(e, n, r) + t; } function I0(e, t = 0, n = 1, r, i) { e.min = MP(e.min, t, n, r, i), e.max = MP(e.max, t, n, r, i); } function II(e, { x: t, y: n }) { I0(e.x, t.translate, t.scale, t.originPoint), I0(e.y, n.translate, n.scale, n.originPoint); } const NP = 0.999999999999, $P = 1.0000000000001; function z9(e, t, n, r = !1) { const i = n.length; if (!i) return; t.x = t.y = 1; let o, a; for (let s = 0; s < i; s++) { o = n[s], a = o.projectionDelta; const { visualElement: l } = o.options; l && l.props.style && l.props.style.display === "contents" || (r && o.options.layoutScroll && o.scroll && o !== o.root && Il(e, { x: -o.scroll.offset.x, y: -o.scroll.offset.y }), a && (t.x *= a.x.scale, t.y *= a.y.scale, II(e, a)), r && ps(o.latestValues) && Il(e, o.latestValues)); } t.x < $P && t.x > NP && (t.x = 1), t.y < $P && t.y > NP && (t.y = 1); } function Dl(e, t) { e.min = e.min + t, e.max = e.max + t; } function DP(e, t, n, r, i = 0.5) { const o = Qt(e.min, e.max, i); I0(e, t, n, o, r); } function Il(e, t) { DP(e.x, t.x, t.scaleX, t.scale, t.originX), DP(e.y, t.y, t.scaleY, t.scale, t.originY); } function RI(e, t) { return $I(W9(e.getBoundingClientRect(), t)); } function V9(e, t, n) { const r = RI(e, n), { scroll: i } = t; return i && (Dl(r.x, i.offset.x), Dl(r.y, i.offset.y)), r; } const jI = ({ current: e }) => e ? e.ownerDocument.defaultView : null, U9 = /* @__PURE__ */ new WeakMap(); class H9 { constructor(t) { this.openGlobalLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = ln(), this.visualElement = t; } start(t, { snapToCursor: n = !1 } = {}) { const { presenceContext: r } = this.visualElement; if (r && r.isPresent === !1) return; const i = (f) => { const { dragSnapToOrigin: d } = this.getProps(); d ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(xg(f, "page").point); }, o = (f, d) => { const { drag: p, dragPropagation: m, onDragStart: y } = this.getProps(); if (p && !m && (this.openGlobalLock && this.openGlobalLock(), this.openGlobalLock = EI(p), !this.openGlobalLock)) return; this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), ci((v) => { let x = this.getAxisMotionValue(v).get() || 0; if (Yi.test(x)) { const { projection: w } = this.visualElement; if (w && w.layout) { const S = w.layout.layoutBox[v]; S && (x = Kr(S) * (parseFloat(x) / 100)); } } this.originPoint[v] = x; }), y && Tt.postRender(() => y(f, d)), M0(this.visualElement, "transform"); const { animationState: g } = this.visualElement; g && g.setActive("whileDrag", !0); }, a = (f, d) => { const { dragPropagation: p, dragDirectionLock: m, onDirectionLock: y, onDrag: g } = this.getProps(); if (!p && !this.openGlobalLock) return; const { offset: v } = d; if (m && this.currentDirection === null) { this.currentDirection = K9(v), this.currentDirection !== null && y && y(this.currentDirection); return; } this.updateAxis("x", d.point, v), this.updateAxis("y", d.point, v), this.visualElement.render(), g && g(f, d); }, s = (f, d) => this.stop(f, d), l = () => ci((f) => { var d; return this.getAnimationState(f) === "paused" && ((d = this.getAxisMotionValue(f).animation) === null || d === void 0 ? void 0 : d.play()); }), { dragSnapToOrigin: c } = this.getProps(); this.panSession = new TI(t, { onSessionStart: i, onStart: o, onMove: a, onSessionEnd: s, resumeAnimation: l }, { transformPagePoint: this.visualElement.getTransformPagePoint(), dragSnapToOrigin: c, contextWindow: jI(this.visualElement) }); } stop(t, n) { const r = this.isDragging; if (this.cancel(), !r) return; const { velocity: i } = n; this.startAnimation(i); const { onDragEnd: o } = this.getProps(); o && Tt.postRender(() => o(t, n)); } cancel() { this.isDragging = !1; const { projection: t, animationState: n } = this.visualElement; t && (t.isAnimationBlocked = !1), this.panSession && this.panSession.end(), this.panSession = void 0; const { dragPropagation: r } = this.getProps(); !r && this.openGlobalLock && (this.openGlobalLock(), this.openGlobalLock = null), n && n.setActive("whileDrag", !1); } updateAxis(t, n, r) { const { drag: i } = this.getProps(); if (!r || !Mh(t, i, this.currentDirection)) return; const o = this.getAxisMotionValue(t); let a = this.originPoint[t] + r[t]; this.constraints && this.constraints[t] && (a = D9(a, this.constraints[t], this.elastic[t])), o.set(a); } resolveConstraints() { var t; const { dragConstraints: n, dragElastic: r } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (t = this.visualElement.projection) === null || t === void 0 ? void 0 : t.layout, o = this.constraints; n && Nl(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = I9(i.layoutBox, n) : this.constraints = !1, this.elastic = B9(r), o !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && ci((a) => { this.constraints !== !1 && this.getAxisMotionValue(a) && (this.constraints[a] = L9(i.layoutBox[a], this.constraints[a])); }); } resolveRefConstraints() { const { dragConstraints: t, onMeasureDragConstraints: n } = this.getProps(); if (!t || !Nl(t)) return !1; const r = t.current; Wo(r !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop."); const { projection: i } = this.visualElement; if (!i || !i.layout) return !1; const o = V9(r, i.root, this.visualElement.getTransformPagePoint()); let a = R9(i.layout.layoutBox, o); if (n) { const s = n(F9(a)); this.hasMutatedConstraints = !!s, s && (a = $I(s)); } return a; } startAnimation(t) { const { drag: n, dragMomentum: r, dragElastic: i, dragTransition: o, dragSnapToOrigin: a, onDragTransitionEnd: s } = this.getProps(), l = this.constraints || {}, c = ci((f) => { if (!Mh(f, n, this.currentDirection)) return; let d = l && l[f] || {}; a && (d = { min: 0, max: 0 }); const p = i ? 200 : 1e6, m = i ? 40 : 1e7, y = { type: "inertia", velocity: r ? t[f] : 0, bounceStiffness: p, bounceDamping: m, timeConstant: 750, restDelta: 1, restSpeed: 10, ...o, ...d }; return this.startAxisValueAnimation(f, y); }); return Promise.all(c).then(s); } startAxisValueAnimation(t, n) { const r = this.getAxisMotionValue(t); return M0(this.visualElement, t), r.start(k1(t, r, 0, n, this.visualElement, !1)); } stopAnimation() { ci((t) => this.getAxisMotionValue(t).stop()); } pauseAnimation() { ci((t) => { var n; return (n = this.getAxisMotionValue(t).animation) === null || n === void 0 ? void 0 : n.pause(); }); } getAnimationState(t) { var n; return (n = this.getAxisMotionValue(t).animation) === null || n === void 0 ? void 0 : n.state; } /** * Drag works differently depending on which props are provided. * * - If _dragX and _dragY are provided, we output the gesture delta directly to those motion values. * - Otherwise, we apply the delta to the x/y motion values. */ getAxisMotionValue(t) { const n = `_drag${t.toUpperCase()}`, r = this.visualElement.getProps(), i = r[n]; return i || this.visualElement.getValue(t, (r.initial ? r.initial[t] : void 0) || 0); } snapToCursor(t) { ci((n) => { const { drag: r } = this.getProps(); if (!Mh(n, r, this.currentDirection)) return; const { projection: i } = this.visualElement, o = this.getAxisMotionValue(n); if (i && i.layout) { const { min: a, max: s } = i.layout.layoutBox[n]; o.set(t[n] - Qt(a, s, 0.5)); } }); } /** * When the viewport resizes we want to check if the measured constraints * have changed and, if so, reposition the element within those new constraints * relative to where it was before the resize. */ scalePositionWithinConstraints() { if (!this.visualElement.current) return; const { drag: t, dragConstraints: n } = this.getProps(), { projection: r } = this.visualElement; if (!Nl(n) || !r || !this.constraints) return; this.stopAnimation(); const i = { x: 0, y: 0 }; ci((a) => { const s = this.getAxisMotionValue(a); if (s && this.constraints !== !1) { const l = s.get(); i[a] = j9({ min: l, max: l }, this.constraints[a]); } }); const { transformTemplate: o } = this.visualElement.getProps(); this.visualElement.current.style.transform = o ? o({}, "") : "none", r.root && r.root.updateScroll(), r.updateLayout(), this.resolveConstraints(), ci((a) => { if (!Mh(a, t, null)) return; const s = this.getAxisMotionValue(a), { min: l, max: c } = this.constraints[a]; s.set(Qt(l, c, i[a])); }); } addListeners() { if (!this.visualElement.current) return; U9.set(this.visualElement, this); const t = this.visualElement.current, n = Do(t, "pointerdown", (l) => { const { drag: c, dragListener: f = !0 } = this.getProps(); c && f && this.start(l); }), r = () => { const { dragConstraints: l } = this.getProps(); Nl(l) && l.current && (this.constraints = this.resolveRefConstraints()); }, { projection: i } = this.visualElement, o = i.addEventListener("measure", r); i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), Tt.read(r); const a = To(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => { this.isDragging && c && (ci((f) => { const d = this.getAxisMotionValue(f); d && (this.originPoint[f] += l[f].translate, d.set(d.get() + l[f].translate)); }), this.visualElement.render()); }); return () => { a(), n(), o(), s && s(); }; } getProps() { const t = this.visualElement.getProps(), { drag: n = !1, dragDirectionLock: r = !1, dragPropagation: i = !1, dragConstraints: o = !1, dragElastic: a = $0, dragMomentum: s = !0 } = t; return { ...t, drag: n, dragDirectionLock: r, dragPropagation: i, dragConstraints: o, dragElastic: a, dragMomentum: s }; } } function Mh(e, t, n) { return (t === !0 || t === e) && (n === null || n === e); } function K9(e, t = 10) { let n = null; return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n; } class G9 extends Va { constructor(t) { super(t), this.removeGroupControls = qn, this.removeListeners = qn, this.controls = new H9(t); } mount() { const { dragControls: t } = this.node.getProps(); t && (this.removeGroupControls = t.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || qn; } unmount() { this.removeGroupControls(), this.removeListeners(); } } const IP = (e) => (t, n) => { e && Tt.postRender(() => e(t, n)); }; class Y9 extends Va { constructor() { super(...arguments), this.removePointerDownListener = qn; } onPointerDown(t) { this.session = new TI(t, this.createPanHandlers(), { transformPagePoint: this.node.getTransformPagePoint(), contextWindow: jI(this.node) }); } createPanHandlers() { const { onPanSessionStart: t, onPanStart: n, onPan: r, onPanEnd: i } = this.node.getProps(); return { onSessionStart: IP(t), onStart: IP(n), onMove: r, onEnd: (o, a) => { delete this.session, i && Tt.postRender(() => i(o, a)); } }; } mount() { this.removePointerDownListener = Do(this.node.current, "pointerdown", (t) => this.onPointerDown(t)); } update() { this.session && this.session.updateHandlers(this.createPanHandlers()); } unmount() { this.removePointerDownListener(), this.session && this.session.end(); } } const wg = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)(null); function q9() { const e = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(wg); if (e === null) return [!0, null]; const { isPresent: t, onExitComplete: n, register: r } = e, i = (0,react__WEBPACK_IMPORTED_MODULE_1__.useId)(); (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => r(i), []); const o = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => n && n(i), [i, n]); return !t && n ? [!1, o] : [!0]; } const vf = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)({}), LI = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)({}), sp = { /** * Global flag as to whether the tree has animated since the last time * we resized the window */ hasAnimatedSinceResize: !0, /** * We set this to true once, on the first update. Any nodes added to the tree beyond that * update will be given a `data-projection-id` attribute. */ hasEverUpdated: !1 }; function RP(e, t) { return t.max === t.min ? 0 : e / (t.max - t.min) * 100; } const wu = { correct: (e, t) => { if (!t.target) return e; if (typeof e == "string") if (Be.test(e)) e = parseFloat(e); else return e; const n = RP(e, t.target.x), r = RP(e, t.target.y); return `${n}% ${r}%`; } }, X9 = { correct: (e, { treeScale: t, projectionDelta: n }) => { const r = e, i = Ba.parse(e); if (i.length > 5) return r; const o = Ba.createTransformer(e), a = typeof i[0] != "number" ? 1 : 0, s = n.x.scale * t.x, l = n.y.scale * t.y; i[0 + a] /= s, i[1 + a] /= l; const c = Qt(s, l, 0.5); return typeof i[2 + a] == "number" && (i[2 + a] /= c), typeof i[3 + a] == "number" && (i[3 + a] /= c), o(i); } }, Ep = {}; function Z9(e) { Object.assign(Ep, e); } const { schedule: I1, cancel: ZEe } = FD(queueMicrotask, !1); class J9 extends react__WEBPACK_IMPORTED_MODULE_1__.Component { /** * This only mounts projection nodes for components that * need measuring, we might want to do it for all components * in order to incorporate transforms */ componentDidMount() { const { visualElement: t, layoutGroup: n, switchLayoutGroup: r, layoutId: i } = this.props, { projection: o } = t; Z9(Q9), o && (n.group && n.group.add(o), r && r.register && i && r.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => { this.safeToRemove(); }), o.setOptions({ ...o.options, onExitComplete: () => this.safeToRemove() })), sp.hasEverUpdated = !0; } getSnapshotBeforeUpdate(t) { const { layoutDependency: n, visualElement: r, drag: i, isPresent: o } = this.props, a = r.projection; return a && (a.isPresent = o, i || t.layoutDependency !== n || n === void 0 ? a.willUpdate() : this.safeToRemove(), t.isPresent !== o && (o ? a.promote() : a.relegate() || Tt.postRender(() => { const s = a.getStack(); (!s || !s.members.length) && this.safeToRemove(); }))), null; } componentDidUpdate() { const { projection: t } = this.props.visualElement; t && (t.root.didUpdate(), I1.postRender(() => { !t.currentAnimation && t.isLead() && this.safeToRemove(); })); } componentWillUnmount() { const { visualElement: t, layoutGroup: n, switchLayoutGroup: r } = this.props, { projection: i } = t; i && (i.scheduleCheckAfterUnmount(), n && n.group && n.group.remove(i), r && r.deregister && r.deregister(i)); } safeToRemove() { const { safeToRemove: t } = this.props; t && t(); } render() { return null; } } function BI(e) { const [t, n] = q9(), r = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(vf); return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(J9, { ...e, layoutGroup: r, switchLayoutGroup: (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(LI), isPresent: t, safeToRemove: n }); } const Q9 = { borderRadius: { ...wu, applyTo: [ "borderTopLeftRadius", "borderTopRightRadius", "borderBottomLeftRadius", "borderBottomRightRadius" ] }, borderTopLeftRadius: wu, borderTopRightRadius: wu, borderBottomLeftRadius: wu, borderBottomRightRadius: wu, boxShadow: X9 }, FI = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], e7 = FI.length, jP = (e) => typeof e == "string" ? parseFloat(e) : e, LP = (e) => typeof e == "number" || Be.test(e); function t7(e, t, n, r, i, o) { i ? (e.opacity = Qt( 0, // TODO Reinstate this if only child n.opacity !== void 0 ? n.opacity : 1, n7(r) ), e.opacityExit = Qt(t.opacity !== void 0 ? t.opacity : 1, 0, r7(r))) : o && (e.opacity = Qt(t.opacity !== void 0 ? t.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r)); for (let a = 0; a < e7; a++) { const s = `border${FI[a]}Radius`; let l = BP(t, s), c = BP(n, s); if (l === void 0 && c === void 0) continue; l || (l = 0), c || (c = 0), l === 0 || c === 0 || LP(l) === LP(c) ? (e[s] = Math.max(Qt(jP(l), jP(c), r), 0), (Yi.test(c) || Yi.test(l)) && (e[s] += "%")) : e[s] = c; } (t.rotate || n.rotate) && (e.rotate = Qt(t.rotate || 0, n.rotate || 0, r)); } function BP(e, t) { return e[t] !== void 0 ? e[t] : e.borderRadius; } const n7 = /* @__PURE__ */ WI(0, 0.5, GD), r7 = /* @__PURE__ */ WI(0.5, 0.95, qn); function WI(e, t, n) { return (r) => r < e ? 0 : r > t ? 1 : n(ec(e, t, r)); } function FP(e, t) { e.min = t.min, e.max = t.max; } function oi(e, t) { FP(e.x, t.x), FP(e.y, t.y); } function WP(e, t) { e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin; } function zP(e, t, n, r, i) { return e -= t, e = Cp(e, 1 / n, r), i !== void 0 && (e = Cp(e, 1 / i, r)), e; } function i7(e, t = 0, n = 1, r = 0.5, i, o = e, a = e) { if (Yi.test(t) && (t = parseFloat(t), t = Qt(a.min, a.max, t / 100) - a.min), typeof t != "number") return; let s = Qt(o.min, o.max, r); e === o && (s -= t), e.min = zP(e.min, t, n, s, i), e.max = zP(e.max, t, n, s, i); } function VP(e, t, [n, r, i], o, a) { i7(e, t[n], t[r], t[i], t.scale, o, a); } const o7 = ["x", "scaleX", "originX"], a7 = ["y", "scaleY", "originY"]; function UP(e, t, n, r) { VP(e.x, t, o7, n ? n.x : void 0, r ? r.x : void 0), VP(e.y, t, a7, n ? n.y : void 0, r ? r.y : void 0); } function HP(e) { return e.translate === 0 && e.scale === 1; } function zI(e) { return HP(e.x) && HP(e.y); } function KP(e, t) { return e.min === t.min && e.max === t.max; } function s7(e, t) { return KP(e.x, t.x) && KP(e.y, t.y); } function GP(e, t) { return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max); } function VI(e, t) { return GP(e.x, t.x) && GP(e.y, t.y); } function YP(e) { return Kr(e.x) / Kr(e.y); } function qP(e, t) { return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint; } class l7 { constructor() { this.members = []; } add(t) { M1(this.members, t), t.scheduleRender(); } remove(t) { if (N1(this.members, t), t === this.prevLead && (this.prevLead = void 0), t === this.lead) { const n = this.members[this.members.length - 1]; n && this.promote(n); } } relegate(t) { const n = this.members.findIndex((i) => t === i); if (n === 0) return !1; let r; for (let i = n; i >= 0; i--) { const o = this.members[i]; if (o.isPresent !== !1) { r = o; break; } } return r ? (this.promote(r), !0) : !1; } promote(t, n) { const r = this.lead; if (t !== r && (this.prevLead = r, this.lead = t, t.show(), r)) { r.instance && r.scheduleRender(), t.scheduleRender(), t.resumeFrom = r, n && (t.resumeFrom.preserveOpacity = !0), r.snapshot && (t.snapshot = r.snapshot, t.snapshot.latestValues = r.animationValues || r.latestValues), t.root && t.root.isUpdating && (t.isLayoutDirty = !0); const { crossfade: i } = t.options; i === !1 && r.hide(); } } exitAnimationComplete() { this.members.forEach((t) => { const { options: n, resumingFrom: r } = t; n.onExitComplete && n.onExitComplete(), r && r.options.onExitComplete && r.options.onExitComplete(); }); } scheduleRender() { this.members.forEach((t) => { t.instance && t.scheduleRender(!1); }); } /** * Clear any leads that have been removed this render to prevent them from being * used in future animations and to prevent memory leaks */ removeLeadSnapshot() { this.lead && this.lead.snapshot && (this.lead.snapshot = void 0); } } function c7(e, t, n) { let r = ""; const i = e.x.translate / t.x, o = e.y.translate / t.y, a = (n == null ? void 0 : n.z) || 0; if ((i || o || a) && (r = `translate3d(${i}px, ${o}px, ${a}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) { const { transformPerspective: c, rotate: f, rotateX: d, rotateY: p, skewX: m, skewY: y } = n; c && (r = `perspective(${c}px) ${r}`), f && (r += `rotate(${f}deg) `), d && (r += `rotateX(${d}deg) `), p && (r += `rotateY(${p}deg) `), m && (r += `skewX(${m}deg) `), y && (r += `skewY(${y}deg) `); } const s = e.x.scale * t.x, l = e.y.scale * t.y; return (s !== 1 || l !== 1) && (r += `scale(${s}, ${l})`), r || "none"; } const u7 = (e, t) => e.depth - t.depth; class f7 { constructor() { this.children = [], this.isDirty = !1; } add(t) { M1(this.children, t), this.isDirty = !0; } remove(t) { N1(this.children, t), this.isDirty = !0; } forEach(t) { this.isDirty && this.children.sort(u7), this.isDirty = !1, this.children.forEach(t); } } function lp(e) { const t = rr(e) ? e.get() : e; return n9(t) ? t.toValue() : t; } function d7(e, t) { const n = qi.now(), r = ({ timestamp: i }) => { const o = i - n; o >= t && (ja(r), e(o - t)); }; return Tt.read(r, !0), () => ja(r); } function h7(e) { return e instanceof SVGElement && e.tagName !== "svg"; } function p7(e, t, n) { const r = rr(e) ? e : yf(e); return r.start(k1("", r, t, n)), r.animation; } const ms = { type: "projectionFrame", totalNodes: 0, resolvedTargetDeltas: 0, recalculatedProjection: 0 }, Bu = typeof window < "u" && window.MotionDebug !== void 0, lb = ["", "X", "Y", "Z"], m7 = { visibility: "hidden" }, XP = 1e3; let g7 = 0; function cb(e, t, n, r) { const { latestValues: i } = t; i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0)); } function UI(e) { if (e.hasCheckedOptimisedAppear = !0, e.root === e) return; const { visualElement: t } = e.options; if (!t) return; const n = _I(t); if (window.MotionHasOptimisedAnimation(n, "transform")) { const { layout: i, layoutId: o } = e.options; window.MotionCancelOptimisedAnimation(n, "transform", Tt, !(i || o)); } const { parent: r } = e; r && !r.hasCheckedOptimisedAppear && UI(r); } function HI({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) { return class { constructor(a = {}, s = t == null ? void 0 : t()) { this.id = g7++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => { this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots()); }, this.updateProjection = () => { this.projectionUpdateScheduled = !1, Bu && (ms.totalNodes = ms.resolvedTargetDeltas = ms.recalculatedProjection = 0), this.nodes.forEach(b7), this.nodes.forEach(O7), this.nodes.forEach(A7), this.nodes.forEach(x7), Bu && window.MotionDebug.record(ms); }, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = a, this.root = s ? s.root || s : this, this.path = s ? [...s.path, s] : [], this.parent = s, this.depth = s ? s.depth + 1 : 0; for (let l = 0; l < this.path.length; l++) this.path[l].shouldResetTransform = !0; this.root === this && (this.nodes = new f7()); } addEventListener(a, s) { return this.eventHandlers.has(a) || this.eventHandlers.set(a, new $1()), this.eventHandlers.get(a).add(s); } notifyListeners(a, ...s) { const l = this.eventHandlers.get(a); l && l.notify(...s); } hasListeners(a) { return this.eventHandlers.has(a); } /** * Lifecycles */ mount(a, s = this.root.hasTreeAnimated) { if (this.instance) return; this.isSVG = h7(a), this.instance = a; const { layoutId: l, layout: c, visualElement: f } = this.options; if (f && !f.current && f.mount(a), this.root.nodes.add(this), this.parent && this.parent.children.add(this), s && (c || l) && (this.isLayoutDirty = !0), e) { let d; const p = () => this.root.updateBlockedByResize = !1; e(a, () => { this.root.updateBlockedByResize = !0, d && d(), d = d7(p, 250), sp.hasAnimatedSinceResize && (sp.hasAnimatedSinceResize = !1, this.nodes.forEach(JP)); }); } l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && f && (l || c) && this.addEventListener("didUpdate", ({ delta: d, hasLayoutChanged: p, hasRelativeTargetChanged: m, layout: y }) => { if (this.isTreeAnimationBlocked()) { this.target = void 0, this.relativeTarget = void 0; return; } const g = this.options.transition || f.getDefaultTransition() || k7, { onLayoutAnimationStart: v, onLayoutAnimationComplete: x } = f.getProps(), w = !this.targetLayout || !VI(this.targetLayout, y) || m, S = !p && m; if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || S || p && (w || !this.currentAnimation)) { this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(d, S); const A = { ...g1(g, "layout"), onPlay: v, onComplete: x }; (f.shouldReduceMotion || this.options.layoutRoot) && (A.delay = 0, A.type = !1), this.startAnimation(A); } else p || JP(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete(); this.targetLayout = y; }); } unmount() { this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this); const a = this.getStack(); a && a.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, ja(this.updateProjection); } // only on the root blockUpdate() { this.updateManuallyBlocked = !0; } unblockUpdate() { this.updateManuallyBlocked = !1; } isUpdateBlocked() { return this.updateManuallyBlocked || this.updateBlockedByResize; } isTreeAnimationBlocked() { return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1; } // Note: currently only running on root node startUpdate() { this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(T7), this.animationId++); } getTransformTemplate() { const { visualElement: a } = this.options; return a && a.getProps().transformTemplate; } willUpdate(a = !0) { if (this.root.hasTreeAnimated = !0, this.root.isUpdateBlocked()) { this.options.onExitComplete && this.options.onExitComplete(); return; } if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && UI(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return; this.isLayoutDirty = !0; for (let f = 0; f < this.path.length; f++) { const d = this.path[f]; d.shouldResetTransform = !0, d.updateScroll("snapshot"), d.options.layoutRoot && d.willUpdate(!1); } const { layoutId: s, layout: l } = this.options; if (s === void 0 && !l) return; const c = this.getTransformTemplate(); this.prevTransformTemplateValue = c ? c(this.latestValues, "") : void 0, this.updateSnapshot(), a && this.notifyListeners("willUpdate"); } update() { if (this.updateScheduled = !1, this.isUpdateBlocked()) { this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(ZP); return; } this.isUpdating || this.nodes.forEach(_7), this.isUpdating = !1, this.nodes.forEach(S7), this.nodes.forEach(y7), this.nodes.forEach(v7), this.clearAllSnapshots(); const s = qi.now(); zn.delta = La(0, 1e3 / 60, s - zn.timestamp), zn.timestamp = s, zn.isProcessing = !0, eb.update.process(zn), eb.preRender.process(zn), eb.render.process(zn), zn.isProcessing = !1; } didUpdate() { this.updateScheduled || (this.updateScheduled = !0, I1.read(this.scheduleUpdate)); } clearAllSnapshots() { this.nodes.forEach(w7), this.sharedNodes.forEach(P7); } scheduleUpdateProjection() { this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, Tt.preRender(this.updateProjection, !1, !0)); } scheduleCheckAfterUnmount() { Tt.postRender(() => { this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed(); }); } /** * Update measurements */ updateSnapshot() { this.snapshot || !this.instance || (this.snapshot = this.measure()); } updateLayout() { if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return; if (this.resumeFrom && !this.resumeFrom.instance) for (let l = 0; l < this.path.length; l++) this.path[l].updateScroll(); const a = this.layout; this.layout = this.measure(!1), this.layoutCorrected = ln(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox); const { visualElement: s } = this.options; s && s.notify("LayoutMeasure", this.layout.layoutBox, a ? a.layoutBox : void 0); } updateScroll(a = "measure") { let s = !!(this.options.layoutScroll && this.instance); if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === a && (s = !1), s) { const l = r(this.instance); this.scroll = { animationId: this.root.animationId, phase: a, isRoot: l, offset: n(this.instance), wasRoot: this.scroll ? this.scroll.isRoot : l }; } } resetTransform() { if (!i) return; const a = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, s = this.projectionDelta && !zI(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, f = c !== this.prevTransformTemplateValue; a && (s || ps(this.latestValues) || f) && (i(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender()); } measure(a = !0) { const s = this.measurePageBox(); let l = this.removeElementScroll(s); return a && (l = this.removeTransform(l)), M7(l), { animationId: this.root.animationId, measuredBox: s, layoutBox: l, latestValues: {}, source: this.id }; } measurePageBox() { var a; const { visualElement: s } = this.options; if (!s) return ln(); const l = s.measureViewportBox(); if (!(((a = this.scroll) === null || a === void 0 ? void 0 : a.wasRoot) || this.path.some(N7))) { const { scroll: f } = this.root; f && (Dl(l.x, f.offset.x), Dl(l.y, f.offset.y)); } return l; } removeElementScroll(a) { var s; const l = ln(); if (oi(l, a), !((s = this.scroll) === null || s === void 0) && s.wasRoot) return l; for (let c = 0; c < this.path.length; c++) { const f = this.path[c], { scroll: d, options: p } = f; f !== this.root && d && p.layoutScroll && (d.wasRoot && oi(l, a), Dl(l.x, d.offset.x), Dl(l.y, d.offset.y)); } return l; } applyTransform(a, s = !1) { const l = ln(); oi(l, a); for (let c = 0; c < this.path.length; c++) { const f = this.path[c]; !s && f.options.layoutScroll && f.scroll && f !== f.root && Il(l, { x: -f.scroll.offset.x, y: -f.scroll.offset.y }), ps(f.latestValues) && Il(l, f.latestValues); } return ps(this.latestValues) && Il(l, this.latestValues), l; } removeTransform(a) { const s = ln(); oi(s, a); for (let l = 0; l < this.path.length; l++) { const c = this.path[l]; if (!c.instance || !ps(c.latestValues)) continue; D0(c.latestValues) && c.updateSnapshot(); const f = ln(), d = c.measurePageBox(); oi(f, d), UP(s, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, f); } return ps(this.latestValues) && UP(s, this.latestValues), s; } setTargetDelta(a) { this.targetDelta = a, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0; } setOptions(a) { this.options = { ...this.options, ...a, crossfade: a.crossfade !== void 0 ? a.crossfade : !0 }; } clearMeasurements() { this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1; } forceRelativeParentToResolveTarget() { this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== zn.timestamp && this.relativeParent.resolveTargetDelta(!0); } resolveTargetDelta(a = !1) { var s; const l = this.getLead(); this.isProjectionDirty || (this.isProjectionDirty = l.isProjectionDirty), this.isTransformDirty || (this.isTransformDirty = l.isTransformDirty), this.isSharedProjectionDirty || (this.isSharedProjectionDirty = l.isSharedProjectionDirty); const c = !!this.resumingFrom || this !== l; if (!(a || c && this.isSharedProjectionDirty || this.isProjectionDirty || !((s = this.parent) === null || s === void 0) && s.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return; const { layout: d, layoutId: p } = this.options; if (!(!this.layout || !(d || p))) { if (this.resolvedRelativeTargetAt = zn.timestamp, !this.targetDelta && !this.relativeTarget) { const m = this.getClosestProjectingParent(); m && m.layout && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ln(), this.relativeTargetOrigin = ln(), Yu(this.relativeTargetOrigin, this.layout.layoutBox, m.layout.layoutBox), oi(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0; } if (!(!this.relativeTarget && !this.targetDelta)) { if (this.target || (this.target = ln(), this.targetWithTransforms = ln()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), $9(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : oi(this.target, this.layout.layoutBox), II(this.target, this.targetDelta)) : oi(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) { this.attemptToResolveRelativeTarget = !1; const m = this.getClosestProjectingParent(); m && !!m.resumingFrom == !!this.resumingFrom && !m.options.layoutScroll && m.target && this.animationProgress !== 1 ? (this.relativeParent = m, this.forceRelativeParentToResolveTarget(), this.relativeTarget = ln(), this.relativeTargetOrigin = ln(), Yu(this.relativeTargetOrigin, this.target, m.target), oi(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0; } Bu && ms.resolvedTargetDeltas++; } } } getClosestProjectingParent() { if (!(!this.parent || D0(this.parent.latestValues) || DI(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent(); } isProjecting() { return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout); } calcProjection() { var a; const s = this.getLead(), l = !!this.resumingFrom || this !== s; let c = !0; if ((this.isProjectionDirty || !((a = this.parent) === null || a === void 0) && a.isProjectionDirty) && (c = !1), l && (this.isSharedProjectionDirty || this.isTransformDirty) && (c = !1), this.resolvedRelativeTargetAt === zn.timestamp && (c = !1), c) return; const { layout: f, layoutId: d } = this.options; if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(f || d)) return; oi(this.layoutCorrected, this.layout.layoutBox); const p = this.treeScale.x, m = this.treeScale.y; z9(this.layoutCorrected, this.treeScale, this.path, l), s.layout && !s.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (s.target = s.layout.layoutBox, s.targetWithTransforms = ln()); const { target: y } = s; if (!y) { this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender()); return; } !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (WP(this.prevProjectionDelta.x, this.projectionDelta.x), WP(this.prevProjectionDelta.y, this.projectionDelta.y)), Gu(this.projectionDelta, this.layoutCorrected, y, this.latestValues), (this.treeScale.x !== p || this.treeScale.y !== m || !qP(this.projectionDelta.x, this.prevProjectionDelta.x) || !qP(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", y)), Bu && ms.recalculatedProjection++; } hide() { this.isVisible = !1; } show() { this.isVisible = !0; } scheduleRender(a = !0) { var s; if ((s = this.options.visualElement) === null || s === void 0 || s.scheduleRender(), a) { const l = this.getStack(); l && l.scheduleRender(); } this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0); } createProjectionDeltas() { this.prevProjectionDelta = $l(), this.projectionDelta = $l(), this.projectionDeltaWithTransform = $l(); } setAnimationOrigin(a, s = !1) { const l = this.snapshot, c = l ? l.latestValues : {}, f = { ...this.latestValues }, d = $l(); (!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !s; const p = ln(), m = l ? l.source : void 0, y = this.layout ? this.layout.source : void 0, g = m !== y, v = this.getStack(), x = !v || v.members.length <= 1, w = !!(g && !x && this.options.crossfade === !0 && !this.path.some(E7)); this.animationProgress = 0; let S; this.mixTargetDelta = (A) => { const _ = A / 1e3; QP(d.x, a.x, _), QP(d.y, a.y, _), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Yu(p, this.layout.layoutBox, this.relativeParent.layout.layoutBox), C7(this.relativeTarget, this.relativeTargetOrigin, p, _), S && s7(this.relativeTarget, S) && (this.isProjectionDirty = !1), S || (S = ln()), oi(S, this.relativeTarget)), g && (this.animationValues = f, t7(f, c, this.latestValues, _, w, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = _; }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0); } startAnimation(a) { this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (ja(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = Tt.update(() => { sp.hasAnimatedSinceResize = !0, this.currentAnimation = p7(0, XP, { ...a, onUpdate: (s) => { this.mixTargetDelta(s), a.onUpdate && a.onUpdate(s); }, onComplete: () => { a.onComplete && a.onComplete(), this.completeAnimation(); } }), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0; }); } completeAnimation() { this.resumingFrom && (this.resumingFrom.currentAnimation = void 0, this.resumingFrom.preserveOpacity = void 0); const a = this.getStack(); a && a.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete"); } finishAnimation() { this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(XP), this.currentAnimation.stop()), this.completeAnimation(); } applyTransformsToTarget() { const a = this.getLead(); let { targetWithTransforms: s, target: l, layout: c, latestValues: f } = a; if (!(!s || !l || !c)) { if (this !== a && this.layout && c && KI(this.options.animationType, this.layout.layoutBox, c.layoutBox)) { l = this.target || ln(); const d = Kr(this.layout.layoutBox.x); l.x.min = a.target.x.min, l.x.max = l.x.min + d; const p = Kr(this.layout.layoutBox.y); l.y.min = a.target.y.min, l.y.max = l.y.min + p; } oi(s, l), Il(s, f), Gu(this.projectionDeltaWithTransform, this.layoutCorrected, s, f); } } registerSharedNode(a, s) { this.sharedNodes.has(a) || this.sharedNodes.set(a, new l7()), this.sharedNodes.get(a).add(s); const c = s.options.initialPromotionConfig; s.promote({ transition: c ? c.transition : void 0, preserveFollowOpacity: c && c.shouldPreserveFollowOpacity ? c.shouldPreserveFollowOpacity(s) : void 0 }); } isLead() { const a = this.getStack(); return a ? a.lead === this : !0; } getLead() { var a; const { layoutId: s } = this.options; return s ? ((a = this.getStack()) === null || a === void 0 ? void 0 : a.lead) || this : this; } getPrevLead() { var a; const { layoutId: s } = this.options; return s ? (a = this.getStack()) === null || a === void 0 ? void 0 : a.prevLead : void 0; } getStack() { const { layoutId: a } = this.options; if (a) return this.root.sharedNodes.get(a); } promote({ needsReset: a, transition: s, preserveFollowOpacity: l } = {}) { const c = this.getStack(); c && c.promote(this, l), a && (this.projectionDelta = void 0, this.needsReset = !0), s && this.setOptions({ transition: s }); } relegate() { const a = this.getStack(); return a ? a.relegate(this) : !1; } resetSkewAndRotation() { const { visualElement: a } = this.options; if (!a) return; let s = !1; const { latestValues: l } = a; if ((l.z || l.rotate || l.rotateX || l.rotateY || l.rotateZ || l.skewX || l.skewY) && (s = !0), !s) return; const c = {}; l.z && cb("z", a, c, this.animationValues); for (let f = 0; f < lb.length; f++) cb(`rotate${lb[f]}`, a, c, this.animationValues), cb(`skew${lb[f]}`, a, c, this.animationValues); a.render(); for (const f in c) a.setStaticValue(f, c[f]), this.animationValues && (this.animationValues[f] = c[f]); a.scheduleRender(); } getProjectionStyles(a) { var s, l; if (!this.instance || this.isSVG) return; if (!this.isVisible) return m7; const c = { visibility: "" }, f = this.getTransformTemplate(); if (this.needsReset) return this.needsReset = !1, c.opacity = "", c.pointerEvents = lp(a == null ? void 0 : a.pointerEvents) || "", c.transform = f ? f(this.latestValues, "") : "none", c; const d = this.getLead(); if (!this.projectionDelta || !this.layout || !d.target) { const g = {}; return this.options.layoutId && (g.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, g.pointerEvents = lp(a == null ? void 0 : a.pointerEvents) || ""), this.hasProjected && !ps(this.latestValues) && (g.transform = f ? f({}, "") : "none", this.hasProjected = !1), g; } const p = d.animationValues || d.latestValues; this.applyTransformsToTarget(), c.transform = c7(this.projectionDeltaWithTransform, this.treeScale, p), f && (c.transform = f(p, c.transform)); const { x: m, y } = this.projectionDelta; c.transformOrigin = `${m.origin * 100}% ${y.origin * 100}% 0`, d.animationValues ? c.opacity = d === this ? (l = (s = p.opacity) !== null && s !== void 0 ? s : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : p.opacityExit : c.opacity = d === this ? p.opacity !== void 0 ? p.opacity : "" : p.opacityExit !== void 0 ? p.opacityExit : 0; for (const g in Ep) { if (p[g] === void 0) continue; const { correct: v, applyTo: x } = Ep[g], w = c.transform === "none" ? p[g] : v(p[g], d); if (x) { const S = x.length; for (let A = 0; A < S; A++) c[x[A]] = w; } else c[g] = w; } return this.options.layoutId && (c.pointerEvents = d === this ? lp(a == null ? void 0 : a.pointerEvents) || "" : "none"), c; } clearSnapshot() { this.resumeFrom = this.snapshot = void 0; } // Only run on root resetTree() { this.root.nodes.forEach((a) => { var s; return (s = a.currentAnimation) === null || s === void 0 ? void 0 : s.stop(); }), this.root.nodes.forEach(ZP), this.root.sharedNodes.clear(); } }; } function y7(e) { e.updateLayout(); } function v7(e) { var t; const n = ((t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) || e.snapshot; if (e.isLead() && e.layout && n && e.hasListeners("didUpdate")) { const { layoutBox: r, measuredBox: i } = e.layout, { animationType: o } = e.options, a = n.source !== e.layout.source; o === "size" ? ci((d) => { const p = a ? n.measuredBox[d] : n.layoutBox[d], m = Kr(p); p.min = r[d].min, p.max = p.min + m; }) : KI(o, n.layoutBox, r) && ci((d) => { const p = a ? n.measuredBox[d] : n.layoutBox[d], m = Kr(r[d]); p.max = p.min + m, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[d].max = e.relativeTarget[d].min + m); }); const s = $l(); Gu(s, r, n.layoutBox); const l = $l(); a ? Gu(l, e.applyTransform(i, !0), n.measuredBox) : Gu(l, r, n.layoutBox); const c = !zI(s); let f = !1; if (!e.resumeFrom) { const d = e.getClosestProjectingParent(); if (d && !d.resumeFrom) { const { snapshot: p, layout: m } = d; if (p && m) { const y = ln(); Yu(y, n.layoutBox, p.layoutBox); const g = ln(); Yu(g, r, m.layoutBox), VI(y, g) || (f = !0), d.options.layoutRoot && (e.relativeTarget = g, e.relativeTargetOrigin = y, e.relativeParent = d); } } } e.notifyListeners("didUpdate", { layout: r, snapshot: n, delta: l, layoutDelta: s, hasLayoutChanged: c, hasRelativeTargetChanged: f }); } else if (e.isLead()) { const { onExitComplete: r } = e.options; r && r(); } e.options.transition = void 0; } function b7(e) { Bu && ms.totalNodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty)); } function x7(e) { e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1; } function w7(e) { e.clearSnapshot(); } function ZP(e) { e.clearMeasurements(); } function _7(e) { e.isLayoutDirty = !1; } function S7(e) { const { visualElement: t } = e.options; t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform(); } function JP(e) { e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0; } function O7(e) { e.resolveTargetDelta(); } function A7(e) { e.calcProjection(); } function T7(e) { e.resetSkewAndRotation(); } function P7(e) { e.removeLeadSnapshot(); } function QP(e, t, n) { e.translate = Qt(t.translate, 0, n), e.scale = Qt(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint; } function eC(e, t, n, r) { e.min = Qt(t.min, n.min, r), e.max = Qt(t.max, n.max, r); } function C7(e, t, n, r) { eC(e.x, t.x, n.x, r), eC(e.y, t.y, n.y, r); } function E7(e) { return e.animationValues && e.animationValues.opacityExit !== void 0; } const k7 = { duration: 0.45, ease: [0.4, 0, 0.1, 1] }, tC = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), nC = tC("applewebkit/") && !tC("chrome/") ? Math.round : qn; function rC(e) { e.min = nC(e.min), e.max = nC(e.max); } function M7(e) { rC(e.x), rC(e.y); } function KI(e, t, n) { return e === "position" || e === "preserve-aspect" && !N9(YP(t), YP(n), 0.2); } function N7(e) { var t; return e !== e.root && ((t = e.scroll) === null || t === void 0 ? void 0 : t.wasRoot); } const $7 = HI({ attachResizeListener: (e, t) => To(e, "resize", t), measureScroll: () => ({ x: document.documentElement.scrollLeft || document.body.scrollLeft, y: document.documentElement.scrollTop || document.body.scrollTop }), checkIsScrollRoot: () => !0 }), ub = { current: void 0 }, GI = HI({ measureScroll: (e) => ({ x: e.scrollLeft, y: e.scrollTop }), defaultParent: () => { if (!ub.current) { const e = new $7({}); e.mount(window), e.setOptions({ layoutScroll: !0 }), ub.current = e; } return ub.current; }, resetTransform: (e, t) => { e.style.transform = t !== void 0 ? t : "none"; }, checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed" }), D7 = { pan: { Feature: Y9 }, drag: { Feature: G9, ProjectionNode: GI, MeasureLayout: BI } }; function iC(e, t) { const n = t ? "pointerenter" : "pointerleave", r = t ? "onHoverStart" : "onHoverEnd", i = (o, a) => { if (o.pointerType === "touch" || kI()) return; const s = e.getProps(); e.animationState && s.whileHover && e.animationState.setActive("whileHover", t); const l = s[r]; l && Tt.postRender(() => l(o, a)); }; return Do(e.current, n, i, { passive: !e.getProps()[r] }); } class I7 extends Va { mount() { this.unmount = $o(iC(this.node, !0), iC(this.node, !1)); } unmount() { } } class R7 extends Va { constructor() { super(...arguments), this.isActive = !1; } onFocus() { let t = !1; try { t = this.node.current.matches(":focus-visible"); } catch { t = !0; } !t || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !0), this.isActive = !0); } onBlur() { !this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1); } mount() { this.unmount = $o(To(this.node.current, "focus", () => this.onFocus()), To(this.node.current, "blur", () => this.onBlur())); } unmount() { } } const YI = (e, t) => t ? e === t ? !0 : YI(e, t.parentElement) : !1; function fb(e, t) { if (!t) return; const n = new PointerEvent("pointer" + e); t(n, xg(n)); } class j7 extends Va { constructor() { super(...arguments), this.removeStartListeners = qn, this.removeEndListeners = qn, this.removeAccessibleListeners = qn, this.startPointerPress = (t, n) => { if (this.isPressing) return; this.removeEndListeners(); const r = this.node.getProps(), o = Do(window, "pointerup", (s, l) => { if (!this.checkPressEnd()) return; const { onTap: c, onTapCancel: f, globalTapTarget: d } = this.node.getProps(), p = !d && !YI(this.node.current, s.target) ? f : c; p && Tt.update(() => p(s, l)); }, { passive: !(r.onTap || r.onPointerUp) }), a = Do(window, "pointercancel", (s, l) => this.cancelPress(s, l), { passive: !(r.onTapCancel || r.onPointerCancel) }); this.removeEndListeners = $o(o, a), this.startPress(t, n); }, this.startAccessiblePress = () => { const t = (o) => { if (o.key !== "Enter" || this.isPressing) return; const a = (s) => { s.key !== "Enter" || !this.checkPressEnd() || fb("up", (l, c) => { const { onTap: f } = this.node.getProps(); f && Tt.postRender(() => f(l, c)); }); }; this.removeEndListeners(), this.removeEndListeners = To(this.node.current, "keyup", a), fb("down", (s, l) => { this.startPress(s, l); }); }, n = To(this.node.current, "keydown", t), r = () => { this.isPressing && fb("cancel", (o, a) => this.cancelPress(o, a)); }, i = To(this.node.current, "blur", r); this.removeAccessibleListeners = $o(n, i); }; } startPress(t, n) { this.isPressing = !0; const { onTapStart: r, whileTap: i } = this.node.getProps(); i && this.node.animationState && this.node.animationState.setActive("whileTap", !0), r && Tt.postRender(() => r(t, n)); } checkPressEnd() { return this.removeEndListeners(), this.isPressing = !1, this.node.getProps().whileTap && this.node.animationState && this.node.animationState.setActive("whileTap", !1), !kI(); } cancelPress(t, n) { if (!this.checkPressEnd()) return; const { onTapCancel: r } = this.node.getProps(); r && Tt.postRender(() => r(t, n)); } mount() { const t = this.node.getProps(), n = Do(t.globalTapTarget ? window : this.node.current, "pointerdown", this.startPointerPress, { passive: !(t.onTapStart || t.onPointerStart) }), r = To(this.node.current, "focus", this.startAccessiblePress); this.removeStartListeners = $o(n, r); } unmount() { this.removeStartListeners(), this.removeEndListeners(), this.removeAccessibleListeners(); } } const R0 = /* @__PURE__ */ new WeakMap(), db = /* @__PURE__ */ new WeakMap(), L7 = (e) => { const t = R0.get(e.target); t && t(e); }, B7 = (e) => { e.forEach(L7); }; function F7({ root: e, ...t }) { const n = e || document; db.has(n) || db.set(n, {}); const r = db.get(n), i = JSON.stringify(t); return r[i] || (r[i] = new IntersectionObserver(B7, { root: e, ...t })), r[i]; } function W7(e, t, n) { const r = F7(t); return R0.set(e, n), r.observe(e), () => { R0.delete(e), r.unobserve(e); }; } const z7 = { some: 0, all: 1 }; class V7 extends Va { constructor() { super(...arguments), this.hasEnteredView = !1, this.isInView = !1; } startObserver() { this.unmount(); const { viewport: t = {} } = this.node.getProps(), { root: n, margin: r, amount: i = "some", once: o } = t, a = { root: n ? n.current : void 0, rootMargin: r, threshold: typeof i == "number" ? i : z7[i] }, s = (l) => { const { isIntersecting: c } = l; if (this.isInView === c || (this.isInView = c, o && !c && this.hasEnteredView)) return; c && (this.hasEnteredView = !0), this.node.animationState && this.node.animationState.setActive("whileInView", c); const { onViewportEnter: f, onViewportLeave: d } = this.node.getProps(), p = c ? f : d; p && p(l); }; return W7(this.node.current, a, s); } mount() { this.startObserver(); } update() { if (typeof IntersectionObserver > "u") return; const { props: t, prevProps: n } = this.node; ["amount", "margin", "root"].some(U7(t, n)) && this.startObserver(); } unmount() { } } function U7({ viewport: e = {} }, { viewport: t = {} } = {}) { return (n) => e[n] !== t[n]; } const H7 = { inView: { Feature: V7 }, tap: { Feature: j7 }, focus: { Feature: R7 }, hover: { Feature: I7 } }, K7 = { layout: { ProjectionNode: GI, MeasureLayout: BI } }, R1 = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)({ transformPagePoint: (e) => e, isStatic: !1, reducedMotion: "never" }), _g = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)({}), j1 = typeof window < "u", L1 = j1 ? react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_1__.useEffect, qI = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)({ strict: !1 }); function G7(e, t, n, r, i) { var o, a; const { visualElement: s } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_g), l = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(qI), c = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(wg), f = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(R1).reducedMotion, d = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(); r = r || l.renderer, !d.current && r && (d.current = r(e, { visualState: t, parent: s, props: n, presenceContext: c, blockInitialAnimation: c ? c.initial === !1 : !1, reducedMotionConfig: f })); const p = d.current, m = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(LI); p && !p.projection && i && (p.type === "html" || p.type === "svg") && Y7(d.current, n, i, m); const y = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(!1); (0,react__WEBPACK_IMPORTED_MODULE_1__.useInsertionEffect)(() => { p && y.current && p.update(n, c); }); const g = n[wI], v = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(!!g && !(!((o = window.MotionHandoffIsComplete) === null || o === void 0) && o.call(window, g)) && ((a = window.MotionHasOptimisedAnimation) === null || a === void 0 ? void 0 : a.call(window, g))); return L1(() => { p && (y.current = !0, window.MotionIsMounted = !0, p.updateFeatures(), I1.render(p.render), v.current && p.animationState && p.animationState.animateChanges()); }), (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { p && (!v.current && p.animationState && p.animationState.animateChanges(), v.current && (queueMicrotask(() => { var x; (x = window.MotionHandoffMarkAsComplete) === null || x === void 0 || x.call(window, g); }), v.current = !1)); }), p; } function Y7(e, t, n, r) { const { layoutId: i, layout: o, drag: a, dragConstraints: s, layoutScroll: l, layoutRoot: c } = t; e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : XI(e.parent)), e.projection.setOptions({ layoutId: i, layout: o, alwaysMeasureLayout: !!a || s && Nl(s), visualElement: e, /** * TODO: Update options in an effect. This could be tricky as it'll be too late * to update by the time layout animations run. * We also need to fix this safeToRemove by linking it up to the one returned by usePresence, * ensuring it gets called if there's no potential layout animations. * */ animationType: typeof o == "string" ? o : "both", initialPromotionConfig: r, layoutScroll: l, layoutRoot: c }); } function XI(e) { if (e) return e.options.allowProjection !== !1 ? e.projection : XI(e.parent); } function q7(e, t, n) { return (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)( (r) => { r && e.mount && e.mount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == "function" ? n(r) : Nl(n) && (n.current = r)); }, /** * Only pass a new ref callback to React if we've received a visual element * factory. Otherwise we'll be mounting/remounting every time externalRef * or other dependencies change. */ [t] ); } function Sg(e) { return yg(e.animate) || m1.some((t) => pf(e[t])); } function ZI(e) { return !!(Sg(e) || e.variants); } function X7(e, t) { if (Sg(e)) { const { initial: n, animate: r } = e; return { initial: n === !1 || pf(n) ? n : void 0, animate: pf(r) ? r : void 0 }; } return e.inherit !== !1 ? t : {}; } function Z7(e) { const { initial: t, animate: n } = X7(e, (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_g)); return (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => ({ initial: t, animate: n }), [oC(t), oC(n)]); } function oC(e) { return Array.isArray(e) ? e.join(" ") : e; } const aC = { animation: [ "animate", "variants", "whileHover", "whileTap", "exit", "whileInView", "whileFocus", "whileDrag" ], exit: ["exit"], drag: ["drag", "dragControls"], focus: ["whileFocus"], hover: ["whileHover", "onHoverStart", "onHoverEnd"], tap: ["whileTap", "onTap", "onTapStart", "onTapCancel"], pan: ["onPan", "onPanStart", "onPanSessionStart", "onPanEnd"], inView: ["whileInView", "onViewportEnter", "onViewportLeave"], layout: ["layout", "layoutId"] }, tc = {}; for (const e in aC) tc[e] = { isEnabled: (t) => aC[e].some((n) => !!t[n]) }; function J7(e) { for (const t in e) tc[t] = { ...tc[t], ...e[t] }; } const Q7 = Symbol.for("motionComponentSymbol"); function eX({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: r, Component: i }) { e && J7(e); function o(s, l) { let c; const f = { ...(0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(R1), ...s, layoutId: tX(s) }, { isStatic: d } = f, p = Z7(s), m = r(s, d); if (!d && j1) { nX(f, e); const y = rX(f); c = y.MeasureLayout, p.visualElement = G7(i, m, f, t, y.ProjectionNode); } return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_g.Provider, { value: p, children: [c && p.visualElement ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(c, { visualElement: p.visualElement, ...f }) : null, n(i, s, q7(m, p.visualElement, l), m, d, p.visualElement)] }); } const a = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(o); return a[Q7] = i, a; } function tX({ layoutId: e }) { const t = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(vf).id; return t && e !== void 0 ? t + "-" + e : e; } function nX(e, t) { const n = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(qI).strict; if ( true && t && n) { const r = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead."; e.ignoreStrict ? Ic(!1, r) : Wo(!1, r); } } function rX(e) { const { drag: t, layout: n } = tc; if (!t && !n) return {}; const r = { ...t, ...n }; return { MeasureLayout: t != null && t.isEnabled(e) || n != null && n.isEnabled(e) ? r.MeasureLayout : void 0, ProjectionNode: r.ProjectionNode }; } const iX = [ "animate", "circle", "defs", "desc", "ellipse", "g", "image", "line", "filter", "marker", "mask", "metadata", "path", "pattern", "polygon", "polyline", "rect", "stop", "switch", "symbol", "svg", "text", "tspan", "use", "view" ]; function B1(e) { return ( /** * If it's not a string, it's a custom React component. Currently we only support * HTML custom React components. */ typeof e != "string" || /** * If it contains a dash, the element is a custom HTML webcomponent. */ e.includes("-") ? !1 : ( /** * If it's in our list of lowercase SVG tags, it's an SVG component */ !!(iX.indexOf(e) > -1 || /** * If it contains a capital letter, it's an SVG component */ /[A-Z]/u.test(e)) ) ); } function JI(e, { style: t, vars: n }, r, i) { Object.assign(e.style, t, i && i.getProjectionStyles(r)); for (const o in n) e.style.setProperty(o, n[o]); } const QI = /* @__PURE__ */ new Set([ "baseFrequency", "diffuseConstant", "kernelMatrix", "kernelUnitLength", "keySplines", "keyTimes", "limitingConeAngle", "markerHeight", "markerWidth", "numOctaves", "targetX", "targetY", "surfaceScale", "specularConstant", "specularExponent", "stdDeviation", "tableValues", "viewBox", "gradientTransform", "pathLength", "startOffset", "textLength", "lengthAdjust" ]); function eR(e, t, n, r) { JI(e, t, void 0, r); for (const i in t.attrs) e.setAttribute(QI.has(i) ? i : D1(i), t.attrs[i]); } function tR(e, { layout: t, layoutId: n }) { return Gs.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Ep[e] || e === "opacity"); } function F1(e, t, n) { var r; const { style: i } = e, o = {}; for (const a in i) (rr(i[a]) || t.style && rr(t.style[a]) || tR(a, e) || ((r = n == null ? void 0 : n.getValue(a)) === null || r === void 0 ? void 0 : r.liveStyle) !== void 0) && (o[a] = i[a]); return o; } function nR(e, t, n) { const r = F1(e, t, n); for (const i in e) if (rr(e[i]) || rr(t[i])) { const o = dd.indexOf(i) !== -1 ? "attr" + i.charAt(0).toUpperCase() + i.substring(1) : i; r[o] = e[i]; } return r; } function W1(e) { const t = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null); return t.current === null && (t.current = e()), t.current; } function oX({ scrapeMotionValuesFromProps: e, createRenderState: t, onMount: n }, r, i, o) { const a = { latestValues: aX(r, i, o, e), renderState: t() }; return n && (a.mount = (s) => n(r, s, a)), a; } const rR = (e) => (t, n) => { const r = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_g), i = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(wg), o = () => oX(e, t, r, i); return n ? o() : W1(o); }; function aX(e, t, n, r) { const i = {}, o = r(e, {}); for (const p in o) i[p] = lp(o[p]); let { initial: a, animate: s } = e; const l = Sg(e), c = ZI(e); t && c && !l && e.inherit !== !1 && (a === void 0 && (a = t.initial), s === void 0 && (s = t.animate)); let f = n ? n.initial === !1 : !1; f = f || a === !1; const d = f ? s : a; if (d && typeof d != "boolean" && !yg(d)) { const p = Array.isArray(d) ? d : [d]; for (let m = 0; m < p.length; m++) { const y = h1(e, p[m]); if (y) { const { transitionEnd: g, transition: v, ...x } = y; for (const w in x) { let S = x[w]; if (Array.isArray(S)) { const A = f ? S.length - 1 : 0; S = S[A]; } S !== null && (i[w] = S); } for (const w in g) i[w] = g[w]; } } } return i; } const z1 = () => ({ style: {}, transform: {}, transformOrigin: {}, vars: {} }), iR = () => ({ ...z1(), attrs: {} }), oR = (e, t) => t && typeof e == "number" ? t.transform(e) : e, sX = { x: "translateX", y: "translateY", z: "translateZ", transformPerspective: "perspective" }, lX = dd.length; function cX(e, t, n) { let r = "", i = !0; for (let o = 0; o < lX; o++) { const a = dd[o], s = e[a]; if (s === void 0) continue; let l = !0; if (typeof s == "number" ? l = s === (a.startsWith("scale") ? 1 : 0) : l = parseFloat(s) === 0, !l || n) { const c = oR(s, S1[a]); if (!l) { i = !1; const f = sX[a] || a; r += `${f}(${c}) `; } n && (t[a] = c); } } return r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r; } function V1(e, t, n) { const { style: r, vars: i, transformOrigin: o } = e; let a = !1, s = !1; for (const l in t) { const c = t[l]; if (Gs.has(l)) { a = !0; continue; } else if (JD(l)) { i[l] = c; continue; } else { const f = oR(c, S1[l]); l.startsWith("origin") ? (s = !0, o[l] = f) : r[l] = f; } } if (t.transform || (a || n ? r.transform = cX(t, e.transform, n) : r.transform && (r.transform = "none")), s) { const { originX: l = "50%", originY: c = "50%", originZ: f = 0 } = o; r.transformOrigin = `${l} ${c} ${f}`; } } function sC(e, t, n) { return typeof e == "string" ? e : Be.transform(t + n * e); } function uX(e, t, n) { const r = sC(t, e.x, e.width), i = sC(n, e.y, e.height); return `${r} ${i}`; } const fX = { offset: "stroke-dashoffset", array: "stroke-dasharray" }, dX = { offset: "strokeDashoffset", array: "strokeDasharray" }; function hX(e, t, n = 1, r = 0, i = !0) { e.pathLength = 1; const o = i ? fX : dX; e[o.offset] = Be.transform(-r); const a = Be.transform(t), s = Be.transform(n); e[o.array] = `${a} ${s}`; } function U1(e, { attrX: t, attrY: n, attrScale: r, originX: i, originY: o, pathLength: a, pathSpacing: s = 1, pathOffset: l = 0, // This is object creation, which we try to avoid per-frame. ...c }, f, d) { if (V1(e, c, d), f) { e.style.viewBox && (e.attrs.viewBox = e.style.viewBox); return; } e.attrs = e.style, e.style = {}; const { attrs: p, style: m, dimensions: y } = e; p.transform && (y && (m.transform = p.transform), delete p.transform), y && (i !== void 0 || o !== void 0 || m.transform) && (m.transformOrigin = uX(y, i !== void 0 ? i : 0.5, o !== void 0 ? o : 0.5)), t !== void 0 && (p.x = t), n !== void 0 && (p.y = n), r !== void 0 && (p.scale = r), a !== void 0 && hX(p, a, s, l, !1); } const H1 = (e) => typeof e == "string" && e.toLowerCase() === "svg", pX = { useVisualState: rR({ scrapeMotionValuesFromProps: nR, createRenderState: iR, onMount: (e, t, { renderState: n, latestValues: r }) => { Tt.read(() => { try { n.dimensions = typeof t.getBBox == "function" ? t.getBBox() : t.getBoundingClientRect(); } catch { n.dimensions = { x: 0, y: 0, width: 0, height: 0 }; } }), Tt.render(() => { U1(n, r, H1(t.tagName), e.transformTemplate), eR(t, n); }); } }) }, mX = { useVisualState: rR({ scrapeMotionValuesFromProps: F1, createRenderState: z1 }) }; function aR(e, t, n) { for (const r in t) !rr(t[r]) && !tR(r, n) && (e[r] = t[r]); } function gX({ transformTemplate: e }, t) { return (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => { const n = z1(); return V1(n, t, e), Object.assign({}, n.vars, n.style); }, [t]); } function yX(e, t) { const n = e.style || {}, r = {}; return aR(r, n, e), Object.assign(r, gX(e, t)), r; } function vX(e, t) { const n = {}, r = yX(e, t); return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n; } const bX = /* @__PURE__ */ new Set([ "animate", "exit", "variants", "initial", "style", "values", "variants", "transition", "transformTemplate", "custom", "inherit", "onBeforeLayoutMeasure", "onAnimationStart", "onAnimationComplete", "onUpdate", "onDragStart", "onDrag", "onDragEnd", "onMeasureDragConstraints", "onDirectionLock", "onDragTransitionEnd", "_dragX", "_dragY", "onHoverStart", "onHoverEnd", "onViewportEnter", "onViewportLeave", "globalTapTarget", "ignoreStrict", "viewport" ]); function kp(e) { return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || bX.has(e); } let sR = (e) => !kp(e); function xX(e) { e && (sR = (t) => t.startsWith("on") ? !kp(t) : e(t)); } try { xX(require("@emotion/is-prop-valid").default); } catch { } function wX(e, t, n) { const r = {}; for (const i in e) i === "values" && typeof e.values == "object" || (sR(i) || n === !0 && kp(i) || !t && !kp(i) || // If trying to use native HTML drag events, forward drag listeners e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]); return r; } function _X(e, t, n, r) { const i = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => { const o = iR(); return U1(o, t, H1(r), e.transformTemplate), { ...o.attrs, style: { ...o.style } }; }, [t]); if (e.style) { const o = {}; aR(o, e.style, e), i.style = { ...o, ...i.style }; } return i; } function SX(e = !1) { return (n, r, i, { latestValues: o }, a) => { const l = (B1(n) ? _X : vX)(r, o, a, n), c = wX(r, typeof n == "string", e), f = n !== react__WEBPACK_IMPORTED_MODULE_1__.Fragment ? { ...c, ...l, ref: i } : {}, { children: d } = r, p = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => rr(d) ? d.get() : d, [d]); return (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)(n, { ...f, children: p }); }; } function OX(e, t) { return function(r, { forwardMotionProps: i } = { forwardMotionProps: !1 }) { const a = { ...B1(r) ? pX : mX, preloadedFeatures: e, useRender: SX(i), createVisualElement: t, Component: r }; return eX(a); }; } const j0 = { current: null }, lR = { current: !1 }; function AX() { if (lR.current = !0, !!j1) if (window.matchMedia) { const e = window.matchMedia("(prefers-reduced-motion)"), t = () => j0.current = e.matches; e.addListener(t), t(); } else j0.current = !1; } function TX(e, t, n) { for (const r in t) { const i = t[r], o = n[r]; if (rr(i)) e.addValue(r, i), true && gg(i.version === "11.11.17", `Attempting to mix Motion versions ${i.version} with 11.11.17 may not work as expected.`); else if (rr(o)) e.addValue(r, yf(i, { owner: e })); else if (o !== i) if (e.hasValue(r)) { const a = e.getValue(r); a.liveStyle === !0 ? a.jump(i) : a.hasAnimated || a.set(i); } else { const a = e.getStaticValue(r); e.addValue(r, yf(a !== void 0 ? a : i, { owner: e })); } } for (const r in n) t[r] === void 0 && e.removeValue(r); return t; } const lC = /* @__PURE__ */ new WeakMap(), PX = [...tI, er, Ba], CX = (e) => PX.find(eI(e)), cC = [ "AnimationStart", "AnimationComplete", "Update", "BeforeLayoutMeasure", "LayoutMeasure", "LayoutAnimationStart", "LayoutAnimationComplete" ]; class EX { /** * This method takes React props and returns found MotionValues. For example, HTML * MotionValues will be found within the style prop, whereas for Three.js within attribute arrays. * * This isn't an abstract method as it needs calling in the constructor, but it is * intended to be one. */ scrapeMotionValuesFromProps(t, n, r) { return {}; } constructor({ parent: t, props: n, presenceContext: r, reducedMotionConfig: i, blockInitialAnimation: o, visualState: a }, s = {}) { this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = x1, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => { this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection)); }, this.renderScheduledAt = 0, this.scheduleRender = () => { const p = qi.now(); this.renderScheduledAt < p && (this.renderScheduledAt = p, Tt.render(this.render, !1, !0)); }; const { latestValues: l, renderState: c } = a; this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = c, this.parent = t, this.props = n, this.presenceContext = r, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = s, this.blockInitialAnimation = !!o, this.isControllingVariants = Sg(n), this.isVariantNode = ZI(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current); const { willChange: f, ...d } = this.scrapeMotionValuesFromProps(n, {}, this); for (const p in d) { const m = d[p]; l[p] !== void 0 && rr(m) && m.set(l[p], !1); } } mount(t) { this.current = t, lC.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), lR.current || AX(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : j0.current, true && gg(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext); } unmount() { lC.delete(this.current), this.projection && this.projection.unmount(), ja(this.notifyUpdate), ja(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this); for (const t in this.events) this.events[t].clear(); for (const t in this.features) { const n = this.features[t]; n && (n.unmount(), n.isMounted = !1); } this.current = null; } bindToMotionValue(t, n) { this.valueSubscriptions.has(t) && this.valueSubscriptions.get(t)(); const r = Gs.has(t), i = n.on("change", (s) => { this.latestValues[t] = s, this.props.onUpdate && Tt.preRender(this.notifyUpdate), r && this.projection && (this.projection.isTransformDirty = !0); }), o = n.on("renderRequest", this.scheduleRender); let a; window.MotionCheckAppearSync && (a = window.MotionCheckAppearSync(this, t, n)), this.valueSubscriptions.set(t, () => { i(), o(), a && a(), n.owner && n.stop(); }); } sortNodePosition(t) { return !this.current || !this.sortInstanceNodePosition || this.type !== t.type ? 0 : this.sortInstanceNodePosition(this.current, t.current); } updateFeatures() { let t = "animation"; for (t in tc) { const n = tc[t]; if (!n) continue; const { isEnabled: r, Feature: i } = n; if (!this.features[t] && i && r(this.props) && (this.features[t] = new i(this)), this.features[t]) { const o = this.features[t]; o.isMounted ? o.update() : (o.mount(), o.isMounted = !0); } } } triggerBuild() { this.build(this.renderState, this.latestValues, this.props); } /** * Measure the current viewport box with or without transforms. * Only measures axis-aligned boxes, rotate and skew must be manually * removed with a re-render to work. */ measureViewportBox() { return this.current ? this.measureInstanceViewportBox(this.current, this.props) : ln(); } getStaticValue(t) { return this.latestValues[t]; } setStaticValue(t, n) { this.latestValues[t] = n; } /** * Update the provided props. Ensure any newly-added motion values are * added to our map, old ones removed, and listeners updated. */ update(t, n) { (t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = n; for (let r = 0; r < cC.length; r++) { const i = cC[r]; this.propEventSubscriptions[i] && (this.propEventSubscriptions[i](), delete this.propEventSubscriptions[i]); const o = "on" + i, a = t[o]; a && (this.propEventSubscriptions[i] = this.on(i, a)); } this.prevMotionValues = TX(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(); } getProps() { return this.props; } /** * Returns the variant definition with a given name. */ getVariant(t) { return this.props.variants ? this.props.variants[t] : void 0; } /** * Returns the defined default transition on this component. */ getDefaultTransition() { return this.props.transition; } getTransformPagePoint() { return this.props.transformPagePoint; } getClosestVariantNode() { return this.isVariantNode ? this : this.parent ? this.parent.getClosestVariantNode() : void 0; } /** * Add a child visual element to our set of children. */ addVariantChild(t) { const n = this.getClosestVariantNode(); if (n) return n.variantChildren && n.variantChildren.add(t), () => n.variantChildren.delete(t); } /** * Add a motion value and bind it to this visual element. */ addValue(t, n) { const r = this.values.get(t); n !== r && (r && this.removeValue(t), this.bindToMotionValue(t, n), this.values.set(t, n), this.latestValues[t] = n.get()); } /** * Remove a motion value and unbind any active subscriptions. */ removeValue(t) { this.values.delete(t); const n = this.valueSubscriptions.get(t); n && (n(), this.valueSubscriptions.delete(t)), delete this.latestValues[t], this.removeValueFromRenderState(t, this.renderState); } /** * Check whether we have a motion value for this key */ hasValue(t) { return this.values.has(t); } getValue(t, n) { if (this.props.values && this.props.values[t]) return this.props.values[t]; let r = this.values.get(t); return r === void 0 && n !== void 0 && (r = yf(n === null ? void 0 : n, { owner: this }), this.addValue(t, r)), r; } /** * If we're trying to animate to a previously unencountered value, * we need to check for it in our state and as a last resort read it * directly from the instance (which might have performance implications). */ readValue(t, n) { var r; let i = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : (r = this.getBaseTargetFromProps(this.props, t)) !== null && r !== void 0 ? r : this.readValueFromInstance(this.current, t, this.options); return i != null && (typeof i == "string" && (XD(i) || qD(i)) ? i = parseFloat(i) : !CX(i) && Ba.test(n) && (i = cI(t, n)), this.setBaseTarget(t, rr(i) ? i.get() : i)), rr(i) ? i.get() : i; } /** * Set the base target to later animate back to. This is currently * only hydrated on creation and when we first read a value. */ setBaseTarget(t, n) { this.baseTarget[t] = n; } /** * Find the base target for a value thats been removed from all animation * props. */ getBaseTarget(t) { var n; const { initial: r } = this.props; let i; if (typeof r == "string" || typeof r == "object") { const a = h1(this.props, r, (n = this.presenceContext) === null || n === void 0 ? void 0 : n.custom); a && (i = a[t]); } if (r && i !== void 0) return i; const o = this.getBaseTargetFromProps(this.props, t); return o !== void 0 && !rr(o) ? o : this.initialValues[t] !== void 0 && i === void 0 ? void 0 : this.baseTarget[t]; } on(t, n) { return this.events[t] || (this.events[t] = new $1()), this.events[t].add(n); } notify(t, ...n) { this.events[t] && this.events[t].notify(...n); } } class cR extends EX { constructor() { super(...arguments), this.KeyframeResolver = uI; } sortInstanceNodePosition(t, n) { return t.compareDocumentPosition(n) & 2 ? 1 : -1; } getBaseTargetFromProps(t, n) { return t.style ? t.style[n] : void 0; } removeValueFromRenderState(t, { vars: n, style: r }) { delete n[t], delete r[t]; } } function kX(e) { return window.getComputedStyle(e); } class MX extends cR { constructor() { super(...arguments), this.type = "html", this.renderInstance = JI; } readValueFromInstance(t, n) { if (Gs.has(n)) { const r = O1(n); return r && r.default || 0; } else { const r = kX(t), i = (JD(n) ? r.getPropertyValue(n) : r[n]) || 0; return typeof i == "string" ? i.trim() : i; } } measureInstanceViewportBox(t, { transformPagePoint: n }) { return RI(t, n); } build(t, n, r) { V1(t, n, r.transformTemplate); } scrapeMotionValuesFromProps(t, n, r) { return F1(t, n, r); } handleChildMotionValue() { this.childSubscription && (this.childSubscription(), delete this.childSubscription); const { children: t } = this.props; rr(t) && (this.childSubscription = t.on("change", (n) => { this.current && (this.current.textContent = `${n}`); })); } } class NX extends cR { constructor() { super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = ln; } getBaseTargetFromProps(t, n) { return t[n]; } readValueFromInstance(t, n) { if (Gs.has(n)) { const r = O1(n); return r && r.default || 0; } return n = QI.has(n) ? n : D1(n), t.getAttribute(n); } scrapeMotionValuesFromProps(t, n, r) { return nR(t, n, r); } build(t, n, r) { U1(t, n, this.isSVGTag, r.transformTemplate); } renderInstance(t, n, r, i) { eR(t, n, r, i); } mount(t) { this.isSVGTag = H1(t.tagName), super.mount(t); } } const $X = (e, t) => B1(e) ? new NX(t) : new MX(t, { allowProjection: e !== react__WEBPACK_IMPORTED_MODULE_1__.Fragment }), DX = /* @__PURE__ */ OX({ ...S9, ...H7, ...D7, ...K7 }, $X), An = /* @__PURE__ */ pY(DX); class IX extends react__WEBPACK_IMPORTED_MODULE_1__.Component { getSnapshotBeforeUpdate(t) { const n = this.props.childRef.current; if (n && t.isPresent && !this.props.isPresent) { const r = this.props.sizeRef.current; r.height = n.offsetHeight || 0, r.width = n.offsetWidth || 0, r.top = n.offsetTop, r.left = n.offsetLeft; } return null; } /** * Required with getSnapshotBeforeUpdate to stop React complaining. */ componentDidUpdate() { } render() { return this.props.children; } } function RX({ children: e, isPresent: t }) { const n = (0,react__WEBPACK_IMPORTED_MODULE_1__.useId)(), r = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), i = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)({ width: 0, height: 0, top: 0, left: 0 }), { nonce: o } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(R1); return (0,react__WEBPACK_IMPORTED_MODULE_1__.useInsertionEffect)(() => { const { width: a, height: s, top: l, left: c } = i.current; if (t || !r.current || !a || !s) return; r.current.dataset.motionPopId = n; const f = document.createElement("style"); return o && (f.nonce = o), document.head.appendChild(f), f.sheet && f.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${a}px !important; height: ${s}px !important; top: ${l}px !important; left: ${c}px !important; } `), () => { document.head.removeChild(f); }; }, [t]), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(IX, { isPresent: t, childRef: r, sizeRef: i, children: react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(e, { ref: r }) }); } const jX = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: o, mode: a }) => { const s = W1(LX), l = (0,react__WEBPACK_IMPORTED_MODULE_1__.useId)(), c = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((d) => { s.set(d, !0); for (const p of s.values()) if (!p) return; r && r(); }, [s, r]), f = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)( () => ({ id: l, initial: t, isPresent: n, custom: i, onExitComplete: c, register: (d) => (s.set(d, !1), () => s.delete(d)) }), /** * If the presence of a child affects the layout of the components around it, * we want to make a new context value to ensure they get re-rendered * so they can detect that layout change. */ o ? [Math.random(), c] : [n, c] ); return (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => { s.forEach((d, p) => s.set(p, !1)); }, [n]), react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { !n && !s.size && r && r(); }, [n]), a === "popLayout" && (e = (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(RX, { isPresent: n, children: e })), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(wg.Provider, { value: f, children: e }); }; function LX() { return /* @__PURE__ */ new Map(); } const Nh = (e) => e.key || ""; function uC(e) { const t = []; return react__WEBPACK_IMPORTED_MODULE_1__.Children.forEach(e, (n) => { (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(n) && t.push(n); }), t; } const Ys = ({ children: e, exitBeforeEnter: t, custom: n, initial: r = !0, onExitComplete: i, presenceAffectsLayout: o = !0, mode: a = "sync" }) => { Wo(!t, "Replace exitBeforeEnter with mode='wait'"); const s = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => uC(e), [e]), l = s.map(Nh), c = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(!0), f = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(s), d = W1(() => /* @__PURE__ */ new Map()), [p, m] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(s), [y, g] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(s); L1(() => { c.current = !1, f.current = s; for (let w = 0; w < y.length; w++) { const S = Nh(y[w]); l.includes(S) ? d.delete(S) : d.get(S) !== !0 && d.set(S, !1); } }, [y, l.length, l.join("-")]); const v = []; if (s !== p) { let w = [...s]; for (let S = 0; S < y.length; S++) { const A = y[S], _ = Nh(A); l.includes(_) || (w.splice(S, 0, A), v.push(A)); } a === "wait" && v.length && (w = v), g(uC(w)), m(s); return; } true && a === "wait" && y.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`); const { forceRender: x } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(vf); return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: y.map((w) => { const S = Nh(w), A = s === y || l.includes(S), _ = () => { if (d.has(S)) d.set(S, !0); else return; let O = !0; d.forEach((P) => { P || (O = !1); }), O && (x == null || x(), g(f.current), i && i()); }; return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(jX, { isPresent: A, initial: !c.current || r ? void 0 : !1, custom: A ? void 0 : n, presenceAffectsLayout: o, mode: a, onExitComplete: A ? void 0 : _, children: w }, S); }) }); }, BX = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)(null); function FX() { const e = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(!1); return L1(() => (e.current = !0, () => { e.current = !1; }), []), e; } function WX() { const e = FX(), [t, n] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(0), r = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => { e.current && n(t + 1); }, [t]); return [(0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => Tt.postRender(r), [r]), t]; } const zX = (e) => !e.isLayoutDirty && e.willUpdate(!1); function fC() { const e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new WeakMap(), n = () => e.forEach(zX); return { add: (r) => { e.add(r), t.set(r, r.addEventListener("willUpdate", n)); }, remove: (r) => { e.delete(r); const i = t.get(r); i && (i(), t.delete(r)), n(); }, dirty: n }; } const uR = (e) => e === !0, VX = (e) => uR(e === !0) || e === "id", UX = ({ children: e, id: t, inherit: n = !0 }) => { const r = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(vf), i = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(BX), [o, a] = WX(), s = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), l = r.id || i; s.current === null && (VX(n) && l && (t = t ? l + "-" + t : l), s.current = { id: t, group: uR(n) && r.group || fC() }); const c = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => ({ ...s.current, forceRender: o }), [a]); return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(vf.Provider, { value: c, children: e }); }, HX = (e, t, n) => { const r = t - e; return ((n - e) % r + r) % r + e; }; function KX(...e) { const t = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(0), [n, r] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(e[t.current]), i = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)( (o) => { t.current = typeof o != "number" ? HX(0, e.length, t.current + 1) : o, r(e[t.current]); }, // The array will change on each call, but by putting items.length at // the front of this array, we guarantee the dependency comparison will match up // eslint-disable-next-line react-hooks/exhaustive-deps [e.length, ...e] ); return [n, i]; } const fR = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)({}), dR = () => (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(fR), hR = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)(null), GX = () => (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(hR), pR = ({ children: e, activeItem: t = null, // The currently active item in the group. onChange: n, // Callback when the active item changes. className: r, // Additional class names for styling. size: i = "sm", // Size of the tabs in the group ('xs', 'sm', 'md', 'lg'). orientation: o = "horizontal", // Orientation of the tabs ('horizontal', 'vertical'). variant: a = "pill", // Style variant of the tabs ('pill', 'rounded', 'underline'). iconPosition: s = "left", // Position of the icon in the tab ('left' or 'right'). width: l = "full" // Width of the tabs ('auto' or 'full'). }) => { const c = io(), f = dR(), d = (f == null ? void 0 : f.activeItem) || t, p = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)( (O, P) => { n && n({ event: O, value: P }); }, [n] ); let m = "rounded-full", y = "p-1", g, v = "ring-1 ring-tab-border"; o === "vertical" ? g = "gap-0.5" : (a === "rounded" || a === "pill") && (i === "xs" || i === "sm" ? g = "gap-0.5" : (i === "md" || i === "lg") && (g = "gap-1")), a === "rounded" || o === "vertical" ? m = "rounded-md" : a === "underline" && (m = "rounded-none", y = "p-0", v = "border-t-0 border-r-0 border-l-0 border-b border-solid border-tab-border", i === "xs" ? g = "gap-0" : i === "sm" ? g = "gap-2.5" : (i === "md" || i === "lg") && (g = "gap-3")); const _ = K( `box-border [&>*]:box-border flex items-center ${l === "full" ? "w-full" : ""} ${o === "vertical" ? "flex-col" : ""}`, m, y, g, v, a !== "underline" ? "bg-tab-background" : "", r ); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: _, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( hR.Provider, { value: { activeItem: d, onChange: p, size: i, variant: a, orientation: o, iconPosition: s, width: l }, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(UX, { id: c, children: react__WEBPACK_IMPORTED_MODULE_1__.Children.map(e, (O) => (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(O) ? react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(O) : null) }) } ) }); }; pR.displayName = "Tabs.Group"; const mR = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)( ({ slug: e, text: t, icon: n, className: r, disabled: i = !1, badge: o = null, ...a }, s) => { const l = GX(); if (!l) throw new Error("Tab should be used inside Tabs Group"); const { activeItem: c, onChange: f, size: d, variant: p, orientation: m, iconPosition: y, width: g } = l, v = { xs: "px-1.5 py-0.5 text-xs [&_svg]:size-3", sm: p === "underline" ? "py-1.5 text-sm [&_svg]:size-4" : "px-3 py-1.5 text-sm [&_svg]:size-4", md: p === "underline" ? "py-2 text-base [&_svg]:size-5" : "px-3.5 py-1.5 text-base [&_svg]:size-5", lg: p === "underline" ? "p-2.5 text-lg [&_svg]:size-6" : "px-3.5 py-1.5 text-lg [&_svg]:size-6" }[d], S = K( "relative border-none bg-transparent text-text-secondary cursor-pointer flex items-center justify-center transition-[box-shadow,color,background-color] duration-200", g === "full" ? "flex-1" : "", m === "vertical" ? "w-full justify-between" : "" ), A = "border-none"; let _ = "rounded-full"; p === "rounded" ? _ = "rounded-md" : p === "underline" && (_ = "rounded-none"); const I = K( S, A, _, "hover:text-text-primary group", "focus:outline-none", v, c === e ? "bg-background-primary text-text-primary shadow-sm" : "", i ? "text-text-disabled cursor-not-allowed hover:text-text-disabled" : "", r ), $ = K( "flex items-center gap-1 group-hover:text-text-primary", i && "group-hover:text-text-disabled" ), N = (D) => { f(D, { slug: e, text: t }); }; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( An.button, { ref: s, className: I, disabled: i, onClick: N, ...a, layoutRoot: !0, children: [ c === e && p === "underline" && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( An.span, { layoutId: "underline", layoutDependency: c, className: "absolute right-0 left-0 -bottom-px h-px bg-border-interactive" } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", { className: $, children: [ y === "left" && n && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "mr-1 contents center-center transition duration-150", children: n }), t, y === "right" && n && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "ml-1 contents center-center transition duration-150", children: n }) ] }), o && (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(o) && o ] } ); } ); mR.displayName = "Tabs.Tab"; const K1 = ({ activeItem: e, children: t }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(fR.Provider, { value: { activeItem: e }, children: t }), gR = ({ slug: e, children: t }) => { const n = dR(); if (!n) throw new Error("TabPanel should be used inside Tabs"); return e === n.activeItem ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: t }) : null; }; gR.displayName = "Tabs.Panel"; K1.Group = pR; K1.Tab = mR; K1.Panel = gR; const ui = { sm: { icon: "[&>svg]:size-4", searchIcon: "[&>svg]:size-4", selectButton: "px-2.5 py-2 rounded text-sm font-medium leading-4 min-h-[2rem]", multiSelect: "pl-2 pr-2 py-1.5", displaySelected: "text-sm font-normal", dropdown: "rounded-md", dropdownItemsWrapper: "p-1.5", searchbarWrapper: "p-3 flex items-center gap-0.5", searchbar: "font-medium text-sm", searchbarIcon: "size-4", label: "text-sm font-medium" }, md: { icon: "[&>svg]:size-5", searchIcon: "[&>svg]:size-5", selectButton: "px-3.5 py-2.5 rounded-md text-xs font-medium leading-4 min-h-[2.5rem]", multiSelect: "pl-2 pr-2.5 py-2", displaySelected: "text-sm font-normal", dropdown: "rounded-lg", dropdownItemsWrapper: "p-2", searchbarWrapper: "p-2.5 flex items-center gap-1", searchbar: "font-medium text-sm", searchbarIcon: "size-5", label: "text-sm font-medium" }, lg: { icon: "[&>svg]:size-6", searchIcon: "[&>svg]:size-5", selectButton: "px-4 py-3 rounded-lg text-sm font-medium leading-5 min-h-[3rem]", multiSelect: "pl-2.5 pr-3 py-2.5", displaySelected: "text-base font-normal", dropdown: "rounded-lg", dropdownItemsWrapper: "p-2", searchbarWrapper: "p-2.5 flex items-center gap-1", searchbar: "font-medium text-sm", searchbarIcon: "size-5", label: "text-base font-medium" } }, $h = { selectButton: "group disabled:outline-field-border-disabled [&:hover:has(:disabled)]:outline-field-border-disabled disabled:cursor-default", icon: "group-disabled:text-icon-disabled", text: "group-disabled:text-field-color-disabled" }, YX = "h-px my-2 w-full border-border-subtle border-b border-t-0 border-solid", qX = { sm: "w-[calc(100%+0.75rem)] translate-x-[-0.375rem]", md: "w-[calc(100%+1rem)] translate-x-[-0.5rem]", lg: "w-[calc(100%+1rem)] translate-x-[-0.5rem]" }, cp = (e) => { var t; return typeof e == "string" ? e : typeof e == "object" && "textContent" in e ? ((t = e.textContent) == null ? void 0 : t.toString().toLowerCase()) || "" : typeof e == "object" && "children" in e ? cp(e.children) : ""; }, XX = (e, t = 500) => { const n = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null); return (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)( (...r) => { n.current && clearTimeout(n.current), n.current = setTimeout( () => e(...r), t ); }, [e, t] ); }, yR = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)( {} ), Og = () => (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(yR); function vR({ children: e, icon: t = null, // Icon to show in the select button. placeholder: n = "Select an option", // Placeholder text. optionIcon: r = null, // Icon to show in the selected option. render: i, label: o, // Label for the select component. className: a, ...s }) { var k, I; const { sizeValue: l, getReferenceProps: c, getValues: f, selectId: d, refs: p, isOpen: m, multiple: y, combobox: g, setSelected: v, onChange: x, isControlled: w, disabled: S, by: A } = Og(), _ = { sm: "xs", md: "sm", lg: "md" }[l], O = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => { if (t) return t; const $ = "text-field-placeholder " + $h.icon; return g ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(YH, { className: $ }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Xw, { className: $ }); }, [t]), P = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => { const $ = f(); if (!$) return null; if (y) return $.map( (D, j) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( mg, { className: "cursor-default", icon: r, type: "rounded", size: _, onMouseDown: C(D), label: typeof i == "function" ? i(D) : D.toString(), closable: !0, disabled: S }, j ) ); let N = typeof $ == "string" ? $ : ""; if (typeof i == "function" && (N = i($)), typeof e == "function" && typeof i != "function") { const D = { value: $, ...y ? { onClose: C( $ ) } : {} }; N = e(D); } return ((0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(e) || typeof e == "string") && typeof i != "function" && (N = e), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "span", { className: K( "truncate", ui[l].displaySelected, $h.text ), children: N } ); }, [f, S]), C = ($) => (N) => { N == null || N.preventDefault(), N == null || N.stopPropagation(); const D = [ ...f() ?? [] ], j = D.findIndex((F) => F !== null && $ !== null && typeof F == "object" ? F[A] === $[A] : F === $); j !== -1 && (D.splice(j, 1), w || v(D), typeof x == "function" && x(D)); }; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "w-full flex flex-col items-start gap-1.5 [&_*]:box-border box-border", children: [ !!o && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "label", { className: K( (k = ui[l]) == null ? void 0 : k.label, "text-field-label" ), htmlFor: d, children: o } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "button", { id: d, ref: p.setReference, className: K( "flex items-center justify-between w-full box-border transition-[outline,background-color,color,box-shadow] duration-200 bg-white", "outline outline-1 outline-field-border border-none cursor-pointer", !m && "focus:ring-2 focus:ring-offset-2 focus:outline-focus-border focus:ring-focus [&:hover:not(:focus):not(:disabled)]:outline-border-strong", ui[l].selectButton, y && ui[l].multiSelect, $h.selectButton, a ), tabIndex: 0, disabled: S, ...s, ...c(), children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K( "flex-1 grid items-center justify-start gap-1.5 overflow-hidden", f() && "flex flex-wrap" ), children: [ P(), (y ? !((I = f()) != null && I.length) : !f()) && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "[grid-area:1/1/2/3] text-field-input px-1", ui[l].displaySelected, $h.text ), children: n } ) ] } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "flex items-center [&>svg]:shrink-0", ui[l].icon ), children: O() } ) ] } ) ] }); } function Rl({ label: e, children: t, className: n, ...r }) { const { index: i, totalGroups: o } = r, { sizeValue: a } = Og(); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, { children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex flex-col", role: "group", "aria-label": e, children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "p-2 font-normal text-text-tertiary", { sm: "text-xs", md: "text-xs", lg: "text-sm" }[a], n ), id: `group-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`, children: e } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: "flex flex-col", role: "presentation", "aria-labelledby": `group-${e == null ? void 0 : e.toLowerCase().replace(/\s+/g, "-")}`, children: t } ) ] }), i < o && !!(t && react__WEBPACK_IMPORTED_MODULE_1__.Children.count(t) > 0) && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "hr", { className: K( YX, qX[a] ) } ) ] }); } function bR({ children: e, className: t // Additional class name for the dropdown. }) { const { isOpen: n, context: r, refs: i, combobox: o, floatingStyles: a, getFloatingProps: s, sizeValue: l, setSearchKeyword: c, setActiveIndex: f, setSelectedIndex: d, value: p, selected: m, getValues: y, searchKeyword: g, listContentRef: v, by: x, searchPlaceholder: w, activeIndex: S, searchFn: A, debounceDelay: _ } = Og(), O = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => { const D = y(); let j = -1; if (D) { let F = react__WEBPACK_IMPORTED_MODULE_1__.Children.toArray(e); F.length > 0 && (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(F[0]) && F[0].type === Rl && (F = react__WEBPACK_IMPORTED_MODULE_1__.Children.toArray(e).map( (W) => (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(W) ? react__WEBPACK_IMPORTED_MODULE_1__.Children.toArray(W.props.children) : [] ).flat()), j = F.findIndex((W) => { if (!(0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(W)) return !1; const z = W.props.value; return typeof z == "object" && typeof D == "object" ? z[x] === D[x] : z === D; }); } return j; }, [p, m, e, x]); (0,react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(() => { n || (f(O), d(O)); }, [O, n]), (0,react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(() => { n && (o && [-1, null].includes(S) || f(-1)); }, [g, n]); const P = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => { let D = 0, j = 0; react__WEBPACK_IMPORTED_MODULE_1__.Children.forEach(e, (H) => { (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(H) && H.type === Rl && react__WEBPACK_IMPORTED_MODULE_1__.Children.toArray( H.props.children ).some((V) => { var Y; if (!(0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(V)) return !1; if (g && !A) { const Q = (Y = cp( V.props.children )) == null ? void 0 : Y.toLowerCase(), ne = g.toLowerCase(); return Q.includes(ne); } return !0; }) && D++; }), j = Math.max(0, D - 1); let F = 0, W = 0; const z = (H) => { var U, V; if (!(0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(H)) return null; if (H.type === Rl) { const Y = react__WEBPACK_IMPORTED_MODULE_1__.Children.map( H.props.children, z ); if (!(Y == null ? void 0 : Y.some((re) => re !== null))) return null; const ne = { ...H.props, children: Y, index: W, totalGroups: j }; return W++, (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(H, ne); } if (g && !A) { const Y = (V = cp( (U = H.props) == null ? void 0 : U.children )) == null ? void 0 : V.toLowerCase(), Q = g.toLowerCase(); if (!(Y == null ? void 0 : Y.includes(Q))) return null; } return (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(H, { ...H.props, index: F++ }); }; return react__WEBPACK_IMPORTED_MODULE_1__.Children.map(e, z); }, [g, p, m, e, A]), C = react__WEBPACK_IMPORTED_MODULE_1__.Children.count(P); (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { v.current = []; let D = react__WEBPACK_IMPORTED_MODULE_1__.Children.toArray(e); D && (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(D[0]) && D[0].type === Rl && (D = react__WEBPACK_IMPORTED_MODULE_1__.Children.toArray(D).map( (j) => (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(j) ? j.props.children : null ).filter(Boolean)), react__WEBPACK_IMPORTED_MODULE_1__.Children.forEach(D, (j) => { var W, z; if (!(0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(j)) return; const F = (z = cp( (W = j.props) == null ? void 0 : W.children )) == null ? void 0 : z.toLowerCase(); if (g && !A) { const H = g.toLowerCase(); if (!(F == null ? void 0 : F.includes(H))) return; } v.current.push(F); }); }, [g, A]); const [k, I] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1), $ = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(async () => { if (!(!A || typeof A != "function" || k)) { I(!0); try { await A(g); } catch (D) { console.error(D); } finally { I(!1); } } }, [g]), N = XX($, _); return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { typeof A == "function" && N(); }, [N]), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: n && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(HG, { context: r, modal: !1, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { ref: i.setFloating, className: K( "box-border [&_*]:box-border w-full bg-white outline-none shadow-lg outline outline-1 outline-border-subtle", o && "grid grid-cols-1 grid-rows-[auto_1fr] divide-y divide-x-0 divide-solid divide-border-subtle", ui[l].dropdown, !o && "h-auto", o ? "overflow-hidden" : "overflow-y-auto overflow-x-hidden", t ), style: { ...a }, ...s(), children: [ o && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K( ui[l].searchbarWrapper ), children: [ k ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( d1, { className: ui[l].searchbarIcon } ) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( rD, { className: K( "text-icon-secondary shrink-0", ui[l].searchbarIcon ) } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "input", { className: K( "px-1 w-full placeholder:text-field-placeholder border-0 focus:outline-none focus:shadow-none", ui[l].searchbar ), type: "search", name: "keyword", placeholder: w, onChange: (D) => c(D.target.value), value: g, autoComplete: "off" } ) ] } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K( "overflow-y-auto overflow-x-hidden", !o && "w-full h-full", ui[l].dropdownItemsWrapper ), children: [ !!C && P, !C && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "p-2 text-center text-base font-medium text-field-placeholder", children: "No items found" }) ] } ) ] } ) }) }) }); } function xR({ children: e, root: t, id: n }) { return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(ug, { id: n, root: t, children: e }); } function wR({ value: e, selected: t, children: n, className: r, ...i }) { const { sizeValue: o, getItemProps: a, onKeyDownItem: s, onClickItem: l, activeIndex: c, selectedIndex: f, updateListRef: d, getValues: p, by: m, multiple: y } = Og(), { index: g } = i, v = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(g), x = { sm: "py-1.5 px-2 text-sm font-normal", md: "p-2 text-sm font-normal", lg: "p-2 text-base font-normal" }, w = { sm: "size-4", md: "size-4", lg: "size-5" }, S = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => { if (!y) return !1; const _ = p(); return _ ? _.some((O) => O !== null && e !== null && typeof O == "object" ? O[m] === e[m] : O === e) : !1; }, [e, p]), A = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => typeof t == "boolean" ? t : y ? S : g === f, [S, f, t]); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K( "w-full flex items-center justify-between text-text-primary hover:bg-button-tertiary-hover rounded-md transition-all duration-150 cursor-pointer focus:outline-none focus-within:outline-none outline-none", x[o], g === c && "bg-button-tertiary-hover", r ), ref: (_) => { d(g, _); }, role: "option", tabIndex: g === c ? 0 : -1, "aria-selected": A && g === c, ...a({ // Handle pointer select. onClick() { l(v.current, e); }, // Handle keyboard select. onKeyDown(_) { s( _, v.current, e ); } }), children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "w-full truncate", children: n }), A && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( sd, { className: K( "text-icon-on-color-disabled", w[o] ) } ) ] } ); } const _R = ({ id: e, size: t = "md", // sm, md, lg value: n, // Value of the select (for controlled component). defaultValue: r, // Default value of the select (for uncontrolled component). onChange: i, // Callback function to handle the change event. by: o = "id", // Used to identify the select component. Default is 'id'. children: a, multiple: s = !1, // If true, it will allow multiple selection. combobox: l = !1, // If true, it will show a search box. disabled: c = !1, // If true, it will disable the select component. searchPlaceholder: f = "Search...", // Placeholder text for search box. searchFn: d, // Function to handle the search. debounceDelay: p = 500 // Debounce delay for the search. }) => { const m = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => e || `select-${io()}`, [e]), y = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => typeof n < "u", [n]), [g, v] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(r), [x, w] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(""), S = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => y ? n : g, [y, n, g]), [A, _] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1), [O, P] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), [C, k] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), I = { sm: l ? 256 : 172, md: l ? 256 : 216, lg: l ? 256 : 216 }, { refs: $, floatingStyles: N, context: D } = dg({ placement: "bottom-start", open: A, onOpenChange: _, whileElementsMounted: ig, middleware: [ og(5), ag({ padding: 10 }), SD({ apply({ rects: se, elements: ge, availableHeight: X }) { Object.assign(ge.floating.style, { maxHeight: `min(${X}px, ${I[t]}px)`, maxWidth: `${se.reference.width}px` }); }, padding: 10 }) ] }), j = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)([]), F = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)([]), W = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(!1), z = c1(D, { event: "mousedown" }), H = fg(D), U = u1(D, { role: "listbox" }), V = ZG(D, { listRef: j, activeIndex: O, selectedIndex: C, onNavigate: P, // This is a large list, allow looping. loop: !0 }), Y = tY(D, { listRef: F, activeIndex: O, selectedIndex: C, onMatch: A ? P : k, onTypingChange(se) { W.current = se; } }), { getReferenceProps: Q, getFloatingProps: ne, getItemProps: re } = hg([ H, U, V, z, ...l ? [] : [Y] ]), ce = (se, ge) => { const X = [ ...S() ?? [] ]; X.findIndex((de) => de !== null && ge !== null && typeof de == "object" ? de[o] === ge[o] : de === ge) === -1 && (X.push(ge), y || v(X), k(se), $.reference.current.focus(), _(!1), w(""), typeof i == "function" && i(X)); }, oe = (se, ge) => { if (s) return ce(se, ge); k(se), y || v(ge), $.reference.current.focus(), _(!1), w(""), typeof i == "function" && i(ge); }, fe = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((se, ge) => { j.current[se] = ge; }, []), ae = (se, ge) => { oe(se, ge); }, ee = (se, ge, X) => { se.key === "Enter" && (se.preventDefault(), oe(ge, X)), se.key === " " && !W.current && (se.preventDefault(), oe(ge, X)); }; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( yR.Provider, { value: { selectedIndex: C, setSelectedIndex: k, activeIndex: O, setActiveIndex: P, selected: g, setSelected: v, handleSelect: oe, combobox: l, sizeValue: t, multiple: s, onChange: i, isTypingRef: W, getItemProps: re, onClickItem: ae, onKeyDownItem: ee, getValues: S, selectId: m, getReferenceProps: Q, isOpen: A, value: n, updateListRef: fe, refs: $, listContentRef: F, by: o, getFloatingProps: ne, floatingStyles: N, context: D, searchKeyword: x, setSearchKeyword: w, disabled: c, isControlled: y, searchPlaceholder: f, searchFn: d, debounceDelay: p }, children: a } ); }; _R.displayName = "Select"; const QEe = Object.assign((0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(_R), { Portal: (0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(xR), Button: (0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(vR), Options: (0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(bR), Option: (0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(wR), OptionGroup: (0,react__WEBPACK_IMPORTED_MODULE_1__.memo)(Rl) }); xR.displayName = "Select.Portal"; vR.displayName = "Select.Button"; bR.displayName = "Select.Options"; wR.displayName = "Select.Option"; Rl.displayName = "Select.OptionGroup"; let ZX = 1; var xr, Fi; class JX { constructor() { zv(this, xr); zv(this, Fi); as(this, xr, []), as(this, Fi, []); } // Subscriber pattern. subscribe(t) { return Dr(this, Fi).push(t), () => { as(this, Fi, Dr(this, Fi).filter( (n) => n !== t )); }; } // Publish a new toast. publish(t) { Dr(this, Fi).forEach((n) => n(t)); } // Add a new toast. add(t) { Dr(this, xr).push(t), this.publish(t); } // Remove a toast. remove(t) { return as(this, xr, Dr(this, xr).filter((n) => n.id !== t)), t; } // Create a new toast. create(t) { const { id: n = void 0, message: r = "", jsx: i = void 0, ...o } = t; if (!r && typeof i != "function") return; const a = typeof n == "number" ? n : ZX++; return Dr(this, xr).find((l) => l.id === a) && as(this, xr, Dr(this, xr).map((l) => l.id === a ? (this.publish({ ...l, title: r, jsx: i, ...o }), { ...l, title: r, jsx: i, ...o }) : l)), this.add({ id: a, title: r, jsx: i, ...o }), a; } // Update a toast. update(t, n) { const { render: r = void 0 } = n; let i = n; switch (typeof r) { case "function": i = { jsx: r, ...n }; break; case "string": i = { title: r, ...n }; break; } as(this, xr, Dr(this, xr).map((o) => o.id === t ? (this.publish({ ...o, ...i }), { ...o, ...i }) : o)); } // Dismiss toast. dismiss(t) { return t || Dr(this, xr).forEach( (n) => Dr(this, Fi).forEach( (r) => r({ id: n.id, dismiss: !0 }) ) ), Dr(this, Fi).forEach( (n) => n({ id: t, dismiss: !0 }) ), t; } // History of toasts. history() { return Dr(this, xr); } // Types of toasts. // Default toast. default(t = "", n = {}) { return this.create({ message: t, type: "neutral", ...n }); } // Success toast. success(t = "", n = {}) { return this.create({ message: t, type: "success", ...n }); } // Error toast. error(t = "", n = {}) { return this.create({ message: t, type: "error", ...n }); } // Warning toast. warning(t = "", n = {}) { return this.create({ message: t, type: "warning", ...n }); } // Info toast info(t = "", n = {}) { return this.create({ message: t, type: "info", ...n }); } // Custom toast. custom(t, n = {}) { return this.create({ jsx: t, type: "custom", ...n }); } } xr = new WeakMap(), Fi = new WeakMap(); const kn = new JX(), QX = (e, t) => kn.default(e, t), eke = Object.seal( Object.assign( QX, { success: kn.success.bind(kn), error: kn.error.bind(kn), warning: kn.warning.bind(kn), info: kn.info.bind(kn), custom: kn.custom.bind(kn), dismiss: kn.dismiss.bind(kn), update: kn.update.bind(kn) }, { getHistory: kn.history.bind(kn) } ) ); let dC = !1; const eZ = (e) => (0,react__WEBPACK_IMPORTED_MODULE_1__.memo)((n) => { const r = n.singleTon; return dC && r ? null : (dC = !0, /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(e, { ...n })); }), hC = { "top-left": "top-0 bottom-0 left-0 justify-start items-start", "top-right": "top-0 bottom-0 right-0 justify-start items-end", "bottom-left": "top-0 bottom-0 left-0 justify-end items-start", "bottom-right": "top-0 bottom-0 right-0 justify-end items-end" }, pC = { stack: "w-[22.5rem]", inline: "lg:w-[47.5rem] w-full" }, Dh = { light: { neutral: "border-alert-border-neutral bg-alert-background-neutral", custom: "border-alert-border-neutral bg-alert-background-neutral", info: "border-alert-border-info bg-alert-background-info", success: "border-alert-border-green bg-alert-background-green", warning: "border-alert-border-warning bg-alert-background-warning", error: "border-alert-border-danger bg-alert-background-danger" }, dark: "bg-background-inverse border-background-inverse" }, Ih = { light: "text-icon-secondary", dark: "text-icon-inverse" }, tZ = ({ position: e = "top-right", // top-right/top-left/bottom-right/bottom-left design: t = "stack", // stack/inline theme: n = "light", // light/dark className: r = "", autoDismiss: i = !0, // Auto dismiss the toast after a certain time. dismissAfter: o = 5e3 // Time in milliseconds after which the toast will be dismissed. }) => { const [a, s] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)([]); (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { kn.subscribe((c) => { if (c != null && c.dismiss) { s( (f) => f.map( (d) => d.id === c.id ? { ...d, dismiss: !0 } : d ) ); return; } setTimeout(() => { (0,react_dom__WEBPACK_IMPORTED_MODULE_2__.flushSync)( () => s((f) => f.findIndex( (p) => p.id === c.id ) !== -1 ? f.map((p) => p.id === c.id ? { ...p, ...c } : p) : [...f, c]) ); }); }); }, []); const l = (c) => { s((f) => f.filter((d) => d.id !== c)); }; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "ul", { className: K( "fixed flex flex-col list-none z-20 p-10 pointer-events-none [&>li]:pointer-events-auto gap-3", hC[e] ?? hC["top-right"], r ), children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Ys, { initial: !1, children: a.map((c) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( An.li, { initial: { opacity: 0, y: 50, scale: 0.7 }, animate: { opacity: 1, y: 0, scale: 1 }, exit: { opacity: 0, scale: 0.6, transition: { duration: 0.15 } }, layoutId: `toast-${c.id}`, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( nZ, { toastItem: c, title: c.title, content: c == null ? void 0 : c.description, icon: (c == null ? void 0 : c.icon) ?? void 0, design: (c == null ? void 0 : c.design) ?? t, autoDismiss: (c == null ? void 0 : c.autoDismiss) ?? i, dismissAfter: (c == null ? void 0 : c.dismissAfter) ?? o, removeToast: l, variant: c.type, theme: (c == null ? void 0 : c.theme) ?? n } ) }, c.id )) }) } ); }, nZ = ({ toastItem: e, title: t = "", content: n = "", autoDismiss: r = !0, dismissAfter: i = 5e3, theme: o = "light", // light/dark design: a = "stack", // inline/stack icon: s, variant: l = "neutral", // neutral/info/success/warning/danger removeToast: c // Function to remove the toast. }) => { var w, S, A, _, O, P, C; const f = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(0), d = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(0), p = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(), m = (k, I = i) => { if (!(!r || i < 0)) return f.current = (/* @__PURE__ */ new Date()).getTime(), setTimeout(() => { typeof c == "function" && c(k.id); }, I); }, y = () => { clearTimeout(p.current), d.current = (/* @__PURE__ */ new Date()).getTime(); }, g = () => { p.current = m( e, i - (d.current - f.current) ); }; (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { const k = i; return p.current = m(e, k), () => { clearTimeout(p.current); }; }, []), (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { !(e != null && e.dismiss) || typeof c != "function" || c(e.id); }, [e]); const v = () => { var k, I; typeof c == "function" && ((I = (k = e == null ? void 0 : e.action) == null ? void 0 : k.onClick) == null || I.call(k, () => c(e.id))); }; let x = null; return a === "stack" && (x = /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "flex items-center justify-start p-4 gap-2 relative border border-solid rounded-md shadow-lg", o === "dark" ? Dh.dark : (w = Dh.light) == null ? void 0 : w[l], pC.stack ), onMouseEnter: y, onMouseLeave: g, children: e.type !== "custom" ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "self-start flex items-center justify-center [&_svg]:size-5 shrink-0", children: wp({ variant: l, icon: s, theme: o }) }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex flex-col items-start justify-start gap-0.5 mr-6", children: [ _p({ title: t, theme: o }), Sp({ content: n, theme: o }), ((S = e == null ? void 0 : e.action) == null ? void 0 : S.label) && typeof ((A = e == null ? void 0 : e.action) == null ? void 0 : A.onClick) == "function" && /* eslint-disable */ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "mt-2.5", children: x0({ actionLabel: (_ = e == null ? void 0 : e.action) == null ? void 0 : _.label, actionType: ((O = e == null ? void 0 : e.action) == null ? void 0 : O.type) ?? "button", onAction: v, theme: o }) }) ] }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "absolute right-4 top-4 [&_svg]:size-5", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "button", { className: K( "bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer", Ih[o] ?? Ih.light ), onClick: () => { typeof c == "function" && c(e.id); }, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)($a, {}) } ) }) ] }) : (P = e == null ? void 0 : e.jsx) == null ? void 0 : P.call(e, { close: () => c(e.id), action: e != null && e.action ? { ...e == null ? void 0 : e.action, onClick: v } : null }) } )), a === "inline" && (x = /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K( "flex items-center justify-start p-3 gap-2 relative border border-solid rounded-md shadow-lg", o === "dark" ? Dh.dark : (C = Dh.light) == null ? void 0 : C[l], pC.inline ), children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "self-start flex items-center justify-center [&_svg]:size-5 shrink-0", children: wp({ variant: l, icon: s, theme: o }) }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex items-start justify-start gap-1 mr-10 [&>span:first-child]:shrink-0", children: [ _p({ title: t, theme: o }), Sp({ content: n, theme: o }) ] }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "absolute right-3 top-3 [&_svg]:size-5", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "button", { className: K( "bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer", Ih[o] ?? Ih.light ), onClick: () => c(e.id), children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)($a, {}) } ) }) ] } )), x; }, tke = eZ(tZ), rZ = { sm: { 1: "grid-cols-1", 2: "grid-cols-2", 3: "grid-cols-3", 4: "grid-cols-4", 5: "grid-cols-5", 6: "grid-cols-6", 7: "grid-cols-7", 8: "grid-cols-8", 9: "grid-cols-9", 10: "grid-cols-10", 11: "grid-cols-11", 12: "grid-cols-12" }, md: { 1: "md:grid-cols-1", 2: "md:grid-cols-2", 3: "md:grid-cols-3", 4: "md:grid-cols-4", 5: "md:grid-cols-5", 6: "md:grid-cols-6", 7: "md:grid-cols-7", 8: "md:grid-cols-8", 9: "md:grid-cols-9", 10: "md:grid-cols-10", 11: "md:grid-cols-11", 12: "md:grid-cols-12" }, lg: { 1: "lg:grid-cols-1", 2: "lg:grid-cols-2", 3: "lg:grid-cols-3", 4: "lg:grid-cols-4", 5: "lg:grid-cols-5", 6: "lg:grid-cols-6", 7: "lg:grid-cols-7", 8: "lg:grid-cols-8", 9: "lg:grid-cols-9", 10: "lg:grid-cols-10", 11: "lg:grid-cols-11", 12: "lg:grid-cols-12" } }, SR = { sm: { xs: "gap-2", sm: "gap-4", md: "gap-5", lg: "gap-6", xl: "gap-6", "2xl": "gap-8" }, md: { xs: "md:gap-2", sm: "md:gap-4", md: "md:gap-5", lg: "md:gap-6", xl: "md:gap-6", "2xl": "md:gap-8" }, lg: { xs: "lg:gap-2", sm: "lg:gap-4", md: "lg:gap-5", lg: "lg:gap-6", xl: "lg:gap-6", "2xl": "lg:gap-8" } }, OR = { sm: { xs: "gap-x-2", sm: "gap-x-4", md: "gap-x-5", lg: "gap-x-6", xl: "gap-x-6", "2xl": "gap-x-8" }, md: { xs: "md:gap-x-2", sm: "md:gap-x-4", md: "md:gap-x-5", lg: "md:gap-x-6", xl: "md:gap-x-6", "2xl": "md:gap-x-8" }, lg: { xs: "lg:gap-x-2", sm: "lg:gap-x-4", md: "lg:gap-x-5", lg: "lg:gap-x-6", xl: "lg:gap-x-6", "2xl": "lg:gap-x-8" } }, AR = { sm: { xs: "gap-y-2", sm: "gap-y-4", md: "gap-y-5", lg: "gap-y-6", xl: "gap-y-6", "2xl": "gap-y-8" }, md: { xs: "md:gap-y-2", sm: "md:gap-y-4", md: "md:gap-y-5", lg: "md:gap-y-6", xl: "md:gap-y-6", "2xl": "md:gap-y-8" }, lg: { xs: "lg:gap-y-2", sm: "lg:gap-y-4", md: "lg:gap-y-5", lg: "lg:gap-y-6", xl: "lg:gap-y-6", "2xl": "lg:gap-y-8" } }, iZ = { sm: { 1: "col-span-1", 2: "col-span-2", 3: "col-span-3", 4: "col-span-4", 5: "col-span-5", 6: "col-span-6", 7: "col-span-7", 8: "col-span-8", 9: "col-span-9", 10: "col-span-10", 11: "col-span-11", 12: "col-span-12" }, md: { 1: "md:col-span-1", 2: "md:col-span-2", 3: "md:col-span-3", 4: "md:col-span-4", 5: "md:col-span-5", 6: "md:col-span-6", 7: "md:col-span-7", 8: "md:col-span-8", 9: "md:col-span-9", 10: "md:col-span-10", 11: "md:col-span-11", 12: "md:col-span-12" }, lg: { 1: "lg:col-span-1", 2: "lg:col-span-2", 3: "lg:col-span-3", 4: "lg:col-span-4", 5: "lg:col-span-5", 6: "lg:col-span-6", 7: "lg:col-span-7", 8: "lg:col-span-8", 9: "lg:col-span-9", 10: "lg:col-span-10", 11: "lg:col-span-11", 12: "lg:col-span-12" } }, oZ = { sm: { 1: "col-start-1", 2: "col-start-2", 3: "col-start-3", 4: "col-start-4", 5: "col-start-5", 6: "col-start-6", 7: "col-start-7", 8: "col-start-8", 9: "col-start-9", 10: "col-start-10", 11: "col-start-11", 12: "col-start-12" }, md: { 1: "md:col-start-1", 2: "md:col-start-2", 3: "md:col-start-3", 4: "md:col-start-4", 5: "md:col-start-5", 6: "md:col-start-6", 7: "md:col-start-7", 8: "md:col-start-8", 9: "md:col-start-9", 10: "md:col-start-10", 11: "md:col-start-11", 12: "md:col-start-12" }, lg: { 1: "lg:col-start-1", 2: "lg:col-start-2", 3: "lg:col-start-3", 4: "lg:col-start-4", 5: "lg:col-start-5", 6: "lg:col-start-6", 7: "lg:col-start-7", 8: "lg:col-start-8", 9: "lg:col-start-9", 10: "lg:col-start-10", 11: "lg:col-start-11", 12: "lg:col-start-12" } }, aZ = { sm: { row: "grid-flow-row", column: "grid-flow-col", "row-dense": "grid-flow-row-dense", "column-dense": "grid-flow-col-dense" }, md: { row: "md:grid-flow-row", column: "md:grid-flow-col", "row-dense": "md:grid-flow-row-dense", "column-dense": "md:grid-flow-col-dense" }, lg: { row: "lg:grid-flow-row", column: "lg:grid-flow-col", "row-dense": "lg:grid-flow-row-dense", "column-dense": "lg:grid-flow-col-dense" } }, TR = { sm: { normal: "justify-normal", start: "justify-start", end: "justify-end", center: "justify-center", between: "justify-between", around: "justify-around", evenly: "justify-evenly", stretch: "justify-stretch" }, md: { normal: "md:justify-normal", start: "md:justify-start", end: "md:justify-end", center: "md:justify-center", between: "md:justify-between", around: "md:justify-around", evenly: "md:justify-evenly", stretch: "md:justify-stretch" }, lg: { normal: "lg:justify-normal", start: "lg:justify-start", end: "lg:justify-end", center: "lg:justify-center", between: "lg:justify-between", around: "lg:justify-around", evenly: "lg:justify-evenly", stretch: "lg:justify-stretch" } }, PR = { sm: { start: "items-start", end: "items-end", center: "items-center", baseline: "items-baseline", stretch: "items-stretch" }, md: { start: "md:items-start", end: "md:items-end", center: "md:items-center", baseline: "md:items-baseline", stretch: "md:items-stretch" }, lg: { start: "lg:items-start", end: "lg:items-end", center: "lg:items-center", baseline: "lg:items-baseline", stretch: "lg:items-stretch" } }, CR = { sm: { start: "self-start", end: "self-end", center: "self-center", baseline: "self-baseline", stretch: "self-stretch" }, md: { start: "md:self-start", end: "md:self-end", center: "md:self-center", baseline: "md:self-baseline", stretch: "md:self-stretch" }, lg: { start: "lg:self-start", end: "lg:self-end", center: "lg:self-center", baseline: "lg:self-baseline", stretch: "lg:self-stretch" } }, ER = { sm: { auto: "justify-self-auto", start: "justify-self-start", end: "justify-self-end", center: "justify-self-center", baseline: "justify-self-baseline", stretch: "justify-self-stretch" }, md: { auto: "md:justify-self-auto", start: "md:justify-self-start", end: "md:justify-self-end", center: "md:justify-self-center", baseline: "md:justify-self-baseline", stretch: "md:justify-self-stretch" }, lg: { auto: "lg:justify-self-auto", start: "lg:justify-self-start", end: "lg:justify-self-end", center: "lg:justify-self-center", baseline: "lg:justify-self-baseline", stretch: "lg:justify-self-stretch" } }, sZ = { sm: { row: "flex-row", "row-reverse": "flex-row-reverse", column: "flex-col", "column-reverse": "flex-col-reverse" }, md: { row: "md:flex-row", "row-reverse": "md:flex-row-reverse", column: "md:flex-col", "column-reverse": "md:flex-col-reverse" }, lg: { row: "lg:flex-row", "row-reverse": "lg:flex-row-reverse", column: "lg:flex-col", "column-reverse": "lg:flex-col-reverse" } }, lZ = { sm: { wrap: "flex-wrap", "wrap-reverse": "flex-wrap-reverse", nowrap: "flex-nowrap" }, md: { wrap: "md:flex-wrap", "wrap-reverse": "md:flex-wrap-reverse", nowrap: "md:flex-nowrap" }, lg: { wrap: "lg:flex-wrap", "wrap-reverse": "lg:flex-wrap-reverse", nowrap: "lg:flex-nowrap" } }, cZ = { sm: { 1: "w-full", 2: "w-1/2", 3: "w-1/3", 4: "w-1/4", 5: "w-1/5", 6: "w-1/6", 7: "w-1/7", 8: "w-1/8", 9: "w-1/9", 10: "w-1/10", 11: "w-1/11", 12: "w-1/12" }, md: { 1: "md:w-full", 2: "md:w-1/2", 3: "md:w-1/3", 4: "md:w-1/4", 5: "md:w-1/5", 6: "md:w-1/6", 7: "md:w-1/7", 8: "md:w-1/8", 9: "md:w-1/9", 10: "md:w-1/10", 11: "md:w-1/11", 12: "md:w-1/12" }, lg: { 1: "lg:w-full", 2: "lg:w-1/2", 3: "lg:w-1/3", 4: "lg:w-1/4", 5: "lg:w-1/5", 6: "lg:w-1/6", 7: "lg:w-1/7", 8: "lg:w-1/8", 9: "lg:w-1/9", 10: "lg:w-1/10", 11: "lg:w-1/11", 12: "lg:w-1/12" } }, uZ = { sm: { 1: "order-1", 2: "order-2", 3: "order-3", 4: "order-4", 5: "order-5", 6: "order-6", 7: "order-7", 8: "order-8", 9: "order-9", 10: "order-10", 11: "order-11", 12: "order-12", first: "order-first", last: "order-last", none: "order-none" }, md: { 1: "md:order-1", 2: "md:order-2", 3: "md:order-3", 4: "md:order-4", 5: "md:order-5", 6: "md:order-6", 7: "md:order-7", 8: "md:order-8", 9: "md:order-9", 10: "md:order-10", 11: "md:order-11", 12: "md:order-12", first: "md:order-first", last: "md:order-last", none: "md:order-none" }, lg: { 1: "lg:order-1", 2: "lg:order-2", 3: "lg:order-3", 4: "lg:order-4", 5: "lg:order-5", 6: "lg:order-6", 7: "lg:order-7", 8: "lg:order-8", 9: "lg:order-9", 10: "lg:order-10", 11: "lg:order-11", 12: "lg:order-12", first: "lg:order-first", last: "lg:order-last", none: "lg:order-none" } }, fZ = { sm: { 0: "grow-0", 1: "grow" }, md: { 0: "md:grow-0", 1: "md:grow" }, lg: { 0: "lg:grow-0", 1: "lg:grow" } }, dZ = { sm: { 0: "shrink-0", 1: "shrink" }, md: { 0: "md:shrink-0", 1: "md:shrink" }, lg: { 0: "lg:shrink-0", 1: "lg:shrink" } }, qt = (e, t, n, r = "sm") => { var o, a, s, l, c; const i = []; switch (typeof e) { case "object": for (const [d, p] of Object.entries(e)) t[d] && i.push( ((o = t == null ? void 0 : t[d]) == null ? void 0 : o[p]) ?? ((a = t == null ? void 0 : t[d]) == null ? void 0 : a[n == null ? void 0 : n[d]]) ?? "" ); break; case "string": case "number": const f = r; i.push( ((s = t == null ? void 0 : t[f]) == null ? void 0 : s[e]) ?? ((l = t == null ? void 0 : t[f]) == null ? void 0 : l[n == null ? void 0 : n[f]]) ?? "" ); break; default: if (e === void 0) break; i.push( ((c = t == null ? void 0 : t[r]) == null ? void 0 : c[n]) ?? "" ); break; } return i.join(" "); }, Mp = ({ className: e, cols: t, gap: n, gapX: r, gapY: i, align: o, justify: a, gridFlow: s, colsSubGrid: l = !1, rowsSubGrid: c = !1, autoRows: f = !1, autoCols: d = !1, children: p, ...m }) => { const y = qt(t, rZ, 1), g = qt(n, SR, "sm"), v = qt(r, OR, ""), x = qt(i, AR, ""), w = qt(o, PR, ""), S = qt(a, TR, ""), A = qt(s, aZ, ""); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "grid", { "grid-cols-subgrid": l, "grid-rows-subgrid": c, "auto-cols-auto": d, "auto-rows-auto": f }, y, g, v, x, w, S, A, e ), ...m, children: p } ); }, hZ = ({ className: e, children: t, colSpan: n, colStart: r, alignSelf: i, justifySelf: o, ...a }) => { const s = qt(n, iZ, 0), l = qt( r, oZ, 0 ), c = qt( i, CR, "" ), f = qt( o, ER, "" ); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( s, l, c, f, e ), ...a, children: t } ); }; Mp.Item = hZ; const L0 = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)({}), pZ = () => (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(L0), kR = ({ containerType: e = "flex", // flex, (grid - functionality not implemented) gap: t = "sm", // xs, sm, md, lg, xl, 2xl gapX: n, gapY: r, direction: i, // row, row-reverse, column, column reverse justify: o, // justify-content (normal, start, end, center, between, around, evenly, stretch) align: a, // align-items (start, end, center, baseline, stretch) wrap: s, // nowrap, wrap, wrap-reverse cols: l, className: c, children: f, ...d }) => { if (e === "grid") return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( L0.Provider, { value: { containerType: e }, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Mp, { className: c, gap: t, gapX: n, gapY: r, cols: l, children: f, align: a, justify: o, ...d } ) } ); const p = qt(s, lZ, ""), m = qt(t, SR, "sm"), y = qt(n, OR, ""), g = qt(r, AR, ""), v = qt( i, sZ, "" ), x = qt( o, TR, "" ), w = qt(a, PR, ""), S = K( "flex", p, m, y, g, v, x, w, c ), A = () => e === "flex" ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: S, children: f }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Mp, { className: c, gap: t, gapX: n, gapY: r, cols: l, children: f, align: a, justify: o, ...d } ); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( L0.Provider, { value: { containerType: e, cols: l }, children: A() } ); }, MR = ({ grow: e, shrink: t, order: n, alignSelf: r, justifySelf: i, className: o, children: a, ...s }) => { const { containerType: l, cols: c } = pZ(); if (l === "grid") return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Mp.Item, { className: o, alignSelf: r, justifySelf: i, children: a, ...s } ); const f = qt( r, CR, "" ), d = qt( i, ER, "" ), p = qt(e, fZ, 0), m = qt(t, dZ, 0), y = qt(n, uZ, 0), g = qt(c, cZ, 1); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "box-border", p, m, y, f, d, g, o ), children: a } ); }; kR.Item = MR; kR.displayName = "Container"; MR.displayName = "Container.Item"; const nke = ({ design: e = "inline", // stack/inline theme: t = "light", // light/dark variant: n = "neutral", className: r = "", title: i = "", content: o = "", icon: a = null, onClose: s, action: l = { label: "", onClick: () => { }, type: "link" } }) => { var m, y; const c = () => { typeof s == "function" && s(); }, f = { light: { neutral: "ring-alert-border-neutral bg-alert-background-neutral", custom: "ring-alert-border-neutral bg-alert-background-neutral", info: "ring-alert-border-info bg-alert-background-info", success: "ring-alert-border-green bg-alert-background-green", warning: "ring-alert-border-warning bg-alert-background-warning", error: "ring-alert-border-danger bg-alert-background-danger" }, dark: "bg-background-inverse ring-background-inverse" }, d = { light: "text-icon-secondary", dark: "text-icon-inverse" }, p = () => { var g; (g = l == null ? void 0 : l.onClick) == null || g.call(l, c); }; return e === "stack" ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "flex items-center justify-start p-4 gap-2 relative ring-1 rounded-md shadow-lg", t === "dark" ? f.dark : (m = f.light) == null ? void 0 : m[n], r ), children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "self-start flex items-center justify-center [&_svg]:size-5 shrink-0", children: wp({ variant: n, icon: a, theme: t }) }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex flex-col items-start justify-start gap-0.5 mr-7", children: [ _p({ title: i, theme: t }), Sp({ content: o, theme: t }), (l == null ? void 0 : l.label) && typeof (l == null ? void 0 : l.onClick) == "function" && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "mt-2.5", children: x0({ actionLabel: l == null ? void 0 : l.label, actionType: (l == null ? void 0 : l.type) ?? "button", onAction: p, theme: t }) }) ] }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "absolute right-4 top-4 [&_svg]:size-5", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "button", { className: K( "bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer", d[t] ?? d.light ), onClick: () => c(), "aria-label": "Close alert", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)($a, {}) } ) }) ] }) } ) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K( "flex items-center justify-between p-3 gap-2 relative ring-1 rounded-lg shadow-lg", t === "dark" ? f.dark : (y = f.light) == null ? void 0 : y[n], r ), children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex items-center justify-start gap-2", children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "self-start flex items-center justify-center [&_svg]:size-5 shrink-0", children: wp({ variant: n, icon: a, theme: t }) }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("p", { className: "content-start space-x-1 my-0 mr-10 px-1", children: [ _p({ title: i, theme: t, inline: !0 }), Sp({ content: o, theme: t, inline: !0 }) ] }) ] }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex h-full justify-start gap-4 [&_svg]:size-4", children: [ (l == null ? void 0 : l.label) && typeof (l == null ? void 0 : l.onClick) == "function" && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "self-center flex h-5", children: x0({ actionLabel: l == null ? void 0 : l.label, actionType: (l == null ? void 0 : l.type) ?? "button", onAction: p, theme: t }) }), typeof s == "function" && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "button", { className: K( "self-start bg-transparent m-0 border-none p-0.5 focus:outline-none active:outline-none cursor-pointer size-5", d[t] ?? d.light ), onClick: () => c(), "aria-label": "Close alert", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)($a, {}) } ) ] }) ] } ); }; function mZ(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var gZ = mZ(function(e) { const t = new URLSearchParams(); t.append("code", e); for (let n = 1; n < arguments.length; n++) t.append("v", arguments[n]); throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`); }); const NR = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)(null); function yZ(e, t) { return { getTheme: function() { return t ?? null; } }; } function Gr() { const e = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(NR); return e == null && gZ(8), e; } function vZ({ defaultSelection: e }) { const [t] = Gr(); return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { t.focus(() => { const n = document.activeElement, r = t.getRootElement(); r === null || n !== null && r.contains(n) || r.focus({ preventScroll: !0 }); }, { defaultSelection: e }); }, [e, t]), null; } function bZ(e) { return {}; } const G1 = {}, xZ = {}, ks = {}, Hl = {}, B0 = {}, Kl = {}, Y1 = {}, F0 = {}, bf = {}, xf = {}, _s = {}, q1 = {}, X1 = {}, $R = {}, Z1 = {}, wZ = {}, J1 = {}, _Z = {}, DR = {}, IR = {}, wf = {}, SZ = {}, Q1 = {}, RR = {}, jR = {}, LR = {}, BR = {}, FR = {}, OZ = {}, AZ = {}, e_ = {}, t_ = {}, W0 = {}, TZ = {}, PZ = {}, Rh = {}, jh = {}, CZ = {}, EZ = {}, kZ = {}, Di = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, MZ = Di && "documentMode" in document ? document.documentMode : null, _i = Di && /Mac|iPod|iPhone|iPad/.test(navigator.platform), Ma = Di && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Np = !(!Di || !("InputEvent" in window) || MZ) && "getTargetRanges" in new window.InputEvent("input"), n_ = Di && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), Ag = Di && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, NZ = Di && /Android/.test(navigator.userAgent), WR = Di && /^(?=.*Chrome).*/i.test(navigator.userAgent), $Z = Di && NZ && WR, r_ = Di && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !WR, md = 1, Ua = 3, Ls = 0, zR = 1, nc = 2, DZ = 0, IZ = 1, RZ = 2, $p = 4, Dp = 8, i_ = 128, jZ = 112 | (3 | $p | Dp) | i_, o_ = 1, a_ = 2, s_ = 3, l_ = 4, c_ = 5, u_ = 6, Tg = n_ || Ag || r_ ? " " : "", zo = ` `, LZ = Ma ? " " : Tg, VR = "֑-߿יִ-﷽ﹰ-ﻼ", UR = "A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--", BZ = new RegExp("^[^" + UR + "]*[" + VR + "]"), FZ = new RegExp("^[^" + VR + "]*[" + UR + "]"), Io = { bold: 1, code: 16, highlight: i_, italic: 2, strikethrough: $p, subscript: 32, superscript: 64, underline: Dp }, WZ = { directionless: 1, unmergeable: 2 }, mC = { center: a_, end: u_, justify: l_, left: o_, right: s_, start: c_ }, zZ = { [a_]: "center", [u_]: "end", [l_]: "justify", [o_]: "left", [s_]: "right", [c_]: "start" }, VZ = { normal: 0, segmented: 2, token: 1 }, UZ = { [DZ]: "normal", [RZ]: "segmented", [IZ]: "token" }; function HZ(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var _e = HZ(function(e) { const t = new URLSearchParams(); t.append("code", e); for (let n = 1; n < arguments.length; n++) t.append("v", arguments[n]); throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`); }); function Ip(...e) { const t = []; for (const n of e) if (n && typeof n == "string") for (const [r] of n.matchAll(/\S+/g)) t.push(r); return t; } const KZ = 100; let z0 = !1, f_ = 0; function GZ(e) { f_ = e.timeStamp; } function hb(e, t, n) { return t.__lexicalLineBreak === e || e[`__lexicalKey_${n._key}`] !== void 0; } function YZ(e, t, n) { const r = no(n._window); let i = null, o = null; r !== null && r.anchorNode === e && (i = r.anchorOffset, o = r.focusOffset); const a = e.nodeValue; a !== null && m_(t, a, i, o, !1); } function qZ(e, t, n) { if (we(e)) { const r = e.anchor.getNode(); if (r.is(n) && e.format !== r.getFormat()) return !1; } return t.nodeType === Ua && n.isAttached(); } function HR(e, t, n) { z0 = !0; const r = performance.now() - f_ > KZ; try { Fr(e, () => { const i = Ne() || function(p) { return p.getEditorState().read(() => { const m = Ne(); return m !== null ? m.clone() : null; }); }(e), o = /* @__PURE__ */ new Map(), a = e.getRootElement(), s = e._editorState, l = e._blockCursorElement; let c = !1, f = ""; for (let p = 0; p < t.length; p++) { const m = t[p], y = m.type, g = m.target; let v = Eg(g, s); if (!(v === null && g !== a || Ht(v))) { if (y === "characterData") r && Se(v) && qZ(i, g, v) && YZ(g, v, e); else if (y === "childList") { c = !0; const x = m.addedNodes; for (let A = 0; A < x.length; A++) { const _ = x[A], O = XR(_), P = _.parentNode; if (P != null && _ !== l && O === null && (_.nodeName !== "BR" || !hb(_, P, e))) { if (Ma) { const C = _.innerText || _.nodeValue; C && (f += C); } P.removeChild(_); } } const w = m.removedNodes, S = w.length; if (S > 0) { let A = 0; for (let _ = 0; _ < S; _++) { const O = w[_]; (O.nodeName === "BR" && hb(O, g, e) || l === O) && (g.appendChild(O), A++); } S !== A && (g === a && (v = JR(s)), o.set(g, v)); } } } } if (o.size > 0) for (const [p, m] of o) if (ve(m)) { const y = m.getChildrenKeys(); let g = p.firstChild; for (let v = 0; v < y.length; v++) { const x = y[v], w = e.getElementByKey(x); w !== null && (g == null ? (p.appendChild(w), g = w) : g !== w && p.replaceChild(w, g), g = g.nextSibling); } } else Se(m) && m.markDirty(); const d = n.takeRecords(); if (d.length > 0) { for (let p = 0; p < d.length; p++) { const m = d[p], y = m.addedNodes, g = m.target; for (let v = 0; v < y.length; v++) { const x = y[v], w = x.parentNode; w == null || x.nodeName !== "BR" || hb(x, g, e) || w.removeChild(x); } } n.takeRecords(); } i !== null && (c && (i.dirty = !0, Vo(i)), Ma && n2(e) && i.insertRawText(f)); }); } finally { z0 = !1; } } function KR(e) { const t = e._observer; t !== null && HR(e, t.takeRecords(), t); } function GR(e) { (function(t) { f_ === 0 && Ng(t).addEventListener("textInput", GZ, !0); })(e), e._observer = new MutationObserver((t, n) => { HR(e, t, n); }); } function gC(e, t) { const n = e.__mode, r = e.__format, i = e.__style, o = t.__mode, a = t.__format, s = t.__style; return !(n !== null && n !== o || r !== null && r !== a || i !== null && i !== s); } function yC(e, t) { const n = e.mergeWithSibling(t), r = mn()._normalizedNodes; return r.add(e.__key), r.add(t.__key), n; } function vC(e) { let t, n, r = e; if (r.__text !== "" || !r.isSimpleText() || r.isUnmergeable()) { for (; (t = r.getPreviousSibling()) !== null && Se(t) && t.isSimpleText() && !t.isUnmergeable(); ) { if (t.__text !== "") { if (gC(t, r)) { r = yC(t, r); break; } break; } t.remove(); } for (; (n = r.getNextSibling()) !== null && Se(n) && n.isSimpleText() && !n.isUnmergeable(); ) { if (n.__text !== "") { if (gC(r, n)) { r = yC(r, n); break; } break; } n.remove(); } } else r.remove(); } function XZ(e) { return bC(e.anchor), bC(e.focus), e; } function bC(e) { for (; e.type === "element"; ) { const t = e.getNode(), n = e.offset; let r, i; if (n === t.getChildrenSize() ? (r = t.getChildAtIndex(n - 1), i = !0) : (r = t.getChildAtIndex(n), i = !1), Se(r)) { e.set(r.__key, i ? r.getTextContentSize() : 0, "text"); break; } if (!ve(r)) break; e.set(r.__key, i ? r.getChildrenSize() : 0, "element"); } } let ZZ = 1; const JZ = typeof queueMicrotask == "function" ? queueMicrotask : (e) => { Promise.resolve().then(e); }; function YR(e) { const t = document.activeElement; if (t === null) return !1; const n = t.nodeName; return Ht(Eg(e)) && (n === "INPUT" || n === "TEXTAREA" || t.contentEditable === "true" && Cg(t) == null); } function Pg(e, t, n) { const r = e.getRootElement(); try { return r !== null && r.contains(t) && r.contains(n) && t !== null && !YR(t) && qR(t) === e; } catch { return !1; } } function d_(e) { return e instanceof Fg; } function qR(e) { let t = e; for (; t != null; ) { const n = Cg(t); if (d_(n)) return n; t = Mg(t); } return null; } function Cg(e) { return e ? e.__lexicalEditor : null; } function Pl(e) { return e.isToken() || e.isSegmented(); } function QZ(e) { return e.nodeType === Ua; } function Rp(e) { let t = e; for (; t != null; ) { if (QZ(t)) return t; t = t.firstChild; } return null; } function V0(e, t, n) { const r = Io[t]; if (n !== null && (e & r) == (n & r)) return e; let i = e ^ r; return t === "subscript" ? i &= ~Io.superscript : t === "superscript" && (i &= ~Io.subscript), i; } function eJ(e, t) { if (t != null) return void (e.__key = t); wr(), A2(); const n = mn(), r = qo(), i = "" + ZZ++; r._nodeMap.set(i, e), ve(e) ? n._dirtyElements.set(i, !0) : n._dirtyLeaves.add(i), n._cloneNotNeeded.add(i), n._dirtyType = zR, e.__key = i; } function Ms(e) { const t = e.getParent(); if (t !== null) { const n = e.getWritable(), r = t.getWritable(), i = e.getPreviousSibling(), o = e.getNextSibling(); if (i === null) if (o !== null) { const a = o.getWritable(); r.__first = o.__key, a.__prev = null; } else r.__first = null; else { const a = i.getWritable(); if (o !== null) { const s = o.getWritable(); s.__prev = a.__key, a.__next = s.__key; } else a.__next = null; n.__prev = null; } if (o === null) if (i !== null) { const a = i.getWritable(); r.__last = i.__key, a.__next = null; } else r.__last = null; else { const a = o.getWritable(); if (i !== null) { const s = i.getWritable(); s.__next = a.__key, a.__prev = s.__key; } else a.__prev = null; n.__next = null; } r.__size--, n.__parent = null; } } function jp(e) { A2(); const t = e.getLatest(), n = t.__parent, r = qo(), i = mn(), o = r._nodeMap, a = i._dirtyElements; n !== null && function(l, c, f) { let d = l; for (; d !== null; ) { if (f.has(d)) return; const p = c.get(d); if (p === void 0) break; f.set(d, !1), d = p.__parent; } }(n, o, a); const s = t.__key; i._dirtyType = zR, ve(e) ? a.set(s, !0) : i._dirtyLeaves.add(s); } function Gn(e) { wr(); const t = mn(), n = t._compositionKey; if (e !== n) { if (t._compositionKey = e, n !== null) { const r = $n(n); r !== null && r.getWritable(); } if (e !== null) { const r = $n(e); r !== null && r.getWritable(); } } } function Oa() { return bd() ? null : mn()._compositionKey; } function $n(e, t) { const n = (t || qo())._nodeMap.get(e); return n === void 0 ? null : n; } function XR(e, t) { const n = e[`__lexicalKey_${mn()._key}`]; return n !== void 0 ? $n(n, t) : null; } function Eg(e, t) { let n = e; for (; n != null; ) { const r = XR(n, t); if (r !== null) return r; n = Mg(n); } return null; } function ZR(e) { const t = e._decorators, n = Object.assign({}, t); return e._pendingDecorators = n, n; } function xC(e) { return e.read(() => ir().getTextContent()); } function ir() { return JR(qo()); } function JR(e) { return e._nodeMap.get("root"); } function Vo(e) { wr(); const t = qo(); e !== null && (e.dirty = !0, e.setCachedNodes(null)), t._selection = e; } function jl(e) { const t = mn(), n = function(r, i) { let o = r; for (; o != null; ) { const a = o[`__lexicalKey_${i._key}`]; if (a !== void 0) return a; o = Mg(o); } return null; }(e, t); return n === null ? e === t.getRootElement() ? $n("root") : null : $n(n); } function wC(e, t) { return t ? e.getTextContentSize() : 0; } function QR(e) { return /[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e); } function h_(e) { const t = []; let n = e; for (; n !== null; ) t.push(n), n = n._parentEditor; return t; } function e2() { return Math.random().toString(36).replace(/[^a-z]+/g, "").substr(0, 5); } function t2(e) { return e.nodeType === Ua ? e.nodeValue : null; } function p_(e, t, n) { const r = no(t._window); if (r === null) return; const i = r.anchorNode; let { anchorOffset: o, focusOffset: a } = r; if (i !== null) { let s = t2(i); const l = Eg(i); if (s !== null && Se(l)) { if (s === Tg && n) { const c = n.length; s = n, o = c, a = c; } s !== null && m_(l, s, o, a, e); } } } function m_(e, t, n, r, i) { let o = e; if (o.isAttached() && (i || !o.isDirty())) { const a = o.isComposing(); let s = t; (a || i) && t[t.length - 1] === Tg && (s = t.slice(0, -1)); const l = o.getTextContent(); if (i || s !== l) { if (s === "") { if (Gn(null), n_ || Ag || r_) o.remove(); else { const g = mn(); setTimeout(() => { g.update(() => { o.isAttached() && o.remove(); }); }, 20); } return; } const c = o.getParent(), f = jg(), d = o.getTextContentSize(), p = Oa(), m = o.getKey(); if (o.isToken() || p !== null && m === p && !a || we(f) && (c !== null && !c.canInsertTextBefore() && f.anchor.offset === 0 || f.anchor.key === e.__key && f.anchor.offset === 0 && !o.canInsertTextBefore() && !a || f.focus.key === e.__key && f.focus.offset === d && !o.canInsertTextAfter() && !a)) return void o.markDirty(); const y = Ne(); if (!we(y) || n === null || r === null) return void o.setTextContent(s); if (y.setTextNodeRange(o, n, o, r), o.isSegmented()) { const g = Vn(o.getTextContent()); o.replace(g), o = g; } o.setTextContent(s); } } } function tJ(e, t) { if (t.isSegmented()) return !0; if (!e.isCollapsed()) return !1; const n = e.anchor.offset, r = t.getParentOrThrow(), i = t.isToken(); return n === 0 ? !t.canInsertTextBefore() || !r.canInsertTextBefore() && !t.isComposing() || i || function(o) { const a = o.getPreviousSibling(); return (Se(a) || ve(a) && a.isInline()) && !a.canInsertTextAfter(); }(t) : n === t.getTextContentSize() && (!t.canInsertTextAfter() || !r.canInsertTextAfter() && !t.isComposing() || i); } function _C(e) { return e === "ArrowLeft"; } function SC(e) { return e === "ArrowRight"; } function Fu(e, t) { return _i ? e : t; } function OC(e) { return e === "Enter"; } function _u(e) { return e === "Backspace"; } function Su(e) { return e === "Delete"; } function AC(e, t, n) { return e.toLowerCase() === "a" && Fu(t, n); } function nJ() { const e = ir(); Vo(XZ(e.select(0, e.getChildrenSize()))); } function qu(e, t) { e.__lexicalClassNameCache === void 0 && (e.__lexicalClassNameCache = {}); const n = e.__lexicalClassNameCache, r = n[t]; if (r !== void 0) return r; const i = e[t]; if (typeof i == "string") { const o = Ip(i); return n[t] = o, o; } return i; } function g_(e, t, n, r, i) { if (n.size === 0) return; const o = r.__type, a = r.__key, s = t.get(o); s === void 0 && _e(33, o); const l = s.klass; let c = e.get(l); c === void 0 && (c = /* @__PURE__ */ new Map(), e.set(l, c)); const f = c.get(a), d = f === "destroyed" && i === "created"; (f === void 0 || d) && c.set(a, d ? "updated" : i); } function TC(e, t, n) { const r = e.getParent(); let i = n, o = e; return r !== null && (t && n === 0 ? (i = o.getIndexWithinParent(), o = r) : t || n !== o.getChildrenSize() || (i = o.getIndexWithinParent() + 1, o = r)), o.getChildAtIndex(t ? i - 1 : i); } function U0(e, t) { const n = e.offset; if (e.type === "element") return TC(e.getNode(), t, n); { const r = e.getNode(); if (t && n === 0 || !t && n === r.getTextContentSize()) { const i = t ? r.getPreviousSibling() : r.getNextSibling(); return i === null ? TC(r.getParentOrThrow(), t, r.getIndexWithinParent() + (t ? 0 : 1)) : i; } } return null; } function n2(e) { const t = Ng(e).event, n = t && t.inputType; return n === "insertFromPaste" || n === "insertFromPasteAsQuotation"; } function Ae(e, t, n) { return C2(e, t, n); } function kg(e) { return !ur(e) && !e.isLastChild() && !e.isInline(); } function Lp(e, t) { const n = e._keyToDOMMap.get(t); return n === void 0 && _e(75, t), n; } function Mg(e) { const t = e.assignedSlot || e.parentElement; return t !== null && t.nodeType === 11 ? t.host : t; } function H0(e, t) { let n = e.getParent(); for (; n !== null; ) { if (n.is(t)) return !0; n = n.getParent(); } return !1; } function Ng(e) { const t = e._window; return t === null && _e(78), t; } function rJ(e) { let t = e.getParentOrThrow(); for (; t !== null; ) { if (gd(t)) return t; t = t.getParentOrThrow(); } return t; } function gd(e) { return ur(e) || ve(e) && e.isShadowRoot(); } function $g(e) { const t = mn(), n = e.constructor.getType(), r = t._nodes.get(n); r === void 0 && _e(97); const i = r.replace; if (i !== null) { const o = i(e); return o instanceof e.constructor || _e(98), o; } return e; } function pb(e, t) { !ur(e.getParent()) || ve(t) || Ht(t) || _e(99); } function mb(e) { return (Ht(e) || ve(e) && !e.canBeEmpty()) && !e.isInline(); } function y_(e, t, n) { n.style.removeProperty("caret-color"), t._blockCursorElement = null; const r = e.parentElement; r !== null && r.removeChild(e); } function iJ(e, t, n) { let r = e._blockCursorElement; if (we(n) && n.isCollapsed() && n.anchor.type === "element" && t.contains(document.activeElement)) { const i = n.anchor, o = i.getNode(), a = i.offset; let s = !1, l = null; if (a === o.getChildrenSize()) mb(o.getChildAtIndex(a - 1)) && (s = !0); else { const c = o.getChildAtIndex(a); if (mb(c)) { const f = c.getPreviousSibling(); (f === null || mb(f)) && (s = !0, l = e.getElementByKey(c.__key)); } } if (s) { const c = e.getElementByKey(o.__key); return r === null && (e._blockCursorElement = r = function(f) { const d = f.theme, p = document.createElement("div"); p.contentEditable = "false", p.setAttribute("data-lexical-cursor", "true"); let m = d.blockCursor; if (m !== void 0) { if (typeof m == "string") { const y = Ip(m); m = d.blockCursor = y; } m !== void 0 && p.classList.add(...m); } return p; }(e._config)), t.style.caretColor = "transparent", void (l === null ? c.appendChild(r) : c.insertBefore(r, l)); } } r !== null && y_(r, e, t); } function no(e) { return Di ? (e || window).getSelection() : null; } function v_(e) { return e.nodeType === 1; } function oJ(e) { const t = new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/, "i"); return e.nodeName.match(t) !== null; } function PC(e) { const t = new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/, "i"); return e.nodeName.match(t) !== null; } function Cl(e) { if (ur(e) || Ht(e) && !e.isInline()) return !0; if (!ve(e) || gd(e)) return !1; const t = e.getFirstChild(), n = t === null || Ju(t) || Se(t) || t.isInline(); return !e.isInline() && e.canBeEmpty() !== !1 && n; } function gb(e, t) { let n = e; for (; n !== null && n.getParent() !== null && !t(n); ) n = n.getParentOrThrow(); return t(n) ? n : null; } const CC = /* @__PURE__ */ new WeakMap(), aJ = /* @__PURE__ */ new Map(); function sJ(e) { if (!e._readOnly && e.isEmpty()) return aJ; e._readOnly || _e(192); let t = CC.get(e); if (!t) { t = /* @__PURE__ */ new Map(), CC.set(e, t); for (const [n, r] of e._nodeMap) { const i = r.__type; let o = t.get(i); o || (o = /* @__PURE__ */ new Map(), t.set(i, o)), o.set(n, r); } } return t; } function r2(e) { const t = e.constructor.clone(e); return t.afterCloneFrom(e), t; } function i2(e, t, n, r, i, o) { let a = e.getFirstChild(); for (; a !== null; ) { const s = a.__key; a.__parent === t && (ve(a) && i2(a, s, n, r, i, o), n.has(s) || o.delete(s), i.push(s)), a = a.getNextSibling(); } } let Fa, pr, _f, Dg, K0, G0, Bs, ki, Y0, Sf, wn = "", cr = "", Bi = null, Si = "", So = "", o2 = !1, Of = !1, up = null; function Bp(e, t) { const n = Bs.get(e); if (t !== null) { const r = Z0(e); r.parentNode === t && t.removeChild(r); } if (ki.has(e) || pr._keyToDOMMap.delete(e), ve(n)) { const r = Wp(n, Bs); q0(r, 0, r.length - 1, null); } n !== void 0 && g_(Sf, _f, Dg, n, "destroyed"); } function q0(e, t, n, r) { let i = t; for (; i <= n; ++i) { const o = e[i]; o !== void 0 && Bp(o, r); } } function ls(e, t) { e.setProperty("text-align", t); } const lJ = "40px"; function a2(e, t) { const n = Fa.theme.indent; if (typeof n == "string") { const i = e.classList.contains(n); t > 0 && !i ? e.classList.add(n) : t < 1 && i && e.classList.remove(n); } const r = getComputedStyle(e).getPropertyValue("--lexical-indent-base-value") || lJ; e.style.setProperty("padding-inline-start", t === 0 ? "" : `calc(${t} * ${r})`); } function s2(e, t) { const n = e.style; t === 0 ? ls(n, "") : t === o_ ? ls(n, "left") : t === a_ ? ls(n, "center") : t === s_ ? ls(n, "right") : t === l_ ? ls(n, "justify") : t === c_ ? ls(n, "start") : t === u_ && ls(n, "end"); } function Fp(e, t, n) { const r = ki.get(e); r === void 0 && _e(60); const i = r.createDOM(Fa, pr); if (function(o, a, s) { const l = s._keyToDOMMap; a["__lexicalKey_" + s._key] = o, l.set(o, a); }(e, i, pr), Se(r) ? i.setAttribute("data-lexical-text", "true") : Ht(r) && i.setAttribute("data-lexical-decorator", "true"), ve(r)) { const o = r.__indent, a = r.__size; if (o !== 0 && a2(i, o), a !== 0) { const l = a - 1; (function(c, f, d, p) { const m = cr; cr = "", X0(c, d, 0, f, p, null), c2(d, p), cr = m; })(Wp(r, ki), l, r, i); } const s = r.__format; s !== 0 && s2(i, s), r.isInline() || l2(null, r, i), kg(r) && (wn += zo, So += zo); } else { const o = r.getTextContent(); if (Ht(r)) { const a = r.decorate(pr, Fa); a !== null && u2(e, a), i.contentEditable = "false"; } else Se(r) && (r.isDirectionless() || (cr += o)); wn += o, So += o; } if (t !== null) if (n != null) t.insertBefore(i, n); else { const o = t.__lexicalLineBreak; o != null ? t.insertBefore(i, o) : t.appendChild(i); } return g_(Sf, _f, Dg, r, "created"), i; } function X0(e, t, n, r, i, o) { const a = wn; wn = ""; let s = n; for (; s <= r; ++s) { Fp(e[s], i, o); const l = ki.get(e[s]); l !== null && Se(l) && (Bi === null && (Bi = l.getFormat()), Si === "" && (Si = l.getStyle())); } kg(t) && (wn += zo), i.__lexicalTextContent = wn, wn = a + wn; } function EC(e, t) { const n = t.get(e); return Ju(n) || Ht(n) && n.isInline(); } function l2(e, t, n) { const r = e !== null && (e.__size === 0 || EC(e.__last, Bs)), i = t.__size === 0 || EC(t.__last, ki); if (r) { if (!i) { const o = n.__lexicalLineBreak; if (o != null) try { n.removeChild(o); } catch (a) { if (typeof a == "object" && a != null) { const s = `${a.toString()} Parent: ${n.tagName}, child: ${o.tagName}.`; throw new Error(s); } throw a; } n.__lexicalLineBreak = null; } } else if (i) { const o = document.createElement("br"); n.__lexicalLineBreak = o, n.appendChild(o); } } function c2(e, t) { const n = t.__lexicalDirTextContent, r = t.__lexicalDir; if (n !== cr || r !== up) { const o = cr === "", a = o ? up : (i = cr, BZ.test(i) ? "rtl" : FZ.test(i) ? "ltr" : null); if (a !== r) { const s = t.classList, l = Fa.theme; let c = r !== null ? l[r] : void 0, f = a !== null ? l[a] : void 0; if (c !== void 0) { if (typeof c == "string") { const d = Ip(c); c = l[r] = d; } s.remove(...c); } if (a === null || o && a === "ltr") t.removeAttribute("dir"); else { if (f !== void 0) { if (typeof f == "string") { const d = Ip(f); f = l[a] = d; } f !== void 0 && s.add(...f); } t.dir = a; } Of || (e.getWritable().__dir = a); } up = a, t.__lexicalDirTextContent = cr, t.__lexicalDir = a; } var i; } function cJ(e, t, n) { const r = cr; var i; cr = "", Bi = null, Si = "", function(o, a, s) { const l = wn, c = o.__size, f = a.__size; if (wn = "", c === 1 && f === 1) { const d = o.__first, p = a.__first; if (d === p) Wu(d, s); else { const y = Z0(d), g = Fp(p, null, null); try { s.replaceChild(g, y); } catch (v) { if (typeof v == "object" && v != null) { const x = `${v.toString()} Parent: ${s.tagName}, new child: {tag: ${g.tagName} key: ${p}}, old child: {tag: ${y.tagName}, key: ${d}}.`; throw new Error(x); } throw v; } Bp(d, null); } const m = ki.get(p); Se(m) && (Bi === null && (Bi = m.getFormat()), Si === "" && (Si = m.getStyle())); } else { const d = Wp(o, Bs), p = Wp(a, ki); if (c === 0) f !== 0 && X0(p, a, 0, f - 1, s, null); else if (f === 0) { if (c !== 0) { const m = s.__lexicalLineBreak == null; q0(d, 0, c - 1, m ? null : s), m && (s.textContent = ""); } } else (function(m, y, g, v, x, w) { const S = v - 1, A = x - 1; let _, O, P = (I = w, I.firstChild), C = 0, k = 0; for (var I; C <= S && k <= A; ) { const D = y[C], j = g[k]; if (D === j) P = yb(Wu(j, w)), C++, k++; else { _ === void 0 && (_ = new Set(y)), O === void 0 && (O = new Set(g)); const W = O.has(D), z = _.has(j); if (W) if (z) { const H = Lp(pr, j); H === P ? P = yb(Wu(j, w)) : (P != null ? w.insertBefore(H, P) : w.appendChild(H), Wu(j, w)), C++, k++; } else Fp(j, w, P), k++; else P = yb(Z0(D)), Bp(D, w), C++; } const F = ki.get(j); F !== null && Se(F) && (Bi === null && (Bi = F.getFormat()), Si === "" && (Si = F.getStyle())); } const $ = C > S, N = k > A; if ($ && !N) { const D = g[A + 1]; X0(g, m, k, A, w, D === void 0 ? null : pr.getElementByKey(D)); } else N && !$ && q0(y, C, S, w); })(a, d, p, c, f, s); } kg(a) && (wn += zo), s.__lexicalTextContent = wn, wn = l + wn; }(e, t, n), c2(t, n), ix(i = t) && Bi != null && Bi !== i.__textFormat && !Of && (i.setTextFormat(Bi), i.setTextStyle(Si)), function(o) { ix(o) && Si !== "" && Si !== o.__textStyle && !Of && o.setTextStyle(Si); }(t), cr = r; } function Wp(e, t) { const n = []; let r = e.__first; for (; r !== null; ) { const i = t.get(r); i === void 0 && _e(101), n.push(r), r = i.__next; } return n; } function Wu(e, t) { const n = Bs.get(e); let r = ki.get(e); n !== void 0 && r !== void 0 || _e(61); const i = o2 || G0.has(e) || K0.has(e), o = Lp(pr, e); if (n === r && !i) { if (ve(n)) { const a = o.__lexicalTextContent; a !== void 0 && (wn += a, So += a); const s = o.__lexicalDirTextContent; s !== void 0 && (cr += s); } else { const a = n.getTextContent(); Se(n) && !n.isDirectionless() && (cr += a), So += a, wn += a; } return o; } if (n !== r && i && g_(Sf, _f, Dg, r, "updated"), r.updateDOM(n, o, Fa)) { const a = Fp(e, null, null); return t === null && _e(62), t.replaceChild(a, o), Bp(e, null), a; } if (ve(n) && ve(r)) { const a = r.__indent; a !== n.__indent && a2(o, a); const s = r.__format; s !== n.__format && s2(o, s), i && (cJ(n, r, o), ur(r) || r.isInline() || l2(n, r, o)), kg(r) && (wn += zo, So += zo); } else { const a = r.getTextContent(); if (Ht(r)) { const s = r.decorate(pr, Fa); s !== null && u2(e, s); } else Se(r) && !r.isDirectionless() && (cr += a); wn += a, So += a; } if (!Of && ur(r) && r.__cachedText !== So) { const a = r.getWritable(); a.__cachedText = So, r = a; } return o; } function u2(e, t) { let n = pr._pendingDecorators; const r = pr._decorators; if (n === null) { if (r[e] === t) return; n = ZR(pr); } n[e] = t; } function yb(e) { let t = e.nextSibling; return t !== null && t === pr._blockCursorElement && (t = t.nextSibling), t; } function uJ(e, t, n, r, i, o) { wn = "", So = "", cr = "", o2 = r === nc, up = null, pr = n, Fa = n._config, _f = n._nodes, Dg = pr._listeners.mutation, K0 = i, G0 = o, Bs = e._nodeMap, ki = t._nodeMap, Of = t._readOnly, Y0 = new Map(n._keyToDOMMap); const a = /* @__PURE__ */ new Map(); return Sf = a, Wu("root", null), pr = void 0, _f = void 0, K0 = void 0, G0 = void 0, Bs = void 0, ki = void 0, Fa = void 0, Y0 = void 0, Sf = void 0, a; } function Z0(e) { const t = Y0.get(e); return t === void 0 && _e(75, e), t; } const xo = Object.freeze({}), J0 = 30, Q0 = [["keydown", function(e, t) { if (Xu = e.timeStamp, f2 = e.key, t.isComposing()) return; const { key: n, shiftKey: r, ctrlKey: i, metaKey: o, altKey: a } = e; Ae(t, $R, e) || n != null && (function(s, l, c, f) { return SC(s) && !l && !f && !c; }(n, i, a, o) ? Ae(t, Z1, e) : function(s, l, c, f, d) { return SC(s) && !f && !c && (l || d); }(n, i, r, a, o) ? Ae(t, wZ, e) : function(s, l, c, f) { return _C(s) && !l && !f && !c; }(n, i, a, o) ? Ae(t, J1, e) : function(s, l, c, f, d) { return _C(s) && !f && !c && (l || d); }(n, i, r, a, o) ? Ae(t, _Z, e) : /* @__PURE__ */ function(s, l, c) { return /* @__PURE__ */ function(f) { return f === "ArrowUp"; }(s) && !l && !c; }(n, i, o) ? Ae(t, DR, e) : /* @__PURE__ */ function(s, l, c) { return /* @__PURE__ */ function(f) { return f === "ArrowDown"; }(s) && !l && !c; }(n, i, o) ? Ae(t, IR, e) : function(s, l) { return OC(s) && l; }(n, r) ? (Zu = !0, Ae(t, wf, e)) : /* @__PURE__ */ function(s) { return s === " "; }(n) ? Ae(t, SZ, e) : function(s, l) { return _i && l && s.toLowerCase() === "o"; }(n, i) ? (e.preventDefault(), Zu = !0, Ae(t, Hl, !0)) : function(s, l) { return OC(s) && !l; }(n, r) ? (Zu = !1, Ae(t, wf, e)) : function(s, l, c, f) { return _i ? !l && !c && (_u(s) || s.toLowerCase() === "h" && f) : !(f || l || c) && _u(s); }(n, a, o, i) ? _u(n) ? Ae(t, Q1, e) : (e.preventDefault(), Ae(t, ks, !0)) : /* @__PURE__ */ function(s) { return s === "Escape"; }(n) ? Ae(t, RR, e) : function(s, l, c, f, d) { return _i ? !(c || f || d) && (Su(s) || s.toLowerCase() === "d" && l) : !(l || f || d) && Su(s); }(n, i, r, a, o) ? Su(n) ? Ae(t, jR, e) : (e.preventDefault(), Ae(t, ks, !1)) : function(s, l, c) { return _u(s) && (_i ? l : c); }(n, a, i) ? (e.preventDefault(), Ae(t, bf, !0)) : function(s, l, c) { return Su(s) && (_i ? l : c); }(n, a, i) ? (e.preventDefault(), Ae(t, bf, !1)) : function(s, l) { return _i && l && _u(s); }(n, o) ? (e.preventDefault(), Ae(t, xf, !0)) : function(s, l) { return _i && l && Su(s); }(n, o) ? (e.preventDefault(), Ae(t, xf, !1)) : function(s, l, c, f) { return s.toLowerCase() === "b" && !l && Fu(c, f); }(n, a, o, i) ? (e.preventDefault(), Ae(t, _s, "bold")) : function(s, l, c, f) { return s.toLowerCase() === "u" && !l && Fu(c, f); }(n, a, o, i) ? (e.preventDefault(), Ae(t, _s, "underline")) : function(s, l, c, f) { return s.toLowerCase() === "i" && !l && Fu(c, f); }(n, a, o, i) ? (e.preventDefault(), Ae(t, _s, "italic")) : /* @__PURE__ */ function(s, l, c, f) { return s === "Tab" && !l && !c && !f; }(n, a, i, o) ? Ae(t, LR, e) : function(s, l, c, f) { return s.toLowerCase() === "z" && !l && Fu(c, f); }(n, r, o, i) ? (e.preventDefault(), Ae(t, q1, void 0)) : function(s, l, c, f) { return _i ? s.toLowerCase() === "z" && c && l : s.toLowerCase() === "y" && f || s.toLowerCase() === "z" && f && l; }(n, r, o, i) ? (e.preventDefault(), Ae(t, X1, void 0)) : Rg(t._editorState._selection) ? function(s, l, c, f) { return !l && s.toLowerCase() === "c" && (_i ? c : f); }(n, r, o, i) ? (e.preventDefault(), Ae(t, e_, e)) : function(s, l, c, f) { return !l && s.toLowerCase() === "x" && (_i ? c : f); }(n, r, o, i) ? (e.preventDefault(), Ae(t, t_, e)) : AC(n, o, i) && (e.preventDefault(), Ae(t, W0, e)) : !Ma && AC(n, o, i) && (e.preventDefault(), Ae(t, W0, e)), /* @__PURE__ */ function(s, l, c, f) { return s || l || c || f; }(i, r, a, o) && Ae(t, kZ, e)); }], ["pointerdown", function(e, t) { const n = e.target, r = e.pointerType; n instanceof Node && r !== "touch" && Fr(t, () => { Ht(Eg(n)) || (tx = !0); }); }], ["compositionstart", function(e, t) { Fr(t, () => { const n = Ne(); if (we(n) && !t.isComposing()) { const r = n.anchor, i = n.anchor.getNode(); Gn(r.key), (e.timeStamp < Xu + J0 || r.type === "element" || !n.isCollapsed() || i.getFormat() !== n.format || Se(i) && i.getStyle() !== n.style) && Ae(t, Kl, LZ); } }); }], ["compositionend", function(e, t) { Ma ? Ou = !0 : Fr(t, () => { vb(t, e.data); }); }], ["input", function(e, t) { e.stopPropagation(), Fr(t, () => { const n = Ne(), r = e.data, i = m2(e); if (r != null && we(n) && p2(n, i, r, e.timeStamp, !1)) { Ou && (vb(t, r), Ou = !1); const o = n.anchor.getNode(), a = no(t._window); if (a === null) return; const s = n.isBackward(), l = s ? n.anchor.offset : n.focus.offset, c = s ? n.focus.offset : n.anchor.offset; Np && !n.isCollapsed() && Se(o) && a.anchorNode !== null && o.getTextContent().slice(0, l) + r + o.getTextContent().slice(l + c) === t2(a.anchorNode) || Ae(t, Kl, r); const f = r.length; Ma && f > 1 && e.inputType === "insertCompositionText" && !t.isComposing() && (n.anchor.offset -= f), n_ || Ag || r_ || !t.isComposing() || (Xu = 0, Gn(null)); } else p_(!1, t, r !== null ? r : void 0), Ou && (vb(t, r || void 0), Ou = !1); wr(), KR(mn()); }), El = null; }], ["click", function(e, t) { Fr(t, () => { const n = Ne(), r = no(t._window), i = jg(); if (r) { if (we(n)) { const o = n.anchor, a = o.getNode(); o.type === "element" && o.offset === 0 && n.isCollapsed() && !ur(a) && ir().getChildrenSize() === 1 && a.getTopLevelElementOrThrow().isEmpty() && i !== null && n.is(i) ? (r.removeAllRanges(), n.dirty = !0) : e.detail === 3 && !n.isCollapsed() && a !== n.focus.getNode() && (ve(a) ? a.select(0) : a.getParentOrThrow().select(0)); } else if (e.pointerType === "touch") { const o = r.anchorNode; if (o !== null) { const a = o.nodeType; (a === md || a === Ua) && Vo(w_(i, r, t, e)); } } } Ae(t, xZ, e); }); }], ["cut", xo], ["copy", xo], ["dragstart", xo], ["dragover", xo], ["dragend", xo], ["paste", xo], ["focus", xo], ["blur", xo], ["drop", xo]]; Np && Q0.push(["beforeinput", (e, t) => function(n, r) { const i = n.inputType, o = m2(n); i === "deleteCompositionText" || Ma && n2(r) || i !== "insertCompositionText" && Fr(r, () => { const a = Ne(); if (i === "deleteContentBackward") { if (a === null) { const m = jg(); if (!we(m)) return; Vo(m.clone()); } if (we(a)) { const m = a.anchor.key === a.focus.key; if (s = n.timeStamp, f2 === "MediaLast" && s < Xu + J0 && r.isComposing() && m) { if (Gn(null), Xu = 0, setTimeout(() => { Fr(r, () => { Gn(null); }); }, J0), we(a)) { const y = a.anchor.getNode(); y.markDirty(), a.format = y.getFormat(), Se(y) || _e(142), a.style = y.getStyle(); } } else { Gn(null), n.preventDefault(); const y = a.anchor.getNode().getTextContent(), g = a.anchor.offset === 0 && a.focus.offset === y.length; $Z && m && !g || Ae(r, ks, !0); } return; } } var s; if (!we(a)) return; const l = n.data; El !== null && p_(!1, r, El), a.dirty && El === null || !a.isCollapsed() || ur(a.anchor.getNode()) || o === null || a.applyDOMRange(o), El = null; const c = a.anchor, f = a.focus, d = c.getNode(), p = f.getNode(); if (i !== "insertText" && i !== "insertTranspose") switch (n.preventDefault(), i) { case "insertFromYank": case "insertFromDrop": case "insertReplacementText": Ae(r, Kl, n); break; case "insertFromComposition": Gn(null), Ae(r, Kl, n); break; case "insertLineBreak": Gn(null), Ae(r, Hl, !1); break; case "insertParagraph": Gn(null), Zu && !Ag ? (Zu = !1, Ae(r, Hl, !1)) : Ae(r, B0, void 0); break; case "insertFromPaste": case "insertFromPasteAsQuotation": Ae(r, Y1, n); break; case "deleteByComposition": (function(m, y) { return m !== y || ve(m) || ve(y) || !m.isToken() || !y.isToken(); })(d, p) && Ae(r, F0, n); break; case "deleteByDrag": case "deleteByCut": Ae(r, F0, n); break; case "deleteContent": Ae(r, ks, !1); break; case "deleteWordBackward": Ae(r, bf, !0); break; case "deleteWordForward": Ae(r, bf, !1); break; case "deleteHardLineBackward": case "deleteSoftLineBackward": Ae(r, xf, !0); break; case "deleteContentForward": case "deleteHardLineForward": case "deleteSoftLineForward": Ae(r, xf, !1); break; case "formatStrikeThrough": Ae(r, _s, "strikethrough"); break; case "formatBold": Ae(r, _s, "bold"); break; case "formatItalic": Ae(r, _s, "italic"); break; case "formatUnderline": Ae(r, _s, "underline"); break; case "historyUndo": Ae(r, q1, void 0); break; case "historyRedo": Ae(r, X1, void 0); } else { if (l === ` `) n.preventDefault(), Ae(r, Hl, !1); else if (l === zo) n.preventDefault(), Ae(r, B0, void 0); else if (l == null && n.dataTransfer) { const m = n.dataTransfer.getData("text/plain"); n.preventDefault(), a.insertRawText(m); } else l != null && p2(a, o, l, n.timeStamp, !0) ? (n.preventDefault(), Ae(r, Kl, l)) : El = l; d2 = n.timeStamp; } }); }(e, t)]); let Xu = 0, f2 = null, d2 = 0, El = null; const zp = /* @__PURE__ */ new WeakMap(); let ex = !1, tx = !1, Zu = !1, Ou = !1, h2 = [0, "", 0, "root", 0]; function p2(e, t, n, r, i) { const o = e.anchor, a = e.focus, s = o.getNode(), l = mn(), c = no(l._window), f = c !== null ? c.anchorNode : null, d = o.key, p = l.getElementByKey(d), m = n.length; return d !== a.key || !Se(s) || (!i && (!Np || d2 < r + 50) || s.isDirty() && m < 2 || QR(n)) && o.offset !== a.offset && !s.isComposing() || Pl(s) || s.isDirty() && m > 1 || (i || !Np) && p !== null && !s.isComposing() && f !== Rp(p) || c !== null && t !== null && (!t.collapsed || t.startContainer !== c.anchorNode || t.startOffset !== c.anchorOffset) || s.getFormat() !== e.format || s.getStyle() !== e.style || tJ(e, s); } function kC(e, t) { return e !== null && e.nodeValue !== null && e.nodeType === Ua && t !== 0 && t !== e.nodeValue.length; } function MC(e, t, n) { const { anchorNode: r, anchorOffset: i, focusNode: o, focusOffset: a } = e; ex && (ex = !1, kC(r, i) && kC(o, a)) || Fr(t, () => { if (!n) return void Vo(null); if (!Pg(t, r, o)) return; const s = Ne(); if (we(s)) { const l = s.anchor, c = l.getNode(); if (s.isCollapsed()) { e.type === "Range" && e.anchorNode === e.focusNode && (s.dirty = !0); const f = Ng(t).event, d = f ? f.timeStamp : performance.now(), [p, m, y, g, v] = h2, x = ir(), w = t.isComposing() === !1 && x.getTextContent() === ""; if (d < v + 200 && l.offset === y && l.key === g) s.format = p, s.style = m; else if (l.type === "text") Se(c) || _e(141), s.format = c.getFormat(), s.style = c.getStyle(); else if (l.type === "element" && !w) { const S = l.getNode(); s.style = "", S instanceof Lc && S.getChildrenSize() === 0 ? (s.format = S.getTextFormat(), s.style = S.getTextStyle()) : s.format = 0; } } else { const f = l.key, d = s.focus.key, p = s.getNodes(), m = p.length, y = s.isBackward(), g = y ? a : i, v = y ? i : a, x = y ? d : f, w = y ? f : d; let S = jZ, A = !1; for (let _ = 0; _ < m; _++) { const O = p[_], P = O.getTextContentSize(); if (Se(O) && P !== 0 && !(_ === 0 && O.__key === x && g === P || _ === m - 1 && O.__key === w && v === 0) && (A = !0, S &= O.getFormat(), S === 0)) break; } s.format = A ? S : 0; } } Ae(t, G1, void 0); }); } function m2(e) { if (!e.getTargetRanges) return null; const t = e.getTargetRanges(); return t.length === 0 ? null : t[0]; } function vb(e, t) { const n = e._compositionKey; if (Gn(null), n !== null && t != null) { if (t === "") { const r = $n(n), i = Rp(e.getElementByKey(n)); return void (i !== null && i.nodeValue !== null && Se(r) && m_(r, i.nodeValue, null, null, !0)); } if (t[t.length - 1] === ` `) { const r = Ne(); if (we(r)) { const i = r.focus; return r.anchor.set(i.key, i.offset, i.type), void Ae(e, wf, null); } } } p_(!0, e, t); } function g2(e) { let t = e.__lexicalEventHandles; return t === void 0 && (t = [], e.__lexicalEventHandles = t), t; } const Gl = /* @__PURE__ */ new Map(); function y2(e) { const t = e.target, n = no(t == null ? null : t.nodeType === 9 ? t.defaultView : t.ownerDocument.defaultView); if (n === null) return; const r = qR(n.anchorNode); if (r === null) return; tx && (tx = !1, Fr(r, () => { const c = jg(), f = n.anchorNode; if (f === null) return; const d = f.nodeType; d !== md && d !== Ua || Vo(w_(c, n, r, e)); })); const i = h_(r), o = i[i.length - 1], a = o._key, s = Gl.get(a), l = s || o; l !== r && MC(n, l, !1), MC(n, r, !0), r !== o ? Gl.set(a, r) : s && Gl.delete(a); } function NC(e) { e._lexicalHandled = !0; } function $C(e) { return e._lexicalHandled === !0; } function fJ(e) { const t = e.ownerDocument, n = zp.get(t); n === void 0 && _e(162); const r = n - 1; r >= 0 || _e(164), zp.set(t, r), r === 0 && t.removeEventListener("selectionchange", y2); const i = Cg(e); d_(i) ? (function(a) { if (a._parentEditor !== null) { const s = h_(a), l = s[s.length - 1]._key; Gl.get(l) === a && Gl.delete(l); } else Gl.delete(a._key); }(i), e.__lexicalEditor = null) : i && _e(198); const o = g2(e); for (let a = 0; a < o.length; a++) o[a](); e.__lexicalEventHandles = []; } function nx(e, t, n) { wr(); const r = e.__key, i = e.getParent(); if (i === null) return; const o = function(s) { const l = Ne(); if (!we(l) || !ve(s)) return l; const { anchor: c, focus: f } = l, d = c.getNode(), p = f.getNode(); return H0(d, s) && c.set(s.__key, 0, "element"), H0(p, s) && f.set(s.__key, 0, "element"), l; }(e); let a = !1; if (we(o) && t) { const s = o.anchor, l = o.focus; s.key === r && (Up(s, e, i, e.getPreviousSibling(), e.getNextSibling()), a = !0), l.key === r && (Up(l, e, i, e.getPreviousSibling(), e.getNextSibling()), a = !0); } else Rg(o) && t && e.isSelected() && e.selectPrevious(); if (we(o) && t && !a) { const s = e.getIndexWithinParent(); Ms(e), Vp(o, i, s, -1); } else Ms(e); n || gd(i) || i.canBeEmpty() || !i.isEmpty() || nx(i, t), t && ur(i) && i.isEmpty() && i.selectEnd(); } class Ig { static getType() { _e(64, this.name); } static clone(t) { _e(65, this.name); } afterCloneFrom(t) { this.__parent = t.__parent, this.__next = t.__next, this.__prev = t.__prev; } constructor(t) { this.__type = this.constructor.getType(), this.__parent = null, this.__prev = null, this.__next = null, eJ(this, t); } getType() { return this.__type; } isInline() { _e(137, this.constructor.name); } isAttached() { let t = this.__key; for (; t !== null; ) { if (t === "root") return !0; const n = $n(t); if (n === null) break; t = n.__parent; } return !1; } isSelected(t) { const n = t || Ne(); if (n == null) return !1; const r = n.getNodes().some((i) => i.__key === this.__key); if (Se(this)) return r; if (we(n) && n.anchor.type === "element" && n.focus.type === "element") { if (n.isCollapsed()) return !1; const i = this.getParent(); if (Ht(this) && this.isInline() && i) { const o = n.isBackward() ? n.focus : n.anchor, a = o.getNode(); if (o.offset === a.getChildrenSize() && a.is(i) && a.getLastChildOrThrow().is(this)) return !1; } } return r; } getKey() { return this.__key; } getIndexWithinParent() { const t = this.getParent(); if (t === null) return -1; let n = t.getFirstChild(), r = 0; for (; n !== null; ) { if (this.is(n)) return r; r++, n = n.getNextSibling(); } return -1; } getParent() { const t = this.getLatest().__parent; return t === null ? null : $n(t); } getParentOrThrow() { const t = this.getParent(); return t === null && _e(66, this.__key), t; } getTopLevelElement() { let t = this; for (; t !== null; ) { const n = t.getParent(); if (gd(n)) return ve(t) || t === this && Ht(t) || _e(194), t; t = n; } return null; } getTopLevelElementOrThrow() { const t = this.getTopLevelElement(); return t === null && _e(67, this.__key), t; } getParents() { const t = []; let n = this.getParent(); for (; n !== null; ) t.push(n), n = n.getParent(); return t; } getParentKeys() { const t = []; let n = this.getParent(); for (; n !== null; ) t.push(n.__key), n = n.getParent(); return t; } getPreviousSibling() { const t = this.getLatest().__prev; return t === null ? null : $n(t); } getPreviousSiblings() { const t = [], n = this.getParent(); if (n === null) return t; let r = n.getFirstChild(); for (; r !== null && !r.is(this); ) t.push(r), r = r.getNextSibling(); return t; } getNextSibling() { const t = this.getLatest().__next; return t === null ? null : $n(t); } getNextSiblings() { const t = []; let n = this.getNextSibling(); for (; n !== null; ) t.push(n), n = n.getNextSibling(); return t; } getCommonAncestor(t) { const n = this.getParents(), r = t.getParents(); ve(this) && n.unshift(this), ve(t) && r.unshift(t); const i = n.length, o = r.length; if (i === 0 || o === 0 || n[i - 1] !== r[o - 1]) return null; const a = new Set(r); for (let s = 0; s < i; s++) { const l = n[s]; if (a.has(l)) return l; } return null; } is(t) { return t != null && this.__key === t.__key; } isBefore(t) { if (this === t) return !1; if (t.isParentOf(this)) return !0; if (this.isParentOf(t)) return !1; const n = this.getCommonAncestor(t); let r = 0, i = 0, o = this; for (; ; ) { const a = o.getParentOrThrow(); if (a === n) { r = o.getIndexWithinParent(); break; } o = a; } for (o = t; ; ) { const a = o.getParentOrThrow(); if (a === n) { i = o.getIndexWithinParent(); break; } o = a; } return r < i; } isParentOf(t) { const n = this.__key; if (n === t.__key) return !1; let r = t; for (; r !== null; ) { if (r.__key === n) return !0; r = r.getParent(); } return !1; } getNodesBetween(t) { const n = this.isBefore(t), r = [], i = /* @__PURE__ */ new Set(); let o = this; for (; o !== null; ) { const a = o.__key; if (i.has(a) || (i.add(a), r.push(o)), o === t) break; const s = ve(o) ? n ? o.getFirstChild() : o.getLastChild() : null; if (s !== null) { o = s; continue; } const l = n ? o.getNextSibling() : o.getPreviousSibling(); if (l !== null) { o = l; continue; } const c = o.getParentOrThrow(); if (i.has(c.__key) || r.push(c), c === t) break; let f = null, d = c; do { if (d === null && _e(68), f = n ? d.getNextSibling() : d.getPreviousSibling(), d = d.getParent(), d === null) break; f !== null || i.has(d.__key) || r.push(d); } while (f === null); o = f; } return n || r.reverse(), r; } isDirty() { const t = mn()._dirtyLeaves; return t !== null && t.has(this.__key); } getLatest() { const t = $n(this.__key); return t === null && _e(113), t; } getWritable() { wr(); const t = qo(), n = mn(), r = t._nodeMap, i = this.__key, o = this.getLatest(), a = n._cloneNotNeeded, s = Ne(); if (s !== null && s.setCachedNodes(null), a.has(i)) return jp(o), o; const l = r2(o); return a.add(i), jp(l), r.set(i, l), l; } getTextContent() { return ""; } getTextContentSize() { return this.getTextContent().length; } createDOM(t, n) { _e(70); } updateDOM(t, n, r) { _e(71); } exportDOM(t) { return { element: this.createDOM(t._config, t) }; } exportJSON() { _e(72); } static importJSON(t) { _e(18, this.name); } static transform() { return null; } remove(t) { nx(this, !0, t); } replace(t, n) { wr(); let r = Ne(); r !== null && (r = r.clone()), pb(this, t); const i = this.getLatest(), o = this.__key, a = t.__key, s = t.getWritable(), l = this.getParentOrThrow().getWritable(), c = l.__size; Ms(s); const f = i.getPreviousSibling(), d = i.getNextSibling(), p = i.__prev, m = i.__next, y = i.__parent; if (nx(i, !1, !0), f === null ? l.__first = a : f.getWritable().__next = a, s.__prev = p, d === null ? l.__last = a : d.getWritable().__prev = a, s.__next = m, s.__parent = y, l.__size = c, n && (ve(this) && ve(s) || _e(139), this.getChildren().forEach((g) => { s.append(g); })), we(r)) { Vo(r); const g = r.anchor, v = r.focus; g.key === o && jC(g, s), v.key === o && jC(v, s); } return Oa() === o && Gn(a), s; } insertAfter(t, n = !0) { wr(), pb(this, t); const r = this.getWritable(), i = t.getWritable(), o = i.getParent(), a = Ne(); let s = !1, l = !1; if (o !== null) { const m = t.getIndexWithinParent(); if (Ms(i), we(a)) { const y = o.__key, g = a.anchor, v = a.focus; s = g.type === "element" && g.key === y && g.offset === m + 1, l = v.type === "element" && v.key === y && v.offset === m + 1; } } const c = this.getNextSibling(), f = this.getParentOrThrow().getWritable(), d = i.__key, p = r.__next; if (c === null ? f.__last = d : c.getWritable().__prev = d, f.__size++, r.__next = d, i.__next = p, i.__prev = r.__key, i.__parent = r.__parent, n && we(a)) { const m = this.getIndexWithinParent(); Vp(a, f, m + 1); const y = f.__key; s && a.anchor.set(y, m + 2, "element"), l && a.focus.set(y, m + 2, "element"); } return t; } insertBefore(t, n = !0) { wr(), pb(this, t); const r = this.getWritable(), i = t.getWritable(), o = i.__key; Ms(i); const a = this.getPreviousSibling(), s = this.getParentOrThrow().getWritable(), l = r.__prev, c = this.getIndexWithinParent(); a === null ? s.__first = o : a.getWritable().__next = o, s.__size++, r.__prev = o, i.__prev = l, i.__next = r.__key, i.__parent = r.__parent; const f = Ne(); return n && we(f) && Vp(f, this.getParentOrThrow(), c), t; } isParentRequired() { return !1; } createParentElementNode() { return Ro(); } selectStart() { return this.selectPrevious(); } selectEnd() { return this.selectNext(0, 0); } selectPrevious(t, n) { wr(); const r = this.getPreviousSibling(), i = this.getParentOrThrow(); if (r === null) return i.select(0, 0); if (ve(r)) return r.select(); if (!Se(r)) { const o = r.getIndexWithinParent() + 1; return i.select(o, o); } return r.select(t, n); } selectNext(t, n) { wr(); const r = this.getNextSibling(), i = this.getParentOrThrow(); if (r === null) return i.select(); if (ve(r)) return r.select(0, 0); if (!Se(r)) { const o = r.getIndexWithinParent(); return i.select(o, o); } return r.select(t, n); } markDirty() { this.getWritable(); } } class yd extends Ig { static getType() { return "linebreak"; } static clone(t) { return new yd(t.__key); } constructor(t) { super(t); } getTextContent() { return ` `; } createDOM() { return document.createElement("br"); } updateDOM() { return !1; } static importDOM() { return { br: (t) => function(n) { const r = n.parentElement; if (r !== null && PC(r)) { const i = r.firstChild; if (i === n || i.nextSibling === n && Lh(i)) { const o = r.lastChild; if (o === n || o.previousSibling === n && Lh(o)) return !0; } } return !1; }(t) || function(n) { const r = n.parentElement; if (r !== null && PC(r)) { const i = r.firstChild; if (i === n || i.nextSibling === n && Lh(i)) return !1; const o = r.lastChild; if (o === n || o.previousSibling === n && Lh(o)) return !0; } return !1; }(t) ? null : { conversion: dJ, priority: 0 } }; } static importJSON(t) { return Af(); } exportJSON() { return { type: "linebreak", version: 1 }; } } function dJ(e) { return { node: Af() }; } function Af() { return $g(new yd()); } function Ju(e) { return e instanceof yd; } function Lh(e) { return e.nodeType === Ua && /^( |\t|\r?\n)+$/.test(e.textContent || ""); } function bb(e, t) { return 16 & t ? "code" : t & i_ ? "mark" : 32 & t ? "sub" : 64 & t ? "sup" : null; } function xb(e, t) { return 1 & t ? "strong" : 2 & t ? "em" : "span"; } function v2(e, t, n, r, i) { const o = r.classList; let a = qu(i, "base"); a !== void 0 && o.add(...a), a = qu(i, "underlineStrikethrough"); let s = !1; const l = t & Dp && t & $p; a !== void 0 && (n & Dp && n & $p ? (s = !0, l || o.add(...a)) : l && o.remove(...a)); for (const c in Io) { const f = Io[c]; if (a = qu(i, c), a !== void 0) if (n & f) { if (s && (c === "underline" || c === "strikethrough")) { t & f && o.remove(...a); continue; } t & f && (!l || c !== "underline") && c !== "strikethrough" || o.add(...a); } else t & f && o.remove(...a); } } function b2(e, t, n) { const r = t.firstChild, i = n.isComposing(), o = e + (i ? Tg : ""); if (r == null) t.textContent = o; else { const a = r.nodeValue; if (a !== o) if (i || Ma) { const [s, l, c] = function(f, d) { const p = f.length, m = d.length; let y = 0, g = 0; for (; y < p && y < m && f[y] === d[y]; ) y++; for (; g + y < p && g + y < m && f[p - g - 1] === d[m - g - 1]; ) g++; return [y, p - y - g, d.slice(y, m - g)]; }(a, o); l !== 0 && r.deleteData(s, l), r.insertData(s, c); } else r.nodeValue = o; } } function DC(e, t, n, r, i, o) { b2(i, e, t); const a = o.theme.text; a !== void 0 && v2(0, 0, r, e, a); } function Bh(e, t) { const n = document.createElement(t); return n.appendChild(e), n; } class jc extends Ig { static getType() { return "text"; } static clone(t) { return new jc(t.__text, t.__key); } afterCloneFrom(t) { super.afterCloneFrom(t), this.__format = t.__format, this.__style = t.__style, this.__mode = t.__mode, this.__detail = t.__detail; } constructor(t, n) { super(n), this.__text = t, this.__format = 0, this.__style = "", this.__mode = 0, this.__detail = 0; } getFormat() { return this.getLatest().__format; } getDetail() { return this.getLatest().__detail; } getMode() { const t = this.getLatest(); return UZ[t.__mode]; } getStyle() { return this.getLatest().__style; } isToken() { return this.getLatest().__mode === 1; } isComposing() { return this.__key === Oa(); } isSegmented() { return this.getLatest().__mode === 2; } isDirectionless() { return !!(1 & this.getLatest().__detail); } isUnmergeable() { return !!(2 & this.getLatest().__detail); } hasFormat(t) { const n = Io[t]; return !!(this.getFormat() & n); } isSimpleText() { return this.__type === "text" && this.__mode === 0; } getTextContent() { return this.getLatest().__text; } getFormatFlags(t, n) { return V0(this.getLatest().__format, t, n); } canHaveFormat() { return !0; } createDOM(t, n) { const r = this.__format, i = bb(0, r), o = xb(0, r), a = i === null ? o : i, s = document.createElement(a); let l = s; this.hasFormat("code") && s.setAttribute("spellcheck", "false"), i !== null && (l = document.createElement(o), s.appendChild(l)), DC(l, this, 0, r, this.__text, t); const c = this.__style; return c !== "" && (s.style.cssText = c), s; } updateDOM(t, n, r) { const i = this.__text, o = t.__format, a = this.__format, s = bb(0, o), l = bb(0, a), c = xb(0, o), f = xb(0, a); if ((s === null ? c : s) !== (l === null ? f : l)) return !0; if (s === l && c !== f) { const g = n.firstChild; g == null && _e(48); const v = document.createElement(f); return DC(v, this, 0, a, i, r), n.replaceChild(v, g), !1; } let d = n; l !== null && s !== null && (d = n.firstChild, d == null && _e(49)), b2(i, d, this); const p = r.theme.text; p !== void 0 && o !== a && v2(0, o, a, d, p); const m = t.__style, y = this.__style; return m !== y && (n.style.cssText = y), !1; } static importDOM() { return { "#text": () => ({ conversion: gJ, priority: 0 }), b: () => ({ conversion: pJ, priority: 0 }), code: () => ({ conversion: ga, priority: 0 }), em: () => ({ conversion: ga, priority: 0 }), i: () => ({ conversion: ga, priority: 0 }), s: () => ({ conversion: ga, priority: 0 }), span: () => ({ conversion: hJ, priority: 0 }), strong: () => ({ conversion: ga, priority: 0 }), sub: () => ({ conversion: ga, priority: 0 }), sup: () => ({ conversion: ga, priority: 0 }), u: () => ({ conversion: ga, priority: 0 }) }; } static importJSON(t) { const n = Vn(t.text); return n.setFormat(t.format), n.setDetail(t.detail), n.setMode(t.mode), n.setStyle(t.style), n; } exportDOM(t) { let { element: n } = super.exportDOM(t); return n !== null && v_(n) || _e(132), n.style.whiteSpace = "pre-wrap", this.hasFormat("bold") && (n = Bh(n, "b")), this.hasFormat("italic") && (n = Bh(n, "i")), this.hasFormat("strikethrough") && (n = Bh(n, "s")), this.hasFormat("underline") && (n = Bh(n, "u")), { element: n }; } exportJSON() { return { detail: this.getDetail(), format: this.getFormat(), mode: this.getMode(), style: this.getStyle(), text: this.getTextContent(), type: "text", version: 1 }; } selectionTransform(t, n) { } setFormat(t) { const n = this.getWritable(); return n.__format = typeof t == "string" ? Io[t] : t, n; } setDetail(t) { const n = this.getWritable(); return n.__detail = typeof t == "string" ? WZ[t] : t, n; } setStyle(t) { const n = this.getWritable(); return n.__style = t, n; } toggleFormat(t) { const n = V0(this.getFormat(), t, null); return this.setFormat(n); } toggleDirectionless() { const t = this.getWritable(); return t.__detail ^= 1, t; } toggleUnmergeable() { const t = this.getWritable(); return t.__detail ^= 2, t; } setMode(t) { const n = VZ[t]; if (this.__mode === n) return this; const r = this.getWritable(); return r.__mode = n, r; } setTextContent(t) { if (this.__text === t) return this; const n = this.getWritable(); return n.__text = t, n; } select(t, n) { wr(); let r = t, i = n; const o = Ne(), a = this.getTextContent(), s = this.__key; if (typeof a == "string") { const l = a.length; r === void 0 && (r = l), i === void 0 && (i = l); } else r = 0, i = 0; if (!we(o)) return O2(s, r, s, i, "text", "text"); { const l = Oa(); l !== o.anchor.key && l !== o.focus.key || Gn(s), o.setTextNodeRange(this, r, this, i); } return o; } selectStart() { return this.select(0, 0); } selectEnd() { const t = this.getTextContentSize(); return this.select(t, t); } spliceText(t, n, r, i) { const o = this.getWritable(), a = o.__text, s = r.length; let l = t; l < 0 && (l = s + l, l < 0 && (l = 0)); const c = Ne(); if (i && we(c)) { const d = t + s; c.setTextNodeRange(o, d, o, d); } const f = a.slice(0, l) + r + a.slice(l + n); return o.__text = f, o; } canInsertTextBefore() { return !0; } canInsertTextAfter() { return !0; } splitText(...t) { wr(); const n = this.getLatest(), r = n.getTextContent(), i = n.__key, o = Oa(), a = new Set(t), s = [], l = r.length; let c = ""; for (let _ = 0; _ < l; _++) c !== "" && a.has(_) && (s.push(c), c = ""), c += r[_]; c !== "" && s.push(c); const f = s.length; if (f === 0) return []; if (s[0] === r) return [n]; const d = s[0], p = n.getParent(); let m; const y = n.getFormat(), g = n.getStyle(), v = n.__detail; let x = !1; n.isSegmented() ? (m = Vn(d), m.__format = y, m.__style = g, m.__detail = v, x = !0) : (m = n.getWritable(), m.__text = d); const w = Ne(), S = [m]; let A = d.length; for (let _ = 1; _ < f; _++) { const O = s[_], P = O.length, C = Vn(O).getWritable(); C.__format = y, C.__style = g, C.__detail = v; const k = C.__key, I = A + P; if (we(w)) { const $ = w.anchor, N = w.focus; $.key === i && $.type === "text" && $.offset > A && $.offset <= I && ($.key = k, $.offset -= A, w.dirty = !0), N.key === i && N.type === "text" && N.offset > A && N.offset <= I && (N.key = k, N.offset -= A, w.dirty = !0); } o === i && Gn(k), A = I, S.push(C); } if (p !== null) { (function(P) { const C = P.getPreviousSibling(), k = P.getNextSibling(); C !== null && jp(C), k !== null && jp(k); })(this); const _ = p.getWritable(), O = this.getIndexWithinParent(); x ? (_.splice(O, 0, S), this.remove()) : _.splice(O, 1, S), we(w) && Vp(w, p, O, f - 1); } return S; } mergeWithSibling(t) { const n = t === this.getPreviousSibling(); n || t === this.getNextSibling() || _e(50); const r = this.__key, i = t.__key, o = this.__text, a = o.length; Oa() === i && Gn(r); const s = Ne(); if (we(s)) { const d = s.anchor, p = s.focus; d !== null && d.key === i && (UC(d, n, r, t, a), s.dirty = !0), p !== null && p.key === i && (UC(p, n, r, t, a), s.dirty = !0); } const l = t.__text, c = n ? l + o : o + l; this.setTextContent(c); const f = this.getWritable(); return t.remove(), f; } isTextEntity() { return !1; } } function hJ(e) { return { forChild: b_(e.style), node: null }; } function pJ(e) { const t = e, n = t.style.fontWeight === "normal"; return { forChild: b_(t.style, n ? void 0 : "bold"), node: null }; } const IC = /* @__PURE__ */ new WeakMap(); function mJ(e) { return e.nodeName === "PRE" || e.nodeType === md && e.style !== void 0 && e.style.whiteSpace !== void 0 && e.style.whiteSpace.startsWith("pre"); } function gJ(e) { const t = e; e.parentElement === null && _e(129); let n = t.textContent || ""; if (function(r) { let i, o = r.parentNode; const a = [r]; for (; o !== null && (i = IC.get(o)) === void 0 && !mJ(o); ) a.push(o), o = o.parentNode; const s = i === void 0 ? o : i; for (let l = 0; l < a.length; l++) IC.set(a[l], s); return s; }(t) !== null) { const r = n.split(/(\r?\n|\t)/), i = [], o = r.length; for (let a = 0; a < o; a++) { const s = r[a]; s === ` ` || s === `\r ` ? i.push(Af()) : s === " " ? i.push(x_()) : s !== "" && i.push(Vn(s)); } return { node: i }; } if (n = n.replace(/\r/g, "").replace(/[ \t\n]+/g, " "), n === "") return { node: null }; if (n[0] === " ") { let r = t, i = !0; for (; r !== null && (r = RC(r, !1)) !== null; ) { const o = r.textContent || ""; if (o.length > 0) { /[ \t\n]$/.test(o) && (n = n.slice(1)), i = !1; break; } } i && (n = n.slice(1)); } if (n[n.length - 1] === " ") { let r = t, i = !0; for (; r !== null && (r = RC(r, !0)) !== null; ) if ((r.textContent || "").replace(/^( |\t|\r?\n)+/, "").length > 0) { i = !1; break; } i && (n = n.slice(0, n.length - 1)); } return n === "" ? { node: null } : { node: Vn(n) }; } function RC(e, t) { let n = e; for (; ; ) { let r; for (; (r = t ? n.nextSibling : n.previousSibling) === null; ) { const o = n.parentElement; if (o === null) return null; n = o; } if (n = r, n.nodeType === md) { const o = n.style.display; if (o === "" && !oJ(n) || o !== "" && !o.startsWith("inline")) return null; } let i = n; for (; (i = t ? n.firstChild : n.lastChild) !== null; ) n = i; if (n.nodeType === Ua) return n; if (n.nodeName === "BR") return null; } } const yJ = { code: "code", em: "italic", i: "italic", s: "strikethrough", strong: "bold", sub: "subscript", sup: "superscript", u: "underline" }; function ga(e) { const t = yJ[e.nodeName.toLowerCase()]; return t === void 0 ? { node: null } : { forChild: b_(e.style, t), node: null }; } function Vn(e = "") { return $g(new jc(e)); } function Se(e) { return e instanceof jc; } function b_(e, t) { const n = e.fontWeight, r = e.textDecoration.split(" "), i = n === "700" || n === "bold", o = r.includes("line-through"), a = e.fontStyle === "italic", s = r.includes("underline"), l = e.verticalAlign; return (c) => (Se(c) && (i && !c.hasFormat("bold") && c.toggleFormat("bold"), o && !c.hasFormat("strikethrough") && c.toggleFormat("strikethrough"), a && !c.hasFormat("italic") && c.toggleFormat("italic"), s && !c.hasFormat("underline") && c.toggleFormat("underline"), l !== "sub" || c.hasFormat("subscript") || c.toggleFormat("subscript"), l !== "super" || c.hasFormat("superscript") || c.toggleFormat("superscript"), t && !c.hasFormat(t) && c.toggleFormat(t)), c); } class vd extends jc { static getType() { return "tab"; } static clone(t) { return new vd(t.__key); } afterCloneFrom(t) { super.afterCloneFrom(t), this.__text = t.__text; } constructor(t) { super(" ", t), this.__detail = 2; } static importDOM() { return null; } static importJSON(t) { const n = x_(); return n.setFormat(t.format), n.setStyle(t.style), n; } exportJSON() { return { ...super.exportJSON(), type: "tab", version: 1 }; } setTextContent(t) { _e(126); } setDetail(t) { _e(127); } setMode(t) { _e(128); } canInsertTextBefore() { return !1; } canInsertTextAfter() { return !1; } } function x_() { return $g(new vd()); } function vJ(e) { return e instanceof vd; } class bJ { constructor(t, n, r) { this._selection = null, this.key = t, this.offset = n, this.type = r; } is(t) { return this.key === t.key && this.offset === t.offset && this.type === t.type; } isBefore(t) { let n = this.getNode(), r = t.getNode(); const i = this.offset, o = t.offset; if (ve(n)) { const a = n.getDescendantByIndex(i); n = a ?? n; } if (ve(r)) { const a = r.getDescendantByIndex(o); r = a ?? r; } return n === r ? i < o : n.isBefore(r); } getNode() { const t = $n(this.key); return t === null && _e(20), t; } set(t, n, r) { const i = this._selection, o = this.key; this.key = t, this.offset = n, this.type = r, bd() || (Oa() === o && Gn(t), i !== null && (i.setCachedNodes(null), i.dirty = !0)); } } function Wa(e, t, n) { return new bJ(e, t, n); } function wb(e, t) { let n = t.__key, r = e.offset, i = "element"; if (Se(t)) { i = "text"; const o = t.getTextContentSize(); r > o && (r = o); } else if (!ve(t)) { const o = t.getNextSibling(); if (Se(o)) n = o.__key, r = 0, i = "text"; else { const a = t.getParent(); a && (n = a.__key, r = t.getIndexWithinParent() + 1); } } e.set(n, r, i); } function jC(e, t) { if (ve(t)) { const n = t.getLastDescendant(); ve(n) || Se(n) ? wb(e, n) : wb(e, t); } else wb(e, t); } function wa(e, t, n, r) { e.key = t, e.offset = n, e.type = r; } let x2 = class w2 { constructor(t) { this._cachedNodes = null, this._nodes = t, this.dirty = !1; } getCachedNodes() { return this._cachedNodes; } setCachedNodes(t) { this._cachedNodes = t; } is(t) { if (!Rg(t)) return !1; const n = this._nodes, r = t._nodes; return n.size === r.size && Array.from(n).every((i) => r.has(i)); } isCollapsed() { return !1; } isBackward() { return !1; } getStartEndPoints() { return null; } add(t) { this.dirty = !0, this._nodes.add(t), this._cachedNodes = null; } delete(t) { this.dirty = !0, this._nodes.delete(t), this._cachedNodes = null; } clear() { this.dirty = !0, this._nodes.clear(), this._cachedNodes = null; } has(t) { return this._nodes.has(t); } clone() { return new w2(new Set(this._nodes)); } extract() { return this.getNodes(); } insertRawText(t) { } insertText() { } insertNodes(t) { const n = this.getNodes(), r = n.length, i = n[r - 1]; let o; if (Se(i)) o = i.select(); else { const a = i.getIndexWithinParent() + 1; o = i.getParentOrThrow().select(a, a); } o.insertNodes(t); for (let a = 0; a < r; a++) n[a].remove(); } getNodes() { const t = this._cachedNodes; if (t !== null) return t; const n = this._nodes, r = []; for (const i of n) { const o = $n(i); o !== null && r.push(o); } return bd() || (this._cachedNodes = r), r; } getTextContent() { const t = this.getNodes(); let n = ""; for (let r = 0; r < t.length; r++) n += t[r].getTextContent(); return n; } }; function we(e) { return e instanceof qs; } class qs { constructor(t, n, r, i) { this.anchor = t, this.focus = n, t._selection = this, n._selection = this, this._cachedNodes = null, this.format = r, this.style = i, this.dirty = !1; } getCachedNodes() { return this._cachedNodes; } setCachedNodes(t) { this._cachedNodes = t; } is(t) { return !!we(t) && this.anchor.is(t.anchor) && this.focus.is(t.focus) && this.format === t.format && this.style === t.style; } isCollapsed() { return this.anchor.is(this.focus); } getNodes() { const t = this._cachedNodes; if (t !== null) return t; const n = this.anchor, r = this.focus, i = n.isBefore(r), o = i ? n : r, a = i ? r : n; let s = o.getNode(), l = a.getNode(); const c = o.offset, f = a.offset; if (ve(s)) { const p = s.getDescendantByIndex(c); s = p ?? s; } if (ve(l)) { let p = l.getDescendantByIndex(f); p !== null && p !== s && l.getChildAtIndex(f) === p && (p = p.getPreviousSibling()), l = p ?? l; } let d; return d = s.is(l) ? ve(s) && s.getChildrenSize() > 0 ? [] : [s] : s.getNodesBetween(l), bd() || (this._cachedNodes = d), d; } setTextNodeRange(t, n, r, i) { wa(this.anchor, t.__key, n, "text"), wa(this.focus, r.__key, i, "text"), this._cachedNodes = null, this.dirty = !0; } getTextContent() { const t = this.getNodes(); if (t.length === 0) return ""; const n = t[0], r = t[t.length - 1], i = this.anchor, o = this.focus, a = i.isBefore(o), [s, l] = rx(this); let c = "", f = !0; for (let d = 0; d < t.length; d++) { const p = t[d]; if (ve(p) && !p.isInline()) f || (c += ` `), f = !p.isEmpty(); else if (f = !1, Se(p)) { let m = p.getTextContent(); p === n ? p === r ? i.type === "element" && o.type === "element" && o.offset !== i.offset || (m = s < l ? m.slice(s, l) : m.slice(l, s)) : m = a ? m.slice(s) : m.slice(l) : p === r && (m = a ? m.slice(0, l) : m.slice(0, s)), c += m; } else !Ht(p) && !Ju(p) || p === r && this.isCollapsed() || (c += p.getTextContent()); } return c; } applyDOMRange(t) { const n = mn(), r = n.getEditorState()._selection, i = S2(t.startContainer, t.startOffset, t.endContainer, t.endOffset, n, r); if (i === null) return; const [o, a] = i; wa(this.anchor, o.key, o.offset, o.type), wa(this.focus, a.key, a.offset, a.type), this._cachedNodes = null; } clone() { const t = this.anchor, n = this.focus; return new qs(Wa(t.key, t.offset, t.type), Wa(n.key, n.offset, n.type), this.format, this.style); } toggleFormat(t) { this.format = V0(this.format, t, null), this.dirty = !0; } setStyle(t) { this.style = t, this.dirty = !0; } hasFormat(t) { const n = Io[t]; return !!(this.format & n); } insertRawText(t) { const n = t.split(/(\r?\n|\t)/), r = [], i = n.length; for (let o = 0; o < i; o++) { const a = n[o]; a === ` ` || a === `\r ` ? r.push(Af()) : a === " " ? r.push(x_()) : r.push(Vn(a)); } this.insertNodes(r); } insertText(t) { const n = this.anchor, r = this.focus, i = this.format, o = this.style; let a = n, s = r; !this.isCollapsed() && r.isBefore(n) && (a = r, s = n), a.type === "element" && function(v, x, w, S) { const A = v.getNode(), _ = A.getChildAtIndex(v.offset), O = Vn(), P = ur(A) ? Ro().append(O) : O; O.setFormat(w), O.setStyle(S), _ === null ? A.append(P) : _.insertBefore(P), v.is(x) && x.set(O.__key, 0, "text"), v.set(O.__key, 0, "text"); }(a, s, i, o); const l = a.offset; let c = s.offset; const f = this.getNodes(), d = f.length; let p = f[0]; Se(p) || _e(26); const m = p.getTextContent().length, y = p.getParentOrThrow(); let g = f[d - 1]; if (d === 1 && s.type === "element" && (c = m, s.set(a.key, c, "text")), this.isCollapsed() && l === m && (p.isSegmented() || p.isToken() || !p.canInsertTextAfter() || !y.canInsertTextAfter() && p.getNextSibling() === null)) { let v = p.getNextSibling(); if (Se(v) && v.canInsertTextBefore() && !Pl(v) || (v = Vn(), v.setFormat(i), v.setStyle(o), y.canInsertTextAfter() ? p.insertAfter(v) : y.insertAfter(v)), v.select(0, 0), p = v, t !== "") return void this.insertText(t); } else if (this.isCollapsed() && l === 0 && (p.isSegmented() || p.isToken() || !p.canInsertTextBefore() || !y.canInsertTextBefore() && p.getPreviousSibling() === null)) { let v = p.getPreviousSibling(); if (Se(v) && !Pl(v) || (v = Vn(), v.setFormat(i), y.canInsertTextBefore() ? p.insertBefore(v) : y.insertBefore(v)), v.select(), p = v, t !== "") return void this.insertText(t); } else if (p.isSegmented() && l !== m) { const v = Vn(p.getTextContent()); v.setFormat(i), p.replace(v), p = v; } else if (!this.isCollapsed() && t !== "") { const v = g.getParent(); if (!y.canInsertTextBefore() || !y.canInsertTextAfter() || ve(v) && (!v.canInsertTextBefore() || !v.canInsertTextAfter())) return this.insertText(""), _2(this.anchor, this.focus, null), void this.insertText(t); } if (d === 1) { if (p.isToken()) { const S = Vn(t); return S.select(), void p.replace(S); } const v = p.getFormat(), x = p.getStyle(); if (l !== c || v === i && x === o) { if (vJ(p)) { const S = Vn(t); return S.setFormat(i), S.setStyle(o), S.select(), void p.replace(S); } } else { if (p.getTextContent() !== "") { const S = Vn(t); if (S.setFormat(i), S.setStyle(o), S.select(), l === 0) p.insertBefore(S, !1); else { const [A] = p.splitText(l); A.insertAfter(S, !1); } return void (S.isComposing() && this.anchor.type === "text" && (this.anchor.offset -= t.length)); } p.setFormat(i), p.setStyle(o); } const w = c - l; p = p.spliceText(l, w, t, !0), p.getTextContent() === "" ? p.remove() : this.anchor.type === "text" && (p.isComposing() ? this.anchor.offset -= t.length : (this.format = v, this.style = x)); } else { const v = /* @__PURE__ */ new Set([...p.getParentKeys(), ...g.getParentKeys()]), x = ve(p) ? p : p.getParentOrThrow(); let w = ve(g) ? g : g.getParentOrThrow(), S = g; if (!x.is(w) && w.isInline()) do S = w, w = w.getParentOrThrow(); while (w.isInline()); if (s.type === "text" && (c !== 0 || g.getTextContent() === "") || s.type === "element" && g.getIndexWithinParent() < c) if (Se(g) && !g.isToken() && c !== g.getTextContentSize()) { if (g.isSegmented()) { const C = Vn(g.getTextContent()); g.replace(C), g = C; } ur(s.getNode()) || s.type !== "text" || (g = g.spliceText(0, c, "")), v.add(g.__key); } else { const C = g.getParentOrThrow(); C.canBeEmpty() || C.getChildrenSize() !== 1 ? g.remove() : C.remove(); } else v.add(g.__key); const A = w.getChildren(), _ = new Set(f), O = x.is(w), P = x.isInline() && p.getNextSibling() === null ? x : p; for (let C = A.length - 1; C >= 0; C--) { const k = A[C]; if (k.is(p) || ve(k) && k.isParentOf(p)) break; k.isAttached() && (!_.has(k) || k.is(S) ? O || P.insertAfter(k, !1) : k.remove()); } if (!O) { let C = w, k = null; for (; C !== null; ) { const I = C.getChildren(), $ = I.length; ($ === 0 || I[$ - 1].is(k)) && (v.delete(C.__key), k = C), C = C.getParent(); } } if (p.isToken()) if (l === m) p.select(); else { const C = Vn(t); C.select(), p.replace(C); } else p = p.spliceText(l, m - l, t, !0), p.getTextContent() === "" ? p.remove() : p.isComposing() && this.anchor.type === "text" && (this.anchor.offset -= t.length); for (let C = 1; C < d; C++) { const k = f[C], I = k.__key; v.has(I) || k.remove(); } } } removeText() { this.insertText(""); } formatText(t) { if (this.isCollapsed()) return this.toggleFormat(t), void Gn(null); const n = this.getNodes(), r = []; for (const w of n) Se(w) && r.push(w); const i = r.length; if (i === 0) return this.toggleFormat(t), void Gn(null); const o = this.anchor, a = this.focus, s = this.isBackward(), l = s ? a : o, c = s ? o : a; let f = 0, d = r[0], p = l.type === "element" ? 0 : l.offset; if (l.type === "text" && p === d.getTextContentSize() && (f = 1, d = r[1], p = 0), d == null) return; const m = d.getFormatFlags(t, null), y = i - 1; let g = r[y]; const v = c.type === "text" ? c.offset : g.getTextContentSize(); if (d.is(g)) { if (p === v) return; if (Pl(d) || p === 0 && v === d.getTextContentSize()) d.setFormat(m); else { const w = d.splitText(p, v), S = p === 0 ? w[0] : w[1]; S.setFormat(m), l.type === "text" && l.set(S.__key, 0, "text"), c.type === "text" && c.set(S.__key, v - p, "text"); } return void (this.format = m); } p === 0 || Pl(d) || ([, d] = d.splitText(p), p = 0), d.setFormat(m); const x = g.getFormatFlags(t, m); v > 0 && (v === g.getTextContentSize() || Pl(g) || ([g] = g.splitText(v)), g.setFormat(x)); for (let w = f + 1; w < y; w++) { const S = r[w], A = S.getFormatFlags(t, x); S.setFormat(A); } l.type === "text" && l.set(d.__key, p, "text"), c.type === "text" && c.set(g.__key, v, "text"), this.format = m | x; } insertNodes(t) { if (t.length === 0) return; if (this.anchor.key === "root") { this.insertParagraph(); const m = Ne(); return we(m) || _e(134), m.insertNodes(t); } const n = gb((this.isBackward() ? this.focus : this.anchor).getNode(), Cl), r = t[t.length - 1]; if ("__language" in n && ve(n)) { if ("__language" in t[0]) this.insertText(t[0].getTextContent()); else { const m = _b(this); n.splice(m, 0, t), r.selectEnd(); } return; } if (!t.some((m) => (ve(m) || Ht(m)) && !m.isInline())) { ve(n) || _e(135); const m = _b(this); return n.splice(m, 0, t), void r.selectEnd(); } const i = function(m) { const y = Ro(); let g = null; for (let v = 0; v < m.length; v++) { const x = m[v], w = Ju(x); if (w || Ht(x) && x.isInline() || ve(x) && x.isInline() || Se(x) || x.isParentRequired()) { if (g === null && (g = x.createParentElementNode(), y.append(g), w)) continue; g !== null && g.append(x); } else y.append(x), g = null; } return y; }(t), o = i.getLastDescendant(), a = i.getChildren(), s = !ve(n) || !n.isEmpty() ? this.insertParagraph() : null, l = a[a.length - 1]; let c = a[0]; var f; ve(f = c) && Cl(f) && !f.isEmpty() && ve(n) && (!n.isEmpty() || n.canMergeWhenEmpty()) && (ve(n) || _e(135), n.append(...c.getChildren()), c = a[1]), c && function(m, y, g) { const v = y.getParentOrThrow().getLastChild(); let x = y; const w = [y]; for (; x !== v; ) x.getNextSibling() || _e(140), x = x.getNextSibling(), w.push(x); let S = m; for (const A of w) S = S.insertAfter(A); }(n, c); const d = gb(o, Cl); s && ve(d) && (s.canMergeWhenEmpty() || Cl(l)) && (d.append(...s.getChildren()), s.remove()), ve(n) && n.isEmpty() && n.remove(), o.selectEnd(); const p = ve(n) ? n.getLastChild() : null; Ju(p) && d !== n && p.remove(); } insertParagraph() { if (this.anchor.key === "root") { const a = Ro(); return ir().splice(this.anchor.offset, 0, [a]), a.select(), a; } const t = _b(this), n = gb(this.anchor.getNode(), Cl); ve(n) || _e(136); const r = n.getChildAtIndex(t), i = r ? [r, ...r.getNextSiblings()] : [], o = n.insertNewAfter(this, !1); return o ? (o.append(...i), o.selectStart(), o) : null; } insertLineBreak(t) { const n = Af(); if (this.insertNodes([n]), t) { const r = n.getParentOrThrow(), i = n.getIndexWithinParent(); r.select(i, i); } } extract() { const t = this.getNodes(), n = t.length, r = n - 1, i = this.anchor, o = this.focus; let a = t[0], s = t[r]; const [l, c] = rx(this); if (n === 0) return []; if (n === 1) { if (Se(a) && !this.isCollapsed()) { const d = l > c ? c : l, p = l > c ? l : c, m = a.splitText(d, p), y = d === 0 ? m[0] : m[1]; return y != null ? [y] : []; } return [a]; } const f = i.isBefore(o); if (Se(a)) { const d = f ? l : c; d === a.getTextContentSize() ? t.shift() : d !== 0 && ([, a] = a.splitText(d), t[0] = a); } if (Se(s)) { const d = s.getTextContent().length, p = f ? c : l; p === 0 ? t.pop() : p !== d && ([s] = s.splitText(p), t[r] = s); } return t; } modify(t, n, r) { const i = this.focus, o = this.anchor, a = t === "move", s = U0(i, n); if (Ht(s) && !s.isIsolated()) { if (a && s.isKeyboardSelectable()) { const m = zC(); return m.add(s.__key), void Vo(m); } const p = n ? s.getPreviousSibling() : s.getNextSibling(); if (Se(p)) { const m = p.__key, y = n ? p.getTextContent().length : 0; return i.set(m, y, "text"), void (a && o.set(m, y, "text")); } { const m = s.getParentOrThrow(); let y, g; return ve(p) ? (g = p.__key, y = n ? p.getChildrenSize() : 0) : (y = s.getIndexWithinParent(), g = m.__key, n || y++), i.set(g, y, "element"), void (a && o.set(g, y, "element")); } } const l = mn(), c = no(l._window); if (!c) return; const f = l._blockCursorElement, d = l._rootElement; if (d === null || f === null || !ve(s) || s.isInline() || s.canBeEmpty() || y_(f, l, d), function(p, m, y, g) { p.modify(m, y, g); }(c, t, n ? "backward" : "forward", r), c.rangeCount > 0) { const p = c.getRangeAt(0), m = this.anchor.getNode(), y = ur(m) ? m : rJ(m); if (this.applyDOMRange(p), this.dirty = !0, !a) { const g = this.getNodes(), v = []; let x = !1; for (let w = 0; w < g.length; w++) { const S = g[w]; H0(S, y) ? v.push(S) : x = !0; } if (x && v.length > 0) if (n) { const w = v[0]; ve(w) ? w.selectStart() : w.getParentOrThrow().selectStart(); } else { const w = v[v.length - 1]; ve(w) ? w.selectEnd() : w.getParentOrThrow().selectEnd(); } c.anchorNode === p.startContainer && c.anchorOffset === p.startOffset || function(w) { const S = w.focus, A = w.anchor, _ = A.key, O = A.offset, P = A.type; wa(A, S.key, S.offset, S.type), wa(S, _, O, P), w._cachedNodes = null; }(this); } } } forwardDeletion(t, n, r) { if (!r && (t.type === "element" && ve(n) && t.offset === n.getChildrenSize() || t.type === "text" && t.offset === n.getTextContentSize())) { const i = n.getParent(), o = n.getNextSibling() || (i === null ? null : i.getNextSibling()); if (ve(o) && o.isShadowRoot()) return !0; } return !1; } deleteCharacter(t) { const n = this.isCollapsed(); if (this.isCollapsed()) { const r = this.anchor; let i = r.getNode(); if (this.forwardDeletion(r, i, t)) return; const o = this.focus, a = U0(o, t); if (Ht(a) && !a.isIsolated()) { if (a.isKeyboardSelectable() && ve(i) && i.getChildrenSize() === 0) { i.remove(); const s = zC(); s.add(a.__key), Vo(s); } else a.remove(), mn().dispatchCommand(G1, void 0); return; } if (!t && ve(a) && ve(i) && i.isEmpty()) return i.remove(), void a.selectStart(); if (this.modify("extend", t, "character"), this.isCollapsed()) { if (t && r.offset === 0 && (r.type === "element" ? r.getNode() : r.getNode().getParentOrThrow()).collapseAtStart(this)) return; } else { const s = o.type === "text" ? o.getNode() : null; if (i = r.type === "text" ? r.getNode() : null, s !== null && s.isSegmented()) { const l = o.offset, c = s.getTextContentSize(); if (s.is(i) || t && l !== c || !t && l !== 0) return void BC(s, t, l); } else if (i !== null && i.isSegmented()) { const l = r.offset, c = i.getTextContentSize(); if (i.is(s) || t && l !== 0 || !t && l !== c) return void BC(i, t, l); } (function(l, c) { const f = l.anchor, d = l.focus, p = f.getNode(), m = d.getNode(); if (p === m && f.type === "text" && d.type === "text") { const y = f.offset, g = d.offset, v = y < g, x = v ? y : g, w = v ? g : y, S = w - 1; x !== S && (QR(p.getTextContent().slice(x, w)) || (c ? d.offset = S : f.offset = S)); } })(this, t); } } if (this.removeText(), t && !n && this.isCollapsed() && this.anchor.type === "element" && this.anchor.offset === 0) { const r = this.anchor.getNode(); r.isEmpty() && ur(r.getParent()) && r.getIndexWithinParent() === 0 && r.collapseAtStart(this); } } deleteLine(t) { if (this.isCollapsed()) { const n = this.anchor.type === "element"; if (n && this.insertText(" "), this.modify("extend", t, "lineboundary"), (t ? this.focus : this.anchor).offset === 0 && this.modify("extend", t, "character"), n) { const r = t ? this.anchor : this.focus; r.set(r.key, r.offset + 1, r.type); } } this.removeText(); } deleteWord(t) { if (this.isCollapsed()) { const n = this.anchor, r = n.getNode(); if (this.forwardDeletion(n, r, t)) return; this.modify("extend", t, "word"); } this.removeText(); } isBackward() { return this.focus.isBefore(this.anchor); } getStartEndPoints() { return [this.anchor, this.focus]; } } function Rg(e) { return e instanceof x2; } function LC(e) { const t = e.offset; if (e.type === "text") return t; const n = e.getNode(); return t === n.getChildrenSize() ? n.getTextContent().length : 0; } function rx(e) { const t = e.getStartEndPoints(); if (t === null) return [0, 0]; const [n, r] = t; return n.type === "element" && r.type === "element" && n.key === r.key && n.offset === r.offset ? [0, 0] : [LC(n), LC(r)]; } function BC(e, t, n) { const r = e, i = r.getTextContent().split(/(?=\s)/g), o = i.length; let a = 0, s = 0; for (let c = 0; c < o; c++) { const f = c === o - 1; if (s = a, a += i[c].length, t && a === n || a > n || f) { i.splice(c, 1), f && (s = void 0); break; } } const l = i.join("").trim(); l === "" ? r.remove() : (r.setTextContent(l), r.select(s, s)); } function FC(e, t, n, r) { let i, o = t; if (e.nodeType === md) { let a = !1; const s = e.childNodes, l = s.length, c = r._blockCursorElement; o === l && (a = !0, o = l - 1); let f = s[o], d = !1; if (f === c) f = s[o + 1], d = !0; else if (c !== null) { const p = c.parentNode; e === p && t > Array.prototype.indexOf.call(p.children, c) && o--; } if (i = jl(f), Se(i)) o = wC(i, a); else { let p = jl(e); if (p === null) return null; if (ve(p)) { o = Math.min(p.getChildrenSize(), o); let m = p.getChildAtIndex(o); if (ve(m) && function(y, g, v) { const x = y.getParent(); return v === null || x === null || !x.canBeEmpty() || x !== v.getNode(); }(m, 0, n)) { const y = a ? m.getLastDescendant() : m.getFirstDescendant(); y === null ? p = m : (m = y, p = ve(m) ? m : m.getParentOrThrow()), o = 0; } Se(m) ? (i = m, p = null, o = wC(m, a)) : m !== p && a && !d && o++; } else { const m = p.getIndexWithinParent(); o = t === 0 && Ht(p) && jl(e) === p ? m : m + 1, p = p.getParentOrThrow(); } if (ve(p)) return Wa(p.__key, o, "element"); } } else i = jl(e); return Se(i) ? Wa(i.__key, o, "text") : null; } function WC(e, t, n) { const r = e.offset, i = e.getNode(); if (r === 0) { const o = i.getPreviousSibling(), a = i.getParent(); if (t) { if ((n || !t) && o === null && ve(a) && a.isInline()) { const s = a.getPreviousSibling(); Se(s) && (e.key = s.__key, e.offset = s.getTextContent().length); } } else ve(o) && !n && o.isInline() ? (e.key = o.__key, e.offset = o.getChildrenSize(), e.type = "element") : Se(o) && (e.key = o.__key, e.offset = o.getTextContent().length); } else if (r === i.getTextContent().length) { const o = i.getNextSibling(), a = i.getParent(); if (t && ve(o) && o.isInline()) e.key = o.__key, e.offset = 0, e.type = "element"; else if ((n || t) && o === null && ve(a) && a.isInline() && !a.canInsertTextAfter()) { const s = a.getNextSibling(); Se(s) && (e.key = s.__key, e.offset = 0); } } } function _2(e, t, n) { if (e.type === "text" && t.type === "text") { const r = e.isBefore(t), i = e.is(t); WC(e, r, i), WC(t, !r, i), i && (t.key = e.key, t.offset = e.offset, t.type = e.type); const o = mn(); if (o.isComposing() && o._compositionKey !== e.key && we(n)) { const a = n.anchor, s = n.focus; wa(e, a.key, a.offset, a.type), wa(t, s.key, s.offset, s.type); } } } function S2(e, t, n, r, i, o) { if (e === null || n === null || !Pg(i, e, n)) return null; const a = FC(e, t, we(o) ? o.anchor : null, i); if (a === null) return null; const s = FC(n, r, we(o) ? o.focus : null, i); if (s === null) return null; if (a.type === "element" && s.type === "element") { const l = jl(e), c = jl(n); if (Ht(l) && Ht(c)) return null; } return _2(a, s, o), [a, s]; } function O2(e, t, n, r, i, o) { const a = qo(), s = new qs(Wa(e, t, i), Wa(n, r, o), 0, ""); return s.dirty = !0, a._selection = s, s; } function zC() { return new x2(/* @__PURE__ */ new Set()); } function w_(e, t, n, r) { const i = n._window; if (i === null) return null; const o = r || i.event, a = o ? o.type : void 0, s = a === "selectionchange", l = !z0 && (s || a === "beforeinput" || a === "compositionstart" || a === "compositionend" || a === "click" && o && o.detail === 3 || a === "drop" || a === void 0); let c, f, d, p; if (we(e) && !l) return e.clone(); if (t === null) return null; if (c = t.anchorNode, f = t.focusNode, d = t.anchorOffset, p = t.focusOffset, s && we(e) && !Pg(n, c, f)) return e.clone(); const m = S2(c, d, f, p, n, e); if (m === null) return null; const [y, g] = m; return new qs(y, g, we(e) ? e.format : 0, we(e) ? e.style : ""); } function Ne() { return qo()._selection; } function jg() { return mn()._editorState._selection; } function Vp(e, t, n, r = 1) { const i = e.anchor, o = e.focus, a = i.getNode(), s = o.getNode(); if (!t.is(a) && !t.is(s)) return; const l = t.__key; if (e.isCollapsed()) { const c = i.offset; if (n <= c && r > 0 || n < c && r < 0) { const f = Math.max(0, c + r); i.set(l, f, "element"), o.set(l, f, "element"), VC(e); } } else { const c = e.isBackward(), f = c ? o : i, d = f.getNode(), p = c ? i : o, m = p.getNode(); if (t.is(d)) { const y = f.offset; (n <= y && r > 0 || n < y && r < 0) && f.set(l, Math.max(0, y + r), "element"); } if (t.is(m)) { const y = p.offset; (n <= y && r > 0 || n < y && r < 0) && p.set(l, Math.max(0, y + r), "element"); } } VC(e); } function VC(e) { const t = e.anchor, n = t.offset, r = e.focus, i = r.offset, o = t.getNode(), a = r.getNode(); if (e.isCollapsed()) { if (!ve(o)) return; const s = o.getChildrenSize(), l = n >= s, c = l ? o.getChildAtIndex(s - 1) : o.getChildAtIndex(n); if (Se(c)) { let f = 0; l && (f = c.getTextContentSize()), t.set(c.__key, f, "text"), r.set(c.__key, f, "text"); } } else { if (ve(o)) { const s = o.getChildrenSize(), l = n >= s, c = l ? o.getChildAtIndex(s - 1) : o.getChildAtIndex(n); if (Se(c)) { let f = 0; l && (f = c.getTextContentSize()), t.set(c.__key, f, "text"); } } if (ve(a)) { const s = a.getChildrenSize(), l = i >= s, c = l ? a.getChildAtIndex(s - 1) : a.getChildAtIndex(i); if (Se(c)) { let f = 0; l && (f = c.getTextContentSize()), r.set(c.__key, f, "text"); } } } } function Up(e, t, n, r, i) { let o = null, a = 0, s = null; r !== null ? (o = r.__key, Se(r) ? (a = r.getTextContentSize(), s = "text") : ve(r) && (a = r.getChildrenSize(), s = "element")) : i !== null && (o = i.__key, Se(i) ? s = "text" : ve(i) && (s = "element")), o !== null && s !== null ? e.set(o, a, s) : (a = t.getIndexWithinParent(), a === -1 && (a = n.getChildrenSize()), e.set(n.__key, a, "element")); } function UC(e, t, n, r, i) { e.type === "text" ? (e.key = n, t || (e.offset += i)) : e.offset > r.getIndexWithinParent() && (e.offset -= 1); } function xJ(e, t, n, r, i, o, a) { const s = r.anchorNode, l = r.focusNode, c = r.anchorOffset, f = r.focusOffset, d = document.activeElement; if (i.has("collaboration") && d !== o || d !== null && YR(d)) return; if (!we(t)) return void (e !== null && Pg(n, s, l) && r.removeAllRanges()); const p = t.anchor, m = t.focus, y = p.key, g = m.key, v = Lp(n, y), x = Lp(n, g), w = p.offset, S = m.offset, A = t.format, _ = t.style, O = t.isCollapsed(); let P = v, C = x, k = !1; if (p.type === "text") { P = Rp(v); const F = p.getNode(); k = F.getFormat() !== A || F.getStyle() !== _; } else we(e) && e.anchor.type === "text" && (k = !0); var I, $, N, D, j; if (m.type === "text" && (C = Rp(x)), P !== null && C !== null && (O && (e === null || k || we(e) && (e.format !== A || e.style !== _)) && (I = A, $ = _, N = w, D = y, j = performance.now(), h2 = [I, $, N, D, j]), c !== w || f !== S || s !== P || l !== C || r.type === "Range" && O || (d !== null && o.contains(d) || o.focus({ preventScroll: !0 }), p.type === "element"))) { try { r.setBaseAndExtent(P, w, C, S); } catch { } if (!i.has("skip-scroll-into-view") && t.isCollapsed() && o !== null && o === document.activeElement) { const F = t instanceof qs && t.anchor.type === "element" ? P.childNodes[w] || null : r.rangeCount > 0 ? r.getRangeAt(0) : null; if (F !== null) { let W; if (F instanceof Text) { const z = document.createRange(); z.selectNode(F), W = z.getBoundingClientRect(); } else W = F.getBoundingClientRect(); (function(z, H, U) { const V = U.ownerDocument, Y = V.defaultView; if (Y === null) return; let { top: Q, bottom: ne } = H, re = 0, ce = 0, oe = U; for (; oe !== null; ) { const fe = oe === V.body; if (fe) re = 0, ce = Ng(z).innerHeight; else { const ee = oe.getBoundingClientRect(); re = ee.top, ce = ee.bottom; } let ae = 0; if (Q < re ? ae = -(re - Q) : ne > ce && (ae = ne - ce), ae !== 0) if (fe) Y.scrollBy(0, ae); else { const ee = oe.scrollTop; oe.scrollTop += ae; const se = oe.scrollTop - ee; Q -= se, ne -= se; } if (fe) break; oe = Mg(oe); } })(n, W, o); } } ex = !0; } } function _b(e) { let t = e; e.isCollapsed() || t.removeText(); const n = Ne(); we(n) && (t = n), we(t) || _e(161); const r = t.anchor; let i = r.getNode(), o = r.offset; for (; !Cl(i); ) [i, o] = wJ(i, o); return o; } function wJ(e, t) { const n = e.getParent(); if (!n) { const i = Ro(); return ir().append(i), i.select(), [ir(), 0]; } if (Se(e)) { const i = e.splitText(t); if (i.length === 0) return [n, e.getIndexWithinParent()]; const o = t === 0 ? 0 : 1; return [n, i[0].getIndexWithinParent() + o]; } if (!ve(e) || t === 0) return [n, e.getIndexWithinParent()]; const r = e.getChildAtIndex(t); if (r) { const i = new qs(Wa(e.__key, t, "element"), Wa(e.__key, t, "element"), 0, ""), o = e.insertNewAfter(i); o && o.append(r, ...r.getNextSiblings()); } return [n, e.getIndexWithinParent() + 1]; } let Dn = null, In = null, Ar = !1, Sb = !1, fp = 0; const HC = { characterData: !0, childList: !0, subtree: !0 }; function bd() { return Ar || Dn !== null && Dn._readOnly; } function wr() { Ar && _e(13); } function A2() { fp > 99 && _e(14); } function qo() { return Dn === null && _e(195, T2()), Dn; } function mn() { return In === null && _e(196, T2()), In; } function T2() { let e = 0; const t = /* @__PURE__ */ new Set(), n = Fg.version; if (typeof window < "u") for (const i of document.querySelectorAll("[contenteditable]")) { const o = Cg(i); if (d_(o)) e++; else if (o) { let a = String(o.constructor.version || "<0.17.1"); a === n && (a += " (separately built, likely a bundler configuration issue)"), t.add(a); } } let r = ` Detected on the page: ${e} compatible editor(s) with version ${n}`; return t.size && (r += ` and incompatible editors with versions ${Array.from(t).join(", ")}`), r; } function _J() { return In; } function KC(e, t, n) { const r = t.__type, i = function(s, l) { const c = s._nodes.get(l); return c === void 0 && _e(30, l), c; }(e, r); let o = n.get(r); o === void 0 && (o = Array.from(i.transforms), n.set(r, o)); const a = o.length; for (let s = 0; s < a && (o[s](t), t.isAttached()); s++) ; } function GC(e, t) { return e !== void 0 && e.__key !== t && e.isAttached(); } function P2(e, t) { const n = e.type, r = t.get(n); r === void 0 && _e(17, n); const i = r.klass; e.type !== i.getType() && _e(18, i.name); const o = i.importJSON(e), a = e.children; if (ve(o) && Array.isArray(a)) for (let s = 0; s < a.length; s++) { const l = P2(a[s], t); o.append(l); } return o; } function YC(e, t, n) { const r = Dn, i = Ar, o = In; Dn = t, Ar = !0, In = e; try { return n(); } finally { Dn = r, Ar = i, In = o; } } function Aa(e, t) { const n = e._pendingEditorState, r = e._rootElement, i = e._headless || r === null; if (n === null) return; const o = e._editorState, a = o._selection, s = n._selection, l = e._dirtyType !== Ls, c = Dn, f = Ar, d = In, p = e._updating, m = e._observer; let y = null; if (e._pendingEditorState = null, e._editorState = n, !i && l && m !== null) { In = e, Dn = n, Ar = !1, e._updating = !0; try { const O = e._dirtyType, P = e._dirtyElements, C = e._dirtyLeaves; m.disconnect(), y = uJ(o, n, e, O, P, C); } catch (O) { if (O instanceof Error && e._onError(O), Sb) throw O; return N2(e, null, r, n), GR(e), e._dirtyType = nc, Sb = !0, Aa(e, o), void (Sb = !1); } finally { m.observe(r, HC), e._updating = p, Dn = c, Ar = f, In = d; } } n._readOnly || (n._readOnly = !0); const g = e._dirtyLeaves, v = e._dirtyElements, x = e._normalizedNodes, w = e._updateTags, S = e._deferred; l && (e._dirtyType = Ls, e._cloneNotNeeded.clear(), e._dirtyLeaves = /* @__PURE__ */ new Set(), e._dirtyElements = /* @__PURE__ */ new Map(), e._normalizedNodes = /* @__PURE__ */ new Set(), e._updateTags = /* @__PURE__ */ new Set()), function(O, P) { const C = O._decorators; let k = O._pendingDecorators || C; const I = P._nodeMap; let $; for ($ in k) I.has($) || (k === C && (k = ZR(O)), delete k[$]); }(e, n); const A = i ? null : no(e._window); if (e._editable && A !== null && (l || s === null || s.dirty)) { In = e, Dn = n; try { if (m !== null && m.disconnect(), l || s === null || s.dirty) { const O = e._blockCursorElement; O !== null && y_(O, e, r), xJ(a, s, e, A, w, r); } iJ(e, r, s), m !== null && m.observe(r, HC); } finally { In = d, Dn = c; } } y !== null && function(O, P, C, k, I) { const $ = Array.from(O._listeners.mutation), N = $.length; for (let D = 0; D < N; D++) { const [j, F] = $[D], W = P.get(F); W !== void 0 && j(W, { dirtyLeaves: k, prevEditorState: I, updateTags: C }); } }(e, y, w, g, o), we(s) || s === null || a !== null && a.is(s) || e.dispatchCommand(G1, void 0); const _ = e._pendingDecorators; _ !== null && (e._decorators = _, e._pendingDecorators = null, Qu("decorator", e, !0, _)), function(O, P, C) { const k = xC(P), I = xC(C); k !== I && Qu("textcontent", O, !0, I); }(e, t || o, n), Qu("update", e, !0, { dirtyElements: v, dirtyLeaves: g, editorState: n, normalizedNodes: x, prevEditorState: t || o, tags: w }), function(O, P) { if (O._deferred = [], P.length !== 0) { const C = O._updating; O._updating = !0; try { for (let k = 0; k < P.length; k++) P[k](); } finally { O._updating = C; } } }(e, S), function(O) { const P = O._updates; if (P.length !== 0) { const C = P.shift(); if (C) { const [k, I] = C; E2(O, k, I); } } }(e); } function Qu(e, t, n, ...r) { const i = t._updating; t._updating = n; try { const o = Array.from(t._listeners[e]); for (let a = 0; a < o.length; a++) o[a].apply(null, r); } finally { t._updating = i; } } function C2(e, t, n) { if (e._updating === !1 || In !== e) { let i = !1; return e.update(() => { i = C2(e, t, n); }), i; } const r = h_(e); for (let i = 4; i >= 0; i--) for (let o = 0; o < r.length; o++) { const a = r[o]._commands.get(t); if (a !== void 0) { const s = a[i]; if (s !== void 0) { const l = Array.from(s), c = l.length; for (let f = 0; f < c; f++) if (l[f](n, e) === !0) return !0; } } } return !1; } function qC(e, t) { const n = e._updates; let r = t || !1; for (; n.length !== 0; ) { const i = n.shift(); if (i) { const [o, a] = i; let s, l; if (a !== void 0) { if (s = a.onUpdate, l = a.tag, a.skipTransforms && (r = !0), a.discrete) { const c = e._pendingEditorState; c === null && _e(191), c._flushSync = !0; } s && e._deferred.push(s), l && e._updateTags.add(l); } o(); } } return r; } function E2(e, t, n) { const r = e._updateTags; let i, o, a = !1, s = !1; n !== void 0 && (i = n.onUpdate, o = n.tag, o != null && r.add(o), a = n.skipTransforms || !1, s = n.discrete || !1), i && e._deferred.push(i); const l = e._editorState; let c = e._pendingEditorState, f = !1; (c === null || c._readOnly) && (c = e._pendingEditorState = new Bg(new Map((c || l)._nodeMap)), f = !0), c._flushSync = s; const d = Dn, p = Ar, m = In, y = e._updating; Dn = c, Ar = !1, e._updating = !0, In = e; try { f && (e._headless ? l._selection !== null && (c._selection = l._selection.clone()) : c._selection = function(w) { const S = w.getEditorState()._selection, A = no(w._window); return we(S) || S == null ? w_(S, A, w, null) : S.clone(); }(e)); const v = e._compositionKey; t(), a = qC(e, a), function(w, S) { const A = S.getEditorState()._selection, _ = w._selection; if (we(_)) { const O = _.anchor, P = _.focus; let C; if (O.type === "text" && (C = O.getNode(), C.selectionTransform(A, _)), P.type === "text") { const k = P.getNode(); C !== k && k.selectionTransform(A, _); } } }(c, e), e._dirtyType !== Ls && (a ? function(w, S) { const A = S._dirtyLeaves, _ = w._nodeMap; for (const O of A) { const P = _.get(O); Se(P) && P.isAttached() && P.isSimpleText() && !P.isUnmergeable() && vC(P); } }(c, e) : function(w, S) { const A = S._dirtyLeaves, _ = S._dirtyElements, O = w._nodeMap, P = Oa(), C = /* @__PURE__ */ new Map(); let k = A, I = k.size, $ = _, N = $.size; for (; I > 0 || N > 0; ) { if (I > 0) { S._dirtyLeaves = /* @__PURE__ */ new Set(); for (const D of k) { const j = O.get(D); Se(j) && j.isAttached() && j.isSimpleText() && !j.isUnmergeable() && vC(j), j !== void 0 && GC(j, P) && KC(S, j, C), A.add(D); } if (k = S._dirtyLeaves, I = k.size, I > 0) { fp++; continue; } } S._dirtyLeaves = /* @__PURE__ */ new Set(), S._dirtyElements = /* @__PURE__ */ new Map(); for (const D of $) { const j = D[0], F = D[1]; if (j !== "root" && !F) continue; const W = O.get(j); W !== void 0 && GC(W, P) && KC(S, W, C), _.set(j, F); } k = S._dirtyLeaves, I = k.size, $ = S._dirtyElements, N = $.size, fp++; } S._dirtyLeaves = A, S._dirtyElements = _; }(c, e), qC(e), function(w, S, A, _) { const O = w._nodeMap, P = S._nodeMap, C = []; for (const [k] of _) { const I = P.get(k); I !== void 0 && (I.isAttached() || (ve(I) && i2(I, k, O, P, C, _), O.has(k) || _.delete(k), C.push(k))); } for (const k of C) P.delete(k); for (const k of A) { const I = P.get(k); I === void 0 || I.isAttached() || (O.has(k) || A.delete(k), P.delete(k)); } }(l, c, e._dirtyLeaves, e._dirtyElements)), v !== e._compositionKey && (c._flushSync = !0); const x = c._selection; if (we(x)) { const w = c._nodeMap, S = x.anchor.key, A = x.focus.key; w.get(S) !== void 0 && w.get(A) !== void 0 || _e(19); } else Rg(x) && x._nodes.size === 0 && (c._selection = null); } catch (v) { return v instanceof Error && e._onError(v), e._pendingEditorState = l, e._dirtyType = nc, e._cloneNotNeeded.clear(), e._dirtyLeaves = /* @__PURE__ */ new Set(), e._dirtyElements.clear(), void Aa(e); } finally { Dn = d, Ar = p, In = m, e._updating = y, fp = 0; } e._dirtyType !== Ls || function(v, x) { const w = x.getEditorState()._selection, S = v._selection; if (S !== null) { if (S.dirty || !S.is(w)) return !0; } else if (w !== null) return !0; return !1; }(c, e) ? c._flushSync ? (c._flushSync = !1, Aa(e)) : f && JZ(() => { Aa(e); }) : (c._flushSync = !1, f && (r.clear(), e._deferred = [], e._pendingEditorState = null)); } function Fr(e, t, n) { e._updating ? e._updates.push([t, n]) : E2(e, t, n); } class Lg extends Ig { constructor(t) { super(t), this.__first = null, this.__last = null, this.__size = 0, this.__format = 0, this.__style = "", this.__indent = 0, this.__dir = null; } afterCloneFrom(t) { super.afterCloneFrom(t), this.__first = t.__first, this.__last = t.__last, this.__size = t.__size, this.__indent = t.__indent, this.__format = t.__format, this.__style = t.__style, this.__dir = t.__dir; } getFormat() { return this.getLatest().__format; } getFormatType() { const t = this.getFormat(); return zZ[t] || ""; } getStyle() { return this.getLatest().__style; } getIndent() { return this.getLatest().__indent; } getChildren() { const t = []; let n = this.getFirstChild(); for (; n !== null; ) t.push(n), n = n.getNextSibling(); return t; } getChildrenKeys() { const t = []; let n = this.getFirstChild(); for (; n !== null; ) t.push(n.__key), n = n.getNextSibling(); return t; } getChildrenSize() { return this.getLatest().__size; } isEmpty() { return this.getChildrenSize() === 0; } isDirty() { const t = mn()._dirtyElements; return t !== null && t.has(this.__key); } isLastChild() { const t = this.getLatest(), n = this.getParentOrThrow().getLastChild(); return n !== null && n.is(t); } getAllTextNodes() { const t = []; let n = this.getFirstChild(); for (; n !== null; ) { if (Se(n) && t.push(n), ve(n)) { const r = n.getAllTextNodes(); t.push(...r); } n = n.getNextSibling(); } return t; } getFirstDescendant() { let t = this.getFirstChild(); for (; ve(t); ) { const n = t.getFirstChild(); if (n === null) break; t = n; } return t; } getLastDescendant() { let t = this.getLastChild(); for (; ve(t); ) { const n = t.getLastChild(); if (n === null) break; t = n; } return t; } getDescendantByIndex(t) { const n = this.getChildren(), r = n.length; if (t >= r) { const o = n[r - 1]; return ve(o) && o.getLastDescendant() || o || null; } const i = n[t]; return ve(i) && i.getFirstDescendant() || i || null; } getFirstChild() { const t = this.getLatest().__first; return t === null ? null : $n(t); } getFirstChildOrThrow() { const t = this.getFirstChild(); return t === null && _e(45, this.__key), t; } getLastChild() { const t = this.getLatest().__last; return t === null ? null : $n(t); } getLastChildOrThrow() { const t = this.getLastChild(); return t === null && _e(96, this.__key), t; } getChildAtIndex(t) { const n = this.getChildrenSize(); let r, i; if (t < n / 2) { for (r = this.getFirstChild(), i = 0; r !== null && i <= t; ) { if (i === t) return r; r = r.getNextSibling(), i++; } return null; } for (r = this.getLastChild(), i = n - 1; r !== null && i >= t; ) { if (i === t) return r; r = r.getPreviousSibling(), i--; } return null; } getTextContent() { let t = ""; const n = this.getChildren(), r = n.length; for (let i = 0; i < r; i++) { const o = n[i]; t += o.getTextContent(), ve(o) && i !== r - 1 && !o.isInline() && (t += zo); } return t; } getTextContentSize() { let t = 0; const n = this.getChildren(), r = n.length; for (let i = 0; i < r; i++) { const o = n[i]; t += o.getTextContentSize(), ve(o) && i !== r - 1 && !o.isInline() && (t += zo.length); } return t; } getDirection() { return this.getLatest().__dir; } hasFormat(t) { if (t !== "") { const n = mC[t]; return !!(this.getFormat() & n); } return !1; } select(t, n) { wr(); const r = Ne(); let i = t, o = n; const a = this.getChildrenSize(); if (!this.canBeEmpty()) { if (t === 0 && n === 0) { const l = this.getFirstChild(); if (Se(l) || ve(l)) return l.select(0, 0); } else if (!(t !== void 0 && t !== a || n !== void 0 && n !== a)) { const l = this.getLastChild(); if (Se(l) || ve(l)) return l.select(); } } i === void 0 && (i = a), o === void 0 && (o = a); const s = this.__key; return we(r) ? (r.anchor.set(s, i, "element"), r.focus.set(s, o, "element"), r.dirty = !0, r) : O2(s, i, s, o, "element", "element"); } selectStart() { const t = this.getFirstDescendant(); return t ? t.selectStart() : this.select(); } selectEnd() { const t = this.getLastDescendant(); return t ? t.selectEnd() : this.select(); } clear() { const t = this.getWritable(); return this.getChildren().forEach((n) => n.remove()), t; } append(...t) { return this.splice(this.getChildrenSize(), 0, t); } setDirection(t) { const n = this.getWritable(); return n.__dir = t, n; } setFormat(t) { return this.getWritable().__format = t !== "" ? mC[t] : 0, this; } setStyle(t) { return this.getWritable().__style = t || "", this; } setIndent(t) { return this.getWritable().__indent = t, this; } splice(t, n, r) { const i = r.length, o = this.getChildrenSize(), a = this.getWritable(), s = a.__key, l = [], c = [], f = this.getChildAtIndex(t + n); let d = null, p = o - n + i; if (t !== 0) if (t === o) d = this.getLastChild(); else { const y = this.getChildAtIndex(t); y !== null && (d = y.getPreviousSibling()); } if (n > 0) { let y = d === null ? this.getFirstChild() : d.getNextSibling(); for (let g = 0; g < n; g++) { y === null && _e(100); const v = y.getNextSibling(), x = y.__key; Ms(y.getWritable()), c.push(x), y = v; } } let m = d; for (let y = 0; y < i; y++) { const g = r[y]; m !== null && g.is(m) && (d = m = m.getPreviousSibling()); const v = g.getWritable(); v.__parent === s && p--, Ms(v); const x = g.__key; if (m === null) a.__first = x, v.__prev = null; else { const w = m.getWritable(); w.__next = x, v.__prev = w.__key; } g.__key === s && _e(76), v.__parent = s, l.push(x), m = g; } if (t + n === o) m !== null && (m.getWritable().__next = null, a.__last = m.__key); else if (f !== null) { const y = f.getWritable(); if (m !== null) { const g = m.getWritable(); y.__prev = m.__key, g.__next = f.__key; } else y.__prev = null; } if (a.__size = p, c.length) { const y = Ne(); if (we(y)) { const g = new Set(c), v = new Set(l), { anchor: x, focus: w } = y; XC(x, g, v) && Up(x, x.getNode(), this, d, f), XC(w, g, v) && Up(w, w.getNode(), this, d, f), p !== 0 || this.canBeEmpty() || gd(this) || this.remove(); } } return a; } exportJSON() { return { children: [], direction: this.getDirection(), format: this.getFormatType(), indent: this.getIndent(), type: "element", version: 1 }; } insertNewAfter(t, n) { return null; } canIndent() { return !0; } collapseAtStart(t) { return !1; } excludeFromCopy(t) { return !1; } canReplaceWith(t) { return !0; } canInsertAfter(t) { return !0; } canBeEmpty() { return !0; } canInsertTextBefore() { return !0; } canInsertTextAfter() { return !0; } isInline() { return !1; } isShadowRoot() { return !1; } canMergeWith(t) { return !1; } extractWithChild(t, n, r) { return !1; } canMergeWhenEmpty() { return !1; } } function ve(e) { return e instanceof Lg; } function XC(e, t, n) { let r = e.getNode(); for (; r; ) { const i = r.__key; if (t.has(i) && !n.has(i)) return !0; r = r.getParent(); } return !1; } class k2 extends Ig { constructor(t) { super(t); } decorate(t, n) { _e(47); } isIsolated() { return !1; } isInline() { return !0; } isKeyboardSelectable() { return !0; } } function Ht(e) { return e instanceof k2; } class xd extends Lg { static getType() { return "root"; } static clone() { return new xd(); } constructor() { super("root"), this.__cachedText = null; } getTopLevelElementOrThrow() { _e(51); } getTextContent() { const t = this.__cachedText; return !bd() && mn()._dirtyType !== Ls || t === null ? super.getTextContent() : t; } remove() { _e(52); } replace(t) { _e(53); } insertBefore(t) { _e(54); } insertAfter(t) { _e(55); } updateDOM(t, n) { return !1; } append(...t) { for (let n = 0; n < t.length; n++) { const r = t[n]; ve(r) || Ht(r) || _e(56); } return super.append(...t); } static importJSON(t) { const n = ir(); return n.setFormat(t.format), n.setIndent(t.indent), n.setDirection(t.direction), n; } exportJSON() { return { children: [], direction: this.getDirection(), format: this.getFormatType(), indent: this.getIndent(), type: "root", version: 1 }; } collapseAtStart() { return !0; } } function ur(e) { return e instanceof xd; } function __() { return new Bg(/* @__PURE__ */ new Map([["root", new xd()]])); } function M2(e) { const t = e.exportJSON(), n = e.constructor; if (t.type !== n.getType() && _e(130, n.name), ve(e)) { const r = t.children; Array.isArray(r) || _e(59, n.name); const i = e.getChildren(); for (let o = 0; o < i.length; o++) { const a = M2(i[o]); r.push(a); } } return t; } class Bg { constructor(t, n) { this._nodeMap = t, this._selection = n || null, this._flushSync = !1, this._readOnly = !1; } isEmpty() { return this._nodeMap.size === 1 && this._selection === null; } read(t, n) { return YC(n && n.editor || null, this, t); } clone(t) { const n = new Bg(this._nodeMap, t === void 0 ? this._selection : t); return n._readOnly = !0, n; } toJSON() { return YC(null, this, () => ({ root: M2(ir()) })); } } class SJ extends Lg { static getType() { return "artificial"; } createDOM(t) { return document.createElement("div"); } } class Lc extends Lg { constructor(t) { super(t), this.__textFormat = 0, this.__textStyle = ""; } static getType() { return "paragraph"; } getTextFormat() { return this.getLatest().__textFormat; } setTextFormat(t) { const n = this.getWritable(); return n.__textFormat = t, n; } hasTextFormat(t) { const n = Io[t]; return !!(this.getTextFormat() & n); } getTextStyle() { return this.getLatest().__textStyle; } setTextStyle(t) { const n = this.getWritable(); return n.__textStyle = t, n; } static clone(t) { return new Lc(t.__key); } afterCloneFrom(t) { super.afterCloneFrom(t), this.__textFormat = t.__textFormat, this.__textStyle = t.__textStyle; } createDOM(t) { const n = document.createElement("p"), r = qu(t.theme, "paragraph"); return r !== void 0 && n.classList.add(...r), n; } updateDOM(t, n, r) { return !1; } static importDOM() { return { p: (t) => ({ conversion: OJ, priority: 0 }) }; } exportDOM(t) { const { element: n } = super.exportDOM(t); if (n && v_(n)) { this.isEmpty() && n.append(document.createElement("br")); const r = this.getFormatType(); n.style.textAlign = r; const i = this.getDirection(); i && (n.dir = i); const o = this.getIndent(); o > 0 && (n.style.textIndent = 20 * o + "px"); } return { element: n }; } static importJSON(t) { const n = Ro(); return n.setFormat(t.format), n.setIndent(t.indent), n.setDirection(t.direction), n.setTextFormat(t.textFormat), n; } exportJSON() { return { ...super.exportJSON(), textFormat: this.getTextFormat(), textStyle: this.getTextStyle(), type: "paragraph", version: 1 }; } insertNewAfter(t, n) { const r = Ro(); r.setTextFormat(t.format), r.setTextStyle(t.style); const i = this.getDirection(); return r.setDirection(i), r.setFormat(this.getFormatType()), r.setStyle(this.getTextStyle()), this.insertAfter(r, n), r; } collapseAtStart() { const t = this.getChildren(); if (t.length === 0 || Se(t[0]) && t[0].getTextContent().trim() === "") { if (this.getNextSibling() !== null) return this.selectNext(), this.remove(), !0; if (this.getPreviousSibling() !== null) return this.selectPrevious(), this.remove(), !0; } return !1; } } function OJ(e) { const t = Ro(); if (e.style) { t.setFormat(e.style.textAlign); const n = parseInt(e.style.textIndent, 10) / 20; n > 0 && t.setIndent(n); } return { node: t }; } function Ro() { return $g(new Lc()); } function ix(e) { return e instanceof Lc; } const nn = 0, rc = 1; function N2(e, t, n, r) { const i = e._keyToDOMMap; i.clear(), e._editorState = __(), e._pendingEditorState = r, e._compositionKey = null, e._dirtyType = Ls, e._cloneNotNeeded.clear(), e._dirtyLeaves = /* @__PURE__ */ new Set(), e._dirtyElements.clear(), e._normalizedNodes = /* @__PURE__ */ new Set(), e._updateTags = /* @__PURE__ */ new Set(), e._updates = [], e._blockCursorElement = null; const o = e._observer; o !== null && (o.disconnect(), e._observer = null), t !== null && (t.textContent = ""), n !== null && (n.textContent = "", i.set("root", n)); } function AJ(e) { const t = e || {}, n = _J(), r = t.theme || {}, i = e === void 0 ? n : t.parentEditor || null, o = t.disableEvents || !1, a = __(), s = t.namespace || (i !== null ? i._config.namespace : e2()), l = t.editorState, c = [xd, jc, yd, vd, Lc, SJ, ...t.nodes || []], { onError: f, html: d } = t, p = t.editable === void 0 || t.editable; let m; if (e === void 0 && n !== null) m = n._nodes; else { m = /* @__PURE__ */ new Map(); for (let g = 0; g < c.length; g++) { let v = c[g], x = null, w = null; if (typeof v != "function") { const O = v; v = O.replace, x = O.with, w = O.withKlass || null; } const S = v.getType(), A = v.transform(), _ = /* @__PURE__ */ new Set(); A !== null && _.add(A), m.set(S, { exportDOM: d && d.export ? d.export.get(v) : void 0, klass: v, replace: x, replaceWithKlass: w, transforms: _ }); } } const y = new Fg(a, i, m, { disableEvents: o, namespace: s, theme: r }, f || console.error, function(g, v) { const x = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Set(), S = (A) => { Object.keys(A).forEach((_) => { let O = x.get(_); O === void 0 && (O = [], x.set(_, O)), O.push(A[_]); }); }; return g.forEach((A) => { const _ = A.klass.importDOM; if (_ == null || w.has(_)) return; w.add(_); const O = _.call(A.klass); O !== null && S(O); }), v && S(v), x; }(m, d ? d.import : void 0), p); return l !== void 0 && (y._pendingEditorState = l, y._dirtyType = nc), y; } class Fg { constructor(t, n, r, i, o, a, s) { this._parentEditor = n, this._rootElement = null, this._editorState = t, this._pendingEditorState = null, this._compositionKey = null, this._deferred = [], this._keyToDOMMap = /* @__PURE__ */ new Map(), this._updates = [], this._updating = !1, this._listeners = { decorator: /* @__PURE__ */ new Set(), editable: /* @__PURE__ */ new Set(), mutation: /* @__PURE__ */ new Map(), root: /* @__PURE__ */ new Set(), textcontent: /* @__PURE__ */ new Set(), update: /* @__PURE__ */ new Set() }, this._commands = /* @__PURE__ */ new Map(), this._config = i, this._nodes = r, this._decorators = {}, this._pendingDecorators = null, this._dirtyType = Ls, this._cloneNotNeeded = /* @__PURE__ */ new Set(), this._dirtyLeaves = /* @__PURE__ */ new Set(), this._dirtyElements = /* @__PURE__ */ new Map(), this._normalizedNodes = /* @__PURE__ */ new Set(), this._updateTags = /* @__PURE__ */ new Set(), this._observer = null, this._key = e2(), this._onError = o, this._htmlConversions = a, this._editable = s, this._headless = n !== null && n._headless, this._window = null, this._blockCursorElement = null; } isComposing() { return this._compositionKey != null; } registerUpdateListener(t) { const n = this._listeners.update; return n.add(t), () => { n.delete(t); }; } registerEditableListener(t) { const n = this._listeners.editable; return n.add(t), () => { n.delete(t); }; } registerDecoratorListener(t) { const n = this._listeners.decorator; return n.add(t), () => { n.delete(t); }; } registerTextContentListener(t) { const n = this._listeners.textcontent; return n.add(t), () => { n.delete(t); }; } registerRootListener(t) { const n = this._listeners.root; return t(this._rootElement, null), n.add(t), () => { t(null, this._rootElement), n.delete(t); }; } registerCommand(t, n, r) { r === void 0 && _e(35); const i = this._commands; i.has(t) || i.set(t, [/* @__PURE__ */ new Set(), /* @__PURE__ */ new Set(), /* @__PURE__ */ new Set(), /* @__PURE__ */ new Set(), /* @__PURE__ */ new Set()]); const o = i.get(t); o === void 0 && _e(36, String(t)); const a = o[r]; return a.add(n), () => { a.delete(n), o.every((s) => s.size === 0) && i.delete(t); }; } registerMutationListener(t, n, r) { const i = this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(t)).klass, o = this._listeners.mutation; o.set(n, i); const a = r && r.skipInitialization; return a === void 0 || a || this.initializeMutationListener(n, i), () => { o.delete(n); }; } getRegisteredNode(t) { const n = this._nodes.get(t.getType()); return n === void 0 && _e(37, t.name), n; } resolveRegisteredNodeAfterReplacements(t) { for (; t.replaceWithKlass; ) t = this.getRegisteredNode(t.replaceWithKlass); return t; } initializeMutationListener(t, n) { const r = this._editorState, i = sJ(r).get(n.getType()); if (!i) return; const o = /* @__PURE__ */ new Map(); for (const a of i.keys()) o.set(a, "created"); o.size > 0 && t(o, { dirtyLeaves: /* @__PURE__ */ new Set(), prevEditorState: r, updateTags: /* @__PURE__ */ new Set(["registerMutationListener"]) }); } registerNodeTransformToKlass(t, n) { const r = this.getRegisteredNode(t); return r.transforms.add(n), r; } registerNodeTransform(t, n) { const r = this.registerNodeTransformToKlass(t, n), i = [r], o = r.replaceWithKlass; if (o != null) { const l = this.registerNodeTransformToKlass(o, n); i.push(l); } var a, s; return a = this, s = t.getType(), Fr(a, () => { const l = qo(); if (l.isEmpty()) return; if (s === "root") return void ir().markDirty(); const c = l._nodeMap; for (const [, f] of c) f.markDirty(); }, a._pendingEditorState === null ? { tag: "history-merge" } : void 0), () => { i.forEach((l) => l.transforms.delete(n)); }; } hasNode(t) { return this._nodes.has(t.getType()); } hasNodes(t) { return t.every(this.hasNode.bind(this)); } dispatchCommand(t, n) { return Ae(this, t, n); } getDecorators() { return this._decorators; } getRootElement() { return this._rootElement; } getKey() { return this._key; } setRootElement(t) { const n = this._rootElement; if (t !== n) { const r = qu(this._config.theme, "root"), i = this._pendingEditorState || this._editorState; if (this._rootElement = t, N2(this, n, t, i), n !== null && (this._config.disableEvents || fJ(n), r != null && n.classList.remove(...r)), t !== null) { const o = function(s) { const l = s.ownerDocument; return l && l.defaultView || null; }(t), a = t.style; a.userSelect = "text", a.whiteSpace = "pre-wrap", a.wordBreak = "break-word", t.setAttribute("data-lexical-editor", "true"), this._window = o, this._dirtyType = nc, GR(this), this._updateTags.add("history-merge"), Aa(this), this._config.disableEvents || function(s, l) { const c = s.ownerDocument, f = zp.get(c); (f === void 0 || f < 1) && c.addEventListener("selectionchange", y2), zp.set(c, (f || 0) + 1), s.__lexicalEditor = l; const d = g2(s); for (let p = 0; p < Q0.length; p++) { const [m, y] = Q0[p], g = typeof y == "function" ? (v) => { $C(v) || (NC(v), (l.isEditable() || m === "click") && y(v, l)); } : (v) => { if ($C(v)) return; NC(v); const x = l.isEditable(); switch (m) { case "cut": return x && Ae(l, t_, v); case "copy": return Ae(l, e_, v); case "paste": return x && Ae(l, Y1, v); case "dragstart": return x && Ae(l, FR, v); case "dragover": return x && Ae(l, OZ, v); case "dragend": return x && Ae(l, AZ, v); case "focus": return x && Ae(l, CZ, v); case "blur": return x && Ae(l, EZ, v); case "drop": return x && Ae(l, BR, v); } }; s.addEventListener(m, g), d.push(() => { s.removeEventListener(m, g); }); } }(t, this), r != null && t.classList.add(...r); } else this._editorState = i, this._pendingEditorState = null, this._window = null; Qu("root", this, !1, t, n); } } getElementByKey(t) { return this._keyToDOMMap.get(t) || null; } getEditorState() { return this._editorState; } setEditorState(t, n) { t.isEmpty() && _e(38), KR(this); const r = this._pendingEditorState, i = this._updateTags, o = n !== void 0 ? n.tag : null; r === null || r.isEmpty() || (o != null && i.add(o), Aa(this)), this._pendingEditorState = t, this._dirtyType = nc, this._dirtyElements.set("root", !1), this._compositionKey = null, o != null && i.add(o), Aa(this); } parseEditorState(t, n) { return function(r, i, o) { const a = __(), s = Dn, l = Ar, c = In, f = i._dirtyElements, d = i._dirtyLeaves, p = i._cloneNotNeeded, m = i._dirtyType; i._dirtyElements = /* @__PURE__ */ new Map(), i._dirtyLeaves = /* @__PURE__ */ new Set(), i._cloneNotNeeded = /* @__PURE__ */ new Set(), i._dirtyType = 0, Dn = a, Ar = !1, In = i; try { const y = i._nodes; P2(r.root, y), o && o(), a._readOnly = !0; } catch (y) { y instanceof Error && i._onError(y); } finally { i._dirtyElements = f, i._dirtyLeaves = d, i._cloneNotNeeded = p, i._dirtyType = m, Dn = s, Ar = l, In = c; } return a; }(typeof t == "string" ? JSON.parse(t) : t, this, n); } read(t) { return Aa(this), this.getEditorState().read(t, { editor: this }); } update(t, n) { Fr(this, t, n); } focus(t, n = {}) { const r = this._rootElement; r !== null && (r.setAttribute("autocapitalize", "off"), Fr(this, () => { const i = Ne(), o = ir(); i !== null ? i.dirty = !0 : o.getChildrenSize() !== 0 && (n.defaultSelection === "rootStart" ? o.selectStart() : o.selectEnd()); }, { onUpdate: () => { r.removeAttribute("autocapitalize"), t && t(); }, tag: "focus" }), this._pendingEditorState === null && r.removeAttribute("autocapitalize")); } blur() { const t = this._rootElement; t !== null && t.blur(); const n = no(this._window); n !== null && n.removeAllRanges(); } isEditable() { return this._editable; } setEditable(t) { this._editable !== t && (this._editable = t, Qu("editable", this, !0, t)); } toJSON() { return { editorState: this._editorState.toJSON() }; } } Fg.version = "0.17.1+prod.esm"; const $2 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, TJ = $2 ? react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_1__.useEffect, Fh = { tag: "history-merge" }; function PJ({ initialConfig: e, children: t }) { const n = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => { const { theme: r, namespace: i, nodes: o, onError: a, editorState: s, html: l } = e, c = yZ(null, r), f = AJ({ editable: e.editable, html: l, namespace: i, nodes: o, onError: (d) => a(d, f), theme: r }); return function(d, p) { if (p !== null) { if (p === void 0) d.update(() => { const m = ir(); if (m.isEmpty()) { const y = Ro(); m.append(y); const g = $2 ? document.activeElement : null; (Ne() !== null || g !== null && g === d.getRootElement()) && y.select(); } }, Fh); else if (p !== null) switch (typeof p) { case "string": { const m = d.parseEditorState(p); d.setEditorState(m, Fh); break; } case "object": d.setEditorState(p, Fh); break; case "function": d.update(() => { ir().isEmpty() && p(d); }, Fh); } } }(f, s), [f, c]; }, []); return TJ(() => { const r = e.editable, [i] = n; i.setEditable(r === void 0 || r); }, []), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(NR.Provider, { value: n, children: t }); } const CJ = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_1__.useEffect; function EJ(e) { return { initialValueFn: () => e.isEditable(), subscribe: (t) => e.registerEditableListener(t) }; } function kJ() { return function(e) { const [t] = Gr(), n = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => e(t), [t, e]), r = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(n.initialValueFn()), [i, o] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(r.current); return CJ(() => { const { initialValueFn: a, subscribe: s } = n, l = a(); return r.current !== l && (r.current = l, o(l)), s((c) => { r.current = c, o(c); }); }, [n, e]), i; }(EJ); } function MJ() { return ir().getTextContent(); } function NJ(e, t = !0) { if (e) return !1; let n = MJ(); return t && (n = n.trim()), n === ""; } function $J(e) { if (!NJ(e, !1)) return !1; const t = ir().getChildren(), n = t.length; if (n > 1) return !1; for (let r = 0; r < n; r++) { const i = t[r]; if (Ht(i)) return !1; if (ve(i)) { if (!ix(i) || i.__indent !== 0) return !1; const o = i.getChildren(), a = o.length; for (let s = 0; s < a; s++) { const l = o[r]; if (!Se(l)) return !1; } } } return !0; } function D2(e) { return () => $J(e); } function DJ(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } DJ(function(e) { const t = new URLSearchParams(); t.append("code", e); for (let n = 1; n < arguments.length; n++) t.append("v", arguments[n]); throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`); }); function IJ(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } IJ(function(e) { const t = new URLSearchParams(); t.append("code", e); for (let n = 1; n < arguments.length; n++) t.append("v", arguments[n]); throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`); }); function RJ(e, t) { const n = e.getStartEndPoints(); if (t.isSelected(e) && !t.isSegmented() && !t.isToken() && n !== null) { const [r, i] = n, o = e.isBackward(), a = r.getNode(), s = i.getNode(), l = t.is(a), c = t.is(s); if (l || c) { const [f, d] = rx(e), p = a.is(s), m = t.is(o ? s : a), y = t.is(o ? a : s); let g, v = 0; return p ? (v = f > d ? d : f, g = f > d ? f : d) : m ? (v = o ? d : f, g = void 0) : y && (v = 0, g = o ? f : d), t.__text = t.__text.slice(v, g), t; } } return t; } function ZC(e, t) { const n = U0(e.focus, t); return Ht(n) && !n.isIsolated() || ve(n) && !n.isInline() && !n.canBeEmpty(); } function jJ(e, t, n, r) { e.modify(t ? "extend" : "move", n, r); } function LJ(e) { const t = e.anchor.getNode(); return (ur(t) ? t : t.getParentOrThrow()).getDirection() === "rtl"; } function JC(e, t, n) { const r = LJ(e); jJ(e, t, n ? !r : r, "character"); } function BJ(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } BJ(function(e) { const t = new URLSearchParams(); t.append("code", e); for (let n = 1; n < arguments.length; n++) t.append("v", arguments[n]); throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`); }); const I2 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, FJ = I2 && "documentMode" in document ? document.documentMode : null; !(!I2 || !("InputEvent" in window) || FJ) && "getTargetRanges" in new window.InputEvent("input"); function Uo(...e) { return () => { for (let t = e.length - 1; t >= 0; t--) e[t](); e.length = 0; }; } function WJ(e, t) { return e !== null && Object.getPrototypeOf(e).constructor.name === t.name; } function zJ(e) { const t = window.location.origin, n = (r) => { if (r.origin !== t) return; const i = e.getRootElement(); if (document.activeElement !== i) return; const o = r.data; if (typeof o == "string") { let a; try { a = JSON.parse(o); } catch { return; } if (a && a.protocol === "nuanria_messaging" && a.type === "request") { const s = a.payload; if (s && s.functionId === "makeChanges") { const l = s.args; if (l) { const [c, f, d, p, m, y] = l; e.update(() => { const g = Ne(); if (we(g)) { const v = g.anchor; let x = v.getNode(), w = 0, S = 0; if (Se(x) && c >= 0 && f >= 0 && (w = c, S = c + f, g.setTextNodeRange(x, w, x, S)), w === S && d === "" || (g.insertRawText(d), x = v.getNode()), Se(x)) { w = p, S = p + m; const A = x.getTextContentSize(); w = w > A ? A : w, S = S > A ? A : S, g.setTextNodeRange(x, w, x, S); } r.stopImmediatePropagation(); } }); } } } } }; return window.addEventListener("message", n, !0), () => { window.removeEventListener("message", n, !0); }; } function VJ(e, t) { if (typeof document > "u" || typeof window > "u" && global.window === void 0) throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function."); const n = document.createElement("div"), r = ir().getChildren(); for (let i = 0; i < r.length; i++) R2(e, r[i], n, t); return n.innerHTML; } function R2(e, t, n, r = null) { let i = r === null || t.isSelected(r); const o = ve(t) && t.excludeFromCopy("html"); let a = t; if (r !== null) { let m = r2(t); m = Se(m) && r !== null ? RJ(r, m) : m, a = m; } const s = ve(a) ? a.getChildren() : [], l = e._nodes.get(a.getType()); let c; c = l && l.exportDOM !== void 0 ? l.exportDOM(e, a) : a.exportDOM(e); const { element: f, after: d } = c; if (!f) return !1; const p = document.createDocumentFragment(); for (let m = 0; m < s.length; m++) { const y = s[m], g = R2(e, y, p, r); !i && ve(t) && g && t.extractWithChild(y, r, "html") && (i = !0); } if (i && !o) { if (v_(f) && f.append(p), n.append(f), d) { const m = d.call(a, f); m && f.replaceWith(m); } } else n.append(p); return i; } function UJ(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var HJ = UJ(function(e) { const t = new URLSearchParams(); t.append("code", e); for (let n = 1; n < arguments.length; n++) t.append("v", arguments[n]); throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`); }); function KJ(e, t = Ne()) { return t == null && HJ(166), we(t) && t.isCollapsed() || t.getNodes().length === 0 ? "" : VJ(e, t); } function QC(e, t) { const n = e.getData("text/plain") || e.getData("text/uri-list"); n != null && t.insertRawText(n); } const Bc = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, GJ = Bc && "documentMode" in document ? document.documentMode : null, YJ = !(!Bc || !("InputEvent" in window) || GJ) && "getTargetRanges" in new window.InputEvent("input"), qJ = Bc && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), XJ = Bc && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, ZJ = Bc && /^(?=.*Chrome).*/i.test(navigator.userAgent), JJ = Bc && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !ZJ; function eE(e, t) { t.update(() => { if (e !== null) { const n = WJ(e, KeyboardEvent) ? null : e.clipboardData, r = Ne(); if (r !== null && n != null) { e.preventDefault(); const i = KJ(t); i !== null && n.setData("text/html", i), n.setData("text/plain", r.getTextContent()); } } }); } function QJ(e) { return Uo(e.registerCommand(ks, (t) => { const n = Ne(); return !!we(n) && (n.deleteCharacter(t), !0); }, nn), e.registerCommand(bf, (t) => { const n = Ne(); return !!we(n) && (n.deleteWord(t), !0); }, nn), e.registerCommand(xf, (t) => { const n = Ne(); return !!we(n) && (n.deleteLine(t), !0); }, nn), e.registerCommand(Kl, (t) => { const n = Ne(); if (!we(n)) return !1; if (typeof t == "string") n.insertText(t); else { const r = t.dataTransfer; if (r != null) QC(r, n); else { const i = t.data; i && n.insertText(i); } } return !0; }, nn), e.registerCommand(F0, () => { const t = Ne(); return !!we(t) && (t.removeText(), !0); }, nn), e.registerCommand(Hl, (t) => { const n = Ne(); return !!we(n) && (n.insertLineBreak(t), !0); }, nn), e.registerCommand(B0, () => { const t = Ne(); return !!we(t) && (t.insertLineBreak(), !0); }, nn), e.registerCommand(J1, (t) => { const n = Ne(); if (!we(n)) return !1; const r = t, i = r.shiftKey; return !!ZC(n, !0) && (r.preventDefault(), JC(n, i, !0), !0); }, nn), e.registerCommand(Z1, (t) => { const n = Ne(); if (!we(n)) return !1; const r = t, i = r.shiftKey; return !!ZC(n, !1) && (r.preventDefault(), JC(n, i, !1), !0); }, nn), e.registerCommand(Q1, (t) => { const n = Ne(); return !!we(n) && (t.preventDefault(), e.dispatchCommand(ks, !0)); }, nn), e.registerCommand(jR, (t) => { const n = Ne(); return !!we(n) && (t.preventDefault(), e.dispatchCommand(ks, !1)); }, nn), e.registerCommand(wf, (t) => { const n = Ne(); if (!we(n)) return !1; if (t !== null) { if ((XJ || qJ || JJ) && YJ) return !1; t.preventDefault(); } return e.dispatchCommand(Hl, !1); }, nn), e.registerCommand(W0, () => (nJ(), !0), nn), e.registerCommand(e_, (t) => { const n = Ne(); return !!we(n) && (eE(t, e), !0); }, nn), e.registerCommand(t_, (t) => { const n = Ne(); return !!we(n) && (function(r, i) { eE(r, i), i.update(() => { const o = Ne(); we(o) && o.removeText(); }); }(t, e), !0); }, nn), e.registerCommand(Y1, (t) => { const n = Ne(); return !!we(n) && (function(r, i) { r.preventDefault(), i.update(() => { const o = Ne(), { clipboardData: a } = r; a != null && we(o) && QC(a, o); }, { tag: "paste" }); }(t, e), !0); }, nn), e.registerCommand(BR, (t) => { const n = Ne(); return !!we(n) && (t.preventDefault(), !0); }, nn), e.registerCommand(FR, (t) => { const n = Ne(); return !!we(n) && (t.preventDefault(), !0); }, nn)); } const ox = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_1__.useEffect; function tE(e) { return e.getEditorState().read(D2(e.isComposing())); } function eQ({ contentEditable: e, placeholder: t = null, ErrorBoundary: n }) { const [r] = Gr(), i = function(o, a) { const [s, l] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(() => o.getDecorators()); return ox(() => o.registerDecoratorListener((c) => { (0,react_dom__WEBPACK_IMPORTED_MODULE_2__.flushSync)(() => { l(c); }); }), [o]), (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { l(o.getDecorators()); }, [o]), (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => { const c = [], f = Object.keys(s); for (let d = 0; d < f.length; d++) { const p = f[d], m = (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(a, { onError: (g) => o._onError(g), children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react__WEBPACK_IMPORTED_MODULE_1__.Suspense, { fallback: null, children: s[p] }) }), y = o.getElementByKey(p); y !== null && c.push((0,react_dom__WEBPACK_IMPORTED_MODULE_2__.createPortal)(m, y, p)); } return c; }, [a, s, o]); }(r, n); return function(o) { ox(() => Uo(QJ(o), zJ(o)), [o]); }(r), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: [e, (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(tQ, { content: t }), i] }); } function tQ({ content: e }) { const [t] = Gr(), n = function(i) { const [o, a] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(() => tE(i)); return ox(() => { function s() { const l = tE(i); a(l); } return s(), Uo(i.registerUpdateListener(() => { s(); }), i.registerEditableListener(() => { s(); })); }, [i]), o; }(t), r = kJ(); return n ? typeof e == "function" ? e(r) : e : null; } const j2 = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_1__.useEffect; function nQ({ editor: e, ariaActiveDescendant: t, ariaAutoComplete: n, ariaControls: r, ariaDescribedBy: i, ariaExpanded: o, ariaLabel: a, ariaLabelledBy: s, ariaMultiline: l, ariaOwns: c, ariaRequired: f, autoCapitalize: d, className: p, id: m, role: y = "textbox", spellCheck: g = !0, style: v, tabIndex: x, "data-testid": w, ...S }, A) { const [_, O] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(e.isEditable()), P = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((k) => { k && k.ownerDocument && k.ownerDocument.defaultView ? e.setRootElement(k) : e.setRootElement(null); }, [e]), C = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => /* @__PURE__ */ function(...k) { return (I) => { k.forEach(($) => { typeof $ == "function" ? $(I) : $ != null && ($.current = I); }); }; }(A, P), [P, A]); return j2(() => (O(e.isEditable()), e.registerEditableListener((k) => { O(k); })), [e]), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { ...S, "aria-activedescendant": _ ? t : void 0, "aria-autocomplete": _ ? n : "none", "aria-controls": _ ? r : void 0, "aria-describedby": i, "aria-expanded": _ && y === "combobox" ? !!o : void 0, "aria-label": a, "aria-labelledby": s, "aria-multiline": l, "aria-owns": _ ? c : void 0, "aria-readonly": !_ || void 0, "aria-required": f, autoCapitalize: d, className: p, contentEditable: _, "data-testid": w, id: m, ref: C, role: _ ? y : void 0, spellCheck: g, style: v, tabIndex: x }); } const rQ = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(nQ); function nE(e) { return e.getEditorState().read(D2(e.isComposing())); } const iQ = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(oQ); function oQ(e, t) { const { placeholder: n, ...r } = e, [i] = Gr(); return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(rQ, { editor: i, ...r, ref: t }), n != null && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(aQ, { editor: i, content: n })] }); } function aQ({ content: e, editor: t }) { const n = function(a) { const [s, l] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(() => nE(a)); return j2(() => { function c() { const f = nE(a); l(f); } return c(), Uo(a.registerUpdateListener(() => { c(); }), a.registerEditableListener(() => { c(); })); }, [a]), s; }(t), [r, i] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(t.isEditable()); if ((0,react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect)(() => (i(t.isEditable()), t.registerEditableListener((a) => { i(a); })), [t]), !n) return null; let o = null; return typeof e == "function" ? o = e(r) : e !== null && (o = e), o === null ? null : (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { "aria-hidden": !0, children: o }); } const Wh = 0, ax = 1, sx = 2, Oi = 0, sQ = 1, rE = 2, lQ = 3, cQ = 4; function uQ(e, t, n, r, i) { if (e === null || n.size === 0 && r.size === 0 && !i) return Oi; const o = t._selection, a = e._selection; if (i) return sQ; if (!(we(o) && we(a) && a.isCollapsed() && o.isCollapsed())) return Oi; const s = function(x, w, S) { const A = x._nodeMap, _ = []; for (const O of w) { const P = A.get(O); P !== void 0 && _.push(P); } for (const [O, P] of S) { if (!P) continue; const C = A.get(O); C === void 0 || ur(C) || _.push(C); } return _; }(t, n, r); if (s.length === 0) return Oi; if (s.length > 1) { const x = t._nodeMap, w = x.get(o.anchor.key), S = x.get(a.anchor.key); return w && S && !e._nodeMap.has(w.__key) && Se(w) && w.__text.length === 1 && o.anchor.offset === 1 ? rE : Oi; } const l = s[0], c = e._nodeMap.get(l.__key); if (!Se(c) || !Se(l) || c.__mode !== l.__mode) return Oi; const f = c.__text, d = l.__text; if (f === d) return Oi; const p = o.anchor, m = a.anchor; if (p.key !== m.key || p.type !== "text") return Oi; const y = p.offset, g = m.offset, v = d.length - f.length; return v === 1 && g === y - 1 ? rE : v === -1 && g === y + 1 ? lQ : v === -1 && g === y ? cQ : Oi; } function fQ(e, t) { let n = Date.now(), r = Oi; return (i, o, a, s, l, c) => { const f = Date.now(); if (c.has("historic")) return r = Oi, n = f, sx; const d = uQ(i, o, s, l, e.isComposing()), p = (() => { const m = a === null || a.editor === e, y = c.has("history-push"); if (!y && m && c.has("history-merge")) return Wh; if (i === null) return ax; const g = o._selection; return s.size > 0 || l.size > 0 ? y === !1 && d !== Oi && d === r && f < n + t && m || s.size === 1 && function(v, x, w) { const S = x._nodeMap.get(v), A = w._nodeMap.get(v), _ = x._selection, O = w._selection; return !(we(_) && we(O) && _.anchor.type === "element" && _.focus.type === "element" && O.anchor.type === "text" && O.focus.type === "text" || !Se(S) || !Se(A) || S.__parent !== A.__parent) && JSON.stringify(x.read(() => S.exportJSON())) === JSON.stringify(w.read(() => A.exportJSON())); }(Array.from(s)[0], i, o) ? Wh : ax : g !== null ? Wh : sx; })(); return n = f, r = d, p; }; } function iE(e) { e.undoStack = [], e.redoStack = [], e.current = null; } function dQ(e, t, n) { const r = fQ(e, n); return Uo(e.registerCommand(q1, () => (function(o, a) { const s = a.redoStack, l = a.undoStack; if (l.length !== 0) { const c = a.current, f = l.pop(); c !== null && (s.push(c), o.dispatchCommand(Rh, !0)), l.length === 0 && o.dispatchCommand(jh, !1), a.current = f || null, f && f.editor.setEditorState(f.editorState, { tag: "historic" }); } }(e, t), !0), nn), e.registerCommand(X1, () => (function(o, a) { const s = a.redoStack, l = a.undoStack; if (s.length !== 0) { const c = a.current; c !== null && (l.push(c), o.dispatchCommand(jh, !0)); const f = s.pop(); s.length === 0 && o.dispatchCommand(Rh, !1), a.current = f || null, f && f.editor.setEditorState(f.editorState, { tag: "historic" }); } }(e, t), !0), nn), e.registerCommand(TZ, () => (iE(t), !1), nn), e.registerCommand(PZ, () => (iE(t), e.dispatchCommand(Rh, !1), e.dispatchCommand(jh, !1), !0), nn), e.registerUpdateListener(({ editorState: o, prevEditorState: a, dirtyLeaves: s, dirtyElements: l, tags: c }) => { const f = t.current, d = t.redoStack, p = t.undoStack, m = f === null ? null : f.editorState; if (f !== null && o === m) return; const y = r(a, o, f, s, l, c); if (y === ax) d.length !== 0 && (t.redoStack = [], e.dispatchCommand(Rh, !1)), f !== null && (p.push({ ...f }), e.dispatchCommand(jh, !0)); else if (y === sx) return; t.current = { editor: e, editorState: o }; })); } function hQ() { return { current: null, redoStack: [], undoStack: [] }; } function pQ({ delay: e, externalHistoryState: t }) { const [n] = Gr(); return function(r, i, o = 1e3) { const a = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => i || hQ(), [i]); (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => dQ(r, a, o), [o, r, a]); }(n, t, e), null; } function lx(e, t) { return lx = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) { return n.__proto__ = r, n; }, lx(e, t); } var oE = { error: null }, mQ = function(e) { var t, n; function r() { for (var o, a = arguments.length, s = new Array(a), l = 0; l < a; l++) s[l] = arguments[l]; return (o = e.call.apply(e, [this].concat(s)) || this).state = oE, o.resetErrorBoundary = function() { for (var c, f = arguments.length, d = new Array(f), p = 0; p < f; p++) d[p] = arguments[p]; o.props.onReset == null || (c = o.props).onReset.apply(c, d), o.reset(); }, o; } n = e, (t = r).prototype = Object.create(n.prototype), t.prototype.constructor = t, lx(t, n), r.getDerivedStateFromError = function(o) { return { error: o }; }; var i = r.prototype; return i.reset = function() { this.setState(oE); }, i.componentDidCatch = function(o, a) { var s, l; (s = (l = this.props).onError) == null || s.call(l, o, a); }, i.componentDidUpdate = function(o, a) { var s, l, c, f, d = this.state.error, p = this.props.resetKeys; d !== null && a.error !== null && ((c = o.resetKeys) === void 0 && (c = []), (f = p) === void 0 && (f = []), c.length !== f.length || c.some(function(m, y) { return !Object.is(m, f[y]); })) && ((s = (l = this.props).onResetKeysChange) == null || s.call(l, o.resetKeys, p), this.reset()); }, i.render = function() { var o = this.state.error, a = this.props, s = a.fallbackRender, l = a.FallbackComponent, c = a.fallback; if (o !== null) { var f = { error: o, resetErrorBoundary: this.resetErrorBoundary }; if (react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(c)) return c; if (typeof s == "function") return s(f); if (l) return react__WEBPACK_IMPORTED_MODULE_1__.createElement(l, f); throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop"); } return this.props.children; }, r; }(react__WEBPACK_IMPORTED_MODULE_1__.Component); function gQ({ children: e, onError: t }) { return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(mQ, { fallback: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { style: { border: "1px solid #f00", color: "#f00", padding: "8px" }, children: "An error was thrown." }), onError: t, children: e }); } const yQ = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_1__.useEffect; function vQ({ ignoreHistoryMergeTagChange: e = !0, ignoreSelectionChange: t = !1, onChange: n }) { const [r] = Gr(); return yQ(() => { if (n) return r.registerUpdateListener(({ editorState: i, dirtyElements: o, dirtyLeaves: a, prevEditorState: s, tags: l }) => { t && o.size === 0 && a.size === 0 || e && l.has("history-merge") || s.isEmpty() || n(i, r, l); }); }, [r, e, t, n]), null; } function bQ({ editorRef: e }) { const [t] = Gr(); return react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { typeof e == "function" ? e(t) : typeof e == "object" && (e.current = t); }, [t]), null; } const xQ = "w-full [&>p]:w-full [&>p]:m-0", wQ = "focus-within:ring-2 focus-within:ring-offset-2 hover:outline-border-strong hover:focus-within:outline-focus-border focus-within:outline-focus-border focus-within:ring-focus transition-[color,outline,box-shadow] duration-150 ease-in-out outline outline-1 outline-field-border", _Q = "bg-field-secondary-background outline-field-border-disabled hover:outline-field-border-disabled [&_p]:text-badge-color-disabled cursor-not-allowed", SQ = { sm: "px-3 py-1.5 rounded [&_.editor-content>p]:text-xs [&_.editor-content>p]:font-normal [&_.pointer-events-none]:text-xs [&_.pointer-events-none]:font-normal [&_.editor-content>p]:content-center [&_.editor-content>p]:min-h-5", md: "px-3.5 py-2 rounded-md [&_.editor-content>p]:text-sm [&_.editor-content>p]:font-normal [&_.pointer-events-none]:text-sm [&_.pointer-events-none]:font-normal [&_.editor-content>p]:content-center [&_.editor-content>p]:min-h-6", lg: "px-4 py-2.5 rounded-md [&_.editor-content>p]:text-base [&_.editor-content>p]:font-normal [&_.pointer-events-none]:text-base [&_.pointer-events-none]:font-normal [&_.editor-content>p]:content-center [&_.editor-content>p]:min-h-7" }, OQ = "absolute inset-x-0 top-full mt-2 mx-0 mb-0 w-full h-auto overflow-y-auto overflow-x-hidden z-10 bg-background-primary border border-solid border-border-subtle shadow-lg", AQ = { sm: "p-1.5 rounded-md max-h-[10.75rem]", md: "p-2 rounded-lg max-h-[13.5rem]", lg: "p-2 rounded-lg max-h-[13.5rem]" }, TQ = "m-0 text-text-primary cursor-pointer", PQ = { sm: "p-1.5 rounded text-xs leading-5 font-normal", md: "p-2 rounded-md text-sm leading-6 font-normal", lg: "p-2 rounded-md text-base leading-6 font-normal" }, CQ = "bg-button-tertiary-hover", aE = "startTransition", EQ = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? react__WEBPACK_IMPORTED_MODULE_1__.useLayoutEffect : react__WEBPACK_IMPORTED_MODULE_1__.useEffect, sE = (e) => { const t = document.getElementById("typeahead-menu"); if (!t) return; const n = t.getBoundingClientRect(); n.top + n.height > window.innerHeight && t.scrollIntoView({ block: "center" }), n.top < 0 && t.scrollIntoView({ block: "center" }), e.scrollIntoView({ block: "nearest" }); }; function lE(e, t) { const n = e.getBoundingClientRect(), r = t.getBoundingClientRect(); return n.top > r.top && n.top < r.bottom; } function kQ(e, t, n, r) { const [i] = Gr(); (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { if (t != null && e != null) { const o = i.getRootElement(), a = o != null ? function(d, p) { let m = getComputedStyle(d); const y = m.position === "absolute", g = /(auto|scroll)/; if (m.position === "fixed") return document.body; for (let v = d; v = v.parentElement; ) if (m = getComputedStyle(v), (!y || m.position !== "static") && g.test(m.overflow + m.overflowY + m.overflowX)) return v; return document.body; }(o) : document.body; let s = !1, l = lE(t, a); const c = function() { s || (window.requestAnimationFrame(function() { n(), s = !1; }), s = !0); const d = lE(t, a); d !== l && (l = d, r != null && r(d)); }, f = new ResizeObserver(n); return window.addEventListener("resize", n), document.addEventListener("scroll", c, { capture: !0, passive: !0 }), f.observe(t), () => { f.unobserve(t), window.removeEventListener("resize", n), document.removeEventListener("scroll", c, !0); }; } }, [t, i, r, n, e]); } const cE = bZ(); function MQ({ close: e, editor: t, anchorElementRef: n, resolution: r, options: i, menuRenderFn: o, onSelectOption: a, shouldSplitNodeWithQuery: s = !1, commandPriority: l = rc }) { const [c, f] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), d = r.match && r.match.matchingString; (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { f(0); }, [d]); const p = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((y) => { t.update(() => { const g = r.match != null && s ? function(v) { const x = Ne(); if (!we(x) || !x.isCollapsed()) return null; const w = x.anchor; if (w.type !== "text") return null; const S = w.getNode(); if (!S.isSimpleText()) return null; const A = w.offset, _ = S.getTextContent().slice(0, A), O = v.replaceableString.length, P = A - function(k, I, $) { let N = $; for (let D = N; D <= I.length; D++) k.substr(-D) === I.substr(0, D) && (N = D); return N; }(_, v.matchingString, O); if (P < 0) return null; let C; return P === 0 ? [C] = S.splitText(A) : [, C] = S.splitText(P, A), C; }(r.match) : null; a(y, g, e, r.match ? r.match.matchingString : ""); }); }, [t, s, r.match, a, e]), m = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((y) => { const g = t.getRootElement(); g !== null && (g.setAttribute("aria-activedescendant", "typeahead-item-" + y), f(y)); }, [t]); return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => () => { const y = t.getRootElement(); y !== null && y.removeAttribute("aria-activedescendant"); }, [t]), EQ(() => { i === null ? f(null) : c === null && m(0); }, [i, c, m]), (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => Uo(t.registerCommand(cE, ({ option: y }) => !(!y.ref || y.ref.current == null) && (sE(y.ref.current), !0), l)), [t, m, l]), (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => Uo(t.registerCommand(IR, (y) => { const g = y; if (i !== null && i.length && c !== null) { const v = c !== i.length - 1 ? c + 1 : 0; m(v); const x = i[v]; x.ref != null && x.ref.current && t.dispatchCommand(cE, { index: v, option: x }), g.preventDefault(), g.stopImmediatePropagation(); } return !0; }, l), t.registerCommand(DR, (y) => { const g = y; if (i !== null && i.length && c !== null) { const v = c !== 0 ? c - 1 : i.length - 1; m(v); const x = i[v]; x.ref != null && x.ref.current && sE(x.ref.current), g.preventDefault(), g.stopImmediatePropagation(); } return !0; }, l), t.registerCommand(RR, (y) => { const g = y; return g.preventDefault(), g.stopImmediatePropagation(), e(), !0; }, l), t.registerCommand(LR, (y) => { const g = y; return i !== null && c !== null && i[c] != null && (g.preventDefault(), g.stopImmediatePropagation(), p(i[c]), !0); }, l), t.registerCommand(wf, (y) => i !== null && c !== null && i[c] != null && (y !== null && (y.preventDefault(), y.stopImmediatePropagation()), p(i[c]), !0), l)), [p, e, t, i, c, m, l]), o(n, (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => ({ options: i, selectOptionAndCleanUp: p, selectedIndex: c, setHighlightedIndex: f }), [p, c, i]), r.match ? r.match.matchingString : ""); } function NQ({ options: e, onQueryChange: t, onSelectOption: n, onOpen: r, onClose: i, menuRenderFn: o, triggerFn: a, anchorClassName: s, commandPriority: l = rc, parent: c }) { const [f] = Gr(), [d, p] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), m = function(v, x, w, S = document.body) { const [A] = Gr(), _ = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(document.createElement("div")), O = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => { _.current.style.top = _.current.style.bottom; const C = A.getRootElement(), k = _.current, I = k.firstChild; if (C !== null && v !== null) { const { left: $, top: N, width: D, height: j } = v.getRect(), F = _.current.offsetHeight; if (k.style.top = `${N + window.pageYOffset + F + 3}px`, k.style.left = `${$ + window.pageXOffset}px`, k.style.height = `${j}px`, k.style.width = `${D}px`, I !== null) { I.style.top = `${N}`; const W = I.getBoundingClientRect(), z = W.height, H = W.width, U = C.getBoundingClientRect(); $ + H > U.right && (k.style.left = `${U.right - H + window.pageXOffset}px`), (N + z > window.innerHeight || N + z > U.bottom) && N - U.top > z + j && (k.style.top = N - z + window.pageYOffset - j + "px"); } k.isConnected || (w != null && (k.className = w), k.setAttribute("aria-label", "Typeahead menu"), k.setAttribute("id", "typeahead-menu"), k.setAttribute("role", "listbox"), k.style.display = "block", k.style.position = "absolute", S.append(k)), _.current = k, C.setAttribute("aria-controls", "typeahead-menu"); } }, [A, v, w, S]); (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { const C = A.getRootElement(); if (v !== null) return O(), () => { C !== null && C.removeAttribute("aria-controls"); const k = _.current; k !== null && k.isConnected && k.remove(); }; }, [A, O, v]); const P = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((C) => { v !== null && (C || x(null)); }, [v, x]); return kQ(v, _.current, O, P), _; }(d, p, s, c), y = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => { p(null), i != null && d !== null && i(); }, [i, d]), g = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((v) => { p(v), r != null && d === null && r(v); }, [r, d]); return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { const v = f.registerUpdateListener(() => { f.getEditorState().read(() => { const x = f._window || window, w = x.document.createRange(), S = Ne(), A = function(P) { let C = null; return P.getEditorState().read(() => { const k = Ne(); we(k) && (C = function(I) { const $ = I.anchor; if ($.type !== "text") return null; const N = $.getNode(); if (!N.isSimpleText()) return null; const D = $.offset; return N.getTextContent().slice(0, D); }(k)); }), C; }(f); if (!we(S) || !S.isCollapsed() || A === null || w === null) return void y(); const _ = a(A, f); if (t(_ ? _.matchingString : null), _ !== null && !function(P, C) { return C === 0 && P.getEditorState().read(() => { const k = Ne(); if (we(k)) { const I = k.anchor.getNode().getPreviousSibling(); return Se(I) && I.isTextEntity(); } return !1; }); }(f, _.leadOffset) && function(C, k, I) { const $ = I.getSelection(); if ($ === null || !$.isCollapsed) return !1; const N = $.anchorNode, D = C, j = $.anchorOffset; if (N == null || j == null) return !1; try { k.setStart(N, D), k.setEnd(N, j); } catch { return !1; } return !0; }(_.leadOffset, w, x) !== null) return O = () => g({ getRect: () => w.getBoundingClientRect(), match: _ }), void (aE in react__WEBPACK_IMPORTED_MODULE_1__ ? react__WEBPACK_IMPORTED_MODULE_1__[aE](O) : O()); var O; y(); }); }); return () => { v(); }; }, [f, a, t, d, y, g]), d === null || f === null ? null : (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MQ, { close: y, resolution: d, editor: f, anchorElementRef: m, options: e, menuRenderFn: o, shouldSplitNodeWithQuery: !0, onSelectOption: n, commandPriority: l }); } const $Q = (e) => { switch (e) { case "sm": return "xs"; case "md": return "sm"; case "lg": return "md"; default: return "sm"; } }, DQ = ({ data: e, by: t, size: n, nodeKey: r }) => { const [i] = Gr(), o = !i.isEditable(), a = (f) => { f.stopPropagation(), f.preventDefault(), !o && i.update(() => { const d = $n(r); d && d.remove(); }); }; let s = e; typeof e == "object" && (s = e[t]); const l = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)( (f) => { const d = $n(r); if (!d || !d.isSelected()) return !1; let p = !1; const m = d.getPreviousSibling(); return ve(m) && (m.selectEnd(), p = !0), Se(m) && (m.select(), p = !0), Ht(m) && (m.selectNext(), p = !0), m === null && (d.selectPrevious(), p = !0), p && f.preventDefault(), p; }, [r] ), c = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)( (f) => { const d = $n(r); if (!d || !d.isSelected()) return !1; let p = !1; const m = d.getNextSibling(); return ve(m) && (m.selectStart(), p = !0), Se(m) && (m.select(0, 0), p = !0), Ht(m) && (m.selectPrevious(), p = !0), m === null && (d.selectNext(), p = !0), p && f.preventDefault(), p; }, [r] ); return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { const f = Uo( i.registerCommand( J1, l, rc ), i.registerCommand( Z1, c, rc ) ); return () => { f(); }; }, [i, l, c]), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( mg, { className: "inline-flex mr-0.5", type: "rounded", size: $Q(n), label: s, icon: null, closable: !0, onClose: a, disabled: o } ); }; class ic extends k2 { constructor(n, r, i, o) { super(o); ha(this, "__data"); ha(this, "__by"); ha(this, "__size"); this.__data = n, this.__by = r, this.__size = i; } static getType() { return "mention"; } static clone(n) { return new ic(n.__data, n.__by, n.__size, n.__key); } static importJSON(n) { return L2( n.data, n.by, n.size ); } createDOM() { return document.createElement("span"); } updateDOM() { return !1; } exportDOM() { return { element: document.createElement("span") }; } exportJSON() { return { type: ic.getType(), data: this.__data, by: this.__by, size: this.__size, version: 1 }; } decorate() { return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( DQ, { data: this.__data, by: this.__by, size: this.__size, nodeKey: this.__key } ); } } const L2 = (e, t, n) => new ic(e, t, n), IQ = (e) => e instanceof ic; class RQ { constructor(t) { ha(this, "data"); ha(this, "key"); ha(this, "ref"); ha(this, "setRefElement"); this.initData = t, this.key = "", this.data = t, this.ref = { current: null }, this.setRefElement = (n) => { this.ref.current = n; }; } } const Ob = /* @__PURE__ */ new Map(); function jQ(e, t, n = "name") { const [r, i] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)([]); return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { if (t === null) { i([]); return; } const o = Ob.get(t); if (o !== null) { if (o !== void 0) { i(o); return; } Ob.set(t, null), LQ.search( e, t, (a) => { Ob.set(t, a), i(a); }, n ); } }, [t]), r; } const LQ = { search(e, t, n, r) { setTimeout(() => { if (!Array.isArray(e)) return []; const i = e.filter( (o) => { var s; if (typeof o == "string") return o.toLowerCase().includes(t.toLowerCase()); const a = (s = o == null ? void 0 : o[r]) == null ? void 0 : s.toString(); return a ? a.toLowerCase().includes(t.toLowerCase()) : !1; } ); n(i); }, 500); } }, Hp = ({ size: e, className: t, children: n }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "ul", { role: "menu", className: K( OQ, AQ[e], t ), children: n } ); Hp.displayName = "EditorCombobox"; const B2 = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)( ({ size: e, children: t, selected: n = !1, className: r, ...i }, o) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "li", { role: "option", ref: o, className: K( TQ, PQ[e], n && CQ, r ), ...i, children: t } ) ); B2.displayName = "EditorCombobox.Item"; Hp.Item = B2; const BQ = ({ optionsArray: e, by: t = "name", size: n = "md", trigger: r = "@", // Default trigger value menuComponent: i = Hp, menuItemComponent: o = Hp.Item, autoSpace: a = !0 }) => { const s = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(!1), l = `\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'"~=<>_:;`, c = [r].join(""), f = "[^" + c + l + "\\s]", d = "(?:\\.[ |$]| |[" + l + "]|)", p = 75, m = new RegExp( `(^|\\s|\\()([${c}]((?:${f}${d}){0,${p}}))$` ), y = 50, g = new RegExp( `(^|\\s|\\()([${c}]((?:${f}){0,${y}}))$` ), v = (k) => { let I = m.exec(k); if (I === null && (I = g.exec(k)), I !== null) { const $ = I[1], N = I[3]; if (N.length >= 0) return { leadOffset: I.index + $.length, matchingString: N, replaceableString: I[2] }; } return null; }, [x] = Gr(), [w, S] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), A = jQ(e, w, t), _ = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)( (k, I, $) => { x.update(() => { const N = L2( k.data, t, n ); I && I.replace(N), $(); }); }, [x] ), O = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => A.map((k) => new RQ(k)), [x, A]), P = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)( (k) => { if (!a) return !1; const { key: I, ctrlKey: $, metaKey: N } = k; if ($ || N || I === " " || I.length > 1 || s.current) return s.current && (s.current = !1), !1; const D = Ne(), { focus: j, anchor: F } = D, [W] = D.getNodes(); if (!F || !j || (F == null ? void 0 : F.key) !== (j == null ? void 0 : j.key) || (F == null ? void 0 : F.offset) !== (j == null ? void 0 : j.offset) || !W) return !1; if (IQ(W)) { const z = Vn(" "); return W.insertAfter(z), !0; } return !1; }, [x, r, a] ), C = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)( (k) => { const { key: I } = k; return I === "Backspace" ? (s.current = !0, !0) : !1; }, [s] ); return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { if (x) return Uo( x.registerCommand( $R, P, rc ), x.registerCommand( Q1, C, rc ) ); }, [x, P]), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( NQ, { onQueryChange: S, onSelectOption: _, triggerFn: v, options: O, menuRenderFn: (k, { selectedIndex: I, selectOptionAndCleanUp: $, setHighlightedIndex: N }) => k.current && (O != null && O.length) ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(i, { size: n, children: O.map((D, j) => { var F; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( o, { ref: D.ref, size: n, selected: j === I, onMouseEnter: () => { N(j); }, onClick: () => $(D), children: typeof D.data == "string" ? D.data : (F = D.data) == null ? void 0 : F[t] }, j ); }) }) : null } ); }, FQ = { ltr: "ltr", rtl: "rtl", paragraph: "editor-paragraph", quote: "editor-quote", heading: { h1: "editor-heading-h1", h2: "editor-heading-h2", h3: "editor-heading-h3", h4: "editor-heading-h4", h5: "editor-heading-h5", h6: "editor-heading-h6" }, list: { nested: { listitem: "editor-nested-listitem" }, ol: "editor-list-ol", ul: "editor-list-ul", listitem: "editor-listItem", listitemChecked: "editor-listItemChecked", listitemUnchecked: "editor-listItemUnchecked" }, hashtag: "editor-hashtag", image: "editor-image", link: "editor-link", text: { bold: "editor-textBold", code: "editor-textCode", italic: "editor-textItalic", strikethrough: "editor-textStrikethrough", subscript: "editor-textSubscript", superscript: "editor-textSuperscript", underline: "editor-textUnderline", underlineStrikethrough: "editor-textUnderlineStrikethrough" }, code: "editor-code", codeHighlight: { atrule: "editor-tokenAttr", attr: "editor-tokenAttr", boolean: "editor-tokenProperty", builtin: "editor-tokenSelector", cdata: "editor-tokenComment", char: "editor-tokenSelector", class: "editor-tokenFunction", "class-name": "editor-tokenFunction", comment: "editor-tokenComment", constant: "editor-tokenProperty", deleted: "editor-tokenProperty", doctype: "editor-tokenComment", entity: "editor-tokenOperator", function: "editor-tokenFunction", important: "editor-tokenVariable", inserted: "editor-tokenSelector", keyword: "editor-tokenAttr", namespace: "editor-tokenVariable", number: "editor-tokenProperty", operator: "editor-tokenOperator", prolog: "editor-tokenComment", property: "editor-tokenProperty", punctuation: "editor-tokenPunctuation", regex: "editor-tokenVariable", selector: "editor-tokenSelector", string: "editor-tokenSelector", symbol: "editor-tokenProperty", tag: "editor-tokenProperty", url: "editor-tokenOperator", variable: "editor-tokenVariable" } }, WQ = ({ content: e }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 flex items-center justify-start text-field-placeholder w-full", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "truncate", children: e }) } ); function zQ(e) { console.error(e); } const VQ = `{ "root": { "children": [ { "children": [], "direction": null, "format": "", "indent": 0, "type": "paragraph", "version": 1, "textFormat": 0, "textStyle": "" } ], "direction": null, "format": "", "indent": 0, "type": "root", "version": 1 } }`, UQ = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)( ({ defaultValue: e = "", placeholder: t = "Press @ to view variable suggestions", onChange: n, size: r = "md", autoFocus: i = !1, options: o, by: a = "name", trigger: s = "@", menuComponent: l, menuItemComponent: c, className: f, wrapperClassName: d, disabled: p = !1, autoSpaceAfterMention: m = !1 }, y) => { const g = { namespace: "Editor", editorTheme: FQ, onError: zQ, nodes: [ic], editorState: e || VQ, editable: !p }, v = (S, A) => { typeof n == "function" && n(S, A); }; let x, w; return (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(l) && (x = l), (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(c) && (w = c), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "relative w-full", wQ, SQ[r], p && _Q, d ), children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(PJ, { initialConfig: g, children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "relative w-full [&_p]:m-0", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( eQ, { contentEditable: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( iQ, { className: K( "editor-content focus-visible:outline-none outline-none", xQ, f ) } ), placeholder: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(WQ, { content: t }), ErrorBoundary: gQ } ) }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(pQ, {}), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( BQ, { menuComponent: x, menuItemComponent: w, size: r, by: a, optionsArray: o, trigger: s, autoSpace: m } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( vQ, { onChange: v, ignoreSelectionChange: !0 } ), y && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(bQ, { editorRef: y }), i && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(vZ, {}) ] }) } ); } ); UQ.displayName = "EditorInput"; const HQ = (e, t, n, r) => { const i = `absolute rounded-full transition-colors duration-500 ${n[r].dot}`; return e === "dot" ? K( i, n[r].dot, t ? "bg-brand-primary-600" : "bg-text-tertiary" ) : e === "number" ? K( i, n[r].dot, t ? "text-brand-primary-600" : "text-text-tertiary", "flex items-center justify-center" ) : e === "icon" ? K( i, t ? "text-brand-primary-600" : "text-text-tertiary", "flex items-center justify-center" ) : ""; }, KQ = (e, t, n) => K( "relative flex items-center rounded-full justify-center transition-colors z-10 duration-500 ring-1", e ? "ring-brand-primary-600" : "ring-border-subtle", t[n].ring ), GQ = (e, t) => K( "rounded-full text-brand-primary-600 transition-colors duration-300", e[t].dot, e[t].ring ), YQ = { sm: { dot: "size-2.5", ring: "size-5", numberIcon: "size-5 text-tiny", icon: "size-5", label: "text-xs" }, md: { dot: "size-3", ring: "size-6", numberIcon: "size-6 text-sm", icon: "size-6", label: "text-sm" }, lg: { dot: "size-3.5", ring: "size-7", numberIcon: "size-7 text-md", icon: "size-7", label: "text-sm" } }, qQ = ({ variant: e = "dot", size: t = "sm", type: n = "inline", currentStep: r = 1, children: i, className: o, lineClassName: a = "min-w-10", ...s }) => { const l = react__WEBPACK_IMPORTED_MODULE_1__.Children.count(i); r === -1 && (r = l + 1); const c = react__WEBPACK_IMPORTED_MODULE_1__.Children.map(i, (f, d) => { const p = d + 1 < r, m = d + 1 === r, y = d + 1 === l, g = { isCompleted: p, isCurrent: m, sizeClasses: YQ, size: t, variant: e, type: n, isLast: y, index: d, lineClassName: a }; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, { children: react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(f) ? react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(f, g) : f }, d); }); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "flex w-full", o, n === "inline" ? "items-center justify-between" : "" ), ...s, children: c } ); }, F2 = ({ labelText: e = "", icon: t = /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(nD, {}), isCurrent: n, isCompleted: r, className: i, type: o, variant: a, sizeClasses: s, size: l, isLast: c, index: f, lineClassName: d, ...p }) => { const m = XQ( a, r, n, s, l, t, f ), y = { lg: "left-[calc(50%+14px)] right-[calc(-50%+14px)]", md: "left-[calc(50%+12px)] right-[calc(-50%+12px)]", sm: "left-[calc(50%+10px)] right-[calc(-50%+10px)]" }, g = { lg: "top-3.5", md: "top-3", sm: "top-2.5" }, v = () => { if (e) { const w = K( s[l].label, "text-text-tertiary", n ? "text-brand-primary-600" : "", "break-word", // max width for inline and stack o === "stack" ? "mt-2 transform max-w-xs" : "mx-2 max-w-32" ); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: w, children: e }); } return null; }, x = () => { if (!c) { const w = K( "block", r ? "border-brand-primary-600" : "border-border-subtle", d ); return o === "stack" ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "relative", "flex", "border-solid", "border-y", "absolute", r ? "border-brand-primary-600" : "border-border-subtle", g[l], y[l] ), children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "block" }) } ) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "span", { className: K( "mr-2 border-y border-solid", !e && "ml-2", w ) } ) }); } return null; }; return o === "stack" ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "relative flex-1 justify-center", children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K("flex items-center flex-col", i), ...p, children: [ m, v() ] } ), x() ] }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: K("flex items-center", i), ...p, children: [ m, v() ] }), x() ] }); }; F2.displayName = "ProgressSteps.Step"; const XQ = (e, t, n, r, i, o, a) => { if (t) return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(sd, { className: GQ(r, i) }); const s = KQ(!!n, r, i), l = HQ( e, n, r, i ); let c = null; return e === "number" ? c = a + 1 : e === "icon" && o && (c = o), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: s, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: l, children: c }) }); }; qQ.Step = F2; const rke = ({ variant: e = "rectangular", // rectangular, circular className: t, ...n }) => { const r = { circular: "rounded-full bg-gray-200 ", rectangular: "rounded-md bg-gray-200" }[e], i = { circular: "size-10", rectangular: "w-96 h-3" }[e]; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( r, "animate-pulse", i, t ), ...n } ); }, W2 = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)({}), z2 = () => (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(W2), Ha = ({ size: e = "md", children: t, className: n }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(W2.Provider, { value: { size: e }, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: K("flex flex-col bg-background-primary p-2", n), children: t }) }); Ha.displayName = "Menu"; const V2 = ({ heading: e, arrow: t = !1, showArrowOnHover: n = !1, // Prop to toggle hover-based arrow display open: r = !0, onClick: i, children: o, className: a }) => { const [s, l] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(r), [c, f] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1), { size: d } = z2(), p = "text-text-primary bg-transparent cursor-pointer flex justify-between items-center gap-1", m = { sm: "text-xs", md: "text-sm" }[d ?? "md"], y = { sm: "size-4", md: "size-5" }[d ?? "md"], g = () => { l(!s), i && i(!s); }, v = { open: { rotate: 180 }, closed: { rotate: 0 } }, x = { open: { height: "auto", opacity: 1 }, closed: { height: 0, opacity: 0 } }, w = { visible: { opacity: 1 }, hidden: { opacity: 0 } }, S = () => n ? s || c ? "visible" : "hidden" : "visible"; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { children: [ !!e && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { role: "button", tabIndex: 0, onClick: g, onKeyDown: (A) => { (A.key === "Enter" || A.key === " ") && g(); }, onMouseEnter: () => n && f(!0), onMouseLeave: () => n && f(!1), className: K( p, m, e ? "p-1" : "p-0", a ), "aria-expanded": s, children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "text-text-tertiary", children: e }), t && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( An.span, { className: "flex items-center text-border-strong", initial: "hidden", animate: S(), exit: "hidden", variants: w, transition: { duration: 0.15 }, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( An.span, { className: "inline-flex p-1", variants: v, animate: s ? "open" : "closed", transition: { duration: 0.15 }, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Xw, { className: K("shrink-0", y) } ) } ) } ) ] } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Ys, { initial: !1, children: s && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( An.ul, { role: "menu", variants: x, initial: "closed", animate: "open", exit: "closed", transition: { duration: 0.3, ease: "easeInOut" }, className: "overflow flex gap-0.5 flex-col m-0 bg-white rounded p-0", children: o } ) }) ] }); }; V2.displayName = "Menu.List"; const U2 = ({ disabled: e = !1, active: t, onClick: n, children: r, className: i }) => { const { size: o } = z2(), a = "flex p-1 gap-1 items-center bg-transparent border-none rounded text-text-secondary cursor-pointer m-0", s = { sm: "[&>svg]:size-4 [&>svg]:m-1 [&>*:not(svg)]:mx-1 [&>*:not(svg)]:my-0.5 text-sm", md: "[&>svg]:size-5 [&>svg]:m-1.5 [&>*:not(svg)]:m-1 text-base" }[o ?? "md"]; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "li", { role: "menuitem", tabIndex: 0, onClick: n, onKeyDown: (p) => { (p.key === "Enter" || p.key === " ") && (n == null || n()); }, className: K( a, s, "hover:bg-background-secondary hover:text-text-primary", e ? "text-text-disabled hover:text-text-disabled cursor-not-allowed hover:bg-transparent" : "", t ? "text-icon-primary [&>svg]:text-icon-interactive bg-background-secondary" : "", "transition-colors duration-300 ease-in-out", i ), children: r } ); }; U2.displayName = "Menu.Item"; const H2 = ({ variant: e = "solid", className: t }) => { const n = { solid: "border-solid", dashed: "border-dashed", dotted: "border-dotted", double: "border-double", hidden: "border-hidden", none: "border-none" }[e]; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("li", { className: "m-0 p-0 list-none", role: "separator", "aria-hidden": "true", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "hr", { className: K( "w-full border-0 border-t border-border-subtle", n, t ) } ) }); }; H2.displayName = "Menu.Separator"; Ha.List = V2; Ha.Item = U2; Ha.Separator = H2; const K2 = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)({ isCollapsed: !1, setIsCollapsed: () => { }, collapsible: !0 }), G2 = ({ children: e, className: t, onCollapseChange: n, collapsible: r = !0, borderOn: i = !0, ...o }) => { const a = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), [s, l] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(() => { const c = ju.get("sidebar-collapsed"), f = window.innerWidth < 1280; return c || f; }); return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { n && n(s); }, [s, n]), (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { const c = () => { const f = window.innerWidth < 1280; if (!r) l(!1), ju.remove("sidebar-collapsed"); else if (f) l(!0), ju.set("sidebar-collapsed", !0); else { const d = ju.get("sidebar-collapsed"); l(d || !1); } }; return window.addEventListener("resize", c), c(), () => { window.removeEventListener("resize", c); }; }, [r]), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( K2.Provider, { value: { isCollapsed: s, setIsCollapsed: l, collapsible: r }, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { ref: a, className: K( "h-full overflow-auto w-72 px-4 py-4 gap-4 flex flex-col bg-background-primary", i && "border-0 border-r border-solid border-border-subtle", "transition-all duration-200", s && "w-16 px-2", t ), ...o, children: e } ) } ); }; G2.displayName = "Sidebar"; const Y2 = ({ children: e }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "space-y-2", children: e }); Y2.displayName = "Sidebar.Header"; const q2 = ({ children: e }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: K("space-y-4 grow items-start"), children: e }); q2.displayName = "Sidebar.Body"; const X2 = ({ children: e }) => { const { isCollapsed: t, setIsCollapsed: n, collapsible: r } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(K2); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "space-y-4", children: [ e, r && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "button", { className: K( "bg-transparent w-full border-0 p-0 m-0 flex items-center gap-2 text-base cursor-pointer", t && "justify-center" ), onClick: () => { n(!t), ju.set("sidebar-collapsed", !t); }, "aria-label": t ? "Expand sidebar" : "Collapse sidebar", children: t ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(f1, { title: "Expand", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(tK, { className: "size-5" }) }) }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(eK, { className: "size-5" }), " Collapse" ] }) } ) ] }); }; X2.displayName = "Sidebar.Footer"; const Z2 = ({ children: e, className: t }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: K("w-full", t), children: e }); Z2.displayName = "Sidebar.Item"; const ike = Object.assign(G2, { Header: Y2, Body: q2, Footer: X2, Item: Z2 }), cx = { sm: { text: "text-sm", separator: "text-sm", separatorIconSize: 16 }, md: { text: "text-base", separator: "text-base", separatorIconSize: 18 } }, wd = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)({ sizes: cx.sm }), Xs = ({ children: e, size: t = "sm" }) => { const n = cx[t] || cx.sm; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(wd.Provider, { value: { sizes: n }, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("nav", { className: "flex m-0", "aria-label": "Breadcrumb", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("ul", { className: "m-0 inline-flex items-center space-x-1 md:space-x-1", children: e }) }) }); }; Xs.displayName = "Breadcrumb"; const J2 = ({ children: e }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: e }); J2.displayName = "Breadcrumb.List"; const Q2 = ({ children: e }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("li", { className: "m-0 inline-flex items-center gap-2", children: e }); Q2.displayName = "Breadcrumb.Item"; const ej = ({ href: e, children: t, className: n, as: r = "a", ...i }) => { const { sizes: o } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(wd); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( r, { href: e, className: K( o.text, "px-1 font-medium no-underline text-text-tertiary hover:text-text-primary hover:underline", "focus:outline-none focus:ring-1 focus:ring-border-interactive focus:border-border-interactive focus:rounded-sm", "transition-all duration-200", n ), ...i, children: t } ); }; ej.displayName = "Breadcrumb.Link"; const tj = ({ type: e }) => { const { sizes: t } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(wd), n = { slash: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: K("mx-1", t.separator), children: "/" }), arrow: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Zw, { size: t.separatorIconSize }) }; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "li", { role: "separator", className: "flex items-center text-text-tertiary mx-2 p-0 list-none", "aria-hidden": "true", children: n[e] || n.arrow } ); }; tj.displayName = "Breadcrumb.Separator"; const nj = () => { const { sizes: e } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(wd); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( XH, { className: "mt-[2px] cursor-pointer text-text-tertiary hover:text-text-primary", size: e.separatorIconSize + 4 } ); }; nj.displayName = "Breadcrumb.Ellipsis"; const rj = ({ children: e }) => { const { sizes: t } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(wd); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: K(t.text, "font-medium text-text-primary"), children: e }); }; rj.displayName = "Breadcrumb.Page"; Xs.List = J2; Xs.Item = Q2; Xs.Link = ej; Xs.Separator = tj; Xs.Ellipsis = nj; Xs.Page = rj; const ij = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)({}), Wg = () => (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(ij), oj = { open: { opacity: 1 }, exit: { opacity: 0 } }, aj = { duration: 0.2 }, Xo = ({ open: e, setOpen: t, children: n, trigger: r = null, className: i, exitOnClickOutside: o = !1, exitOnEsc: a = !0, design: s = "simple", scrollLock: l = !0 }) => { const c = e !== void 0 && t !== void 0, [f, d] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1), p = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), m = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), y = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)( () => c ? e : f, [e, f] ), g = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)( () => c ? t : d, [d, d] ), v = () => { y || g(!0); }, x = () => { y && g(!1); }, w = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => { var _; return (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(r) ? (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(r, { onClick: cf(v, (_ = r == null ? void 0 : r.props) == null ? void 0 : _.onClick) }) : typeof r == "function" ? r({ onClick: v }) : null; }, [r, v, x]), S = (_) => { switch (_.key) { case "Escape": a && x(); break; } }, A = (_) => { o && p.current && !p.current.contains(_.target) && x(); }; return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => (window.addEventListener("keydown", S), document.addEventListener("mousedown", A), () => { window.removeEventListener("keydown", S), document.removeEventListener("mousedown", A); }), [y]), (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { if (!l) return; const _ = document.querySelector("html"); return y && _ && (_.style.overflow = "hidden"), () => { _ && (_.style.overflow = ""); }; }, [y]), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: [ w(), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( ij.Provider, { value: { open: y, setOpen: g, handleClose: x, design: s, dialogContainerRef: m, dialogRef: p }, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { ref: m, className: K( "fixed z-999999 w-0 h-0 overflow-visible", i ), children: n } ) } ) ] }); }; Xo.displayName = "Dialog"; const sj = ({ children: e, className: t }) => { const { open: n, handleClose: r, dialogRef: i } = Wg(); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Ys, { children: n && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( An.div, { className: "fixed inset-0 overflow-y-auto", initial: "exit", animate: "open", exit: "exit", variants: oj, role: "dialog", transition: aj, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "flex items-center justify-center min-h-full", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { ref: i, className: K( "flex flex-col gap-5 w-120 h-fit bg-background-primary border border-solid border-border-subtle rounded-xl shadow-soft-shadow-2xl my-5 overflow-hidden", t ), children: typeof e == "function" ? e({ close: r }) : e } ) }) } ) }); }; sj.displayName = "Dialog.Panel"; const lj = ({ className: e, ...t }) => { const { open: n, dialogContainerRef: r } = Wg(); return r != null && r.current ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: (0,react_dom__WEBPACK_IMPORTED_MODULE_2__.createPortal)( /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Ys, { children: n && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( An.div, { className: K( "fixed inset-0 -z-10 bg-background-inverse/90", e ), ...t, initial: "exit", animate: "open", exit: "exit", variants: oj, transition: aj } ) }), r.current ) }) : null; }; lj.displayName = "Dialog.Backdrop"; const cj = ({ children: e, className: t, ...n }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: K("space-y-2 px-5 pt-5 pb-1", t), ...n, children: e }); cj.displayName = "Dialog.Header"; const uj = ({ children: e, as: t = "h3", className: n, ...r }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( t, { className: K( "text-base font-semibold text-text-primary m-0 p-0", n ), ...r, children: e } ); uj.displayName = "Dialog.Title"; const fj = ({ children: e, as: t = "p", className: n, ...r }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( t, { className: K( "text-sm font-normal text-text-secondary my-0 ml-0 mr-1 p-0", n ), ...r, children: e } ); fj.displayName = "Dialog.Description"; const ZQ = ({ className: e, ...t }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "button", { className: K( "bg-transparent inline-flex justify-center items-center border-0 p-1 m-0 cursor-pointer focus:outline-none outline-none shadow-none", e ), "aria-label": "Close dialog", ...t, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)($a, { className: "size-4 text-text-primary shrink-0" }) } ), dj = ({ children: e, as: t = react__WEBPACK_IMPORTED_MODULE_1__.Fragment, ...n }) => { const { handleClose: r } = Wg(); return e ? t === react__WEBPACK_IMPORTED_MODULE_1__.Fragment ? typeof e == "function" ? e({ close: r }) : (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(e, { onClick: r }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(t, { ...n, onClick: r, children: e }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(ZQ, { onClick: r, ...n }); }; dj.displayName = "Dialog.CloseButton"; const hj = ({ children: e, className: t, ...n }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: K("px-5", t), ...n, children: e }); hj.displayName = "Dialog.Body"; const pj = ({ children: e, className: t }) => { const { design: n, handleClose: r } = Wg(), i = () => e ? typeof e == "function" ? e({ close: r }) : e : null; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "p-4 flex justify-end gap-3", { "bg-background-secondary": n === "footer-divided" }, t ), children: i() } ); }; pj.displayName = "Dialog.Footer"; Xo.Panel = sj; Xo.Title = uj; Xo.Description = fj; Xo.CloseButton = dj; Xo.Header = cj; Xo.Body = hj; Xo.Footer = pj; Xo.Backdrop = lj; const _d = ({ children: e, gap: t = "lg", className: n, ...r }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "w-full box-border flex items-center justify-between bg-background-primary p-5 min-h-16", Jm(t), n ), ...r, children: e } ); _d.displayName = "Topbar"; const mj = ({ gap: e = "sm", children: t, className: n }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: K("flex items-center", Jm(e), n), children: t }); mj.displayName = "Topbar.Left"; const gj = ({ gap: e = "md", children: t, align: n = "center", className: r }) => { const i = { left: "justify-start", center: "justify-center", right: "justify-end" }[n]; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "flex items-center grow", Jm(e), i, r ), children: t } ); }; gj.displayName = "Topbar.Middle"; const yj = ({ gap: e = "sm", children: t, className: n }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: K("flex items-center", Jm(e), n), children: t }); yj.displayName = "Topbar.Right"; const vj = ({ children: e, className: t }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K("flex items-center [&>svg]:block h-full", t), children: e } ); vj.displayName = "Topbar.Item"; _d.Left = mj; _d.Middle = gj; _d.Right = yj; _d.Item = vj; const JQ = (e) => { if (!e) return { error: "Element not found." }; const t = e.getBoundingClientRect(), n = window.innerWidth, r = n / 2, i = t.right < r, o = t.left > r; return { isLeft: i, isRight: o, isCenter: !i && !o, elementRect: { left: t.left, right: t.right, width: t.width }, viewport: { width: n, center: r } }; }, bj = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)({}), QQ = bj.Provider, xj = () => (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(bj), eee = (e) => { const t = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)({ width: 0, height: 0 }); return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { e.current && (t.current.width = e.current.offsetWidth, t.current.height = e.current.offsetHeight); }, []), t.current; }, tee = (e, t, n) => { if (!e || !t) return { open: () => ({}), closed: () => ({}) }; const r = e == null ? void 0 : e.getBoundingClientRect(), i = t == null ? void 0 : t.getBoundingClientRect(), o = n ? (r == null ? void 0 : r.x) - (i == null ? void 0 : i.x) + (r == null ? void 0 : r.width) / 2 : (i == null ? void 0 : i.width) - ((i == null ? void 0 : i.right) - (r == null ? void 0 : r.x)) + (r == null ? void 0 : r.width) / 2, a = (r == null ? void 0 : r.y) - (i == null ? void 0 : i.y) + (r == null ? void 0 : r.height) / 2, s = (r == null ? void 0 : r.width) / 2; return { open: (l = 1e3) => ({ clipPath: `circle(${l * 2 + 200}px at ${o}px ${a}px)`, background: "rgb(255, 255, 255, 1)", transition: { type: "spring", stiffness: 20, restDelta: 2, background: { duration: 0 } } }), closed: { clipPath: `circle(${s}px at ${o}px ${a}px)`, background: "rgb(255, 255, 255, 0)", transition: { delay: 0.5, type: "spring", stiffness: 400, damping: 40, background: { duration: 0, delay: 1e3 } } } }; }, Ab = (e) => ( // @ts-expect-error Framer Motion types are not compatible with SVGPathElement /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( An.path, { className: "stroke-icon-primary", fill: "transparent", strokeWidth: "3", strokeLinecap: "round", ...e } ) ), wj = ({ className: e }) => { const { toggleOpen: t, setTriggerRef: n } = xj(); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Hn, { ref: n, className: K( "relative z-[1] rounded-full hover:shadow-sm focus:[box-shadow:none] pointer-events-auto bg-background-primary", e ), variant: "ghost", size: "xs", onClick: t, "aria-label": "Toggle menu", icon: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( An.svg, { className: "shrink-0 stroke-icon-primary", width: "23", height: "23", variants: { open: { viewBox: "0 0 20 20" }, closed: { viewBox: "0 0 23 18" } }, children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Ab, { variants: { closed: { d: "M 2 2.5 L 20 2.5" }, open: { d: "M 3 16.5 L 17 2.5" } } } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Ab, { d: "M 2 9.423 L 20 9.423", variants: { closed: { opacity: 1 }, open: { opacity: 0 } }, transition: { duration: 0.1 } } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Ab, { variants: { closed: { d: "M 2 16.346 L 20 16.346" }, open: { d: "M 3 2.5 L 17 16.346" } } } ) ] } ) } ); }, nee = { open: { transition: { staggerChildren: 0.07, delayChildren: 0.2 } }, closed: { transition: { staggerChildren: 0.05, staggerDirection: -1 } } }, _j = ({ tag: e = "a", active: t, icon: n, iconPosition: r = "left", className: i, children: o, ...a }) => { var f; let s = null, l = null; const c = n && (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(n) ? (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(n, { key: "left-icon", className: K( "size-5", t ? "text-brand-800" : "text-icon-secondary", ((f = n.props) == null ? void 0 : f.className) ?? "" ) }) : null; switch (r) { case "left": s = c; break; case "right": l = c; break; default: s = null, l = null; break; } return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(iee, { children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( e, { className: K( "w-full no-underline hover:no-underline text-text-primary text-lg font-medium flex items-center gap-2 px-2.5 py-1.5 rounded-md hover:bg-background-secondary hover:text-text-primary focus:outline-none focus:shadow-none transition ease-in-out duration-150", t ? "text-text-primary bg-background-secondary" : "text-text-secondary", i ), ...a, children: [ !!s && s, /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "contents", children: o }), !!l && l ] } ) }); }, ree = { open: { y: 0, opacity: 1, transition: { y: { stiffness: 1e3, velocity: -100 } } }, closed: { y: 50, opacity: 0, transition: { y: { stiffness: 1e3 } } } }, iee = ({ children: e }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( An.li, { className: "m-0 p-0 flex items-center justify-start w-full", variants: ree, whileHover: { scale: 1.05 }, whileTap: { scale: 0.95 }, children: e } ), Sj = ({ children: e, className: t }) => { const { triggerRef: n, triggerOnRight: r, triggerOnLeft: i } = xj(), [o, a] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null); return n ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( An.div, { ref: a, className: K( "absolute top-0 bottom-0 w-80 h-screen", r ? "right-0" : "left-0", t ), children: [ o && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( An.div, { className: K( "bg-background-primary shadow-lg absolute top-0 bottom-0 w-80 border-y-0 border-l-0 border-r border-solid border-border-subtle", r ? "right-0" : "left-0" ), variants: tee( n, o, i ?? !1 ) } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( An.ul, { variants: nee, className: K( "relative mt-14 mb-0 w-full px-5 pb-5 pt-2 flex flex-col items-start justify-start gap-0.5", t ), children: e } ) ] } ) : null; }, zg = ({ className: e, children: t }) => { const [n, r] = KX(!1, !0), [i, o] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), a = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), { height: s } = eee(a), { isRight: l = !1, isLeft: c = !0 } = JQ(i); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(QQ, { value: { isOpen: n, toggleOpen: r, setTriggerRef: (p) => { (0,react__WEBPACK_IMPORTED_MODULE_1__.startTransition)(() => { o(p); }); }, triggerRef: i, triggerOnRight: l, triggerOnLeft: c }, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: K("size-6 z-[1]", e), children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( An.nav, { className: "h-full", initial: !1, animate: n ? "open" : "closed", custom: s, variants: { open: { pointerEvents: "auto" }, closed: { pointerEvents: "none" } }, ref: a, children: t } ) }) }); }; zg.displayName = "HamburgerMenu"; wj.displayName = "HamburgerMenu.Toggle"; Sj.displayName = "HamburgerMenu.Options"; _j.displayName = "HamburgerMenu.Option"; zg.Options = Sj; zg.Option = _j; zg.Toggle = wj; var Kp = { exports: {} }; /** * @license * Lodash <https://lodash.com/> * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */ Kp.exports; (function(e, t) { (function() { var n, r = "4.17.21", i = 200, o = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", a = "Expected a function", s = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", c = 500, f = "__lodash_placeholder__", d = 1, p = 2, m = 4, y = 1, g = 2, v = 1, x = 2, w = 4, S = 8, A = 16, _ = 32, O = 64, P = 128, C = 256, k = 512, I = 30, $ = "...", N = 800, D = 16, j = 1, F = 2, W = 3, z = 1 / 0, H = 9007199254740991, U = 17976931348623157e292, V = NaN, Y = 4294967295, Q = Y - 1, ne = Y >>> 1, re = [ ["ary", P], ["bind", v], ["bindKey", x], ["curry", S], ["curryRight", A], ["flip", k], ["partial", _], ["partialRight", O], ["rearg", C] ], ce = "[object Arguments]", oe = "[object Array]", fe = "[object AsyncFunction]", ae = "[object Boolean]", ee = "[object Date]", se = "[object DOMException]", ge = "[object Error]", X = "[object Function]", $e = "[object GeneratorFunction]", de = "[object Map]", ke = "[object Number]", it = "[object Null]", lt = "[object Object]", Xn = "[object Promise]", Ie = "[object Proxy]", ct = "[object RegExp]", Oe = "[object Set]", Ge = "[object String]", Zt = "[object Symbol]", mt = "[object Undefined]", en = "[object WeakMap]", Yr = "[object WeakSet]", Cn = "[object ArrayBuffer]", yn = "[object DataView]", mr = "[object Float32Array]", tt = "[object Float64Array]", Kt = "[object Int8Array]", St = "[object Int16Array]", jn = "[object Int32Array]", qr = "[object Uint8Array]", lo = "[object Uint8ClampedArray]", un = "[object Uint16Array]", Pr = "[object Uint32Array]", fn = /\b__p \+= '';/g, Xr = /\b(__p \+=) '' \+/g, yt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Rd = /&(?:amp|lt|gt|quot|#39);/g, jd = /[&<>"']/g, Ey = RegExp(Rd.source), nu = RegExp(jd.source), ru = /<%-([\s\S]+?)%>/g, Ez = /<%([\s\S]+?)%>/g, WS = /<%=([\s\S]+?)%>/g, kz = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Mz = /^\w*$/, Nz = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, ky = /[\\^$.*+?()[\]{}|]/g, $z = RegExp(ky.source), My = /^\s+/, Dz = /\s/, Iz = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Rz = /\{\n\/\* \[wrapped with (.+)\] \*/, jz = /,? & /, Lz = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Bz = /[()=,{}\[\]\/\s]/, Fz = /\\(\\)?/g, Wz = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, zS = /\w*$/, zz = /^[-+]0x[0-9a-f]+$/i, Vz = /^0b[01]+$/i, Uz = /^\[object .+?Constructor\]$/, Hz = /^0o[0-7]+$/i, Kz = /^(?:0|[1-9]\d*)$/, Gz = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Ld = /($^)/, Yz = /['\n\r\u2028\u2029\\]/g, Bd = "\\ud800-\\udfff", qz = "\\u0300-\\u036f", Xz = "\\ufe20-\\ufe2f", Zz = "\\u20d0-\\u20ff", VS = qz + Xz + Zz, US = "\\u2700-\\u27bf", HS = "a-z\\xdf-\\xf6\\xf8-\\xff", Jz = "\\xac\\xb1\\xd7\\xf7", Qz = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", e5 = "\\u2000-\\u206f", t5 = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", KS = "A-Z\\xc0-\\xd6\\xd8-\\xde", GS = "\\ufe0e\\ufe0f", YS = Jz + Qz + e5 + t5, Ny = "['’]", n5 = "[" + Bd + "]", qS = "[" + YS + "]", Fd = "[" + VS + "]", XS = "\\d+", r5 = "[" + US + "]", ZS = "[" + HS + "]", JS = "[^" + Bd + YS + XS + US + HS + KS + "]", $y = "\\ud83c[\\udffb-\\udfff]", i5 = "(?:" + Fd + "|" + $y + ")", QS = "[^" + Bd + "]", Dy = "(?:\\ud83c[\\udde6-\\uddff]){2}", Iy = "[\\ud800-\\udbff][\\udc00-\\udfff]", al = "[" + KS + "]", eO = "\\u200d", tO = "(?:" + ZS + "|" + JS + ")", o5 = "(?:" + al + "|" + JS + ")", nO = "(?:" + Ny + "(?:d|ll|m|re|s|t|ve))?", rO = "(?:" + Ny + "(?:D|LL|M|RE|S|T|VE))?", iO = i5 + "?", oO = "[" + GS + "]?", a5 = "(?:" + eO + "(?:" + [QS, Dy, Iy].join("|") + ")" + oO + iO + ")*", s5 = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", l5 = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", aO = oO + iO + a5, c5 = "(?:" + [r5, Dy, Iy].join("|") + ")" + aO, u5 = "(?:" + [QS + Fd + "?", Fd, Dy, Iy, n5].join("|") + ")", f5 = RegExp(Ny, "g"), d5 = RegExp(Fd, "g"), Ry = RegExp($y + "(?=" + $y + ")|" + u5 + aO, "g"), h5 = RegExp([ al + "?" + ZS + "+" + nO + "(?=" + [qS, al, "$"].join("|") + ")", o5 + "+" + rO + "(?=" + [qS, al + tO, "$"].join("|") + ")", al + "?" + tO + "+" + nO, al + "+" + rO, l5, s5, XS, c5 ].join("|"), "g"), p5 = RegExp("[" + eO + Bd + VS + GS + "]"), m5 = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, g5 = [ "Array", "Buffer", "DataView", "Date", "Error", "Float32Array", "Float64Array", "Function", "Int8Array", "Int16Array", "Int32Array", "Map", "Math", "Object", "Promise", "RegExp", "Set", "String", "Symbol", "TypeError", "Uint8Array", "Uint8ClampedArray", "Uint16Array", "Uint32Array", "WeakMap", "_", "clearTimeout", "isFinite", "parseInt", "setTimeout" ], y5 = -1, Ft = {}; Ft[mr] = Ft[tt] = Ft[Kt] = Ft[St] = Ft[jn] = Ft[qr] = Ft[lo] = Ft[un] = Ft[Pr] = !0, Ft[ce] = Ft[oe] = Ft[Cn] = Ft[ae] = Ft[yn] = Ft[ee] = Ft[ge] = Ft[X] = Ft[de] = Ft[ke] = Ft[lt] = Ft[ct] = Ft[Oe] = Ft[Ge] = Ft[en] = !1; var It = {}; It[ce] = It[oe] = It[Cn] = It[yn] = It[ae] = It[ee] = It[mr] = It[tt] = It[Kt] = It[St] = It[jn] = It[de] = It[ke] = It[lt] = It[ct] = It[Oe] = It[Ge] = It[Zt] = It[qr] = It[lo] = It[un] = It[Pr] = !0, It[ge] = It[X] = It[en] = !1; var v5 = { // Latin-1 Supplement block. À: "A", Á: "A", Â: "A", Ã: "A", Ä: "A", Å: "A", à: "a", á: "a", â: "a", ã: "a", ä: "a", å: "a", Ç: "C", ç: "c", Ð: "D", ð: "d", È: "E", É: "E", Ê: "E", Ë: "E", è: "e", é: "e", ê: "e", ë: "e", Ì: "I", Í: "I", Î: "I", Ï: "I", ì: "i", í: "i", î: "i", ï: "i", Ñ: "N", ñ: "n", Ò: "O", Ó: "O", Ô: "O", Õ: "O", Ö: "O", Ø: "O", ò: "o", ó: "o", ô: "o", õ: "o", ö: "o", ø: "o", Ù: "U", Ú: "U", Û: "U", Ü: "U", ù: "u", ú: "u", û: "u", ü: "u", Ý: "Y", ý: "y", ÿ: "y", Æ: "Ae", æ: "ae", Þ: "Th", þ: "th", ß: "ss", // Latin Extended-A block. Ā: "A", Ă: "A", Ą: "A", ā: "a", ă: "a", ą: "a", Ć: "C", Ĉ: "C", Ċ: "C", Č: "C", ć: "c", ĉ: "c", ċ: "c", č: "c", Ď: "D", Đ: "D", ď: "d", đ: "d", Ē: "E", Ĕ: "E", Ė: "E", Ę: "E", Ě: "E", ē: "e", ĕ: "e", ė: "e", ę: "e", ě: "e", Ĝ: "G", Ğ: "G", Ġ: "G", Ģ: "G", ĝ: "g", ğ: "g", ġ: "g", ģ: "g", Ĥ: "H", Ħ: "H", ĥ: "h", ħ: "h", Ĩ: "I", Ī: "I", Ĭ: "I", Į: "I", İ: "I", ĩ: "i", ī: "i", ĭ: "i", į: "i", ı: "i", Ĵ: "J", ĵ: "j", Ķ: "K", ķ: "k", ĸ: "k", Ĺ: "L", Ļ: "L", Ľ: "L", Ŀ: "L", Ł: "L", ĺ: "l", ļ: "l", ľ: "l", ŀ: "l", ł: "l", Ń: "N", Ņ: "N", Ň: "N", Ŋ: "N", ń: "n", ņ: "n", ň: "n", ŋ: "n", Ō: "O", Ŏ: "O", Ő: "O", ō: "o", ŏ: "o", ő: "o", Ŕ: "R", Ŗ: "R", Ř: "R", ŕ: "r", ŗ: "r", ř: "r", Ś: "S", Ŝ: "S", Ş: "S", Š: "S", ś: "s", ŝ: "s", ş: "s", š: "s", Ţ: "T", Ť: "T", Ŧ: "T", ţ: "t", ť: "t", ŧ: "t", Ũ: "U", Ū: "U", Ŭ: "U", Ů: "U", Ű: "U", Ų: "U", ũ: "u", ū: "u", ŭ: "u", ů: "u", ű: "u", ų: "u", Ŵ: "W", ŵ: "w", Ŷ: "Y", ŷ: "y", Ÿ: "Y", Ź: "Z", Ż: "Z", Ž: "Z", ź: "z", ż: "z", ž: "z", IJ: "IJ", ij: "ij", Œ: "Oe", œ: "oe", ʼn: "'n", ſ: "s" }, b5 = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, x5 = { "&": "&", "<": "<", ">": ">", """: '"', "'": "'" }, w5 = { "\\": "\\", "'": "'", "\n": "n", "\r": "r", "\u2028": "u2028", "\u2029": "u2029" }, _5 = parseFloat, S5 = parseInt, sO = typeof _commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.c == "object" && _commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.c && _commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.c.Object === Object && _commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.c, O5 = typeof self == "object" && self && self.Object === Object && self, Ln = sO || O5 || Function("return this")(), jy = t && !t.nodeType && t, Za = jy && !0 && e && !e.nodeType && e, lO = Za && Za.exports === jy, Ly = lO && sO.process, Zr = function() { try { var Z = Za && Za.require && Za.require("util").types; return Z || Ly && Ly.binding && Ly.binding("util"); } catch { } }(), cO = Zr && Zr.isArrayBuffer, uO = Zr && Zr.isDate, fO = Zr && Zr.isMap, dO = Zr && Zr.isRegExp, hO = Zr && Zr.isSet, pO = Zr && Zr.isTypedArray; function Cr(Z, ue, ie) { switch (ie.length) { case 0: return Z.call(ue); case 1: return Z.call(ue, ie[0]); case 2: return Z.call(ue, ie[0], ie[1]); case 3: return Z.call(ue, ie[0], ie[1], ie[2]); } return Z.apply(ue, ie); } function A5(Z, ue, ie, Te) { for (var He = -1, gt = Z == null ? 0 : Z.length; ++He < gt; ) { var vn = Z[He]; ue(Te, vn, ie(vn), Z); } return Te; } function Jr(Z, ue) { for (var ie = -1, Te = Z == null ? 0 : Z.length; ++ie < Te && ue(Z[ie], ie, Z) !== !1; ) ; return Z; } function T5(Z, ue) { for (var ie = Z == null ? 0 : Z.length; ie-- && ue(Z[ie], ie, Z) !== !1; ) ; return Z; } function mO(Z, ue) { for (var ie = -1, Te = Z == null ? 0 : Z.length; ++ie < Te; ) if (!ue(Z[ie], ie, Z)) return !1; return !0; } function ia(Z, ue) { for (var ie = -1, Te = Z == null ? 0 : Z.length, He = 0, gt = []; ++ie < Te; ) { var vn = Z[ie]; ue(vn, ie, Z) && (gt[He++] = vn); } return gt; } function Wd(Z, ue) { var ie = Z == null ? 0 : Z.length; return !!ie && sl(Z, ue, 0) > -1; } function By(Z, ue, ie) { for (var Te = -1, He = Z == null ? 0 : Z.length; ++Te < He; ) if (ie(ue, Z[Te])) return !0; return !1; } function Gt(Z, ue) { for (var ie = -1, Te = Z == null ? 0 : Z.length, He = Array(Te); ++ie < Te; ) He[ie] = ue(Z[ie], ie, Z); return He; } function oa(Z, ue) { for (var ie = -1, Te = ue.length, He = Z.length; ++ie < Te; ) Z[He + ie] = ue[ie]; return Z; } function Fy(Z, ue, ie, Te) { var He = -1, gt = Z == null ? 0 : Z.length; for (Te && gt && (ie = Z[++He]); ++He < gt; ) ie = ue(ie, Z[He], He, Z); return ie; } function P5(Z, ue, ie, Te) { var He = Z == null ? 0 : Z.length; for (Te && He && (ie = Z[--He]); He--; ) ie = ue(ie, Z[He], He, Z); return ie; } function Wy(Z, ue) { for (var ie = -1, Te = Z == null ? 0 : Z.length; ++ie < Te; ) if (ue(Z[ie], ie, Z)) return !0; return !1; } var C5 = zy("length"); function E5(Z) { return Z.split(""); } function k5(Z) { return Z.match(Lz) || []; } function gO(Z, ue, ie) { var Te; return ie(Z, function(He, gt, vn) { if (ue(He, gt, vn)) return Te = gt, !1; }), Te; } function zd(Z, ue, ie, Te) { for (var He = Z.length, gt = ie + (Te ? 1 : -1); Te ? gt-- : ++gt < He; ) if (ue(Z[gt], gt, Z)) return gt; return -1; } function sl(Z, ue, ie) { return ue === ue ? z5(Z, ue, ie) : zd(Z, yO, ie); } function M5(Z, ue, ie, Te) { for (var He = ie - 1, gt = Z.length; ++He < gt; ) if (Te(Z[He], ue)) return He; return -1; } function yO(Z) { return Z !== Z; } function vO(Z, ue) { var ie = Z == null ? 0 : Z.length; return ie ? Uy(Z, ue) / ie : V; } function zy(Z) { return function(ue) { return ue == null ? n : ue[Z]; }; } function Vy(Z) { return function(ue) { return Z == null ? n : Z[ue]; }; } function bO(Z, ue, ie, Te, He) { return He(Z, function(gt, vn, Mt) { ie = Te ? (Te = !1, gt) : ue(ie, gt, vn, Mt); }), ie; } function N5(Z, ue) { var ie = Z.length; for (Z.sort(ue); ie--; ) Z[ie] = Z[ie].value; return Z; } function Uy(Z, ue) { for (var ie, Te = -1, He = Z.length; ++Te < He; ) { var gt = ue(Z[Te]); gt !== n && (ie = ie === n ? gt : ie + gt); } return ie; } function Hy(Z, ue) { for (var ie = -1, Te = Array(Z); ++ie < Z; ) Te[ie] = ue(ie); return Te; } function $5(Z, ue) { return Gt(ue, function(ie) { return [ie, Z[ie]]; }); } function xO(Z) { return Z && Z.slice(0, OO(Z) + 1).replace(My, ""); } function Er(Z) { return function(ue) { return Z(ue); }; } function Ky(Z, ue) { return Gt(ue, function(ie) { return Z[ie]; }); } function iu(Z, ue) { return Z.has(ue); } function wO(Z, ue) { for (var ie = -1, Te = Z.length; ++ie < Te && sl(ue, Z[ie], 0) > -1; ) ; return ie; } function _O(Z, ue) { for (var ie = Z.length; ie-- && sl(ue, Z[ie], 0) > -1; ) ; return ie; } function D5(Z, ue) { for (var ie = Z.length, Te = 0; ie--; ) Z[ie] === ue && ++Te; return Te; } var I5 = Vy(v5), R5 = Vy(b5); function j5(Z) { return "\\" + w5[Z]; } function L5(Z, ue) { return Z == null ? n : Z[ue]; } function ll(Z) { return p5.test(Z); } function B5(Z) { return m5.test(Z); } function F5(Z) { for (var ue, ie = []; !(ue = Z.next()).done; ) ie.push(ue.value); return ie; } function Gy(Z) { var ue = -1, ie = Array(Z.size); return Z.forEach(function(Te, He) { ie[++ue] = [He, Te]; }), ie; } function SO(Z, ue) { return function(ie) { return Z(ue(ie)); }; } function aa(Z, ue) { for (var ie = -1, Te = Z.length, He = 0, gt = []; ++ie < Te; ) { var vn = Z[ie]; (vn === ue || vn === f) && (Z[ie] = f, gt[He++] = ie); } return gt; } function Vd(Z) { var ue = -1, ie = Array(Z.size); return Z.forEach(function(Te) { ie[++ue] = Te; }), ie; } function W5(Z) { var ue = -1, ie = Array(Z.size); return Z.forEach(function(Te) { ie[++ue] = [Te, Te]; }), ie; } function z5(Z, ue, ie) { for (var Te = ie - 1, He = Z.length; ++Te < He; ) if (Z[Te] === ue) return Te; return -1; } function V5(Z, ue, ie) { for (var Te = ie + 1; Te--; ) if (Z[Te] === ue) return Te; return Te; } function cl(Z) { return ll(Z) ? H5(Z) : C5(Z); } function yi(Z) { return ll(Z) ? K5(Z) : E5(Z); } function OO(Z) { for (var ue = Z.length; ue-- && Dz.test(Z.charAt(ue)); ) ; return ue; } var U5 = Vy(x5); function H5(Z) { for (var ue = Ry.lastIndex = 0; Ry.test(Z); ) ++ue; return ue; } function K5(Z) { return Z.match(Ry) || []; } function G5(Z) { return Z.match(h5) || []; } var Y5 = function Z(ue) { ue = ue == null ? Ln : ul.defaults(Ln.Object(), ue, ul.pick(Ln, g5)); var ie = ue.Array, Te = ue.Date, He = ue.Error, gt = ue.Function, vn = ue.Math, Mt = ue.Object, Yy = ue.RegExp, q5 = ue.String, Qr = ue.TypeError, Ud = ie.prototype, X5 = gt.prototype, fl = Mt.prototype, Hd = ue["__core-js_shared__"], Kd = X5.toString, Ot = fl.hasOwnProperty, Z5 = 0, AO = function() { var u = /[^.]+$/.exec(Hd && Hd.keys && Hd.keys.IE_PROTO || ""); return u ? "Symbol(src)_1." + u : ""; }(), Gd = fl.toString, J5 = Kd.call(Mt), Q5 = Ln._, e3 = Yy( "^" + Kd.call(Ot).replace(ky, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ), Yd = lO ? ue.Buffer : n, sa = ue.Symbol, qd = ue.Uint8Array, TO = Yd ? Yd.allocUnsafe : n, Xd = SO(Mt.getPrototypeOf, Mt), PO = Mt.create, CO = fl.propertyIsEnumerable, Zd = Ud.splice, EO = sa ? sa.isConcatSpreadable : n, ou = sa ? sa.iterator : n, Ja = sa ? sa.toStringTag : n, Jd = function() { try { var u = rs(Mt, "defineProperty"); return u({}, "", {}), u; } catch { } }(), t3 = ue.clearTimeout !== Ln.clearTimeout && ue.clearTimeout, n3 = Te && Te.now !== Ln.Date.now && Te.now, r3 = ue.setTimeout !== Ln.setTimeout && ue.setTimeout, Qd = vn.ceil, eh = vn.floor, qy = Mt.getOwnPropertySymbols, i3 = Yd ? Yd.isBuffer : n, kO = ue.isFinite, o3 = Ud.join, a3 = SO(Mt.keys, Mt), bn = vn.max, Zn = vn.min, s3 = Te.now, l3 = ue.parseInt, MO = vn.random, c3 = Ud.reverse, Xy = rs(ue, "DataView"), au = rs(ue, "Map"), Zy = rs(ue, "Promise"), dl = rs(ue, "Set"), su = rs(ue, "WeakMap"), lu = rs(Mt, "create"), th = su && new su(), hl = {}, u3 = is(Xy), f3 = is(au), d3 = is(Zy), h3 = is(dl), p3 = is(su), nh = sa ? sa.prototype : n, cu = nh ? nh.valueOf : n, NO = nh ? nh.toString : n; function L(u) { if (tn(u) && !Ye(u) && !(u instanceof ut)) { if (u instanceof ei) return u; if (Ot.call(u, "__wrapped__")) return $A(u); } return new ei(u); } var pl = /* @__PURE__ */ function() { function u() { } return function(h) { if (!Jt(h)) return {}; if (PO) return PO(h); u.prototype = h; var b = new u(); return u.prototype = n, b; }; }(); function rh() { } function ei(u, h) { this.__wrapped__ = u, this.__actions__ = [], this.__chain__ = !!h, this.__index__ = 0, this.__values__ = n; } L.templateSettings = { /** * Used to detect `data` property values to be HTML-escaped. * * @memberOf _.templateSettings * @type {RegExp} */ escape: ru, /** * Used to detect code to be evaluated. * * @memberOf _.templateSettings * @type {RegExp} */ evaluate: Ez, /** * Used to detect `data` property values to inject. * * @memberOf _.templateSettings * @type {RegExp} */ interpolate: WS, /** * Used to reference the data object in the template text. * * @memberOf _.templateSettings * @type {string} */ variable: "", /** * Used to import variables into the compiled template. * * @memberOf _.templateSettings * @type {Object} */ imports: { /** * A reference to the `lodash` function. * * @memberOf _.templateSettings.imports * @type {Function} */ _: L } }, L.prototype = rh.prototype, L.prototype.constructor = L, ei.prototype = pl(rh.prototype), ei.prototype.constructor = ei; function ut(u) { this.__wrapped__ = u, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = Y, this.__views__ = []; } function m3() { var u = new ut(this.__wrapped__); return u.__actions__ = gr(this.__actions__), u.__dir__ = this.__dir__, u.__filtered__ = this.__filtered__, u.__iteratees__ = gr(this.__iteratees__), u.__takeCount__ = this.__takeCount__, u.__views__ = gr(this.__views__), u; } function g3() { if (this.__filtered__) { var u = new ut(this); u.__dir__ = -1, u.__filtered__ = !0; } else u = this.clone(), u.__dir__ *= -1; return u; } function y3() { var u = this.__wrapped__.value(), h = this.__dir__, b = Ye(u), T = h < 0, M = b ? u.length : 0, B = EV(0, M, this.__views__), G = B.start, q = B.end, J = q - G, he = T ? q : G - 1, me = this.__iteratees__, ye = me.length, xe = 0, Ce = Zn(J, this.__takeCount__); if (!b || !T && M == J && Ce == J) return nA(u, this.__actions__); var Re = []; e: for (; J-- && xe < Ce; ) { he += h; for (var et = -1, je = u[he]; ++et < ye; ) { var ot = me[et], ft = ot.iteratee, Nr = ot.type, sr = ft(je); if (Nr == F) je = sr; else if (!sr) { if (Nr == j) continue e; break e; } } Re[xe++] = je; } return Re; } ut.prototype = pl(rh.prototype), ut.prototype.constructor = ut; function Qa(u) { var h = -1, b = u == null ? 0 : u.length; for (this.clear(); ++h < b; ) { var T = u[h]; this.set(T[0], T[1]); } } function v3() { this.__data__ = lu ? lu(null) : {}, this.size = 0; } function b3(u) { var h = this.has(u) && delete this.__data__[u]; return this.size -= h ? 1 : 0, h; } function x3(u) { var h = this.__data__; if (lu) { var b = h[u]; return b === l ? n : b; } return Ot.call(h, u) ? h[u] : n; } function w3(u) { var h = this.__data__; return lu ? h[u] !== n : Ot.call(h, u); } function _3(u, h) { var b = this.__data__; return this.size += this.has(u) ? 0 : 1, b[u] = lu && h === n ? l : h, this; } Qa.prototype.clear = v3, Qa.prototype.delete = b3, Qa.prototype.get = x3, Qa.prototype.has = w3, Qa.prototype.set = _3; function co(u) { var h = -1, b = u == null ? 0 : u.length; for (this.clear(); ++h < b; ) { var T = u[h]; this.set(T[0], T[1]); } } function S3() { this.__data__ = [], this.size = 0; } function O3(u) { var h = this.__data__, b = ih(h, u); if (b < 0) return !1; var T = h.length - 1; return b == T ? h.pop() : Zd.call(h, b, 1), --this.size, !0; } function A3(u) { var h = this.__data__, b = ih(h, u); return b < 0 ? n : h[b][1]; } function T3(u) { return ih(this.__data__, u) > -1; } function P3(u, h) { var b = this.__data__, T = ih(b, u); return T < 0 ? (++this.size, b.push([u, h])) : b[T][1] = h, this; } co.prototype.clear = S3, co.prototype.delete = O3, co.prototype.get = A3, co.prototype.has = T3, co.prototype.set = P3; function uo(u) { var h = -1, b = u == null ? 0 : u.length; for (this.clear(); ++h < b; ) { var T = u[h]; this.set(T[0], T[1]); } } function C3() { this.size = 0, this.__data__ = { hash: new Qa(), map: new (au || co)(), string: new Qa() }; } function E3(u) { var h = gh(this, u).delete(u); return this.size -= h ? 1 : 0, h; } function k3(u) { return gh(this, u).get(u); } function M3(u) { return gh(this, u).has(u); } function N3(u, h) { var b = gh(this, u), T = b.size; return b.set(u, h), this.size += b.size == T ? 0 : 1, this; } uo.prototype.clear = C3, uo.prototype.delete = E3, uo.prototype.get = k3, uo.prototype.has = M3, uo.prototype.set = N3; function es(u) { var h = -1, b = u == null ? 0 : u.length; for (this.__data__ = new uo(); ++h < b; ) this.add(u[h]); } function $3(u) { return this.__data__.set(u, l), this; } function D3(u) { return this.__data__.has(u); } es.prototype.add = es.prototype.push = $3, es.prototype.has = D3; function vi(u) { var h = this.__data__ = new co(u); this.size = h.size; } function I3() { this.__data__ = new co(), this.size = 0; } function R3(u) { var h = this.__data__, b = h.delete(u); return this.size = h.size, b; } function j3(u) { return this.__data__.get(u); } function L3(u) { return this.__data__.has(u); } function B3(u, h) { var b = this.__data__; if (b instanceof co) { var T = b.__data__; if (!au || T.length < i - 1) return T.push([u, h]), this.size = ++b.size, this; b = this.__data__ = new uo(T); } return b.set(u, h), this.size = b.size, this; } vi.prototype.clear = I3, vi.prototype.delete = R3, vi.prototype.get = j3, vi.prototype.has = L3, vi.prototype.set = B3; function $O(u, h) { var b = Ye(u), T = !b && os(u), M = !b && !T && da(u), B = !b && !T && !M && vl(u), G = b || T || M || B, q = G ? Hy(u.length, q5) : [], J = q.length; for (var he in u) (h || Ot.call(u, he)) && !(G && // Safari 9 has enumerable `arguments.length` in strict mode. (he == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. M && (he == "offset" || he == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. B && (he == "buffer" || he == "byteLength" || he == "byteOffset") || // Skip index properties. mo(he, J))) && q.push(he); return q; } function DO(u) { var h = u.length; return h ? u[lv(0, h - 1)] : n; } function F3(u, h) { return yh(gr(u), ts(h, 0, u.length)); } function W3(u) { return yh(gr(u)); } function Jy(u, h, b) { (b !== n && !bi(u[h], b) || b === n && !(h in u)) && fo(u, h, b); } function uu(u, h, b) { var T = u[h]; (!(Ot.call(u, h) && bi(T, b)) || b === n && !(h in u)) && fo(u, h, b); } function ih(u, h) { for (var b = u.length; b--; ) if (bi(u[b][0], h)) return b; return -1; } function z3(u, h, b, T) { return la(u, function(M, B, G) { h(T, M, b(M), G); }), T; } function IO(u, h) { return u && ji(h, En(h), u); } function V3(u, h) { return u && ji(h, vr(h), u); } function fo(u, h, b) { h == "__proto__" && Jd ? Jd(u, h, { configurable: !0, enumerable: !0, value: b, writable: !0 }) : u[h] = b; } function Qy(u, h) { for (var b = -1, T = h.length, M = ie(T), B = u == null; ++b < T; ) M[b] = B ? n : $v(u, h[b]); return M; } function ts(u, h, b) { return u === u && (b !== n && (u = u <= b ? u : b), h !== n && (u = u >= h ? u : h)), u; } function ti(u, h, b, T, M, B) { var G, q = h & d, J = h & p, he = h & m; if (b && (G = M ? b(u, T, M, B) : b(u)), G !== n) return G; if (!Jt(u)) return u; var me = Ye(u); if (me) { if (G = MV(u), !q) return gr(u, G); } else { var ye = Jn(u), xe = ye == X || ye == $e; if (da(u)) return oA(u, q); if (ye == lt || ye == ce || xe && !M) { if (G = J || xe ? {} : OA(u), !q) return J ? xV(u, V3(G, u)) : bV(u, IO(G, u)); } else { if (!It[ye]) return M ? u : {}; G = NV(u, ye, q); } } B || (B = new vi()); var Ce = B.get(u); if (Ce) return Ce; B.set(u, G), QA(u) ? u.forEach(function(je) { G.add(ti(je, h, b, je, u, B)); }) : ZA(u) && u.forEach(function(je, ot) { G.set(ot, ti(je, h, b, ot, u, B)); }); var Re = he ? J ? bv : vv : J ? vr : En, et = me ? n : Re(u); return Jr(et || u, function(je, ot) { et && (ot = je, je = u[ot]), uu(G, ot, ti(je, h, b, ot, u, B)); }), G; } function U3(u) { var h = En(u); return function(b) { return RO(b, u, h); }; } function RO(u, h, b) { var T = b.length; if (u == null) return !T; for (u = Mt(u); T--; ) { var M = b[T], B = h[M], G = u[M]; if (G === n && !(M in u) || !B(G)) return !1; } return !0; } function jO(u, h, b) { if (typeof u != "function") throw new Qr(a); return yu(function() { u.apply(n, b); }, h); } function fu(u, h, b, T) { var M = -1, B = Wd, G = !0, q = u.length, J = [], he = h.length; if (!q) return J; b && (h = Gt(h, Er(b))), T ? (B = By, G = !1) : h.length >= i && (B = iu, G = !1, h = new es(h)); e: for (; ++M < q; ) { var me = u[M], ye = b == null ? me : b(me); if (me = T || me !== 0 ? me : 0, G && ye === ye) { for (var xe = he; xe--; ) if (h[xe] === ye) continue e; J.push(me); } else B(h, ye, T) || J.push(me); } return J; } var la = uA(Ri), LO = uA(tv, !0); function H3(u, h) { var b = !0; return la(u, function(T, M, B) { return b = !!h(T, M, B), b; }), b; } function oh(u, h, b) { for (var T = -1, M = u.length; ++T < M; ) { var B = u[T], G = h(B); if (G != null && (q === n ? G === G && !Mr(G) : b(G, q))) var q = G, J = B; } return J; } function K3(u, h, b, T) { var M = u.length; for (b = Ze(b), b < 0 && (b = -b > M ? 0 : M + b), T = T === n || T > M ? M : Ze(T), T < 0 && (T += M), T = b > T ? 0 : tT(T); b < T; ) u[b++] = h; return u; } function BO(u, h) { var b = []; return la(u, function(T, M, B) { h(T, M, B) && b.push(T); }), b; } function Bn(u, h, b, T, M) { var B = -1, G = u.length; for (b || (b = DV), M || (M = []); ++B < G; ) { var q = u[B]; h > 0 && b(q) ? h > 1 ? Bn(q, h - 1, b, T, M) : oa(M, q) : T || (M[M.length] = q); } return M; } var ev = fA(), FO = fA(!0); function Ri(u, h) { return u && ev(u, h, En); } function tv(u, h) { return u && FO(u, h, En); } function ah(u, h) { return ia(h, function(b) { return go(u[b]); }); } function ns(u, h) { h = ua(h, u); for (var b = 0, T = h.length; u != null && b < T; ) u = u[Li(h[b++])]; return b && b == T ? u : n; } function WO(u, h, b) { var T = h(u); return Ye(u) ? T : oa(T, b(u)); } function or(u) { return u == null ? u === n ? mt : it : Ja && Ja in Mt(u) ? CV(u) : WV(u); } function nv(u, h) { return u > h; } function G3(u, h) { return u != null && Ot.call(u, h); } function Y3(u, h) { return u != null && h in Mt(u); } function q3(u, h, b) { return u >= Zn(h, b) && u < bn(h, b); } function rv(u, h, b) { for (var T = b ? By : Wd, M = u[0].length, B = u.length, G = B, q = ie(B), J = 1 / 0, he = []; G--; ) { var me = u[G]; G && h && (me = Gt(me, Er(h))), J = Zn(me.length, J), q[G] = !b && (h || M >= 120 && me.length >= 120) ? new es(G && me) : n; } me = u[0]; var ye = -1, xe = q[0]; e: for (; ++ye < M && he.length < J; ) { var Ce = me[ye], Re = h ? h(Ce) : Ce; if (Ce = b || Ce !== 0 ? Ce : 0, !(xe ? iu(xe, Re) : T(he, Re, b))) { for (G = B; --G; ) { var et = q[G]; if (!(et ? iu(et, Re) : T(u[G], Re, b))) continue e; } xe && xe.push(Re), he.push(Ce); } } return he; } function X3(u, h, b, T) { return Ri(u, function(M, B, G) { h(T, b(M), B, G); }), T; } function du(u, h, b) { h = ua(h, u), u = CA(u, h); var T = u == null ? u : u[Li(ri(h))]; return T == null ? n : Cr(T, u, b); } function zO(u) { return tn(u) && or(u) == ce; } function Z3(u) { return tn(u) && or(u) == Cn; } function J3(u) { return tn(u) && or(u) == ee; } function hu(u, h, b, T, M) { return u === h ? !0 : u == null || h == null || !tn(u) && !tn(h) ? u !== u && h !== h : Q3(u, h, b, T, hu, M); } function Q3(u, h, b, T, M, B) { var G = Ye(u), q = Ye(h), J = G ? oe : Jn(u), he = q ? oe : Jn(h); J = J == ce ? lt : J, he = he == ce ? lt : he; var me = J == lt, ye = he == lt, xe = J == he; if (xe && da(u)) { if (!da(h)) return !1; G = !0, me = !1; } if (xe && !me) return B || (B = new vi()), G || vl(u) ? wA(u, h, b, T, M, B) : TV(u, h, J, b, T, M, B); if (!(b & y)) { var Ce = me && Ot.call(u, "__wrapped__"), Re = ye && Ot.call(h, "__wrapped__"); if (Ce || Re) { var et = Ce ? u.value() : u, je = Re ? h.value() : h; return B || (B = new vi()), M(et, je, b, T, B); } } return xe ? (B || (B = new vi()), PV(u, h, b, T, M, B)) : !1; } function eV(u) { return tn(u) && Jn(u) == de; } function iv(u, h, b, T) { var M = b.length, B = M, G = !T; if (u == null) return !B; for (u = Mt(u); M--; ) { var q = b[M]; if (G && q[2] ? q[1] !== u[q[0]] : !(q[0] in u)) return !1; } for (; ++M < B; ) { q = b[M]; var J = q[0], he = u[J], me = q[1]; if (G && q[2]) { if (he === n && !(J in u)) return !1; } else { var ye = new vi(); if (T) var xe = T(he, me, J, u, h, ye); if (!(xe === n ? hu(me, he, y | g, T, ye) : xe)) return !1; } } return !0; } function VO(u) { if (!Jt(u) || RV(u)) return !1; var h = go(u) ? e3 : Uz; return h.test(is(u)); } function tV(u) { return tn(u) && or(u) == ct; } function nV(u) { return tn(u) && Jn(u) == Oe; } function rV(u) { return tn(u) && Sh(u.length) && !!Ft[or(u)]; } function UO(u) { return typeof u == "function" ? u : u == null ? br : typeof u == "object" ? Ye(u) ? GO(u[0], u[1]) : KO(u) : dT(u); } function ov(u) { if (!gu(u)) return a3(u); var h = []; for (var b in Mt(u)) Ot.call(u, b) && b != "constructor" && h.push(b); return h; } function iV(u) { if (!Jt(u)) return FV(u); var h = gu(u), b = []; for (var T in u) T == "constructor" && (h || !Ot.call(u, T)) || b.push(T); return b; } function av(u, h) { return u < h; } function HO(u, h) { var b = -1, T = yr(u) ? ie(u.length) : []; return la(u, function(M, B, G) { T[++b] = h(M, B, G); }), T; } function KO(u) { var h = wv(u); return h.length == 1 && h[0][2] ? TA(h[0][0], h[0][1]) : function(b) { return b === u || iv(b, u, h); }; } function GO(u, h) { return Sv(u) && AA(h) ? TA(Li(u), h) : function(b) { var T = $v(b, u); return T === n && T === h ? Dv(b, u) : hu(h, T, y | g); }; } function sh(u, h, b, T, M) { u !== h && ev(h, function(B, G) { if (M || (M = new vi()), Jt(B)) oV(u, h, G, b, sh, T, M); else { var q = T ? T(Av(u, G), B, G + "", u, h, M) : n; q === n && (q = B), Jy(u, G, q); } }, vr); } function oV(u, h, b, T, M, B, G) { var q = Av(u, b), J = Av(h, b), he = G.get(J); if (he) { Jy(u, b, he); return; } var me = B ? B(q, J, b + "", u, h, G) : n, ye = me === n; if (ye) { var xe = Ye(J), Ce = !xe && da(J), Re = !xe && !Ce && vl(J); me = J, xe || Ce || Re ? Ye(q) ? me = q : an(q) ? me = gr(q) : Ce ? (ye = !1, me = oA(J, !0)) : Re ? (ye = !1, me = aA(J, !0)) : me = [] : vu(J) || os(J) ? (me = q, os(q) ? me = nT(q) : (!Jt(q) || go(q)) && (me = OA(J))) : ye = !1; } ye && (G.set(J, me), M(me, J, T, B, G), G.delete(J)), Jy(u, b, me); } function YO(u, h) { var b = u.length; if (b) return h += h < 0 ? b : 0, mo(h, b) ? u[h] : n; } function qO(u, h, b) { h.length ? h = Gt(h, function(B) { return Ye(B) ? function(G) { return ns(G, B.length === 1 ? B[0] : B); } : B; }) : h = [br]; var T = -1; h = Gt(h, Er(De())); var M = HO(u, function(B, G, q) { var J = Gt(h, function(he) { return he(B); }); return { criteria: J, index: ++T, value: B }; }); return N5(M, function(B, G) { return vV(B, G, b); }); } function aV(u, h) { return XO(u, h, function(b, T) { return Dv(u, T); }); } function XO(u, h, b) { for (var T = -1, M = h.length, B = {}; ++T < M; ) { var G = h[T], q = ns(u, G); b(q, G) && pu(B, ua(G, u), q); } return B; } function sV(u) { return function(h) { return ns(h, u); }; } function sv(u, h, b, T) { var M = T ? M5 : sl, B = -1, G = h.length, q = u; for (u === h && (h = gr(h)), b && (q = Gt(u, Er(b))); ++B < G; ) for (var J = 0, he = h[B], me = b ? b(he) : he; (J = M(q, me, J, T)) > -1; ) q !== u && Zd.call(q, J, 1), Zd.call(u, J, 1); return u; } function ZO(u, h) { for (var b = u ? h.length : 0, T = b - 1; b--; ) { var M = h[b]; if (b == T || M !== B) { var B = M; mo(M) ? Zd.call(u, M, 1) : fv(u, M); } } return u; } function lv(u, h) { return u + eh(MO() * (h - u + 1)); } function lV(u, h, b, T) { for (var M = -1, B = bn(Qd((h - u) / (b || 1)), 0), G = ie(B); B--; ) G[T ? B : ++M] = u, u += b; return G; } function cv(u, h) { var b = ""; if (!u || h < 1 || h > H) return b; do h % 2 && (b += u), h = eh(h / 2), h && (u += u); while (h); return b; } function nt(u, h) { return Tv(PA(u, h, br), u + ""); } function cV(u) { return DO(bl(u)); } function uV(u, h) { var b = bl(u); return yh(b, ts(h, 0, b.length)); } function pu(u, h, b, T) { if (!Jt(u)) return u; h = ua(h, u); for (var M = -1, B = h.length, G = B - 1, q = u; q != null && ++M < B; ) { var J = Li(h[M]), he = b; if (J === "__proto__" || J === "constructor" || J === "prototype") return u; if (M != G) { var me = q[J]; he = T ? T(me, J, q) : n, he === n && (he = Jt(me) ? me : mo(h[M + 1]) ? [] : {}); } uu(q, J, he), q = q[J]; } return u; } var JO = th ? function(u, h) { return th.set(u, h), u; } : br, fV = Jd ? function(u, h) { return Jd(u, "toString", { configurable: !0, enumerable: !1, value: Rv(h), writable: !0 }); } : br; function dV(u) { return yh(bl(u)); } function ni(u, h, b) { var T = -1, M = u.length; h < 0 && (h = -h > M ? 0 : M + h), b = b > M ? M : b, b < 0 && (b += M), M = h > b ? 0 : b - h >>> 0, h >>>= 0; for (var B = ie(M); ++T < M; ) B[T] = u[T + h]; return B; } function hV(u, h) { var b; return la(u, function(T, M, B) { return b = h(T, M, B), !b; }), !!b; } function lh(u, h, b) { var T = 0, M = u == null ? T : u.length; if (typeof h == "number" && h === h && M <= ne) { for (; T < M; ) { var B = T + M >>> 1, G = u[B]; G !== null && !Mr(G) && (b ? G <= h : G < h) ? T = B + 1 : M = B; } return M; } return uv(u, h, br, b); } function uv(u, h, b, T) { var M = 0, B = u == null ? 0 : u.length; if (B === 0) return 0; h = b(h); for (var G = h !== h, q = h === null, J = Mr(h), he = h === n; M < B; ) { var me = eh((M + B) / 2), ye = b(u[me]), xe = ye !== n, Ce = ye === null, Re = ye === ye, et = Mr(ye); if (G) var je = T || Re; else he ? je = Re && (T || xe) : q ? je = Re && xe && (T || !Ce) : J ? je = Re && xe && !Ce && (T || !et) : Ce || et ? je = !1 : je = T ? ye <= h : ye < h; je ? M = me + 1 : B = me; } return Zn(B, Q); } function QO(u, h) { for (var b = -1, T = u.length, M = 0, B = []; ++b < T; ) { var G = u[b], q = h ? h(G) : G; if (!b || !bi(q, J)) { var J = q; B[M++] = G === 0 ? 0 : G; } } return B; } function eA(u) { return typeof u == "number" ? u : Mr(u) ? V : +u; } function kr(u) { if (typeof u == "string") return u; if (Ye(u)) return Gt(u, kr) + ""; if (Mr(u)) return NO ? NO.call(u) : ""; var h = u + ""; return h == "0" && 1 / u == -z ? "-0" : h; } function ca(u, h, b) { var T = -1, M = Wd, B = u.length, G = !0, q = [], J = q; if (b) G = !1, M = By; else if (B >= i) { var he = h ? null : OV(u); if (he) return Vd(he); G = !1, M = iu, J = new es(); } else J = h ? [] : q; e: for (; ++T < B; ) { var me = u[T], ye = h ? h(me) : me; if (me = b || me !== 0 ? me : 0, G && ye === ye) { for (var xe = J.length; xe--; ) if (J[xe] === ye) continue e; h && J.push(ye), q.push(me); } else M(J, ye, b) || (J !== q && J.push(ye), q.push(me)); } return q; } function fv(u, h) { return h = ua(h, u), u = CA(u, h), u == null || delete u[Li(ri(h))]; } function tA(u, h, b, T) { return pu(u, h, b(ns(u, h)), T); } function ch(u, h, b, T) { for (var M = u.length, B = T ? M : -1; (T ? B-- : ++B < M) && h(u[B], B, u); ) ; return b ? ni(u, T ? 0 : B, T ? B + 1 : M) : ni(u, T ? B + 1 : 0, T ? M : B); } function nA(u, h) { var b = u; return b instanceof ut && (b = b.value()), Fy(h, function(T, M) { return M.func.apply(M.thisArg, oa([T], M.args)); }, b); } function dv(u, h, b) { var T = u.length; if (T < 2) return T ? ca(u[0]) : []; for (var M = -1, B = ie(T); ++M < T; ) for (var G = u[M], q = -1; ++q < T; ) q != M && (B[M] = fu(B[M] || G, u[q], h, b)); return ca(Bn(B, 1), h, b); } function rA(u, h, b) { for (var T = -1, M = u.length, B = h.length, G = {}; ++T < M; ) { var q = T < B ? h[T] : n; b(G, u[T], q); } return G; } function hv(u) { return an(u) ? u : []; } function pv(u) { return typeof u == "function" ? u : br; } function ua(u, h) { return Ye(u) ? u : Sv(u, h) ? [u] : NA(vt(u)); } var pV = nt; function fa(u, h, b) { var T = u.length; return b = b === n ? T : b, !h && b >= T ? u : ni(u, h, b); } var iA = t3 || function(u) { return Ln.clearTimeout(u); }; function oA(u, h) { if (h) return u.slice(); var b = u.length, T = TO ? TO(b) : new u.constructor(b); return u.copy(T), T; } function mv(u) { var h = new u.constructor(u.byteLength); return new qd(h).set(new qd(u)), h; } function mV(u, h) { var b = h ? mv(u.buffer) : u.buffer; return new u.constructor(b, u.byteOffset, u.byteLength); } function gV(u) { var h = new u.constructor(u.source, zS.exec(u)); return h.lastIndex = u.lastIndex, h; } function yV(u) { return cu ? Mt(cu.call(u)) : {}; } function aA(u, h) { var b = h ? mv(u.buffer) : u.buffer; return new u.constructor(b, u.byteOffset, u.length); } function sA(u, h) { if (u !== h) { var b = u !== n, T = u === null, M = u === u, B = Mr(u), G = h !== n, q = h === null, J = h === h, he = Mr(h); if (!q && !he && !B && u > h || B && G && J && !q && !he || T && G && J || !b && J || !M) return 1; if (!T && !B && !he && u < h || he && b && M && !T && !B || q && b && M || !G && M || !J) return -1; } return 0; } function vV(u, h, b) { for (var T = -1, M = u.criteria, B = h.criteria, G = M.length, q = b.length; ++T < G; ) { var J = sA(M[T], B[T]); if (J) { if (T >= q) return J; var he = b[T]; return J * (he == "desc" ? -1 : 1); } } return u.index - h.index; } function lA(u, h, b, T) { for (var M = -1, B = u.length, G = b.length, q = -1, J = h.length, he = bn(B - G, 0), me = ie(J + he), ye = !T; ++q < J; ) me[q] = h[q]; for (; ++M < G; ) (ye || M < B) && (me[b[M]] = u[M]); for (; he--; ) me[q++] = u[M++]; return me; } function cA(u, h, b, T) { for (var M = -1, B = u.length, G = -1, q = b.length, J = -1, he = h.length, me = bn(B - q, 0), ye = ie(me + he), xe = !T; ++M < me; ) ye[M] = u[M]; for (var Ce = M; ++J < he; ) ye[Ce + J] = h[J]; for (; ++G < q; ) (xe || M < B) && (ye[Ce + b[G]] = u[M++]); return ye; } function gr(u, h) { var b = -1, T = u.length; for (h || (h = ie(T)); ++b < T; ) h[b] = u[b]; return h; } function ji(u, h, b, T) { var M = !b; b || (b = {}); for (var B = -1, G = h.length; ++B < G; ) { var q = h[B], J = T ? T(b[q], u[q], q, b, u) : n; J === n && (J = u[q]), M ? fo(b, q, J) : uu(b, q, J); } return b; } function bV(u, h) { return ji(u, _v(u), h); } function xV(u, h) { return ji(u, _A(u), h); } function uh(u, h) { return function(b, T) { var M = Ye(b) ? A5 : z3, B = h ? h() : {}; return M(b, u, De(T, 2), B); }; } function ml(u) { return nt(function(h, b) { var T = -1, M = b.length, B = M > 1 ? b[M - 1] : n, G = M > 2 ? b[2] : n; for (B = u.length > 3 && typeof B == "function" ? (M--, B) : n, G && ar(b[0], b[1], G) && (B = M < 3 ? n : B, M = 1), h = Mt(h); ++T < M; ) { var q = b[T]; q && u(h, q, T, B); } return h; }); } function uA(u, h) { return function(b, T) { if (b == null) return b; if (!yr(b)) return u(b, T); for (var M = b.length, B = h ? M : -1, G = Mt(b); (h ? B-- : ++B < M) && T(G[B], B, G) !== !1; ) ; return b; }; } function fA(u) { return function(h, b, T) { for (var M = -1, B = Mt(h), G = T(h), q = G.length; q--; ) { var J = G[u ? q : ++M]; if (b(B[J], J, B) === !1) break; } return h; }; } function wV(u, h, b) { var T = h & v, M = mu(u); function B() { var G = this && this !== Ln && this instanceof B ? M : u; return G.apply(T ? b : this, arguments); } return B; } function dA(u) { return function(h) { h = vt(h); var b = ll(h) ? yi(h) : n, T = b ? b[0] : h.charAt(0), M = b ? fa(b, 1).join("") : h.slice(1); return T[u]() + M; }; } function gl(u) { return function(h) { return Fy(uT(cT(h).replace(f5, "")), u, ""); }; } function mu(u) { return function() { var h = arguments; switch (h.length) { case 0: return new u(); case 1: return new u(h[0]); case 2: return new u(h[0], h[1]); case 3: return new u(h[0], h[1], h[2]); case 4: return new u(h[0], h[1], h[2], h[3]); case 5: return new u(h[0], h[1], h[2], h[3], h[4]); case 6: return new u(h[0], h[1], h[2], h[3], h[4], h[5]); case 7: return new u(h[0], h[1], h[2], h[3], h[4], h[5], h[6]); } var b = pl(u.prototype), T = u.apply(b, h); return Jt(T) ? T : b; }; } function _V(u, h, b) { var T = mu(u); function M() { for (var B = arguments.length, G = ie(B), q = B, J = yl(M); q--; ) G[q] = arguments[q]; var he = B < 3 && G[0] !== J && G[B - 1] !== J ? [] : aa(G, J); if (B -= he.length, B < b) return yA( u, h, fh, M.placeholder, n, G, he, n, n, b - B ); var me = this && this !== Ln && this instanceof M ? T : u; return Cr(me, this, G); } return M; } function hA(u) { return function(h, b, T) { var M = Mt(h); if (!yr(h)) { var B = De(b, 3); h = En(h), b = function(q) { return B(M[q], q, M); }; } var G = u(h, b, T); return G > -1 ? M[B ? h[G] : G] : n; }; } function pA(u) { return po(function(h) { var b = h.length, T = b, M = ei.prototype.thru; for (u && h.reverse(); T--; ) { var B = h[T]; if (typeof B != "function") throw new Qr(a); if (M && !G && mh(B) == "wrapper") var G = new ei([], !0); } for (T = G ? T : b; ++T < b; ) { B = h[T]; var q = mh(B), J = q == "wrapper" ? xv(B) : n; J && Ov(J[0]) && J[1] == (P | S | _ | C) && !J[4].length && J[9] == 1 ? G = G[mh(J[0])].apply(G, J[3]) : G = B.length == 1 && Ov(B) ? G[q]() : G.thru(B); } return function() { var he = arguments, me = he[0]; if (G && he.length == 1 && Ye(me)) return G.plant(me).value(); for (var ye = 0, xe = b ? h[ye].apply(this, he) : me; ++ye < b; ) xe = h[ye].call(this, xe); return xe; }; }); } function fh(u, h, b, T, M, B, G, q, J, he) { var me = h & P, ye = h & v, xe = h & x, Ce = h & (S | A), Re = h & k, et = xe ? n : mu(u); function je() { for (var ot = arguments.length, ft = ie(ot), Nr = ot; Nr--; ) ft[Nr] = arguments[Nr]; if (Ce) var sr = yl(je), $r = D5(ft, sr); if (T && (ft = lA(ft, T, M, Ce)), B && (ft = cA(ft, B, G, Ce)), ot -= $r, Ce && ot < he) { var sn = aa(ft, sr); return yA( u, h, fh, je.placeholder, b, ft, sn, q, J, he - ot ); } var xi = ye ? b : this, vo = xe ? xi[u] : u; return ot = ft.length, q ? ft = zV(ft, q) : Re && ot > 1 && ft.reverse(), me && J < ot && (ft.length = J), this && this !== Ln && this instanceof je && (vo = et || mu(vo)), vo.apply(xi, ft); } return je; } function mA(u, h) { return function(b, T) { return X3(b, u, h(T), {}); }; } function dh(u, h) { return function(b, T) { var M; if (b === n && T === n) return h; if (b !== n && (M = b), T !== n) { if (M === n) return T; typeof b == "string" || typeof T == "string" ? (b = kr(b), T = kr(T)) : (b = eA(b), T = eA(T)), M = u(b, T); } return M; }; } function gv(u) { return po(function(h) { return h = Gt(h, Er(De())), nt(function(b) { var T = this; return u(h, function(M) { return Cr(M, T, b); }); }); }); } function hh(u, h) { h = h === n ? " " : kr(h); var b = h.length; if (b < 2) return b ? cv(h, u) : h; var T = cv(h, Qd(u / cl(h))); return ll(h) ? fa(yi(T), 0, u).join("") : T.slice(0, u); } function SV(u, h, b, T) { var M = h & v, B = mu(u); function G() { for (var q = -1, J = arguments.length, he = -1, me = T.length, ye = ie(me + J), xe = this && this !== Ln && this instanceof G ? B : u; ++he < me; ) ye[he] = T[he]; for (; J--; ) ye[he++] = arguments[++q]; return Cr(xe, M ? b : this, ye); } return G; } function gA(u) { return function(h, b, T) { return T && typeof T != "number" && ar(h, b, T) && (b = T = n), h = yo(h), b === n ? (b = h, h = 0) : b = yo(b), T = T === n ? h < b ? 1 : -1 : yo(T), lV(h, b, T, u); }; } function ph(u) { return function(h, b) { return typeof h == "string" && typeof b == "string" || (h = ii(h), b = ii(b)), u(h, b); }; } function yA(u, h, b, T, M, B, G, q, J, he) { var me = h & S, ye = me ? G : n, xe = me ? n : G, Ce = me ? B : n, Re = me ? n : B; h |= me ? _ : O, h &= ~(me ? O : _), h & w || (h &= ~(v | x)); var et = [ u, h, M, Ce, ye, Re, xe, q, J, he ], je = b.apply(n, et); return Ov(u) && EA(je, et), je.placeholder = T, kA(je, u, h); } function yv(u) { var h = vn[u]; return function(b, T) { if (b = ii(b), T = T == null ? 0 : Zn(Ze(T), 292), T && kO(b)) { var M = (vt(b) + "e").split("e"), B = h(M[0] + "e" + (+M[1] + T)); return M = (vt(B) + "e").split("e"), +(M[0] + "e" + (+M[1] - T)); } return h(b); }; } var OV = dl && 1 / Vd(new dl([, -0]))[1] == z ? function(u) { return new dl(u); } : Bv; function vA(u) { return function(h) { var b = Jn(h); return b == de ? Gy(h) : b == Oe ? W5(h) : $5(h, u(h)); }; } function ho(u, h, b, T, M, B, G, q) { var J = h & x; if (!J && typeof u != "function") throw new Qr(a); var he = T ? T.length : 0; if (he || (h &= ~(_ | O), T = M = n), G = G === n ? G : bn(Ze(G), 0), q = q === n ? q : Ze(q), he -= M ? M.length : 0, h & O) { var me = T, ye = M; T = M = n; } var xe = J ? n : xv(u), Ce = [ u, h, b, T, M, me, ye, B, G, q ]; if (xe && BV(Ce, xe), u = Ce[0], h = Ce[1], b = Ce[2], T = Ce[3], M = Ce[4], q = Ce[9] = Ce[9] === n ? J ? 0 : u.length : bn(Ce[9] - he, 0), !q && h & (S | A) && (h &= ~(S | A)), !h || h == v) var Re = wV(u, h, b); else h == S || h == A ? Re = _V(u, h, q) : (h == _ || h == (v | _)) && !M.length ? Re = SV(u, h, b, T) : Re = fh.apply(n, Ce); var et = xe ? JO : EA; return kA(et(Re, Ce), u, h); } function bA(u, h, b, T) { return u === n || bi(u, fl[b]) && !Ot.call(T, b) ? h : u; } function xA(u, h, b, T, M, B) { return Jt(u) && Jt(h) && (B.set(h, u), sh(u, h, n, xA, B), B.delete(h)), u; } function AV(u) { return vu(u) ? n : u; } function wA(u, h, b, T, M, B) { var G = b & y, q = u.length, J = h.length; if (q != J && !(G && J > q)) return !1; var he = B.get(u), me = B.get(h); if (he && me) return he == h && me == u; var ye = -1, xe = !0, Ce = b & g ? new es() : n; for (B.set(u, h), B.set(h, u); ++ye < q; ) { var Re = u[ye], et = h[ye]; if (T) var je = G ? T(et, Re, ye, h, u, B) : T(Re, et, ye, u, h, B); if (je !== n) { if (je) continue; xe = !1; break; } if (Ce) { if (!Wy(h, function(ot, ft) { if (!iu(Ce, ft) && (Re === ot || M(Re, ot, b, T, B))) return Ce.push(ft); })) { xe = !1; break; } } else if (!(Re === et || M(Re, et, b, T, B))) { xe = !1; break; } } return B.delete(u), B.delete(h), xe; } function TV(u, h, b, T, M, B, G) { switch (b) { case yn: if (u.byteLength != h.byteLength || u.byteOffset != h.byteOffset) return !1; u = u.buffer, h = h.buffer; case Cn: return !(u.byteLength != h.byteLength || !B(new qd(u), new qd(h))); case ae: case ee: case ke: return bi(+u, +h); case ge: return u.name == h.name && u.message == h.message; case ct: case Ge: return u == h + ""; case de: var q = Gy; case Oe: var J = T & y; if (q || (q = Vd), u.size != h.size && !J) return !1; var he = G.get(u); if (he) return he == h; T |= g, G.set(u, h); var me = wA(q(u), q(h), T, M, B, G); return G.delete(u), me; case Zt: if (cu) return cu.call(u) == cu.call(h); } return !1; } function PV(u, h, b, T, M, B) { var G = b & y, q = vv(u), J = q.length, he = vv(h), me = he.length; if (J != me && !G) return !1; for (var ye = J; ye--; ) { var xe = q[ye]; if (!(G ? xe in h : Ot.call(h, xe))) return !1; } var Ce = B.get(u), Re = B.get(h); if (Ce && Re) return Ce == h && Re == u; var et = !0; B.set(u, h), B.set(h, u); for (var je = G; ++ye < J; ) { xe = q[ye]; var ot = u[xe], ft = h[xe]; if (T) var Nr = G ? T(ft, ot, xe, h, u, B) : T(ot, ft, xe, u, h, B); if (!(Nr === n ? ot === ft || M(ot, ft, b, T, B) : Nr)) { et = !1; break; } je || (je = xe == "constructor"); } if (et && !je) { var sr = u.constructor, $r = h.constructor; sr != $r && "constructor" in u && "constructor" in h && !(typeof sr == "function" && sr instanceof sr && typeof $r == "function" && $r instanceof $r) && (et = !1); } return B.delete(u), B.delete(h), et; } function po(u) { return Tv(PA(u, n, RA), u + ""); } function vv(u) { return WO(u, En, _v); } function bv(u) { return WO(u, vr, _A); } var xv = th ? function(u) { return th.get(u); } : Bv; function mh(u) { for (var h = u.name + "", b = hl[h], T = Ot.call(hl, h) ? b.length : 0; T--; ) { var M = b[T], B = M.func; if (B == null || B == u) return M.name; } return h; } function yl(u) { var h = Ot.call(L, "placeholder") ? L : u; return h.placeholder; } function De() { var u = L.iteratee || jv; return u = u === jv ? UO : u, arguments.length ? u(arguments[0], arguments[1]) : u; } function gh(u, h) { var b = u.__data__; return IV(h) ? b[typeof h == "string" ? "string" : "hash"] : b.map; } function wv(u) { for (var h = En(u), b = h.length; b--; ) { var T = h[b], M = u[T]; h[b] = [T, M, AA(M)]; } return h; } function rs(u, h) { var b = L5(u, h); return VO(b) ? b : n; } function CV(u) { var h = Ot.call(u, Ja), b = u[Ja]; try { u[Ja] = n; var T = !0; } catch { } var M = Gd.call(u); return T && (h ? u[Ja] = b : delete u[Ja]), M; } var _v = qy ? function(u) { return u == null ? [] : (u = Mt(u), ia(qy(u), function(h) { return CO.call(u, h); })); } : Fv, _A = qy ? function(u) { for (var h = []; u; ) oa(h, _v(u)), u = Xd(u); return h; } : Fv, Jn = or; (Xy && Jn(new Xy(new ArrayBuffer(1))) != yn || au && Jn(new au()) != de || Zy && Jn(Zy.resolve()) != Xn || dl && Jn(new dl()) != Oe || su && Jn(new su()) != en) && (Jn = function(u) { var h = or(u), b = h == lt ? u.constructor : n, T = b ? is(b) : ""; if (T) switch (T) { case u3: return yn; case f3: return de; case d3: return Xn; case h3: return Oe; case p3: return en; } return h; }); function EV(u, h, b) { for (var T = -1, M = b.length; ++T < M; ) { var B = b[T], G = B.size; switch (B.type) { case "drop": u += G; break; case "dropRight": h -= G; break; case "take": h = Zn(h, u + G); break; case "takeRight": u = bn(u, h - G); break; } } return { start: u, end: h }; } function kV(u) { var h = u.match(Rz); return h ? h[1].split(jz) : []; } function SA(u, h, b) { h = ua(h, u); for (var T = -1, M = h.length, B = !1; ++T < M; ) { var G = Li(h[T]); if (!(B = u != null && b(u, G))) break; u = u[G]; } return B || ++T != M ? B : (M = u == null ? 0 : u.length, !!M && Sh(M) && mo(G, M) && (Ye(u) || os(u))); } function MV(u) { var h = u.length, b = new u.constructor(h); return h && typeof u[0] == "string" && Ot.call(u, "index") && (b.index = u.index, b.input = u.input), b; } function OA(u) { return typeof u.constructor == "function" && !gu(u) ? pl(Xd(u)) : {}; } function NV(u, h, b) { var T = u.constructor; switch (h) { case Cn: return mv(u); case ae: case ee: return new T(+u); case yn: return mV(u, b); case mr: case tt: case Kt: case St: case jn: case qr: case lo: case un: case Pr: return aA(u, b); case de: return new T(); case ke: case Ge: return new T(u); case ct: return gV(u); case Oe: return new T(); case Zt: return yV(u); } } function $V(u, h) { var b = h.length; if (!b) return u; var T = b - 1; return h[T] = (b > 1 ? "& " : "") + h[T], h = h.join(b > 2 ? ", " : " "), u.replace(Iz, `{ /* [wrapped with ` + h + `] */ `); } function DV(u) { return Ye(u) || os(u) || !!(EO && u && u[EO]); } function mo(u, h) { var b = typeof u; return h = h ?? H, !!h && (b == "number" || b != "symbol" && Kz.test(u)) && u > -1 && u % 1 == 0 && u < h; } function ar(u, h, b) { if (!Jt(b)) return !1; var T = typeof h; return (T == "number" ? yr(b) && mo(h, b.length) : T == "string" && h in b) ? bi(b[h], u) : !1; } function Sv(u, h) { if (Ye(u)) return !1; var b = typeof u; return b == "number" || b == "symbol" || b == "boolean" || u == null || Mr(u) ? !0 : Mz.test(u) || !kz.test(u) || h != null && u in Mt(h); } function IV(u) { var h = typeof u; return h == "string" || h == "number" || h == "symbol" || h == "boolean" ? u !== "__proto__" : u === null; } function Ov(u) { var h = mh(u), b = L[h]; if (typeof b != "function" || !(h in ut.prototype)) return !1; if (u === b) return !0; var T = xv(b); return !!T && u === T[0]; } function RV(u) { return !!AO && AO in u; } var jV = Hd ? go : Wv; function gu(u) { var h = u && u.constructor, b = typeof h == "function" && h.prototype || fl; return u === b; } function AA(u) { return u === u && !Jt(u); } function TA(u, h) { return function(b) { return b == null ? !1 : b[u] === h && (h !== n || u in Mt(b)); }; } function LV(u) { var h = wh(u, function(T) { return b.size === c && b.clear(), T; }), b = h.cache; return h; } function BV(u, h) { var b = u[1], T = h[1], M = b | T, B = M < (v | x | P), G = T == P && b == S || T == P && b == C && u[7].length <= h[8] || T == (P | C) && h[7].length <= h[8] && b == S; if (!(B || G)) return u; T & v && (u[2] = h[2], M |= b & v ? 0 : w); var q = h[3]; if (q) { var J = u[3]; u[3] = J ? lA(J, q, h[4]) : q, u[4] = J ? aa(u[3], f) : h[4]; } return q = h[5], q && (J = u[5], u[5] = J ? cA(J, q, h[6]) : q, u[6] = J ? aa(u[5], f) : h[6]), q = h[7], q && (u[7] = q), T & P && (u[8] = u[8] == null ? h[8] : Zn(u[8], h[8])), u[9] == null && (u[9] = h[9]), u[0] = h[0], u[1] = M, u; } function FV(u) { var h = []; if (u != null) for (var b in Mt(u)) h.push(b); return h; } function WV(u) { return Gd.call(u); } function PA(u, h, b) { return h = bn(h === n ? u.length - 1 : h, 0), function() { for (var T = arguments, M = -1, B = bn(T.length - h, 0), G = ie(B); ++M < B; ) G[M] = T[h + M]; M = -1; for (var q = ie(h + 1); ++M < h; ) q[M] = T[M]; return q[h] = b(G), Cr(u, this, q); }; } function CA(u, h) { return h.length < 2 ? u : ns(u, ni(h, 0, -1)); } function zV(u, h) { for (var b = u.length, T = Zn(h.length, b), M = gr(u); T--; ) { var B = h[T]; u[T] = mo(B, b) ? M[B] : n; } return u; } function Av(u, h) { if (!(h === "constructor" && typeof u[h] == "function") && h != "__proto__") return u[h]; } var EA = MA(JO), yu = r3 || function(u, h) { return Ln.setTimeout(u, h); }, Tv = MA(fV); function kA(u, h, b) { var T = h + ""; return Tv(u, $V(T, VV(kV(T), b))); } function MA(u) { var h = 0, b = 0; return function() { var T = s3(), M = D - (T - b); if (b = T, M > 0) { if (++h >= N) return arguments[0]; } else h = 0; return u.apply(n, arguments); }; } function yh(u, h) { var b = -1, T = u.length, M = T - 1; for (h = h === n ? T : h; ++b < h; ) { var B = lv(b, M), G = u[B]; u[B] = u[b], u[b] = G; } return u.length = h, u; } var NA = LV(function(u) { var h = []; return u.charCodeAt(0) === 46 && h.push(""), u.replace(Nz, function(b, T, M, B) { h.push(M ? B.replace(Fz, "$1") : T || b); }), h; }); function Li(u) { if (typeof u == "string" || Mr(u)) return u; var h = u + ""; return h == "0" && 1 / u == -z ? "-0" : h; } function is(u) { if (u != null) { try { return Kd.call(u); } catch { } try { return u + ""; } catch { } } return ""; } function VV(u, h) { return Jr(re, function(b) { var T = "_." + b[0]; h & b[1] && !Wd(u, T) && u.push(T); }), u.sort(); } function $A(u) { if (u instanceof ut) return u.clone(); var h = new ei(u.__wrapped__, u.__chain__); return h.__actions__ = gr(u.__actions__), h.__index__ = u.__index__, h.__values__ = u.__values__, h; } function UV(u, h, b) { (b ? ar(u, h, b) : h === n) ? h = 1 : h = bn(Ze(h), 0); var T = u == null ? 0 : u.length; if (!T || h < 1) return []; for (var M = 0, B = 0, G = ie(Qd(T / h)); M < T; ) G[B++] = ni(u, M, M += h); return G; } function HV(u) { for (var h = -1, b = u == null ? 0 : u.length, T = 0, M = []; ++h < b; ) { var B = u[h]; B && (M[T++] = B); } return M; } function KV() { var u = arguments.length; if (!u) return []; for (var h = ie(u - 1), b = arguments[0], T = u; T--; ) h[T - 1] = arguments[T]; return oa(Ye(b) ? gr(b) : [b], Bn(h, 1)); } var GV = nt(function(u, h) { return an(u) ? fu(u, Bn(h, 1, an, !0)) : []; }), YV = nt(function(u, h) { var b = ri(h); return an(b) && (b = n), an(u) ? fu(u, Bn(h, 1, an, !0), De(b, 2)) : []; }), qV = nt(function(u, h) { var b = ri(h); return an(b) && (b = n), an(u) ? fu(u, Bn(h, 1, an, !0), n, b) : []; }); function XV(u, h, b) { var T = u == null ? 0 : u.length; return T ? (h = b || h === n ? 1 : Ze(h), ni(u, h < 0 ? 0 : h, T)) : []; } function ZV(u, h, b) { var T = u == null ? 0 : u.length; return T ? (h = b || h === n ? 1 : Ze(h), h = T - h, ni(u, 0, h < 0 ? 0 : h)) : []; } function JV(u, h) { return u && u.length ? ch(u, De(h, 3), !0, !0) : []; } function QV(u, h) { return u && u.length ? ch(u, De(h, 3), !0) : []; } function e4(u, h, b, T) { var M = u == null ? 0 : u.length; return M ? (b && typeof b != "number" && ar(u, h, b) && (b = 0, T = M), K3(u, h, b, T)) : []; } function DA(u, h, b) { var T = u == null ? 0 : u.length; if (!T) return -1; var M = b == null ? 0 : Ze(b); return M < 0 && (M = bn(T + M, 0)), zd(u, De(h, 3), M); } function IA(u, h, b) { var T = u == null ? 0 : u.length; if (!T) return -1; var M = T - 1; return b !== n && (M = Ze(b), M = b < 0 ? bn(T + M, 0) : Zn(M, T - 1)), zd(u, De(h, 3), M, !0); } function RA(u) { var h = u == null ? 0 : u.length; return h ? Bn(u, 1) : []; } function t4(u) { var h = u == null ? 0 : u.length; return h ? Bn(u, z) : []; } function n4(u, h) { var b = u == null ? 0 : u.length; return b ? (h = h === n ? 1 : Ze(h), Bn(u, h)) : []; } function r4(u) { for (var h = -1, b = u == null ? 0 : u.length, T = {}; ++h < b; ) { var M = u[h]; T[M[0]] = M[1]; } return T; } function jA(u) { return u && u.length ? u[0] : n; } function i4(u, h, b) { var T = u == null ? 0 : u.length; if (!T) return -1; var M = b == null ? 0 : Ze(b); return M < 0 && (M = bn(T + M, 0)), sl(u, h, M); } function o4(u) { var h = u == null ? 0 : u.length; return h ? ni(u, 0, -1) : []; } var a4 = nt(function(u) { var h = Gt(u, hv); return h.length && h[0] === u[0] ? rv(h) : []; }), s4 = nt(function(u) { var h = ri(u), b = Gt(u, hv); return h === ri(b) ? h = n : b.pop(), b.length && b[0] === u[0] ? rv(b, De(h, 2)) : []; }), l4 = nt(function(u) { var h = ri(u), b = Gt(u, hv); return h = typeof h == "function" ? h : n, h && b.pop(), b.length && b[0] === u[0] ? rv(b, n, h) : []; }); function c4(u, h) { return u == null ? "" : o3.call(u, h); } function ri(u) { var h = u == null ? 0 : u.length; return h ? u[h - 1] : n; } function u4(u, h, b) { var T = u == null ? 0 : u.length; if (!T) return -1; var M = T; return b !== n && (M = Ze(b), M = M < 0 ? bn(T + M, 0) : Zn(M, T - 1)), h === h ? V5(u, h, M) : zd(u, yO, M, !0); } function f4(u, h) { return u && u.length ? YO(u, Ze(h)) : n; } var d4 = nt(LA); function LA(u, h) { return u && u.length && h && h.length ? sv(u, h) : u; } function h4(u, h, b) { return u && u.length && h && h.length ? sv(u, h, De(b, 2)) : u; } function p4(u, h, b) { return u && u.length && h && h.length ? sv(u, h, n, b) : u; } var m4 = po(function(u, h) { var b = u == null ? 0 : u.length, T = Qy(u, h); return ZO(u, Gt(h, function(M) { return mo(M, b) ? +M : M; }).sort(sA)), T; }); function g4(u, h) { var b = []; if (!(u && u.length)) return b; var T = -1, M = [], B = u.length; for (h = De(h, 3); ++T < B; ) { var G = u[T]; h(G, T, u) && (b.push(G), M.push(T)); } return ZO(u, M), b; } function Pv(u) { return u == null ? u : c3.call(u); } function y4(u, h, b) { var T = u == null ? 0 : u.length; return T ? (b && typeof b != "number" && ar(u, h, b) ? (h = 0, b = T) : (h = h == null ? 0 : Ze(h), b = b === n ? T : Ze(b)), ni(u, h, b)) : []; } function v4(u, h) { return lh(u, h); } function b4(u, h, b) { return uv(u, h, De(b, 2)); } function x4(u, h) { var b = u == null ? 0 : u.length; if (b) { var T = lh(u, h); if (T < b && bi(u[T], h)) return T; } return -1; } function w4(u, h) { return lh(u, h, !0); } function _4(u, h, b) { return uv(u, h, De(b, 2), !0); } function S4(u, h) { var b = u == null ? 0 : u.length; if (b) { var T = lh(u, h, !0) - 1; if (bi(u[T], h)) return T; } return -1; } function O4(u) { return u && u.length ? QO(u) : []; } function A4(u, h) { return u && u.length ? QO(u, De(h, 2)) : []; } function T4(u) { var h = u == null ? 0 : u.length; return h ? ni(u, 1, h) : []; } function P4(u, h, b) { return u && u.length ? (h = b || h === n ? 1 : Ze(h), ni(u, 0, h < 0 ? 0 : h)) : []; } function C4(u, h, b) { var T = u == null ? 0 : u.length; return T ? (h = b || h === n ? 1 : Ze(h), h = T - h, ni(u, h < 0 ? 0 : h, T)) : []; } function E4(u, h) { return u && u.length ? ch(u, De(h, 3), !1, !0) : []; } function k4(u, h) { return u && u.length ? ch(u, De(h, 3)) : []; } var M4 = nt(function(u) { return ca(Bn(u, 1, an, !0)); }), N4 = nt(function(u) { var h = ri(u); return an(h) && (h = n), ca(Bn(u, 1, an, !0), De(h, 2)); }), $4 = nt(function(u) { var h = ri(u); return h = typeof h == "function" ? h : n, ca(Bn(u, 1, an, !0), n, h); }); function D4(u) { return u && u.length ? ca(u) : []; } function I4(u, h) { return u && u.length ? ca(u, De(h, 2)) : []; } function R4(u, h) { return h = typeof h == "function" ? h : n, u && u.length ? ca(u, n, h) : []; } function Cv(u) { if (!(u && u.length)) return []; var h = 0; return u = ia(u, function(b) { if (an(b)) return h = bn(b.length, h), !0; }), Hy(h, function(b) { return Gt(u, zy(b)); }); } function BA(u, h) { if (!(u && u.length)) return []; var b = Cv(u); return h == null ? b : Gt(b, function(T) { return Cr(h, n, T); }); } var j4 = nt(function(u, h) { return an(u) ? fu(u, h) : []; }), L4 = nt(function(u) { return dv(ia(u, an)); }), B4 = nt(function(u) { var h = ri(u); return an(h) && (h = n), dv(ia(u, an), De(h, 2)); }), F4 = nt(function(u) { var h = ri(u); return h = typeof h == "function" ? h : n, dv(ia(u, an), n, h); }), W4 = nt(Cv); function z4(u, h) { return rA(u || [], h || [], uu); } function V4(u, h) { return rA(u || [], h || [], pu); } var U4 = nt(function(u) { var h = u.length, b = h > 1 ? u[h - 1] : n; return b = typeof b == "function" ? (u.pop(), b) : n, BA(u, b); }); function FA(u) { var h = L(u); return h.__chain__ = !0, h; } function H4(u, h) { return h(u), u; } function vh(u, h) { return h(u); } var K4 = po(function(u) { var h = u.length, b = h ? u[0] : 0, T = this.__wrapped__, M = function(B) { return Qy(B, u); }; return h > 1 || this.__actions__.length || !(T instanceof ut) || !mo(b) ? this.thru(M) : (T = T.slice(b, +b + (h ? 1 : 0)), T.__actions__.push({ func: vh, args: [M], thisArg: n }), new ei(T, this.__chain__).thru(function(B) { return h && !B.length && B.push(n), B; })); }); function G4() { return FA(this); } function Y4() { return new ei(this.value(), this.__chain__); } function q4() { this.__values__ === n && (this.__values__ = eT(this.value())); var u = this.__index__ >= this.__values__.length, h = u ? n : this.__values__[this.__index__++]; return { done: u, value: h }; } function X4() { return this; } function Z4(u) { for (var h, b = this; b instanceof rh; ) { var T = $A(b); T.__index__ = 0, T.__values__ = n, h ? M.__wrapped__ = T : h = T; var M = T; b = b.__wrapped__; } return M.__wrapped__ = u, h; } function J4() { var u = this.__wrapped__; if (u instanceof ut) { var h = u; return this.__actions__.length && (h = new ut(this)), h = h.reverse(), h.__actions__.push({ func: vh, args: [Pv], thisArg: n }), new ei(h, this.__chain__); } return this.thru(Pv); } function Q4() { return nA(this.__wrapped__, this.__actions__); } var eU = uh(function(u, h, b) { Ot.call(u, b) ? ++u[b] : fo(u, b, 1); }); function tU(u, h, b) { var T = Ye(u) ? mO : H3; return b && ar(u, h, b) && (h = n), T(u, De(h, 3)); } function nU(u, h) { var b = Ye(u) ? ia : BO; return b(u, De(h, 3)); } var rU = hA(DA), iU = hA(IA); function oU(u, h) { return Bn(bh(u, h), 1); } function aU(u, h) { return Bn(bh(u, h), z); } function sU(u, h, b) { return b = b === n ? 1 : Ze(b), Bn(bh(u, h), b); } function WA(u, h) { var b = Ye(u) ? Jr : la; return b(u, De(h, 3)); } function zA(u, h) { var b = Ye(u) ? T5 : LO; return b(u, De(h, 3)); } var lU = uh(function(u, h, b) { Ot.call(u, b) ? u[b].push(h) : fo(u, b, [h]); }); function cU(u, h, b, T) { u = yr(u) ? u : bl(u), b = b && !T ? Ze(b) : 0; var M = u.length; return b < 0 && (b = bn(M + b, 0)), Oh(u) ? b <= M && u.indexOf(h, b) > -1 : !!M && sl(u, h, b) > -1; } var uU = nt(function(u, h, b) { var T = -1, M = typeof h == "function", B = yr(u) ? ie(u.length) : []; return la(u, function(G) { B[++T] = M ? Cr(h, G, b) : du(G, h, b); }), B; }), fU = uh(function(u, h, b) { fo(u, b, h); }); function bh(u, h) { var b = Ye(u) ? Gt : HO; return b(u, De(h, 3)); } function dU(u, h, b, T) { return u == null ? [] : (Ye(h) || (h = h == null ? [] : [h]), b = T ? n : b, Ye(b) || (b = b == null ? [] : [b]), qO(u, h, b)); } var hU = uh(function(u, h, b) { u[b ? 0 : 1].push(h); }, function() { return [[], []]; }); function pU(u, h, b) { var T = Ye(u) ? Fy : bO, M = arguments.length < 3; return T(u, De(h, 4), b, M, la); } function mU(u, h, b) { var T = Ye(u) ? P5 : bO, M = arguments.length < 3; return T(u, De(h, 4), b, M, LO); } function gU(u, h) { var b = Ye(u) ? ia : BO; return b(u, _h(De(h, 3))); } function yU(u) { var h = Ye(u) ? DO : cV; return h(u); } function vU(u, h, b) { (b ? ar(u, h, b) : h === n) ? h = 1 : h = Ze(h); var T = Ye(u) ? F3 : uV; return T(u, h); } function bU(u) { var h = Ye(u) ? W3 : dV; return h(u); } function xU(u) { if (u == null) return 0; if (yr(u)) return Oh(u) ? cl(u) : u.length; var h = Jn(u); return h == de || h == Oe ? u.size : ov(u).length; } function wU(u, h, b) { var T = Ye(u) ? Wy : hV; return b && ar(u, h, b) && (h = n), T(u, De(h, 3)); } var _U = nt(function(u, h) { if (u == null) return []; var b = h.length; return b > 1 && ar(u, h[0], h[1]) ? h = [] : b > 2 && ar(h[0], h[1], h[2]) && (h = [h[0]]), qO(u, Bn(h, 1), []); }), xh = n3 || function() { return Ln.Date.now(); }; function SU(u, h) { if (typeof h != "function") throw new Qr(a); return u = Ze(u), function() { if (--u < 1) return h.apply(this, arguments); }; } function VA(u, h, b) { return h = b ? n : h, h = u && h == null ? u.length : h, ho(u, P, n, n, n, n, h); } function UA(u, h) { var b; if (typeof h != "function") throw new Qr(a); return u = Ze(u), function() { return --u > 0 && (b = h.apply(this, arguments)), u <= 1 && (h = n), b; }; } var Ev = nt(function(u, h, b) { var T = v; if (b.length) { var M = aa(b, yl(Ev)); T |= _; } return ho(u, T, h, b, M); }), HA = nt(function(u, h, b) { var T = v | x; if (b.length) { var M = aa(b, yl(HA)); T |= _; } return ho(h, T, u, b, M); }); function KA(u, h, b) { h = b ? n : h; var T = ho(u, S, n, n, n, n, n, h); return T.placeholder = KA.placeholder, T; } function GA(u, h, b) { h = b ? n : h; var T = ho(u, A, n, n, n, n, n, h); return T.placeholder = GA.placeholder, T; } function YA(u, h, b) { var T, M, B, G, q, J, he = 0, me = !1, ye = !1, xe = !0; if (typeof u != "function") throw new Qr(a); h = ii(h) || 0, Jt(b) && (me = !!b.leading, ye = "maxWait" in b, B = ye ? bn(ii(b.maxWait) || 0, h) : B, xe = "trailing" in b ? !!b.trailing : xe); function Ce(sn) { var xi = T, vo = M; return T = M = n, he = sn, G = u.apply(vo, xi), G; } function Re(sn) { return he = sn, q = yu(ot, h), me ? Ce(sn) : G; } function et(sn) { var xi = sn - J, vo = sn - he, hT = h - xi; return ye ? Zn(hT, B - vo) : hT; } function je(sn) { var xi = sn - J, vo = sn - he; return J === n || xi >= h || xi < 0 || ye && vo >= B; } function ot() { var sn = xh(); if (je(sn)) return ft(sn); q = yu(ot, et(sn)); } function ft(sn) { return q = n, xe && T ? Ce(sn) : (T = M = n, G); } function Nr() { q !== n && iA(q), he = 0, T = J = M = q = n; } function sr() { return q === n ? G : ft(xh()); } function $r() { var sn = xh(), xi = je(sn); if (T = arguments, M = this, J = sn, xi) { if (q === n) return Re(J); if (ye) return iA(q), q = yu(ot, h), Ce(J); } return q === n && (q = yu(ot, h)), G; } return $r.cancel = Nr, $r.flush = sr, $r; } var OU = nt(function(u, h) { return jO(u, 1, h); }), AU = nt(function(u, h, b) { return jO(u, ii(h) || 0, b); }); function TU(u) { return ho(u, k); } function wh(u, h) { if (typeof u != "function" || h != null && typeof h != "function") throw new Qr(a); var b = function() { var T = arguments, M = h ? h.apply(this, T) : T[0], B = b.cache; if (B.has(M)) return B.get(M); var G = u.apply(this, T); return b.cache = B.set(M, G) || B, G; }; return b.cache = new (wh.Cache || uo)(), b; } wh.Cache = uo; function _h(u) { if (typeof u != "function") throw new Qr(a); return function() { var h = arguments; switch (h.length) { case 0: return !u.call(this); case 1: return !u.call(this, h[0]); case 2: return !u.call(this, h[0], h[1]); case 3: return !u.call(this, h[0], h[1], h[2]); } return !u.apply(this, h); }; } function PU(u) { return UA(2, u); } var CU = pV(function(u, h) { h = h.length == 1 && Ye(h[0]) ? Gt(h[0], Er(De())) : Gt(Bn(h, 1), Er(De())); var b = h.length; return nt(function(T) { for (var M = -1, B = Zn(T.length, b); ++M < B; ) T[M] = h[M].call(this, T[M]); return Cr(u, this, T); }); }), kv = nt(function(u, h) { var b = aa(h, yl(kv)); return ho(u, _, n, h, b); }), qA = nt(function(u, h) { var b = aa(h, yl(qA)); return ho(u, O, n, h, b); }), EU = po(function(u, h) { return ho(u, C, n, n, n, h); }); function kU(u, h) { if (typeof u != "function") throw new Qr(a); return h = h === n ? h : Ze(h), nt(u, h); } function MU(u, h) { if (typeof u != "function") throw new Qr(a); return h = h == null ? 0 : bn(Ze(h), 0), nt(function(b) { var T = b[h], M = fa(b, 0, h); return T && oa(M, T), Cr(u, this, M); }); } function NU(u, h, b) { var T = !0, M = !0; if (typeof u != "function") throw new Qr(a); return Jt(b) && (T = "leading" in b ? !!b.leading : T, M = "trailing" in b ? !!b.trailing : M), YA(u, h, { leading: T, maxWait: h, trailing: M }); } function $U(u) { return VA(u, 1); } function DU(u, h) { return kv(pv(h), u); } function IU() { if (!arguments.length) return []; var u = arguments[0]; return Ye(u) ? u : [u]; } function RU(u) { return ti(u, m); } function jU(u, h) { return h = typeof h == "function" ? h : n, ti(u, m, h); } function LU(u) { return ti(u, d | m); } function BU(u, h) { return h = typeof h == "function" ? h : n, ti(u, d | m, h); } function FU(u, h) { return h == null || RO(u, h, En(h)); } function bi(u, h) { return u === h || u !== u && h !== h; } var WU = ph(nv), zU = ph(function(u, h) { return u >= h; }), os = zO(/* @__PURE__ */ function() { return arguments; }()) ? zO : function(u) { return tn(u) && Ot.call(u, "callee") && !CO.call(u, "callee"); }, Ye = ie.isArray, VU = cO ? Er(cO) : Z3; function yr(u) { return u != null && Sh(u.length) && !go(u); } function an(u) { return tn(u) && yr(u); } function UU(u) { return u === !0 || u === !1 || tn(u) && or(u) == ae; } var da = i3 || Wv, HU = uO ? Er(uO) : J3; function KU(u) { return tn(u) && u.nodeType === 1 && !vu(u); } function GU(u) { if (u == null) return !0; if (yr(u) && (Ye(u) || typeof u == "string" || typeof u.splice == "function" || da(u) || vl(u) || os(u))) return !u.length; var h = Jn(u); if (h == de || h == Oe) return !u.size; if (gu(u)) return !ov(u).length; for (var b in u) if (Ot.call(u, b)) return !1; return !0; } function YU(u, h) { return hu(u, h); } function qU(u, h, b) { b = typeof b == "function" ? b : n; var T = b ? b(u, h) : n; return T === n ? hu(u, h, n, b) : !!T; } function Mv(u) { if (!tn(u)) return !1; var h = or(u); return h == ge || h == se || typeof u.message == "string" && typeof u.name == "string" && !vu(u); } function XU(u) { return typeof u == "number" && kO(u); } function go(u) { if (!Jt(u)) return !1; var h = or(u); return h == X || h == $e || h == fe || h == Ie; } function XA(u) { return typeof u == "number" && u == Ze(u); } function Sh(u) { return typeof u == "number" && u > -1 && u % 1 == 0 && u <= H; } function Jt(u) { var h = typeof u; return u != null && (h == "object" || h == "function"); } function tn(u) { return u != null && typeof u == "object"; } var ZA = fO ? Er(fO) : eV; function ZU(u, h) { return u === h || iv(u, h, wv(h)); } function JU(u, h, b) { return b = typeof b == "function" ? b : n, iv(u, h, wv(h), b); } function QU(u) { return JA(u) && u != +u; } function e6(u) { if (jV(u)) throw new He(o); return VO(u); } function t6(u) { return u === null; } function n6(u) { return u == null; } function JA(u) { return typeof u == "number" || tn(u) && or(u) == ke; } function vu(u) { if (!tn(u) || or(u) != lt) return !1; var h = Xd(u); if (h === null) return !0; var b = Ot.call(h, "constructor") && h.constructor; return typeof b == "function" && b instanceof b && Kd.call(b) == J5; } var Nv = dO ? Er(dO) : tV; function r6(u) { return XA(u) && u >= -H && u <= H; } var QA = hO ? Er(hO) : nV; function Oh(u) { return typeof u == "string" || !Ye(u) && tn(u) && or(u) == Ge; } function Mr(u) { return typeof u == "symbol" || tn(u) && or(u) == Zt; } var vl = pO ? Er(pO) : rV; function i6(u) { return u === n; } function o6(u) { return tn(u) && Jn(u) == en; } function a6(u) { return tn(u) && or(u) == Yr; } var s6 = ph(av), l6 = ph(function(u, h) { return u <= h; }); function eT(u) { if (!u) return []; if (yr(u)) return Oh(u) ? yi(u) : gr(u); if (ou && u[ou]) return F5(u[ou]()); var h = Jn(u), b = h == de ? Gy : h == Oe ? Vd : bl; return b(u); } function yo(u) { if (!u) return u === 0 ? u : 0; if (u = ii(u), u === z || u === -z) { var h = u < 0 ? -1 : 1; return h * U; } return u === u ? u : 0; } function Ze(u) { var h = yo(u), b = h % 1; return h === h ? b ? h - b : h : 0; } function tT(u) { return u ? ts(Ze(u), 0, Y) : 0; } function ii(u) { if (typeof u == "number") return u; if (Mr(u)) return V; if (Jt(u)) { var h = typeof u.valueOf == "function" ? u.valueOf() : u; u = Jt(h) ? h + "" : h; } if (typeof u != "string") return u === 0 ? u : +u; u = xO(u); var b = Vz.test(u); return b || Hz.test(u) ? S5(u.slice(2), b ? 2 : 8) : zz.test(u) ? V : +u; } function nT(u) { return ji(u, vr(u)); } function c6(u) { return u ? ts(Ze(u), -H, H) : u === 0 ? u : 0; } function vt(u) { return u == null ? "" : kr(u); } var u6 = ml(function(u, h) { if (gu(h) || yr(h)) { ji(h, En(h), u); return; } for (var b in h) Ot.call(h, b) && uu(u, b, h[b]); }), rT = ml(function(u, h) { ji(h, vr(h), u); }), Ah = ml(function(u, h, b, T) { ji(h, vr(h), u, T); }), f6 = ml(function(u, h, b, T) { ji(h, En(h), u, T); }), d6 = po(Qy); function h6(u, h) { var b = pl(u); return h == null ? b : IO(b, h); } var p6 = nt(function(u, h) { u = Mt(u); var b = -1, T = h.length, M = T > 2 ? h[2] : n; for (M && ar(h[0], h[1], M) && (T = 1); ++b < T; ) for (var B = h[b], G = vr(B), q = -1, J = G.length; ++q < J; ) { var he = G[q], me = u[he]; (me === n || bi(me, fl[he]) && !Ot.call(u, he)) && (u[he] = B[he]); } return u; }), m6 = nt(function(u) { return u.push(n, xA), Cr(iT, n, u); }); function g6(u, h) { return gO(u, De(h, 3), Ri); } function y6(u, h) { return gO(u, De(h, 3), tv); } function v6(u, h) { return u == null ? u : ev(u, De(h, 3), vr); } function b6(u, h) { return u == null ? u : FO(u, De(h, 3), vr); } function x6(u, h) { return u && Ri(u, De(h, 3)); } function w6(u, h) { return u && tv(u, De(h, 3)); } function _6(u) { return u == null ? [] : ah(u, En(u)); } function S6(u) { return u == null ? [] : ah(u, vr(u)); } function $v(u, h, b) { var T = u == null ? n : ns(u, h); return T === n ? b : T; } function O6(u, h) { return u != null && SA(u, h, G3); } function Dv(u, h) { return u != null && SA(u, h, Y3); } var A6 = mA(function(u, h, b) { h != null && typeof h.toString != "function" && (h = Gd.call(h)), u[h] = b; }, Rv(br)), T6 = mA(function(u, h, b) { h != null && typeof h.toString != "function" && (h = Gd.call(h)), Ot.call(u, h) ? u[h].push(b) : u[h] = [b]; }, De), P6 = nt(du); function En(u) { return yr(u) ? $O(u) : ov(u); } function vr(u) { return yr(u) ? $O(u, !0) : iV(u); } function C6(u, h) { var b = {}; return h = De(h, 3), Ri(u, function(T, M, B) { fo(b, h(T, M, B), T); }), b; } function E6(u, h) { var b = {}; return h = De(h, 3), Ri(u, function(T, M, B) { fo(b, M, h(T, M, B)); }), b; } var k6 = ml(function(u, h, b) { sh(u, h, b); }), iT = ml(function(u, h, b, T) { sh(u, h, b, T); }), M6 = po(function(u, h) { var b = {}; if (u == null) return b; var T = !1; h = Gt(h, function(B) { return B = ua(B, u), T || (T = B.length > 1), B; }), ji(u, bv(u), b), T && (b = ti(b, d | p | m, AV)); for (var M = h.length; M--; ) fv(b, h[M]); return b; }); function N6(u, h) { return oT(u, _h(De(h))); } var $6 = po(function(u, h) { return u == null ? {} : aV(u, h); }); function oT(u, h) { if (u == null) return {}; var b = Gt(bv(u), function(T) { return [T]; }); return h = De(h), XO(u, b, function(T, M) { return h(T, M[0]); }); } function D6(u, h, b) { h = ua(h, u); var T = -1, M = h.length; for (M || (M = 1, u = n); ++T < M; ) { var B = u == null ? n : u[Li(h[T])]; B === n && (T = M, B = b), u = go(B) ? B.call(u) : B; } return u; } function I6(u, h, b) { return u == null ? u : pu(u, h, b); } function R6(u, h, b, T) { return T = typeof T == "function" ? T : n, u == null ? u : pu(u, h, b, T); } var aT = vA(En), sT = vA(vr); function j6(u, h, b) { var T = Ye(u), M = T || da(u) || vl(u); if (h = De(h, 4), b == null) { var B = u && u.constructor; M ? b = T ? new B() : [] : Jt(u) ? b = go(B) ? pl(Xd(u)) : {} : b = {}; } return (M ? Jr : Ri)(u, function(G, q, J) { return h(b, G, q, J); }), b; } function L6(u, h) { return u == null ? !0 : fv(u, h); } function B6(u, h, b) { return u == null ? u : tA(u, h, pv(b)); } function F6(u, h, b, T) { return T = typeof T == "function" ? T : n, u == null ? u : tA(u, h, pv(b), T); } function bl(u) { return u == null ? [] : Ky(u, En(u)); } function W6(u) { return u == null ? [] : Ky(u, vr(u)); } function z6(u, h, b) { return b === n && (b = h, h = n), b !== n && (b = ii(b), b = b === b ? b : 0), h !== n && (h = ii(h), h = h === h ? h : 0), ts(ii(u), h, b); } function V6(u, h, b) { return h = yo(h), b === n ? (b = h, h = 0) : b = yo(b), u = ii(u), q3(u, h, b); } function U6(u, h, b) { if (b && typeof b != "boolean" && ar(u, h, b) && (h = b = n), b === n && (typeof h == "boolean" ? (b = h, h = n) : typeof u == "boolean" && (b = u, u = n)), u === n && h === n ? (u = 0, h = 1) : (u = yo(u), h === n ? (h = u, u = 0) : h = yo(h)), u > h) { var T = u; u = h, h = T; } if (b || u % 1 || h % 1) { var M = MO(); return Zn(u + M * (h - u + _5("1e-" + ((M + "").length - 1))), h); } return lv(u, h); } var H6 = gl(function(u, h, b) { return h = h.toLowerCase(), u + (b ? lT(h) : h); }); function lT(u) { return Iv(vt(u).toLowerCase()); } function cT(u) { return u = vt(u), u && u.replace(Gz, I5).replace(d5, ""); } function K6(u, h, b) { u = vt(u), h = kr(h); var T = u.length; b = b === n ? T : ts(Ze(b), 0, T); var M = b; return b -= h.length, b >= 0 && u.slice(b, M) == h; } function G6(u) { return u = vt(u), u && nu.test(u) ? u.replace(jd, R5) : u; } function Y6(u) { return u = vt(u), u && $z.test(u) ? u.replace(ky, "\\$&") : u; } var q6 = gl(function(u, h, b) { return u + (b ? "-" : "") + h.toLowerCase(); }), X6 = gl(function(u, h, b) { return u + (b ? " " : "") + h.toLowerCase(); }), Z6 = dA("toLowerCase"); function J6(u, h, b) { u = vt(u), h = Ze(h); var T = h ? cl(u) : 0; if (!h || T >= h) return u; var M = (h - T) / 2; return hh(eh(M), b) + u + hh(Qd(M), b); } function Q6(u, h, b) { u = vt(u), h = Ze(h); var T = h ? cl(u) : 0; return h && T < h ? u + hh(h - T, b) : u; } function e8(u, h, b) { u = vt(u), h = Ze(h); var T = h ? cl(u) : 0; return h && T < h ? hh(h - T, b) + u : u; } function t8(u, h, b) { return b || h == null ? h = 0 : h && (h = +h), l3(vt(u).replace(My, ""), h || 0); } function n8(u, h, b) { return (b ? ar(u, h, b) : h === n) ? h = 1 : h = Ze(h), cv(vt(u), h); } function r8() { var u = arguments, h = vt(u[0]); return u.length < 3 ? h : h.replace(u[1], u[2]); } var i8 = gl(function(u, h, b) { return u + (b ? "_" : "") + h.toLowerCase(); }); function o8(u, h, b) { return b && typeof b != "number" && ar(u, h, b) && (h = b = n), b = b === n ? Y : b >>> 0, b ? (u = vt(u), u && (typeof h == "string" || h != null && !Nv(h)) && (h = kr(h), !h && ll(u)) ? fa(yi(u), 0, b) : u.split(h, b)) : []; } var a8 = gl(function(u, h, b) { return u + (b ? " " : "") + Iv(h); }); function s8(u, h, b) { return u = vt(u), b = b == null ? 0 : ts(Ze(b), 0, u.length), h = kr(h), u.slice(b, b + h.length) == h; } function l8(u, h, b) { var T = L.templateSettings; b && ar(u, h, b) && (h = n), u = vt(u), h = Ah({}, h, T, bA); var M = Ah({}, h.imports, T.imports, bA), B = En(M), G = Ky(M, B), q, J, he = 0, me = h.interpolate || Ld, ye = "__p += '", xe = Yy( (h.escape || Ld).source + "|" + me.source + "|" + (me === WS ? Wz : Ld).source + "|" + (h.evaluate || Ld).source + "|$", "g" ), Ce = "//# sourceURL=" + (Ot.call(h, "sourceURL") ? (h.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++y5 + "]") + ` `; u.replace(xe, function(je, ot, ft, Nr, sr, $r) { return ft || (ft = Nr), ye += u.slice(he, $r).replace(Yz, j5), ot && (q = !0, ye += `' + __e(` + ot + `) + '`), sr && (J = !0, ye += `'; ` + sr + `; __p += '`), ft && (ye += `' + ((__t = (` + ft + `)) == null ? '' : __t) + '`), he = $r + je.length, je; }), ye += `'; `; var Re = Ot.call(h, "variable") && h.variable; if (!Re) ye = `with (obj) { ` + ye + ` } `; else if (Bz.test(Re)) throw new He(s); ye = (J ? ye.replace(fn, "") : ye).replace(Xr, "$1").replace(yt, "$1;"), ye = "function(" + (Re || "obj") + `) { ` + (Re ? "" : `obj || (obj = {}); `) + "var __t, __p = ''" + (q ? ", __e = _.escape" : "") + (J ? `, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } ` : `; `) + ye + `return __p }`; var et = fT(function() { return gt(B, Ce + "return " + ye).apply(n, G); }); if (et.source = ye, Mv(et)) throw et; return et; } function c8(u) { return vt(u).toLowerCase(); } function u8(u) { return vt(u).toUpperCase(); } function f8(u, h, b) { if (u = vt(u), u && (b || h === n)) return xO(u); if (!u || !(h = kr(h))) return u; var T = yi(u), M = yi(h), B = wO(T, M), G = _O(T, M) + 1; return fa(T, B, G).join(""); } function d8(u, h, b) { if (u = vt(u), u && (b || h === n)) return u.slice(0, OO(u) + 1); if (!u || !(h = kr(h))) return u; var T = yi(u), M = _O(T, yi(h)) + 1; return fa(T, 0, M).join(""); } function h8(u, h, b) { if (u = vt(u), u && (b || h === n)) return u.replace(My, ""); if (!u || !(h = kr(h))) return u; var T = yi(u), M = wO(T, yi(h)); return fa(T, M).join(""); } function p8(u, h) { var b = I, T = $; if (Jt(h)) { var M = "separator" in h ? h.separator : M; b = "length" in h ? Ze(h.length) : b, T = "omission" in h ? kr(h.omission) : T; } u = vt(u); var B = u.length; if (ll(u)) { var G = yi(u); B = G.length; } if (b >= B) return u; var q = b - cl(T); if (q < 1) return T; var J = G ? fa(G, 0, q).join("") : u.slice(0, q); if (M === n) return J + T; if (G && (q += J.length - q), Nv(M)) { if (u.slice(q).search(M)) { var he, me = J; for (M.global || (M = Yy(M.source, vt(zS.exec(M)) + "g")), M.lastIndex = 0; he = M.exec(me); ) var ye = he.index; J = J.slice(0, ye === n ? q : ye); } } else if (u.indexOf(kr(M), q) != q) { var xe = J.lastIndexOf(M); xe > -1 && (J = J.slice(0, xe)); } return J + T; } function m8(u) { return u = vt(u), u && Ey.test(u) ? u.replace(Rd, U5) : u; } var g8 = gl(function(u, h, b) { return u + (b ? " " : "") + h.toUpperCase(); }), Iv = dA("toUpperCase"); function uT(u, h, b) { return u = vt(u), h = b ? n : h, h === n ? B5(u) ? G5(u) : k5(u) : u.match(h) || []; } var fT = nt(function(u, h) { try { return Cr(u, n, h); } catch (b) { return Mv(b) ? b : new He(b); } }), y8 = po(function(u, h) { return Jr(h, function(b) { b = Li(b), fo(u, b, Ev(u[b], u)); }), u; }); function v8(u) { var h = u == null ? 0 : u.length, b = De(); return u = h ? Gt(u, function(T) { if (typeof T[1] != "function") throw new Qr(a); return [b(T[0]), T[1]]; }) : [], nt(function(T) { for (var M = -1; ++M < h; ) { var B = u[M]; if (Cr(B[0], this, T)) return Cr(B[1], this, T); } }); } function b8(u) { return U3(ti(u, d)); } function Rv(u) { return function() { return u; }; } function x8(u, h) { return u == null || u !== u ? h : u; } var w8 = pA(), _8 = pA(!0); function br(u) { return u; } function jv(u) { return UO(typeof u == "function" ? u : ti(u, d)); } function S8(u) { return KO(ti(u, d)); } function O8(u, h) { return GO(u, ti(h, d)); } var A8 = nt(function(u, h) { return function(b) { return du(b, u, h); }; }), T8 = nt(function(u, h) { return function(b) { return du(u, b, h); }; }); function Lv(u, h, b) { var T = En(h), M = ah(h, T); b == null && !(Jt(h) && (M.length || !T.length)) && (b = h, h = u, u = this, M = ah(h, En(h))); var B = !(Jt(b) && "chain" in b) || !!b.chain, G = go(u); return Jr(M, function(q) { var J = h[q]; u[q] = J, G && (u.prototype[q] = function() { var he = this.__chain__; if (B || he) { var me = u(this.__wrapped__), ye = me.__actions__ = gr(this.__actions__); return ye.push({ func: J, args: arguments, thisArg: u }), me.__chain__ = he, me; } return J.apply(u, oa([this.value()], arguments)); }); }), u; } function P8() { return Ln._ === this && (Ln._ = Q5), this; } function Bv() { } function C8(u) { return u = Ze(u), nt(function(h) { return YO(h, u); }); } var E8 = gv(Gt), k8 = gv(mO), M8 = gv(Wy); function dT(u) { return Sv(u) ? zy(Li(u)) : sV(u); } function N8(u) { return function(h) { return u == null ? n : ns(u, h); }; } var $8 = gA(), D8 = gA(!0); function Fv() { return []; } function Wv() { return !1; } function I8() { return {}; } function R8() { return ""; } function j8() { return !0; } function L8(u, h) { if (u = Ze(u), u < 1 || u > H) return []; var b = Y, T = Zn(u, Y); h = De(h), u -= Y; for (var M = Hy(T, h); ++b < u; ) h(b); return M; } function B8(u) { return Ye(u) ? Gt(u, Li) : Mr(u) ? [u] : gr(NA(vt(u))); } function F8(u) { var h = ++Z5; return vt(u) + h; } var W8 = dh(function(u, h) { return u + h; }, 0), z8 = yv("ceil"), V8 = dh(function(u, h) { return u / h; }, 1), U8 = yv("floor"); function H8(u) { return u && u.length ? oh(u, br, nv) : n; } function K8(u, h) { return u && u.length ? oh(u, De(h, 2), nv) : n; } function G8(u) { return vO(u, br); } function Y8(u, h) { return vO(u, De(h, 2)); } function q8(u) { return u && u.length ? oh(u, br, av) : n; } function X8(u, h) { return u && u.length ? oh(u, De(h, 2), av) : n; } var Z8 = dh(function(u, h) { return u * h; }, 1), J8 = yv("round"), Q8 = dh(function(u, h) { return u - h; }, 0); function eH(u) { return u && u.length ? Uy(u, br) : 0; } function tH(u, h) { return u && u.length ? Uy(u, De(h, 2)) : 0; } return L.after = SU, L.ary = VA, L.assign = u6, L.assignIn = rT, L.assignInWith = Ah, L.assignWith = f6, L.at = d6, L.before = UA, L.bind = Ev, L.bindAll = y8, L.bindKey = HA, L.castArray = IU, L.chain = FA, L.chunk = UV, L.compact = HV, L.concat = KV, L.cond = v8, L.conforms = b8, L.constant = Rv, L.countBy = eU, L.create = h6, L.curry = KA, L.curryRight = GA, L.debounce = YA, L.defaults = p6, L.defaultsDeep = m6, L.defer = OU, L.delay = AU, L.difference = GV, L.differenceBy = YV, L.differenceWith = qV, L.drop = XV, L.dropRight = ZV, L.dropRightWhile = JV, L.dropWhile = QV, L.fill = e4, L.filter = nU, L.flatMap = oU, L.flatMapDeep = aU, L.flatMapDepth = sU, L.flatten = RA, L.flattenDeep = t4, L.flattenDepth = n4, L.flip = TU, L.flow = w8, L.flowRight = _8, L.fromPairs = r4, L.functions = _6, L.functionsIn = S6, L.groupBy = lU, L.initial = o4, L.intersection = a4, L.intersectionBy = s4, L.intersectionWith = l4, L.invert = A6, L.invertBy = T6, L.invokeMap = uU, L.iteratee = jv, L.keyBy = fU, L.keys = En, L.keysIn = vr, L.map = bh, L.mapKeys = C6, L.mapValues = E6, L.matches = S8, L.matchesProperty = O8, L.memoize = wh, L.merge = k6, L.mergeWith = iT, L.method = A8, L.methodOf = T8, L.mixin = Lv, L.negate = _h, L.nthArg = C8, L.omit = M6, L.omitBy = N6, L.once = PU, L.orderBy = dU, L.over = E8, L.overArgs = CU, L.overEvery = k8, L.overSome = M8, L.partial = kv, L.partialRight = qA, L.partition = hU, L.pick = $6, L.pickBy = oT, L.property = dT, L.propertyOf = N8, L.pull = d4, L.pullAll = LA, L.pullAllBy = h4, L.pullAllWith = p4, L.pullAt = m4, L.range = $8, L.rangeRight = D8, L.rearg = EU, L.reject = gU, L.remove = g4, L.rest = kU, L.reverse = Pv, L.sampleSize = vU, L.set = I6, L.setWith = R6, L.shuffle = bU, L.slice = y4, L.sortBy = _U, L.sortedUniq = O4, L.sortedUniqBy = A4, L.split = o8, L.spread = MU, L.tail = T4, L.take = P4, L.takeRight = C4, L.takeRightWhile = E4, L.takeWhile = k4, L.tap = H4, L.throttle = NU, L.thru = vh, L.toArray = eT, L.toPairs = aT, L.toPairsIn = sT, L.toPath = B8, L.toPlainObject = nT, L.transform = j6, L.unary = $U, L.union = M4, L.unionBy = N4, L.unionWith = $4, L.uniq = D4, L.uniqBy = I4, L.uniqWith = R4, L.unset = L6, L.unzip = Cv, L.unzipWith = BA, L.update = B6, L.updateWith = F6, L.values = bl, L.valuesIn = W6, L.without = j4, L.words = uT, L.wrap = DU, L.xor = L4, L.xorBy = B4, L.xorWith = F4, L.zip = W4, L.zipObject = z4, L.zipObjectDeep = V4, L.zipWith = U4, L.entries = aT, L.entriesIn = sT, L.extend = rT, L.extendWith = Ah, Lv(L, L), L.add = W8, L.attempt = fT, L.camelCase = H6, L.capitalize = lT, L.ceil = z8, L.clamp = z6, L.clone = RU, L.cloneDeep = LU, L.cloneDeepWith = BU, L.cloneWith = jU, L.conformsTo = FU, L.deburr = cT, L.defaultTo = x8, L.divide = V8, L.endsWith = K6, L.eq = bi, L.escape = G6, L.escapeRegExp = Y6, L.every = tU, L.find = rU, L.findIndex = DA, L.findKey = g6, L.findLast = iU, L.findLastIndex = IA, L.findLastKey = y6, L.floor = U8, L.forEach = WA, L.forEachRight = zA, L.forIn = v6, L.forInRight = b6, L.forOwn = x6, L.forOwnRight = w6, L.get = $v, L.gt = WU, L.gte = zU, L.has = O6, L.hasIn = Dv, L.head = jA, L.identity = br, L.includes = cU, L.indexOf = i4, L.inRange = V6, L.invoke = P6, L.isArguments = os, L.isArray = Ye, L.isArrayBuffer = VU, L.isArrayLike = yr, L.isArrayLikeObject = an, L.isBoolean = UU, L.isBuffer = da, L.isDate = HU, L.isElement = KU, L.isEmpty = GU, L.isEqual = YU, L.isEqualWith = qU, L.isError = Mv, L.isFinite = XU, L.isFunction = go, L.isInteger = XA, L.isLength = Sh, L.isMap = ZA, L.isMatch = ZU, L.isMatchWith = JU, L.isNaN = QU, L.isNative = e6, L.isNil = n6, L.isNull = t6, L.isNumber = JA, L.isObject = Jt, L.isObjectLike = tn, L.isPlainObject = vu, L.isRegExp = Nv, L.isSafeInteger = r6, L.isSet = QA, L.isString = Oh, L.isSymbol = Mr, L.isTypedArray = vl, L.isUndefined = i6, L.isWeakMap = o6, L.isWeakSet = a6, L.join = c4, L.kebabCase = q6, L.last = ri, L.lastIndexOf = u4, L.lowerCase = X6, L.lowerFirst = Z6, L.lt = s6, L.lte = l6, L.max = H8, L.maxBy = K8, L.mean = G8, L.meanBy = Y8, L.min = q8, L.minBy = X8, L.stubArray = Fv, L.stubFalse = Wv, L.stubObject = I8, L.stubString = R8, L.stubTrue = j8, L.multiply = Z8, L.nth = f4, L.noConflict = P8, L.noop = Bv, L.now = xh, L.pad = J6, L.padEnd = Q6, L.padStart = e8, L.parseInt = t8, L.random = U6, L.reduce = pU, L.reduceRight = mU, L.repeat = n8, L.replace = r8, L.result = D6, L.round = J8, L.runInContext = Z, L.sample = yU, L.size = xU, L.snakeCase = i8, L.some = wU, L.sortedIndex = v4, L.sortedIndexBy = b4, L.sortedIndexOf = x4, L.sortedLastIndex = w4, L.sortedLastIndexBy = _4, L.sortedLastIndexOf = S4, L.startCase = a8, L.startsWith = s8, L.subtract = Q8, L.sum = eH, L.sumBy = tH, L.template = l8, L.times = L8, L.toFinite = yo, L.toInteger = Ze, L.toLength = tT, L.toLower = c8, L.toNumber = ii, L.toSafeInteger = c6, L.toString = vt, L.toUpper = u8, L.trim = f8, L.trimEnd = d8, L.trimStart = h8, L.truncate = p8, L.unescape = m8, L.uniqueId = F8, L.upperCase = g8, L.upperFirst = Iv, L.each = WA, L.eachRight = zA, L.first = jA, Lv(L, function() { var u = {}; return Ri(L, function(h, b) { Ot.call(L.prototype, b) || (u[b] = h); }), u; }(), { chain: !1 }), L.VERSION = r, Jr(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(u) { L[u].placeholder = L; }), Jr(["drop", "take"], function(u, h) { ut.prototype[u] = function(b) { b = b === n ? 1 : bn(Ze(b), 0); var T = this.__filtered__ && !h ? new ut(this) : this.clone(); return T.__filtered__ ? T.__takeCount__ = Zn(b, T.__takeCount__) : T.__views__.push({ size: Zn(b, Y), type: u + (T.__dir__ < 0 ? "Right" : "") }), T; }, ut.prototype[u + "Right"] = function(b) { return this.reverse()[u](b).reverse(); }; }), Jr(["filter", "map", "takeWhile"], function(u, h) { var b = h + 1, T = b == j || b == W; ut.prototype[u] = function(M) { var B = this.clone(); return B.__iteratees__.push({ iteratee: De(M, 3), type: b }), B.__filtered__ = B.__filtered__ || T, B; }; }), Jr(["head", "last"], function(u, h) { var b = "take" + (h ? "Right" : ""); ut.prototype[u] = function() { return this[b](1).value()[0]; }; }), Jr(["initial", "tail"], function(u, h) { var b = "drop" + (h ? "" : "Right"); ut.prototype[u] = function() { return this.__filtered__ ? new ut(this) : this[b](1); }; }), ut.prototype.compact = function() { return this.filter(br); }, ut.prototype.find = function(u) { return this.filter(u).head(); }, ut.prototype.findLast = function(u) { return this.reverse().find(u); }, ut.prototype.invokeMap = nt(function(u, h) { return typeof u == "function" ? new ut(this) : this.map(function(b) { return du(b, u, h); }); }), ut.prototype.reject = function(u) { return this.filter(_h(De(u))); }, ut.prototype.slice = function(u, h) { u = Ze(u); var b = this; return b.__filtered__ && (u > 0 || h < 0) ? new ut(b) : (u < 0 ? b = b.takeRight(-u) : u && (b = b.drop(u)), h !== n && (h = Ze(h), b = h < 0 ? b.dropRight(-h) : b.take(h - u)), b); }, ut.prototype.takeRightWhile = function(u) { return this.reverse().takeWhile(u).reverse(); }, ut.prototype.toArray = function() { return this.take(Y); }, Ri(ut.prototype, function(u, h) { var b = /^(?:filter|find|map|reject)|While$/.test(h), T = /^(?:head|last)$/.test(h), M = L[T ? "take" + (h == "last" ? "Right" : "") : h], B = T || /^find/.test(h); M && (L.prototype[h] = function() { var G = this.__wrapped__, q = T ? [1] : arguments, J = G instanceof ut, he = q[0], me = J || Ye(G), ye = function(ot) { var ft = M.apply(L, oa([ot], q)); return T && xe ? ft[0] : ft; }; me && b && typeof he == "function" && he.length != 1 && (J = me = !1); var xe = this.__chain__, Ce = !!this.__actions__.length, Re = B && !xe, et = J && !Ce; if (!B && me) { G = et ? G : new ut(this); var je = u.apply(G, q); return je.__actions__.push({ func: vh, args: [ye], thisArg: n }), new ei(je, xe); } return Re && et ? u.apply(this, q) : (je = this.thru(ye), Re ? T ? je.value()[0] : je.value() : je); }); }), Jr(["pop", "push", "shift", "sort", "splice", "unshift"], function(u) { var h = Ud[u], b = /^(?:push|sort|unshift)$/.test(u) ? "tap" : "thru", T = /^(?:pop|shift)$/.test(u); L.prototype[u] = function() { var M = arguments; if (T && !this.__chain__) { var B = this.value(); return h.apply(Ye(B) ? B : [], M); } return this[b](function(G) { return h.apply(Ye(G) ? G : [], M); }); }; }), Ri(ut.prototype, function(u, h) { var b = L[h]; if (b) { var T = b.name + ""; Ot.call(hl, T) || (hl[T] = []), hl[T].push({ name: h, func: b }); } }), hl[fh(n, x).name] = [{ name: "wrapper", func: n }], ut.prototype.clone = m3, ut.prototype.reverse = g3, ut.prototype.value = y3, L.prototype.at = K4, L.prototype.chain = G4, L.prototype.commit = Y4, L.prototype.next = q4, L.prototype.plant = Z4, L.prototype.reverse = J4, L.prototype.toJSON = L.prototype.valueOf = L.prototype.value = Q4, L.prototype.first = L.prototype.head, ou && (L.prototype[ou] = X4), L; }, ul = Y5(); Za ? ((Za.exports = ul)._ = ul, jy._ = ul) : Ln._ = ul; }).call(_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.c); })(Kp, Kp.exports); var oee = Kp.exports; const ux = { sm: "text-xs [&>svg]:size-4 rounded", md: "text-sm [&>svg]:size-5 rounded-md", lg: "text-base [&>svg]:size-6 rounded-md" }, Xi = { input: { sm: "py-1.5 px-2 rounded", md: "p-2.5 rounded-md", lg: "p-3 rounded-md" }, content: { sm: "p-1.5", md: "p-1.5", lg: "p-2" }, title: { sm: "p-2 text-xs", md: "p-2 text-sm", lg: "p-2 text-sm" }, item: { sm: "text-sm text-text-secondary rounded", md: "text-base text-text-secondary rounded-md", lg: "text-base text-text-secondary rounded-md" }, icon: { sm: "p-1 text-sm [&>svg]:size-4 text-icon-secondary", md: "p-2 text-base [&>svg]:size-5 text-icon-secondary", lg: "p-2 text-base [&>svg]:size-5 text-icon-secondary" }, dialog: { sm: "mt-1 rounded-md", md: "mt-1.5 rounded-lg", lg: "mt-1.5 rounded-lg" }, slashIcon: { sm: "px-2 py-0.5", md: "px-3 py-1", lg: "px-3.5 py-1" } }, aee = { primary: "bg-field-primary-background outline outline-1 outline-field-border hover:outline-border-strong", secondary: "bg-field-secondary-background outline outline-1 outline-field-border hover:outline-border-strong", ghost: "bg-field-secondary-background outline outline-1 outline-transparent" }, see = "text-icon-secondary group-hover:text-icon-primary group-focus-within:text-icon-primary", uE = { ghost: "cursor-not-allowed text-text-disabled placeholder:text-text-disabled", primary: "border-border-disabled hover:border-border-disabled bg-field-background-disabled cursor-not-allowed text-text-disabled placeholder:text-text-disabled", secondary: "border-border-disabled hover:border-border-disabled cursor-not-allowed text-text-disabled placeholder:text-text-disabled" }, Oj = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)({}), Zs = () => (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(Oj), Zo = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)( ({ className: e, size: t = "sm", open: n = !1, onOpenChange: r = () => { }, loading: i = !1, ...o }, a) => { const [s, l] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(""), [c, f] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(i ?? !1), { refs: d, floatingStyles: p, context: m } = dg({ open: n, onOpenChange: r, placement: "bottom-start", whileElementsMounted: ig, middleware: [ og(t === "sm" ? 4 : 6), ag({ padding: 10 }), SD({ apply({ rects: x, elements: w, availableHeight: S }) { w.floating.style.maxHeight = `${S}px`, w.floating.style.width = `${x.reference.width}px`, w.floating.style.fontFamily = window.getComputedStyle( w.reference ).fontFamily; } }) ] }), y = fg(m), { getReferenceProps: g, getFloatingProps: v } = hg([ y ]); return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { const x = FH(), w = (S) => { const _ = x === "Mac OS" ? S.metaKey : S.ctrlKey; if (S.key === "/" && _ && (S.preventDefault(), d.reference && d.reference.current)) { const O = d.reference.current instanceof HTMLElement ? d.reference.current.querySelector("input") : null; O && O.focus(); } }; return window.addEventListener("keydown", w), () => { window.removeEventListener("keydown", w); }; }, [d.reference]), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Oj.Provider, { value: { size: t, open: n, onOpenChange: r, refs: d, floatingStyles: p, context: m, getReferenceProps: g, getFloatingProps: v, searchTerm: s, setSearchTerm: l, isLoading: c, setIsLoading: f }, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "searchbox-wrapper box-border relative w-full", e ), ...o, ref: a } ) } ); } ); Zo.displayName = "SearchBox"; const Aj = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)( ({ className: e, type: t = "text", placeholder: n = "Search...", variant: r = "primary", disabled: i = !1, onChange: o = () => { }, ...a }, s) => { const { size: l, onOpenChange: c, refs: f, getReferenceProps: d, searchTerm: p, setSearchTerm: m } = Zs(), y = l === "lg" ? "sm" : "xs", g = (v) => { const x = v.target.value; m(x), o(x), typeof c == "function" && (x.trim() ? c(!0) : c(!1)); }; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { ref: f.setReference, className: K( "w-full group relative flex justify-center items-center gap-1.5 focus-within:z-10 transition-colors ease-in-out duration-150", aee[r], Xi.input[l], i ? uE[r] : "focus-within:ring-2 focus-within:ring-focus focus-within:ring-offset-2 focus-within:border-focus-border focus-within:hover:border-focus-border" ), ...d, children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "span", { className: K( ux[l], i ? "text-icon-disabled" : see, "flex justify-center items-center" ), children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(rD, {}) } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "input", { type: t, ref: s, className: K( ux[l], "flex-grow font-medium bg-transparent border-none outline-none border-transparent focus:ring-0 py-0", i ? uE[r] : [ "text-field-placeholder focus-within:text-field-input group-hover:text-field-input", "placeholder:text-field-placeholder" ], e ), disabled: i, value: p, onChange: g, placeholder: n, ...oee.omit(a, [ "size", "open", "onOpenChange", "loading" ]) } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( mg, { label: "⌘/", size: y, type: "rounded", variant: "neutral" } ) ] } ); } ); Aj.displayName = "SearchBox.Input"; const Tj = ({ className: e, dropdownPortalRoot: t = null, // Root element where the dropdown will be rendered. dropdownPortalId: n = "", // Id of the dropdown portal where the dropdown will be rendered. children: r, ...i }) => { const { size: o, open: a, refs: s, floatingStyles: l, getFloatingProps: c } = Zs(); return a ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(ug, { id: n, root: t, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { ref: s.setFloating, style: { ...l }, className: K( "bg-background-primary rounded-md border border-solid border-border-subtle shadow-soft-shadow-lg overflow-y-auto text-wrap", Xi.dialog[o], e ), ...c(), ...i, children: r } ) }) : null; }; Tj.displayName = "SearchBox.Content"; const Pj = ({ filter: e = !0, children: t }) => { const { searchTerm: n, isLoading: r } = Zs(); if (!e) return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { children: t }); const i = react__WEBPACK_IMPORTED_MODULE_1__.Children.toArray(t).map((o) => { if (react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(o) && o.type === O_) { const a = react__WEBPACK_IMPORTED_MODULE_1__.Children.toArray( o.props.children ).filter( (s) => react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(s) && typeof s.props.children == "string" && s.props.children.toLowerCase().includes(n.toLowerCase()) ); return a.length > 0 ? (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(o, { children: a }) : null; } return o; }).filter(Boolean); return r ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(A_, {}) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { children: i.some( (o) => react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(o) && o.type !== T_ ) ? i : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(S_, {}) }); }; Pj.displayName = "SearchBox.List"; const S_ = ({ children: e = "No results found." }) => { const { size: t } = Zs(); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "flex justify-center items-center", Xi.item[t], "text-text-tertiary p-4" ), children: e } ); }; S_.displayName = "SearchBox.Empty"; const O_ = ({ heading: e, children: t }) => { const { size: n } = Zs(); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K( Xi.content[n], Xi.item[n] ), children: [ e && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( Xi.title[n], "text-text-secondary" ), children: e } ), t ] } ); }; O_.displayName = "SearchBox.Group"; const Cj = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)( ({ className: e, icon: t, children: n, ...r }, i) => { const { size: o } = Zs(); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { ref: i, className: K( "flex items-center justify-start gap-1 p-1 hover:bg-background-secondary focus:bg-background-secondary cursor-pointer", Xi.item[o] ), ...r, children: [ t && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "span", { className: K( Xi.icon[o], "flex items-center justify-center" ), children: t } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "span", { className: K( "flex-grow p-1 font-normal cursor-pointer", Xi.item[o], e ), children: n } ) ] } ); } ); Cj.displayName = "SearchBox.Item"; const A_ = ({ loadingIcon: e = /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(d1, {}) }) => { const { size: t } = Zs(), n = react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(e) ? (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(e, { size: t }) : e; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "flex justify-center p-4", ux[t], Xi.item[t] ), children: n } ); }; A_.displayName = "SearchBox.Loading"; const T_ = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(({ className: e, ...t }, n) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "hr", { ref: n, className: K( "border-0 border-t border-border-subtle border-solid m-0", e ), ...t } )); T_.displayName = "SearchBox.Separator"; Zo.Input = Aj; Zo.Loading = A_; Zo.Separator = T_; Zo.Content = Tj; Zo.List = Pj; Zo.Empty = S_; Zo.Group = O_; Zo.Item = Cj; const Ej = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)({}), kj = () => (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(Ej), Js = ({ placement: e = "bottom", offset: t = 10, boundary: n = "clippingAncestors", children: r, className: i }) => { const [o, a] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1), { refs: s, floatingStyles: l, context: c } = dg({ open: o, onOpenChange: a, placement: e, strategy: "absolute", middleware: [ og(t), ag({ boundary: n }), _D({ boundary: n }) ], whileElementsMounted: ig }), f = c1(c), d = fg(c), p = u1(c, { role: "menu" }), { getReferenceProps: m, getFloatingProps: y } = hg([ f, d, p ]), { isMounted: g, styles: v } = ND(c, { duration: 150, initial: { opacity: 0, scale: 0.95 }, open: { opacity: 1, scale: 1 }, close: { opacity: 0, scale: 0.95 } }), x = () => a((S) => !S), w = () => a(!1); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Ej.Provider, { value: { refs: s, handleClose: w, isMounted: g, styles: v, floatingStyles: l, getFloatingProps: y }, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: K("relative inline-block", i), children: [ react__WEBPACK_IMPORTED_MODULE_1__.Children.map(r, (S) => { var A; return react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(S) && ((A = S == null ? void 0 : S.type) == null ? void 0 : A.displayName) === "DropdownMenu.Trigger" ? (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(S, { ref: s.setReference, onClick: x, ...m() }) : null; }), react__WEBPACK_IMPORTED_MODULE_1__.Children.map(r, (S) => { var A; return react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(S) && ((A = S == null ? void 0 : S.type) == null ? void 0 : A.displayName) === "DropdownMenu.Portal" ? S : null; }) ] }) } ); }; Js.displayName = "DropdownMenu"; const Mj = ({ children: e, className: t, root: n, id: r }) => { const { refs: i, floatingStyles: o, getFloatingProps: a, isMounted: s, styles: l } = kj(); return s && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(ug, { id: r, root: n, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { ref: i.setFloating, className: t, style: { ...o, ...l }, ...a(), children: react__WEBPACK_IMPORTED_MODULE_1__.Children.map(e, (c) => { var f; return ((f = c == null ? void 0 : c.type) == null ? void 0 : f.displayName) === "DropdownMenu.Content" ? c : null; }) } ) }); }; Mj.displayName = "DropdownMenu.Portal"; const Nj = react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(({ children: e, className: t, ...n }, r) => (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(e) ? react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(e, { className: K(t, e.props.className), ref: r, ...n }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { ref: r, className: K("cursor-pointer", t), role: "button", tabIndex: 0, ...n, children: e } )); Nj.displayName = "DropdownMenu.Trigger"; const $j = ({ children: e, className: t, ...n }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "border border-solid border-border-subtle rounded-md shadow-lg overflow-hidden", t ), children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Ha, { ...n, children: e }) } ); $j.displayName = "DropdownMenu.Content"; const Dj = (e) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Ha.List, { ...e }); Dj.displayName = "DropdownMenu.List"; const Ij = ({ children: e, as: t = Ha.Item, ...n }) => { var i; const { handleClose: r } = kj(); return e ? t === react__WEBPACK_IMPORTED_MODULE_1__.Fragment && (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(e) ? (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(e, { onClick: cf( (i = e.props) == null ? void 0 : i.onClick, r ) }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( t, { ...n, className: K("px-2", n.className), onClick: cf(n.onClick, r), children: e } ) : null; }; Ij.displayName = "DropdownMenu.Item"; const Rj = (e) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Ha.Separator, { ...e }); Rj.displayName = "DropdownMenu.Separator"; Js.Trigger = Nj; Js.Content = $j; Js.List = Dj; Js.Item = Ij; Js.Separator = Rj; Js.Portal = Mj; const lee = { left: { open: { x: 0 }, exit: { x: "-100%" } }, right: { open: { x: 0 }, exit: { x: "100%" } } }, jj = ({ children: e, className: t }) => { const { open: n, position: r, handleClose: i, drawerRef: o, transitionDuration: a } = Vg(); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Ys, { children: n && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "fixed inset-0", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "flex items-center justify-center h-full", { "justify-start": r === "left", "justify-end": r === "right" } ), children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( An.div, { ref: o, className: K( "flex flex-col w-120 h-full bg-background-primary shadow-2xl my-5 overflow-hidden", t ), initial: "exit", animate: "open", exit: "exit", variants: lee[r], transition: a, children: typeof e == "function" ? e({ close: i }) : e } ) } ) }) }); }; jj.displayName = "Drawer.Panel"; const Lj = ({ children: e, className: t, ...n }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: K("space-y-2 px-5 pt-5 pb-4", t), ...n, children: e }); Lj.displayName = "Drawer.Header"; const Bj = ({ children: e, as: t = "h3", className: n, ...r }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( t, { className: K( "text-base font-semibold text-text-primary m-0 p-0", n ), ...r, children: e } ); Bj.displayName = "Drawer.Title"; const Fj = ({ children: e, as: t = "p", className: n, ...r }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( t, { className: K( "text-sm font-normal text-text-secondary my-0 ml-0 mr-1 p-0", n ), ...r, children: e } ); Fj.displayName = "Drawer.Description"; const Wj = ({ children: e, className: t, ...n }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "px-5 pb-4 pt-2 flex flex-col flex-1 overflow-y-auto overflow-x-hidden", t ), ...n, children: e } ); Wj.displayName = "Drawer.Body"; const zj = ({ children: e, className: t }) => { const { design: n, handleClose: r } = Vg(), i = () => e ? typeof e == "function" ? e({ close: r }) : e : null; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "px-5 py-4 flex justify-end gap-3 mt-auto", { "bg-background-secondary": n === "footer-divided", "border-t border-b-0 border-x-0 border-solid border-border-subtle": n === "footer-bordered" }, t ), children: i() } ); }; zj.displayName = "Drawer.Footer"; const fE = ({ className: e, ...t }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "button", { className: K( "bg-transparent inline-flex justify-center items-center border-0 p-1 m-0 cursor-pointer focus:outline-none outline-none shadow-none", e ), "aria-label": "Close drawer", ...t, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)($a, { className: "size-4 text-text-primary shrink-0" }) } ), Vj = ({ children: e, as: t = react__WEBPACK_IMPORTED_MODULE_1__.Fragment, ...n }) => { const { handleClose: r } = Vg(); return e ? t === react__WEBPACK_IMPORTED_MODULE_1__.Fragment ? typeof e == "function" ? e({ close: r }) : (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(e) ? (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(e, { onClick: r }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(fE, { onClick: r, ...n }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(t, { ...n, onClick: r, children: e }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(fE, { onClick: r, ...n }); }; Vj.displayName = "Drawer.CloseButton"; const cee = { open: { opacity: 1 }, exit: { opacity: 0 } }, Uj = ({ className: e, ...t }) => { const { open: n, drawerContainerRef: r, transitionDuration: i } = Vg(); return r != null && r.current ? !!r.current && (0,react_dom__WEBPACK_IMPORTED_MODULE_2__.createPortal)( /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Ys, { children: n && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( An.div, { className: K( "fixed inset-0 -z-10 bg-background-inverse/90", e ), ...t, initial: "exit", animate: "open", exit: "exit", variants: cee, transition: i } ) }), r.current ) : null; }; Uj.displayName = "Drawer.Backdrop"; const uee = 0.2, Hj = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)({}), Vg = () => (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(Hj), Jo = ({ open: e, setOpen: t, children: n, trigger: r, className: i, exitOnClickOutside: o = !1, exitOnEsc: a = !0, design: s = "simple", position: l = "right", transitionDuration: c = uee, scrollLock: f = !0 }) => { const d = e !== void 0 && t !== void 0, [p, m] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1), y = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), g = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), v = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)( () => d ? e : p, [e, p] ), x = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)( () => d ? t : m, [m, m] ), w = () => { v || x(!0); }, S = () => { v && x(!1); }, A = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(r) ? (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(r, { onClick: cf(w, r.props.onClick) }) : typeof r == "function" ? r({ onClick: w }) : null, [r, w, S]), _ = (P) => { switch (P.key) { case "Escape": a && S(); break; } }, O = (P) => { o && y.current && !y.current.contains(P.target) && S(); }; return (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => (window.addEventListener("keydown", _), document.addEventListener("mousedown", O), () => { window.removeEventListener("keydown", _), document.removeEventListener("mousedown", O); }), [v]), (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { if (!f) return; const P = document.querySelector("html"); return v && P && (P.style.overflow = "hidden"), () => { P && (P.style.overflow = ""); }; }, [v]), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: [ A(), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Hj.Provider, { value: { open: v, setOpen: x, handleClose: S, design: s, position: l, drawerContainerRef: g, drawerRef: y, transitionDuration: { duration: c } }, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "fixed z-auto w-0 h-0 overflow-visible", i ), ref: g, role: "dialog", "aria-modal": "true", "aria-label": "drawer", children: n } ) } ) ] }); }; Jo.displayName = "Drawer"; Jo.Panel = jj; Jo.Header = Lj; Jo.Title = Bj; Jo.Description = Fj; Jo.Body = Wj; Jo.CloseButton = Vj; Jo.Footer = zj; Jo.Backdrop = Uj; const Ug = { xs: { general: "text-xs min-w-6 h-6", ellipse: "text-xs min-w-6", icon: "size-4" }, sm: { general: "text-xs min-w-8 h-8", ellipse: "text-xs min-w-8", icon: "size-4" }, md: { general: "text-sm min-w-10 h-10", ellipse: "text-sm min-w-10", icon: "size-5" }, lg: { general: "text-base min-w-12 h-12", ellipse: "text-base min-w-12", icon: "size-6" } }, Fs = { general: "group disabled:border-field-border-disabled opacity-50", text: "group-disabled:text-field-color-disabled" }, Kj = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)({ size: "sm", disabled: !1 }), Sd = () => (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(Kj), Fc = ({ size: e = "sm", disabled: t = !1, children: n, className: r, ...i }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Kj.Provider, { value: { size: e, disabled: t }, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "nav", { role: "navigation", "aria-label": "pagination", className: K( "flex w-full justify-center box-border m-0", r ), ...i, children: n } ) }); Fc.displayName = "Pagination"; const Gj = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(({ className: e, ...t }, n) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "ul", { ref: n, className: K( "m-0 p-0 w-full flex justify-center flex-row items-center gap-1", "list-none", e ), ...t } )); Gj.displayName = "Pagination.Content"; const Yj = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)( ({ isActive: e = !1, className: t, children: n, ...r }, i) => { const { disabled: o } = Sd(); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "li", { ref: i, className: K("flex", o && Fs.general), children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( P_, { isActive: e, disabled: o, className: t, ...r, children: n } ) } ); } ); Yj.displayName = "Pagination.Item"; const P_ = ({ isActive: e = !1, tag: t = "a", children: n, className: r, ...i }) => { const { size: o, disabled: a } = Sd(), s = (l) => l.preventDefault(); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Hn, { tag: t, size: o, variant: "ghost", className: K( "no-underline bg-transparent p-0 m-0 border-none", "flex justify-center items-center rounded text-button-secondary", "focus:outline focus:outline-1 focus:outline-border-subtle focus:bg-button-tertiary-hover", Ug[o].general, !a && e && "text-button-primary active:text-button-primary bg-brand-background-50", a && [ Fs.general, Fs.text, "focus:ring-transparent cursor-not-allowed" ], r ), disabled: a, ...i, onClick: (l) => cf( i.onClick || (() => { }), a ? s : () => { } )(l), children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "px-1 flex", children: n }) } ); }, qj = (e) => { const { size: t, disabled: n } = Sd(); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "li", { className: K("flex", n && Fs.general), "aria-label": "Go to previous page", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( P_, { className: K("[&>span]:flex [&>span]:items-center"), ...e, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(eD, { className: K(Ug[t].icon) }) } ) } ); }; qj.displayName = "Pagination.Previous"; const Xj = (e) => { const { size: t, disabled: n } = Sd(); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "li", { className: K("flex", n && Fs.general), "aria-label": "Go to next page", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( P_, { className: K("[&>span]:flex [&>span]:items-center"), ...e, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Zw, { className: K(Ug[t].icon) }) } ) } ); }; Xj.displayName = "Pagination.Next"; const Zj = (e) => { const { size: t, disabled: n } = Sd(); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("li", { className: K("flex", n && Fs.general), children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "span", { className: K( "flex justify-center", Ug[t].ellipse, n && Fs.general ), ...e, children: "•••" } ) }); }; Zj.displayName = "Pagination.Ellipsis"; Fc.Content = Gj; Fc.Item = Yj; Fc.Previous = qj; Fc.Next = Xj; Fc.Ellipsis = Zj; var Le; (function(e) { e.Root = "root", e.Chevron = "chevron", e.Day = "day", e.DayButton = "day_button", e.CaptionLabel = "caption_label", e.Dropdowns = "dropdowns", e.Dropdown = "dropdown", e.DropdownRoot = "dropdown_root", e.Footer = "footer", e.MonthGrid = "month_grid", e.MonthCaption = "month_caption", e.MonthsDropdown = "months_dropdown", e.Month = "month", e.Months = "months", e.Nav = "nav", e.NextMonthButton = "button_next", e.PreviousMonthButton = "button_previous", e.Week = "week", e.Weeks = "weeks", e.Weekday = "weekday", e.Weekdays = "weekdays", e.WeekNumber = "week_number", e.WeekNumberHeader = "week_number_header", e.YearsDropdown = "years_dropdown"; })(Le || (Le = {})); var Lt; (function(e) { e.disabled = "disabled", e.hidden = "hidden", e.outside = "outside", e.focused = "focused", e.today = "today"; })(Lt || (Lt = {})); var Ei; (function(e) { e.range_end = "range_end", e.range_middle = "range_middle", e.range_start = "range_start", e.selected = "selected"; })(Ei || (Ei = {})); const Jj = 6048e5, fee = 864e5, dE = Symbol.for("constructDateFrom"); function Tn(e, t) { return typeof e == "function" ? e(t) : e && typeof e == "object" && dE in e ? e[dE](t) : e instanceof Date ? new e.constructor(t) : new Date(t); } function Et(e, t) { return Tn(t || e, e); } function C_(e, t, n) { const r = Et(e, n == null ? void 0 : n.in); return isNaN(t) ? Tn(e, NaN) : (t && r.setDate(r.getDate() + t), r); } function E_(e, t, n) { const r = Et(e, n == null ? void 0 : n.in); if (isNaN(t)) return Tn(e, NaN); if (!t) return r; const i = r.getDate(), o = Tn(e, r.getTime()); o.setMonth(r.getMonth() + t + 1, 0); const a = o.getDate(); return i >= a ? o : (r.setFullYear( o.getFullYear(), o.getMonth(), i ), r); } let dee = {}; function Od() { return dee; } function Ws(e, t) { var s, l, c, f; const n = Od(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((f = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : f.weekStartsOn) ?? 0, i = Et(e, t == null ? void 0 : t.in), o = i.getDay(), a = (o < r ? 7 : 0) + o - r; return i.setDate(i.getDate() - a), i.setHours(0, 0, 0, 0), i; } function Tf(e, t) { return Ws(e, { ...t, weekStartsOn: 1 }); } function Qj(e, t) { const n = Et(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = Tn(n, 0); i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0); const o = Tf(i), a = Tn(n, 0); a.setFullYear(r, 0, 4), a.setHours(0, 0, 0, 0); const s = Tf(a); return n.getTime() >= o.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1; } function hE(e) { const t = Et(e), n = new Date( Date.UTC( t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds() ) ); return n.setUTCFullYear(t.getFullYear()), +e - +n; } function Ad(e, ...t) { const n = Tn.bind( null, t.find((r) => typeof r == "object") ); return t.map(n); } function Wi(e, t) { const n = Et(e, t == null ? void 0 : t.in); return n.setHours(0, 0, 0, 0), n; } function eL(e, t, n) { const [r, i] = Ad( n == null ? void 0 : n.in, e, t ), o = Wi(r), a = Wi(i), s = +o - hE(o), l = +a - hE(a); return Math.round((s - l) / fee); } function hee(e, t) { const n = Qj(e, t), r = Tn(e, 0); return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), Tf(r); } function pee(e, t, n) { return C_(e, t * 7, n); } function mee(e, t, n) { return E_(e, t * 12, n); } function gee(e, t) { let n, r = t == null ? void 0 : t.in; return e.forEach((i) => { !r && typeof i == "object" && (r = Tn.bind(null, i)); const o = Et(i, r); (!n || n < o || isNaN(+o)) && (n = o); }), Tn(r, n || NaN); } function yee(e, t) { let n, r = t == null ? void 0 : t.in; return e.forEach((i) => { !r && typeof i == "object" && (r = Tn.bind(null, i)); const o = Et(i, r); (!n || n > o || isNaN(+o)) && (n = o); }), Tn(r, n || NaN); } function pE(e) { return Tn(e, Date.now()); } function vee(e, t, n) { const [r, i] = Ad( n == null ? void 0 : n.in, e, t ); return +Wi(r) == +Wi(i); } function tL(e) { return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]"; } function bee(e) { return !(!tL(e) && typeof e != "number" || isNaN(+Et(e))); } function xee(e, t, n) { const [r, i] = Ad( n == null ? void 0 : n.in, e, t ), o = r.getFullYear() - i.getFullYear(), a = r.getMonth() - i.getMonth(); return o * 12 + a; } function nL(e, t) { const n = Et(e, t == null ? void 0 : t.in), r = n.getMonth(); return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n; } function rL(e, t) { const n = Et(e, t == null ? void 0 : t.in); return n.setDate(1), n.setHours(0, 0, 0, 0), n; } function wee(e, t) { const n = Et(e, t == null ? void 0 : t.in), r = n.getFullYear(); return n.setFullYear(r + 1, 0, 0), n.setHours(23, 59, 59, 999), n; } function iL(e, t) { const n = Et(e, t == null ? void 0 : t.in); return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n; } function k_(e, t) { var s, l, c, f; const n = Od(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.weekStartsOn) ?? n.weekStartsOn ?? ((f = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : f.weekStartsOn) ?? 0, i = Et(e, t == null ? void 0 : t.in), o = i.getDay(), a = (o < r ? -7 : 0) + 6 - (o - r); return i.setDate(i.getDate() + a), i.setHours(23, 59, 59, 999), i; } function _ee(e, t) { return k_(e, { ...t, weekStartsOn: 1 }); } const See = { lessThanXSeconds: { one: "less than a second", other: "less than {{count}} seconds" }, xSeconds: { one: "1 second", other: "{{count}} seconds" }, halfAMinute: "half a minute", lessThanXMinutes: { one: "less than a minute", other: "less than {{count}} minutes" }, xMinutes: { one: "1 minute", other: "{{count}} minutes" }, aboutXHours: { one: "about 1 hour", other: "about {{count}} hours" }, xHours: { one: "1 hour", other: "{{count}} hours" }, xDays: { one: "1 day", other: "{{count}} days" }, aboutXWeeks: { one: "about 1 week", other: "about {{count}} weeks" }, xWeeks: { one: "1 week", other: "{{count}} weeks" }, aboutXMonths: { one: "about 1 month", other: "about {{count}} months" }, xMonths: { one: "1 month", other: "{{count}} months" }, aboutXYears: { one: "about 1 year", other: "about {{count}} years" }, xYears: { one: "1 year", other: "{{count}} years" }, overXYears: { one: "over 1 year", other: "over {{count}} years" }, almostXYears: { one: "almost 1 year", other: "almost {{count}} years" } }, Oee = (e, t, n) => { let r; const i = See[e]; return typeof i == "string" ? r = i : t === 1 ? r = i.one : r = i.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r; }; function Tb(e) { return (t = {}) => { const n = t.width ? String(t.width) : e.defaultWidth; return e.formats[n] || e.formats[e.defaultWidth]; }; } const Aee = { full: "EEEE, MMMM do, y", long: "MMMM do, y", medium: "MMM d, y", short: "MM/dd/yyyy" }, Tee = { full: "h:mm:ss a zzzz", long: "h:mm:ss a z", medium: "h:mm:ss a", short: "h:mm a" }, Pee = { full: "{{date}} 'at' {{time}}", long: "{{date}} 'at' {{time}}", medium: "{{date}}, {{time}}", short: "{{date}}, {{time}}" }, Cee = { date: Tb({ formats: Aee, defaultWidth: "full" }), time: Tb({ formats: Tee, defaultWidth: "full" }), dateTime: Tb({ formats: Pee, defaultWidth: "full" }) }, Eee = { lastWeek: "'last' eeee 'at' p", yesterday: "'yesterday at' p", today: "'today at' p", tomorrow: "'tomorrow at' p", nextWeek: "eeee 'at' p", other: "P" }, kee = (e, t, n, r) => Eee[e]; function Au(e) { return (t, n) => { const r = n != null && n.context ? String(n.context) : "standalone"; let i; if (r === "formatting" && e.formattingValues) { const a = e.defaultFormattingWidth || e.defaultWidth, s = n != null && n.width ? String(n.width) : a; i = e.formattingValues[s] || e.formattingValues[a]; } else { const a = e.defaultWidth, s = n != null && n.width ? String(n.width) : e.defaultWidth; i = e.values[s] || e.values[a]; } const o = e.argumentCallback ? e.argumentCallback(t) : t; return i[o]; }; } const Mee = { narrow: ["B", "A"], abbreviated: ["BC", "AD"], wide: ["Before Christ", "Anno Domini"] }, Nee = { narrow: ["1", "2", "3", "4"], abbreviated: ["Q1", "Q2", "Q3", "Q4"], wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"] }, $ee = { narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], abbreviated: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ], wide: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ] }, Dee = { narrow: ["S", "M", "T", "W", "T", "F", "S"], short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], wide: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ] }, Iee = { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" } }, Ree = { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" } }, jee = (e, t) => { const n = Number(e), r = n % 100; if (r > 20 || r < 10) switch (r % 10) { case 1: return n + "st"; case 2: return n + "nd"; case 3: return n + "rd"; } return n + "th"; }, Lee = { ordinalNumber: jee, era: Au({ values: Mee, defaultWidth: "wide" }), quarter: Au({ values: Nee, defaultWidth: "wide", argumentCallback: (e) => e - 1 }), month: Au({ values: $ee, defaultWidth: "wide" }), day: Au({ values: Dee, defaultWidth: "wide" }), dayPeriod: Au({ values: Iee, defaultWidth: "wide", formattingValues: Ree, defaultFormattingWidth: "wide" }) }; function Tu(e) { return (t, n = {}) => { const r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], o = t.match(i); if (!o) return null; const a = o[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(s) ? Fee(s, (d) => d.test(a)) : ( // [TODO] -- I challenge you to fix the type Bee(s, (d) => d.test(a)) ); let c; c = e.valueCallback ? e.valueCallback(l) : l, c = n.valueCallback ? ( // [TODO] -- I challenge you to fix the type n.valueCallback(c) ) : c; const f = t.slice(a.length); return { value: c, rest: f }; }; } function Bee(e, t) { for (const n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n; } function Fee(e, t) { for (let n = 0; n < e.length; n++) if (t(e[n])) return n; } function Wee(e) { return (t, n = {}) => { const r = t.match(e.matchPattern); if (!r) return null; const i = r[0], o = t.match(e.parsePattern); if (!o) return null; let a = e.valueCallback ? e.valueCallback(o[0]) : o[0]; a = n.valueCallback ? n.valueCallback(a) : a; const s = t.slice(i.length); return { value: a, rest: s }; }; } const zee = /^(\d+)(th|st|nd|rd)?/i, Vee = /\d+/i, Uee = { narrow: /^(b|a)/i, abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, wide: /^(before christ|before common era|anno domini|common era)/i }, Hee = { any: [/^b/i, /^(a|c)/i] }, Kee = { narrow: /^[1234]/i, abbreviated: /^q[1234]/i, wide: /^[1234](th|st|nd|rd)? quarter/i }, Gee = { any: [/1/i, /2/i, /3/i, /4/i] }, Yee = { narrow: /^[jfmasond]/i, abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i }, qee = { narrow: [ /^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i ], any: [ /^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i ] }, Xee = { narrow: /^[smtwf]/i, short: /^(su|mo|tu|we|th|fr|sa)/i, abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i }, Zee = { narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] }, Jee = { narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i }, Qee = { any: { am: /^a/i, pm: /^p/i, midnight: /^mi/i, noon: /^no/i, morning: /morning/i, afternoon: /afternoon/i, evening: /evening/i, night: /night/i } }, ete = { ordinalNumber: Wee({ matchPattern: zee, parsePattern: Vee, valueCallback: (e) => parseInt(e, 10) }), era: Tu({ matchPatterns: Uee, defaultMatchWidth: "wide", parsePatterns: Hee, defaultParseWidth: "any" }), quarter: Tu({ matchPatterns: Kee, defaultMatchWidth: "wide", parsePatterns: Gee, defaultParseWidth: "any", valueCallback: (e) => e + 1 }), month: Tu({ matchPatterns: Yee, defaultMatchWidth: "wide", parsePatterns: qee, defaultParseWidth: "any" }), day: Tu({ matchPatterns: Xee, defaultMatchWidth: "wide", parsePatterns: Zee, defaultParseWidth: "any" }), dayPeriod: Tu({ matchPatterns: Jee, defaultMatchWidth: "any", parsePatterns: Qee, defaultParseWidth: "any" }) }, Hg = { code: "en-US", formatDistance: Oee, formatLong: Cee, formatRelative: kee, localize: Lee, match: ete, options: { weekStartsOn: 0, firstWeekContainsDate: 1 } }; function tte(e, t) { const n = Et(e, t == null ? void 0 : t.in); return eL(n, iL(n)) + 1; } function oL(e, t) { const n = Et(e, t == null ? void 0 : t.in), r = +Tf(n) - +hee(n); return Math.round(r / Jj) + 1; } function aL(e, t) { var f, d, p, m; const n = Et(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = Od(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (f = t == null ? void 0 : t.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((m = (p = i.locale) == null ? void 0 : p.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, a = Tn((t == null ? void 0 : t.in) || e, 0); a.setFullYear(r + 1, 0, o), a.setHours(0, 0, 0, 0); const s = Ws(a, t), l = Tn((t == null ? void 0 : t.in) || e, 0); l.setFullYear(r, 0, o), l.setHours(0, 0, 0, 0); const c = Ws(l, t); return +n >= +s ? r + 1 : +n >= +c ? r : r - 1; } function nte(e, t) { var s, l, c, f; const n = Od(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : l.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((f = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = aL(e, t), o = Tn((t == null ? void 0 : t.in) || e, 0); return o.setFullYear(i, 0, r), o.setHours(0, 0, 0, 0), Ws(o, t); } function sL(e, t) { const n = Et(e, t == null ? void 0 : t.in), r = +Ws(n, t) - +nte(n, t); return Math.round(r / Jj) + 1; } function At(e, t) { const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0"); return n + r; } const ya = { // Year y(e, t) { const n = e.getFullYear(), r = n > 0 ? n : 1 - n; return At(t === "yy" ? r % 100 : r, t.length); }, // Month M(e, t) { const n = e.getMonth(); return t === "M" ? String(n + 1) : At(n + 1, 2); }, // Day of the month d(e, t) { return At(e.getDate(), t.length); }, // AM or PM a(e, t) { const n = e.getHours() / 12 >= 1 ? "pm" : "am"; switch (t) { case "a": case "aa": return n.toUpperCase(); case "aaa": return n; case "aaaaa": return n[0]; case "aaaa": default: return n === "am" ? "a.m." : "p.m."; } }, // Hour [1-12] h(e, t) { return At(e.getHours() % 12 || 12, t.length); }, // Hour [0-23] H(e, t) { return At(e.getHours(), t.length); }, // Minute m(e, t) { return At(e.getMinutes(), t.length); }, // Second s(e, t) { return At(e.getSeconds(), t.length); }, // Fraction of second S(e, t) { const n = t.length, r = e.getMilliseconds(), i = Math.trunc( r * Math.pow(10, n - 3) ); return At(i, t.length); } }, _l = { am: "am", pm: "pm", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, mE = { // Era G: function(e, t, n) { const r = e.getFullYear() > 0 ? 1 : 0; switch (t) { case "G": case "GG": case "GGG": return n.era(r, { width: "abbreviated" }); case "GGGGG": return n.era(r, { width: "narrow" }); case "GGGG": default: return n.era(r, { width: "wide" }); } }, // Year y: function(e, t, n) { if (t === "yo") { const r = e.getFullYear(), i = r > 0 ? r : 1 - r; return n.ordinalNumber(i, { unit: "year" }); } return ya.y(e, t); }, // Local week-numbering year Y: function(e, t, n, r) { const i = aL(e, r), o = i > 0 ? i : 1 - i; if (t === "YY") { const a = o % 100; return At(a, 2); } return t === "Yo" ? n.ordinalNumber(o, { unit: "year" }) : At(o, t.length); }, // ISO week-numbering year R: function(e, t) { const n = Qj(e); return At(n, t.length); }, // Extended year. This is a single number designating the year of this calendar system. // The main difference between `y` and `u` localizers are B.C. years: // | Year | `y` | `u` | // |------|-----|-----| // | AC 1 | 1 | 1 | // | BC 1 | 1 | 0 | // | BC 2 | 2 | -1 | // Also `yy` always returns the last two digits of a year, // while `uu` pads single digit years to 2 characters and returns other years unchanged. u: function(e, t) { const n = e.getFullYear(); return At(n, t.length); }, // Quarter Q: function(e, t, n) { const r = Math.ceil((e.getMonth() + 1) / 3); switch (t) { case "Q": return String(r); case "QQ": return At(r, 2); case "Qo": return n.ordinalNumber(r, { unit: "quarter" }); case "QQQ": return n.quarter(r, { width: "abbreviated", context: "formatting" }); case "QQQQQ": return n.quarter(r, { width: "narrow", context: "formatting" }); case "QQQQ": default: return n.quarter(r, { width: "wide", context: "formatting" }); } }, // Stand-alone quarter q: function(e, t, n) { const r = Math.ceil((e.getMonth() + 1) / 3); switch (t) { case "q": return String(r); case "qq": return At(r, 2); case "qo": return n.ordinalNumber(r, { unit: "quarter" }); case "qqq": return n.quarter(r, { width: "abbreviated", context: "standalone" }); case "qqqqq": return n.quarter(r, { width: "narrow", context: "standalone" }); case "qqqq": default: return n.quarter(r, { width: "wide", context: "standalone" }); } }, // Month M: function(e, t, n) { const r = e.getMonth(); switch (t) { case "M": case "MM": return ya.M(e, t); case "Mo": return n.ordinalNumber(r + 1, { unit: "month" }); case "MMM": return n.month(r, { width: "abbreviated", context: "formatting" }); case "MMMMM": return n.month(r, { width: "narrow", context: "formatting" }); case "MMMM": default: return n.month(r, { width: "wide", context: "formatting" }); } }, // Stand-alone month L: function(e, t, n) { const r = e.getMonth(); switch (t) { case "L": return String(r + 1); case "LL": return At(r + 1, 2); case "Lo": return n.ordinalNumber(r + 1, { unit: "month" }); case "LLL": return n.month(r, { width: "abbreviated", context: "standalone" }); case "LLLLL": return n.month(r, { width: "narrow", context: "standalone" }); case "LLLL": default: return n.month(r, { width: "wide", context: "standalone" }); } }, // Local week of year w: function(e, t, n, r) { const i = sL(e, r); return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : At(i, t.length); }, // ISO week of year I: function(e, t, n) { const r = oL(e); return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : At(r, t.length); }, // Day of the month d: function(e, t, n) { return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : ya.d(e, t); }, // Day of year D: function(e, t, n) { const r = tte(e); return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : At(r, t.length); }, // Day of week E: function(e, t, n) { const r = e.getDay(); switch (t) { case "E": case "EE": case "EEE": return n.day(r, { width: "abbreviated", context: "formatting" }); case "EEEEE": return n.day(r, { width: "narrow", context: "formatting" }); case "EEEEEE": return n.day(r, { width: "short", context: "formatting" }); case "EEEE": default: return n.day(r, { width: "wide", context: "formatting" }); } }, // Local day of week e: function(e, t, n, r) { const i = e.getDay(), o = (i - r.weekStartsOn + 8) % 7 || 7; switch (t) { case "e": return String(o); case "ee": return At(o, 2); case "eo": return n.ordinalNumber(o, { unit: "day" }); case "eee": return n.day(i, { width: "abbreviated", context: "formatting" }); case "eeeee": return n.day(i, { width: "narrow", context: "formatting" }); case "eeeeee": return n.day(i, { width: "short", context: "formatting" }); case "eeee": default: return n.day(i, { width: "wide", context: "formatting" }); } }, // Stand-alone local day of week c: function(e, t, n, r) { const i = e.getDay(), o = (i - r.weekStartsOn + 8) % 7 || 7; switch (t) { case "c": return String(o); case "cc": return At(o, t.length); case "co": return n.ordinalNumber(o, { unit: "day" }); case "ccc": return n.day(i, { width: "abbreviated", context: "standalone" }); case "ccccc": return n.day(i, { width: "narrow", context: "standalone" }); case "cccccc": return n.day(i, { width: "short", context: "standalone" }); case "cccc": default: return n.day(i, { width: "wide", context: "standalone" }); } }, // ISO day of week i: function(e, t, n) { const r = e.getDay(), i = r === 0 ? 7 : r; switch (t) { case "i": return String(i); case "ii": return At(i, t.length); case "io": return n.ordinalNumber(i, { unit: "day" }); case "iii": return n.day(r, { width: "abbreviated", context: "formatting" }); case "iiiii": return n.day(r, { width: "narrow", context: "formatting" }); case "iiiiii": return n.day(r, { width: "short", context: "formatting" }); case "iiii": default: return n.day(r, { width: "wide", context: "formatting" }); } }, // AM or PM a: function(e, t, n) { const i = e.getHours() / 12 >= 1 ? "pm" : "am"; switch (t) { case "a": case "aa": return n.dayPeriod(i, { width: "abbreviated", context: "formatting" }); case "aaa": return n.dayPeriod(i, { width: "abbreviated", context: "formatting" }).toLowerCase(); case "aaaaa": return n.dayPeriod(i, { width: "narrow", context: "formatting" }); case "aaaa": default: return n.dayPeriod(i, { width: "wide", context: "formatting" }); } }, // AM, PM, midnight, noon b: function(e, t, n) { const r = e.getHours(); let i; switch (r === 12 ? i = _l.noon : r === 0 ? i = _l.midnight : i = r / 12 >= 1 ? "pm" : "am", t) { case "b": case "bb": return n.dayPeriod(i, { width: "abbreviated", context: "formatting" }); case "bbb": return n.dayPeriod(i, { width: "abbreviated", context: "formatting" }).toLowerCase(); case "bbbbb": return n.dayPeriod(i, { width: "narrow", context: "formatting" }); case "bbbb": default: return n.dayPeriod(i, { width: "wide", context: "formatting" }); } }, // in the morning, in the afternoon, in the evening, at night B: function(e, t, n) { const r = e.getHours(); let i; switch (r >= 17 ? i = _l.evening : r >= 12 ? i = _l.afternoon : r >= 4 ? i = _l.morning : i = _l.night, t) { case "B": case "BB": case "BBB": return n.dayPeriod(i, { width: "abbreviated", context: "formatting" }); case "BBBBB": return n.dayPeriod(i, { width: "narrow", context: "formatting" }); case "BBBB": default: return n.dayPeriod(i, { width: "wide", context: "formatting" }); } }, // Hour [1-12] h: function(e, t, n) { if (t === "ho") { let r = e.getHours() % 12; return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" }); } return ya.h(e, t); }, // Hour [0-23] H: function(e, t, n) { return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : ya.H(e, t); }, // Hour [0-11] K: function(e, t, n) { const r = e.getHours() % 12; return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : At(r, t.length); }, // Hour [1-24] k: function(e, t, n) { let r = e.getHours(); return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : At(r, t.length); }, // Minute m: function(e, t, n) { return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : ya.m(e, t); }, // Second s: function(e, t, n) { return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : ya.s(e, t); }, // Fraction of second S: function(e, t) { return ya.S(e, t); }, // Timezone (ISO-8601. If offset is 0, output is always `'Z'`) X: function(e, t, n) { const r = e.getTimezoneOffset(); if (r === 0) return "Z"; switch (t) { case "X": return yE(r); case "XXXX": case "XX": return gs(r); case "XXXXX": case "XXX": default: return gs(r, ":"); } }, // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent) x: function(e, t, n) { const r = e.getTimezoneOffset(); switch (t) { case "x": return yE(r); case "xxxx": case "xx": return gs(r); case "xxxxx": case "xxx": default: return gs(r, ":"); } }, // Timezone (GMT) O: function(e, t, n) { const r = e.getTimezoneOffset(); switch (t) { case "O": case "OO": case "OOO": return "GMT" + gE(r, ":"); case "OOOO": default: return "GMT" + gs(r, ":"); } }, // Timezone (specific non-location) z: function(e, t, n) { const r = e.getTimezoneOffset(); switch (t) { case "z": case "zz": case "zzz": return "GMT" + gE(r, ":"); case "zzzz": default: return "GMT" + gs(r, ":"); } }, // Seconds timestamp t: function(e, t, n) { const r = Math.trunc(+e / 1e3); return At(r, t.length); }, // Milliseconds timestamp T: function(e, t, n) { return At(+e, t.length); } }; function gE(e, t = "") { const n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), o = r % 60; return o === 0 ? n + String(i) : n + String(i) + t + At(o, 2); } function yE(e, t) { return e % 60 === 0 ? (e > 0 ? "-" : "+") + At(Math.abs(e) / 60, 2) : gs(e, t); } function gs(e, t = "") { const n = e > 0 ? "-" : "+", r = Math.abs(e), i = At(Math.trunc(r / 60), 2), o = At(r % 60, 2); return n + i + t + o; } const vE = (e, t) => { switch (e) { case "P": return t.date({ width: "short" }); case "PP": return t.date({ width: "medium" }); case "PPP": return t.date({ width: "long" }); case "PPPP": default: return t.date({ width: "full" }); } }, lL = (e, t) => { switch (e) { case "p": return t.time({ width: "short" }); case "pp": return t.time({ width: "medium" }); case "ppp": return t.time({ width: "long" }); case "pppp": default: return t.time({ width: "full" }); } }, rte = (e, t) => { const n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2]; if (!i) return vE(e, t); let o; switch (r) { case "P": o = t.dateTime({ width: "short" }); break; case "PP": o = t.dateTime({ width: "medium" }); break; case "PPP": o = t.dateTime({ width: "long" }); break; case "PPPP": default: o = t.dateTime({ width: "full" }); break; } return o.replace("{{date}}", vE(r, t)).replace("{{time}}", lL(i, t)); }, ite = { p: lL, P: rte }, ote = /^D+$/, ate = /^Y+$/, ste = ["D", "DD", "YY", "YYYY"]; function lte(e) { return ote.test(e); } function cte(e) { return ate.test(e); } function ute(e, t, n) { const r = fte(e, t, n); if (console.warn(r), ste.includes(e)) throw new RangeError(r); } function fte(e, t, n) { const r = e[0] === "Y" ? "years" : "days of the month"; return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`; } const dte = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, hte = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, pte = /^'([^]*?)'?$/, mte = /''/g, gte = /[a-zA-Z]/; function Fn(e, t, n) { var f, d, p, m, y, g, v, x; const r = Od(), i = (n == null ? void 0 : n.locale) ?? r.locale ?? Hg, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((d = (f = n == null ? void 0 : n.locale) == null ? void 0 : f.options) == null ? void 0 : d.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((m = (p = r.locale) == null ? void 0 : p.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, a = (n == null ? void 0 : n.weekStartsOn) ?? ((g = (y = n == null ? void 0 : n.locale) == null ? void 0 : y.options) == null ? void 0 : g.weekStartsOn) ?? r.weekStartsOn ?? ((x = (v = r.locale) == null ? void 0 : v.options) == null ? void 0 : x.weekStartsOn) ?? 0, s = Et(e, n == null ? void 0 : n.in); if (!bee(s)) throw new RangeError("Invalid time value"); let l = t.match(hte).map((w) => { const S = w[0]; if (S === "p" || S === "P") { const A = ite[S]; return A(w, i.formatLong); } return w; }).join("").match(dte).map((w) => { if (w === "''") return { isToken: !1, value: "'" }; const S = w[0]; if (S === "'") return { isToken: !1, value: yte(w) }; if (mE[S]) return { isToken: !0, value: w }; if (S.match(gte)) throw new RangeError( "Format string contains an unescaped latin alphabet character `" + S + "`" ); return { isToken: !1, value: w }; }); i.localize.preprocessor && (l = i.localize.preprocessor(s, l)); const c = { firstWeekContainsDate: o, weekStartsOn: a, locale: i }; return l.map((w) => { if (!w.isToken) return w.value; const S = w.value; (!(n != null && n.useAdditionalWeekYearTokens) && cte(S) || !(n != null && n.useAdditionalDayOfYearTokens) && lte(S)) && ute(S, t, String(e)); const A = mE[S[0]]; return A(s, S, i.localize, c); }).join(""); } function yte(e) { const t = e.match(pte); return t ? t[1].replace(mte, "'") : e; } function vte(e, t) { const n = Et(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = n.getMonth(), o = Tn(n, 0); return o.setFullYear(r, i + 1, 0), o.setHours(0, 0, 0, 0), o.getDate(); } function fx(e, t) { return +Et(e) > +Et(t); } function dx(e, t) { return +Et(e) < +Et(t); } function bE(e, t) { return +Et(e) == +Et(t); } function bte(e, t, n) { const [r, i] = Ad( n == null ? void 0 : n.in, e, t ); return r.getFullYear() === i.getFullYear() && r.getMonth() === i.getMonth(); } function xte(e, t, n) { const [r, i] = Ad( n == null ? void 0 : n.in, e, t ); return r.getFullYear() === i.getFullYear(); } function xE(e, t, n) { return C_(e, -t, n); } function wte(e, t, n) { const r = Et(e, n == null ? void 0 : n.in), i = r.getFullYear(), o = r.getDate(), a = Tn(e, 0); a.setFullYear(i, t, 15), a.setHours(0, 0, 0, 0); const s = vte(a); return r.setMonth(t, Math.min(o, s)), r; } function _te(e, t, n) { const r = Et(e, n == null ? void 0 : n.in); return isNaN(+r) ? Tn(e, NaN) : (r.setFullYear(t), r); } function wE(e) { return Wi(Date.now(), e); } function _E(e) { const t = pE(e == null ? void 0 : e.in), n = t.getFullYear(), r = t.getMonth(), i = t.getDate(), o = pE(e == null ? void 0 : e.in); return o.setFullYear(n, r, i - 1), o.setHours(0, 0, 0, 0), o; } function Ste(e, t, n) { return E_(e, -t, n); } class Qo { /** * Creates an instance of DateLib. * * @param options The options for the date library. * @param overrides Overrides for the date library functions. */ constructor(t, n) { this.Date = Date, this.addDays = (r, i) => { var o; return (o = this.overrides) != null && o.addDays ? this.overrides.addDays(r, i) : C_(r, i); }, this.addMonths = (r, i) => { var o; return (o = this.overrides) != null && o.addMonths ? this.overrides.addMonths(r, i) : E_(r, i); }, this.addWeeks = (r, i) => { var o; return (o = this.overrides) != null && o.addWeeks ? this.overrides.addWeeks(r, i) : pee(r, i); }, this.addYears = (r, i) => { var o; return (o = this.overrides) != null && o.addYears ? this.overrides.addYears(r, i) : mee(r, i); }, this.differenceInCalendarDays = (r, i) => { var o; return (o = this.overrides) != null && o.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(r, i) : eL(r, i); }, this.differenceInCalendarMonths = (r, i) => { var o; return (o = this.overrides) != null && o.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, i) : xee(r, i); }, this.endOfISOWeek = (r) => { var i; return (i = this.overrides) != null && i.endOfISOWeek ? this.overrides.endOfISOWeek(r) : _ee(r); }, this.endOfMonth = (r) => { var i; return (i = this.overrides) != null && i.endOfMonth ? this.overrides.endOfMonth(r) : nL(r); }, this.endOfWeek = (r) => { var i; return (i = this.overrides) != null && i.endOfWeek ? this.overrides.endOfWeek(r, this.options) : k_(r, this.options); }, this.endOfYear = (r) => { var i; return (i = this.overrides) != null && i.endOfYear ? this.overrides.endOfYear(r) : wee(r); }, this.format = (r, i) => { var o; return (o = this.overrides) != null && o.format ? this.overrides.format(r, i, this.options) : Fn(r, i, this.options); }, this.getISOWeek = (r) => { var i; return (i = this.overrides) != null && i.getISOWeek ? this.overrides.getISOWeek(r) : oL(r); }, this.getWeek = (r) => { var i; return (i = this.overrides) != null && i.getWeek ? this.overrides.getWeek(r, this.options) : sL(r, this.options); }, this.isAfter = (r, i) => { var o; return (o = this.overrides) != null && o.isAfter ? this.overrides.isAfter(r, i) : fx(r, i); }, this.isBefore = (r, i) => { var o; return (o = this.overrides) != null && o.isBefore ? this.overrides.isBefore(r, i) : dx(r, i); }, this.isDate = (r) => { var i; return (i = this.overrides) != null && i.isDate ? this.overrides.isDate(r) : tL(r); }, this.isSameDay = (r, i) => { var o; return (o = this.overrides) != null && o.isSameDay ? this.overrides.isSameDay(r, i) : vee(r, i); }, this.isSameMonth = (r, i) => { var o; return (o = this.overrides) != null && o.isSameMonth ? this.overrides.isSameMonth(r, i) : bte(r, i); }, this.isSameYear = (r, i) => { var o; return (o = this.overrides) != null && o.isSameYear ? this.overrides.isSameYear(r, i) : xte(r, i); }, this.max = (r) => { var i; return (i = this.overrides) != null && i.max ? this.overrides.max(r) : gee(r); }, this.min = (r) => { var i; return (i = this.overrides) != null && i.min ? this.overrides.min(r) : yee(r); }, this.setMonth = (r, i) => { var o; return (o = this.overrides) != null && o.setMonth ? this.overrides.setMonth(r, i) : wte(r, i); }, this.setYear = (r, i) => { var o; return (o = this.overrides) != null && o.setYear ? this.overrides.setYear(r, i) : _te(r, i); }, this.startOfDay = (r) => { var i; return (i = this.overrides) != null && i.startOfDay ? this.overrides.startOfDay(r) : Wi(r); }, this.startOfISOWeek = (r) => { var i; return (i = this.overrides) != null && i.startOfISOWeek ? this.overrides.startOfISOWeek(r) : Tf(r); }, this.startOfMonth = (r) => { var i; return (i = this.overrides) != null && i.startOfMonth ? this.overrides.startOfMonth(r) : rL(r); }, this.startOfWeek = (r) => { var i; return (i = this.overrides) != null && i.startOfWeek ? this.overrides.startOfWeek(r, this.options) : Ws(r, this.options); }, this.startOfYear = (r) => { var i; return (i = this.overrides) != null && i.startOfYear ? this.overrides.startOfYear(r) : iL(r); }, this.options = { locale: Hg, ...t }, this.overrides = n; } } const Qs = new Qo(); function Ote(e, t, n = {}) { return Object.entries(e).filter(([, i]) => i === !0).reduce((i, [o]) => (n[o] ? i.push(n[o]) : t[Lt[o]] ? i.push(t[Lt[o]]) : t[Ei[o]] && i.push(t[Ei[o]]), i), [t[Le.Day]]); } function Ate(e) { return react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", { ...e }); } function Tte(e) { return react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { ...e }); } function Pte(e) { const { size: t = 24, orientation: n = "left", className: r } = e; return react__WEBPACK_IMPORTED_MODULE_1__.createElement( "svg", { className: r, width: t, height: t, viewBox: "0 0 24 24" }, n === "up" && react__WEBPACK_IMPORTED_MODULE_1__.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }), n === "down" && react__WEBPACK_IMPORTED_MODULE_1__.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }), n === "left" && react__WEBPACK_IMPORTED_MODULE_1__.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }), n === "right" && react__WEBPACK_IMPORTED_MODULE_1__.createElement("polygon", { points: "8 18.612 14.1888889 12.5 8 6.37733333 9.91111111 4.5 18 12.5 9.91111111 20.5" }) ); } function Cte(e) { const { day: t, modifiers: n, ...r } = e; return react__WEBPACK_IMPORTED_MODULE_1__.createElement("td", { ...r }); } function Ete(e) { const { day: t, modifiers: n, ...r } = e, i = react__WEBPACK_IMPORTED_MODULE_1__.useRef(null); return react__WEBPACK_IMPORTED_MODULE_1__.useEffect(() => { var o; n.focused && ((o = i.current) == null || o.focus()); }, [n.focused]), react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", { ref: i, ...r }); } function kte(e) { const { options: t, className: n, components: r, classNames: i, ...o } = e, a = [i[Le.Dropdown], n].join(" "), s = t == null ? void 0 : t.find(({ value: l }) => l === o.value); return react__WEBPACK_IMPORTED_MODULE_1__.createElement( "span", { "data-disabled": o.disabled, className: i[Le.DropdownRoot] }, react__WEBPACK_IMPORTED_MODULE_1__.createElement(r.Select, { className: a, ...o }, t == null ? void 0 : t.map(({ value: l, label: c, disabled: f }) => react__WEBPACK_IMPORTED_MODULE_1__.createElement(r.Option, { key: l, value: l, disabled: f }, c))), react__WEBPACK_IMPORTED_MODULE_1__.createElement( "span", { className: i[Le.CaptionLabel], "aria-hidden": !0 }, s == null ? void 0 : s.label, react__WEBPACK_IMPORTED_MODULE_1__.createElement(r.Chevron, { orientation: "down", size: 18, className: i[Le.Chevron] }) ) ); } function Mte(e) { return react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { ...e }); } function Nte(e) { return react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { ...e }); } function $te(e) { const { calendarMonth: t, displayIndex: n, ...r } = e; return react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { ...r }, e.children); } function Dte(e) { const { calendarMonth: t, displayIndex: n, ...r } = e; return react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { ...r }); } function Ite(e) { return react__WEBPACK_IMPORTED_MODULE_1__.createElement("table", { ...e }); } function Rte(e) { return react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { ...e }); } const cL = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)(void 0); function Wc() { const e = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(cL); if (e === void 0) throw new Error("useDayPicker() must be used within a custom component."); return e; } function jte(e) { const { components: t } = Wc(); return react__WEBPACK_IMPORTED_MODULE_1__.createElement(t.Dropdown, { ...e }); } function Lte(e) { const { onPreviousClick: t, onNextClick: n, previousMonth: r, nextMonth: i, ...o } = e, { components: a, classNames: s, labels: { labelPrevious: l, labelNext: c } } = Wc(); return react__WEBPACK_IMPORTED_MODULE_1__.createElement( "nav", { ...o }, react__WEBPACK_IMPORTED_MODULE_1__.createElement( a.PreviousMonthButton, { type: "button", className: s[Le.PreviousMonthButton], tabIndex: r ? void 0 : -1, disabled: r ? void 0 : !0, "aria-label": l(r), onClick: e.onPreviousClick }, react__WEBPACK_IMPORTED_MODULE_1__.createElement(a.Chevron, { disabled: r ? void 0 : !0, className: s[Le.Chevron], orientation: "left" }) ), react__WEBPACK_IMPORTED_MODULE_1__.createElement( a.NextMonthButton, { type: "button", className: s[Le.NextMonthButton], tabIndex: i ? void 0 : -1, disabled: i ? void 0 : !0, "aria-label": c(i), onClick: e.onNextClick }, react__WEBPACK_IMPORTED_MODULE_1__.createElement(a.Chevron, { disabled: i ? void 0 : !0, orientation: "right", className: s[Le.Chevron] }) ) ); } function Bte(e) { const { components: t } = Wc(); return react__WEBPACK_IMPORTED_MODULE_1__.createElement(t.Button, { ...e }); } function Fte(e) { return react__WEBPACK_IMPORTED_MODULE_1__.createElement("option", { ...e }); } function Wte(e) { const { components: t } = Wc(); return react__WEBPACK_IMPORTED_MODULE_1__.createElement(t.Button, { ...e }); } function zte(e) { return react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { ...e }); } function Vte(e) { return react__WEBPACK_IMPORTED_MODULE_1__.createElement("select", { ...e }); } function Ute(e) { const { week: t, ...n } = e; return react__WEBPACK_IMPORTED_MODULE_1__.createElement("tr", { ...n }); } function Hte(e) { return react__WEBPACK_IMPORTED_MODULE_1__.createElement("th", { ...e }); } function Kte(e) { return react__WEBPACK_IMPORTED_MODULE_1__.createElement( "thead", null, react__WEBPACK_IMPORTED_MODULE_1__.createElement("tr", { ...e }) ); } function Gte(e) { const { week: t, ...n } = e; return react__WEBPACK_IMPORTED_MODULE_1__.createElement("th", { ...n }); } function Yte(e) { return react__WEBPACK_IMPORTED_MODULE_1__.createElement("th", { ...e }); } function qte(e) { return react__WEBPACK_IMPORTED_MODULE_1__.createElement("tbody", { ...e }); } function Xte(e) { const { components: t } = Wc(); return react__WEBPACK_IMPORTED_MODULE_1__.createElement(t.Dropdown, { ...e }); } const Zte = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, Button: Ate, CaptionLabel: Tte, Chevron: Pte, Day: Cte, DayButton: Ete, Dropdown: kte, DropdownNav: Mte, Footer: Nte, Month: $te, MonthCaption: Dte, MonthGrid: Ite, Months: Rte, MonthsDropdown: jte, Nav: Lte, NextMonthButton: Bte, Option: Fte, PreviousMonthButton: Wte, Root: zte, Select: Vte, Week: Ute, WeekNumber: Gte, WeekNumberHeader: Yte, Weekday: Hte, Weekdays: Kte, Weeks: qte, YearsDropdown: Xte }, Symbol.toStringTag, { value: "Module" })); function Jte(e) { return { ...Zte, ...e }; } function Qte(e) { const t = { "data-mode": e.mode ?? void 0, "data-required": "required" in e ? e.required : void 0, "data-multiple-months": e.numberOfMonths && e.numberOfMonths > 1 || void 0, "data-week-numbers": e.showWeekNumber || void 0 }; return Object.entries(e).forEach(([n, r]) => { n.startsWith("data-") && (t[n] = r); }), t; } function ene() { const e = {}; for (const t in Le) e[Le[t]] = `rdp-${Le[t]}`; for (const t in Lt) e[Lt[t]] = `rdp-${Lt[t]}`; for (const t in Ei) e[Ei[t]] = `rdp-${Ei[t]}`; return e; } function uL(e, t, n) { return (n ?? new Qo(t)).format(e, "LLLL y"); } const tne = uL; function nne(e, t, n) { return (n ?? new Qo(t)).format(e, "d"); } function rne(e, t) { var n; return (n = t.localize) == null ? void 0 : n.month(e); } function ine(e) { return e < 10 ? `0${e.toLocaleString()}` : `${e.toLocaleString()}`; } function one() { return ""; } function ane(e, t, n) { return (n ?? new Qo(t)).format(e, "cccccc"); } function fL(e) { return e.toString(); } const sne = fL, lne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, formatCaption: uL, formatDay: nne, formatMonthCaption: tne, formatMonthDropdown: rne, formatWeekNumber: ine, formatWeekNumberHeader: one, formatWeekdayName: ane, formatYearCaption: sne, formatYearDropdown: fL }, Symbol.toStringTag, { value: "Module" })); function cne(e) { return e != null && e.formatMonthCaption && !e.formatCaption && (e.formatCaption = e.formatMonthCaption), e != null && e.formatYearCaption && !e.formatYearDropdown && (e.formatYearDropdown = e.formatYearCaption), { ...lne, ...e }; } function une(e, t, n, r, i) { if (!t || !n) return; const { addMonths: o, startOfMonth: a, isBefore: s } = i, l = e.getFullYear(), c = []; let f = t; for (; c.length < 12 && s(f, o(n, 1)); ) c.push(f.getMonth()), f = o(f, 1); return c.sort((m, y) => m - y).map((m) => { const y = r.formatMonthDropdown(m, i.options.locale ?? Hg), g = i.Date ? new i.Date(l, m) : new Date(l, m), v = t && g < a(t) || n && g > a(n) || !1; return { value: m, label: y, disabled: v }; }); } function fne(e, t = {}, n = {}) { let r = { ...t == null ? void 0 : t[Le.Day] }; return Object.entries(e).filter(([, i]) => i === !0).forEach(([i]) => { r = { ...r, ...n == null ? void 0 : n[i] }; }), r; } const Pb = {}, zu = {}; function ef(e, t) { try { const r = (Pb[e] || (Pb[e] = new Intl.DateTimeFormat("en-GB", { timeZone: e, hour: "numeric", timeZoneName: "longOffset" }).format))(t).split("GMT")[1] || ""; return r in zu ? zu[r] : SE(r, r.split(":")); } catch { if (e in zu) return zu[e]; const n = e == null ? void 0 : e.match(dne); return n ? SE(e, n.slice(1)) : NaN; } } const dne = /([+-]\d\d):?(\d\d)?/; function SE(e, t) { const n = +t[0], r = +(t[1] || 0); return zu[e] = n > 0 ? n * 60 + r : n * 60 - r; } class zi extends Date { //#region static constructor(...t) { super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(ef(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)), dL(this), hx(this)) : this.setTime(Date.now()); } static tz(t, ...n) { return n.length ? new zi(...n, t) : new zi(Date.now(), t); } //#endregion //#region time zone withTimeZone(t) { return new zi(+this, t); } getTimezoneOffset() { return -ef(this.timeZone, this); } //#endregion //#region time setTime(t) { return Date.prototype.setTime.apply(this, arguments), hx(this), +this; } //#endregion //#region date-fns integration [Symbol.for("constructDateFrom")](t) { return new zi(+new Date(t), this.timeZone); } //#endregion } const OE = /^(get|set)(?!UTC)/; Object.getOwnPropertyNames(Date.prototype).forEach((e) => { if (!OE.test(e)) return; const t = e.replace(OE, "$1UTC"); zi.prototype[t] && (e.startsWith("get") ? zi.prototype[e] = function() { return this.internal[t](); } : (zi.prototype[e] = function() { return Date.prototype[t].apply(this.internal, arguments), hne(this), +this; }, zi.prototype[t] = function() { return Date.prototype[t].apply(this, arguments), hx(this), +this; })); }); function hx(e) { e.internal.setTime(+e), e.internal.setUTCMinutes(e.internal.getUTCMinutes() - e.getTimezoneOffset()); } function hne(e) { Date.prototype.setFullYear.call(e, e.internal.getUTCFullYear(), e.internal.getUTCMonth(), e.internal.getUTCDate()), Date.prototype.setHours.call(e, e.internal.getUTCHours(), e.internal.getUTCMinutes(), e.internal.getUTCSeconds(), e.internal.getUTCMilliseconds()), dL(e); } function dL(e) { const t = ef(e.timeZone, e), n = /* @__PURE__ */ new Date(+e); n.setUTCHours(n.getUTCHours() - 1); const r = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), i = -(/* @__PURE__ */ new Date(+n)).getTimezoneOffset(), o = r - i, a = Date.prototype.getHours.apply(e) !== e.internal.getUTCHours(); o && a && e.internal.setUTCMinutes(e.internal.getUTCMinutes() + o); const s = r - t; s && Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + s); const l = ef(e.timeZone, e), f = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - l, d = l !== t, p = f - s; if (d && p) { Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + p); const m = ef(e.timeZone, e), y = l - m; y && (e.internal.setUTCMinutes(e.internal.getUTCMinutes() + y), Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + y)); } } class Vi extends zi { //#region static static tz(t, ...n) { return n.length ? new Vi(...n, t) : new Vi(Date.now(), t); } //#endregion //#region representation toISOString() { const [t, n, r] = this.tzComponents(), i = `${t}${n}:${r}`; return this.internal.toISOString().slice(0, -1) + i; } toString() { return `${this.toDateString()} ${this.toTimeString()}`; } toDateString() { const [t, n, r, i] = this.internal.toUTCString().split(" "); return `${t == null ? void 0 : t.slice(0, -1)} ${r} ${n} ${i}`; } toTimeString() { const t = this.internal.toUTCString().split(" ")[4], [n, r, i] = this.tzComponents(); return `${t} GMT${n}${r}${i} (${pne(this.timeZone, this)})`; } toLocaleString(t, n) { return Date.prototype.toLocaleString.call(this, t, { ...n, timeZone: (n == null ? void 0 : n.timeZone) || this.timeZone }); } toLocaleDateString(t, n) { return Date.prototype.toLocaleDateString.call(this, t, { ...n, timeZone: (n == null ? void 0 : n.timeZone) || this.timeZone }); } toLocaleTimeString(t, n) { return Date.prototype.toLocaleTimeString.call(this, t, { ...n, timeZone: (n == null ? void 0 : n.timeZone) || this.timeZone }); } //#endregion //#region private tzComponents() { const t = this.getTimezoneOffset(), n = t > 0 ? "-" : "+", r = String(Math.floor(Math.abs(t) / 60)).padStart(2, "0"), i = String(Math.abs(t) % 60).padStart(2, "0"); return [n, r, i]; } //#endregion withTimeZone(t) { return new Vi(+this, t); } //#region date-fns integration [Symbol.for("constructDateFrom")](t) { return new Vi(+new Date(t), this.timeZone); } //#endregion } function pne(e, t) { return new Intl.DateTimeFormat("en-GB", { timeZone: e, timeZoneName: "long" }).format(t).slice(12); } function mne(e, t, n) { const r = n ? Vi.tz(n) : e.Date ? new e.Date() : /* @__PURE__ */ new Date(), i = t ? e.startOfISOWeek(r) : e.startOfWeek(r), o = []; for (let a = 0; a < 7; a++) { const s = e.addDays(i, a); o.push(s); } return o; } function gne(e, t, n, r, i) { if (!t || !n) return; const { startOfMonth: o, startOfYear: a, endOfYear: s, addYears: l, isBefore: c, isSameYear: f } = i, d = e.getMonth(), p = a(t), m = s(n), y = []; let g = p; for (; c(g, m) || f(g, m); ) y.push(g.getFullYear()), g = l(g, 1); return y.map((v) => { const x = i.Date ? new i.Date(v, d) : new Date(v, d), w = t && x < o(t) || d && n && x > o(n) || !1, S = r.formatYearDropdown(v); return { value: v, label: S, disabled: w }; }); } function hL(e, t, n) { return (n ?? new Qo(t)).format(e, "LLLL y"); } const yne = hL; function vne(e, t, n, r) { let i = (r ?? new Qo(n)).format(e, "PPPP"); return t != null && t.today && (i = `Today, ${i}`), i; } function pL(e, t, n, r) { let i = (r ?? new Qo(n)).format(e, "PPPP"); return t.today && (i = `Today, ${i}`), t.selected && (i = `${i}, selected`), i; } const bne = pL; function xne() { return ""; } function wne(e) { return "Choose the Month"; } function _ne(e) { return "Go to the Next Month"; } function Sne(e) { return "Go to the Previous Month"; } function One(e, t, n) { return (n ?? new Qo(t)).format(e, "cccc"); } function Ane(e, t) { return `Week ${e}`; } function Tne(e) { return "Week Number"; } function Pne(e) { return "Choose the Year"; } const Cne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, labelCaption: yne, labelDay: bne, labelDayButton: pL, labelGrid: hL, labelGridcell: vne, labelMonthDropdown: wne, labelNav: xne, labelNext: _ne, labelPrevious: Sne, labelWeekNumber: Ane, labelWeekNumberHeader: Tne, labelWeekday: One, labelYearDropdown: Pne }, Symbol.toStringTag, { value: "Module" })), px = 42; function Ene(e, t, n, r) { const i = e[0], o = e[e.length - 1], { ISOWeek: a, fixedWeeks: s } = n ?? {}, { startOfWeek: l, endOfWeek: c, startOfISOWeek: f, endOfISOWeek: d, addDays: p, differenceInCalendarDays: m, differenceInCalendarMonths: y, isAfter: g, endOfMonth: v } = r, x = a ? f(i) : l(i), w = a ? d(v(o)) : c(v(o)), S = m(w, x), A = y(o, i) + 1, _ = []; for (let P = 0; P <= S; P++) { const C = p(x, P); if (t && g(C, t)) break; _.push(C); } const O = px * A; if (s && _.length < O) { const P = O - _.length; for (let C = 0; C < P; C++) { const k = p(_[_.length - 1], 1); _.push(k); } } return _; } function kne(e) { const t = []; return e.reduce((n, r) => { const i = [], o = r.weeks.reduce((a, s) => [...a, ...s.days], i); return [...n, ...o]; }, t); } function Mne(e, t, n, r) { const { numberOfMonths: i = 1 } = n, o = []; for (let a = 0; a < i; a++) { const s = r.addMonths(e, a); if (t && s > t) break; o.push(s); } return o; } function AE(e, t) { const { month: n, defaultMonth: r, today: i = e.timeZone ? Vi.tz(e.timeZone) : t.Date ? new t.Date() : /* @__PURE__ */ new Date(), numberOfMonths: o = 1, endMonth: a, startMonth: s } = e; let l = n || r || i; const { differenceInCalendarMonths: c, addMonths: f, startOfMonth: d } = t; if (a && c(a, l) < 0) { const p = -1 * (o - 1); l = f(a, p); } return s && c(l, s) < 0 && (l = s), d(l); } class mL { constructor(t, n, r = Qs) { this.date = t, this.displayMonth = n, this.outside = !!(n && !r.isSameMonth(t, n)), this.dateLib = r; } /** * Check if the day is the same as the given day: considering if it is in the * same display month. */ isEqualTo(t) { return this.dateLib.isSameDay(t.date, this.date) && this.dateLib.isSameMonth(t.displayMonth, this.displayMonth); } } class Nne { constructor(t, n) { this.date = t, this.weeks = n; } } class $ne { constructor(t, n) { this.days = n, this.weekNumber = t; } } function Dne(e, t, n, r) { const { startOfWeek: i, endOfWeek: o, startOfISOWeek: a, endOfISOWeek: s, endOfMonth: l, addDays: c, getWeek: f, getISOWeek: d } = r, p = e.reduce((m, y) => { const g = n.ISOWeek ? a(y) : i(y), v = n.ISOWeek ? s(l(y)) : o(l(y)), x = t.filter((A) => A >= g && A <= v); if (n.fixedWeeks && x.length < px) { const A = t.filter((_) => { const O = px - x.length; return _ > v && _ <= c(v, O); }); x.push(...A); } const w = x.reduce((A, _) => { const O = n.ISOWeek ? d(_) : f(_), P = A.find((k) => k.weekNumber === O), C = new mL(_, y, r); return P ? P.days.push(C) : A.push(new $ne(O, [C])), A; }, []), S = new Nne(y, w); return m.push(S), m; }, []); return n.reverseMonths ? p.reverse() : p; } function Ine(e, t) { var g; let { startMonth: n, endMonth: r } = e; const { startOfYear: i, startOfDay: o, startOfMonth: a, endOfMonth: s, addYears: l, endOfYear: c } = t, { fromYear: f, toYear: d, fromMonth: p, toMonth: m } = e; !n && p && (n = p), !n && f && (n = new Date(f, 0, 1)), !r && m && (r = m), !r && d && (r = new Date(d, 11, 31)); const y = (g = e.captionLayout) == null ? void 0 : g.startsWith("dropdown"); if (n) n = a(n); else if (f) n = new Date(f, 0, 1); else if (!n && y) { const v = e.today ?? (e.timeZone ? Vi.tz(e.timeZone) : t.Date ? new t.Date() : /* @__PURE__ */ new Date()); n = i(l(v, -100)); } if (r) r = s(r); else if (d) r = new Date(d, 11, 31); else if (!r && y) { const v = e.today ?? (e.timeZone ? Vi.tz(e.timeZone) : t.Date ? new t.Date() : /* @__PURE__ */ new Date()); r = c(v); } return [ n && o(n), r && o(r) ]; } function Rne(e, t, n, r) { if (n.disableNavigation) return; const { pagedNavigation: i, numberOfMonths: o = 1 } = n, { startOfMonth: a, addMonths: s, differenceInCalendarMonths: l } = r, c = i ? o : 1, f = a(e); if (!t) return s(f, c); if (!(l(t, e) < o)) return s(f, c); } function jne(e, t, n, r) { if (n.disableNavigation) return; const { pagedNavigation: i, numberOfMonths: o } = n, { startOfMonth: a, addMonths: s, differenceInCalendarMonths: l } = r, c = i ? o ?? 1 : 1, f = a(e); if (!t) return s(f, -c); if (!(l(f, t) <= 0)) return s(f, -c); } function Lne(e) { const t = []; return e.reduce((n, r) => [...n, ...r.weeks], t); } function Kg(e, t) { const [n, r] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(e); return [t === void 0 ? n : t, r]; } function Bne(e, t) { const [n, r] = Ine(e, t), { startOfMonth: i, endOfMonth: o } = t, a = AE(e, t), [s, l] = Kg(a, e.month ? i(e.month) : void 0); (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { const O = AE(e, t); l(O); }, [e.timeZone]); const c = Mne(s, r, e, t), f = Ene(c, e.endMonth ? o(e.endMonth) : void 0, e, t), d = Dne(c, f, e, t), p = Lne(d), m = kne(d), y = jne(s, n, e, t), g = Rne(s, r, e, t), { disableNavigation: v, onMonthChange: x } = e, w = (O) => p.some((P) => P.days.some((C) => C.isEqualTo(O))), S = (O) => { if (v) return; let P = i(O); n && P < i(n) && (P = i(n)), r && P > i(r) && (P = i(r)), l(P), x == null || x(P); }; return { months: d, weeks: p, days: m, navStart: n, navEnd: r, previousMonth: y, nextMonth: g, goToMonth: S, goToDay: (O) => { w(O) || S(O.date); } }; } function Fne(e, t, n, r) { let i, o = 0, a = !1; for (; o < e.length && !a; ) { const s = e[o], l = t(s); !l[Lt.disabled] && !l[Lt.hidden] && !l[Lt.outside] && (l[Lt.focused] || r != null && r.isEqualTo(s) || n(s.date) || l[Lt.today]) && (i = s, a = !0), o++; } return i || (i = e.find((s) => { const l = t(s); return !l[Lt.disabled] && !l[Lt.hidden] && !l[Lt.outside]; })), i; } function Po(e, t, n = !1, r = Qs) { let { from: i, to: o } = e; const { differenceInCalendarDays: a, isSameDay: s } = r; return i && o ? (a(o, i) < 0 && ([i, o] = [o, i]), a(t, i) >= (n ? 1 : 0) && a(o, t) >= (n ? 1 : 0)) : !n && o ? s(o, t) : !n && i ? s(i, t) : !1; } function gL(e) { return !!(e && typeof e == "object" && "before" in e && "after" in e); } function M_(e) { return !!(e && typeof e == "object" && "from" in e); } function yL(e) { return !!(e && typeof e == "object" && "after" in e); } function vL(e) { return !!(e && typeof e == "object" && "before" in e); } function bL(e) { return !!(e && typeof e == "object" && "dayOfWeek" in e); } function xL(e, t) { return Array.isArray(e) && e.every(t.isDate); } function Co(e, t, n = Qs) { const r = Array.isArray(t) ? t : [t], { isSameDay: i, differenceInCalendarDays: o, isAfter: a } = n; return r.some((s) => { if (typeof s == "boolean") return s; if (n.isDate(s)) return i(e, s); if (xL(s, n)) return s.includes(e); if (M_(s)) return Po(s, e, !1, n); if (bL(s)) return Array.isArray(s.dayOfWeek) ? s.dayOfWeek.includes(e.getDay()) : s.dayOfWeek === e.getDay(); if (gL(s)) { const l = o(s.before, e), c = o(s.after, e), f = l > 0, d = c < 0; return a(s.before, s.after) ? d && f : f || d; } return yL(s) ? o(e, s.after) > 0 : vL(s) ? o(s.before, e) > 0 : typeof s == "function" ? s(e) : !1; }); } function Wne(e, t, n, r, i, o, a) { const { ISOWeek: s } = o, { addDays: l, addMonths: c, addYears: f, addWeeks: d, startOfISOWeek: p, endOfISOWeek: m, startOfWeek: y, endOfWeek: g, max: v, min: x } = a; let S = { day: l, week: d, month: c, year: f, startOfWeek: (A) => s ? p(A) : y(A), endOfWeek: (A) => s ? m(A) : g(A) }[e](n, t === "after" ? 1 : -1); return t === "before" && r ? S = v([r, S]) : t === "after" && i && (S = x([i, S])), S; } function wL(e, t, n, r, i, o, a, s = 0) { if (s > 365) return; const l = Wne( e, t, n.date, // should be refDay? or refDay.date? r, i, o, a ), c = !!(o.disabled && Co(l, o.disabled, a)), f = !!(o.hidden && Co(l, o.hidden, a)), d = l, p = new mL(l, d, a); return !c && !f ? p : wL(e, t, p, r, i, o, a, s + 1); } function zne(e, t, n, r, i) { const { autoFocus: o } = e, [a, s] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(), l = Fne(t.days, n, r || (() => !1), a), [c, f] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(o ? l : void 0); return { isFocusTarget: (g) => !!(l != null && l.isEqualTo(g)), setFocused: f, focused: c, blur: () => { s(c), f(void 0); }, moveFocus: (g, v) => { if (!c) return; const x = wL(g, v, c, t.navStart, t.navEnd, e, i); x && (t.goToDay(x), f(x)); } }; } function Vne(e, t, n) { const { disabled: r, hidden: i, modifiers: o, showOutsideDays: a, today: s } = t, { isSameDay: l, isSameMonth: c, startOfMonth: f, isBefore: d, endOfMonth: p, isAfter: m } = n, y = t.startMonth && f(t.startMonth), g = t.endMonth && p(t.endMonth), v = { [Lt.focused]: [], [Lt.outside]: [], [Lt.disabled]: [], [Lt.hidden]: [], [Lt.today]: [] }, x = {}; for (const w of e) { const { date: S, displayMonth: A } = w, _ = !!(A && !c(S, A)), O = !!(y && d(S, y)), P = !!(g && m(S, g)), C = !!(r && Co(S, r, n)), k = !!(i && Co(S, i, n)) || O || P || !a && _, I = l(S, s ?? (t.timeZone ? Vi.tz(t.timeZone) : n.Date ? new n.Date() : /* @__PURE__ */ new Date())); _ && v.outside.push(w), C && v.disabled.push(w), k && v.hidden.push(w), I && v.today.push(w), o && Object.keys(o).forEach(($) => { const N = o == null ? void 0 : o[$]; N && Co(S, N, n) && (x[$] ? x[$].push(w) : x[$] = [w]); }); } return (w) => { const S = { [Lt.focused]: !1, [Lt.disabled]: !1, [Lt.hidden]: !1, [Lt.outside]: !1, [Lt.today]: !1 }, A = {}; for (const _ in v) { const O = v[_]; S[_] = O.some((P) => P === w); } for (const _ in x) A[_] = x[_].some((O) => O === w); return { ...S, // custom modifiers should override all the previous ones ...A }; }; } function Une(e, t) { const { selected: n, required: r, onSelect: i } = e, [o, a] = Kg(n, i ? n : void 0), s = i ? n : o, { isSameDay: l } = t, c = (m) => (s == null ? void 0 : s.some((y) => l(y, m))) ?? !1, { min: f, max: d } = e; return { selected: s, select: (m, y, g) => { let v = [...s ?? []]; if (c(m)) { if ((s == null ? void 0 : s.length) === f || r && (s == null ? void 0 : s.length) === 1) return; v = s == null ? void 0 : s.filter((x) => !l(x, m)); } else (s == null ? void 0 : s.length) === d ? v = [m] : v = [...v, m]; return i || a(v), i == null || i(v, m, y, g), v; }, isSelected: c }; } function Hne(e, t, n = 0, r = 0, i = !1, o = Qs) { const { from: a, to: s } = t || {}, { isSameDay: l, isAfter: c, isBefore: f } = o; let d; if (!a && !s) d = { from: e, to: n > 0 ? void 0 : e }; else if (a && !s) l(a, e) ? i ? d = { from: a, to: void 0 } : d = void 0 : f(e, a) ? d = { from: e, to: a } : d = { from: a, to: e }; else if (a && s) if (l(a, e) && l(s, e)) i ? d = { from: a, to: s } : d = void 0; else if (l(a, e)) d = { from: a, to: n > 0 ? void 0 : e }; else if (l(s, e)) d = { from: e, to: n > 0 ? void 0 : e }; else if (f(e, a)) d = { from: e, to: s }; else if (c(e, a)) d = { from: a, to: e }; else if (c(e, s)) d = { from: a, to: e }; else throw new Error("Invalid range"); if (d != null && d.from && (d != null && d.to)) { const p = o.differenceInCalendarDays(d.to, d.from); r > 0 && p > r ? d = { from: e, to: void 0 } : n > 1 && p < n && (d = { from: e, to: void 0 }); } return d; } function Kne(e, t, n = Qs) { const r = Array.isArray(t) ? t : [t]; let i = e.from; const o = n.differenceInCalendarDays(e.to, e.from), a = Math.min(o, 6); for (let s = 0; s <= a; s++) { if (r.includes(i.getDay())) return !0; i = n.addDays(i, 1); } return !1; } function TE(e, t, n = Qs) { return Po(e, t.from, !1, n) || Po(e, t.to, !1, n) || Po(t, e.from, !1, n) || Po(t, e.to, !1, n); } function Gne(e, t, n = Qs) { const r = Array.isArray(t) ? t : [t]; if (r.filter((s) => typeof s != "function").some((s) => typeof s == "boolean" ? s : n.isDate(s) ? Po(e, s, !1, n) : xL(s, n) ? s.some((l) => Po(e, l, !1, n)) : M_(s) ? s.from && s.to ? TE(e, { from: s.from, to: s.to }, n) : !1 : bL(s) ? Kne(e, s.dayOfWeek, n) : gL(s) ? n.isAfter(s.before, s.after) ? TE(e, { from: n.addDays(s.after, 1), to: n.addDays(s.before, -1) }, n) : Co(e.from, s, n) || Co(e.to, s, n) : yL(s) || vL(s) ? Co(e.from, s, n) || Co(e.to, s, n) : !1)) return !0; const a = r.filter((s) => typeof s == "function"); if (a.length) { let s = e.from; const l = n.differenceInCalendarDays(e.to, e.from); for (let c = 0; c <= l; c++) { if (a.some((f) => f(s))) return !0; s = n.addDays(s, 1); } } return !1; } function Yne(e, t) { const { disabled: n, excludeDisabled: r, selected: i, required: o, onSelect: a } = e, [s, l] = Kg(i, a ? i : void 0), c = a ? i : s; return { selected: c, select: (p, m, y) => { const { min: g, max: v } = e, x = p ? Hne(p, c, g, v, o, t) : void 0; return r && n && (x != null && x.from) && x.to && Gne({ from: x.from, to: x.to }, n, t) && (x.from = p, x.to = void 0), a || l(x), a == null || a(x, p, m, y), x; }, isSelected: (p) => c && Po(c, p, !1, t) }; } function qne(e, t) { const { selected: n, required: r, onSelect: i } = e, [o, a] = Kg(n, i ? n : void 0), s = i ? n : o, { isSameDay: l } = t; return { selected: s, select: (d, p, m) => { let y = d; return !r && s && s && l(d, s) && (y = void 0), i || a(y), i == null || i(y, d, p, m), y; }, isSelected: (d) => s ? l(s, d) : !1 }; } function Xne(e, t) { const n = qne(e, t), r = Une(e, t), i = Yne(e, t); switch (e.mode) { case "single": return n; case "multiple": return r; case "range": return i; default: return; } } function Zne(e) { const { components: t, formatters: n, labels: r, dateLib: i, locale: o, classNames: a } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => { const tt = { ...Hg, ...e.locale }; return { dateLib: new Qo({ locale: tt, weekStartsOn: e.weekStartsOn, firstWeekContainsDate: e.firstWeekContainsDate, useAdditionalWeekYearTokens: e.useAdditionalWeekYearTokens, useAdditionalDayOfYearTokens: e.useAdditionalDayOfYearTokens }, e.dateLib), components: Jte(e.components), formatters: cne(e.formatters), labels: { ...Cne, ...e.labels }, locale: tt, classNames: { ...ene(), ...e.classNames } }; }, [ e.classNames, e.components, e.dateLib, e.firstWeekContainsDate, e.formatters, e.labels, e.locale, e.useAdditionalDayOfYearTokens, e.useAdditionalWeekYearTokens, e.weekStartsOn ]), { captionLayout: s, mode: l, onDayBlur: c, onDayClick: f, onDayFocus: d, onDayKeyDown: p, onDayMouseEnter: m, onDayMouseLeave: y, onNextClick: g, onPrevClick: v, showWeekNumber: x, styles: w } = e, { formatCaption: S, formatDay: A, formatMonthDropdown: _, formatWeekNumber: O, formatWeekNumberHeader: P, formatWeekdayName: C, formatYearDropdown: k } = n, I = Bne(e, i), { days: $, months: N, navStart: D, navEnd: j, previousMonth: F, nextMonth: W, goToMonth: z } = I, H = Vne($, e, i), { isSelected: U, select: V, selected: Y } = Xne(e, i) ?? {}, { blur: Q, focused: ne, isFocusTarget: re, moveFocus: ce, setFocused: oe } = zne(e, I, H, U ?? (() => !1), i), { labelDayButton: fe, labelGridcell: ae, labelGrid: ee, labelMonthDropdown: se, labelNav: ge, labelWeekday: X, labelWeekNumber: $e, labelWeekNumberHeader: de, labelYearDropdown: ke } = r, it = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => mne(i, e.ISOWeek, e.timeZone), [i, e.ISOWeek, e.timeZone]), lt = l !== void 0 || f !== void 0, Xn = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => { F && (z(F), v == null || v(F)); }, [F, z, v]), Ie = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(() => { W && (z(W), g == null || g(W)); }, [z, W, g]), ct = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((tt, Kt) => (St) => { St.preventDefault(), St.stopPropagation(), oe(tt), V == null || V(tt.date, Kt, St), f == null || f(tt.date, Kt, St); }, [V, f, oe]), Oe = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((tt, Kt) => (St) => { oe(tt), d == null || d(tt.date, Kt, St); }, [d, oe]), Ge = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((tt, Kt) => (St) => { Q(), c == null || c(tt.date, Kt, St); }, [Q, c]), Zt = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((tt, Kt) => (St) => { const jn = { ArrowLeft: ["day", e.dir === "rtl" ? "after" : "before"], ArrowRight: ["day", e.dir === "rtl" ? "before" : "after"], ArrowDown: ["week", "after"], ArrowUp: ["week", "before"], PageUp: [St.shiftKey ? "year" : "month", "before"], PageDown: [St.shiftKey ? "year" : "month", "after"], Home: ["startOfWeek", "before"], End: ["endOfWeek", "after"] }; if (jn[St.key]) { St.preventDefault(), St.stopPropagation(); const [qr, lo] = jn[St.key]; ce(qr, lo); } p == null || p(tt.date, Kt, St); }, [ce, p, e.dir]), mt = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((tt, Kt) => (St) => { m == null || m(tt.date, Kt, St); }, [m]), en = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)((tt, Kt) => (St) => { y == null || y(tt.date, Kt, St); }, [y]), { className: Yr, style: Cn } = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => ({ className: [a[Le.Root], e.className].filter(Boolean).join(" "), style: { ...w == null ? void 0 : w[Le.Root], ...e.style } }), [a, e.className, e.style, w]), yn = Qte(e), mr = { dayPickerProps: e, selected: Y, select: V, isSelected: U, months: N, nextMonth: W, previousMonth: F, goToMonth: z, getModifiers: H, components: t, classNames: a, styles: w, labels: r, formatters: n }; return react__WEBPACK_IMPORTED_MODULE_1__.createElement( cL.Provider, { value: mr }, react__WEBPACK_IMPORTED_MODULE_1__.createElement( t.Root, { className: Yr, style: Cn, dir: e.dir, id: e.id, lang: e.lang, nonce: e.nonce, title: e.title, ...yn }, react__WEBPACK_IMPORTED_MODULE_1__.createElement( t.Months, { className: a[Le.Months], style: w == null ? void 0 : w[Le.Months] }, !e.hideNavigation && react__WEBPACK_IMPORTED_MODULE_1__.createElement(t.Nav, { className: a[Le.Nav], style: w == null ? void 0 : w[Le.Nav], "aria-label": ge(), onPreviousClick: Xn, onNextClick: Ie, previousMonth: F, nextMonth: W }), N.map((tt, Kt) => { const St = (un) => { const Pr = Number(un.target.value), fn = i.setMonth(i.startOfMonth(tt.date), Pr); z(fn); }, jn = (un) => { const Pr = i.setYear(i.startOfMonth(tt.date), Number(un.target.value)); z(Pr); }, qr = une(tt.date, D, j, n, i), lo = gne(N[0].date, D, j, n, i); return react__WEBPACK_IMPORTED_MODULE_1__.createElement( t.Month, { className: a[Le.Month], style: w == null ? void 0 : w[Le.Month], key: Kt, displayIndex: Kt, calendarMonth: tt }, react__WEBPACK_IMPORTED_MODULE_1__.createElement(t.MonthCaption, { className: a[Le.MonthCaption], style: w == null ? void 0 : w[Le.MonthCaption], calendarMonth: tt, displayIndex: Kt }, s != null && s.startsWith("dropdown") ? react__WEBPACK_IMPORTED_MODULE_1__.createElement( t.DropdownNav, { className: a[Le.Dropdowns], style: w == null ? void 0 : w[Le.Dropdowns] }, s === "dropdown" || s === "dropdown-months" ? react__WEBPACK_IMPORTED_MODULE_1__.createElement(t.MonthsDropdown, { className: a[Le.MonthsDropdown], "aria-label": se(), classNames: a, components: t, disabled: !!e.disableNavigation, onChange: St, options: qr, style: w == null ? void 0 : w[Le.Dropdown], value: tt.date.getMonth() }) : react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { role: "status", "aria-live": "polite" }, _(tt.date.getMonth(), o)), s === "dropdown" || s === "dropdown-years" ? react__WEBPACK_IMPORTED_MODULE_1__.createElement(t.YearsDropdown, { className: a[Le.YearsDropdown], "aria-label": ke(i.options), classNames: a, components: t, disabled: !!e.disableNavigation, onChange: jn, options: lo, style: w == null ? void 0 : w[Le.Dropdown], value: tt.date.getFullYear() }) : react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { role: "status", "aria-live": "polite" }, k(tt.date.getFullYear())) ) : react__WEBPACK_IMPORTED_MODULE_1__.createElement(t.CaptionLabel, { className: a[Le.CaptionLabel], role: "status", "aria-live": "polite" }, S(tt.date, i.options, i))), react__WEBPACK_IMPORTED_MODULE_1__.createElement( t.MonthGrid, { role: "grid", "aria-multiselectable": l === "multiple" || l === "range", "aria-label": ee(tt.date, i.options, i) || void 0, className: a[Le.MonthGrid], style: w == null ? void 0 : w[Le.MonthGrid] }, !e.hideWeekdays && react__WEBPACK_IMPORTED_MODULE_1__.createElement( t.Weekdays, { className: a[Le.Weekdays], style: w == null ? void 0 : w[Le.Weekdays] }, x && react__WEBPACK_IMPORTED_MODULE_1__.createElement(t.WeekNumberHeader, { "aria-label": de(i.options), className: a[Le.WeekNumberHeader], style: w == null ? void 0 : w[Le.WeekNumberHeader], scope: "col" }, P()), it.map((un, Pr) => react__WEBPACK_IMPORTED_MODULE_1__.createElement(t.Weekday, { "aria-label": X(un, i.options, i), className: a[Le.Weekday], key: Pr, style: w == null ? void 0 : w[Le.Weekday], scope: "col" }, C(un, i.options, i))) ), react__WEBPACK_IMPORTED_MODULE_1__.createElement(t.Weeks, { className: a[Le.Weeks], style: w == null ? void 0 : w[Le.Weeks] }, tt.weeks.map((un, Pr) => react__WEBPACK_IMPORTED_MODULE_1__.createElement( t.Week, { className: a[Le.Week], key: un.weekNumber, style: w == null ? void 0 : w[Le.Week], week: un }, x && react__WEBPACK_IMPORTED_MODULE_1__.createElement(t.WeekNumber, { week: un, style: w == null ? void 0 : w[Le.WeekNumber], "aria-label": $e(un.weekNumber, { locale: o }), className: a[Le.WeekNumber], scope: "row" }, O(un.weekNumber)), un.days.map((fn) => { const { date: Xr } = fn, yt = H(fn); if (yt[Lt.focused] = !yt.hidden && !!(ne != null && ne.isEqualTo(fn)), yt[Ei.selected] = !yt.disabled && ((U == null ? void 0 : U(Xr)) || yt.selected), M_(Y)) { const { from: nu, to: ru } = Y; yt[Ei.range_start] = !!(nu && ru && i.isSameDay(Xr, nu)), yt[Ei.range_end] = !!(nu && ru && i.isSameDay(Xr, ru)), yt[Ei.range_middle] = Po(Y, Xr, !0, i); } const Rd = fne(yt, w, e.modifiersStyles), jd = Ote(yt, a, e.modifiersClassNames), Ey = lt ? void 0 : ae(Xr, yt, i.options, i); return react__WEBPACK_IMPORTED_MODULE_1__.createElement(t.Day, { key: `${i.format(Xr, "yyyy-MM-dd")}_${i.format(fn.displayMonth, "yyyy-MM")}`, day: fn, modifiers: yt, className: jd.join(" "), style: Rd, "aria-hidden": yt.hidden || void 0, "aria-selected": yt.selected || void 0, "aria-label": Ey, "data-day": i.format(Xr, "yyyy-MM-dd"), "data-month": fn.outside ? i.format(Xr, "yyyy-MM") : void 0, "data-selected": yt.selected || void 0, "data-disabled": yt.disabled || void 0, "data-hidden": yt.hidden || void 0, "data-outside": fn.outside || void 0, "data-focused": yt.focused || void 0, "data-today": yt.today || void 0 }, lt ? react__WEBPACK_IMPORTED_MODULE_1__.createElement(t.DayButton, { className: a[Le.DayButton], style: w == null ? void 0 : w[Le.DayButton], type: "button", day: fn, modifiers: yt, disabled: yt.disabled || void 0, tabIndex: re(fn) ? 0 : -1, "aria-label": fe(Xr, yt, i.options, i), onClick: ct(fn, yt), onBlur: Ge(fn, yt), onFocus: Oe(fn, yt), onKeyDown: Zt(fn, yt), onMouseEnter: mt(fn, yt), onMouseLeave: en(fn, yt) }, A(Xr, i.options, i)) : A(fn.date, i.options, i)); }) ))) ) ); }) ), e.footer && react__WEBPACK_IMPORTED_MODULE_1__.createElement(t.Footer, { className: a[Le.Footer], style: w == null ? void 0 : w[Le.Footer], role: "status", "aria-live": "polite" }, e.footer) ) ); } const PE = () => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "bg-icon-interactive h-1 w-1 absolute rounded-full inline-block bottom-0 left-1/2 right-1/2" }), CE = (e) => Fn(e, "E").slice(0, 1), Jne = (e, t = 24) => Array.from({ length: t }, (n, r) => e + r), EE = (e) => { if (e === "multiple") return []; if (e === "range") return { from: void 0, to: void 0 }; }, Cb = ({ width: e, className: t, // Renamed to avoid shadowing classNames: n, selectedDates: r, setSelectedDates: i, showOutsideDays: o = !0, mode: a = "single", variant: s = "normal", alignment: l = "horizontal", numberOfMonths: c, disabled: f, ...d }) => { const p = react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(d.footer) || typeof d.footer == "function", [m, y] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1), [g, v] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1), [x, w] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)((/* @__PURE__ */ new Date()).getFullYear()), [S, A] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)( x - x % 24 ); r === void 0 && (a === "multiple" ? r = [] : a === "range" ? r = { from: void 0, to: void 0 } : r = void 0); function _($) { const { goToMonth: N, nextMonth: D, previousMonth: j } = Wc(), F = Fn( $.calendarMonth.date, "yyyy" ), W = Fn($.calendarMonth.date, "MMMM"), z = new Date($.calendarMonth.date); z.setDate(z.getDate() - z.getDay()); const H = Array.from({ length: 7 }, (ne, re) => { const ce = new Date(z); return ce.setDate(z.getDate() + re), CE(ce); }), U = () => { if (g) A(S - 24); else if (m) { const ne = new Date( x - 1, $.calendarMonth.date.getMonth() ); w(ne.getFullYear()), N(ne); } else N(j); }, V = () => { if (g) A(S + 24); else if (m) { const ne = new Date( x + 1, $.calendarMonth.date.getMonth() ); w(ne.getFullYear()), N(ne); } else N(D); }, Y = (ne) => { w(ne), v(!1), y(!0), N( new Date( ne, $.calendarMonth.date.getMonth() ) ); }; let Q; return g ? Q = `${S} - ${S + 23}` : m ? Q = F : Q = `${W} ${F}`, /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex justify-between", children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Hn, { variant: "ghost", onClick: U, className: "bg-background-primary border-none cursor-pointer", "aria-label": "Previous Button", icon: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(eD, { className: "h-4 w-4 text-button-tertiary-color" }) } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Hn, { variant: "ghost", onClick: () => { c > 1 || (m ? (v(!0), y(!1)) : g ? v(!1) : y(!m)); }, children: Q } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Hn, { variant: "ghost", onClick: V, className: "bg-background-primary border-none cursor-pointer", "aria-label": "Next Button", icon: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Zw, { className: "h-4 w-4 text-button-tertiary-color" }) } ) ] }), g && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "grid grid-cols-4 w-full", children: Jne(S).map((ne) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( Hn, { variant: "ghost", onClick: () => Y(ne), className: K( "h-10 w-full text-center font-normal relative", ne === x && ne !== (/* @__PURE__ */ new Date()).getFullYear() && "bg-background-brand text-text-on-color hover:bg-background-brand hover:text-black", ne === (/* @__PURE__ */ new Date()).getFullYear() && "font-semibold" ), children: [ ne, ne === (/* @__PURE__ */ new Date()).getFullYear() && PE() ] }, ne )) }), m && !g && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "grid grid-cols-4 gap-2 my-12", children: Array.from({ length: 12 }, (ne, re) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( Hn, { variant: "ghost", onClick: () => { y(!1), N( new Date(x, re) ); }, className: K( "px-1.5 py-2 h-10 w-[4.375rem] text-center font-normal relative", re === $.calendarMonth.date.getMonth() && re !== (/* @__PURE__ */ new Date()).getMonth() && x === $.calendarMonth.date.getFullYear() && $.calendarMonth.date.getFullYear() !== (/* @__PURE__ */ new Date()).getFullYear() && "bg-background-brand text-text-on-color hover:bg-background-brand hover:text-black", re === (/* @__PURE__ */ new Date()).getMonth() && (/* @__PURE__ */ new Date()).getFullYear() === x && "font-semibold" ), children: [ Fn(new Date(0, re), "MMM"), (/* @__PURE__ */ new Date()).getMonth() === re && (/* @__PURE__ */ new Date()).getFullYear() === x && PE() ] }, re )) }), !m && !g && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(O, { weekdays: H }) ] }); } const O = ({ weekdays: $ }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "flex justify-between", children: $.map((N, D) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "button", { className: "h-10 w-10 px-1.5 py-2 text-center text-text-secondary text-sm font-normal content-center bg-transparent border-none shrink-0", children: N }, D )) }), P = ({ day: $, modifiers: N, ...D }) => { const { selected: j, today: F, disabled: W, outside: z, range_middle: H, range_start: U, range_end: V } = N, Y = U || V || H, Q = /* @__PURE__ */ new Date(), ne = r == null ? void 0 : r.to, re = Fn($.displayMonth, "yyyy-MM") === Fn(Q, "yyyy-MM"), ce = ne && Fn(ne, "yyyy-MM") === Fn($.date, "yyyy-MM"), oe = Ste(Q, 1), fe = Fn($.date, "yyyy-MM") === Fn(oe, "yyyy-MM"), ae = re || ce || Y, ee = !o && z, ge = K( "h-10 w-10 flex items-center justify-center transition text-text-secondary relative text-sm", "border-none rounded", (j || Y) && !z ? "bg-background-brand text-text-on-color" : "bg-transparent hover:bg-button-tertiary-hover", H && ae && !z ? "bg-brand-background-50 text-text-secondary rounded-none" : "", W ? "opacity-50 cursor-not-allowed text-text-disabled" : "cursor-pointer", z && !Y || !ae && z || z && !fe || z ? "bg-transparent opacity-50 text-text-disabled cursor-auto" : "" ), X = (ke) => { typeof D.onMouseEnter == "function" && D.onMouseEnter(ke), ke.currentTarget.setAttribute("data-hover", "true"); }, $e = (ke) => { typeof D.onMouseLeave == "function" && D.onMouseLeave(ke), ke.currentTarget.setAttribute("data-hover", "false"); }, de = (ke) => { typeof D.onClick == "function" && D.onClick(ke); }; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "button", { className: K( ge, F && "font-semibold", ee && "opacity-0", U && "fui-range-start", V && "fui-range-end", H && "fui-range-middle", { "[&:is([data-hover=true])]:bg-brand-background-50 [&:is([data-hover=true])]:rounded-none": !Y && !j } ), disabled: W || z, onClick: de, onMouseEnter: X, onMouseLeave: $e, "aria-label": Fn($.date, "EEEE, MMMM do, yyyy"), "data-selected": j, "data-day": Fn($.date, "yyyy-MM-dd"), children: [ (!ee || Y && ae) && D.children, F && ae && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "absolute h-1 w-1 bg-background-brand rounded-full bottom-1" }) ] } ); }, C = ($) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "flex flex-col bsf-force-ui-month-weeks", children: $.children[1].props.children.map( (N, D) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: "flex flex-row justify-between", children: N }, D ) ) }), k = ($, N) => { if (a === "range") { const D = r; if (!(D != null && D.from) && !(D != null && D.to) || D != null && D.from && (D != null && D.to)) { if (D.from && bE(N, D == null ? void 0 : D.from) || D.to && bE(N, D == null ? void 0 : D.to)) { i({ from: void 0, to: void 0 }); return; } i({ from: N, to: void 0 }); return; } if (D != null && D.from && !(D != null && D.to)) { if (N < D.from) { i({ from: N, to: D.from }); return; } i({ from: D.from, to: N }); return; } i($); } else a === "multiple" ? r.some( (D) => Fn(D, "yyyy-MM-dd") === Fn(N, "yyyy-MM-dd") ) ? i( r.filter( (D) => Fn(D, "yyyy-MM-dd") !== Fn(N, "yyyy-MM-dd") ) ) : i([...r, N]) : a === "single" && i($); }, I = K( "relative bg-background-primary shadow-datepicker-wrapper", e, l === "vertical" ? "flex flex-col" : "flex flex-row gap-3", s === "normal" ? "rounded-tr-md rounded-tl-md border border-solid border-border-subtle" : "", s === "presets" ? "rounded-tr-md border border-solid border-border-subtle" : "", s === "dualdate" ? "rounded-tr-md rounded-tl-md border border-solid border-border-subtle" : "", p ? "rounded-b-none" : "rounded-bl-md rounded-br-md" ); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Zne, { mode: a, selected: r, onSelect: k, hideNavigation: !0, captionLayout: "label", className: K(t), formatters: { formatWeekdayName: CE }, classNames: { months: I, month: "flex flex-col p-2 gap-1 text-center w-full", caption: "relative flex justify-center items-center", table: "w-full border-separate border-spacing-0", head_row: "flex mb-1", head_cell: "text-muted-foreground rounded-md w-10 font-normal text-sm", row: "flex w-full mt-2", cell: "h-10 w-10 text-center text-sm p-0 relative", ...n }, numberOfMonths: c, components: { MonthCaption: _, DayButton: P, Day: ($) => { const N = Object.entries( $ ).reduce( (D, [j, F]) => (j.startsWith("data-") && (D[j] = F), D), {} ); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { ...N, className: K( $.className, "inline-flex" ), children: $.children } ); }, Weekdays: () => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {}), Week: ($) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "bsf-force-ui-month-week flex flex-row", $.className ), children: $.children } ), Months: ($) => { var N; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "bsf-force-ui-date-picker-month", I ), children: (N = $ == null ? void 0 : $.children) == null ? void 0 : N.map((D, j) => D ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, { children: D.map((F, W) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( react__WEBPACK_IMPORTED_MODULE_1__.Fragment, { children: [ W > 0 && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "border border-solid border-border-subtle border-l-0" }), F ] }, W )) }, j) : null) } ) }); }, MonthGrid: ($) => !m && !g ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(C, { ...$ }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {}) }, ...a === "range" ? { required: !1 } : {}, ...d, onDayMouseEnter: ($, N, D) => { var oe; if (a !== "range") return; const j = r; if (j != null && j.from && (j != null && j.to) || !(j != null && j.from) && !(j != null && j.to)) { Array.from( document.querySelectorAll("[data-hover]") ).forEach((ae) => { ae.setAttribute("data-hover", "false"); }); return; } const F = D.target, W = new Date( F.dataset.day ), z = dx( W, j.from ), H = fx( W, j.to ); let U; switch (s) { case "dualdate": case "presets": U = F.closest( ".bsf-force-ui-date-picker-month" ); break; case "normal": default: U = F.closest( ".bsf-force-ui-month-weeks" ); break; } const V = Array.from( U.querySelectorAll("button") ); H && V.sort( (fe, ae) => fx( new Date(fe.dataset.day), new Date(ae.dataset.day) ) ? -1 : 1 ), z && V.sort( (fe, ae) => dx( new Date(fe.dataset.day), new Date(ae.dataset.day) ) ? 1 : -1 ); const Y = V.indexOf(F), Q = V.findIndex( (fe) => fe.getAttribute("data-selected") === "true" ), ne = [], re = Math.min(Y, Q), ce = Math.max(Y, Q); for (let fe = re; fe <= ce; fe++) (oe = V[fe]) != null && oe.disabled || ne.push(V[fe]); V.forEach((fe) => { fe.setAttribute( "data-hover", ne.includes(fe) ? "true" : "false" ); }); }, disabled: f } ) }); }, oke = ({ selectionType: e = "single", variant: t = "normal", presets: n = [], onCancel: r, onApply: i, onDateSelect: o, applyButtonText: a = "Apply", cancelButtonText: s = "Cancel", showOutsideDays: l = !0, isFooter: c = !0, selected: f, disabled: d, ...p }) => { const [m, y] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(() => { if (!f) return EE(e); const _ = e === "multiple" && Array.isArray(f), O = e === "range" && "from" in f && "to" in f, P = e === "single" && f instanceof Date; return _ || O || P ? f : EE(e); }), g = (_) => { y(_), o && o(_); }, v = [ { label: "Today", range: { from: wE(), to: wE() } }, { label: "Yesterday", range: { from: _E(), to: _E() } }, { label: "This Week", range: { from: Ws(/* @__PURE__ */ new Date(), { weekStartsOn: 1 }), to: k_(/* @__PURE__ */ new Date(), { weekStartsOn: 1 }) } }, { label: "Last 7 Days", range: { from: Wi(xE(/* @__PURE__ */ new Date(), 6)), to: Wi(/* @__PURE__ */ new Date()) } }, { label: "This Month", range: { from: rL(/* @__PURE__ */ new Date()), to: nL(/* @__PURE__ */ new Date()) } }, { label: "Last 30 Days", range: { from: Wi(xE(/* @__PURE__ */ new Date(), 29)), to: Wi(/* @__PURE__ */ new Date()) } } ], x = n.length > 0 ? n : v, w = (_) => { y(_); }, S = () => { y( e === "multiple" ? [] : { from: void 0, to: void 0 } ), r && r(); }, A = () => { i && i(m); }; if (t === "normal") return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Cb, { ...p, mode: e, variant: t, width: "w-[18.5rem]", selectedDates: m, showOutsideDays: l, setSelectedDates: g, footer: c && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex bg-background-primary justify-end p-2 gap-3 border border-solid border-border-subtle border-t-0 rounded-md rounded-tl-none rounded-tr-none", children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Hn, { variant: "outline", onClick: S, children: s } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Hn, { onClick: A, children: a }) ] }), disabled: d } ); if (t === "dualdate") return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Cb, { mode: e, numberOfMonths: 2, alignment: "horizontal", selectedDates: m, setSelectedDates: g, showOutsideDays: l, variant: t, width: "w-auto", footer: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex bg-background-primary justify-end p-2 gap-3 border border-solid border-border-subtle border-t-0 rounded-md rounded-tl-none rounded-tr-none", children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Hn, { variant: "outline", onClick: S, children: s }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Hn, { onClick: A, children: a }) ] }), disabled: d, ...p } ); if (t === "presets") return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex flex-row shadow-datepicker-wrapper", children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "flex flex-col gap-1 p-3 items-start border border-solid border-border-subtle border-r-0 rounded-tl-md rounded-bl-md bg-background-primary", children: x.map((_, O) => { var C, k; const P = m && "from" in m && "to" in m && ((C = m.from) == null ? void 0 : C.getTime()) === _.range.from.getTime() && ((k = m.to) == null ? void 0 : k.getTime()) === _.range.to.getTime(); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Hn, { onClick: () => w(_.range), variant: "ghost", className: K( "text-left font-medium text-sm text-nowrap w-full", P && "bg-brand-background-50" ), children: _.label }, O ); }) }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Cb, { ...p, mode: e, selectedDates: m, setSelectedDates: g, variant: t, showOutsideDays: l, width: "w-auto", numberOfMonths: 2, footer: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex justify-end p-2 gap-3 border-l border-r border-t-0 border-b border-solid border-border-subtle bg-background-primary rounded-br-md", children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Hn, { variant: "outline", onClick: S, children: s } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Hn, { onClick: A, children: a }) ] }), disabled: d } ) ] }); }, _L = ({ type: e = "simple", defaultValue: t = [], autoClose: n = !1, disabled: r = !1, children: i, className: o }) => { const [a, s] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)( Array.isArray(t) ? t : [t] ), l = (f) => { s((d) => n ? d.includes(f) ? [] : [f] : d.includes(f) ? d.filter((p) => p !== f) : [...d, f]); }; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: K(e === "boxed" ? "space-y-3" : "", o), children: react__WEBPACK_IMPORTED_MODULE_1__.Children.map(i, (f) => react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(f) && "value" in f.props ? react__WEBPACK_IMPORTED_MODULE_1__.cloneElement( f, { isOpen: a.includes(f.props.value), onToggle: () => l(f.props.value), type: e, disabled: r || f.props.disabled } ) : f) }); }; _L.displayName = "Accordion"; const SL = ({ isOpen: e, onToggle: t, type: n = "simple", disabled: r = !1, children: i, className: o }) => { const a = { simple: "border-0", separator: "border-0 border-b border-solid border-border-subtle", boxed: "border border-solid border-border-subtle rounded-md" }[n]; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: K(a, o), children: react__WEBPACK_IMPORTED_MODULE_1__.Children.map( i, (s) => react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(s) ? react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(s, { isOpen: e, onToggle: t, type: n, disabled: r }) : s ) }); }; SL.displayName = "Accordion.Item"; const OL = ({ onToggle: e, isOpen: t, iconType: n = "arrow", // arrow, plus-minus disabled: r = !1, tag: i = "h3", type: o = "simple", children: a, className: s, ...l }) => { const c = { simple: "px-2 py-3", separator: "px-2 py-4", boxed: "px-3 py-4" }[o], f = () => n === "arrow" ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Xw, { className: K( "flex-shrink-0 text-icon-secondary size-5 transition-transform duration-300 ease-in-out", t ? "rotate-180" : "rotate-0" ) } ) : n === "plus-minus" ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( An.span, { initial: { opacity: 0, rotate: t ? -180 : 0 }, animate: { opacity: 1, rotate: t ? 0 : 180 }, exit: { opacity: 0 }, transition: { duration: 0.3, ease: "easeInOut" }, className: "flex items-center flex-shrink-0 text-icon-secondary", children: t ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(tD, {}) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(nD, {}) }, t ? "minus" : "plus" ) : null; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(i, { className: "flex m-0 hover:bg-background-secondary transition duration-150 ease-in-out", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "button", { className: K( "flex w-full items-center justify-between text-sm font-medium transition-all appearance-none bg-transparent border-0 cursor-pointer gap-3", c, r && "cursor-not-allowed opacity-40", s ), onClick: r ? () => { } : e, "aria-expanded": t, disabled: r, ...l, children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "flex items-center gap-2 text-text-primary font-semibold text-left", children: a }), f() ] } ) }); }; OL.displayName = "Accordion.Trigger"; const AL = ({ isOpen: e, disabled: t = !1, type: n = "simple", children: r, className: i }) => { const o = { open: { height: "auto", opacity: 1 }, closed: { height: 0, opacity: 0 } }, a = { simple: "px-2 pb-3", separator: "px-2 pb-4", boxed: "px-3 pb-4" }[n]; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Ys, { initial: !1, children: e && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( An.div, { variants: o, initial: "closed", animate: "open", exit: "closed", transition: { duration: 0.3, ease: "easeInOut" }, className: K( "overflow-hidden text-text-secondary w-full text-sm transition-[height, opacity, transform] ease-in box-border", t && "opacity-40", i ), "aria-hidden": !e, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: K(a), children: r }) }, "content" ) }); }; AL.displayName = "Accordion.Content"; const ake = Object.assign(_L, { Item: SL, Trigger: OL, Content: AL }); var Qne = Array.isArray, Tr = Qne, ere = typeof _commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.c == "object" && _commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.c && _commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.c.Object === Object && _commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.c, TL = ere, tre = TL, nre = typeof self == "object" && self && self.Object === Object && self, rre = tre || nre || Function("return this")(), ao = rre, ire = ao, ore = ire.Symbol, Td = ore, kE = Td, PL = Object.prototype, are = PL.hasOwnProperty, sre = PL.toString, Pu = kE ? kE.toStringTag : void 0; function lre(e) { var t = are.call(e, Pu), n = e[Pu]; try { e[Pu] = void 0; var r = !0; } catch { } var i = sre.call(e); return r && (t ? e[Pu] = n : delete e[Pu]), i; } var cre = lre, ure = Object.prototype, fre = ure.toString; function dre(e) { return fre.call(e); } var hre = dre, ME = Td, pre = cre, mre = hre, gre = "[object Null]", yre = "[object Undefined]", NE = ME ? ME.toStringTag : void 0; function vre(e) { return e == null ? e === void 0 ? yre : gre : NE && NE in Object(e) ? pre(e) : mre(e); } var ea = vre; function bre(e) { return e != null && typeof e == "object"; } var ta = bre, xre = ea, wre = ta, _re = "[object Symbol]"; function Sre(e) { return typeof e == "symbol" || wre(e) && xre(e) == _re; } var zc = Sre, Ore = Tr, Are = zc, Tre = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Pre = /^\w*$/; function Cre(e, t) { if (Ore(e)) return !1; var n = typeof e; return n == "number" || n == "symbol" || n == "boolean" || e == null || Are(e) ? !0 : Pre.test(e) || !Tre.test(e) || t != null && e in Object(t); } var N_ = Cre; function Ere(e) { var t = typeof e; return e != null && (t == "object" || t == "function"); } var Ka = Ere; const Vc = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(Ka); var kre = ea, Mre = Ka, Nre = "[object AsyncFunction]", $re = "[object Function]", Dre = "[object GeneratorFunction]", Ire = "[object Proxy]"; function Rre(e) { if (!Mre(e)) return !1; var t = kre(e); return t == $re || t == Dre || t == Nre || t == Ire; } var $_ = Rre; const ze = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)($_); var jre = ao, Lre = jre["__core-js_shared__"], Bre = Lre, Eb = Bre, $E = function() { var e = /[^.]+$/.exec(Eb && Eb.keys && Eb.keys.IE_PROTO || ""); return e ? "Symbol(src)_1." + e : ""; }(); function Fre(e) { return !!$E && $E in e; } var Wre = Fre, zre = Function.prototype, Vre = zre.toString; function Ure(e) { if (e != null) { try { return Vre.call(e); } catch { } try { return e + ""; } catch { } } return ""; } var CL = Ure, Hre = $_, Kre = Wre, Gre = Ka, Yre = CL, qre = /[\\^$.*+?()[\]{}|]/g, Xre = /^\[object .+?Constructor\]$/, Zre = Function.prototype, Jre = Object.prototype, Qre = Zre.toString, eie = Jre.hasOwnProperty, tie = RegExp( "^" + Qre.call(eie).replace(qre, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); function nie(e) { if (!Gre(e) || Kre(e)) return !1; var t = Hre(e) ? tie : Xre; return t.test(Yre(e)); } var rie = nie; function iie(e, t) { return e == null ? void 0 : e[t]; } var oie = iie, aie = rie, sie = oie; function lie(e, t) { var n = sie(e, t); return aie(n) ? n : void 0; } var el = lie, cie = el, uie = cie(Object, "create"), Gg = uie, DE = Gg; function fie() { this.__data__ = DE ? DE(null) : {}, this.size = 0; } var die = fie; function hie(e) { var t = this.has(e) && delete this.__data__[e]; return this.size -= t ? 1 : 0, t; } var pie = hie, mie = Gg, gie = "__lodash_hash_undefined__", yie = Object.prototype, vie = yie.hasOwnProperty; function bie(e) { var t = this.__data__; if (mie) { var n = t[e]; return n === gie ? void 0 : n; } return vie.call(t, e) ? t[e] : void 0; } var xie = bie, wie = Gg, _ie = Object.prototype, Sie = _ie.hasOwnProperty; function Oie(e) { var t = this.__data__; return wie ? t[e] !== void 0 : Sie.call(t, e); } var Aie = Oie, Tie = Gg, Pie = "__lodash_hash_undefined__"; function Cie(e, t) { var n = this.__data__; return this.size += this.has(e) ? 0 : 1, n[e] = Tie && t === void 0 ? Pie : t, this; } var Eie = Cie, kie = die, Mie = pie, Nie = xie, $ie = Aie, Die = Eie; function Uc(e) { var t = -1, n = e == null ? 0 : e.length; for (this.clear(); ++t < n; ) { var r = e[t]; this.set(r[0], r[1]); } } Uc.prototype.clear = kie; Uc.prototype.delete = Mie; Uc.prototype.get = Nie; Uc.prototype.has = $ie; Uc.prototype.set = Die; var Iie = Uc; function Rie() { this.__data__ = [], this.size = 0; } var jie = Rie; function Lie(e, t) { return e === t || e !== e && t !== t; } var D_ = Lie, Bie = D_; function Fie(e, t) { for (var n = e.length; n--; ) if (Bie(e[n][0], t)) return n; return -1; } var Yg = Fie, Wie = Yg, zie = Array.prototype, Vie = zie.splice; function Uie(e) { var t = this.__data__, n = Wie(t, e); if (n < 0) return !1; var r = t.length - 1; return n == r ? t.pop() : Vie.call(t, n, 1), --this.size, !0; } var Hie = Uie, Kie = Yg; function Gie(e) { var t = this.__data__, n = Kie(t, e); return n < 0 ? void 0 : t[n][1]; } var Yie = Gie, qie = Yg; function Xie(e) { return qie(this.__data__, e) > -1; } var Zie = Xie, Jie = Yg; function Qie(e, t) { var n = this.__data__, r = Jie(n, e); return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this; } var eoe = Qie, toe = jie, noe = Hie, roe = Yie, ioe = Zie, ooe = eoe; function Hc(e) { var t = -1, n = e == null ? 0 : e.length; for (this.clear(); ++t < n; ) { var r = e[t]; this.set(r[0], r[1]); } } Hc.prototype.clear = toe; Hc.prototype.delete = noe; Hc.prototype.get = roe; Hc.prototype.has = ioe; Hc.prototype.set = ooe; var qg = Hc, aoe = el, soe = ao, loe = aoe(soe, "Map"), I_ = loe, IE = Iie, coe = qg, uoe = I_; function foe() { this.size = 0, this.__data__ = { hash: new IE(), map: new (uoe || coe)(), string: new IE() }; } var doe = foe; function hoe(e) { var t = typeof e; return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null; } var poe = hoe, moe = poe; function goe(e, t) { var n = e.__data__; return moe(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map; } var Xg = goe, yoe = Xg; function voe(e) { var t = yoe(this, e).delete(e); return this.size -= t ? 1 : 0, t; } var boe = voe, xoe = Xg; function woe(e) { return xoe(this, e).get(e); } var _oe = woe, Soe = Xg; function Ooe(e) { return Soe(this, e).has(e); } var Aoe = Ooe, Toe = Xg; function Poe(e, t) { var n = Toe(this, e), r = n.size; return n.set(e, t), this.size += n.size == r ? 0 : 1, this; } var Coe = Poe, Eoe = doe, koe = boe, Moe = _oe, Noe = Aoe, $oe = Coe; function Kc(e) { var t = -1, n = e == null ? 0 : e.length; for (this.clear(); ++t < n; ) { var r = e[t]; this.set(r[0], r[1]); } } Kc.prototype.clear = Eoe; Kc.prototype.delete = koe; Kc.prototype.get = Moe; Kc.prototype.has = Noe; Kc.prototype.set = $oe; var R_ = Kc, EL = R_, Doe = "Expected a function"; function j_(e, t) { if (typeof e != "function" || t != null && typeof t != "function") throw new TypeError(Doe); var n = function() { var r = arguments, i = t ? t.apply(this, r) : r[0], o = n.cache; if (o.has(i)) return o.get(i); var a = e.apply(this, r); return n.cache = o.set(i, a) || o, a; }; return n.cache = new (j_.Cache || EL)(), n; } j_.Cache = EL; var kL = j_; const Ioe = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(kL); var Roe = kL, joe = 500; function Loe(e) { var t = Roe(e, function(r) { return n.size === joe && n.clear(), r; }), n = t.cache; return t; } var Boe = Loe, Foe = Boe, Woe = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, zoe = /\\(\\)?/g, Voe = Foe(function(e) { var t = []; return e.charCodeAt(0) === 46 && t.push(""), e.replace(Woe, function(n, r, i, o) { t.push(i ? o.replace(zoe, "$1") : r || n); }), t; }), Uoe = Voe; function Hoe(e, t) { for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r; ) i[n] = t(e[n], n, e); return i; } var L_ = Hoe, RE = Td, Koe = L_, Goe = Tr, Yoe = zc, qoe = 1 / 0, jE = RE ? RE.prototype : void 0, LE = jE ? jE.toString : void 0; function ML(e) { if (typeof e == "string") return e; if (Goe(e)) return Koe(e, ML) + ""; if (Yoe(e)) return LE ? LE.call(e) : ""; var t = e + ""; return t == "0" && 1 / e == -qoe ? "-0" : t; } var Xoe = ML, Zoe = Xoe; function Joe(e) { return e == null ? "" : Zoe(e); } var NL = Joe, Qoe = Tr, eae = N_, tae = Uoe, nae = NL; function rae(e, t) { return Qoe(e) ? e : eae(e, t) ? [e] : tae(nae(e)); } var $L = rae, iae = zc, oae = 1 / 0; function aae(e) { if (typeof e == "string" || iae(e)) return e; var t = e + ""; return t == "0" && 1 / e == -oae ? "-0" : t; } var Zg = aae, sae = $L, lae = Zg; function cae(e, t) { t = sae(t, e); for (var n = 0, r = t.length; e != null && n < r; ) e = e[lae(t[n++])]; return n && n == r ? e : void 0; } var B_ = cae, uae = B_; function fae(e, t, n) { var r = e == null ? void 0 : uae(e, t); return r === void 0 ? n : r; } var DL = fae; const zr = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(DL); function dae(e) { return e == null; } var hae = dae; const Ue = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(hae); var pae = ea, mae = Tr, gae = ta, yae = "[object String]"; function vae(e) { return typeof e == "string" || !mae(e) && gae(e) && pae(e) == yae; } var bae = vae; const Pd = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(bae); var mx = { exports: {} }, bt = {}; /** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var BE; function xae() { if (BE) return bt; BE = 1; var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), a = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), y; y = Symbol.for("react.module.reference"); function g(v) { if (typeof v == "object" && v !== null) { var x = v.$$typeof; switch (x) { case e: switch (v = v.type, v) { case n: case i: case r: case c: case f: return v; default: switch (v = v && v.$$typeof, v) { case s: case a: case l: case p: case d: case o: return v; default: return x; } } case t: return x; } } } return bt.ContextConsumer = a, bt.ContextProvider = o, bt.Element = e, bt.ForwardRef = l, bt.Fragment = n, bt.Lazy = p, bt.Memo = d, bt.Portal = t, bt.Profiler = i, bt.StrictMode = r, bt.Suspense = c, bt.SuspenseList = f, bt.isAsyncMode = function() { return !1; }, bt.isConcurrentMode = function() { return !1; }, bt.isContextConsumer = function(v) { return g(v) === a; }, bt.isContextProvider = function(v) { return g(v) === o; }, bt.isElement = function(v) { return typeof v == "object" && v !== null && v.$$typeof === e; }, bt.isForwardRef = function(v) { return g(v) === l; }, bt.isFragment = function(v) { return g(v) === n; }, bt.isLazy = function(v) { return g(v) === p; }, bt.isMemo = function(v) { return g(v) === d; }, bt.isPortal = function(v) { return g(v) === t; }, bt.isProfiler = function(v) { return g(v) === i; }, bt.isStrictMode = function(v) { return g(v) === r; }, bt.isSuspense = function(v) { return g(v) === c; }, bt.isSuspenseList = function(v) { return g(v) === f; }, bt.isValidElementType = function(v) { return typeof v == "string" || typeof v == "function" || v === n || v === i || v === r || v === c || v === f || v === m || typeof v == "object" && v !== null && (v.$$typeof === p || v.$$typeof === d || v.$$typeof === o || v.$$typeof === a || v.$$typeof === l || v.$$typeof === y || v.getModuleId !== void 0); }, bt.typeOf = g, bt; } var xt = {}; /** * @license React * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var FE; function wae() { return FE || (FE = 1, true && function() { var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), a = Symbol.for("react.context"), s = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), y = !1, g = !1, v = !1, x = !1, w = !1, S; S = Symbol.for("react.module.reference"); function A(de) { return !!(typeof de == "string" || typeof de == "function" || de === n || de === i || w || de === r || de === c || de === f || x || de === m || y || g || v || typeof de == "object" && de !== null && (de.$$typeof === p || de.$$typeof === d || de.$$typeof === o || de.$$typeof === a || de.$$typeof === l || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. de.$$typeof === S || de.getModuleId !== void 0)); } function _(de) { if (typeof de == "object" && de !== null) { var ke = de.$$typeof; switch (ke) { case e: var it = de.type; switch (it) { case n: case i: case r: case c: case f: return it; default: var lt = it && it.$$typeof; switch (lt) { case s: case a: case l: case p: case d: case o: return lt; default: return ke; } } case t: return ke; } } } var O = a, P = o, C = e, k = l, I = n, $ = p, N = d, D = t, j = i, F = r, W = c, z = f, H = !1, U = !1; function V(de) { return H || (H = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1; } function Y(de) { return U || (U = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1; } function Q(de) { return _(de) === a; } function ne(de) { return _(de) === o; } function re(de) { return typeof de == "object" && de !== null && de.$$typeof === e; } function ce(de) { return _(de) === l; } function oe(de) { return _(de) === n; } function fe(de) { return _(de) === p; } function ae(de) { return _(de) === d; } function ee(de) { return _(de) === t; } function se(de) { return _(de) === i; } function ge(de) { return _(de) === r; } function X(de) { return _(de) === c; } function $e(de) { return _(de) === f; } xt.ContextConsumer = O, xt.ContextProvider = P, xt.Element = C, xt.ForwardRef = k, xt.Fragment = I, xt.Lazy = $, xt.Memo = N, xt.Portal = D, xt.Profiler = j, xt.StrictMode = F, xt.Suspense = W, xt.SuspenseList = z, xt.isAsyncMode = V, xt.isConcurrentMode = Y, xt.isContextConsumer = Q, xt.isContextProvider = ne, xt.isElement = re, xt.isForwardRef = ce, xt.isFragment = oe, xt.isLazy = fe, xt.isMemo = ae, xt.isPortal = ee, xt.isProfiler = se, xt.isStrictMode = ge, xt.isSuspense = X, xt.isSuspenseList = $e, xt.isValidElementType = A, xt.typeOf = _; }()), xt; } false ? 0 : mx.exports = wae(); var _ae = mx.exports, Sae = ea, Oae = ta, Aae = "[object Number]"; function Tae(e) { return typeof e == "number" || Oae(e) && Sae(e) == Aae; } var IL = Tae; const Pae = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(IL); var Cae = IL; function Eae(e) { return Cae(e) && e != +e; } var kae = Eae; const Gc = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(kae); var fr = function(t) { return t === 0 ? 0 : t > 0 ? 1 : -1; }, Ss = function(t) { return Pd(t) && t.indexOf("%") === t.length - 1; }, be = function(t) { return Pae(t) && !Gc(t); }, On = function(t) { return be(t) || Pd(t); }, Mae = 0, tl = function(t) { var n = ++Mae; return "".concat(t || "").concat(n); }, dr = function(t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1; if (!be(t) && !Pd(t)) return r; var o; if (Ss(t)) { var a = t.indexOf("%"); o = n * parseFloat(t.slice(0, a)) / 100; } else o = +t; return Gc(o) && (o = r), i && o > n && (o = n), o; }, Sa = function(t) { if (!t) return null; var n = Object.keys(t); return n && n.length ? t[n[0]] : null; }, Nae = function(t) { if (!Array.isArray(t)) return !1; for (var n = t.length, r = {}, i = 0; i < n; i++) if (!r[t[i]]) r[t[i]] = !0; else return !0; return !1; }, _n = function(t, n) { return be(t) && be(n) ? function(r) { return t + r * (n - t); } : function() { return n; }; }; function Gp(e, t, n) { return !e || !e.length ? null : e.find(function(r) { return r && (typeof t == "function" ? t(r) : zr(r, t)) === n; }); } function Yl(e, t) { for (var n in e) if ({}.hasOwnProperty.call(e, n) && (!{}.hasOwnProperty.call(t, n) || e[n] !== t[n])) return !1; for (var r in t) if ({}.hasOwnProperty.call(t, r) && !{}.hasOwnProperty.call(e, r)) return !1; return !0; } function gx(e) { "@babel/helpers - typeof"; return gx = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, gx(e); } var $ae = ["viewBox", "children"], Dae = [ "aria-activedescendant", "aria-atomic", "aria-autocomplete", "aria-busy", "aria-checked", "aria-colcount", "aria-colindex", "aria-colspan", "aria-controls", "aria-current", "aria-describedby", "aria-details", "aria-disabled", "aria-errormessage", "aria-expanded", "aria-flowto", "aria-haspopup", "aria-hidden", "aria-invalid", "aria-keyshortcuts", "aria-label", "aria-labelledby", "aria-level", "aria-live", "aria-modal", "aria-multiline", "aria-multiselectable", "aria-orientation", "aria-owns", "aria-placeholder", "aria-posinset", "aria-pressed", "aria-readonly", "aria-relevant", "aria-required", "aria-roledescription", "aria-rowcount", "aria-rowindex", "aria-rowspan", "aria-selected", "aria-setsize", "aria-sort", "aria-valuemax", "aria-valuemin", "aria-valuenow", "aria-valuetext", "className", "color", "height", "id", "lang", "max", "media", "method", "min", "name", "style", /* * removed 'type' SVGElementPropKey because we do not currently use any SVG elements * that can use it and it conflicts with the recharts prop 'type' * https://github.com/recharts/recharts/pull/3327 * https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/type */ // 'type', "target", "width", "role", "tabIndex", "accentHeight", "accumulate", "additive", "alignmentBaseline", "allowReorder", "alphabetic", "amplitude", "arabicForm", "ascent", "attributeName", "attributeType", "autoReverse", "azimuth", "baseFrequency", "baselineShift", "baseProfile", "bbox", "begin", "bias", "by", "calcMode", "capHeight", "clip", "clipPath", "clipPathUnits", "clipRule", "colorInterpolation", "colorInterpolationFilters", "colorProfile", "colorRendering", "contentScriptType", "contentStyleType", "cursor", "cx", "cy", "d", "decelerate", "descent", "diffuseConstant", "direction", "display", "divisor", "dominantBaseline", "dur", "dx", "dy", "edgeMode", "elevation", "enableBackground", "end", "exponent", "externalResourcesRequired", "fill", "fillOpacity", "fillRule", "filter", "filterRes", "filterUnits", "floodColor", "floodOpacity", "focusable", "fontFamily", "fontSize", "fontSizeAdjust", "fontStretch", "fontStyle", "fontVariant", "fontWeight", "format", "from", "fx", "fy", "g1", "g2", "glyphName", "glyphOrientationHorizontal", "glyphOrientationVertical", "glyphRef", "gradientTransform", "gradientUnits", "hanging", "horizAdvX", "horizOriginX", "href", "ideographic", "imageRendering", "in2", "in", "intercept", "k1", "k2", "k3", "k4", "k", "kernelMatrix", "kernelUnitLength", "kerning", "keyPoints", "keySplines", "keyTimes", "lengthAdjust", "letterSpacing", "lightingColor", "limitingConeAngle", "local", "markerEnd", "markerHeight", "markerMid", "markerStart", "markerUnits", "markerWidth", "mask", "maskContentUnits", "maskUnits", "mathematical", "mode", "numOctaves", "offset", "opacity", "operator", "order", "orient", "orientation", "origin", "overflow", "overlinePosition", "overlineThickness", "paintOrder", "panose1", "pathLength", "patternContentUnits", "patternTransform", "patternUnits", "pointerEvents", "pointsAtX", "pointsAtY", "pointsAtZ", "preserveAlpha", "preserveAspectRatio", "primitiveUnits", "r", "radius", "refX", "refY", "renderingIntent", "repeatCount", "repeatDur", "requiredExtensions", "requiredFeatures", "restart", "result", "rotate", "rx", "ry", "seed", "shapeRendering", "slope", "spacing", "specularConstant", "specularExponent", "speed", "spreadMethod", "startOffset", "stdDeviation", "stemh", "stemv", "stitchTiles", "stopColor", "stopOpacity", "strikethroughPosition", "strikethroughThickness", "string", "stroke", "strokeDasharray", "strokeDashoffset", "strokeLinecap", "strokeLinejoin", "strokeMiterlimit", "strokeOpacity", "strokeWidth", "surfaceScale", "systemLanguage", "tableValues", "targetX", "targetY", "textAnchor", "textDecoration", "textLength", "textRendering", "to", "transform", "u1", "u2", "underlinePosition", "underlineThickness", "unicode", "unicodeBidi", "unicodeRange", "unitsPerEm", "vAlphabetic", "values", "vectorEffect", "version", "vertAdvY", "vertOriginX", "vertOriginY", "vHanging", "vIdeographic", "viewTarget", "visibility", "vMathematical", "widths", "wordSpacing", "writingMode", "x1", "x2", "x", "xChannelSelector", "xHeight", "xlinkActuate", "xlinkArcrole", "xlinkHref", "xlinkRole", "xlinkShow", "xlinkTitle", "xlinkType", "xmlBase", "xmlLang", "xmlns", "xmlnsXlink", "xmlSpace", "y1", "y2", "y", "yChannelSelector", "z", "zoomAndPan", "ref", "key", "angle" ], WE = ["points", "pathLength"], kb = { svg: $ae, polygon: WE, polyline: WE }, F_ = ["dangerouslySetInnerHTML", "onCopy", "onCopyCapture", "onCut", "onCutCapture", "onPaste", "onPasteCapture", "onCompositionEnd", "onCompositionEndCapture", "onCompositionStart", "onCompositionStartCapture", "onCompositionUpdate", "onCompositionUpdateCapture", "onFocus", "onFocusCapture", "onBlur", "onBlurCapture", "onChange", "onChangeCapture", "onBeforeInput", "onBeforeInputCapture", "onInput", "onInputCapture", "onReset", "onResetCapture", "onSubmit", "onSubmitCapture", "onInvalid", "onInvalidCapture", "onLoad", "onLoadCapture", "onError", "onErrorCapture", "onKeyDown", "onKeyDownCapture", "onKeyPress", "onKeyPressCapture", "onKeyUp", "onKeyUpCapture", "onAbort", "onAbortCapture", "onCanPlay", "onCanPlayCapture", "onCanPlayThrough", "onCanPlayThroughCapture", "onDurationChange", "onDurationChangeCapture", "onEmptied", "onEmptiedCapture", "onEncrypted", "onEncryptedCapture", "onEnded", "onEndedCapture", "onLoadedData", "onLoadedDataCapture", "onLoadedMetadata", "onLoadedMetadataCapture", "onLoadStart", "onLoadStartCapture", "onPause", "onPauseCapture", "onPlay", "onPlayCapture", "onPlaying", "onPlayingCapture", "onProgress", "onProgressCapture", "onRateChange", "onRateChangeCapture", "onSeeked", "onSeekedCapture", "onSeeking", "onSeekingCapture", "onStalled", "onStalledCapture", "onSuspend", "onSuspendCapture", "onTimeUpdate", "onTimeUpdateCapture", "onVolumeChange", "onVolumeChangeCapture", "onWaiting", "onWaitingCapture", "onAuxClick", "onAuxClickCapture", "onClick", "onClickCapture", "onContextMenu", "onContextMenuCapture", "onDoubleClick", "onDoubleClickCapture", "onDrag", "onDragCapture", "onDragEnd", "onDragEndCapture", "onDragEnter", "onDragEnterCapture", "onDragExit", "onDragExitCapture", "onDragLeave", "onDragLeaveCapture", "onDragOver", "onDragOverCapture", "onDragStart", "onDragStartCapture", "onDrop", "onDropCapture", "onMouseDown", "onMouseDownCapture", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseMoveCapture", "onMouseOut", "onMouseOutCapture", "onMouseOver", "onMouseOverCapture", "onMouseUp", "onMouseUpCapture", "onSelect", "onSelectCapture", "onTouchCancel", "onTouchCancelCapture", "onTouchEnd", "onTouchEndCapture", "onTouchMove", "onTouchMoveCapture", "onTouchStart", "onTouchStartCapture", "onPointerDown", "onPointerDownCapture", "onPointerMove", "onPointerMoveCapture", "onPointerUp", "onPointerUpCapture", "onPointerCancel", "onPointerCancelCapture", "onPointerEnter", "onPointerEnterCapture", "onPointerLeave", "onPointerLeaveCapture", "onPointerOver", "onPointerOverCapture", "onPointerOut", "onPointerOutCapture", "onGotPointerCapture", "onGotPointerCaptureCapture", "onLostPointerCapture", "onLostPointerCaptureCapture", "onScroll", "onScrollCapture", "onWheel", "onWheelCapture", "onAnimationStart", "onAnimationStartCapture", "onAnimationEnd", "onAnimationEndCapture", "onAnimationIteration", "onAnimationIterationCapture", "onTransitionEnd", "onTransitionEndCapture"], Yp = function(t, n) { if (!t || typeof t == "function" || typeof t == "boolean") return null; var r = t; if (/* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(t) && (r = t.props), !Vc(r)) return null; var i = {}; return Object.keys(r).forEach(function(o) { F_.includes(o) && (i[o] = n || function(a) { return r[o](r, a); }); }), i; }, Iae = function(t, n, r) { return function(i) { return t(n, r, i), null; }; }, zs = function(t, n, r) { if (!Vc(t) || gx(t) !== "object") return null; var i = null; return Object.keys(t).forEach(function(o) { var a = t[o]; F_.includes(o) && typeof a == "function" && (i || (i = {}), i[o] = Iae(a, n, r)); }), i; }, Rae = ["children"], jae = ["children"]; function zE(e, t) { if (e == null) return {}; var n = Lae(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function Lae(e, t) { if (e == null) return {}; var n = {}; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { if (t.indexOf(r) >= 0) continue; n[r] = e[r]; } return n; } function yx(e) { "@babel/helpers - typeof"; return yx = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, yx(e); } var VE = { click: "onClick", mousedown: "onMouseDown", mouseup: "onMouseUp", mouseover: "onMouseOver", mousemove: "onMouseMove", mouseout: "onMouseOut", mouseenter: "onMouseEnter", mouseleave: "onMouseLeave", touchcancel: "onTouchCancel", touchend: "onTouchEnd", touchmove: "onTouchMove", touchstart: "onTouchStart" }, jo = function(t) { return typeof t == "string" ? t : t ? t.displayName || t.name || "Component" : ""; }, UE = null, Mb = null, W_ = function e(t) { if (t === UE && Array.isArray(Mb)) return Mb; var n = []; return react__WEBPACK_IMPORTED_MODULE_1__.Children.forEach(t, function(r) { Ue(r) || (_ae.isFragment(r) ? n = n.concat(e(r.props.children)) : n.push(r)); }), Mb = n, UE = t, n; }; function Vr(e, t) { var n = [], r = []; return Array.isArray(t) ? r = t.map(function(i) { return jo(i); }) : r = [jo(t)], W_(e).forEach(function(i) { var o = zr(i, "type.displayName") || zr(i, "type.name"); r.indexOf(o) !== -1 && n.push(i); }), n; } function jr(e, t) { var n = Vr(e, t); return n && n[0]; } var HE = function(t) { if (!t || !t.props) return !1; var n = t.props, r = n.width, i = n.height; return !(!be(r) || r <= 0 || !be(i) || i <= 0); }, Bae = ["a", "altGlyph", "altGlyphDef", "altGlyphItem", "animate", "animateColor", "animateMotion", "animateTransform", "circle", "clipPath", "color-profile", "cursor", "defs", "desc", "ellipse", "feBlend", "feColormatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "font", "font-face", "font-face-format", "font-face-name", "font-face-url", "foreignObject", "g", "glyph", "glyphRef", "hkern", "image", "line", "lineGradient", "marker", "mask", "metadata", "missing-glyph", "mpath", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "script", "set", "stop", "style", "svg", "switch", "symbol", "text", "textPath", "title", "tref", "tspan", "use", "view", "vkern"], Fae = function(t) { return t && t.type && Pd(t.type) && Bae.indexOf(t.type) >= 0; }, RL = function(t) { return t && yx(t) === "object" && "clipDot" in t; }, Wae = function(t, n, r, i) { var o, a = (o = kb == null ? void 0 : kb[i]) !== null && o !== void 0 ? o : []; return !ze(t) && (i && a.includes(n) || Dae.includes(n)) || r && F_.includes(n); }, Ee = function(t, n, r) { if (!t || typeof t == "function" || typeof t == "boolean") return null; var i = t; if (/* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(t) && (i = t.props), !Vc(i)) return null; var o = {}; return Object.keys(i).forEach(function(a) { var s; Wae((s = i) === null || s === void 0 ? void 0 : s[a], a, n, r) && (o[a] = i[a]); }), o; }, vx = function e(t, n) { if (t === n) return !0; var r = react__WEBPACK_IMPORTED_MODULE_1__.Children.count(t); if (r !== react__WEBPACK_IMPORTED_MODULE_1__.Children.count(n)) return !1; if (r === 0) return !0; if (r === 1) return KE(Array.isArray(t) ? t[0] : t, Array.isArray(n) ? n[0] : n); for (var i = 0; i < r; i++) { var o = t[i], a = n[i]; if (Array.isArray(o) || Array.isArray(a)) { if (!e(o, a)) return !1; } else if (!KE(o, a)) return !1; } return !0; }, KE = function(t, n) { if (Ue(t) && Ue(n)) return !0; if (!Ue(t) && !Ue(n)) { var r = t.props || {}, i = r.children, o = zE(r, Rae), a = n.props || {}, s = a.children, l = zE(a, jae); return i && s ? Yl(o, l) && vx(i, s) : !i && !s ? Yl(o, l) : !1; } return !1; }, GE = function(t, n) { var r = [], i = {}; return W_(t).forEach(function(o, a) { if (Fae(o)) r.push(o); else if (o) { var s = jo(o.type), l = n[s] || {}, c = l.handler, f = l.once; if (c && (!f || !i[s])) { var d = c(o, s, a); r.push(d), i[s] = !0; } } }), r; }, zae = function(t) { var n = t && t.type; return n && VE[n] ? VE[n] : null; }, Vae = function(t, n) { return W_(n).indexOf(t); }, Uae = ["children", "width", "height", "viewBox", "className", "style", "title", "desc"]; function bx() { return bx = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, bx.apply(this, arguments); } function Hae(e, t) { if (e == null) return {}; var n = Kae(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function Kae(e, t) { if (e == null) return {}; var n = {}; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { if (t.indexOf(r) >= 0) continue; n[r] = e[r]; } return n; } function xx(e) { var t = e.children, n = e.width, r = e.height, i = e.viewBox, o = e.className, a = e.style, s = e.title, l = e.desc, c = Hae(e, Uae), f = i || { width: n, height: r, x: 0, y: 0 }, d = Xe("recharts-surface", o); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("svg", bx({}, Ee(c, !0, "svg"), { className: d, width: n, height: r, style: a, viewBox: "".concat(f.x, " ").concat(f.y, " ").concat(f.width, " ").concat(f.height) }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("title", null, s), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("desc", null, l), t); } var Gae = ["children", "className"]; function wx() { return wx = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, wx.apply(this, arguments); } function Yae(e, t) { if (e == null) return {}; var n = qae(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function qae(e, t) { if (e == null) return {}; var n = {}; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { if (t.indexOf(r) >= 0) continue; n[r] = e[r]; } return n; } var at = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.forwardRef(function(e, t) { var n = e.children, r = e.className, i = Yae(e, Gae), o = Xe("recharts-layer", r); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("g", wx({ className: o }, Ee(i, !0), { ref: t }), n); }), Xae = "development" !== "production", Mi = function(t, n) { for (var r = arguments.length, i = new Array(r > 2 ? r - 2 : 0), o = 2; o < r; o++) i[o - 2] = arguments[o]; if (Xae && typeof console < "u" && console.warn && (n === void 0 && console.warn("LogUtils requires an error message argument"), !t)) if (n === void 0) console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."); else { var a = 0; console.warn(n.replace(/%s/g, function() { return i[a++]; })); } }; function Zae(e, t, n) { var r = -1, i = e.length; t < 0 && (t = -t > i ? 0 : i + t), n = n > i ? i : n, n < 0 && (n += i), i = t > n ? 0 : n - t >>> 0, t >>>= 0; for (var o = Array(i); ++r < i; ) o[r] = e[r + t]; return o; } var Jae = Zae, Qae = Jae; function ese(e, t, n) { var r = e.length; return n = n === void 0 ? r : n, !t && n >= r ? e : Qae(e, t, n); } var tse = ese, nse = "\\ud800-\\udfff", rse = "\\u0300-\\u036f", ise = "\\ufe20-\\ufe2f", ose = "\\u20d0-\\u20ff", ase = rse + ise + ose, sse = "\\ufe0e\\ufe0f", lse = "\\u200d", cse = RegExp("[" + lse + nse + ase + sse + "]"); function use(e) { return cse.test(e); } var jL = use; function fse(e) { return e.split(""); } var dse = fse, LL = "\\ud800-\\udfff", hse = "\\u0300-\\u036f", pse = "\\ufe20-\\ufe2f", mse = "\\u20d0-\\u20ff", gse = hse + pse + mse, yse = "\\ufe0e\\ufe0f", vse = "[" + LL + "]", _x = "[" + gse + "]", Sx = "\\ud83c[\\udffb-\\udfff]", bse = "(?:" + _x + "|" + Sx + ")", BL = "[^" + LL + "]", FL = "(?:\\ud83c[\\udde6-\\uddff]){2}", WL = "[\\ud800-\\udbff][\\udc00-\\udfff]", xse = "\\u200d", zL = bse + "?", VL = "[" + yse + "]?", wse = "(?:" + xse + "(?:" + [BL, FL, WL].join("|") + ")" + VL + zL + ")*", _se = VL + zL + wse, Sse = "(?:" + [BL + _x + "?", _x, FL, WL, vse].join("|") + ")", Ose = RegExp(Sx + "(?=" + Sx + ")|" + Sse + _se, "g"); function Ase(e) { return e.match(Ose) || []; } var Tse = Ase, Pse = dse, Cse = jL, Ese = Tse; function kse(e) { return Cse(e) ? Ese(e) : Pse(e); } var Mse = kse, Nse = tse, $se = jL, Dse = Mse, Ise = NL; function Rse(e) { return function(t) { t = Ise(t); var n = $se(t) ? Dse(t) : void 0, r = n ? n[0] : t.charAt(0), i = n ? Nse(n, 1).join("") : t.slice(1); return r[e]() + i; }; } var jse = Rse, Lse = jse, Bse = Lse("toUpperCase"), Fse = Bse; const Jg = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(Fse); function jt(e) { return function() { return e; }; } const UL = Math.cos, qp = Math.sin, Ii = Math.sqrt, Xp = Math.PI, Qg = 2 * Xp, Ox = Math.PI, Ax = 2 * Ox, ys = 1e-6, Wse = Ax - ys; function HL(e) { this._ += e[0]; for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t]; } function zse(e) { let t = Math.floor(e); if (!(t >= 0)) throw new Error(`invalid digits: ${e}`); if (t > 15) return HL; const n = 10 ** t; return function(r) { this._ += r[0]; for (let i = 1, o = r.length; i < o; ++i) this._ += Math.round(arguments[i] * n) / n + r[i]; }; } class Vse { constructor(t) { this._x0 = this._y0 = // start of current subpath this._x1 = this._y1 = null, this._ = "", this._append = t == null ? HL : zse(t); } moveTo(t, n) { this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +n}`; } closePath() { this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`); } lineTo(t, n) { this._append`L${this._x1 = +t},${this._y1 = +n}`; } quadraticCurveTo(t, n, r, i) { this._append`Q${+t},${+n},${this._x1 = +r},${this._y1 = +i}`; } bezierCurveTo(t, n, r, i, o, a) { this._append`C${+t},${+n},${+r},${+i},${this._x1 = +o},${this._y1 = +a}`; } arcTo(t, n, r, i, o) { if (t = +t, n = +n, r = +r, i = +i, o = +o, o < 0) throw new Error(`negative radius: ${o}`); let a = this._x1, s = this._y1, l = r - t, c = i - n, f = a - t, d = s - n, p = f * f + d * d; if (this._x1 === null) this._append`M${this._x1 = t},${this._y1 = n}`; else if (p > ys) if (!(Math.abs(d * l - c * f) > ys) || !o) this._append`L${this._x1 = t},${this._y1 = n}`; else { let m = r - a, y = i - s, g = l * l + c * c, v = m * m + y * y, x = Math.sqrt(g), w = Math.sqrt(p), S = o * Math.tan((Ox - Math.acos((g + p - v) / (2 * x * w))) / 2), A = S / w, _ = S / x; Math.abs(A - 1) > ys && this._append`L${t + A * f},${n + A * d}`, this._append`A${o},${o},0,0,${+(d * m > f * y)},${this._x1 = t + _ * l},${this._y1 = n + _ * c}`; } } arc(t, n, r, i, o, a) { if (t = +t, n = +n, r = +r, a = !!a, r < 0) throw new Error(`negative radius: ${r}`); let s = r * Math.cos(i), l = r * Math.sin(i), c = t + s, f = n + l, d = 1 ^ a, p = a ? i - o : o - i; this._x1 === null ? this._append`M${c},${f}` : (Math.abs(this._x1 - c) > ys || Math.abs(this._y1 - f) > ys) && this._append`L${c},${f}`, r && (p < 0 && (p = p % Ax + Ax), p > Wse ? this._append`A${r},${r},0,1,${d},${t - s},${n - l}A${r},${r},0,1,${d},${this._x1 = c},${this._y1 = f}` : p > ys && this._append`A${r},${r},0,${+(p >= Ox)},${d},${this._x1 = t + r * Math.cos(o)},${this._y1 = n + r * Math.sin(o)}`); } rect(t, n, r, i) { this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +n}h${r = +r}v${+i}h${-r}Z`; } toString() { return this._; } } function z_(e) { let t = 3; return e.digits = function(n) { if (!arguments.length) return t; if (n == null) t = null; else { const r = Math.floor(n); if (!(r >= 0)) throw new RangeError(`invalid digits: ${n}`); t = r; } return e; }, () => new Vse(t); } function V_(e) { return typeof e == "object" && "length" in e ? e : Array.from(e); } function KL(e) { this._context = e; } KL.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._point = 0; }, lineEnd: function() { (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line; }, point: function(e, t) { switch (e = +e, t = +t, this._point) { case 0: this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t); break; case 1: this._point = 2; default: this._context.lineTo(e, t); break; } } }; function ey(e) { return new KL(e); } function GL(e) { return e[0]; } function YL(e) { return e[1]; } function qL(e, t) { var n = jt(!0), r = null, i = ey, o = null, a = z_(s); e = typeof e == "function" ? e : e === void 0 ? GL : jt(e), t = typeof t == "function" ? t : t === void 0 ? YL : jt(t); function s(l) { var c, f = (l = V_(l)).length, d, p = !1, m; for (r == null && (o = i(m = a())), c = 0; c <= f; ++c) !(c < f && n(d = l[c], c, l)) === p && ((p = !p) ? o.lineStart() : o.lineEnd()), p && o.point(+e(d, c, l), +t(d, c, l)); if (m) return o = null, m + "" || null; } return s.x = function(l) { return arguments.length ? (e = typeof l == "function" ? l : jt(+l), s) : e; }, s.y = function(l) { return arguments.length ? (t = typeof l == "function" ? l : jt(+l), s) : t; }, s.defined = function(l) { return arguments.length ? (n = typeof l == "function" ? l : jt(!!l), s) : n; }, s.curve = function(l) { return arguments.length ? (i = l, r != null && (o = i(r)), s) : i; }, s.context = function(l) { return arguments.length ? (l == null ? r = o = null : o = i(r = l), s) : r; }, s; } function zh(e, t, n) { var r = null, i = jt(!0), o = null, a = ey, s = null, l = z_(c); e = typeof e == "function" ? e : e === void 0 ? GL : jt(+e), t = typeof t == "function" ? t : jt(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? YL : jt(+n); function c(d) { var p, m, y, g = (d = V_(d)).length, v, x = !1, w, S = new Array(g), A = new Array(g); for (o == null && (s = a(w = l())), p = 0; p <= g; ++p) { if (!(p < g && i(v = d[p], p, d)) === x) if (x = !x) m = p, s.areaStart(), s.lineStart(); else { for (s.lineEnd(), s.lineStart(), y = p - 1; y >= m; --y) s.point(S[y], A[y]); s.lineEnd(), s.areaEnd(); } x && (S[p] = +e(v, p, d), A[p] = +t(v, p, d), s.point(r ? +r(v, p, d) : S[p], n ? +n(v, p, d) : A[p])); } if (w) return s = null, w + "" || null; } function f() { return qL().defined(i).curve(a).context(o); } return c.x = function(d) { return arguments.length ? (e = typeof d == "function" ? d : jt(+d), r = null, c) : e; }, c.x0 = function(d) { return arguments.length ? (e = typeof d == "function" ? d : jt(+d), c) : e; }, c.x1 = function(d) { return arguments.length ? (r = d == null ? null : typeof d == "function" ? d : jt(+d), c) : r; }, c.y = function(d) { return arguments.length ? (t = typeof d == "function" ? d : jt(+d), n = null, c) : t; }, c.y0 = function(d) { return arguments.length ? (t = typeof d == "function" ? d : jt(+d), c) : t; }, c.y1 = function(d) { return arguments.length ? (n = d == null ? null : typeof d == "function" ? d : jt(+d), c) : n; }, c.lineX0 = c.lineY0 = function() { return f().x(e).y(t); }, c.lineY1 = function() { return f().x(e).y(n); }, c.lineX1 = function() { return f().x(r).y(t); }, c.defined = function(d) { return arguments.length ? (i = typeof d == "function" ? d : jt(!!d), c) : i; }, c.curve = function(d) { return arguments.length ? (a = d, o != null && (s = a(o)), c) : a; }, c.context = function(d) { return arguments.length ? (d == null ? o = s = null : s = a(o = d), c) : o; }, c; } class XL { constructor(t, n) { this._context = t, this._x = n; } areaStart() { this._line = 0; } areaEnd() { this._line = NaN; } lineStart() { this._point = 0; } lineEnd() { (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line; } point(t, n) { switch (t = +t, n = +n, this._point) { case 0: { this._point = 1, this._line ? this._context.lineTo(t, n) : this._context.moveTo(t, n); break; } case 1: this._point = 2; default: { this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + t) / 2, this._y0, this._x0, n, t, n) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + n) / 2, t, this._y0, t, n); break; } } this._x0 = t, this._y0 = n; } } function Use(e) { return new XL(e, !0); } function Hse(e) { return new XL(e, !1); } const U_ = { draw(e, t) { const n = Ii(t / Xp); e.moveTo(n, 0), e.arc(0, 0, n, 0, Qg); } }, Kse = { draw(e, t) { const n = Ii(t / 5) / 2; e.moveTo(-3 * n, -n), e.lineTo(-n, -n), e.lineTo(-n, -3 * n), e.lineTo(n, -3 * n), e.lineTo(n, -n), e.lineTo(3 * n, -n), e.lineTo(3 * n, n), e.lineTo(n, n), e.lineTo(n, 3 * n), e.lineTo(-n, 3 * n), e.lineTo(-n, n), e.lineTo(-3 * n, n), e.closePath(); } }, ZL = Ii(1 / 3), Gse = ZL * 2, Yse = { draw(e, t) { const n = Ii(t / Gse), r = n * ZL; e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath(); } }, qse = { draw(e, t) { const n = Ii(t), r = -n / 2; e.rect(r, r, n, n); } }, Xse = 0.8908130915292852, JL = qp(Xp / 10) / qp(7 * Xp / 10), Zse = qp(Qg / 10) * JL, Jse = -UL(Qg / 10) * JL, Qse = { draw(e, t) { const n = Ii(t * Xse), r = Zse * n, i = Jse * n; e.moveTo(0, -n), e.lineTo(r, i); for (let o = 1; o < 5; ++o) { const a = Qg * o / 5, s = UL(a), l = qp(a); e.lineTo(l * n, -s * n), e.lineTo(s * r - l * i, l * r + s * i); } e.closePath(); } }, Nb = Ii(3), ele = { draw(e, t) { const n = -Ii(t / (Nb * 3)); e.moveTo(0, n * 2), e.lineTo(-Nb * n, -n), e.lineTo(Nb * n, -n), e.closePath(); } }, ai = -0.5, si = Ii(3) / 2, Tx = 1 / Ii(12), tle = (Tx / 2 + 1) * 3, nle = { draw(e, t) { const n = Ii(t / tle), r = n / 2, i = n * Tx, o = r, a = n * Tx + n, s = -o, l = a; e.moveTo(r, i), e.lineTo(o, a), e.lineTo(s, l), e.lineTo(ai * r - si * i, si * r + ai * i), e.lineTo(ai * o - si * a, si * o + ai * a), e.lineTo(ai * s - si * l, si * s + ai * l), e.lineTo(ai * r + si * i, ai * i - si * r), e.lineTo(ai * o + si * a, ai * a - si * o), e.lineTo(ai * s + si * l, ai * l - si * s), e.closePath(); } }; function rle(e, t) { let n = null, r = z_(i); e = typeof e == "function" ? e : jt(e || U_), t = typeof t == "function" ? t : jt(t === void 0 ? 64 : +t); function i() { let o; if (n || (n = o = r()), e.apply(this, arguments).draw(n, +t.apply(this, arguments)), o) return n = null, o + "" || null; } return i.type = function(o) { return arguments.length ? (e = typeof o == "function" ? o : jt(o), i) : e; }, i.size = function(o) { return arguments.length ? (t = typeof o == "function" ? o : jt(+o), i) : t; }, i.context = function(o) { return arguments.length ? (n = o ?? null, i) : n; }, i; } function Zp() { } function Jp(e, t, n) { e._context.bezierCurveTo( (2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6 ); } function QL(e) { this._context = e; } QL.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0; }, lineEnd: function() { switch (this._point) { case 3: Jp(this, this._x1, this._y1); case 2: this._context.lineTo(this._x1, this._y1); break; } (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line; }, point: function(e, t) { switch (e = +e, t = +t, this._point) { case 0: this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t); break; case 1: this._point = 2; break; case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); default: Jp(this, e, t); break; } this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t; } }; function ile(e) { return new QL(e); } function eB(e) { this._context = e; } eB.prototype = { areaStart: Zp, areaEnd: Zp, lineStart: function() { this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0; }, lineEnd: function() { switch (this._point) { case 1: { this._context.moveTo(this._x2, this._y2), this._context.closePath(); break; } case 2: { this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), this._context.closePath(); break; } case 3: { this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4); break; } } }, point: function(e, t) { switch (e = +e, t = +t, this._point) { case 0: this._point = 1, this._x2 = e, this._y2 = t; break; case 1: this._point = 2, this._x3 = e, this._y3 = t; break; case 2: this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6); break; default: Jp(this, e, t); break; } this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t; } }; function ole(e) { return new eB(e); } function tB(e) { this._context = e; } tB.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0; }, lineEnd: function() { (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line; }, point: function(e, t) { switch (e = +e, t = +t, this._point) { case 0: this._point = 1; break; case 1: this._point = 2; break; case 2: this._point = 3; var n = (this._x0 + 4 * this._x1 + e) / 6, r = (this._y0 + 4 * this._y1 + t) / 6; this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r); break; case 3: this._point = 4; default: Jp(this, e, t); break; } this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t; } }; function ale(e) { return new tB(e); } function nB(e) { this._context = e; } nB.prototype = { areaStart: Zp, areaEnd: Zp, lineStart: function() { this._point = 0; }, lineEnd: function() { this._point && this._context.closePath(); }, point: function(e, t) { e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t)); } }; function sle(e) { return new nB(e); } function YE(e) { return e < 0 ? -1 : 1; } function qE(e, t, n) { var r = e._x1 - e._x0, i = t - e._x1, o = (e._y1 - e._y0) / (r || i < 0 && -0), a = (n - e._y1) / (i || r < 0 && -0), s = (o * i + a * r) / (r + i); return (YE(o) + YE(a)) * Math.min(Math.abs(o), Math.abs(a), 0.5 * Math.abs(s)) || 0; } function XE(e, t) { var n = e._x1 - e._x0; return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t; } function $b(e, t, n) { var r = e._x0, i = e._y0, o = e._x1, a = e._y1, s = (o - r) / 3; e._context.bezierCurveTo(r + s, i + s * t, o - s, a - s * n, o, a); } function Qp(e) { this._context = e; } Qp.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0; }, lineEnd: function() { switch (this._point) { case 2: this._context.lineTo(this._x1, this._y1); break; case 3: $b(this, this._t0, XE(this, this._t0)); break; } (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line; }, point: function(e, t) { var n = NaN; if (e = +e, t = +t, !(e === this._x1 && t === this._y1)) { switch (this._point) { case 0: this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t); break; case 1: this._point = 2; break; case 2: this._point = 3, $b(this, XE(this, n = qE(this, e, t)), n); break; default: $b(this, this._t0, n = qE(this, e, t)); break; } this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n; } } }; function rB(e) { this._context = new iB(e); } (rB.prototype = Object.create(Qp.prototype)).point = function(e, t) { Qp.prototype.point.call(this, t, e); }; function iB(e) { this._context = e; } iB.prototype = { moveTo: function(e, t) { this._context.moveTo(t, e); }, closePath: function() { this._context.closePath(); }, lineTo: function(e, t) { this._context.lineTo(t, e); }, bezierCurveTo: function(e, t, n, r, i, o) { this._context.bezierCurveTo(t, e, r, n, o, i); } }; function lle(e) { return new Qp(e); } function cle(e) { return new rB(e); } function oB(e) { this._context = e; } oB.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x = [], this._y = []; }, lineEnd: function() { var e = this._x, t = this._y, n = e.length; if (n) if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]); else for (var r = ZE(e), i = ZE(t), o = 0, a = 1; a < n; ++o, ++a) this._context.bezierCurveTo(r[0][o], i[0][o], r[1][o], i[1][o], e[a], t[a]); (this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null; }, point: function(e, t) { this._x.push(+e), this._y.push(+t); } }; function ZE(e) { var t, n = e.length - 1, r, i = new Array(n), o = new Array(n), a = new Array(n); for (i[0] = 0, o[0] = 2, a[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, o[t] = 4, a[t] = 4 * e[t] + 2 * e[t + 1]; for (i[n - 1] = 2, o[n - 1] = 7, a[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / o[t - 1], o[t] -= r, a[t] -= r * a[t - 1]; for (i[n - 1] = a[n - 1] / o[n - 1], t = n - 2; t >= 0; --t) i[t] = (a[t] - i[t + 1]) / o[t]; for (o[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) o[t] = 2 * e[t + 1] - i[t + 1]; return [i, o]; } function ule(e) { return new oB(e); } function ty(e, t) { this._context = e, this._t = t; } ty.prototype = { areaStart: function() { this._line = 0; }, areaEnd: function() { this._line = NaN; }, lineStart: function() { this._x = this._y = NaN, this._point = 0; }, lineEnd: function() { 0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line); }, point: function(e, t) { switch (e = +e, t = +t, this._point) { case 0: this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t); break; case 1: this._point = 2; default: { if (this._t <= 0) this._context.lineTo(this._x, t), this._context.lineTo(e, t); else { var n = this._x * (1 - this._t) + e * this._t; this._context.lineTo(n, this._y), this._context.lineTo(n, t); } break; } } this._x = e, this._y = t; } }; function fle(e) { return new ty(e, 0.5); } function dle(e) { return new ty(e, 0); } function hle(e) { return new ty(e, 1); } function oc(e, t) { if ((a = e.length) > 1) for (var n = 1, r, i, o = e[t[0]], a, s = o.length; n < a; ++n) for (i = o, o = e[t[n]], r = 0; r < s; ++r) o[r][1] += o[r][0] = isNaN(i[r][1]) ? i[r][0] : i[r][1]; } function Px(e) { for (var t = e.length, n = new Array(t); --t >= 0; ) n[t] = t; return n; } function ple(e, t) { return e[t]; } function mle(e) { const t = []; return t.key = e, t; } function gle() { var e = jt([]), t = Px, n = oc, r = ple; function i(o) { var a = Array.from(e.apply(this, arguments), mle), s, l = a.length, c = -1, f; for (const d of o) for (s = 0, ++c; s < l; ++s) (a[s][c] = [0, +r(d, a[s].key, c, o)]).data = d; for (s = 0, f = V_(t(a)); s < l; ++s) a[f[s]].index = s; return n(a, f), a; } return i.keys = function(o) { return arguments.length ? (e = typeof o == "function" ? o : jt(Array.from(o)), i) : e; }, i.value = function(o) { return arguments.length ? (r = typeof o == "function" ? o : jt(+o), i) : r; }, i.order = function(o) { return arguments.length ? (t = o == null ? Px : typeof o == "function" ? o : jt(Array.from(o)), i) : t; }, i.offset = function(o) { return arguments.length ? (n = o ?? oc, i) : n; }, i; } function yle(e, t) { if ((r = e.length) > 0) { for (var n, r, i = 0, o = e[0].length, a; i < o; ++i) { for (a = n = 0; n < r; ++n) a += e[n][i][1] || 0; if (a) for (n = 0; n < r; ++n) e[n][i][1] /= a; } oc(e, t); } } function vle(e, t) { if ((i = e.length) > 0) { for (var n = 0, r = e[t[0]], i, o = r.length; n < o; ++n) { for (var a = 0, s = 0; a < i; ++a) s += e[a][n][1] || 0; r[n][1] += r[n][0] = -s / 2; } oc(e, t); } } function ble(e, t) { if (!(!((a = e.length) > 0) || !((o = (i = e[t[0]]).length) > 0))) { for (var n = 0, r = 1, i, o, a; r < o; ++r) { for (var s = 0, l = 0, c = 0; s < a; ++s) { for (var f = e[t[s]], d = f[r][1] || 0, p = f[r - 1][1] || 0, m = (d - p) / 2, y = 0; y < s; ++y) { var g = e[t[y]], v = g[r][1] || 0, x = g[r - 1][1] || 0; m += v - x; } l += d, c += m * d; } i[r - 1][1] += i[r - 1][0] = n, l && (n -= c / l); } i[r - 1][1] += i[r - 1][0] = n, oc(e, t); } } function Pf(e) { "@babel/helpers - typeof"; return Pf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Pf(e); } var xle = ["type", "size", "sizeType"]; function Cx() { return Cx = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, Cx.apply(this, arguments); } function JE(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function QE(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? JE(Object(n), !0).forEach(function(r) { wle(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : JE(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function wle(e, t, n) { return t = _le(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function _le(e) { var t = Sle(e, "string"); return Pf(t) == "symbol" ? t : t + ""; } function Sle(e, t) { if (Pf(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Pf(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function Ole(e, t) { if (e == null) return {}; var n = Ale(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function Ale(e, t) { if (e == null) return {}; var n = {}; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { if (t.indexOf(r) >= 0) continue; n[r] = e[r]; } return n; } var aB = { symbolCircle: U_, symbolCross: Kse, symbolDiamond: Yse, symbolSquare: qse, symbolStar: Qse, symbolTriangle: ele, symbolWye: nle }, Tle = Math.PI / 180, Ple = function(t) { var n = "symbol".concat(Jg(t)); return aB[n] || U_; }, Cle = function(t, n, r) { if (n === "area") return t; switch (r) { case "cross": return 5 * t * t / 9; case "diamond": return 0.5 * t * t / Math.sqrt(3); case "square": return t * t; case "star": { var i = 18 * Tle; return 1.25 * t * t * (Math.tan(i) - Math.tan(i * 2) * Math.pow(Math.tan(i), 2)); } case "triangle": return Math.sqrt(3) * t * t / 4; case "wye": return (21 - 10 * Math.sqrt(3)) * t * t / 8; default: return Math.PI * t * t / 4; } }, Ele = function(t, n) { aB["symbol".concat(Jg(t))] = n; }, H_ = function(t) { var n = t.type, r = n === void 0 ? "circle" : n, i = t.size, o = i === void 0 ? 64 : i, a = t.sizeType, s = a === void 0 ? "area" : a, l = Ole(t, xle), c = QE(QE({}, l), {}, { type: r, size: o, sizeType: s }), f = function() { var v = Ple(r), x = rle().type(v).size(Cle(o, s, r)); return x(); }, d = c.className, p = c.cx, m = c.cy, y = Ee(c, !0); return p === +p && m === +m && o === +o ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("path", Cx({}, y, { className: Xe("recharts-symbols", d), transform: "translate(".concat(p, ", ").concat(m, ")"), d: f() })) : null; }; H_.registerSymbol = Ele; function ac(e) { "@babel/helpers - typeof"; return ac = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, ac(e); } function Ex() { return Ex = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, Ex.apply(this, arguments); } function ek(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function kle(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? ek(Object(n), !0).forEach(function(r) { Cf(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ek(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function Mle(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function Nle(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, lB(r.key), r); } } function $le(e, t, n) { return t && Nle(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function Dle(e, t, n) { return t = em(t), Ile(e, sB() ? Reflect.construct(t, n || [], em(e).constructor) : t.apply(e, n)); } function Ile(e, t) { if (t && (ac(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return Rle(e); } function Rle(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function sB() { try { var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (sB = function() { return !!e; })(); } function em(e) { return em = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); }, em(e); } function jle(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && kx(e, t); } function kx(e, t) { return kx = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { return r.__proto__ = i, r; }, kx(e, t); } function Cf(e, t, n) { return t = lB(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function lB(e) { var t = Lle(e, "string"); return ac(t) == "symbol" ? t : t + ""; } function Lle(e, t) { if (ac(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (ac(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var li = 32, K_ = /* @__PURE__ */ function(e) { function t() { return Mle(this, t), Dle(this, t, arguments); } return jle(t, e), $le(t, [{ key: "renderIcon", value: ( /** * Render the path of icon * @param {Object} data Data of each legend item * @return {String} Path element */ function(r) { var i = this.props.inactiveColor, o = li / 2, a = li / 6, s = li / 3, l = r.inactive ? i : r.color; if (r.type === "plainline") return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("line", { strokeWidth: 4, fill: "none", stroke: l, strokeDasharray: r.payload.strokeDasharray, x1: 0, y1: o, x2: li, y2: o, className: "recharts-legend-icon" }); if (r.type === "line") return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("path", { strokeWidth: 4, fill: "none", stroke: l, d: "M0,".concat(o, "h").concat(s, ` A`).concat(a, ",").concat(a, ",0,1,1,").concat(2 * s, ",").concat(o, ` H`).concat(li, "M").concat(2 * s, ",").concat(o, ` A`).concat(a, ",").concat(a, ",0,1,1,").concat(s, ",").concat(o), className: "recharts-legend-icon" }); if (r.type === "rect") return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("path", { stroke: "none", fill: l, d: "M0,".concat(li / 8, "h").concat(li, "v").concat(li * 3 / 4, "h").concat(-li, "z"), className: "recharts-legend-icon" }); if (/* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(r.legendIcon)) { var c = kle({}, r); return delete c.legendIcon, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(r.legendIcon, c); } return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(H_, { fill: l, cx: o, cy: o, size: li, sizeType: "diameter", type: r.type }); } ) /** * Draw items of legend * @return {ReactElement} Items */ }, { key: "renderItems", value: function() { var r = this, i = this.props, o = i.payload, a = i.iconSize, s = i.layout, l = i.formatter, c = i.inactiveColor, f = { x: 0, y: 0, width: li, height: li }, d = { display: s === "horizontal" ? "inline-block" : "block", marginRight: 10 }, p = { display: "inline-block", verticalAlign: "middle", marginRight: 4 }; return o.map(function(m, y) { var g = m.formatter || l, v = Xe(Cf(Cf({ "recharts-legend-item": !0 }, "legend-item-".concat(y), !0), "inactive", m.inactive)); if (m.type === "none") return null; var x = ze(m.value) ? null : m.value; Mi( !ze(m.value), `The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>` // eslint-disable-line max-len ); var w = m.inactive ? c : m.color; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("li", Ex({ className: v, style: d, key: "legend-item-".concat(y) }, zs(r.props, m, y)), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(xx, { width: a, height: a, viewBox: f, style: p }, r.renderIcon(m)), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "recharts-legend-item-text", style: { color: w } }, g ? g(x, m, y) : x)); }); } }, { key: "render", value: function() { var r = this.props, i = r.payload, o = r.layout, a = r.align; if (!i || !i.length) return null; var s = { padding: 0, margin: 0, textAlign: o === "horizontal" ? a : "left" }; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("ul", { className: "recharts-default-legend", style: s }, this.renderItems()); } }]); }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent); Cf(K_, "displayName", "Legend"); Cf(K_, "defaultProps", { iconSize: 14, layout: "horizontal", align: "center", verticalAlign: "middle", inactiveColor: "#ccc" }); var Ble = qg; function Fle() { this.__data__ = new Ble(), this.size = 0; } var Wle = Fle; function zle(e) { var t = this.__data__, n = t.delete(e); return this.size = t.size, n; } var Vle = zle; function Ule(e) { return this.__data__.get(e); } var Hle = Ule; function Kle(e) { return this.__data__.has(e); } var Gle = Kle, Yle = qg, qle = I_, Xle = R_, Zle = 200; function Jle(e, t) { var n = this.__data__; if (n instanceof Yle) { var r = n.__data__; if (!qle || r.length < Zle - 1) return r.push([e, t]), this.size = ++n.size, this; n = this.__data__ = new Xle(r); } return n.set(e, t), this.size = n.size, this; } var Qle = Jle, ece = qg, tce = Wle, nce = Vle, rce = Hle, ice = Gle, oce = Qle; function Yc(e) { var t = this.__data__ = new ece(e); this.size = t.size; } Yc.prototype.clear = tce; Yc.prototype.delete = nce; Yc.prototype.get = rce; Yc.prototype.has = ice; Yc.prototype.set = oce; var cB = Yc, ace = "__lodash_hash_undefined__"; function sce(e) { return this.__data__.set(e, ace), this; } var lce = sce; function cce(e) { return this.__data__.has(e); } var uce = cce, fce = R_, dce = lce, hce = uce; function tm(e) { var t = -1, n = e == null ? 0 : e.length; for (this.__data__ = new fce(); ++t < n; ) this.add(e[t]); } tm.prototype.add = tm.prototype.push = dce; tm.prototype.has = hce; var uB = tm; function pce(e, t) { for (var n = -1, r = e == null ? 0 : e.length; ++n < r; ) if (t(e[n], n, e)) return !0; return !1; } var fB = pce; function mce(e, t) { return e.has(t); } var dB = mce, gce = uB, yce = fB, vce = dB, bce = 1, xce = 2; function wce(e, t, n, r, i, o) { var a = n & bce, s = e.length, l = t.length; if (s != l && !(a && l > s)) return !1; var c = o.get(e), f = o.get(t); if (c && f) return c == t && f == e; var d = -1, p = !0, m = n & xce ? new gce() : void 0; for (o.set(e, t), o.set(t, e); ++d < s; ) { var y = e[d], g = t[d]; if (r) var v = a ? r(g, y, d, t, e, o) : r(y, g, d, e, t, o); if (v !== void 0) { if (v) continue; p = !1; break; } if (m) { if (!yce(t, function(x, w) { if (!vce(m, w) && (y === x || i(y, x, n, r, o))) return m.push(w); })) { p = !1; break; } } else if (!(y === g || i(y, g, n, r, o))) { p = !1; break; } } return o.delete(e), o.delete(t), p; } var hB = wce, _ce = ao, Sce = _ce.Uint8Array, Oce = Sce; function Ace(e) { var t = -1, n = Array(e.size); return e.forEach(function(r, i) { n[++t] = [i, r]; }), n; } var Tce = Ace; function Pce(e) { var t = -1, n = Array(e.size); return e.forEach(function(r) { n[++t] = r; }), n; } var G_ = Pce, tk = Td, nk = Oce, Cce = D_, Ece = hB, kce = Tce, Mce = G_, Nce = 1, $ce = 2, Dce = "[object Boolean]", Ice = "[object Date]", Rce = "[object Error]", jce = "[object Map]", Lce = "[object Number]", Bce = "[object RegExp]", Fce = "[object Set]", Wce = "[object String]", zce = "[object Symbol]", Vce = "[object ArrayBuffer]", Uce = "[object DataView]", rk = tk ? tk.prototype : void 0, Db = rk ? rk.valueOf : void 0; function Hce(e, t, n, r, i, o, a) { switch (n) { case Uce: if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1; e = e.buffer, t = t.buffer; case Vce: return !(e.byteLength != t.byteLength || !o(new nk(e), new nk(t))); case Dce: case Ice: case Lce: return Cce(+e, +t); case Rce: return e.name == t.name && e.message == t.message; case Bce: case Wce: return e == t + ""; case jce: var s = kce; case Fce: var l = r & Nce; if (s || (s = Mce), e.size != t.size && !l) return !1; var c = a.get(e); if (c) return c == t; r |= $ce, a.set(e, t); var f = Ece(s(e), s(t), r, i, o, a); return a.delete(e), f; case zce: if (Db) return Db.call(e) == Db.call(t); } return !1; } var Kce = Hce; function Gce(e, t) { for (var n = -1, r = t.length, i = e.length; ++n < r; ) e[i + n] = t[n]; return e; } var pB = Gce, Yce = pB, qce = Tr; function Xce(e, t, n) { var r = t(e); return qce(e) ? r : Yce(r, n(e)); } var Zce = Xce; function Jce(e, t) { for (var n = -1, r = e == null ? 0 : e.length, i = 0, o = []; ++n < r; ) { var a = e[n]; t(a, n, e) && (o[i++] = a); } return o; } var Qce = Jce; function eue() { return []; } var tue = eue, nue = Qce, rue = tue, iue = Object.prototype, oue = iue.propertyIsEnumerable, ik = Object.getOwnPropertySymbols, aue = ik ? function(e) { return e == null ? [] : (e = Object(e), nue(ik(e), function(t) { return oue.call(e, t); })); } : rue, sue = aue; function lue(e, t) { for (var n = -1, r = Array(e); ++n < e; ) r[n] = t(n); return r; } var cue = lue, uue = ea, fue = ta, due = "[object Arguments]"; function hue(e) { return fue(e) && uue(e) == due; } var pue = hue, ok = pue, mue = ta, mB = Object.prototype, gue = mB.hasOwnProperty, yue = mB.propertyIsEnumerable, vue = ok(/* @__PURE__ */ function() { return arguments; }()) ? ok : function(e) { return mue(e) && gue.call(e, "callee") && !yue.call(e, "callee"); }, Y_ = vue, nm = { exports: {} }; function bue() { return !1; } var xue = bue; nm.exports; (function(e, t) { var n = ao, r = xue, i = t && !t.nodeType && t, o = i && !0 && e && !e.nodeType && e, a = o && o.exports === i, s = a ? n.Buffer : void 0, l = s ? s.isBuffer : void 0, c = l || r; e.exports = c; })(nm, nm.exports); var gB = nm.exports, wue = 9007199254740991, _ue = /^(?:0|[1-9]\d*)$/; function Sue(e, t) { var n = typeof e; return t = t ?? wue, !!t && (n == "number" || n != "symbol" && _ue.test(e)) && e > -1 && e % 1 == 0 && e < t; } var q_ = Sue, Oue = 9007199254740991; function Aue(e) { return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Oue; } var X_ = Aue, Tue = ea, Pue = X_, Cue = ta, Eue = "[object Arguments]", kue = "[object Array]", Mue = "[object Boolean]", Nue = "[object Date]", $ue = "[object Error]", Due = "[object Function]", Iue = "[object Map]", Rue = "[object Number]", jue = "[object Object]", Lue = "[object RegExp]", Bue = "[object Set]", Fue = "[object String]", Wue = "[object WeakMap]", zue = "[object ArrayBuffer]", Vue = "[object DataView]", Uue = "[object Float32Array]", Hue = "[object Float64Array]", Kue = "[object Int8Array]", Gue = "[object Int16Array]", Yue = "[object Int32Array]", que = "[object Uint8Array]", Xue = "[object Uint8ClampedArray]", Zue = "[object Uint16Array]", Jue = "[object Uint32Array]", zt = {}; zt[Uue] = zt[Hue] = zt[Kue] = zt[Gue] = zt[Yue] = zt[que] = zt[Xue] = zt[Zue] = zt[Jue] = !0; zt[Eue] = zt[kue] = zt[zue] = zt[Mue] = zt[Vue] = zt[Nue] = zt[$ue] = zt[Due] = zt[Iue] = zt[Rue] = zt[jue] = zt[Lue] = zt[Bue] = zt[Fue] = zt[Wue] = !1; function Que(e) { return Cue(e) && Pue(e.length) && !!zt[Tue(e)]; } var efe = Que; function tfe(e) { return function(t) { return e(t); }; } var yB = tfe, rm = { exports: {} }; rm.exports; (function(e, t) { var n = TL, r = t && !t.nodeType && t, i = r && !0 && e && !e.nodeType && e, o = i && i.exports === r, a = o && n.process, s = function() { try { var l = i && i.require && i.require("util").types; return l || a && a.binding && a.binding("util"); } catch { } }(); e.exports = s; })(rm, rm.exports); var nfe = rm.exports, rfe = efe, ife = yB, ak = nfe, sk = ak && ak.isTypedArray, ofe = sk ? ife(sk) : rfe, vB = ofe, afe = cue, sfe = Y_, lfe = Tr, cfe = gB, ufe = q_, ffe = vB, dfe = Object.prototype, hfe = dfe.hasOwnProperty; function pfe(e, t) { var n = lfe(e), r = !n && sfe(e), i = !n && !r && cfe(e), o = !n && !r && !i && ffe(e), a = n || r || i || o, s = a ? afe(e.length, String) : [], l = s.length; for (var c in e) (t || hfe.call(e, c)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode. (c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers. i && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays. o && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties. ufe(c, l))) && s.push(c); return s; } var mfe = pfe, gfe = Object.prototype; function yfe(e) { var t = e && e.constructor, n = typeof t == "function" && t.prototype || gfe; return e === n; } var vfe = yfe; function bfe(e, t) { return function(n) { return e(t(n)); }; } var bB = bfe, xfe = bB, wfe = xfe(Object.keys, Object), _fe = wfe, Sfe = vfe, Ofe = _fe, Afe = Object.prototype, Tfe = Afe.hasOwnProperty; function Pfe(e) { if (!Sfe(e)) return Ofe(e); var t = []; for (var n in Object(e)) Tfe.call(e, n) && n != "constructor" && t.push(n); return t; } var Cfe = Pfe, Efe = $_, kfe = X_; function Mfe(e) { return e != null && kfe(e.length) && !Efe(e); } var Cd = Mfe, Nfe = mfe, $fe = Cfe, Dfe = Cd; function Ife(e) { return Dfe(e) ? Nfe(e) : $fe(e); } var ny = Ife, Rfe = Zce, jfe = sue, Lfe = ny; function Bfe(e) { return Rfe(e, Lfe, jfe); } var Ffe = Bfe, lk = Ffe, Wfe = 1, zfe = Object.prototype, Vfe = zfe.hasOwnProperty; function Ufe(e, t, n, r, i, o) { var a = n & Wfe, s = lk(e), l = s.length, c = lk(t), f = c.length; if (l != f && !a) return !1; for (var d = l; d--; ) { var p = s[d]; if (!(a ? p in t : Vfe.call(t, p))) return !1; } var m = o.get(e), y = o.get(t); if (m && y) return m == t && y == e; var g = !0; o.set(e, t), o.set(t, e); for (var v = a; ++d < l; ) { p = s[d]; var x = e[p], w = t[p]; if (r) var S = a ? r(w, x, p, t, e, o) : r(x, w, p, e, t, o); if (!(S === void 0 ? x === w || i(x, w, n, r, o) : S)) { g = !1; break; } v || (v = p == "constructor"); } if (g && !v) { var A = e.constructor, _ = t.constructor; A != _ && "constructor" in e && "constructor" in t && !(typeof A == "function" && A instanceof A && typeof _ == "function" && _ instanceof _) && (g = !1); } return o.delete(e), o.delete(t), g; } var Hfe = Ufe, Kfe = el, Gfe = ao, Yfe = Kfe(Gfe, "DataView"), qfe = Yfe, Xfe = el, Zfe = ao, Jfe = Xfe(Zfe, "Promise"), Qfe = Jfe, ede = el, tde = ao, nde = ede(tde, "Set"), xB = nde, rde = el, ide = ao, ode = rde(ide, "WeakMap"), ade = ode, Mx = qfe, Nx = I_, $x = Qfe, Dx = xB, Ix = ade, wB = ea, qc = CL, ck = "[object Map]", sde = "[object Object]", uk = "[object Promise]", fk = "[object Set]", dk = "[object WeakMap]", hk = "[object DataView]", lde = qc(Mx), cde = qc(Nx), ude = qc($x), fde = qc(Dx), dde = qc(Ix), vs = wB; (Mx && vs(new Mx(new ArrayBuffer(1))) != hk || Nx && vs(new Nx()) != ck || $x && vs($x.resolve()) != uk || Dx && vs(new Dx()) != fk || Ix && vs(new Ix()) != dk) && (vs = function(e) { var t = wB(e), n = t == sde ? e.constructor : void 0, r = n ? qc(n) : ""; if (r) switch (r) { case lde: return hk; case cde: return ck; case ude: return uk; case fde: return fk; case dde: return dk; } return t; }); var hde = vs, Ib = cB, pde = hB, mde = Kce, gde = Hfe, pk = hde, mk = Tr, gk = gB, yde = vB, vde = 1, yk = "[object Arguments]", vk = "[object Array]", Vh = "[object Object]", bde = Object.prototype, bk = bde.hasOwnProperty; function xde(e, t, n, r, i, o) { var a = mk(e), s = mk(t), l = a ? vk : pk(e), c = s ? vk : pk(t); l = l == yk ? Vh : l, c = c == yk ? Vh : c; var f = l == Vh, d = c == Vh, p = l == c; if (p && gk(e)) { if (!gk(t)) return !1; a = !0, f = !1; } if (p && !f) return o || (o = new Ib()), a || yde(e) ? pde(e, t, n, r, i, o) : mde(e, t, l, n, r, i, o); if (!(n & vde)) { var m = f && bk.call(e, "__wrapped__"), y = d && bk.call(t, "__wrapped__"); if (m || y) { var g = m ? e.value() : e, v = y ? t.value() : t; return o || (o = new Ib()), i(g, v, n, r, o); } } return p ? (o || (o = new Ib()), gde(e, t, n, r, i, o)) : !1; } var wde = xde, _de = wde, xk = ta; function _B(e, t, n, r, i) { return e === t ? !0 : e == null || t == null || !xk(e) && !xk(t) ? e !== e && t !== t : _de(e, t, n, r, _B, i); } var Z_ = _B, Sde = cB, Ode = Z_, Ade = 1, Tde = 2; function Pde(e, t, n, r) { var i = n.length, o = i, a = !r; if (e == null) return !o; for (e = Object(e); i--; ) { var s = n[i]; if (a && s[2] ? s[1] !== e[s[0]] : !(s[0] in e)) return !1; } for (; ++i < o; ) { s = n[i]; var l = s[0], c = e[l], f = s[1]; if (a && s[2]) { if (c === void 0 && !(l in e)) return !1; } else { var d = new Sde(); if (r) var p = r(c, f, l, e, t, d); if (!(p === void 0 ? Ode(f, c, Ade | Tde, r, d) : p)) return !1; } } return !0; } var Cde = Pde, Ede = Ka; function kde(e) { return e === e && !Ede(e); } var SB = kde, Mde = SB, Nde = ny; function $de(e) { for (var t = Nde(e), n = t.length; n--; ) { var r = t[n], i = e[r]; t[n] = [r, i, Mde(i)]; } return t; } var Dde = $de; function Ide(e, t) { return function(n) { return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n)); }; } var OB = Ide, Rde = Cde, jde = Dde, Lde = OB; function Bde(e) { var t = jde(e); return t.length == 1 && t[0][2] ? Lde(t[0][0], t[0][1]) : function(n) { return n === e || Rde(n, e, t); }; } var Fde = Bde; function Wde(e, t) { return e != null && t in Object(e); } var zde = Wde, Vde = $L, Ude = Y_, Hde = Tr, Kde = q_, Gde = X_, Yde = Zg; function qde(e, t, n) { t = Vde(t, e); for (var r = -1, i = t.length, o = !1; ++r < i; ) { var a = Yde(t[r]); if (!(o = e != null && n(e, a))) break; e = e[a]; } return o || ++r != i ? o : (i = e == null ? 0 : e.length, !!i && Gde(i) && Kde(a, i) && (Hde(e) || Ude(e))); } var Xde = qde, Zde = zde, Jde = Xde; function Qde(e, t) { return e != null && Jde(e, t, Zde); } var ehe = Qde, the = Z_, nhe = DL, rhe = ehe, ihe = N_, ohe = SB, ahe = OB, she = Zg, lhe = 1, che = 2; function uhe(e, t) { return ihe(e) && ohe(t) ? ahe(she(e), t) : function(n) { var r = nhe(n, e); return r === void 0 && r === t ? rhe(n, e) : the(t, r, lhe | che); }; } var fhe = uhe; function dhe(e) { return e; } var Xc = dhe; function hhe(e) { return function(t) { return t == null ? void 0 : t[e]; }; } var phe = hhe, mhe = B_; function ghe(e) { return function(t) { return mhe(t, e); }; } var yhe = ghe, vhe = phe, bhe = yhe, xhe = N_, whe = Zg; function _he(e) { return xhe(e) ? vhe(whe(e)) : bhe(e); } var She = _he, Ohe = Fde, Ahe = fhe, The = Xc, Phe = Tr, Che = She; function Ehe(e) { return typeof e == "function" ? e : e == null ? The : typeof e == "object" ? Phe(e) ? Ahe(e[0], e[1]) : Ohe(e) : Che(e); } var so = Ehe; function khe(e, t, n, r) { for (var i = e.length, o = n + (r ? 1 : -1); r ? o-- : ++o < i; ) if (t(e[o], o, e)) return o; return -1; } var AB = khe; function Mhe(e) { return e !== e; } var Nhe = Mhe; function $he(e, t, n) { for (var r = n - 1, i = e.length; ++r < i; ) if (e[r] === t) return r; return -1; } var Dhe = $he, Ihe = AB, Rhe = Nhe, jhe = Dhe; function Lhe(e, t, n) { return t === t ? jhe(e, t, n) : Ihe(e, Rhe, n); } var Bhe = Lhe, Fhe = Bhe; function Whe(e, t) { var n = e == null ? 0 : e.length; return !!n && Fhe(e, t, 0) > -1; } var zhe = Whe; function Vhe(e, t, n) { for (var r = -1, i = e == null ? 0 : e.length; ++r < i; ) if (n(t, e[r])) return !0; return !1; } var Uhe = Vhe; function Hhe() { } var Khe = Hhe, Rb = xB, Ghe = Khe, Yhe = G_, qhe = 1 / 0, Xhe = Rb && 1 / Yhe(new Rb([, -0]))[1] == qhe ? function(e) { return new Rb(e); } : Ghe, Zhe = Xhe, Jhe = uB, Qhe = zhe, epe = Uhe, tpe = dB, npe = Zhe, rpe = G_, ipe = 200; function ope(e, t, n) { var r = -1, i = Qhe, o = e.length, a = !0, s = [], l = s; if (n) a = !1, i = epe; else if (o >= ipe) { var c = t ? null : npe(e); if (c) return rpe(c); a = !1, i = tpe, l = new Jhe(); } else l = t ? [] : s; e: for (; ++r < o; ) { var f = e[r], d = t ? t(f) : f; if (f = n || f !== 0 ? f : 0, a && d === d) { for (var p = l.length; p--; ) if (l[p] === d) continue e; t && l.push(d), s.push(f); } else i(l, d, n) || (l !== s && l.push(d), s.push(f)); } return s; } var ape = ope, spe = so, lpe = ape; function cpe(e, t) { return e && e.length ? lpe(e, spe(t)) : []; } var upe = cpe; const wk = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(upe); function TB(e, t, n) { return t === !0 ? wk(e, n) : ze(t) ? wk(e, t) : e; } function sc(e) { "@babel/helpers - typeof"; return sc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, sc(e); } var fpe = ["ref"]; function _k(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function wo(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? _k(Object(n), !0).forEach(function(r) { ry(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : _k(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function dpe(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function Sk(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, CB(r.key), r); } } function hpe(e, t, n) { return t && Sk(e.prototype, t), n && Sk(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function ppe(e, t, n) { return t = im(t), mpe(e, PB() ? Reflect.construct(t, n || [], im(e).constructor) : t.apply(e, n)); } function mpe(e, t) { if (t && (sc(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return gpe(e); } function gpe(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function PB() { try { var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (PB = function() { return !!e; })(); } function im(e) { return im = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); }, im(e); } function ype(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Rx(e, t); } function Rx(e, t) { return Rx = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { return r.__proto__ = i, r; }, Rx(e, t); } function ry(e, t, n) { return t = CB(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function CB(e) { var t = vpe(e, "string"); return sc(t) == "symbol" ? t : t + ""; } function vpe(e, t) { if (sc(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (sc(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function bpe(e, t) { if (e == null) return {}; var n = xpe(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function xpe(e, t) { if (e == null) return {}; var n = {}; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { if (t.indexOf(r) >= 0) continue; n[r] = e[r]; } return n; } function wpe(e) { return e.value; } function _pe(e, t) { if (/* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(e)) return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(e, t); if (typeof e == "function") return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(e, t); t.ref; var n = bpe(t, fpe); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(K_, n); } var Ok = 1, Lo = /* @__PURE__ */ function(e) { function t() { var n; dpe(this, t); for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o]; return n = ppe(this, t, [].concat(i)), ry(n, "lastBoundingBox", { width: -1, height: -1 }), n; } return ype(t, e), hpe(t, [{ key: "componentDidMount", value: function() { this.updateBBox(); } }, { key: "componentDidUpdate", value: function() { this.updateBBox(); } }, { key: "getBBox", value: function() { if (this.wrapperNode && this.wrapperNode.getBoundingClientRect) { var r = this.wrapperNode.getBoundingClientRect(); return r.height = this.wrapperNode.offsetHeight, r.width = this.wrapperNode.offsetWidth, r; } return null; } }, { key: "updateBBox", value: function() { var r = this.props.onBBoxUpdate, i = this.getBBox(); i ? (Math.abs(i.width - this.lastBoundingBox.width) > Ok || Math.abs(i.height - this.lastBoundingBox.height) > Ok) && (this.lastBoundingBox.width = i.width, this.lastBoundingBox.height = i.height, r && r(i)) : (this.lastBoundingBox.width !== -1 || this.lastBoundingBox.height !== -1) && (this.lastBoundingBox.width = -1, this.lastBoundingBox.height = -1, r && r(null)); } }, { key: "getBBoxSnapshot", value: function() { return this.lastBoundingBox.width >= 0 && this.lastBoundingBox.height >= 0 ? wo({}, this.lastBoundingBox) : { width: 0, height: 0 }; } }, { key: "getDefaultPosition", value: function(r) { var i = this.props, o = i.layout, a = i.align, s = i.verticalAlign, l = i.margin, c = i.chartWidth, f = i.chartHeight, d, p; if (!r || (r.left === void 0 || r.left === null) && (r.right === void 0 || r.right === null)) if (a === "center" && o === "vertical") { var m = this.getBBoxSnapshot(); d = { left: ((c || 0) - m.width) / 2 }; } else d = a === "right" ? { right: l && l.right || 0 } : { left: l && l.left || 0 }; if (!r || (r.top === void 0 || r.top === null) && (r.bottom === void 0 || r.bottom === null)) if (s === "middle") { var y = this.getBBoxSnapshot(); p = { top: ((f || 0) - y.height) / 2 }; } else p = s === "bottom" ? { bottom: l && l.bottom || 0 } : { top: l && l.top || 0 }; return wo(wo({}, d), p); } }, { key: "render", value: function() { var r = this, i = this.props, o = i.content, a = i.width, s = i.height, l = i.wrapperStyle, c = i.payloadUniqBy, f = i.payload, d = wo(wo({ position: "absolute", width: a || "auto", height: s || "auto" }, this.getDefaultPosition(l)), l); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "recharts-legend-wrapper", style: d, ref: function(m) { r.wrapperNode = m; } }, _pe(o, wo(wo({}, this.props), {}, { payload: TB(f, c, wpe) }))); } }], [{ key: "getWithHeight", value: function(r, i) { var o = wo(wo({}, this.defaultProps), r.props), a = o.layout; return a === "vertical" && be(r.props.height) ? { height: r.props.height } : a === "horizontal" ? { width: r.props.width || i } : null; } }]); }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent); ry(Lo, "displayName", "Legend"); ry(Lo, "defaultProps", { iconSize: 14, layout: "horizontal", align: "center", verticalAlign: "bottom" }); var Ak = Td, Spe = Y_, Ope = Tr, Tk = Ak ? Ak.isConcatSpreadable : void 0; function Ape(e) { return Ope(e) || Spe(e) || !!(Tk && e && e[Tk]); } var Tpe = Ape, Ppe = pB, Cpe = Tpe; function EB(e, t, n, r, i) { var o = -1, a = e.length; for (n || (n = Cpe), i || (i = []); ++o < a; ) { var s = e[o]; t > 0 && n(s) ? t > 1 ? EB(s, t - 1, n, r, i) : Ppe(i, s) : r || (i[i.length] = s); } return i; } var kB = EB; function Epe(e) { return function(t, n, r) { for (var i = -1, o = Object(t), a = r(t), s = a.length; s--; ) { var l = a[e ? s : ++i]; if (n(o[l], l, o) === !1) break; } return t; }; } var kpe = Epe, Mpe = kpe, Npe = Mpe(), $pe = Npe, Dpe = $pe, Ipe = ny; function Rpe(e, t) { return e && Dpe(e, t, Ipe); } var MB = Rpe, jpe = Cd; function Lpe(e, t) { return function(n, r) { if (n == null) return n; if (!jpe(n)) return e(n, r); for (var i = n.length, o = t ? i : -1, a = Object(n); (t ? o-- : ++o < i) && r(a[o], o, a) !== !1; ) ; return n; }; } var Bpe = Lpe, Fpe = MB, Wpe = Bpe, zpe = Wpe(Fpe), J_ = zpe, Vpe = J_, Upe = Cd; function Hpe(e, t) { var n = -1, r = Upe(e) ? Array(e.length) : []; return Vpe(e, function(i, o, a) { r[++n] = t(i, o, a); }), r; } var NB = Hpe; function Kpe(e, t) { var n = e.length; for (e.sort(t); n--; ) e[n] = e[n].value; return e; } var Gpe = Kpe, Pk = zc; function Ype(e, t) { if (e !== t) { var n = e !== void 0, r = e === null, i = e === e, o = Pk(e), a = t !== void 0, s = t === null, l = t === t, c = Pk(t); if (!s && !c && !o && e > t || o && a && l && !s && !c || r && a && l || !n && l || !i) return 1; if (!r && !o && !c && e < t || c && n && i && !r && !o || s && n && i || !a && i || !l) return -1; } return 0; } var qpe = Ype, Xpe = qpe; function Zpe(e, t, n) { for (var r = -1, i = e.criteria, o = t.criteria, a = i.length, s = n.length; ++r < a; ) { var l = Xpe(i[r], o[r]); if (l) { if (r >= s) return l; var c = n[r]; return l * (c == "desc" ? -1 : 1); } } return e.index - t.index; } var Jpe = Zpe, jb = L_, Qpe = B_, eme = so, tme = NB, nme = Gpe, rme = yB, ime = Jpe, ome = Xc, ame = Tr; function sme(e, t, n) { t.length ? t = jb(t, function(o) { return ame(o) ? function(a) { return Qpe(a, o.length === 1 ? o[0] : o); } : o; }) : t = [ome]; var r = -1; t = jb(t, rme(eme)); var i = tme(e, function(o, a, s) { var l = jb(t, function(c) { return c(o); }); return { criteria: l, index: ++r, value: o }; }); return nme(i, function(o, a) { return ime(o, a, n); }); } var lme = sme; function cme(e, t, n) { switch (n.length) { case 0: return e.call(t); case 1: return e.call(t, n[0]); case 2: return e.call(t, n[0], n[1]); case 3: return e.call(t, n[0], n[1], n[2]); } return e.apply(t, n); } var ume = cme, fme = ume, Ck = Math.max; function dme(e, t, n) { return t = Ck(t === void 0 ? e.length - 1 : t, 0), function() { for (var r = arguments, i = -1, o = Ck(r.length - t, 0), a = Array(o); ++i < o; ) a[i] = r[t + i]; i = -1; for (var s = Array(t + 1); ++i < t; ) s[i] = r[i]; return s[t] = n(a), fme(e, this, s); }; } var hme = dme; function pme(e) { return function() { return e; }; } var mme = pme, gme = el, yme = function() { try { var e = gme(Object, "defineProperty"); return e({}, "", {}), e; } catch { } }(), $B = yme, vme = mme, Ek = $B, bme = Xc, xme = Ek ? function(e, t) { return Ek(e, "toString", { configurable: !0, enumerable: !1, value: vme(t), writable: !0 }); } : bme, wme = xme, _me = 800, Sme = 16, Ome = Date.now; function Ame(e) { var t = 0, n = 0; return function() { var r = Ome(), i = Sme - (r - n); if (n = r, i > 0) { if (++t >= _me) return arguments[0]; } else t = 0; return e.apply(void 0, arguments); }; } var Tme = Ame, Pme = wme, Cme = Tme, Eme = Cme(Pme), kme = Eme, Mme = Xc, Nme = hme, $me = kme; function Dme(e, t) { return $me(Nme(e, t, Mme), e + ""); } var Ime = Dme, Rme = D_, jme = Cd, Lme = q_, Bme = Ka; function Fme(e, t, n) { if (!Bme(n)) return !1; var r = typeof t; return (r == "number" ? jme(n) && Lme(t, n.length) : r == "string" && t in n) ? Rme(n[t], e) : !1; } var iy = Fme, Wme = kB, zme = lme, Vme = Ime, kk = iy, Ume = Vme(function(e, t) { if (e == null) return []; var n = t.length; return n > 1 && kk(e, t[0], t[1]) ? t = [] : n > 2 && kk(t[0], t[1], t[2]) && (t = [t[0]]), zme(e, Wme(t, 1), []); }), Hme = Ume; const Q_ = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(Hme); function Ef(e) { "@babel/helpers - typeof"; return Ef = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Ef(e); } function jx() { return jx = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, jx.apply(this, arguments); } function Kme(e, t) { return Xme(e) || qme(e, t) || Yme(e, t) || Gme(); } function Gme() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function Yme(e, t) { if (e) { if (typeof e == "string") return Mk(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Mk(e, t); } } function Mk(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } function qme(e, t) { var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; if (n != null) { var r, i, o, a, s = [], l = !0, c = !1; try { if (o = (n = n.call(e)).next, t !== 0) for (; !(l = (r = o.call(n)).done) && (s.push(r.value), s.length !== t); l = !0) ; } catch (f) { c = !0, i = f; } finally { try { if (!l && n.return != null && (a = n.return(), Object(a) !== a)) return; } finally { if (c) throw i; } } return s; } } function Xme(e) { if (Array.isArray(e)) return e; } function Nk(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function Lb(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? Nk(Object(n), !0).forEach(function(r) { Zme(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Nk(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function Zme(e, t, n) { return t = Jme(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function Jme(e) { var t = Qme(e, "string"); return Ef(t) == "symbol" ? t : t + ""; } function Qme(e, t) { if (Ef(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Ef(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function ege(e) { return Array.isArray(e) && On(e[0]) && On(e[1]) ? e.join(" ~ ") : e; } var tge = function(t) { var n = t.separator, r = n === void 0 ? " : " : n, i = t.contentStyle, o = i === void 0 ? {} : i, a = t.itemStyle, s = a === void 0 ? {} : a, l = t.labelStyle, c = l === void 0 ? {} : l, f = t.payload, d = t.formatter, p = t.itemSorter, m = t.wrapperClassName, y = t.labelClassName, g = t.label, v = t.labelFormatter, x = t.accessibilityLayer, w = x === void 0 ? !1 : x, S = function() { if (f && f.length) { var N = { padding: 0, margin: 0 }, D = (p ? Q_(f, p) : f).map(function(j, F) { if (j.type === "none") return null; var W = Lb({ display: "block", paddingTop: 4, paddingBottom: 4, color: j.color || "#000" }, s), z = j.formatter || d || ege, H = j.value, U = j.name, V = H, Y = U; if (z && V != null && Y != null) { var Q = z(H, U, j, F, f); if (Array.isArray(Q)) { var ne = Kme(Q, 2); V = ne[0], Y = ne[1]; } else V = Q; } return ( // eslint-disable-next-line react/no-array-index-key /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("li", { className: "recharts-tooltip-item", key: "tooltip-item-".concat(F), style: W }, On(Y) ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "recharts-tooltip-item-name" }, Y) : null, On(Y) ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "recharts-tooltip-item-separator" }, r) : null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "recharts-tooltip-item-value" }, V), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "recharts-tooltip-item-unit" }, j.unit || "")) ); }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("ul", { className: "recharts-tooltip-item-list", style: N }, D); } return null; }, A = Lb({ margin: 0, padding: 10, backgroundColor: "#fff", border: "1px solid #ccc", whiteSpace: "nowrap" }, o), _ = Lb({ margin: 0 }, c), O = !Ue(g), P = O ? g : "", C = Xe("recharts-default-tooltip", m), k = Xe("recharts-tooltip-label", y); O && v && f !== void 0 && f !== null && (P = v(g, f)); var I = w ? { role: "status", "aria-live": "assertive" } : {}; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", jx({ className: C, style: A }, I), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("p", { className: k, style: _ }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(P) ? P : "".concat(P)), S()); }; function kf(e) { "@babel/helpers - typeof"; return kf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, kf(e); } function Uh(e, t, n) { return t = nge(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function nge(e) { var t = rge(e, "string"); return kf(t) == "symbol" ? t : t + ""; } function rge(e, t) { if (kf(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (kf(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var Cu = "recharts-tooltip-wrapper", ige = { visibility: "hidden" }; function oge(e) { var t = e.coordinate, n = e.translateX, r = e.translateY; return Xe(Cu, Uh(Uh(Uh(Uh({}, "".concat(Cu, "-right"), be(n) && t && be(t.x) && n >= t.x), "".concat(Cu, "-left"), be(n) && t && be(t.x) && n < t.x), "".concat(Cu, "-bottom"), be(r) && t && be(t.y) && r >= t.y), "".concat(Cu, "-top"), be(r) && t && be(t.y) && r < t.y)); } function $k(e) { var t = e.allowEscapeViewBox, n = e.coordinate, r = e.key, i = e.offsetTopLeft, o = e.position, a = e.reverseDirection, s = e.tooltipDimension, l = e.viewBox, c = e.viewBoxDimension; if (o && be(o[r])) return o[r]; var f = n[r] - s - i, d = n[r] + i; if (t[r]) return a[r] ? f : d; if (a[r]) { var p = f, m = l[r]; return p < m ? Math.max(d, l[r]) : Math.max(f, l[r]); } var y = d + s, g = l[r] + c; return y > g ? Math.max(f, l[r]) : Math.max(d, l[r]); } function age(e) { var t = e.translateX, n = e.translateY, r = e.useTranslate3d; return { transform: r ? "translate3d(".concat(t, "px, ").concat(n, "px, 0)") : "translate(".concat(t, "px, ").concat(n, "px)") }; } function sge(e) { var t = e.allowEscapeViewBox, n = e.coordinate, r = e.offsetTopLeft, i = e.position, o = e.reverseDirection, a = e.tooltipBox, s = e.useTranslate3d, l = e.viewBox, c, f, d; return a.height > 0 && a.width > 0 && n ? (f = $k({ allowEscapeViewBox: t, coordinate: n, key: "x", offsetTopLeft: r, position: i, reverseDirection: o, tooltipDimension: a.width, viewBox: l, viewBoxDimension: l.width }), d = $k({ allowEscapeViewBox: t, coordinate: n, key: "y", offsetTopLeft: r, position: i, reverseDirection: o, tooltipDimension: a.height, viewBox: l, viewBoxDimension: l.height }), c = age({ translateX: f, translateY: d, useTranslate3d: s })) : c = ige, { cssProperties: c, cssClasses: oge({ translateX: f, translateY: d, coordinate: n }) }; } function lc(e) { "@babel/helpers - typeof"; return lc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, lc(e); } function Dk(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function Ik(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? Dk(Object(n), !0).forEach(function(r) { Bx(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Dk(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function lge(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function cge(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, IB(r.key), r); } } function uge(e, t, n) { return t && cge(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function fge(e, t, n) { return t = om(t), dge(e, DB() ? Reflect.construct(t, n || [], om(e).constructor) : t.apply(e, n)); } function dge(e, t) { if (t && (lc(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return hge(e); } function hge(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function DB() { try { var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (DB = function() { return !!e; })(); } function om(e) { return om = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); }, om(e); } function pge(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Lx(e, t); } function Lx(e, t) { return Lx = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { return r.__proto__ = i, r; }, Lx(e, t); } function Bx(e, t, n) { return t = IB(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function IB(e) { var t = mge(e, "string"); return lc(t) == "symbol" ? t : t + ""; } function mge(e, t) { if (lc(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (lc(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var Rk = 1, gge = /* @__PURE__ */ function(e) { function t() { var n; lge(this, t); for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o]; return n = fge(this, t, [].concat(i)), Bx(n, "state", { dismissed: !1, dismissedAtCoordinate: { x: 0, y: 0 }, lastBoundingBox: { width: -1, height: -1 } }), Bx(n, "handleKeyDown", function(a) { if (a.key === "Escape") { var s, l, c, f; n.setState({ dismissed: !0, dismissedAtCoordinate: { x: (s = (l = n.props.coordinate) === null || l === void 0 ? void 0 : l.x) !== null && s !== void 0 ? s : 0, y: (c = (f = n.props.coordinate) === null || f === void 0 ? void 0 : f.y) !== null && c !== void 0 ? c : 0 } }); } }), n; } return pge(t, e), uge(t, [{ key: "updateBBox", value: function() { if (this.wrapperNode && this.wrapperNode.getBoundingClientRect) { var r = this.wrapperNode.getBoundingClientRect(); (Math.abs(r.width - this.state.lastBoundingBox.width) > Rk || Math.abs(r.height - this.state.lastBoundingBox.height) > Rk) && this.setState({ lastBoundingBox: { width: r.width, height: r.height } }); } else (this.state.lastBoundingBox.width !== -1 || this.state.lastBoundingBox.height !== -1) && this.setState({ lastBoundingBox: { width: -1, height: -1 } }); } }, { key: "componentDidMount", value: function() { document.addEventListener("keydown", this.handleKeyDown), this.updateBBox(); } }, { key: "componentWillUnmount", value: function() { document.removeEventListener("keydown", this.handleKeyDown); } }, { key: "componentDidUpdate", value: function() { var r, i; this.props.active && this.updateBBox(), this.state.dismissed && (((r = this.props.coordinate) === null || r === void 0 ? void 0 : r.x) !== this.state.dismissedAtCoordinate.x || ((i = this.props.coordinate) === null || i === void 0 ? void 0 : i.y) !== this.state.dismissedAtCoordinate.y) && (this.state.dismissed = !1); } }, { key: "render", value: function() { var r = this, i = this.props, o = i.active, a = i.allowEscapeViewBox, s = i.animationDuration, l = i.animationEasing, c = i.children, f = i.coordinate, d = i.hasPayload, p = i.isAnimationActive, m = i.offset, y = i.position, g = i.reverseDirection, v = i.useTranslate3d, x = i.viewBox, w = i.wrapperStyle, S = sge({ allowEscapeViewBox: a, coordinate: f, offsetTopLeft: m, position: y, reverseDirection: g, tooltipBox: this.state.lastBoundingBox, useTranslate3d: v, viewBox: x }), A = S.cssClasses, _ = S.cssProperties, O = Ik(Ik({ transition: p && o ? "transform ".concat(s, "ms ").concat(l) : void 0 }, _), {}, { pointerEvents: "none", visibility: !this.state.dismissed && o && d ? "visible" : "hidden", position: "absolute", top: 0, left: 0 }, w); return ( // This element allow listening to the `Escape` key. // See https://github.com/recharts/recharts/pull/2925 /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { tabIndex: -1, className: A, style: O, ref: function(C) { r.wrapperNode = C; } }, c) ); } }]); }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent), yge = function() { return !(typeof window < "u" && window.document && window.document.createElement && window.setTimeout); }, Ni = { isSsr: yge(), get: function(t) { return Ni[t]; }, set: function(t, n) { if (typeof t == "string") Ni[t] = n; else { var r = Object.keys(t); r && r.length && r.forEach(function(i) { Ni[i] = t[i]; }); } } }; function cc(e) { "@babel/helpers - typeof"; return cc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, cc(e); } function jk(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function Lk(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? jk(Object(n), !0).forEach(function(r) { eS(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : jk(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function vge(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function bge(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, jB(r.key), r); } } function xge(e, t, n) { return t && bge(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function wge(e, t, n) { return t = am(t), _ge(e, RB() ? Reflect.construct(t, n || [], am(e).constructor) : t.apply(e, n)); } function _ge(e, t) { if (t && (cc(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return Sge(e); } function Sge(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function RB() { try { var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (RB = function() { return !!e; })(); } function am(e) { return am = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); }, am(e); } function Oge(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Fx(e, t); } function Fx(e, t) { return Fx = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { return r.__proto__ = i, r; }, Fx(e, t); } function eS(e, t, n) { return t = jB(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function jB(e) { var t = Age(e, "string"); return cc(t) == "symbol" ? t : t + ""; } function Age(e, t) { if (cc(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (cc(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function Tge(e) { return e.dataKey; } function Pge(e, t) { return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(e) ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(e, t) : typeof e == "function" ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(e, t) : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(tge, t); } var Lr = /* @__PURE__ */ function(e) { function t() { return vge(this, t), wge(this, t, arguments); } return Oge(t, e), xge(t, [{ key: "render", value: function() { var r = this, i = this.props, o = i.active, a = i.allowEscapeViewBox, s = i.animationDuration, l = i.animationEasing, c = i.content, f = i.coordinate, d = i.filterNull, p = i.isAnimationActive, m = i.offset, y = i.payload, g = i.payloadUniqBy, v = i.position, x = i.reverseDirection, w = i.useTranslate3d, S = i.viewBox, A = i.wrapperStyle, _ = y ?? []; d && _.length && (_ = TB(y.filter(function(P) { return P.value != null && (P.hide !== !0 || r.props.includeHidden); }), g, Tge)); var O = _.length > 0; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(gge, { allowEscapeViewBox: a, animationDuration: s, animationEasing: l, isAnimationActive: p, active: o, coordinate: f, hasPayload: O, offset: m, position: v, reverseDirection: x, useTranslate3d: w, viewBox: S, wrapperStyle: A }, Pge(c, Lk(Lk({}, this.props), {}, { payload: _ }))); } }]); }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent); eS(Lr, "displayName", "Tooltip"); eS(Lr, "defaultProps", { accessibilityLayer: !1, allowEscapeViewBox: { x: !1, y: !1 }, animationDuration: 400, animationEasing: "ease", contentStyle: {}, coordinate: { x: 0, y: 0 }, cursor: !0, cursorStyle: {}, filterNull: !0, isAnimationActive: !Ni.isSsr, itemStyle: {}, labelStyle: {}, offset: 10, reverseDirection: { x: !1, y: !1 }, separator: " : ", trigger: "hover", useTranslate3d: !1, viewBox: { x: 0, y: 0, height: 0, width: 0 }, wrapperStyle: {} }); var Cge = ao, Ege = function() { return Cge.Date.now(); }, kge = Ege, Mge = /\s/; function Nge(e) { for (var t = e.length; t-- && Mge.test(e.charAt(t)); ) ; return t; } var $ge = Nge, Dge = $ge, Ige = /^\s+/; function Rge(e) { return e && e.slice(0, Dge(e) + 1).replace(Ige, ""); } var jge = Rge, Lge = jge, Bk = Ka, Bge = zc, Fk = NaN, Fge = /^[-+]0x[0-9a-f]+$/i, Wge = /^0b[01]+$/i, zge = /^0o[0-7]+$/i, Vge = parseInt; function Uge(e) { if (typeof e == "number") return e; if (Bge(e)) return Fk; if (Bk(e)) { var t = typeof e.valueOf == "function" ? e.valueOf() : e; e = Bk(t) ? t + "" : t; } if (typeof e != "string") return e === 0 ? e : +e; e = Lge(e); var n = Wge.test(e); return n || zge.test(e) ? Vge(e.slice(2), n ? 2 : 8) : Fge.test(e) ? Fk : +e; } var LB = Uge, Hge = Ka, Bb = kge, Wk = LB, Kge = "Expected a function", Gge = Math.max, Yge = Math.min; function qge(e, t, n) { var r, i, o, a, s, l, c = 0, f = !1, d = !1, p = !0; if (typeof e != "function") throw new TypeError(Kge); t = Wk(t) || 0, Hge(n) && (f = !!n.leading, d = "maxWait" in n, o = d ? Gge(Wk(n.maxWait) || 0, t) : o, p = "trailing" in n ? !!n.trailing : p); function m(O) { var P = r, C = i; return r = i = void 0, c = O, a = e.apply(C, P), a; } function y(O) { return c = O, s = setTimeout(x, t), f ? m(O) : a; } function g(O) { var P = O - l, C = O - c, k = t - P; return d ? Yge(k, o - C) : k; } function v(O) { var P = O - l, C = O - c; return l === void 0 || P >= t || P < 0 || d && C >= o; } function x() { var O = Bb(); if (v(O)) return w(O); s = setTimeout(x, g(O)); } function w(O) { return s = void 0, p && r ? m(O) : (r = i = void 0, a); } function S() { s !== void 0 && clearTimeout(s), c = 0, r = l = i = s = void 0; } function A() { return s === void 0 ? a : w(Bb()); } function _() { var O = Bb(), P = v(O); if (r = arguments, i = this, l = O, P) { if (s === void 0) return y(l); if (d) return clearTimeout(s), s = setTimeout(x, t), m(l); } return s === void 0 && (s = setTimeout(x, t)), a; } return _.cancel = S, _.flush = A, _; } var Xge = qge, Zge = Xge, Jge = Ka, Qge = "Expected a function"; function eye(e, t, n) { var r = !0, i = !0; if (typeof e != "function") throw new TypeError(Qge); return Jge(n) && (r = "leading" in n ? !!n.leading : r, i = "trailing" in n ? !!n.trailing : i), Zge(e, t, { leading: r, maxWait: t, trailing: i }); } var tye = eye; const BB = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(tye); function Mf(e) { "@babel/helpers - typeof"; return Mf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Mf(e); } function zk(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function Hh(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? zk(Object(n), !0).forEach(function(r) { nye(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : zk(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function nye(e, t, n) { return t = rye(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function rye(e) { var t = iye(e, "string"); return Mf(t) == "symbol" ? t : t + ""; } function iye(e, t) { if (Mf(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Mf(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function oye(e, t) { return cye(e) || lye(e, t) || sye(e, t) || aye(); } function aye() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function sye(e, t) { if (e) { if (typeof e == "string") return Vk(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Vk(e, t); } } function Vk(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } function lye(e, t) { var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; if (n != null) { var r, i, o, a, s = [], l = !0, c = !1; try { if (o = (n = n.call(e)).next, t !== 0) for (; !(l = (r = o.call(n)).done) && (s.push(r.value), s.length !== t); l = !0) ; } catch (f) { c = !0, i = f; } finally { try { if (!l && n.return != null && (a = n.return(), Object(a) !== a)) return; } finally { if (c) throw i; } } return s; } } function cye(e) { if (Array.isArray(e)) return e; } var tS = /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function(e, t) { var n = e.aspect, r = e.initialDimension, i = r === void 0 ? { width: -1, height: -1 } : r, o = e.width, a = o === void 0 ? "100%" : o, s = e.height, l = s === void 0 ? "100%" : s, c = e.minWidth, f = c === void 0 ? 0 : c, d = e.minHeight, p = e.maxHeight, m = e.children, y = e.debounce, g = y === void 0 ? 0 : y, v = e.id, x = e.className, w = e.onResize, S = e.style, A = S === void 0 ? {} : S, _ = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null), O = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(); O.current = w, (0,react__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle)(t, function() { return Object.defineProperty(_.current, "current", { get: function() { return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."), _.current; }, configurable: !0 }); }); var P = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)({ containerWidth: i.width, containerHeight: i.height }), C = oye(P, 2), k = C[0], I = C[1], $ = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function(D, j) { I(function(F) { var W = Math.round(D), z = Math.round(j); return F.containerWidth === W && F.containerHeight === z ? F : { containerWidth: W, containerHeight: z }; }); }, []); (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function() { var D = function(U) { var V, Y = U[0].contentRect, Q = Y.width, ne = Y.height; $(Q, ne), (V = O.current) === null || V === void 0 || V.call(O, Q, ne); }; g > 0 && (D = BB(D, g, { trailing: !0, leading: !1 })); var j = new ResizeObserver(D), F = _.current.getBoundingClientRect(), W = F.width, z = F.height; return $(W, z), j.observe(_.current), function() { j.disconnect(); }; }, [$, g]); var N = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function() { var D = k.containerWidth, j = k.containerHeight; if (D < 0 || j < 0) return null; Mi(Ss(a) || Ss(l), `The width(%s) and height(%s) are both fixed numbers, maybe you don't need to use a ResponsiveContainer.`, a, l), Mi(!n || n > 0, "The aspect(%s) must be greater than zero.", n); var F = Ss(a) ? D : a, W = Ss(l) ? j : l; n && n > 0 && (F ? W = F / n : W && (F = W * n), p && W > p && (W = p)), Mi(F > 0 || W > 0, `The width(%s) and height(%s) of chart should be greater than 0, please check the style of container, or the props width(%s) and height(%s), or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the height and width.`, F, W, a, l, f, d, n); var z = !Array.isArray(m) && jo(m.type).endsWith("Chart"); return react__WEBPACK_IMPORTED_MODULE_1__.Children.map(m, function(H) { return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(H) ? /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(H, Hh({ width: F, height: W }, z ? { style: Hh({ height: "100%", width: "100%", maxHeight: W, maxWidth: F }, H.props.style) } : {})) : H; }); }, [n, m, l, p, d, f, k, a]); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { id: v ? "".concat(v) : void 0, className: Xe("recharts-responsive-container", x), style: Hh(Hh({}, A), {}, { width: a, height: l, minWidth: f, minHeight: d, maxHeight: p }), ref: _ }, N); }), nS = function(t) { return null; }; nS.displayName = "Cell"; function Nf(e) { "@babel/helpers - typeof"; return Nf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Nf(e); } function Uk(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function Wx(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? Uk(Object(n), !0).forEach(function(r) { uye(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Uk(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function uye(e, t, n) { return t = fye(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function fye(e) { var t = dye(e, "string"); return Nf(t) == "symbol" ? t : t + ""; } function dye(e, t) { if (Nf(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Nf(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var Sl = { widthCache: {}, cacheCount: 0 }, hye = 2e3, pye = { position: "absolute", top: "-20000px", left: 0, padding: 0, margin: 0, border: "none", whiteSpace: "pre" }, Hk = "recharts_measurement_span"; function mye(e) { var t = Wx({}, e); return Object.keys(t).forEach(function(n) { t[n] || delete t[n]; }), t; } var tf = function(t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; if (t == null || Ni.isSsr) return { width: 0, height: 0 }; var r = mye(n), i = JSON.stringify({ text: t, copyStyle: r }); if (Sl.widthCache[i]) return Sl.widthCache[i]; try { var o = document.getElementById(Hk); o || (o = document.createElement("span"), o.setAttribute("id", Hk), o.setAttribute("aria-hidden", "true"), document.body.appendChild(o)); var a = Wx(Wx({}, pye), r); Object.assign(o.style, a), o.textContent = "".concat(t); var s = o.getBoundingClientRect(), l = { width: s.width, height: s.height }; return Sl.widthCache[i] = l, ++Sl.cacheCount > hye && (Sl.cacheCount = 0, Sl.widthCache = {}), l; } catch { return { width: 0, height: 0 }; } }, gye = function(t) { return { top: t.top + window.scrollY - document.documentElement.clientTop, left: t.left + window.scrollX - document.documentElement.clientLeft }; }; function $f(e) { "@babel/helpers - typeof"; return $f = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, $f(e); } function sm(e, t) { return xye(e) || bye(e, t) || vye(e, t) || yye(); } function yye() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function vye(e, t) { if (e) { if (typeof e == "string") return Kk(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Kk(e, t); } } function Kk(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } function bye(e, t) { var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; if (n != null) { var r, i, o, a, s = [], l = !0, c = !1; try { if (o = (n = n.call(e)).next, t === 0) { if (Object(n) !== n) return; l = !1; } else for (; !(l = (r = o.call(n)).done) && (s.push(r.value), s.length !== t); l = !0) ; } catch (f) { c = !0, i = f; } finally { try { if (!l && n.return != null && (a = n.return(), Object(a) !== a)) return; } finally { if (c) throw i; } } return s; } } function xye(e) { if (Array.isArray(e)) return e; } function wye(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function Gk(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Sye(r.key), r); } } function _ye(e, t, n) { return t && Gk(e.prototype, t), n && Gk(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function Sye(e) { var t = Oye(e, "string"); return $f(t) == "symbol" ? t : t + ""; } function Oye(e, t) { if ($f(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t); if ($f(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return String(e); } var Yk = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, qk = /(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/, Aye = /^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/, Tye = /(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/, FB = { cm: 96 / 2.54, mm: 96 / 25.4, pt: 96 / 72, pc: 96 / 6, in: 96, Q: 96 / (2.54 * 40), px: 1 }, Pye = Object.keys(FB), Ll = "NaN"; function Cye(e, t) { return e * FB[t]; } var Kh = /* @__PURE__ */ function() { function e(t, n) { wye(this, e), this.num = t, this.unit = n, this.num = t, this.unit = n, Number.isNaN(t) && (this.unit = ""), n !== "" && !Aye.test(n) && (this.num = NaN, this.unit = ""), Pye.includes(n) && (this.num = Cye(t, n), this.unit = "px"); } return _ye(e, [{ key: "add", value: function(n) { return this.unit !== n.unit ? new e(NaN, "") : new e(this.num + n.num, this.unit); } }, { key: "subtract", value: function(n) { return this.unit !== n.unit ? new e(NaN, "") : new e(this.num - n.num, this.unit); } }, { key: "multiply", value: function(n) { return this.unit !== "" && n.unit !== "" && this.unit !== n.unit ? new e(NaN, "") : new e(this.num * n.num, this.unit || n.unit); } }, { key: "divide", value: function(n) { return this.unit !== "" && n.unit !== "" && this.unit !== n.unit ? new e(NaN, "") : new e(this.num / n.num, this.unit || n.unit); } }, { key: "toString", value: function() { return "".concat(this.num).concat(this.unit); } }, { key: "isNaN", value: function() { return Number.isNaN(this.num); } }], [{ key: "parse", value: function(n) { var r, i = (r = Tye.exec(n)) !== null && r !== void 0 ? r : [], o = sm(i, 3), a = o[1], s = o[2]; return new e(parseFloat(a), s ?? ""); } }]); }(); function WB(e) { if (e.includes(Ll)) return Ll; for (var t = e; t.includes("*") || t.includes("/"); ) { var n, r = (n = Yk.exec(t)) !== null && n !== void 0 ? n : [], i = sm(r, 4), o = i[1], a = i[2], s = i[3], l = Kh.parse(o ?? ""), c = Kh.parse(s ?? ""), f = a === "*" ? l.multiply(c) : l.divide(c); if (f.isNaN()) return Ll; t = t.replace(Yk, f.toString()); } for (; t.includes("+") || /.-\d+(?:\.\d+)?/.test(t); ) { var d, p = (d = qk.exec(t)) !== null && d !== void 0 ? d : [], m = sm(p, 4), y = m[1], g = m[2], v = m[3], x = Kh.parse(y ?? ""), w = Kh.parse(v ?? ""), S = g === "+" ? x.add(w) : x.subtract(w); if (S.isNaN()) return Ll; t = t.replace(qk, S.toString()); } return t; } var Xk = /\(([^()]*)\)/; function Eye(e) { for (var t = e; t.includes("("); ) { var n = Xk.exec(t), r = sm(n, 2), i = r[1]; t = t.replace(Xk, WB(i)); } return t; } function kye(e) { var t = e.replace(/\s+/g, ""); return t = Eye(t), t = WB(t), t; } function Mye(e) { try { return kye(e); } catch { return Ll; } } function Fb(e) { var t = Mye(e.slice(5, -1)); return t === Ll ? "" : t; } var Nye = ["x", "y", "lineHeight", "capHeight", "scaleToFit", "textAnchor", "verticalAnchor", "fill"], $ye = ["dx", "dy", "angle", "className", "breakAll"]; function zx() { return zx = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, zx.apply(this, arguments); } function Zk(e, t) { if (e == null) return {}; var n = Dye(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function Dye(e, t) { if (e == null) return {}; var n = {}; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { if (t.indexOf(r) >= 0) continue; n[r] = e[r]; } return n; } function Jk(e, t) { return Lye(e) || jye(e, t) || Rye(e, t) || Iye(); } function Iye() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function Rye(e, t) { if (e) { if (typeof e == "string") return Qk(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Qk(e, t); } } function Qk(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } function jye(e, t) { var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; if (n != null) { var r, i, o, a, s = [], l = !0, c = !1; try { if (o = (n = n.call(e)).next, t === 0) { if (Object(n) !== n) return; l = !1; } else for (; !(l = (r = o.call(n)).done) && (s.push(r.value), s.length !== t); l = !0) ; } catch (f) { c = !0, i = f; } finally { try { if (!l && n.return != null && (a = n.return(), Object(a) !== a)) return; } finally { if (c) throw i; } } return s; } } function Lye(e) { if (Array.isArray(e)) return e; } var zB = /[ \f\n\r\t\v\u2028\u2029]+/, VB = function(t) { var n = t.children, r = t.breakAll, i = t.style; try { var o = []; Ue(n) || (r ? o = n.toString().split("") : o = n.toString().split(zB)); var a = o.map(function(l) { return { word: l, width: tf(l, i).width }; }), s = r ? 0 : tf(" ", i).width; return { wordsWithComputedWidth: a, spaceWidth: s }; } catch { return null; } }, Bye = function(t, n, r, i, o) { var a = t.maxLines, s = t.children, l = t.style, c = t.breakAll, f = be(a), d = s, p = function() { var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []; return F.reduce(function(W, z) { var H = z.word, U = z.width, V = W[W.length - 1]; if (V && (i == null || o || V.width + U + r < Number(i))) V.words.push(H), V.width += U + r; else { var Y = { words: [H], width: U }; W.push(Y); } return W; }, []); }, m = p(n), y = function(F) { return F.reduce(function(W, z) { return W.width > z.width ? W : z; }); }; if (!f) return m; for (var g = "…", v = function(F) { var W = d.slice(0, F), z = VB({ breakAll: c, style: l, children: W + g }).wordsWithComputedWidth, H = p(z), U = H.length > a || y(H).width > Number(i); return [U, H]; }, x = 0, w = d.length - 1, S = 0, A; x <= w && S <= d.length - 1; ) { var _ = Math.floor((x + w) / 2), O = _ - 1, P = v(O), C = Jk(P, 2), k = C[0], I = C[1], $ = v(_), N = Jk($, 1), D = N[0]; if (!k && !D && (x = _ + 1), k && D && (w = _ - 1), !k && D) { A = I; break; } S++; } return A || m; }, eM = function(t) { var n = Ue(t) ? [] : t.toString().split(zB); return [{ words: n }]; }, Fye = function(t) { var n = t.width, r = t.scaleToFit, i = t.children, o = t.style, a = t.breakAll, s = t.maxLines; if ((n || r) && !Ni.isSsr) { var l, c, f = VB({ breakAll: a, children: i, style: o }); if (f) { var d = f.wordsWithComputedWidth, p = f.spaceWidth; l = d, c = p; } else return eM(i); return Bye({ breakAll: a, children: i, maxLines: s, style: o }, l, c, n, r); } return eM(i); }, tM = "#808080", Vs = function(t) { var n = t.x, r = n === void 0 ? 0 : n, i = t.y, o = i === void 0 ? 0 : i, a = t.lineHeight, s = a === void 0 ? "1em" : a, l = t.capHeight, c = l === void 0 ? "0.71em" : l, f = t.scaleToFit, d = f === void 0 ? !1 : f, p = t.textAnchor, m = p === void 0 ? "start" : p, y = t.verticalAnchor, g = y === void 0 ? "end" : y, v = t.fill, x = v === void 0 ? tM : v, w = Zk(t, Nye), S = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function() { return Fye({ breakAll: w.breakAll, children: w.children, maxLines: w.maxLines, scaleToFit: d, style: w.style, width: w.width }); }, [w.breakAll, w.children, w.maxLines, d, w.style, w.width]), A = w.dx, _ = w.dy, O = w.angle, P = w.className, C = w.breakAll, k = Zk(w, $ye); if (!On(r) || !On(o)) return null; var I = r + (be(A) ? A : 0), $ = o + (be(_) ? _ : 0), N; switch (g) { case "start": N = Fb("calc(".concat(c, ")")); break; case "middle": N = Fb("calc(".concat((S.length - 1) / 2, " * -").concat(s, " + (").concat(c, " / 2))")); break; default: N = Fb("calc(".concat(S.length - 1, " * -").concat(s, ")")); break; } var D = []; if (d) { var j = S[0].width, F = w.width; D.push("scale(".concat((be(F) ? F / j : 1) / j, ")")); } return O && D.push("rotate(".concat(O, ", ").concat(I, ", ").concat($, ")")), D.length && (k.transform = D.join(" ")), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("text", zx({}, Ee(k, !0), { x: I, y: $, className: Xe("recharts-text", P), textAnchor: m, fill: x.includes("url") ? tM : x }), S.map(function(W, z) { var H = W.words.join(C ? "" : " "); return ( // duplicate words will cause duplicate keys // eslint-disable-next-line react/no-array-index-key /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("tspan", { x: I, dy: z === 0 ? N : s, key: "".concat(H, "-").concat(z) }, H) ); })); }; function Na(e, t) { return e == null || t == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; } function Wye(e, t) { return e == null || t == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; } function rS(e) { let t, n, r; e.length !== 2 ? (t = Na, n = (s, l) => Na(e(s), l), r = (s, l) => e(s) - l) : (t = e === Na || e === Wye ? e : zye, n = e, r = e); function i(s, l, c = 0, f = s.length) { if (c < f) { if (t(l, l) !== 0) return f; do { const d = c + f >>> 1; n(s[d], l) < 0 ? c = d + 1 : f = d; } while (c < f); } return c; } function o(s, l, c = 0, f = s.length) { if (c < f) { if (t(l, l) !== 0) return f; do { const d = c + f >>> 1; n(s[d], l) <= 0 ? c = d + 1 : f = d; } while (c < f); } return c; } function a(s, l, c = 0, f = s.length) { const d = i(s, l, c, f - 1); return d > c && r(s[d - 1], l) > -r(s[d], l) ? d - 1 : d; } return { left: i, center: a, right: o }; } function zye() { return 0; } function UB(e) { return e === null ? NaN : +e; } function* Vye(e, t) { for (let n of e) n != null && (n = +n) >= n && (yield n); } const Uye = rS(Na), Ed = Uye.right; rS(UB).center; class nM extends Map { constructor(t, n = Gye) { if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: n } }), t != null) for (const [r, i] of t) this.set(r, i); } get(t) { return super.get(rM(this, t)); } has(t) { return super.has(rM(this, t)); } set(t, n) { return super.set(Hye(this, t), n); } delete(t) { return super.delete(Kye(this, t)); } } function rM({ _intern: e, _key: t }, n) { const r = t(n); return e.has(r) ? e.get(r) : n; } function Hye({ _intern: e, _key: t }, n) { const r = t(n); return e.has(r) ? e.get(r) : (e.set(r, n), n); } function Kye({ _intern: e, _key: t }, n) { const r = t(n); return e.has(r) && (n = e.get(r), e.delete(r)), n; } function Gye(e) { return e !== null && typeof e == "object" ? e.valueOf() : e; } function Yye(e = Na) { if (e === Na) return HB; if (typeof e != "function") throw new TypeError("compare is not a function"); return (t, n) => { const r = e(t, n); return r || r === 0 ? r : (e(n, n) === 0) - (e(t, t) === 0); }; } function HB(e, t) { return (e == null || !(e >= e)) - (t == null || !(t >= t)) || (e < t ? -1 : e > t ? 1 : 0); } const qye = Math.sqrt(50), Xye = Math.sqrt(10), Zye = Math.sqrt(2); function lm(e, t, n) { const r = (t - e) / Math.max(0, n), i = Math.floor(Math.log10(r)), o = r / Math.pow(10, i), a = o >= qye ? 10 : o >= Xye ? 5 : o >= Zye ? 2 : 1; let s, l, c; return i < 0 ? (c = Math.pow(10, -i) / a, s = Math.round(e * c), l = Math.round(t * c), s / c < e && ++s, l / c > t && --l, c = -c) : (c = Math.pow(10, i) * a, s = Math.round(e / c), l = Math.round(t / c), s * c < e && ++s, l * c > t && --l), l < s && 0.5 <= n && n < 2 ? lm(e, t, n * 2) : [s, l, c]; } function Vx(e, t, n) { if (t = +t, e = +e, n = +n, !(n > 0)) return []; if (e === t) return [e]; const r = t < e, [i, o, a] = r ? lm(t, e, n) : lm(e, t, n); if (!(o >= i)) return []; const s = o - i + 1, l = new Array(s); if (r) if (a < 0) for (let c = 0; c < s; ++c) l[c] = (o - c) / -a; else for (let c = 0; c < s; ++c) l[c] = (o - c) * a; else if (a < 0) for (let c = 0; c < s; ++c) l[c] = (i + c) / -a; else for (let c = 0; c < s; ++c) l[c] = (i + c) * a; return l; } function Ux(e, t, n) { return t = +t, e = +e, n = +n, lm(e, t, n)[2]; } function Hx(e, t, n) { t = +t, e = +e, n = +n; const r = t < e, i = r ? Ux(t, e, n) : Ux(e, t, n); return (r ? -1 : 1) * (i < 0 ? 1 / -i : i); } function iM(e, t) { let n; for (const r of e) r != null && (n < r || n === void 0 && r >= r) && (n = r); return n; } function oM(e, t) { let n; for (const r of e) r != null && (n > r || n === void 0 && r >= r) && (n = r); return n; } function KB(e, t, n = 0, r = 1 / 0, i) { if (t = Math.floor(t), n = Math.floor(Math.max(0, n)), r = Math.floor(Math.min(e.length - 1, r)), !(n <= t && t <= r)) return e; for (i = i === void 0 ? HB : Yye(i); r > n; ) { if (r - n > 600) { const l = r - n + 1, c = t - n + 1, f = Math.log(l), d = 0.5 * Math.exp(2 * f / 3), p = 0.5 * Math.sqrt(f * d * (l - d) / l) * (c - l / 2 < 0 ? -1 : 1), m = Math.max(n, Math.floor(t - c * d / l + p)), y = Math.min(r, Math.floor(t + (l - c) * d / l + p)); KB(e, t, m, y, i); } const o = e[t]; let a = n, s = r; for (Eu(e, n, t), i(e[r], o) > 0 && Eu(e, n, r); a < s; ) { for (Eu(e, a, s), ++a, --s; i(e[a], o) < 0; ) ++a; for (; i(e[s], o) > 0; ) --s; } i(e[n], o) === 0 ? Eu(e, n, s) : (++s, Eu(e, s, r)), s <= t && (n = s + 1), t <= s && (r = s - 1); } return e; } function Eu(e, t, n) { const r = e[t]; e[t] = e[n], e[n] = r; } function Jye(e, t, n) { if (e = Float64Array.from(Vye(e)), !(!(r = e.length) || isNaN(t = +t))) { if (t <= 0 || r < 2) return oM(e); if (t >= 1) return iM(e); var r, i = (r - 1) * t, o = Math.floor(i), a = iM(KB(e, o).subarray(0, o + 1)), s = oM(e.subarray(o + 1)); return a + (s - a) * (i - o); } } function Qye(e, t, n = UB) { if (!(!(r = e.length) || isNaN(t = +t))) { if (t <= 0 || r < 2) return +n(e[0], 0, e); if (t >= 1) return +n(e[r - 1], r - 1, e); var r, i = (r - 1) * t, o = Math.floor(i), a = +n(e[o], o, e), s = +n(e[o + 1], o + 1, e); return a + (s - a) * (i - o); } } function eve(e, t, n) { e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n; for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, o = new Array(i); ++r < i; ) o[r] = e + r * n; return o; } function gi(e, t) { switch (arguments.length) { case 0: break; case 1: this.range(e); break; default: this.range(t).domain(e); break; } return this; } function na(e, t) { switch (arguments.length) { case 0: break; case 1: { typeof e == "function" ? this.interpolator(e) : this.range(e); break; } default: { this.domain(e), typeof t == "function" ? this.interpolator(t) : this.range(t); break; } } return this; } const Kx = Symbol("implicit"); function iS() { var e = new nM(), t = [], n = [], r = Kx; function i(o) { let a = e.get(o); if (a === void 0) { if (r !== Kx) return r; e.set(o, a = t.push(o) - 1); } return n[a % n.length]; } return i.domain = function(o) { if (!arguments.length) return t.slice(); t = [], e = new nM(); for (const a of o) e.has(a) || e.set(a, t.push(a) - 1); return i; }, i.range = function(o) { return arguments.length ? (n = Array.from(o), i) : n.slice(); }, i.unknown = function(o) { return arguments.length ? (r = o, i) : r; }, i.copy = function() { return iS(t, n).unknown(r); }, gi.apply(i, arguments), i; } function Df() { var e = iS().unknown(void 0), t = e.domain, n = e.range, r = 0, i = 1, o, a, s = !1, l = 0, c = 0, f = 0.5; delete e.unknown; function d() { var p = t().length, m = i < r, y = m ? i : r, g = m ? r : i; o = (g - y) / Math.max(1, p - l + c * 2), s && (o = Math.floor(o)), y += (g - y - o * (p - l)) * f, a = o * (1 - l), s && (y = Math.round(y), a = Math.round(a)); var v = eve(p).map(function(x) { return y + o * x; }); return n(m ? v.reverse() : v); } return e.domain = function(p) { return arguments.length ? (t(p), d()) : t(); }, e.range = function(p) { return arguments.length ? ([r, i] = p, r = +r, i = +i, d()) : [r, i]; }, e.rangeRound = function(p) { return [r, i] = p, r = +r, i = +i, s = !0, d(); }, e.bandwidth = function() { return a; }, e.step = function() { return o; }, e.round = function(p) { return arguments.length ? (s = !!p, d()) : s; }, e.padding = function(p) { return arguments.length ? (l = Math.min(1, c = +p), d()) : l; }, e.paddingInner = function(p) { return arguments.length ? (l = Math.min(1, p), d()) : l; }, e.paddingOuter = function(p) { return arguments.length ? (c = +p, d()) : c; }, e.align = function(p) { return arguments.length ? (f = Math.max(0, Math.min(1, p)), d()) : f; }, e.copy = function() { return Df(t(), [r, i]).round(s).paddingInner(l).paddingOuter(c).align(f); }, gi.apply(d(), arguments); } function GB(e) { var t = e.copy; return e.padding = e.paddingOuter, delete e.paddingInner, delete e.paddingOuter, e.copy = function() { return GB(t()); }, e; } function nf() { return GB(Df.apply(null, arguments).paddingInner(1)); } function oS(e, t, n) { e.prototype = t.prototype = n, n.constructor = e; } function YB(e, t) { var n = Object.create(e.prototype); for (var r in t) n[r] = t[r]; return n; } function kd() { } var If = 0.7, cm = 1 / If, ql = "\\s*([+-]?\\d+)\\s*", Rf = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Zi = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", tve = /^#([0-9a-f]{3,8})$/, nve = new RegExp(`^rgb\\(${ql},${ql},${ql}\\)$`), rve = new RegExp(`^rgb\\(${Zi},${Zi},${Zi}\\)$`), ive = new RegExp(`^rgba\\(${ql},${ql},${ql},${Rf}\\)$`), ove = new RegExp(`^rgba\\(${Zi},${Zi},${Zi},${Rf}\\)$`), ave = new RegExp(`^hsl\\(${Rf},${Zi},${Zi}\\)$`), sve = new RegExp(`^hsla\\(${Rf},${Zi},${Zi},${Rf}\\)$`), aM = { aliceblue: 15792383, antiquewhite: 16444375, aqua: 65535, aquamarine: 8388564, azure: 15794175, beige: 16119260, bisque: 16770244, black: 0, blanchedalmond: 16772045, blue: 255, blueviolet: 9055202, brown: 10824234, burlywood: 14596231, cadetblue: 6266528, chartreuse: 8388352, chocolate: 13789470, coral: 16744272, cornflowerblue: 6591981, cornsilk: 16775388, crimson: 14423100, cyan: 65535, darkblue: 139, darkcyan: 35723, darkgoldenrod: 12092939, darkgray: 11119017, darkgreen: 25600, darkgrey: 11119017, darkkhaki: 12433259, darkmagenta: 9109643, darkolivegreen: 5597999, darkorange: 16747520, darkorchid: 10040012, darkred: 9109504, darksalmon: 15308410, darkseagreen: 9419919, darkslateblue: 4734347, darkslategray: 3100495, darkslategrey: 3100495, darkturquoise: 52945, darkviolet: 9699539, deeppink: 16716947, deepskyblue: 49151, dimgray: 6908265, dimgrey: 6908265, dodgerblue: 2003199, firebrick: 11674146, floralwhite: 16775920, forestgreen: 2263842, fuchsia: 16711935, gainsboro: 14474460, ghostwhite: 16316671, gold: 16766720, goldenrod: 14329120, gray: 8421504, green: 32768, greenyellow: 11403055, grey: 8421504, honeydew: 15794160, hotpink: 16738740, indianred: 13458524, indigo: 4915330, ivory: 16777200, khaki: 15787660, lavender: 15132410, lavenderblush: 16773365, lawngreen: 8190976, lemonchiffon: 16775885, lightblue: 11393254, lightcoral: 15761536, lightcyan: 14745599, lightgoldenrodyellow: 16448210, lightgray: 13882323, lightgreen: 9498256, lightgrey: 13882323, lightpink: 16758465, lightsalmon: 16752762, lightseagreen: 2142890, lightskyblue: 8900346, lightslategray: 7833753, lightslategrey: 7833753, lightsteelblue: 11584734, lightyellow: 16777184, lime: 65280, limegreen: 3329330, linen: 16445670, magenta: 16711935, maroon: 8388608, mediumaquamarine: 6737322, mediumblue: 205, mediumorchid: 12211667, mediumpurple: 9662683, mediumseagreen: 3978097, mediumslateblue: 8087790, mediumspringgreen: 64154, mediumturquoise: 4772300, mediumvioletred: 13047173, midnightblue: 1644912, mintcream: 16121850, mistyrose: 16770273, moccasin: 16770229, navajowhite: 16768685, navy: 128, oldlace: 16643558, olive: 8421376, olivedrab: 7048739, orange: 16753920, orangered: 16729344, orchid: 14315734, palegoldenrod: 15657130, palegreen: 10025880, paleturquoise: 11529966, palevioletred: 14381203, papayawhip: 16773077, peachpuff: 16767673, peru: 13468991, pink: 16761035, plum: 14524637, powderblue: 11591910, purple: 8388736, rebeccapurple: 6697881, red: 16711680, rosybrown: 12357519, royalblue: 4286945, saddlebrown: 9127187, salmon: 16416882, sandybrown: 16032864, seagreen: 3050327, seashell: 16774638, sienna: 10506797, silver: 12632256, skyblue: 8900331, slateblue: 6970061, slategray: 7372944, slategrey: 7372944, snow: 16775930, springgreen: 65407, steelblue: 4620980, tan: 13808780, teal: 32896, thistle: 14204888, tomato: 16737095, turquoise: 4251856, violet: 15631086, wheat: 16113331, white: 16777215, whitesmoke: 16119285, yellow: 16776960, yellowgreen: 10145074 }; oS(kd, jf, { copy(e) { return Object.assign(new this.constructor(), this, e); }, displayable() { return this.rgb().displayable(); }, hex: sM, // Deprecated! Use color.formatHex. formatHex: sM, formatHex8: lve, formatHsl: cve, formatRgb: lM, toString: lM }); function sM() { return this.rgb().formatHex(); } function lve() { return this.rgb().formatHex8(); } function cve() { return qB(this).formatHsl(); } function lM() { return this.rgb().formatRgb(); } function jf(e) { var t, n; return e = (e + "").trim().toLowerCase(), (t = tve.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? cM(t) : n === 3 ? new _r(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Gh(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Gh(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = nve.exec(e)) ? new _r(t[1], t[2], t[3], 1) : (t = rve.exec(e)) ? new _r(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = ive.exec(e)) ? Gh(t[1], t[2], t[3], t[4]) : (t = ove.exec(e)) ? Gh(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = ave.exec(e)) ? dM(t[1], t[2] / 100, t[3] / 100, 1) : (t = sve.exec(e)) ? dM(t[1], t[2] / 100, t[3] / 100, t[4]) : aM.hasOwnProperty(e) ? cM(aM[e]) : e === "transparent" ? new _r(NaN, NaN, NaN, 0) : null; } function cM(e) { return new _r(e >> 16 & 255, e >> 8 & 255, e & 255, 1); } function Gh(e, t, n, r) { return r <= 0 && (e = t = n = NaN), new _r(e, t, n, r); } function uve(e) { return e instanceof kd || (e = jf(e)), e ? (e = e.rgb(), new _r(e.r, e.g, e.b, e.opacity)) : new _r(); } function Gx(e, t, n, r) { return arguments.length === 1 ? uve(e) : new _r(e, t, n, r ?? 1); } function _r(e, t, n, r) { this.r = +e, this.g = +t, this.b = +n, this.opacity = +r; } oS(_r, Gx, YB(kd, { brighter(e) { return e = e == null ? cm : Math.pow(cm, e), new _r(this.r * e, this.g * e, this.b * e, this.opacity); }, darker(e) { return e = e == null ? If : Math.pow(If, e), new _r(this.r * e, this.g * e, this.b * e, this.opacity); }, rgb() { return this; }, clamp() { return new _r(Ns(this.r), Ns(this.g), Ns(this.b), um(this.opacity)); }, displayable() { return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1; }, hex: uM, // Deprecated! Use color.formatHex. formatHex: uM, formatHex8: fve, formatRgb: fM, toString: fM })); function uM() { return `#${Os(this.r)}${Os(this.g)}${Os(this.b)}`; } function fve() { return `#${Os(this.r)}${Os(this.g)}${Os(this.b)}${Os((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`; } function fM() { const e = um(this.opacity); return `${e === 1 ? "rgb(" : "rgba("}${Ns(this.r)}, ${Ns(this.g)}, ${Ns(this.b)}${e === 1 ? ")" : `, ${e})`}`; } function um(e) { return isNaN(e) ? 1 : Math.max(0, Math.min(1, e)); } function Ns(e) { return Math.max(0, Math.min(255, Math.round(e) || 0)); } function Os(e) { return e = Ns(e), (e < 16 ? "0" : "") + e.toString(16); } function dM(e, t, n, r) { return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new Ci(e, t, n, r); } function qB(e) { if (e instanceof Ci) return new Ci(e.h, e.s, e.l, e.opacity); if (e instanceof kd || (e = jf(e)), !e) return new Ci(); if (e instanceof Ci) return e; e = e.rgb(); var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), o = Math.max(t, n, r), a = NaN, s = o - i, l = (o + i) / 2; return s ? (t === o ? a = (n - r) / s + (n < r) * 6 : n === o ? a = (r - t) / s + 2 : a = (t - n) / s + 4, s /= l < 0.5 ? o + i : 2 - o - i, a *= 60) : s = l > 0 && l < 1 ? 0 : a, new Ci(a, s, l, e.opacity); } function dve(e, t, n, r) { return arguments.length === 1 ? qB(e) : new Ci(e, t, n, r ?? 1); } function Ci(e, t, n, r) { this.h = +e, this.s = +t, this.l = +n, this.opacity = +r; } oS(Ci, dve, YB(kd, { brighter(e) { return e = e == null ? cm : Math.pow(cm, e), new Ci(this.h, this.s, this.l * e, this.opacity); }, darker(e) { return e = e == null ? If : Math.pow(If, e), new Ci(this.h, this.s, this.l * e, this.opacity); }, rgb() { var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < 0.5 ? n : 1 - n) * t, i = 2 * n - r; return new _r( Wb(e >= 240 ? e - 240 : e + 120, i, r), Wb(e, i, r), Wb(e < 120 ? e + 240 : e - 120, i, r), this.opacity ); }, clamp() { return new Ci(hM(this.h), Yh(this.s), Yh(this.l), um(this.opacity)); }, displayable() { return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1; }, formatHsl() { const e = um(this.opacity); return `${e === 1 ? "hsl(" : "hsla("}${hM(this.h)}, ${Yh(this.s) * 100}%, ${Yh(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`; } })); function hM(e) { return e = (e || 0) % 360, e < 0 ? e + 360 : e; } function Yh(e) { return Math.max(0, Math.min(1, e || 0)); } function Wb(e, t, n) { return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255; } const aS = (e) => () => e; function hve(e, t) { return function(n) { return e + n * t; }; } function pve(e, t, n) { return e = Math.pow(e, n), t = Math.pow(t, n) - e, n = 1 / n, function(r) { return Math.pow(e + r * t, n); }; } function mve(e) { return (e = +e) == 1 ? XB : function(t, n) { return n - t ? pve(t, n, e) : aS(isNaN(t) ? n : t); }; } function XB(e, t) { var n = t - e; return n ? hve(e, n) : aS(isNaN(e) ? t : e); } const pM = function e(t) { var n = mve(t); function r(i, o) { var a = n((i = Gx(i)).r, (o = Gx(o)).r), s = n(i.g, o.g), l = n(i.b, o.b), c = XB(i.opacity, o.opacity); return function(f) { return i.r = a(f), i.g = s(f), i.b = l(f), i.opacity = c(f), i + ""; }; } return r.gamma = e, r; }(1); function gve(e, t) { t || (t = []); var n = e ? Math.min(t.length, e.length) : 0, r = t.slice(), i; return function(o) { for (i = 0; i < n; ++i) r[i] = e[i] * (1 - o) + t[i] * o; return r; }; } function yve(e) { return ArrayBuffer.isView(e) && !(e instanceof DataView); } function vve(e, t) { var n = t ? t.length : 0, r = e ? Math.min(n, e.length) : 0, i = new Array(r), o = new Array(n), a; for (a = 0; a < r; ++a) i[a] = Zc(e[a], t[a]); for (; a < n; ++a) o[a] = t[a]; return function(s) { for (a = 0; a < r; ++a) o[a] = i[a](s); return o; }; } function bve(e, t) { var n = /* @__PURE__ */ new Date(); return e = +e, t = +t, function(r) { return n.setTime(e * (1 - r) + t * r), n; }; } function fm(e, t) { return e = +e, t = +t, function(n) { return e * (1 - n) + t * n; }; } function xve(e, t) { var n = {}, r = {}, i; (e === null || typeof e != "object") && (e = {}), (t === null || typeof t != "object") && (t = {}); for (i in t) i in e ? n[i] = Zc(e[i], t[i]) : r[i] = t[i]; return function(o) { for (i in n) r[i] = n[i](o); return r; }; } var Yx = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, zb = new RegExp(Yx.source, "g"); function wve(e) { return function() { return e; }; } function _ve(e) { return function(t) { return e(t) + ""; }; } function Sve(e, t) { var n = Yx.lastIndex = zb.lastIndex = 0, r, i, o, a = -1, s = [], l = []; for (e = e + "", t = t + ""; (r = Yx.exec(e)) && (i = zb.exec(t)); ) (o = i.index) > n && (o = t.slice(n, o), s[a] ? s[a] += o : s[++a] = o), (r = r[0]) === (i = i[0]) ? s[a] ? s[a] += i : s[++a] = i : (s[++a] = null, l.push({ i: a, x: fm(r, i) })), n = zb.lastIndex; return n < t.length && (o = t.slice(n), s[a] ? s[a] += o : s[++a] = o), s.length < 2 ? l[0] ? _ve(l[0].x) : wve(t) : (t = l.length, function(c) { for (var f = 0, d; f < t; ++f) s[(d = l[f]).i] = d.x(c); return s.join(""); }); } function Zc(e, t) { var n = typeof t, r; return t == null || n === "boolean" ? aS(t) : (n === "number" ? fm : n === "string" ? (r = jf(t)) ? (t = r, pM) : Sve : t instanceof jf ? pM : t instanceof Date ? bve : yve(t) ? gve : Array.isArray(t) ? vve : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? xve : fm)(e, t); } function sS(e, t) { return e = +e, t = +t, function(n) { return Math.round(e * (1 - n) + t * n); }; } function Ove(e, t) { t === void 0 && (t = e, e = Zc); for (var n = 0, r = t.length - 1, i = t[0], o = new Array(r < 0 ? 0 : r); n < r; ) o[n] = e(i, i = t[++n]); return function(a) { var s = Math.max(0, Math.min(r - 1, Math.floor(a *= r))); return o[s](a - s); }; } function Ave(e) { return function() { return e; }; } function dm(e) { return +e; } var mM = [0, 1]; function hr(e) { return e; } function qx(e, t) { return (t -= e = +e) ? function(n) { return (n - e) / t; } : Ave(isNaN(t) ? NaN : 0.5); } function Tve(e, t) { var n; return e > t && (n = e, e = t, t = n), function(r) { return Math.max(e, Math.min(t, r)); }; } function Pve(e, t, n) { var r = e[0], i = e[1], o = t[0], a = t[1]; return i < r ? (r = qx(i, r), o = n(a, o)) : (r = qx(r, i), o = n(o, a)), function(s) { return o(r(s)); }; } function Cve(e, t, n) { var r = Math.min(e.length, t.length) - 1, i = new Array(r), o = new Array(r), a = -1; for (e[r] < e[0] && (e = e.slice().reverse(), t = t.slice().reverse()); ++a < r; ) i[a] = qx(e[a], e[a + 1]), o[a] = n(t[a], t[a + 1]); return function(s) { var l = Ed(e, s, 1, r) - 1; return o[l](i[l](s)); }; } function Md(e, t) { return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown()); } function oy() { var e = mM, t = mM, n = Zc, r, i, o, a = hr, s, l, c; function f() { var p = Math.min(e.length, t.length); return a !== hr && (a = Tve(e[0], e[p - 1])), s = p > 2 ? Cve : Pve, l = c = null, d; } function d(p) { return p == null || isNaN(p = +p) ? o : (l || (l = s(e.map(r), t, n)))(r(a(p))); } return d.invert = function(p) { return a(i((c || (c = s(t, e.map(r), fm)))(p))); }, d.domain = function(p) { return arguments.length ? (e = Array.from(p, dm), f()) : e.slice(); }, d.range = function(p) { return arguments.length ? (t = Array.from(p), f()) : t.slice(); }, d.rangeRound = function(p) { return t = Array.from(p), n = sS, f(); }, d.clamp = function(p) { return arguments.length ? (a = p ? !0 : hr, f()) : a !== hr; }, d.interpolate = function(p) { return arguments.length ? (n = p, f()) : n; }, d.unknown = function(p) { return arguments.length ? (o = p, d) : o; }, function(p, m) { return r = p, i = m, f(); }; } function lS() { return oy()(hr, hr); } function Eve(e) { return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10); } function hm(e, t) { if ((n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e")) < 0) return null; var n, r = e.slice(0, n); return [ r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1) ]; } function uc(e) { return e = hm(Math.abs(e)), e ? e[1] : NaN; } function kve(e, t) { return function(n, r) { for (var i = n.length, o = [], a = 0, s = e[0], l = 0; i > 0 && s > 0 && (l + s + 1 > r && (s = Math.max(1, r - l)), o.push(n.substring(i -= s, i + s)), !((l += s + 1) > r)); ) s = e[a = (a + 1) % e.length]; return o.reverse().join(t); }; } function Mve(e) { return function(t) { return t.replace(/[0-9]/g, function(n) { return e[+n]; }); }; } var Nve = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; function Lf(e) { if (!(t = Nve.exec(e))) throw new Error("invalid format: " + e); var t; return new cS({ fill: t[1], align: t[2], sign: t[3], symbol: t[4], zero: t[5], width: t[6], comma: t[7], precision: t[8] && t[8].slice(1), trim: t[9], type: t[10] }); } Lf.prototype = cS.prototype; function cS(e) { this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + ""; } cS.prototype.toString = function() { return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type; }; function $ve(e) { e: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) { case ".": r = i = n; break; case "0": r === 0 && (r = n), i = n; break; default: if (!+e[n]) break e; r > 0 && (r = 0); break; } return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e; } var ZB; function Dve(e, t) { var n = hm(e, t); if (!n) return e + ""; var r = n[0], i = n[1], o = i - (ZB = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, a = r.length; return o === a ? r : o > a ? r + new Array(o - a + 1).join("0") : o > 0 ? r.slice(0, o) + "." + r.slice(o) : "0." + new Array(1 - o).join("0") + hm(e, Math.max(0, t + o - 1))[0]; } function gM(e, t) { var n = hm(e, t); if (!n) return e + ""; var r = n[0], i = n[1]; return i < 0 ? "0." + new Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + new Array(i - r.length + 2).join("0"); } const yM = { "%": (e, t) => (e * 100).toFixed(t), b: (e) => Math.round(e).toString(2), c: (e) => e + "", d: Eve, e: (e, t) => e.toExponential(t), f: (e, t) => e.toFixed(t), g: (e, t) => e.toPrecision(t), o: (e) => Math.round(e).toString(8), p: (e, t) => gM(e * 100, t), r: gM, s: Dve, X: (e) => Math.round(e).toString(16).toUpperCase(), x: (e) => Math.round(e).toString(16) }; function vM(e) { return e; } var bM = Array.prototype.map, xM = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"]; function Ive(e) { var t = e.grouping === void 0 || e.thousands === void 0 ? vM : kve(bM.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", o = e.numerals === void 0 ? vM : Mve(bM.call(e.numerals, String)), a = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", l = e.nan === void 0 ? "NaN" : e.nan + ""; function c(d) { d = Lf(d); var p = d.fill, m = d.align, y = d.sign, g = d.symbol, v = d.zero, x = d.width, w = d.comma, S = d.precision, A = d.trim, _ = d.type; _ === "n" ? (w = !0, _ = "g") : yM[_] || (S === void 0 && (S = 12), A = !0, _ = "g"), (v || p === "0" && m === "=") && (v = !0, p = "0", m = "="); var O = g === "$" ? n : g === "#" && /[boxX]/.test(_) ? "0" + _.toLowerCase() : "", P = g === "$" ? r : /[%p]/.test(_) ? a : "", C = yM[_], k = /[defgprs%]/.test(_); S = S === void 0 ? 6 : /[gprs]/.test(_) ? Math.max(1, Math.min(21, S)) : Math.max(0, Math.min(20, S)); function I($) { var N = O, D = P, j, F, W; if (_ === "c") D = C($) + D, $ = ""; else { $ = +$; var z = $ < 0 || 1 / $ < 0; if ($ = isNaN($) ? l : C(Math.abs($), S), A && ($ = $ve($)), z && +$ == 0 && y !== "+" && (z = !1), N = (z ? y === "(" ? y : s : y === "-" || y === "(" ? "" : y) + N, D = (_ === "s" ? xM[8 + ZB / 3] : "") + D + (z && y === "(" ? ")" : ""), k) { for (j = -1, F = $.length; ++j < F; ) if (W = $.charCodeAt(j), 48 > W || W > 57) { D = (W === 46 ? i + $.slice(j + 1) : $.slice(j)) + D, $ = $.slice(0, j); break; } } } w && !v && ($ = t($, 1 / 0)); var H = N.length + $.length + D.length, U = H < x ? new Array(x - H + 1).join(p) : ""; switch (w && v && ($ = t(U + $, U.length ? x - D.length : 1 / 0), U = ""), m) { case "<": $ = N + $ + D + U; break; case "=": $ = N + U + $ + D; break; case "^": $ = U.slice(0, H = U.length >> 1) + N + $ + D + U.slice(H); break; default: $ = U + N + $ + D; break; } return o($); } return I.toString = function() { return d + ""; }, I; } function f(d, p) { var m = c((d = Lf(d), d.type = "f", d)), y = Math.max(-8, Math.min(8, Math.floor(uc(p) / 3))) * 3, g = Math.pow(10, -y), v = xM[8 + y / 3]; return function(x) { return m(g * x) + v; }; } return { format: c, formatPrefix: f }; } var qh, uS, JB; Rve({ thousands: ",", grouping: [3], currency: ["$", ""] }); function Rve(e) { return qh = Ive(e), uS = qh.format, JB = qh.formatPrefix, qh; } function jve(e) { return Math.max(0, -uc(Math.abs(e))); } function Lve(e, t) { return Math.max(0, Math.max(-8, Math.min(8, Math.floor(uc(t) / 3))) * 3 - uc(Math.abs(e))); } function Bve(e, t) { return e = Math.abs(e), t = Math.abs(t) - e, Math.max(0, uc(t) - uc(e)) + 1; } function QB(e, t, n, r) { var i = Hx(e, t, n), o; switch (r = Lf(r ?? ",f"), r.type) { case "s": { var a = Math.max(Math.abs(e), Math.abs(t)); return r.precision == null && !isNaN(o = Lve(i, a)) && (r.precision = o), JB(r, a); } case "": case "e": case "g": case "p": case "r": { r.precision == null && !isNaN(o = Bve(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = o - (r.type === "e")); break; } case "f": case "%": { r.precision == null && !isNaN(o = jve(i)) && (r.precision = o - (r.type === "%") * 2); break; } } return uS(r); } function Ga(e) { var t = e.domain; return e.ticks = function(n) { var r = t(); return Vx(r[0], r[r.length - 1], n ?? 10); }, e.tickFormat = function(n, r) { var i = t(); return QB(i[0], i[i.length - 1], n ?? 10, r); }, e.nice = function(n) { n == null && (n = 10); var r = t(), i = 0, o = r.length - 1, a = r[i], s = r[o], l, c, f = 10; for (s < a && (c = a, a = s, s = c, c = i, i = o, o = c); f-- > 0; ) { if (c = Ux(a, s, n), c === l) return r[i] = a, r[o] = s, t(r); if (c > 0) a = Math.floor(a / c) * c, s = Math.ceil(s / c) * c; else if (c < 0) a = Math.ceil(a * c) / c, s = Math.floor(s * c) / c; else break; l = c; } return e; }, e; } function pm() { var e = lS(); return e.copy = function() { return Md(e, pm()); }, gi.apply(e, arguments), Ga(e); } function eF(e) { var t; function n(r) { return r == null || isNaN(r = +r) ? t : r; } return n.invert = n, n.domain = n.range = function(r) { return arguments.length ? (e = Array.from(r, dm), n) : e.slice(); }, n.unknown = function(r) { return arguments.length ? (t = r, n) : t; }, n.copy = function() { return eF(e).unknown(t); }, e = arguments.length ? Array.from(e, dm) : [0, 1], Ga(n); } function tF(e, t) { e = e.slice(); var n = 0, r = e.length - 1, i = e[n], o = e[r], a; return o < i && (a = n, n = r, r = a, a = i, i = o, o = a), e[n] = t.floor(i), e[r] = t.ceil(o), e; } function wM(e) { return Math.log(e); } function _M(e) { return Math.exp(e); } function Fve(e) { return -Math.log(-e); } function Wve(e) { return -Math.exp(-e); } function zve(e) { return isFinite(e) ? +("1e" + e) : e < 0 ? 0 : e; } function Vve(e) { return e === 10 ? zve : e === Math.E ? Math.exp : (t) => Math.pow(e, t); } function Uve(e) { return e === Math.E ? Math.log : e === 10 && Math.log10 || e === 2 && Math.log2 || (e = Math.log(e), (t) => Math.log(t) / e); } function SM(e) { return (t, n) => -e(-t, n); } function fS(e) { const t = e(wM, _M), n = t.domain; let r = 10, i, o; function a() { return i = Uve(r), o = Vve(r), n()[0] < 0 ? (i = SM(i), o = SM(o), e(Fve, Wve)) : e(wM, _M), t; } return t.base = function(s) { return arguments.length ? (r = +s, a()) : r; }, t.domain = function(s) { return arguments.length ? (n(s), a()) : n(); }, t.ticks = (s) => { const l = n(); let c = l[0], f = l[l.length - 1]; const d = f < c; d && ([c, f] = [f, c]); let p = i(c), m = i(f), y, g; const v = s == null ? 10 : +s; let x = []; if (!(r % 1) && m - p < v) { if (p = Math.floor(p), m = Math.ceil(m), c > 0) { for (; p <= m; ++p) for (y = 1; y < r; ++y) if (g = p < 0 ? y / o(-p) : y * o(p), !(g < c)) { if (g > f) break; x.push(g); } } else for (; p <= m; ++p) for (y = r - 1; y >= 1; --y) if (g = p > 0 ? y / o(-p) : y * o(p), !(g < c)) { if (g > f) break; x.push(g); } x.length * 2 < v && (x = Vx(c, f, v)); } else x = Vx(p, m, Math.min(m - p, v)).map(o); return d ? x.reverse() : x; }, t.tickFormat = (s, l) => { if (s == null && (s = 10), l == null && (l = r === 10 ? "s" : ","), typeof l != "function" && (!(r % 1) && (l = Lf(l)).precision == null && (l.trim = !0), l = uS(l)), s === 1 / 0) return l; const c = Math.max(1, r * s / t.ticks().length); return (f) => { let d = f / o(Math.round(i(f))); return d * r < r - 0.5 && (d *= r), d <= c ? l(f) : ""; }; }, t.nice = () => n(tF(n(), { floor: (s) => o(Math.floor(i(s))), ceil: (s) => o(Math.ceil(i(s))) })), t; } function nF() { const e = fS(oy()).domain([1, 10]); return e.copy = () => Md(e, nF()).base(e.base()), gi.apply(e, arguments), e; } function OM(e) { return function(t) { return Math.sign(t) * Math.log1p(Math.abs(t / e)); }; } function AM(e) { return function(t) { return Math.sign(t) * Math.expm1(Math.abs(t)) * e; }; } function dS(e) { var t = 1, n = e(OM(t), AM(t)); return n.constant = function(r) { return arguments.length ? e(OM(t = +r), AM(t)) : t; }, Ga(n); } function rF() { var e = dS(oy()); return e.copy = function() { return Md(e, rF()).constant(e.constant()); }, gi.apply(e, arguments); } function TM(e) { return function(t) { return t < 0 ? -Math.pow(-t, e) : Math.pow(t, e); }; } function Hve(e) { return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e); } function Kve(e) { return e < 0 ? -e * e : e * e; } function hS(e) { var t = e(hr, hr), n = 1; function r() { return n === 1 ? e(hr, hr) : n === 0.5 ? e(Hve, Kve) : e(TM(n), TM(1 / n)); } return t.exponent = function(i) { return arguments.length ? (n = +i, r()) : n; }, Ga(t); } function pS() { var e = hS(oy()); return e.copy = function() { return Md(e, pS()).exponent(e.exponent()); }, gi.apply(e, arguments), e; } function Gve() { return pS.apply(null, arguments).exponent(0.5); } function PM(e) { return Math.sign(e) * e * e; } function Yve(e) { return Math.sign(e) * Math.sqrt(Math.abs(e)); } function iF() { var e = lS(), t = [0, 1], n = !1, r; function i(o) { var a = Yve(e(o)); return isNaN(a) ? r : n ? Math.round(a) : a; } return i.invert = function(o) { return e.invert(PM(o)); }, i.domain = function(o) { return arguments.length ? (e.domain(o), i) : e.domain(); }, i.range = function(o) { return arguments.length ? (e.range((t = Array.from(o, dm)).map(PM)), i) : t.slice(); }, i.rangeRound = function(o) { return i.range(o).round(!0); }, i.round = function(o) { return arguments.length ? (n = !!o, i) : n; }, i.clamp = function(o) { return arguments.length ? (e.clamp(o), i) : e.clamp(); }, i.unknown = function(o) { return arguments.length ? (r = o, i) : r; }, i.copy = function() { return iF(e.domain(), t).round(n).clamp(e.clamp()).unknown(r); }, gi.apply(i, arguments), Ga(i); } function oF() { var e = [], t = [], n = [], r; function i() { var a = 0, s = Math.max(1, t.length); for (n = new Array(s - 1); ++a < s; ) n[a - 1] = Qye(e, a / s); return o; } function o(a) { return a == null || isNaN(a = +a) ? r : t[Ed(n, a)]; } return o.invertExtent = function(a) { var s = t.indexOf(a); return s < 0 ? [NaN, NaN] : [ s > 0 ? n[s - 1] : e[0], s < n.length ? n[s] : e[e.length - 1] ]; }, o.domain = function(a) { if (!arguments.length) return e.slice(); e = []; for (let s of a) s != null && !isNaN(s = +s) && e.push(s); return e.sort(Na), i(); }, o.range = function(a) { return arguments.length ? (t = Array.from(a), i()) : t.slice(); }, o.unknown = function(a) { return arguments.length ? (r = a, o) : r; }, o.quantiles = function() { return n.slice(); }, o.copy = function() { return oF().domain(e).range(t).unknown(r); }, gi.apply(o, arguments); } function aF() { var e = 0, t = 1, n = 1, r = [0.5], i = [0, 1], o; function a(l) { return l != null && l <= l ? i[Ed(r, l, 0, n)] : o; } function s() { var l = -1; for (r = new Array(n); ++l < n; ) r[l] = ((l + 1) * t - (l - n) * e) / (n + 1); return a; } return a.domain = function(l) { return arguments.length ? ([e, t] = l, e = +e, t = +t, s()) : [e, t]; }, a.range = function(l) { return arguments.length ? (n = (i = Array.from(l)).length - 1, s()) : i.slice(); }, a.invertExtent = function(l) { var c = i.indexOf(l); return c < 0 ? [NaN, NaN] : c < 1 ? [e, r[0]] : c >= n ? [r[n - 1], t] : [r[c - 1], r[c]]; }, a.unknown = function(l) { return arguments.length && (o = l), a; }, a.thresholds = function() { return r.slice(); }, a.copy = function() { return aF().domain([e, t]).range(i).unknown(o); }, gi.apply(Ga(a), arguments); } function sF() { var e = [0.5], t = [0, 1], n, r = 1; function i(o) { return o != null && o <= o ? t[Ed(e, o, 0, r)] : n; } return i.domain = function(o) { return arguments.length ? (e = Array.from(o), r = Math.min(e.length, t.length - 1), i) : e.slice(); }, i.range = function(o) { return arguments.length ? (t = Array.from(o), r = Math.min(e.length, t.length - 1), i) : t.slice(); }, i.invertExtent = function(o) { var a = t.indexOf(o); return [e[a - 1], e[a]]; }, i.unknown = function(o) { return arguments.length ? (n = o, i) : n; }, i.copy = function() { return sF().domain(e).range(t).unknown(n); }, gi.apply(i, arguments); } const Vb = /* @__PURE__ */ new Date(), Ub = /* @__PURE__ */ new Date(); function Pn(e, t, n, r) { function i(o) { return e(o = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+o)), o; } return i.floor = (o) => (e(o = /* @__PURE__ */ new Date(+o)), o), i.ceil = (o) => (e(o = new Date(o - 1)), t(o, 1), e(o), o), i.round = (o) => { const a = i(o), s = i.ceil(o); return o - a < s - o ? a : s; }, i.offset = (o, a) => (t(o = /* @__PURE__ */ new Date(+o), a == null ? 1 : Math.floor(a)), o), i.range = (o, a, s) => { const l = []; if (o = i.ceil(o), s = s == null ? 1 : Math.floor(s), !(o < a) || !(s > 0)) return l; let c; do l.push(c = /* @__PURE__ */ new Date(+o)), t(o, s), e(o); while (c < o && o < a); return l; }, i.filter = (o) => Pn((a) => { if (a >= a) for (; e(a), !o(a); ) a.setTime(a - 1); }, (a, s) => { if (a >= a) if (s < 0) for (; ++s <= 0; ) for (; t(a, -1), !o(a); ) ; else for (; --s >= 0; ) for (; t(a, 1), !o(a); ) ; }), n && (i.count = (o, a) => (Vb.setTime(+o), Ub.setTime(+a), e(Vb), e(Ub), Math.floor(n(Vb, Ub))), i.every = (o) => (o = Math.floor(o), !isFinite(o) || !(o > 0) ? null : o > 1 ? i.filter(r ? (a) => r(a) % o === 0 : (a) => i.count(0, a) % o === 0) : i)), i; } const mm = Pn(() => { }, (e, t) => { e.setTime(+e + t); }, (e, t) => t - e); mm.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? Pn((t) => { t.setTime(Math.floor(t / e) * e); }, (t, n) => { t.setTime(+t + n * e); }, (t, n) => (n - t) / e) : mm); mm.range; const Eo = 1e3, di = Eo * 60, ko = di * 60, Ho = ko * 24, mS = Ho * 7, CM = Ho * 30, Hb = Ho * 365, As = Pn((e) => { e.setTime(e - e.getMilliseconds()); }, (e, t) => { e.setTime(+e + t * Eo); }, (e, t) => (t - e) / Eo, (e) => e.getUTCSeconds()); As.range; const gS = Pn((e) => { e.setTime(e - e.getMilliseconds() - e.getSeconds() * Eo); }, (e, t) => { e.setTime(+e + t * di); }, (e, t) => (t - e) / di, (e) => e.getMinutes()); gS.range; const yS = Pn((e) => { e.setUTCSeconds(0, 0); }, (e, t) => { e.setTime(+e + t * di); }, (e, t) => (t - e) / di, (e) => e.getUTCMinutes()); yS.range; const vS = Pn((e) => { e.setTime(e - e.getMilliseconds() - e.getSeconds() * Eo - e.getMinutes() * di); }, (e, t) => { e.setTime(+e + t * ko); }, (e, t) => (t - e) / ko, (e) => e.getHours()); vS.range; const bS = Pn((e) => { e.setUTCMinutes(0, 0, 0); }, (e, t) => { e.setTime(+e + t * ko); }, (e, t) => (t - e) / ko, (e) => e.getUTCHours()); bS.range; const Nd = Pn( (e) => e.setHours(0, 0, 0, 0), (e, t) => e.setDate(e.getDate() + t), (e, t) => (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * di) / Ho, (e) => e.getDate() - 1 ); Nd.range; const ay = Pn((e) => { e.setUTCHours(0, 0, 0, 0); }, (e, t) => { e.setUTCDate(e.getUTCDate() + t); }, (e, t) => (t - e) / Ho, (e) => e.getUTCDate() - 1); ay.range; const lF = Pn((e) => { e.setUTCHours(0, 0, 0, 0); }, (e, t) => { e.setUTCDate(e.getUTCDate() + t); }, (e, t) => (t - e) / Ho, (e) => Math.floor(e / Ho)); lF.range; function nl(e) { return Pn((t) => { t.setDate(t.getDate() - (t.getDay() + 7 - e) % 7), t.setHours(0, 0, 0, 0); }, (t, n) => { t.setDate(t.getDate() + n * 7); }, (t, n) => (n - t - (n.getTimezoneOffset() - t.getTimezoneOffset()) * di) / mS); } const sy = nl(0), gm = nl(1), qve = nl(2), Xve = nl(3), fc = nl(4), Zve = nl(5), Jve = nl(6); sy.range; gm.range; qve.range; Xve.range; fc.range; Zve.range; Jve.range; function rl(e) { return Pn((t) => { t.setUTCDate(t.getUTCDate() - (t.getUTCDay() + 7 - e) % 7), t.setUTCHours(0, 0, 0, 0); }, (t, n) => { t.setUTCDate(t.getUTCDate() + n * 7); }, (t, n) => (n - t) / mS); } const ly = rl(0), ym = rl(1), Qve = rl(2), ebe = rl(3), dc = rl(4), tbe = rl(5), nbe = rl(6); ly.range; ym.range; Qve.range; ebe.range; dc.range; tbe.range; nbe.range; const xS = Pn((e) => { e.setDate(1), e.setHours(0, 0, 0, 0); }, (e, t) => { e.setMonth(e.getMonth() + t); }, (e, t) => t.getMonth() - e.getMonth() + (t.getFullYear() - e.getFullYear()) * 12, (e) => e.getMonth()); xS.range; const wS = Pn((e) => { e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0); }, (e, t) => { e.setUTCMonth(e.getUTCMonth() + t); }, (e, t) => t.getUTCMonth() - e.getUTCMonth() + (t.getUTCFullYear() - e.getUTCFullYear()) * 12, (e) => e.getUTCMonth()); wS.range; const Ko = Pn((e) => { e.setMonth(0, 1), e.setHours(0, 0, 0, 0); }, (e, t) => { e.setFullYear(e.getFullYear() + t); }, (e, t) => t.getFullYear() - e.getFullYear(), (e) => e.getFullYear()); Ko.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : Pn((t) => { t.setFullYear(Math.floor(t.getFullYear() / e) * e), t.setMonth(0, 1), t.setHours(0, 0, 0, 0); }, (t, n) => { t.setFullYear(t.getFullYear() + n * e); }); Ko.range; const Go = Pn((e) => { e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0); }, (e, t) => { e.setUTCFullYear(e.getUTCFullYear() + t); }, (e, t) => t.getUTCFullYear() - e.getUTCFullYear(), (e) => e.getUTCFullYear()); Go.every = (e) => !isFinite(e = Math.floor(e)) || !(e > 0) ? null : Pn((t) => { t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0); }, (t, n) => { t.setUTCFullYear(t.getUTCFullYear() + n * e); }); Go.range; function cF(e, t, n, r, i, o) { const a = [ [As, 1, Eo], [As, 5, 5 * Eo], [As, 15, 15 * Eo], [As, 30, 30 * Eo], [o, 1, di], [o, 5, 5 * di], [o, 15, 15 * di], [o, 30, 30 * di], [i, 1, ko], [i, 3, 3 * ko], [i, 6, 6 * ko], [i, 12, 12 * ko], [r, 1, Ho], [r, 2, 2 * Ho], [n, 1, mS], [t, 1, CM], [t, 3, 3 * CM], [e, 1, Hb] ]; function s(c, f, d) { const p = f < c; p && ([c, f] = [f, c]); const m = d && typeof d.range == "function" ? d : l(c, f, d), y = m ? m.range(c, +f + 1) : []; return p ? y.reverse() : y; } function l(c, f, d) { const p = Math.abs(f - c) / d, m = rS(([, , v]) => v).right(a, p); if (m === a.length) return e.every(Hx(c / Hb, f / Hb, d)); if (m === 0) return mm.every(Math.max(Hx(c, f, d), 1)); const [y, g] = a[p / a[m - 1][2] < a[m][2] / p ? m - 1 : m]; return y.every(g); } return [s, l]; } const [rbe, ibe] = cF(Go, wS, ly, lF, bS, yS), [obe, abe] = cF(Ko, xS, sy, Nd, vS, gS); function Kb(e) { if (0 <= e.y && e.y < 100) { var t = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L); return t.setFullYear(e.y), t; } return new Date(e.y, e.m, e.d, e.H, e.M, e.S, e.L); } function Gb(e) { if (0 <= e.y && e.y < 100) { var t = new Date(Date.UTC(-1, e.m, e.d, e.H, e.M, e.S, e.L)); return t.setUTCFullYear(e.y), t; } return new Date(Date.UTC(e.y, e.m, e.d, e.H, e.M, e.S, e.L)); } function ku(e, t, n) { return { y: e, m: t, d: n, H: 0, M: 0, S: 0, L: 0 }; } function sbe(e) { var t = e.dateTime, n = e.date, r = e.time, i = e.periods, o = e.days, a = e.shortDays, s = e.months, l = e.shortMonths, c = Mu(i), f = Nu(i), d = Mu(o), p = Nu(o), m = Mu(a), y = Nu(a), g = Mu(s), v = Nu(s), x = Mu(l), w = Nu(l), S = { a: z, A: H, b: U, B: V, c: null, d: DM, e: DM, f: kbe, g: Fbe, G: zbe, H: Pbe, I: Cbe, j: Ebe, L: uF, m: Mbe, M: Nbe, p: Y, q: Q, Q: jM, s: LM, S: $be, u: Dbe, U: Ibe, V: Rbe, w: jbe, W: Lbe, x: null, X: null, y: Bbe, Y: Wbe, Z: Vbe, "%": RM }, A = { a: ne, A: re, b: ce, B: oe, c: null, d: IM, e: IM, f: Gbe, g: r0e, G: o0e, H: Ube, I: Hbe, j: Kbe, L: dF, m: Ybe, M: qbe, p: fe, q: ae, Q: jM, s: LM, S: Xbe, u: Zbe, U: Jbe, V: Qbe, w: e0e, W: t0e, x: null, X: null, y: n0e, Y: i0e, Z: a0e, "%": RM }, _ = { a: I, A: $, b: N, B: D, c: j, d: NM, e: NM, f: Sbe, g: MM, G: kM, H: $M, I: $M, j: bbe, L: _be, m: vbe, M: xbe, p: k, q: ybe, Q: Abe, s: Tbe, S: wbe, u: dbe, U: hbe, V: pbe, w: fbe, W: mbe, x: F, X: W, y: MM, Y: kM, Z: gbe, "%": Obe }; S.x = O(n, S), S.X = O(r, S), S.c = O(t, S), A.x = O(n, A), A.X = O(r, A), A.c = O(t, A); function O(ee, se) { return function(ge) { var X = [], $e = -1, de = 0, ke = ee.length, it, lt, Xn; for (ge instanceof Date || (ge = /* @__PURE__ */ new Date(+ge)); ++$e < ke; ) ee.charCodeAt($e) === 37 && (X.push(ee.slice(de, $e)), (lt = EM[it = ee.charAt(++$e)]) != null ? it = ee.charAt(++$e) : lt = it === "e" ? " " : "0", (Xn = se[it]) && (it = Xn(ge, lt)), X.push(it), de = $e + 1); return X.push(ee.slice(de, $e)), X.join(""); }; } function P(ee, se) { return function(ge) { var X = ku(1900, void 0, 1), $e = C(X, ee, ge += "", 0), de, ke; if ($e != ge.length) return null; if ("Q" in X) return new Date(X.Q); if ("s" in X) return new Date(X.s * 1e3 + ("L" in X ? X.L : 0)); if (se && !("Z" in X) && (X.Z = 0), "p" in X && (X.H = X.H % 12 + X.p * 12), X.m === void 0 && (X.m = "q" in X ? X.q : 0), "V" in X) { if (X.V < 1 || X.V > 53) return null; "w" in X || (X.w = 1), "Z" in X ? (de = Gb(ku(X.y, 0, 1)), ke = de.getUTCDay(), de = ke > 4 || ke === 0 ? ym.ceil(de) : ym(de), de = ay.offset(de, (X.V - 1) * 7), X.y = de.getUTCFullYear(), X.m = de.getUTCMonth(), X.d = de.getUTCDate() + (X.w + 6) % 7) : (de = Kb(ku(X.y, 0, 1)), ke = de.getDay(), de = ke > 4 || ke === 0 ? gm.ceil(de) : gm(de), de = Nd.offset(de, (X.V - 1) * 7), X.y = de.getFullYear(), X.m = de.getMonth(), X.d = de.getDate() + (X.w + 6) % 7); } else ("W" in X || "U" in X) && ("w" in X || (X.w = "u" in X ? X.u % 7 : "W" in X ? 1 : 0), ke = "Z" in X ? Gb(ku(X.y, 0, 1)).getUTCDay() : Kb(ku(X.y, 0, 1)).getDay(), X.m = 0, X.d = "W" in X ? (X.w + 6) % 7 + X.W * 7 - (ke + 5) % 7 : X.w + X.U * 7 - (ke + 6) % 7); return "Z" in X ? (X.H += X.Z / 100 | 0, X.M += X.Z % 100, Gb(X)) : Kb(X); }; } function C(ee, se, ge, X) { for (var $e = 0, de = se.length, ke = ge.length, it, lt; $e < de; ) { if (X >= ke) return -1; if (it = se.charCodeAt($e++), it === 37) { if (it = se.charAt($e++), lt = _[it in EM ? se.charAt($e++) : it], !lt || (X = lt(ee, ge, X)) < 0) return -1; } else if (it != ge.charCodeAt(X++)) return -1; } return X; } function k(ee, se, ge) { var X = c.exec(se.slice(ge)); return X ? (ee.p = f.get(X[0].toLowerCase()), ge + X[0].length) : -1; } function I(ee, se, ge) { var X = m.exec(se.slice(ge)); return X ? (ee.w = y.get(X[0].toLowerCase()), ge + X[0].length) : -1; } function $(ee, se, ge) { var X = d.exec(se.slice(ge)); return X ? (ee.w = p.get(X[0].toLowerCase()), ge + X[0].length) : -1; } function N(ee, se, ge) { var X = x.exec(se.slice(ge)); return X ? (ee.m = w.get(X[0].toLowerCase()), ge + X[0].length) : -1; } function D(ee, se, ge) { var X = g.exec(se.slice(ge)); return X ? (ee.m = v.get(X[0].toLowerCase()), ge + X[0].length) : -1; } function j(ee, se, ge) { return C(ee, t, se, ge); } function F(ee, se, ge) { return C(ee, n, se, ge); } function W(ee, se, ge) { return C(ee, r, se, ge); } function z(ee) { return a[ee.getDay()]; } function H(ee) { return o[ee.getDay()]; } function U(ee) { return l[ee.getMonth()]; } function V(ee) { return s[ee.getMonth()]; } function Y(ee) { return i[+(ee.getHours() >= 12)]; } function Q(ee) { return 1 + ~~(ee.getMonth() / 3); } function ne(ee) { return a[ee.getUTCDay()]; } function re(ee) { return o[ee.getUTCDay()]; } function ce(ee) { return l[ee.getUTCMonth()]; } function oe(ee) { return s[ee.getUTCMonth()]; } function fe(ee) { return i[+(ee.getUTCHours() >= 12)]; } function ae(ee) { return 1 + ~~(ee.getUTCMonth() / 3); } return { format: function(ee) { var se = O(ee += "", S); return se.toString = function() { return ee; }, se; }, parse: function(ee) { var se = P(ee += "", !1); return se.toString = function() { return ee; }, se; }, utcFormat: function(ee) { var se = O(ee += "", A); return se.toString = function() { return ee; }, se; }, utcParse: function(ee) { var se = P(ee += "", !0); return se.toString = function() { return ee; }, se; } }; } var EM = { "-": "", _: " ", 0: "0" }, Rn = /^\s*\d+/, lbe = /^%/, cbe = /[\\^$*+?|[\]().{}]/g; function pt(e, t, n) { var r = e < 0 ? "-" : "", i = (r ? -e : e) + "", o = i.length; return r + (o < n ? new Array(n - o + 1).join(t) + i : i); } function ube(e) { return e.replace(cbe, "\\$&"); } function Mu(e) { return new RegExp("^(?:" + e.map(ube).join("|") + ")", "i"); } function Nu(e) { return new Map(e.map((t, n) => [t.toLowerCase(), n])); } function fbe(e, t, n) { var r = Rn.exec(t.slice(n, n + 1)); return r ? (e.w = +r[0], n + r[0].length) : -1; } function dbe(e, t, n) { var r = Rn.exec(t.slice(n, n + 1)); return r ? (e.u = +r[0], n + r[0].length) : -1; } function hbe(e, t, n) { var r = Rn.exec(t.slice(n, n + 2)); return r ? (e.U = +r[0], n + r[0].length) : -1; } function pbe(e, t, n) { var r = Rn.exec(t.slice(n, n + 2)); return r ? (e.V = +r[0], n + r[0].length) : -1; } function mbe(e, t, n) { var r = Rn.exec(t.slice(n, n + 2)); return r ? (e.W = +r[0], n + r[0].length) : -1; } function kM(e, t, n) { var r = Rn.exec(t.slice(n, n + 4)); return r ? (e.y = +r[0], n + r[0].length) : -1; } function MM(e, t, n) { var r = Rn.exec(t.slice(n, n + 2)); return r ? (e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3), n + r[0].length) : -1; } function gbe(e, t, n) { var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n, n + 6)); return r ? (e.Z = r[1] ? 0 : -(r[2] + (r[3] || "00")), n + r[0].length) : -1; } function ybe(e, t, n) { var r = Rn.exec(t.slice(n, n + 1)); return r ? (e.q = r[0] * 3 - 3, n + r[0].length) : -1; } function vbe(e, t, n) { var r = Rn.exec(t.slice(n, n + 2)); return r ? (e.m = r[0] - 1, n + r[0].length) : -1; } function NM(e, t, n) { var r = Rn.exec(t.slice(n, n + 2)); return r ? (e.d = +r[0], n + r[0].length) : -1; } function bbe(e, t, n) { var r = Rn.exec(t.slice(n, n + 3)); return r ? (e.m = 0, e.d = +r[0], n + r[0].length) : -1; } function $M(e, t, n) { var r = Rn.exec(t.slice(n, n + 2)); return r ? (e.H = +r[0], n + r[0].length) : -1; } function xbe(e, t, n) { var r = Rn.exec(t.slice(n, n + 2)); return r ? (e.M = +r[0], n + r[0].length) : -1; } function wbe(e, t, n) { var r = Rn.exec(t.slice(n, n + 2)); return r ? (e.S = +r[0], n + r[0].length) : -1; } function _be(e, t, n) { var r = Rn.exec(t.slice(n, n + 3)); return r ? (e.L = +r[0], n + r[0].length) : -1; } function Sbe(e, t, n) { var r = Rn.exec(t.slice(n, n + 6)); return r ? (e.L = Math.floor(r[0] / 1e3), n + r[0].length) : -1; } function Obe(e, t, n) { var r = lbe.exec(t.slice(n, n + 1)); return r ? n + r[0].length : -1; } function Abe(e, t, n) { var r = Rn.exec(t.slice(n)); return r ? (e.Q = +r[0], n + r[0].length) : -1; } function Tbe(e, t, n) { var r = Rn.exec(t.slice(n)); return r ? (e.s = +r[0], n + r[0].length) : -1; } function DM(e, t) { return pt(e.getDate(), t, 2); } function Pbe(e, t) { return pt(e.getHours(), t, 2); } function Cbe(e, t) { return pt(e.getHours() % 12 || 12, t, 2); } function Ebe(e, t) { return pt(1 + Nd.count(Ko(e), e), t, 3); } function uF(e, t) { return pt(e.getMilliseconds(), t, 3); } function kbe(e, t) { return uF(e, t) + "000"; } function Mbe(e, t) { return pt(e.getMonth() + 1, t, 2); } function Nbe(e, t) { return pt(e.getMinutes(), t, 2); } function $be(e, t) { return pt(e.getSeconds(), t, 2); } function Dbe(e) { var t = e.getDay(); return t === 0 ? 7 : t; } function Ibe(e, t) { return pt(sy.count(Ko(e) - 1, e), t, 2); } function fF(e) { var t = e.getDay(); return t >= 4 || t === 0 ? fc(e) : fc.ceil(e); } function Rbe(e, t) { return e = fF(e), pt(fc.count(Ko(e), e) + (Ko(e).getDay() === 4), t, 2); } function jbe(e) { return e.getDay(); } function Lbe(e, t) { return pt(gm.count(Ko(e) - 1, e), t, 2); } function Bbe(e, t) { return pt(e.getFullYear() % 100, t, 2); } function Fbe(e, t) { return e = fF(e), pt(e.getFullYear() % 100, t, 2); } function Wbe(e, t) { return pt(e.getFullYear() % 1e4, t, 4); } function zbe(e, t) { var n = e.getDay(); return e = n >= 4 || n === 0 ? fc(e) : fc.ceil(e), pt(e.getFullYear() % 1e4, t, 4); } function Vbe(e) { var t = e.getTimezoneOffset(); return (t > 0 ? "-" : (t *= -1, "+")) + pt(t / 60 | 0, "0", 2) + pt(t % 60, "0", 2); } function IM(e, t) { return pt(e.getUTCDate(), t, 2); } function Ube(e, t) { return pt(e.getUTCHours(), t, 2); } function Hbe(e, t) { return pt(e.getUTCHours() % 12 || 12, t, 2); } function Kbe(e, t) { return pt(1 + ay.count(Go(e), e), t, 3); } function dF(e, t) { return pt(e.getUTCMilliseconds(), t, 3); } function Gbe(e, t) { return dF(e, t) + "000"; } function Ybe(e, t) { return pt(e.getUTCMonth() + 1, t, 2); } function qbe(e, t) { return pt(e.getUTCMinutes(), t, 2); } function Xbe(e, t) { return pt(e.getUTCSeconds(), t, 2); } function Zbe(e) { var t = e.getUTCDay(); return t === 0 ? 7 : t; } function Jbe(e, t) { return pt(ly.count(Go(e) - 1, e), t, 2); } function hF(e) { var t = e.getUTCDay(); return t >= 4 || t === 0 ? dc(e) : dc.ceil(e); } function Qbe(e, t) { return e = hF(e), pt(dc.count(Go(e), e) + (Go(e).getUTCDay() === 4), t, 2); } function e0e(e) { return e.getUTCDay(); } function t0e(e, t) { return pt(ym.count(Go(e) - 1, e), t, 2); } function n0e(e, t) { return pt(e.getUTCFullYear() % 100, t, 2); } function r0e(e, t) { return e = hF(e), pt(e.getUTCFullYear() % 100, t, 2); } function i0e(e, t) { return pt(e.getUTCFullYear() % 1e4, t, 4); } function o0e(e, t) { var n = e.getUTCDay(); return e = n >= 4 || n === 0 ? dc(e) : dc.ceil(e), pt(e.getUTCFullYear() % 1e4, t, 4); } function a0e() { return "+0000"; } function RM() { return "%"; } function jM(e) { return +e; } function LM(e) { return Math.floor(+e / 1e3); } var Ol, pF, mF; s0e({ dateTime: "%x, %X", date: "%-m/%-d/%Y", time: "%-I:%M:%S %p", periods: ["AM", "PM"], days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], shortDays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], shortMonths: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"] }); function s0e(e) { return Ol = sbe(e), pF = Ol.format, Ol.parse, mF = Ol.utcFormat, Ol.utcParse, Ol; } function l0e(e) { return new Date(e); } function c0e(e) { return e instanceof Date ? +e : +/* @__PURE__ */ new Date(+e); } function _S(e, t, n, r, i, o, a, s, l, c) { var f = lS(), d = f.invert, p = f.domain, m = c(".%L"), y = c(":%S"), g = c("%I:%M"), v = c("%I %p"), x = c("%a %d"), w = c("%b %d"), S = c("%B"), A = c("%Y"); function _(O) { return (l(O) < O ? m : s(O) < O ? y : a(O) < O ? g : o(O) < O ? v : r(O) < O ? i(O) < O ? x : w : n(O) < O ? S : A)(O); } return f.invert = function(O) { return new Date(d(O)); }, f.domain = function(O) { return arguments.length ? p(Array.from(O, c0e)) : p().map(l0e); }, f.ticks = function(O) { var P = p(); return e(P[0], P[P.length - 1], O ?? 10); }, f.tickFormat = function(O, P) { return P == null ? _ : c(P); }, f.nice = function(O) { var P = p(); return (!O || typeof O.range != "function") && (O = t(P[0], P[P.length - 1], O ?? 10)), O ? p(tF(P, O)) : f; }, f.copy = function() { return Md(f, _S(e, t, n, r, i, o, a, s, l, c)); }, f; } function u0e() { return gi.apply(_S(obe, abe, Ko, xS, sy, Nd, vS, gS, As, pF).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments); } function f0e() { return gi.apply(_S(rbe, ibe, Go, wS, ly, ay, bS, yS, As, mF).domain([Date.UTC(2e3, 0, 1), Date.UTC(2e3, 0, 2)]), arguments); } function cy() { var e = 0, t = 1, n, r, i, o, a = hr, s = !1, l; function c(d) { return d == null || isNaN(d = +d) ? l : a(i === 0 ? 0.5 : (d = (o(d) - n) * i, s ? Math.max(0, Math.min(1, d)) : d)); } c.domain = function(d) { return arguments.length ? ([e, t] = d, n = o(e = +e), r = o(t = +t), i = n === r ? 0 : 1 / (r - n), c) : [e, t]; }, c.clamp = function(d) { return arguments.length ? (s = !!d, c) : s; }, c.interpolator = function(d) { return arguments.length ? (a = d, c) : a; }; function f(d) { return function(p) { var m, y; return arguments.length ? ([m, y] = p, a = d(m, y), c) : [a(0), a(1)]; }; } return c.range = f(Zc), c.rangeRound = f(sS), c.unknown = function(d) { return arguments.length ? (l = d, c) : l; }, function(d) { return o = d, n = d(e), r = d(t), i = n === r ? 0 : 1 / (r - n), c; }; } function Ya(e, t) { return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown()); } function gF() { var e = Ga(cy()(hr)); return e.copy = function() { return Ya(e, gF()); }, na.apply(e, arguments); } function yF() { var e = fS(cy()).domain([1, 10]); return e.copy = function() { return Ya(e, yF()).base(e.base()); }, na.apply(e, arguments); } function vF() { var e = dS(cy()); return e.copy = function() { return Ya(e, vF()).constant(e.constant()); }, na.apply(e, arguments); } function SS() { var e = hS(cy()); return e.copy = function() { return Ya(e, SS()).exponent(e.exponent()); }, na.apply(e, arguments); } function d0e() { return SS.apply(null, arguments).exponent(0.5); } function bF() { var e = [], t = hr; function n(r) { if (r != null && !isNaN(r = +r)) return t((Ed(e, r, 1) - 1) / (e.length - 1)); } return n.domain = function(r) { if (!arguments.length) return e.slice(); e = []; for (let i of r) i != null && !isNaN(i = +i) && e.push(i); return e.sort(Na), n; }, n.interpolator = function(r) { return arguments.length ? (t = r, n) : t; }, n.range = function() { return e.map((r, i) => t(i / (e.length - 1))); }, n.quantiles = function(r) { return Array.from({ length: r + 1 }, (i, o) => Jye(e, o / r)); }, n.copy = function() { return bF(t).domain(e); }, na.apply(n, arguments); } function uy() { var e = 0, t = 0.5, n = 1, r = 1, i, o, a, s, l, c = hr, f, d = !1, p; function m(g) { return isNaN(g = +g) ? p : (g = 0.5 + ((g = +f(g)) - o) * (r * g < r * o ? s : l), c(d ? Math.max(0, Math.min(1, g)) : g)); } m.domain = function(g) { return arguments.length ? ([e, t, n] = g, i = f(e = +e), o = f(t = +t), a = f(n = +n), s = i === o ? 0 : 0.5 / (o - i), l = o === a ? 0 : 0.5 / (a - o), r = o < i ? -1 : 1, m) : [e, t, n]; }, m.clamp = function(g) { return arguments.length ? (d = !!g, m) : d; }, m.interpolator = function(g) { return arguments.length ? (c = g, m) : c; }; function y(g) { return function(v) { var x, w, S; return arguments.length ? ([x, w, S] = v, c = Ove(g, [x, w, S]), m) : [c(0), c(0.5), c(1)]; }; } return m.range = y(Zc), m.rangeRound = y(sS), m.unknown = function(g) { return arguments.length ? (p = g, m) : p; }, function(g) { return f = g, i = g(e), o = g(t), a = g(n), s = i === o ? 0 : 0.5 / (o - i), l = o === a ? 0 : 0.5 / (a - o), r = o < i ? -1 : 1, m; }; } function xF() { var e = Ga(uy()(hr)); return e.copy = function() { return Ya(e, xF()); }, na.apply(e, arguments); } function wF() { var e = fS(uy()).domain([0.1, 1, 10]); return e.copy = function() { return Ya(e, wF()).base(e.base()); }, na.apply(e, arguments); } function _F() { var e = dS(uy()); return e.copy = function() { return Ya(e, _F()).constant(e.constant()); }, na.apply(e, arguments); } function OS() { var e = hS(uy()); return e.copy = function() { return Ya(e, OS()).exponent(e.exponent()); }, na.apply(e, arguments); } function h0e() { return OS.apply(null, arguments).exponent(0.5); } const BM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, scaleBand: Df, scaleDiverging: xF, scaleDivergingLog: wF, scaleDivergingPow: OS, scaleDivergingSqrt: h0e, scaleDivergingSymlog: _F, scaleIdentity: eF, scaleImplicit: Kx, scaleLinear: pm, scaleLog: nF, scaleOrdinal: iS, scalePoint: nf, scalePow: pS, scaleQuantile: oF, scaleQuantize: aF, scaleRadial: iF, scaleSequential: gF, scaleSequentialLog: yF, scaleSequentialPow: SS, scaleSequentialQuantile: bF, scaleSequentialSqrt: d0e, scaleSequentialSymlog: vF, scaleSqrt: Gve, scaleSymlog: rF, scaleThreshold: sF, scaleTime: u0e, scaleUtc: f0e, tickFormat: QB }, Symbol.toStringTag, { value: "Module" })); var p0e = zc; function m0e(e, t, n) { for (var r = -1, i = e.length; ++r < i; ) { var o = e[r], a = t(o); if (a != null && (s === void 0 ? a === a && !p0e(a) : n(a, s))) var s = a, l = o; } return l; } var fy = m0e; function g0e(e, t) { return e > t; } var SF = g0e, y0e = fy, v0e = SF, b0e = Xc; function x0e(e) { return e && e.length ? y0e(e, b0e, v0e) : void 0; } var w0e = x0e; const Ta = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(w0e); function _0e(e, t) { return e < t; } var OF = _0e, S0e = fy, O0e = OF, A0e = Xc; function T0e(e) { return e && e.length ? S0e(e, A0e, O0e) : void 0; } var P0e = T0e; const dy = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(P0e); var C0e = L_, E0e = so, k0e = NB, M0e = Tr; function N0e(e, t) { var n = M0e(e) ? C0e : k0e; return n(e, E0e(t)); } var $0e = N0e, D0e = kB, I0e = $0e; function R0e(e, t) { return D0e(I0e(e, t), 1); } var j0e = R0e; const L0e = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(j0e); var B0e = Z_; function F0e(e, t) { return B0e(e, t); } var W0e = F0e; const Us = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(W0e); var Jc = 1e9, z0e = { // These values must be integers within the stated ranges (inclusive). // Most of these values can be changed during run-time using `Decimal.config`. // The maximum number of significant digits of the result of a calculation or base conversion. // E.g. `Decimal.config({ precision: 20 });` precision: 20, // 1 to MAX_DIGITS // The rounding mode used by default by `toInteger`, `toDecimalPlaces`, `toExponential`, // `toFixed`, `toPrecision` and `toSignificantDigits`. // // ROUND_UP 0 Away from zero. // ROUND_DOWN 1 Towards zero. // ROUND_CEIL 2 Towards +Infinity. // ROUND_FLOOR 3 Towards -Infinity. // ROUND_HALF_UP 4 Towards nearest neighbour. If equidistant, up. // ROUND_HALF_DOWN 5 Towards nearest neighbour. If equidistant, down. // ROUND_HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour. // ROUND_HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity. // ROUND_HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity. // // E.g. // `Decimal.rounding = 4;` // `Decimal.rounding = Decimal.ROUND_HALF_UP;` rounding: 4, // 0 to 8 // The exponent value at and beneath which `toString` returns exponential notation. // JavaScript numbers: -7 toExpNeg: -7, // 0 to -MAX_E // The exponent value at and above which `toString` returns exponential notation. // JavaScript numbers: 21 toExpPos: 21, // 0 to MAX_E // The natural logarithm of 10. // 115 digits LN10: "2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286" }, TS, Xt = !0, pi = "[DecimalError] ", $s = pi + "Invalid argument: ", AS = pi + "Exponent out of range: ", Qc = Math.floor, bs = Math.pow, V0e = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, Wr, Mn = 1e7, Vt = 7, AF = 9007199254740991, vm = Qc(AF / Vt), Pe = {}; Pe.absoluteValue = Pe.abs = function() { var e = new this.constructor(this); return e.s && (e.s = 1), e; }; Pe.comparedTo = Pe.cmp = function(e) { var t, n, r, i, o = this; if (e = new o.constructor(e), o.s !== e.s) return o.s || -e.s; if (o.e !== e.e) return o.e > e.e ^ o.s < 0 ? 1 : -1; for (r = o.d.length, i = e.d.length, t = 0, n = r < i ? r : i; t < n; ++t) if (o.d[t] !== e.d[t]) return o.d[t] > e.d[t] ^ o.s < 0 ? 1 : -1; return r === i ? 0 : r > i ^ o.s < 0 ? 1 : -1; }; Pe.decimalPlaces = Pe.dp = function() { var e = this, t = e.d.length - 1, n = (t - e.e) * Vt; if (t = e.d[t], t) for (; t % 10 == 0; t /= 10) n--; return n < 0 ? 0 : n; }; Pe.dividedBy = Pe.div = function(e) { return Bo(this, new this.constructor(e)); }; Pe.dividedToIntegerBy = Pe.idiv = function(e) { var t = this, n = t.constructor; return $t(Bo(t, new n(e), 0, 1), n.precision); }; Pe.equals = Pe.eq = function(e) { return !this.cmp(e); }; Pe.exponent = function() { return gn(this); }; Pe.greaterThan = Pe.gt = function(e) { return this.cmp(e) > 0; }; Pe.greaterThanOrEqualTo = Pe.gte = function(e) { return this.cmp(e) >= 0; }; Pe.isInteger = Pe.isint = function() { return this.e > this.d.length - 2; }; Pe.isNegative = Pe.isneg = function() { return this.s < 0; }; Pe.isPositive = Pe.ispos = function() { return this.s > 0; }; Pe.isZero = function() { return this.s === 0; }; Pe.lessThan = Pe.lt = function(e) { return this.cmp(e) < 0; }; Pe.lessThanOrEqualTo = Pe.lte = function(e) { return this.cmp(e) < 1; }; Pe.logarithm = Pe.log = function(e) { var t, n = this, r = n.constructor, i = r.precision, o = i + 5; if (e === void 0) e = new r(10); else if (e = new r(e), e.s < 1 || e.eq(Wr)) throw Error(pi + "NaN"); if (n.s < 1) throw Error(pi + (n.s ? "NaN" : "-Infinity")); return n.eq(Wr) ? new r(0) : (Xt = !1, t = Bo(Bf(n, o), Bf(e, o), o), Xt = !0, $t(t, i)); }; Pe.minus = Pe.sub = function(e) { var t = this; return e = new t.constructor(e), t.s == e.s ? CF(t, e) : TF(t, (e.s = -e.s, e)); }; Pe.modulo = Pe.mod = function(e) { var t, n = this, r = n.constructor, i = r.precision; if (e = new r(e), !e.s) throw Error(pi + "NaN"); return n.s ? (Xt = !1, t = Bo(n, e, 0, 1).times(e), Xt = !0, n.minus(t)) : $t(new r(n), i); }; Pe.naturalExponential = Pe.exp = function() { return PF(this); }; Pe.naturalLogarithm = Pe.ln = function() { return Bf(this); }; Pe.negated = Pe.neg = function() { var e = new this.constructor(this); return e.s = -e.s || 0, e; }; Pe.plus = Pe.add = function(e) { var t = this; return e = new t.constructor(e), t.s == e.s ? TF(t, e) : CF(t, (e.s = -e.s, e)); }; Pe.precision = Pe.sd = function(e) { var t, n, r, i = this; if (e !== void 0 && e !== !!e && e !== 1 && e !== 0) throw Error($s + e); if (t = gn(i) + 1, r = i.d.length - 1, n = r * Vt + 1, r = i.d[r], r) { for (; r % 10 == 0; r /= 10) n--; for (r = i.d[0]; r >= 10; r /= 10) n++; } return e && t > n ? t : n; }; Pe.squareRoot = Pe.sqrt = function() { var e, t, n, r, i, o, a, s = this, l = s.constructor; if (s.s < 1) { if (!s.s) return new l(0); throw Error(pi + "NaN"); } for (e = gn(s), Xt = !1, i = Math.sqrt(+s), i == 0 || i == 1 / 0 ? (t = Ui(s.d), (t.length + e) % 2 == 0 && (t += "0"), i = Math.sqrt(t), e = Qc((e + 1) / 2) - (e < 0 || e % 2), i == 1 / 0 ? t = "5e" + e : (t = i.toExponential(), t = t.slice(0, t.indexOf("e") + 1) + e), r = new l(t)) : r = new l(i.toString()), n = l.precision, i = a = n + 3; ; ) if (o = r, r = o.plus(Bo(s, o, a + 2)).times(0.5), Ui(o.d).slice(0, a) === (t = Ui(r.d)).slice(0, a)) { if (t = t.slice(a - 3, a + 1), i == a && t == "4999") { if ($t(o, n + 1, 0), o.times(o).eq(s)) { r = o; break; } } else if (t != "9999") break; a += 4; } return Xt = !0, $t(r, n); }; Pe.times = Pe.mul = function(e) { var t, n, r, i, o, a, s, l, c, f = this, d = f.constructor, p = f.d, m = (e = new d(e)).d; if (!f.s || !e.s) return new d(0); for (e.s *= f.s, n = f.e + e.e, l = p.length, c = m.length, l < c && (o = p, p = m, m = o, a = l, l = c, c = a), o = [], a = l + c, r = a; r--; ) o.push(0); for (r = c; --r >= 0; ) { for (t = 0, i = l + r; i > r; ) s = o[i] + m[r] * p[i - r - 1] + t, o[i--] = s % Mn | 0, t = s / Mn | 0; o[i] = (o[i] + t) % Mn | 0; } for (; !o[--a]; ) o.pop(); return t ? ++n : o.shift(), e.d = o, e.e = n, Xt ? $t(e, d.precision) : e; }; Pe.toDecimalPlaces = Pe.todp = function(e, t) { var n = this, r = n.constructor; return n = new r(n), e === void 0 ? n : (ro(e, 0, Jc), t === void 0 ? t = r.rounding : ro(t, 0, 8), $t(n, e + gn(n) + 1, t)); }; Pe.toExponential = function(e, t) { var n, r = this, i = r.constructor; return e === void 0 ? n = Hs(r, !0) : (ro(e, 0, Jc), t === void 0 ? t = i.rounding : ro(t, 0, 8), r = $t(new i(r), e + 1, t), n = Hs(r, !0, e + 1)), n; }; Pe.toFixed = function(e, t) { var n, r, i = this, o = i.constructor; return e === void 0 ? Hs(i) : (ro(e, 0, Jc), t === void 0 ? t = o.rounding : ro(t, 0, 8), r = $t(new o(i), e + gn(i) + 1, t), n = Hs(r.abs(), !1, e + gn(r) + 1), i.isneg() && !i.isZero() ? "-" + n : n); }; Pe.toInteger = Pe.toint = function() { var e = this, t = e.constructor; return $t(new t(e), gn(e) + 1, t.rounding); }; Pe.toNumber = function() { return +this; }; Pe.toPower = Pe.pow = function(e) { var t, n, r, i, o, a, s = this, l = s.constructor, c = 12, f = +(e = new l(e)); if (!e.s) return new l(Wr); if (s = new l(s), !s.s) { if (e.s < 1) throw Error(pi + "Infinity"); return s; } if (s.eq(Wr)) return s; if (r = l.precision, e.eq(Wr)) return $t(s, r); if (t = e.e, n = e.d.length - 1, a = t >= n, o = s.s, a) { if ((n = f < 0 ? -f : f) <= AF) { for (i = new l(Wr), t = Math.ceil(r / Vt + 4), Xt = !1; n % 2 && (i = i.times(s), WM(i.d, t)), n = Qc(n / 2), n !== 0; ) s = s.times(s), WM(s.d, t); return Xt = !0, e.s < 0 ? new l(Wr).div(i) : $t(i, r); } } else if (o < 0) throw Error(pi + "NaN"); return o = o < 0 && e.d[Math.max(t, n)] & 1 ? -1 : 1, s.s = 1, Xt = !1, i = e.times(Bf(s, r + c)), Xt = !0, i = PF(i), i.s = o, i; }; Pe.toPrecision = function(e, t) { var n, r, i = this, o = i.constructor; return e === void 0 ? (n = gn(i), r = Hs(i, n <= o.toExpNeg || n >= o.toExpPos)) : (ro(e, 1, Jc), t === void 0 ? t = o.rounding : ro(t, 0, 8), i = $t(new o(i), e, t), n = gn(i), r = Hs(i, e <= n || n <= o.toExpNeg, e)), r; }; Pe.toSignificantDigits = Pe.tosd = function(e, t) { var n = this, r = n.constructor; return e === void 0 ? (e = r.precision, t = r.rounding) : (ro(e, 1, Jc), t === void 0 ? t = r.rounding : ro(t, 0, 8)), $t(new r(n), e, t); }; Pe.toString = Pe.valueOf = Pe.val = Pe.toJSON = Pe[Symbol.for("nodejs.util.inspect.custom")] = function() { var e = this, t = gn(e), n = e.constructor; return Hs(e, t <= n.toExpNeg || t >= n.toExpPos); }; function TF(e, t) { var n, r, i, o, a, s, l, c, f = e.constructor, d = f.precision; if (!e.s || !t.s) return t.s || (t = new f(e)), Xt ? $t(t, d) : t; if (l = e.d, c = t.d, a = e.e, i = t.e, l = l.slice(), o = a - i, o) { for (o < 0 ? (r = l, o = -o, s = c.length) : (r = c, i = a, s = l.length), a = Math.ceil(d / Vt), s = a > s ? a + 1 : s + 1, o > s && (o = s, r.length = 1), r.reverse(); o--; ) r.push(0); r.reverse(); } for (s = l.length, o = c.length, s - o < 0 && (o = s, r = c, c = l, l = r), n = 0; o; ) n = (l[--o] = l[o] + c[o] + n) / Mn | 0, l[o] %= Mn; for (n && (l.unshift(n), ++i), s = l.length; l[--s] == 0; ) l.pop(); return t.d = l, t.e = i, Xt ? $t(t, d) : t; } function ro(e, t, n) { if (e !== ~~e || e < t || e > n) throw Error($s + e); } function Ui(e) { var t, n, r, i = e.length - 1, o = "", a = e[0]; if (i > 0) { for (o += a, t = 1; t < i; t++) r = e[t] + "", n = Vt - r.length, n && (o += _a(n)), o += r; a = e[t], r = a + "", n = Vt - r.length, n && (o += _a(n)); } else if (a === 0) return "0"; for (; a % 10 === 0; ) a /= 10; return o + a; } var Bo = /* @__PURE__ */ function() { function e(r, i) { var o, a = 0, s = r.length; for (r = r.slice(); s--; ) o = r[s] * i + a, r[s] = o % Mn | 0, a = o / Mn | 0; return a && r.unshift(a), r; } function t(r, i, o, a) { var s, l; if (o != a) l = o > a ? 1 : -1; else for (s = l = 0; s < o; s++) if (r[s] != i[s]) { l = r[s] > i[s] ? 1 : -1; break; } return l; } function n(r, i, o) { for (var a = 0; o--; ) r[o] -= a, a = r[o] < i[o] ? 1 : 0, r[o] = a * Mn + r[o] - i[o]; for (; !r[0] && r.length > 1; ) r.shift(); } return function(r, i, o, a) { var s, l, c, f, d, p, m, y, g, v, x, w, S, A, _, O, P, C, k = r.constructor, I = r.s == i.s ? 1 : -1, $ = r.d, N = i.d; if (!r.s) return new k(r); if (!i.s) throw Error(pi + "Division by zero"); for (l = r.e - i.e, P = N.length, _ = $.length, m = new k(I), y = m.d = [], c = 0; N[c] == ($[c] || 0); ) ++c; if (N[c] > ($[c] || 0) && --l, o == null ? w = o = k.precision : a ? w = o + (gn(r) - gn(i)) + 1 : w = o, w < 0) return new k(0); if (w = w / Vt + 2 | 0, c = 0, P == 1) for (f = 0, N = N[0], w++; (c < _ || f) && w--; c++) S = f * Mn + ($[c] || 0), y[c] = S / N | 0, f = S % N | 0; else { for (f = Mn / (N[0] + 1) | 0, f > 1 && (N = e(N, f), $ = e($, f), P = N.length, _ = $.length), A = P, g = $.slice(0, P), v = g.length; v < P; ) g[v++] = 0; C = N.slice(), C.unshift(0), O = N[0], N[1] >= Mn / 2 && ++O; do f = 0, s = t(N, g, P, v), s < 0 ? (x = g[0], P != v && (x = x * Mn + (g[1] || 0)), f = x / O | 0, f > 1 ? (f >= Mn && (f = Mn - 1), d = e(N, f), p = d.length, v = g.length, s = t(d, g, p, v), s == 1 && (f--, n(d, P < p ? C : N, p))) : (f == 0 && (s = f = 1), d = N.slice()), p = d.length, p < v && d.unshift(0), n(g, d, v), s == -1 && (v = g.length, s = t(N, g, P, v), s < 1 && (f++, n(g, P < v ? C : N, v))), v = g.length) : s === 0 && (f++, g = [0]), y[c++] = f, s && g[0] ? g[v++] = $[A] || 0 : (g = [$[A]], v = 1); while ((A++ < _ || g[0] !== void 0) && w--); } return y[0] || y.shift(), m.e = l, $t(m, a ? o + gn(m) + 1 : o); }; }(); function PF(e, t) { var n, r, i, o, a, s, l = 0, c = 0, f = e.constructor, d = f.precision; if (gn(e) > 16) throw Error(AS + gn(e)); if (!e.s) return new f(Wr); for (t == null ? (Xt = !1, s = d) : s = t, a = new f(0.03125); e.abs().gte(0.1); ) e = e.times(a), c += 5; for (r = Math.log(bs(2, c)) / Math.LN10 * 2 + 5 | 0, s += r, n = i = o = new f(Wr), f.precision = s; ; ) { if (i = $t(i.times(e), s), n = n.times(++l), a = o.plus(Bo(i, n, s)), Ui(a.d).slice(0, s) === Ui(o.d).slice(0, s)) { for (; c--; ) o = $t(o.times(o), s); return f.precision = d, t == null ? (Xt = !0, $t(o, d)) : o; } o = a; } } function gn(e) { for (var t = e.e * Vt, n = e.d[0]; n >= 10; n /= 10) t++; return t; } function Yb(e, t, n) { if (t > e.LN10.sd()) throw Xt = !0, n && (e.precision = n), Error(pi + "LN10 precision limit exceeded"); return $t(new e(e.LN10), t); } function _a(e) { for (var t = ""; e--; ) t += "0"; return t; } function Bf(e, t) { var n, r, i, o, a, s, l, c, f, d = 1, p = 10, m = e, y = m.d, g = m.constructor, v = g.precision; if (m.s < 1) throw Error(pi + (m.s ? "NaN" : "-Infinity")); if (m.eq(Wr)) return new g(0); if (t == null ? (Xt = !1, c = v) : c = t, m.eq(10)) return t == null && (Xt = !0), Yb(g, c); if (c += p, g.precision = c, n = Ui(y), r = n.charAt(0), o = gn(m), Math.abs(o) < 15e14) { for (; r < 7 && r != 1 || r == 1 && n.charAt(1) > 3; ) m = m.times(e), n = Ui(m.d), r = n.charAt(0), d++; o = gn(m), r > 1 ? (m = new g("0." + n), o++) : m = new g(r + "." + n.slice(1)); } else return l = Yb(g, c + 2, v).times(o + ""), m = Bf(new g(r + "." + n.slice(1)), c - p).plus(l), g.precision = v, t == null ? (Xt = !0, $t(m, v)) : m; for (s = a = m = Bo(m.minus(Wr), m.plus(Wr), c), f = $t(m.times(m), c), i = 3; ; ) { if (a = $t(a.times(f), c), l = s.plus(Bo(a, new g(i), c)), Ui(l.d).slice(0, c) === Ui(s.d).slice(0, c)) return s = s.times(2), o !== 0 && (s = s.plus(Yb(g, c + 2, v).times(o + ""))), s = Bo(s, new g(d), c), g.precision = v, t == null ? (Xt = !0, $t(s, v)) : s; s = l, i += 2; } } function FM(e, t) { var n, r, i; for ((n = t.indexOf(".")) > -1 && (t = t.replace(".", "")), (r = t.search(/e/i)) > 0 ? (n < 0 && (n = r), n += +t.slice(r + 1), t = t.substring(0, r)) : n < 0 && (n = t.length), r = 0; t.charCodeAt(r) === 48; ) ++r; for (i = t.length; t.charCodeAt(i - 1) === 48; ) --i; if (t = t.slice(r, i), t) { if (i -= r, n = n - r - 1, e.e = Qc(n / Vt), e.d = [], r = (n + 1) % Vt, n < 0 && (r += Vt), r < i) { for (r && e.d.push(+t.slice(0, r)), i -= Vt; r < i; ) e.d.push(+t.slice(r, r += Vt)); t = t.slice(r), r = Vt - t.length; } else r -= i; for (; r--; ) t += "0"; if (e.d.push(+t), Xt && (e.e > vm || e.e < -vm)) throw Error(AS + n); } else e.s = 0, e.e = 0, e.d = [0]; return e; } function $t(e, t, n) { var r, i, o, a, s, l, c, f, d = e.d; for (a = 1, o = d[0]; o >= 10; o /= 10) a++; if (r = t - a, r < 0) r += Vt, i = t, c = d[f = 0]; else { if (f = Math.ceil((r + 1) / Vt), o = d.length, f >= o) return e; for (c = o = d[f], a = 1; o >= 10; o /= 10) a++; r %= Vt, i = r - Vt + a; } if (n !== void 0 && (o = bs(10, a - i - 1), s = c / o % 10 | 0, l = t < 0 || d[f + 1] !== void 0 || c % o, l = n < 4 ? (s || l) && (n == 0 || n == (e.s < 0 ? 3 : 2)) : s > 5 || s == 5 && (n == 4 || l || n == 6 && // Check whether the digit to the left of the rounding digit is odd. (r > 0 ? i > 0 ? c / bs(10, a - i) : 0 : d[f - 1]) % 10 & 1 || n == (e.s < 0 ? 8 : 7))), t < 1 || !d[0]) return l ? (o = gn(e), d.length = 1, t = t - o - 1, d[0] = bs(10, (Vt - t % Vt) % Vt), e.e = Qc(-t / Vt) || 0) : (d.length = 1, d[0] = e.e = e.s = 0), e; if (r == 0 ? (d.length = f, o = 1, f--) : (d.length = f + 1, o = bs(10, Vt - r), d[f] = i > 0 ? (c / bs(10, a - i) % bs(10, i) | 0) * o : 0), l) for (; ; ) if (f == 0) { (d[0] += o) == Mn && (d[0] = 1, ++e.e); break; } else { if (d[f] += o, d[f] != Mn) break; d[f--] = 0, o = 1; } for (r = d.length; d[--r] === 0; ) d.pop(); if (Xt && (e.e > vm || e.e < -vm)) throw Error(AS + gn(e)); return e; } function CF(e, t) { var n, r, i, o, a, s, l, c, f, d, p = e.constructor, m = p.precision; if (!e.s || !t.s) return t.s ? t.s = -t.s : t = new p(e), Xt ? $t(t, m) : t; if (l = e.d, d = t.d, r = t.e, c = e.e, l = l.slice(), a = c - r, a) { for (f = a < 0, f ? (n = l, a = -a, s = d.length) : (n = d, r = c, s = l.length), i = Math.max(Math.ceil(m / Vt), s) + 2, a > i && (a = i, n.length = 1), n.reverse(), i = a; i--; ) n.push(0); n.reverse(); } else { for (i = l.length, s = d.length, f = i < s, f && (s = i), i = 0; i < s; i++) if (l[i] != d[i]) { f = l[i] < d[i]; break; } a = 0; } for (f && (n = l, l = d, d = n, t.s = -t.s), s = l.length, i = d.length - s; i > 0; --i) l[s++] = 0; for (i = d.length; i > a; ) { if (l[--i] < d[i]) { for (o = i; o && l[--o] === 0; ) l[o] = Mn - 1; --l[o], l[i] += Mn; } l[i] -= d[i]; } for (; l[--s] === 0; ) l.pop(); for (; l[0] === 0; l.shift()) --r; return l[0] ? (t.d = l, t.e = r, Xt ? $t(t, m) : t) : new p(0); } function Hs(e, t, n) { var r, i = gn(e), o = Ui(e.d), a = o.length; return t ? (n && (r = n - a) > 0 ? o = o.charAt(0) + "." + o.slice(1) + _a(r) : a > 1 && (o = o.charAt(0) + "." + o.slice(1)), o = o + (i < 0 ? "e" : "e+") + i) : i < 0 ? (o = "0." + _a(-i - 1) + o, n && (r = n - a) > 0 && (o += _a(r))) : i >= a ? (o += _a(i + 1 - a), n && (r = n - i - 1) > 0 && (o = o + "." + _a(r))) : ((r = i + 1) < a && (o = o.slice(0, r) + "." + o.slice(r)), n && (r = n - a) > 0 && (i + 1 === a && (o += "."), o += _a(r))), e.s < 0 ? "-" + o : o; } function WM(e, t) { if (e.length > t) return e.length = t, !0; } function EF(e) { var t, n, r; function i(o) { var a = this; if (!(a instanceof i)) return new i(o); if (a.constructor = i, o instanceof i) { a.s = o.s, a.e = o.e, a.d = (o = o.d) ? o.slice() : o; return; } if (typeof o == "number") { if (o * 0 !== 0) throw Error($s + o); if (o > 0) a.s = 1; else if (o < 0) o = -o, a.s = -1; else { a.s = 0, a.e = 0, a.d = [0]; return; } if (o === ~~o && o < 1e7) { a.e = 0, a.d = [o]; return; } return FM(a, o.toString()); } else if (typeof o != "string") throw Error($s + o); if (o.charCodeAt(0) === 45 ? (o = o.slice(1), a.s = -1) : a.s = 1, V0e.test(o)) FM(a, o); else throw Error($s + o); } if (i.prototype = Pe, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.clone = EF, i.config = i.set = U0e, e === void 0 && (e = {}), e) for (r = ["precision", "rounding", "toExpNeg", "toExpPos", "LN10"], t = 0; t < r.length; ) e.hasOwnProperty(n = r[t++]) || (e[n] = this[n]); return i.config(e), i; } function U0e(e) { if (!e || typeof e != "object") throw Error(pi + "Object expected"); var t, n, r, i = [ "precision", 1, Jc, "rounding", 0, 8, "toExpNeg", -1 / 0, 0, "toExpPos", 0, 1 / 0 ]; for (t = 0; t < i.length; t += 3) if ((r = e[n = i[t]]) !== void 0) if (Qc(r) === r && r >= i[t + 1] && r <= i[t + 2]) this[n] = r; else throw Error($s + n + ": " + r); if ((r = e[n = "LN10"]) !== void 0) if (r == Math.LN10) this[n] = new this(r); else throw Error($s + n + ": " + r); return this; } var TS = EF(z0e); Wr = new TS(1); const Pt = TS; function H0e(e) { return q0e(e) || Y0e(e) || G0e(e) || K0e(); } function K0e() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function G0e(e, t) { if (e) { if (typeof e == "string") return Xx(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Xx(e, t); } } function Y0e(e) { if (typeof Symbol < "u" && Symbol.iterator in Object(e)) return Array.from(e); } function q0e(e) { if (Array.isArray(e)) return Xx(e); } function Xx(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } var X0e = function(t) { return t; }, kF = { "@@functional/placeholder": !0 }, MF = function(t) { return t === kF; }, zM = function(t) { return function n() { return arguments.length === 0 || arguments.length === 1 && MF(arguments.length <= 0 ? void 0 : arguments[0]) ? n : t.apply(void 0, arguments); }; }, Z0e = function e(t, n) { return t === 1 ? n : zM(function() { for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o]; var a = i.filter(function(s) { return s !== kF; }).length; return a >= t ? n.apply(void 0, i) : e(t - a, zM(function() { for (var s = arguments.length, l = new Array(s), c = 0; c < s; c++) l[c] = arguments[c]; var f = i.map(function(d) { return MF(d) ? l.shift() : d; }); return n.apply(void 0, H0e(f).concat(l)); })); }); }, hy = function(t) { return Z0e(t.length, t); }, Zx = function(t, n) { for (var r = [], i = t; i < n; ++i) r[i - t] = i; return r; }, J0e = hy(function(e, t) { return Array.isArray(t) ? t.map(e) : Object.keys(t).map(function(n) { return t[n]; }).map(e); }), Q0e = function() { for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r]; if (!n.length) return X0e; var i = n.reverse(), o = i[0], a = i.slice(1); return function() { return a.reduce(function(s, l) { return l(s); }, o.apply(void 0, arguments)); }; }, Jx = function(t) { return Array.isArray(t) ? t.reverse() : t.split("").reverse.join(""); }, NF = function(t) { var n = null, r = null; return function() { for (var i = arguments.length, o = new Array(i), a = 0; a < i; a++) o[a] = arguments[a]; return n && o.every(function(s, l) { return s === n[l]; }) || (n = o, r = t.apply(void 0, o)), r; }; }; function exe(e) { var t; return e === 0 ? t = 1 : t = Math.floor(new Pt(e).abs().log(10).toNumber()) + 1, t; } function txe(e, t, n) { for (var r = new Pt(e), i = 0, o = []; r.lt(t) && i < 1e5; ) o.push(r.toNumber()), r = r.add(n), i++; return o; } var nxe = hy(function(e, t, n) { var r = +e, i = +t; return r + n * (i - r); }), rxe = hy(function(e, t, n) { var r = t - +e; return r = r || 1 / 0, (n - e) / r; }), ixe = hy(function(e, t, n) { var r = t - +e; return r = r || 1 / 0, Math.max(0, Math.min(1, (n - e) / r)); }); const py = { rangeStep: txe, getDigitCount: exe, interpolateNumber: nxe, uninterpolateNumber: rxe, uninterpolateTruncation: ixe }; function Qx(e) { return sxe(e) || axe(e) || $F(e) || oxe(); } function oxe() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function axe(e) { if (typeof Symbol < "u" && Symbol.iterator in Object(e)) return Array.from(e); } function sxe(e) { if (Array.isArray(e)) return ew(e); } function Ff(e, t) { return uxe(e) || cxe(e, t) || $F(e, t) || lxe(); } function lxe() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function $F(e, t) { if (e) { if (typeof e == "string") return ew(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ew(e, t); } } function ew(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } function cxe(e, t) { if (!(typeof Symbol > "u" || !(Symbol.iterator in Object(e)))) { var n = [], r = !0, i = !1, o = void 0; try { for (var a = e[Symbol.iterator](), s; !(r = (s = a.next()).done) && (n.push(s.value), !(t && n.length === t)); r = !0) ; } catch (l) { i = !0, o = l; } finally { try { !r && a.return != null && a.return(); } finally { if (i) throw o; } } return n; } } function uxe(e) { if (Array.isArray(e)) return e; } function DF(e) { var t = Ff(e, 2), n = t[0], r = t[1], i = n, o = r; return n > r && (i = r, o = n), [i, o]; } function IF(e, t, n) { if (e.lte(0)) return new Pt(0); var r = py.getDigitCount(e.toNumber()), i = new Pt(10).pow(r), o = e.div(i), a = r !== 1 ? 0.05 : 0.1, s = new Pt(Math.ceil(o.div(a).toNumber())).add(n).mul(a), l = s.mul(i); return t ? l : new Pt(Math.ceil(l)); } function fxe(e, t, n) { var r = 1, i = new Pt(e); if (!i.isint() && n) { var o = Math.abs(e); o < 1 ? (r = new Pt(10).pow(py.getDigitCount(e) - 1), i = new Pt(Math.floor(i.div(r).toNumber())).mul(r)) : o > 1 && (i = new Pt(Math.floor(e))); } else e === 0 ? i = new Pt(Math.floor((t - 1) / 2)) : n || (i = new Pt(Math.floor(e))); var a = Math.floor((t - 1) / 2), s = Q0e(J0e(function(l) { return i.add(new Pt(l - a).mul(r)).toNumber(); }), Zx); return s(0, t); } function RF(e, t, n, r) { var i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0; if (!Number.isFinite((t - e) / (n - 1))) return { step: new Pt(0), tickMin: new Pt(0), tickMax: new Pt(0) }; var o = IF(new Pt(t).sub(e).div(n - 1), r, i), a; e <= 0 && t >= 0 ? a = new Pt(0) : (a = new Pt(e).add(t).div(2), a = a.sub(new Pt(a).mod(o))); var s = Math.ceil(a.sub(e).div(o).toNumber()), l = Math.ceil(new Pt(t).sub(a).div(o).toNumber()), c = s + l + 1; return c > n ? RF(e, t, n, r, i + 1) : (c < n && (l = t > 0 ? l + (n - c) : l, s = t > 0 ? s : s + (n - c)), { step: o, tickMin: a.sub(new Pt(s).mul(o)), tickMax: a.add(new Pt(l).mul(o)) }); } function dxe(e) { var t = Ff(e, 2), n = t[0], r = t[1], i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 6, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = Math.max(i, 2), s = DF([n, r]), l = Ff(s, 2), c = l[0], f = l[1]; if (c === -1 / 0 || f === 1 / 0) { var d = f === 1 / 0 ? [c].concat(Qx(Zx(0, i - 1).map(function() { return 1 / 0; }))) : [].concat(Qx(Zx(0, i - 1).map(function() { return -1 / 0; })), [f]); return n > r ? Jx(d) : d; } if (c === f) return fxe(c, i, o); var p = RF(c, f, a, o), m = p.step, y = p.tickMin, g = p.tickMax, v = py.rangeStep(y, g.add(new Pt(0.1).mul(m)), m); return n > r ? Jx(v) : v; } function hxe(e, t) { var n = Ff(e, 2), r = n[0], i = n[1], o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, a = DF([r, i]), s = Ff(a, 2), l = s[0], c = s[1]; if (l === -1 / 0 || c === 1 / 0) return [r, i]; if (l === c) return [l]; var f = Math.max(t, 2), d = IF(new Pt(c).sub(l).div(f - 1), o, 0), p = [].concat(Qx(py.rangeStep(new Pt(l), new Pt(c).sub(new Pt(0.99).mul(d)), d)), [c]); return r > i ? Jx(p) : p; } var pxe = NF(dxe), mxe = NF(hxe), gxe = "development" === "production", qb = "Invariant failed"; function Sr(e, t) { if (gxe) throw new Error(qb); var n = typeof t == "function" ? t() : t, r = n ? "".concat(qb, ": ").concat(n) : qb; throw new Error(r); } var yxe = ["offset", "layout", "width", "dataKey", "data", "dataPointFormatter", "xAxis", "yAxis"]; function hc(e) { "@babel/helpers - typeof"; return hc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, hc(e); } function bm() { return bm = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, bm.apply(this, arguments); } function vxe(e, t) { return _xe(e) || wxe(e, t) || xxe(e, t) || bxe(); } function bxe() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function xxe(e, t) { if (e) { if (typeof e == "string") return VM(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return VM(e, t); } } function VM(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } function wxe(e, t) { var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; if (n != null) { var r, i, o, a, s = [], l = !0, c = !1; try { if (o = (n = n.call(e)).next, t !== 0) for (; !(l = (r = o.call(n)).done) && (s.push(r.value), s.length !== t); l = !0) ; } catch (f) { c = !0, i = f; } finally { try { if (!l && n.return != null && (a = n.return(), Object(a) !== a)) return; } finally { if (c) throw i; } } return s; } } function _xe(e) { if (Array.isArray(e)) return e; } function Sxe(e, t) { if (e == null) return {}; var n = Oxe(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function Oxe(e, t) { if (e == null) return {}; var n = {}; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { if (t.indexOf(r) >= 0) continue; n[r] = e[r]; } return n; } function Axe(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function Txe(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, BF(r.key), r); } } function Pxe(e, t, n) { return t && Txe(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function Cxe(e, t, n) { return t = xm(t), Exe(e, jF() ? Reflect.construct(t, n || [], xm(e).constructor) : t.apply(e, n)); } function Exe(e, t) { if (t && (hc(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return kxe(e); } function kxe(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function jF() { try { var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (jF = function() { return !!e; })(); } function xm(e) { return xm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); }, xm(e); } function Mxe(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && tw(e, t); } function tw(e, t) { return tw = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { return r.__proto__ = i, r; }, tw(e, t); } function LF(e, t, n) { return t = BF(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function BF(e) { var t = Nxe(e, "string"); return hc(t) == "symbol" ? t : t + ""; } function Nxe(e, t) { if (hc(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (hc(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var $d = /* @__PURE__ */ function(e) { function t() { return Axe(this, t), Cxe(this, t, arguments); } return Mxe(t, e), Pxe(t, [{ key: "render", value: function() { var r = this.props, i = r.offset, o = r.layout, a = r.width, s = r.dataKey, l = r.data, c = r.dataPointFormatter, f = r.xAxis, d = r.yAxis, p = Sxe(r, yxe), m = Ee(p, !1); this.props.direction === "x" && f.type !== "number" && ( true ? Sr(!1, 'ErrorBar requires Axis type property to be "number".') : 0); var y = l.map(function(g) { var v = c(g, s), x = v.x, w = v.y, S = v.value, A = v.errorVal; if (!A) return null; var _ = [], O, P; if (Array.isArray(A)) { var C = vxe(A, 2); O = C[0], P = C[1]; } else O = P = A; if (o === "vertical") { var k = f.scale, I = w + i, $ = I + a, N = I - a, D = k(S - O), j = k(S + P); _.push({ x1: j, y1: $, x2: j, y2: N }), _.push({ x1: D, y1: I, x2: j, y2: I }), _.push({ x1: D, y1: $, x2: D, y2: N }); } else if (o === "horizontal") { var F = d.scale, W = x + i, z = W - a, H = W + a, U = F(S - O), V = F(S + P); _.push({ x1: z, y1: V, x2: H, y2: V }), _.push({ x1: W, y1: U, x2: W, y2: V }), _.push({ x1: z, y1: U, x2: H, y2: U }); } return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, bm({ className: "recharts-errorBar", key: "bar-".concat(_.map(function(Y) { return "".concat(Y.x1, "-").concat(Y.x2, "-").concat(Y.y1, "-").concat(Y.y2); })) }, m), _.map(function(Y) { return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("line", bm({}, Y, { key: "line-".concat(Y.x1, "-").concat(Y.x2, "-").concat(Y.y1, "-").concat(Y.y2) })); })); }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { className: "recharts-errorBars" }, y); } }]); }(react__WEBPACK_IMPORTED_MODULE_1__.Component); LF($d, "defaultProps", { stroke: "black", strokeWidth: 1.5, width: 5, offset: 0, layout: "horizontal" }); LF($d, "displayName", "ErrorBar"); function Wf(e) { "@babel/helpers - typeof"; return Wf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Wf(e); } function UM(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function cs(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? UM(Object(n), !0).forEach(function(r) { $xe(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : UM(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function $xe(e, t, n) { return t = Dxe(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function Dxe(e) { var t = Ixe(e, "string"); return Wf(t) == "symbol" ? t : t + ""; } function Ixe(e, t) { if (Wf(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Wf(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var FF = function(t) { var n = t.children, r = t.formattedGraphicalItems, i = t.legendWidth, o = t.legendContent, a = jr(n, Lo); if (!a) return null; var s = Lo.defaultProps, l = s !== void 0 ? cs(cs({}, s), a.props) : {}, c; return a.props && a.props.payload ? c = a.props && a.props.payload : o === "children" ? c = (r || []).reduce(function(f, d) { var p = d.item, m = d.props, y = m.sectors || m.data || []; return f.concat(y.map(function(g) { return { type: a.props.iconType || p.props.legendType, value: g.name, color: g.fill, payload: g }; })); }, []) : c = (r || []).map(function(f) { var d = f.item, p = d.type.defaultProps, m = p !== void 0 ? cs(cs({}, p), d.props) : {}, y = m.dataKey, g = m.name, v = m.legendType, x = m.hide; return { inactive: x, dataKey: y, type: l.iconType || v || "square", color: PS(d), value: g || y, // @ts-expect-error property strokeDasharray is required in Payload but optional in props payload: m }; }), cs(cs(cs({}, l), Lo.getWithHeight(a, i)), {}, { payload: c, item: a }); }; function zf(e) { "@babel/helpers - typeof"; return zf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, zf(e); } function HM(e) { return Bxe(e) || Lxe(e) || jxe(e) || Rxe(); } function Rxe() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function jxe(e, t) { if (e) { if (typeof e == "string") return nw(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return nw(e, t); } } function Lxe(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); } function Bxe(e) { if (Array.isArray(e)) return nw(e); } function nw(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } function KM(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function rn(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? KM(Object(n), !0).forEach(function(r) { Xl(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : KM(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function Xl(e, t, n) { return t = Fxe(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function Fxe(e) { var t = Wxe(e, "string"); return zf(t) == "symbol" ? t : t + ""; } function Wxe(e, t) { if (zf(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (zf(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function cn(e, t, n) { return Ue(e) || Ue(t) ? n : On(t) ? zr(e, t, n) : ze(t) ? t(e) : n; } function rf(e, t, n, r) { var i = L0e(e, function(s) { return cn(s, t); }); if (n === "number") { var o = i.filter(function(s) { return be(s) || parseFloat(s); }); return o.length ? [dy(o), Ta(o)] : [1 / 0, -1 / 0]; } var a = r ? i.filter(function(s) { return !Ue(s); }) : i; return a.map(function(s) { return On(s) || s instanceof Date ? s : ""; }); } var zxe = function(t) { var n, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], i = arguments.length > 2 ? arguments[2] : void 0, o = arguments.length > 3 ? arguments[3] : void 0, a = -1, s = (n = r == null ? void 0 : r.length) !== null && n !== void 0 ? n : 0; if (s <= 1) return 0; if (o && o.axisType === "angleAxis" && Math.abs(Math.abs(o.range[1] - o.range[0]) - 360) <= 1e-6) for (var l = o.range, c = 0; c < s; c++) { var f = c > 0 ? i[c - 1].coordinate : i[s - 1].coordinate, d = i[c].coordinate, p = c >= s - 1 ? i[0].coordinate : i[c + 1].coordinate, m = void 0; if (fr(d - f) !== fr(p - d)) { var y = []; if (fr(p - d) === fr(l[1] - l[0])) { m = p; var g = d + l[1] - l[0]; y[0] = Math.min(g, (g + f) / 2), y[1] = Math.max(g, (g + f) / 2); } else { m = f; var v = p + l[1] - l[0]; y[0] = Math.min(d, (v + d) / 2), y[1] = Math.max(d, (v + d) / 2); } var x = [Math.min(d, (m + d) / 2), Math.max(d, (m + d) / 2)]; if (t > x[0] && t <= x[1] || t >= y[0] && t <= y[1]) { a = i[c].index; break; } } else { var w = Math.min(f, p), S = Math.max(f, p); if (t > (w + d) / 2 && t <= (S + d) / 2) { a = i[c].index; break; } } } else for (var A = 0; A < s; A++) if (A === 0 && t <= (r[A].coordinate + r[A + 1].coordinate) / 2 || A > 0 && A < s - 1 && t > (r[A].coordinate + r[A - 1].coordinate) / 2 && t <= (r[A].coordinate + r[A + 1].coordinate) / 2 || A === s - 1 && t > (r[A].coordinate + r[A - 1].coordinate) / 2) { a = r[A].index; break; } return a; }, PS = function(t) { var n, r = t, i = r.type.displayName, o = (n = t.type) !== null && n !== void 0 && n.defaultProps ? rn(rn({}, t.type.defaultProps), t.props) : t.props, a = o.stroke, s = o.fill, l; switch (i) { case "Line": l = a; break; case "Area": case "Radar": l = a && a !== "none" ? a : s; break; default: l = s; break; } return l; }, Vxe = function(t) { var n = t.barSize, r = t.totalSize, i = t.stackGroups, o = i === void 0 ? {} : i; if (!o) return {}; for (var a = {}, s = Object.keys(o), l = 0, c = s.length; l < c; l++) for (var f = o[s[l]].stackGroups, d = Object.keys(f), p = 0, m = d.length; p < m; p++) { var y = f[d[p]], g = y.items, v = y.cateAxisId, x = g.filter(function(P) { return jo(P.type).indexOf("Bar") >= 0; }); if (x && x.length) { var w = x[0].type.defaultProps, S = w !== void 0 ? rn(rn({}, w), x[0].props) : x[0].props, A = S.barSize, _ = S[v]; a[_] || (a[_] = []); var O = Ue(A) ? n : A; a[_].push({ item: x[0], stackList: x.slice(1), barSize: Ue(O) ? void 0 : dr(O, r, 0) }); } } return a; }, Uxe = function(t) { var n = t.barGap, r = t.barCategoryGap, i = t.bandSize, o = t.sizeList, a = o === void 0 ? [] : o, s = t.maxBarSize, l = a.length; if (l < 1) return null; var c = dr(n, i, 0, !0), f, d = []; if (a[0].barSize === +a[0].barSize) { var p = !1, m = i / l, y = a.reduce(function(A, _) { return A + _.barSize || 0; }, 0); y += (l - 1) * c, y >= i && (y -= (l - 1) * c, c = 0), y >= i && m > 0 && (p = !0, m *= 0.9, y = l * m); var g = (i - y) / 2 >> 0, v = { offset: g - c, size: 0 }; f = a.reduce(function(A, _) { var O = { item: _.item, position: { offset: v.offset + v.size + c, // @ts-expect-error the type check above does not check for type number explicitly size: p ? m : _.barSize } }, P = [].concat(HM(A), [O]); return v = P[P.length - 1].position, _.stackList && _.stackList.length && _.stackList.forEach(function(C) { P.push({ item: C, position: v }); }), P; }, d); } else { var x = dr(r, i, 0, !0); i - 2 * x - (l - 1) * c <= 0 && (c = 0); var w = (i - 2 * x - (l - 1) * c) / l; w > 1 && (w >>= 0); var S = s === +s ? Math.min(w, s) : w; f = a.reduce(function(A, _, O) { var P = [].concat(HM(A), [{ item: _.item, position: { offset: x + (w + c) * O + (w - S) / 2, size: S } }]); return _.stackList && _.stackList.length && _.stackList.forEach(function(C) { P.push({ item: C, position: P[P.length - 1].position }); }), P; }, d); } return f; }, Hxe = function(t, n, r, i) { var o = r.children, a = r.width, s = r.margin, l = a - (s.left || 0) - (s.right || 0), c = FF({ children: o, legendWidth: l }); if (c) { var f = i || {}, d = f.width, p = f.height, m = c.align, y = c.verticalAlign, g = c.layout; if ((g === "vertical" || g === "horizontal" && y === "middle") && m !== "center" && be(t[m])) return rn(rn({}, t), {}, Xl({}, m, t[m] + (d || 0))); if ((g === "horizontal" || g === "vertical" && m === "center") && y !== "middle" && be(t[y])) return rn(rn({}, t), {}, Xl({}, y, t[y] + (p || 0))); } return t; }, Kxe = function(t, n, r) { return Ue(n) ? !0 : t === "horizontal" ? n === "yAxis" : t === "vertical" || r === "x" ? n === "xAxis" : r === "y" ? n === "yAxis" : !0; }, WF = function(t, n, r, i, o) { var a = n.props.children, s = Vr(a, $d).filter(function(c) { return Kxe(i, o, c.props.direction); }); if (s && s.length) { var l = s.map(function(c) { return c.props.dataKey; }); return t.reduce(function(c, f) { var d = cn(f, r); if (Ue(d)) return c; var p = Array.isArray(d) ? [dy(d), Ta(d)] : [d, d], m = l.reduce(function(y, g) { var v = cn(f, g, 0), x = p[0] - Math.abs(Array.isArray(v) ? v[0] : v), w = p[1] + Math.abs(Array.isArray(v) ? v[1] : v); return [Math.min(x, y[0]), Math.max(w, y[1])]; }, [1 / 0, -1 / 0]); return [Math.min(m[0], c[0]), Math.max(m[1], c[1])]; }, [1 / 0, -1 / 0]); } return null; }, Gxe = function(t, n, r, i, o) { var a = n.map(function(s) { return WF(t, s, r, o, i); }).filter(function(s) { return !Ue(s); }); return a && a.length ? a.reduce(function(s, l) { return [Math.min(s[0], l[0]), Math.max(s[1], l[1])]; }, [1 / 0, -1 / 0]) : null; }, zF = function(t, n, r, i, o) { var a = n.map(function(l) { var c = l.props.dataKey; return r === "number" && c && WF(t, l, c, i) || rf(t, c, r, o); }); if (r === "number") return a.reduce( // @ts-expect-error if (type === number) means that the domain is numerical type // - but this link is missing in the type definition function(l, c) { return [Math.min(l[0], c[0]), Math.max(l[1], c[1])]; }, [1 / 0, -1 / 0] ); var s = {}; return a.reduce(function(l, c) { for (var f = 0, d = c.length; f < d; f++) s[c[f]] || (s[c[f]] = !0, l.push(c[f])); return l; }, []); }, VF = function(t, n) { return t === "horizontal" && n === "xAxis" || t === "vertical" && n === "yAxis" || t === "centric" && n === "angleAxis" || t === "radial" && n === "radiusAxis"; }, UF = function(t, n, r, i) { if (i) return t.map(function(l) { return l.coordinate; }); var o, a, s = t.map(function(l) { return l.coordinate === n && (o = !0), l.coordinate === r && (a = !0), l.coordinate; }); return o || s.push(n), a || s.push(r), s; }, Mo = function(t, n, r) { if (!t) return null; var i = t.scale, o = t.duplicateDomain, a = t.type, s = t.range, l = t.realScaleType === "scaleBand" ? i.bandwidth() / 2 : 2, c = (n || r) && a === "category" && i.bandwidth ? i.bandwidth() / l : 0; if (c = t.axisType === "angleAxis" && (s == null ? void 0 : s.length) >= 2 ? fr(s[0] - s[1]) * 2 * c : c, n && (t.ticks || t.niceTicks)) { var f = (t.ticks || t.niceTicks).map(function(d) { var p = o ? o.indexOf(d) : d; return { // If the scaleContent is not a number, the coordinate will be NaN. // That could be the case for example with a PointScale and a string as domain. coordinate: i(p) + c, value: d, offset: c }; }); return f.filter(function(d) { return !Gc(d.coordinate); }); } return t.isCategorical && t.categoricalDomain ? t.categoricalDomain.map(function(d, p) { return { coordinate: i(d) + c, value: d, index: p, offset: c }; }) : i.ticks && !r ? i.ticks(t.tickCount).map(function(d) { return { coordinate: i(d) + c, value: d, offset: c }; }) : i.domain().map(function(d, p) { return { coordinate: i(d) + c, value: o ? o[d] : d, index: p, offset: c }; }); }, Xb = /* @__PURE__ */ new WeakMap(), Xh = function(t, n) { if (typeof n != "function") return t; Xb.has(t) || Xb.set(t, /* @__PURE__ */ new WeakMap()); var r = Xb.get(t); if (r.has(n)) return r.get(n); var i = function() { t.apply(void 0, arguments), n.apply(void 0, arguments); }; return r.set(n, i), i; }, HF = function(t, n, r) { var i = t.scale, o = t.type, a = t.layout, s = t.axisType; if (i === "auto") return a === "radial" && s === "radiusAxis" ? { scale: Df(), realScaleType: "band" } : a === "radial" && s === "angleAxis" ? { scale: pm(), realScaleType: "linear" } : o === "category" && n && (n.indexOf("LineChart") >= 0 || n.indexOf("AreaChart") >= 0 || n.indexOf("ComposedChart") >= 0 && !r) ? { scale: nf(), realScaleType: "point" } : o === "category" ? { scale: Df(), realScaleType: "band" } : { scale: pm(), realScaleType: "linear" }; if (Pd(i)) { var l = "scale".concat(Jg(i)); return { scale: (BM[l] || nf)(), realScaleType: BM[l] ? l : "point" }; } return ze(i) ? { scale: i } : { scale: nf(), realScaleType: "point" }; }, GM = 1e-4, KF = function(t) { var n = t.domain(); if (!(!n || n.length <= 2)) { var r = n.length, i = t.range(), o = Math.min(i[0], i[1]) - GM, a = Math.max(i[0], i[1]) + GM, s = t(n[0]), l = t(n[r - 1]); (s < o || s > a || l < o || l > a) && t.domain([n[0], n[r - 1]]); } }, Yxe = function(t, n) { if (!t) return null; for (var r = 0, i = t.length; r < i; r++) if (t[r].item === n) return t[r].position; return null; }, qxe = function(t, n) { if (!n || n.length !== 2 || !be(n[0]) || !be(n[1])) return t; var r = Math.min(n[0], n[1]), i = Math.max(n[0], n[1]), o = [t[0], t[1]]; return (!be(t[0]) || t[0] < r) && (o[0] = r), (!be(t[1]) || t[1] > i) && (o[1] = i), o[0] > i && (o[0] = i), o[1] < r && (o[1] = r), o; }, Xxe = function(t) { var n = t.length; if (!(n <= 0)) for (var r = 0, i = t[0].length; r < i; ++r) for (var o = 0, a = 0, s = 0; s < n; ++s) { var l = Gc(t[s][r][1]) ? t[s][r][0] : t[s][r][1]; l >= 0 ? (t[s][r][0] = o, t[s][r][1] = o + l, o = t[s][r][1]) : (t[s][r][0] = a, t[s][r][1] = a + l, a = t[s][r][1]); } }, Zxe = function(t) { var n = t.length; if (!(n <= 0)) for (var r = 0, i = t[0].length; r < i; ++r) for (var o = 0, a = 0; a < n; ++a) { var s = Gc(t[a][r][1]) ? t[a][r][0] : t[a][r][1]; s >= 0 ? (t[a][r][0] = o, t[a][r][1] = o + s, o = t[a][r][1]) : (t[a][r][0] = 0, t[a][r][1] = 0); } }, Jxe = { sign: Xxe, // @ts-expect-error definitelytyped types are incorrect expand: yle, // @ts-expect-error definitelytyped types are incorrect none: oc, // @ts-expect-error definitelytyped types are incorrect silhouette: vle, // @ts-expect-error definitelytyped types are incorrect wiggle: ble, positive: Zxe }, Qxe = function(t, n, r) { var i = n.map(function(s) { return s.props.dataKey; }), o = Jxe[r], a = gle().keys(i).value(function(s, l) { return +cn(s, l, 0); }).order(Px).offset(o); return a(t); }, ewe = function(t, n, r, i, o, a) { if (!t) return null; var s = a ? n.reverse() : n, l = {}, c = s.reduce(function(d, p) { var m, y = (m = p.type) !== null && m !== void 0 && m.defaultProps ? rn(rn({}, p.type.defaultProps), p.props) : p.props, g = y.stackId, v = y.hide; if (v) return d; var x = y[r], w = d[x] || { hasStack: !1, stackGroups: {} }; if (On(g)) { var S = w.stackGroups[g] || { numericAxisId: r, cateAxisId: i, items: [] }; S.items.push(p), w.hasStack = !0, w.stackGroups[g] = S; } else w.stackGroups[tl("_stackId_")] = { numericAxisId: r, cateAxisId: i, items: [p] }; return rn(rn({}, d), {}, Xl({}, x, w)); }, l), f = {}; return Object.keys(c).reduce(function(d, p) { var m = c[p]; if (m.hasStack) { var y = {}; m.stackGroups = Object.keys(m.stackGroups).reduce(function(g, v) { var x = m.stackGroups[v]; return rn(rn({}, g), {}, Xl({}, v, { numericAxisId: r, cateAxisId: i, items: x.items, stackedData: Qxe(t, x.items, o) })); }, y); } return rn(rn({}, d), {}, Xl({}, p, m)); }, f); }, GF = function(t, n) { var r = n.realScaleType, i = n.type, o = n.tickCount, a = n.originalDomain, s = n.allowDecimals, l = r || n.scale; if (l !== "auto" && l !== "linear") return null; if (o && i === "number" && a && (a[0] === "auto" || a[1] === "auto")) { var c = t.domain(); if (!c.length) return null; var f = pxe(c, o, s); return t.domain([dy(f), Ta(f)]), { niceTicks: f }; } if (o && i === "number") { var d = t.domain(), p = mxe(d, o, s); return { niceTicks: p }; } return null; }; function wm(e) { var t = e.axis, n = e.ticks, r = e.bandSize, i = e.entry, o = e.index, a = e.dataKey; if (t.type === "category") { if (!t.allowDuplicatedCategory && t.dataKey && !Ue(i[t.dataKey])) { var s = Gp(n, "value", i[t.dataKey]); if (s) return s.coordinate + r / 2; } return n[o] ? n[o].coordinate + r / 2 : null; } var l = cn(i, Ue(a) ? t.dataKey : a); return Ue(l) ? null : t.scale(l); } var YM = function(t) { var n = t.axis, r = t.ticks, i = t.offset, o = t.bandSize, a = t.entry, s = t.index; if (n.type === "category") return r[s] ? r[s].coordinate + i : null; var l = cn(a, n.dataKey, n.domain[s]); return Ue(l) ? null : n.scale(l) - o / 2 + i; }, twe = function(t) { var n = t.numericAxis, r = n.scale.domain(); if (n.type === "number") { var i = Math.min(r[0], r[1]), o = Math.max(r[0], r[1]); return i <= 0 && o >= 0 ? 0 : o < 0 ? o : i; } return r[0]; }, nwe = function(t, n) { var r, i = (r = t.type) !== null && r !== void 0 && r.defaultProps ? rn(rn({}, t.type.defaultProps), t.props) : t.props, o = i.stackId; if (On(o)) { var a = n[o]; if (a) { var s = a.items.indexOf(t); return s >= 0 ? a.stackedData[s] : null; } } return null; }, rwe = function(t) { return t.reduce(function(n, r) { return [dy(r.concat([n[0]]).filter(be)), Ta(r.concat([n[1]]).filter(be))]; }, [1 / 0, -1 / 0]); }, YF = function(t, n, r) { return Object.keys(t).reduce(function(i, o) { var a = t[o], s = a.stackedData, l = s.reduce(function(c, f) { var d = rwe(f.slice(n, r + 1)); return [Math.min(c[0], d[0]), Math.max(c[1], d[1])]; }, [1 / 0, -1 / 0]); return [Math.min(l[0], i[0]), Math.max(l[1], i[1])]; }, [1 / 0, -1 / 0]).map(function(i) { return i === 1 / 0 || i === -1 / 0 ? 0 : i; }); }, qM = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, XM = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, rw = function(t, n, r) { if (ze(t)) return t(n, r); if (!Array.isArray(t)) return n; var i = []; if (be(t[0])) i[0] = r ? t[0] : Math.min(t[0], n[0]); else if (qM.test(t[0])) { var o = +qM.exec(t[0])[1]; i[0] = n[0] - o; } else ze(t[0]) ? i[0] = t[0](n[0]) : i[0] = n[0]; if (be(t[1])) i[1] = r ? t[1] : Math.max(t[1], n[1]); else if (XM.test(t[1])) { var a = +XM.exec(t[1])[1]; i[1] = n[1] + a; } else ze(t[1]) ? i[1] = t[1](n[1]) : i[1] = n[1]; return i; }, _m = function(t, n, r) { if (t && t.scale && t.scale.bandwidth) { var i = t.scale.bandwidth(); if (!r || i > 0) return i; } if (t && n && n.length >= 2) { for (var o = Q_(n, function(d) { return d.coordinate; }), a = 1 / 0, s = 1, l = o.length; s < l; s++) { var c = o[s], f = o[s - 1]; a = Math.min((c.coordinate || 0) - (f.coordinate || 0), a); } return a === 1 / 0 ? 0 : a; } return r ? void 0 : 0; }, ZM = function(t, n, r) { return !t || !t.length || Us(t, zr(r, "type.defaultProps.domain")) ? n : t; }, qF = function(t, n) { var r = t.type.defaultProps ? rn(rn({}, t.type.defaultProps), t.props) : t.props, i = r.dataKey, o = r.name, a = r.unit, s = r.formatter, l = r.tooltipType, c = r.chartType, f = r.hide; return rn(rn({}, Ee(t, !1)), {}, { dataKey: i, unit: a, formatter: s, name: o || i, color: PS(t), value: cn(n, i), type: l, payload: n, chartType: c, hide: f }); }; function Vf(e) { "@babel/helpers - typeof"; return Vf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Vf(e); } function JM(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function _o(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? JM(Object(n), !0).forEach(function(r) { XF(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : JM(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function XF(e, t, n) { return t = iwe(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function iwe(e) { var t = owe(e, "string"); return Vf(t) == "symbol" ? t : t + ""; } function owe(e, t) { if (Vf(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Vf(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function awe(e, t) { return uwe(e) || cwe(e, t) || lwe(e, t) || swe(); } function swe() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function lwe(e, t) { if (e) { if (typeof e == "string") return QM(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return QM(e, t); } } function QM(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } function cwe(e, t) { var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; if (n != null) { var r, i, o, a, s = [], l = !0, c = !1; try { if (o = (n = n.call(e)).next, t !== 0) for (; !(l = (r = o.call(n)).done) && (s.push(r.value), s.length !== t); l = !0) ; } catch (f) { c = !0, i = f; } finally { try { if (!l && n.return != null && (a = n.return(), Object(a) !== a)) return; } finally { if (c) throw i; } } return s; } } function uwe(e) { if (Array.isArray(e)) return e; } var Sm = Math.PI / 180, fwe = function(t) { return t * 180 / Math.PI; }, Bt = function(t, n, r, i) { return { x: t + Math.cos(-Sm * i) * r, y: n + Math.sin(-Sm * i) * r }; }, ZF = function(t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { top: 0, right: 0, bottom: 0, left: 0 }; return Math.min(Math.abs(t - (r.left || 0) - (r.right || 0)), Math.abs(n - (r.top || 0) - (r.bottom || 0))) / 2; }, dwe = function(t, n, r, i, o) { var a = t.width, s = t.height, l = t.startAngle, c = t.endAngle, f = dr(t.cx, a, a / 2), d = dr(t.cy, s, s / 2), p = ZF(a, s, r), m = dr(t.innerRadius, p, 0), y = dr(t.outerRadius, p, p * 0.8), g = Object.keys(n); return g.reduce(function(v, x) { var w = n[x], S = w.domain, A = w.reversed, _; if (Ue(w.range)) i === "angleAxis" ? _ = [l, c] : i === "radiusAxis" && (_ = [m, y]), A && (_ = [_[1], _[0]]); else { _ = w.range; var O = _, P = awe(O, 2); l = P[0], c = P[1]; } var C = HF(w, o), k = C.realScaleType, I = C.scale; I.domain(S).range(_), KF(I); var $ = GF(I, _o(_o({}, w), {}, { realScaleType: k })), N = _o(_o(_o({}, w), $), {}, { range: _, radius: y, realScaleType: k, scale: I, cx: f, cy: d, innerRadius: m, outerRadius: y, startAngle: l, endAngle: c }); return _o(_o({}, v), {}, XF({}, x, N)); }, {}); }, hwe = function(t, n) { var r = t.x, i = t.y, o = n.x, a = n.y; return Math.sqrt(Math.pow(r - o, 2) + Math.pow(i - a, 2)); }, pwe = function(t, n) { var r = t.x, i = t.y, o = n.cx, a = n.cy, s = hwe({ x: r, y: i }, { x: o, y: a }); if (s <= 0) return { radius: s }; var l = (r - o) / s, c = Math.acos(l); return i > a && (c = 2 * Math.PI - c), { radius: s, angle: fwe(c), angleInRadian: c }; }, mwe = function(t) { var n = t.startAngle, r = t.endAngle, i = Math.floor(n / 360), o = Math.floor(r / 360), a = Math.min(i, o); return { startAngle: n - a * 360, endAngle: r - a * 360 }; }, gwe = function(t, n) { var r = n.startAngle, i = n.endAngle, o = Math.floor(r / 360), a = Math.floor(i / 360), s = Math.min(o, a); return t + s * 360; }, eN = function(t, n) { var r = t.x, i = t.y, o = pwe({ x: r, y: i }, n), a = o.radius, s = o.angle, l = n.innerRadius, c = n.outerRadius; if (a < l || a > c) return !1; if (a === 0) return !0; var f = mwe(n), d = f.startAngle, p = f.endAngle, m = s, y; if (d <= p) { for (; m > p; ) m -= 360; for (; m < d; ) m += 360; y = m >= d && m <= p; } else { for (; m > d; ) m -= 360; for (; m < p; ) m += 360; y = m >= p && m <= d; } return y ? _o(_o({}, n), {}, { radius: a, angle: gwe(m, n) }) : null; }, JF = function(t) { return !/* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(t) && !ze(t) && typeof t != "boolean" ? t.className : ""; }; function Uf(e) { "@babel/helpers - typeof"; return Uf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Uf(e); } var ywe = ["offset"]; function vwe(e) { return _we(e) || wwe(e) || xwe(e) || bwe(); } function bwe() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function xwe(e, t) { if (e) { if (typeof e == "string") return iw(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return iw(e, t); } } function wwe(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); } function _we(e) { if (Array.isArray(e)) return iw(e); } function iw(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } function Swe(e, t) { if (e == null) return {}; var n = Owe(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function Owe(e, t) { if (e == null) return {}; var n = {}; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { if (t.indexOf(r) >= 0) continue; n[r] = e[r]; } return n; } function tN(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function xn(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? tN(Object(n), !0).forEach(function(r) { Awe(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : tN(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function Awe(e, t, n) { return t = Twe(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function Twe(e) { var t = Pwe(e, "string"); return Uf(t) == "symbol" ? t : t + ""; } function Pwe(e, t) { if (Uf(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Uf(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function Hf() { return Hf = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, Hf.apply(this, arguments); } var Cwe = function(t) { var n = t.value, r = t.formatter, i = Ue(t.children) ? n : t.children; return ze(r) ? r(i) : i; }, Ewe = function(t, n) { var r = fr(n - t), i = Math.min(Math.abs(n - t), 360); return r * i; }, kwe = function(t, n, r) { var i = t.position, o = t.viewBox, a = t.offset, s = t.className, l = o, c = l.cx, f = l.cy, d = l.innerRadius, p = l.outerRadius, m = l.startAngle, y = l.endAngle, g = l.clockWise, v = (d + p) / 2, x = Ewe(m, y), w = x >= 0 ? 1 : -1, S, A; i === "insideStart" ? (S = m + w * a, A = g) : i === "insideEnd" ? (S = y - w * a, A = !g) : i === "end" && (S = y + w * a, A = g), A = x <= 0 ? A : !A; var _ = Bt(c, f, v, S), O = Bt(c, f, v, S + (A ? 1 : -1) * 359), P = "M".concat(_.x, ",").concat(_.y, ` A`).concat(v, ",").concat(v, ",0,1,").concat(A ? 0 : 1, `, `).concat(O.x, ",").concat(O.y), C = Ue(t.id) ? tl("recharts-radial-line-") : t.id; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("text", Hf({}, r, { dominantBaseline: "central", className: Xe("recharts-radial-bar-label", s) }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("defs", null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("path", { id: C, d: P })), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("textPath", { xlinkHref: "#".concat(C) }, n)); }, Mwe = function(t) { var n = t.viewBox, r = t.offset, i = t.position, o = n, a = o.cx, s = o.cy, l = o.innerRadius, c = o.outerRadius, f = o.startAngle, d = o.endAngle, p = (f + d) / 2; if (i === "outside") { var m = Bt(a, s, c + r, p), y = m.x, g = m.y; return { x: y, y: g, textAnchor: y >= a ? "start" : "end", verticalAnchor: "middle" }; } if (i === "center") return { x: a, y: s, textAnchor: "middle", verticalAnchor: "middle" }; if (i === "centerTop") return { x: a, y: s, textAnchor: "middle", verticalAnchor: "start" }; if (i === "centerBottom") return { x: a, y: s, textAnchor: "middle", verticalAnchor: "end" }; var v = (l + c) / 2, x = Bt(a, s, v, p), w = x.x, S = x.y; return { x: w, y: S, textAnchor: "middle", verticalAnchor: "middle" }; }, Nwe = function(t) { var n = t.viewBox, r = t.parentViewBox, i = t.offset, o = t.position, a = n, s = a.x, l = a.y, c = a.width, f = a.height, d = f >= 0 ? 1 : -1, p = d * i, m = d > 0 ? "end" : "start", y = d > 0 ? "start" : "end", g = c >= 0 ? 1 : -1, v = g * i, x = g > 0 ? "end" : "start", w = g > 0 ? "start" : "end"; if (o === "top") { var S = { x: s + c / 2, y: l - d * i, textAnchor: "middle", verticalAnchor: m }; return xn(xn({}, S), r ? { height: Math.max(l - r.y, 0), width: c } : {}); } if (o === "bottom") { var A = { x: s + c / 2, y: l + f + p, textAnchor: "middle", verticalAnchor: y }; return xn(xn({}, A), r ? { height: Math.max(r.y + r.height - (l + f), 0), width: c } : {}); } if (o === "left") { var _ = { x: s - v, y: l + f / 2, textAnchor: x, verticalAnchor: "middle" }; return xn(xn({}, _), r ? { width: Math.max(_.x - r.x, 0), height: f } : {}); } if (o === "right") { var O = { x: s + c + v, y: l + f / 2, textAnchor: w, verticalAnchor: "middle" }; return xn(xn({}, O), r ? { width: Math.max(r.x + r.width - O.x, 0), height: f } : {}); } var P = r ? { width: c, height: f } : {}; return o === "insideLeft" ? xn({ x: s + v, y: l + f / 2, textAnchor: w, verticalAnchor: "middle" }, P) : o === "insideRight" ? xn({ x: s + c - v, y: l + f / 2, textAnchor: x, verticalAnchor: "middle" }, P) : o === "insideTop" ? xn({ x: s + c / 2, y: l + p, textAnchor: "middle", verticalAnchor: y }, P) : o === "insideBottom" ? xn({ x: s + c / 2, y: l + f - p, textAnchor: "middle", verticalAnchor: m }, P) : o === "insideTopLeft" ? xn({ x: s + v, y: l + p, textAnchor: w, verticalAnchor: y }, P) : o === "insideTopRight" ? xn({ x: s + c - v, y: l + p, textAnchor: x, verticalAnchor: y }, P) : o === "insideBottomLeft" ? xn({ x: s + v, y: l + f - p, textAnchor: w, verticalAnchor: m }, P) : o === "insideBottomRight" ? xn({ x: s + c - v, y: l + f - p, textAnchor: x, verticalAnchor: m }, P) : Vc(o) && (be(o.x) || Ss(o.x)) && (be(o.y) || Ss(o.y)) ? xn({ x: s + dr(o.x, c), y: l + dr(o.y, f), textAnchor: "end", verticalAnchor: "end" }, P) : xn({ x: s + c / 2, y: l + f / 2, textAnchor: "middle", verticalAnchor: "middle" }, P); }, $we = function(t) { return "cx" in t && be(t.cx); }; function Sn(e) { var t = e.offset, n = t === void 0 ? 5 : t, r = Swe(e, ywe), i = xn({ offset: n }, r), o = i.viewBox, a = i.position, s = i.value, l = i.children, c = i.content, f = i.className, d = f === void 0 ? "" : f, p = i.textBreakAll; if (!o || Ue(s) && Ue(l) && !/* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(c) && !ze(c)) return null; if (/* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(c)) return /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(c, i); var m; if (ze(c)) { if (m = /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)(c, i), /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(m)) return m; } else m = Cwe(i); var y = $we(o), g = Ee(i, !0); if (y && (a === "insideStart" || a === "insideEnd" || a === "end")) return kwe(i, m, g); var v = y ? Mwe(i) : Nwe(i); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Vs, Hf({ className: Xe("recharts-label", d) }, g, v, { breakAll: p }), m); } Sn.displayName = "Label"; var QF = function(t) { var n = t.cx, r = t.cy, i = t.angle, o = t.startAngle, a = t.endAngle, s = t.r, l = t.radius, c = t.innerRadius, f = t.outerRadius, d = t.x, p = t.y, m = t.top, y = t.left, g = t.width, v = t.height, x = t.clockWise, w = t.labelViewBox; if (w) return w; if (be(g) && be(v)) { if (be(d) && be(p)) return { x: d, y: p, width: g, height: v }; if (be(m) && be(y)) return { x: m, y, width: g, height: v }; } return be(d) && be(p) ? { x: d, y: p, width: 0, height: 0 } : be(n) && be(r) ? { cx: n, cy: r, startAngle: o || i || 0, endAngle: a || i || 0, innerRadius: c || 0, outerRadius: f || l || s || 0, clockWise: x } : t.viewBox ? t.viewBox : {}; }, Dwe = function(t, n) { return t ? t === !0 ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Sn, { key: "label-implicit", viewBox: n }) : On(t) ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Sn, { key: "label-implicit", viewBox: n, value: t }) : /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(t) ? t.type === Sn ? /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(t, { key: "label-implicit", viewBox: n }) : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Sn, { key: "label-implicit", content: t, viewBox: n }) : ze(t) ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Sn, { key: "label-implicit", content: t, viewBox: n }) : Vc(t) ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Sn, Hf({ viewBox: n }, t, { key: "label-implicit" })) : null : null; }, Iwe = function(t, n) { var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0; if (!t || !t.children && r && !t.label) return null; var i = t.children, o = QF(t), a = Vr(i, Sn).map(function(l, c) { return /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(l, { viewBox: n || o, // eslint-disable-next-line react/no-array-index-key key: "label-".concat(c) }); }); if (!r) return a; var s = Dwe(t.label, n || o); return [s].concat(vwe(a)); }; Sn.parseViewBox = QF; Sn.renderCallByParent = Iwe; function Rwe(e) { var t = e == null ? 0 : e.length; return t ? e[t - 1] : void 0; } var jwe = Rwe; const Lwe = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(jwe); function Kf(e) { "@babel/helpers - typeof"; return Kf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Kf(e); } var Bwe = ["valueAccessor"], Fwe = ["data", "dataKey", "clockWise", "id", "textBreakAll"]; function Wwe(e) { return Hwe(e) || Uwe(e) || Vwe(e) || zwe(); } function zwe() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function Vwe(e, t) { if (e) { if (typeof e == "string") return ow(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ow(e, t); } } function Uwe(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); } function Hwe(e) { if (Array.isArray(e)) return ow(e); } function ow(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } function Om() { return Om = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, Om.apply(this, arguments); } function nN(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function rN(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? nN(Object(n), !0).forEach(function(r) { Kwe(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : nN(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function Kwe(e, t, n) { return t = Gwe(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function Gwe(e) { var t = Ywe(e, "string"); return Kf(t) == "symbol" ? t : t + ""; } function Ywe(e, t) { if (Kf(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Kf(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function iN(e, t) { if (e == null) return {}; var n = qwe(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function qwe(e, t) { if (e == null) return {}; var n = {}; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { if (t.indexOf(r) >= 0) continue; n[r] = e[r]; } return n; } var Xwe = function(t) { return Array.isArray(t.value) ? Lwe(t.value) : t.value; }; function Ji(e) { var t = e.valueAccessor, n = t === void 0 ? Xwe : t, r = iN(e, Bwe), i = r.data, o = r.dataKey, a = r.clockWise, s = r.id, l = r.textBreakAll, c = iN(r, Fwe); return !i || !i.length ? null : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { className: "recharts-label-list" }, i.map(function(f, d) { var p = Ue(o) ? n(f, d) : cn(f && f.payload, o), m = Ue(s) ? {} : { id: "".concat(s, "-").concat(d) }; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Sn, Om({}, Ee(f, !0), c, m, { parentViewBox: f.parentViewBox, value: p, textBreakAll: l, viewBox: Sn.parseViewBox(Ue(a) ? f : rN(rN({}, f), {}, { clockWise: a })), key: "label-".concat(d), index: d })); })); } Ji.displayName = "LabelList"; function Zwe(e, t) { return e ? e === !0 ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Ji, { key: "labelList-implicit", data: t }) : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(e) || ze(e) ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Ji, { key: "labelList-implicit", data: t, content: e }) : Vc(e) ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Ji, Om({ data: t }, e, { key: "labelList-implicit" })) : null : null; } function Jwe(e, t) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0; if (!e || !e.children && n && !e.label) return null; var r = e.children, i = Vr(r, Ji).map(function(a, s) { return /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(a, { data: t, // eslint-disable-next-line react/no-array-index-key key: "labelList-".concat(s) }); }); if (!n) return i; var o = Zwe(e.label, t); return [o].concat(Wwe(i)); } Ji.renderCallByParent = Jwe; function Gf(e) { "@babel/helpers - typeof"; return Gf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Gf(e); } function aw() { return aw = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, aw.apply(this, arguments); } function oN(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function aN(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? oN(Object(n), !0).forEach(function(r) { Qwe(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : oN(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function Qwe(e, t, n) { return t = e1e(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function e1e(e) { var t = t1e(e, "string"); return Gf(t) == "symbol" ? t : t + ""; } function t1e(e, t) { if (Gf(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Gf(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var n1e = function(t, n) { var r = fr(n - t), i = Math.min(Math.abs(n - t), 359.999); return r * i; }, Zh = function(t) { var n = t.cx, r = t.cy, i = t.radius, o = t.angle, a = t.sign, s = t.isExternal, l = t.cornerRadius, c = t.cornerIsExternal, f = l * (s ? 1 : -1) + i, d = Math.asin(l / f) / Sm, p = c ? o : o + a * d, m = Bt(n, r, f, p), y = Bt(n, r, i, p), g = c ? o - a * d : o, v = Bt(n, r, f * Math.cos(d * Sm), g); return { center: m, circleTangency: y, lineTangency: v, theta: d }; }, eW = function(t) { var n = t.cx, r = t.cy, i = t.innerRadius, o = t.outerRadius, a = t.startAngle, s = t.endAngle, l = n1e(a, s), c = a + l, f = Bt(n, r, o, a), d = Bt(n, r, o, c), p = "M ".concat(f.x, ",").concat(f.y, ` A `).concat(o, ",").concat(o, `,0, `).concat(+(Math.abs(l) > 180), ",").concat(+(a > c), `, `).concat(d.x, ",").concat(d.y, ` `); if (i > 0) { var m = Bt(n, r, i, a), y = Bt(n, r, i, c); p += "L ".concat(y.x, ",").concat(y.y, ` A `).concat(i, ",").concat(i, `,0, `).concat(+(Math.abs(l) > 180), ",").concat(+(a <= c), `, `).concat(m.x, ",").concat(m.y, " Z"); } else p += "L ".concat(n, ",").concat(r, " Z"); return p; }, r1e = function(t) { var n = t.cx, r = t.cy, i = t.innerRadius, o = t.outerRadius, a = t.cornerRadius, s = t.forceCornerRadius, l = t.cornerIsExternal, c = t.startAngle, f = t.endAngle, d = fr(f - c), p = Zh({ cx: n, cy: r, radius: o, angle: c, sign: d, cornerRadius: a, cornerIsExternal: l }), m = p.circleTangency, y = p.lineTangency, g = p.theta, v = Zh({ cx: n, cy: r, radius: o, angle: f, sign: -d, cornerRadius: a, cornerIsExternal: l }), x = v.circleTangency, w = v.lineTangency, S = v.theta, A = l ? Math.abs(c - f) : Math.abs(c - f) - g - S; if (A < 0) return s ? "M ".concat(y.x, ",").concat(y.y, ` a`).concat(a, ",").concat(a, ",0,0,1,").concat(a * 2, `,0 a`).concat(a, ",").concat(a, ",0,0,1,").concat(-a * 2, `,0 `) : eW({ cx: n, cy: r, innerRadius: i, outerRadius: o, startAngle: c, endAngle: f }); var _ = "M ".concat(y.x, ",").concat(y.y, ` A`).concat(a, ",").concat(a, ",0,0,").concat(+(d < 0), ",").concat(m.x, ",").concat(m.y, ` A`).concat(o, ",").concat(o, ",0,").concat(+(A > 180), ",").concat(+(d < 0), ",").concat(x.x, ",").concat(x.y, ` A`).concat(a, ",").concat(a, ",0,0,").concat(+(d < 0), ",").concat(w.x, ",").concat(w.y, ` `); if (i > 0) { var O = Zh({ cx: n, cy: r, radius: i, angle: c, sign: d, isExternal: !0, cornerRadius: a, cornerIsExternal: l }), P = O.circleTangency, C = O.lineTangency, k = O.theta, I = Zh({ cx: n, cy: r, radius: i, angle: f, sign: -d, isExternal: !0, cornerRadius: a, cornerIsExternal: l }), $ = I.circleTangency, N = I.lineTangency, D = I.theta, j = l ? Math.abs(c - f) : Math.abs(c - f) - k - D; if (j < 0 && a === 0) return "".concat(_, "L").concat(n, ",").concat(r, "Z"); _ += "L".concat(N.x, ",").concat(N.y, ` A`).concat(a, ",").concat(a, ",0,0,").concat(+(d < 0), ",").concat($.x, ",").concat($.y, ` A`).concat(i, ",").concat(i, ",0,").concat(+(j > 180), ",").concat(+(d > 0), ",").concat(P.x, ",").concat(P.y, ` A`).concat(a, ",").concat(a, ",0,0,").concat(+(d < 0), ",").concat(C.x, ",").concat(C.y, "Z"); } else _ += "L".concat(n, ",").concat(r, "Z"); return _; }, i1e = { cx: 0, cy: 0, innerRadius: 0, outerRadius: 0, startAngle: 0, endAngle: 0, cornerRadius: 0, forceCornerRadius: !1, cornerIsExternal: !1 }, tW = function(t) { var n = aN(aN({}, i1e), t), r = n.cx, i = n.cy, o = n.innerRadius, a = n.outerRadius, s = n.cornerRadius, l = n.forceCornerRadius, c = n.cornerIsExternal, f = n.startAngle, d = n.endAngle, p = n.className; if (a < o || f === d) return null; var m = Xe("recharts-sector", p), y = a - o, g = dr(s, y, 0, !0), v; return g > 0 && Math.abs(f - d) < 360 ? v = r1e({ cx: r, cy: i, innerRadius: o, outerRadius: a, cornerRadius: Math.min(g, y / 2), forceCornerRadius: l, cornerIsExternal: c, startAngle: f, endAngle: d }) : v = eW({ cx: r, cy: i, innerRadius: o, outerRadius: a, startAngle: f, endAngle: d }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("path", aw({}, Ee(n, !0), { className: m, d: v, role: "img" })); }; function Yf(e) { "@babel/helpers - typeof"; return Yf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Yf(e); } function sw() { return sw = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, sw.apply(this, arguments); } function sN(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function lN(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? sN(Object(n), !0).forEach(function(r) { o1e(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : sN(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function o1e(e, t, n) { return t = a1e(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function a1e(e) { var t = s1e(e, "string"); return Yf(t) == "symbol" ? t : t + ""; } function s1e(e, t) { if (Yf(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Yf(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var cN = { curveBasisClosed: ole, curveBasisOpen: ale, curveBasis: ile, curveBumpX: Use, curveBumpY: Hse, curveLinearClosed: sle, curveLinear: ey, curveMonotoneX: lle, curveMonotoneY: cle, curveNatural: ule, curveStep: fle, curveStepAfter: hle, curveStepBefore: dle }, Jh = function(t) { return t.x === +t.x && t.y === +t.y; }, $u = function(t) { return t.x; }, Du = function(t) { return t.y; }, l1e = function(t, n) { if (ze(t)) return t; var r = "curve".concat(Jg(t)); return (r === "curveMonotone" || r === "curveBump") && n ? cN["".concat(r).concat(n === "vertical" ? "Y" : "X")] : cN[r] || ey; }, c1e = function(t) { var n = t.type, r = n === void 0 ? "linear" : n, i = t.points, o = i === void 0 ? [] : i, a = t.baseLine, s = t.layout, l = t.connectNulls, c = l === void 0 ? !1 : l, f = l1e(r, s), d = c ? o.filter(function(g) { return Jh(g); }) : o, p; if (Array.isArray(a)) { var m = c ? a.filter(function(g) { return Jh(g); }) : a, y = d.map(function(g, v) { return lN(lN({}, g), {}, { base: m[v] }); }); return s === "vertical" ? p = zh().y(Du).x1($u).x0(function(g) { return g.base.x; }) : p = zh().x($u).y1(Du).y0(function(g) { return g.base.y; }), p.defined(Jh).curve(f), p(y); } return s === "vertical" && be(a) ? p = zh().y(Du).x1($u).x0(a) : be(a) ? p = zh().x($u).y1(Du).y0(a) : p = qL().x($u).y(Du), p.defined(Jh).curve(f), p(d); }, Ds = function(t) { var n = t.className, r = t.points, i = t.path, o = t.pathRef; if ((!r || !r.length) && !i) return null; var a = r && r.length ? c1e(t) : i; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("path", sw({}, Ee(t, !1), Yp(t), { className: Xe("recharts-curve", n), d: a, ref: o })); }, lw = { exports: {} }, Qh = { exports: {} }, wt = {}; /** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var uN; function u1e() { if (uN) return wt; uN = 1; var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119; function S(_) { if (typeof _ == "object" && _ !== null) { var O = _.$$typeof; switch (O) { case t: switch (_ = _.type, _) { case l: case c: case r: case o: case i: case d: return _; default: switch (_ = _ && _.$$typeof, _) { case s: case f: case y: case m: case a: return _; default: return O; } } case n: return O; } } } function A(_) { return S(_) === c; } return wt.AsyncMode = l, wt.ConcurrentMode = c, wt.ContextConsumer = s, wt.ContextProvider = a, wt.Element = t, wt.ForwardRef = f, wt.Fragment = r, wt.Lazy = y, wt.Memo = m, wt.Portal = n, wt.Profiler = o, wt.StrictMode = i, wt.Suspense = d, wt.isAsyncMode = function(_) { return A(_) || S(_) === l; }, wt.isConcurrentMode = A, wt.isContextConsumer = function(_) { return S(_) === s; }, wt.isContextProvider = function(_) { return S(_) === a; }, wt.isElement = function(_) { return typeof _ == "object" && _ !== null && _.$$typeof === t; }, wt.isForwardRef = function(_) { return S(_) === f; }, wt.isFragment = function(_) { return S(_) === r; }, wt.isLazy = function(_) { return S(_) === y; }, wt.isMemo = function(_) { return S(_) === m; }, wt.isPortal = function(_) { return S(_) === n; }, wt.isProfiler = function(_) { return S(_) === o; }, wt.isStrictMode = function(_) { return S(_) === i; }, wt.isSuspense = function(_) { return S(_) === d; }, wt.isValidElementType = function(_) { return typeof _ == "string" || typeof _ == "function" || _ === r || _ === c || _ === o || _ === i || _ === d || _ === p || typeof _ == "object" && _ !== null && (_.$$typeof === y || _.$$typeof === m || _.$$typeof === a || _.$$typeof === s || _.$$typeof === f || _.$$typeof === v || _.$$typeof === x || _.$$typeof === w || _.$$typeof === g); }, wt.typeOf = S, wt; } var _t = {}; /** @license React v16.13.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var fN; function f1e() { return fN || (fN = 1, true && function() { var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, y = e ? Symbol.for("react.lazy") : 60116, g = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, x = e ? Symbol.for("react.responder") : 60118, w = e ? Symbol.for("react.scope") : 60119; function S(X) { return typeof X == "string" || typeof X == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. X === r || X === c || X === o || X === i || X === d || X === p || typeof X == "object" && X !== null && (X.$$typeof === y || X.$$typeof === m || X.$$typeof === a || X.$$typeof === s || X.$$typeof === f || X.$$typeof === v || X.$$typeof === x || X.$$typeof === w || X.$$typeof === g); } function A(X) { if (typeof X == "object" && X !== null) { var $e = X.$$typeof; switch ($e) { case t: var de = X.type; switch (de) { case l: case c: case r: case o: case i: case d: return de; default: var ke = de && de.$$typeof; switch (ke) { case s: case f: case y: case m: case a: return ke; default: return $e; } } case n: return $e; } } } var _ = l, O = c, P = s, C = a, k = t, I = f, $ = r, N = y, D = m, j = n, F = o, W = i, z = d, H = !1; function U(X) { return H || (H = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), V(X) || A(X) === l; } function V(X) { return A(X) === c; } function Y(X) { return A(X) === s; } function Q(X) { return A(X) === a; } function ne(X) { return typeof X == "object" && X !== null && X.$$typeof === t; } function re(X) { return A(X) === f; } function ce(X) { return A(X) === r; } function oe(X) { return A(X) === y; } function fe(X) { return A(X) === m; } function ae(X) { return A(X) === n; } function ee(X) { return A(X) === o; } function se(X) { return A(X) === i; } function ge(X) { return A(X) === d; } _t.AsyncMode = _, _t.ConcurrentMode = O, _t.ContextConsumer = P, _t.ContextProvider = C, _t.Element = k, _t.ForwardRef = I, _t.Fragment = $, _t.Lazy = N, _t.Memo = D, _t.Portal = j, _t.Profiler = F, _t.StrictMode = W, _t.Suspense = z, _t.isAsyncMode = U, _t.isConcurrentMode = V, _t.isContextConsumer = Y, _t.isContextProvider = Q, _t.isElement = ne, _t.isForwardRef = re, _t.isFragment = ce, _t.isLazy = oe, _t.isMemo = fe, _t.isPortal = ae, _t.isProfiler = ee, _t.isStrictMode = se, _t.isSuspense = ge, _t.isValidElementType = S, _t.typeOf = A; }()), _t; } var dN; function nW() { return dN || (dN = 1, false ? 0 : Qh.exports = f1e()), Qh.exports; } /* object-assign (c) Sindre Sorhus @license MIT */ var Zb, hN; function d1e() { if (hN) return Zb; hN = 1; var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable; function r(o) { if (o == null) throw new TypeError("Object.assign cannot be called with null or undefined"); return Object(o); } function i() { try { if (!Object.assign) return !1; var o = new String("abc"); if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5") return !1; for (var a = {}, s = 0; s < 10; s++) a["_" + String.fromCharCode(s)] = s; var l = Object.getOwnPropertyNames(a).map(function(f) { return a[f]; }); if (l.join("") !== "0123456789") return !1; var c = {}; return "abcdefghijklmnopqrst".split("").forEach(function(f) { c[f] = f; }), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst"; } catch { return !1; } } return Zb = i() ? Object.assign : function(o, a) { for (var s, l = r(o), c, f = 1; f < arguments.length; f++) { s = Object(arguments[f]); for (var d in s) t.call(s, d) && (l[d] = s[d]); if (e) { c = e(s); for (var p = 0; p < c.length; p++) n.call(s, c[p]) && (l[c[p]] = s[c[p]]); } } return l; }, Zb; } var Jb, pN; function CS() { if (pN) return Jb; pN = 1; var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; return Jb = e, Jb; } var Qb, mN; function rW() { return mN || (mN = 1, Qb = Function.call.bind(Object.prototype.hasOwnProperty)), Qb; } var e0, gN; function h1e() { if (gN) return e0; gN = 1; var e = function() { }; if (true) { var t = CS(), n = {}, r = rW(); e = function(o) { var a = "Warning: " + o; typeof console < "u" && console.error(a); try { throw new Error(a); } catch { } }; } function i(o, a, s, l, c) { if (true) { for (var f in o) if (r(o, f)) { var d; try { if (typeof o[f] != "function") { var p = Error( (l || "React class") + ": " + s + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." ); throw p.name = "Invariant Violation", p; } d = o[f](a, f, l, s, null, t); } catch (y) { d = y; } if (d && !(d instanceof Error) && e( (l || "React class") + ": type specification of " + s + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)." ), d instanceof Error && !(d.message in n)) { n[d.message] = !0; var m = c ? c() : ""; e( "Failed " + s + " type: " + d.message + (m ?? "") ); } } } } return i.resetWarningCache = function() { true && (n = {}); }, e0 = i, e0; } var t0, yN; function p1e() { if (yN) return t0; yN = 1; var e = nW(), t = d1e(), n = CS(), r = rW(), i = h1e(), o = function() { }; true && (o = function(s) { var l = "Warning: " + s; typeof console < "u" && console.error(l); try { throw new Error(l); } catch { } }); function a() { return null; } return t0 = function(s, l) { var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator"; function d(V) { var Y = V && (c && V[c] || V[f]); if (typeof Y == "function") return Y; } var p = "<<anonymous>>", m = { array: x("array"), bigint: x("bigint"), bool: x("boolean"), func: x("function"), number: x("number"), object: x("object"), string: x("string"), symbol: x("symbol"), any: w(), arrayOf: S, element: A(), elementType: _(), instanceOf: O, node: I(), objectOf: C, oneOf: P, oneOfType: k, shape: N, exact: D }; function y(V, Y) { return V === Y ? V !== 0 || 1 / V === 1 / Y : V !== V && Y !== Y; } function g(V, Y) { this.message = V, this.data = Y && typeof Y == "object" ? Y : {}, this.stack = ""; } g.prototype = Error.prototype; function v(V) { if (true) var Y = {}, Q = 0; function ne(ce, oe, fe, ae, ee, se, ge) { if (ae = ae || p, se = se || fe, ge !== n) { if (l) { var X = 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 X.name = "Invariant Violation", X; } else if ( true && typeof console < "u") { var $e = ae + ":" + fe; !Y[$e] && // Avoid spamming the console because they are often not actionable except for lib authors Q < 3 && (o( "You are manually calling a React.PropTypes validation function for the `" + se + "` prop on `" + ae + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details." ), Y[$e] = !0, Q++); } } return oe[fe] == null ? ce ? oe[fe] === null ? new g("The " + ee + " `" + se + "` is marked as required " + ("in `" + ae + "`, but its value is `null`.")) : new g("The " + ee + " `" + se + "` is marked as required in " + ("`" + ae + "`, but its value is `undefined`.")) : null : V(oe, fe, ae, ee, se); } var re = ne.bind(null, !1); return re.isRequired = ne.bind(null, !0), re; } function x(V) { function Y(Q, ne, re, ce, oe, fe) { var ae = Q[ne], ee = W(ae); if (ee !== V) { var se = z(ae); return new g( "Invalid " + ce + " `" + oe + "` of type " + ("`" + se + "` supplied to `" + re + "`, expected ") + ("`" + V + "`."), { expectedType: V } ); } return null; } return v(Y); } function w() { return v(a); } function S(V) { function Y(Q, ne, re, ce, oe) { if (typeof V != "function") return new g("Property `" + oe + "` of component `" + re + "` has invalid PropType notation inside arrayOf."); var fe = Q[ne]; if (!Array.isArray(fe)) { var ae = W(fe); return new g("Invalid " + ce + " `" + oe + "` of type " + ("`" + ae + "` supplied to `" + re + "`, expected an array.")); } for (var ee = 0; ee < fe.length; ee++) { var se = V(fe, ee, re, ce, oe + "[" + ee + "]", n); if (se instanceof Error) return se; } return null; } return v(Y); } function A() { function V(Y, Q, ne, re, ce) { var oe = Y[Q]; if (!s(oe)) { var fe = W(oe); return new g("Invalid " + re + " `" + ce + "` of type " + ("`" + fe + "` supplied to `" + ne + "`, expected a single ReactElement.")); } return null; } return v(V); } function _() { function V(Y, Q, ne, re, ce) { var oe = Y[Q]; if (!e.isValidElementType(oe)) { var fe = W(oe); return new g("Invalid " + re + " `" + ce + "` of type " + ("`" + fe + "` supplied to `" + ne + "`, expected a single ReactElement type.")); } return null; } return v(V); } function O(V) { function Y(Q, ne, re, ce, oe) { if (!(Q[ne] instanceof V)) { var fe = V.name || p, ae = U(Q[ne]); return new g("Invalid " + ce + " `" + oe + "` of type " + ("`" + ae + "` supplied to `" + re + "`, expected ") + ("instance of `" + fe + "`.")); } return null; } return v(Y); } function P(V) { if (!Array.isArray(V)) return true && (arguments.length > 1 ? o( "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])." ) : o("Invalid argument supplied to oneOf, expected an array.")), a; function Y(Q, ne, re, ce, oe) { for (var fe = Q[ne], ae = 0; ae < V.length; ae++) if (y(fe, V[ae])) return null; var ee = JSON.stringify(V, function(ge, X) { var $e = z(X); return $e === "symbol" ? String(X) : X; }); return new g("Invalid " + ce + " `" + oe + "` of value `" + String(fe) + "` " + ("supplied to `" + re + "`, expected one of " + ee + ".")); } return v(Y); } function C(V) { function Y(Q, ne, re, ce, oe) { if (typeof V != "function") return new g("Property `" + oe + "` of component `" + re + "` has invalid PropType notation inside objectOf."); var fe = Q[ne], ae = W(fe); if (ae !== "object") return new g("Invalid " + ce + " `" + oe + "` of type " + ("`" + ae + "` supplied to `" + re + "`, expected an object.")); for (var ee in fe) if (r(fe, ee)) { var se = V(fe, ee, re, ce, oe + "." + ee, n); if (se instanceof Error) return se; } return null; } return v(Y); } function k(V) { if (!Array.isArray(V)) return true && o("Invalid argument supplied to oneOfType, expected an instance of array."), a; for (var Y = 0; Y < V.length; Y++) { var Q = V[Y]; if (typeof Q != "function") return o( "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + H(Q) + " at index " + Y + "." ), a; } function ne(re, ce, oe, fe, ae) { for (var ee = [], se = 0; se < V.length; se++) { var ge = V[se], X = ge(re, ce, oe, fe, ae, n); if (X == null) return null; X.data && r(X.data, "expectedType") && ee.push(X.data.expectedType); } var $e = ee.length > 0 ? ", expected one of type [" + ee.join(", ") + "]" : ""; return new g("Invalid " + fe + " `" + ae + "` supplied to " + ("`" + oe + "`" + $e + ".")); } return v(ne); } function I() { function V(Y, Q, ne, re, ce) { return j(Y[Q]) ? null : new g("Invalid " + re + " `" + ce + "` supplied to " + ("`" + ne + "`, expected a ReactNode.")); } return v(V); } function $(V, Y, Q, ne, re) { return new g( (V || "React class") + ": " + Y + " type `" + Q + "." + ne + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + re + "`." ); } function N(V) { function Y(Q, ne, re, ce, oe) { var fe = Q[ne], ae = W(fe); if (ae !== "object") return new g("Invalid " + ce + " `" + oe + "` of type `" + ae + "` " + ("supplied to `" + re + "`, expected `object`.")); for (var ee in V) { var se = V[ee]; if (typeof se != "function") return $(re, ce, oe, ee, z(se)); var ge = se(fe, ee, re, ce, oe + "." + ee, n); if (ge) return ge; } return null; } return v(Y); } function D(V) { function Y(Q, ne, re, ce, oe) { var fe = Q[ne], ae = W(fe); if (ae !== "object") return new g("Invalid " + ce + " `" + oe + "` of type `" + ae + "` " + ("supplied to `" + re + "`, expected `object`.")); var ee = t({}, Q[ne], V); for (var se in ee) { var ge = V[se]; if (r(V, se) && typeof ge != "function") return $(re, ce, oe, se, z(ge)); if (!ge) return new g( "Invalid " + ce + " `" + oe + "` key `" + se + "` supplied to `" + re + "`.\nBad object: " + JSON.stringify(Q[ne], null, " ") + ` Valid keys: ` + JSON.stringify(Object.keys(V), null, " ") ); var X = ge(fe, se, re, ce, oe + "." + se, n); if (X) return X; } return null; } return v(Y); } function j(V) { switch (typeof V) { case "number": case "string": case "undefined": return !0; case "boolean": return !V; case "object": if (Array.isArray(V)) return V.every(j); if (V === null || s(V)) return !0; var Y = d(V); if (Y) { var Q = Y.call(V), ne; if (Y !== V.entries) { for (; !(ne = Q.next()).done; ) if (!j(ne.value)) return !1; } else for (; !(ne = Q.next()).done; ) { var re = ne.value; if (re && !j(re[1])) return !1; } } else return !1; return !0; default: return !1; } } function F(V, Y) { return V === "symbol" ? !0 : Y ? Y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && Y instanceof Symbol : !1; } function W(V) { var Y = typeof V; return Array.isArray(V) ? "array" : V instanceof RegExp ? "object" : F(Y, V) ? "symbol" : Y; } function z(V) { if (typeof V > "u" || V === null) return "" + V; var Y = W(V); if (Y === "object") { if (V instanceof Date) return "date"; if (V instanceof RegExp) return "regexp"; } return Y; } function H(V) { var Y = z(V); switch (Y) { case "array": case "object": return "an " + Y; case "boolean": case "date": case "regexp": return "a " + Y; default: return Y; } } function U(V) { return !V.constructor || !V.constructor.name ? p : V.constructor.name; } return m.checkPropTypes = i, m.resetWarningCache = i.resetWarningCache, m.PropTypes = m, m; }, t0; } var n0, vN; function m1e() { if (vN) return n0; vN = 1; var e = CS(); function t() { } function n() { } return n.resetWarningCache = t, n0 = function() { function r(a, s, l, c, f, d) { if (d !== e) { var p = 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 p.name = "Invariant Violation", p; } } r.isRequired = r; function i() { return r; } var o = { array: r, bigint: r, bool: r, func: r, number: r, object: r, string: r, symbol: r, any: r, arrayOf: i, element: r, elementType: r, instanceOf: i, node: r, objectOf: i, oneOf: i, oneOfType: i, shape: i, exact: i, checkPropTypes: n, resetWarningCache: t }; return o.PropTypes = o, o; }, n0; } if (true) { var g1e = nW(), y1e = !0; lw.exports = p1e()(g1e.isElement, y1e); } else // removed by dead control flow {} var v1e = lw.exports; const Qe = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(v1e); var b1e = Object.getOwnPropertyNames, x1e = Object.getOwnPropertySymbols, w1e = Object.prototype.hasOwnProperty; function bN(e, t) { return function(r, i, o) { return e(r, i, o) && t(r, i, o); }; } function ep(e) { return function(n, r, i) { if (!n || !r || typeof n != "object" || typeof r != "object") return e(n, r, i); var o = i.cache, a = o.get(n), s = o.get(r); if (a && s) return a === r && s === n; o.set(n, r), o.set(r, n); var l = e(n, r, i); return o.delete(n), o.delete(r), l; }; } function xN(e) { return b1e(e).concat(x1e(e)); } var iW = Object.hasOwn || function(e, t) { return w1e.call(e, t); }; function eu(e, t) { return e || t ? e === t : e === t || e !== e && t !== t; } var oW = "_owner", wN = Object.getOwnPropertyDescriptor, _N = Object.keys; function _1e(e, t, n) { var r = e.length; if (t.length !== r) return !1; for (; r-- > 0; ) if (!n.equals(e[r], t[r], r, r, e, t, n)) return !1; return !0; } function S1e(e, t) { return eu(e.getTime(), t.getTime()); } function SN(e, t, n) { if (e.size !== t.size) return !1; for (var r = {}, i = e.entries(), o = 0, a, s; (a = i.next()) && !a.done; ) { for (var l = t.entries(), c = !1, f = 0; (s = l.next()) && !s.done; ) { var d = a.value, p = d[0], m = d[1], y = s.value, g = y[0], v = y[1]; !c && !r[f] && (c = n.equals(p, g, o, f, e, t, n) && n.equals(m, v, p, g, e, t, n)) && (r[f] = !0), f++; } if (!c) return !1; o++; } return !0; } function O1e(e, t, n) { var r = _N(e), i = r.length; if (_N(t).length !== i) return !1; for (var o; i-- > 0; ) if (o = r[i], o === oW && (e.$$typeof || t.$$typeof) && e.$$typeof !== t.$$typeof || !iW(t, o) || !n.equals(e[o], t[o], o, o, e, t, n)) return !1; return !0; } function Iu(e, t, n) { var r = xN(e), i = r.length; if (xN(t).length !== i) return !1; for (var o, a, s; i-- > 0; ) if (o = r[i], o === oW && (e.$$typeof || t.$$typeof) && e.$$typeof !== t.$$typeof || !iW(t, o) || !n.equals(e[o], t[o], o, o, e, t, n) || (a = wN(e, o), s = wN(t, o), (a || s) && (!a || !s || a.configurable !== s.configurable || a.enumerable !== s.enumerable || a.writable !== s.writable))) return !1; return !0; } function A1e(e, t) { return eu(e.valueOf(), t.valueOf()); } function T1e(e, t) { return e.source === t.source && e.flags === t.flags; } function ON(e, t, n) { if (e.size !== t.size) return !1; for (var r = {}, i = e.values(), o, a; (o = i.next()) && !o.done; ) { for (var s = t.values(), l = !1, c = 0; (a = s.next()) && !a.done; ) !l && !r[c] && (l = n.equals(o.value, a.value, o.value, a.value, e, t, n)) && (r[c] = !0), c++; if (!l) return !1; } return !0; } function P1e(e, t) { var n = e.length; if (t.length !== n) return !1; for (; n-- > 0; ) if (e[n] !== t[n]) return !1; return !0; } var C1e = "[object Arguments]", E1e = "[object Boolean]", k1e = "[object Date]", M1e = "[object Map]", N1e = "[object Number]", $1e = "[object Object]", D1e = "[object RegExp]", I1e = "[object Set]", R1e = "[object String]", j1e = Array.isArray, AN = typeof ArrayBuffer == "function" && ArrayBuffer.isView ? ArrayBuffer.isView : null, TN = Object.assign, L1e = Object.prototype.toString.call.bind(Object.prototype.toString); function B1e(e) { var t = e.areArraysEqual, n = e.areDatesEqual, r = e.areMapsEqual, i = e.areObjectsEqual, o = e.arePrimitiveWrappersEqual, a = e.areRegExpsEqual, s = e.areSetsEqual, l = e.areTypedArraysEqual; return function(f, d, p) { if (f === d) return !0; if (f == null || d == null || typeof f != "object" || typeof d != "object") return f !== f && d !== d; var m = f.constructor; if (m !== d.constructor) return !1; if (m === Object) return i(f, d, p); if (j1e(f)) return t(f, d, p); if (AN != null && AN(f)) return l(f, d, p); if (m === Date) return n(f, d, p); if (m === RegExp) return a(f, d, p); if (m === Map) return r(f, d, p); if (m === Set) return s(f, d, p); var y = L1e(f); return y === k1e ? n(f, d, p) : y === D1e ? a(f, d, p) : y === M1e ? r(f, d, p) : y === I1e ? s(f, d, p) : y === $1e ? typeof f.then != "function" && typeof d.then != "function" && i(f, d, p) : y === C1e ? i(f, d, p) : y === E1e || y === N1e || y === R1e ? o(f, d, p) : !1; }; } function F1e(e) { var t = e.circular, n = e.createCustomConfig, r = e.strict, i = { areArraysEqual: r ? Iu : _1e, areDatesEqual: S1e, areMapsEqual: r ? bN(SN, Iu) : SN, areObjectsEqual: r ? Iu : O1e, arePrimitiveWrappersEqual: A1e, areRegExpsEqual: T1e, areSetsEqual: r ? bN(ON, Iu) : ON, areTypedArraysEqual: r ? Iu : P1e }; if (n && (i = TN({}, i, n(i))), t) { var o = ep(i.areArraysEqual), a = ep(i.areMapsEqual), s = ep(i.areObjectsEqual), l = ep(i.areSetsEqual); i = TN({}, i, { areArraysEqual: o, areMapsEqual: a, areObjectsEqual: s, areSetsEqual: l }); } return i; } function W1e(e) { return function(t, n, r, i, o, a, s) { return e(t, n, s); }; } function z1e(e) { var t = e.circular, n = e.comparator, r = e.createState, i = e.equals, o = e.strict; if (r) return function(l, c) { var f = r(), d = f.cache, p = d === void 0 ? t ? /* @__PURE__ */ new WeakMap() : void 0 : d, m = f.meta; return n(l, c, { cache: p, equals: i, meta: m, strict: o }); }; if (t) return function(l, c) { return n(l, c, { cache: /* @__PURE__ */ new WeakMap(), equals: i, meta: void 0, strict: o }); }; var a = { cache: void 0, equals: i, meta: void 0, strict: o }; return function(l, c) { return n(l, c, a); }; } var V1e = qa(); qa({ strict: !0 }); qa({ circular: !0 }); qa({ circular: !0, strict: !0 }); qa({ createInternalComparator: function() { return eu; } }); qa({ strict: !0, createInternalComparator: function() { return eu; } }); qa({ circular: !0, createInternalComparator: function() { return eu; } }); qa({ circular: !0, createInternalComparator: function() { return eu; }, strict: !0 }); function qa(e) { e === void 0 && (e = {}); var t = e.circular, n = t === void 0 ? !1 : t, r = e.createInternalComparator, i = e.createState, o = e.strict, a = o === void 0 ? !1 : o, s = F1e(e), l = B1e(s), c = r ? r(l) : W1e(l); return z1e({ circular: n, comparator: l, createState: i, equals: c, strict: a }); } function U1e(e) { typeof requestAnimationFrame < "u" && requestAnimationFrame(e); } function PN(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = -1, r = function i(o) { n < 0 && (n = o), o - n > t ? (e(o), n = -1) : U1e(i); }; requestAnimationFrame(r); } function cw(e) { "@babel/helpers - typeof"; return cw = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, cw(e); } function H1e(e) { return q1e(e) || Y1e(e) || G1e(e) || K1e(); } function K1e() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function G1e(e, t) { if (e) { if (typeof e == "string") return CN(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return CN(e, t); } } function CN(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } function Y1e(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); } function q1e(e) { if (Array.isArray(e)) return e; } function X1e() { var e = {}, t = function() { return null; }, n = !1, r = function i(o) { if (!n) { if (Array.isArray(o)) { if (!o.length) return; var a = o, s = H1e(a), l = s[0], c = s.slice(1); if (typeof l == "number") { PN(i.bind(null, c), l); return; } i(l), PN(i.bind(null, c)); return; } cw(o) === "object" && (e = o, t(e)), typeof o == "function" && o(); } }; return { stop: function() { n = !0; }, start: function(o) { n = !1, r(o); }, subscribe: function(o) { return t = o, function() { t = function() { return null; }; }; } }; } function qf(e) { "@babel/helpers - typeof"; return qf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, qf(e); } function EN(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function kN(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? EN(Object(n), !0).forEach(function(r) { aW(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : EN(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function aW(e, t, n) { return t = Z1e(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function Z1e(e) { var t = J1e(e, "string"); return qf(t) === "symbol" ? t : String(t); } function J1e(e, t) { if (qf(e) !== "object" || e === null) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (qf(r) !== "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var Q1e = function(t, n) { return [Object.keys(t), Object.keys(n)].reduce(function(r, i) { return r.filter(function(o) { return i.includes(o); }); }); }, e_e = function(t) { return t; }, t_e = function(t) { return t.replace(/([A-Z])/g, function(n) { return "-".concat(n.toLowerCase()); }); }, of = function(t, n) { return Object.keys(n).reduce(function(r, i) { return kN(kN({}, r), {}, aW({}, i, t(i, n[i]))); }, {}); }, MN = function(t, n, r) { return t.map(function(i) { return "".concat(t_e(i), " ").concat(n, "ms ").concat(r); }).join(","); }, n_e = "development" !== "production", Am = function(t, n, r, i, o, a, s, l) { if (n_e && typeof console < "u" && console.warn && (n === void 0 && console.warn("LogUtils requires an error message argument"), !t)) if (n === void 0) console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."); else { var c = [r, i, o, a, s, l], f = 0; console.warn(n.replace(/%s/g, function() { return c[f++]; })); } }; function r_e(e, t) { return a_e(e) || o_e(e, t) || sW(e, t) || i_e(); } function i_e() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function o_e(e, t) { var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; if (n != null) { var r, i, o, a, s = [], l = !0, c = !1; try { if (o = (n = n.call(e)).next, t !== 0) for (; !(l = (r = o.call(n)).done) && (s.push(r.value), s.length !== t); l = !0) ; } catch (f) { c = !0, i = f; } finally { try { if (!l && n.return != null && (a = n.return(), Object(a) !== a)) return; } finally { if (c) throw i; } } return s; } } function a_e(e) { if (Array.isArray(e)) return e; } function s_e(e) { return u_e(e) || c_e(e) || sW(e) || l_e(); } function l_e() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function sW(e, t) { if (e) { if (typeof e == "string") return uw(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return uw(e, t); } } function c_e(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); } function u_e(e) { if (Array.isArray(e)) return uw(e); } function uw(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } var Tm = 1e-4, lW = function(t, n) { return [0, 3 * t, 3 * n - 6 * t, 3 * t - 3 * n + 1]; }, cW = function(t, n) { return t.map(function(r, i) { return r * Math.pow(n, i); }).reduce(function(r, i) { return r + i; }); }, NN = function(t, n) { return function(r) { var i = lW(t, n); return cW(i, r); }; }, f_e = function(t, n) { return function(r) { var i = lW(t, n), o = [].concat(s_e(i.map(function(a, s) { return a * s; }).slice(1)), [0]); return cW(o, r); }; }, $N = function() { for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r]; var i = n[0], o = n[1], a = n[2], s = n[3]; if (n.length === 1) switch (n[0]) { case "linear": i = 0, o = 0, a = 1, s = 1; break; case "ease": i = 0.25, o = 0.1, a = 0.25, s = 1; break; case "ease-in": i = 0.42, o = 0, a = 1, s = 1; break; case "ease-out": i = 0.42, o = 0, a = 0.58, s = 1; break; case "ease-in-out": i = 0, o = 0, a = 0.58, s = 1; break; default: { var l = n[0].split("("); if (l[0] === "cubic-bezier" && l[1].split(")")[0].split(",").length === 4) { var c = l[1].split(")")[0].split(",").map(function(v) { return parseFloat(v); }), f = r_e(c, 4); i = f[0], o = f[1], a = f[2], s = f[3]; } else Am(!1, "[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s", n); } } Am([i, a, o, s].every(function(v) { return typeof v == "number" && v >= 0 && v <= 1; }), "[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s", n); var d = NN(i, a), p = NN(o, s), m = f_e(i, a), y = function(x) { return x > 1 ? 1 : x < 0 ? 0 : x; }, g = function(x) { for (var w = x > 1 ? 1 : x, S = w, A = 0; A < 8; ++A) { var _ = d(S) - w, O = m(S); if (Math.abs(_ - w) < Tm || O < Tm) return p(S); S = y(S - _ / O); } return p(S); }; return g.isStepper = !1, g; }, d_e = function() { var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = t.stiff, r = n === void 0 ? 100 : n, i = t.damping, o = i === void 0 ? 8 : i, a = t.dt, s = a === void 0 ? 17 : a, l = function(f, d, p) { var m = -(f - d) * r, y = p * o, g = p + (m - y) * s / 1e3, v = p * s / 1e3 + f; return Math.abs(v - d) < Tm && Math.abs(g) < Tm ? [d, 0] : [v, g]; }; return l.isStepper = !0, l.dt = s, l; }, h_e = function() { for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r]; var i = n[0]; if (typeof i == "string") switch (i) { case "ease": case "ease-in-out": case "ease-out": case "ease-in": case "linear": return $N(i); case "spring": return d_e(); default: if (i.split("(")[0] === "cubic-bezier") return $N(i); Am(!1, "[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s", n); } return typeof i == "function" ? i : (Am(!1, "[configEasing]: first argument type should be function or string, instead received %s", n), null); }; function Xf(e) { "@babel/helpers - typeof"; return Xf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Xf(e); } function DN(e) { return g_e(e) || m_e(e) || uW(e) || p_e(); } function p_e() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function m_e(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); } function g_e(e) { if (Array.isArray(e)) return dw(e); } function IN(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function Wn(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? IN(Object(n), !0).forEach(function(r) { fw(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : IN(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function fw(e, t, n) { return t = y_e(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function y_e(e) { var t = v_e(e, "string"); return Xf(t) === "symbol" ? t : String(t); } function v_e(e, t) { if (Xf(e) !== "object" || e === null) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Xf(r) !== "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function b_e(e, t) { return __e(e) || w_e(e, t) || uW(e, t) || x_e(); } function x_e() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function uW(e, t) { if (e) { if (typeof e == "string") return dw(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return dw(e, t); } } function dw(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } function w_e(e, t) { var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; if (n != null) { var r, i, o, a, s = [], l = !0, c = !1; try { if (o = (n = n.call(e)).next, t !== 0) for (; !(l = (r = o.call(n)).done) && (s.push(r.value), s.length !== t); l = !0) ; } catch (f) { c = !0, i = f; } finally { try { if (!l && n.return != null && (a = n.return(), Object(a) !== a)) return; } finally { if (c) throw i; } } return s; } } function __e(e) { if (Array.isArray(e)) return e; } var Pm = function(t, n, r) { return t + (n - t) * r; }, hw = function(t) { var n = t.from, r = t.to; return n !== r; }, S_e = function e(t, n, r) { var i = of(function(o, a) { if (hw(a)) { var s = t(a.from, a.to, a.velocity), l = b_e(s, 2), c = l[0], f = l[1]; return Wn(Wn({}, a), {}, { from: c, velocity: f }); } return a; }, n); return r < 1 ? of(function(o, a) { return hw(a) ? Wn(Wn({}, a), {}, { velocity: Pm(a.velocity, i[o].velocity, r), from: Pm(a.from, i[o].from, r) }) : a; }, n) : e(t, i, r - 1); }; const O_e = function(e, t, n, r, i) { var o = Q1e(e, t), a = o.reduce(function(v, x) { return Wn(Wn({}, v), {}, fw({}, x, [e[x], t[x]])); }, {}), s = o.reduce(function(v, x) { return Wn(Wn({}, v), {}, fw({}, x, { from: e[x], velocity: 0, to: t[x] })); }, {}), l = -1, c, f, d = function() { return null; }, p = function() { return of(function(x, w) { return w.from; }, s); }, m = function() { return !Object.values(s).filter(hw).length; }, y = function(x) { c || (c = x); var w = x - c, S = w / n.dt; s = S_e(n, s, S), i(Wn(Wn(Wn({}, e), t), p())), c = x, m() || (l = requestAnimationFrame(d)); }, g = function(x) { f || (f = x); var w = (x - f) / r, S = of(function(_, O) { return Pm.apply(void 0, DN(O).concat([n(w)])); }, a); if (i(Wn(Wn(Wn({}, e), t), S)), w < 1) l = requestAnimationFrame(d); else { var A = of(function(_, O) { return Pm.apply(void 0, DN(O).concat([n(1)])); }, a); i(Wn(Wn(Wn({}, e), t), A)); } }; return d = n.isStepper ? y : g, function() { return requestAnimationFrame(d), function() { cancelAnimationFrame(l); }; }; }; function pc(e) { "@babel/helpers - typeof"; return pc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, pc(e); } var A_e = ["children", "begin", "duration", "attributeName", "easing", "isActive", "steps", "from", "to", "canBegin", "onAnimationEnd", "shouldReAnimate", "onAnimationReStart"]; function T_e(e, t) { if (e == null) return {}; var n = P_e(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function P_e(e, t) { if (e == null) return {}; var n = {}, r = Object.keys(e), i, o; for (o = 0; o < r.length; o++) i = r[o], !(t.indexOf(i) >= 0) && (n[i] = e[i]); return n; } function r0(e) { return M_e(e) || k_e(e) || E_e(e) || C_e(); } function C_e() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function E_e(e, t) { if (e) { if (typeof e == "string") return pw(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return pw(e, t); } } function k_e(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); } function M_e(e) { if (Array.isArray(e)) return pw(e); } function pw(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } function RN(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function wi(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? RN(Object(n), !0).forEach(function(r) { Vu(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : RN(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function Vu(e, t, n) { return t = fW(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function N_e(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function $_e(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, fW(r.key), r); } } function D_e(e, t, n) { return t && $_e(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function fW(e) { var t = I_e(e, "string"); return pc(t) === "symbol" ? t : String(t); } function I_e(e, t) { if (pc(e) !== "object" || e === null) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (pc(r) !== "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function R_e(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && mw(e, t); } function mw(e, t) { return mw = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { return r.__proto__ = i, r; }, mw(e, t); } function j_e(e) { var t = L_e(); return function() { var r = Cm(e), i; if (t) { var o = Cm(this).constructor; i = Reflect.construct(r, arguments, o); } else i = r.apply(this, arguments); return gw(this, i); }; } function gw(e, t) { if (t && (pc(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return yw(e); } function yw(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function L_e() { if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1; if (typeof Proxy == "function") return !0; try { return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })), !0; } catch { return !1; } } function Cm(e) { return Cm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); }, Cm(e); } var $i = /* @__PURE__ */ function(e) { R_e(n, e); var t = j_e(n); function n(r, i) { var o; N_e(this, n), o = t.call(this, r, i); var a = o.props, s = a.isActive, l = a.attributeName, c = a.from, f = a.to, d = a.steps, p = a.children, m = a.duration; if (o.handleStyleChange = o.handleStyleChange.bind(yw(o)), o.changeStyle = o.changeStyle.bind(yw(o)), !s || m <= 0) return o.state = { style: {} }, typeof p == "function" && (o.state = { style: f }), gw(o); if (d && d.length) o.state = { style: d[0].style }; else if (c) { if (typeof p == "function") return o.state = { style: c }, gw(o); o.state = { style: l ? Vu({}, l, c) : c }; } else o.state = { style: {} }; return o; } return D_e(n, [{ key: "componentDidMount", value: function() { var i = this.props, o = i.isActive, a = i.canBegin; this.mounted = !0, !(!o || !a) && this.runAnimation(this.props); } }, { key: "componentDidUpdate", value: function(i) { var o = this.props, a = o.isActive, s = o.canBegin, l = o.attributeName, c = o.shouldReAnimate, f = o.to, d = o.from, p = this.state.style; if (s) { if (!a) { var m = { style: l ? Vu({}, l, f) : f }; this.state && p && (l && p[l] !== f || !l && p !== f) && this.setState(m); return; } if (!(V1e(i.to, f) && i.canBegin && i.isActive)) { var y = !i.canBegin || !i.isActive; this.manager && this.manager.stop(), this.stopJSAnimation && this.stopJSAnimation(); var g = y || c ? d : i.to; if (this.state && p) { var v = { style: l ? Vu({}, l, g) : g }; (l && p[l] !== g || !l && p !== g) && this.setState(v); } this.runAnimation(wi(wi({}, this.props), {}, { from: g, begin: 0 })); } } } }, { key: "componentWillUnmount", value: function() { this.mounted = !1; var i = this.props.onAnimationEnd; this.unSubscribe && this.unSubscribe(), this.manager && (this.manager.stop(), this.manager = null), this.stopJSAnimation && this.stopJSAnimation(), i && i(); } }, { key: "handleStyleChange", value: function(i) { this.changeStyle(i); } }, { key: "changeStyle", value: function(i) { this.mounted && this.setState({ style: i }); } }, { key: "runJSAnimation", value: function(i) { var o = this, a = i.from, s = i.to, l = i.duration, c = i.easing, f = i.begin, d = i.onAnimationEnd, p = i.onAnimationStart, m = O_e(a, s, h_e(c), l, this.changeStyle), y = function() { o.stopJSAnimation = m(); }; this.manager.start([p, f, y, l, d]); } }, { key: "runStepAnimation", value: function(i) { var o = this, a = i.steps, s = i.begin, l = i.onAnimationStart, c = a[0], f = c.style, d = c.duration, p = d === void 0 ? 0 : d, m = function(g, v, x) { if (x === 0) return g; var w = v.duration, S = v.easing, A = S === void 0 ? "ease" : S, _ = v.style, O = v.properties, P = v.onAnimationEnd, C = x > 0 ? a[x - 1] : v, k = O || Object.keys(_); if (typeof A == "function" || A === "spring") return [].concat(r0(g), [o.runJSAnimation.bind(o, { from: C.style, to: _, duration: w, easing: A }), w]); var I = MN(k, w, A), $ = wi(wi(wi({}, C.style), _), {}, { transition: I }); return [].concat(r0(g), [$, w, P]).filter(e_e); }; return this.manager.start([l].concat(r0(a.reduce(m, [f, Math.max(p, s)])), [i.onAnimationEnd])); } }, { key: "runAnimation", value: function(i) { this.manager || (this.manager = X1e()); var o = i.begin, a = i.duration, s = i.attributeName, l = i.to, c = i.easing, f = i.onAnimationStart, d = i.onAnimationEnd, p = i.steps, m = i.children, y = this.manager; if (this.unSubscribe = y.subscribe(this.handleStyleChange), typeof c == "function" || typeof m == "function" || c === "spring") { this.runJSAnimation(i); return; } if (p.length > 1) { this.runStepAnimation(i); return; } var g = s ? Vu({}, s, l) : l, v = MN(Object.keys(g), a, c); y.start([f, o, wi(wi({}, g), {}, { transition: v }), a, d]); } }, { key: "render", value: function() { var i = this.props, o = i.children; i.begin; var a = i.duration; i.attributeName, i.easing; var s = i.isActive; i.steps, i.from, i.to, i.canBegin, i.onAnimationEnd, i.shouldReAnimate, i.onAnimationReStart; var l = T_e(i, A_e), c = react__WEBPACK_IMPORTED_MODULE_1__.Children.count(o), f = this.state.style; if (typeof o == "function") return o(f); if (!s || c === 0 || a <= 0) return o; var d = function(m) { var y = m.props, g = y.style, v = g === void 0 ? {} : g, x = y.className, w = /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(m, wi(wi({}, l), {}, { style: wi(wi({}, v), f), className: x })); return w; }; return c === 1 ? d(react__WEBPACK_IMPORTED_MODULE_1__.Children.only(o)) : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null, react__WEBPACK_IMPORTED_MODULE_1__.Children.map(o, function(p) { return d(p); })); } }]), n; }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent); $i.displayName = "Animate"; $i.defaultProps = { begin: 0, duration: 1e3, from: "", to: "", attributeName: "", easing: "ease", isActive: !0, canBegin: !0, steps: [], onAnimationEnd: function() { }, onAnimationStart: function() { } }; $i.propTypes = { from: Qe.oneOfType([Qe.object, Qe.string]), to: Qe.oneOfType([Qe.object, Qe.string]), attributeName: Qe.string, // animation duration duration: Qe.number, begin: Qe.number, easing: Qe.oneOfType([Qe.string, Qe.func]), steps: Qe.arrayOf(Qe.shape({ duration: Qe.number.isRequired, style: Qe.object.isRequired, easing: Qe.oneOfType([Qe.oneOf(["ease", "ease-in", "ease-out", "ease-in-out", "linear"]), Qe.func]), // transition css properties(dash case), optional properties: Qe.arrayOf("string"), onAnimationEnd: Qe.func })), children: Qe.oneOfType([Qe.node, Qe.func]), isActive: Qe.bool, canBegin: Qe.bool, onAnimationEnd: Qe.func, // decide if it should reanimate with initial from style when props change shouldReAnimate: Qe.bool, onAnimationStart: Qe.func, onAnimationReStart: Qe.func }; Qe.object, Qe.object, Qe.object, Qe.element; Qe.object, Qe.object, Qe.object, Qe.oneOfType([Qe.array, Qe.element]), Qe.any; function Zf(e) { "@babel/helpers - typeof"; return Zf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Zf(e); } function Em() { return Em = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, Em.apply(this, arguments); } function B_e(e, t) { return V_e(e) || z_e(e, t) || W_e(e, t) || F_e(); } function F_e() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function W_e(e, t) { if (e) { if (typeof e == "string") return jN(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return jN(e, t); } } function jN(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } function z_e(e, t) { var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; if (n != null) { var r, i, o, a, s = [], l = !0, c = !1; try { if (o = (n = n.call(e)).next, t !== 0) for (; !(l = (r = o.call(n)).done) && (s.push(r.value), s.length !== t); l = !0) ; } catch (f) { c = !0, i = f; } finally { try { if (!l && n.return != null && (a = n.return(), Object(a) !== a)) return; } finally { if (c) throw i; } } return s; } } function V_e(e) { if (Array.isArray(e)) return e; } function LN(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function BN(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? LN(Object(n), !0).forEach(function(r) { U_e(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : LN(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function U_e(e, t, n) { return t = H_e(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function H_e(e) { var t = K_e(e, "string"); return Zf(t) == "symbol" ? t : t + ""; } function K_e(e, t) { if (Zf(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Zf(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var FN = function(t, n, r, i, o) { var a = Math.min(Math.abs(r) / 2, Math.abs(i) / 2), s = i >= 0 ? 1 : -1, l = r >= 0 ? 1 : -1, c = i >= 0 && r >= 0 || i < 0 && r < 0 ? 1 : 0, f; if (a > 0 && o instanceof Array) { for (var d = [0, 0, 0, 0], p = 0, m = 4; p < m; p++) d[p] = o[p] > a ? a : o[p]; f = "M".concat(t, ",").concat(n + s * d[0]), d[0] > 0 && (f += "A ".concat(d[0], ",").concat(d[0], ",0,0,").concat(c, ",").concat(t + l * d[0], ",").concat(n)), f += "L ".concat(t + r - l * d[1], ",").concat(n), d[1] > 0 && (f += "A ".concat(d[1], ",").concat(d[1], ",0,0,").concat(c, `, `).concat(t + r, ",").concat(n + s * d[1])), f += "L ".concat(t + r, ",").concat(n + i - s * d[2]), d[2] > 0 && (f += "A ".concat(d[2], ",").concat(d[2], ",0,0,").concat(c, `, `).concat(t + r - l * d[2], ",").concat(n + i)), f += "L ".concat(t + l * d[3], ",").concat(n + i), d[3] > 0 && (f += "A ".concat(d[3], ",").concat(d[3], ",0,0,").concat(c, `, `).concat(t, ",").concat(n + i - s * d[3])), f += "Z"; } else if (a > 0 && o === +o && o > 0) { var y = Math.min(a, o); f = "M ".concat(t, ",").concat(n + s * y, ` A `).concat(y, ",").concat(y, ",0,0,").concat(c, ",").concat(t + l * y, ",").concat(n, ` L `).concat(t + r - l * y, ",").concat(n, ` A `).concat(y, ",").concat(y, ",0,0,").concat(c, ",").concat(t + r, ",").concat(n + s * y, ` L `).concat(t + r, ",").concat(n + i - s * y, ` A `).concat(y, ",").concat(y, ",0,0,").concat(c, ",").concat(t + r - l * y, ",").concat(n + i, ` L `).concat(t + l * y, ",").concat(n + i, ` A `).concat(y, ",").concat(y, ",0,0,").concat(c, ",").concat(t, ",").concat(n + i - s * y, " Z"); } else f = "M ".concat(t, ",").concat(n, " h ").concat(r, " v ").concat(i, " h ").concat(-r, " Z"); return f; }, G_e = function(t, n) { if (!t || !n) return !1; var r = t.x, i = t.y, o = n.x, a = n.y, s = n.width, l = n.height; if (Math.abs(s) > 0 && Math.abs(l) > 0) { var c = Math.min(o, o + s), f = Math.max(o, o + s), d = Math.min(a, a + l), p = Math.max(a, a + l); return r >= c && r <= f && i >= d && i <= p; } return !1; }, Y_e = { x: 0, y: 0, width: 0, height: 0, // The radius of border // The radius of four corners when radius is a number // The radius of left-top, right-top, right-bottom, left-bottom when radius is an array radius: 0, isAnimationActive: !1, isUpdateAnimationActive: !1, animationBegin: 0, animationDuration: 1500, animationEasing: "ease" }, ES = function(t) { var n = BN(BN({}, Y_e), t), r = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(), i = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(-1), o = B_e(i, 2), a = o[0], s = o[1]; (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function() { if (r.current && r.current.getTotalLength) try { var A = r.current.getTotalLength(); A && s(A); } catch { } }, []); var l = n.x, c = n.y, f = n.width, d = n.height, p = n.radius, m = n.className, y = n.animationEasing, g = n.animationDuration, v = n.animationBegin, x = n.isAnimationActive, w = n.isUpdateAnimationActive; if (l !== +l || c !== +c || f !== +f || d !== +d || f === 0 || d === 0) return null; var S = Xe("recharts-rectangle", m); return w ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement($i, { canBegin: a > 0, from: { width: f, height: d, x: l, y: c }, to: { width: f, height: d, x: l, y: c }, duration: g, animationEasing: y, isActive: w }, function(A) { var _ = A.width, O = A.height, P = A.x, C = A.y; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement($i, { canBegin: a > 0, from: "0px ".concat(a === -1 ? 1 : a, "px"), to: "".concat(a, "px 0px"), attributeName: "strokeDasharray", begin: v, duration: g, isActive: x, easing: y }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("path", Em({}, Ee(n, !0), { className: S, d: FN(P, C, _, O, p), ref: r }))); }) : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("path", Em({}, Ee(n, !0), { className: S, d: FN(l, c, f, d, p) })); }, q_e = ["points", "className", "baseLinePoints", "connectNulls"]; function Bl() { return Bl = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, Bl.apply(this, arguments); } function X_e(e, t) { if (e == null) return {}; var n = Z_e(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function Z_e(e, t) { if (e == null) return {}; var n = {}; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { if (t.indexOf(r) >= 0) continue; n[r] = e[r]; } return n; } function WN(e) { return tSe(e) || eSe(e) || Q_e(e) || J_e(); } function J_e() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function Q_e(e, t) { if (e) { if (typeof e == "string") return vw(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return vw(e, t); } } function eSe(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); } function tSe(e) { if (Array.isArray(e)) return vw(e); } function vw(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } var zN = function(t) { return t && t.x === +t.x && t.y === +t.y; }, nSe = function() { var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], n = [[]]; return t.forEach(function(r) { zN(r) ? n[n.length - 1].push(r) : n[n.length - 1].length > 0 && n.push([]); }), zN(t[0]) && n[n.length - 1].push(t[0]), n[n.length - 1].length <= 0 && (n = n.slice(0, -1)), n; }, af = function(t, n) { var r = nSe(t); n && (r = [r.reduce(function(o, a) { return [].concat(WN(o), WN(a)); }, [])]); var i = r.map(function(o) { return o.reduce(function(a, s, l) { return "".concat(a).concat(l === 0 ? "M" : "L").concat(s.x, ",").concat(s.y); }, ""); }).join(""); return r.length === 1 ? "".concat(i, "Z") : i; }, rSe = function(t, n, r) { var i = af(t, r); return "".concat(i.slice(-1) === "Z" ? i.slice(0, -1) : i, "L").concat(af(n.reverse(), r).slice(1)); }, iSe = function(t) { var n = t.points, r = t.className, i = t.baseLinePoints, o = t.connectNulls, a = X_e(t, q_e); if (!n || !n.length) return null; var s = Xe("recharts-polygon", r); if (i && i.length) { var l = a.stroke && a.stroke !== "none", c = rSe(n, i, o); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("g", { className: s }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("path", Bl({}, Ee(a, !0), { fill: c.slice(-1) === "Z" ? a.fill : "none", stroke: "none", d: c })), l ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("path", Bl({}, Ee(a, !0), { fill: "none", d: af(n, o) })) : null, l ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("path", Bl({}, Ee(a, !0), { fill: "none", d: af(i, o) })) : null); } var f = af(n, o); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("path", Bl({}, Ee(a, !0), { fill: f.slice(-1) === "Z" ? a.fill : "none", className: s, d: f })); }; function bw() { return bw = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, bw.apply(this, arguments); } var Dd = function(t) { var n = t.cx, r = t.cy, i = t.r, o = t.className, a = Xe("recharts-dot", o); return n === +n && r === +r && i === +i ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("circle", bw({}, Ee(t, !1), Yp(t), { className: a, cx: n, cy: r, r: i })) : null; }; function Jf(e) { "@babel/helpers - typeof"; return Jf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Jf(e); } var oSe = ["x", "y", "top", "left", "width", "height", "className"]; function xw() { return xw = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, xw.apply(this, arguments); } function VN(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function aSe(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? VN(Object(n), !0).forEach(function(r) { sSe(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : VN(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function sSe(e, t, n) { return t = lSe(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function lSe(e) { var t = cSe(e, "string"); return Jf(t) == "symbol" ? t : t + ""; } function cSe(e, t) { if (Jf(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Jf(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function uSe(e, t) { if (e == null) return {}; var n = fSe(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function fSe(e, t) { if (e == null) return {}; var n = {}; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { if (t.indexOf(r) >= 0) continue; n[r] = e[r]; } return n; } var dSe = function(t, n, r, i, o, a) { return "M".concat(t, ",").concat(o, "v").concat(i, "M").concat(a, ",").concat(n, "h").concat(r); }, hSe = function(t) { var n = t.x, r = n === void 0 ? 0 : n, i = t.y, o = i === void 0 ? 0 : i, a = t.top, s = a === void 0 ? 0 : a, l = t.left, c = l === void 0 ? 0 : l, f = t.width, d = f === void 0 ? 0 : f, p = t.height, m = p === void 0 ? 0 : p, y = t.className, g = uSe(t, oSe), v = aSe({ x: r, y: o, top: s, left: c, width: d, height: m }, g); return !be(r) || !be(o) || !be(d) || !be(m) || !be(s) || !be(c) ? null : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("path", xw({}, Ee(v, !0), { className: Xe("recharts-cross", y), d: dSe(r, o, d, m, s, c) })); }, pSe = fy, mSe = SF, gSe = so; function ySe(e, t) { return e && e.length ? pSe(e, gSe(t), mSe) : void 0; } var vSe = ySe; const bSe = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(vSe); var xSe = fy, wSe = so, _Se = OF; function SSe(e, t) { return e && e.length ? xSe(e, wSe(t), _Se) : void 0; } var OSe = SSe; const ASe = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(OSe); var TSe = ["cx", "cy", "angle", "ticks", "axisLine"], PSe = ["ticks", "tick", "angle", "tickFormatter", "stroke"]; function mc(e) { "@babel/helpers - typeof"; return mc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, mc(e); } function sf() { return sf = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, sf.apply(this, arguments); } function UN(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function us(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? UN(Object(n), !0).forEach(function(r) { my(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : UN(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function HN(e, t) { if (e == null) return {}; var n = CSe(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function CSe(e, t) { if (e == null) return {}; var n = {}; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { if (t.indexOf(r) >= 0) continue; n[r] = e[r]; } return n; } function ESe(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function KN(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, hW(r.key), r); } } function kSe(e, t, n) { return t && KN(e.prototype, t), n && KN(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function MSe(e, t, n) { return t = km(t), NSe(e, dW() ? Reflect.construct(t, n || [], km(e).constructor) : t.apply(e, n)); } function NSe(e, t) { if (t && (mc(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return $Se(e); } function $Se(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function dW() { try { var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (dW = function() { return !!e; })(); } function km(e) { return km = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); }, km(e); } function DSe(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && ww(e, t); } function ww(e, t) { return ww = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { return r.__proto__ = i, r; }, ww(e, t); } function my(e, t, n) { return t = hW(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function hW(e) { var t = ISe(e, "string"); return mc(t) == "symbol" ? t : t + ""; } function ISe(e, t) { if (mc(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (mc(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var gy = /* @__PURE__ */ function(e) { function t() { return ESe(this, t), MSe(this, t, arguments); } return DSe(t, e), kSe(t, [{ key: "getTickValueCoord", value: ( /** * Calculate the coordinate of tick * @param {Number} coordinate The radius of tick * @return {Object} (x, y) */ function(r) { var i = r.coordinate, o = this.props, a = o.angle, s = o.cx, l = o.cy; return Bt(s, l, i, a); } ) }, { key: "getTickTextAnchor", value: function() { var r = this.props.orientation, i; switch (r) { case "left": i = "end"; break; case "right": i = "start"; break; default: i = "middle"; break; } return i; } }, { key: "getViewBox", value: function() { var r = this.props, i = r.cx, o = r.cy, a = r.angle, s = r.ticks, l = bSe(s, function(f) { return f.coordinate || 0; }), c = ASe(s, function(f) { return f.coordinate || 0; }); return { cx: i, cy: o, startAngle: a, endAngle: a, innerRadius: c.coordinate || 0, outerRadius: l.coordinate || 0 }; } }, { key: "renderAxisLine", value: function() { var r = this.props, i = r.cx, o = r.cy, a = r.angle, s = r.ticks, l = r.axisLine, c = HN(r, TSe), f = s.reduce(function(y, g) { return [Math.min(y[0], g.coordinate), Math.max(y[1], g.coordinate)]; }, [1 / 0, -1 / 0]), d = Bt(i, o, f[0], a), p = Bt(i, o, f[1], a), m = us(us(us({}, Ee(c, !1)), {}, { fill: "none" }, Ee(l, !1)), {}, { x1: d.x, y1: d.y, x2: p.x, y2: p.y }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("line", sf({ className: "recharts-polar-radius-axis-line" }, m)); } }, { key: "renderTicks", value: function() { var r = this, i = this.props, o = i.ticks, a = i.tick, s = i.angle, l = i.tickFormatter, c = i.stroke, f = HN(i, PSe), d = this.getTickTextAnchor(), p = Ee(f, !1), m = Ee(a, !1), y = o.map(function(g, v) { var x = r.getTickValueCoord(g), w = us(us(us(us({ textAnchor: d, transform: "rotate(".concat(90 - s, ", ").concat(x.x, ", ").concat(x.y, ")") }, p), {}, { stroke: "none", fill: c }, m), {}, { index: v }, x), {}, { payload: g }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, sf({ className: Xe("recharts-polar-radius-axis-tick", JF(a)), key: "tick-".concat(g.coordinate) }, zs(r.props, g, v)), t.renderTickItem(a, w, l ? l(g.value, v) : g.value)); }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { className: "recharts-polar-radius-axis-ticks" }, y); } }, { key: "render", value: function() { var r = this.props, i = r.ticks, o = r.axisLine, a = r.tick; return !i || !i.length ? null : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { className: Xe("recharts-polar-radius-axis", this.props.className) }, o && this.renderAxisLine(), a && this.renderTicks(), Sn.renderCallByParent(this.props, this.getViewBox())); } }], [{ key: "renderTickItem", value: function(r, i, o) { var a; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(r) ? a = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(r, i) : ze(r) ? a = r(i) : a = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Vs, sf({}, i, { className: "recharts-polar-radius-axis-tick-value" }), o), a; } }]); }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent); my(gy, "displayName", "PolarRadiusAxis"); my(gy, "axisType", "radiusAxis"); my(gy, "defaultProps", { type: "number", radiusAxisId: 0, cx: 0, cy: 0, angle: 0, orientation: "right", stroke: "#ccc", axisLine: !0, tick: !0, tickCount: 5, allowDataOverflow: !1, scale: "auto", allowDuplicatedCategory: !0 }); function gc(e) { "@babel/helpers - typeof"; return gc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, gc(e); } function xs() { return xs = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, xs.apply(this, arguments); } function GN(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function fs(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? GN(Object(n), !0).forEach(function(r) { yy(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : GN(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function RSe(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function YN(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, mW(r.key), r); } } function jSe(e, t, n) { return t && YN(e.prototype, t), n && YN(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function LSe(e, t, n) { return t = Mm(t), BSe(e, pW() ? Reflect.construct(t, n || [], Mm(e).constructor) : t.apply(e, n)); } function BSe(e, t) { if (t && (gc(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return FSe(e); } function FSe(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function pW() { try { var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (pW = function() { return !!e; })(); } function Mm(e) { return Mm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); }, Mm(e); } function WSe(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && _w(e, t); } function _w(e, t) { return _w = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { return r.__proto__ = i, r; }, _w(e, t); } function yy(e, t, n) { return t = mW(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function mW(e) { var t = zSe(e, "string"); return gc(t) == "symbol" ? t : t + ""; } function zSe(e, t) { if (gc(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (gc(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var VSe = Math.PI / 180, qN = 1e-5, vy = /* @__PURE__ */ function(e) { function t() { return RSe(this, t), LSe(this, t, arguments); } return WSe(t, e), jSe(t, [{ key: "getTickLineCoord", value: ( /** * Calculate the coordinate of line endpoint * @param {Object} data The Data if ticks * @return {Object} (x0, y0): The start point of text, * (x1, y1): The end point close to text, * (x2, y2): The end point close to axis */ function(r) { var i = this.props, o = i.cx, a = i.cy, s = i.radius, l = i.orientation, c = i.tickSize, f = c || 8, d = Bt(o, a, s, r.coordinate), p = Bt(o, a, s + (l === "inner" ? -1 : 1) * f, r.coordinate); return { x1: d.x, y1: d.y, x2: p.x, y2: p.y }; } ) /** * Get the text-anchor of each tick * @param {Object} data Data of ticks * @return {String} text-anchor */ }, { key: "getTickTextAnchor", value: function(r) { var i = this.props.orientation, o = Math.cos(-r.coordinate * VSe), a; return o > qN ? a = i === "outer" ? "start" : "end" : o < -qN ? a = i === "outer" ? "end" : "start" : a = "middle", a; } }, { key: "renderAxisLine", value: function() { var r = this.props, i = r.cx, o = r.cy, a = r.radius, s = r.axisLine, l = r.axisLineType, c = fs(fs({}, Ee(this.props, !1)), {}, { fill: "none" }, Ee(s, !1)); if (l === "circle") return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Dd, xs({ className: "recharts-polar-angle-axis-line" }, c, { cx: i, cy: o, r: a })); var f = this.props.ticks, d = f.map(function(p) { return Bt(i, o, a, p.coordinate); }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(iSe, xs({ className: "recharts-polar-angle-axis-line" }, c, { points: d })); } }, { key: "renderTicks", value: function() { var r = this, i = this.props, o = i.ticks, a = i.tick, s = i.tickLine, l = i.tickFormatter, c = i.stroke, f = Ee(this.props, !1), d = Ee(a, !1), p = fs(fs({}, f), {}, { fill: "none" }, Ee(s, !1)), m = o.map(function(y, g) { var v = r.getTickLineCoord(y), x = r.getTickTextAnchor(y), w = fs(fs(fs({ textAnchor: x }, f), {}, { stroke: "none", fill: c }, d), {}, { index: g, payload: y, x: v.x2, y: v.y2 }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, xs({ className: Xe("recharts-polar-angle-axis-tick", JF(a)), key: "tick-".concat(y.coordinate) }, zs(r.props, y, g)), s && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("line", xs({ className: "recharts-polar-angle-axis-tick-line" }, p, v)), a && t.renderTickItem(a, w, l ? l(y.value, g) : y.value)); }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { className: "recharts-polar-angle-axis-ticks" }, m); } }, { key: "render", value: function() { var r = this.props, i = r.ticks, o = r.radius, a = r.axisLine; return o <= 0 || !i || !i.length ? null : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { className: Xe("recharts-polar-angle-axis", this.props.className) }, a && this.renderAxisLine(), this.renderTicks()); } }], [{ key: "renderTickItem", value: function(r, i, o) { var a; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(r) ? a = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(r, i) : ze(r) ? a = r(i) : a = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Vs, xs({}, i, { className: "recharts-polar-angle-axis-tick-value" }), o), a; } }]); }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent); yy(vy, "displayName", "PolarAngleAxis"); yy(vy, "axisType", "angleAxis"); yy(vy, "defaultProps", { type: "category", angleAxisId: 0, scale: "auto", cx: 0, cy: 0, orientation: "outer", axisLine: !0, tickLine: !0, tickSize: 8, tick: !0, hide: !1, allowDuplicatedCategory: !0 }); var USe = bB, HSe = USe(Object.getPrototypeOf, Object), KSe = HSe, GSe = ea, YSe = KSe, qSe = ta, XSe = "[object Object]", ZSe = Function.prototype, JSe = Object.prototype, gW = ZSe.toString, QSe = JSe.hasOwnProperty, eOe = gW.call(Object); function tOe(e) { if (!qSe(e) || GSe(e) != XSe) return !1; var t = YSe(e); if (t === null) return !0; var n = QSe.call(t, "constructor") && t.constructor; return typeof n == "function" && n instanceof n && gW.call(n) == eOe; } var nOe = tOe; const rOe = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(nOe); var iOe = ea, oOe = ta, aOe = "[object Boolean]"; function sOe(e) { return e === !0 || e === !1 || oOe(e) && iOe(e) == aOe; } var lOe = sOe; const cOe = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(lOe); function Qf(e) { "@babel/helpers - typeof"; return Qf = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Qf(e); } function Nm() { return Nm = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, Nm.apply(this, arguments); } function uOe(e, t) { return pOe(e) || hOe(e, t) || dOe(e, t) || fOe(); } function fOe() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function dOe(e, t) { if (e) { if (typeof e == "string") return XN(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return XN(e, t); } } function XN(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } function hOe(e, t) { var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; if (n != null) { var r, i, o, a, s = [], l = !0, c = !1; try { if (o = (n = n.call(e)).next, t !== 0) for (; !(l = (r = o.call(n)).done) && (s.push(r.value), s.length !== t); l = !0) ; } catch (f) { c = !0, i = f; } finally { try { if (!l && n.return != null && (a = n.return(), Object(a) !== a)) return; } finally { if (c) throw i; } } return s; } } function pOe(e) { if (Array.isArray(e)) return e; } function ZN(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function JN(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? ZN(Object(n), !0).forEach(function(r) { mOe(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ZN(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function mOe(e, t, n) { return t = gOe(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function gOe(e) { var t = yOe(e, "string"); return Qf(t) == "symbol" ? t : t + ""; } function yOe(e, t) { if (Qf(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Qf(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var QN = function(t, n, r, i, o) { var a = r - i, s; return s = "M ".concat(t, ",").concat(n), s += "L ".concat(t + r, ",").concat(n), s += "L ".concat(t + r - a / 2, ",").concat(n + o), s += "L ".concat(t + r - a / 2 - i, ",").concat(n + o), s += "L ".concat(t, ",").concat(n, " Z"), s; }, vOe = { x: 0, y: 0, upperWidth: 0, lowerWidth: 0, height: 0, isUpdateAnimationActive: !1, animationBegin: 0, animationDuration: 1500, animationEasing: "ease" }, bOe = function(t) { var n = JN(JN({}, vOe), t), r = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(), i = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(-1), o = uOe(i, 2), a = o[0], s = o[1]; (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function() { if (r.current && r.current.getTotalLength) try { var S = r.current.getTotalLength(); S && s(S); } catch { } }, []); var l = n.x, c = n.y, f = n.upperWidth, d = n.lowerWidth, p = n.height, m = n.className, y = n.animationEasing, g = n.animationDuration, v = n.animationBegin, x = n.isUpdateAnimationActive; if (l !== +l || c !== +c || f !== +f || d !== +d || p !== +p || f === 0 && d === 0 || p === 0) return null; var w = Xe("recharts-trapezoid", m); return x ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement($i, { canBegin: a > 0, from: { upperWidth: 0, lowerWidth: 0, height: p, x: l, y: c }, to: { upperWidth: f, lowerWidth: d, height: p, x: l, y: c }, duration: g, animationEasing: y, isActive: x }, function(S) { var A = S.upperWidth, _ = S.lowerWidth, O = S.height, P = S.x, C = S.y; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement($i, { canBegin: a > 0, from: "0px ".concat(a === -1 ? 1 : a, "px"), to: "".concat(a, "px 0px"), attributeName: "strokeDasharray", begin: v, duration: g, easing: y }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("path", Nm({}, Ee(n, !0), { className: w, d: QN(P, C, A, _, O), ref: r }))); }) : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("g", null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("path", Nm({}, Ee(n, !0), { className: w, d: QN(l, c, f, d, p) }))); }, xOe = ["option", "shapeType", "propTransformer", "activeClassName", "isActive"]; function ed(e) { "@babel/helpers - typeof"; return ed = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, ed(e); } function wOe(e, t) { if (e == null) return {}; var n = _Oe(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function _Oe(e, t) { if (e == null) return {}; var n = {}; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { if (t.indexOf(r) >= 0) continue; n[r] = e[r]; } return n; } function e$(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function $m(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? e$(Object(n), !0).forEach(function(r) { SOe(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : e$(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function SOe(e, t, n) { return t = OOe(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function OOe(e) { var t = AOe(e, "string"); return ed(t) == "symbol" ? t : t + ""; } function AOe(e, t) { if (ed(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (ed(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function TOe(e, t) { return $m($m({}, t), e); } function POe(e, t) { return e === "symbols"; } function t$(e) { var t = e.shapeType, n = e.elementProps; switch (t) { case "rectangle": return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(ES, n); case "trapezoid": return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(bOe, n); case "sector": return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(tW, n); case "symbols": if (POe(t)) return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(H_, n); break; default: return null; } } function COe(e) { return /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(e) ? e.props : e; } function yW(e) { var t = e.option, n = e.shapeType, r = e.propTransformer, i = r === void 0 ? TOe : r, o = e.activeClassName, a = o === void 0 ? "recharts-active-shape" : o, s = e.isActive, l = wOe(e, xOe), c; if (/* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(t)) c = /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(t, $m($m({}, l), COe(t))); else if (ze(t)) c = t(l); else if (rOe(t) && !cOe(t)) { var f = i(t, l); c = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(t$, { shapeType: n, elementProps: f }); } else { var d = l; c = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(t$, { shapeType: n, elementProps: d }); } return s ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { className: a }, c) : c; } function by(e, t) { return t != null && "trapezoids" in e.props; } function xy(e, t) { return t != null && "sectors" in e.props; } function td(e, t) { return t != null && "points" in e.props; } function EOe(e, t) { var n, r, i = e.x === (t == null || (n = t.labelViewBox) === null || n === void 0 ? void 0 : n.x) || e.x === t.x, o = e.y === (t == null || (r = t.labelViewBox) === null || r === void 0 ? void 0 : r.y) || e.y === t.y; return i && o; } function kOe(e, t) { var n = e.endAngle === t.endAngle, r = e.startAngle === t.startAngle; return n && r; } function MOe(e, t) { var n = e.x === t.x, r = e.y === t.y, i = e.z === t.z; return n && r && i; } function NOe(e, t) { var n; return by(e, t) ? n = EOe : xy(e, t) ? n = kOe : td(e, t) && (n = MOe), n; } function $Oe(e, t) { var n; return by(e, t) ? n = "trapezoids" : xy(e, t) ? n = "sectors" : td(e, t) && (n = "points"), n; } function DOe(e, t) { if (by(e, t)) { var n; return (n = t.tooltipPayload) === null || n === void 0 || (n = n[0]) === null || n === void 0 || (n = n.payload) === null || n === void 0 ? void 0 : n.payload; } if (xy(e, t)) { var r; return (r = t.tooltipPayload) === null || r === void 0 || (r = r[0]) === null || r === void 0 || (r = r.payload) === null || r === void 0 ? void 0 : r.payload; } return td(e, t) ? t.payload : {}; } function IOe(e) { var t = e.activeTooltipItem, n = e.graphicalItem, r = e.itemData, i = $Oe(n, t), o = DOe(n, t), a = r.filter(function(l, c) { var f = Us(o, l), d = n.props[i].filter(function(y) { var g = NOe(n, t); return g(y, t); }), p = n.props[i].indexOf(d[d.length - 1]), m = c === p; return f && m; }), s = r.indexOf(a[a.length - 1]); return s; } var dp; function yc(e) { "@babel/helpers - typeof"; return yc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, yc(e); } function Fl() { return Fl = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, Fl.apply(this, arguments); } function n$(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function Rt(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? n$(Object(n), !0).forEach(function(r) { fi(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : n$(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function ROe(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function r$(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, bW(r.key), r); } } function jOe(e, t, n) { return t && r$(e.prototype, t), n && r$(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function LOe(e, t, n) { return t = Dm(t), BOe(e, vW() ? Reflect.construct(t, n || [], Dm(e).constructor) : t.apply(e, n)); } function BOe(e, t) { if (t && (yc(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return FOe(e); } function FOe(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function vW() { try { var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (vW = function() { return !!e; })(); } function Dm(e) { return Dm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); }, Dm(e); } function WOe(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Sw(e, t); } function Sw(e, t) { return Sw = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { return r.__proto__ = i, r; }, Sw(e, t); } function fi(e, t, n) { return t = bW(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function bW(e) { var t = zOe(e, "string"); return yc(t) == "symbol" ? t : t + ""; } function zOe(e, t) { if (yc(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (yc(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var ra = /* @__PURE__ */ function(e) { function t(n) { var r; return ROe(this, t), r = LOe(this, t, [n]), fi(r, "pieRef", null), fi(r, "sectorRefs", []), fi(r, "id", tl("recharts-pie-")), fi(r, "handleAnimationEnd", function() { var i = r.props.onAnimationEnd; r.setState({ isAnimationFinished: !0 }), ze(i) && i(); }), fi(r, "handleAnimationStart", function() { var i = r.props.onAnimationStart; r.setState({ isAnimationFinished: !1 }), ze(i) && i(); }), r.state = { isAnimationFinished: !n.isAnimationActive, prevIsAnimationActive: n.isAnimationActive, prevAnimationId: n.animationId, sectorToFocus: 0 }, r; } return WOe(t, e), jOe(t, [{ key: "isActiveIndex", value: function(r) { var i = this.props.activeIndex; return Array.isArray(i) ? i.indexOf(r) !== -1 : r === i; } }, { key: "hasActiveIndex", value: function() { var r = this.props.activeIndex; return Array.isArray(r) ? r.length !== 0 : r || r === 0; } }, { key: "renderLabels", value: function(r) { var i = this.props.isAnimationActive; if (i && !this.state.isAnimationFinished) return null; var o = this.props, a = o.label, s = o.labelLine, l = o.dataKey, c = o.valueKey, f = Ee(this.props, !1), d = Ee(a, !1), p = Ee(s, !1), m = a && a.offsetRadius || 20, y = r.map(function(g, v) { var x = (g.startAngle + g.endAngle) / 2, w = Bt(g.cx, g.cy, g.outerRadius + m, x), S = Rt(Rt(Rt(Rt({}, f), g), {}, { stroke: "none" }, d), {}, { index: v, textAnchor: t.getTextAnchor(w.x, g.cx) }, w), A = Rt(Rt(Rt(Rt({}, f), g), {}, { fill: "none", stroke: g.fill }, p), {}, { index: v, points: [Bt(g.cx, g.cy, g.outerRadius, x), w] }), _ = l; return Ue(l) && Ue(c) ? _ = "value" : Ue(l) && (_ = c), // eslint-disable-next-line react/no-array-index-key /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { key: "label-".concat(g.startAngle, "-").concat(g.endAngle, "-").concat(g.midAngle, "-").concat(v) }, s && t.renderLabelLineItem(s, A, "line"), t.renderLabelItem(a, S, cn(g, _))); }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { className: "recharts-pie-labels" }, y); } }, { key: "renderSectorsStatically", value: function(r) { var i = this, o = this.props, a = o.activeShape, s = o.blendStroke, l = o.inactiveShape; return r.map(function(c, f) { if ((c == null ? void 0 : c.startAngle) === 0 && (c == null ? void 0 : c.endAngle) === 0 && r.length !== 1) return null; var d = i.isActiveIndex(f), p = l && i.hasActiveIndex() ? l : null, m = d ? a : p, y = Rt(Rt({}, c), {}, { stroke: s ? c.fill : c.stroke, tabIndex: -1 }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, Fl({ ref: function(v) { v && !i.sectorRefs.includes(v) && i.sectorRefs.push(v); }, tabIndex: -1, className: "recharts-pie-sector" }, zs(i.props, c, f), { // eslint-disable-next-line react/no-array-index-key key: "sector-".concat(c == null ? void 0 : c.startAngle, "-").concat(c == null ? void 0 : c.endAngle, "-").concat(c.midAngle, "-").concat(f) }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(yW, Fl({ option: m, isActive: d, shapeType: "sector" }, y))); }); } }, { key: "renderSectorsWithAnimation", value: function() { var r = this, i = this.props, o = i.sectors, a = i.isAnimationActive, s = i.animationBegin, l = i.animationDuration, c = i.animationEasing, f = i.animationId, d = this.state, p = d.prevSectors, m = d.prevIsAnimationActive; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement($i, { begin: s, duration: l, isActive: a, easing: c, from: { t: 0 }, to: { t: 1 }, key: "pie-".concat(f, "-").concat(m), onAnimationStart: this.handleAnimationStart, onAnimationEnd: this.handleAnimationEnd }, function(y) { var g = y.t, v = [], x = o && o[0], w = x.startAngle; return o.forEach(function(S, A) { var _ = p && p[A], O = A > 0 ? zr(S, "paddingAngle", 0) : 0; if (_) { var P = _n(_.endAngle - _.startAngle, S.endAngle - S.startAngle), C = Rt(Rt({}, S), {}, { startAngle: w + O, endAngle: w + P(g) + O }); v.push(C), w = C.endAngle; } else { var k = S.endAngle, I = S.startAngle, $ = _n(0, k - I), N = $(g), D = Rt(Rt({}, S), {}, { startAngle: w + O, endAngle: w + N + O }); v.push(D), w = D.endAngle; } }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, null, r.renderSectorsStatically(v)); }); } }, { key: "attachKeyboardHandlers", value: function(r) { var i = this; r.onkeydown = function(o) { if (!o.altKey) switch (o.key) { case "ArrowLeft": { var a = ++i.state.sectorToFocus % i.sectorRefs.length; i.sectorRefs[a].focus(), i.setState({ sectorToFocus: a }); break; } case "ArrowRight": { var s = --i.state.sectorToFocus < 0 ? i.sectorRefs.length - 1 : i.state.sectorToFocus % i.sectorRefs.length; i.sectorRefs[s].focus(), i.setState({ sectorToFocus: s }); break; } case "Escape": { i.sectorRefs[i.state.sectorToFocus].blur(), i.setState({ sectorToFocus: 0 }); break; } } }; } }, { key: "renderSectors", value: function() { var r = this.props, i = r.sectors, o = r.isAnimationActive, a = this.state.prevSectors; return o && i && i.length && (!a || !Us(a, i)) ? this.renderSectorsWithAnimation() : this.renderSectorsStatically(i); } }, { key: "componentDidMount", value: function() { this.pieRef && this.attachKeyboardHandlers(this.pieRef); } }, { key: "render", value: function() { var r = this, i = this.props, o = i.hide, a = i.sectors, s = i.className, l = i.label, c = i.cx, f = i.cy, d = i.innerRadius, p = i.outerRadius, m = i.isAnimationActive, y = this.state.isAnimationFinished; if (o || !a || !a.length || !be(c) || !be(f) || !be(d) || !be(p)) return null; var g = Xe("recharts-pie", s); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { tabIndex: this.props.rootTabIndex, className: g, ref: function(x) { r.pieRef = x; } }, this.renderSectors(), l && this.renderLabels(a), Sn.renderCallByParent(this.props, null, !1), (!m || y) && Ji.renderCallByParent(this.props, a, !1)); } }], [{ key: "getDerivedStateFromProps", value: function(r, i) { return i.prevIsAnimationActive !== r.isAnimationActive ? { prevIsAnimationActive: r.isAnimationActive, prevAnimationId: r.animationId, curSectors: r.sectors, prevSectors: [], isAnimationFinished: !0 } : r.isAnimationActive && r.animationId !== i.prevAnimationId ? { prevAnimationId: r.animationId, curSectors: r.sectors, prevSectors: i.curSectors, isAnimationFinished: !0 } : r.sectors !== i.curSectors ? { curSectors: r.sectors, isAnimationFinished: !0 } : null; } }, { key: "getTextAnchor", value: function(r, i) { return r > i ? "start" : r < i ? "end" : "middle"; } }, { key: "renderLabelLineItem", value: function(r, i, o) { if (/* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(r)) return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(r, i); if (ze(r)) return r(i); var a = Xe("recharts-pie-label-line", typeof r != "boolean" ? r.className : ""); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Ds, Fl({}, i, { key: o, type: "linear", className: a })); } }, { key: "renderLabelItem", value: function(r, i, o) { if (/* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(r)) return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(r, i); var a = o; if (ze(r) && (a = r(i), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(a))) return a; var s = Xe("recharts-pie-label-text", typeof r != "boolean" && !ze(r) ? r.className : ""); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Vs, Fl({}, i, { alignmentBaseline: "middle", className: s }), a); } }]); }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent); dp = ra; fi(ra, "displayName", "Pie"); fi(ra, "defaultProps", { stroke: "#fff", fill: "#808080", legendType: "rect", cx: "50%", cy: "50%", startAngle: 0, endAngle: 360, innerRadius: 0, outerRadius: "80%", paddingAngle: 0, labelLine: !0, hide: !1, minAngle: 0, isAnimationActive: !Ni.isSsr, animationBegin: 400, animationDuration: 1500, animationEasing: "ease", nameKey: "name", blendStroke: !1, rootTabIndex: 0 }); fi(ra, "parseDeltaAngle", function(e, t) { var n = fr(t - e), r = Math.min(Math.abs(t - e), 360); return n * r; }); fi(ra, "getRealPieData", function(e) { var t = e.data, n = e.children, r = Ee(e, !1), i = Vr(n, nS); return t && t.length ? t.map(function(o, a) { return Rt(Rt(Rt({ payload: o }, r), o), i && i[a] && i[a].props); }) : i && i.length ? i.map(function(o) { return Rt(Rt({}, r), o.props); }) : []; }); fi(ra, "parseCoordinateOfPie", function(e, t) { var n = t.top, r = t.left, i = t.width, o = t.height, a = ZF(i, o), s = r + dr(e.cx, i, i / 2), l = n + dr(e.cy, o, o / 2), c = dr(e.innerRadius, a, 0), f = dr(e.outerRadius, a, a * 0.8), d = e.maxRadius || Math.sqrt(i * i + o * o) / 2; return { cx: s, cy: l, innerRadius: c, outerRadius: f, maxRadius: d }; }); fi(ra, "getComposedData", function(e) { var t = e.item, n = e.offset, r = t.type.defaultProps !== void 0 ? Rt(Rt({}, t.type.defaultProps), t.props) : t.props, i = dp.getRealPieData(r); if (!i || !i.length) return null; var o = r.cornerRadius, a = r.startAngle, s = r.endAngle, l = r.paddingAngle, c = r.dataKey, f = r.nameKey, d = r.valueKey, p = r.tooltipType, m = Math.abs(r.minAngle), y = dp.parseCoordinateOfPie(r, n), g = dp.parseDeltaAngle(a, s), v = Math.abs(g), x = c; Ue(c) && Ue(d) ? (Mi(!1, `Use "dataKey" to specify the value of pie, the props "valueKey" will be deprecated in 1.1.0`), x = "value") : Ue(c) && (Mi(!1, `Use "dataKey" to specify the value of pie, the props "valueKey" will be deprecated in 1.1.0`), x = d); var w = i.filter(function(C) { return cn(C, x, 0) !== 0; }).length, S = (v >= 360 ? w : w - 1) * l, A = v - w * m - S, _ = i.reduce(function(C, k) { var I = cn(k, x, 0); return C + (be(I) ? I : 0); }, 0), O; if (_ > 0) { var P; O = i.map(function(C, k) { var I = cn(C, x, 0), $ = cn(C, f, k), N = (be(I) ? I : 0) / _, D; k ? D = P.endAngle + fr(g) * l * (I !== 0 ? 1 : 0) : D = a; var j = D + fr(g) * ((I !== 0 ? m : 0) + N * A), F = (D + j) / 2, W = (y.innerRadius + y.outerRadius) / 2, z = [{ name: $, value: I, payload: C, dataKey: x, type: p }], H = Bt(y.cx, y.cy, W, F); return P = Rt(Rt(Rt({ percent: N, cornerRadius: o, name: $, tooltipPayload: z, midAngle: F, middleRadius: W, tooltipPosition: H }, C), y), {}, { value: cn(C, x), startAngle: D, endAngle: j, payload: C, paddingAngle: fr(g) * l }), P; }); } return Rt(Rt({}, y), {}, { sectors: O, data: i }); }); var VOe = Math.ceil, UOe = Math.max; function HOe(e, t, n, r) { for (var i = -1, o = UOe(VOe((t - e) / (n || 1)), 0), a = Array(o); o--; ) a[r ? o : ++i] = e, e += n; return a; } var KOe = HOe, GOe = LB, i$ = 1 / 0, YOe = 17976931348623157e292; function qOe(e) { if (!e) return e === 0 ? e : 0; if (e = GOe(e), e === i$ || e === -i$) { var t = e < 0 ? -1 : 1; return t * YOe; } return e === e ? e : 0; } var xW = qOe, XOe = KOe, ZOe = iy, i0 = xW; function JOe(e) { return function(t, n, r) { return r && typeof r != "number" && ZOe(t, n, r) && (n = r = void 0), t = i0(t), n === void 0 ? (n = t, t = 0) : n = i0(n), r = r === void 0 ? t < n ? 1 : -1 : i0(r), XOe(t, n, r, e); }; } var QOe = JOe, eAe = QOe, tAe = eAe(), nAe = tAe; const Im = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(nAe); function nd(e) { "@babel/helpers - typeof"; return nd = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, nd(e); } function o$(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function a$(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? o$(Object(n), !0).forEach(function(r) { wW(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : o$(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function wW(e, t, n) { return t = rAe(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function rAe(e) { var t = iAe(e, "string"); return nd(t) == "symbol" ? t : t + ""; } function iAe(e, t) { if (nd(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (nd(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var oAe = ["Webkit", "Moz", "O", "ms"], aAe = function(t, n) { var r = t.replace(/(\w)/, function(o) { return o.toUpperCase(); }), i = oAe.reduce(function(o, a) { return a$(a$({}, o), {}, wW({}, a + r, n)); }, {}); return i[t] = n, i; }; function vc(e) { "@babel/helpers - typeof"; return vc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, vc(e); } function Rm() { return Rm = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, Rm.apply(this, arguments); } function s$(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function o0(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? s$(Object(n), !0).forEach(function(r) { Rr(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s$(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function sAe(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function l$(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, SW(r.key), r); } } function lAe(e, t, n) { return t && l$(e.prototype, t), n && l$(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function cAe(e, t, n) { return t = jm(t), uAe(e, _W() ? Reflect.construct(t, n || [], jm(e).constructor) : t.apply(e, n)); } function uAe(e, t) { if (t && (vc(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return fAe(e); } function fAe(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function _W() { try { var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (_W = function() { return !!e; })(); } function jm(e) { return jm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); }, jm(e); } function dAe(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Ow(e, t); } function Ow(e, t) { return Ow = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { return r.__proto__ = i, r; }, Ow(e, t); } function Rr(e, t, n) { return t = SW(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function SW(e) { var t = hAe(e, "string"); return vc(t) == "symbol" ? t : t + ""; } function hAe(e, t) { if (vc(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (vc(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var pAe = function(t) { var n = t.data, r = t.startIndex, i = t.endIndex, o = t.x, a = t.width, s = t.travellerWidth; if (!n || !n.length) return {}; var l = n.length, c = nf().domain(Im(0, l)).range([o, o + a - s]), f = c.domain().map(function(d) { return c(d); }); return { isTextActive: !1, isSlideMoving: !1, isTravellerMoving: !1, isTravellerFocused: !1, startX: c(r), endX: c(i), scale: c, scaleValues: f }; }, c$ = function(t) { return t.changedTouches && !!t.changedTouches.length; }, bc = /* @__PURE__ */ function(e) { function t(n) { var r; return sAe(this, t), r = cAe(this, t, [n]), Rr(r, "handleDrag", function(i) { r.leaveTimer && (clearTimeout(r.leaveTimer), r.leaveTimer = null), r.state.isTravellerMoving ? r.handleTravellerMove(i) : r.state.isSlideMoving && r.handleSlideDrag(i); }), Rr(r, "handleTouchMove", function(i) { i.changedTouches != null && i.changedTouches.length > 0 && r.handleDrag(i.changedTouches[0]); }), Rr(r, "handleDragEnd", function() { r.setState({ isTravellerMoving: !1, isSlideMoving: !1 }, function() { var i = r.props, o = i.endIndex, a = i.onDragEnd, s = i.startIndex; a == null || a({ endIndex: o, startIndex: s }); }), r.detachDragEndListener(); }), Rr(r, "handleLeaveWrapper", function() { (r.state.isTravellerMoving || r.state.isSlideMoving) && (r.leaveTimer = window.setTimeout(r.handleDragEnd, r.props.leaveTimeOut)); }), Rr(r, "handleEnterSlideOrTraveller", function() { r.setState({ isTextActive: !0 }); }), Rr(r, "handleLeaveSlideOrTraveller", function() { r.setState({ isTextActive: !1 }); }), Rr(r, "handleSlideDragStart", function(i) { var o = c$(i) ? i.changedTouches[0] : i; r.setState({ isTravellerMoving: !1, isSlideMoving: !0, slideMoveStartX: o.pageX }), r.attachDragEndListener(); }), r.travellerDragStartHandlers = { startX: r.handleTravellerDragStart.bind(r, "startX"), endX: r.handleTravellerDragStart.bind(r, "endX") }, r.state = {}, r; } return dAe(t, e), lAe(t, [{ key: "componentWillUnmount", value: function() { this.leaveTimer && (clearTimeout(this.leaveTimer), this.leaveTimer = null), this.detachDragEndListener(); } }, { key: "getIndex", value: function(r) { var i = r.startX, o = r.endX, a = this.state.scaleValues, s = this.props, l = s.gap, c = s.data, f = c.length - 1, d = Math.min(i, o), p = Math.max(i, o), m = t.getIndexInRange(a, d), y = t.getIndexInRange(a, p); return { startIndex: m - m % l, endIndex: y === f ? f : y - y % l }; } }, { key: "getTextOfTick", value: function(r) { var i = this.props, o = i.data, a = i.tickFormatter, s = i.dataKey, l = cn(o[r], s, r); return ze(a) ? a(l, r) : l; } }, { key: "attachDragEndListener", value: function() { window.addEventListener("mouseup", this.handleDragEnd, !0), window.addEventListener("touchend", this.handleDragEnd, !0), window.addEventListener("mousemove", this.handleDrag, !0); } }, { key: "detachDragEndListener", value: function() { window.removeEventListener("mouseup", this.handleDragEnd, !0), window.removeEventListener("touchend", this.handleDragEnd, !0), window.removeEventListener("mousemove", this.handleDrag, !0); } }, { key: "handleSlideDrag", value: function(r) { var i = this.state, o = i.slideMoveStartX, a = i.startX, s = i.endX, l = this.props, c = l.x, f = l.width, d = l.travellerWidth, p = l.startIndex, m = l.endIndex, y = l.onChange, g = r.pageX - o; g > 0 ? g = Math.min(g, c + f - d - s, c + f - d - a) : g < 0 && (g = Math.max(g, c - a, c - s)); var v = this.getIndex({ startX: a + g, endX: s + g }); (v.startIndex !== p || v.endIndex !== m) && y && y(v), this.setState({ startX: a + g, endX: s + g, slideMoveStartX: r.pageX }); } }, { key: "handleTravellerDragStart", value: function(r, i) { var o = c$(i) ? i.changedTouches[0] : i; this.setState({ isSlideMoving: !1, isTravellerMoving: !0, movingTravellerId: r, brushMoveStartX: o.pageX }), this.attachDragEndListener(); } }, { key: "handleTravellerMove", value: function(r) { var i = this.state, o = i.brushMoveStartX, a = i.movingTravellerId, s = i.endX, l = i.startX, c = this.state[a], f = this.props, d = f.x, p = f.width, m = f.travellerWidth, y = f.onChange, g = f.gap, v = f.data, x = { startX: this.state.startX, endX: this.state.endX }, w = r.pageX - o; w > 0 ? w = Math.min(w, d + p - m - c) : w < 0 && (w = Math.max(w, d - c)), x[a] = c + w; var S = this.getIndex(x), A = S.startIndex, _ = S.endIndex, O = function() { var C = v.length - 1; return a === "startX" && (s > l ? A % g === 0 : _ % g === 0) || s < l && _ === C || a === "endX" && (s > l ? _ % g === 0 : A % g === 0) || s > l && _ === C; }; this.setState(Rr(Rr({}, a, c + w), "brushMoveStartX", r.pageX), function() { y && O() && y(S); }); } }, { key: "handleTravellerMoveKeyboard", value: function(r, i) { var o = this, a = this.state, s = a.scaleValues, l = a.startX, c = a.endX, f = this.state[i], d = s.indexOf(f); if (d !== -1) { var p = d + r; if (!(p === -1 || p >= s.length)) { var m = s[p]; i === "startX" && m >= c || i === "endX" && m <= l || this.setState(Rr({}, i, m), function() { o.props.onChange(o.getIndex({ startX: o.state.startX, endX: o.state.endX })); }); } } } }, { key: "renderBackground", value: function() { var r = this.props, i = r.x, o = r.y, a = r.width, s = r.height, l = r.fill, c = r.stroke; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("rect", { stroke: c, fill: l, x: i, y: o, width: a, height: s }); } }, { key: "renderPanorama", value: function() { var r = this.props, i = r.x, o = r.y, a = r.width, s = r.height, l = r.data, c = r.children, f = r.padding, d = react__WEBPACK_IMPORTED_MODULE_1__.Children.only(c); return d ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(d, { x: i, y: o, width: a, height: s, margin: f, compact: !0, data: l }) : null; } }, { key: "renderTravellerLayer", value: function(r, i) { var o, a, s = this, l = this.props, c = l.y, f = l.travellerWidth, d = l.height, p = l.traveller, m = l.ariaLabel, y = l.data, g = l.startIndex, v = l.endIndex, x = Math.max(r, this.props.x), w = o0(o0({}, Ee(this.props, !1)), {}, { x, y: c, width: f, height: d }), S = m || "Min value: ".concat((o = y[g]) === null || o === void 0 ? void 0 : o.name, ", Max value: ").concat((a = y[v]) === null || a === void 0 ? void 0 : a.name); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { tabIndex: 0, role: "slider", "aria-label": S, "aria-valuenow": r, className: "recharts-brush-traveller", onMouseEnter: this.handleEnterSlideOrTraveller, onMouseLeave: this.handleLeaveSlideOrTraveller, onMouseDown: this.travellerDragStartHandlers[i], onTouchStart: this.travellerDragStartHandlers[i], onKeyDown: function(_) { ["ArrowLeft", "ArrowRight"].includes(_.key) && (_.preventDefault(), _.stopPropagation(), s.handleTravellerMoveKeyboard(_.key === "ArrowRight" ? 1 : -1, i)); }, onFocus: function() { s.setState({ isTravellerFocused: !0 }); }, onBlur: function() { s.setState({ isTravellerFocused: !1 }); }, style: { cursor: "col-resize" } }, t.renderTraveller(p, w)); } }, { key: "renderSlide", value: function(r, i) { var o = this.props, a = o.y, s = o.height, l = o.stroke, c = o.travellerWidth, f = Math.min(r, i) + c, d = Math.max(Math.abs(i - r) - c, 0); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("rect", { className: "recharts-brush-slide", onMouseEnter: this.handleEnterSlideOrTraveller, onMouseLeave: this.handleLeaveSlideOrTraveller, onMouseDown: this.handleSlideDragStart, onTouchStart: this.handleSlideDragStart, style: { cursor: "move" }, stroke: "none", fill: l, fillOpacity: 0.2, x: f, y: a, width: d, height: s }); } }, { key: "renderText", value: function() { var r = this.props, i = r.startIndex, o = r.endIndex, a = r.y, s = r.height, l = r.travellerWidth, c = r.stroke, f = this.state, d = f.startX, p = f.endX, m = 5, y = { pointerEvents: "none", fill: c }; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { className: "recharts-brush-texts" }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Vs, Rm({ textAnchor: "end", verticalAnchor: "middle", x: Math.min(d, p) - m, y: a + s / 2 }, y), this.getTextOfTick(i)), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Vs, Rm({ textAnchor: "start", verticalAnchor: "middle", x: Math.max(d, p) + l + m, y: a + s / 2 }, y), this.getTextOfTick(o))); } }, { key: "render", value: function() { var r = this.props, i = r.data, o = r.className, a = r.children, s = r.x, l = r.y, c = r.width, f = r.height, d = r.alwaysShowText, p = this.state, m = p.startX, y = p.endX, g = p.isTextActive, v = p.isSlideMoving, x = p.isTravellerMoving, w = p.isTravellerFocused; if (!i || !i.length || !be(s) || !be(l) || !be(c) || !be(f) || c <= 0 || f <= 0) return null; var S = Xe("recharts-brush", o), A = react__WEBPACK_IMPORTED_MODULE_1__.Children.count(a) === 1, _ = aAe("userSelect", "none"); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { className: S, onMouseLeave: this.handleLeaveWrapper, onTouchMove: this.handleTouchMove, style: _ }, this.renderBackground(), A && this.renderPanorama(), this.renderSlide(m, y), this.renderTravellerLayer(m, "startX"), this.renderTravellerLayer(y, "endX"), (g || v || x || w || d) && this.renderText()); } }], [{ key: "renderDefaultTraveller", value: function(r) { var i = r.x, o = r.y, a = r.width, s = r.height, l = r.stroke, c = Math.floor(o + s / 2) - 1; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("rect", { x: i, y: o, width: a, height: s, fill: l, stroke: "none" }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("line", { x1: i + 1, y1: c, x2: i + a - 1, y2: c, fill: "none", stroke: "#fff" }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("line", { x1: i + 1, y1: c + 2, x2: i + a - 1, y2: c + 2, fill: "none", stroke: "#fff" })); } }, { key: "renderTraveller", value: function(r, i) { var o; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(r) ? o = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(r, i) : ze(r) ? o = r(i) : o = t.renderDefaultTraveller(i), o; } }, { key: "getDerivedStateFromProps", value: function(r, i) { var o = r.data, a = r.width, s = r.x, l = r.travellerWidth, c = r.updateId, f = r.startIndex, d = r.endIndex; if (o !== i.prevData || c !== i.prevUpdateId) return o0({ prevData: o, prevTravellerWidth: l, prevUpdateId: c, prevX: s, prevWidth: a }, o && o.length ? pAe({ data: o, width: a, x: s, travellerWidth: l, startIndex: f, endIndex: d }) : { scale: null, scaleValues: null }); if (i.scale && (a !== i.prevWidth || s !== i.prevX || l !== i.prevTravellerWidth)) { i.scale.range([s, s + a - l]); var p = i.scale.domain().map(function(m) { return i.scale(m); }); return { prevData: o, prevTravellerWidth: l, prevUpdateId: c, prevX: s, prevWidth: a, startX: i.scale(r.startIndex), endX: i.scale(r.endIndex), scaleValues: p }; } return null; } }, { key: "getIndexInRange", value: function(r, i) { for (var o = r.length, a = 0, s = o - 1; s - a > 1; ) { var l = Math.floor((a + s) / 2); r[l] > i ? s = l : a = l; } return i >= r[s] ? s : a; } }]); }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent); Rr(bc, "displayName", "Brush"); Rr(bc, "defaultProps", { height: 40, travellerWidth: 5, gap: 1, fill: "#fff", stroke: "#666", padding: { top: 1, right: 1, bottom: 1, left: 1 }, leaveTimeOut: 1e3, alwaysShowText: !1 }); var mAe = J_; function gAe(e, t) { var n; return mAe(e, function(r, i, o) { return n = t(r, i, o), !n; }), !!n; } var yAe = gAe, vAe = fB, bAe = so, xAe = yAe, wAe = Tr, _Ae = iy; function SAe(e, t, n) { var r = wAe(e) ? vAe : xAe; return n && _Ae(e, t, n) && (t = void 0), r(e, bAe(t)); } var OAe = SAe; const AAe = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(OAe); var Qi = function(t, n) { var r = t.alwaysShow, i = t.ifOverflow; return r && (i = "extendDomain"), i === n; }, u$ = $B; function TAe(e, t, n) { t == "__proto__" && u$ ? u$(e, t, { configurable: !0, enumerable: !0, value: n, writable: !0 }) : e[t] = n; } var PAe = TAe, CAe = PAe, EAe = MB, kAe = so; function MAe(e, t) { var n = {}; return t = kAe(t), EAe(e, function(r, i, o) { CAe(n, i, t(r, i, o)); }), n; } var NAe = MAe; const $Ae = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(NAe); function DAe(e, t) { for (var n = -1, r = e == null ? 0 : e.length; ++n < r; ) if (!t(e[n], n, e)) return !1; return !0; } var IAe = DAe, RAe = J_; function jAe(e, t) { var n = !0; return RAe(e, function(r, i, o) { return n = !!t(r, i, o), n; }), n; } var LAe = jAe, BAe = IAe, FAe = LAe, WAe = so, zAe = Tr, VAe = iy; function UAe(e, t, n) { var r = zAe(e) ? BAe : FAe; return n && VAe(e, t, n) && (t = void 0), r(e, WAe(t)); } var HAe = UAe; const OW = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(HAe); var KAe = ["x", "y"]; function xc(e) { "@babel/helpers - typeof"; return xc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, xc(e); } function Aw() { return Aw = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, Aw.apply(this, arguments); } function f$(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function Ru(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? f$(Object(n), !0).forEach(function(r) { GAe(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : f$(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function GAe(e, t, n) { return t = YAe(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function YAe(e) { var t = qAe(e, "string"); return xc(t) == "symbol" ? t : t + ""; } function qAe(e, t) { if (xc(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (xc(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function XAe(e, t) { if (e == null) return {}; var n = ZAe(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function ZAe(e, t) { if (e == null) return {}; var n = {}; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { if (t.indexOf(r) >= 0) continue; n[r] = e[r]; } return n; } function JAe(e, t) { var n = e.x, r = e.y, i = XAe(e, KAe), o = "".concat(n), a = parseInt(o, 10), s = "".concat(r), l = parseInt(s, 10), c = "".concat(t.height || i.height), f = parseInt(c, 10), d = "".concat(t.width || i.width), p = parseInt(d, 10); return Ru(Ru(Ru(Ru(Ru({}, t), i), a ? { x: a } : {}), l ? { y: l } : {}), {}, { height: f, width: p, name: t.name, radius: t.radius }); } function d$(e) { return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(yW, Aw({ shapeType: "rectangle", propTransformer: JAe, activeClassName: "recharts-active-bar" }, e)); } var QAe = function(t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0; return function(r, i) { if (typeof t == "number") return t; var o = typeof r == "number"; return o ? t(r, i) : (o || ( true ? Sr(!1, "minPointSize callback function received a value with type of ".concat(xc(r), ". Currently only numbers are supported.")) : 0), n); }; }, eTe = ["value", "background"], AW; function wc(e) { "@babel/helpers - typeof"; return wc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, wc(e); } function tTe(e, t) { if (e == null) return {}; var n = nTe(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function nTe(e, t) { if (e == null) return {}; var n = {}; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { if (t.indexOf(r) >= 0) continue; n[r] = e[r]; } return n; } function Lm() { return Lm = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, Lm.apply(this, arguments); } function h$(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function dn(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? h$(Object(n), !0).forEach(function(r) { Pa(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : h$(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function rTe(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function p$(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, PW(r.key), r); } } function iTe(e, t, n) { return t && p$(e.prototype, t), n && p$(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function oTe(e, t, n) { return t = Bm(t), aTe(e, TW() ? Reflect.construct(t, n || [], Bm(e).constructor) : t.apply(e, n)); } function aTe(e, t) { if (t && (wc(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return sTe(e); } function sTe(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function TW() { try { var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (TW = function() { return !!e; })(); } function Bm(e) { return Bm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); }, Bm(e); } function lTe(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Tw(e, t); } function Tw(e, t) { return Tw = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { return r.__proto__ = i, r; }, Tw(e, t); } function Pa(e, t, n) { return t = PW(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function PW(e) { var t = cTe(e, "string"); return wc(t) == "symbol" ? t : t + ""; } function cTe(e, t) { if (wc(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (wc(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var il = /* @__PURE__ */ function(e) { function t() { var n; rTe(this, t); for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o]; return n = oTe(this, t, [].concat(i)), Pa(n, "state", { isAnimationFinished: !1 }), Pa(n, "id", tl("recharts-bar-")), Pa(n, "handleAnimationEnd", function() { var a = n.props.onAnimationEnd; n.setState({ isAnimationFinished: !0 }), a && a(); }), Pa(n, "handleAnimationStart", function() { var a = n.props.onAnimationStart; n.setState({ isAnimationFinished: !1 }), a && a(); }), n; } return lTe(t, e), iTe(t, [{ key: "renderRectanglesStatically", value: function(r) { var i = this, o = this.props, a = o.shape, s = o.dataKey, l = o.activeIndex, c = o.activeBar, f = Ee(this.props, !1); return r && r.map(function(d, p) { var m = p === l, y = m ? c : a, g = dn(dn(dn({}, f), d), {}, { isActive: m, option: y, index: p, dataKey: s, onAnimationStart: i.handleAnimationStart, onAnimationEnd: i.handleAnimationEnd }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, Lm({ className: "recharts-bar-rectangle" }, zs(i.props, d, p), { key: "rectangle-".concat(d == null ? void 0 : d.x, "-").concat(d == null ? void 0 : d.y, "-").concat(d == null ? void 0 : d.value) }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(d$, g)); }); } }, { key: "renderRectanglesWithAnimation", value: function() { var r = this, i = this.props, o = i.data, a = i.layout, s = i.isAnimationActive, l = i.animationBegin, c = i.animationDuration, f = i.animationEasing, d = i.animationId, p = this.state.prevData; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement($i, { begin: l, duration: c, isActive: s, easing: f, from: { t: 0 }, to: { t: 1 }, key: "bar-".concat(d), onAnimationEnd: this.handleAnimationEnd, onAnimationStart: this.handleAnimationStart }, function(m) { var y = m.t, g = o.map(function(v, x) { var w = p && p[x]; if (w) { var S = _n(w.x, v.x), A = _n(w.y, v.y), _ = _n(w.width, v.width), O = _n(w.height, v.height); return dn(dn({}, v), {}, { x: S(y), y: A(y), width: _(y), height: O(y) }); } if (a === "horizontal") { var P = _n(0, v.height), C = P(y); return dn(dn({}, v), {}, { y: v.y + v.height - C, height: C }); } var k = _n(0, v.width), I = k(y); return dn(dn({}, v), {}, { width: I }); }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, null, r.renderRectanglesStatically(g)); }); } }, { key: "renderRectangles", value: function() { var r = this.props, i = r.data, o = r.isAnimationActive, a = this.state.prevData; return o && i && i.length && (!a || !Us(a, i)) ? this.renderRectanglesWithAnimation() : this.renderRectanglesStatically(i); } }, { key: "renderBackground", value: function() { var r = this, i = this.props, o = i.data, a = i.dataKey, s = i.activeIndex, l = Ee(this.props.background, !1); return o.map(function(c, f) { c.value; var d = c.background, p = tTe(c, eTe); if (!d) return null; var m = dn(dn(dn(dn(dn({}, p), {}, { fill: "#eee" }, d), l), zs(r.props, c, f)), {}, { onAnimationStart: r.handleAnimationStart, onAnimationEnd: r.handleAnimationEnd, dataKey: a, index: f, className: "recharts-bar-background-rectangle" }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(d$, Lm({ key: "background-bar-".concat(f), option: r.props.background, isActive: f === s }, m)); }); } }, { key: "renderErrorBar", value: function(r, i) { if (this.props.isAnimationActive && !this.state.isAnimationFinished) return null; var o = this.props, a = o.data, s = o.xAxis, l = o.yAxis, c = o.layout, f = o.children, d = Vr(f, $d); if (!d) return null; var p = c === "vertical" ? a[0].height / 2 : a[0].width / 2, m = function(v, x) { var w = Array.isArray(v.value) ? v.value[1] : v.value; return { x: v.x, y: v.y, value: w, errorVal: cn(v, x) }; }, y = { clipPath: r ? "url(#clipPath-".concat(i, ")") : null }; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, y, d.map(function(g) { return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(g, { key: "error-bar-".concat(i, "-").concat(g.props.dataKey), data: a, xAxis: s, yAxis: l, layout: c, offset: p, dataPointFormatter: m }); })); } }, { key: "render", value: function() { var r = this.props, i = r.hide, o = r.data, a = r.className, s = r.xAxis, l = r.yAxis, c = r.left, f = r.top, d = r.width, p = r.height, m = r.isAnimationActive, y = r.background, g = r.id; if (i || !o || !o.length) return null; var v = this.state.isAnimationFinished, x = Xe("recharts-bar", a), w = s && s.allowDataOverflow, S = l && l.allowDataOverflow, A = w || S, _ = Ue(g) ? this.id : g; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { className: x }, w || S ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("defs", null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("clipPath", { id: "clipPath-".concat(_) }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("rect", { x: w ? c : c - d / 2, y: S ? f : f - p / 2, width: w ? d : d * 2, height: S ? p : p * 2 }))) : null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { className: "recharts-bar-rectangles", clipPath: A ? "url(#clipPath-".concat(_, ")") : null }, y ? this.renderBackground() : null, this.renderRectangles()), this.renderErrorBar(A, _), (!m || v) && Ji.renderCallByParent(this.props, o)); } }], [{ key: "getDerivedStateFromProps", value: function(r, i) { return r.animationId !== i.prevAnimationId ? { prevAnimationId: r.animationId, curData: r.data, prevData: i.curData } : r.data !== i.curData ? { curData: r.data } : null; } }]); }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent); AW = il; Pa(il, "displayName", "Bar"); Pa(il, "defaultProps", { xAxisId: 0, yAxisId: 0, legendType: "rect", minPointSize: 0, hide: !1, data: [], layout: "vertical", activeBar: !1, isAnimationActive: !Ni.isSsr, animationBegin: 0, animationDuration: 400, animationEasing: "ease" }); Pa(il, "getComposedData", function(e) { var t = e.props, n = e.item, r = e.barPosition, i = e.bandSize, o = e.xAxis, a = e.yAxis, s = e.xAxisTicks, l = e.yAxisTicks, c = e.stackedData, f = e.dataStartIndex, d = e.displayedData, p = e.offset, m = Yxe(r, n); if (!m) return null; var y = t.layout, g = n.type.defaultProps, v = g !== void 0 ? dn(dn({}, g), n.props) : n.props, x = v.dataKey, w = v.children, S = v.minPointSize, A = y === "horizontal" ? a : o, _ = c ? A.scale.domain() : null, O = twe({ numericAxis: A }), P = Vr(w, nS), C = d.map(function(k, I) { var $, N, D, j, F, W; c ? $ = qxe(c[f + I], _) : ($ = cn(k, x), Array.isArray($) || ($ = [O, $])); var z = QAe(S, AW.defaultProps.minPointSize)($[1], I); if (y === "horizontal") { var H, U = [a.scale($[0]), a.scale($[1])], V = U[0], Y = U[1]; N = YM({ axis: o, ticks: s, bandSize: i, offset: m.offset, entry: k, index: I }), D = (H = Y ?? V) !== null && H !== void 0 ? H : void 0, j = m.size; var Q = V - Y; if (F = Number.isNaN(Q) ? 0 : Q, W = { x: N, y: a.y, width: j, height: a.height }, Math.abs(z) > 0 && Math.abs(F) < Math.abs(z)) { var ne = fr(F || z) * (Math.abs(z) - Math.abs(F)); D -= ne, F += ne; } } else { var re = [o.scale($[0]), o.scale($[1])], ce = re[0], oe = re[1]; if (N = ce, D = YM({ axis: a, ticks: l, bandSize: i, offset: m.offset, entry: k, index: I }), j = oe - ce, F = m.size, W = { x: o.x, y: D, width: o.width, height: F }, Math.abs(z) > 0 && Math.abs(j) < Math.abs(z)) { var fe = fr(j || z) * (Math.abs(z) - Math.abs(j)); j += fe; } } return dn(dn(dn({}, k), {}, { x: N, y: D, width: j, height: F, value: c ? $ : $[1], payload: k, background: W }, P && P[I] && P[I].props), {}, { tooltipPayload: [qF(n, k)], tooltipPosition: { x: N + j / 2, y: D + F / 2 } }); }); return dn({ data: C, layout: y }, p); }); function rd(e) { "@babel/helpers - typeof"; return rd = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, rd(e); } function uTe(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function m$(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, CW(r.key), r); } } function fTe(e, t, n) { return t && m$(e.prototype, t), n && m$(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function g$(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function Ai(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? g$(Object(n), !0).forEach(function(r) { wy(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : g$(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function wy(e, t, n) { return t = CW(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function CW(e) { var t = dTe(e, "string"); return rd(t) == "symbol" ? t : t + ""; } function dTe(e, t) { if (rd(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (rd(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var kS = function(t, n, r, i, o) { var a = t.width, s = t.height, l = t.layout, c = t.children, f = Object.keys(n), d = { left: r.left, leftMirror: r.left, right: a - r.right, rightMirror: a - r.right, top: r.top, topMirror: r.top, bottom: s - r.bottom, bottomMirror: s - r.bottom }, p = !!jr(c, il); return f.reduce(function(m, y) { var g = n[y], v = g.orientation, x = g.domain, w = g.padding, S = w === void 0 ? {} : w, A = g.mirror, _ = g.reversed, O = "".concat(v).concat(A ? "Mirror" : ""), P, C, k, I, $; if (g.type === "number" && (g.padding === "gap" || g.padding === "no-gap")) { var N = x[1] - x[0], D = 1 / 0, j = g.categoricalDomain.sort(); if (j.forEach(function(re, ce) { ce > 0 && (D = Math.min((re || 0) - (j[ce - 1] || 0), D)); }), Number.isFinite(D)) { var F = D / N, W = g.layout === "vertical" ? r.height : r.width; if (g.padding === "gap" && (P = F * W / 2), g.padding === "no-gap") { var z = dr(t.barCategoryGap, F * W), H = F * W / 2; P = H - z - (H - z) / W * z; } } } i === "xAxis" ? C = [r.left + (S.left || 0) + (P || 0), r.left + r.width - (S.right || 0) - (P || 0)] : i === "yAxis" ? C = l === "horizontal" ? [r.top + r.height - (S.bottom || 0), r.top + (S.top || 0)] : [r.top + (S.top || 0) + (P || 0), r.top + r.height - (S.bottom || 0) - (P || 0)] : C = g.range, _ && (C = [C[1], C[0]]); var U = HF(g, o, p), V = U.scale, Y = U.realScaleType; V.domain(x).range(C), KF(V); var Q = GF(V, Ai(Ai({}, g), {}, { realScaleType: Y })); i === "xAxis" ? ($ = v === "top" && !A || v === "bottom" && A, k = r.left, I = d[O] - $ * g.height) : i === "yAxis" && ($ = v === "left" && !A || v === "right" && A, k = d[O] - $ * g.width, I = r.top); var ne = Ai(Ai(Ai({}, g), Q), {}, { realScaleType: Y, x: k, y: I, scale: V, width: i === "xAxis" ? r.width : g.width, height: i === "yAxis" ? r.height : g.height }); return ne.bandSize = _m(ne, Q), !g.hide && i === "xAxis" ? d[O] += ($ ? -1 : 1) * ne.height : g.hide || (d[O] += ($ ? -1 : 1) * ne.width), Ai(Ai({}, m), {}, wy({}, y, ne)); }, {}); }, EW = function(t, n) { var r = t.x, i = t.y, o = n.x, a = n.y; return { x: Math.min(r, o), y: Math.min(i, a), width: Math.abs(o - r), height: Math.abs(a - i) }; }, hTe = function(t) { var n = t.x1, r = t.y1, i = t.x2, o = t.y2; return EW({ x: n, y: r }, { x: i, y: o }); }, kW = /* @__PURE__ */ function() { function e(t) { uTe(this, e), this.scale = t; } return fTe(e, [{ key: "domain", get: function() { return this.scale.domain; } }, { key: "range", get: function() { return this.scale.range; } }, { key: "rangeMin", get: function() { return this.range()[0]; } }, { key: "rangeMax", get: function() { return this.range()[1]; } }, { key: "bandwidth", get: function() { return this.scale.bandwidth; } }, { key: "apply", value: function(n) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = r.bandAware, o = r.position; if (n !== void 0) { if (o) switch (o) { case "start": return this.scale(n); case "middle": { var a = this.bandwidth ? this.bandwidth() / 2 : 0; return this.scale(n) + a; } case "end": { var s = this.bandwidth ? this.bandwidth() : 0; return this.scale(n) + s; } default: return this.scale(n); } if (i) { var l = this.bandwidth ? this.bandwidth() / 2 : 0; return this.scale(n) + l; } return this.scale(n); } } }, { key: "isInRange", value: function(n) { var r = this.range(), i = r[0], o = r[r.length - 1]; return i <= o ? n >= i && n <= o : n >= o && n <= i; } }], [{ key: "create", value: function(n) { return new e(n); } }]); }(); wy(kW, "EPS", 1e-4); var MS = function(t) { var n = Object.keys(t).reduce(function(r, i) { return Ai(Ai({}, r), {}, wy({}, i, kW.create(t[i]))); }, {}); return Ai(Ai({}, n), {}, { apply: function(i) { var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = o.bandAware, s = o.position; return $Ae(i, function(l, c) { return n[c].apply(l, { bandAware: a, position: s }); }); }, isInRange: function(i) { return OW(i, function(o, a) { return n[a].isInRange(o); }); } }); }; function pTe(e) { return (e % 180 + 180) % 180; } var mTe = function(t) { var n = t.width, r = t.height, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, o = pTe(i), a = o * Math.PI / 180, s = Math.atan(r / n), l = a > s && a < Math.PI - s ? r / Math.sin(a) : n / Math.cos(a); return Math.abs(l); }, gTe = so, yTe = Cd, vTe = ny; function bTe(e) { return function(t, n, r) { var i = Object(t); if (!yTe(t)) { var o = gTe(n); t = vTe(t), n = function(s) { return o(i[s], s, i); }; } var a = e(t, n, r); return a > -1 ? i[o ? t[a] : a] : void 0; }; } var xTe = bTe, wTe = xW; function _Te(e) { var t = wTe(e), n = t % 1; return t === t ? n ? t - n : t : 0; } var STe = _Te, OTe = AB, ATe = so, TTe = STe, PTe = Math.max; function CTe(e, t, n) { var r = e == null ? 0 : e.length; if (!r) return -1; var i = n == null ? 0 : TTe(n); return i < 0 && (i = PTe(r + i, 0)), OTe(e, ATe(t), i); } var ETe = CTe, kTe = xTe, MTe = ETe, NTe = kTe(MTe), $Te = NTe; const DTe = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)($Te); var ITe = Ioe(function(e) { return { x: e.left, y: e.top, width: e.width, height: e.height }; }, function(e) { return ["l", e.left, "t", e.top, "w", e.width, "h", e.height].join(""); }); function Fm(e) { "@babel/helpers - typeof"; return Fm = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Fm(e); } var NS = /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)(void 0), $S = /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)(void 0), MW = /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)(void 0), NW = /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)({}), $W = /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)(void 0), DW = /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)(0), IW = /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)(0), y$ = function(t) { var n = t.state, r = n.xAxisMap, i = n.yAxisMap, o = n.offset, a = t.clipPathId, s = t.children, l = t.width, c = t.height, f = ITe(o); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(NS.Provider, { value: r }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement($S.Provider, { value: i }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(NW.Provider, { value: o }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(MW.Provider, { value: f }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement($W.Provider, { value: a }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(DW.Provider, { value: c }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(IW.Provider, { value: l }, s))))))); }, RTe = function() { return (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)($W); }; function RW(e) { var t = Object.keys(e); return t.length === 0 ? "There are no available ids." : "Available ids are: ".concat(t, "."); } var jW = function(t) { var n = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(NS); n == null && ( true ? Sr(!1, "Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?") : 0); var r = n[t]; return r == null && ( true ? Sr(!1, 'Could not find xAxis by id "'.concat(t, '" [').concat(Fm(t), "]. ").concat(RW(n))) : 0), r; }, jTe = function() { var t = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(NS); return Sa(t); }, LTe = function() { var t = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)($S), n = DTe(t, function(r) { return OW(r.domain, Number.isFinite); }); return n || Sa(t); }, LW = function(t) { var n = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)($S); n == null && ( true ? Sr(!1, "Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?") : 0); var r = n[t]; return r == null && ( true ? Sr(!1, 'Could not find yAxis by id "'.concat(t, '" [').concat(Fm(t), "]. ").concat(RW(n))) : 0), r; }, BTe = function() { var t = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(MW); return t; }, FTe = function() { return (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(NW); }, DS = function() { return (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(IW); }, IS = function() { return (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(DW); }; function _c(e) { "@babel/helpers - typeof"; return _c = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, _c(e); } function WTe(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function zTe(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, FW(r.key), r); } } function VTe(e, t, n) { return t && zTe(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function UTe(e, t, n) { return t = Wm(t), HTe(e, BW() ? Reflect.construct(t, n || [], Wm(e).constructor) : t.apply(e, n)); } function HTe(e, t) { if (t && (_c(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return KTe(e); } function KTe(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function BW() { try { var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (BW = function() { return !!e; })(); } function Wm(e) { return Wm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); }, Wm(e); } function GTe(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Pw(e, t); } function Pw(e, t) { return Pw = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { return r.__proto__ = i, r; }, Pw(e, t); } function v$(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function b$(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? v$(Object(n), !0).forEach(function(r) { RS(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : v$(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function RS(e, t, n) { return t = FW(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function FW(e) { var t = YTe(e, "string"); return _c(t) == "symbol" ? t : t + ""; } function YTe(e, t) { if (_c(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (_c(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function qTe(e, t) { return QTe(e) || JTe(e, t) || ZTe(e, t) || XTe(); } function XTe() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function ZTe(e, t) { if (e) { if (typeof e == "string") return x$(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return x$(e, t); } } function x$(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } function JTe(e, t) { var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; if (n != null) { var r, i, o, a, s = [], l = !0, c = !1; try { if (o = (n = n.call(e)).next, t !== 0) for (; !(l = (r = o.call(n)).done) && (s.push(r.value), s.length !== t); l = !0) ; } catch (f) { c = !0, i = f; } finally { try { if (!l && n.return != null && (a = n.return(), Object(a) !== a)) return; } finally { if (c) throw i; } } return s; } } function QTe(e) { if (Array.isArray(e)) return e; } function Cw() { return Cw = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, Cw.apply(this, arguments); } var ePe = function(t, n) { var r; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(t) ? r = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(t, n) : ze(t) ? r = t(n) : r = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("line", Cw({}, n, { className: "recharts-reference-line-line" })), r; }, tPe = function(t, n, r, i, o, a, s, l, c) { var f = o.x, d = o.y, p = o.width, m = o.height; if (r) { var y = c.y, g = t.y.apply(y, { position: a }); if (Qi(c, "discard") && !t.y.isInRange(g)) return null; var v = [{ x: f + p, y: g }, { x: f, y: g }]; return l === "left" ? v.reverse() : v; } if (n) { var x = c.x, w = t.x.apply(x, { position: a }); if (Qi(c, "discard") && !t.x.isInRange(w)) return null; var S = [{ x: w, y: d + m }, { x: w, y: d }]; return s === "top" ? S.reverse() : S; } if (i) { var A = c.segment, _ = A.map(function(O) { return t.apply(O, { position: a }); }); return Qi(c, "discard") && AAe(_, function(O) { return !t.isInRange(O); }) ? null : _; } return null; }; function nPe(e) { var t = e.x, n = e.y, r = e.segment, i = e.xAxisId, o = e.yAxisId, a = e.shape, s = e.className, l = e.alwaysShow, c = RTe(), f = jW(i), d = LW(o), p = BTe(); if (!c || !p) return null; Mi(l === void 0, 'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'); var m = MS({ x: f.scale, y: d.scale }), y = On(t), g = On(n), v = r && r.length === 2, x = tPe(m, y, g, v, p, e.position, f.orientation, d.orientation, e); if (!x) return null; var w = qTe(x, 2), S = w[0], A = S.x, _ = S.y, O = w[1], P = O.x, C = O.y, k = Qi(e, "hidden") ? "url(#".concat(c, ")") : void 0, I = b$(b$({ clipPath: k }, Ee(e, !0)), {}, { x1: A, y1: _, x2: P, y2: C }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { className: Xe("recharts-reference-line", s) }, ePe(a, I), Sn.renderCallByParent(e, hTe({ x1: A, y1: _, x2: P, y2: C }))); } var jS = /* @__PURE__ */ function(e) { function t() { return WTe(this, t), UTe(this, t, arguments); } return GTe(t, e), VTe(t, [{ key: "render", value: function() { return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(nPe, this.props); } }]); }(react__WEBPACK_IMPORTED_MODULE_1__.Component); RS(jS, "displayName", "ReferenceLine"); RS(jS, "defaultProps", { isFront: !1, ifOverflow: "discard", xAxisId: 0, yAxisId: 0, fill: "none", stroke: "#ccc", fillOpacity: 1, strokeWidth: 1, position: "middle" }); function Ew() { return Ew = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, Ew.apply(this, arguments); } function Sc(e) { "@babel/helpers - typeof"; return Sc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Sc(e); } function w$(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function _$(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? w$(Object(n), !0).forEach(function(r) { _y(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : w$(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function rPe(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function iPe(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, zW(r.key), r); } } function oPe(e, t, n) { return t && iPe(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function aPe(e, t, n) { return t = zm(t), sPe(e, WW() ? Reflect.construct(t, n || [], zm(e).constructor) : t.apply(e, n)); } function sPe(e, t) { if (t && (Sc(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return lPe(e); } function lPe(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function WW() { try { var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (WW = function() { return !!e; })(); } function zm(e) { return zm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); }, zm(e); } function cPe(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && kw(e, t); } function kw(e, t) { return kw = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { return r.__proto__ = i, r; }, kw(e, t); } function _y(e, t, n) { return t = zW(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function zW(e) { var t = uPe(e, "string"); return Sc(t) == "symbol" ? t : t + ""; } function uPe(e, t) { if (Sc(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Sc(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var fPe = function(t) { var n = t.x, r = t.y, i = t.xAxis, o = t.yAxis, a = MS({ x: i.scale, y: o.scale }), s = a.apply({ x: n, y: r }, { bandAware: !0 }); return Qi(t, "discard") && !a.isInRange(s) ? null : s; }, Sy = /* @__PURE__ */ function(e) { function t() { return rPe(this, t), aPe(this, t, arguments); } return cPe(t, e), oPe(t, [{ key: "render", value: function() { var r = this.props, i = r.x, o = r.y, a = r.r, s = r.alwaysShow, l = r.clipPathId, c = On(i), f = On(o); if (Mi(s === void 0, 'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'), !c || !f) return null; var d = fPe(this.props); if (!d) return null; var p = d.x, m = d.y, y = this.props, g = y.shape, v = y.className, x = Qi(this.props, "hidden") ? "url(#".concat(l, ")") : void 0, w = _$(_$({ clipPath: x }, Ee(this.props, !0)), {}, { cx: p, cy: m }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { className: Xe("recharts-reference-dot", v) }, t.renderDot(g, w), Sn.renderCallByParent(this.props, { x: p - a, y: m - a, width: 2 * a, height: 2 * a })); } }]); }(react__WEBPACK_IMPORTED_MODULE_1__.Component); _y(Sy, "displayName", "ReferenceDot"); _y(Sy, "defaultProps", { isFront: !1, ifOverflow: "discard", xAxisId: 0, yAxisId: 0, r: 10, fill: "#fff", stroke: "#ccc", fillOpacity: 1, strokeWidth: 1 }); _y(Sy, "renderDot", function(e, t) { var n; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(e) ? n = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(e, t) : ze(e) ? n = e(t) : n = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Dd, Ew({}, t, { cx: t.cx, cy: t.cy, className: "recharts-reference-dot-dot" })), n; }); function Mw() { return Mw = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, Mw.apply(this, arguments); } function Oc(e) { "@babel/helpers - typeof"; return Oc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Oc(e); } function S$(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function O$(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? S$(Object(n), !0).forEach(function(r) { Oy(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : S$(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function dPe(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function hPe(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, UW(r.key), r); } } function pPe(e, t, n) { return t && hPe(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function mPe(e, t, n) { return t = Vm(t), gPe(e, VW() ? Reflect.construct(t, n || [], Vm(e).constructor) : t.apply(e, n)); } function gPe(e, t) { if (t && (Oc(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return yPe(e); } function yPe(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function VW() { try { var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (VW = function() { return !!e; })(); } function Vm(e) { return Vm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); }, Vm(e); } function vPe(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Nw(e, t); } function Nw(e, t) { return Nw = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { return r.__proto__ = i, r; }, Nw(e, t); } function Oy(e, t, n) { return t = UW(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function UW(e) { var t = bPe(e, "string"); return Oc(t) == "symbol" ? t : t + ""; } function bPe(e, t) { if (Oc(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Oc(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var xPe = function(t, n, r, i, o) { var a = o.x1, s = o.x2, l = o.y1, c = o.y2, f = o.xAxis, d = o.yAxis; if (!f || !d) return null; var p = MS({ x: f.scale, y: d.scale }), m = { x: t ? p.x.apply(a, { position: "start" }) : p.x.rangeMin, y: r ? p.y.apply(l, { position: "start" }) : p.y.rangeMin }, y = { x: n ? p.x.apply(s, { position: "end" }) : p.x.rangeMax, y: i ? p.y.apply(c, { position: "end" }) : p.y.rangeMax }; return Qi(o, "discard") && (!p.isInRange(m) || !p.isInRange(y)) ? null : EW(m, y); }, Ay = /* @__PURE__ */ function(e) { function t() { return dPe(this, t), mPe(this, t, arguments); } return vPe(t, e), pPe(t, [{ key: "render", value: function() { var r = this.props, i = r.x1, o = r.x2, a = r.y1, s = r.y2, l = r.className, c = r.alwaysShow, f = r.clipPathId; Mi(c === void 0, 'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'); var d = On(i), p = On(o), m = On(a), y = On(s), g = this.props.shape; if (!d && !p && !m && !y && !g) return null; var v = xPe(d, p, m, y, this.props); if (!v && !g) return null; var x = Qi(this.props, "hidden") ? "url(#".concat(f, ")") : void 0; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { className: Xe("recharts-reference-area", l) }, t.renderRect(g, O$(O$({ clipPath: x }, Ee(this.props, !0)), v)), Sn.renderCallByParent(this.props, v)); } }]); }(react__WEBPACK_IMPORTED_MODULE_1__.Component); Oy(Ay, "displayName", "ReferenceArea"); Oy(Ay, "defaultProps", { isFront: !1, ifOverflow: "discard", xAxisId: 0, yAxisId: 0, r: 10, fill: "#ccc", fillOpacity: 0.5, stroke: "none", strokeWidth: 1 }); Oy(Ay, "renderRect", function(e, t) { var n; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(e) ? n = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(e, t) : ze(e) ? n = e(t) : n = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(ES, Mw({}, t, { className: "recharts-reference-area-rect" })), n; }); function HW(e, t, n) { if (t < 1) return []; if (t === 1 && n === void 0) return e; for (var r = [], i = 0; i < e.length; i += t) r.push(e[i]); return r; } function wPe(e, t, n) { var r = { width: e.width + t.width, height: e.height + t.height }; return mTe(r, n); } function _Pe(e, t, n) { var r = n === "width", i = e.x, o = e.y, a = e.width, s = e.height; return t === 1 ? { start: r ? i : o, end: r ? i + a : o + s } : { start: r ? i + a : o + s, end: r ? i : o }; } function Um(e, t, n, r, i) { if (e * t < e * r || e * t > e * i) return !1; var o = n(); return e * (t - e * o / 2 - r) >= 0 && e * (t + e * o / 2 - i) <= 0; } function SPe(e, t) { return HW(e, t + 1); } function OPe(e, t, n, r, i) { for (var o = (r || []).slice(), a = t.start, s = t.end, l = 0, c = 1, f = a, d = function() { var y = r == null ? void 0 : r[l]; if (y === void 0) return { v: HW(r, c) }; var g = l, v, x = function() { return v === void 0 && (v = n(y, g)), v; }, w = y.coordinate, S = l === 0 || Um(e, w, x, f, s); S || (l = 0, f = a, c += 1), S && (f = w + e * (x() / 2 + i), l += c); }, p; c <= o.length; ) if (p = d(), p) return p.v; return []; } function id(e) { "@babel/helpers - typeof"; return id = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, id(e); } function A$(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function tr(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? A$(Object(n), !0).forEach(function(r) { APe(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : A$(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function APe(e, t, n) { return t = TPe(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function TPe(e) { var t = PPe(e, "string"); return id(t) == "symbol" ? t : t + ""; } function PPe(e, t) { if (id(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (id(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function CPe(e, t, n, r, i) { for (var o = (r || []).slice(), a = o.length, s = t.start, l = t.end, c = function(p) { var m = o[p], y, g = function() { return y === void 0 && (y = n(m, p)), y; }; if (p === a - 1) { var v = e * (m.coordinate + e * g() / 2 - l); o[p] = m = tr(tr({}, m), {}, { tickCoord: v > 0 ? m.coordinate - v * e : m.coordinate }); } else o[p] = m = tr(tr({}, m), {}, { tickCoord: m.coordinate }); var x = Um(e, m.tickCoord, g, s, l); x && (l = m.tickCoord - e * (g() / 2 + i), o[p] = tr(tr({}, m), {}, { isShow: !0 })); }, f = a - 1; f >= 0; f--) c(f); return o; } function EPe(e, t, n, r, i, o) { var a = (r || []).slice(), s = a.length, l = t.start, c = t.end; if (o) { var f = r[s - 1], d = n(f, s - 1), p = e * (f.coordinate + e * d / 2 - c); a[s - 1] = f = tr(tr({}, f), {}, { tickCoord: p > 0 ? f.coordinate - p * e : f.coordinate }); var m = Um(e, f.tickCoord, function() { return d; }, l, c); m && (c = f.tickCoord - e * (d / 2 + i), a[s - 1] = tr(tr({}, f), {}, { isShow: !0 })); } for (var y = o ? s - 1 : s, g = function(w) { var S = a[w], A, _ = function() { return A === void 0 && (A = n(S, w)), A; }; if (w === 0) { var O = e * (S.coordinate - e * _() / 2 - l); a[w] = S = tr(tr({}, S), {}, { tickCoord: O < 0 ? S.coordinate - O * e : S.coordinate }); } else a[w] = S = tr(tr({}, S), {}, { tickCoord: S.coordinate }); var P = Um(e, S.tickCoord, _, l, c); P && (l = S.tickCoord + e * (_() / 2 + i), a[w] = tr(tr({}, S), {}, { isShow: !0 })); }, v = 0; v < y; v++) g(v); return a; } function LS(e, t, n) { var r = e.tick, i = e.ticks, o = e.viewBox, a = e.minTickGap, s = e.orientation, l = e.interval, c = e.tickFormatter, f = e.unit, d = e.angle; if (!i || !i.length || !r) return []; if (be(l) || Ni.isSsr) return SPe(i, typeof l == "number" && be(l) ? l : 0); var p = [], m = s === "top" || s === "bottom" ? "width" : "height", y = f && m === "width" ? tf(f, { fontSize: t, letterSpacing: n }) : { width: 0, height: 0 }, g = function(S, A) { var _ = ze(c) ? c(S.value, A) : S.value; return m === "width" ? wPe(tf(_, { fontSize: t, letterSpacing: n }), y, d) : tf(_, { fontSize: t, letterSpacing: n })[m]; }, v = i.length >= 2 ? fr(i[1].coordinate - i[0].coordinate) : 1, x = _Pe(o, v, m); return l === "equidistantPreserveStart" ? OPe(v, x, g, i, a) : (l === "preserveStart" || l === "preserveStartEnd" ? p = EPe(v, x, g, i, a, l === "preserveStartEnd") : p = CPe(v, x, g, i, a), p.filter(function(w) { return w.isShow; })); } var kPe = ["viewBox"], MPe = ["viewBox"], NPe = ["ticks"]; function Ac(e) { "@babel/helpers - typeof"; return Ac = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Ac(e); } function Wl() { return Wl = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, Wl.apply(this, arguments); } function T$(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function lr(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? T$(Object(n), !0).forEach(function(r) { BS(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : T$(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function a0(e, t) { if (e == null) return {}; var n = $Pe(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function $Pe(e, t) { if (e == null) return {}; var n = {}; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { if (t.indexOf(r) >= 0) continue; n[r] = e[r]; } return n; } function DPe(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function P$(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, GW(r.key), r); } } function IPe(e, t, n) { return t && P$(e.prototype, t), n && P$(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function RPe(e, t, n) { return t = Hm(t), jPe(e, KW() ? Reflect.construct(t, n || [], Hm(e).constructor) : t.apply(e, n)); } function jPe(e, t) { if (t && (Ac(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return LPe(e); } function LPe(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function KW() { try { var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (KW = function() { return !!e; })(); } function Hm(e) { return Hm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); }, Hm(e); } function BPe(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && $w(e, t); } function $w(e, t) { return $w = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { return r.__proto__ = i, r; }, $w(e, t); } function BS(e, t, n) { return t = GW(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function GW(e) { var t = FPe(e, "string"); return Ac(t) == "symbol" ? t : t + ""; } function FPe(e, t) { if (Ac(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Ac(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var tu = /* @__PURE__ */ function(e) { function t(n) { var r; return DPe(this, t), r = RPe(this, t, [n]), r.state = { fontSize: "", letterSpacing: "" }, r; } return BPe(t, e), IPe(t, [{ key: "shouldComponentUpdate", value: function(r, i) { var o = r.viewBox, a = a0(r, kPe), s = this.props, l = s.viewBox, c = a0(s, MPe); return !Yl(o, l) || !Yl(a, c) || !Yl(i, this.state); } }, { key: "componentDidMount", value: function() { var r = this.layerReference; if (r) { var i = r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0]; i && this.setState({ fontSize: window.getComputedStyle(i).fontSize, letterSpacing: window.getComputedStyle(i).letterSpacing }); } } /** * Calculate the coordinates of endpoints in ticks * @param {Object} data The data of a simple tick * @return {Object} (x1, y1): The coordinate of endpoint close to tick text * (x2, y2): The coordinate of endpoint close to axis */ }, { key: "getTickLineCoord", value: function(r) { var i = this.props, o = i.x, a = i.y, s = i.width, l = i.height, c = i.orientation, f = i.tickSize, d = i.mirror, p = i.tickMargin, m, y, g, v, x, w, S = d ? -1 : 1, A = r.tickSize || f, _ = be(r.tickCoord) ? r.tickCoord : r.coordinate; switch (c) { case "top": m = y = r.coordinate, v = a + +!d * l, g = v - S * A, w = g - S * p, x = _; break; case "left": g = v = r.coordinate, y = o + +!d * s, m = y - S * A, x = m - S * p, w = _; break; case "right": g = v = r.coordinate, y = o + +d * s, m = y + S * A, x = m + S * p, w = _; break; default: m = y = r.coordinate, v = a + +d * l, g = v + S * A, w = g + S * p, x = _; break; } return { line: { x1: m, y1: g, x2: y, y2: v }, tick: { x, y: w } }; } }, { key: "getTickTextAnchor", value: function() { var r = this.props, i = r.orientation, o = r.mirror, a; switch (i) { case "left": a = o ? "start" : "end"; break; case "right": a = o ? "end" : "start"; break; default: a = "middle"; break; } return a; } }, { key: "getTickVerticalAnchor", value: function() { var r = this.props, i = r.orientation, o = r.mirror, a = "end"; switch (i) { case "left": case "right": a = "middle"; break; case "top": a = o ? "start" : "end"; break; default: a = o ? "end" : "start"; break; } return a; } }, { key: "renderAxisLine", value: function() { var r = this.props, i = r.x, o = r.y, a = r.width, s = r.height, l = r.orientation, c = r.mirror, f = r.axisLine, d = lr(lr(lr({}, Ee(this.props, !1)), Ee(f, !1)), {}, { fill: "none" }); if (l === "top" || l === "bottom") { var p = +(l === "top" && !c || l === "bottom" && c); d = lr(lr({}, d), {}, { x1: i, y1: o + p * s, x2: i + a, y2: o + p * s }); } else { var m = +(l === "left" && !c || l === "right" && c); d = lr(lr({}, d), {}, { x1: i + m * a, y1: o, x2: i + m * a, y2: o + s }); } return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("line", Wl({}, d, { className: Xe("recharts-cartesian-axis-line", zr(f, "className")) })); } }, { key: "renderTicks", value: ( /** * render the ticks * @param {Array} ticks The ticks to actually render (overrides what was passed in props) * @param {string} fontSize Fontsize to consider for tick spacing * @param {string} letterSpacing Letterspacing to consider for tick spacing * @return {ReactComponent} renderedTicks */ function(r, i, o) { var a = this, s = this.props, l = s.tickLine, c = s.stroke, f = s.tick, d = s.tickFormatter, p = s.unit, m = LS(lr(lr({}, this.props), {}, { ticks: r }), i, o), y = this.getTickTextAnchor(), g = this.getTickVerticalAnchor(), v = Ee(this.props, !1), x = Ee(f, !1), w = lr(lr({}, v), {}, { fill: "none" }, Ee(l, !1)), S = m.map(function(A, _) { var O = a.getTickLineCoord(A), P = O.line, C = O.tick, k = lr(lr(lr(lr({ textAnchor: y, verticalAnchor: g }, v), {}, { stroke: "none", fill: c }, x), C), {}, { index: _, payload: A, visibleTicksCount: m.length, tickFormatter: d }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, Wl({ className: "recharts-cartesian-axis-tick", key: "tick-".concat(A.value, "-").concat(A.coordinate, "-").concat(A.tickCoord) }, zs(a.props, A, _)), l && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("line", Wl({}, w, P, { className: Xe("recharts-cartesian-axis-tick-line", zr(l, "className")) })), f && t.renderTickItem(f, k, "".concat(ze(d) ? d(A.value, _) : A.value).concat(p || ""))); }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("g", { className: "recharts-cartesian-axis-ticks" }, S); } ) }, { key: "render", value: function() { var r = this, i = this.props, o = i.axisLine, a = i.width, s = i.height, l = i.ticksGenerator, c = i.className, f = i.hide; if (f) return null; var d = this.props, p = d.ticks, m = a0(d, NPe), y = p; return ze(l) && (y = p && p.length > 0 ? l(this.props) : l(m)), a <= 0 || s <= 0 || !y || !y.length ? null : /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { className: Xe("recharts-cartesian-axis", c), ref: function(v) { r.layerReference = v; } }, o && this.renderAxisLine(), this.renderTicks(y, this.state.fontSize, this.state.letterSpacing), Sn.renderCallByParent(this.props)); } }], [{ key: "renderTickItem", value: function(r, i, o) { var a; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(r) ? a = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(r, i) : ze(r) ? a = r(i) : a = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Vs, Wl({}, i, { className: "recharts-cartesian-axis-tick-value" }), o), a; } }]); }(react__WEBPACK_IMPORTED_MODULE_1__.Component); BS(tu, "displayName", "CartesianAxis"); BS(tu, "defaultProps", { x: 0, y: 0, width: 0, height: 0, viewBox: { x: 0, y: 0, width: 0, height: 0 }, // The orientation of axis orientation: "bottom", // The ticks ticks: [], stroke: "#666", tickLine: !0, axisLine: !0, tick: !0, mirror: !1, minTickGap: 5, // The width or height of tick tickSize: 6, tickMargin: 2, interval: "preserveEnd" }); var WPe = ["x1", "y1", "x2", "y2", "key"], zPe = ["offset"]; function Ks(e) { "@babel/helpers - typeof"; return Ks = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Ks(e); } function C$(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function nr(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? C$(Object(n), !0).forEach(function(r) { VPe(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : C$(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function VPe(e, t, n) { return t = UPe(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function UPe(e) { var t = HPe(e, "string"); return Ks(t) == "symbol" ? t : t + ""; } function HPe(e, t) { if (Ks(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Ks(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function Ts() { return Ts = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, Ts.apply(this, arguments); } function E$(e, t) { if (e == null) return {}; var n = KPe(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function KPe(e, t) { if (e == null) return {}; var n = {}; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { if (t.indexOf(r) >= 0) continue; n[r] = e[r]; } return n; } var GPe = function(t) { var n = t.fill; if (!n || n === "none") return null; var r = t.fillOpacity, i = t.x, o = t.y, a = t.width, s = t.height, l = t.ry; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("rect", { x: i, y: o, ry: l, width: a, height: s, stroke: "none", fill: n, fillOpacity: r, className: "recharts-cartesian-grid-bg" }); }; function YW(e, t) { var n; if (/* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(e)) n = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(e, t); else if (ze(e)) n = e(t); else { var r = t.x1, i = t.y1, o = t.x2, a = t.y2, s = t.key, l = E$(t, WPe), c = Ee(l, !1); c.offset; var f = E$(c, zPe); n = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("line", Ts({}, f, { x1: r, y1: i, x2: o, y2: a, fill: "none", key: s })); } return n; } function YPe(e) { var t = e.x, n = e.width, r = e.horizontal, i = r === void 0 ? !0 : r, o = e.horizontalPoints; if (!i || !o || !o.length) return null; var a = o.map(function(s, l) { var c = nr(nr({}, e), {}, { x1: t, y1: s, x2: t + n, y2: s, key: "line-".concat(l), index: l }); return YW(i, c); }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, a); } function qPe(e) { var t = e.y, n = e.height, r = e.vertical, i = r === void 0 ? !0 : r, o = e.verticalPoints; if (!i || !o || !o.length) return null; var a = o.map(function(s, l) { var c = nr(nr({}, e), {}, { x1: s, y1: t, x2: s, y2: t + n, key: "line-".concat(l), index: l }); return YW(i, c); }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("g", { className: "recharts-cartesian-grid-vertical" }, a); } function XPe(e) { var t = e.horizontalFill, n = e.fillOpacity, r = e.x, i = e.y, o = e.width, a = e.height, s = e.horizontalPoints, l = e.horizontal, c = l === void 0 ? !0 : l; if (!c || !t || !t.length) return null; var f = s.map(function(p) { return Math.round(p + i - i); }).sort(function(p, m) { return p - m; }); i !== f[0] && f.unshift(0); var d = f.map(function(p, m) { var y = !f[m + 1], g = y ? i + a - p : f[m + 1] - p; if (g <= 0) return null; var v = m % t.length; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("rect", { key: "react-".concat(m), y: p, x: r, height: g, width: o, stroke: "none", fill: t[v], fillOpacity: n, className: "recharts-cartesian-grid-bg" }); }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, d); } function ZPe(e) { var t = e.vertical, n = t === void 0 ? !0 : t, r = e.verticalFill, i = e.fillOpacity, o = e.x, a = e.y, s = e.width, l = e.height, c = e.verticalPoints; if (!n || !r || !r.length) return null; var f = c.map(function(p) { return Math.round(p + o - o); }).sort(function(p, m) { return p - m; }); o !== f[0] && f.unshift(0); var d = f.map(function(p, m) { var y = !f[m + 1], g = y ? o + s - p : f[m + 1] - p; if (g <= 0) return null; var v = m % r.length; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("rect", { key: "react-".concat(m), x: p, y: a, width: g, height: l, stroke: "none", fill: r[v], fillOpacity: i, className: "recharts-cartesian-grid-bg" }); }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, d); } var JPe = function(t, n) { var r = t.xAxis, i = t.width, o = t.height, a = t.offset; return UF(LS(nr(nr(nr({}, tu.defaultProps), r), {}, { ticks: Mo(r, !0), viewBox: { x: 0, y: 0, width: i, height: o } })), a.left, a.left + a.width, n); }, QPe = function(t, n) { var r = t.yAxis, i = t.width, o = t.height, a = t.offset; return UF(LS(nr(nr(nr({}, tu.defaultProps), r), {}, { ticks: Mo(r, !0), viewBox: { x: 0, y: 0, width: i, height: o } })), a.top, a.top + a.height, n); }, Al = { horizontal: !0, vertical: !0, // The ordinates of horizontal grid lines horizontalPoints: [], // The abscissas of vertical grid lines verticalPoints: [], stroke: "#ccc", fill: "none", // The fill of colors of grid lines verticalFill: [], horizontalFill: [] }; function Ty(e) { var t, n, r, i, o, a, s = DS(), l = IS(), c = FTe(), f = nr(nr({}, e), {}, { stroke: (t = e.stroke) !== null && t !== void 0 ? t : Al.stroke, fill: (n = e.fill) !== null && n !== void 0 ? n : Al.fill, horizontal: (r = e.horizontal) !== null && r !== void 0 ? r : Al.horizontal, horizontalFill: (i = e.horizontalFill) !== null && i !== void 0 ? i : Al.horizontalFill, vertical: (o = e.vertical) !== null && o !== void 0 ? o : Al.vertical, verticalFill: (a = e.verticalFill) !== null && a !== void 0 ? a : Al.verticalFill, x: be(e.x) ? e.x : c.left, y: be(e.y) ? e.y : c.top, width: be(e.width) ? e.width : c.width, height: be(e.height) ? e.height : c.height }), d = f.x, p = f.y, m = f.width, y = f.height, g = f.syncWithTicks, v = f.horizontalValues, x = f.verticalValues, w = jTe(), S = LTe(); if (!be(m) || m <= 0 || !be(y) || y <= 0 || !be(d) || d !== +d || !be(p) || p !== +p) return null; var A = f.verticalCoordinatesGenerator || JPe, _ = f.horizontalCoordinatesGenerator || QPe, O = f.horizontalPoints, P = f.verticalPoints; if ((!O || !O.length) && ze(_)) { var C = v && v.length, k = _({ yAxis: S ? nr(nr({}, S), {}, { ticks: C ? v : S.ticks }) : void 0, width: s, height: l, offset: c }, C ? !0 : g); Mi(Array.isArray(k), "horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Ks(k), "]")), Array.isArray(k) && (O = k); } if ((!P || !P.length) && ze(A)) { var I = x && x.length, $ = A({ xAxis: w ? nr(nr({}, w), {}, { ticks: I ? x : w.ticks }) : void 0, width: s, height: l, offset: c }, I ? !0 : g); Mi(Array.isArray($), "verticalCoordinatesGenerator should return Array but instead it returned [".concat(Ks($), "]")), Array.isArray($) && (P = $); } return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("g", { className: "recharts-cartesian-grid" }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(GPe, { fill: f.fill, fillOpacity: f.fillOpacity, x: f.x, y: f.y, width: f.width, height: f.height, ry: f.ry }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(YPe, Ts({}, f, { offset: c, horizontalPoints: O, xAxis: w, yAxis: S })), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(qPe, Ts({}, f, { offset: c, verticalPoints: P, xAxis: w, yAxis: S })), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(XPe, Ts({}, f, { horizontalPoints: O })), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(ZPe, Ts({}, f, { verticalPoints: P }))); } Ty.displayName = "CartesianGrid"; var eCe = ["type", "layout", "connectNulls", "ref"], tCe = ["key"]; function Tc(e) { "@babel/helpers - typeof"; return Tc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Tc(e); } function k$(e, t) { if (e == null) return {}; var n = nCe(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function nCe(e, t) { if (e == null) return {}; var n = {}; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { if (t.indexOf(r) >= 0) continue; n[r] = e[r]; } return n; } function lf() { return lf = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, lf.apply(this, arguments); } function M$(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function Ir(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? M$(Object(n), !0).forEach(function(r) { Ti(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : M$(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function Tl(e) { return aCe(e) || oCe(e) || iCe(e) || rCe(); } function rCe() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function iCe(e, t) { if (e) { if (typeof e == "string") return Dw(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Dw(e, t); } } function oCe(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); } function aCe(e) { if (Array.isArray(e)) return Dw(e); } function Dw(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } function sCe(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function N$(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, XW(r.key), r); } } function lCe(e, t, n) { return t && N$(e.prototype, t), n && N$(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function cCe(e, t, n) { return t = Km(t), uCe(e, qW() ? Reflect.construct(t, n || [], Km(e).constructor) : t.apply(e, n)); } function uCe(e, t) { if (t && (Tc(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return fCe(e); } function fCe(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function qW() { try { var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (qW = function() { return !!e; })(); } function Km(e) { return Km = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); }, Km(e); } function dCe(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Iw(e, t); } function Iw(e, t) { return Iw = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { return r.__proto__ = i, r; }, Iw(e, t); } function Ti(e, t, n) { return t = XW(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function XW(e) { var t = hCe(e, "string"); return Tc(t) == "symbol" ? t : t + ""; } function hCe(e, t) { if (Tc(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Tc(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var Id = /* @__PURE__ */ function(e) { function t() { var n; sCe(this, t); for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o]; return n = cCe(this, t, [].concat(i)), Ti(n, "state", { isAnimationFinished: !0, totalLength: 0 }), Ti(n, "generateSimpleStrokeDasharray", function(a, s) { return "".concat(s, "px ").concat(a - s, "px"); }), Ti(n, "getStrokeDasharray", function(a, s, l) { var c = l.reduce(function(x, w) { return x + w; }); if (!c) return n.generateSimpleStrokeDasharray(s, a); for (var f = Math.floor(a / c), d = a % c, p = s - a, m = [], y = 0, g = 0; y < l.length; g += l[y], ++y) if (g + l[y] > d) { m = [].concat(Tl(l.slice(0, y)), [d - g]); break; } var v = m.length % 2 === 0 ? [0, p] : [p]; return [].concat(Tl(t.repeat(l, f)), Tl(m), v).map(function(x) { return "".concat(x, "px"); }).join(", "); }), Ti(n, "id", tl("recharts-line-")), Ti(n, "pathRef", function(a) { n.mainCurve = a; }), Ti(n, "handleAnimationEnd", function() { n.setState({ isAnimationFinished: !0 }), n.props.onAnimationEnd && n.props.onAnimationEnd(); }), Ti(n, "handleAnimationStart", function() { n.setState({ isAnimationFinished: !1 }), n.props.onAnimationStart && n.props.onAnimationStart(); }), n; } return dCe(t, e), lCe(t, [{ key: "componentDidMount", value: function() { if (this.props.isAnimationActive) { var r = this.getTotalLength(); this.setState({ totalLength: r }); } } }, { key: "componentDidUpdate", value: function() { if (this.props.isAnimationActive) { var r = this.getTotalLength(); r !== this.state.totalLength && this.setState({ totalLength: r }); } } }, { key: "getTotalLength", value: function() { var r = this.mainCurve; try { return r && r.getTotalLength && r.getTotalLength() || 0; } catch { return 0; } } }, { key: "renderErrorBar", value: function(r, i) { if (this.props.isAnimationActive && !this.state.isAnimationFinished) return null; var o = this.props, a = o.points, s = o.xAxis, l = o.yAxis, c = o.layout, f = o.children, d = Vr(f, $d); if (!d) return null; var p = function(g, v) { return { x: g.x, y: g.y, value: g.value, errorVal: cn(g.payload, v) }; }, m = { clipPath: r ? "url(#clipPath-".concat(i, ")") : null }; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, m, d.map(function(y) { return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(y, { key: "bar-".concat(y.props.dataKey), data: a, xAxis: s, yAxis: l, layout: c, dataPointFormatter: p }); })); } }, { key: "renderDots", value: function(r, i, o) { var a = this.props.isAnimationActive; if (a && !this.state.isAnimationFinished) return null; var s = this.props, l = s.dot, c = s.points, f = s.dataKey, d = Ee(this.props, !1), p = Ee(l, !0), m = c.map(function(g, v) { var x = Ir(Ir(Ir({ key: "dot-".concat(v), r: 3 }, d), p), {}, { value: g.value, dataKey: f, cx: g.x, cy: g.y, index: v, payload: g.payload }); return t.renderDotItem(l, x); }), y = { clipPath: r ? "url(#clipPath-".concat(i ? "" : "dots-").concat(o, ")") : null }; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, lf({ className: "recharts-line-dots", key: "dots" }, y), m); } }, { key: "renderCurveStatically", value: function(r, i, o, a) { var s = this.props, l = s.type, c = s.layout, f = s.connectNulls; s.ref; var d = k$(s, eCe), p = Ir(Ir(Ir({}, Ee(d, !0)), {}, { fill: "none", className: "recharts-line-curve", clipPath: i ? "url(#clipPath-".concat(o, ")") : null, points: r }, a), {}, { type: l, layout: c, connectNulls: f }); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Ds, lf({}, p, { pathRef: this.pathRef })); } }, { key: "renderCurveWithAnimation", value: function(r, i) { var o = this, a = this.props, s = a.points, l = a.strokeDasharray, c = a.isAnimationActive, f = a.animationBegin, d = a.animationDuration, p = a.animationEasing, m = a.animationId, y = a.animateNewValues, g = a.width, v = a.height, x = this.state, w = x.prevPoints, S = x.totalLength; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement($i, { begin: f, duration: d, isActive: c, easing: p, from: { t: 0 }, to: { t: 1 }, key: "line-".concat(m), onAnimationEnd: this.handleAnimationEnd, onAnimationStart: this.handleAnimationStart }, function(A) { var _ = A.t; if (w) { var O = w.length / s.length, P = s.map(function(N, D) { var j = Math.floor(D * O); if (w[j]) { var F = w[j], W = _n(F.x, N.x), z = _n(F.y, N.y); return Ir(Ir({}, N), {}, { x: W(_), y: z(_) }); } if (y) { var H = _n(g * 2, N.x), U = _n(v / 2, N.y); return Ir(Ir({}, N), {}, { x: H(_), y: U(_) }); } return Ir(Ir({}, N), {}, { x: N.x, y: N.y }); }); return o.renderCurveStatically(P, r, i); } var C = _n(0, S), k = C(_), I; if (l) { var $ = "".concat(l).split(/[,\s]+/gim).map(function(N) { return parseFloat(N); }); I = o.getStrokeDasharray(k, S, $); } else I = o.generateSimpleStrokeDasharray(S, k); return o.renderCurveStatically(s, r, i, { strokeDasharray: I }); }); } }, { key: "renderCurve", value: function(r, i) { var o = this.props, a = o.points, s = o.isAnimationActive, l = this.state, c = l.prevPoints, f = l.totalLength; return s && a && a.length && (!c && f > 0 || !Us(c, a)) ? this.renderCurveWithAnimation(r, i) : this.renderCurveStatically(a, r, i); } }, { key: "render", value: function() { var r, i = this.props, o = i.hide, a = i.dot, s = i.points, l = i.className, c = i.xAxis, f = i.yAxis, d = i.top, p = i.left, m = i.width, y = i.height, g = i.isAnimationActive, v = i.id; if (o || !s || !s.length) return null; var x = this.state.isAnimationFinished, w = s.length === 1, S = Xe("recharts-line", l), A = c && c.allowDataOverflow, _ = f && f.allowDataOverflow, O = A || _, P = Ue(v) ? this.id : v, C = (r = Ee(a, !1)) !== null && r !== void 0 ? r : { r: 3, strokeWidth: 2 }, k = C.r, I = k === void 0 ? 3 : k, $ = C.strokeWidth, N = $ === void 0 ? 2 : $, D = RL(a) ? a : {}, j = D.clipDot, F = j === void 0 ? !0 : j, W = I * 2 + N; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { className: S }, A || _ ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("defs", null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("clipPath", { id: "clipPath-".concat(P) }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("rect", { x: A ? p : p - m / 2, y: _ ? d : d - y / 2, width: A ? m : m * 2, height: _ ? y : y * 2 })), !F && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("clipPath", { id: "clipPath-dots-".concat(P) }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("rect", { x: p - W / 2, y: d - W / 2, width: m + W, height: y + W }))) : null, !w && this.renderCurve(O, P), this.renderErrorBar(O, P), (w || a) && this.renderDots(O, F, P), (!g || x) && Ji.renderCallByParent(this.props, s)); } }], [{ key: "getDerivedStateFromProps", value: function(r, i) { return r.animationId !== i.prevAnimationId ? { prevAnimationId: r.animationId, curPoints: r.points, prevPoints: i.curPoints } : r.points !== i.curPoints ? { curPoints: r.points } : null; } }, { key: "repeat", value: function(r, i) { for (var o = r.length % 2 !== 0 ? [].concat(Tl(r), [0]) : r, a = [], s = 0; s < i; ++s) a = [].concat(Tl(a), Tl(o)); return a; } }, { key: "renderDotItem", value: function(r, i) { var o; if (/* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(r)) o = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(r, i); else if (ze(r)) o = r(i); else { var a = i.key, s = k$(i, tCe), l = Xe("recharts-line-dot", typeof r != "boolean" ? r.className : ""); o = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Dd, lf({ key: a }, s, { className: l })); } return o; } }]); }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent); Ti(Id, "displayName", "Line"); Ti(Id, "defaultProps", { xAxisId: 0, yAxisId: 0, connectNulls: !1, activeDot: !0, dot: !0, legendType: "line", stroke: "#3182bd", strokeWidth: 1, fill: "#fff", points: [], isAnimationActive: !Ni.isSsr, animateNewValues: !0, animationBegin: 0, animationDuration: 1500, animationEasing: "ease", hide: !1, label: !1 }); Ti(Id, "getComposedData", function(e) { var t = e.props, n = e.xAxis, r = e.yAxis, i = e.xAxisTicks, o = e.yAxisTicks, a = e.dataKey, s = e.bandSize, l = e.displayedData, c = e.offset, f = t.layout, d = l.map(function(p, m) { var y = cn(p, a); return f === "horizontal" ? { x: wm({ axis: n, ticks: i, bandSize: s, entry: p, index: m }), y: Ue(y) ? null : r.scale(y), value: y, payload: p } : { x: Ue(y) ? null : n.scale(y), y: wm({ axis: r, ticks: o, bandSize: s, entry: p, index: m }), value: y, payload: p }; }); return Ir({ points: d, layout: f }, c); }); var pCe = ["layout", "type", "stroke", "connectNulls", "isRange", "ref"], mCe = ["key"], ZW; function Pc(e) { "@babel/helpers - typeof"; return Pc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Pc(e); } function JW(e, t) { if (e == null) return {}; var n = gCe(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function gCe(e, t) { if (e == null) return {}; var n = {}; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { if (t.indexOf(r) >= 0) continue; n[r] = e[r]; } return n; } function Ps() { return Ps = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, Ps.apply(this, arguments); } function $$(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function ba(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? $$(Object(n), !0).forEach(function(r) { Hi(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $$(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function yCe(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function D$(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, ez(r.key), r); } } function vCe(e, t, n) { return t && D$(e.prototype, t), n && D$(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function bCe(e, t, n) { return t = Gm(t), xCe(e, QW() ? Reflect.construct(t, n || [], Gm(e).constructor) : t.apply(e, n)); } function xCe(e, t) { if (t && (Pc(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return wCe(e); } function wCe(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function QW() { try { var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (QW = function() { return !!e; })(); } function Gm(e) { return Gm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); }, Gm(e); } function _Ce(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Rw(e, t); } function Rw(e, t) { return Rw = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { return r.__proto__ = i, r; }, Rw(e, t); } function Hi(e, t, n) { return t = ez(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function ez(e) { var t = SCe(e, "string"); return Pc(t) == "symbol" ? t : t + ""; } function SCe(e, t) { if (Pc(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Pc(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var Xa = /* @__PURE__ */ function(e) { function t() { var n; yCe(this, t); for (var r = arguments.length, i = new Array(r), o = 0; o < r; o++) i[o] = arguments[o]; return n = bCe(this, t, [].concat(i)), Hi(n, "state", { isAnimationFinished: !0 }), Hi(n, "id", tl("recharts-area-")), Hi(n, "handleAnimationEnd", function() { var a = n.props.onAnimationEnd; n.setState({ isAnimationFinished: !0 }), ze(a) && a(); }), Hi(n, "handleAnimationStart", function() { var a = n.props.onAnimationStart; n.setState({ isAnimationFinished: !1 }), ze(a) && a(); }), n; } return _Ce(t, e), vCe(t, [{ key: "renderDots", value: function(r, i, o) { var a = this.props.isAnimationActive, s = this.state.isAnimationFinished; if (a && !s) return null; var l = this.props, c = l.dot, f = l.points, d = l.dataKey, p = Ee(this.props, !1), m = Ee(c, !0), y = f.map(function(v, x) { var w = ba(ba(ba({ key: "dot-".concat(x), r: 3 }, p), m), {}, { index: x, cx: v.x, cy: v.y, dataKey: d, value: v.value, payload: v.payload, points: f }); return t.renderDotItem(c, w); }), g = { clipPath: r ? "url(#clipPath-".concat(i ? "" : "dots-").concat(o, ")") : null }; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, Ps({ className: "recharts-area-dots" }, g), y); } }, { key: "renderHorizontalRect", value: function(r) { var i = this.props, o = i.baseLine, a = i.points, s = i.strokeWidth, l = a[0].x, c = a[a.length - 1].x, f = r * Math.abs(l - c), d = Ta(a.map(function(p) { return p.y || 0; })); return be(o) && typeof o == "number" ? d = Math.max(o, d) : o && Array.isArray(o) && o.length && (d = Math.max(Ta(o.map(function(p) { return p.y || 0; })), d)), be(d) ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("rect", { x: l < c ? l : l - f, y: 0, width: f, height: Math.floor(d + (s ? parseInt("".concat(s), 10) : 1)) }) : null; } }, { key: "renderVerticalRect", value: function(r) { var i = this.props, o = i.baseLine, a = i.points, s = i.strokeWidth, l = a[0].y, c = a[a.length - 1].y, f = r * Math.abs(l - c), d = Ta(a.map(function(p) { return p.x || 0; })); return be(o) && typeof o == "number" ? d = Math.max(o, d) : o && Array.isArray(o) && o.length && (d = Math.max(Ta(o.map(function(p) { return p.x || 0; })), d)), be(d) ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("rect", { x: 0, y: l < c ? l : l - f, width: d + (s ? parseInt("".concat(s), 10) : 1), height: Math.floor(f) }) : null; } }, { key: "renderClipRect", value: function(r) { var i = this.props.layout; return i === "vertical" ? this.renderVerticalRect(r) : this.renderHorizontalRect(r); } }, { key: "renderAreaStatically", value: function(r, i, o, a) { var s = this.props, l = s.layout, c = s.type, f = s.stroke, d = s.connectNulls, p = s.isRange; s.ref; var m = JW(s, pCe); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { clipPath: o ? "url(#clipPath-".concat(a, ")") : null }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Ds, Ps({}, Ee(m, !0), { points: r, connectNulls: d, type: c, baseLine: i, layout: l, stroke: "none", className: "recharts-area-area" })), f !== "none" && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Ds, Ps({}, Ee(this.props, !1), { className: "recharts-area-curve", layout: l, type: c, connectNulls: d, fill: "none", points: r })), f !== "none" && p && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Ds, Ps({}, Ee(this.props, !1), { className: "recharts-area-curve", layout: l, type: c, connectNulls: d, fill: "none", points: i }))); } }, { key: "renderAreaWithAnimation", value: function(r, i) { var o = this, a = this.props, s = a.points, l = a.baseLine, c = a.isAnimationActive, f = a.animationBegin, d = a.animationDuration, p = a.animationEasing, m = a.animationId, y = this.state, g = y.prevPoints, v = y.prevBaseLine; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement($i, { begin: f, duration: d, isActive: c, easing: p, from: { t: 0 }, to: { t: 1 }, key: "area-".concat(m), onAnimationEnd: this.handleAnimationEnd, onAnimationStart: this.handleAnimationStart }, function(x) { var w = x.t; if (g) { var S = g.length / s.length, A = s.map(function(C, k) { var I = Math.floor(k * S); if (g[I]) { var $ = g[I], N = _n($.x, C.x), D = _n($.y, C.y); return ba(ba({}, C), {}, { x: N(w), y: D(w) }); } return C; }), _; if (be(l) && typeof l == "number") { var O = _n(v, l); _ = O(w); } else if (Ue(l) || Gc(l)) { var P = _n(v, 0); _ = P(w); } else _ = l.map(function(C, k) { var I = Math.floor(k * S); if (v[I]) { var $ = v[I], N = _n($.x, C.x), D = _n($.y, C.y); return ba(ba({}, C), {}, { x: N(w), y: D(w) }); } return C; }); return o.renderAreaStatically(A, _, r, i); } return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("defs", null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("clipPath", { id: "animationClipPath-".concat(i) }, o.renderClipRect(w))), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { clipPath: "url(#animationClipPath-".concat(i, ")") }, o.renderAreaStatically(s, l, r, i))); }); } }, { key: "renderArea", value: function(r, i) { var o = this.props, a = o.points, s = o.baseLine, l = o.isAnimationActive, c = this.state, f = c.prevPoints, d = c.prevBaseLine, p = c.totalLength; return l && a && a.length && (!f && p > 0 || !Us(f, a) || !Us(d, s)) ? this.renderAreaWithAnimation(r, i) : this.renderAreaStatically(a, s, r, i); } }, { key: "render", value: function() { var r, i = this.props, o = i.hide, a = i.dot, s = i.points, l = i.className, c = i.top, f = i.left, d = i.xAxis, p = i.yAxis, m = i.width, y = i.height, g = i.isAnimationActive, v = i.id; if (o || !s || !s.length) return null; var x = this.state.isAnimationFinished, w = s.length === 1, S = Xe("recharts-area", l), A = d && d.allowDataOverflow, _ = p && p.allowDataOverflow, O = A || _, P = Ue(v) ? this.id : v, C = (r = Ee(a, !1)) !== null && r !== void 0 ? r : { r: 3, strokeWidth: 2 }, k = C.r, I = k === void 0 ? 3 : k, $ = C.strokeWidth, N = $ === void 0 ? 2 : $, D = RL(a) ? a : {}, j = D.clipDot, F = j === void 0 ? !0 : j, W = I * 2 + N; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { className: S }, A || _ ? /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("defs", null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("clipPath", { id: "clipPath-".concat(P) }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("rect", { x: A ? f : f - m / 2, y: _ ? c : c - y / 2, width: A ? m : m * 2, height: _ ? y : y * 2 })), !F && /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("clipPath", { id: "clipPath-dots-".concat(P) }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("rect", { x: f - W / 2, y: c - W / 2, width: m + W, height: y + W }))) : null, w ? null : this.renderArea(O, P), (a || w) && this.renderDots(O, F, P), (!g || x) && Ji.renderCallByParent(this.props, s)); } }], [{ key: "getDerivedStateFromProps", value: function(r, i) { return r.animationId !== i.prevAnimationId ? { prevAnimationId: r.animationId, curPoints: r.points, curBaseLine: r.baseLine, prevPoints: i.curPoints, prevBaseLine: i.curBaseLine } : r.points !== i.curPoints || r.baseLine !== i.curBaseLine ? { curPoints: r.points, curBaseLine: r.baseLine } : null; } }]); }(react__WEBPACK_IMPORTED_MODULE_1__.PureComponent); ZW = Xa; Hi(Xa, "displayName", "Area"); Hi(Xa, "defaultProps", { stroke: "#3182bd", fill: "#3182bd", fillOpacity: 0.6, xAxisId: 0, yAxisId: 0, legendType: "line", connectNulls: !1, // points of area points: [], dot: !1, activeDot: !0, hide: !1, isAnimationActive: !Ni.isSsr, animationBegin: 0, animationDuration: 1500, animationEasing: "ease" }); Hi(Xa, "getBaseValue", function(e, t, n, r) { var i = e.layout, o = e.baseValue, a = t.props.baseValue, s = a ?? o; if (be(s) && typeof s == "number") return s; var l = i === "horizontal" ? r : n, c = l.scale.domain(); if (l.type === "number") { var f = Math.max(c[0], c[1]), d = Math.min(c[0], c[1]); return s === "dataMin" ? d : s === "dataMax" || f < 0 ? f : Math.max(Math.min(c[0], c[1]), 0); } return s === "dataMin" ? c[0] : s === "dataMax" ? c[1] : c[0]; }); Hi(Xa, "getComposedData", function(e) { var t = e.props, n = e.item, r = e.xAxis, i = e.yAxis, o = e.xAxisTicks, a = e.yAxisTicks, s = e.bandSize, l = e.dataKey, c = e.stackedData, f = e.dataStartIndex, d = e.displayedData, p = e.offset, m = t.layout, y = c && c.length, g = ZW.getBaseValue(t, n, r, i), v = m === "horizontal", x = !1, w = d.map(function(A, _) { var O; y ? O = c[f + _] : (O = cn(A, l), Array.isArray(O) ? x = !0 : O = [g, O]); var P = O[1] == null || y && cn(A, l) == null; return v ? { x: wm({ axis: r, ticks: o, bandSize: s, entry: A, index: _ }), y: P ? null : i.scale(O[1]), value: O, payload: A } : { x: P ? null : r.scale(O[1]), y: wm({ axis: i, ticks: a, bandSize: s, entry: A, index: _ }), value: O, payload: A }; }), S; return y || x ? S = w.map(function(A) { var _ = Array.isArray(A.value) ? A.value[0] : null; return v ? { x: A.x, y: _ != null && A.y != null ? i.scale(_) : null } : { x: _ != null ? r.scale(_) : null, y: A.y }; }) : S = v ? i.scale(g) : r.scale(g), ba({ points: w, baseLine: S, layout: m, isRange: x }, p); }); Hi(Xa, "renderDotItem", function(e, t) { var n; if (/* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(e)) n = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.cloneElement(e, t); else if (ze(e)) n = e(t); else { var r = Xe("recharts-area-dot", typeof e != "boolean" ? e.className : ""), i = t.key, o = JW(t, mCe); n = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Dd, Ps({}, o, { key: i, className: r })); } return n; }); function Cc(e) { "@babel/helpers - typeof"; return Cc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Cc(e); } function OCe(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function ACe(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, rz(r.key), r); } } function TCe(e, t, n) { return t && ACe(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function PCe(e, t, n) { return t = Ym(t), CCe(e, tz() ? Reflect.construct(t, n || [], Ym(e).constructor) : t.apply(e, n)); } function CCe(e, t) { if (t && (Cc(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return ECe(e); } function ECe(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function tz() { try { var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (tz = function() { return !!e; })(); } function Ym(e) { return Ym = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); }, Ym(e); } function kCe(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && jw(e, t); } function jw(e, t) { return jw = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { return r.__proto__ = i, r; }, jw(e, t); } function nz(e, t, n) { return t = rz(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function rz(e) { var t = MCe(e, "string"); return Cc(t) == "symbol" ? t : t + ""; } function MCe(e, t) { if (Cc(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Cc(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function Lw() { return Lw = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, Lw.apply(this, arguments); } function NCe(e) { var t = e.xAxisId, n = DS(), r = IS(), i = jW(t); return i == null ? null : ( // @ts-expect-error the axisOptions type is not exactly what CartesianAxis is expecting. /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(tu, Lw({}, i, { className: Xe("recharts-".concat(i.axisType, " ").concat(i.axisType), i.className), viewBox: { x: 0, y: 0, width: n, height: r }, ticksGenerator: function(a) { return Mo(a, !0); } })) ); } var Yo = /* @__PURE__ */ function(e) { function t() { return OCe(this, t), PCe(this, t, arguments); } return kCe(t, e), TCe(t, [{ key: "render", value: function() { return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(NCe, this.props); } }]); }(react__WEBPACK_IMPORTED_MODULE_1__.Component); nz(Yo, "displayName", "XAxis"); nz(Yo, "defaultProps", { allowDecimals: !0, hide: !1, orientation: "bottom", width: 0, height: 30, mirror: !1, xAxisId: 0, tickCount: 5, type: "category", padding: { left: 0, right: 0 }, allowDataOverflow: !1, scale: "auto", reversed: !1, allowDuplicatedCategory: !0 }); function Ec(e) { "@babel/helpers - typeof"; return Ec = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Ec(e); } function $Ce(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function DCe(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, az(r.key), r); } } function ICe(e, t, n) { return t && DCe(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function RCe(e, t, n) { return t = qm(t), jCe(e, iz() ? Reflect.construct(t, n || [], qm(e).constructor) : t.apply(e, n)); } function jCe(e, t) { if (t && (Ec(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return LCe(e); } function LCe(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function iz() { try { var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (iz = function() { return !!e; })(); } function qm(e) { return qm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); }, qm(e); } function BCe(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Bw(e, t); } function Bw(e, t) { return Bw = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { return r.__proto__ = i, r; }, Bw(e, t); } function oz(e, t, n) { return t = az(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function az(e) { var t = FCe(e, "string"); return Ec(t) == "symbol" ? t : t + ""; } function FCe(e, t) { if (Ec(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (Ec(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function Fw() { return Fw = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, Fw.apply(this, arguments); } var WCe = function(t) { var n = t.yAxisId, r = DS(), i = IS(), o = LW(n); return o == null ? null : ( // @ts-expect-error the axisOptions type is not exactly what CartesianAxis is expecting. /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(tu, Fw({}, o, { className: Xe("recharts-".concat(o.axisType, " ").concat(o.axisType), o.className), viewBox: { x: 0, y: 0, width: r, height: i }, ticksGenerator: function(s) { return Mo(s, !0); } })) ); }, eo = /* @__PURE__ */ function(e) { function t() { return $Ce(this, t), RCe(this, t, arguments); } return BCe(t, e), ICe(t, [{ key: "render", value: function() { return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(WCe, this.props); } }]); }(react__WEBPACK_IMPORTED_MODULE_1__.Component); oz(eo, "displayName", "YAxis"); oz(eo, "defaultProps", { allowDuplicatedCategory: !0, allowDecimals: !0, hide: !1, orientation: "left", width: 60, height: 0, mirror: !1, yAxisId: 0, tickCount: 5, type: "number", padding: { top: 0, bottom: 0 }, allowDataOverflow: !1, scale: "auto", reversed: !1 }); function I$(e) { return HCe(e) || UCe(e) || VCe(e) || zCe(); } function zCe() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function VCe(e, t) { if (e) { if (typeof e == "string") return Ww(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Ww(e, t); } } function UCe(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); } function HCe(e) { if (Array.isArray(e)) return Ww(e); } function Ww(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } var zw = function(t, n, r, i, o) { var a = Vr(t, jS), s = Vr(t, Sy), l = [].concat(I$(a), I$(s)), c = Vr(t, Ay), f = "".concat(i, "Id"), d = i[0], p = n; if (l.length && (p = l.reduce(function(g, v) { if (v.props[f] === r && Qi(v.props, "extendDomain") && be(v.props[d])) { var x = v.props[d]; return [Math.min(g[0], x), Math.max(g[1], x)]; } return g; }, p)), c.length) { var m = "".concat(d, "1"), y = "".concat(d, "2"); p = c.reduce(function(g, v) { if (v.props[f] === r && Qi(v.props, "extendDomain") && be(v.props[m]) && be(v.props[y])) { var x = v.props[m], w = v.props[y]; return [Math.min(g[0], x, w), Math.max(g[1], x, w)]; } return g; }, p); } return o && o.length && (p = o.reduce(function(g, v) { return be(v) ? [Math.min(g[0], v), Math.max(g[1], v)] : g; }, p)), p; }, sz = { exports: {} }; (function(e) { var t = Object.prototype.hasOwnProperty, n = "~"; function r() { } Object.create && (r.prototype = /* @__PURE__ */ Object.create(null), new r().__proto__ || (n = !1)); function i(l, c, f) { this.fn = l, this.context = c, this.once = f || !1; } function o(l, c, f, d, p) { if (typeof f != "function") throw new TypeError("The listener must be a function"); var m = new i(f, d || l, p), y = n ? n + c : c; return l._events[y] ? l._events[y].fn ? l._events[y] = [l._events[y], m] : l._events[y].push(m) : (l._events[y] = m, l._eventsCount++), l; } function a(l, c) { --l._eventsCount === 0 ? l._events = new r() : delete l._events[c]; } function s() { this._events = new r(), this._eventsCount = 0; } s.prototype.eventNames = function() { var c = [], f, d; if (this._eventsCount === 0) return c; for (d in f = this._events) t.call(f, d) && c.push(n ? d.slice(1) : d); return Object.getOwnPropertySymbols ? c.concat(Object.getOwnPropertySymbols(f)) : c; }, s.prototype.listeners = function(c) { var f = n ? n + c : c, d = this._events[f]; if (!d) return []; if (d.fn) return [d.fn]; for (var p = 0, m = d.length, y = new Array(m); p < m; p++) y[p] = d[p].fn; return y; }, s.prototype.listenerCount = function(c) { var f = n ? n + c : c, d = this._events[f]; return d ? d.fn ? 1 : d.length : 0; }, s.prototype.emit = function(c, f, d, p, m, y) { var g = n ? n + c : c; if (!this._events[g]) return !1; var v = this._events[g], x = arguments.length, w, S; if (v.fn) { switch (v.once && this.removeListener(c, v.fn, void 0, !0), x) { case 1: return v.fn.call(v.context), !0; case 2: return v.fn.call(v.context, f), !0; case 3: return v.fn.call(v.context, f, d), !0; case 4: return v.fn.call(v.context, f, d, p), !0; case 5: return v.fn.call(v.context, f, d, p, m), !0; case 6: return v.fn.call(v.context, f, d, p, m, y), !0; } for (S = 1, w = new Array(x - 1); S < x; S++) w[S - 1] = arguments[S]; v.fn.apply(v.context, w); } else { var A = v.length, _; for (S = 0; S < A; S++) switch (v[S].once && this.removeListener(c, v[S].fn, void 0, !0), x) { case 1: v[S].fn.call(v[S].context); break; case 2: v[S].fn.call(v[S].context, f); break; case 3: v[S].fn.call(v[S].context, f, d); break; case 4: v[S].fn.call(v[S].context, f, d, p); break; default: if (!w) for (_ = 1, w = new Array(x - 1); _ < x; _++) w[_ - 1] = arguments[_]; v[S].fn.apply(v[S].context, w); } } return !0; }, s.prototype.on = function(c, f, d) { return o(this, c, f, d, !1); }, s.prototype.once = function(c, f, d) { return o(this, c, f, d, !0); }, s.prototype.removeListener = function(c, f, d, p) { var m = n ? n + c : c; if (!this._events[m]) return this; if (!f) return a(this, m), this; var y = this._events[m]; if (y.fn) y.fn === f && (!p || y.once) && (!d || y.context === d) && a(this, m); else { for (var g = 0, v = [], x = y.length; g < x; g++) (y[g].fn !== f || p && !y[g].once || d && y[g].context !== d) && v.push(y[g]); v.length ? this._events[m] = v.length === 1 ? v[0] : v : a(this, m); } return this; }, s.prototype.removeAllListeners = function(c) { var f; return c ? (f = n ? n + c : c, this._events[f] && a(this, f)) : (this._events = new r(), this._eventsCount = 0), this; }, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = n, s.EventEmitter = s, e.exports = s; })(sz); var KCe = sz.exports; const GCe = /* @__PURE__ */ (0,_commonjsHelpers_DaMA6jEr_js__WEBPACK_IMPORTED_MODULE_3__.g)(KCe); var s0 = new GCe(), l0 = "recharts.syncMouseEvents"; function od(e) { "@babel/helpers - typeof"; return od = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, od(e); } function YCe(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function qCe(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, lz(r.key), r); } } function XCe(e, t, n) { return t && qCe(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function c0(e, t, n) { return t = lz(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function lz(e) { var t = ZCe(e, "string"); return od(t) == "symbol" ? t : t + ""; } function ZCe(e, t) { if (od(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t); if (od(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return String(e); } var JCe = /* @__PURE__ */ function() { function e() { YCe(this, e), c0(this, "activeIndex", 0), c0(this, "coordinateList", []), c0(this, "layout", "horizontal"); } return XCe(e, [{ key: "setDetails", value: function(n) { var r, i = n.coordinateList, o = i === void 0 ? null : i, a = n.container, s = a === void 0 ? null : a, l = n.layout, c = l === void 0 ? null : l, f = n.offset, d = f === void 0 ? null : f, p = n.mouseHandlerCallback, m = p === void 0 ? null : p; this.coordinateList = (r = o ?? this.coordinateList) !== null && r !== void 0 ? r : [], this.container = s ?? this.container, this.layout = c ?? this.layout, this.offset = d ?? this.offset, this.mouseHandlerCallback = m ?? this.mouseHandlerCallback, this.activeIndex = Math.min(Math.max(this.activeIndex, 0), this.coordinateList.length - 1); } }, { key: "focus", value: function() { this.spoofMouse(); } }, { key: "keyboardEvent", value: function(n) { if (this.coordinateList.length !== 0) switch (n.key) { case "ArrowRight": { if (this.layout !== "horizontal") return; this.activeIndex = Math.min(this.activeIndex + 1, this.coordinateList.length - 1), this.spoofMouse(); break; } case "ArrowLeft": { if (this.layout !== "horizontal") return; this.activeIndex = Math.max(this.activeIndex - 1, 0), this.spoofMouse(); break; } } } }, { key: "setIndex", value: function(n) { this.activeIndex = n; } }, { key: "spoofMouse", value: function() { var n, r; if (this.layout === "horizontal" && this.coordinateList.length !== 0) { var i = this.container.getBoundingClientRect(), o = i.x, a = i.y, s = i.height, l = this.coordinateList[this.activeIndex].coordinate, c = ((n = window) === null || n === void 0 ? void 0 : n.scrollX) || 0, f = ((r = window) === null || r === void 0 ? void 0 : r.scrollY) || 0, d = o + l + c, p = a + this.offset.top + s / 2 + f; this.mouseHandlerCallback({ pageX: d, pageY: p }); } } }]); }(); function QCe(e, t, n) { if (n === "number" && t === !0 && Array.isArray(e)) { var r = e == null ? void 0 : e[0], i = e == null ? void 0 : e[1]; if (r && i && be(r) && be(i)) return !0; } return !1; } function eEe(e, t, n, r) { var i = r / 2; return { stroke: "none", fill: "#ccc", x: e === "horizontal" ? t.x - i : n.left + 0.5, y: e === "horizontal" ? n.top + 0.5 : t.y - i, width: e === "horizontal" ? r : n.width - 1, height: e === "horizontal" ? n.height - 1 : r }; } function cz(e) { var t = e.cx, n = e.cy, r = e.radius, i = e.startAngle, o = e.endAngle, a = Bt(t, n, r, i), s = Bt(t, n, r, o); return { points: [a, s], cx: t, cy: n, radius: r, startAngle: i, endAngle: o }; } function tEe(e, t, n) { var r, i, o, a; if (e === "horizontal") r = t.x, o = r, i = n.top, a = n.top + n.height; else if (e === "vertical") i = t.y, a = i, r = n.left, o = n.left + n.width; else if (t.cx != null && t.cy != null) if (e === "centric") { var s = t.cx, l = t.cy, c = t.innerRadius, f = t.outerRadius, d = t.angle, p = Bt(s, l, c, d), m = Bt(s, l, f, d); r = p.x, i = p.y, o = m.x, a = m.y; } else return cz(t); return [{ x: r, y: i }, { x: o, y: a }]; } function ad(e) { "@babel/helpers - typeof"; return ad = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, ad(e); } function R$(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function tp(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? R$(Object(n), !0).forEach(function(r) { nEe(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : R$(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function nEe(e, t, n) { return t = rEe(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function rEe(e) { var t = iEe(e, "string"); return ad(t) == "symbol" ? t : t + ""; } function iEe(e, t) { if (ad(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (ad(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } function oEe(e) { var t, n, r = e.element, i = e.tooltipEventType, o = e.isActive, a = e.activeCoordinate, s = e.activePayload, l = e.offset, c = e.activeTooltipIndex, f = e.tooltipAxisBandSize, d = e.layout, p = e.chartName, m = (t = r.props.cursor) !== null && t !== void 0 ? t : (n = r.type.defaultProps) === null || n === void 0 ? void 0 : n.cursor; if (!r || !m || !o || !a || p !== "ScatterChart" && i !== "axis") return null; var y, g = Ds; if (p === "ScatterChart") y = a, g = hSe; else if (p === "BarChart") y = eEe(d, a, l, f), g = ES; else if (d === "radial") { var v = cz(a), x = v.cx, w = v.cy, S = v.radius, A = v.startAngle, _ = v.endAngle; y = { cx: x, cy: w, startAngle: A, endAngle: _, innerRadius: S, outerRadius: S }, g = tW; } else y = { points: tEe(d, a, l) }, g = Ds; var O = tp(tp(tp(tp({ stroke: "#ccc", pointerEvents: "none" }, l), y), Ee(m, !1)), {}, { payload: s, payloadIndex: c, className: Xe("recharts-tooltip-cursor", m.className) }); return /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(m) ? /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(m, O) : /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)(g, O); } var aEe = ["item"], sEe = ["children", "className", "width", "height", "style", "compact", "title", "desc"]; function kc(e) { "@babel/helpers - typeof"; return kc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) { return typeof t; } : function(t) { return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, kc(e); } function zl() { return zl = Object.assign ? Object.assign.bind() : function(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]); } return e; }, zl.apply(this, arguments); } function j$(e, t) { return uEe(e) || cEe(e, t) || fz(e, t) || lEe(); } function lEe() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function cEe(e, t) { var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"]; if (n != null) { var r, i, o, a, s = [], l = !0, c = !1; try { if (o = (n = n.call(e)).next, t !== 0) for (; !(l = (r = o.call(n)).done) && (s.push(r.value), s.length !== t); l = !0) ; } catch (f) { c = !0, i = f; } finally { try { if (!l && n.return != null && (a = n.return(), Object(a) !== a)) return; } finally { if (c) throw i; } } return s; } } function uEe(e) { if (Array.isArray(e)) return e; } function L$(e, t) { if (e == null) return {}; var n = fEe(e, t), r, i; if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]); } return n; } function fEe(e, t) { if (e == null) return {}; var n = {}; for (var r in e) if (Object.prototype.hasOwnProperty.call(e, r)) { if (t.indexOf(r) >= 0) continue; n[r] = e[r]; } return n; } function dEe(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function hEe(e, t) { for (var n = 0; n < t.length; n++) { var r = t[n]; r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, dz(r.key), r); } } function pEe(e, t, n) { return t && hEe(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } function mEe(e, t, n) { return t = Xm(t), gEe(e, uz() ? Reflect.construct(t, n || [], Xm(e).constructor) : t.apply(e, n)); } function gEe(e, t) { if (t && (kc(t) === "object" || typeof t == "function")) return t; if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined"); return yEe(e); } function yEe(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; } function uz() { try { var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { })); } catch { } return (uz = function() { return !!e; })(); } function Xm(e) { return Xm = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) { return n.__proto__ || Object.getPrototypeOf(n); }, Xm(e); } function vEe(e, t) { if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function"); e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Vw(e, t); } function Vw(e, t) { return Vw = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) { return r.__proto__ = i, r; }, Vw(e, t); } function Mc(e) { return wEe(e) || xEe(e) || fz(e) || bEe(); } function bEe() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } function fz(e, t) { if (e) { if (typeof e == "string") return Uw(e, t); var n = Object.prototype.toString.call(e).slice(8, -1); if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Uw(e, t); } } function xEe(e) { if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e); } function wEe(e) { if (Array.isArray(e)) return Uw(e); } function Uw(e, t) { (t == null || t > e.length) && (t = e.length); for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]; return r; } function B$(e, t) { var n = Object.keys(e); if (Object.getOwnPropertySymbols) { var r = Object.getOwnPropertySymbols(e); t && (r = r.filter(function(i) { return Object.getOwnPropertyDescriptor(e, i).enumerable; })), n.push.apply(n, r); } return n; } function le(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {}; t % 2 ? B$(Object(n), !0).forEach(function(r) { We(e, r, n[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : B$(Object(n)).forEach(function(r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r)); }); } return e; } function We(e, t, n) { return t = dz(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e; } function dz(e) { var t = _Ee(e, "string"); return kc(t) == "symbol" ? t : t + ""; } function _Ee(e, t) { if (kc(e) != "object" || !e) return e; var n = e[Symbol.toPrimitive]; if (n !== void 0) { var r = n.call(e, t || "default"); if (kc(r) != "object") return r; throw new TypeError("@@toPrimitive must return a primitive value."); } return (t === "string" ? String : Number)(e); } var SEe = { xAxis: ["bottom", "top"], yAxis: ["left", "right"] }, OEe = { width: "100%", height: "100%" }, hz = { x: 0, y: 0 }; function np(e) { return e; } var AEe = function(t, n) { return n === "horizontal" ? t.x : n === "vertical" ? t.y : n === "centric" ? t.angle : t.radius; }, TEe = function(t, n, r, i) { var o = n.find(function(f) { return f && f.index === r; }); if (o) { if (t === "horizontal") return { x: o.coordinate, y: i.y }; if (t === "vertical") return { x: i.x, y: o.coordinate }; if (t === "centric") { var a = o.coordinate, s = i.radius; return le(le(le({}, i), Bt(i.cx, i.cy, s, a)), {}, { angle: a, radius: s }); } var l = o.coordinate, c = i.angle; return le(le(le({}, i), Bt(i.cx, i.cy, l, c)), {}, { angle: c, radius: l }); } return hz; }, Py = function(t, n) { var r = n.graphicalItems, i = n.dataStartIndex, o = n.dataEndIndex, a = (r ?? []).reduce(function(s, l) { var c = l.props.data; return c && c.length ? [].concat(Mc(s), Mc(c)) : s; }, []); return a.length > 0 ? a : t && t.length && be(i) && be(o) ? t.slice(i, o + 1) : []; }; function pz(e) { return e === "number" ? [0, "auto"] : void 0; } var Hw = function(t, n, r, i) { var o = t.graphicalItems, a = t.tooltipAxis, s = Py(n, t); return r < 0 || !o || !o.length || r >= s.length ? null : o.reduce(function(l, c) { var f, d = (f = c.props.data) !== null && f !== void 0 ? f : n; d && t.dataStartIndex + t.dataEndIndex !== 0 && // https://github.com/recharts/recharts/issues/4717 // The data is sliced only when the active index is within the start/end index range. t.dataEndIndex - t.dataStartIndex >= r && (d = d.slice(t.dataStartIndex, t.dataEndIndex + 1)); var p; if (a.dataKey && !a.allowDuplicatedCategory) { var m = d === void 0 ? s : d; p = Gp(m, a.dataKey, i); } else p = d && d[r] || s[r]; return p ? [].concat(Mc(l), [qF(c, p)]) : l; }, []); }, F$ = function(t, n, r, i) { var o = i || { x: t.chartX, y: t.chartY }, a = AEe(o, r), s = t.orderedTooltipTicks, l = t.tooltipAxis, c = t.tooltipTicks, f = zxe(a, s, c, l); if (f >= 0 && c) { var d = c[f] && c[f].value, p = Hw(t, n, f, d), m = TEe(r, s, f, o); return { activeTooltipIndex: f, activeLabel: d, activePayload: p, activeCoordinate: m }; } return null; }, PEe = function(t, n) { var r = n.axes, i = n.graphicalItems, o = n.axisType, a = n.axisIdKey, s = n.stackGroups, l = n.dataStartIndex, c = n.dataEndIndex, f = t.layout, d = t.children, p = t.stackOffset, m = VF(f, o); return r.reduce(function(y, g) { var v, x = g.type.defaultProps !== void 0 ? le(le({}, g.type.defaultProps), g.props) : g.props, w = x.type, S = x.dataKey, A = x.allowDataOverflow, _ = x.allowDuplicatedCategory, O = x.scale, P = x.ticks, C = x.includeHidden, k = x[a]; if (y[k]) return y; var I = Py(t.data, { graphicalItems: i.filter(function(Q) { var ne, re = a in Q.props ? Q.props[a] : (ne = Q.type.defaultProps) === null || ne === void 0 ? void 0 : ne[a]; return re === k; }), dataStartIndex: l, dataEndIndex: c }), $ = I.length, N, D, j; QCe(x.domain, A, w) && (N = rw(x.domain, null, A), m && (w === "number" || O !== "auto") && (j = rf(I, S, "category"))); var F = pz(w); if (!N || N.length === 0) { var W, z = (W = x.domain) !== null && W !== void 0 ? W : F; if (S) { if (N = rf(I, S, w), w === "category" && m) { var H = Nae(N); _ && H ? (D = N, N = Im(0, $)) : _ || (N = ZM(z, N, g).reduce(function(Q, ne) { return Q.indexOf(ne) >= 0 ? Q : [].concat(Mc(Q), [ne]); }, [])); } else if (w === "category") _ ? N = N.filter(function(Q) { return Q !== "" && !Ue(Q); }) : N = ZM(z, N, g).reduce(function(Q, ne) { return Q.indexOf(ne) >= 0 || ne === "" || Ue(ne) ? Q : [].concat(Mc(Q), [ne]); }, []); else if (w === "number") { var U = Gxe(I, i.filter(function(Q) { var ne, re, ce = a in Q.props ? Q.props[a] : (ne = Q.type.defaultProps) === null || ne === void 0 ? void 0 : ne[a], oe = "hide" in Q.props ? Q.props.hide : (re = Q.type.defaultProps) === null || re === void 0 ? void 0 : re.hide; return ce === k && (C || !oe); }), S, o, f); U && (N = U); } m && (w === "number" || O !== "auto") && (j = rf(I, S, "category")); } else m ? N = Im(0, $) : s && s[k] && s[k].hasStack && w === "number" ? N = p === "expand" ? [0, 1] : YF(s[k].stackGroups, l, c) : N = zF(I, i.filter(function(Q) { var ne = a in Q.props ? Q.props[a] : Q.type.defaultProps[a], re = "hide" in Q.props ? Q.props.hide : Q.type.defaultProps.hide; return ne === k && (C || !re); }), w, f, !0); if (w === "number") N = zw(d, N, k, o, P), z && (N = rw(z, N, A)); else if (w === "category" && z) { var V = z, Y = N.every(function(Q) { return V.indexOf(Q) >= 0; }); Y && (N = V); } } return le(le({}, y), {}, We({}, k, le(le({}, x), {}, { axisType: o, domain: N, categoricalDomain: j, duplicateDomain: D, originalDomain: (v = x.domain) !== null && v !== void 0 ? v : F, isCategorical: m, layout: f }))); }, {}); }, CEe = function(t, n) { var r = n.graphicalItems, i = n.Axis, o = n.axisType, a = n.axisIdKey, s = n.stackGroups, l = n.dataStartIndex, c = n.dataEndIndex, f = t.layout, d = t.children, p = Py(t.data, { graphicalItems: r, dataStartIndex: l, dataEndIndex: c }), m = p.length, y = VF(f, o), g = -1; return r.reduce(function(v, x) { var w = x.type.defaultProps !== void 0 ? le(le({}, x.type.defaultProps), x.props) : x.props, S = w[a], A = pz("number"); if (!v[S]) { g++; var _; return y ? _ = Im(0, m) : s && s[S] && s[S].hasStack ? (_ = YF(s[S].stackGroups, l, c), _ = zw(d, _, S, o)) : (_ = rw(A, zF(p, r.filter(function(O) { var P, C, k = a in O.props ? O.props[a] : (P = O.type.defaultProps) === null || P === void 0 ? void 0 : P[a], I = "hide" in O.props ? O.props.hide : (C = O.type.defaultProps) === null || C === void 0 ? void 0 : C.hide; return k === S && !I; }), "number", f), i.defaultProps.allowDataOverflow), _ = zw(d, _, S, o)), le(le({}, v), {}, We({}, S, le(le({ axisType: o }, i.defaultProps), {}, { hide: !0, orientation: zr(SEe, "".concat(o, ".").concat(g % 2), null), domain: _, originalDomain: A, isCategorical: y, layout: f // specify scale when no Axis // scale: isCategorical ? 'band' : 'linear', }))); } return v; }, {}); }, EEe = function(t, n) { var r = n.axisType, i = r === void 0 ? "xAxis" : r, o = n.AxisComp, a = n.graphicalItems, s = n.stackGroups, l = n.dataStartIndex, c = n.dataEndIndex, f = t.children, d = "".concat(i, "Id"), p = Vr(f, o), m = {}; return p && p.length ? m = PEe(t, { axes: p, graphicalItems: a, axisType: i, axisIdKey: d, stackGroups: s, dataStartIndex: l, dataEndIndex: c }) : a && a.length && (m = CEe(t, { Axis: o, graphicalItems: a, axisType: i, axisIdKey: d, stackGroups: s, dataStartIndex: l, dataEndIndex: c })), m; }, kEe = function(t) { var n = Sa(t), r = Mo(n, !1, !0); return { tooltipTicks: r, orderedTooltipTicks: Q_(r, function(i) { return i.coordinate; }), tooltipAxis: n, tooltipAxisBandSize: _m(n, r) }; }, W$ = function(t) { var n = t.children, r = t.defaultShowTooltip, i = jr(n, bc), o = 0, a = 0; return t.data && t.data.length !== 0 && (a = t.data.length - 1), i && i.props && (i.props.startIndex >= 0 && (o = i.props.startIndex), i.props.endIndex >= 0 && (a = i.props.endIndex)), { chartX: 0, chartY: 0, dataStartIndex: o, dataEndIndex: a, activeTooltipIndex: -1, isTooltipActive: !!r }; }, MEe = function(t) { return !t || !t.length ? !1 : t.some(function(n) { var r = jo(n && n.type); return r && r.indexOf("Bar") >= 0; }); }, z$ = function(t) { return t === "horizontal" ? { numericAxisName: "yAxis", cateAxisName: "xAxis" } : t === "vertical" ? { numericAxisName: "xAxis", cateAxisName: "yAxis" } : t === "centric" ? { numericAxisName: "radiusAxis", cateAxisName: "angleAxis" } : { numericAxisName: "angleAxis", cateAxisName: "radiusAxis" }; }, NEe = function(t, n) { var r = t.props, i = t.graphicalItems, o = t.xAxisMap, a = o === void 0 ? {} : o, s = t.yAxisMap, l = s === void 0 ? {} : s, c = r.width, f = r.height, d = r.children, p = r.margin || {}, m = jr(d, bc), y = jr(d, Lo), g = Object.keys(l).reduce(function(_, O) { var P = l[O], C = P.orientation; return !P.mirror && !P.hide ? le(le({}, _), {}, We({}, C, _[C] + P.width)) : _; }, { left: p.left || 0, right: p.right || 0 }), v = Object.keys(a).reduce(function(_, O) { var P = a[O], C = P.orientation; return !P.mirror && !P.hide ? le(le({}, _), {}, We({}, C, zr(_, "".concat(C)) + P.height)) : _; }, { top: p.top || 0, bottom: p.bottom || 0 }), x = le(le({}, v), g), w = x.bottom; m && (x.bottom += m.props.height || bc.defaultProps.height), y && n && (x = Hxe(x, i, r, n)); var S = c - x.left - x.right, A = f - x.top - x.bottom; return le(le({ brushBottom: w }, x), {}, { // never return negative values for height and width width: Math.max(S, 0), height: Math.max(A, 0) }); }, $Ee = function(t, n) { if (n === "xAxis") return t[n].width; if (n === "yAxis") return t[n].height; }, Cy = function(t) { var n = t.chartName, r = t.GraphicalChild, i = t.defaultTooltipEventType, o = i === void 0 ? "axis" : i, a = t.validateTooltipEventTypes, s = a === void 0 ? ["axis"] : a, l = t.axisComponents, c = t.legendContent, f = t.formatAxisMap, d = t.defaultProps, p = function(x, w) { var S = w.graphicalItems, A = w.stackGroups, _ = w.offset, O = w.updateId, P = w.dataStartIndex, C = w.dataEndIndex, k = x.barSize, I = x.layout, $ = x.barGap, N = x.barCategoryGap, D = x.maxBarSize, j = z$(I), F = j.numericAxisName, W = j.cateAxisName, z = MEe(S), H = []; return S.forEach(function(U, V) { var Y = Py(x.data, { graphicalItems: [U], dataStartIndex: P, dataEndIndex: C }), Q = U.type.defaultProps !== void 0 ? le(le({}, U.type.defaultProps), U.props) : U.props, ne = Q.dataKey, re = Q.maxBarSize, ce = Q["".concat(F, "Id")], oe = Q["".concat(W, "Id")], fe = {}, ae = l.reduce(function(Oe, Ge) { var Zt, mt, en = w["".concat(Ge.axisType, "Map")], Yr = Q["".concat(Ge.axisType, "Id")]; en && en[Yr] || Ge.axisType === "zAxis" || ( true ? Sr(!1, "Specifying a(n) ".concat(Ge.axisType, "Id requires a corresponding ").concat( Ge.axisType, "Id on the targeted graphical component " ).concat((Zt = U == null || (mt = U.type) === null || mt === void 0 ? void 0 : mt.displayName) !== null && Zt !== void 0 ? Zt : "")) : 0); var Cn = en[Yr]; return le(le({}, Oe), {}, We(We({}, Ge.axisType, Cn), "".concat(Ge.axisType, "Ticks"), Mo(Cn))); }, fe), ee = ae[W], se = ae["".concat(W, "Ticks")], ge = A && A[ce] && A[ce].hasStack && nwe(U, A[ce].stackGroups), X = jo(U.type).indexOf("Bar") >= 0, $e = _m(ee, se), de = [], ke = z && Vxe({ barSize: k, stackGroups: A, totalSize: $Ee(ae, W) }); if (X) { var it, lt, Xn = Ue(re) ? D : re, Ie = (it = (lt = _m(ee, se, !0)) !== null && lt !== void 0 ? lt : Xn) !== null && it !== void 0 ? it : 0; de = Uxe({ barGap: $, barCategoryGap: N, bandSize: Ie !== $e ? Ie : $e, sizeList: ke[oe], maxBarSize: Xn }), Ie !== $e && (de = de.map(function(Oe) { return le(le({}, Oe), {}, { position: le(le({}, Oe.position), {}, { offset: Oe.position.offset - Ie / 2 }) }); })); } var ct = U && U.type && U.type.getComposedData; ct && H.push({ props: le(le({}, ct(le(le({}, ae), {}, { displayedData: Y, props: x, dataKey: ne, item: U, bandSize: $e, barPosition: de, offset: _, stackedData: ge, layout: I, dataStartIndex: P, dataEndIndex: C }))), {}, We(We(We({ key: U.key || "item-".concat(V) }, F, ae[F]), W, ae[W]), "animationId", O)), childIndex: Vae(U, x.children), item: U }); }), H; }, m = function(x, w) { var S = x.props, A = x.dataStartIndex, _ = x.dataEndIndex, O = x.updateId; if (!HE({ props: S })) return null; var P = S.children, C = S.layout, k = S.stackOffset, I = S.data, $ = S.reverseStackOrder, N = z$(C), D = N.numericAxisName, j = N.cateAxisName, F = Vr(P, r), W = ewe(I, F, "".concat(D, "Id"), "".concat(j, "Id"), k, $), z = l.reduce(function(Q, ne) { var re = "".concat(ne.axisType, "Map"); return le(le({}, Q), {}, We({}, re, EEe(S, le(le({}, ne), {}, { graphicalItems: F, stackGroups: ne.axisType === D && W, dataStartIndex: A, dataEndIndex: _ })))); }, {}), H = NEe(le(le({}, z), {}, { props: S, graphicalItems: F }), w == null ? void 0 : w.legendBBox); Object.keys(z).forEach(function(Q) { z[Q] = f(S, z[Q], H, Q.replace("Map", ""), n); }); var U = z["".concat(j, "Map")], V = kEe(U), Y = p(S, le(le({}, z), {}, { dataStartIndex: A, dataEndIndex: _, updateId: O, graphicalItems: F, stackGroups: W, offset: H })); return le(le({ formattedGraphicalItems: Y, graphicalItems: F, offset: H, stackGroups: W }, V), z); }, y = /* @__PURE__ */ function(v) { function x(w) { var S, A, _; return dEe(this, x), _ = mEe(this, x, [w]), We(_, "eventEmitterSymbol", Symbol("rechartsEventEmitter")), We(_, "accessibilityManager", new JCe()), We(_, "handleLegendBBoxUpdate", function(O) { if (O) { var P = _.state, C = P.dataStartIndex, k = P.dataEndIndex, I = P.updateId; _.setState(le({ legendBBox: O }, m({ props: _.props, dataStartIndex: C, dataEndIndex: k, updateId: I }, le(le({}, _.state), {}, { legendBBox: O })))); } }), We(_, "handleReceiveSyncEvent", function(O, P, C) { if (_.props.syncId === O) { if (C === _.eventEmitterSymbol && typeof _.props.syncMethod != "function") return; _.applySyncEvent(P); } }), We(_, "handleBrushChange", function(O) { var P = O.startIndex, C = O.endIndex; if (P !== _.state.dataStartIndex || C !== _.state.dataEndIndex) { var k = _.state.updateId; _.setState(function() { return le({ dataStartIndex: P, dataEndIndex: C }, m({ props: _.props, dataStartIndex: P, dataEndIndex: C, updateId: k }, _.state)); }), _.triggerSyncEvent({ dataStartIndex: P, dataEndIndex: C }); } }), We(_, "handleMouseEnter", function(O) { var P = _.getMouseInfo(O); if (P) { var C = le(le({}, P), {}, { isTooltipActive: !0 }); _.setState(C), _.triggerSyncEvent(C); var k = _.props.onMouseEnter; ze(k) && k(C, O); } }), We(_, "triggeredAfterMouseMove", function(O) { var P = _.getMouseInfo(O), C = P ? le(le({}, P), {}, { isTooltipActive: !0 }) : { isTooltipActive: !1 }; _.setState(C), _.triggerSyncEvent(C); var k = _.props.onMouseMove; ze(k) && k(C, O); }), We(_, "handleItemMouseEnter", function(O) { _.setState(function() { return { isTooltipActive: !0, activeItem: O, activePayload: O.tooltipPayload, activeCoordinate: O.tooltipPosition || { x: O.cx, y: O.cy } }; }); }), We(_, "handleItemMouseLeave", function() { _.setState(function() { return { isTooltipActive: !1 }; }); }), We(_, "handleMouseMove", function(O) { O.persist(), _.throttleTriggeredAfterMouseMove(O); }), We(_, "handleMouseLeave", function(O) { _.throttleTriggeredAfterMouseMove.cancel(); var P = { isTooltipActive: !1 }; _.setState(P), _.triggerSyncEvent(P); var C = _.props.onMouseLeave; ze(C) && C(P, O); }), We(_, "handleOuterEvent", function(O) { var P = zae(O), C = zr(_.props, "".concat(P)); if (P && ze(C)) { var k, I; /.*touch.*/i.test(P) ? I = _.getMouseInfo(O.changedTouches[0]) : I = _.getMouseInfo(O), C((k = I) !== null && k !== void 0 ? k : {}, O); } }), We(_, "handleClick", function(O) { var P = _.getMouseInfo(O); if (P) { var C = le(le({}, P), {}, { isTooltipActive: !0 }); _.setState(C), _.triggerSyncEvent(C); var k = _.props.onClick; ze(k) && k(C, O); } }), We(_, "handleMouseDown", function(O) { var P = _.props.onMouseDown; if (ze(P)) { var C = _.getMouseInfo(O); P(C, O); } }), We(_, "handleMouseUp", function(O) { var P = _.props.onMouseUp; if (ze(P)) { var C = _.getMouseInfo(O); P(C, O); } }), We(_, "handleTouchMove", function(O) { O.changedTouches != null && O.changedTouches.length > 0 && _.throttleTriggeredAfterMouseMove(O.changedTouches[0]); }), We(_, "handleTouchStart", function(O) { O.changedTouches != null && O.changedTouches.length > 0 && _.handleMouseDown(O.changedTouches[0]); }), We(_, "handleTouchEnd", function(O) { O.changedTouches != null && O.changedTouches.length > 0 && _.handleMouseUp(O.changedTouches[0]); }), We(_, "triggerSyncEvent", function(O) { _.props.syncId !== void 0 && s0.emit(l0, _.props.syncId, O, _.eventEmitterSymbol); }), We(_, "applySyncEvent", function(O) { var P = _.props, C = P.layout, k = P.syncMethod, I = _.state.updateId, $ = O.dataStartIndex, N = O.dataEndIndex; if (O.dataStartIndex !== void 0 || O.dataEndIndex !== void 0) _.setState(le({ dataStartIndex: $, dataEndIndex: N }, m({ props: _.props, dataStartIndex: $, dataEndIndex: N, updateId: I }, _.state))); else if (O.activeTooltipIndex !== void 0) { var D = O.chartX, j = O.chartY, F = O.activeTooltipIndex, W = _.state, z = W.offset, H = W.tooltipTicks; if (!z) return; if (typeof k == "function") F = k(H, O); else if (k === "value") { F = -1; for (var U = 0; U < H.length; U++) if (H[U].value === O.activeLabel) { F = U; break; } } var V = le(le({}, z), {}, { x: z.left, y: z.top }), Y = Math.min(D, V.x + V.width), Q = Math.min(j, V.y + V.height), ne = H[F] && H[F].value, re = Hw(_.state, _.props.data, F), ce = H[F] ? { x: C === "horizontal" ? H[F].coordinate : Y, y: C === "horizontal" ? Q : H[F].coordinate } : hz; _.setState(le(le({}, O), {}, { activeLabel: ne, activeCoordinate: ce, activePayload: re, activeTooltipIndex: F })); } else _.setState(O); }), We(_, "renderCursor", function(O) { var P, C = _.state, k = C.isTooltipActive, I = C.activeCoordinate, $ = C.activePayload, N = C.offset, D = C.activeTooltipIndex, j = C.tooltipAxisBandSize, F = _.getTooltipEventType(), W = (P = O.props.active) !== null && P !== void 0 ? P : k, z = _.props.layout, H = O.key || "_recharts-cursor"; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(oEe, { key: H, activeCoordinate: I, activePayload: $, activeTooltipIndex: D, chartName: n, element: O, isActive: W, layout: z, offset: N, tooltipAxisBandSize: j, tooltipEventType: F }); }), We(_, "renderPolarAxis", function(O, P, C) { var k = zr(O, "type.axisType"), I = zr(_.state, "".concat(k, "Map")), $ = O.type.defaultProps, N = $ !== void 0 ? le(le({}, $), O.props) : O.props, D = I && I[N["".concat(k, "Id")]]; return /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(O, le(le({}, D), {}, { className: Xe(k, D.className), key: O.key || "".concat(P, "-").concat(C), ticks: Mo(D, !0) })); }), We(_, "renderPolarGrid", function(O) { var P = O.props, C = P.radialLines, k = P.polarAngles, I = P.polarRadius, $ = _.state, N = $.radiusAxisMap, D = $.angleAxisMap, j = Sa(N), F = Sa(D), W = F.cx, z = F.cy, H = F.innerRadius, U = F.outerRadius; return /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(O, { polarAngles: Array.isArray(k) ? k : Mo(F, !0).map(function(V) { return V.coordinate; }), polarRadius: Array.isArray(I) ? I : Mo(j, !0).map(function(V) { return V.coordinate; }), cx: W, cy: z, innerRadius: H, outerRadius: U, key: O.key || "polar-grid", radialLines: C }); }), We(_, "renderLegend", function() { var O = _.state.formattedGraphicalItems, P = _.props, C = P.children, k = P.width, I = P.height, $ = _.props.margin || {}, N = k - ($.left || 0) - ($.right || 0), D = FF({ children: C, formattedGraphicalItems: O, legendWidth: N, legendContent: c }); if (!D) return null; var j = D.item, F = L$(D, aEe); return /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(j, le(le({}, F), {}, { chartWidth: k, chartHeight: I, margin: $, onBBoxUpdate: _.handleLegendBBoxUpdate })); }), We(_, "renderTooltip", function() { var O, P = _.props, C = P.children, k = P.accessibilityLayer, I = jr(C, Lr); if (!I) return null; var $ = _.state, N = $.isTooltipActive, D = $.activeCoordinate, j = $.activePayload, F = $.activeLabel, W = $.offset, z = (O = I.props.active) !== null && O !== void 0 ? O : N; return /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(I, { viewBox: le(le({}, W), {}, { x: W.left, y: W.top }), active: z, label: F, payload: z ? j : [], coordinate: D, accessibilityLayer: k }); }), We(_, "renderBrush", function(O) { var P = _.props, C = P.margin, k = P.data, I = _.state, $ = I.offset, N = I.dataStartIndex, D = I.dataEndIndex, j = I.updateId; return /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(O, { key: O.key || "_recharts-brush", onChange: Xh(_.handleBrushChange, O.props.onChange), data: k, x: be(O.props.x) ? O.props.x : $.left, y: be(O.props.y) ? O.props.y : $.top + $.height + $.brushBottom - (C.bottom || 0), width: be(O.props.width) ? O.props.width : $.width, startIndex: N, endIndex: D, updateId: "brush-".concat(j) }); }), We(_, "renderReferenceElement", function(O, P, C) { if (!O) return null; var k = _, I = k.clipPathId, $ = _.state, N = $.xAxisMap, D = $.yAxisMap, j = $.offset, F = O.type.defaultProps || {}, W = O.props, z = W.xAxisId, H = z === void 0 ? F.xAxisId : z, U = W.yAxisId, V = U === void 0 ? F.yAxisId : U; return /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(O, { key: O.key || "".concat(P, "-").concat(C), xAxis: N[H], yAxis: D[V], viewBox: { x: j.left, y: j.top, width: j.width, height: j.height }, clipPathId: I }); }), We(_, "renderActivePoints", function(O) { var P = O.item, C = O.activePoint, k = O.basePoint, I = O.childIndex, $ = O.isRange, N = [], D = P.props.key, j = P.item.type.defaultProps !== void 0 ? le(le({}, P.item.type.defaultProps), P.item.props) : P.item.props, F = j.activeDot, W = j.dataKey, z = le(le({ index: I, dataKey: W, cx: C.x, cy: C.y, r: 4, fill: PS(P.item), strokeWidth: 2, stroke: "#fff", payload: C.payload, value: C.value }, Ee(F, !1)), Yp(F)); return N.push(x.renderActiveDot(F, z, "".concat(D, "-activePoint-").concat(I))), k ? N.push(x.renderActiveDot(F, le(le({}, z), {}, { cx: k.x, cy: k.y }), "".concat(D, "-basePoint-").concat(I))) : $ && N.push(null), N; }), We(_, "renderGraphicChild", function(O, P, C) { var k = _.filterFormatItem(O, P, C); if (!k) return null; var I = _.getTooltipEventType(), $ = _.state, N = $.isTooltipActive, D = $.tooltipAxis, j = $.activeTooltipIndex, F = $.activeLabel, W = _.props.children, z = jr(W, Lr), H = k.props, U = H.points, V = H.isRange, Y = H.baseLine, Q = k.item.type.defaultProps !== void 0 ? le(le({}, k.item.type.defaultProps), k.item.props) : k.item.props, ne = Q.activeDot, re = Q.hide, ce = Q.activeBar, oe = Q.activeShape, fe = !!(!re && N && z && (ne || ce || oe)), ae = {}; I !== "axis" && z && z.props.trigger === "click" ? ae = { onClick: Xh(_.handleItemMouseEnter, O.props.onClick) } : I !== "axis" && (ae = { onMouseLeave: Xh(_.handleItemMouseLeave, O.props.onMouseLeave), onMouseEnter: Xh(_.handleItemMouseEnter, O.props.onMouseEnter) }); var ee = /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(O, le(le({}, k.props), ae)); function se(Ge) { return typeof D.dataKey == "function" ? D.dataKey(Ge.payload) : null; } if (fe) if (j >= 0) { var ge, X; if (D.dataKey && !D.allowDuplicatedCategory) { var $e = typeof D.dataKey == "function" ? se : "payload.".concat(D.dataKey.toString()); ge = Gp(U, $e, F), X = V && Y && Gp(Y, $e, F); } else ge = U == null ? void 0 : U[j], X = V && Y && Y[j]; if (oe || ce) { var de = O.props.activeIndex !== void 0 ? O.props.activeIndex : j; return [/* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(O, le(le(le({}, k.props), ae), {}, { activeIndex: de })), null, null]; } if (!Ue(ge)) return [ee].concat(Mc(_.renderActivePoints({ item: k, activePoint: ge, basePoint: X, childIndex: j, isRange: V }))); } else { var ke, it = (ke = _.getItemByXY(_.state.activeCoordinate)) !== null && ke !== void 0 ? ke : { graphicalItem: ee }, lt = it.graphicalItem, Xn = lt.item, Ie = Xn === void 0 ? O : Xn, ct = lt.childIndex, Oe = le(le(le({}, k.props), ae), {}, { activeIndex: ct }); return [/* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(Ie, Oe), null, null]; } return V ? [ee, null, null] : [ee, null]; }), We(_, "renderCustomized", function(O, P, C) { return /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(O, le(le({ key: "recharts-customized-".concat(C) }, _.props), _.state)); }), We(_, "renderMap", { CartesianGrid: { handler: np, once: !0 }, ReferenceArea: { handler: _.renderReferenceElement }, ReferenceLine: { handler: np }, ReferenceDot: { handler: _.renderReferenceElement }, XAxis: { handler: np }, YAxis: { handler: np }, Brush: { handler: _.renderBrush, once: !0 }, Bar: { handler: _.renderGraphicChild }, Line: { handler: _.renderGraphicChild }, Area: { handler: _.renderGraphicChild }, Radar: { handler: _.renderGraphicChild }, RadialBar: { handler: _.renderGraphicChild }, Scatter: { handler: _.renderGraphicChild }, Pie: { handler: _.renderGraphicChild }, Funnel: { handler: _.renderGraphicChild }, Tooltip: { handler: _.renderCursor, once: !0 }, PolarGrid: { handler: _.renderPolarGrid, once: !0 }, PolarAngleAxis: { handler: _.renderPolarAxis }, PolarRadiusAxis: { handler: _.renderPolarAxis }, Customized: { handler: _.renderCustomized } }), _.clipPathId = "".concat((S = w.id) !== null && S !== void 0 ? S : tl("recharts"), "-clip"), _.throttleTriggeredAfterMouseMove = BB(_.triggeredAfterMouseMove, (A = w.throttleDelay) !== null && A !== void 0 ? A : 1e3 / 60), _.state = {}, _; } return vEe(x, v), pEe(x, [{ key: "componentDidMount", value: function() { var S, A; this.addListener(), this.accessibilityManager.setDetails({ container: this.container, offset: { left: (S = this.props.margin.left) !== null && S !== void 0 ? S : 0, top: (A = this.props.margin.top) !== null && A !== void 0 ? A : 0 }, coordinateList: this.state.tooltipTicks, mouseHandlerCallback: this.triggeredAfterMouseMove, layout: this.props.layout }), this.displayDefaultTooltip(); } }, { key: "displayDefaultTooltip", value: function() { var S = this.props, A = S.children, _ = S.data, O = S.height, P = S.layout, C = jr(A, Lr); if (C) { var k = C.props.defaultIndex; if (!(typeof k != "number" || k < 0 || k > this.state.tooltipTicks.length - 1)) { var I = this.state.tooltipTicks[k] && this.state.tooltipTicks[k].value, $ = Hw(this.state, _, k, I), N = this.state.tooltipTicks[k].coordinate, D = (this.state.offset.top + O) / 2, j = P === "horizontal", F = j ? { x: N, y: D } : { y: N, x: D }, W = this.state.formattedGraphicalItems.find(function(H) { var U = H.item; return U.type.name === "Scatter"; }); W && (F = le(le({}, F), W.props.points[k].tooltipPosition), $ = W.props.points[k].tooltipPayload); var z = { activeTooltipIndex: k, isTooltipActive: !0, activeLabel: I, activePayload: $, activeCoordinate: F }; this.setState(z), this.renderCursor(C), this.accessibilityManager.setIndex(k); } } } }, { key: "getSnapshotBeforeUpdate", value: function(S, A) { if (!this.props.accessibilityLayer) return null; if (this.state.tooltipTicks !== A.tooltipTicks && this.accessibilityManager.setDetails({ coordinateList: this.state.tooltipTicks }), this.props.layout !== S.layout && this.accessibilityManager.setDetails({ layout: this.props.layout }), this.props.margin !== S.margin) { var _, O; this.accessibilityManager.setDetails({ offset: { left: (_ = this.props.margin.left) !== null && _ !== void 0 ? _ : 0, top: (O = this.props.margin.top) !== null && O !== void 0 ? O : 0 } }); } return null; } }, { key: "componentDidUpdate", value: function(S) { vx([jr(S.children, Lr)], [jr(this.props.children, Lr)]) || this.displayDefaultTooltip(); } }, { key: "componentWillUnmount", value: function() { this.removeListener(), this.throttleTriggeredAfterMouseMove.cancel(); } }, { key: "getTooltipEventType", value: function() { var S = jr(this.props.children, Lr); if (S && typeof S.props.shared == "boolean") { var A = S.props.shared ? "axis" : "item"; return s.indexOf(A) >= 0 ? A : o; } return o; } /** * Get the information of mouse in chart, return null when the mouse is not in the chart * @param {MousePointer} event The event object * @return {Object} Mouse data */ }, { key: "getMouseInfo", value: function(S) { if (!this.container) return null; var A = this.container, _ = A.getBoundingClientRect(), O = gye(_), P = { chartX: Math.round(S.pageX - O.left), chartY: Math.round(S.pageY - O.top) }, C = _.width / A.offsetWidth || 1, k = this.inRange(P.chartX, P.chartY, C); if (!k) return null; var I = this.state, $ = I.xAxisMap, N = I.yAxisMap, D = this.getTooltipEventType(); if (D !== "axis" && $ && N) { var j = Sa($).scale, F = Sa(N).scale, W = j && j.invert ? j.invert(P.chartX) : null, z = F && F.invert ? F.invert(P.chartY) : null; return le(le({}, P), {}, { xValue: W, yValue: z }); } var H = F$(this.state, this.props.data, this.props.layout, k); return H ? le(le({}, P), H) : null; } }, { key: "inRange", value: function(S, A) { var _ = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, O = this.props.layout, P = S / _, C = A / _; if (O === "horizontal" || O === "vertical") { var k = this.state.offset, I = P >= k.left && P <= k.left + k.width && C >= k.top && C <= k.top + k.height; return I ? { x: P, y: C } : null; } var $ = this.state, N = $.angleAxisMap, D = $.radiusAxisMap; if (N && D) { var j = Sa(N); return eN({ x: P, y: C }, j); } return null; } }, { key: "parseEventsOfWrapper", value: function() { var S = this.props.children, A = this.getTooltipEventType(), _ = jr(S, Lr), O = {}; _ && A === "axis" && (_.props.trigger === "click" ? O = { onClick: this.handleClick } : O = { onMouseEnter: this.handleMouseEnter, onMouseMove: this.handleMouseMove, onMouseLeave: this.handleMouseLeave, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }); var P = Yp(this.props, this.handleOuterEvent); return le(le({}, P), O); } }, { key: "addListener", value: function() { s0.on(l0, this.handleReceiveSyncEvent); } }, { key: "removeListener", value: function() { s0.removeListener(l0, this.handleReceiveSyncEvent); } }, { key: "filterFormatItem", value: function(S, A, _) { for (var O = this.state.formattedGraphicalItems, P = 0, C = O.length; P < C; P++) { var k = O[P]; if (k.item === S || k.props.key === S.key || A === jo(k.item.type) && _ === k.childIndex) return k; } return null; } }, { key: "renderClipPath", value: function() { var S = this.clipPathId, A = this.state.offset, _ = A.left, O = A.top, P = A.height, C = A.width; return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("defs", null, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("clipPath", { id: S }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("rect", { x: _, y: O, height: P, width: C }))); } }, { key: "getXScales", value: function() { var S = this.state.xAxisMap; return S ? Object.entries(S).reduce(function(A, _) { var O = j$(_, 2), P = O[0], C = O[1]; return le(le({}, A), {}, We({}, P, C.scale)); }, {}) : null; } }, { key: "getYScales", value: function() { var S = this.state.yAxisMap; return S ? Object.entries(S).reduce(function(A, _) { var O = j$(_, 2), P = O[0], C = O[1]; return le(le({}, A), {}, We({}, P, C.scale)); }, {}) : null; } }, { key: "getXScaleByAxisId", value: function(S) { var A; return (A = this.state.xAxisMap) === null || A === void 0 || (A = A[S]) === null || A === void 0 ? void 0 : A.scale; } }, { key: "getYScaleByAxisId", value: function(S) { var A; return (A = this.state.yAxisMap) === null || A === void 0 || (A = A[S]) === null || A === void 0 ? void 0 : A.scale; } }, { key: "getItemByXY", value: function(S) { var A = this.state, _ = A.formattedGraphicalItems, O = A.activeItem; if (_ && _.length) for (var P = 0, C = _.length; P < C; P++) { var k = _[P], I = k.props, $ = k.item, N = $.type.defaultProps !== void 0 ? le(le({}, $.type.defaultProps), $.props) : $.props, D = jo($.type); if (D === "Bar") { var j = (I.data || []).find(function(H) { return G_e(S, H); }); if (j) return { graphicalItem: k, payload: j }; } else if (D === "RadialBar") { var F = (I.data || []).find(function(H) { return eN(S, H); }); if (F) return { graphicalItem: k, payload: F }; } else if (by(k, O) || xy(k, O) || td(k, O)) { var W = IOe({ graphicalItem: k, activeTooltipItem: O, itemData: N.data }), z = N.activeIndex === void 0 ? W : N.activeIndex; return { graphicalItem: le(le({}, k), {}, { childIndex: z }), payload: td(k, O) ? N.data[W] : k.props.data[W] }; } } return null; } }, { key: "render", value: function() { var S = this; if (!HE(this)) return null; var A = this.props, _ = A.children, O = A.className, P = A.width, C = A.height, k = A.style, I = A.compact, $ = A.title, N = A.desc, D = L$(A, sEe), j = Ee(D, !1); if (I) return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(y$, { state: this.state, width: this.props.width, height: this.props.height, clipPathId: this.clipPathId }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(xx, zl({}, j, { width: P, height: C, title: $, desc: N }), this.renderClipPath(), GE(_, this.renderMap))); if (this.props.accessibilityLayer) { var F, W; j.tabIndex = (F = this.props.tabIndex) !== null && F !== void 0 ? F : 0, j.role = (W = this.props.role) !== null && W !== void 0 ? W : "application", j.onKeyDown = function(H) { S.accessibilityManager.keyboardEvent(H); }, j.onFocus = function() { S.accessibilityManager.focus(); }; } var z = this.parseEventsOfWrapper(); return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(y$, { state: this.state, width: this.props.width, height: this.props.height, clipPathId: this.clipPathId }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", zl({ className: Xe("recharts-wrapper", O), style: le({ position: "relative", cursor: "default", width: P, height: C }, k) }, z, { ref: function(U) { S.container = U; } }), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(xx, zl({}, j, { width: P, height: C, title: $, desc: N, style: OEe }), this.renderClipPath(), GE(_, this.renderMap)), this.renderLegend(), this.renderTooltip())); } }]); }(react__WEBPACK_IMPORTED_MODULE_1__.Component); We(y, "displayName", n), We(y, "defaultProps", le({ layout: "horizontal", stackOffset: "none", barCategoryGap: "10%", barGap: 4, margin: { top: 5, right: 5, bottom: 5, left: 5 }, reverseStackOrder: !1, syncMethod: "index" }, d)), We(y, "getDerivedStateFromProps", function(v, x) { var w = v.dataKey, S = v.data, A = v.children, _ = v.width, O = v.height, P = v.layout, C = v.stackOffset, k = v.margin, I = x.dataStartIndex, $ = x.dataEndIndex; if (x.updateId === void 0) { var N = W$(v); return le(le(le({}, N), {}, { updateId: 0 }, m(le(le({ props: v }, N), {}, { updateId: 0 }), x)), {}, { prevDataKey: w, prevData: S, prevWidth: _, prevHeight: O, prevLayout: P, prevStackOffset: C, prevMargin: k, prevChildren: A }); } if (w !== x.prevDataKey || S !== x.prevData || _ !== x.prevWidth || O !== x.prevHeight || P !== x.prevLayout || C !== x.prevStackOffset || !Yl(k, x.prevMargin)) { var D = W$(v), j = { // (chartX, chartY) are (0,0) in default state, but we want to keep the last mouse position to avoid // any flickering chartX: x.chartX, chartY: x.chartY, // The tooltip should stay active when it was active in the previous render. If this is not // the case, the tooltip disappears and immediately re-appears, causing a flickering effect isTooltipActive: x.isTooltipActive }, F = le(le({}, F$(x, S, P)), {}, { updateId: x.updateId + 1 }), W = le(le(le({}, D), j), F); return le(le(le({}, W), m(le({ props: v }, W), x)), {}, { prevDataKey: w, prevData: S, prevWidth: _, prevHeight: O, prevLayout: P, prevStackOffset: C, prevMargin: k, prevChildren: A }); } if (!vx(A, x.prevChildren)) { var z, H, U, V, Y = jr(A, bc), Q = Y && (z = (H = Y.props) === null || H === void 0 ? void 0 : H.startIndex) !== null && z !== void 0 ? z : I, ne = Y && (U = (V = Y.props) === null || V === void 0 ? void 0 : V.endIndex) !== null && U !== void 0 ? U : $, re = Q !== I || ne !== $, ce = !Ue(S), oe = ce && !re ? x.updateId : x.updateId + 1; return le(le({ updateId: oe }, m(le(le({ props: v }, x), {}, { updateId: oe, dataStartIndex: Q, dataEndIndex: ne }), x)), {}, { prevChildren: A, dataStartIndex: Q, dataEndIndex: ne }); } return null; }), We(y, "renderActiveDot", function(v, x, w) { var S; return /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(v) ? S = /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.cloneElement)(v, x) : ze(v) ? S = v(x) : S = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(Dd, x), /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(at, { className: "recharts-active-dot", key: w }, S); }); var g = /* @__PURE__ */ (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function(x, w) { return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_1__.createElement(y, zl({}, x, { ref: w })); }); return g.displayName = y.displayName, g; }, DEe = Cy({ chartName: "LineChart", GraphicalChild: Id, axisComponents: [{ axisType: "xAxis", AxisComp: Yo }, { axisType: "yAxis", AxisComp: eo }], formatAxisMap: kS }), IEe = Cy({ chartName: "BarChart", GraphicalChild: il, defaultTooltipEventType: "axis", validateTooltipEventTypes: ["axis", "item"], axisComponents: [{ axisType: "xAxis", AxisComp: Yo }, { axisType: "yAxis", AxisComp: eo }], formatAxisMap: kS }), REe = Cy({ chartName: "PieChart", GraphicalChild: ra, validateTooltipEventTypes: ["item"], defaultTooltipEventType: "item", legendContent: "children", axisComponents: [{ axisType: "angleAxis", AxisComp: vy }, { axisType: "radiusAxis", AxisComp: gy }], formatAxisMap: dwe, defaultProps: { layout: "centric", startAngle: 0, endAngle: 360, cx: "50%", cy: "50%", innerRadius: 0, outerRadius: "80%" } }), jEe = Cy({ chartName: "AreaChart", GraphicalChild: Xa, axisComponents: [{ axisType: "xAxis", AxisComp: Yo }, { axisType: "yAxis", AxisComp: eo }], formatAxisMap: kS }); const mz = react__WEBPACK_IMPORTED_MODULE_1__.forwardRef( ({ className: e, hideIcon: t = !1, payload: n = [], // array of objects that represents the data for each legend item verticalAlign: r = "bottom", // top | bottom nameKey: i = "value", fontSizeVariant: o }, a) => n.length ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { ref: a, className: K( "flex items-center justify-center gap-4", r === "top" ? "pb-3" : "pt-3", e ), children: n.map((s) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex items-center gap-1.5", children: [ !t && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: "size-2 shrink-0 rounded-sm", style: { backgroundColor: s.color } } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "span", { className: "capitalize", style: { fontSize: o }, children: s[i] } ) ] }, s.value)) } ) : null ); mz.displayName = "ChartLegendContent"; const gz = react__WEBPACK_IMPORTED_MODULE_1__.forwardRef( ({ active: e, payload: t, className: n, indicator: r = "dot", //dot, line, dashed hideLabel: i = !1, hideIndicator: o = !1, label: a, labelFormatter: s, labelClassName: l, formatter: c, color: f, nameKey: d = "name", labelKey: p }, m) => { const y = () => { if (i || !(t != null && t.length)) return null; const [v] = t, x = s ? s(a || "") : v[p] || a; return x ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: K("font-medium", l), children: x }) : null; }; if (!e || !(t != null && t.length)) return null; const g = t.length === 1 && r !== "dot"; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { ref: m, className: K( "grid min-w-[8rem] items-start gap-1.5 rounded-lg border bg-tooltip-background-light px-3 py-2 text-xs shadow-xl", n ), children: [ g ? null : y(), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "grid gap-1.5", children: t.map((v, x) => { const w = f || v.color || "#000"; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K( "flex w-full items-stretch gap-2", r === "dot" && "items-center" ), children: [ !o && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K({ "size-2.5": r === "dot", "w-1 h-full": r === "line", "w-0 border-[0.5px] border-dashed": r === "dashed" }), style: { backgroundColor: r === "dot" || r === "line" ? w : "", borderColor: r === "dashed" ? w : "" } } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex-1 flex justify-between items-center", children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { children: v[d] || v.dataKey }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "font-mono font-medium", children: c ? c(v.value ?? "") : v.value ?? "" }) ] }) ] }, v.dataKey || x ); }) }) ] } ); } ); gz.displayName = "ChartTooltipContent"; const ske = ({ data: e, dataKeys: t = [], colors: n = [], layout: r = "horizontal", // horizontal, vertical stacked: i = !1, showXAxis: o = !0, showYAxis: a = !0, showTooltip: s = !0, tooltipIndicator: l = "dot", // dot, line, dashed tooltipLabelKey: c, showLegend: f = !1, showCartesianGrid: d = !0, xTickFormatter: p, yTickFormatter: m, xAxisDataKey: y, yAxisDataKey: g, xAxisFontSize: v = "sm", // sm, md, lg xAxisFontColor: x = "#6B7280", yAxisFontColor: w = "#6B7280", chartWidth: S = 350, chartHeight: A = 200, borderRadius: _ = 8, xAxisProps: O, yAxisProps: P, tooltipProps: C, activeBar: k }) => { const I = [{ fill: "#7DD3FC" }, { fill: "#2563EB" }], $ = n.length > 0 ? n : I, N = { sm: "12px", md: "14px", lg: "16px" }, D = N[v] || N.sm; return !e || e.length === 0 ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(to, { size: "sm", variant: "help", children: "No data available" }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(tS, { width: S, height: A, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( IEe, { data: e, margin: { left: 14, right: 14 }, layout: r, children: [ d && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Ty, { vertical: !1 }), r === "horizontal" && o && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Yo, { ...O, dataKey: y, tickLine: !1, axisLine: !1, tickMargin: 8, tickFormatter: p, tick: { fontSize: D, fill: x } } ), r === "horizontal" && a && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( eo, { ...P, dataKey: g, tickLine: !1, tickMargin: 10, axisLine: !1, tickFormatter: m, tick: { fontSize: D, fill: w } } ), r === "vertical" && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Yo, { ...O, type: "number", dataKey: y, hide: !0 } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( eo, { ...P, dataKey: g, type: "category", tickLine: !1, tickMargin: 10, axisLine: !1, tickFormatter: p, tick: { fontSize: D, fill: w } } ) ] }), a && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(eo, { dataKey: g }), s && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Lr, { ...C, content: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( gz, { indicator: l, labelKey: c } ) } ), f && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Lo, { content: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( mz, { fontSizeVariant: D } ) } ), t.map((j, F) => { var z; let W; return i ? F === 0 ? W = [0, 0, 4, 4] : F === t.length - 1 ? W = [4, 4, 0, 0] : W = 0 : W = _, /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( il, { dataKey: j, fill: (z = $[F]) == null ? void 0 : z.fill, radius: W, stackId: i ? "a" : void 0, activeBar: k }, j ); }) ] } ) }); }, yz = react__WEBPACK_IMPORTED_MODULE_1__.forwardRef( ({ active: e, payload: t, className: n, indicator: r = "dot", //dot, line, dashed hideLabel: i = !1, hideIndicator: o = !1, label: a, labelFormatter: s, labelClassName: l, formatter: c, color: f, nameKey: d = "name", labelKey: p }, m) => { const y = () => { if (i || !(t != null && t.length)) return null; const [v] = t, x = s ? s(a || "") : v[p] || a; return x ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: K("font-medium", l), children: x }) : null; }; if (!e || !(t != null && t.length)) return null; const g = t.length === 1 && r !== "dot"; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { ref: m, className: K( "grid min-w-[8rem] items-start gap-1.5 rounded-lg border bg-tooltip-background-light px-3 py-2 text-xs shadow-xl", n ), children: [ g ? null : y(), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "grid gap-1.5", children: t.map((v, x) => { const w = f || v.color || "#000"; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K( "flex w-full items-stretch gap-2", r === "dot" && "items-center" ), children: [ !o && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K({ "size-2.5 ": r === "dot", "w-1 h-full": r === "line", "w-0 border-[0.5px] border-dashed": r === "dashed" }), style: { backgroundColor: r === "dot" || r === "line" ? w : "", borderColor: r === "dashed" ? w : "" } } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex-1 flex justify-between items-center", children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { children: v[d] || v.dataKey }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "font-mono font-medium", children: c ? c(v.value ?? "") : v.value ?? "" }) ] }) ] }, v.dataKey || x ); }) }) ] } ); } ); yz.displayName = "ChartTooltipContent"; const lke = ({ data: e, dataKeys: t = [], colors: n = [], showXAxis: r = !1, showYAxis: i = !1, showTooltip: o = !0, tooltipIndicator: a = "dot", // dot, line, dashed tooltipLabelKey: s, showCartesianGrid: l = !0, tickFormatter: c, xAxisDataKey: f, yAxisDataKey: d, xAxisFontSize: p = "sm", // sm, md, lg xAxisFontColor: m = "#6B7280", yAxisFontColor: y = "#6B7280", chartWidth: g = 350, chartHeight: v = 200, withDots: x = !1, lineChartWrapperProps: w, strokeDasharray: S = "3 3", gridColor: A = "#E5E7EB" }) => { const _ = [{ stroke: "#2563EB" }, { stroke: "#38BDF8" }], O = n.length > 0 ? n : _, P = { sm: "12px", md: "14px", lg: "16px" }, C = P[p] || P.sm; return !e || e.length === 0 ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(to, { size: "sm", variant: "help", children: "No data available" }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(tS, { width: g, height: v, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(DEe, { ...w, data: e, children: [ l && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Ty, { strokeDasharray: S, horizontal: !1, stroke: A } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Yo, { dataKey: f, tickLine: !1, axisLine: !1, tickMargin: 8, tickFormatter: c, tick: { fontSize: C, fill: m }, hide: !r } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( eo, { dataKey: d, tickLine: !1, axisLine: !1, tickMargin: 8, tick: { fontSize: C, fill: y }, hide: !i } ), o && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Lr, { content: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( yz, { indicator: a, labelKey: s } ) } ), t.map((k, I) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Id, { type: "natural", dataKey: k, stroke: O[I].stroke, fill: O[I].stroke, strokeWidth: 2, dot: x }, k )) ] }) }); }, vz = react__WEBPACK_IMPORTED_MODULE_1__.forwardRef( ({ active: e, payload: t, className: n, indicator: r = "dot", hideLabel: i = !1, hideIndicator: o = !1, label: a, labelFormatter: s, labelClassName: l, formatter: c, color: f, nameKey: d = "name", labelKey: p }, m) => { const y = () => { if (i || !(t != null && t.length)) return null; const [v] = t, x = s ? s(a || "") : v[p] || a; return x ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: K("font-medium", l), children: x }) : null; }; if (!e || !(t != null && t.length)) return null; const g = t.length === 1 && r !== "dot"; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { ref: m, className: K( "grid min-w-[8rem] items-start gap-1.5 rounded-lg border bg-tooltip-background-light px-3 py-2 text-xs shadow-xl", n ), children: [ g ? null : y(), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "grid gap-1.5", children: t.map((v, x) => { var S; const w = v.color || ((S = v.payload) == null ? void 0 : S.fill) || f || "#000"; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K( "flex w-full items-stretch gap-2", r === "dot" && "items-center" ), children: [ !o && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K({ "h-2.5 w-2.5 ": r === "dot", "w-1 h-full": r === "line", "w-0 border-[0.5px] border-dashed": r === "dashed" }), style: { backgroundColor: r === "dot" || r === "line" ? w : "", borderColor: r === "dashed" ? w : "" } } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex-1 flex justify-between items-center", children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { children: v[d] || v.dataKey }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "font-mono font-medium", children: c ? c(v.value ?? "") : v.value ?? "" }) ] }) ] }, v.dataKey || x ); }) }) ] } ); } ); vz.displayName = "ChartTooltipContent"; const bz = react__WEBPACK_IMPORTED_MODULE_1__.forwardRef( ({ className: e, hideIcon: t = !1, payload: n = [], // array of objects that represents the data for each legend item verticalAlign: r = "bottom", // top | bottom nameKey: i = "value" }, o) => n.length ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { ref: o, className: K( "flex items-center justify-center gap-4", r === "top" ? "pb-3" : "pt-3", e ), children: n.map((a) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex items-center gap-1.5", children: [ !t && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: "h-2 w-2 shrink-0 rounded-sm", style: { backgroundColor: a.color } } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "capitalize", children: a[i] }) ] }, a.value)) } ) : null ); bz.displayName = "ChartLegendContent"; const cke = ({ data: e, dataKey: t, type: n = "simple", // simple, donut showTooltip: r = !0, tooltipIndicator: i = "dot", // dot, line, dashed tooltipLabelKey: o, label: a = !1, labelName: s = "", labelNameColor: l = "#6B7280", labelValue: c, showLegend: f = !1, chartWidth: d = 300, pieOuterRadius: p = 90, pieInnerRadius: m = 60 }) => { const y = n === "donut", g = p, v = y ? m : 0; return !e || e.length === 0 ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(to, { size: "sm", variant: "help", children: "No data available" }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(REe, { width: d, height: d, children: [ r && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Lr, { content: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( vz, { indicator: i, labelKey: o } ) } ), f && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Lo, { content: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(bz, {}) }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( ra, { data: e, cx: "50%", cy: "50%", innerRadius: v, outerRadius: g, dataKey: t, children: y && a && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Sn, { content: ({ viewBox: x }) => { if (x && "cx" in x && "cy" in x) return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "text", { x: x.cx, y: x.cy, textAnchor: "middle", dominantBaseline: "middle", className: "space-y-3", children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "tspan", { x: x.cx, dy: "-4", className: "fill-foreground text-xl font-bold", children: c } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "tspan", { x: x.cx, dy: "24", className: "text-sm", style: { fill: l }, children: s } ) ] } ); } } ) } ) ] }); }, xz = react__WEBPACK_IMPORTED_MODULE_1__.forwardRef( ({ className: e, hideIcon: t = !1, payload: n = [], // array of objects that represents the data for each legend item verticalAlign: r = "bottom", // top | bottom nameKey: i = "value", fontSizeVariant: o }, a) => n.length ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { ref: a, className: K( "flex items-center justify-center gap-4", r === "top" ? "pb-3" : "pt-3", e ), children: n.map((s) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex items-center gap-1.5", children: [ !t && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: "size-2 shrink-0 rounded-sm", style: { backgroundColor: s.color } } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "span", { className: "capitalize", style: { fontSize: o }, children: s[i] } ) ] }, s.value)) } ) : null ); xz.displayName = "ChartLegendContent"; const wz = (0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)( ({ active: e, payload: t, className: n, indicator: r, // dot, line, dashed hideLabel: i = !1, hideIndicator: o = !1, label: a, labelFormatter: s, labelClassName: l, formatter: c, color: f, nameKey: d = "name", labelKey: p }, m) => { const y = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => { if (i || !(t != null && t.length)) return null; const [v] = t, x = s ? s(a || "") : v[p] || a; return x ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: K("font-medium", l), children: x }) : null; }, [ a, s, t, i, l, p ]); if (!e || !(t != null && t.length)) return null; const g = t.length === 1 && r !== "dot"; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { ref: m, className: K( "grid min-w-[8rem] items-start gap-1.5 rounded-lg border bg-tooltip-background-light px-3 py-2 text-xs shadow-xl", n ), children: [ g ? null : y, /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "grid gap-1.5", children: t.map((v, x) => { const w = f || v.color || "#000"; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K( "flex w-full items-stretch gap-2", r === "dot" && "items-center" ), children: [ !o && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K({ "size-2.5": r === "dot", "w-1 h-full": r === "line", "w-0 border-[0.5px] border-dashed": r === "dashed" }), style: { backgroundColor: r === "dot" || r === "line" ? w : "", borderColor: r === "dashed" ? w : "" } } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex-1 flex justify-between items-center", children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { children: v[d] || v.dataKey }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "font-mono font-medium", children: c ? c(v.value ?? "") : v.value ?? "" }) ] }) ] }, v.dataKey || x ); }) }) ] } ); } ); wz.displayName = "ChartTooltipContent"; const uke = ({ data: e, dataKeys: t, colors: n = [], variant: r = "solid", showXAxis: i = !0, showYAxis: o = !0, showTooltip: a = !0, tooltipIndicator: s = "dot", // dot, line, dashed tooltipLabelKey: l, showLegend: c = !0, showCartesianGrid: f = !0, tickFormatter: d, xAxisDataKey: p, yAxisDataKey: m, xAxisFontSize: y = "sm", // sm, md, lg xAxisFontColor: g = "#6B7280", chartWidth: v = 350, chartHeight: x = 200 }) => { const [w, S] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(v), [A, _] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(x), O = [ { stroke: "#2563EB", fill: "#BFDBFE" }, { stroke: "#38BDF8", fill: "#BAE6FD" } ], P = n.length > 0 ? n : O; (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => { S(v), _(x); }, [v, x]); const C = { sm: "12px", md: "14px", lg: "16px" }, k = C[y] || C.sm, I = () => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("defs", { children: P.map(($, N) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "linearGradient", { id: `fill${N}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "stop", { offset: "5%", stopColor: $.fill, stopOpacity: 0.8 } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "stop", { offset: "95%", stopColor: $.fill, stopOpacity: 0.1 } ) ] }, `gradient${N}` )) }); return !e || e.length === 0 ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(to, { size: "sm", variant: "help", children: "No data available" }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(tS, { width: w, height: A, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(jEe, { data: e, margin: { left: 14, right: 14 }, children: [ f && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Ty, { vertical: !1 }), i && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Yo, { dataKey: p, tickLine: !1, axisLine: !1, tickMargin: 8, tickFormatter: d, tick: { fontSize: k, fill: g } } ), o && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( eo, { dataKey: m, tickLine: !1, axisLine: !1, tickMargin: 8, tick: { fontSize: k, fill: g } } ), a && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Lr, { content: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( wz, { indicator: s, labelKey: l } ) } ), c && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Lo, { content: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( xz, { fontSizeVariant: k } ) } ), r === "gradient" && I(), t.map(($, N) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Xa, { type: "monotone", dataKey: $, stroke: P[N % P.length].stroke, fill: r === "gradient" ? `url(#fill${N})` : P[N % P.length].fill, stackId: "1" }, $ )) ] }) }); }, _z = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)(null), LEe = () => (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(_z), BEe = () => { const { file: e, removeFile: t, isLoading: n, error: r, errorText: i } = LEe(), o = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "inline-flex self-start p-0.5", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(ZH, { className: "size-5 text-icon-primary" }) }), [e]); return e ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "border border-solid border-transparent flex items-start justify-between rounded mt-2 bg-field-primary-background p-3 gap-3", r && "border-alert-border-danger bg-alert-background-danger" ), children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex items-center gap-3 w-full", children: [ n && o, !n && (e.type.startsWith("image/") ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K( "size-10 rounded-sm flex items-center justify-center shrink-0", r && "bg-gray-200 " ), children: r ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(JH, { className: "size-6 text-field-helper" }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "img", { src: URL.createObjectURL(e), alt: "Preview", className: "w-full h-10 object-contain" } ) } ) : o), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "text-left flex flex-col gap-1 w-[calc(100%_-_5.5rem)]", children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "text-sm font-medium text-field-label truncate", children: n ? "Loading..." : e.name }), !n && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "span", { className: K( "text-xs text-field-helper", r && "text-support-error" ), children: r ? i : WH(e.size) } ) ] }), n ? /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: "inline-flex ml-auto p-0.5", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(d1, { className: "inline-flex" }) }) : /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "button", { onClick: t, className: "inline-flex cursor-pointer bg-transparent border-0 p-1 my-0 ml-auto mr-0 ring-0 focus:outline-none self-start", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(rK, { className: "size-4 text-support-error" }) } ) ] }) } ) : null; }, FEe = ({ onFileUpload: e, inlineIcon: t = !1, label: n = "Drag and drop or browse files", helpText: r = "Help Text", size: i = "sm", disabled: o = !1, error: a = !1, errorText: s = "Upload failed, please try again." }) => { const [l, c] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1), [f, d] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null), [p, m] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(!1), y = (_) => { if (o) return; c(!0), _.preventDefault(), _.stopPropagation(), m(!1); const O = _.dataTransfer.files[0]; O && (d(O), e && e(O)), c(!1); }, g = (_) => { o || (_.preventDefault(), m(!0)); }, v = () => { o || m(!1); }, x = (_) => { if (o) return; c(!0); const O = _.target.files; if (!O) return; const P = O[0]; P && (d(P), e && e(P)), c(!1); }, w = () => { d(null); }, S = { sm: { label: "text-sm", helpText: "text-xs", icon: "size-5", padding: t ? "p-3" : "p-5", gap: "gap-2.5" }, md: { label: "text-sm", helpText: "text-xs", icon: "size-5", padding: t ? "p-4" : "p-6", gap: "gap-3" }, lg: { label: "text-base", helpText: "text-sm", icon: "size-6", padding: t ? "p-4" : "p-6", gap: "gap-3" } }, A = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(`fui-file-upload-${io()}`); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( _z.Provider, { value: { file: f, removeFile: w, isLoading: l, error: a, errorText: s }, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("label", { htmlFor: A.current, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K( "min-w-80 cursor-pointer mx-auto border-dashed border rounded-md text-center hover:border-field-dropzone-color hover:bg-field-dropzone-background-hover focus:outline-none focus:ring focus:ring-toggle-on focus:ring-offset-2 transition duration-200 ease-in-out", p ? "border-field-dropzone-color bg-field-dropzone-background-hover" : "border-field-border", o && "border-field-border bg-field-background-disabled cursor-not-allowed hover:border-field-border", S[i].padding ), onDragOver: g, onDragLeave: v, onDrop: y, children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "div", { className: K( "flex flex-col items-center justify-center", t && `flex-row items-start ${S[i].gap}` ), children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( qH, { className: K( "text-field-dropzone-color size-6", S[i].icon, o && "text-field-color-disabled" ) } ) }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flex flex-col", children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "span", { className: K( "mt-1 text-center font-medium text-field-label", t && "text-left mt-0", S[i].label, o && "text-field-color-disabled" ), children: n } ), r && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "span", { className: K( "mt-1 text-center font-medium text-field-helper", t && "text-left", S[i].helpText, o && "text-field-color-disabled" ), children: r } ) ] }) ] } ), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "input", { id: A.current, type: "file", className: "sr-only", onChange: x, disabled: o } ) ] } ) }), /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(BEe, {}) ] }) } ); }; FEe.displayName = "Dropzone"; const Sz = (0,react__WEBPACK_IMPORTED_MODULE_1__.createContext)( void 0 ), FS = () => { const e = (0,react__WEBPACK_IMPORTED_MODULE_1__.useContext)(Sz); if (!e) throw new Error("Table components must be used within Table component"); return e; }, ol = ({ children: e, className: t, checkboxSelection: n = !1, ...r }) => { const i = { checkboxSelection: n }, o = react__WEBPACK_IMPORTED_MODULE_1__.Children.toArray(e).find( (s) => react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(s) && s.type === Zm ), a = react__WEBPACK_IMPORTED_MODULE_1__.Children.toArray(e).filter( (s) => react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(s) && s.type !== Zm ); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Sz.Provider, { value: i, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: "flow-root border-0.5 border-solid border-border-subtle rounded-md divide-y-0.5 divide-x-0 divide-solid divide-border-subtle overflow-hidden", children: [ /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "overflow-x-auto w-full", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "table", { className: K( "table-fixed min-w-full border-collapse border-spacing-0", t ), ...r, children: a } ) }) }), o ] }) } ); }, Oz = ({ children: e, className: t, selected: n, onChangeSelection: r, indeterminate: i, disabled: o, ...a }) => { const { checkboxSelection: s } = FS(), l = (c) => { typeof r == "function" && r(c); }; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "thead", { className: K( "bg-background-secondary border-x-0 border-t-0 border-b-0.5 border-solid border-border-subtle", t ), ...a, children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("tr", { children: [ s && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "th", { scope: "col", className: "relative px-5.5 w-11 overflow-hidden", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "absolute inset-0 grid grid-cols-1 place-content-center", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Jw, { size: "sm", checked: n, indeterminate: i, disabled: o, onChange: l, "aria-label": n ? "Deselect all" : "Select all" } ) }) } ), e ] }) } ); }, Az = ({ children: e, className: t, ...n }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "th", { scope: "col", className: K( "p-3 text-left text-sm font-medium leading-5 text-text-primary", t ), ...n, children: e } ), Tz = ({ children: e, className: t, ...n }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "tbody", { className: K( "bg-background-primary divide-y-0.5 divide-x-0 divide-solid divide-border-subtle", t ), ...n, children: e } ), Pz = ({ children: e, selected: t, value: n, className: r, onChangeSelection: i, ...o }) => { const { checkboxSelection: a } = FS(), s = (l) => { typeof i == "function" && i(l, n); }; return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)( "tr", { className: K( "hover:bg-background-secondary", t && "bg-background-secondary", r ), ...o, children: [ a && /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("td", { className: "relative px-5.5 w-11 overflow-hidden", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: "absolute inset-0 grid grid-cols-1 place-content-center", children: /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( Jw, { size: "sm", checked: t, onChange: s, "aria-label": "Select row" } ) }) }), e ] } ); }, Cz = ({ children: e, className: t, ...n }) => /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "td", { className: K( "px-3 py-3.5 text-sm font-normal leading-5 text-text-secondary", t ), ...n, children: e } ), Zm = ({ children: e, className: t, ...n }) => { const { checkboxSelection: r } = FS(); return /* @__PURE__ */ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)( "div", { className: K("px-3 py-3", r && "px-4", t), ...n, children: e } ); }; ol.displayName = "Table"; Oz.displayName = "Table.Head"; Az.displayName = "Table.HeadCell"; Tz.displayName = "Table.Body"; Pz.displayName = "Table.Row"; Cz.displayName = "Table.Cell"; Zm.displayName = "Table.Footer"; ol.Head = Oz; ol.HeadCell = Az; ol.Body = Tz; ol.Row = Pz; ol.Cell = Cz; ol.Footer = Zm; /***/ }), /***/ "./node_modules/@remix-run/router/dist/router.js": /*!*******************************************************!*\ !*** ./node_modules/@remix-run/router/dist/router.js ***! \*******************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ AbortedDeferredError: () => (/* binding */ AbortedDeferredError), /* harmony export */ Action: () => (/* binding */ Action), /* harmony export */ IDLE_BLOCKER: () => (/* binding */ IDLE_BLOCKER), /* harmony export */ IDLE_FETCHER: () => (/* binding */ IDLE_FETCHER), /* harmony export */ IDLE_NAVIGATION: () => (/* binding */ IDLE_NAVIGATION), /* harmony export */ UNSAFE_DEFERRED_SYMBOL: () => (/* binding */ UNSAFE_DEFERRED_SYMBOL), /* harmony export */ UNSAFE_DeferredData: () => (/* binding */ DeferredData), /* harmony export */ UNSAFE_ErrorResponseImpl: () => (/* binding */ ErrorResponseImpl), /* harmony export */ UNSAFE_convertRouteMatchToUiMatch: () => (/* binding */ convertRouteMatchToUiMatch), /* harmony export */ UNSAFE_convertRoutesToDataRoutes: () => (/* binding */ convertRoutesToDataRoutes), /* harmony export */ UNSAFE_decodePath: () => (/* binding */ decodePath), /* harmony export */ UNSAFE_getResolveToMatches: () => (/* binding */ getResolveToMatches), /* harmony export */ UNSAFE_invariant: () => (/* binding */ invariant), /* harmony export */ UNSAFE_warning: () => (/* binding */ warning), /* harmony export */ createBrowserHistory: () => (/* binding */ createBrowserHistory), /* harmony export */ createHashHistory: () => (/* binding */ createHashHistory), /* harmony export */ createMemoryHistory: () => (/* binding */ createMemoryHistory), /* harmony export */ createPath: () => (/* binding */ createPath), /* harmony export */ createRouter: () => (/* binding */ createRouter), /* harmony export */ createStaticHandler: () => (/* binding */ createStaticHandler), /* harmony export */ data: () => (/* binding */ data), /* harmony export */ defer: () => (/* binding */ defer), /* harmony export */ generatePath: () => (/* binding */ generatePath), /* harmony export */ getStaticContextFromError: () => (/* binding */ getStaticContextFromError), /* harmony export */ getToPathname: () => (/* binding */ getToPathname), /* harmony export */ isDataWithResponseInit: () => (/* binding */ isDataWithResponseInit), /* harmony export */ isDeferredData: () => (/* binding */ isDeferredData), /* harmony export */ isRouteErrorResponse: () => (/* binding */ isRouteErrorResponse), /* harmony export */ joinPaths: () => (/* binding */ joinPaths), /* harmony export */ json: () => (/* binding */ json), /* harmony export */ matchPath: () => (/* binding */ matchPath), /* harmony export */ matchRoutes: () => (/* binding */ matchRoutes), /* harmony export */ normalizePathname: () => (/* binding */ normalizePathname), /* harmony export */ parsePath: () => (/* binding */ parsePath), /* harmony export */ redirect: () => (/* binding */ redirect), /* harmony export */ redirectDocument: () => (/* binding */ redirectDocument), /* harmony export */ replace: () => (/* binding */ replace), /* harmony export */ resolvePath: () => (/* binding */ resolvePath), /* harmony export */ resolveTo: () => (/* binding */ resolveTo), /* harmony export */ stripBasename: () => (/* binding */ stripBasename) /* harmony export */ }); /** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } //////////////////////////////////////////////////////////////////////////////// //#region Types and Constants //////////////////////////////////////////////////////////////////////////////// /** * Actions represent the type of change to a location value. */ var Action; (function (Action) { /** * A POP indicates a change to an arbitrary index in the history stack, such * as a back or forward navigation. It does not describe the direction of the * navigation, only that the current index changed. * * Note: This is the default action for newly created history objects. */ Action["Pop"] = "POP"; /** * A PUSH indicates a new entry being added to the history stack, such as when * a link is clicked and a new page loads. When this happens, all subsequent * entries in the stack are lost. */ Action["Push"] = "PUSH"; /** * A REPLACE indicates the entry at the current index in the history stack * being replaced by a new one. */ Action["Replace"] = "REPLACE"; })(Action || (Action = {})); const PopStateEventType = "popstate"; /** * Memory history stores the current location in memory. It is designed for use * in stateful non-browser environments like tests and React Native. */ function createMemoryHistory(options) { if (options === void 0) { options = {}; } let { initialEntries = ["/"], initialIndex, v5Compat = false } = options; let entries; // Declare so we can access from createMemoryLocation entries = initialEntries.map((entry, index) => createMemoryLocation(entry, typeof entry === "string" ? null : entry.state, index === 0 ? "default" : undefined)); let index = clampIndex(initialIndex == null ? entries.length - 1 : initialIndex); let action = Action.Pop; let listener = null; function clampIndex(n) { return Math.min(Math.max(n, 0), entries.length - 1); } function getCurrentLocation() { return entries[index]; } function createMemoryLocation(to, state, key) { if (state === void 0) { state = null; } let location = createLocation(entries ? getCurrentLocation().pathname : "/", to, state, key); warning(location.pathname.charAt(0) === "/", "relative pathnames are not supported in memory history: " + JSON.stringify(to)); return location; } function createHref(to) { return typeof to === "string" ? to : createPath(to); } let history = { get index() { return index; }, get action() { return action; }, get location() { return getCurrentLocation(); }, createHref, createURL(to) { return new URL(createHref(to), "http://localhost"); }, encodeLocation(to) { let path = typeof to === "string" ? parsePath(to) : to; return { pathname: path.pathname || "", search: path.search || "", hash: path.hash || "" }; }, push(to, state) { action = Action.Push; let nextLocation = createMemoryLocation(to, state); index += 1; entries.splice(index, entries.length, nextLocation); if (v5Compat && listener) { listener({ action, location: nextLocation, delta: 1 }); } }, replace(to, state) { action = Action.Replace; let nextLocation = createMemoryLocation(to, state); entries[index] = nextLocation; if (v5Compat && listener) { listener({ action, location: nextLocation, delta: 0 }); } }, go(delta) { action = Action.Pop; let nextIndex = clampIndex(index + delta); let nextLocation = entries[nextIndex]; index = nextIndex; if (listener) { listener({ action, location: nextLocation, delta }); } }, listen(fn) { listener = fn; return () => { listener = null; }; } }; return history; } /** * Browser history stores the location in regular URLs. This is the standard for * most web apps, but it requires some configuration on the server to ensure you * serve the same app at multiple URLs. * * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createbrowserhistory */ function createBrowserHistory(options) { if (options === void 0) { options = {}; } function createBrowserLocation(window, globalHistory) { let { pathname, search, hash } = window.location; return createLocation("", { pathname, search, hash }, // state defaults to `null` because `window.history.state` does globalHistory.state && globalHistory.state.usr || null, globalHistory.state && globalHistory.state.key || "default"); } function createBrowserHref(window, to) { return typeof to === "string" ? to : createPath(to); } return getUrlBasedHistory(createBrowserLocation, createBrowserHref, null, options); } /** * Hash history stores the location in window.location.hash. This makes it ideal * for situations where you don't want to send the location to the server for * some reason, either because you do cannot configure it or the URL space is * reserved for something else. * * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createhashhistory */ function createHashHistory(options) { if (options === void 0) { options = {}; } function createHashLocation(window, globalHistory) { let { pathname = "/", search = "", hash = "" } = parsePath(window.location.hash.substr(1)); // Hash URL should always have a leading / just like window.location.pathname // does, so if an app ends up at a route like /#something then we add a // leading slash so all of our path-matching behaves the same as if it would // in a browser router. This is particularly important when there exists a // root splat route (<Route path="*">) since that matches internally against // "/*" and we'd expect /#something to 404 in a hash router app. if (!pathname.startsWith("/") && !pathname.startsWith(".")) { pathname = "/" + pathname; } return createLocation("", { pathname, search, hash }, // state defaults to `null` because `window.history.state` does globalHistory.state && globalHistory.state.usr || null, globalHistory.state && globalHistory.state.key || "default"); } function createHashHref(window, to) { let base = window.document.querySelector("base"); let href = ""; if (base && base.getAttribute("href")) { let url = window.location.href; let hashIndex = url.indexOf("#"); href = hashIndex === -1 ? url : url.slice(0, hashIndex); } return href + "#" + (typeof to === "string" ? to : createPath(to)); } function validateHashLocation(location, to) { warning(location.pathname.charAt(0) === "/", "relative pathnames are not supported in hash history.push(" + JSON.stringify(to) + ")"); } return getUrlBasedHistory(createHashLocation, createHashHref, validateHashLocation, options); } function invariant(value, message) { if (value === false || value === null || typeof value === "undefined") { throw new Error(message); } } function warning(cond, message) { if (!cond) { // eslint-disable-next-line no-console if (typeof console !== "undefined") console.warn(message); try { // Welcome to debugging history! // // This error is thrown as a convenience, so you can more easily // find the source for a warning that appears in the console by // enabling "pause on exceptions" in your JavaScript debugger. throw new Error(message); // eslint-disable-next-line no-empty } catch (e) {} } } function createKey() { return Math.random().toString(36).substr(2, 8); } /** * For browser-based histories, we combine the state and key into an object */ function getHistoryState(location, index) { return { usr: location.state, key: location.key, idx: index }; } /** * Creates a Location object with a unique key from the given Path */ function createLocation(current, to, state, key) { if (state === void 0) { state = null; } let location = _extends({ pathname: typeof current === "string" ? current : current.pathname, search: "", hash: "" }, typeof to === "string" ? parsePath(to) : to, { state, // TODO: This could be cleaned up. push/replace should probably just take // full Locations now and avoid the need to run through this flow at all // But that's a pretty big refactor to the current test suite so going to // keep as is for the time being and just let any incoming keys take precedence key: to && to.key || key || createKey() }); return location; } /** * Creates a string URL path from the given pathname, search, and hash components. */ function createPath(_ref) { let { pathname = "/", search = "", hash = "" } = _ref; if (search && search !== "?") pathname += search.charAt(0) === "?" ? search : "?" + search; if (hash && hash !== "#") pathname += hash.charAt(0) === "#" ? hash : "#" + hash; return pathname; } /** * Parses a string URL path into its separate pathname, search, and hash components. */ function parsePath(path) { let parsedPath = {}; if (path) { let hashIndex = path.indexOf("#"); if (hashIndex >= 0) { parsedPath.hash = path.substr(hashIndex); path = path.substr(0, hashIndex); } let searchIndex = path.indexOf("?"); if (searchIndex >= 0) { parsedPath.search = path.substr(searchIndex); path = path.substr(0, searchIndex); } if (path) { parsedPath.pathname = path; } } return parsedPath; } function getUrlBasedHistory(getLocation, createHref, validateLocation, options) { if (options === void 0) { options = {}; } let { window = document.defaultView, v5Compat = false } = options; let globalHistory = window.history; let action = Action.Pop; let listener = null; let index = getIndex(); // Index should only be null when we initialize. If not, it's because the // user called history.pushState or history.replaceState directly, in which // case we should log a warning as it will result in bugs. if (index == null) { index = 0; globalHistory.replaceState(_extends({}, globalHistory.state, { idx: index }), ""); } function getIndex() { let state = globalHistory.state || { idx: null }; return state.idx; } function handlePop() { action = Action.Pop; let nextIndex = getIndex(); let delta = nextIndex == null ? null : nextIndex - index; index = nextIndex; if (listener) { listener({ action, location: history.location, delta }); } } function push(to, state) { action = Action.Push; let location = createLocation(history.location, to, state); if (validateLocation) validateLocation(location, to); index = getIndex() + 1; let historyState = getHistoryState(location, index); let url = history.createHref(location); // try...catch because iOS limits us to 100 pushState calls :/ try { globalHistory.pushState(historyState, "", url); } catch (error) { // If the exception is because `state` can't be serialized, let that throw // outwards just like a replace call would so the dev knows the cause // https://html.spec.whatwg.org/multipage/nav-history-apis.html#shared-history-push/replace-state-steps // https://html.spec.whatwg.org/multipage/structured-data.html#structuredserializeinternal if (error instanceof DOMException && error.name === "DataCloneError") { throw error; } // They are going to lose state here, but there is no real // way to warn them about it since the page will refresh... window.location.assign(url); } if (v5Compat && listener) { listener({ action, location: history.location, delta: 1 }); } } function replace(to, state) { action = Action.Replace; let location = createLocation(history.location, to, state); if (validateLocation) validateLocation(location, to); index = getIndex(); let historyState = getHistoryState(location, index); let url = history.createHref(location); globalHistory.replaceState(historyState, "", url); if (v5Compat && listener) { listener({ action, location: history.location, delta: 0 }); } } function createURL(to) { // window.location.origin is "null" (the literal string value) in Firefox // under certain conditions, notably when serving from a local HTML file // See https://bugzilla.mozilla.org/show_bug.cgi?id=878297 let base = window.location.origin !== "null" ? window.location.origin : window.location.href; let href = typeof to === "string" ? to : createPath(to); // Treating this as a full URL will strip any trailing spaces so we need to // pre-encode them since they might be part of a matching splat param from // an ancestor route href = href.replace(/ $/, "%20"); invariant(base, "No window.location.(origin|href) available to create URL for href: " + href); return new URL(href, base); } let history = { get action() { return action; }, get location() { return getLocation(window, globalHistory); }, listen(fn) { if (listener) { throw new Error("A history only accepts one active listener"); } window.addEventListener(PopStateEventType, handlePop); listener = fn; return () => { window.removeEventListener(PopStateEventType, handlePop); listener = null; }; }, createHref(to) { return createHref(window, to); }, createURL, encodeLocation(to) { // Encode a Location the same way window.location would let url = createURL(to); return { pathname: url.pathname, search: url.search, hash: url.hash }; }, push, replace, go(n) { return globalHistory.go(n); } }; return history; } //#endregion var ResultType; (function (ResultType) { ResultType["data"] = "data"; ResultType["deferred"] = "deferred"; ResultType["redirect"] = "redirect"; ResultType["error"] = "error"; })(ResultType || (ResultType = {})); const immutableRouteKeys = new Set(["lazy", "caseSensitive", "path", "id", "index", "children"]); function isIndexRoute(route) { return route.index === true; } // Walk the route tree generating unique IDs where necessary, so we are working // solely with AgnosticDataRouteObject's within the Router function convertRoutesToDataRoutes(routes, mapRouteProperties, parentPath, manifest) { if (parentPath === void 0) { parentPath = []; } if (manifest === void 0) { manifest = {}; } return routes.map((route, index) => { let treePath = [...parentPath, String(index)]; let id = typeof route.id === "string" ? route.id : treePath.join("-"); invariant(route.index !== true || !route.children, "Cannot specify children on an index route"); invariant(!manifest[id], "Found a route id collision on id \"" + id + "\". Route " + "id's must be globally unique within Data Router usages"); if (isIndexRoute(route)) { let indexRoute = _extends({}, route, mapRouteProperties(route), { id }); manifest[id] = indexRoute; return indexRoute; } else { let pathOrLayoutRoute = _extends({}, route, mapRouteProperties(route), { id, children: undefined }); manifest[id] = pathOrLayoutRoute; if (route.children) { pathOrLayoutRoute.children = convertRoutesToDataRoutes(route.children, mapRouteProperties, treePath, manifest); } return pathOrLayoutRoute; } }); } /** * Matches the given routes to a location and returns the match data. * * @see https://reactrouter.com/v6/utils/match-routes */ function matchRoutes(routes, locationArg, basename) { if (basename === void 0) { basename = "/"; } return matchRoutesImpl(routes, locationArg, basename, false); } function matchRoutesImpl(routes, locationArg, basename, allowPartial) { let location = typeof locationArg === "string" ? parsePath(locationArg) : locationArg; let pathname = stripBasename(location.pathname || "/", basename); if (pathname == null) { return null; } let branches = flattenRoutes(routes); rankRouteBranches(branches); let matches = null; for (let i = 0; matches == null && i < branches.length; ++i) { // Incoming pathnames are generally encoded from either window.location // or from router.navigate, but we want to match against the unencoded // paths in the route definitions. Memory router locations won't be // encoded here but there also shouldn't be anything to decode so this // should be a safe operation. This avoids needing matchRoutes to be // history-aware. let decoded = decodePath(pathname); matches = matchRouteBranch(branches[i], decoded, allowPartial); } return matches; } function convertRouteMatchToUiMatch(match, loaderData) { let { route, pathname, params } = match; return { id: route.id, pathname, params, data: loaderData[route.id], handle: route.handle }; } function flattenRoutes(routes, branches, parentsMeta, parentPath) { if (branches === void 0) { branches = []; } if (parentsMeta === void 0) { parentsMeta = []; } if (parentPath === void 0) { parentPath = ""; } let flattenRoute = (route, index, relativePath) => { let meta = { relativePath: relativePath === undefined ? route.path || "" : relativePath, caseSensitive: route.caseSensitive === true, childrenIndex: index, route }; if (meta.relativePath.startsWith("/")) { invariant(meta.relativePath.startsWith(parentPath), "Absolute route path \"" + meta.relativePath + "\" nested under path " + ("\"" + parentPath + "\" is not valid. An absolute child route path ") + "must start with the combined path of all its parent routes."); meta.relativePath = meta.relativePath.slice(parentPath.length); } let path = joinPaths([parentPath, meta.relativePath]); let routesMeta = parentsMeta.concat(meta); // Add the children before adding this route to the array, so we traverse the // route tree depth-first and child routes appear before their parents in // the "flattened" version. if (route.children && route.children.length > 0) { invariant( // Our types know better, but runtime JS may not! // @ts-expect-error route.index !== true, "Index routes must not have child routes. Please remove " + ("all child routes from route path \"" + path + "\".")); flattenRoutes(route.children, branches, routesMeta, path); } // Routes without a path shouldn't ever match by themselves unless they are // index routes, so don't add them to the list of possible branches. if (route.path == null && !route.index) { return; } branches.push({ path, score: computeScore(path, route.index), routesMeta }); }; routes.forEach((route, index) => { var _route$path; // coarse-grain check for optional params if (route.path === "" || !((_route$path = route.path) != null && _route$path.includes("?"))) { flattenRoute(route, index); } else { for (let exploded of explodeOptionalSegments(route.path)) { flattenRoute(route, index, exploded); } } }); return branches; } /** * Computes all combinations of optional path segments for a given path, * excluding combinations that are ambiguous and of lower priority. * * For example, `/one/:two?/three/:four?/:five?` explodes to: * - `/one/three` * - `/one/:two/three` * - `/one/three/:four` * - `/one/three/:five` * - `/one/:two/three/:four` * - `/one/:two/three/:five` * - `/one/three/:four/:five` * - `/one/:two/three/:four/:five` */ function explodeOptionalSegments(path) { let segments = path.split("/"); if (segments.length === 0) return []; let [first, ...rest] = segments; // Optional path segments are denoted by a trailing `?` let isOptional = first.endsWith("?"); // Compute the corresponding required segment: `foo?` -> `foo` let required = first.replace(/\?$/, ""); if (rest.length === 0) { // Intepret empty string as omitting an optional segment // `["one", "", "three"]` corresponds to omitting `:two` from `/one/:two?/three` -> `/one/three` return isOptional ? [required, ""] : [required]; } let restExploded = explodeOptionalSegments(rest.join("/")); let result = []; // All child paths with the prefix. Do this for all children before the // optional version for all children, so we get consistent ordering where the // parent optional aspect is preferred as required. Otherwise, we can get // child sections interspersed where deeper optional segments are higher than // parent optional segments, where for example, /:two would explode _earlier_ // then /:one. By always including the parent as required _for all children_ // first, we avoid this issue result.push(...restExploded.map(subpath => subpath === "" ? required : [required, subpath].join("/"))); // Then, if this is an optional value, add all child versions without if (isOptional) { result.push(...restExploded); } // for absolute paths, ensure `/` instead of empty segment return result.map(exploded => path.startsWith("/") && exploded === "" ? "/" : exploded); } function rankRouteBranches(branches) { branches.sort((a, b) => a.score !== b.score ? b.score - a.score // Higher score first : compareIndexes(a.routesMeta.map(meta => meta.childrenIndex), b.routesMeta.map(meta => meta.childrenIndex))); } const paramRe = /^:[\w-]+$/; const dynamicSegmentValue = 3; const indexRouteValue = 2; const emptySegmentValue = 1; const staticSegmentValue = 10; const splatPenalty = -2; const isSplat = s => s === "*"; function computeScore(path, index) { let segments = path.split("/"); let initialScore = segments.length; if (segments.some(isSplat)) { initialScore += splatPenalty; } if (index) { initialScore += indexRouteValue; } return segments.filter(s => !isSplat(s)).reduce((score, segment) => score + (paramRe.test(segment) ? dynamicSegmentValue : segment === "" ? emptySegmentValue : staticSegmentValue), initialScore); } function compareIndexes(a, b) { let siblings = a.length === b.length && a.slice(0, -1).every((n, i) => n === b[i]); return siblings ? // If two routes are siblings, we should try to match the earlier sibling // first. This allows people to have fine-grained control over the matching // behavior by simply putting routes with identical paths in the order they // want them tried. a[a.length - 1] - b[b.length - 1] : // Otherwise, it doesn't really make sense to rank non-siblings by index, // so they sort equally. 0; } function matchRouteBranch(branch, pathname, allowPartial) { if (allowPartial === void 0) { allowPartial = false; } let { routesMeta } = branch; let matchedParams = {}; let matchedPathname = "/"; let matches = []; for (let i = 0; i < routesMeta.length; ++i) { let meta = routesMeta[i]; let end = i === routesMeta.length - 1; let remainingPathname = matchedPathname === "/" ? pathname : pathname.slice(matchedPathname.length) || "/"; let match = matchPath({ path: meta.relativePath, caseSensitive: meta.caseSensitive, end }, remainingPathname); let route = meta.route; if (!match && end && allowPartial && !routesMeta[routesMeta.length - 1].route.index) { match = matchPath({ path: meta.relativePath, caseSensitive: meta.caseSensitive, end: false }, remainingPathname); } if (!match) { return null; } Object.assign(matchedParams, match.params); matches.push({ // TODO: Can this as be avoided? params: matchedParams, pathname: joinPaths([matchedPathname, match.pathname]), pathnameBase: normalizePathname(joinPaths([matchedPathname, match.pathnameBase])), route }); if (match.pathnameBase !== "/") { matchedPathname = joinPaths([matchedPathname, match.pathnameBase]); } } return matches; } /** * Returns a path with params interpolated. * * @see https://reactrouter.com/v6/utils/generate-path */ function generatePath(originalPath, params) { if (params === void 0) { params = {}; } let path = originalPath; if (path.endsWith("*") && path !== "*" && !path.endsWith("/*")) { warning(false, "Route path \"" + path + "\" will be treated as if it were " + ("\"" + path.replace(/\*$/, "/*") + "\" because the `*` character must ") + "always follow a `/` in the pattern. To get rid of this warning, " + ("please change the route path to \"" + path.replace(/\*$/, "/*") + "\".")); path = path.replace(/\*$/, "/*"); } // ensure `/` is added at the beginning if the path is absolute const prefix = path.startsWith("/") ? "/" : ""; const stringify = p => p == null ? "" : typeof p === "string" ? p : String(p); const segments = path.split(/\/+/).map((segment, index, array) => { const isLastSegment = index === array.length - 1; // only apply the splat if it's the last segment if (isLastSegment && segment === "*") { const star = "*"; // Apply the splat return stringify(params[star]); } const keyMatch = segment.match(/^:([\w-]+)(\??)$/); if (keyMatch) { const [, key, optional] = keyMatch; let param = params[key]; invariant(optional === "?" || param != null, "Missing \":" + key + "\" param"); return stringify(param); } // Remove any optional markers from optional static segments return segment.replace(/\?$/g, ""); }) // Remove empty segments .filter(segment => !!segment); return prefix + segments.join("/"); } /** * Performs pattern matching on a URL pathname and returns information about * the match. * * @see https://reactrouter.com/v6/utils/match-path */ function matchPath(pattern, pathname) { if (typeof pattern === "string") { pattern = { path: pattern, caseSensitive: false, end: true }; } let [matcher, compiledParams] = compilePath(pattern.path, pattern.caseSensitive, pattern.end); let match = pathname.match(matcher); if (!match) return null; let matchedPathname = match[0]; let pathnameBase = matchedPathname.replace(/(.)\/+$/, "$1"); let captureGroups = match.slice(1); let params = compiledParams.reduce((memo, _ref, index) => { let { paramName, isOptional } = _ref; // We need to compute the pathnameBase here using the raw splat value // instead of using params["*"] later because it will be decoded then if (paramName === "*") { let splatValue = captureGroups[index] || ""; pathnameBase = matchedPathname.slice(0, matchedPathname.length - splatValue.length).replace(/(.)\/+$/, "$1"); } const value = captureGroups[index]; if (isOptional && !value) { memo[paramName] = undefined; } else { memo[paramName] = (value || "").replace(/%2F/g, "/"); } return memo; }, {}); return { params, pathname: matchedPathname, pathnameBase, pattern }; } function compilePath(path, caseSensitive, end) { if (caseSensitive === void 0) { caseSensitive = false; } if (end === void 0) { end = true; } warning(path === "*" || !path.endsWith("*") || path.endsWith("/*"), "Route path \"" + path + "\" will be treated as if it were " + ("\"" + path.replace(/\*$/, "/*") + "\" because the `*` character must ") + "always follow a `/` in the pattern. To get rid of this warning, " + ("please change the route path to \"" + path.replace(/\*$/, "/*") + "\".")); let params = []; let regexpSource = "^" + path.replace(/\/*\*?$/, "") // Ignore trailing / and /*, we'll handle it below .replace(/^\/*/, "/") // Make sure it has a leading / .replace(/[\\.*+^${}|()[\]]/g, "\\$&") // Escape special regex chars .replace(/\/:([\w-]+)(\?)?/g, (_, paramName, isOptional) => { params.push({ paramName, isOptional: isOptional != null }); return isOptional ? "/?([^\\/]+)?" : "/([^\\/]+)"; }); if (path.endsWith("*")) { params.push({ paramName: "*" }); regexpSource += path === "*" || path === "/*" ? "(.*)$" // Already matched the initial /, just match the rest : "(?:\\/(.+)|\\/*)$"; // Don't include the / in params["*"] } else if (end) { // When matching to the end, ignore trailing slashes regexpSource += "\\/*$"; } else if (path !== "" && path !== "/") { // If our path is non-empty and contains anything beyond an initial slash, // then we have _some_ form of path in our regex, so we should expect to // match only if we find the end of this path segment. Look for an optional // non-captured trailing slash (to match a portion of the URL) or the end // of the path (if we've matched to the end). We used to do this with a // word boundary but that gives false positives on routes like // /user-preferences since `-` counts as a word boundary. regexpSource += "(?:(?=\\/|$))"; } else ; let matcher = new RegExp(regexpSource, caseSensitive ? undefined : "i"); return [matcher, params]; } function decodePath(value) { try { return value.split("/").map(v => decodeURIComponent(v).replace(/\//g, "%2F")).join("/"); } catch (error) { warning(false, "The URL path \"" + value + "\" could not be decoded because it is is a " + "malformed URL segment. This is probably due to a bad percent " + ("encoding (" + error + ").")); return value; } } /** * @private */ function stripBasename(pathname, basename) { if (basename === "/") return pathname; if (!pathname.toLowerCase().startsWith(basename.toLowerCase())) { return null; } // We want to leave trailing slash behavior in the user's control, so if they // specify a basename with a trailing slash, we should support it let startIndex = basename.endsWith("/") ? basename.length - 1 : basename.length; let nextChar = pathname.charAt(startIndex); if (nextChar && nextChar !== "/") { // pathname does not start with basename/ return null; } return pathname.slice(startIndex) || "/"; } /** * Returns a resolved path object relative to the given pathname. * * @see https://reactrouter.com/v6/utils/resolve-path */ function resolvePath(to, fromPathname) { if (fromPathname === void 0) { fromPathname = "/"; } let { pathname: toPathname, search = "", hash = "" } = typeof to === "string" ? parsePath(to) : to; let pathname = toPathname ? toPathname.startsWith("/") ? toPathname : resolvePathname(toPathname, fromPathname) : fromPathname; return { pathname, search: normalizeSearch(search), hash: normalizeHash(hash) }; } function resolvePathname(relativePath, fromPathname) { let segments = fromPathname.replace(/\/+$/, "").split("/"); let relativeSegments = relativePath.split("/"); relativeSegments.forEach(segment => { if (segment === "..") { // Keep the root "" segment so the pathname starts at / if (segments.length > 1) segments.pop(); } else if (segment !== ".") { segments.push(segment); } }); return segments.length > 1 ? segments.join("/") : "/"; } function getInvalidPathError(char, field, dest, path) { return "Cannot include a '" + char + "' character in a manually specified " + ("`to." + field + "` field [" + JSON.stringify(path) + "]. Please separate it out to the ") + ("`to." + dest + "` field. Alternatively you may provide the full path as ") + "a string in <Link to=\"...\"> and the router will parse it for you."; } /** * @private * * When processing relative navigation we want to ignore ancestor routes that * do not contribute to the path, such that index/pathless layout routes don't * interfere. * * For example, when moving a route element into an index route and/or a * pathless layout route, relative link behavior contained within should stay * the same. Both of the following examples should link back to the root: * * <Route path="/"> * <Route path="accounts" element={<Link to=".."}> * </Route> * * <Route path="/"> * <Route path="accounts"> * <Route element={<AccountsLayout />}> // <-- Does not contribute * <Route index element={<Link to=".."} /> // <-- Does not contribute * </Route * </Route> * </Route> */ function getPathContributingMatches(matches) { return matches.filter((match, index) => index === 0 || match.route.path && match.route.path.length > 0); } // Return the array of pathnames for the current route matches - used to // generate the routePathnames input for resolveTo() function getResolveToMatches(matches, v7_relativeSplatPath) { let pathMatches = getPathContributingMatches(matches); // When v7_relativeSplatPath is enabled, use the full pathname for the leaf // match so we include splat values for "." links. See: // https://github.com/remix-run/react-router/issues/11052#issuecomment-1836589329 if (v7_relativeSplatPath) { return pathMatches.map((match, idx) => idx === pathMatches.length - 1 ? match.pathname : match.pathnameBase); } return pathMatches.map(match => match.pathnameBase); } /** * @private */ function resolveTo(toArg, routePathnames, locationPathname, isPathRelative) { if (isPathRelative === void 0) { isPathRelative = false; } let to; if (typeof toArg === "string") { to = parsePath(toArg); } else { to = _extends({}, toArg); invariant(!to.pathname || !to.pathname.includes("?"), getInvalidPathError("?", "pathname", "search", to)); invariant(!to.pathname || !to.pathname.includes("#"), getInvalidPathError("#", "pathname", "hash", to)); invariant(!to.search || !to.search.includes("#"), getInvalidPathError("#", "search", "hash", to)); } let isEmptyPath = toArg === "" || to.pathname === ""; let toPathname = isEmptyPath ? "/" : to.pathname; let from; // Routing is relative to the current pathname if explicitly requested. // // If a pathname is explicitly provided in `to`, it should be relative to the // route context. This is explained in `Note on `<Link to>` values` in our // migration guide from v5 as a means of disambiguation between `to` values // that begin with `/` and those that do not. However, this is problematic for // `to` values that do not provide a pathname. `to` can simply be a search or // hash string, in which case we should assume that the navigation is relative // to the current location's pathname and *not* the route pathname. if (toPathname == null) { from = locationPathname; } else { let routePathnameIndex = routePathnames.length - 1; // With relative="route" (the default), each leading .. segment means // "go up one route" instead of "go up one URL segment". This is a key // difference from how <a href> works and a major reason we call this a // "to" value instead of a "href". if (!isPathRelative && toPathname.startsWith("..")) { let toSegments = toPathname.split("/"); while (toSegments[0] === "..") { toSegments.shift(); routePathnameIndex -= 1; } to.pathname = toSegments.join("/"); } from = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : "/"; } let path = resolvePath(to, from); // Ensure the pathname has a trailing slash if the original "to" had one let hasExplicitTrailingSlash = toPathname && toPathname !== "/" && toPathname.endsWith("/"); // Or if this was a link to the current path which has a trailing slash let hasCurrentTrailingSlash = (isEmptyPath || toPathname === ".") && locationPathname.endsWith("/"); if (!path.pathname.endsWith("/") && (hasExplicitTrailingSlash || hasCurrentTrailingSlash)) { path.pathname += "/"; } return path; } /** * @private */ function getToPathname(to) { // Empty strings should be treated the same as / paths return to === "" || to.pathname === "" ? "/" : typeof to === "string" ? parsePath(to).pathname : to.pathname; } /** * @private */ const joinPaths = paths => paths.join("/").replace(/\/\/+/g, "/"); /** * @private */ const normalizePathname = pathname => pathname.replace(/\/+$/, "").replace(/^\/*/, "/"); /** * @private */ const normalizeSearch = search => !search || search === "?" ? "" : search.startsWith("?") ? search : "?" + search; /** * @private */ const normalizeHash = hash => !hash || hash === "#" ? "" : hash.startsWith("#") ? hash : "#" + hash; /** * This is a shortcut for creating `application/json` responses. Converts `data` * to JSON and sets the `Content-Type` header. * * @deprecated The `json` method is deprecated in favor of returning raw objects. * This method will be removed in v7. */ const json = function json(data, init) { if (init === void 0) { init = {}; } let responseInit = typeof init === "number" ? { status: init } : init; let headers = new Headers(responseInit.headers); if (!headers.has("Content-Type")) { headers.set("Content-Type", "application/json; charset=utf-8"); } return new Response(JSON.stringify(data), _extends({}, responseInit, { headers })); }; class DataWithResponseInit { constructor(data, init) { this.type = "DataWithResponseInit"; this.data = data; this.init = init || null; } } /** * Create "responses" that contain `status`/`headers` without forcing * serialization into an actual `Response` - used by Remix single fetch */ function data(data, init) { return new DataWithResponseInit(data, typeof init === "number" ? { status: init } : init); } class AbortedDeferredError extends Error {} class DeferredData { constructor(data, responseInit) { this.pendingKeysSet = new Set(); this.subscribers = new Set(); this.deferredKeys = []; invariant(data && typeof data === "object" && !Array.isArray(data), "defer() only accepts plain objects"); // Set up an AbortController + Promise we can race against to exit early // cancellation let reject; this.abortPromise = new Promise((_, r) => reject = r); this.controller = new AbortController(); let onAbort = () => reject(new AbortedDeferredError("Deferred data aborted")); this.unlistenAbortSignal = () => this.controller.signal.removeEventListener("abort", onAbort); this.controller.signal.addEventListener("abort", onAbort); this.data = Object.entries(data).reduce((acc, _ref2) => { let [key, value] = _ref2; return Object.assign(acc, { [key]: this.trackPromise(key, value) }); }, {}); if (this.done) { // All incoming values were resolved this.unlistenAbortSignal(); } this.init = responseInit; } trackPromise(key, value) { if (!(value instanceof Promise)) { return value; } this.deferredKeys.push(key); this.pendingKeysSet.add(key); // We store a little wrapper promise that will be extended with // _data/_error props upon resolve/reject let promise = Promise.race([value, this.abortPromise]).then(data => this.onSettle(promise, key, undefined, data), error => this.onSettle(promise, key, error)); // Register rejection listeners to avoid uncaught promise rejections on // errors or aborted deferred values promise.catch(() => {}); Object.defineProperty(promise, "_tracked", { get: () => true }); return promise; } onSettle(promise, key, error, data) { if (this.controller.signal.aborted && error instanceof AbortedDeferredError) { this.unlistenAbortSignal(); Object.defineProperty(promise, "_error", { get: () => error }); return Promise.reject(error); } this.pendingKeysSet.delete(key); if (this.done) { // Nothing left to abort! this.unlistenAbortSignal(); } // If the promise was resolved/rejected with undefined, we'll throw an error as you // should always resolve with a value or null if (error === undefined && data === undefined) { let undefinedError = new Error("Deferred data for key \"" + key + "\" resolved/rejected with `undefined`, " + "you must resolve/reject with a value or `null`."); Object.defineProperty(promise, "_error", { get: () => undefinedError }); this.emit(false, key); return Promise.reject(undefinedError); } if (data === undefined) { Object.defineProperty(promise, "_error", { get: () => error }); this.emit(false, key); return Promise.reject(error); } Object.defineProperty(promise, "_data", { get: () => data }); this.emit(false, key); return data; } emit(aborted, settledKey) { this.subscribers.forEach(subscriber => subscriber(aborted, settledKey)); } subscribe(fn) { this.subscribers.add(fn); return () => this.subscribers.delete(fn); } cancel() { this.controller.abort(); this.pendingKeysSet.forEach((v, k) => this.pendingKeysSet.delete(k)); this.emit(true); } async resolveData(signal) { let aborted = false; if (!this.done) { let onAbort = () => this.cancel(); signal.addEventListener("abort", onAbort); aborted = await new Promise(resolve => { this.subscribe(aborted => { signal.removeEventListener("abort", onAbort); if (aborted || this.done) { resolve(aborted); } }); }); } return aborted; } get done() { return this.pendingKeysSet.size === 0; } get unwrappedData() { invariant(this.data !== null && this.done, "Can only unwrap data on initialized and settled deferreds"); return Object.entries(this.data).reduce((acc, _ref3) => { let [key, value] = _ref3; return Object.assign(acc, { [key]: unwrapTrackedPromise(value) }); }, {}); } get pendingKeys() { return Array.from(this.pendingKeysSet); } } function isTrackedPromise(value) { return value instanceof Promise && value._tracked === true; } function unwrapTrackedPromise(value) { if (!isTrackedPromise(value)) { return value; } if (value._error) { throw value._error; } return value._data; } /** * @deprecated The `defer` method is deprecated in favor of returning raw * objects. This method will be removed in v7. */ const defer = function defer(data, init) { if (init === void 0) { init = {}; } let responseInit = typeof init === "number" ? { status: init } : init; return new DeferredData(data, responseInit); }; /** * A redirect response. Sets the status code and the `Location` header. * Defaults to "302 Found". */ const redirect = function redirect(url, init) { if (init === void 0) { init = 302; } let responseInit = init; if (typeof responseInit === "number") { responseInit = { status: responseInit }; } else if (typeof responseInit.status === "undefined") { responseInit.status = 302; } let headers = new Headers(responseInit.headers); headers.set("Location", url); return new Response(null, _extends({}, responseInit, { headers })); }; /** * A redirect response that will force a document reload to the new location. * Sets the status code and the `Location` header. * Defaults to "302 Found". */ const redirectDocument = (url, init) => { let response = redirect(url, init); response.headers.set("X-Remix-Reload-Document", "true"); return response; }; /** * A redirect response that will perform a `history.replaceState` instead of a * `history.pushState` for client-side navigation redirects. * Sets the status code and the `Location` header. * Defaults to "302 Found". */ const replace = (url, init) => { let response = redirect(url, init); response.headers.set("X-Remix-Replace", "true"); return response; }; /** * @private * Utility class we use to hold auto-unwrapped 4xx/5xx Response bodies * * We don't export the class for public use since it's an implementation * detail, but we export the interface above so folks can build their own * abstractions around instances via isRouteErrorResponse() */ class ErrorResponseImpl { constructor(status, statusText, data, internal) { if (internal === void 0) { internal = false; } this.status = status; this.statusText = statusText || ""; this.internal = internal; if (data instanceof Error) { this.data = data.toString(); this.error = data; } else { this.data = data; } } } /** * Check if the given error is an ErrorResponse generated from a 4xx/5xx * Response thrown from an action/loader */ function isRouteErrorResponse(error) { return error != null && typeof error.status === "number" && typeof error.statusText === "string" && typeof error.internal === "boolean" && "data" in error; } const validMutationMethodsArr = ["post", "put", "patch", "delete"]; const validMutationMethods = new Set(validMutationMethodsArr); const validRequestMethodsArr = ["get", ...validMutationMethodsArr]; const validRequestMethods = new Set(validRequestMethodsArr); const redirectStatusCodes = new Set([301, 302, 303, 307, 308]); const redirectPreserveMethodStatusCodes = new Set([307, 308]); const IDLE_NAVIGATION = { state: "idle", location: undefined, formMethod: undefined, formAction: undefined, formEncType: undefined, formData: undefined, json: undefined, text: undefined }; const IDLE_FETCHER = { state: "idle", data: undefined, formMethod: undefined, formAction: undefined, formEncType: undefined, formData: undefined, json: undefined, text: undefined }; const IDLE_BLOCKER = { state: "unblocked", proceed: undefined, reset: undefined, location: undefined }; const ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i; const defaultMapRouteProperties = route => ({ hasErrorBoundary: Boolean(route.hasErrorBoundary) }); const TRANSITIONS_STORAGE_KEY = "remix-router-transitions"; //#endregion //////////////////////////////////////////////////////////////////////////////// //#region createRouter //////////////////////////////////////////////////////////////////////////////// /** * Create a router and listen to history POP navigations */ function createRouter(init) { const routerWindow = init.window ? init.window : typeof window !== "undefined" ? window : undefined; const isBrowser = typeof routerWindow !== "undefined" && typeof routerWindow.document !== "undefined" && typeof routerWindow.document.createElement !== "undefined"; const isServer = !isBrowser; invariant(init.routes.length > 0, "You must provide a non-empty routes array to createRouter"); let mapRouteProperties; if (init.mapRouteProperties) { mapRouteProperties = init.mapRouteProperties; } else if (init.detectErrorBoundary) { // If they are still using the deprecated version, wrap it with the new API let detectErrorBoundary = init.detectErrorBoundary; mapRouteProperties = route => ({ hasErrorBoundary: detectErrorBoundary(route) }); } else { mapRouteProperties = defaultMapRouteProperties; } // Routes keyed by ID let manifest = {}; // Routes in tree format for matching let dataRoutes = convertRoutesToDataRoutes(init.routes, mapRouteProperties, undefined, manifest); let inFlightDataRoutes; let basename = init.basename || "/"; let dataStrategyImpl = init.dataStrategy || defaultDataStrategy; let patchRoutesOnNavigationImpl = init.patchRoutesOnNavigation; // Config driven behavior flags let future = _extends({ v7_fetcherPersist: false, v7_normalizeFormMethod: false, v7_partialHydration: false, v7_prependBasename: false, v7_relativeSplatPath: false, v7_skipActionErrorRevalidation: false }, init.future); // Cleanup function for history let unlistenHistory = null; // Externally-provided functions to call on all state changes let subscribers = new Set(); // Externally-provided object to hold scroll restoration locations during routing let savedScrollPositions = null; // Externally-provided function to get scroll restoration keys let getScrollRestorationKey = null; // Externally-provided function to get current scroll position let getScrollPosition = null; // One-time flag to control the initial hydration scroll restoration. Because // we don't get the saved positions from <ScrollRestoration /> until _after_ // the initial render, we need to manually trigger a separate updateState to // send along the restoreScrollPosition // Set to true if we have `hydrationData` since we assume we were SSR'd and that // SSR did the initial scroll restoration. let initialScrollRestored = init.hydrationData != null; let initialMatches = matchRoutes(dataRoutes, init.history.location, basename); let initialMatchesIsFOW = false; let initialErrors = null; if (initialMatches == null && !patchRoutesOnNavigationImpl) { // If we do not match a user-provided-route, fall back to the root // to allow the error boundary to take over let error = getInternalRouterError(404, { pathname: init.history.location.pathname }); let { matches, route } = getShortCircuitMatches(dataRoutes); initialMatches = matches; initialErrors = { [route.id]: error }; } // In SPA apps, if the user provided a patchRoutesOnNavigation implementation and // our initial match is a splat route, clear them out so we run through lazy // discovery on hydration in case there's a more accurate lazy route match. // In SSR apps (with `hydrationData`), we expect that the server will send // up the proper matched routes so we don't want to run lazy discovery on // initial hydration and want to hydrate into the splat route. if (initialMatches && !init.hydrationData) { let fogOfWar = checkFogOfWar(initialMatches, dataRoutes, init.history.location.pathname); if (fogOfWar.active) { initialMatches = null; } } let initialized; if (!initialMatches) { initialized = false; initialMatches = []; // If partial hydration and fog of war is enabled, we will be running // `patchRoutesOnNavigation` during hydration so include any partial matches as // the initial matches so we can properly render `HydrateFallback`'s if (future.v7_partialHydration) { let fogOfWar = checkFogOfWar(null, dataRoutes, init.history.location.pathname); if (fogOfWar.active && fogOfWar.matches) { initialMatchesIsFOW = true; initialMatches = fogOfWar.matches; } } } else if (initialMatches.some(m => m.route.lazy)) { // All initialMatches need to be loaded before we're ready. If we have lazy // functions around still then we'll need to run them in initialize() initialized = false; } else if (!initialMatches.some(m => m.route.loader)) { // If we've got no loaders to run, then we're good to go initialized = true; } else if (future.v7_partialHydration) { // If partial hydration is enabled, we're initialized so long as we were // provided with hydrationData for every route with a loader, and no loaders // were marked for explicit hydration let loaderData = init.hydrationData ? init.hydrationData.loaderData : null; let errors = init.hydrationData ? init.hydrationData.errors : null; // If errors exist, don't consider routes below the boundary if (errors) { let idx = initialMatches.findIndex(m => errors[m.route.id] !== undefined); initialized = initialMatches.slice(0, idx + 1).every(m => !shouldLoadRouteOnHydration(m.route, loaderData, errors)); } else { initialized = initialMatches.every(m => !shouldLoadRouteOnHydration(m.route, loaderData, errors)); } } else { // Without partial hydration - we're initialized if we were provided any // hydrationData - which is expected to be complete initialized = init.hydrationData != null; } let router; let state = { historyAction: init.history.action, location: init.history.location, matches: initialMatches, initialized, navigation: IDLE_NAVIGATION, // Don't restore on initial updateState() if we were SSR'd restoreScrollPosition: init.hydrationData != null ? false : null, preventScrollReset: false, revalidation: "idle", loaderData: init.hydrationData && init.hydrationData.loaderData || {}, actionData: init.hydrationData && init.hydrationData.actionData || null, errors: init.hydrationData && init.hydrationData.errors || initialErrors, fetchers: new Map(), blockers: new Map() }; // -- Stateful internal variables to manage navigations -- // Current navigation in progress (to be committed in completeNavigation) let pendingAction = Action.Pop; // Should the current navigation prevent the scroll reset if scroll cannot // be restored? let pendingPreventScrollReset = false; // AbortController for the active navigation let pendingNavigationController; // Should the current navigation enable document.startViewTransition? let pendingViewTransitionEnabled = false; // Store applied view transitions so we can apply them on POP let appliedViewTransitions = new Map(); // Cleanup function for persisting applied transitions to sessionStorage let removePageHideEventListener = null; // We use this to avoid touching history in completeNavigation if a // revalidation is entirely uninterrupted let isUninterruptedRevalidation = false; // Use this internal flag to force revalidation of all loaders: // - submissions (completed or interrupted) // - useRevalidator() // - X-Remix-Revalidate (from redirect) let isRevalidationRequired = false; // Use this internal array to capture routes that require revalidation due // to a cancelled deferred on action submission let cancelledDeferredRoutes = []; // Use this internal array to capture fetcher loads that were cancelled by an // action navigation and require revalidation let cancelledFetcherLoads = new Set(); // AbortControllers for any in-flight fetchers let fetchControllers = new Map(); // Track loads based on the order in which they started let incrementingLoadId = 0; // Track the outstanding pending navigation data load to be compared against // the globally incrementing load when a fetcher load lands after a completed // navigation let pendingNavigationLoadId = -1; // Fetchers that triggered data reloads as a result of their actions let fetchReloadIds = new Map(); // Fetchers that triggered redirect navigations let fetchRedirectIds = new Set(); // Most recent href/match for fetcher.load calls for fetchers let fetchLoadMatches = new Map(); // Ref-count mounted fetchers so we know when it's ok to clean them up let activeFetchers = new Map(); // Fetchers that have requested a delete when using v7_fetcherPersist, // they'll be officially removed after they return to idle let deletedFetchers = new Set(); // Store DeferredData instances for active route matches. When a // route loader returns defer() we stick one in here. Then, when a nested // promise resolves we update loaderData. If a new navigation starts we // cancel active deferreds for eliminated routes. let activeDeferreds = new Map(); // Store blocker functions in a separate Map outside of router state since // we don't need to update UI state if they change let blockerFunctions = new Map(); // Flag to ignore the next history update, so we can revert the URL change on // a POP navigation that was blocked by the user without touching router state let unblockBlockerHistoryUpdate = undefined; // Initialize the router, all side effects should be kicked off from here. // Implemented as a Fluent API for ease of: // let router = createRouter(init).initialize(); function initialize() { // If history informs us of a POP navigation, start the navigation but do not update // state. We'll update our own state once the navigation completes unlistenHistory = init.history.listen(_ref => { let { action: historyAction, location, delta } = _ref; // Ignore this event if it was just us resetting the URL from a // blocked POP navigation if (unblockBlockerHistoryUpdate) { unblockBlockerHistoryUpdate(); unblockBlockerHistoryUpdate = undefined; return; } warning(blockerFunctions.size === 0 || delta != null, "You are trying to use a blocker on a POP navigation to a location " + "that was not created by @remix-run/router. This will fail silently in " + "production. This can happen if you are navigating outside the router " + "via `window.history.pushState`/`window.location.hash` instead of using " + "router navigation APIs. This can also happen if you are using " + "createHashRouter and the user manually changes the URL."); let blockerKey = shouldBlockNavigation({ currentLocation: state.location, nextLocation: location, historyAction }); if (blockerKey && delta != null) { // Restore the URL to match the current UI, but don't update router state let nextHistoryUpdatePromise = new Promise(resolve => { unblockBlockerHistoryUpdate = resolve; }); init.history.go(delta * -1); // Put the blocker into a blocked state updateBlocker(blockerKey, { state: "blocked", location, proceed() { updateBlocker(blockerKey, { state: "proceeding", proceed: undefined, reset: undefined, location }); // Re-do the same POP navigation we just blocked, after the url // restoration is also complete. See: // https://github.com/remix-run/react-router/issues/11613 nextHistoryUpdatePromise.then(() => init.history.go(delta)); }, reset() { let blockers = new Map(state.blockers); blockers.set(blockerKey, IDLE_BLOCKER); updateState({ blockers }); } }); return; } return startNavigation(historyAction, location); }); if (isBrowser) { // FIXME: This feels gross. How can we cleanup the lines between // scrollRestoration/appliedTransitions persistance? restoreAppliedTransitions(routerWindow, appliedViewTransitions); let _saveAppliedTransitions = () => persistAppliedTransitions(routerWindow, appliedViewTransitions); routerWindow.addEventListener("pagehide", _saveAppliedTransitions); removePageHideEventListener = () => routerWindow.removeEventListener("pagehide", _saveAppliedTransitions); } // Kick off initial data load if needed. Use Pop to avoid modifying history // Note we don't do any handling of lazy here. For SPA's it'll get handled // in the normal navigation flow. For SSR it's expected that lazy modules are // resolved prior to router creation since we can't go into a fallbackElement // UI for SSR'd apps if (!state.initialized) { startNavigation(Action.Pop, state.location, { initialHydration: true }); } return router; } // Clean up a router and it's side effects function dispose() { if (unlistenHistory) { unlistenHistory(); } if (removePageHideEventListener) { removePageHideEventListener(); } subscribers.clear(); pendingNavigationController && pendingNavigationController.abort(); state.fetchers.forEach((_, key) => deleteFetcher(key)); state.blockers.forEach((_, key) => deleteBlocker(key)); } // Subscribe to state updates for the router function subscribe(fn) { subscribers.add(fn); return () => subscribers.delete(fn); } // Update our state and notify the calling context of the change function updateState(newState, opts) { if (opts === void 0) { opts = {}; } state = _extends({}, state, newState); // Prep fetcher cleanup so we can tell the UI which fetcher data entries // can be removed let completedFetchers = []; let deletedFetchersKeys = []; if (future.v7_fetcherPersist) { state.fetchers.forEach((fetcher, key) => { if (fetcher.state === "idle") { if (deletedFetchers.has(key)) { // Unmounted from the UI and can be totally removed deletedFetchersKeys.push(key); } else { // Returned to idle but still mounted in the UI, so semi-remains for // revalidations and such completedFetchers.push(key); } } }); } // Remove any lingering deleted fetchers that have already been removed // from state.fetchers deletedFetchers.forEach(key => { if (!state.fetchers.has(key) && !fetchControllers.has(key)) { deletedFetchersKeys.push(key); } }); // Iterate over a local copy so that if flushSync is used and we end up // removing and adding a new subscriber due to the useCallback dependencies, // we don't get ourselves into a loop calling the new subscriber immediately [...subscribers].forEach(subscriber => subscriber(state, { deletedFetchers: deletedFetchersKeys, viewTransitionOpts: opts.viewTransitionOpts, flushSync: opts.flushSync === true })); // Remove idle fetchers from state since we only care about in-flight fetchers. if (future.v7_fetcherPersist) { completedFetchers.forEach(key => state.fetchers.delete(key)); deletedFetchersKeys.forEach(key => deleteFetcher(key)); } else { // We already called deleteFetcher() on these, can remove them from this // Set now that we've handed the keys off to the data layer deletedFetchersKeys.forEach(key => deletedFetchers.delete(key)); } } // Complete a navigation returning the state.navigation back to the IDLE_NAVIGATION // and setting state.[historyAction/location/matches] to the new route. // - Location is a required param // - Navigation will always be set to IDLE_NAVIGATION // - Can pass any other state in newState function completeNavigation(location, newState, _temp) { var _location$state, _location$state2; let { flushSync } = _temp === void 0 ? {} : _temp; // Deduce if we're in a loading/actionReload state: // - We have committed actionData in the store // - The current navigation was a mutation submission // - We're past the submitting state and into the loading state // - The location being loaded is not the result of a redirect let isActionReload = state.actionData != null && state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && state.navigation.state === "loading" && ((_location$state = location.state) == null ? void 0 : _location$state._isRedirect) !== true; let actionData; if (newState.actionData) { if (Object.keys(newState.actionData).length > 0) { actionData = newState.actionData; } else { // Empty actionData -> clear prior actionData due to an action error actionData = null; } } else if (isActionReload) { // Keep the current data if we're wrapping up the action reload actionData = state.actionData; } else { // Clear actionData on any other completed navigations actionData = null; } // Always preserve any existing loaderData from re-used routes let loaderData = newState.loaderData ? mergeLoaderData(state.loaderData, newState.loaderData, newState.matches || [], newState.errors) : state.loaderData; // On a successful navigation we can assume we got through all blockers // so we can start fresh let blockers = state.blockers; if (blockers.size > 0) { blockers = new Map(blockers); blockers.forEach((_, k) => blockers.set(k, IDLE_BLOCKER)); } // Always respect the user flag. Otherwise don't reset on mutation // submission navigations unless they redirect let preventScrollReset = pendingPreventScrollReset === true || state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && ((_location$state2 = location.state) == null ? void 0 : _location$state2._isRedirect) !== true; // Commit any in-flight routes at the end of the HMR revalidation "navigation" if (inFlightDataRoutes) { dataRoutes = inFlightDataRoutes; inFlightDataRoutes = undefined; } if (isUninterruptedRevalidation) ; else if (pendingAction === Action.Pop) ; else if (pendingAction === Action.Push) { init.history.push(location, location.state); } else if (pendingAction === Action.Replace) { init.history.replace(location, location.state); } let viewTransitionOpts; // On POP, enable transitions if they were enabled on the original navigation if (pendingAction === Action.Pop) { // Forward takes precedence so they behave like the original navigation let priorPaths = appliedViewTransitions.get(state.location.pathname); if (priorPaths && priorPaths.has(location.pathname)) { viewTransitionOpts = { currentLocation: state.location, nextLocation: location }; } else if (appliedViewTransitions.has(location.pathname)) { // If we don't have a previous forward nav, assume we're popping back to // the new location and enable if that location previously enabled viewTransitionOpts = { currentLocation: location, nextLocation: state.location }; } } else if (pendingViewTransitionEnabled) { // Store the applied transition on PUSH/REPLACE let toPaths = appliedViewTransitions.get(state.location.pathname); if (toPaths) { toPaths.add(location.pathname); } else { toPaths = new Set([location.pathname]); appliedViewTransitions.set(state.location.pathname, toPaths); } viewTransitionOpts = { currentLocation: state.location, nextLocation: location }; } updateState(_extends({}, newState, { actionData, loaderData, historyAction: pendingAction, location, initialized: true, navigation: IDLE_NAVIGATION, revalidation: "idle", restoreScrollPosition: getSavedScrollPosition(location, newState.matches || state.matches), preventScrollReset, blockers }), { viewTransitionOpts, flushSync: flushSync === true }); // Reset stateful navigation vars pendingAction = Action.Pop; pendingPreventScrollReset = false; pendingViewTransitionEnabled = false; isUninterruptedRevalidation = false; isRevalidationRequired = false; cancelledDeferredRoutes = []; } // Trigger a navigation event, which can either be a numerical POP or a PUSH // replace with an optional submission async function navigate(to, opts) { if (typeof to === "number") { init.history.go(to); return; } let normalizedPath = normalizeTo(state.location, state.matches, basename, future.v7_prependBasename, to, future.v7_relativeSplatPath, opts == null ? void 0 : opts.fromRouteId, opts == null ? void 0 : opts.relative); let { path, submission, error } = normalizeNavigateOptions(future.v7_normalizeFormMethod, false, normalizedPath, opts); let currentLocation = state.location; let nextLocation = createLocation(state.location, path, opts && opts.state); // When using navigate as a PUSH/REPLACE we aren't reading an already-encoded // URL from window.location, so we need to encode it here so the behavior // remains the same as POP and non-data-router usages. new URL() does all // the same encoding we'd get from a history.pushState/window.location read // without having to touch history nextLocation = _extends({}, nextLocation, init.history.encodeLocation(nextLocation)); let userReplace = opts && opts.replace != null ? opts.replace : undefined; let historyAction = Action.Push; if (userReplace === true) { historyAction = Action.Replace; } else if (userReplace === false) ; else if (submission != null && isMutationMethod(submission.formMethod) && submission.formAction === state.location.pathname + state.location.search) { // By default on submissions to the current location we REPLACE so that // users don't have to double-click the back button to get to the prior // location. If the user redirects to a different location from the // action/loader this will be ignored and the redirect will be a PUSH historyAction = Action.Replace; } let preventScrollReset = opts && "preventScrollReset" in opts ? opts.preventScrollReset === true : undefined; let flushSync = (opts && opts.flushSync) === true; let blockerKey = shouldBlockNavigation({ currentLocation, nextLocation, historyAction }); if (blockerKey) { // Put the blocker into a blocked state updateBlocker(blockerKey, { state: "blocked", location: nextLocation, proceed() { updateBlocker(blockerKey, { state: "proceeding", proceed: undefined, reset: undefined, location: nextLocation }); // Send the same navigation through navigate(to, opts); }, reset() { let blockers = new Map(state.blockers); blockers.set(blockerKey, IDLE_BLOCKER); updateState({ blockers }); } }); return; } return await startNavigation(historyAction, nextLocation, { submission, // Send through the formData serialization error if we have one so we can // render at the right error boundary after we match routes pendingError: error, preventScrollReset, replace: opts && opts.replace, enableViewTransition: opts && opts.viewTransition, flushSync }); } // Revalidate all current loaders. If a navigation is in progress or if this // is interrupted by a navigation, allow this to "succeed" by calling all // loaders during the next loader round function revalidate() { interruptActiveLoads(); updateState({ revalidation: "loading" }); // If we're currently submitting an action, we don't need to start a new // navigation, we'll just let the follow up loader execution call all loaders if (state.navigation.state === "submitting") { return; } // If we're currently in an idle state, start a new navigation for the current // action/location and mark it as uninterrupted, which will skip the history // update in completeNavigation if (state.navigation.state === "idle") { startNavigation(state.historyAction, state.location, { startUninterruptedRevalidation: true }); return; } // Otherwise, if we're currently in a loading state, just start a new // navigation to the navigation.location but do not trigger an uninterrupted // revalidation so that history correctly updates once the navigation completes startNavigation(pendingAction || state.historyAction, state.navigation.location, { overrideNavigation: state.navigation, // Proxy through any rending view transition enableViewTransition: pendingViewTransitionEnabled === true }); } // Start a navigation to the given action/location. Can optionally provide a // overrideNavigation which will override the normalLoad in the case of a redirect // navigation async function startNavigation(historyAction, location, opts) { // Abort any in-progress navigations and start a new one. Unset any ongoing // uninterrupted revalidations unless told otherwise, since we want this // new navigation to update history normally pendingNavigationController && pendingNavigationController.abort(); pendingNavigationController = null; pendingAction = historyAction; isUninterruptedRevalidation = (opts && opts.startUninterruptedRevalidation) === true; // Save the current scroll position every time we start a new navigation, // and track whether we should reset scroll on completion saveScrollPosition(state.location, state.matches); pendingPreventScrollReset = (opts && opts.preventScrollReset) === true; pendingViewTransitionEnabled = (opts && opts.enableViewTransition) === true; let routesToUse = inFlightDataRoutes || dataRoutes; let loadingNavigation = opts && opts.overrideNavigation; let matches = opts != null && opts.initialHydration && state.matches && state.matches.length > 0 && !initialMatchesIsFOW ? // `matchRoutes()` has already been called if we're in here via `router.initialize()` state.matches : matchRoutes(routesToUse, location, basename); let flushSync = (opts && opts.flushSync) === true; // Short circuit if it's only a hash change and not a revalidation or // mutation submission. // // Ignore on initial page loads because since the initial hydration will always // be "same hash". For example, on /page#hash and submit a <Form method="post"> // which will default to a navigation to /page if (matches && state.initialized && !isRevalidationRequired && isHashChangeOnly(state.location, location) && !(opts && opts.submission && isMutationMethod(opts.submission.formMethod))) { completeNavigation(location, { matches }, { flushSync }); return; } let fogOfWar = checkFogOfWar(matches, routesToUse, location.pathname); if (fogOfWar.active && fogOfWar.matches) { matches = fogOfWar.matches; } // Short circuit with a 404 on the root error boundary if we match nothing if (!matches) { let { error, notFoundMatches, route } = handleNavigational404(location.pathname); completeNavigation(location, { matches: notFoundMatches, loaderData: {}, errors: { [route.id]: error } }, { flushSync }); return; } // Create a controller/Request for this navigation pendingNavigationController = new AbortController(); let request = createClientSideRequest(init.history, location, pendingNavigationController.signal, opts && opts.submission); let pendingActionResult; if (opts && opts.pendingError) { // If we have a pendingError, it means the user attempted a GET submission // with binary FormData so assign here and skip to handleLoaders. That // way we handle calling loaders above the boundary etc. It's not really // different from an actionError in that sense. pendingActionResult = [findNearestBoundary(matches).route.id, { type: ResultType.error, error: opts.pendingError }]; } else if (opts && opts.submission && isMutationMethod(opts.submission.formMethod)) { // Call action if we received an action submission let actionResult = await handleAction(request, location, opts.submission, matches, fogOfWar.active, { replace: opts.replace, flushSync }); if (actionResult.shortCircuited) { return; } // If we received a 404 from handleAction, it's because we couldn't lazily // discover the destination route so we don't want to call loaders if (actionResult.pendingActionResult) { let [routeId, result] = actionResult.pendingActionResult; if (isErrorResult(result) && isRouteErrorResponse(result.error) && result.error.status === 404) { pendingNavigationController = null; completeNavigation(location, { matches: actionResult.matches, loaderData: {}, errors: { [routeId]: result.error } }); return; } } matches = actionResult.matches || matches; pendingActionResult = actionResult.pendingActionResult; loadingNavigation = getLoadingNavigation(location, opts.submission); flushSync = false; // No need to do fog of war matching again on loader execution fogOfWar.active = false; // Create a GET request for the loaders request = createClientSideRequest(init.history, request.url, request.signal); } // Call loaders let { shortCircuited, matches: updatedMatches, loaderData, errors } = await handleLoaders(request, location, matches, fogOfWar.active, loadingNavigation, opts && opts.submission, opts && opts.fetcherSubmission, opts && opts.replace, opts && opts.initialHydration === true, flushSync, pendingActionResult); if (shortCircuited) { return; } // Clean up now that the action/loaders have completed. Don't clean up if // we short circuited because pendingNavigationController will have already // been assigned to a new controller for the next navigation pendingNavigationController = null; completeNavigation(location, _extends({ matches: updatedMatches || matches }, getActionDataForCommit(pendingActionResult), { loaderData, errors })); } // Call the action matched by the leaf route for this navigation and handle // redirects/errors async function handleAction(request, location, submission, matches, isFogOfWar, opts) { if (opts === void 0) { opts = {}; } interruptActiveLoads(); // Put us in a submitting state let navigation = getSubmittingNavigation(location, submission); updateState({ navigation }, { flushSync: opts.flushSync === true }); if (isFogOfWar) { let discoverResult = await discoverRoutes(matches, location.pathname, request.signal); if (discoverResult.type === "aborted") { return { shortCircuited: true }; } else if (discoverResult.type === "error") { let boundaryId = findNearestBoundary(discoverResult.partialMatches).route.id; return { matches: discoverResult.partialMatches, pendingActionResult: [boundaryId, { type: ResultType.error, error: discoverResult.error }] }; } else if (!discoverResult.matches) { let { notFoundMatches, error, route } = handleNavigational404(location.pathname); return { matches: notFoundMatches, pendingActionResult: [route.id, { type: ResultType.error, error }] }; } else { matches = discoverResult.matches; } } // Call our action and get the result let result; let actionMatch = getTargetMatch(matches, location); if (!actionMatch.route.action && !actionMatch.route.lazy) { result = { type: ResultType.error, error: getInternalRouterError(405, { method: request.method, pathname: location.pathname, routeId: actionMatch.route.id }) }; } else { let results = await callDataStrategy("action", state, request, [actionMatch], matches, null); result = results[actionMatch.route.id]; if (request.signal.aborted) { return { shortCircuited: true }; } } if (isRedirectResult(result)) { let replace; if (opts && opts.replace != null) { replace = opts.replace; } else { // If the user didn't explicity indicate replace behavior, replace if // we redirected to the exact same location we're currently at to avoid // double back-buttons let location = normalizeRedirectLocation(result.response.headers.get("Location"), new URL(request.url), basename); replace = location === state.location.pathname + state.location.search; } await startRedirectNavigation(request, result, true, { submission, replace }); return { shortCircuited: true }; } if (isDeferredResult(result)) { throw getInternalRouterError(400, { type: "defer-action" }); } if (isErrorResult(result)) { // Store off the pending error - we use it to determine which loaders // to call and will commit it when we complete the navigation let boundaryMatch = findNearestBoundary(matches, actionMatch.route.id); // By default, all submissions to the current location are REPLACE // navigations, but if the action threw an error that'll be rendered in // an errorElement, we fall back to PUSH so that the user can use the // back button to get back to the pre-submission form location to try // again if ((opts && opts.replace) !== true) { pendingAction = Action.Push; } return { matches, pendingActionResult: [boundaryMatch.route.id, result] }; } return { matches, pendingActionResult: [actionMatch.route.id, result] }; } // Call all applicable loaders for the given matches, handling redirects, // errors, etc. async function handleLoaders(request, location, matches, isFogOfWar, overrideNavigation, submission, fetcherSubmission, replace, initialHydration, flushSync, pendingActionResult) { // Figure out the right navigation we want to use for data loading let loadingNavigation = overrideNavigation || getLoadingNavigation(location, submission); // If this was a redirect from an action we don't have a "submission" but // we have it on the loading navigation so use that if available let activeSubmission = submission || fetcherSubmission || getSubmissionFromNavigation(loadingNavigation); // If this is an uninterrupted revalidation, we remain in our current idle // state. If not, we need to switch to our loading state and load data, // preserving any new action data or existing action data (in the case of // a revalidation interrupting an actionReload) // If we have partialHydration enabled, then don't update the state for the // initial data load since it's not a "navigation" let shouldUpdateNavigationState = !isUninterruptedRevalidation && (!future.v7_partialHydration || !initialHydration); // When fog of war is enabled, we enter our `loading` state earlier so we // can discover new routes during the `loading` state. We skip this if // we've already run actions since we would have done our matching already. // If the children() function threw then, we want to proceed with the // partial matches it discovered. if (isFogOfWar) { if (shouldUpdateNavigationState) { let actionData = getUpdatedActionData(pendingActionResult); updateState(_extends({ navigation: loadingNavigation }, actionData !== undefined ? { actionData } : {}), { flushSync }); } let discoverResult = await discoverRoutes(matches, location.pathname, request.signal); if (discoverResult.type === "aborted") { return { shortCircuited: true }; } else if (discoverResult.type === "error") { let boundaryId = findNearestBoundary(discoverResult.partialMatches).route.id; return { matches: discoverResult.partialMatches, loaderData: {}, errors: { [boundaryId]: discoverResult.error } }; } else if (!discoverResult.matches) { let { error, notFoundMatches, route } = handleNavigational404(location.pathname); return { matches: notFoundMatches, loaderData: {}, errors: { [route.id]: error } }; } else { matches = discoverResult.matches; } } let routesToUse = inFlightDataRoutes || dataRoutes; let [matchesToLoad, revalidatingFetchers] = getMatchesToLoad(init.history, state, matches, activeSubmission, location, future.v7_partialHydration && initialHydration === true, future.v7_skipActionErrorRevalidation, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, deletedFetchers, fetchLoadMatches, fetchRedirectIds, routesToUse, basename, pendingActionResult); // Cancel pending deferreds for no-longer-matched routes or routes we're // about to reload. Note that if this is an action reload we would have // already cancelled all pending deferreds so this would be a no-op cancelActiveDeferreds(routeId => !(matches && matches.some(m => m.route.id === routeId)) || matchesToLoad && matchesToLoad.some(m => m.route.id === routeId)); pendingNavigationLoadId = ++incrementingLoadId; // Short circuit if we have no loaders to run if (matchesToLoad.length === 0 && revalidatingFetchers.length === 0) { let updatedFetchers = markFetchRedirectsDone(); completeNavigation(location, _extends({ matches, loaderData: {}, // Commit pending error if we're short circuiting errors: pendingActionResult && isErrorResult(pendingActionResult[1]) ? { [pendingActionResult[0]]: pendingActionResult[1].error } : null }, getActionDataForCommit(pendingActionResult), updatedFetchers ? { fetchers: new Map(state.fetchers) } : {}), { flushSync }); return { shortCircuited: true }; } if (shouldUpdateNavigationState) { let updates = {}; if (!isFogOfWar) { // Only update navigation/actionNData if we didn't already do it above updates.navigation = loadingNavigation; let actionData = getUpdatedActionData(pendingActionResult); if (actionData !== undefined) { updates.actionData = actionData; } } if (revalidatingFetchers.length > 0) { updates.fetchers = getUpdatedRevalidatingFetchers(revalidatingFetchers); } updateState(updates, { flushSync }); } revalidatingFetchers.forEach(rf => { abortFetcher(rf.key); if (rf.controller) { // Fetchers use an independent AbortController so that aborting a fetcher // (via deleteFetcher) does not abort the triggering navigation that // triggered the revalidation fetchControllers.set(rf.key, rf.controller); } }); // Proxy navigation abort through to revalidation fetchers let abortPendingFetchRevalidations = () => revalidatingFetchers.forEach(f => abortFetcher(f.key)); if (pendingNavigationController) { pendingNavigationController.signal.addEventListener("abort", abortPendingFetchRevalidations); } let { loaderResults, fetcherResults } = await callLoadersAndMaybeResolveData(state, matches, matchesToLoad, revalidatingFetchers, request); if (request.signal.aborted) { return { shortCircuited: true }; } // Clean up _after_ loaders have completed. Don't clean up if we short // circuited because fetchControllers would have been aborted and // reassigned to new controllers for the next navigation if (pendingNavigationController) { pendingNavigationController.signal.removeEventListener("abort", abortPendingFetchRevalidations); } revalidatingFetchers.forEach(rf => fetchControllers.delete(rf.key)); // If any loaders returned a redirect Response, start a new REPLACE navigation let redirect = findRedirect(loaderResults); if (redirect) { await startRedirectNavigation(request, redirect.result, true, { replace }); return { shortCircuited: true }; } redirect = findRedirect(fetcherResults); if (redirect) { // If this redirect came from a fetcher make sure we mark it in // fetchRedirectIds so it doesn't get revalidated on the next set of // loader executions fetchRedirectIds.add(redirect.key); await startRedirectNavigation(request, redirect.result, true, { replace }); return { shortCircuited: true }; } // Process and commit output from loaders let { loaderData, errors } = processLoaderData(state, matches, loaderResults, pendingActionResult, revalidatingFetchers, fetcherResults, activeDeferreds); // Wire up subscribers to update loaderData as promises settle activeDeferreds.forEach((deferredData, routeId) => { deferredData.subscribe(aborted => { // Note: No need to updateState here since the TrackedPromise on // loaderData is stable across resolve/reject // Remove this instance if we were aborted or if promises have settled if (aborted || deferredData.done) { activeDeferreds.delete(routeId); } }); }); // Preserve SSR errors during partial hydration if (future.v7_partialHydration && initialHydration && state.errors) { errors = _extends({}, state.errors, errors); } let updatedFetchers = markFetchRedirectsDone(); let didAbortFetchLoads = abortStaleFetchLoads(pendingNavigationLoadId); let shouldUpdateFetchers = updatedFetchers || didAbortFetchLoads || revalidatingFetchers.length > 0; return _extends({ matches, loaderData, errors }, shouldUpdateFetchers ? { fetchers: new Map(state.fetchers) } : {}); } function getUpdatedActionData(pendingActionResult) { if (pendingActionResult && !isErrorResult(pendingActionResult[1])) { // This is cast to `any` currently because `RouteData`uses any and it // would be a breaking change to use any. // TODO: v7 - change `RouteData` to use `unknown` instead of `any` return { [pendingActionResult[0]]: pendingActionResult[1].data }; } else if (state.actionData) { if (Object.keys(state.actionData).length === 0) { return null; } else { return state.actionData; } } } function getUpdatedRevalidatingFetchers(revalidatingFetchers) { revalidatingFetchers.forEach(rf => { let fetcher = state.fetchers.get(rf.key); let revalidatingFetcher = getLoadingFetcher(undefined, fetcher ? fetcher.data : undefined); state.fetchers.set(rf.key, revalidatingFetcher); }); return new Map(state.fetchers); } // Trigger a fetcher load/submit for the given fetcher key function fetch(key, routeId, href, opts) { if (isServer) { throw new Error("router.fetch() was called during the server render, but it shouldn't be. " + "You are likely calling a useFetcher() method in the body of your component. " + "Try moving it to a useEffect or a callback."); } abortFetcher(key); let flushSync = (opts && opts.flushSync) === true; let routesToUse = inFlightDataRoutes || dataRoutes; let normalizedPath = normalizeTo(state.location, state.matches, basename, future.v7_prependBasename, href, future.v7_relativeSplatPath, routeId, opts == null ? void 0 : opts.relative); let matches = matchRoutes(routesToUse, normalizedPath, basename); let fogOfWar = checkFogOfWar(matches, routesToUse, normalizedPath); if (fogOfWar.active && fogOfWar.matches) { matches = fogOfWar.matches; } if (!matches) { setFetcherError(key, routeId, getInternalRouterError(404, { pathname: normalizedPath }), { flushSync }); return; } let { path, submission, error } = normalizeNavigateOptions(future.v7_normalizeFormMethod, true, normalizedPath, opts); if (error) { setFetcherError(key, routeId, error, { flushSync }); return; } let match = getTargetMatch(matches, path); let preventScrollReset = (opts && opts.preventScrollReset) === true; if (submission && isMutationMethod(submission.formMethod)) { handleFetcherAction(key, routeId, path, match, matches, fogOfWar.active, flushSync, preventScrollReset, submission); return; } // Store off the match so we can call it's shouldRevalidate on subsequent // revalidations fetchLoadMatches.set(key, { routeId, path }); handleFetcherLoader(key, routeId, path, match, matches, fogOfWar.active, flushSync, preventScrollReset, submission); } // Call the action for the matched fetcher.submit(), and then handle redirects, // errors, and revalidation async function handleFetcherAction(key, routeId, path, match, requestMatches, isFogOfWar, flushSync, preventScrollReset, submission) { interruptActiveLoads(); fetchLoadMatches.delete(key); function detectAndHandle405Error(m) { if (!m.route.action && !m.route.lazy) { let error = getInternalRouterError(405, { method: submission.formMethod, pathname: path, routeId: routeId }); setFetcherError(key, routeId, error, { flushSync }); return true; } return false; } if (!isFogOfWar && detectAndHandle405Error(match)) { return; } // Put this fetcher into it's submitting state let existingFetcher = state.fetchers.get(key); updateFetcherState(key, getSubmittingFetcher(submission, existingFetcher), { flushSync }); let abortController = new AbortController(); let fetchRequest = createClientSideRequest(init.history, path, abortController.signal, submission); if (isFogOfWar) { let discoverResult = await discoverRoutes(requestMatches, new URL(fetchRequest.url).pathname, fetchRequest.signal, key); if (discoverResult.type === "aborted") { return; } else if (discoverResult.type === "error") { setFetcherError(key, routeId, discoverResult.error, { flushSync }); return; } else if (!discoverResult.matches) { setFetcherError(key, routeId, getInternalRouterError(404, { pathname: path }), { flushSync }); return; } else { requestMatches = discoverResult.matches; match = getTargetMatch(requestMatches, path); if (detectAndHandle405Error(match)) { return; } } } // Call the action for the fetcher fetchControllers.set(key, abortController); let originatingLoadId = incrementingLoadId; let actionResults = await callDataStrategy("action", state, fetchRequest, [match], requestMatches, key); let actionResult = actionResults[match.route.id]; if (fetchRequest.signal.aborted) { // We can delete this so long as we weren't aborted by our own fetcher // re-submit which would have put _new_ controller is in fetchControllers if (fetchControllers.get(key) === abortController) { fetchControllers.delete(key); } return; } // When using v7_fetcherPersist, we don't want errors bubbling up to the UI // or redirects processed for unmounted fetchers so we just revert them to // idle if (future.v7_fetcherPersist && deletedFetchers.has(key)) { if (isRedirectResult(actionResult) || isErrorResult(actionResult)) { updateFetcherState(key, getDoneFetcher(undefined)); return; } // Let SuccessResult's fall through for revalidation } else { if (isRedirectResult(actionResult)) { fetchControllers.delete(key); if (pendingNavigationLoadId > originatingLoadId) { // A new navigation was kicked off after our action started, so that // should take precedence over this redirect navigation. We already // set isRevalidationRequired so all loaders for the new route should // fire unless opted out via shouldRevalidate updateFetcherState(key, getDoneFetcher(undefined)); return; } else { fetchRedirectIds.add(key); updateFetcherState(key, getLoadingFetcher(submission)); return startRedirectNavigation(fetchRequest, actionResult, false, { fetcherSubmission: submission, preventScrollReset }); } } // Process any non-redirect errors thrown if (isErrorResult(actionResult)) { setFetcherError(key, routeId, actionResult.error); return; } } if (isDeferredResult(actionResult)) { throw getInternalRouterError(400, { type: "defer-action" }); } // Start the data load for current matches, or the next location if we're // in the middle of a navigation let nextLocation = state.navigation.location || state.location; let revalidationRequest = createClientSideRequest(init.history, nextLocation, abortController.signal); let routesToUse = inFlightDataRoutes || dataRoutes; let matches = state.navigation.state !== "idle" ? matchRoutes(routesToUse, state.navigation.location, basename) : state.matches; invariant(matches, "Didn't find any matches after fetcher action"); let loadId = ++incrementingLoadId; fetchReloadIds.set(key, loadId); let loadFetcher = getLoadingFetcher(submission, actionResult.data); state.fetchers.set(key, loadFetcher); let [matchesToLoad, revalidatingFetchers] = getMatchesToLoad(init.history, state, matches, submission, nextLocation, false, future.v7_skipActionErrorRevalidation, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, deletedFetchers, fetchLoadMatches, fetchRedirectIds, routesToUse, basename, [match.route.id, actionResult]); // Put all revalidating fetchers into the loading state, except for the // current fetcher which we want to keep in it's current loading state which // contains it's action submission info + action data revalidatingFetchers.filter(rf => rf.key !== key).forEach(rf => { let staleKey = rf.key; let existingFetcher = state.fetchers.get(staleKey); let revalidatingFetcher = getLoadingFetcher(undefined, existingFetcher ? existingFetcher.data : undefined); state.fetchers.set(staleKey, revalidatingFetcher); abortFetcher(staleKey); if (rf.controller) { fetchControllers.set(staleKey, rf.controller); } }); updateState({ fetchers: new Map(state.fetchers) }); let abortPendingFetchRevalidations = () => revalidatingFetchers.forEach(rf => abortFetcher(rf.key)); abortController.signal.addEventListener("abort", abortPendingFetchRevalidations); let { loaderResults, fetcherResults } = await callLoadersAndMaybeResolveData(state, matches, matchesToLoad, revalidatingFetchers, revalidationRequest); if (abortController.signal.aborted) { return; } abortController.signal.removeEventListener("abort", abortPendingFetchRevalidations); fetchReloadIds.delete(key); fetchControllers.delete(key); revalidatingFetchers.forEach(r => fetchControllers.delete(r.key)); let redirect = findRedirect(loaderResults); if (redirect) { return startRedirectNavigation(revalidationRequest, redirect.result, false, { preventScrollReset }); } redirect = findRedirect(fetcherResults); if (redirect) { // If this redirect came from a fetcher make sure we mark it in // fetchRedirectIds so it doesn't get revalidated on the next set of // loader executions fetchRedirectIds.add(redirect.key); return startRedirectNavigation(revalidationRequest, redirect.result, false, { preventScrollReset }); } // Process and commit output from loaders let { loaderData, errors } = processLoaderData(state, matches, loaderResults, undefined, revalidatingFetchers, fetcherResults, activeDeferreds); // Since we let revalidations complete even if the submitting fetcher was // deleted, only put it back to idle if it hasn't been deleted if (state.fetchers.has(key)) { let doneFetcher = getDoneFetcher(actionResult.data); state.fetchers.set(key, doneFetcher); } abortStaleFetchLoads(loadId); // If we are currently in a navigation loading state and this fetcher is // more recent than the navigation, we want the newer data so abort the // navigation and complete it with the fetcher data if (state.navigation.state === "loading" && loadId > pendingNavigationLoadId) { invariant(pendingAction, "Expected pending action"); pendingNavigationController && pendingNavigationController.abort(); completeNavigation(state.navigation.location, { matches, loaderData, errors, fetchers: new Map(state.fetchers) }); } else { // otherwise just update with the fetcher data, preserving any existing // loaderData for loaders that did not need to reload. We have to // manually merge here since we aren't going through completeNavigation updateState({ errors, loaderData: mergeLoaderData(state.loaderData, loaderData, matches, errors), fetchers: new Map(state.fetchers) }); isRevalidationRequired = false; } } // Call the matched loader for fetcher.load(), handling redirects, errors, etc. async function handleFetcherLoader(key, routeId, path, match, matches, isFogOfWar, flushSync, preventScrollReset, submission) { let existingFetcher = state.fetchers.get(key); updateFetcherState(key, getLoadingFetcher(submission, existingFetcher ? existingFetcher.data : undefined), { flushSync }); let abortController = new AbortController(); let fetchRequest = createClientSideRequest(init.history, path, abortController.signal); if (isFogOfWar) { let discoverResult = await discoverRoutes(matches, new URL(fetchRequest.url).pathname, fetchRequest.signal, key); if (discoverResult.type === "aborted") { return; } else if (discoverResult.type === "error") { setFetcherError(key, routeId, discoverResult.error, { flushSync }); return; } else if (!discoverResult.matches) { setFetcherError(key, routeId, getInternalRouterError(404, { pathname: path }), { flushSync }); return; } else { matches = discoverResult.matches; match = getTargetMatch(matches, path); } } // Call the loader for this fetcher route match fetchControllers.set(key, abortController); let originatingLoadId = incrementingLoadId; let results = await callDataStrategy("loader", state, fetchRequest, [match], matches, key); let result = results[match.route.id]; // Deferred isn't supported for fetcher loads, await everything and treat it // as a normal load. resolveDeferredData will return undefined if this // fetcher gets aborted, so we just leave result untouched and short circuit // below if that happens if (isDeferredResult(result)) { result = (await resolveDeferredData(result, fetchRequest.signal, true)) || result; } // We can delete this so long as we weren't aborted by our our own fetcher // re-load which would have put _new_ controller is in fetchControllers if (fetchControllers.get(key) === abortController) { fetchControllers.delete(key); } if (fetchRequest.signal.aborted) { return; } // We don't want errors bubbling up or redirects followed for unmounted // fetchers, so short circuit here if it was removed from the UI if (deletedFetchers.has(key)) { updateFetcherState(key, getDoneFetcher(undefined)); return; } // If the loader threw a redirect Response, start a new REPLACE navigation if (isRedirectResult(result)) { if (pendingNavigationLoadId > originatingLoadId) { // A new navigation was kicked off after our loader started, so that // should take precedence over this redirect navigation updateFetcherState(key, getDoneFetcher(undefined)); return; } else { fetchRedirectIds.add(key); await startRedirectNavigation(fetchRequest, result, false, { preventScrollReset }); return; } } // Process any non-redirect errors thrown if (isErrorResult(result)) { setFetcherError(key, routeId, result.error); return; } invariant(!isDeferredResult(result), "Unhandled fetcher deferred data"); // Put the fetcher back into an idle state updateFetcherState(key, getDoneFetcher(result.data)); } /** * Utility function to handle redirects returned from an action or loader. * Normally, a redirect "replaces" the navigation that triggered it. So, for * example: * * - user is on /a * - user clicks a link to /b * - loader for /b redirects to /c * * In a non-JS app the browser would track the in-flight navigation to /b and * then replace it with /c when it encountered the redirect response. In * the end it would only ever update the URL bar with /c. * * In client-side routing using pushState/replaceState, we aim to emulate * this behavior and we also do not update history until the end of the * navigation (including processed redirects). This means that we never * actually touch history until we've processed redirects, so we just use * the history action from the original navigation (PUSH or REPLACE). */ async function startRedirectNavigation(request, redirect, isNavigation, _temp2) { let { submission, fetcherSubmission, preventScrollReset, replace } = _temp2 === void 0 ? {} : _temp2; if (redirect.response.headers.has("X-Remix-Revalidate")) { isRevalidationRequired = true; } let location = redirect.response.headers.get("Location"); invariant(location, "Expected a Location header on the redirect Response"); location = normalizeRedirectLocation(location, new URL(request.url), basename); let redirectLocation = createLocation(state.location, location, { _isRedirect: true }); if (isBrowser) { let isDocumentReload = false; if (redirect.response.headers.has("X-Remix-Reload-Document")) { // Hard reload if the response contained X-Remix-Reload-Document isDocumentReload = true; } else if (ABSOLUTE_URL_REGEX.test(location)) { const url = init.history.createURL(location); isDocumentReload = // Hard reload if it's an absolute URL to a new origin url.origin !== routerWindow.location.origin || // Hard reload if it's an absolute URL that does not match our basename stripBasename(url.pathname, basename) == null; } if (isDocumentReload) { if (replace) { routerWindow.location.replace(location); } else { routerWindow.location.assign(location); } return; } } // There's no need to abort on redirects, since we don't detect the // redirect until the action/loaders have settled pendingNavigationController = null; let redirectHistoryAction = replace === true || redirect.response.headers.has("X-Remix-Replace") ? Action.Replace : Action.Push; // Use the incoming submission if provided, fallback on the active one in // state.navigation let { formMethod, formAction, formEncType } = state.navigation; if (!submission && !fetcherSubmission && formMethod && formAction && formEncType) { submission = getSubmissionFromNavigation(state.navigation); } // If this was a 307/308 submission we want to preserve the HTTP method and // re-submit the GET/POST/PUT/PATCH/DELETE as a submission navigation to the // redirected location let activeSubmission = submission || fetcherSubmission; if (redirectPreserveMethodStatusCodes.has(redirect.response.status) && activeSubmission && isMutationMethod(activeSubmission.formMethod)) { await startNavigation(redirectHistoryAction, redirectLocation, { submission: _extends({}, activeSubmission, { formAction: location }), // Preserve these flags across redirects preventScrollReset: preventScrollReset || pendingPreventScrollReset, enableViewTransition: isNavigation ? pendingViewTransitionEnabled : undefined }); } else { // If we have a navigation submission, we will preserve it through the // redirect navigation let overrideNavigation = getLoadingNavigation(redirectLocation, submission); await startNavigation(redirectHistoryAction, redirectLocation, { overrideNavigation, // Send fetcher submissions through for shouldRevalidate fetcherSubmission, // Preserve these flags across redirects preventScrollReset: preventScrollReset || pendingPreventScrollReset, enableViewTransition: isNavigation ? pendingViewTransitionEnabled : undefined }); } } // Utility wrapper for calling dataStrategy client-side without having to // pass around the manifest, mapRouteProperties, etc. async function callDataStrategy(type, state, request, matchesToLoad, matches, fetcherKey) { let results; let dataResults = {}; try { results = await callDataStrategyImpl(dataStrategyImpl, type, state, request, matchesToLoad, matches, fetcherKey, manifest, mapRouteProperties); } catch (e) { // If the outer dataStrategy method throws, just return the error for all // matches - and it'll naturally bubble to the root matchesToLoad.forEach(m => { dataResults[m.route.id] = { type: ResultType.error, error: e }; }); return dataResults; } for (let [routeId, result] of Object.entries(results)) { if (isRedirectDataStrategyResultResult(result)) { let response = result.result; dataResults[routeId] = { type: ResultType.redirect, response: normalizeRelativeRoutingRedirectResponse(response, request, routeId, matches, basename, future.v7_relativeSplatPath) }; } else { dataResults[routeId] = await convertDataStrategyResultToDataResult(result); } } return dataResults; } async function callLoadersAndMaybeResolveData(state, matches, matchesToLoad, fetchersToLoad, request) { let currentMatches = state.matches; // Kick off loaders and fetchers in parallel let loaderResultsPromise = callDataStrategy("loader", state, request, matchesToLoad, matches, null); let fetcherResultsPromise = Promise.all(fetchersToLoad.map(async f => { if (f.matches && f.match && f.controller) { let results = await callDataStrategy("loader", state, createClientSideRequest(init.history, f.path, f.controller.signal), [f.match], f.matches, f.key); let result = results[f.match.route.id]; // Fetcher results are keyed by fetcher key from here on out, not routeId return { [f.key]: result }; } else { return Promise.resolve({ [f.key]: { type: ResultType.error, error: getInternalRouterError(404, { pathname: f.path }) } }); } })); let loaderResults = await loaderResultsPromise; let fetcherResults = (await fetcherResultsPromise).reduce((acc, r) => Object.assign(acc, r), {}); await Promise.all([resolveNavigationDeferredResults(matches, loaderResults, request.signal, currentMatches, state.loaderData), resolveFetcherDeferredResults(matches, fetcherResults, fetchersToLoad)]); return { loaderResults, fetcherResults }; } function interruptActiveLoads() { // Every interruption triggers a revalidation isRevalidationRequired = true; // Cancel pending route-level deferreds and mark cancelled routes for // revalidation cancelledDeferredRoutes.push(...cancelActiveDeferreds()); // Abort in-flight fetcher loads fetchLoadMatches.forEach((_, key) => { if (fetchControllers.has(key)) { cancelledFetcherLoads.add(key); } abortFetcher(key); }); } function updateFetcherState(key, fetcher, opts) { if (opts === void 0) { opts = {}; } state.fetchers.set(key, fetcher); updateState({ fetchers: new Map(state.fetchers) }, { flushSync: (opts && opts.flushSync) === true }); } function setFetcherError(key, routeId, error, opts) { if (opts === void 0) { opts = {}; } let boundaryMatch = findNearestBoundary(state.matches, routeId); deleteFetcher(key); updateState({ errors: { [boundaryMatch.route.id]: error }, fetchers: new Map(state.fetchers) }, { flushSync: (opts && opts.flushSync) === true }); } function getFetcher(key) { activeFetchers.set(key, (activeFetchers.get(key) || 0) + 1); // If this fetcher was previously marked for deletion, unmark it since we // have a new instance if (deletedFetchers.has(key)) { deletedFetchers.delete(key); } return state.fetchers.get(key) || IDLE_FETCHER; } function deleteFetcher(key) { let fetcher = state.fetchers.get(key); // Don't abort the controller if this is a deletion of a fetcher.submit() // in it's loading phase since - we don't want to abort the corresponding // revalidation and want them to complete and land if (fetchControllers.has(key) && !(fetcher && fetcher.state === "loading" && fetchReloadIds.has(key))) { abortFetcher(key); } fetchLoadMatches.delete(key); fetchReloadIds.delete(key); fetchRedirectIds.delete(key); // If we opted into the flag we can clear this now since we're calling // deleteFetcher() at the end of updateState() and we've already handed the // deleted fetcher keys off to the data layer. // If not, we're eagerly calling deleteFetcher() and we need to keep this // Set populated until the next updateState call, and we'll clear // `deletedFetchers` then if (future.v7_fetcherPersist) { deletedFetchers.delete(key); } cancelledFetcherLoads.delete(key); state.fetchers.delete(key); } function deleteFetcherAndUpdateState(key) { let count = (activeFetchers.get(key) || 0) - 1; if (count <= 0) { activeFetchers.delete(key); deletedFetchers.add(key); if (!future.v7_fetcherPersist) { deleteFetcher(key); } } else { activeFetchers.set(key, count); } updateState({ fetchers: new Map(state.fetchers) }); } function abortFetcher(key) { let controller = fetchControllers.get(key); if (controller) { controller.abort(); fetchControllers.delete(key); } } function markFetchersDone(keys) { for (let key of keys) { let fetcher = getFetcher(key); let doneFetcher = getDoneFetcher(fetcher.data); state.fetchers.set(key, doneFetcher); } } function markFetchRedirectsDone() { let doneKeys = []; let updatedFetchers = false; for (let key of fetchRedirectIds) { let fetcher = state.fetchers.get(key); invariant(fetcher, "Expected fetcher: " + key); if (fetcher.state === "loading") { fetchRedirectIds.delete(key); doneKeys.push(key); updatedFetchers = true; } } markFetchersDone(doneKeys); return updatedFetchers; } function abortStaleFetchLoads(landedId) { let yeetedKeys = []; for (let [key, id] of fetchReloadIds) { if (id < landedId) { let fetcher = state.fetchers.get(key); invariant(fetcher, "Expected fetcher: " + key); if (fetcher.state === "loading") { abortFetcher(key); fetchReloadIds.delete(key); yeetedKeys.push(key); } } } markFetchersDone(yeetedKeys); return yeetedKeys.length > 0; } function getBlocker(key, fn) { let blocker = state.blockers.get(key) || IDLE_BLOCKER; if (blockerFunctions.get(key) !== fn) { blockerFunctions.set(key, fn); } return blocker; } function deleteBlocker(key) { state.blockers.delete(key); blockerFunctions.delete(key); } // Utility function to update blockers, ensuring valid state transitions function updateBlocker(key, newBlocker) { let blocker = state.blockers.get(key) || IDLE_BLOCKER; // Poor mans state machine :) // https://mermaid.live/edit#pako:eNqVkc9OwzAMxl8l8nnjAYrEtDIOHEBIgwvKJTReGy3_lDpIqO27k6awMG0XcrLlnz87nwdonESogKXXBuE79rq75XZO3-yHds0RJVuv70YrPlUrCEe2HfrORS3rubqZfuhtpg5C9wk5tZ4VKcRUq88q9Z8RS0-48cE1iHJkL0ugbHuFLus9L6spZy8nX9MP2CNdomVaposqu3fGayT8T8-jJQwhepo_UtpgBQaDEUom04dZhAN1aJBDlUKJBxE1ceB2Smj0Mln-IBW5AFU2dwUiktt_2Qaq2dBfaKdEup85UV7Yd-dKjlnkabl2Pvr0DTkTreM invariant(blocker.state === "unblocked" && newBlocker.state === "blocked" || blocker.state === "blocked" && newBlocker.state === "blocked" || blocker.state === "blocked" && newBlocker.state === "proceeding" || blocker.state === "blocked" && newBlocker.state === "unblocked" || blocker.state === "proceeding" && newBlocker.state === "unblocked", "Invalid blocker state transition: " + blocker.state + " -> " + newBlocker.state); let blockers = new Map(state.blockers); blockers.set(key, newBlocker); updateState({ blockers }); } function shouldBlockNavigation(_ref2) { let { currentLocation, nextLocation, historyAction } = _ref2; if (blockerFunctions.size === 0) { return; } // We ony support a single active blocker at the moment since we don't have // any compelling use cases for multi-blocker yet if (blockerFunctions.size > 1) { warning(false, "A router only supports one blocker at a time"); } let entries = Array.from(blockerFunctions.entries()); let [blockerKey, blockerFunction] = entries[entries.length - 1]; let blocker = state.blockers.get(blockerKey); if (blocker && blocker.state === "proceeding") { // If the blocker is currently proceeding, we don't need to re-check // it and can let this navigation continue return; } // At this point, we know we're unblocked/blocked so we need to check the // user-provided blocker function if (blockerFunction({ currentLocation, nextLocation, historyAction })) { return blockerKey; } } function handleNavigational404(pathname) { let error = getInternalRouterError(404, { pathname }); let routesToUse = inFlightDataRoutes || dataRoutes; let { matches, route } = getShortCircuitMatches(routesToUse); // Cancel all pending deferred on 404s since we don't keep any routes cancelActiveDeferreds(); return { notFoundMatches: matches, route, error }; } function cancelActiveDeferreds(predicate) { let cancelledRouteIds = []; activeDeferreds.forEach((dfd, routeId) => { if (!predicate || predicate(routeId)) { // Cancel the deferred - but do not remove from activeDeferreds here - // we rely on the subscribers to do that so our tests can assert proper // cleanup via _internalActiveDeferreds dfd.cancel(); cancelledRouteIds.push(routeId); activeDeferreds.delete(routeId); } }); return cancelledRouteIds; } // Opt in to capturing and reporting scroll positions during navigations, // used by the <ScrollRestoration> component function enableScrollRestoration(positions, getPosition, getKey) { savedScrollPositions = positions; getScrollPosition = getPosition; getScrollRestorationKey = getKey || null; // Perform initial hydration scroll restoration, since we miss the boat on // the initial updateState() because we've not yet rendered <ScrollRestoration/> // and therefore have no savedScrollPositions available if (!initialScrollRestored && state.navigation === IDLE_NAVIGATION) { initialScrollRestored = true; let y = getSavedScrollPosition(state.location, state.matches); if (y != null) { updateState({ restoreScrollPosition: y }); } } return () => { savedScrollPositions = null; getScrollPosition = null; getScrollRestorationKey = null; }; } function getScrollKey(location, matches) { if (getScrollRestorationKey) { let key = getScrollRestorationKey(location, matches.map(m => convertRouteMatchToUiMatch(m, state.loaderData))); return key || location.key; } return location.key; } function saveScrollPosition(location, matches) { if (savedScrollPositions && getScrollPosition) { let key = getScrollKey(location, matches); savedScrollPositions[key] = getScrollPosition(); } } function getSavedScrollPosition(location, matches) { if (savedScrollPositions) { let key = getScrollKey(location, matches); let y = savedScrollPositions[key]; if (typeof y === "number") { return y; } } return null; } function checkFogOfWar(matches, routesToUse, pathname) { if (patchRoutesOnNavigationImpl) { if (!matches) { let fogMatches = matchRoutesImpl(routesToUse, pathname, basename, true); return { active: true, matches: fogMatches || [] }; } else { if (Object.keys(matches[0].params).length > 0) { // If we matched a dynamic param or a splat, it might only be because // we haven't yet discovered other routes that would match with a // higher score. Call patchRoutesOnNavigation just to be sure let partialMatches = matchRoutesImpl(routesToUse, pathname, basename, true); return { active: true, matches: partialMatches }; } } } return { active: false, matches: null }; } async function discoverRoutes(matches, pathname, signal, fetcherKey) { if (!patchRoutesOnNavigationImpl) { return { type: "success", matches }; } let partialMatches = matches; while (true) { let isNonHMR = inFlightDataRoutes == null; let routesToUse = inFlightDataRoutes || dataRoutes; let localManifest = manifest; try { await patchRoutesOnNavigationImpl({ signal, path: pathname, matches: partialMatches, fetcherKey, patch: (routeId, children) => { if (signal.aborted) return; patchRoutesImpl(routeId, children, routesToUse, localManifest, mapRouteProperties); } }); } catch (e) { return { type: "error", error: e, partialMatches }; } finally { // If we are not in the middle of an HMR revalidation and we changed the // routes, provide a new identity so when we `updateState` at the end of // this navigation/fetch `router.routes` will be a new identity and // trigger a re-run of memoized `router.routes` dependencies. // HMR will already update the identity and reflow when it lands // `inFlightDataRoutes` in `completeNavigation` if (isNonHMR && !signal.aborted) { dataRoutes = [...dataRoutes]; } } if (signal.aborted) { return { type: "aborted" }; } let newMatches = matchRoutes(routesToUse, pathname, basename); if (newMatches) { return { type: "success", matches: newMatches }; } let newPartialMatches = matchRoutesImpl(routesToUse, pathname, basename, true); // Avoid loops if the second pass results in the same partial matches if (!newPartialMatches || partialMatches.length === newPartialMatches.length && partialMatches.every((m, i) => m.route.id === newPartialMatches[i].route.id)) { return { type: "success", matches: null }; } partialMatches = newPartialMatches; } } function _internalSetRoutes(newRoutes) { manifest = {}; inFlightDataRoutes = convertRoutesToDataRoutes(newRoutes, mapRouteProperties, undefined, manifest); } function patchRoutes(routeId, children) { let isNonHMR = inFlightDataRoutes == null; let routesToUse = inFlightDataRoutes || dataRoutes; patchRoutesImpl(routeId, children, routesToUse, manifest, mapRouteProperties); // If we are not in the middle of an HMR revalidation and we changed the // routes, provide a new identity and trigger a reflow via `updateState` // to re-run memoized `router.routes` dependencies. // HMR will already update the identity and reflow when it lands // `inFlightDataRoutes` in `completeNavigation` if (isNonHMR) { dataRoutes = [...dataRoutes]; updateState({}); } } router = { get basename() { return basename; }, get future() { return future; }, get state() { return state; }, get routes() { return dataRoutes; }, get window() { return routerWindow; }, initialize, subscribe, enableScrollRestoration, navigate, fetch, revalidate, // Passthrough to history-aware createHref used by useHref so we get proper // hash-aware URLs in DOM paths createHref: to => init.history.createHref(to), encodeLocation: to => init.history.encodeLocation(to), getFetcher, deleteFetcher: deleteFetcherAndUpdateState, dispose, getBlocker, deleteBlocker, patchRoutes, _internalFetchControllers: fetchControllers, _internalActiveDeferreds: activeDeferreds, // TODO: Remove setRoutes, it's temporary to avoid dealing with // updating the tree while validating the update algorithm. _internalSetRoutes }; return router; } //#endregion //////////////////////////////////////////////////////////////////////////////// //#region createStaticHandler //////////////////////////////////////////////////////////////////////////////// const UNSAFE_DEFERRED_SYMBOL = Symbol("deferred"); function createStaticHandler(routes, opts) { invariant(routes.length > 0, "You must provide a non-empty routes array to createStaticHandler"); let manifest = {}; let basename = (opts ? opts.basename : null) || "/"; let mapRouteProperties; if (opts != null && opts.mapRouteProperties) { mapRouteProperties = opts.mapRouteProperties; } else if (opts != null && opts.detectErrorBoundary) { // If they are still using the deprecated version, wrap it with the new API let detectErrorBoundary = opts.detectErrorBoundary; mapRouteProperties = route => ({ hasErrorBoundary: detectErrorBoundary(route) }); } else { mapRouteProperties = defaultMapRouteProperties; } // Config driven behavior flags let future = _extends({ v7_relativeSplatPath: false, v7_throwAbortReason: false }, opts ? opts.future : null); let dataRoutes = convertRoutesToDataRoutes(routes, mapRouteProperties, undefined, manifest); /** * The query() method is intended for document requests, in which we want to * call an optional action and potentially multiple loaders for all nested * routes. It returns a StaticHandlerContext object, which is very similar * to the router state (location, loaderData, actionData, errors, etc.) and * also adds SSR-specific information such as the statusCode and headers * from action/loaders Responses. * * It _should_ never throw and should report all errors through the * returned context.errors object, properly associating errors to their error * boundary. Additionally, it tracks _deepestRenderedBoundaryId which can be * used to emulate React error boundaries during SSr by performing a second * pass only down to the boundaryId. * * The one exception where we do not return a StaticHandlerContext is when a * redirect response is returned or thrown from any action/loader. We * propagate that out and return the raw Response so the HTTP server can * return it directly. * * - `opts.requestContext` is an optional server context that will be passed * to actions/loaders in the `context` parameter * - `opts.skipLoaderErrorBubbling` is an optional parameter that will prevent * the bubbling of errors which allows single-fetch-type implementations * where the client will handle the bubbling and we may need to return data * for the handling route */ async function query(request, _temp3) { let { requestContext, skipLoaderErrorBubbling, dataStrategy } = _temp3 === void 0 ? {} : _temp3; let url = new URL(request.url); let method = request.method; let location = createLocation("", createPath(url), null, "default"); let matches = matchRoutes(dataRoutes, location, basename); // SSR supports HEAD requests while SPA doesn't if (!isValidMethod(method) && method !== "HEAD") { let error = getInternalRouterError(405, { method }); let { matches: methodNotAllowedMatches, route } = getShortCircuitMatches(dataRoutes); return { basename, location, matches: methodNotAllowedMatches, loaderData: {}, actionData: null, errors: { [route.id]: error }, statusCode: error.status, loaderHeaders: {}, actionHeaders: {}, activeDeferreds: null }; } else if (!matches) { let error = getInternalRouterError(404, { pathname: location.pathname }); let { matches: notFoundMatches, route } = getShortCircuitMatches(dataRoutes); return { basename, location, matches: notFoundMatches, loaderData: {}, actionData: null, errors: { [route.id]: error }, statusCode: error.status, loaderHeaders: {}, actionHeaders: {}, activeDeferreds: null }; } let result = await queryImpl(request, location, matches, requestContext, dataStrategy || null, skipLoaderErrorBubbling === true, null); if (isResponse(result)) { return result; } // When returning StaticHandlerContext, we patch back in the location here // since we need it for React Context. But this helps keep our submit and // loadRouteData operating on a Request instead of a Location return _extends({ location, basename }, result); } /** * The queryRoute() method is intended for targeted route requests, either * for fetch ?_data requests or resource route requests. In this case, we * are only ever calling a single action or loader, and we are returning the * returned value directly. In most cases, this will be a Response returned * from the action/loader, but it may be a primitive or other value as well - * and in such cases the calling context should handle that accordingly. * * We do respect the throw/return differentiation, so if an action/loader * throws, then this method will throw the value. This is important so we * can do proper boundary identification in Remix where a thrown Response * must go to the Catch Boundary but a returned Response is happy-path. * * One thing to note is that any Router-initiated Errors that make sense * to associate with a status code will be thrown as an ErrorResponse * instance which include the raw Error, such that the calling context can * serialize the error as they see fit while including the proper response * code. Examples here are 404 and 405 errors that occur prior to reaching * any user-defined loaders. * * - `opts.routeId` allows you to specify the specific route handler to call. * If not provided the handler will determine the proper route by matching * against `request.url` * - `opts.requestContext` is an optional server context that will be passed * to actions/loaders in the `context` parameter */ async function queryRoute(request, _temp4) { let { routeId, requestContext, dataStrategy } = _temp4 === void 0 ? {} : _temp4; let url = new URL(request.url); let method = request.method; let location = createLocation("", createPath(url), null, "default"); let matches = matchRoutes(dataRoutes, location, basename); // SSR supports HEAD requests while SPA doesn't if (!isValidMethod(method) && method !== "HEAD" && method !== "OPTIONS") { throw getInternalRouterError(405, { method }); } else if (!matches) { throw getInternalRouterError(404, { pathname: location.pathname }); } let match = routeId ? matches.find(m => m.route.id === routeId) : getTargetMatch(matches, location); if (routeId && !match) { throw getInternalRouterError(403, { pathname: location.pathname, routeId }); } else if (!match) { // This should never hit I don't think? throw getInternalRouterError(404, { pathname: location.pathname }); } let result = await queryImpl(request, location, matches, requestContext, dataStrategy || null, false, match); if (isResponse(result)) { return result; } let error = result.errors ? Object.values(result.errors)[0] : undefined; if (error !== undefined) { // If we got back result.errors, that means the loader/action threw // _something_ that wasn't a Response, but it's not guaranteed/required // to be an `instanceof Error` either, so we have to use throw here to // preserve the "error" state outside of queryImpl. throw error; } // Pick off the right state value to return if (result.actionData) { return Object.values(result.actionData)[0]; } if (result.loaderData) { var _result$activeDeferre; let data = Object.values(result.loaderData)[0]; if ((_result$activeDeferre = result.activeDeferreds) != null && _result$activeDeferre[match.route.id]) { data[UNSAFE_DEFERRED_SYMBOL] = result.activeDeferreds[match.route.id]; } return data; } return undefined; } async function queryImpl(request, location, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, routeMatch) { invariant(request.signal, "query()/queryRoute() requests must contain an AbortController signal"); try { if (isMutationMethod(request.method.toLowerCase())) { let result = await submit(request, matches, routeMatch || getTargetMatch(matches, location), requestContext, dataStrategy, skipLoaderErrorBubbling, routeMatch != null); return result; } let result = await loadRouteData(request, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, routeMatch); return isResponse(result) ? result : _extends({}, result, { actionData: null, actionHeaders: {} }); } catch (e) { // If the user threw/returned a Response in callLoaderOrAction for a // `queryRoute` call, we throw the `DataStrategyResult` to bail out early // and then return or throw the raw Response here accordingly if (isDataStrategyResult(e) && isResponse(e.result)) { if (e.type === ResultType.error) { throw e.result; } return e.result; } // Redirects are always returned since they don't propagate to catch // boundaries if (isRedirectResponse(e)) { return e; } throw e; } } async function submit(request, matches, actionMatch, requestContext, dataStrategy, skipLoaderErrorBubbling, isRouteRequest) { let result; if (!actionMatch.route.action && !actionMatch.route.lazy) { let error = getInternalRouterError(405, { method: request.method, pathname: new URL(request.url).pathname, routeId: actionMatch.route.id }); if (isRouteRequest) { throw error; } result = { type: ResultType.error, error }; } else { let results = await callDataStrategy("action", request, [actionMatch], matches, isRouteRequest, requestContext, dataStrategy); result = results[actionMatch.route.id]; if (request.signal.aborted) { throwStaticHandlerAbortedError(request, isRouteRequest, future); } } if (isRedirectResult(result)) { // Uhhhh - this should never happen, we should always throw these from // callLoaderOrAction, but the type narrowing here keeps TS happy and we // can get back on the "throw all redirect responses" train here should // this ever happen :/ throw new Response(null, { status: result.response.status, headers: { Location: result.response.headers.get("Location") } }); } if (isDeferredResult(result)) { let error = getInternalRouterError(400, { type: "defer-action" }); if (isRouteRequest) { throw error; } result = { type: ResultType.error, error }; } if (isRouteRequest) { // Note: This should only be non-Response values if we get here, since // isRouteRequest should throw any Response received in callLoaderOrAction if (isErrorResult(result)) { throw result.error; } return { matches: [actionMatch], loaderData: {}, actionData: { [actionMatch.route.id]: result.data }, errors: null, // Note: statusCode + headers are unused here since queryRoute will // return the raw Response or value statusCode: 200, loaderHeaders: {}, actionHeaders: {}, activeDeferreds: null }; } // Create a GET request for the loaders let loaderRequest = new Request(request.url, { headers: request.headers, redirect: request.redirect, signal: request.signal }); if (isErrorResult(result)) { // Store off the pending error - we use it to determine which loaders // to call and will commit it when we complete the navigation let boundaryMatch = skipLoaderErrorBubbling ? actionMatch : findNearestBoundary(matches, actionMatch.route.id); let context = await loadRouteData(loaderRequest, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, null, [boundaryMatch.route.id, result]); // action status codes take precedence over loader status codes return _extends({}, context, { statusCode: isRouteErrorResponse(result.error) ? result.error.status : result.statusCode != null ? result.statusCode : 500, actionData: null, actionHeaders: _extends({}, result.headers ? { [actionMatch.route.id]: result.headers } : {}) }); } let context = await loadRouteData(loaderRequest, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, null); return _extends({}, context, { actionData: { [actionMatch.route.id]: result.data } }, result.statusCode ? { statusCode: result.statusCode } : {}, { actionHeaders: result.headers ? { [actionMatch.route.id]: result.headers } : {} }); } async function loadRouteData(request, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, routeMatch, pendingActionResult) { let isRouteRequest = routeMatch != null; // Short circuit if we have no loaders to run (queryRoute()) if (isRouteRequest && !(routeMatch != null && routeMatch.route.loader) && !(routeMatch != null && routeMatch.route.lazy)) { throw getInternalRouterError(400, { method: request.method, pathname: new URL(request.url).pathname, routeId: routeMatch == null ? void 0 : routeMatch.route.id }); } let requestMatches = routeMatch ? [routeMatch] : pendingActionResult && isErrorResult(pendingActionResult[1]) ? getLoaderMatchesUntilBoundary(matches, pendingActionResult[0]) : matches; let matchesToLoad = requestMatches.filter(m => m.route.loader || m.route.lazy); // Short circuit if we have no loaders to run (query()) if (matchesToLoad.length === 0) { return { matches, // Add a null for all matched routes for proper revalidation on the client loaderData: matches.reduce((acc, m) => Object.assign(acc, { [m.route.id]: null }), {}), errors: pendingActionResult && isErrorResult(pendingActionResult[1]) ? { [pendingActionResult[0]]: pendingActionResult[1].error } : null, statusCode: 200, loaderHeaders: {}, activeDeferreds: null }; } let results = await callDataStrategy("loader", request, matchesToLoad, matches, isRouteRequest, requestContext, dataStrategy); if (request.signal.aborted) { throwStaticHandlerAbortedError(request, isRouteRequest, future); } // Process and commit output from loaders let activeDeferreds = new Map(); let context = processRouteLoaderData(matches, results, pendingActionResult, activeDeferreds, skipLoaderErrorBubbling); // Add a null for any non-loader matches for proper revalidation on the client let executedLoaders = new Set(matchesToLoad.map(match => match.route.id)); matches.forEach(match => { if (!executedLoaders.has(match.route.id)) { context.loaderData[match.route.id] = null; } }); return _extends({}, context, { matches, activeDeferreds: activeDeferreds.size > 0 ? Object.fromEntries(activeDeferreds.entries()) : null }); } // Utility wrapper for calling dataStrategy server-side without having to // pass around the manifest, mapRouteProperties, etc. async function callDataStrategy(type, request, matchesToLoad, matches, isRouteRequest, requestContext, dataStrategy) { let results = await callDataStrategyImpl(dataStrategy || defaultDataStrategy, type, null, request, matchesToLoad, matches, null, manifest, mapRouteProperties, requestContext); let dataResults = {}; await Promise.all(matches.map(async match => { if (!(match.route.id in results)) { return; } let result = results[match.route.id]; if (isRedirectDataStrategyResultResult(result)) { let response = result.result; // Throw redirects and let the server handle them with an HTTP redirect throw normalizeRelativeRoutingRedirectResponse(response, request, match.route.id, matches, basename, future.v7_relativeSplatPath); } if (isResponse(result.result) && isRouteRequest) { // For SSR single-route requests, we want to hand Responses back // directly without unwrapping throw result; } dataResults[match.route.id] = await convertDataStrategyResultToDataResult(result); })); return dataResults; } return { dataRoutes, query, queryRoute }; } //#endregion //////////////////////////////////////////////////////////////////////////////// //#region Helpers //////////////////////////////////////////////////////////////////////////////// /** * Given an existing StaticHandlerContext and an error thrown at render time, * provide an updated StaticHandlerContext suitable for a second SSR render */ function getStaticContextFromError(routes, context, error) { let newContext = _extends({}, context, { statusCode: isRouteErrorResponse(error) ? error.status : 500, errors: { [context._deepestRenderedBoundaryId || routes[0].id]: error } }); return newContext; } function throwStaticHandlerAbortedError(request, isRouteRequest, future) { if (future.v7_throwAbortReason && request.signal.reason !== undefined) { throw request.signal.reason; } let method = isRouteRequest ? "queryRoute" : "query"; throw new Error(method + "() call aborted: " + request.method + " " + request.url); } function isSubmissionNavigation(opts) { return opts != null && ("formData" in opts && opts.formData != null || "body" in opts && opts.body !== undefined); } function normalizeTo(location, matches, basename, prependBasename, to, v7_relativeSplatPath, fromRouteId, relative) { let contextualMatches; let activeRouteMatch; if (fromRouteId) { // Grab matches up to the calling route so our route-relative logic is // relative to the correct source route contextualMatches = []; for (let match of matches) { contextualMatches.push(match); if (match.route.id === fromRouteId) { activeRouteMatch = match; break; } } } else { contextualMatches = matches; activeRouteMatch = matches[matches.length - 1]; } // Resolve the relative path let path = resolveTo(to ? to : ".", getResolveToMatches(contextualMatches, v7_relativeSplatPath), stripBasename(location.pathname, basename) || location.pathname, relative === "path"); // When `to` is not specified we inherit search/hash from the current // location, unlike when to="." and we just inherit the path. // See https://github.com/remix-run/remix/issues/927 if (to == null) { path.search = location.search; path.hash = location.hash; } // Account for `?index` params when routing to the current location if ((to == null || to === "" || to === ".") && activeRouteMatch) { let nakedIndex = hasNakedIndexQuery(path.search); if (activeRouteMatch.route.index && !nakedIndex) { // Add one when we're targeting an index route path.search = path.search ? path.search.replace(/^\?/, "?index&") : "?index"; } else if (!activeRouteMatch.route.index && nakedIndex) { // Remove existing ones when we're not let params = new URLSearchParams(path.search); let indexValues = params.getAll("index"); params.delete("index"); indexValues.filter(v => v).forEach(v => params.append("index", v)); let qs = params.toString(); path.search = qs ? "?" + qs : ""; } } // If we're operating within a basename, prepend it to the pathname. If // this is a root navigation, then just use the raw basename which allows // the basename to have full control over the presence of a trailing slash // on root actions if (prependBasename && basename !== "/") { path.pathname = path.pathname === "/" ? basename : joinPaths([basename, path.pathname]); } return createPath(path); } // Normalize navigation options by converting formMethod=GET formData objects to // URLSearchParams so they behave identically to links with query params function normalizeNavigateOptions(normalizeFormMethod, isFetcher, path, opts) { // Return location verbatim on non-submission navigations if (!opts || !isSubmissionNavigation(opts)) { return { path }; } if (opts.formMethod && !isValidMethod(opts.formMethod)) { return { path, error: getInternalRouterError(405, { method: opts.formMethod }) }; } let getInvalidBodyError = () => ({ path, error: getInternalRouterError(400, { type: "invalid-body" }) }); // Create a Submission on non-GET navigations let rawFormMethod = opts.formMethod || "get"; let formMethod = normalizeFormMethod ? rawFormMethod.toUpperCase() : rawFormMethod.toLowerCase(); let formAction = stripHashFromPath(path); if (opts.body !== undefined) { if (opts.formEncType === "text/plain") { // text only support POST/PUT/PATCH/DELETE submissions if (!isMutationMethod(formMethod)) { return getInvalidBodyError(); } let text = typeof opts.body === "string" ? opts.body : opts.body instanceof FormData || opts.body instanceof URLSearchParams ? // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#plain-text-form-data Array.from(opts.body.entries()).reduce((acc, _ref3) => { let [name, value] = _ref3; return "" + acc + name + "=" + value + "\n"; }, "") : String(opts.body); return { path, submission: { formMethod, formAction, formEncType: opts.formEncType, formData: undefined, json: undefined, text } }; } else if (opts.formEncType === "application/json") { // json only supports POST/PUT/PATCH/DELETE submissions if (!isMutationMethod(formMethod)) { return getInvalidBodyError(); } try { let json = typeof opts.body === "string" ? JSON.parse(opts.body) : opts.body; return { path, submission: { formMethod, formAction, formEncType: opts.formEncType, formData: undefined, json, text: undefined } }; } catch (e) { return getInvalidBodyError(); } } } invariant(typeof FormData === "function", "FormData is not available in this environment"); let searchParams; let formData; if (opts.formData) { searchParams = convertFormDataToSearchParams(opts.formData); formData = opts.formData; } else if (opts.body instanceof FormData) { searchParams = convertFormDataToSearchParams(opts.body); formData = opts.body; } else if (opts.body instanceof URLSearchParams) { searchParams = opts.body; formData = convertSearchParamsToFormData(searchParams); } else if (opts.body == null) { searchParams = new URLSearchParams(); formData = new FormData(); } else { try { searchParams = new URLSearchParams(opts.body); formData = convertSearchParamsToFormData(searchParams); } catch (e) { return getInvalidBodyError(); } } let submission = { formMethod, formAction, formEncType: opts && opts.formEncType || "application/x-www-form-urlencoded", formData, json: undefined, text: undefined }; if (isMutationMethod(submission.formMethod)) { return { path, submission }; } // Flatten submission onto URLSearchParams for GET submissions let parsedPath = parsePath(path); // On GET navigation submissions we can drop the ?index param from the // resulting location since all loaders will run. But fetcher GET submissions // only run a single loader so we need to preserve any incoming ?index params if (isFetcher && parsedPath.search && hasNakedIndexQuery(parsedPath.search)) { searchParams.append("index", ""); } parsedPath.search = "?" + searchParams; return { path: createPath(parsedPath), submission }; } // Filter out all routes at/below any caught error as they aren't going to // render so we don't need to load them function getLoaderMatchesUntilBoundary(matches, boundaryId, includeBoundary) { if (includeBoundary === void 0) { includeBoundary = false; } let index = matches.findIndex(m => m.route.id === boundaryId); if (index >= 0) { return matches.slice(0, includeBoundary ? index + 1 : index); } return matches; } function getMatchesToLoad(history, state, matches, submission, location, initialHydration, skipActionErrorRevalidation, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, deletedFetchers, fetchLoadMatches, fetchRedirectIds, routesToUse, basename, pendingActionResult) { let actionResult = pendingActionResult ? isErrorResult(pendingActionResult[1]) ? pendingActionResult[1].error : pendingActionResult[1].data : undefined; let currentUrl = history.createURL(state.location); let nextUrl = history.createURL(location); // Pick navigation matches that are net-new or qualify for revalidation let boundaryMatches = matches; if (initialHydration && state.errors) { // On initial hydration, only consider matches up to _and including_ the boundary. // This is inclusive to handle cases where a server loader ran successfully, // a child server loader bubbled up to this route, but this route has // `clientLoader.hydrate` so we want to still run the `clientLoader` so that // we have a complete version of `loaderData` boundaryMatches = getLoaderMatchesUntilBoundary(matches, Object.keys(state.errors)[0], true); } else if (pendingActionResult && isErrorResult(pendingActionResult[1])) { // If an action threw an error, we call loaders up to, but not including the // boundary boundaryMatches = getLoaderMatchesUntilBoundary(matches, pendingActionResult[0]); } // Don't revalidate loaders by default after action 4xx/5xx responses // when the flag is enabled. They can still opt-into revalidation via // `shouldRevalidate` via `actionResult` let actionStatus = pendingActionResult ? pendingActionResult[1].statusCode : undefined; let shouldSkipRevalidation = skipActionErrorRevalidation && actionStatus && actionStatus >= 400; let navigationMatches = boundaryMatches.filter((match, index) => { let { route } = match; if (route.lazy) { // We haven't loaded this route yet so we don't know if it's got a loader! return true; } if (route.loader == null) { return false; } if (initialHydration) { return shouldLoadRouteOnHydration(route, state.loaderData, state.errors); } // Always call the loader on new route instances and pending defer cancellations if (isNewLoader(state.loaderData, state.matches[index], match) || cancelledDeferredRoutes.some(id => id === match.route.id)) { return true; } // This is the default implementation for when we revalidate. If the route // provides it's own implementation, then we give them full control but // provide this value so they can leverage it if needed after they check // their own specific use cases let currentRouteMatch = state.matches[index]; let nextRouteMatch = match; return shouldRevalidateLoader(match, _extends({ currentUrl, currentParams: currentRouteMatch.params, nextUrl, nextParams: nextRouteMatch.params }, submission, { actionResult, actionStatus, defaultShouldRevalidate: shouldSkipRevalidation ? false : // Forced revalidation due to submission, useRevalidator, or X-Remix-Revalidate isRevalidationRequired || currentUrl.pathname + currentUrl.search === nextUrl.pathname + nextUrl.search || // Search params affect all loaders currentUrl.search !== nextUrl.search || isNewRouteInstance(currentRouteMatch, nextRouteMatch) })); }); // Pick fetcher.loads that need to be revalidated let revalidatingFetchers = []; fetchLoadMatches.forEach((f, key) => { // Don't revalidate: // - on initial hydration (shouldn't be any fetchers then anyway) // - if fetcher won't be present in the subsequent render // - no longer matches the URL (v7_fetcherPersist=false) // - was unmounted but persisted due to v7_fetcherPersist=true if (initialHydration || !matches.some(m => m.route.id === f.routeId) || deletedFetchers.has(key)) { return; } let fetcherMatches = matchRoutes(routesToUse, f.path, basename); // If the fetcher path no longer matches, push it in with null matches so // we can trigger a 404 in callLoadersAndMaybeResolveData. Note this is // currently only a use-case for Remix HMR where the route tree can change // at runtime and remove a route previously loaded via a fetcher if (!fetcherMatches) { revalidatingFetchers.push({ key, routeId: f.routeId, path: f.path, matches: null, match: null, controller: null }); return; } // Revalidating fetchers are decoupled from the route matches since they // load from a static href. They revalidate based on explicit revalidation // (submission, useRevalidator, or X-Remix-Revalidate) let fetcher = state.fetchers.get(key); let fetcherMatch = getTargetMatch(fetcherMatches, f.path); let shouldRevalidate = false; if (fetchRedirectIds.has(key)) { // Never trigger a revalidation of an actively redirecting fetcher shouldRevalidate = false; } else if (cancelledFetcherLoads.has(key)) { // Always mark for revalidation if the fetcher was cancelled cancelledFetcherLoads.delete(key); shouldRevalidate = true; } else if (fetcher && fetcher.state !== "idle" && fetcher.data === undefined) { // If the fetcher hasn't ever completed loading yet, then this isn't a // revalidation, it would just be a brand new load if an explicit // revalidation is required shouldRevalidate = isRevalidationRequired; } else { // Otherwise fall back on any user-defined shouldRevalidate, defaulting // to explicit revalidations only shouldRevalidate = shouldRevalidateLoader(fetcherMatch, _extends({ currentUrl, currentParams: state.matches[state.matches.length - 1].params, nextUrl, nextParams: matches[matches.length - 1].params }, submission, { actionResult, actionStatus, defaultShouldRevalidate: shouldSkipRevalidation ? false : isRevalidationRequired })); } if (shouldRevalidate) { revalidatingFetchers.push({ key, routeId: f.routeId, path: f.path, matches: fetcherMatches, match: fetcherMatch, controller: new AbortController() }); } }); return [navigationMatches, revalidatingFetchers]; } function shouldLoadRouteOnHydration(route, loaderData, errors) { // We dunno if we have a loader - gotta find out! if (route.lazy) { return true; } // No loader, nothing to initialize if (!route.loader) { return false; } let hasData = loaderData != null && loaderData[route.id] !== undefined; let hasError = errors != null && errors[route.id] !== undefined; // Don't run if we error'd during SSR if (!hasData && hasError) { return false; } // Explicitly opting-in to running on hydration if (typeof route.loader === "function" && route.loader.hydrate === true) { return true; } // Otherwise, run if we're not yet initialized with anything return !hasData && !hasError; } function isNewLoader(currentLoaderData, currentMatch, match) { let isNew = // [a] -> [a, b] !currentMatch || // [a, b] -> [a, c] match.route.id !== currentMatch.route.id; // Handle the case that we don't have data for a re-used route, potentially // from a prior error or from a cancelled pending deferred let isMissingData = currentLoaderData[match.route.id] === undefined; // Always load if this is a net-new route or we don't yet have data return isNew || isMissingData; } function isNewRouteInstance(currentMatch, match) { let currentPath = currentMatch.route.path; return ( // param change for this match, /users/123 -> /users/456 currentMatch.pathname !== match.pathname || // splat param changed, which is not present in match.path // e.g. /files/images/avatar.jpg -> files/finances.xls currentPath != null && currentPath.endsWith("*") && currentMatch.params["*"] !== match.params["*"] ); } function shouldRevalidateLoader(loaderMatch, arg) { if (loaderMatch.route.shouldRevalidate) { let routeChoice = loaderMatch.route.shouldRevalidate(arg); if (typeof routeChoice === "boolean") { return routeChoice; } } return arg.defaultShouldRevalidate; } function patchRoutesImpl(routeId, children, routesToUse, manifest, mapRouteProperties) { var _childrenToPatch; let childrenToPatch; if (routeId) { let route = manifest[routeId]; invariant(route, "No route found to patch children into: routeId = " + routeId); if (!route.children) { route.children = []; } childrenToPatch = route.children; } else { childrenToPatch = routesToUse; } // Don't patch in routes we already know about so that `patch` is idempotent // to simplify user-land code. This is useful because we re-call the // `patchRoutesOnNavigation` function for matched routes with params. let uniqueChildren = children.filter(newRoute => !childrenToPatch.some(existingRoute => isSameRoute(newRoute, existingRoute))); let newRoutes = convertRoutesToDataRoutes(uniqueChildren, mapRouteProperties, [routeId || "_", "patch", String(((_childrenToPatch = childrenToPatch) == null ? void 0 : _childrenToPatch.length) || "0")], manifest); childrenToPatch.push(...newRoutes); } function isSameRoute(newRoute, existingRoute) { // Most optimal check is by id if ("id" in newRoute && "id" in existingRoute && newRoute.id === existingRoute.id) { return true; } // Second is by pathing differences if (!(newRoute.index === existingRoute.index && newRoute.path === existingRoute.path && newRoute.caseSensitive === existingRoute.caseSensitive)) { return false; } // Pathless layout routes are trickier since we need to check children. // If they have no children then they're the same as far as we can tell if ((!newRoute.children || newRoute.children.length === 0) && (!existingRoute.children || existingRoute.children.length === 0)) { return true; } // Otherwise, we look to see if every child in the new route is already // represented in the existing route's children return newRoute.children.every((aChild, i) => { var _existingRoute$childr; return (_existingRoute$childr = existingRoute.children) == null ? void 0 : _existingRoute$childr.some(bChild => isSameRoute(aChild, bChild)); }); } /** * Execute route.lazy() methods to lazily load route modules (loader, action, * shouldRevalidate) and update the routeManifest in place which shares objects * with dataRoutes so those get updated as well. */ async function loadLazyRouteModule(route, mapRouteProperties, manifest) { if (!route.lazy) { return; } let lazyRoute = await route.lazy(); // If the lazy route function was executed and removed by another parallel // call then we can return - first lazy() to finish wins because the return // value of lazy is expected to be static if (!route.lazy) { return; } let routeToUpdate = manifest[route.id]; invariant(routeToUpdate, "No route found in manifest"); // Update the route in place. This should be safe because there's no way // we could yet be sitting on this route as we can't get there without // resolving lazy() first. // // This is different than the HMR "update" use-case where we may actively be // on the route being updated. The main concern boils down to "does this // mutation affect any ongoing navigations or any current state.matches // values?". If not, it should be safe to update in place. let routeUpdates = {}; for (let lazyRouteProperty in lazyRoute) { let staticRouteValue = routeToUpdate[lazyRouteProperty]; let isPropertyStaticallyDefined = staticRouteValue !== undefined && // This property isn't static since it should always be updated based // on the route updates lazyRouteProperty !== "hasErrorBoundary"; warning(!isPropertyStaticallyDefined, "Route \"" + routeToUpdate.id + "\" has a static property \"" + lazyRouteProperty + "\" " + "defined but its lazy function is also returning a value for this property. " + ("The lazy route property \"" + lazyRouteProperty + "\" will be ignored.")); if (!isPropertyStaticallyDefined && !immutableRouteKeys.has(lazyRouteProperty)) { routeUpdates[lazyRouteProperty] = lazyRoute[lazyRouteProperty]; } } // Mutate the route with the provided updates. Do this first so we pass // the updated version to mapRouteProperties Object.assign(routeToUpdate, routeUpdates); // Mutate the `hasErrorBoundary` property on the route based on the route // updates and remove the `lazy` function so we don't resolve the lazy // route again. Object.assign(routeToUpdate, _extends({}, mapRouteProperties(routeToUpdate), { lazy: undefined })); } // Default implementation of `dataStrategy` which fetches all loaders in parallel async function defaultDataStrategy(_ref4) { let { matches } = _ref4; let matchesToLoad = matches.filter(m => m.shouldLoad); let results = await Promise.all(matchesToLoad.map(m => m.resolve())); return results.reduce((acc, result, i) => Object.assign(acc, { [matchesToLoad[i].route.id]: result }), {}); } async function callDataStrategyImpl(dataStrategyImpl, type, state, request, matchesToLoad, matches, fetcherKey, manifest, mapRouteProperties, requestContext) { let loadRouteDefinitionsPromises = matches.map(m => m.route.lazy ? loadLazyRouteModule(m.route, mapRouteProperties, manifest) : undefined); let dsMatches = matches.map((match, i) => { let loadRoutePromise = loadRouteDefinitionsPromises[i]; let shouldLoad = matchesToLoad.some(m => m.route.id === match.route.id); // `resolve` encapsulates route.lazy(), executing the loader/action, // and mapping return values/thrown errors to a `DataStrategyResult`. Users // can pass a callback to take fine-grained control over the execution // of the loader/action let resolve = async handlerOverride => { if (handlerOverride && request.method === "GET" && (match.route.lazy || match.route.loader)) { shouldLoad = true; } return shouldLoad ? callLoaderOrAction(type, request, match, loadRoutePromise, handlerOverride, requestContext) : Promise.resolve({ type: ResultType.data, result: undefined }); }; return _extends({}, match, { shouldLoad, resolve }); }); // Send all matches here to allow for a middleware-type implementation. // handler will be a no-op for unneeded routes and we filter those results // back out below. let results = await dataStrategyImpl({ matches: dsMatches, request, params: matches[0].params, fetcherKey, context: requestContext }); // Wait for all routes to load here but 'swallow the error since we want // it to bubble up from the `await loadRoutePromise` in `callLoaderOrAction` - // called from `match.resolve()` try { await Promise.all(loadRouteDefinitionsPromises); } catch (e) { // No-op } return results; } // Default logic for calling a loader/action is the user has no specified a dataStrategy async function callLoaderOrAction(type, request, match, loadRoutePromise, handlerOverride, staticContext) { let result; let onReject; let runHandler = handler => { // Setup a promise we can race against so that abort signals short circuit let reject; // This will never resolve so safe to type it as Promise<DataStrategyResult> to // satisfy the function return value let abortPromise = new Promise((_, r) => reject = r); onReject = () => reject(); request.signal.addEventListener("abort", onReject); let actualHandler = ctx => { if (typeof handler !== "function") { return Promise.reject(new Error("You cannot call the handler for a route which defines a boolean " + ("\"" + type + "\" [routeId: " + match.route.id + "]"))); } return handler({ request, params: match.params, context: staticContext }, ...(ctx !== undefined ? [ctx] : [])); }; let handlerPromise = (async () => { try { let val = await (handlerOverride ? handlerOverride(ctx => actualHandler(ctx)) : actualHandler()); return { type: "data", result: val }; } catch (e) { return { type: "error", result: e }; } })(); return Promise.race([handlerPromise, abortPromise]); }; try { let handler = match.route[type]; // If we have a route.lazy promise, await that first if (loadRoutePromise) { if (handler) { // Run statically defined handler in parallel with lazy() let handlerError; let [value] = await Promise.all([ // If the handler throws, don't let it immediately bubble out, // since we need to let the lazy() execution finish so we know if this // route has a boundary that can handle the error runHandler(handler).catch(e => { handlerError = e; }), loadRoutePromise]); if (handlerError !== undefined) { throw handlerError; } result = value; } else { // Load lazy route module, then run any returned handler await loadRoutePromise; handler = match.route[type]; if (handler) { // Handler still runs even if we got interrupted to maintain consistency // with un-abortable behavior of handler execution on non-lazy or // previously-lazy-loaded routes result = await runHandler(handler); } else if (type === "action") { let url = new URL(request.url); let pathname = url.pathname + url.search; throw getInternalRouterError(405, { method: request.method, pathname, routeId: match.route.id }); } else { // lazy() route has no loader to run. Short circuit here so we don't // hit the invariant below that errors on returning undefined. return { type: ResultType.data, result: undefined }; } } } else if (!handler) { let url = new URL(request.url); let pathname = url.pathname + url.search; throw getInternalRouterError(404, { pathname }); } else { result = await runHandler(handler); } invariant(result.result !== undefined, "You defined " + (type === "action" ? "an action" : "a loader") + " for route " + ("\"" + match.route.id + "\" but didn't return anything from your `" + type + "` ") + "function. Please return a value or `null`."); } catch (e) { // We should already be catching and converting normal handler executions to // DataStrategyResults and returning them, so anything that throws here is an // unexpected error we still need to wrap return { type: ResultType.error, result: e }; } finally { if (onReject) { request.signal.removeEventListener("abort", onReject); } } return result; } async function convertDataStrategyResultToDataResult(dataStrategyResult) { let { result, type } = dataStrategyResult; if (isResponse(result)) { let data; try { let contentType = result.headers.get("Content-Type"); // Check between word boundaries instead of startsWith() due to the last // paragraph of https://httpwg.org/specs/rfc9110.html#field.content-type if (contentType && /\bapplication\/json\b/.test(contentType)) { if (result.body == null) { data = null; } else { data = await result.json(); } } else { data = await result.text(); } } catch (e) { return { type: ResultType.error, error: e }; } if (type === ResultType.error) { return { type: ResultType.error, error: new ErrorResponseImpl(result.status, result.statusText, data), statusCode: result.status, headers: result.headers }; } return { type: ResultType.data, data, statusCode: result.status, headers: result.headers }; } if (type === ResultType.error) { if (isDataWithResponseInit(result)) { var _result$init3, _result$init4; if (result.data instanceof Error) { var _result$init, _result$init2; return { type: ResultType.error, error: result.data, statusCode: (_result$init = result.init) == null ? void 0 : _result$init.status, headers: (_result$init2 = result.init) != null && _result$init2.headers ? new Headers(result.init.headers) : undefined }; } // Convert thrown data() to ErrorResponse instances return { type: ResultType.error, error: new ErrorResponseImpl(((_result$init3 = result.init) == null ? void 0 : _result$init3.status) || 500, undefined, result.data), statusCode: isRouteErrorResponse(result) ? result.status : undefined, headers: (_result$init4 = result.init) != null && _result$init4.headers ? new Headers(result.init.headers) : undefined }; } return { type: ResultType.error, error: result, statusCode: isRouteErrorResponse(result) ? result.status : undefined }; } if (isDeferredData(result)) { var _result$init5, _result$init6; return { type: ResultType.deferred, deferredData: result, statusCode: (_result$init5 = result.init) == null ? void 0 : _result$init5.status, headers: ((_result$init6 = result.init) == null ? void 0 : _result$init6.headers) && new Headers(result.init.headers) }; } if (isDataWithResponseInit(result)) { var _result$init7, _result$init8; return { type: ResultType.data, data: result.data, statusCode: (_result$init7 = result.init) == null ? void 0 : _result$init7.status, headers: (_result$init8 = result.init) != null && _result$init8.headers ? new Headers(result.init.headers) : undefined }; } return { type: ResultType.data, data: result }; } // Support relative routing in internal redirects function normalizeRelativeRoutingRedirectResponse(response, request, routeId, matches, basename, v7_relativeSplatPath) { let location = response.headers.get("Location"); invariant(location, "Redirects returned/thrown from loaders/actions must have a Location header"); if (!ABSOLUTE_URL_REGEX.test(location)) { let trimmedMatches = matches.slice(0, matches.findIndex(m => m.route.id === routeId) + 1); location = normalizeTo(new URL(request.url), trimmedMatches, basename, true, location, v7_relativeSplatPath); response.headers.set("Location", location); } return response; } function normalizeRedirectLocation(location, currentUrl, basename) { if (ABSOLUTE_URL_REGEX.test(location)) { // Strip off the protocol+origin for same-origin + same-basename absolute redirects let normalizedLocation = location; let url = normalizedLocation.startsWith("//") ? new URL(currentUrl.protocol + normalizedLocation) : new URL(normalizedLocation); let isSameBasename = stripBasename(url.pathname, basename) != null; if (url.origin === currentUrl.origin && isSameBasename) { return url.pathname + url.search + url.hash; } } return location; } // Utility method for creating the Request instances for loaders/actions during // client-side navigations and fetches. During SSR we will always have a // Request instance from the static handler (query/queryRoute) function createClientSideRequest(history, location, signal, submission) { let url = history.createURL(stripHashFromPath(location)).toString(); let init = { signal }; if (submission && isMutationMethod(submission.formMethod)) { let { formMethod, formEncType } = submission; // Didn't think we needed this but it turns out unlike other methods, patch // won't be properly normalized to uppercase and results in a 405 error. // See: https://fetch.spec.whatwg.org/#concept-method init.method = formMethod.toUpperCase(); if (formEncType === "application/json") { init.headers = new Headers({ "Content-Type": formEncType }); init.body = JSON.stringify(submission.json); } else if (formEncType === "text/plain") { // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request) init.body = submission.text; } else if (formEncType === "application/x-www-form-urlencoded" && submission.formData) { // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request) init.body = convertFormDataToSearchParams(submission.formData); } else { // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request) init.body = submission.formData; } } return new Request(url, init); } function convertFormDataToSearchParams(formData) { let searchParams = new URLSearchParams(); for (let [key, value] of formData.entries()) { // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#converting-an-entry-list-to-a-list-of-name-value-pairs searchParams.append(key, typeof value === "string" ? value : value.name); } return searchParams; } function convertSearchParamsToFormData(searchParams) { let formData = new FormData(); for (let [key, value] of searchParams.entries()) { formData.append(key, value); } return formData; } function processRouteLoaderData(matches, results, pendingActionResult, activeDeferreds, skipLoaderErrorBubbling) { // Fill in loaderData/errors from our loaders let loaderData = {}; let errors = null; let statusCode; let foundError = false; let loaderHeaders = {}; let pendingError = pendingActionResult && isErrorResult(pendingActionResult[1]) ? pendingActionResult[1].error : undefined; // Process loader results into state.loaderData/state.errors matches.forEach(match => { if (!(match.route.id in results)) { return; } let id = match.route.id; let result = results[id]; invariant(!isRedirectResult(result), "Cannot handle redirect results in processLoaderData"); if (isErrorResult(result)) { let error = result.error; // If we have a pending action error, we report it at the highest-route // that throws a loader error, and then clear it out to indicate that // it was consumed if (pendingError !== undefined) { error = pendingError; pendingError = undefined; } errors = errors || {}; if (skipLoaderErrorBubbling) { errors[id] = error; } else { // Look upwards from the matched route for the closest ancestor error // boundary, defaulting to the root match. Prefer higher error values // if lower errors bubble to the same boundary let boundaryMatch = findNearestBoundary(matches, id); if (errors[boundaryMatch.route.id] == null) { errors[boundaryMatch.route.id] = error; } } // Clear our any prior loaderData for the throwing route loaderData[id] = undefined; // Once we find our first (highest) error, we set the status code and // prevent deeper status codes from overriding if (!foundError) { foundError = true; statusCode = isRouteErrorResponse(result.error) ? result.error.status : 500; } if (result.headers) { loaderHeaders[id] = result.headers; } } else { if (isDeferredResult(result)) { activeDeferreds.set(id, result.deferredData); loaderData[id] = result.deferredData.data; // Error status codes always override success status codes, but if all // loaders are successful we take the deepest status code. if (result.statusCode != null && result.statusCode !== 200 && !foundError) { statusCode = result.statusCode; } if (result.headers) { loaderHeaders[id] = result.headers; } } else { loaderData[id] = result.data; // Error status codes always override success status codes, but if all // loaders are successful we take the deepest status code. if (result.statusCode && result.statusCode !== 200 && !foundError) { statusCode = result.statusCode; } if (result.headers) { loaderHeaders[id] = result.headers; } } } }); // If we didn't consume the pending action error (i.e., all loaders // resolved), then consume it here. Also clear out any loaderData for the // throwing route if (pendingError !== undefined && pendingActionResult) { errors = { [pendingActionResult[0]]: pendingError }; loaderData[pendingActionResult[0]] = undefined; } return { loaderData, errors, statusCode: statusCode || 200, loaderHeaders }; } function processLoaderData(state, matches, results, pendingActionResult, revalidatingFetchers, fetcherResults, activeDeferreds) { let { loaderData, errors } = processRouteLoaderData(matches, results, pendingActionResult, activeDeferreds, false // This method is only called client side so we always want to bubble ); // Process results from our revalidating fetchers revalidatingFetchers.forEach(rf => { let { key, match, controller } = rf; let result = fetcherResults[key]; invariant(result, "Did not find corresponding fetcher result"); // Process fetcher non-redirect errors if (controller && controller.signal.aborted) { // Nothing to do for aborted fetchers return; } else if (isErrorResult(result)) { let boundaryMatch = findNearestBoundary(state.matches, match == null ? void 0 : match.route.id); if (!(errors && errors[boundaryMatch.route.id])) { errors = _extends({}, errors, { [boundaryMatch.route.id]: result.error }); } state.fetchers.delete(key); } else if (isRedirectResult(result)) { // Should never get here, redirects should get processed above, but we // keep this to type narrow to a success result in the else invariant(false, "Unhandled fetcher revalidation redirect"); } else if (isDeferredResult(result)) { // Should never get here, deferred data should be awaited for fetchers // in resolveDeferredResults invariant(false, "Unhandled fetcher deferred data"); } else { let doneFetcher = getDoneFetcher(result.data); state.fetchers.set(key, doneFetcher); } }); return { loaderData, errors }; } function mergeLoaderData(loaderData, newLoaderData, matches, errors) { let mergedLoaderData = _extends({}, newLoaderData); for (let match of matches) { let id = match.route.id; if (newLoaderData.hasOwnProperty(id)) { if (newLoaderData[id] !== undefined) { mergedLoaderData[id] = newLoaderData[id]; } } else if (loaderData[id] !== undefined && match.route.loader) { // Preserve existing keys not included in newLoaderData and where a loader // wasn't removed by HMR mergedLoaderData[id] = loaderData[id]; } if (errors && errors.hasOwnProperty(id)) { // Don't keep any loader data below the boundary break; } } return mergedLoaderData; } function getActionDataForCommit(pendingActionResult) { if (!pendingActionResult) { return {}; } return isErrorResult(pendingActionResult[1]) ? { // Clear out prior actionData on errors actionData: {} } : { actionData: { [pendingActionResult[0]]: pendingActionResult[1].data } }; } // Find the nearest error boundary, looking upwards from the leaf route (or the // route specified by routeId) for the closest ancestor error boundary, // defaulting to the root match function findNearestBoundary(matches, routeId) { let eligibleMatches = routeId ? matches.slice(0, matches.findIndex(m => m.route.id === routeId) + 1) : [...matches]; return eligibleMatches.reverse().find(m => m.route.hasErrorBoundary === true) || matches[0]; } function getShortCircuitMatches(routes) { // Prefer a root layout route if present, otherwise shim in a route object let route = routes.length === 1 ? routes[0] : routes.find(r => r.index || !r.path || r.path === "/") || { id: "__shim-error-route__" }; return { matches: [{ params: {}, pathname: "", pathnameBase: "", route }], route }; } function getInternalRouterError(status, _temp5) { let { pathname, routeId, method, type, message } = _temp5 === void 0 ? {} : _temp5; let statusText = "Unknown Server Error"; let errorMessage = "Unknown @remix-run/router error"; if (status === 400) { statusText = "Bad Request"; if (method && pathname && routeId) { errorMessage = "You made a " + method + " request to \"" + pathname + "\" but " + ("did not provide a `loader` for route \"" + routeId + "\", ") + "so there is no way to handle the request."; } else if (type === "defer-action") { errorMessage = "defer() is not supported in actions"; } else if (type === "invalid-body") { errorMessage = "Unable to encode submission body"; } } else if (status === 403) { statusText = "Forbidden"; errorMessage = "Route \"" + routeId + "\" does not match URL \"" + pathname + "\""; } else if (status === 404) { statusText = "Not Found"; errorMessage = "No route matches URL \"" + pathname + "\""; } else if (status === 405) { statusText = "Method Not Allowed"; if (method && pathname && routeId) { errorMessage = "You made a " + method.toUpperCase() + " request to \"" + pathname + "\" but " + ("did not provide an `action` for route \"" + routeId + "\", ") + "so there is no way to handle the request."; } else if (method) { errorMessage = "Invalid request method \"" + method.toUpperCase() + "\""; } } return new ErrorResponseImpl(status || 500, statusText, new Error(errorMessage), true); } // Find any returned redirect errors, starting from the lowest match function findRedirect(results) { let entries = Object.entries(results); for (let i = entries.length - 1; i >= 0; i--) { let [key, result] = entries[i]; if (isRedirectResult(result)) { return { key, result }; } } } function stripHashFromPath(path) { let parsedPath = typeof path === "string" ? parsePath(path) : path; return createPath(_extends({}, parsedPath, { hash: "" })); } function isHashChangeOnly(a, b) { if (a.pathname !== b.pathname || a.search !== b.search) { return false; } if (a.hash === "") { // /page -> /page#hash return b.hash !== ""; } else if (a.hash === b.hash) { // /page#hash -> /page#hash return true; } else if (b.hash !== "") { // /page#hash -> /page#other return true; } // If the hash is removed the browser will re-perform a request to the server // /page#hash -> /page return false; } function isDataStrategyResult(result) { return result != null && typeof result === "object" && "type" in result && "result" in result && (result.type === ResultType.data || result.type === ResultType.error); } function isRedirectDataStrategyResultResult(result) { return isResponse(result.result) && redirectStatusCodes.has(result.result.status); } function isDeferredResult(result) { return result.type === ResultType.deferred; } function isErrorResult(result) { return result.type === ResultType.error; } function isRedirectResult(result) { return (result && result.type) === ResultType.redirect; } function isDataWithResponseInit(value) { return typeof value === "object" && value != null && "type" in value && "data" in value && "init" in value && value.type === "DataWithResponseInit"; } function isDeferredData(value) { let deferred = value; return deferred && typeof deferred === "object" && typeof deferred.data === "object" && typeof deferred.subscribe === "function" && typeof deferred.cancel === "function" && typeof deferred.resolveData === "function"; } function isResponse(value) { return value != null && typeof value.status === "number" && typeof value.statusText === "string" && typeof value.headers === "object" && typeof value.body !== "undefined"; } function isRedirectResponse(result) { if (!isResponse(result)) { return false; } let status = result.status; let location = result.headers.get("Location"); return status >= 300 && status <= 399 && location != null; } function isValidMethod(method) { return validRequestMethods.has(method.toLowerCase()); } function isMutationMethod(method) { return validMutationMethods.has(method.toLowerCase()); } async function resolveNavigationDeferredResults(matches, results, signal, currentMatches, currentLoaderData) { let entries = Object.entries(results); for (let index = 0; index < entries.length; index++) { let [routeId, result] = entries[index]; let match = matches.find(m => (m == null ? void 0 : m.route.id) === routeId); // If we don't have a match, then we can have a deferred result to do // anything with. This is for revalidating fetchers where the route was // removed during HMR if (!match) { continue; } let currentMatch = currentMatches.find(m => m.route.id === match.route.id); let isRevalidatingLoader = currentMatch != null && !isNewRouteInstance(currentMatch, match) && (currentLoaderData && currentLoaderData[match.route.id]) !== undefined; if (isDeferredResult(result) && isRevalidatingLoader) { // Note: we do not have to touch activeDeferreds here since we race them // against the signal in resolveDeferredData and they'll get aborted // there if needed await resolveDeferredData(result, signal, false).then(result => { if (result) { results[routeId] = result; } }); } } } async function resolveFetcherDeferredResults(matches, results, revalidatingFetchers) { for (let index = 0; index < revalidatingFetchers.length; index++) { let { key, routeId, controller } = revalidatingFetchers[index]; let result = results[key]; let match = matches.find(m => (m == null ? void 0 : m.route.id) === routeId); // If we don't have a match, then we can have a deferred result to do // anything with. This is for revalidating fetchers where the route was // removed during HMR if (!match) { continue; } if (isDeferredResult(result)) { // Note: we do not have to touch activeDeferreds here since we race them // against the signal in resolveDeferredData and they'll get aborted // there if needed invariant(controller, "Expected an AbortController for revalidating fetcher deferred result"); await resolveDeferredData(result, controller.signal, true).then(result => { if (result) { results[key] = result; } }); } } } async function resolveDeferredData(result, signal, unwrap) { if (unwrap === void 0) { unwrap = false; } let aborted = await result.deferredData.resolveData(signal); if (aborted) { return; } if (unwrap) { try { return { type: ResultType.data, data: result.deferredData.unwrappedData }; } catch (e) { // Handle any TrackedPromise._error values encountered while unwrapping return { type: ResultType.error, error: e }; } } return { type: ResultType.data, data: result.deferredData.data }; } function hasNakedIndexQuery(search) { return new URLSearchParams(search).getAll("index").some(v => v === ""); } function getTargetMatch(matches, location) { let search = typeof location === "string" ? parsePath(location).search : location.search; if (matches[matches.length - 1].route.index && hasNakedIndexQuery(search || "")) { // Return the leaf index route when index is present return matches[matches.length - 1]; } // Otherwise grab the deepest "path contributing" match (ignoring index and // pathless layout routes) let pathMatches = getPathContributingMatches(matches); return pathMatches[pathMatches.length - 1]; } function getSubmissionFromNavigation(navigation) { let { formMethod, formAction, formEncType, text, formData, json } = navigation; if (!formMethod || !formAction || !formEncType) { return; } if (text != null) { return { formMethod, formAction, formEncType, formData: undefined, json: undefined, text }; } else if (formData != null) { return { formMethod, formAction, formEncType, formData, json: undefined, text: undefined }; } else if (json !== undefined) { return { formMethod, formAction, formEncType, formData: undefined, json, text: undefined }; } } function getLoadingNavigation(location, submission) { if (submission) { let navigation = { state: "loading", location, formMethod: submission.formMethod, formAction: submission.formAction, formEncType: submission.formEncType, formData: submission.formData, json: submission.json, text: submission.text }; return navigation; } else { let navigation = { state: "loading", location, formMethod: undefined, formAction: undefined, formEncType: undefined, formData: undefined, json: undefined, text: undefined }; return navigation; } } function getSubmittingNavigation(location, submission) { let navigation = { state: "submitting", location, formMethod: submission.formMethod, formAction: submission.formAction, formEncType: submission.formEncType, formData: submission.formData, json: submission.json, text: submission.text }; return navigation; } function getLoadingFetcher(submission, data) { if (submission) { let fetcher = { state: "loading", formMethod: submission.formMethod, formAction: submission.formAction, formEncType: submission.formEncType, formData: submission.formData, json: submission.json, text: submission.text, data }; return fetcher; } else { let fetcher = { state: "loading", formMethod: undefined, formAction: undefined, formEncType: undefined, formData: undefined, json: undefined, text: undefined, data }; return fetcher; } } function getSubmittingFetcher(submission, existingFetcher) { let fetcher = { state: "submitting", formMethod: submission.formMethod, formAction: submission.formAction, formEncType: submission.formEncType, formData: submission.formData, json: submission.json, text: submission.text, data: existingFetcher ? existingFetcher.data : undefined }; return fetcher; } function getDoneFetcher(data) { let fetcher = { state: "idle", formMethod: undefined, formAction: undefined, formEncType: undefined, formData: undefined, json: undefined, text: undefined, data }; return fetcher; } function restoreAppliedTransitions(_window, transitions) { try { let sessionPositions = _window.sessionStorage.getItem(TRANSITIONS_STORAGE_KEY); if (sessionPositions) { let json = JSON.parse(sessionPositions); for (let [k, v] of Object.entries(json || {})) { if (v && Array.isArray(v)) { transitions.set(k, new Set(v || [])); } } } } catch (e) { // no-op, use default empty object } } function persistAppliedTransitions(_window, transitions) { if (transitions.size > 0) { let json = {}; for (let [k, v] of transitions) { json[k] = [...v]; } try { _window.sessionStorage.setItem(TRANSITIONS_STORAGE_KEY, JSON.stringify(json)); } catch (error) { warning(false, "Failed to save applied view transitions in sessionStorage (" + error + ")."); } } } //#endregion //# sourceMappingURL=router.js.map /***/ }), /***/ "./node_modules/lucide-react/dist/esm/Icon.js": /*!****************************************************!*\ !*** ./node_modules/lucide-react/dist/esm/Icon.js ***! \****************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ Icon) /* harmony export */ }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _defaultAttributes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./defaultAttributes.js */ "./node_modules/lucide-react/dist/esm/defaultAttributes.js"); /* harmony import */ var _shared_src_utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shared/src/utils.js */ "./node_modules/lucide-react/dist/esm/shared/src/utils.js"); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Icon = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)( ({ color = "currentColor", size = 24, strokeWidth = 2, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref) => { return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)( "svg", { ref, ..._defaultAttributes_js__WEBPACK_IMPORTED_MODULE_1__["default"], width: size, height: size, stroke: color, strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth, className: (0,_shared_src_utils_js__WEBPACK_IMPORTED_MODULE_2__.mergeClasses)("lucide", className), ...rest }, [ ...iconNode.map(([tag, attrs]) => (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(tag, attrs)), ...Array.isArray(children) ? children : [children] ] ); } ); //# sourceMappingURL=Icon.js.map /***/ }), /***/ "./node_modules/lucide-react/dist/esm/createLucideIcon.js": /*!****************************************************************!*\ !*** ./node_modules/lucide-react/dist/esm/createLucideIcon.js ***! \****************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ createLucideIcon) /* harmony export */ }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _shared_src_utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shared/src/utils.js */ "./node_modules/lucide-react/dist/esm/shared/src/utils.js"); /* harmony import */ var _Icon_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Icon.js */ "./node_modules/lucide-react/dist/esm/Icon.js"); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const createLucideIcon = (iconName, iconNode) => { const Component = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)( ({ className, ...props }, ref) => (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Icon_js__WEBPACK_IMPORTED_MODULE_1__["default"], { ref, iconNode, className: (0,_shared_src_utils_js__WEBPACK_IMPORTED_MODULE_2__.mergeClasses)(`lucide-${(0,_shared_src_utils_js__WEBPACK_IMPORTED_MODULE_2__.toKebabCase)(iconName)}`, className), ...props }) ); Component.displayName = `${iconName}`; return Component; }; //# sourceMappingURL=createLucideIcon.js.map /***/ }), /***/ "./node_modules/lucide-react/dist/esm/defaultAttributes.js": /*!*****************************************************************!*\ !*** ./node_modules/lucide-react/dist/esm/defaultAttributes.js ***! \*****************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ defaultAttributes) /* harmony export */ }); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ var defaultAttributes = { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" }; //# sourceMappingURL=defaultAttributes.js.map /***/ }), /***/ "./node_modules/lucide-react/dist/esm/icons/archive.js": /*!*************************************************************!*\ !*** ./node_modules/lucide-react/dist/esm/icons/archive.js ***! \*************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ Archive) /* harmony export */ }); /* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Archive = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Archive", [ ["rect", { width: "20", height: "5", x: "2", y: "3", rx: "1", key: "1wp1u1" }], ["path", { d: "M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8", key: "1s80jp" }], ["path", { d: "M10 12h4", key: "a56b0p" }] ]); //# sourceMappingURL=archive.js.map /***/ }), /***/ "./node_modules/lucide-react/dist/esm/icons/arrow-up-right.js": /*!********************************************************************!*\ !*** ./node_modules/lucide-react/dist/esm/icons/arrow-up-right.js ***! \********************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ ArrowUpRight) /* harmony export */ }); /* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const ArrowUpRight = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("ArrowUpRight", [ ["path", { d: "M7 7h10v10", key: "1tivn9" }], ["path", { d: "M7 17 17 7", key: "1vkiza" }] ]); //# sourceMappingURL=arrow-up-right.js.map /***/ }), /***/ "./node_modules/lucide-react/dist/esm/icons/circle-help.js": /*!*****************************************************************!*\ !*** ./node_modules/lucide-react/dist/esm/icons/circle-help.js ***! \*****************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ CircleHelp) /* harmony export */ }); /* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const CircleHelp = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("CircleHelp", [ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }], ["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }], ["path", { d: "M12 17h.01", key: "p32p05" }] ]); //# sourceMappingURL=circle-help.js.map /***/ }), /***/ "./node_modules/lucide-react/dist/esm/icons/code-xml.js": /*!**************************************************************!*\ !*** ./node_modules/lucide-react/dist/esm/icons/code-xml.js ***! \**************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ CodeXml) /* harmony export */ }); /* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const CodeXml = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("CodeXml", [ ["path", { d: "m18 16 4-4-4-4", key: "1inbqp" }], ["path", { d: "m6 8-4 4 4 4", key: "15zrgr" }], ["path", { d: "m14.5 4-5 16", key: "e7oirm" }] ]); //# sourceMappingURL=code-xml.js.map /***/ }), /***/ "./node_modules/lucide-react/dist/esm/icons/crown.js": /*!***********************************************************!*\ !*** ./node_modules/lucide-react/dist/esm/icons/crown.js ***! \***********************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ Crown) /* harmony export */ }); /* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Crown = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Crown", [ [ "path", { d: "M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z", key: "1vdc57" } ], ["path", { d: "M5 21h14", key: "11awu3" }] ]); //# sourceMappingURL=crown.js.map /***/ }), /***/ "./node_modules/lucide-react/dist/esm/icons/layout-grid.js": /*!*****************************************************************!*\ !*** ./node_modules/lucide-react/dist/esm/icons/layout-grid.js ***! \*****************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ LayoutGrid) /* harmony export */ }); /* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const LayoutGrid = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("LayoutGrid", [ ["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }], ["rect", { width: "7", height: "7", x: "14", y: "3", rx: "1", key: "6d4xhi" }], ["rect", { width: "7", height: "7", x: "14", y: "14", rx: "1", key: "nxv5o0" }], ["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }] ]); //# sourceMappingURL=layout-grid.js.map /***/ }), /***/ "./node_modules/lucide-react/dist/esm/icons/layout-list.js": /*!*****************************************************************!*\ !*** ./node_modules/lucide-react/dist/esm/icons/layout-list.js ***! \*****************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ LayoutList) /* harmony export */ }); /* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const LayoutList = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("LayoutList", [ ["rect", { width: "7", height: "7", x: "3", y: "3", rx: "1", key: "1g98yp" }], ["rect", { width: "7", height: "7", x: "3", y: "14", rx: "1", key: "1bb6yr" }], ["path", { d: "M14 4h7", key: "3xa0d5" }], ["path", { d: "M14 9h7", key: "1icrd9" }], ["path", { d: "M14 15h7", key: "1mj8o2" }], ["path", { d: "M14 20h7", key: "11slyb" }] ]); //# sourceMappingURL=layout-list.js.map /***/ }), /***/ "./node_modules/lucide-react/dist/esm/icons/list.js": /*!**********************************************************!*\ !*** ./node_modules/lucide-react/dist/esm/icons/list.js ***! \**********************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ List) /* harmony export */ }); /* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const List = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("List", [ ["line", { x1: "8", x2: "21", y1: "6", y2: "6", key: "7ey8pc" }], ["line", { x1: "8", x2: "21", y1: "12", y2: "12", key: "rjfblc" }], ["line", { x1: "8", x2: "21", y1: "18", y2: "18", key: "c3b1m8" }], ["line", { x1: "3", x2: "3.01", y1: "6", y2: "6", key: "1g7gq3" }], ["line", { x1: "3", x2: "3.01", y1: "12", y2: "12", key: "1pjlvk" }], ["line", { x1: "3", x2: "3.01", y1: "18", y2: "18", key: "28t2mc" }] ]); //# sourceMappingURL=list.js.map /***/ }), /***/ "./node_modules/lucide-react/dist/esm/icons/lock.js": /*!**********************************************************!*\ !*** ./node_modules/lucide-react/dist/esm/icons/lock.js ***! \**********************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ Lock) /* harmony export */ }); /* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const Lock = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("Lock", [ ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }], ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }] ]); //# sourceMappingURL=lock.js.map /***/ }), /***/ "./node_modules/lucide-react/dist/esm/icons/panel-bottom.js": /*!******************************************************************!*\ !*** ./node_modules/lucide-react/dist/esm/icons/panel-bottom.js ***! \******************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ PanelBottom) /* harmony export */ }); /* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const PanelBottom = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("PanelBottom", [ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }], ["path", { d: "M3 15h18", key: "5xshup" }] ]); //# sourceMappingURL=panel-bottom.js.map /***/ }), /***/ "./node_modules/lucide-react/dist/esm/icons/panel-top.js": /*!***************************************************************!*\ !*** ./node_modules/lucide-react/dist/esm/icons/panel-top.js ***! \***************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* binding */ PanelTop) /* harmony export */ }); /* harmony import */ var _createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../createLucideIcon.js */ "./node_modules/lucide-react/dist/esm/createLucideIcon.js"); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const PanelTop = (0,_createLucideIcon_js__WEBPACK_IMPORTED_MODULE_0__["default"])("PanelTop", [ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }], ["path", { d: "M3 9h18", key: "1pudct" }] ]); //# sourceMappingURL=panel-top.js.map /***/ }), /***/ "./node_modules/lucide-react/dist/esm/shared/src/utils.js": /*!****************************************************************!*\ !*** ./node_modules/lucide-react/dist/esm/shared/src/utils.js ***! \****************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ mergeClasses: () => (/* binding */ mergeClasses), /* harmony export */ toKebabCase: () => (/* binding */ toKebabCase) /* harmony export */ }); /** * @license lucide-react v0.417.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(); const mergeClasses = (...classes) => classes.filter((className, index, array) => { return Boolean(className) && array.indexOf(className) === index; }).join(" "); //# sourceMappingURL=utils.js.map /***/ }), /***/ "./node_modules/react-router-dom/dist/index.js": /*!*****************************************************!*\ !*** ./node_modules/react-router-dom/dist/index.js ***! \*****************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ AbortedDeferredError: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_2__.AbortedDeferredError), /* harmony export */ Await: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.Await), /* harmony export */ BrowserRouter: () => (/* binding */ BrowserRouter), /* harmony export */ Form: () => (/* binding */ Form), /* harmony export */ HashRouter: () => (/* binding */ HashRouter), /* harmony export */ Link: () => (/* binding */ Link), /* harmony export */ MemoryRouter: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.MemoryRouter), /* harmony export */ NavLink: () => (/* binding */ NavLink), /* harmony export */ Navigate: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.Navigate), /* harmony export */ NavigationType: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_2__.Action), /* harmony export */ Outlet: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.Outlet), /* harmony export */ Route: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.Route), /* harmony export */ Router: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.Router), /* harmony export */ RouterProvider: () => (/* binding */ RouterProvider), /* harmony export */ Routes: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.Routes), /* harmony export */ ScrollRestoration: () => (/* binding */ ScrollRestoration), /* harmony export */ UNSAFE_DataRouterContext: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_DataRouterContext), /* harmony export */ UNSAFE_DataRouterStateContext: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_DataRouterStateContext), /* harmony export */ UNSAFE_ErrorResponseImpl: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_2__.UNSAFE_ErrorResponseImpl), /* harmony export */ UNSAFE_FetchersContext: () => (/* binding */ FetchersContext), /* harmony export */ UNSAFE_LocationContext: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_LocationContext), /* harmony export */ UNSAFE_NavigationContext: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_NavigationContext), /* harmony export */ UNSAFE_RouteContext: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_RouteContext), /* harmony export */ UNSAFE_ViewTransitionContext: () => (/* binding */ ViewTransitionContext), /* harmony export */ UNSAFE_useRouteId: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_useRouteId), /* harmony export */ UNSAFE_useScrollRestoration: () => (/* binding */ useScrollRestoration), /* harmony export */ createBrowserRouter: () => (/* binding */ createBrowserRouter), /* harmony export */ createHashRouter: () => (/* binding */ createHashRouter), /* harmony export */ createMemoryRouter: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.createMemoryRouter), /* harmony export */ createPath: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_2__.createPath), /* harmony export */ createRoutesFromChildren: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.createRoutesFromChildren), /* harmony export */ createRoutesFromElements: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.createRoutesFromElements), /* harmony export */ createSearchParams: () => (/* binding */ createSearchParams), /* harmony export */ defer: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_2__.defer), /* harmony export */ generatePath: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_2__.generatePath), /* harmony export */ isRouteErrorResponse: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_2__.isRouteErrorResponse), /* harmony export */ json: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_2__.json), /* harmony export */ matchPath: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_2__.matchPath), /* harmony export */ matchRoutes: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_2__.matchRoutes), /* harmony export */ parsePath: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_2__.parsePath), /* harmony export */ redirect: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_2__.redirect), /* harmony export */ redirectDocument: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_2__.redirectDocument), /* harmony export */ renderMatches: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.renderMatches), /* harmony export */ replace: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_2__.replace), /* harmony export */ resolvePath: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_2__.resolvePath), /* harmony export */ unstable_HistoryRouter: () => (/* binding */ HistoryRouter), /* harmony export */ unstable_usePrompt: () => (/* binding */ usePrompt), /* harmony export */ useActionData: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useActionData), /* harmony export */ useAsyncError: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useAsyncError), /* harmony export */ useAsyncValue: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useAsyncValue), /* harmony export */ useBeforeUnload: () => (/* binding */ useBeforeUnload), /* harmony export */ useBlocker: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useBlocker), /* harmony export */ useFetcher: () => (/* binding */ useFetcher), /* harmony export */ useFetchers: () => (/* binding */ useFetchers), /* harmony export */ useFormAction: () => (/* binding */ useFormAction), /* harmony export */ useHref: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useHref), /* harmony export */ useInRouterContext: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useInRouterContext), /* harmony export */ useLinkClickHandler: () => (/* binding */ useLinkClickHandler), /* harmony export */ useLoaderData: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useLoaderData), /* harmony export */ useLocation: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useLocation), /* harmony export */ useMatch: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useMatch), /* harmony export */ useMatches: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useMatches), /* harmony export */ useNavigate: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useNavigate), /* harmony export */ useNavigation: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useNavigation), /* harmony export */ useNavigationType: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useNavigationType), /* harmony export */ useOutlet: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useOutlet), /* harmony export */ useOutletContext: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useOutletContext), /* harmony export */ useParams: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useParams), /* harmony export */ useResolvedPath: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useResolvedPath), /* harmony export */ useRevalidator: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useRevalidator), /* harmony export */ useRouteError: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useRouteError), /* harmony export */ useRouteLoaderData: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useRouteLoaderData), /* harmony export */ useRoutes: () => (/* reexport safe */ react_router__WEBPACK_IMPORTED_MODULE_3__.useRoutes), /* harmony export */ useSearchParams: () => (/* binding */ useSearchParams), /* harmony export */ useSubmit: () => (/* binding */ useSubmit), /* harmony export */ useViewTransitionState: () => (/* binding */ useViewTransitionState) /* harmony export */ }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "react-dom"); /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-router */ "./node_modules/react-router/dist/index.js"); /* harmony import */ var react_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @remix-run/router */ "./node_modules/@remix-run/router/dist/router.js"); /** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } const defaultMethod = "get"; const defaultEncType = "application/x-www-form-urlencoded"; function isHtmlElement(object) { return object != null && typeof object.tagName === "string"; } function isButtonElement(object) { return isHtmlElement(object) && object.tagName.toLowerCase() === "button"; } function isFormElement(object) { return isHtmlElement(object) && object.tagName.toLowerCase() === "form"; } function isInputElement(object) { return isHtmlElement(object) && object.tagName.toLowerCase() === "input"; } function isModifiedEvent(event) { return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); } function shouldProcessLinkClick(event, target) { return event.button === 0 && ( // Ignore everything but left clicks !target || target === "_self") && // Let browser handle "target=_blank" etc. !isModifiedEvent(event) // Ignore clicks with modifier keys ; } /** * Creates a URLSearchParams object using the given initializer. * * This is identical to `new URLSearchParams(init)` except it also * supports arrays as values in the object form of the initializer * instead of just strings. This is convenient when you need multiple * values for a given key, but don't want to use an array initializer. * * For example, instead of: * * let searchParams = new URLSearchParams([ * ['sort', 'name'], * ['sort', 'price'] * ]); * * you can do: * * let searchParams = createSearchParams({ * sort: ['name', 'price'] * }); */ function createSearchParams(init) { if (init === void 0) { init = ""; } return new URLSearchParams(typeof init === "string" || Array.isArray(init) || init instanceof URLSearchParams ? init : Object.keys(init).reduce((memo, key) => { let value = init[key]; return memo.concat(Array.isArray(value) ? value.map(v => [key, v]) : [[key, value]]); }, [])); } function getSearchParamsForLocation(locationSearch, defaultSearchParams) { let searchParams = createSearchParams(locationSearch); if (defaultSearchParams) { // Use `defaultSearchParams.forEach(...)` here instead of iterating of // `defaultSearchParams.keys()` to work-around a bug in Firefox related to // web extensions. Relevant Bugzilla tickets: // https://bugzilla.mozilla.org/show_bug.cgi?id=1414602 // https://bugzilla.mozilla.org/show_bug.cgi?id=1023984 defaultSearchParams.forEach((_, key) => { if (!searchParams.has(key)) { defaultSearchParams.getAll(key).forEach(value => { searchParams.append(key, value); }); } }); } return searchParams; } // One-time check for submitter support let _formDataSupportsSubmitter = null; function isFormDataSubmitterSupported() { if (_formDataSupportsSubmitter === null) { try { new FormData(document.createElement("form"), // @ts-expect-error if FormData supports the submitter parameter, this will throw 0); _formDataSupportsSubmitter = false; } catch (e) { _formDataSupportsSubmitter = true; } } return _formDataSupportsSubmitter; } const supportedFormEncTypes = new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]); function getFormEncType(encType) { if (encType != null && !supportedFormEncTypes.has(encType)) { true ? (0,react_router__WEBPACK_IMPORTED_MODULE_2__.UNSAFE_warning)(false, "\"" + encType + "\" is not a valid `encType` for `<Form>`/`<fetcher.Form>` " + ("and will default to \"" + defaultEncType + "\"")) : 0; return null; } return encType; } function getFormSubmissionInfo(target, basename) { let method; let action; let encType; let formData; let body; if (isFormElement(target)) { // When grabbing the action from the element, it will have had the basename // prefixed to ensure non-JS scenarios work, so strip it since we'll // re-prefix in the router let attr = target.getAttribute("action"); action = attr ? (0,react_router__WEBPACK_IMPORTED_MODULE_2__.stripBasename)(attr, basename) : null; method = target.getAttribute("method") || defaultMethod; encType = getFormEncType(target.getAttribute("enctype")) || defaultEncType; formData = new FormData(target); } else if (isButtonElement(target) || isInputElement(target) && (target.type === "submit" || target.type === "image")) { let form = target.form; if (form == null) { throw new Error("Cannot submit a <button> or <input type=\"submit\"> without a <form>"); } // <button>/<input type="submit"> may override attributes of <form> // When grabbing the action from the element, it will have had the basename // prefixed to ensure non-JS scenarios work, so strip it since we'll // re-prefix in the router let attr = target.getAttribute("formaction") || form.getAttribute("action"); action = attr ? (0,react_router__WEBPACK_IMPORTED_MODULE_2__.stripBasename)(attr, basename) : null; method = target.getAttribute("formmethod") || form.getAttribute("method") || defaultMethod; encType = getFormEncType(target.getAttribute("formenctype")) || getFormEncType(form.getAttribute("enctype")) || defaultEncType; // Build a FormData object populated from a form and submitter formData = new FormData(form, target); // If this browser doesn't support the `FormData(el, submitter)` format, // then tack on the submitter value at the end. This is a lightweight // solution that is not 100% spec compliant. For complete support in older // browsers, consider using the `formdata-submitter-polyfill` package if (!isFormDataSubmitterSupported()) { let { name, type, value } = target; if (type === "image") { let prefix = name ? name + "." : ""; formData.append(prefix + "x", "0"); formData.append(prefix + "y", "0"); } else if (name) { formData.append(name, value); } } } else if (isHtmlElement(target)) { throw new Error("Cannot submit element that is not <form>, <button>, or " + "<input type=\"submit|image\">"); } else { method = defaultMethod; action = null; encType = defaultEncType; body = target; } // Send body for <Form encType="text/plain" so we encode it into text if (formData && encType === "text/plain") { body = formData; formData = undefined; } return { action, method: method.toLowerCase(), encType, formData, body }; } const _excluded = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "viewTransition"], _excluded2 = ["aria-current", "caseSensitive", "className", "end", "style", "to", "viewTransition", "children"], _excluded3 = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "viewTransition"]; // HEY YOU! DON'T TOUCH THIS VARIABLE! // // It is replaced with the proper version at build time via a babel plugin in // the rollup config. // // Export a global property onto the window for React Router detection by the // Core Web Vitals Technology Report. This way they can configure the `wappalyzer` // to detect and properly classify live websites as being built with React Router: // https://github.com/HTTPArchive/wappalyzer/blob/main/src/technologies/r.json const REACT_ROUTER_VERSION = "6"; try { window.__reactRouterVersion = REACT_ROUTER_VERSION; } catch (e) { // no-op } function createBrowserRouter(routes, opts) { return (0,react_router__WEBPACK_IMPORTED_MODULE_2__.createRouter)({ basename: opts == null ? void 0 : opts.basename, future: _extends({}, opts == null ? void 0 : opts.future, { v7_prependBasename: true }), history: (0,react_router__WEBPACK_IMPORTED_MODULE_2__.createBrowserHistory)({ window: opts == null ? void 0 : opts.window }), hydrationData: (opts == null ? void 0 : opts.hydrationData) || parseHydrationData(), routes, mapRouteProperties: react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_mapRouteProperties, dataStrategy: opts == null ? void 0 : opts.dataStrategy, patchRoutesOnNavigation: opts == null ? void 0 : opts.patchRoutesOnNavigation, window: opts == null ? void 0 : opts.window }).initialize(); } function createHashRouter(routes, opts) { return (0,react_router__WEBPACK_IMPORTED_MODULE_2__.createRouter)({ basename: opts == null ? void 0 : opts.basename, future: _extends({}, opts == null ? void 0 : opts.future, { v7_prependBasename: true }), history: (0,react_router__WEBPACK_IMPORTED_MODULE_2__.createHashHistory)({ window: opts == null ? void 0 : opts.window }), hydrationData: (opts == null ? void 0 : opts.hydrationData) || parseHydrationData(), routes, mapRouteProperties: react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_mapRouteProperties, dataStrategy: opts == null ? void 0 : opts.dataStrategy, patchRoutesOnNavigation: opts == null ? void 0 : opts.patchRoutesOnNavigation, window: opts == null ? void 0 : opts.window }).initialize(); } function parseHydrationData() { var _window; let state = (_window = window) == null ? void 0 : _window.__staticRouterHydrationData; if (state && state.errors) { state = _extends({}, state, { errors: deserializeErrors(state.errors) }); } return state; } function deserializeErrors(errors) { if (!errors) return null; let entries = Object.entries(errors); let serialized = {}; for (let [key, val] of entries) { // Hey you! If you change this, please change the corresponding logic in // serializeErrors in react-router-dom/server.tsx :) if (val && val.__type === "RouteErrorResponse") { serialized[key] = new react_router__WEBPACK_IMPORTED_MODULE_2__.UNSAFE_ErrorResponseImpl(val.status, val.statusText, val.data, val.internal === true); } else if (val && val.__type === "Error") { // Attempt to reconstruct the right type of Error (i.e., ReferenceError) if (val.__subType) { let ErrorConstructor = window[val.__subType]; if (typeof ErrorConstructor === "function") { try { // @ts-expect-error let error = new ErrorConstructor(val.message); // Wipe away the client-side stack trace. Nothing to fill it in with // because we don't serialize SSR stack traces for security reasons error.stack = ""; serialized[key] = error; } catch (e) { // no-op - fall through and create a normal Error } } } if (serialized[key] == null) { let error = new Error(val.message); // Wipe away the client-side stack trace. Nothing to fill it in with // because we don't serialize SSR stack traces for security reasons error.stack = ""; serialized[key] = error; } } else { serialized[key] = val; } } return serialized; } const ViewTransitionContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext({ isTransitioning: false }); if (true) { ViewTransitionContext.displayName = "ViewTransition"; } const FetchersContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(new Map()); if (true) { FetchersContext.displayName = "Fetchers"; } //#endregion //////////////////////////////////////////////////////////////////////////////// //#region Components //////////////////////////////////////////////////////////////////////////////// /** Webpack + React 17 fails to compile on any of the following because webpack complains that `startTransition` doesn't exist in `React`: * import { startTransition } from "react" * import * as React from from "react"; "startTransition" in React ? React.startTransition(() => setState()) : setState() * import * as React from from "react"; "startTransition" in React ? React["startTransition"](() => setState()) : setState() Moving it to a constant such as the following solves the Webpack/React 17 issue: * import * as React from from "react"; const START_TRANSITION = "startTransition"; START_TRANSITION in React ? React[START_TRANSITION](() => setState()) : setState() However, that introduces webpack/terser minification issues in production builds in React 18 where minification/obfuscation ends up removing the call of React.startTransition entirely from the first half of the ternary. Grabbing this exported reference once up front resolves that issue. See https://github.com/remix-run/react-router/issues/10579 */ const START_TRANSITION = "startTransition"; const startTransitionImpl = react__WEBPACK_IMPORTED_MODULE_0__[START_TRANSITION]; const FLUSH_SYNC = "flushSync"; const flushSyncImpl = react_dom__WEBPACK_IMPORTED_MODULE_1__[FLUSH_SYNC]; const USE_ID = "useId"; const useIdImpl = react__WEBPACK_IMPORTED_MODULE_0__[USE_ID]; function startTransitionSafe(cb) { if (startTransitionImpl) { startTransitionImpl(cb); } else { cb(); } } function flushSyncSafe(cb) { if (flushSyncImpl) { flushSyncImpl(cb); } else { cb(); } } class Deferred { constructor() { this.status = "pending"; this.promise = new Promise((resolve, reject) => { this.resolve = value => { if (this.status === "pending") { this.status = "resolved"; resolve(value); } }; this.reject = reason => { if (this.status === "pending") { this.status = "rejected"; reject(reason); } }; }); } } /** * Given a Remix Router instance, render the appropriate UI */ function RouterProvider(_ref) { let { fallbackElement, router, future } = _ref; let [state, setStateImpl] = react__WEBPACK_IMPORTED_MODULE_0__.useState(router.state); let [pendingState, setPendingState] = react__WEBPACK_IMPORTED_MODULE_0__.useState(); let [vtContext, setVtContext] = react__WEBPACK_IMPORTED_MODULE_0__.useState({ isTransitioning: false }); let [renderDfd, setRenderDfd] = react__WEBPACK_IMPORTED_MODULE_0__.useState(); let [transition, setTransition] = react__WEBPACK_IMPORTED_MODULE_0__.useState(); let [interruption, setInterruption] = react__WEBPACK_IMPORTED_MODULE_0__.useState(); let fetcherData = react__WEBPACK_IMPORTED_MODULE_0__.useRef(new Map()); let { v7_startTransition } = future || {}; let optInStartTransition = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(cb => { if (v7_startTransition) { startTransitionSafe(cb); } else { cb(); } }, [v7_startTransition]); let setState = react__WEBPACK_IMPORTED_MODULE_0__.useCallback((newState, _ref2) => { let { deletedFetchers, flushSync: flushSync, viewTransitionOpts: viewTransitionOpts } = _ref2; newState.fetchers.forEach((fetcher, key) => { if (fetcher.data !== undefined) { fetcherData.current.set(key, fetcher.data); } }); deletedFetchers.forEach(key => fetcherData.current.delete(key)); let isViewTransitionUnavailable = router.window == null || router.window.document == null || typeof router.window.document.startViewTransition !== "function"; // If this isn't a view transition or it's not available in this browser, // just update and be done with it if (!viewTransitionOpts || isViewTransitionUnavailable) { if (flushSync) { flushSyncSafe(() => setStateImpl(newState)); } else { optInStartTransition(() => setStateImpl(newState)); } return; } // flushSync + startViewTransition if (flushSync) { // Flush through the context to mark DOM elements as transition=ing flushSyncSafe(() => { // Cancel any pending transitions if (transition) { renderDfd && renderDfd.resolve(); transition.skipTransition(); } setVtContext({ isTransitioning: true, flushSync: true, currentLocation: viewTransitionOpts.currentLocation, nextLocation: viewTransitionOpts.nextLocation }); }); // Update the DOM let t = router.window.document.startViewTransition(() => { flushSyncSafe(() => setStateImpl(newState)); }); // Clean up after the animation completes t.finished.finally(() => { flushSyncSafe(() => { setRenderDfd(undefined); setTransition(undefined); setPendingState(undefined); setVtContext({ isTransitioning: false }); }); }); flushSyncSafe(() => setTransition(t)); return; } // startTransition + startViewTransition if (transition) { // Interrupting an in-progress transition, cancel and let everything flush // out, and then kick off a new transition from the interruption state renderDfd && renderDfd.resolve(); transition.skipTransition(); setInterruption({ state: newState, currentLocation: viewTransitionOpts.currentLocation, nextLocation: viewTransitionOpts.nextLocation }); } else { // Completed navigation update with opted-in view transitions, let 'er rip setPendingState(newState); setVtContext({ isTransitioning: true, flushSync: false, currentLocation: viewTransitionOpts.currentLocation, nextLocation: viewTransitionOpts.nextLocation }); } }, [router.window, transition, renderDfd, fetcherData, optInStartTransition]); // Need to use a layout effect here so we are subscribed early enough to // pick up on any render-driven redirects/navigations (useEffect/<Navigate>) react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect(() => router.subscribe(setState), [router, setState]); // When we start a view transition, create a Deferred we can use for the // eventual "completed" render react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { if (vtContext.isTransitioning && !vtContext.flushSync) { setRenderDfd(new Deferred()); } }, [vtContext]); // Once the deferred is created, kick off startViewTransition() to update the // DOM and then wait on the Deferred to resolve (indicating the DOM update has // happened) react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { if (renderDfd && pendingState && router.window) { let newState = pendingState; let renderPromise = renderDfd.promise; let transition = router.window.document.startViewTransition(async () => { optInStartTransition(() => setStateImpl(newState)); await renderPromise; }); transition.finished.finally(() => { setRenderDfd(undefined); setTransition(undefined); setPendingState(undefined); setVtContext({ isTransitioning: false }); }); setTransition(transition); } }, [optInStartTransition, pendingState, renderDfd, router.window]); // When the new location finally renders and is committed to the DOM, this // effect will run to resolve the transition react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { if (renderDfd && pendingState && state.location.key === pendingState.location.key) { renderDfd.resolve(); } }, [renderDfd, transition, state.location, pendingState]); // If we get interrupted with a new navigation during a transition, we skip // the active transition, let it cleanup, then kick it off again here react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { if (!vtContext.isTransitioning && interruption) { setPendingState(interruption.state); setVtContext({ isTransitioning: true, flushSync: false, currentLocation: interruption.currentLocation, nextLocation: interruption.nextLocation }); setInterruption(undefined); } }, [vtContext.isTransitioning, interruption]); react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { true ? (0,react_router__WEBPACK_IMPORTED_MODULE_2__.UNSAFE_warning)(fallbackElement == null || !router.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using " + "`v7_partialHydration`, use a `HydrateFallback` component instead") : 0; // Only log this once on initial mount // eslint-disable-next-line react-hooks/exhaustive-deps }, []); let navigator = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => { return { createHref: router.createHref, encodeLocation: router.encodeLocation, go: n => router.navigate(n), push: (to, state, opts) => router.navigate(to, { state, preventScrollReset: opts == null ? void 0 : opts.preventScrollReset }), replace: (to, state, opts) => router.navigate(to, { replace: true, state, preventScrollReset: opts == null ? void 0 : opts.preventScrollReset }) }; }, [router]); let basename = router.basename || "/"; let dataRouterContext = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => ({ router, navigator, static: false, basename }), [router, navigator, basename]); let routerFuture = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => ({ v7_relativeSplatPath: router.future.v7_relativeSplatPath }), [router.future.v7_relativeSplatPath]); react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => (0,react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_logV6DeprecationWarnings)(future, router.future), [future, router.future]); // The fragment and {null} here are important! We need them to keep React 18's // useId happy when we are server-rendering since we may have a <script> here // containing the hydrated server-side staticContext (from StaticRouterProvider). // useId relies on the component tree structure to generate deterministic id's // so we need to ensure it remains the same on the client even though // we don't need the <script> tag return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_DataRouterContext.Provider, { value: dataRouterContext }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_DataRouterStateContext.Provider, { value: state }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(FetchersContext.Provider, { value: fetcherData.current }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(ViewTransitionContext.Provider, { value: vtContext }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_3__.Router, { basename: basename, location: state.location, navigationType: state.historyAction, navigator: navigator, future: routerFuture }, state.initialized || router.future.v7_partialHydration ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(MemoizedDataRoutes, { routes: router.routes, future: router.future, state: state }) : fallbackElement))))), null); } // Memoize to avoid re-renders when updating `ViewTransitionContext` const MemoizedDataRoutes = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.memo(DataRoutes); function DataRoutes(_ref3) { let { routes, future, state } = _ref3; return (0,react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_useRoutesImpl)(routes, undefined, state, future); } /** * A `<Router>` for use in web browsers. Provides the cleanest URLs. */ function BrowserRouter(_ref4) { let { basename, children, future, window } = _ref4; let historyRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(); if (historyRef.current == null) { historyRef.current = (0,react_router__WEBPACK_IMPORTED_MODULE_2__.createBrowserHistory)({ window, v5Compat: true }); } let history = historyRef.current; let [state, setStateImpl] = react__WEBPACK_IMPORTED_MODULE_0__.useState({ action: history.action, location: history.location }); let { v7_startTransition } = future || {}; let setState = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(newState => { v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState); }, [setStateImpl, v7_startTransition]); react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect(() => history.listen(setState), [history, setState]); react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => (0,react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_logV6DeprecationWarnings)(future), [future]); return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_3__.Router, { basename: basename, children: children, location: state.location, navigationType: state.action, navigator: history, future: future }); } /** * A `<Router>` for use in web browsers. Stores the location in the hash * portion of the URL so it is not sent to the server. */ function HashRouter(_ref5) { let { basename, children, future, window } = _ref5; let historyRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(); if (historyRef.current == null) { historyRef.current = (0,react_router__WEBPACK_IMPORTED_MODULE_2__.createHashHistory)({ window, v5Compat: true }); } let history = historyRef.current; let [state, setStateImpl] = react__WEBPACK_IMPORTED_MODULE_0__.useState({ action: history.action, location: history.location }); let { v7_startTransition } = future || {}; let setState = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(newState => { v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState); }, [setStateImpl, v7_startTransition]); react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect(() => history.listen(setState), [history, setState]); react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => (0,react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_logV6DeprecationWarnings)(future), [future]); return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_3__.Router, { basename: basename, children: children, location: state.location, navigationType: state.action, navigator: history, future: future }); } /** * A `<Router>` that accepts a pre-instantiated history object. It's important * to note that using your own history object is highly discouraged and may add * two versions of the history library to your bundles unless you use the same * version of the history library that React Router uses internally. */ function HistoryRouter(_ref6) { let { basename, children, future, history } = _ref6; let [state, setStateImpl] = react__WEBPACK_IMPORTED_MODULE_0__.useState({ action: history.action, location: history.location }); let { v7_startTransition } = future || {}; let setState = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(newState => { v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState); }, [setStateImpl, v7_startTransition]); react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect(() => history.listen(setState), [history, setState]); react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => (0,react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_logV6DeprecationWarnings)(future), [future]); return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_router__WEBPACK_IMPORTED_MODULE_3__.Router, { basename: basename, children: children, location: state.location, navigationType: state.action, navigator: history, future: future }); } if (true) { HistoryRouter.displayName = "unstable_HistoryRouter"; } const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined"; const ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i; /** * The public API for rendering a history-aware `<a>`. */ const Link = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(function LinkWithRef(_ref7, ref) { let { onClick, relative, reloadDocument, replace, state, target, to, preventScrollReset, viewTransition } = _ref7, rest = _objectWithoutPropertiesLoose(_ref7, _excluded); let { basename } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_NavigationContext); // Rendered into <a href> for absolute URLs let absoluteHref; let isExternal = false; if (typeof to === "string" && ABSOLUTE_URL_REGEX.test(to)) { // Render the absolute href server- and client-side absoluteHref = to; // Only check for external origins client-side if (isBrowser) { try { let currentUrl = new URL(window.location.href); let targetUrl = to.startsWith("//") ? new URL(currentUrl.protocol + to) : new URL(to); let path = (0,react_router__WEBPACK_IMPORTED_MODULE_2__.stripBasename)(targetUrl.pathname, basename); if (targetUrl.origin === currentUrl.origin && path != null) { // Strip the protocol/origin/basename for same-origin absolute URLs to = path + targetUrl.search + targetUrl.hash; } else { isExternal = true; } } catch (e) { // We can't do external URL detection without a valid URL true ? (0,react_router__WEBPACK_IMPORTED_MODULE_2__.UNSAFE_warning)(false, "<Link to=\"" + to + "\"> contains an invalid URL which will probably break " + "when clicked - please update to a valid URL path.") : 0; } } } // Rendered into <a href> for relative URLs let href = (0,react_router__WEBPACK_IMPORTED_MODULE_3__.useHref)(to, { relative }); let internalOnClick = useLinkClickHandler(to, { replace, state, target, preventScrollReset, relative, viewTransition }); function handleClick(event) { if (onClick) onClick(event); if (!event.defaultPrevented) { internalOnClick(event); } } return ( /*#__PURE__*/ // eslint-disable-next-line jsx-a11y/anchor-has-content react__WEBPACK_IMPORTED_MODULE_0__.createElement("a", _extends({}, rest, { href: absoluteHref || href, onClick: isExternal || reloadDocument ? onClick : handleClick, ref: ref, target: target })) ); }); if (true) { Link.displayName = "Link"; } /** * A `<Link>` wrapper that knows if it's "active" or not. */ const NavLink = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(function NavLinkWithRef(_ref8, ref) { let { "aria-current": ariaCurrentProp = "page", caseSensitive = false, className: classNameProp = "", end = false, style: styleProp, to, viewTransition, children } = _ref8, rest = _objectWithoutPropertiesLoose(_ref8, _excluded2); let path = (0,react_router__WEBPACK_IMPORTED_MODULE_3__.useResolvedPath)(to, { relative: rest.relative }); let location = (0,react_router__WEBPACK_IMPORTED_MODULE_3__.useLocation)(); let routerState = react__WEBPACK_IMPORTED_MODULE_0__.useContext(react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_DataRouterStateContext); let { navigator, basename } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_NavigationContext); let isTransitioning = routerState != null && // Conditional usage is OK here because the usage of a data router is static // eslint-disable-next-line react-hooks/rules-of-hooks useViewTransitionState(path) && viewTransition === true; let toPathname = navigator.encodeLocation ? navigator.encodeLocation(path).pathname : path.pathname; let locationPathname = location.pathname; let nextLocationPathname = routerState && routerState.navigation && routerState.navigation.location ? routerState.navigation.location.pathname : null; if (!caseSensitive) { locationPathname = locationPathname.toLowerCase(); nextLocationPathname = nextLocationPathname ? nextLocationPathname.toLowerCase() : null; toPathname = toPathname.toLowerCase(); } if (nextLocationPathname && basename) { nextLocationPathname = (0,react_router__WEBPACK_IMPORTED_MODULE_2__.stripBasename)(nextLocationPathname, basename) || nextLocationPathname; } // If the `to` has a trailing slash, look at that exact spot. Otherwise, // we're looking for a slash _after_ what's in `to`. For example: // // <NavLink to="/users"> and <NavLink to="/users/"> // both want to look for a / at index 6 to match URL `/users/matt` const endSlashPosition = toPathname !== "/" && toPathname.endsWith("/") ? toPathname.length - 1 : toPathname.length; let isActive = locationPathname === toPathname || !end && locationPathname.startsWith(toPathname) && locationPathname.charAt(endSlashPosition) === "/"; let isPending = nextLocationPathname != null && (nextLocationPathname === toPathname || !end && nextLocationPathname.startsWith(toPathname) && nextLocationPathname.charAt(toPathname.length) === "/"); let renderProps = { isActive, isPending, isTransitioning }; let ariaCurrent = isActive ? ariaCurrentProp : undefined; let className; if (typeof classNameProp === "function") { className = classNameProp(renderProps); } else { // If the className prop is not a function, we use a default `active` // class for <NavLink />s that are active. In v5 `active` was the default // value for `activeClassName`, but we are removing that API and can still // use the old default behavior for a cleaner upgrade path and keep the // simple styling rules working as they currently do. className = [classNameProp, isActive ? "active" : null, isPending ? "pending" : null, isTransitioning ? "transitioning" : null].filter(Boolean).join(" "); } let style = typeof styleProp === "function" ? styleProp(renderProps) : styleProp; return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Link, _extends({}, rest, { "aria-current": ariaCurrent, className: className, ref: ref, style: style, to: to, viewTransition: viewTransition }), typeof children === "function" ? children(renderProps) : children); }); if (true) { NavLink.displayName = "NavLink"; } /** * A `@remix-run/router`-aware `<form>`. It behaves like a normal form except * that the interaction with the server is with `fetch` instead of new document * requests, allowing components to add nicer UX to the page as the form is * submitted and returns with data. */ const Form = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((_ref9, forwardedRef) => { let { fetcherKey, navigate, reloadDocument, replace, state, method = defaultMethod, action, onSubmit, relative, preventScrollReset, viewTransition } = _ref9, props = _objectWithoutPropertiesLoose(_ref9, _excluded3); let submit = useSubmit(); let formAction = useFormAction(action, { relative }); let formMethod = method.toLowerCase() === "get" ? "get" : "post"; let submitHandler = event => { onSubmit && onSubmit(event); if (event.defaultPrevented) return; event.preventDefault(); let submitter = event.nativeEvent.submitter; let submitMethod = (submitter == null ? void 0 : submitter.getAttribute("formmethod")) || method; submit(submitter || event.currentTarget, { fetcherKey, method: submitMethod, navigate, replace, state, relative, preventScrollReset, viewTransition }); }; return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("form", _extends({ ref: forwardedRef, method: formMethod, action: formAction, onSubmit: reloadDocument ? onSubmit : submitHandler }, props)); }); if (true) { Form.displayName = "Form"; } /** * This component will emulate the browser's scroll restoration on location * changes. */ function ScrollRestoration(_ref10) { let { getKey, storageKey } = _ref10; useScrollRestoration({ getKey, storageKey }); return null; } if (true) { ScrollRestoration.displayName = "ScrollRestoration"; } //#endregion //////////////////////////////////////////////////////////////////////////////// //#region Hooks //////////////////////////////////////////////////////////////////////////////// var DataRouterHook; (function (DataRouterHook) { DataRouterHook["UseScrollRestoration"] = "useScrollRestoration"; DataRouterHook["UseSubmit"] = "useSubmit"; DataRouterHook["UseSubmitFetcher"] = "useSubmitFetcher"; DataRouterHook["UseFetcher"] = "useFetcher"; DataRouterHook["useViewTransitionState"] = "useViewTransitionState"; })(DataRouterHook || (DataRouterHook = {})); var DataRouterStateHook; (function (DataRouterStateHook) { DataRouterStateHook["UseFetcher"] = "useFetcher"; DataRouterStateHook["UseFetchers"] = "useFetchers"; DataRouterStateHook["UseScrollRestoration"] = "useScrollRestoration"; })(DataRouterStateHook || (DataRouterStateHook = {})); // Internal hooks function getDataRouterConsoleError(hookName) { return hookName + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."; } function useDataRouterContext(hookName) { let ctx = react__WEBPACK_IMPORTED_MODULE_0__.useContext(react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_DataRouterContext); !ctx ? true ? (0,react_router__WEBPACK_IMPORTED_MODULE_2__.UNSAFE_invariant)(false, getDataRouterConsoleError(hookName)) : 0 : void 0; return ctx; } function useDataRouterState(hookName) { let state = react__WEBPACK_IMPORTED_MODULE_0__.useContext(react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_DataRouterStateContext); !state ? true ? (0,react_router__WEBPACK_IMPORTED_MODULE_2__.UNSAFE_invariant)(false, getDataRouterConsoleError(hookName)) : 0 : void 0; return state; } // External hooks /** * Handles the click behavior for router `<Link>` components. This is useful if * you need to create custom `<Link>` components with the same click behavior we * use in our exported `<Link>`. */ function useLinkClickHandler(to, _temp) { let { target, replace: replaceProp, state, preventScrollReset, relative, viewTransition } = _temp === void 0 ? {} : _temp; let navigate = (0,react_router__WEBPACK_IMPORTED_MODULE_3__.useNavigate)(); let location = (0,react_router__WEBPACK_IMPORTED_MODULE_3__.useLocation)(); let path = (0,react_router__WEBPACK_IMPORTED_MODULE_3__.useResolvedPath)(to, { relative }); return react__WEBPACK_IMPORTED_MODULE_0__.useCallback(event => { if (shouldProcessLinkClick(event, target)) { event.preventDefault(); // If the URL hasn't changed, a regular <a> will do a replace instead of // a push, so do the same here unless the replace prop is explicitly set let replace = replaceProp !== undefined ? replaceProp : (0,react_router__WEBPACK_IMPORTED_MODULE_2__.createPath)(location) === (0,react_router__WEBPACK_IMPORTED_MODULE_2__.createPath)(path); navigate(to, { replace, state, preventScrollReset, relative, viewTransition }); } }, [location, navigate, path, replaceProp, state, target, to, preventScrollReset, relative, viewTransition]); } /** * A convenient wrapper for reading and writing search parameters via the * URLSearchParams interface. */ function useSearchParams(defaultInit) { true ? (0,react_router__WEBPACK_IMPORTED_MODULE_2__.UNSAFE_warning)(typeof URLSearchParams !== "undefined", "You cannot use the `useSearchParams` hook in a browser that does not " + "support the URLSearchParams API. If you need to support Internet " + "Explorer 11, we recommend you load a polyfill such as " + "https://github.com/ungap/url-search-params.") : 0; let defaultSearchParamsRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(createSearchParams(defaultInit)); let hasSetSearchParamsRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false); let location = (0,react_router__WEBPACK_IMPORTED_MODULE_3__.useLocation)(); let searchParams = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => // Only merge in the defaults if we haven't yet called setSearchParams. // Once we call that we want those to take precedence, otherwise you can't // remove a param with setSearchParams({}) if it has an initial value getSearchParamsForLocation(location.search, hasSetSearchParamsRef.current ? null : defaultSearchParamsRef.current), [location.search]); let navigate = (0,react_router__WEBPACK_IMPORTED_MODULE_3__.useNavigate)(); let setSearchParams = react__WEBPACK_IMPORTED_MODULE_0__.useCallback((nextInit, navigateOptions) => { const newSearchParams = createSearchParams(typeof nextInit === "function" ? nextInit(searchParams) : nextInit); hasSetSearchParamsRef.current = true; navigate("?" + newSearchParams, navigateOptions); }, [navigate, searchParams]); return [searchParams, setSearchParams]; } function validateClientSideSubmission() { if (typeof document === "undefined") { throw new Error("You are calling submit during the server render. " + "Try calling submit within a `useEffect` or callback instead."); } } let fetcherId = 0; let getUniqueFetcherId = () => "__" + String(++fetcherId) + "__"; /** * Returns a function that may be used to programmatically submit a form (or * some arbitrary data) to the server. */ function useSubmit() { let { router } = useDataRouterContext(DataRouterHook.UseSubmit); let { basename } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_NavigationContext); let currentRouteId = (0,react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_useRouteId)(); return react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (target, options) { if (options === void 0) { options = {}; } validateClientSideSubmission(); let { action, method, encType, formData, body } = getFormSubmissionInfo(target, basename); if (options.navigate === false) { let key = options.fetcherKey || getUniqueFetcherId(); router.fetch(key, currentRouteId, options.action || action, { preventScrollReset: options.preventScrollReset, formData, body, formMethod: options.method || method, formEncType: options.encType || encType, flushSync: options.flushSync }); } else { router.navigate(options.action || action, { preventScrollReset: options.preventScrollReset, formData, body, formMethod: options.method || method, formEncType: options.encType || encType, replace: options.replace, state: options.state, fromRouteId: currentRouteId, flushSync: options.flushSync, viewTransition: options.viewTransition }); } }, [router, basename, currentRouteId]); } // v7: Eventually we should deprecate this entirely in favor of using the // router method directly? function useFormAction(action, _temp2) { let { relative } = _temp2 === void 0 ? {} : _temp2; let { basename } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_NavigationContext); let routeContext = react__WEBPACK_IMPORTED_MODULE_0__.useContext(react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_RouteContext); !routeContext ? true ? (0,react_router__WEBPACK_IMPORTED_MODULE_2__.UNSAFE_invariant)(false, "useFormAction must be used inside a RouteContext") : 0 : void 0; let [match] = routeContext.matches.slice(-1); // Shallow clone path so we can modify it below, otherwise we modify the // object referenced by useMemo inside useResolvedPath let path = _extends({}, (0,react_router__WEBPACK_IMPORTED_MODULE_3__.useResolvedPath)(action ? action : ".", { relative })); // If no action was specified, browsers will persist current search params // when determining the path, so match that behavior // https://github.com/remix-run/remix/issues/927 let location = (0,react_router__WEBPACK_IMPORTED_MODULE_3__.useLocation)(); if (action == null) { // Safe to write to this directly here since if action was undefined, we // would have called useResolvedPath(".") which will never include a search path.search = location.search; // When grabbing search params from the URL, remove any included ?index param // since it might not apply to our contextual route. We add it back based // on match.route.index below let params = new URLSearchParams(path.search); let indexValues = params.getAll("index"); let hasNakedIndexParam = indexValues.some(v => v === ""); if (hasNakedIndexParam) { params.delete("index"); indexValues.filter(v => v).forEach(v => params.append("index", v)); let qs = params.toString(); path.search = qs ? "?" + qs : ""; } } if ((!action || action === ".") && match.route.index) { path.search = path.search ? path.search.replace(/^\?/, "?index&") : "?index"; } // If we're operating within a basename, prepend it to the pathname prior // to creating the form action. If this is a root navigation, then just use // the raw basename which allows the basename to have full control over the // presence of a trailing slash on root actions if (basename !== "/") { path.pathname = path.pathname === "/" ? basename : (0,react_router__WEBPACK_IMPORTED_MODULE_2__.joinPaths)([basename, path.pathname]); } return (0,react_router__WEBPACK_IMPORTED_MODULE_2__.createPath)(path); } // TODO: (v7) Change the useFetcher generic default from `any` to `unknown` /** * Interacts with route loaders and actions without causing a navigation. Great * for any interaction that stays on the same page. */ function useFetcher(_temp3) { var _route$matches; let { key } = _temp3 === void 0 ? {} : _temp3; let { router } = useDataRouterContext(DataRouterHook.UseFetcher); let state = useDataRouterState(DataRouterStateHook.UseFetcher); let fetcherData = react__WEBPACK_IMPORTED_MODULE_0__.useContext(FetchersContext); let route = react__WEBPACK_IMPORTED_MODULE_0__.useContext(react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_RouteContext); let routeId = (_route$matches = route.matches[route.matches.length - 1]) == null ? void 0 : _route$matches.route.id; !fetcherData ? true ? (0,react_router__WEBPACK_IMPORTED_MODULE_2__.UNSAFE_invariant)(false, "useFetcher must be used inside a FetchersContext") : 0 : void 0; !route ? true ? (0,react_router__WEBPACK_IMPORTED_MODULE_2__.UNSAFE_invariant)(false, "useFetcher must be used inside a RouteContext") : 0 : void 0; !(routeId != null) ? true ? (0,react_router__WEBPACK_IMPORTED_MODULE_2__.UNSAFE_invariant)(false, "useFetcher can only be used on routes that contain a unique \"id\"") : 0 : void 0; // Fetcher key handling // OK to call conditionally to feature detect `useId` // eslint-disable-next-line react-hooks/rules-of-hooks let defaultKey = useIdImpl ? useIdImpl() : ""; let [fetcherKey, setFetcherKey] = react__WEBPACK_IMPORTED_MODULE_0__.useState(key || defaultKey); if (key && key !== fetcherKey) { setFetcherKey(key); } else if (!fetcherKey) { // We will only fall through here when `useId` is not available setFetcherKey(getUniqueFetcherId()); } // Registration/cleanup react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { router.getFetcher(fetcherKey); return () => { // Tell the router we've unmounted - if v7_fetcherPersist is enabled this // will not delete immediately but instead queue up a delete after the // fetcher returns to an `idle` state router.deleteFetcher(fetcherKey); }; }, [router, fetcherKey]); // Fetcher additions let load = react__WEBPACK_IMPORTED_MODULE_0__.useCallback((href, opts) => { !routeId ? true ? (0,react_router__WEBPACK_IMPORTED_MODULE_2__.UNSAFE_invariant)(false, "No routeId available for fetcher.load()") : 0 : void 0; router.fetch(fetcherKey, routeId, href, opts); }, [fetcherKey, routeId, router]); let submitImpl = useSubmit(); let submit = react__WEBPACK_IMPORTED_MODULE_0__.useCallback((target, opts) => { submitImpl(target, _extends({}, opts, { navigate: false, fetcherKey })); }, [fetcherKey, submitImpl]); let FetcherForm = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => { let FetcherForm = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((props, ref) => { return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Form, _extends({}, props, { navigate: false, fetcherKey: fetcherKey, ref: ref })); }); if (true) { FetcherForm.displayName = "fetcher.Form"; } return FetcherForm; }, [fetcherKey]); // Exposed FetcherWithComponents let fetcher = state.fetchers.get(fetcherKey) || react_router__WEBPACK_IMPORTED_MODULE_2__.IDLE_FETCHER; let data = fetcherData.get(fetcherKey); let fetcherWithComponents = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => _extends({ Form: FetcherForm, submit, load }, fetcher, { data }), [FetcherForm, submit, load, fetcher, data]); return fetcherWithComponents; } /** * Provides all fetchers currently on the page. Useful for layouts and parent * routes that need to provide pending/optimistic UI regarding the fetch. */ function useFetchers() { let state = useDataRouterState(DataRouterStateHook.UseFetchers); return Array.from(state.fetchers.entries()).map(_ref11 => { let [key, fetcher] = _ref11; return _extends({}, fetcher, { key }); }); } const SCROLL_RESTORATION_STORAGE_KEY = "react-router-scroll-positions"; let savedScrollPositions = {}; /** * When rendered inside a RouterProvider, will restore scroll positions on navigations */ function useScrollRestoration(_temp4) { let { getKey, storageKey } = _temp4 === void 0 ? {} : _temp4; let { router } = useDataRouterContext(DataRouterHook.UseScrollRestoration); let { restoreScrollPosition, preventScrollReset } = useDataRouterState(DataRouterStateHook.UseScrollRestoration); let { basename } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(react_router__WEBPACK_IMPORTED_MODULE_3__.UNSAFE_NavigationContext); let location = (0,react_router__WEBPACK_IMPORTED_MODULE_3__.useLocation)(); let matches = (0,react_router__WEBPACK_IMPORTED_MODULE_3__.useMatches)(); let navigation = (0,react_router__WEBPACK_IMPORTED_MODULE_3__.useNavigation)(); // Trigger manual scroll restoration while we're active react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { window.history.scrollRestoration = "manual"; return () => { window.history.scrollRestoration = "auto"; }; }, []); // Save positions on pagehide usePageHide(react__WEBPACK_IMPORTED_MODULE_0__.useCallback(() => { if (navigation.state === "idle") { let key = (getKey ? getKey(location, matches) : null) || location.key; savedScrollPositions[key] = window.scrollY; } try { sessionStorage.setItem(storageKey || SCROLL_RESTORATION_STORAGE_KEY, JSON.stringify(savedScrollPositions)); } catch (error) { true ? (0,react_router__WEBPACK_IMPORTED_MODULE_2__.UNSAFE_warning)(false, "Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (" + error + ").") : 0; } window.history.scrollRestoration = "auto"; }, [storageKey, getKey, navigation.state, location, matches])); // Read in any saved scroll locations if (typeof document !== "undefined") { // eslint-disable-next-line react-hooks/rules-of-hooks react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect(() => { try { let sessionPositions = sessionStorage.getItem(storageKey || SCROLL_RESTORATION_STORAGE_KEY); if (sessionPositions) { savedScrollPositions = JSON.parse(sessionPositions); } } catch (e) { // no-op, use default empty object } }, [storageKey]); // Enable scroll restoration in the router // eslint-disable-next-line react-hooks/rules-of-hooks react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect(() => { let getKeyWithoutBasename = getKey && basename !== "/" ? (location, matches) => getKey( // Strip the basename to match useLocation() _extends({}, location, { pathname: (0,react_router__WEBPACK_IMPORTED_MODULE_2__.stripBasename)(location.pathname, basename) || location.pathname }), matches) : getKey; let disableScrollRestoration = router == null ? void 0 : router.enableScrollRestoration(savedScrollPositions, () => window.scrollY, getKeyWithoutBasename); return () => disableScrollRestoration && disableScrollRestoration(); }, [router, basename, getKey]); // Restore scrolling when state.restoreScrollPosition changes // eslint-disable-next-line react-hooks/rules-of-hooks react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect(() => { // Explicit false means don't do anything (used for submissions) if (restoreScrollPosition === false) { return; } // been here before, scroll to it if (typeof restoreScrollPosition === "number") { window.scrollTo(0, restoreScrollPosition); return; } // try to scroll to the hash if (location.hash) { let el = document.getElementById(decodeURIComponent(location.hash.slice(1))); if (el) { el.scrollIntoView(); return; } } // Don't reset if this navigation opted out if (preventScrollReset === true) { return; } // otherwise go to the top on new locations window.scrollTo(0, 0); }, [location, restoreScrollPosition, preventScrollReset]); } } /** * Setup a callback to be fired on the window's `beforeunload` event. This is * useful for saving some data to `window.localStorage` just before the page * refreshes. * * Note: The `callback` argument should be a function created with * `React.useCallback()`. */ function useBeforeUnload(callback, options) { let { capture } = options || {}; react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { let opts = capture != null ? { capture } : undefined; window.addEventListener("beforeunload", callback, opts); return () => { window.removeEventListener("beforeunload", callback, opts); }; }, [callback, capture]); } /** * Setup a callback to be fired on the window's `pagehide` event. This is * useful for saving some data to `window.localStorage` just before the page * refreshes. This event is better supported than beforeunload across browsers. * * Note: The `callback` argument should be a function created with * `React.useCallback()`. */ function usePageHide(callback, options) { let { capture } = options || {}; react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { let opts = capture != null ? { capture } : undefined; window.addEventListener("pagehide", callback, opts); return () => { window.removeEventListener("pagehide", callback, opts); }; }, [callback, capture]); } /** * Wrapper around useBlocker to show a window.confirm prompt to users instead * of building a custom UI with useBlocker. * * Warning: This has *a lot of rough edges* and behaves very differently (and * very incorrectly in some cases) across browsers if user click addition * back/forward navigations while the confirm is open. Use at your own risk. */ function usePrompt(_ref12) { let { when, message } = _ref12; let blocker = (0,react_router__WEBPACK_IMPORTED_MODULE_3__.useBlocker)(when); react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { if (blocker.state === "blocked") { let proceed = window.confirm(message); if (proceed) { // This timeout is needed to avoid a weird "race" on POP navigations // between the `window.history` revert navigation and the result of // `window.confirm` setTimeout(blocker.proceed, 0); } else { blocker.reset(); } } }, [blocker, message]); react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { if (blocker.state === "blocked" && !when) { blocker.reset(); } }, [blocker, when]); } /** * Return a boolean indicating if there is an active view transition to the * given href. You can use this value to render CSS classes or viewTransitionName * styles onto your elements * * @param href The destination href * @param [opts.relative] Relative routing type ("route" | "path") */ function useViewTransitionState(to, opts) { if (opts === void 0) { opts = {}; } let vtContext = react__WEBPACK_IMPORTED_MODULE_0__.useContext(ViewTransitionContext); !(vtContext != null) ? true ? (0,react_router__WEBPACK_IMPORTED_MODULE_2__.UNSAFE_invariant)(false, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. " + "Did you accidentally import `RouterProvider` from `react-router`?") : 0 : void 0; let { basename } = useDataRouterContext(DataRouterHook.useViewTransitionState); let path = (0,react_router__WEBPACK_IMPORTED_MODULE_3__.useResolvedPath)(to, { relative: opts.relative }); if (!vtContext.isTransitioning) { return false; } let currentPath = (0,react_router__WEBPACK_IMPORTED_MODULE_2__.stripBasename)(vtContext.currentLocation.pathname, basename) || vtContext.currentLocation.pathname; let nextPath = (0,react_router__WEBPACK_IMPORTED_MODULE_2__.stripBasename)(vtContext.nextLocation.pathname, basename) || vtContext.nextLocation.pathname; // Transition is active if we're going to or coming from the indicated // destination. This ensures that other PUSH navigations that reverse // an indicated transition apply. I.e., on the list view you have: // // <NavLink to="/details/1" viewTransition> // // If you click the breadcrumb back to the list view: // // <NavLink to="/list" viewTransition> // // We should apply the transition because it's indicated as active going // from /list -> /details/1 and therefore should be active on the reverse // (even though this isn't strictly a POP reverse) return (0,react_router__WEBPACK_IMPORTED_MODULE_2__.matchPath)(path.pathname, nextPath) != null || (0,react_router__WEBPACK_IMPORTED_MODULE_2__.matchPath)(path.pathname, currentPath) != null; } //#endregion //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/react-router/dist/index.js": /*!*************************************************!*\ !*** ./node_modules/react-router/dist/index.js ***! \*************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ AbortedDeferredError: () => (/* reexport safe */ _remix_run_router__WEBPACK_IMPORTED_MODULE_1__.AbortedDeferredError), /* harmony export */ Await: () => (/* binding */ Await), /* harmony export */ MemoryRouter: () => (/* binding */ MemoryRouter), /* harmony export */ Navigate: () => (/* binding */ Navigate), /* harmony export */ NavigationType: () => (/* reexport safe */ _remix_run_router__WEBPACK_IMPORTED_MODULE_1__.Action), /* harmony export */ Outlet: () => (/* binding */ Outlet), /* harmony export */ Route: () => (/* binding */ Route), /* harmony export */ Router: () => (/* binding */ Router), /* harmony export */ RouterProvider: () => (/* binding */ RouterProvider), /* harmony export */ Routes: () => (/* binding */ Routes), /* harmony export */ UNSAFE_DataRouterContext: () => (/* binding */ DataRouterContext), /* harmony export */ UNSAFE_DataRouterStateContext: () => (/* binding */ DataRouterStateContext), /* harmony export */ UNSAFE_LocationContext: () => (/* binding */ LocationContext), /* harmony export */ UNSAFE_NavigationContext: () => (/* binding */ NavigationContext), /* harmony export */ UNSAFE_RouteContext: () => (/* binding */ RouteContext), /* harmony export */ UNSAFE_logV6DeprecationWarnings: () => (/* binding */ logV6DeprecationWarnings), /* harmony export */ UNSAFE_mapRouteProperties: () => (/* binding */ mapRouteProperties), /* harmony export */ UNSAFE_useRouteId: () => (/* binding */ useRouteId), /* harmony export */ UNSAFE_useRoutesImpl: () => (/* binding */ useRoutesImpl), /* harmony export */ createMemoryRouter: () => (/* binding */ createMemoryRouter), /* harmony export */ createPath: () => (/* reexport safe */ _remix_run_router__WEBPACK_IMPORTED_MODULE_1__.createPath), /* harmony export */ createRoutesFromChildren: () => (/* binding */ createRoutesFromChildren), /* harmony export */ createRoutesFromElements: () => (/* binding */ createRoutesFromChildren), /* harmony export */ defer: () => (/* reexport safe */ _remix_run_router__WEBPACK_IMPORTED_MODULE_1__.defer), /* harmony export */ generatePath: () => (/* reexport safe */ _remix_run_router__WEBPACK_IMPORTED_MODULE_1__.generatePath), /* harmony export */ isRouteErrorResponse: () => (/* reexport safe */ _remix_run_router__WEBPACK_IMPORTED_MODULE_1__.isRouteErrorResponse), /* harmony export */ json: () => (/* reexport safe */ _remix_run_router__WEBPACK_IMPORTED_MODULE_1__.json), /* harmony export */ matchPath: () => (/* reexport safe */ _remix_run_router__WEBPACK_IMPORTED_MODULE_1__.matchPath), /* harmony export */ matchRoutes: () => (/* reexport safe */ _remix_run_router__WEBPACK_IMPORTED_MODULE_1__.matchRoutes), /* harmony export */ parsePath: () => (/* reexport safe */ _remix_run_router__WEBPACK_IMPORTED_MODULE_1__.parsePath), /* harmony export */ redirect: () => (/* reexport safe */ _remix_run_router__WEBPACK_IMPORTED_MODULE_1__.redirect), /* harmony export */ redirectDocument: () => (/* reexport safe */ _remix_run_router__WEBPACK_IMPORTED_MODULE_1__.redirectDocument), /* harmony export */ renderMatches: () => (/* binding */ renderMatches), /* harmony export */ replace: () => (/* reexport safe */ _remix_run_router__WEBPACK_IMPORTED_MODULE_1__.replace), /* harmony export */ resolvePath: () => (/* reexport safe */ _remix_run_router__WEBPACK_IMPORTED_MODULE_1__.resolvePath), /* harmony export */ useActionData: () => (/* binding */ useActionData), /* harmony export */ useAsyncError: () => (/* binding */ useAsyncError), /* harmony export */ useAsyncValue: () => (/* binding */ useAsyncValue), /* harmony export */ useBlocker: () => (/* binding */ useBlocker), /* harmony export */ useHref: () => (/* binding */ useHref), /* harmony export */ useInRouterContext: () => (/* binding */ useInRouterContext), /* harmony export */ useLoaderData: () => (/* binding */ useLoaderData), /* harmony export */ useLocation: () => (/* binding */ useLocation), /* harmony export */ useMatch: () => (/* binding */ useMatch), /* harmony export */ useMatches: () => (/* binding */ useMatches), /* harmony export */ useNavigate: () => (/* binding */ useNavigate), /* harmony export */ useNavigation: () => (/* binding */ useNavigation), /* harmony export */ useNavigationType: () => (/* binding */ useNavigationType), /* harmony export */ useOutlet: () => (/* binding */ useOutlet), /* harmony export */ useOutletContext: () => (/* binding */ useOutletContext), /* harmony export */ useParams: () => (/* binding */ useParams), /* harmony export */ useResolvedPath: () => (/* binding */ useResolvedPath), /* harmony export */ useRevalidator: () => (/* binding */ useRevalidator), /* harmony export */ useRouteError: () => (/* binding */ useRouteError), /* harmony export */ useRouteLoaderData: () => (/* binding */ useRouteLoaderData), /* harmony export */ useRoutes: () => (/* binding */ useRoutes) /* harmony export */ }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _remix_run_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @remix-run/router */ "./node_modules/@remix-run/router/dist/router.js"); /** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } // Create react-specific types from the agnostic types in @remix-run/router to // export from react-router const DataRouterContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(null); if (true) { DataRouterContext.displayName = "DataRouter"; } const DataRouterStateContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(null); if (true) { DataRouterStateContext.displayName = "DataRouterState"; } const AwaitContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(null); if (true) { AwaitContext.displayName = "Await"; } /** * A Navigator is a "location changer"; it's how you get to different locations. * * Every history instance conforms to the Navigator interface, but the * distinction is useful primarily when it comes to the low-level `<Router>` API * where both the location and a navigator must be provided separately in order * to avoid "tearing" that may occur in a suspense-enabled app if the action * and/or location were to be read directly from the history instance. */ const NavigationContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(null); if (true) { NavigationContext.displayName = "Navigation"; } const LocationContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(null); if (true) { LocationContext.displayName = "Location"; } const RouteContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext({ outlet: null, matches: [], isDataRoute: false }); if (true) { RouteContext.displayName = "Route"; } const RouteErrorContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(null); if (true) { RouteErrorContext.displayName = "RouteError"; } /** * Returns the full href for the given "to" value. This is useful for building * custom links that are also accessible and preserve right-click behavior. * * @see https://reactrouter.com/v6/hooks/use-href */ function useHref(to, _temp) { let { relative } = _temp === void 0 ? {} : _temp; !useInRouterContext() ? true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_invariant)(false, // TODO: This error is probably because they somehow have 2 versions of the // router loaded. We can help them understand how to avoid that. "useHref() may be used only in the context of a <Router> component.") : 0 : void 0; let { basename, navigator } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(NavigationContext); let { hash, pathname, search } = useResolvedPath(to, { relative }); let joinedPathname = pathname; // If we're operating within a basename, prepend it to the pathname prior // to creating the href. If this is a root navigation, then just use the raw // basename which allows the basename to have full control over the presence // of a trailing slash on root links if (basename !== "/") { joinedPathname = pathname === "/" ? basename : (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.joinPaths)([basename, pathname]); } return navigator.createHref({ pathname: joinedPathname, search, hash }); } /** * Returns true if this component is a descendant of a `<Router>`. * * @see https://reactrouter.com/v6/hooks/use-in-router-context */ function useInRouterContext() { return react__WEBPACK_IMPORTED_MODULE_0__.useContext(LocationContext) != null; } /** * Returns the current location object, which represents the current URL in web * browsers. * * Note: If you're using this it may mean you're doing some of your own * "routing" in your app, and we'd like to know what your use case is. We may * be able to provide something higher-level to better suit your needs. * * @see https://reactrouter.com/v6/hooks/use-location */ function useLocation() { !useInRouterContext() ? true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_invariant)(false, // TODO: This error is probably because they somehow have 2 versions of the // router loaded. We can help them understand how to avoid that. "useLocation() may be used only in the context of a <Router> component.") : 0 : void 0; return react__WEBPACK_IMPORTED_MODULE_0__.useContext(LocationContext).location; } /** * Returns the current navigation action which describes how the router came to * the current location, either by a pop, push, or replace on the history stack. * * @see https://reactrouter.com/v6/hooks/use-navigation-type */ function useNavigationType() { return react__WEBPACK_IMPORTED_MODULE_0__.useContext(LocationContext).navigationType; } /** * Returns a PathMatch object if the given pattern matches the current URL. * This is useful for components that need to know "active" state, e.g. * `<NavLink>`. * * @see https://reactrouter.com/v6/hooks/use-match */ function useMatch(pattern) { !useInRouterContext() ? true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_invariant)(false, // TODO: This error is probably because they somehow have 2 versions of the // router loaded. We can help them understand how to avoid that. "useMatch() may be used only in the context of a <Router> component.") : 0 : void 0; let { pathname } = useLocation(); return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.matchPath)(pattern, (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_decodePath)(pathname)), [pathname, pattern]); } /** * The interface for the navigate() function returned from useNavigate(). */ const navigateEffectWarning = "You should call navigate() in a React.useEffect(), not when " + "your component is first rendered."; // Mute warnings for calls to useNavigate in SSR environments function useIsomorphicLayoutEffect(cb) { let isStatic = react__WEBPACK_IMPORTED_MODULE_0__.useContext(NavigationContext).static; if (!isStatic) { // We should be able to get rid of this once react 18.3 is released // See: https://github.com/facebook/react/pull/26395 // eslint-disable-next-line react-hooks/rules-of-hooks react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect(cb); } } /** * Returns an imperative method for changing the location. Used by `<Link>`s, but * may also be used by other elements to change the location. * * @see https://reactrouter.com/v6/hooks/use-navigate */ function useNavigate() { let { isDataRoute } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(RouteContext); // Conditional usage is OK here because the usage of a data router is static // eslint-disable-next-line react-hooks/rules-of-hooks return isDataRoute ? useNavigateStable() : useNavigateUnstable(); } function useNavigateUnstable() { !useInRouterContext() ? true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_invariant)(false, // TODO: This error is probably because they somehow have 2 versions of the // router loaded. We can help them understand how to avoid that. "useNavigate() may be used only in the context of a <Router> component.") : 0 : void 0; let dataRouterContext = react__WEBPACK_IMPORTED_MODULE_0__.useContext(DataRouterContext); let { basename, future, navigator } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(NavigationContext); let { matches } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(RouteContext); let { pathname: locationPathname } = useLocation(); let routePathnamesJson = JSON.stringify((0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_getResolveToMatches)(matches, future.v7_relativeSplatPath)); let activeRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false); useIsomorphicLayoutEffect(() => { activeRef.current = true; }); let navigate = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (to, options) { if (options === void 0) { options = {}; } true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_warning)(activeRef.current, navigateEffectWarning) : 0; // Short circuit here since if this happens on first render the navigate // is useless because we haven't wired up our history listener yet if (!activeRef.current) return; if (typeof to === "number") { navigator.go(to); return; } let path = (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.resolveTo)(to, JSON.parse(routePathnamesJson), locationPathname, options.relative === "path"); // If we're operating within a basename, prepend it to the pathname prior // to handing off to history (but only if we're not in a data router, // otherwise it'll prepend the basename inside of the router). // If this is a root navigation, then we navigate to the raw basename // which allows the basename to have full control over the presence of a // trailing slash on root links if (dataRouterContext == null && basename !== "/") { path.pathname = path.pathname === "/" ? basename : (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.joinPaths)([basename, path.pathname]); } (!!options.replace ? navigator.replace : navigator.push)(path, options.state, options); }, [basename, navigator, routePathnamesJson, locationPathname, dataRouterContext]); return navigate; } const OutletContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createContext(null); /** * Returns the context (if provided) for the child route at this level of the route * hierarchy. * @see https://reactrouter.com/v6/hooks/use-outlet-context */ function useOutletContext() { return react__WEBPACK_IMPORTED_MODULE_0__.useContext(OutletContext); } /** * Returns the element for the child route at this level of the route * hierarchy. Used internally by `<Outlet>` to render child routes. * * @see https://reactrouter.com/v6/hooks/use-outlet */ function useOutlet(context) { let outlet = react__WEBPACK_IMPORTED_MODULE_0__.useContext(RouteContext).outlet; if (outlet) { return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(OutletContext.Provider, { value: context }, outlet); } return outlet; } /** * Returns an object of key/value pairs of the dynamic params from the current * URL that were matched by the route path. * * @see https://reactrouter.com/v6/hooks/use-params */ function useParams() { let { matches } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(RouteContext); let routeMatch = matches[matches.length - 1]; return routeMatch ? routeMatch.params : {}; } /** * Resolves the pathname of the given `to` value against the current location. * * @see https://reactrouter.com/v6/hooks/use-resolved-path */ function useResolvedPath(to, _temp2) { let { relative } = _temp2 === void 0 ? {} : _temp2; let { future } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(NavigationContext); let { matches } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(RouteContext); let { pathname: locationPathname } = useLocation(); let routePathnamesJson = JSON.stringify((0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_getResolveToMatches)(matches, future.v7_relativeSplatPath)); return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.resolveTo)(to, JSON.parse(routePathnamesJson), locationPathname, relative === "path"), [to, routePathnamesJson, locationPathname, relative]); } /** * Returns the element of the route that matched the current location, prepared * with the correct context to render the remainder of the route tree. Route * elements in the tree must render an `<Outlet>` to render their child route's * element. * * @see https://reactrouter.com/v6/hooks/use-routes */ function useRoutes(routes, locationArg) { return useRoutesImpl(routes, locationArg); } // Internal implementation with accept optional param for RouterProvider usage function useRoutesImpl(routes, locationArg, dataRouterState, future) { !useInRouterContext() ? true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_invariant)(false, // TODO: This error is probably because they somehow have 2 versions of the // router loaded. We can help them understand how to avoid that. "useRoutes() may be used only in the context of a <Router> component.") : 0 : void 0; let { navigator } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(NavigationContext); let { matches: parentMatches } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(RouteContext); let routeMatch = parentMatches[parentMatches.length - 1]; let parentParams = routeMatch ? routeMatch.params : {}; let parentPathname = routeMatch ? routeMatch.pathname : "/"; let parentPathnameBase = routeMatch ? routeMatch.pathnameBase : "/"; let parentRoute = routeMatch && routeMatch.route; if (true) { // You won't get a warning about 2 different <Routes> under a <Route> // without a trailing *, but this is a best-effort warning anyway since we // cannot even give the warning unless they land at the parent route. // // Example: // // <Routes> // {/* This route path MUST end with /* because otherwise // it will never match /blog/post/123 */} // <Route path="blog" element={<Blog />} /> // <Route path="blog/feed" element={<BlogFeed />} /> // </Routes> // // function Blog() { // return ( // <Routes> // <Route path="post/:id" element={<Post />} /> // </Routes> // ); // } let parentPath = parentRoute && parentRoute.path || ""; warningOnce(parentPathname, !parentRoute || parentPath.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ("\"" + parentPathname + "\" (under <Route path=\"" + parentPath + "\">) but the ") + "parent route path has no trailing \"*\". This means if you navigate " + "deeper, the parent won't match anymore and therefore the child " + "routes will never render.\n\n" + ("Please change the parent <Route path=\"" + parentPath + "\"> to <Route ") + ("path=\"" + (parentPath === "/" ? "*" : parentPath + "/*") + "\">.")); } let locationFromContext = useLocation(); let location; if (locationArg) { var _parsedLocationArg$pa; let parsedLocationArg = typeof locationArg === "string" ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.parsePath)(locationArg) : locationArg; !(parentPathnameBase === "/" || ((_parsedLocationArg$pa = parsedLocationArg.pathname) == null ? void 0 : _parsedLocationArg$pa.startsWith(parentPathnameBase))) ? true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_invariant)(false, "When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, " + "the location pathname must begin with the portion of the URL pathname that was " + ("matched by all parent routes. The current pathname base is \"" + parentPathnameBase + "\" ") + ("but pathname \"" + parsedLocationArg.pathname + "\" was given in the `location` prop.")) : 0 : void 0; location = parsedLocationArg; } else { location = locationFromContext; } let pathname = location.pathname || "/"; let remainingPathname = pathname; if (parentPathnameBase !== "/") { // Determine the remaining pathname by removing the # of URL segments the // parentPathnameBase has, instead of removing based on character count. // This is because we can't guarantee that incoming/outgoing encodings/ // decodings will match exactly. // We decode paths before matching on a per-segment basis with // decodeURIComponent(), but we re-encode pathnames via `new URL()` so they // match what `window.location.pathname` would reflect. Those don't 100% // align when it comes to encoded URI characters such as % and &. // // So we may end up with: // pathname: "/descendant/a%25b/match" // parentPathnameBase: "/descendant/a%b" // // And the direct substring removal approach won't work :/ let parentSegments = parentPathnameBase.replace(/^\//, "").split("/"); let segments = pathname.replace(/^\//, "").split("/"); remainingPathname = "/" + segments.slice(parentSegments.length).join("/"); } let matches = (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.matchRoutes)(routes, { pathname: remainingPathname }); if (true) { true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_warning)(parentRoute || matches != null, "No routes matched location \"" + location.pathname + location.search + location.hash + "\" ") : 0; true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_warning)(matches == null || matches[matches.length - 1].route.element !== undefined || matches[matches.length - 1].route.Component !== undefined || matches[matches.length - 1].route.lazy !== undefined, "Matched leaf route at location \"" + location.pathname + location.search + location.hash + "\" " + "does not have an element or Component. This means it will render an <Outlet /> with a " + "null value by default resulting in an \"empty\" page.") : 0; } let renderedMatches = _renderMatches(matches && matches.map(match => Object.assign({}, match, { params: Object.assign({}, parentParams, match.params), pathname: (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.joinPaths)([parentPathnameBase, // Re-encode pathnames that were decoded inside matchRoutes navigator.encodeLocation ? navigator.encodeLocation(match.pathname).pathname : match.pathname]), pathnameBase: match.pathnameBase === "/" ? parentPathnameBase : (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.joinPaths)([parentPathnameBase, // Re-encode pathnames that were decoded inside matchRoutes navigator.encodeLocation ? navigator.encodeLocation(match.pathnameBase).pathname : match.pathnameBase]) })), parentMatches, dataRouterState, future); // When a user passes in a `locationArg`, the associated routes need to // be wrapped in a new `LocationContext.Provider` in order for `useLocation` // to use the scoped location instead of the global location. if (locationArg && renderedMatches) { return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(LocationContext.Provider, { value: { location: _extends({ pathname: "/", search: "", hash: "", state: null, key: "default" }, location), navigationType: _remix_run_router__WEBPACK_IMPORTED_MODULE_1__.Action.Pop } }, renderedMatches); } return renderedMatches; } function DefaultErrorComponent() { let error = useRouteError(); let message = (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.isRouteErrorResponse)(error) ? error.status + " " + error.statusText : error instanceof Error ? error.message : JSON.stringify(error); let stack = error instanceof Error ? error.stack : null; let lightgrey = "rgba(200,200,200, 0.5)"; let preStyles = { padding: "0.5rem", backgroundColor: lightgrey }; let codeStyles = { padding: "2px 4px", backgroundColor: lightgrey }; let devInfo = null; if (true) { console.error("Error handled by React Router default ErrorBoundary:", error); devInfo = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("p", null, "\uD83D\uDCBF Hey developer \uD83D\uDC4B"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("code", { style: codeStyles }, "ErrorBoundary"), " or", " ", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("code", { style: codeStyles }, "errorElement"), " prop on your route.")); } return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("h2", null, "Unexpected Application Error!"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("h3", { style: { fontStyle: "italic" } }, message), stack ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre", { style: preStyles }, stack) : null, devInfo); } const defaultErrorElement = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(DefaultErrorComponent, null); class RenderErrorBoundary extends react__WEBPACK_IMPORTED_MODULE_0__.Component { constructor(props) { super(props); this.state = { location: props.location, revalidation: props.revalidation, error: props.error }; } static getDerivedStateFromError(error) { return { error: error }; } static getDerivedStateFromProps(props, state) { // When we get into an error state, the user will likely click "back" to the // previous page that didn't have an error. Because this wraps the entire // application, that will have no effect--the error page continues to display. // This gives us a mechanism to recover from the error when the location changes. // // Whether we're in an error state or not, we update the location in state // so that when we are in an error state, it gets reset when a new location // comes in and the user recovers from the error. if (state.location !== props.location || state.revalidation !== "idle" && props.revalidation === "idle") { return { error: props.error, location: props.location, revalidation: props.revalidation }; } // If we're not changing locations, preserve the location but still surface // any new errors that may come through. We retain the existing error, we do // this because the error provided from the app state may be cleared without // the location changing. return { error: props.error !== undefined ? props.error : state.error, location: state.location, revalidation: props.revalidation || state.revalidation }; } componentDidCatch(error, errorInfo) { console.error("React Router caught the following error during render", error, errorInfo); } render() { return this.state.error !== undefined ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(RouteContext.Provider, { value: this.props.routeContext }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(RouteErrorContext.Provider, { value: this.state.error, children: this.props.component })) : this.props.children; } } function RenderedRoute(_ref) { let { routeContext, match, children } = _ref; let dataRouterContext = react__WEBPACK_IMPORTED_MODULE_0__.useContext(DataRouterContext); // Track how deep we got in our render pass to emulate SSR componentDidCatch // in a DataStaticRouter if (dataRouterContext && dataRouterContext.static && dataRouterContext.staticContext && (match.route.errorElement || match.route.ErrorBoundary)) { dataRouterContext.staticContext._deepestRenderedBoundaryId = match.route.id; } return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(RouteContext.Provider, { value: routeContext }, children); } function _renderMatches(matches, parentMatches, dataRouterState, future) { var _dataRouterState; if (parentMatches === void 0) { parentMatches = []; } if (dataRouterState === void 0) { dataRouterState = null; } if (future === void 0) { future = null; } if (matches == null) { var _future; if (!dataRouterState) { return null; } if (dataRouterState.errors) { // Don't bail if we have data router errors so we can render them in the // boundary. Use the pre-matched (or shimmed) matches matches = dataRouterState.matches; } else if ((_future = future) != null && _future.v7_partialHydration && parentMatches.length === 0 && !dataRouterState.initialized && dataRouterState.matches.length > 0) { // Don't bail if we're initializing with partial hydration and we have // router matches. That means we're actively running `patchRoutesOnNavigation` // so we should render down the partial matches to the appropriate // `HydrateFallback`. We only do this if `parentMatches` is empty so it // only impacts the root matches for `RouterProvider` and no descendant // `<Routes>` matches = dataRouterState.matches; } else { return null; } } let renderedMatches = matches; // If we have data errors, trim matches to the highest error boundary let errors = (_dataRouterState = dataRouterState) == null ? void 0 : _dataRouterState.errors; if (errors != null) { let errorIndex = renderedMatches.findIndex(m => m.route.id && (errors == null ? void 0 : errors[m.route.id]) !== undefined); !(errorIndex >= 0) ? true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_invariant)(false, "Could not find a matching route for errors on route IDs: " + Object.keys(errors).join(",")) : 0 : void 0; renderedMatches = renderedMatches.slice(0, Math.min(renderedMatches.length, errorIndex + 1)); } // If we're in a partial hydration mode, detect if we need to render down to // a given HydrateFallback while we load the rest of the hydration data let renderFallback = false; let fallbackIndex = -1; if (dataRouterState && future && future.v7_partialHydration) { for (let i = 0; i < renderedMatches.length; i++) { let match = renderedMatches[i]; // Track the deepest fallback up until the first route without data if (match.route.HydrateFallback || match.route.hydrateFallbackElement) { fallbackIndex = i; } if (match.route.id) { let { loaderData, errors } = dataRouterState; let needsToRunLoader = match.route.loader && loaderData[match.route.id] === undefined && (!errors || errors[match.route.id] === undefined); if (match.route.lazy || needsToRunLoader) { // We found the first route that's not ready to render (waiting on // lazy, or has a loader that hasn't run yet). Flag that we need to // render a fallback and render up until the appropriate fallback renderFallback = true; if (fallbackIndex >= 0) { renderedMatches = renderedMatches.slice(0, fallbackIndex + 1); } else { renderedMatches = [renderedMatches[0]]; } break; } } } } return renderedMatches.reduceRight((outlet, match, index) => { // Only data routers handle errors/fallbacks let error; let shouldRenderHydrateFallback = false; let errorElement = null; let hydrateFallbackElement = null; if (dataRouterState) { error = errors && match.route.id ? errors[match.route.id] : undefined; errorElement = match.route.errorElement || defaultErrorElement; if (renderFallback) { if (fallbackIndex < 0 && index === 0) { warningOnce("route-fallback", false, "No `HydrateFallback` element provided to render during initial hydration"); shouldRenderHydrateFallback = true; hydrateFallbackElement = null; } else if (fallbackIndex === index) { shouldRenderHydrateFallback = true; hydrateFallbackElement = match.route.hydrateFallbackElement || null; } } } let matches = parentMatches.concat(renderedMatches.slice(0, index + 1)); let getChildren = () => { let children; if (error) { children = errorElement; } else if (shouldRenderHydrateFallback) { children = hydrateFallbackElement; } else if (match.route.Component) { // Note: This is a de-optimized path since React won't re-use the // ReactElement since it's identity changes with each new // React.createElement call. We keep this so folks can use // `<Route Component={...}>` in `<Routes>` but generally `Component` // usage is only advised in `RouterProvider` when we can convert it to // `element` ahead of time. children = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(match.route.Component, null); } else if (match.route.element) { children = match.route.element; } else { children = outlet; } return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(RenderedRoute, { match: match, routeContext: { outlet, matches, isDataRoute: dataRouterState != null }, children: children }); }; // Only wrap in an error boundary within data router usages when we have an // ErrorBoundary/errorElement on this route. Otherwise let it bubble up to // an ancestor ErrorBoundary/errorElement return dataRouterState && (match.route.ErrorBoundary || match.route.errorElement || index === 0) ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(RenderErrorBoundary, { location: dataRouterState.location, revalidation: dataRouterState.revalidation, component: errorElement, error: error, children: getChildren(), routeContext: { outlet: null, matches, isDataRoute: true } }) : getChildren(); }, null); } var DataRouterHook = /*#__PURE__*/function (DataRouterHook) { DataRouterHook["UseBlocker"] = "useBlocker"; DataRouterHook["UseRevalidator"] = "useRevalidator"; DataRouterHook["UseNavigateStable"] = "useNavigate"; return DataRouterHook; }(DataRouterHook || {}); var DataRouterStateHook = /*#__PURE__*/function (DataRouterStateHook) { DataRouterStateHook["UseBlocker"] = "useBlocker"; DataRouterStateHook["UseLoaderData"] = "useLoaderData"; DataRouterStateHook["UseActionData"] = "useActionData"; DataRouterStateHook["UseRouteError"] = "useRouteError"; DataRouterStateHook["UseNavigation"] = "useNavigation"; DataRouterStateHook["UseRouteLoaderData"] = "useRouteLoaderData"; DataRouterStateHook["UseMatches"] = "useMatches"; DataRouterStateHook["UseRevalidator"] = "useRevalidator"; DataRouterStateHook["UseNavigateStable"] = "useNavigate"; DataRouterStateHook["UseRouteId"] = "useRouteId"; return DataRouterStateHook; }(DataRouterStateHook || {}); function getDataRouterConsoleError(hookName) { return hookName + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."; } function useDataRouterContext(hookName) { let ctx = react__WEBPACK_IMPORTED_MODULE_0__.useContext(DataRouterContext); !ctx ? true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_invariant)(false, getDataRouterConsoleError(hookName)) : 0 : void 0; return ctx; } function useDataRouterState(hookName) { let state = react__WEBPACK_IMPORTED_MODULE_0__.useContext(DataRouterStateContext); !state ? true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_invariant)(false, getDataRouterConsoleError(hookName)) : 0 : void 0; return state; } function useRouteContext(hookName) { let route = react__WEBPACK_IMPORTED_MODULE_0__.useContext(RouteContext); !route ? true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_invariant)(false, getDataRouterConsoleError(hookName)) : 0 : void 0; return route; } // Internal version with hookName-aware debugging function useCurrentRouteId(hookName) { let route = useRouteContext(hookName); let thisRoute = route.matches[route.matches.length - 1]; !thisRoute.route.id ? true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_invariant)(false, hookName + " can only be used on routes that contain a unique \"id\"") : 0 : void 0; return thisRoute.route.id; } /** * Returns the ID for the nearest contextual route */ function useRouteId() { return useCurrentRouteId(DataRouterStateHook.UseRouteId); } /** * Returns the current navigation, defaulting to an "idle" navigation when * no navigation is in progress */ function useNavigation() { let state = useDataRouterState(DataRouterStateHook.UseNavigation); return state.navigation; } /** * Returns a revalidate function for manually triggering revalidation, as well * as the current state of any manual revalidations */ function useRevalidator() { let dataRouterContext = useDataRouterContext(DataRouterHook.UseRevalidator); let state = useDataRouterState(DataRouterStateHook.UseRevalidator); return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => ({ revalidate: dataRouterContext.router.revalidate, state: state.revalidation }), [dataRouterContext.router.revalidate, state.revalidation]); } /** * Returns the active route matches, useful for accessing loaderData for * parent/child routes or the route "handle" property */ function useMatches() { let { matches, loaderData } = useDataRouterState(DataRouterStateHook.UseMatches); return react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => matches.map(m => (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_convertRouteMatchToUiMatch)(m, loaderData)), [matches, loaderData]); } /** * Returns the loader data for the nearest ancestor Route loader */ function useLoaderData() { let state = useDataRouterState(DataRouterStateHook.UseLoaderData); let routeId = useCurrentRouteId(DataRouterStateHook.UseLoaderData); if (state.errors && state.errors[routeId] != null) { console.error("You cannot `useLoaderData` in an errorElement (routeId: " + routeId + ")"); return undefined; } return state.loaderData[routeId]; } /** * Returns the loaderData for the given routeId */ function useRouteLoaderData(routeId) { let state = useDataRouterState(DataRouterStateHook.UseRouteLoaderData); return state.loaderData[routeId]; } /** * Returns the action data for the nearest ancestor Route action */ function useActionData() { let state = useDataRouterState(DataRouterStateHook.UseActionData); let routeId = useCurrentRouteId(DataRouterStateHook.UseLoaderData); return state.actionData ? state.actionData[routeId] : undefined; } /** * Returns the nearest ancestor Route error, which could be a loader/action * error or a render error. This is intended to be called from your * ErrorBoundary/errorElement to display a proper error message. */ function useRouteError() { var _state$errors; let error = react__WEBPACK_IMPORTED_MODULE_0__.useContext(RouteErrorContext); let state = useDataRouterState(DataRouterStateHook.UseRouteError); let routeId = useCurrentRouteId(DataRouterStateHook.UseRouteError); // If this was a render error, we put it in a RouteError context inside // of RenderErrorBoundary if (error !== undefined) { return error; } // Otherwise look for errors from our data router state return (_state$errors = state.errors) == null ? void 0 : _state$errors[routeId]; } /** * Returns the happy-path data from the nearest ancestor `<Await />` value */ function useAsyncValue() { let value = react__WEBPACK_IMPORTED_MODULE_0__.useContext(AwaitContext); return value == null ? void 0 : value._data; } /** * Returns the error from the nearest ancestor `<Await />` value */ function useAsyncError() { let value = react__WEBPACK_IMPORTED_MODULE_0__.useContext(AwaitContext); return value == null ? void 0 : value._error; } let blockerId = 0; /** * Allow the application to block navigations within the SPA and present the * user a confirmation dialog to confirm the navigation. Mostly used to avoid * using half-filled form data. This does not handle hard-reloads or * cross-origin navigations. */ function useBlocker(shouldBlock) { let { router, basename } = useDataRouterContext(DataRouterHook.UseBlocker); let state = useDataRouterState(DataRouterStateHook.UseBlocker); let [blockerKey, setBlockerKey] = react__WEBPACK_IMPORTED_MODULE_0__.useState(""); let blockerFunction = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(arg => { if (typeof shouldBlock !== "function") { return !!shouldBlock; } if (basename === "/") { return shouldBlock(arg); } // If they provided us a function and we've got an active basename, strip // it from the locations we expose to the user to match the behavior of // useLocation let { currentLocation, nextLocation, historyAction } = arg; return shouldBlock({ currentLocation: _extends({}, currentLocation, { pathname: (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.stripBasename)(currentLocation.pathname, basename) || currentLocation.pathname }), nextLocation: _extends({}, nextLocation, { pathname: (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.stripBasename)(nextLocation.pathname, basename) || nextLocation.pathname }), historyAction }); }, [basename, shouldBlock]); // This effect is in charge of blocker key assignment and deletion (which is // tightly coupled to the key) react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { let key = String(++blockerId); setBlockerKey(key); return () => router.deleteBlocker(key); }, [router]); // This effect handles assigning the blockerFunction. This is to handle // unstable blocker function identities, and happens only after the prior // effect so we don't get an orphaned blockerFunction in the router with a // key of "". Until then we just have the IDLE_BLOCKER. react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { if (blockerKey !== "") { router.getBlocker(blockerKey, blockerFunction); } }, [router, blockerKey, blockerFunction]); // Prefer the blocker from `state` not `router.state` since DataRouterContext // is memoized so this ensures we update on blocker state updates return blockerKey && state.blockers.has(blockerKey) ? state.blockers.get(blockerKey) : _remix_run_router__WEBPACK_IMPORTED_MODULE_1__.IDLE_BLOCKER; } /** * Stable version of useNavigate that is used when we are in the context of * a RouterProvider. */ function useNavigateStable() { let { router } = useDataRouterContext(DataRouterHook.UseNavigateStable); let id = useCurrentRouteId(DataRouterStateHook.UseNavigateStable); let activeRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(false); useIsomorphicLayoutEffect(() => { activeRef.current = true; }); let navigate = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(function (to, options) { if (options === void 0) { options = {}; } true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_warning)(activeRef.current, navigateEffectWarning) : 0; // Short circuit here since if this happens on first render the navigate // is useless because we haven't wired up our router subscriber yet if (!activeRef.current) return; if (typeof to === "number") { router.navigate(to); } else { router.navigate(to, _extends({ fromRouteId: id }, options)); } }, [router, id]); return navigate; } const alreadyWarned$1 = {}; function warningOnce(key, cond, message) { if (!cond && !alreadyWarned$1[key]) { alreadyWarned$1[key] = true; true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_warning)(false, message) : 0; } } const alreadyWarned = {}; function warnOnce(key, message) { if ( true && !alreadyWarned[message]) { alreadyWarned[message] = true; console.warn(message); } } const logDeprecation = (flag, msg, link) => warnOnce(flag, "\u26A0\uFE0F React Router Future Flag Warning: " + msg + ". " + ("You can use the `" + flag + "` future flag to opt-in early. ") + ("For more information, see " + link + ".")); function logV6DeprecationWarnings(renderFuture, routerFuture) { if ((renderFuture == null ? void 0 : renderFuture.v7_startTransition) === undefined) { logDeprecation("v7_startTransition", "React Router will begin wrapping state updates in `React.startTransition` in v7", "https://reactrouter.com/v6/upgrading/future#v7_starttransition"); } if ((renderFuture == null ? void 0 : renderFuture.v7_relativeSplatPath) === undefined && (!routerFuture || routerFuture.v7_relativeSplatPath === undefined)) { logDeprecation("v7_relativeSplatPath", "Relative route resolution within Splat routes is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"); } if (routerFuture) { if (routerFuture.v7_fetcherPersist === undefined) { logDeprecation("v7_fetcherPersist", "The persistence behavior of fetchers is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"); } if (routerFuture.v7_normalizeFormMethod === undefined) { logDeprecation("v7_normalizeFormMethod", "Casing of `formMethod` fields is being normalized to uppercase in v7", "https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"); } if (routerFuture.v7_partialHydration === undefined) { logDeprecation("v7_partialHydration", "`RouterProvider` hydration behavior is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_partialhydration"); } if (routerFuture.v7_skipActionErrorRevalidation === undefined) { logDeprecation("v7_skipActionErrorRevalidation", "The revalidation behavior after 4xx/5xx `action` responses is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"); } } } /** Webpack + React 17 fails to compile on any of the following because webpack complains that `startTransition` doesn't exist in `React`: * import { startTransition } from "react" * import * as React from from "react"; "startTransition" in React ? React.startTransition(() => setState()) : setState() * import * as React from from "react"; "startTransition" in React ? React["startTransition"](() => setState()) : setState() Moving it to a constant such as the following solves the Webpack/React 17 issue: * import * as React from from "react"; const START_TRANSITION = "startTransition"; START_TRANSITION in React ? React[START_TRANSITION](() => setState()) : setState() However, that introduces webpack/terser minification issues in production builds in React 18 where minification/obfuscation ends up removing the call of React.startTransition entirely from the first half of the ternary. Grabbing this exported reference once up front resolves that issue. See https://github.com/remix-run/react-router/issues/10579 */ const START_TRANSITION = "startTransition"; const startTransitionImpl = react__WEBPACK_IMPORTED_MODULE_0__[START_TRANSITION]; /** * Given a Remix Router instance, render the appropriate UI */ function RouterProvider(_ref) { let { fallbackElement, router, future } = _ref; let [state, setStateImpl] = react__WEBPACK_IMPORTED_MODULE_0__.useState(router.state); let { v7_startTransition } = future || {}; let setState = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(newState => { if (v7_startTransition && startTransitionImpl) { startTransitionImpl(() => setStateImpl(newState)); } else { setStateImpl(newState); } }, [setStateImpl, v7_startTransition]); // Need to use a layout effect here so we are subscribed early enough to // pick up on any render-driven redirects/navigations (useEffect/<Navigate>) react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect(() => router.subscribe(setState), [router, setState]); react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => { true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_warning)(fallbackElement == null || !router.future.v7_partialHydration, "`<RouterProvider fallbackElement>` is deprecated when using " + "`v7_partialHydration`, use a `HydrateFallback` component instead") : 0; // Only log this once on initial mount // eslint-disable-next-line react-hooks/exhaustive-deps }, []); let navigator = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => { return { createHref: router.createHref, encodeLocation: router.encodeLocation, go: n => router.navigate(n), push: (to, state, opts) => router.navigate(to, { state, preventScrollReset: opts == null ? void 0 : opts.preventScrollReset }), replace: (to, state, opts) => router.navigate(to, { replace: true, state, preventScrollReset: opts == null ? void 0 : opts.preventScrollReset }) }; }, [router]); let basename = router.basename || "/"; let dataRouterContext = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => ({ router, navigator, static: false, basename }), [router, navigator, basename]); react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => logV6DeprecationWarnings(future, router.future), [router, future]); // The fragment and {null} here are important! We need them to keep React 18's // useId happy when we are server-rendering since we may have a <script> here // containing the hydrated server-side staticContext (from StaticRouterProvider). // useId relies on the component tree structure to generate deterministic id's // so we need to ensure it remains the same on the client even though // we don't need the <script> tag return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(DataRouterContext.Provider, { value: dataRouterContext }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(DataRouterStateContext.Provider, { value: state }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Router, { basename: basename, location: state.location, navigationType: state.historyAction, navigator: navigator, future: { v7_relativeSplatPath: router.future.v7_relativeSplatPath } }, state.initialized || router.future.v7_partialHydration ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(DataRoutes, { routes: router.routes, future: router.future, state: state }) : fallbackElement))), null); } function DataRoutes(_ref2) { let { routes, future, state } = _ref2; return useRoutesImpl(routes, undefined, state, future); } /** * A `<Router>` that stores all entries in memory. * * @see https://reactrouter.com/v6/router-components/memory-router */ function MemoryRouter(_ref3) { let { basename, children, initialEntries, initialIndex, future } = _ref3; let historyRef = react__WEBPACK_IMPORTED_MODULE_0__.useRef(); if (historyRef.current == null) { historyRef.current = (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.createMemoryHistory)({ initialEntries, initialIndex, v5Compat: true }); } let history = historyRef.current; let [state, setStateImpl] = react__WEBPACK_IMPORTED_MODULE_0__.useState({ action: history.action, location: history.location }); let { v7_startTransition } = future || {}; let setState = react__WEBPACK_IMPORTED_MODULE_0__.useCallback(newState => { v7_startTransition && startTransitionImpl ? startTransitionImpl(() => setStateImpl(newState)) : setStateImpl(newState); }, [setStateImpl, v7_startTransition]); react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect(() => history.listen(setState), [history, setState]); react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => logV6DeprecationWarnings(future), [future]); return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(Router, { basename: basename, children: children, location: state.location, navigationType: state.action, navigator: history, future: future }); } /** * Changes the current location. * * Note: This API is mostly useful in React.Component subclasses that are not * able to use hooks. In functional components, we recommend you use the * `useNavigate` hook instead. * * @see https://reactrouter.com/v6/components/navigate */ function Navigate(_ref4) { let { to, replace, state, relative } = _ref4; !useInRouterContext() ? true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_invariant)(false, // TODO: This error is probably because they somehow have 2 versions of // the router loaded. We can help them understand how to avoid that. "<Navigate> may be used only in the context of a <Router> component.") : 0 : void 0; let { future, static: isStatic } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(NavigationContext); true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_warning)(!isStatic, "<Navigate> must not be used on the initial render in a <StaticRouter>. " + "This is a no-op, but you should modify your code so the <Navigate> is " + "only ever rendered in response to some user interaction or state change.") : 0; let { matches } = react__WEBPACK_IMPORTED_MODULE_0__.useContext(RouteContext); let { pathname: locationPathname } = useLocation(); let navigate = useNavigate(); // Resolve the path outside of the effect so that when effects run twice in // StrictMode they navigate to the same place let path = (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.resolveTo)(to, (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_getResolveToMatches)(matches, future.v7_relativeSplatPath), locationPathname, relative === "path"); let jsonPath = JSON.stringify(path); react__WEBPACK_IMPORTED_MODULE_0__.useEffect(() => navigate(JSON.parse(jsonPath), { replace, state, relative }), [navigate, jsonPath, relative, replace, state]); return null; } /** * Renders the child route's element, if there is one. * * @see https://reactrouter.com/v6/components/outlet */ function Outlet(props) { return useOutlet(props.context); } /** * Declares an element that should be rendered at a certain URL path. * * @see https://reactrouter.com/v6/components/route */ function Route(_props) { true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_invariant)(false, "A <Route> is only ever to be used as the child of <Routes> element, " + "never rendered directly. Please wrap your <Route> in a <Routes>.") : 0 ; } /** * Provides location context for the rest of the app. * * Note: You usually won't render a `<Router>` directly. Instead, you'll render a * router that is more specific to your environment such as a `<BrowserRouter>` * in web browsers or a `<StaticRouter>` for server rendering. * * @see https://reactrouter.com/v6/router-components/router */ function Router(_ref5) { let { basename: basenameProp = "/", children = null, location: locationProp, navigationType = _remix_run_router__WEBPACK_IMPORTED_MODULE_1__.Action.Pop, navigator, static: staticProp = false, future } = _ref5; !!useInRouterContext() ? true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_invariant)(false, "You cannot render a <Router> inside another <Router>." + " You should never have more than one in your app.") : 0 : void 0; // Preserve trailing slashes on basename, so we can let the user control // the enforcement of trailing slashes throughout the app let basename = basenameProp.replace(/^\/*/, "/"); let navigationContext = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => ({ basename, navigator, static: staticProp, future: _extends({ v7_relativeSplatPath: false }, future) }), [basename, future, navigator, staticProp]); if (typeof locationProp === "string") { locationProp = (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.parsePath)(locationProp); } let { pathname = "/", search = "", hash = "", state = null, key = "default" } = locationProp; let locationContext = react__WEBPACK_IMPORTED_MODULE_0__.useMemo(() => { let trailingPathname = (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.stripBasename)(pathname, basename); if (trailingPathname == null) { return null; } return { location: { pathname: trailingPathname, search, hash, state, key }, navigationType }; }, [basename, pathname, search, hash, state, key, navigationType]); true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_warning)(locationContext != null, "<Router basename=\"" + basename + "\"> is not able to match the URL " + ("\"" + pathname + search + hash + "\" because it does not start with the ") + "basename, so the <Router> won't render anything.") : 0; if (locationContext == null) { return null; } return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(NavigationContext.Provider, { value: navigationContext }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(LocationContext.Provider, { children: children, value: locationContext })); } /** * A container for a nested tree of `<Route>` elements that renders the branch * that best matches the current location. * * @see https://reactrouter.com/v6/components/routes */ function Routes(_ref6) { let { children, location } = _ref6; return useRoutes(createRoutesFromChildren(children), location); } /** * Component to use for rendering lazily loaded data from returning defer() * in a loader function */ function Await(_ref7) { let { children, errorElement, resolve } = _ref7; return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(AwaitErrorBoundary, { resolve: resolve, errorElement: errorElement }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(ResolveAwait, null, children)); } var AwaitRenderStatus = /*#__PURE__*/function (AwaitRenderStatus) { AwaitRenderStatus[AwaitRenderStatus["pending"] = 0] = "pending"; AwaitRenderStatus[AwaitRenderStatus["success"] = 1] = "success"; AwaitRenderStatus[AwaitRenderStatus["error"] = 2] = "error"; return AwaitRenderStatus; }(AwaitRenderStatus || {}); const neverSettledPromise = new Promise(() => {}); class AwaitErrorBoundary extends react__WEBPACK_IMPORTED_MODULE_0__.Component { constructor(props) { super(props); this.state = { error: null }; } static getDerivedStateFromError(error) { return { error }; } componentDidCatch(error, errorInfo) { console.error("<Await> caught the following error during render", error, errorInfo); } render() { let { children, errorElement, resolve } = this.props; let promise = null; let status = AwaitRenderStatus.pending; if (!(resolve instanceof Promise)) { // Didn't get a promise - provide as a resolved promise status = AwaitRenderStatus.success; promise = Promise.resolve(); Object.defineProperty(promise, "_tracked", { get: () => true }); Object.defineProperty(promise, "_data", { get: () => resolve }); } else if (this.state.error) { // Caught a render error, provide it as a rejected promise status = AwaitRenderStatus.error; let renderError = this.state.error; promise = Promise.reject().catch(() => {}); // Avoid unhandled rejection warnings Object.defineProperty(promise, "_tracked", { get: () => true }); Object.defineProperty(promise, "_error", { get: () => renderError }); } else if (resolve._tracked) { // Already tracked promise - check contents promise = resolve; status = "_error" in promise ? AwaitRenderStatus.error : "_data" in promise ? AwaitRenderStatus.success : AwaitRenderStatus.pending; } else { // Raw (untracked) promise - track it status = AwaitRenderStatus.pending; Object.defineProperty(resolve, "_tracked", { get: () => true }); promise = resolve.then(data => Object.defineProperty(resolve, "_data", { get: () => data }), error => Object.defineProperty(resolve, "_error", { get: () => error })); } if (status === AwaitRenderStatus.error && promise._error instanceof _remix_run_router__WEBPACK_IMPORTED_MODULE_1__.AbortedDeferredError) { // Freeze the UI by throwing a never resolved promise throw neverSettledPromise; } if (status === AwaitRenderStatus.error && !errorElement) { // No errorElement, throw to the nearest route-level error boundary throw promise._error; } if (status === AwaitRenderStatus.error) { // Render via our errorElement return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(AwaitContext.Provider, { value: promise, children: errorElement }); } if (status === AwaitRenderStatus.success) { // Render children with resolved value return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(AwaitContext.Provider, { value: promise, children: children }); } // Throw to the suspense boundary throw promise; } } /** * @private * Indirection to leverage useAsyncValue for a render-prop API on `<Await>` */ function ResolveAwait(_ref8) { let { children } = _ref8; let data = useAsyncValue(); let toRender = typeof children === "function" ? children(data) : children; return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, toRender); } /////////////////////////////////////////////////////////////////////////////// // UTILS /////////////////////////////////////////////////////////////////////////////// /** * Creates a route config from a React "children" object, which is usually * either a `<Route>` element or an array of them. Used internally by * `<Routes>` to create a route config from its children. * * @see https://reactrouter.com/v6/utils/create-routes-from-children */ function createRoutesFromChildren(children, parentPath) { if (parentPath === void 0) { parentPath = []; } let routes = []; react__WEBPACK_IMPORTED_MODULE_0__.Children.forEach(children, (element, index) => { if (! /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(element)) { // Ignore non-elements. This allows people to more easily inline // conditionals in their route config. return; } let treePath = [...parentPath, index]; if (element.type === react__WEBPACK_IMPORTED_MODULE_0__.Fragment) { // Transparently support React.Fragment and its children. routes.push.apply(routes, createRoutesFromChildren(element.props.children, treePath)); return; } !(element.type === Route) ? true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_invariant)(false, "[" + (typeof element.type === "string" ? element.type : element.type.name) + "] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>") : 0 : void 0; !(!element.props.index || !element.props.children) ? true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_invariant)(false, "An index route cannot have child routes.") : 0 : void 0; let route = { id: element.props.id || treePath.join("-"), caseSensitive: element.props.caseSensitive, element: element.props.element, Component: element.props.Component, index: element.props.index, path: element.props.path, loader: element.props.loader, action: element.props.action, errorElement: element.props.errorElement, ErrorBoundary: element.props.ErrorBoundary, hasErrorBoundary: element.props.ErrorBoundary != null || element.props.errorElement != null, shouldRevalidate: element.props.shouldRevalidate, handle: element.props.handle, lazy: element.props.lazy }; if (element.props.children) { route.children = createRoutesFromChildren(element.props.children, treePath); } routes.push(route); }); return routes; } /** * Renders the result of `matchRoutes()` into a React element. */ function renderMatches(matches) { return _renderMatches(matches); } function mapRouteProperties(route) { let updates = { // Note: this check also occurs in createRoutesFromChildren so update // there if you change this -- please and thank you! hasErrorBoundary: route.ErrorBoundary != null || route.errorElement != null }; if (route.Component) { if (true) { if (route.element) { true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_warning)(false, "You should not include both `Component` and `element` on your route - " + "`Component` will be used.") : 0; } } Object.assign(updates, { element: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(route.Component), Component: undefined }); } if (route.HydrateFallback) { if (true) { if (route.hydrateFallbackElement) { true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_warning)(false, "You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - " + "`HydrateFallback` will be used.") : 0; } } Object.assign(updates, { hydrateFallbackElement: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(route.HydrateFallback), HydrateFallback: undefined }); } if (route.ErrorBoundary) { if (true) { if (route.errorElement) { true ? (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.UNSAFE_warning)(false, "You should not include both `ErrorBoundary` and `errorElement` on your route - " + "`ErrorBoundary` will be used.") : 0; } } Object.assign(updates, { errorElement: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement(route.ErrorBoundary), ErrorBoundary: undefined }); } return updates; } function createMemoryRouter(routes, opts) { return (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.createRouter)({ basename: opts == null ? void 0 : opts.basename, future: _extends({}, opts == null ? void 0 : opts.future, { v7_prependBasename: true }), history: (0,_remix_run_router__WEBPACK_IMPORTED_MODULE_1__.createMemoryHistory)({ initialEntries: opts == null ? void 0 : opts.initialEntries, initialIndex: opts == null ? void 0 : opts.initialIndex }), hydrationData: opts == null ? void 0 : opts.hydrationData, routes, mapRouteProperties, dataStrategy: opts == null ? void 0 : opts.dataStrategy, patchRoutesOnNavigation: opts == null ? void 0 : opts.patchRoutesOnNavigation }).initialize(); } //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/react/cjs/react-jsx-runtime.development.js": /*!*****************************************************************!*\ !*** ./node_modules/react/cjs/react-jsx-runtime.development.js ***! \*****************************************************************/ /***/ ((__unused_webpack_module, exports, __webpack_require__) => { /** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ if (true) { (function() { 'use strict'; var React = __webpack_require__(/*! react */ "react"); // ATTENTION // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. var REACT_ELEMENT_TYPE = Symbol.for('react.element'); var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); var REACT_PROFILER_TYPE = Symbol.for('react.profiler'); var REACT_PROVIDER_TYPE = Symbol.for('react.provider'); var REACT_CONTEXT_TYPE = Symbol.for('react.context'); var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref'); var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense'); var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list'); var REACT_MEMO_TYPE = Symbol.for('react.memo'); var REACT_LAZY_TYPE = Symbol.for('react.lazy'); var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen'); var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; var FAUX_ITERATOR_SYMBOL = '@@iterator'; function getIteratorFn(maybeIterable) { if (maybeIterable === null || typeof maybeIterable !== 'object') { return null; } var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; if (typeof maybeIterator === 'function') { return maybeIterator; } return null; } var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function error(format) { { { for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { args[_key2 - 1] = arguments[_key2]; } printWarning('error', format, args); } } } function printWarning(level, format, args) { // When changing this logic, you might want to also // update consoleWithStackDev.www.js as well. { var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; var stack = ReactDebugCurrentFrame.getStackAddendum(); if (stack !== '') { format += '%s'; args = args.concat([stack]); } // eslint-disable-next-line react-internal/safe-string-coercion var argsWithFormat = args.map(function (item) { return String(item); }); // Careful: RN currently depends on this prefix argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it // breaks IE9: https://github.com/facebook/react/issues/13610 // eslint-disable-next-line react-internal/no-production-logging Function.prototype.apply.call(console[level], console, argsWithFormat); } } // ----------------------------------------------------------------------------- var enableScopeAPI = false; // Experimental Create Event Handle API. var enableCacheElement = false; var enableTransitionTracing = false; // No known bugs, but needs performance testing var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber // stuff. Intended to enable React core members to more easily debug scheduling // issues in DEV builds. var enableDebugTracing = false; // Track which Fiber(s) schedule render work. var REACT_MODULE_REFERENCE; { REACT_MODULE_REFERENCE = Symbol.for('react.module.reference'); } function isValidElementType(type) { if (typeof type === 'string' || typeof type === 'function') { return true; } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill). if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) { return true; } if (typeof type === 'object' && type !== null) { if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) { return true; } } return false; } function getWrappedName(outerType, innerType, wrapperName) { var displayName = outerType.displayName; if (displayName) { return displayName; } var functionName = innerType.displayName || innerType.name || ''; return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName; } // Keep in sync with react-reconciler/getComponentNameFromFiber function getContextName(type) { return type.displayName || 'Context'; } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead. function getComponentNameFromType(type) { if (type == null) { // Host root, text node or just invalid type. return null; } { if (typeof type.tag === 'number') { error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.'); } } if (typeof type === 'function') { return type.displayName || type.name || null; } if (typeof type === 'string') { return type; } switch (type) { case REACT_FRAGMENT_TYPE: return 'Fragment'; case REACT_PORTAL_TYPE: return 'Portal'; case REACT_PROFILER_TYPE: return 'Profiler'; case REACT_STRICT_MODE_TYPE: return 'StrictMode'; case REACT_SUSPENSE_TYPE: return 'Suspense'; case REACT_SUSPENSE_LIST_TYPE: return 'SuspenseList'; } if (typeof type === 'object') { switch (type.$$typeof) { case REACT_CONTEXT_TYPE: var context = type; return getContextName(context) + '.Consumer'; case REACT_PROVIDER_TYPE: var provider = type; return getContextName(provider._context) + '.Provider'; case REACT_FORWARD_REF_TYPE: return getWrappedName(type, type.render, 'ForwardRef'); case REACT_MEMO_TYPE: var outerName = type.displayName || null; if (outerName !== null) { return outerName; } return getComponentNameFromType(type.type) || 'Memo'; case REACT_LAZY_TYPE: { var lazyComponent = type; var payload = lazyComponent._payload; var init = lazyComponent._init; try { return getComponentNameFromType(init(payload)); } catch (x) { return null; } } // eslint-disable-next-line no-fallthrough } } return null; } var assign = Object.assign; // Helpers to patch console.logs to avoid logging during side-effect free // replaying on render function. This currently only patches the object // lazily which won't cover if the log function was extracted eagerly. // We could also eagerly patch the method. var disabledDepth = 0; var prevLog; var prevInfo; var prevWarn; var prevError; var prevGroup; var prevGroupCollapsed; var prevGroupEnd; function disabledLog() {} disabledLog.__reactDisabledLog = true; function disableLogs() { { if (disabledDepth === 0) { /* eslint-disable react-internal/no-production-logging */ prevLog = console.log; prevInfo = console.info; prevWarn = console.warn; prevError = console.error; prevGroup = console.group; prevGroupCollapsed = console.groupCollapsed; prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099 var props = { configurable: true, enumerable: true, value: disabledLog, writable: true }; // $FlowFixMe Flow thinks console is immutable. Object.defineProperties(console, { info: props, log: props, warn: props, error: props, group: props, groupCollapsed: props, groupEnd: props }); /* eslint-enable react-internal/no-production-logging */ } disabledDepth++; } } function reenableLogs() { { disabledDepth--; if (disabledDepth === 0) { /* eslint-disable react-internal/no-production-logging */ var props = { configurable: true, enumerable: true, writable: true }; // $FlowFixMe Flow thinks console is immutable. Object.defineProperties(console, { log: assign({}, props, { value: prevLog }), info: assign({}, props, { value: prevInfo }), warn: assign({}, props, { value: prevWarn }), error: assign({}, props, { value: prevError }), group: assign({}, props, { value: prevGroup }), groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), groupEnd: assign({}, props, { value: prevGroupEnd }) }); /* eslint-enable react-internal/no-production-logging */ } if (disabledDepth < 0) { error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.'); } } } var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; var prefix; function describeBuiltInComponentFrame(name, source, ownerFn) { { if (prefix === undefined) { // Extract the VM specific prefix used by each line. try { throw Error(); } catch (x) { var match = x.stack.trim().match(/\n( *(at )?)/); prefix = match && match[1] || ''; } } // We use the prefix to ensure our stacks line up with native stack frames. return '\n' + prefix + name; } } var reentry = false; var componentFrameCache; { var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map; componentFrameCache = new PossiblyWeakMap(); } function describeNativeComponentFrame(fn, construct) { // If something asked for a stack inside a fake render, it should get ignored. if ( !fn || reentry) { return ''; } { var frame = componentFrameCache.get(fn); if (frame !== undefined) { return frame; } } var control; reentry = true; var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined. Error.prepareStackTrace = undefined; var previousDispatcher; { previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function // for warnings. ReactCurrentDispatcher.current = null; disableLogs(); } try { // This should throw. if (construct) { // Something should be setting the props in the constructor. var Fake = function () { throw Error(); }; // $FlowFixMe Object.defineProperty(Fake.prototype, 'props', { set: function () { // We use a throwing setter instead of frozen or non-writable props // because that won't throw in a non-strict mode function. throw Error(); } }); if (typeof Reflect === 'object' && Reflect.construct) { // We construct a different control for this case to include any extra // frames added by the construct call. try { Reflect.construct(Fake, []); } catch (x) { control = x; } Reflect.construct(fn, [], Fake); } else { try { Fake.call(); } catch (x) { control = x; } fn.call(Fake.prototype); } } else { try { throw Error(); } catch (x) { control = x; } fn(); } } catch (sample) { // This is inlined manually because closure doesn't do it for us. if (sample && control && typeof sample.stack === 'string') { // This extracts the first frame from the sample that isn't also in the control. // Skipping one frame that we assume is the frame that calls the two. var sampleLines = sample.stack.split('\n'); var controlLines = control.stack.split('\n'); var s = sampleLines.length - 1; var c = controlLines.length - 1; while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) { // We expect at least one stack frame to be shared. // Typically this will be the root most one. However, stack frames may be // cut off due to maximum stack limits. In this case, one maybe cut off // earlier than the other. We assume that the sample is longer or the same // and there for cut off earlier. So we should find the root most frame in // the sample somewhere in the control. c--; } for (; s >= 1 && c >= 0; s--, c--) { // Next we find the first one that isn't the same which should be the // frame that called our sample function and the control. if (sampleLines[s] !== controlLines[c]) { // In V8, the first line is describing the message but other VMs don't. // If we're about to return the first line, and the control is also on the same // line, that's a pretty good indicator that our sample threw at same line as // the control. I.e. before we entered the sample frame. So we ignore this result. // This can happen if you passed a class to function component, or non-function. if (s !== 1 || c !== 1) { do { s--; c--; // We may still have similar intermediate frames from the construct call. // The next one that isn't the same should be our match though. if (c < 0 || sampleLines[s] !== controlLines[c]) { // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier. var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>" // but we have a user-provided "displayName" // splice it in to make the stack more readable. if (fn.displayName && _frame.includes('<anonymous>')) { _frame = _frame.replace('<anonymous>', fn.displayName); } { if (typeof fn === 'function') { componentFrameCache.set(fn, _frame); } } // Return the line we found. return _frame; } } while (s >= 1 && c >= 0); } break; } } } } finally { reentry = false; { ReactCurrentDispatcher.current = previousDispatcher; reenableLogs(); } Error.prepareStackTrace = previousPrepareStackTrace; } // Fallback to just using the name if we couldn't make it throw. var name = fn ? fn.displayName || fn.name : ''; var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ''; { if (typeof fn === 'function') { componentFrameCache.set(fn, syntheticFrame); } } return syntheticFrame; } function describeFunctionComponentFrame(fn, source, ownerFn) { { return describeNativeComponentFrame(fn, false); } } function shouldConstruct(Component) { var prototype = Component.prototype; return !!(prototype && prototype.isReactComponent); } function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { if (type == null) { return ''; } if (typeof type === 'function') { { return describeNativeComponentFrame(type, shouldConstruct(type)); } } if (typeof type === 'string') { return describeBuiltInComponentFrame(type); } switch (type) { case REACT_SUSPENSE_TYPE: return describeBuiltInComponentFrame('Suspense'); case REACT_SUSPENSE_LIST_TYPE: return describeBuiltInComponentFrame('SuspenseList'); } if (typeof type === 'object') { switch (type.$$typeof) { case REACT_FORWARD_REF_TYPE: return describeFunctionComponentFrame(type.render); case REACT_MEMO_TYPE: // Memo may contain any component type so we recursively resolve it. return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); case REACT_LAZY_TYPE: { var lazyComponent = type; var payload = lazyComponent._payload; var init = lazyComponent._init; try { // Lazy may contain any component type so we recursively resolve it. return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); } catch (x) {} } } } return ''; } var hasOwnProperty = Object.prototype.hasOwnProperty; var loggedTypeFailures = {}; var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; function setCurrentlyValidatingElement(element) { { if (element) { var owner = element._owner; var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); ReactDebugCurrentFrame.setExtraStackFrame(stack); } else { ReactDebugCurrentFrame.setExtraStackFrame(null); } } } function checkPropTypes(typeSpecs, values, location, componentName, element) { { // $FlowFixMe This is okay but Flow doesn't know it. var has = Function.call.bind(hasOwnProperty); for (var typeSpecName in typeSpecs) { if (has(typeSpecs, typeSpecName)) { var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to // fail the render phase where it didn't fail before. So we log it. // After these have been cleaned up, we'll let them throw. try { // This is intentionally an invariant that gets caught. It's the same // behavior as without this statement except with a better message. if (typeof typeSpecs[typeSpecName] !== 'function') { // eslint-disable-next-line react-internal/prod-error-codes var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'); err.name = 'Invariant Violation'; throw err; } error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'); } catch (ex) { error$1 = ex; } if (error$1 && !(error$1 instanceof Error)) { setCurrentlyValidatingElement(element); error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1); setCurrentlyValidatingElement(null); } if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { // Only monitor this failure once because there tends to be a lot of the // same error. loggedTypeFailures[error$1.message] = true; setCurrentlyValidatingElement(element); error('Failed %s type: %s', location, error$1.message); setCurrentlyValidatingElement(null); } } } } } var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare function isArray(a) { return isArrayImpl(a); } /* * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol * and Temporal.* types. See https://github.com/facebook/react/pull/22064. * * The functions in this module will throw an easier-to-understand, * easier-to-debug exception with a clear errors message message explaining the * problem. (Instead of a confusing exception thrown inside the implementation * of the `value` object). */ // $FlowFixMe only called in DEV, so void return is not possible. function typeName(value) { { // toStringTag is needed for namespaced types like Temporal.Instant var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag; var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object'; return type; } } // $FlowFixMe only called in DEV, so void return is not possible. function willCoercionThrow(value) { { try { testStringCoercion(value); return false; } catch (e) { return true; } } } function testStringCoercion(value) { // If you ended up here by following an exception call stack, here's what's // happened: you supplied an object or symbol value to React (as a prop, key, // DOM attribute, CSS property, string ref, etc.) and when React tried to // coerce it to a string using `'' + value`, an exception was thrown. // // The most common types that will cause this exception are `Symbol` instances // and Temporal objects like `Temporal.Instant`. But any object that has a // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this // exception. (Library authors do this to prevent users from using built-in // numeric operators like `+` or comparison operators like `>=` because custom // methods are needed to perform accurate arithmetic or comparison.) // // To fix the problem, coerce this object or symbol value to a string before // passing it to React. The most reliable way is usually `String(value)`. // // To find which value is throwing, check the browser or debugger console. // Before this exception was thrown, there should be `console.error` output // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the // problem and how that type was used: key, atrribute, input value prop, etc. // In most cases, this console output also shows the component and its // ancestor components where the exception happened. // // eslint-disable-next-line react-internal/safe-string-coercion return '' + value; } function checkKeyStringCoercion(value) { { if (willCoercionThrow(value)) { error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value)); return testStringCoercion(value); // throw (to help callers find troubleshooting comments) } } } var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner; var RESERVED_PROPS = { key: true, ref: true, __self: true, __source: true }; var specialPropKeyWarningShown; var specialPropRefWarningShown; var didWarnAboutStringRefs; { didWarnAboutStringRefs = {}; } function hasValidRef(config) { { if (hasOwnProperty.call(config, 'ref')) { var getter = Object.getOwnPropertyDescriptor(config, 'ref').get; if (getter && getter.isReactWarning) { return false; } } } return config.ref !== undefined; } function hasValidKey(config) { { if (hasOwnProperty.call(config, 'key')) { var getter = Object.getOwnPropertyDescriptor(config, 'key').get; if (getter && getter.isReactWarning) { return false; } } } return config.key !== undefined; } function warnIfStringRefCannotBeAutoConverted(config, self) { { if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) { var componentName = getComponentNameFromType(ReactCurrentOwner.current.type); if (!didWarnAboutStringRefs[componentName]) { error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref); didWarnAboutStringRefs[componentName] = true; } } } } function defineKeyPropWarningGetter(props, displayName) { { var warnAboutAccessingKey = function () { if (!specialPropKeyWarningShown) { specialPropKeyWarningShown = true; error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName); } }; warnAboutAccessingKey.isReactWarning = true; Object.defineProperty(props, 'key', { get: warnAboutAccessingKey, configurable: true }); } } function defineRefPropWarningGetter(props, displayName) { { var warnAboutAccessingRef = function () { if (!specialPropRefWarningShown) { specialPropRefWarningShown = true; error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName); } }; warnAboutAccessingRef.isReactWarning = true; Object.defineProperty(props, 'ref', { get: warnAboutAccessingRef, configurable: true }); } } /** * Factory method to create a new React element. This no longer adheres to * the class pattern, so do not use new to call it. Also, instanceof check * will not work. Instead test $$typeof field against Symbol.for('react.element') to check * if something is a React Element. * * @param {*} type * @param {*} props * @param {*} key * @param {string|object} ref * @param {*} owner * @param {*} self A *temporary* helper to detect places where `this` is * different from the `owner` when React.createElement is called, so that we * can warn. We want to get rid of owner and replace string `ref`s with arrow * functions, and as long as `this` and owner are the same, there will be no * change in behavior. * @param {*} source An annotation object (added by a transpiler or otherwise) * indicating filename, line number, and/or other information. * @internal */ var ReactElement = function (type, key, ref, self, source, owner, props) { var element = { // This tag allows us to uniquely identify this as a React Element $$typeof: REACT_ELEMENT_TYPE, // Built-in properties that belong on the element type: type, key: key, ref: ref, props: props, // Record the component responsible for creating this element. _owner: owner }; { // The validation flag is currently mutative. We put it on // an external backing store so that we can freeze the whole object. // This can be replaced with a WeakMap once they are implemented in // commonly used development environments. element._store = {}; // To make comparing ReactElements easier for testing purposes, we make // the validation flag non-enumerable (where possible, which should // include every environment we run tests in), so the test framework // ignores it. Object.defineProperty(element._store, 'validated', { configurable: false, enumerable: false, writable: true, value: false }); // self and source are DEV only properties. Object.defineProperty(element, '_self', { configurable: false, enumerable: false, writable: false, value: self }); // Two elements created in two different places should be considered // equal for testing purposes and therefore we hide it from enumeration. Object.defineProperty(element, '_source', { configurable: false, enumerable: false, writable: false, value: source }); if (Object.freeze) { Object.freeze(element.props); Object.freeze(element); } } return element; }; /** * https://github.com/reactjs/rfcs/pull/107 * @param {*} type * @param {object} props * @param {string} key */ function jsxDEV(type, config, maybeKey, source, self) { { var propName; // Reserved names are extracted var props = {}; var key = null; var ref = null; // Currently, key can be spread in as a prop. This causes a potential // issue if key is also explicitly declared (ie. <div {...props} key="Hi" /> // or <div key="Hi" {...props} /> ). We want to deprecate key spread, // but as an intermediary step, we will use jsxDEV for everything except // <div {...props} key="Hi" />, because we aren't currently able to tell if // key is explicitly declared to be undefined or not. if (maybeKey !== undefined) { { checkKeyStringCoercion(maybeKey); } key = '' + maybeKey; } if (hasValidKey(config)) { { checkKeyStringCoercion(config.key); } key = '' + config.key; } if (hasValidRef(config)) { ref = config.ref; warnIfStringRefCannotBeAutoConverted(config, self); } // Remaining properties are added to a new props object for (propName in config) { if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { props[propName] = config[propName]; } } // Resolve default props if (type && type.defaultProps) { var defaultProps = type.defaultProps; for (propName in defaultProps) { if (props[propName] === undefined) { props[propName] = defaultProps[propName]; } } } if (key || ref) { var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type; if (key) { defineKeyPropWarningGetter(props, displayName); } if (ref) { defineRefPropWarningGetter(props, displayName); } } return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props); } } var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner; var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; function setCurrentlyValidatingElement$1(element) { { if (element) { var owner = element._owner; var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null); ReactDebugCurrentFrame$1.setExtraStackFrame(stack); } else { ReactDebugCurrentFrame$1.setExtraStackFrame(null); } } } var propTypesMisspellWarningShown; { propTypesMisspellWarningShown = false; } /** * Verifies the object is a ReactElement. * See https://reactjs.org/docs/react-api.html#isvalidelement * @param {?object} object * @return {boolean} True if `object` is a ReactElement. * @final */ function isValidElement(object) { { return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; } } function getDeclarationErrorAddendum() { { if (ReactCurrentOwner$1.current) { var name = getComponentNameFromType(ReactCurrentOwner$1.current.type); if (name) { return '\n\nCheck the render method of `' + name + '`.'; } } return ''; } } function getSourceInfoErrorAddendum(source) { { if (source !== undefined) { var fileName = source.fileName.replace(/^.*[\\\/]/, ''); var lineNumber = source.lineNumber; return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.'; } return ''; } } /** * Warn if there's no key explicitly set on dynamic arrays of children or * object keys are not valid. This allows us to keep track of children between * updates. */ var ownerHasKeyUseWarning = {}; function getCurrentComponentErrorInfo(parentType) { { var info = getDeclarationErrorAddendum(); if (!info) { var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name; if (parentName) { info = "\n\nCheck the top-level render call using <" + parentName + ">."; } } return info; } } /** * Warn if the element doesn't have an explicit key assigned to it. * This element is in an array. The array could grow and shrink or be * reordered. All children that haven't already been validated are required to * have a "key" property assigned to it. Error statuses are cached so a warning * will only be shown once. * * @internal * @param {ReactElement} element Element that requires a key. * @param {*} parentType element's parent's type. */ function validateExplicitKey(element, parentType) { { if (!element._store || element._store.validated || element.key != null) { return; } element._store.validated = true; var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { return; } ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a // property, it may be the creator of the child that's responsible for // assigning it a key. var childOwner = ''; if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) { // Give the component that originally created this child. childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + "."; } setCurrentlyValidatingElement$1(element); error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner); setCurrentlyValidatingElement$1(null); } } /** * Ensure that every element either is passed in a static location, in an * array with an explicit keys property defined, or in an object literal * with valid key property. * * @internal * @param {ReactNode} node Statically passed child of any type. * @param {*} parentType node's parent's type. */ function validateChildKeys(node, parentType) { { if (typeof node !== 'object') { return; } if (isArray(node)) { for (var i = 0; i < node.length; i++) { var child = node[i]; if (isValidElement(child)) { validateExplicitKey(child, parentType); } } } else if (isValidElement(node)) { // This element was passed in a valid location. if (node._store) { node._store.validated = true; } } else if (node) { var iteratorFn = getIteratorFn(node); if (typeof iteratorFn === 'function') { // Entry iterators used to provide implicit keys, // but now we print a separate warning for them later. if (iteratorFn !== node.entries) { var iterator = iteratorFn.call(node); var step; while (!(step = iterator.next()).done) { if (isValidElement(step.value)) { validateExplicitKey(step.value, parentType); } } } } } } } /** * Given an element, validate that its props follow the propTypes definition, * provided by the type. * * @param {ReactElement} element */ function validatePropTypes(element) { { var type = element.type; if (type === null || type === undefined || typeof type === 'string') { return; } var propTypes; if (typeof type === 'function') { propTypes = type.propTypes; } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. type.$$typeof === REACT_MEMO_TYPE)) { propTypes = type.propTypes; } else { return; } if (propTypes) { // Intentionally inside to avoid triggering lazy initializers: var name = getComponentNameFromType(type); checkPropTypes(propTypes, element.props, 'prop', name, element); } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) { propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers: var _name = getComponentNameFromType(type); error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown'); } if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) { error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.'); } } } /** * Given a fragment, validate that it can only be provided with fragment props * @param {ReactElement} fragment */ function validateFragmentProps(fragment) { { var keys = Object.keys(fragment.props); for (var i = 0; i < keys.length; i++) { var key = keys[i]; if (key !== 'children' && key !== 'key') { setCurrentlyValidatingElement$1(fragment); error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key); setCurrentlyValidatingElement$1(null); break; } } if (fragment.ref !== null) { setCurrentlyValidatingElement$1(fragment); error('Invalid attribute `ref` supplied to `React.Fragment`.'); setCurrentlyValidatingElement$1(null); } } } var didWarnAboutKeySpread = {}; function jsxWithValidation(type, props, key, isStaticChildren, source, self) { { var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to // succeed and there will likely be errors in render. if (!validType) { var info = ''; if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) { info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports."; } var sourceInfo = getSourceInfoErrorAddendum(source); if (sourceInfo) { info += sourceInfo; } else { info += getDeclarationErrorAddendum(); } var typeString; if (type === null) { typeString = 'null'; } else if (isArray(type)) { typeString = 'array'; } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) { typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />"; info = ' Did you accidentally export a JSX literal instead of a component?'; } else { typeString = typeof type; } error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info); } var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used. // TODO: Drop this when these are no longer allowed as the type argument. if (element == null) { return element; } // Skip key warning if the type isn't valid since our key validation logic // doesn't expect a non-string/function type and can throw confusing errors. // We don't want exception behavior to differ between dev and prod. // (Rendering will throw with a helpful message and as soon as the type is // fixed, the key warnings will appear.) if (validType) { var children = props.children; if (children !== undefined) { if (isStaticChildren) { if (isArray(children)) { for (var i = 0; i < children.length; i++) { validateChildKeys(children[i], type); } if (Object.freeze) { Object.freeze(children); } } else { error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.'); } } else { validateChildKeys(children, type); } } } { if (hasOwnProperty.call(props, 'key')) { var componentName = getComponentNameFromType(type); var keys = Object.keys(props).filter(function (k) { return k !== 'key'; }); var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}'; if (!didWarnAboutKeySpread[componentName + beforeExample]) { var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}'; error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName); didWarnAboutKeySpread[componentName + beforeExample] = true; } } } if (type === REACT_FRAGMENT_TYPE) { validateFragmentProps(element); } else { validatePropTypes(element); } return element; } } // These two functions exist to still get child warnings in dev // even with the prod transform. This means that jsxDEV is purely // opt-in behavior for better messages but that we won't stop // giving you warnings if you use production apis. function jsxWithValidationStatic(type, props, key) { { return jsxWithValidation(type, props, key, true); } } function jsxWithValidationDynamic(type, props, key) { { return jsxWithValidation(type, props, key, false); } } var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children. // for now we can ship identical prod functions var jsxs = jsxWithValidationStatic ; exports.Fragment = REACT_FRAGMENT_TYPE; exports.jsx = jsx; exports.jsxs = jsxs; })(); } /***/ }), /***/ "./node_modules/react/jsx-runtime.js": /*!*******************************************!*\ !*** ./node_modules/react/jsx-runtime.js ***! \*******************************************/ /***/ ((module, __unused_webpack_exports, __webpack_require__) => { if (false) // removed by dead control flow {} else { module.exports = __webpack_require__(/*! ./cjs/react-jsx-runtime.development.js */ "./node_modules/react/cjs/react-jsx-runtime.development.js"); } /***/ }), /***/ "./src/App.js": /*!********************!*\ !*** ./src/App.js ***! \********************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _components_Header__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/Header */ "./src/components/Header.js"); /* harmony import */ var _components_Sidebar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/Sidebar */ "./src/components/Sidebar.js"); /* harmony import */ var _utils_sidebarItems__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/sidebarItems */ "./src/utils/sidebarItems.js"); /* harmony import */ var _components_Canvas__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/Canvas */ "./src/components/Canvas.js"); /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-router-dom */ "./node_modules/react-router-dom/dist/index.js"); /* harmony import */ var _bsf_force_ui__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @bsf/force-ui */ "./node_modules/@bsf/force-ui/dist/force-ui.js"); const App = () => { // Remove admin bar padding. (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => { document.querySelector('html.wp-toolbar').style.paddingTop = 0; }, []); return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react_router_dom__WEBPACK_IMPORTED_MODULE_6__.BrowserRouter, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-tb-app" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_components_Header__WEBPACK_IMPORTED_MODULE_1__["default"], null), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_5__.Container, { className: "h-full ast-tb-container overflow-hidden ast-tb-sidebar", gap: "none" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_components_Sidebar__WEBPACK_IMPORTED_MODULE_2__["default"], { items: _utils_sidebarItems__WEBPACK_IMPORTED_MODULE_3__["default"] }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_components_Canvas__WEBPACK_IMPORTED_MODULE_4__["default"], null)))); }; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (App); /***/ }), /***/ "./src/components/Breadcrumbs.js": /*!***************************************!*\ !*** ./src/components/Breadcrumbs.js ***! \***************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _bsf_force_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bsf/force-ui */ "./node_modules/@bsf/force-ui/dist/force-ui.js"); const Breadcrumbs = () => { const { astra_base_url } = astra_theme_builder; return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_2__.Breadcrumb, { size: "sm" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_2__.Breadcrumb.List, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_2__.Breadcrumb.Item, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_2__.Breadcrumb.Link, { href: astra_base_url, className: "font-medium text-base leading-6 tracking-normal hover:no-underline focus:outline-none focus:ring-0 focus:border-transparent transition-none" }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Dashboard', 'astra'))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "mt-2" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_2__.Breadcrumb.Separator, null)), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_2__.Breadcrumb.Item, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_2__.Breadcrumb.Page, { className: "font-medium text-base leading-6 tracking-normal" }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Site Builder', 'astra'))))); }; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Breadcrumbs); /***/ }), /***/ "./src/components/Canvas.js": /*!**********************************!*\ !*** ./src/components/Canvas.js ***! \**********************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Layouts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Layouts */ "./src/components/Layouts.js"); /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-router-dom */ "./node_modules/react-router/dist/index.js"); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _bsf_force_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bsf/force-ui */ "./node_modules/@bsf/force-ui/dist/force-ui.js"); /* harmony import */ var _ProButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ProButton */ "./src/components/ProButton.js"); const Canvas = () => { return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "bg-background-secondary flex-grow relative overflow-y-auto py-6 px-8 " }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_3__.Container, { className: "flex w-full justify-between items-center border-b border-gray-300 ast-tb-canvas-header", gap: "none" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("h2", { className: "font-semibold text-text-primary text-[20px] leading-[30px] tracking-[-0.005em]" }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Start customizing every part of your website.', 'astra')), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_ProButton__WEBPACK_IMPORTED_MODULE_4__["default"], { className: "ast-upgrade-btn", disableSpinner: true })), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-tb-canvas-content" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react_router_dom__WEBPACK_IMPORTED_MODULE_5__.Routes, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(react_router_dom__WEBPACK_IMPORTED_MODULE_5__.Route, { path: "*", element: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Layouts__WEBPACK_IMPORTED_MODULE_1__["default"], null) }))))); }; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Canvas); /***/ }), /***/ "./src/components/Card.js": /*!********************************!*\ !*** ./src/components/Card.js ***! \********************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _bsf_force_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @bsf/force-ui */ "./node_modules/@bsf/force-ui/dist/force-ui.js"); /* harmony import */ var _ProButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ProButton */ "./src/components/ProButton.js"); function Card({ title, icon }) { const [isHovered, setIsHovered] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); const handleMouseEnter = () => { setIsHovered(true); }; const handleMouseLeave = () => { setIsHovered(false); }; const getDescription = title => { switch (title) { case 'Header': return 'Replace the current site header with custom layout content'; case 'Footer': return 'Replace the current site footer with custom layout content'; case 'Single': return 'Create a custom template for Single Posts using the Site Builder'; case 'Archive': return 'Create a custom template for Archives using the Site Builder'; case 'Inside Post/Page': return 'Design a layout in one place and display it on multiple pages/posts'; case 'Hooks': return 'Insert custom code or content using Astra hooks'; case '404 Page': return 'Change the design of your 404 page using the Site Builder'; default: return `This is a ${title}`; } }; return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-tb-card-parent relative", onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave }, icon && isHovered && (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-tb-locked absolute inset-0 bg-white bg-opacity-90 flex flex-col items-center justify-center z-10 rounded-md hover:bg-[#141338]" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_2__.Badge, { className: "p-0.5", label: "PRO", size: "sm", type: "rounded" })), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("h3", { className: "font-semibold text-center px-4 font-normal text-[18px] leading-[16px] text-text-on-color text-center" }, title), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("p", { className: "text-center px-4 mt-[-20px] font-normal text-[12px] leading-[16px] text-text-on-color text-center" }, getDescription(title)), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_ProButton__WEBPACK_IMPORTED_MODULE_3__["default"], { className: "ast-upgrade-btn", disableSpinner: true })), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-tb-card min-w-[228px] max-w-[352px] rounded-md shadow-md bg-white" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: `flex justify-center items-center h-full ${isHovered ? 'ast-tb-card-icon-wrapper-hover' : ''}` }, icon), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-tb-card-title-wrapper border-[#e9e9e9] p-[10px]" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("h3", { className: "m-0 text-center text-text-primary font-semibold text-base leading-6" }, title)))); } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Card); /***/ }), /***/ "./src/components/Header.js": /*!**********************************!*\ !*** ./src/components/Header.js ***! \**********************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _bsf_force_ui__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bsf/force-ui */ "./node_modules/@bsf/force-ui/dist/force-ui.js"); /* harmony import */ var _Breadcrumbs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Breadcrumbs */ "./src/components/Breadcrumbs.js"); const Header = () => { return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_1__.Topbar, { className: "z-999999 h-[80px] shadow-sm" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_1__.Topbar.Left, { gap: "xs" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_1__.Topbar.Item, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", { width: "48", height: "48", viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("rect", { width: "40", height: "40", rx: "20", fill: "url(#paint0_linear_6786_60902)" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M19.7688 8.00063C19.7679 7.99979 19.7688 7.99979 19.7688 8.00063C16.5122 14.6651 13.2557 21.333 10 27.9975C11.3949 27.9975 12.7907 27.9975 14.1865 27.9975C16.8208 22.8376 19.4568 17.6759 22.0919 12.5126L19.7688 8.00063Z", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M24.1092 16.2694C22.7652 18.976 21.4213 21.6833 20.0774 24.3899L19.9996 24.5408H20.0774C21.3695 24.5408 22.6615 24.5408 23.9536 24.5408C24.4704 25.6933 24.9873 26.8475 25.5041 28C27.0027 28 28.5014 28 30 28C28.0364 24.0881 26.0719 20.1788 24.1092 16.2694Z", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("defs", null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("linearGradient", { id: "paint0_linear_6786_60902", x1: "-5.96046e-07", y1: "40", x2: "47.0588", y2: "28.2353", gradientUnits: "userSpaceOnUse" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("stop", { stopColor: "#492CDD" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("stop", { offset: "1", stopColor: "#AD38E2" })))))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_1__.Topbar.Middle, { align: "left" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_1__.Topbar.Item, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "flex items-center gap-3" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("h2", { className: "ast-tb-main-title font-semibold text-[24px] leading-[32px] tracking-[-0.006em] align-middle" }, astra_theme_builder.title), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Breadcrumbs__WEBPACK_IMPORTED_MODULE_2__["default"], null)))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_1__.Topbar.Right, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_1__.Topbar.Item, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "cursor-pointer", onClick: () => window.location.href = astra_theme_builder.astra_base_url }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M6 18L18 6M6 6L18 18", stroke: "#475569", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })))))); }; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Header); /***/ }), /***/ "./src/components/Layouts.js": /*!***********************************!*\ !*** ./src/components/Layouts.js ***! \***********************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Card__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Card */ "./src/components/Card.js"); /* harmony import */ var _utils_layoutItems__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/layoutItems */ "./src/utils/layoutItems.js"); /* harmony import */ var _bsf_force_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bsf/force-ui */ "./node_modules/@bsf/force-ui/dist/force-ui.js"); const Layouts = () => { return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_3__.Container, { containerType: "grid", className: "grid-cols-[repeat(auto-fill,_minmax(250px,_1fr))] mt-7 ast-tb-canvas-content gap-[30px] w-full" }, _utils_layoutItems__WEBPACK_IMPORTED_MODULE_2__["default"].map((item, index) => (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_Card__WEBPACK_IMPORTED_MODULE_1__["default"], { key: index, title: item.label, icon: item.icon }))); }; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Layouts); /***/ }), /***/ "./src/components/ProButton.js": /*!*************************************!*\ !*** ./src/components/ProButton.js ***! \*************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _astra_utils_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @astra-utils/helpers */ "../utils/helpers.js"); /* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/arrow-up-right.js"); /* harmony import */ var _bsf_force_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bsf/force-ui */ "./node_modules/@bsf/force-ui/dist/force-ui.js"); const ProButton = ({ className, isLink = false, url = astra_theme_builder.astra_pricing_page_url, children = (0,_astra_utils_helpers__WEBPACK_IMPORTED_MODULE_2__.getAstraProTitle)(), disableSpinner = false, spinnerPosition = 'left', Icon = lucide_react__WEBPACK_IMPORTED_MODULE_4__["default"], target = '_blank', rel = 'noreferrer', campaign = '', iconPosition = 'right' // <-- default position here }) => { const onGetAstraPro = e => { (0,_astra_utils_helpers__WEBPACK_IMPORTED_MODULE_2__.handleGetAstraPro)(e, { url, campaign, disableSpinner, spinnerPosition }); }; const linkProps = isLink && { href: url, target, rel }; return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_3__.Button, { variant: isLink ? 'link' : 'primary', className: (0,_astra_utils_helpers__WEBPACK_IMPORTED_MODULE_2__.classNames)('inline-flex items-center', isLink ? 'gap-0 focus:ring-0 focus:ring-offset-0 focus:shadow-none focus:outline-none hover:no-underline [&>svg]:w-4 [&>svg]:h-4' : '', className), onClick: onGetAstraPro, icon: Icon && (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(Icon, { size: 16 }), iconPosition: iconPosition // <-- this is now dynamic , ...linkProps }, children); }; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ProButton); /***/ }), /***/ "./src/components/Sidebar.js": /*!***********************************!*\ !*** ./src/components/Sidebar.js ***! \***********************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _SidebarItem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SidebarItem */ "./src/components/SidebarItem.js"); /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-router-dom */ "./node_modules/react-router/dist/index.js"); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _bsf_force_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @bsf/force-ui */ "./node_modules/@bsf/force-ui/dist/force-ui.js"); /* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/layout-grid.js"); /* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/circle-help.js"); /* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/crown.js"); /* harmony import */ var _ProButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ProButton */ "./src/components/ProButton.js"); // Sidebar.js const CustomSidebar = ({ items }) => { const location = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_5__.useLocation)(); const query = new URLSearchParams(location.search); const page = query.get('page'); const path = query.get('path'); const isSelectedItem = 'theme-builder' === page && 'all-layouts' === path; return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_3__.Sidebar, { className: "ast-tb-sidebar w-[15rem] py-6 px-6 py-4", borderOn: false }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_3__.Sidebar.Header, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: ` ast-tb-sidebar-header ${isSelectedItem ? 'ast-tb-sidebar-item-selected' : ''}` }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-tb-sidebar-header-left" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(lucide_react__WEBPACK_IMPORTED_MODULE_6__["default"], { className: "w-6 h-6 text-gray-600" }), " ", (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("h2", { className: "text-text-secondary font-figtree font-normal text-base leading-6 tracking-normal" }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('All Layouts', 'astra'))))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_3__.Sidebar.Body, { className: "pb-5" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-tb-sidebar-subtitle" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("h3", { className: "text-text-tertiary" }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Website Parts', 'astra'))), items.map((item, index) => (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_SidebarItem__WEBPACK_IMPORTED_MODULE_1__["default"], { key: index, label: item.label, icon: item.icon, layout: item.layout, template: item.template })), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-tb-help-divider" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-tb-sidebar-help ast-tb-sidebar-item py-3 rounded-md hover:bg-[#F3F3F8] hover:[color:#141338]", onClick: () => window.open(astra_theme_builder.astra_docs_page_url, '_blank') }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(lucide_react__WEBPACK_IMPORTED_MODULE_7__["default"], { className: "w-5 h-5 text-gray-400 w-[20px] h-[20px] text-icon-secondary group-hover:stroke-[#141338]" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", { className: "font-normal text-[16px] leading-[24px] text-text-secondary" }, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_2__.__)('Help', 'astra'))), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-tb-sidebar-help ast-tb-sidebar-item py-3 rounded-md hover:bg-[#F3F3F8] hover:[color:#141338]" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_ProButton__WEBPACK_IMPORTED_MODULE_4__["default"], { className: "ast-tb-sidebar-help text-link-primary font-figtree font-semibold text-base leading-6 tracking-normal", isLink: true, url: astra_theme_builder.astra_pricing_page_url, Icon: lucide_react__WEBPACK_IMPORTED_MODULE_8__["default"], iconPosition: "left", disableSpinner: true })))); }; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CustomSidebar); /***/ }), /***/ "./src/components/SidebarItem.js": /*!***************************************!*\ !*** ./src/components/SidebarItem.js ***! \***************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react_router_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-router-dom */ "./node_modules/react-router/dist/index.js"); /* harmony import */ var _bsf_force_ui__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @bsf/force-ui */ "./node_modules/@bsf/force-ui/dist/force-ui.js"); /* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/lock.js"); // SidebarItem.js const SidebarItem = ({ label, icon, layout, template }) => { const location = (0,react_router_dom__WEBPACK_IMPORTED_MODULE_2__.useLocation)(); const [isHovered, setIsHovered] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false); const query = new URLSearchParams(location.search); const page = query.get("page"); const path = query.get("path"); const isSelected = "theme-builder" === page && layout === path; const selectedClass = isSelected ? "ast-tb-sidebar-item-selected" : ""; return (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_bsf_force_ui__WEBPACK_IMPORTED_MODULE_1__.Sidebar.Item, null, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: `group ast-tb-sidebar-item ${selectedClass} pr-4 pl-4 ml-[-5px] py-3 rounded-md hover:bg-[#F3F3F8]`, onMouseEnter: () => setIsHovered(true), onMouseLeave: () => setIsHovered(false) }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-tb-sidebar-item-left flex items-center gap-3" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", { className: "ast-tb-sidebar-item-icon flex items-center justify-center" }, icon), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("span", { className: `text-text-secondary font-figtree font-normal text-base leading-6 tracking-normal group-hover:[color:#141338] ${label === "404 Page" || label === "Archive" ? "ast-tb-sidebar-item-svg" : ""}` }, label)), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", { className: "ast-tb-sidebar-item-right" }, isHovered && (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(lucide_react__WEBPACK_IMPORTED_MODULE_3__["default"], { className: "w-4 h-4 text-gray-400 group-hover:text-[#141338]" })))); }; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SidebarItem); /***/ }), /***/ "./src/style/index.scss": /*!******************************!*\ !*** ./src/style/index.scss ***! \******************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); // extracted by mini-css-extract-plugin /***/ }), /***/ "./src/utils/layoutItems.js": /*!**********************************!*\ !*** ./src/utils/layoutItems.js ***! \**********************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); const layoutItems = [{ label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Header", "astra"), layout: "header", icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", { width: "270", height: "270", viewBox: "0 0 270 270", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M37 45.5C37 41.0817 40.5817 37.5 45 37.5H225C229.418 37.5 233 41.0817 233 45.5V69.5H37V45.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("circle", { cx: "53", cy: "53.5", r: "6", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M119 53.5C119 52.9477 119.448 52.5 120 52.5H134C134.552 52.5 135 52.9477 135 53.5C135 54.0523 134.552 54.5 134 54.5H120C119.448 54.5 119 54.0523 119 53.5Z", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M141 53.5C141 52.9477 141.448 52.5 142 52.5H156C156.552 52.5 157 52.9477 157 53.5C157 54.0523 156.552 54.5 156 54.5H142C141.448 54.5 141 54.0523 141 53.5Z", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M163 53.5C163 52.9477 163.448 52.5 164 52.5H178C178.552 52.5 179 52.9477 179 53.5C179 54.0523 178.552 54.5 178 54.5H164C163.448 54.5 163 54.0523 163 53.5Z", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M185 53.5C185 52.9477 185.448 52.5 186 52.5H200C200.552 52.5 201 52.9477 201 53.5C201 54.0523 200.552 54.5 200 54.5H186C185.448 54.5 185 54.0523 185 53.5Z", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M207 53.5C207 52.9477 207.448 52.5 208 52.5H222C222.552 52.5 223 52.9477 223 53.5C223 54.0523 222.552 54.5 222 54.5H208C207.448 54.5 207 54.0523 207 53.5Z", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M45 38.5H225C228.866 38.5 232 41.634 232 45.5V225.5C232 229.366 228.866 232.5 225 232.5H45C41.134 232.5 38 229.366 38 225.5V45.5L38.0088 45.1396C38.1963 41.4411 41.2549 38.5 45 38.5Z", stroke: "#E6E6EF", "stroke-width": "2" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("rect", { x: "37", y: "67.5", width: "196", height: "2", fill: "#E6E6EF" })) }, { label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Footer", "astra"), layout: "footer", icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", { width: "270", height: "270", viewBox: "0 0 270 270", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M37 225.5C37 229.918 40.5817 233.5 45 233.5H225C229.418 233.5 233 229.918 233 225.5V189.5H37V225.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("circle", { cx: "53", cy: "208.5", r: "6", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M117 217.5C117 216.948 117.448 216.5 118 216.5H138C138.552 216.5 139 216.948 139 217.5C139 218.052 138.552 218.5 138 218.5H118C117.448 218.5 117 218.052 117 217.5Z", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M145 217.5C145 216.948 145.448 216.5 146 216.5H166C166.552 216.5 167 216.948 167 217.5C167 218.052 166.552 218.5 166 218.5H146C145.448 218.5 145 218.052 145 217.5Z", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M173 217.5C173 216.948 173.448 216.5 174 216.5H194C194.552 216.5 195 216.948 195 217.5C195 218.052 194.552 218.5 194 218.5H174C173.448 218.5 173 218.052 173 217.5Z", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M201 217.5C201 216.948 201.448 216.5 202 216.5H222C222.552 216.5 223 216.948 223 217.5C223 218.052 222.552 218.5 222 218.5H202C201.448 218.5 201 218.052 201 217.5Z", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M117 211.5C117 210.948 117.448 210.5 118 210.5H138C138.552 210.5 139 210.948 139 211.5C139 212.052 138.552 212.5 138 212.5H118C117.448 212.5 117 212.052 117 211.5Z", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M145 211.5C145 210.948 145.448 210.5 146 210.5H166C166.552 210.5 167 210.948 167 211.5C167 212.052 166.552 212.5 166 212.5H146C145.448 212.5 145 212.052 145 211.5Z", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M173 211.5C173 210.948 173.448 210.5 174 210.5H194C194.552 210.5 195 210.948 195 211.5C195 212.052 194.552 212.5 194 212.5H174C173.448 212.5 173 212.052 173 211.5Z", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M201 211.5C201 210.948 201.448 210.5 202 210.5H222C222.552 210.5 223 210.948 223 211.5C223 212.052 222.552 212.5 222 212.5H202C201.448 212.5 201 212.052 201 211.5Z", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M117 205.5C117 204.948 117.448 204.5 118 204.5H138C138.552 204.5 139 204.948 139 205.5C139 206.052 138.552 206.5 138 206.5H118C117.448 206.5 117 206.052 117 205.5Z", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M145 205.5C145 204.948 145.448 204.5 146 204.5H166C166.552 204.5 167 204.948 167 205.5C167 206.052 166.552 206.5 166 206.5H146C145.448 206.5 145 206.052 145 205.5Z", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M173 205.5C173 204.948 173.448 204.5 174 204.5H194C194.552 204.5 195 204.948 195 205.5C195 206.052 194.552 206.5 194 206.5H174C173.448 206.5 173 206.052 173 205.5Z", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M201 205.5C201 204.948 201.448 204.5 202 204.5H222C222.552 204.5 223 204.948 223 205.5C223 206.052 222.552 206.5 222 206.5H202C201.448 206.5 201 206.052 201 205.5Z", fill: "white" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M45 38.5H225C228.866 38.5 232 41.634 232 45.5V225.5C232 229.366 228.866 232.5 225 232.5H45C41.134 232.5 38 229.366 38 225.5V45.5L38.0088 45.1396C38.1963 41.4411 41.2549 38.5 45 38.5Z", stroke: "#E6E6EF", "stroke-width": "2" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("rect", { x: "37", y: "189.5", width: "196", height: "2", fill: "#E6E6EF" })) }, { label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Hooks", "astra"), layout: "hooks", icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", { width: "270", height: "270", viewBox: "0 0 270 270", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 133.5C67 135.709 68.7909 137.5 71 137.5H199C201.209 137.5 203 135.709 203 133.5V71.5C203 69.2909 201.209 67.5 199 67.5H71C68.7909 67.5 67 69.2909 67 71.5V133.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M147 110.5L155 102.5L147 94.5", stroke: "white", "stroke-width": "1.25", "stroke-linecap": "round", "stroke-linejoin": "round" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M123 94.5L115 102.5L123 110.5", stroke: "white", "stroke-width": "1.25", "stroke-linecap": "round", "stroke-linejoin": "round" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M140 86.5L130 118.5", stroke: "white", "stroke-width": "1.25", "stroke-linecap": "round", "stroke-linejoin": "round" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 146.5C67 147.052 67.4477 147.5 68 147.5H202C202.552 147.5 203 147.052 203 146.5C203 145.948 202.552 145.5 202 145.5H68C67.4477 145.5 67 145.948 67 146.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 154.5C67 155.052 67.4477 155.5 68 155.5H202C202.552 155.5 203 155.052 203 154.5C203 153.948 202.552 153.5 202 153.5H68C67.4477 153.5 67 153.948 67 154.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 162.5C67 163.052 67.4477 163.5 68 163.5H202C202.552 163.5 203 163.052 203 162.5C203 161.948 202.552 161.5 202 161.5H68C67.4477 161.5 67 161.948 67 162.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 170.5C67 171.052 67.4477 171.5 68 171.5H202C202.552 171.5 203 171.052 203 170.5C203 169.948 202.552 169.5 202 169.5H68C67.4477 169.5 67 169.948 67 170.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 178.5C67 179.052 67.4477 179.5 68 179.5H202C202.552 179.5 203 179.052 203 178.5C203 177.948 202.552 177.5 202 177.5H68C67.4477 177.5 67 177.948 67 178.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 186.5C67 187.052 67.4477 187.5 68 187.5H202C202.552 187.5 203 187.052 203 186.5C203 185.948 202.552 185.5 202 185.5H68C67.4477 185.5 67 185.948 67 186.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 194.5C67 195.052 67.4477 195.5 68 195.5H202C202.552 195.5 203 195.052 203 194.5C203 193.948 202.552 193.5 202 193.5H68C67.4477 193.5 67 193.948 67 194.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 202.5C67 203.052 67.4477 203.5 68 203.5H162C162.552 203.5 163 203.052 163 202.5C163 201.948 162.552 201.5 162 201.5H68C67.4477 201.5 67 201.948 67 202.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M45 38.5H225C228.866 38.5 232 41.634 232 45.5V225.5C232 229.366 228.866 232.5 225 232.5H45C41.134 232.5 38 229.366 38 225.5V45.5L38.0088 45.1396C38.1963 41.4411 41.2549 38.5 45 38.5Z", stroke: "#E6E6EF", "stroke-width": "2" })) }, { label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Inside Post/Page", "astra"), layout: "content", icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", { width: "270", height: "270", viewBox: "0 0 270 270", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 133.5C67 135.709 68.7909 137.5 71 137.5H199C201.209 137.5 203 135.709 203 133.5V71.5C203 69.2909 201.209 67.5 199 67.5H71C68.7909 67.5 67 69.2909 67 71.5V133.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M147 110.5L155 102.5L147 94.5", stroke: "white", "stroke-width": "1.25", "stroke-linecap": "round", "stroke-linejoin": "round" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M123 94.5L115 102.5L123 110.5", stroke: "white", "stroke-width": "1.25", "stroke-linecap": "round", "stroke-linejoin": "round" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M140 86.5L130 118.5", stroke: "white", "stroke-width": "1.25", "stroke-linecap": "round", "stroke-linejoin": "round" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 146.5C67 147.052 67.4477 147.5 68 147.5H202C202.552 147.5 203 147.052 203 146.5C203 145.948 202.552 145.5 202 145.5H68C67.4477 145.5 67 145.948 67 146.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 154.5C67 155.052 67.4477 155.5 68 155.5H202C202.552 155.5 203 155.052 203 154.5C203 153.948 202.552 153.5 202 153.5H68C67.4477 153.5 67 153.948 67 154.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 162.5C67 163.052 67.4477 163.5 68 163.5H202C202.552 163.5 203 163.052 203 162.5C203 161.948 202.552 161.5 202 161.5H68C67.4477 161.5 67 161.948 67 162.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 170.5C67 171.052 67.4477 171.5 68 171.5H202C202.552 171.5 203 171.052 203 170.5C203 169.948 202.552 169.5 202 169.5H68C67.4477 169.5 67 169.948 67 170.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 178.5C67 179.052 67.4477 179.5 68 179.5H202C202.552 179.5 203 179.052 203 178.5C203 177.948 202.552 177.5 202 177.5H68C67.4477 177.5 67 177.948 67 178.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 186.5C67 187.052 67.4477 187.5 68 187.5H202C202.552 187.5 203 187.052 203 186.5C203 185.948 202.552 185.5 202 185.5H68C67.4477 185.5 67 185.948 67 186.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 194.5C67 195.052 67.4477 195.5 68 195.5H202C202.552 195.5 203 195.052 203 194.5C203 193.948 202.552 193.5 202 193.5H68C67.4477 193.5 67 193.948 67 194.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 202.5C67 203.052 67.4477 203.5 68 203.5H162C162.552 203.5 163 203.052 163 202.5C163 201.948 162.552 201.5 162 201.5H68C67.4477 201.5 67 201.948 67 202.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M45 38.5H225C228.866 38.5 232 41.634 232 45.5V225.5C232 229.366 228.866 232.5 225 232.5H45C41.134 232.5 38 229.366 38 225.5V45.5L38.0088 45.1396C38.1963 41.4411 41.2549 38.5 45 38.5Z", stroke: "#E6E6EF", "stroke-width": "2" })) }, { label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Single", "astra"), layout: "template", template: "single", icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", { width: "270", height: "269", viewBox: "0 0 270 269", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 133C67 135.209 68.7909 137 71 137H199C201.209 137 203 135.209 203 133V87C203 84.7909 201.209 83 199 83H71C68.7909 83 67 84.7909 67 87V133Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("circle", { cx: "73", cy: "73", r: "6", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M85 70.5C85 71.0523 85.4477 71.5 86 71.5H100C100.552 71.5 101 71.0523 101 70.5C101 69.9477 100.552 69.5 100 69.5H86C85.4477 69.5 85 69.9477 85 70.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M85 75.5C85 76.0523 85.4477 76.5 86 76.5H120C120.552 76.5 121 76.0523 121 75.5C121 74.9477 120.552 74.5 120 74.5H86C85.4477 74.5 85 74.9477 85 75.5Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 146C67 146.552 67.4477 147 68 147H202C202.552 147 203 146.552 203 146C203 145.448 202.552 145 202 145H68C67.4477 145 67 145.448 67 146Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 154C67 154.552 67.4477 155 68 155H202C202.552 155 203 154.552 203 154C203 153.448 202.552 153 202 153H68C67.4477 153 67 153.448 67 154Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 162C67 162.552 67.4477 163 68 163H202C202.552 163 203 162.552 203 162C203 161.448 202.552 161 202 161H68C67.4477 161 67 161.448 67 162Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 170C67 170.552 67.4477 171 68 171H202C202.552 171 203 170.552 203 170C203 169.448 202.552 169 202 169H68C67.4477 169 67 169.448 67 170Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 178C67 178.552 67.4477 179 68 179H202C202.552 179 203 178.552 203 178C203 177.448 202.552 177 202 177H68C67.4477 177 67 177.448 67 178Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 186C67 186.552 67.4477 187 68 187H202C202.552 187 203 186.552 203 186C203 185.448 202.552 185 202 185H68C67.4477 185 67 185.448 67 186Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 194C67 194.552 67.4477 195 68 195H202C202.552 195 203 194.552 203 194C203 193.448 202.552 193 202 193H68C67.4477 193 67 193.448 67 194Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 202C67 202.552 67.4477 203 68 203H162C162.552 203 163 202.552 163 202C163 201.448 162.552 201 162 201H68C67.4477 201 67 201.448 67 202Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M45 38H225C228.866 38 232 41.134 232 45V225C232 228.866 228.866 232 225 232H45C41.134 232 38 228.866 38 225V45L38.0088 44.6396C38.1963 40.9411 41.2549 38 45 38Z", stroke: "#E6E6EF", "stroke-width": "2" })) }, { label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Archive", "astra"), layout: "template", template: "archive", icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", { width: "270", height: "269", viewBox: "0 0 270 269", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 101C67 103.209 68.7909 105 71 105H125C127.209 105 129 103.209 129 101V71C129 68.7909 127.209 67 125 67H71C68.7909 67 67 68.7909 67 71V101Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 112C67 112.552 67.4477 113 68 113H128C128.552 113 129 112.552 129 112C129 111.448 128.552 111 128 111H68C67.4477 111 67 111.448 67 112Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 120C67 120.552 67.4477 121 68 121H128C128.552 121 129 120.552 129 120C129 119.448 128.552 119 128 119H68C67.4477 119 67 119.448 67 120Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 128C67 128.552 67.4477 129 68 129H108C108.552 129 109 128.552 109 128C109 127.448 108.552 127 108 127H68C67.4477 127 67 127.448 67 128Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 175C67 177.209 68.7909 179 71 179H125C127.209 179 129 177.209 129 175V145C129 142.791 127.209 141 125 141H71C68.7909 141 67 142.791 67 145V175Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 186C67 186.552 67.4477 187 68 187H128C128.552 187 129 186.552 129 186C129 185.448 128.552 185 128 185H68C67.4477 185 67 185.448 67 186Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 194C67 194.552 67.4477 195 68 195H128C128.552 195 129 194.552 129 194C129 193.448 128.552 193 128 193H68C67.4477 193 67 193.448 67 194Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M67 202C67 202.552 67.4477 203 68 203H108C108.552 203 109 202.552 109 202C109 201.448 108.552 201 108 201H68C67.4477 201 67 201.448 67 202Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M141 101C141 103.209 142.791 105 145 105H199C201.209 105 203 103.209 203 101V71C203 68.7909 201.209 67 199 67H145C142.791 67 141 68.7909 141 71V101Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M141 112C141 112.552 141.448 113 142 113H202C202.552 113 203 112.552 203 112C203 111.448 202.552 111 202 111H142C141.448 111 141 111.448 141 112Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M141 120C141 120.552 141.448 121 142 121H202C202.552 121 203 120.552 203 120C203 119.448 202.552 119 202 119H142C141.448 119 141 119.448 141 120Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M141 128C141 128.552 141.448 129 142 129H182C182.552 129 183 128.552 183 128C183 127.448 182.552 127 182 127H142C141.448 127 141 127.448 141 128Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M141 175C141 177.209 142.791 179 145 179H199C201.209 179 203 177.209 203 175V145C203 142.791 201.209 141 199 141H145C142.791 141 141 142.791 141 145V175Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M141 186C141 186.552 141.448 187 142 187H202C202.552 187 203 186.552 203 186C203 185.448 202.552 185 202 185H142C141.448 185 141 185.448 141 186Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M141 194C141 194.552 141.448 195 142 195H202C202.552 195 203 194.552 203 194C203 193.448 202.552 193 202 193H142C141.448 193 141 193.448 141 194Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M141 202C141 202.552 141.448 203 142 203H182C182.552 203 183 202.552 183 202C183 201.448 182.552 201 182 201H142C141.448 201 141 201.448 141 202Z", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M45 38H225C228.866 38 232 41.134 232 45V225C232 228.866 228.866 232 225 232H45C41.134 232 38 228.866 38 225V45L38.0088 44.6396C38.1963 40.9411 41.2549 38 45 38Z", stroke: "#E6E6EF", "stroke-width": "2" })) }, { label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("404 Page", "astra"), layout: "404-page", icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", { width: "270", height: "269", viewBox: "0 0 270 269", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("circle", { cx: "50", cy: "53", r: "3", fill: "#D2D3E2" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("circle", { cx: "60", cy: "53", r: "3", fill: "#D2D3E2" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("circle", { cx: "70", cy: "53", r: "3", fill: "#D2D3E2" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M45 38H225C228.866 38 232 41.134 232 45V225C232 228.866 228.866 232 225 232H45C41.134 232 38 228.866 38 225V45L38.0088 44.6396C38.1963 40.9411 41.2549 38 45 38Z", stroke: "#E6E6EF", "stroke-width": "2" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("rect", { x: "37", y: "67", width: "196", height: "2", fill: "#E6E6EF" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M109.825 162V155.547H98.4091V153.81L109.825 137.182H112.059V153.455H117.413V155.547H112.059V162H109.825ZM101.21 153.455H109.825V140.834L101.21 153.455Z", fill: "#D2D3E2" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M135 163.637C142.531 163.637 148.636 157.532 148.636 150.001C148.636 142.469 142.531 136.364 135 136.364C127.469 136.364 121.364 142.469 121.364 150.001C121.364 157.532 127.469 163.637 135 163.637Z", stroke: "#D2D3E2", "stroke-width": "1.70455", "stroke-linecap": "round", "stroke-linejoin": "round" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M135 144.546V150", stroke: "#D2D3E2", "stroke-width": "1.70455", "stroke-linecap": "round", "stroke-linejoin": "round" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M135 155.455H135.014", stroke: "#D2D3E2", "stroke-width": "1.70455", "stroke-linecap": "round", "stroke-linejoin": "round" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M164.553 162V155.547H153.136V153.81L164.553 137.182H166.786V153.455H172.14V155.547H166.786V162H164.553ZM155.937 153.455H164.553V140.834L155.937 153.455Z", fill: "#D2D3E2" })) }]; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (layoutItems); /***/ }), /***/ "./src/utils/sidebarItems.js": /*!***********************************!*\ !*** ./src/utils/sidebarItems.js ***! \***********************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/panel-top.js"); /* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/panel-bottom.js"); /* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/code-xml.js"); /* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/list.js"); /* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/layout-list.js"); /* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lucide-react */ "./node_modules/lucide-react/dist/esm/icons/archive.js"); (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(lucide_react__WEBPACK_IMPORTED_MODULE_2__["default"], null); const sidebarItems = [{ label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Header', 'astra'), layout: 'header', template: '', icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(lucide_react__WEBPACK_IMPORTED_MODULE_2__["default"], { className: "w-[20px] h-[20px] text-icon-secondary group-hover:stroke-[#141338]" }) }, { label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Footer', 'astra'), layout: 'footer', template: '', icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(lucide_react__WEBPACK_IMPORTED_MODULE_3__["default"], { className: "w-[20px] h-[20px] text-icon-secondary group-hover:stroke-[#141338]" }) }, { label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Hooks', 'astra'), layout: 'hooks', template: '', icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(lucide_react__WEBPACK_IMPORTED_MODULE_4__["default"], { className: "w-[20px] h-[20px] text-icon-secondary group-hover:stroke-[#141338]" }) }, { label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Inside Post/Page', 'astra'), layout: 'content', template: '', icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(lucide_react__WEBPACK_IMPORTED_MODULE_5__["default"], { className: "w-[20px] h-[20px] text-icon-secondary group-hover:stroke-[#141338]" }) }, { label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Single', 'astra'), layout: 'template', template: 'single', icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(lucide_react__WEBPACK_IMPORTED_MODULE_6__["default"], { className: "w-[20px] h-[20px] text-icon-secondary group-hover:stroke-[#141338]" }) }, { label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('Archive', 'astra'), layout: 'template', template: 'archive', icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(lucide_react__WEBPACK_IMPORTED_MODULE_7__["default"], { className: "w-[20px] h-[20px] text-icon-secondary group-hover:stroke-[#141338]" }) }, { label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)('404 Page', 'astra'), layout: '404-page', template: '', icon: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", { width: "24", height: "24", viewBox: "0 0 20 21", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: "text-[#6F6B99] group-hover:text-[#141338]" }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M15.8333 3H4.16667C3.24619 3 2.5 3.74619 2.5 4.66667V16.3333C2.5 17.2538 3.24619 18 4.16667 18H15.8333C16.7538 18 17.5 17.2538 17.5 16.3333V4.66667C17.5 3.74619 16.7538 3 15.8333 3Z", stroke: "currentColor", "stroke-width": "1.25", "stroke-linecap": "round", "stroke-linejoin": "round" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M14.572 13.8327V12.5876H12.2689V12.0342L14.2953 6.88281H15.5526V11.7616H16.1955V12.5876H15.5526V13.8327H14.572ZM13.3431 11.7616H14.572V10.7362L14.6778 8.40055H14.5476L13.3431 11.7616Z", fill: "currentColor" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M9.94548 13.8942C9.78 13.8942 9.59825 13.8698 9.40023 13.821C9.20492 13.7721 9.01774 13.6772 8.8387 13.5361C8.66238 13.3924 8.51725 13.1821 8.40332 12.9054C8.28939 12.6287 8.23242 12.2625 8.23242 11.8068V8.86898C8.23242 8.41054 8.29074 8.04568 8.40739 7.77441C8.52403 7.50043 8.67188 7.29563 8.85091 7.15999C9.02995 7.02165 9.21712 6.93077 9.41243 6.88737C9.61046 6.84397 9.78814 6.82227 9.94548 6.82227C10.0974 6.82227 10.2696 6.84261 10.4622 6.8833C10.6548 6.92399 10.8407 7.01215 11.0197 7.14779C11.1987 7.28071 11.3466 7.48416 11.4632 7.75814C11.5799 8.03212 11.6382 8.4024 11.6382 8.86898V11.8068C11.6382 12.2625 11.5785 12.6287 11.4591 12.9054C11.3425 13.1821 11.1933 13.3924 11.0116 13.5361C10.8325 13.6772 10.6467 13.7721 10.4541 13.821C10.2642 13.8698 10.0947 13.8942 9.94548 13.8942ZM9.94548 13.0723C10.1544 13.0723 10.3103 13.0072 10.4134 12.877C10.5165 12.7467 10.568 12.5379 10.568 12.2503V8.48649C10.568 8.18538 10.5165 7.96566 10.4134 7.82731C10.3103 7.68625 10.1544 7.61572 9.94548 7.61572C9.73117 7.61572 9.57113 7.68625 9.46533 7.82731C9.36225 7.96566 9.31071 8.18538 9.31071 8.48649V12.2503C9.31071 12.5379 9.36225 12.7467 9.46533 12.877C9.57113 13.0072 9.73117 13.0723 9.94548 13.0723Z", fill: "currentColor" }), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { d: "M5.94564 13.8327V12.5876H3.64258V12.0342L5.66895 6.88281H6.92627V11.7616H7.56917V12.5876H6.92627V13.8327H5.94564ZM4.7168 11.7616H5.94564V10.7362L6.05143 8.40055H5.92122L4.7168 11.7616Z", fill: "currentColor" })) }]; /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (sidebarItems); /***/ }), /***/ "@wordpress/api-fetch": /*!**********************************!*\ !*** external ["wp","apiFetch"] ***! \**********************************/ /***/ ((module) => { module.exports = window["wp"]["apiFetch"]; /***/ }), /***/ "@wordpress/i18n": /*!******************************!*\ !*** external ["wp","i18n"] ***! \******************************/ /***/ ((module) => { module.exports = window["wp"]["i18n"]; /***/ }), /***/ "react": /*!************************!*\ !*** external "React" ***! \************************/ /***/ ((module) => { module.exports = window["React"]; /***/ }), /***/ "react-dom": /*!***************************!*\ !*** external "ReactDOM" ***! \***************************/ /***/ ((module) => { module.exports = window["ReactDOM"]; /***/ }) /******/ }); /************************************************************************/ /******/ // The module cache /******/ var __webpack_module_cache__ = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ var cachedModule = __webpack_module_cache__[moduleId]; /******/ if (cachedModule !== undefined) { /******/ return cachedModule.exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = __webpack_module_cache__[moduleId] = { /******/ // no module.id needed /******/ // no module.loaded needed /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /************************************************************************/ /******/ /* webpack/runtime/compat get default export */ /******/ (() => { /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = (module) => { /******/ var getter = module && module.__esModule ? /******/ () => (module['default']) : /******/ () => (module); /******/ __webpack_require__.d(getter, { a: getter }); /******/ return getter; /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/create fake namespace object */ /******/ (() => { /******/ var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__); /******/ var leafPrototypes; /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 16: return value when it's Promise-like /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = this(value); /******/ if(mode & 8) return value; /******/ if(typeof value === 'object' && value) { /******/ if((mode & 4) && value.__esModule) return value; /******/ if((mode & 16) && typeof value.then === 'function') return value; /******/ } /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ var def = {}; /******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)]; /******/ for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) { /******/ Object.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key]))); /******/ } /******/ def['default'] = () => (value); /******/ __webpack_require__.d(ns, def); /******/ return ns; /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/define property getters */ /******/ (() => { /******/ // define getter functions for harmony exports /******/ __webpack_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; /******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /******/ /* webpack/runtime/make namespace object */ /******/ (() => { /******/ // define __esModule on exports /******/ __webpack_require__.r = (exports) => { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ })(); /******/ /************************************************************************/ var __webpack_exports__ = {}; // This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. (() => { /*!**********************!*\ !*** ./src/index.js ***! \**********************/ __webpack_require__.r(__webpack_exports__); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "react-dom"); /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _App__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./App */ "./src/App.js"); /* harmony import */ var _style_index_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./style/index.scss */ "./src/style/index.scss"); /** * Import the stylesheet for the plugin. */ if (document.getElementById('ast-tb-app-root')) { react_dom__WEBPACK_IMPORTED_MODULE_1___default().render((0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_App__WEBPACK_IMPORTED_MODULE_2__["default"], null), document.getElementById('ast-tb-app-root')); } })(); /******/ })() ; //# sourceMappingURL=index.js.map assets/theme-builder/build/index.asset.php 0000644 00000000203 15105354057 0014631 0 ustar 00 <?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-i18n'), 'version' => '078d2056e973ae49445d'); assets/build/dashboard-app.asset.php 0000644 00000000221 15105354057 0013501 0 ustar 00 <?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-element', 'wp-i18n'), 'version' => 'c71012491c40733ad1de'); assets/build/dashboard-app-rtl.css 0000644 00000701637 15105354057 0013206 0 ustar 00 *, ::before, ::after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / 0.5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;}::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / 0.5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: ;}[type='text'],[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select{-webkit-appearance: none;-moz-appearance: none;appearance: none;background-color: #fff;border-color: #6b7280;border-width: 1px;border-radius: 0px;padding-top: 0.5rem;padding-left: 0.75rem;padding-bottom: 0.5rem;padding-right: 0.75rem;font-size: 1rem;line-height: 1.5rem;--tw-shadow: 0 0 #0000;}[type='text']:focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus{outline: 2px solid transparent;outline-offset: 2px;--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);border-color: #2563eb;}input::-moz-placeholder, textarea::-moz-placeholder{color: #6b7280;opacity: 1;}input::placeholder,textarea::placeholder{color: #6b7280;opacity: 1;}::-webkit-datetime-edit-fields-wrapper{padding: 0;}::-webkit-date-and-time-value{min-height: 1.5em;}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top: 0;padding-bottom: 0;}select{background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3e%3cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27M6 8l4 4 4-4%27/%3e%3c/svg%3e");background-position: left 0.5rem center;background-repeat: no-repeat;background-size: 1.5em 1.5em;padding-left: 2.5rem;-webkit-print-color-adjust: exact;color-adjust: exact;}[multiple]{background-image: initial;background-position: initial;background-repeat: unset;background-size: initial;padding-left: 0.75rem;-webkit-print-color-adjust: unset;color-adjust: unset;}[type='checkbox'],[type='radio']{-webkit-appearance: none;-moz-appearance: none;appearance: none;padding: 0;-webkit-print-color-adjust: exact;color-adjust: exact;display: inline-block;vertical-align: middle;background-origin: border-box;-webkit-user-select: none;-moz-user-select: none;user-select: none;flex-shrink: 0;height: 1rem;width: 1rem;color: #2563eb;background-color: #fff;border-color: #6b7280;border-width: 1px;--tw-shadow: 0 0 #0000;}[type='checkbox']{border-radius: 0px;}[type='radio']{border-radius: 100%;}[type='checkbox']:focus,[type='radio']:focus{outline: 2px solid transparent;outline-offset: 2px;--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);}[type='checkbox']:checked,[type='radio']:checked{border-color: transparent;background-color: currentColor;background-size: 100% 100%;background-position: center;background-repeat: no-repeat;}[type='checkbox']:checked{background-image: url("data:image/svg+xml,%3csvg viewBox=%270 0 16 16%27 fill=%27white%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3cpath d=%27M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z%27/%3e%3c/svg%3e");}[type='radio']:checked{background-image: url("data:image/svg+xml,%3csvg viewBox=%270 0 16 16%27 fill=%27white%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3ccircle cx=%278%27 cy=%278%27 r=%273%27/%3e%3c/svg%3e");}[type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus{border-color: transparent;background-color: currentColor;}[type='checkbox']:indeterminate{background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 16 16%27%3e%3cpath stroke=%27white%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27M4 8h8%27/%3e%3c/svg%3e");border-color: transparent;background-color: currentColor;background-size: 100% 100%;background-position: center;background-repeat: no-repeat;}[type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus{border-color: transparent;background-color: currentColor;}[type='file']{background: unset;border-color: inherit;border-width: 0;border-radius: 0;padding: 0;font-size: unset;line-height: inherit;}[type='file']:focus{outline: 1px auto -webkit-focus-ring-color;}.container{width: 100%;}@media (min-width: 640px){.container{max-width: 640px;}}@media (min-width: 768px){.container{max-width: 768px;}}@media (min-width: 1024px){.container{max-width: 1024px;}}@media (min-width: 1280px){.container{max-width: 1280px;}}@media (min-width: 1536px){.container{max-width: 1536px;}}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sr-only{position: absolute;width: 1px;height: 1px;padding: 0;margin: -1px;overflow: hidden;clip: rect(0, 0, 0, 0);white-space: nowrap;border-width: 0;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pointer-events-none{pointer-events: none;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pointer-events-auto{pointer-events: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .visible{visibility: visible;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .invisible{visibility: hidden;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .static{position: static;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .fixed{position: fixed;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .absolute{position: absolute;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .relative{position: relative;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .-inset-1{inset: -0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .inset-0{inset: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .inset-x-0{right: 0px;left: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .inset-y-0{top: 0px;bottom: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .-bottom-6{bottom: -1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .-bottom-px{bottom: -1px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .-top-\[1\.75rem\]{top: -1.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .-top-\[2\.8rem\]{top: -2.8rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bottom-0{bottom: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bottom-1{bottom: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bottom-1\.5{bottom: 0.375rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bottom-2{bottom: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .left-0{right: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .left-1\/2{right: 50%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .left-4{right: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .left-\[calc\(50\%\+10px\)\]{right: calc(50% + 10px);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .left-\[calc\(50\%\+12px\)\]{right: calc(50% + 12px);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .left-\[calc\(50\%\+14px\)\]{right: calc(50% + 14px);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .right-0{left: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .right-1\/2{left: 50%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .right-2{left: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .right-2\.5{left: 0.625rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .right-3{left: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .right-4{left: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .right-\[calc\(-50\%\+10px\)\]{left: calc(-50% + 10px);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .right-\[calc\(-50\%\+12px\)\]{left: calc(-50% + 12px);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .right-\[calc\(-50\%\+14px\)\]{left: calc(-50% + 14px);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .top-0{top: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .top-1\/2{top: 50%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .top-2\.5{top: 0.625rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .top-2\/4{top: 50%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .top-3{top: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .top-3\.5{top: 0.875rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .top-4{top: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .top-8{top: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .top-full{top: 100%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .-z-10{z-index: -10;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .z-0{z-index: 0;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .z-10{z-index: 10;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .z-20{z-index: 20;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .z-50{z-index: 50;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .z-999999{z-index: 999999;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .z-\[10000\]{z-index: 10000;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .z-\[1\]{z-index: 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .z-\[99999999\]{z-index: 99999999;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .z-auto{z-index: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .order-1{order: 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .order-10{order: 10;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .order-11{order: 11;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .order-12{order: 12;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .order-2{order: 2;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .order-3{order: 3;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .order-4{order: 4;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .order-5{order: 5;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .order-6{order: 6;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .order-7{order: 7;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .order-8{order: 8;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .order-9{order: 9;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .order-first{order: -9999;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .order-last{order: 9999;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .order-none{order: 0;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-span-1{grid-column: span 1 / span 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-span-10{grid-column: span 10 / span 10;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-span-11{grid-column: span 11 / span 11;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-span-12{grid-column: span 12 / span 12;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-span-2{grid-column: span 2 / span 2;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-span-3{grid-column: span 3 / span 3;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-span-4{grid-column: span 4 / span 4;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-span-5{grid-column: span 5 / span 5;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-span-6{grid-column: span 6 / span 6;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-span-7{grid-column: span 7 / span 7;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-span-8{grid-column: span 8 / span 8;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-span-9{grid-column: span 9 / span 9;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-start-1{grid-column-start: 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-start-10{grid-column-start: 10;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-start-11{grid-column-start: 11;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-start-12{grid-column-start: 12;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-start-2{grid-column-start: 2;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-start-3{grid-column-start: 3;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-start-4{grid-column-start: 4;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-start-5{grid-column-start: 5;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-start-6{grid-column-start: 6;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-start-7{grid-column-start: 7;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-start-8{grid-column-start: 8;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .col-start-9{grid-column-start: 9;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .m-0{margin: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .m-1{margin: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .m-auto{margin: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mx-0{margin-right: 0px;margin-left: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mx-1{margin-right: 0.25rem;margin-left: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mx-2{margin-right: 0.5rem;margin-left: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mx-auto{margin-right: auto;margin-left: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .my-0{margin-top: 0px;margin-bottom: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .my-12{margin-top: 3rem;margin-bottom: 3rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .my-2{margin-top: 0.5rem;margin-bottom: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .my-5{margin-top: 1.25rem;margin-bottom: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .my-\[2\.43rem\]{margin-top: 2.43rem;margin-bottom: 2.43rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .my-\[3\.75px\]{margin-top: 3.75px;margin-bottom: 3.75px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .\!ml-0{margin-right: 0px !important;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .-mt-1{margin-top: -0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mb-0{margin-bottom: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mb-1{margin-bottom: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mb-1\.5{margin-bottom: 0.375rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mb-2{margin-bottom: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mb-3{margin-bottom: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mb-4{margin-bottom: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mb-5{margin-bottom: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mb-8{margin-bottom: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ml-0{margin-right: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ml-1{margin-right: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ml-1\.5{margin-right: 0.375rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ml-10{margin-right: 2.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ml-2{margin-right: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ml-4{margin-right: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ml-8{margin-right: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ml-auto{margin-right: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mr-0{margin-left: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mr-0\.5{margin-left: 0.125rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mr-1{margin-left: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mr-10{margin-left: 2.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mr-2{margin-left: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mr-3{margin-left: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mr-4{margin-left: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mr-6{margin-left: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mr-7{margin-left: 1.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mr-\[35px\]{margin-left: 35px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mr-auto{margin-left: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mt-0{margin-top: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mt-1{margin-top: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mt-1\.5{margin-top: 0.375rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mt-10{margin-top: 2.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mt-14{margin-top: 3.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mt-2{margin-top: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mt-2\.5{margin-top: 0.625rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mt-3{margin-top: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mt-4{margin-top: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mt-5{margin-top: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mt-\[-8px\]{margin-top: -8px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mt-\[2px\]{margin-top: 2px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .mt-auto{margin-top: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .box-border{box-sizing: border-box;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .block{display: block;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .inline-block{display: inline-block;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .inline{display: inline;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .flex{display: flex;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .inline-flex{display: inline-flex;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .table{display: table;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .flow-root{display: flow-root;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid{display: grid;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .contents{display: contents;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hidden{display: none;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .aspect-\[16\/9\]{aspect-ratio: 16/9;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .aspect-video{aspect-ratio: 16 / 9;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .size-1\.5{width: 0.375rem;height: 0.375rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .size-10{width: 2.5rem;height: 2.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .size-12{width: 3rem;height: 3rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .size-2{width: 0.5rem;height: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .size-2\.5{width: 0.625rem;height: 0.625rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .size-3{width: 0.75rem;height: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .size-3\.5{width: 0.875rem;height: 0.875rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .size-4{width: 1rem;height: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .size-5{width: 1.25rem;height: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .size-6{width: 1.5rem;height: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .size-7{width: 1.75rem;height: 1.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .size-8{width: 2rem;height: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .\!h-full{height: 100% !important;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-0{height: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-1{height: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-10{height: 2.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-12{height: 3rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-2{height: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-2\.5{height: 0.625rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-20{height: 5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-28{height: 7rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-3{height: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-36{height: 9rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-4{height: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-5{height: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-6{height: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-60{height: 15rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-7{height: 1.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-8{height: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-\[120px\]{height: 120px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-\[14rem\]{height: 14rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-\[2\.6rem\]{height: 2.6rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-\[36rem\]{height: 36rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-auto{height: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-fit{height: -moz-fit-content;height: fit-content;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-full{height: 100%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-max{height: -moz-max-content;height: max-content;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-px{height: 1px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .h-screen{height: 100vh;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .max-h-4{max-height: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .max-h-\[10\.75rem\]{max-height: 10.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .max-h-\[13\.5rem\]{max-height: 13.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-h-16{min-height: 4rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-h-5{min-height: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-h-6{min-height: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-h-7{min-height: 1.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-h-\[14px\]{min-height: 14px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-h-\[2\.5rem\]{min-height: 2.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-h-\[2rem\]{min-height: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-h-\[3rem\]{min-height: 3rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-h-\[calc\(100vh_-_10rem\)\]{min-height: calc(100vh - 10rem);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-h-\[calc\(100vh_-_8rem\)\]{min-height: calc(100vh - 8rem);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-h-fit{min-height: -moz-fit-content;min-height: fit-content;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-h-full{min-height: 100%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-h-screen{min-height: 100vh;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-0{width: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-1{width: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-1\/10{width: 10%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-1\/11{width: 9.0909091%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-1\/12{width: 8.3333333%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-1\/2{width: 50%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-1\/3{width: 33.333333%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-1\/4{width: 25%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-1\/5{width: 20%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-1\/6{width: 16.666667%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-1\/7{width: 14.2857143%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-1\/8{width: 12.5%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-1\/9{width: 11.1111111%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-10{width: 2.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-11{width: 2.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-12{width: 3rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-120{width: 30rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-16{width: 4rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-2{width: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-2\.5{width: 0.625rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-3{width: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-4{width: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-4\/5{width: 80%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-5{width: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-6{width: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-60{width: 15rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-72{width: 18rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-8{width: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-80{width: 20rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-9{width: 2.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-96{width: 24rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-\[18\.5rem\]{width: 18.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-\[22\.5rem\]{width: 22.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-\[24rem\]{width: 24rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-\[350px\]{width: 350px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-\[4\.375rem\]{width: 4.375rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-\[400px\]{width: 400px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-\[calc\(100\%\+0\.75rem\)\]{width: calc(100% + 0.75rem);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-\[calc\(100\%\+1rem\)\]{width: calc(100% + 1rem);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-\[calc\(100\%_-_5\.5rem\)\]{width: calc(100% - 5.5rem);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-auto{width: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-fit{width: -moz-fit-content;width: fit-content;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-full{width: 100%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-max{width: -moz-max-content;width: max-content;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-min{width: -moz-min-content;width: min-content;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .w-screen{width: 100vw;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-w-0{min-width: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-w-10{min-width: 2.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-w-12{min-width: 3rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-w-6{min-width: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-w-8{min-width: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-w-80{min-width: 20rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-w-\[14px\]{min-width: 14px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-w-\[18\%\]{min-width: 18%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-w-\[180px\]{min-width: 180px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-w-\[8rem\]{min-width: 8rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .min-w-full{min-width: 100%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .max-w-2xl{max-width: 42rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .max-w-32{max-width: 8rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .max-w-3xl{max-width: 48rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .max-w-4xl{max-width: 56rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .max-w-5xl{max-width: 64rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .max-w-6xl{max-width: 72rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .max-w-80{max-width: 20rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .max-w-\[17\.125rem\]{max-width: 17.125rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .max-w-\[200px\]{max-width: 200px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .max-w-\[39rem\]{max-width: 39rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .max-w-\[77rem\]{max-width: 77rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .max-w-\[84\%\]{max-width: 84%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .max-w-full{max-width: 100%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .max-w-md{max-width: 28rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .max-w-xs{max-width: 20rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .flex-1{flex: 1 1 0%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .flex-auto{flex: 1 1 auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .flex-shrink-0{flex-shrink: 0;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .shrink{flex-shrink: 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .shrink-0{flex-shrink: 0;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .flex-grow{flex-grow: 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grow{flex-grow: 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grow-0{flex-grow: 0;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .table-fixed{table-layout: fixed;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-collapse{border-collapse: collapse;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-separate{border-collapse: separate;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-spacing-0{--tw-border-spacing-x: 0px;--tw-border-spacing-y: 0px;border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .origin-left{transform-origin: right;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .-translate-x-1\/2{--tw-translate-x: -50%;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .-translate-x-2\/4{--tw-translate-x: -50%;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .-translate-y-1\/2{--tw-translate-y: -50%;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .-translate-y-2\/4{--tw-translate-y: -50%;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .translate-x-0{--tw-translate-x: 0px;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .translate-x-5{--tw-translate-x: 1.25rem;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .translate-x-\[-0\.375rem\]{--tw-translate-x: -0.375rem;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .translate-x-\[-0\.5rem\]{--tw-translate-x: -0.5rem;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .translate-y-0{--tw-translate-y: 0px;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .translate-y-4{--tw-translate-y: 1rem;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .-rotate-90{--tw-rotate: -90deg;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rotate-0{--tw-rotate: 0deg;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rotate-180{--tw-rotate: 180deg;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rotate-45{--tw-rotate: 45deg;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .transform{transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}@keyframes pulse{50%{opacity: .5;}}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .animate-pulse{animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;}@keyframes spin{to{transform: rotate(-360deg);}}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .animate-spin{animation: spin 1s linear infinite;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .cursor-auto{cursor: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .cursor-default{cursor: default;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .cursor-help{cursor: help;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .cursor-not-allowed{cursor: not-allowed;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .cursor-pointer{cursor: pointer;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .resize{resize: both;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .snap-start{scroll-snap-align: start;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .list-none{list-style-type: none;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .appearance-none{-webkit-appearance: none;-moz-appearance: none;appearance: none;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .auto-cols-auto{grid-auto-columns: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid-flow-row{grid-auto-flow: row;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid-flow-col{grid-auto-flow: column;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid-flow-row-dense{grid-auto-flow: row dense;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid-flow-col-dense{grid-auto-flow: column dense;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .auto-rows-auto{grid-auto-rows: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid-cols-1{grid-template-columns: repeat(1, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid-cols-10{grid-template-columns: repeat(10, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid-cols-11{grid-template-columns: repeat(11, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid-cols-12{grid-template-columns: repeat(12, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid-cols-2{grid-template-columns: repeat(2, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid-cols-3{grid-template-columns: repeat(3, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid-cols-4{grid-template-columns: repeat(4, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid-cols-5{grid-template-columns: repeat(5, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid-cols-6{grid-template-columns: repeat(6, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid-cols-7{grid-template-columns: repeat(7, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid-cols-8{grid-template-columns: repeat(8, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid-cols-9{grid-template-columns: repeat(9, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid-cols-\[auto_1fr\]{grid-template-columns: auto 1fr;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid-cols-subgrid{grid-template-columns: subgrid;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid-rows-\[auto_1fr\]{grid-template-rows: auto 1fr;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .grid-rows-subgrid{grid-template-rows: subgrid;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .\!flex-row{flex-direction: row !important;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .flex-row{flex-direction: row;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .flex-row-reverse{flex-direction: row-reverse;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .flex-col{flex-direction: column;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .flex-col-reverse{flex-direction: column-reverse;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .flex-wrap{flex-wrap: wrap;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .flex-wrap-reverse{flex-wrap: wrap-reverse;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .flex-nowrap{flex-wrap: nowrap;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .place-content-center{place-content: center;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .content-center{align-content: center;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .content-start{align-content: flex-start;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .items-start{align-items: flex-start;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .items-end{align-items: flex-end;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .items-center{align-items: center;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .items-baseline{align-items: baseline;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .items-stretch{align-items: stretch;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .justify-normal{justify-content: normal;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .justify-start{justify-content: flex-start;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .justify-end{justify-content: flex-end;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .justify-center{justify-content: center;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .justify-between{justify-content: space-between;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .justify-around{justify-content: space-around;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .justify-evenly{justify-content: space-evenly;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .justify-stretch{justify-content: stretch;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .justify-items-end{justify-items: end;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-0{gap: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-0\.5{gap: 0.125rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-1{gap: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-1\.5{gap: 0.375rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-2{gap: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-2\.5{gap: 0.625rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-3{gap: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-4{gap: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-5{gap: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-6{gap: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-8{gap: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-x-1{-moz-column-gap: 0.25rem;column-gap: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-x-2{-moz-column-gap: 0.5rem;column-gap: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-x-3{-moz-column-gap: 0.75rem;column-gap: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-x-4{-moz-column-gap: 1rem;column-gap: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-x-5{-moz-column-gap: 1.25rem;column-gap: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-x-6{-moz-column-gap: 1.5rem;column-gap: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-x-8{-moz-column-gap: 2rem;column-gap: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-y-2{row-gap: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-y-4{row-gap: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-y-5{row-gap: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-y-6{row-gap: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .gap-y-8{row-gap: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.space-x-1 > :not([hidden]) ~ :not([hidden])){--tw-space-x-reverse: 0;margin-left: calc(0.25rem * var(--tw-space-x-reverse));margin-right: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.space-x-3 > :not([hidden]) ~ :not([hidden])){--tw-space-x-reverse: 0;margin-left: calc(0.75rem * var(--tw-space-x-reverse));margin-right: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.space-y-0\.5 > :not([hidden]) ~ :not([hidden])){--tw-space-y-reverse: 0;margin-top: calc(0.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom: calc(0.125rem * var(--tw-space-y-reverse));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.space-y-1 > :not([hidden]) ~ :not([hidden])){--tw-space-y-reverse: 0;margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.space-y-2 > :not([hidden]) ~ :not([hidden])){--tw-space-y-reverse: 0;margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.space-y-3 > :not([hidden]) ~ :not([hidden])){--tw-space-y-reverse: 0;margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.space-y-4 > :not([hidden]) ~ :not([hidden])){--tw-space-y-reverse: 0;margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom: calc(1rem * var(--tw-space-y-reverse));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.space-y-6 > :not([hidden]) ~ :not([hidden])){--tw-space-y-reverse: 0;margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.divide-x > :not([hidden]) ~ :not([hidden])){--tw-divide-x-reverse: 0;border-left-width: calc(1px * var(--tw-divide-x-reverse));border-right-width: calc(1px * calc(1 - var(--tw-divide-x-reverse)));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.divide-x-0 > :not([hidden]) ~ :not([hidden])){--tw-divide-x-reverse: 0;border-left-width: calc(0px * var(--tw-divide-x-reverse));border-right-width: calc(0px * calc(1 - var(--tw-divide-x-reverse)));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.divide-y > :not([hidden]) ~ :not([hidden])){--tw-divide-y-reverse: 0;border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width: calc(1px * var(--tw-divide-y-reverse));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.divide-y-0\.5 > :not([hidden]) ~ :not([hidden])){--tw-divide-y-reverse: 0;border-top-width: calc(0.5px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width: calc(0.5px * var(--tw-divide-y-reverse));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.divide-solid > :not([hidden]) ~ :not([hidden])){border-style: solid;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.divide-border-subtle > :not([hidden]) ~ :not([hidden])){--tw-divide-opacity: 1;border-color: rgb(230 230 239 / var(--tw-divide-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.divide-slate-200 > :not([hidden]) ~ :not([hidden])){--tw-divide-opacity: 1;border-color: rgb(226 232 240 / var(--tw-divide-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .self-start{align-self: flex-start;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .self-end{align-self: flex-end;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .self-center{align-self: center;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .self-stretch{align-self: stretch;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .self-baseline{align-self: baseline;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .justify-self-auto{justify-self: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .justify-self-start{justify-self: start;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .justify-self-end{justify-self: end;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .justify-self-center{justify-self: center;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .justify-self-stretch{justify-self: stretch;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .overflow-auto{overflow: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .overflow-hidden{overflow: hidden;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .overflow-visible{overflow: visible;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .overflow-x-auto{overflow-x: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .overflow-y-auto{overflow-y: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .overflow-x-hidden{overflow-x: hidden;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .truncate{overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .whitespace-nowrap{white-space: nowrap;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-wrap{text-wrap: wrap;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-nowrap{text-wrap: nowrap;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded{border-radius: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-2xl{border-radius: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-\[0\.1875rem\]{border-radius: 0.1875rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-\[4px\]{border-radius: 4px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-full{border-radius: 9999px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-lg{border-radius: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-md{border-radius: 0.375rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-none{border-radius: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-sm{border-radius: 0.125rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-xl{border-radius: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-b-none{border-bottom-left-radius: 0px;border-bottom-right-radius: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-b-xl{border-bottom-left-radius: 0.75rem;border-bottom-right-radius: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-bl{border-bottom-right-radius: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-bl-md{border-bottom-right-radius: 0.375rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-br{border-bottom-left-radius: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-br-md{border-bottom-left-radius: 0.375rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-tl{border-top-right-radius: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-tl-md{border-top-right-radius: 0.375rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-tl-none{border-top-right-radius: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-tr{border-top-left-radius: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-tr-md{border-top-left-radius: 0.375rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rounded-tr-none{border-top-left-radius: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border{border-width: 1px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-0{border-width: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-0\.5{border-width: 0.5px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-\[0\.5px\]{border-width: 0.5px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-x-0{border-right-width: 0px;border-left-width: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-y{border-top-width: 1px;border-bottom-width: 1px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-y-0{border-top-width: 0px;border-bottom-width: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-b{border-bottom-width: 1px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-b-0{border-bottom-width: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-b-0\.5{border-bottom-width: 0.5px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-b-2{border-bottom-width: 2px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-l{border-right-width: 1px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-l-0{border-right-width: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-r{border-left-width: 1px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-r-0{border-left-width: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-t{border-top-width: 1px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-t-0{border-top-width: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-solid{border-style: solid;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-dashed{border-style: dashed;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-dotted{border-style: dotted;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-double{border-style: double;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-hidden{border-style: hidden;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-none{border-style: none;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-\[\#0EA5E9\]{--tw-border-opacity: 1;border-color: rgb(14 165 233 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-\[\#E6E6EF\]{--tw-border-opacity: 1;border-color: rgb(230 230 239 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-alert-border-danger{--tw-border-opacity: 1;border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-alert-border-green{--tw-border-opacity: 1;border-color: rgb(187 247 208 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-alert-border-info{--tw-border-opacity: 1;border-color: rgb(186 230 253 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-alert-border-neutral{--tw-border-opacity: 1;border-color: rgb(230 230 239 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-alert-border-warning{--tw-border-opacity: 1;border-color: rgb(254 240 138 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-astra{--tw-border-opacity: 1;border-color: rgb(92 46 222 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-background-inverse{--tw-border-opacity: 1;border-color: rgb(20 19 56 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-background-secondary{--tw-border-opacity: 1;border-color: rgb(243 243 248 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-badge-border-disabled{--tw-border-opacity: 1;border-color: rgb(230 230 239 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-badge-border-gray{--tw-border-opacity: 1;border-color: rgb(230 230 239 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-badge-border-green{--tw-border-opacity: 1;border-color: rgb(187 247 208 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-badge-border-red{--tw-border-opacity: 1;border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-badge-border-sky{--tw-border-opacity: 1;border-color: rgb(186 230 253 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-badge-border-yellow{--tw-border-opacity: 1;border-color: rgb(254 240 138 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-border-disabled{--tw-border-opacity: 1;border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-border-strong{--tw-border-opacity: 1;border-color: rgb(107 114 128 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-border-subtle{--tw-border-opacity: 1;border-color: rgb(230 230 239 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-brand-primary-600{--tw-border-opacity: 1;border-color: rgb(37 99 235 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-button-primary{--tw-border-opacity: 1;border-color: rgb(92 46 222 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-field-border{--tw-border-opacity: 1;border-color: rgb(230 230 239 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-field-dropzone-color{--tw-border-opacity: 1;border-color: rgb(92 46 222 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-focus-error-border{--tw-border-opacity: 1;border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-gray-200{--tw-border-opacity: 1;border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-sky-500{--tw-border-opacity: 1;border-color: rgb(14 165 233 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-slate-200{--tw-border-opacity: 1;border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-slate-400{--tw-border-opacity: 1;border-color: rgb(148 163 184 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-slate-800{--tw-border-opacity: 1;border-color: rgb(30 41 59 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-tab-border{--tw-border-opacity: 1;border-color: rgb(230 230 239 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-text-inverse{--tw-border-opacity: 1;border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-toggle-off-border{--tw-border-opacity: 1;border-color: rgb(232 207 248 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-transparent{border-color: transparent;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .border-b-border-subtle{--tw-border-opacity: 1;border-bottom-color: rgb(230 230 239 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-\[\#4F4E7C4D\]{background-color: #4F4E7C4D;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-\[\#E8CFF8\]{--tw-bg-opacity: 1;background-color: rgb(232 207 248 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-\[\#EFD7F9\]{--tw-bg-opacity: 1;background-color: rgb(239 215 249 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-\[\#F9FAFB\]{--tw-bg-opacity: 1;background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-alert-background-danger{--tw-bg-opacity: 1;background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-alert-background-green{--tw-bg-opacity: 1;background-color: rgb(240 253 244 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-alert-background-info{--tw-bg-opacity: 1;background-color: rgb(240 249 255 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-alert-background-neutral{--tw-bg-opacity: 1;background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-alert-background-warning{--tw-bg-opacity: 1;background-color: rgb(254 252 232 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-astra{--tw-bg-opacity: 1;background-color: rgb(92 46 222 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-background-brand{--tw-bg-opacity: 1;background-color: rgb(92 46 222 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-background-inverse{--tw-bg-opacity: 1;background-color: rgb(20 19 56 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-background-inverse\/90{background-color: rgb(20 19 56 / 0.9);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-background-primary{--tw-bg-opacity: 1;background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-background-secondary{--tw-bg-opacity: 1;background-color: rgb(243 243 248 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-badge-background-disabled{--tw-bg-opacity: 1;background-color: rgb(243 243 248 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-badge-background-gray{--tw-bg-opacity: 1;background-color: rgb(249 250 252 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-badge-background-green{--tw-bg-opacity: 1;background-color: rgb(240 253 244 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-badge-background-red{--tw-bg-opacity: 1;background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-badge-background-sky{--tw-bg-opacity: 1;background-color: rgb(240 249 255 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-badge-background-yellow{--tw-bg-opacity: 1;background-color: rgb(254 252 232 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-badge-hover-disabled{--tw-bg-opacity: 1;background-color: rgb(243 243 248 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-badge-hover-gray{--tw-bg-opacity: 1;background-color: rgb(243 243 248 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-badge-hover-green{--tw-bg-opacity: 1;background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-badge-hover-red{--tw-bg-opacity: 1;background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-badge-hover-sky{--tw-bg-opacity: 1;background-color: rgb(224 242 254 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-badge-hover-yellow{--tw-bg-opacity: 1;background-color: rgb(254 249 195 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-black{--tw-bg-opacity: 1;background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-black\/50{background-color: rgb(0 0 0 / 0.5);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-blue-50{--tw-bg-opacity: 1;background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-border-interactive{--tw-bg-opacity: 1;background-color: rgb(92 46 222 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-border-subtle{--tw-bg-opacity: 1;background-color: rgb(230 230 239 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-brand-background-50{--tw-bg-opacity: 1;background-color: rgb(231 224 250 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-brand-primary-600{--tw-bg-opacity: 1;background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-button-danger{--tw-bg-opacity: 1;background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-button-disabled{--tw-bg-opacity: 1;background-color: rgb(243 243 248 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-button-primary{--tw-bg-opacity: 1;background-color: rgb(92 46 222 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-button-secondary{--tw-bg-opacity: 1;background-color: rgb(239 215 249 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-button-tertiary{--tw-bg-opacity: 1;background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-button-tertiary-hover{--tw-bg-opacity: 1;background-color: rgb(243 243 248 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-current{background-color: currentColor;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-field-background-disabled{--tw-bg-opacity: 1;background-color: rgb(249 250 252 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-field-background-error{--tw-bg-opacity: 1;background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-field-dropzone-background-hover{--tw-bg-opacity: 1;background-color: rgb(249 250 252 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-field-primary-background{--tw-bg-opacity: 1;background-color: rgb(249 250 252 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-field-secondary-background{--tw-bg-opacity: 1;background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-gray-200{--tw-bg-opacity: 1;background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-gray-50{--tw-bg-opacity: 1;background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-icon-interactive{--tw-bg-opacity: 1;background-color: rgb(92 46 222 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-misc-progress-background{--tw-bg-opacity: 1;background-color: rgb(230 230 239 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-slate-200{--tw-bg-opacity: 1;background-color: rgb(226 232 240 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-slate-50{--tw-bg-opacity: 1;background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-slate-800{--tw-bg-opacity: 1;background-color: rgb(30 41 59 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-tab-background{--tw-bg-opacity: 1;background-color: rgb(249 250 252 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-text-tertiary{--tw-bg-opacity: 1;background-color: rgb(159 159 191 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-toggle-dial-background{--tw-bg-opacity: 1;background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-toggle-off{--tw-bg-opacity: 1;background-color: rgb(239 215 249 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-toggle-off-disabled{--tw-bg-opacity: 1;background-color: rgb(243 243 248 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-tooltip-background-dark{--tw-bg-opacity: 1;background-color: rgb(20 19 56 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-tooltip-background-light{--tw-bg-opacity: 1;background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-transparent{background-color: transparent;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-white{--tw-bg-opacity: 1;background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-opacity-50{--tw-bg-opacity: 0.5;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-opacity-70{--tw-bg-opacity: 0.7;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-opacity-90{--tw-bg-opacity: 0.9;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .bg-gradient-to-b{background-image: linear-gradient(to bottom, var(--tw-gradient-stops));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .from-white{--tw-gradient-from: #fff var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .to-\[\#f3f3f8\]{--tw-gradient-to: #f3f3f8 var(--tw-gradient-to-position);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .fill-current{fill: currentColor;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .stroke-current{stroke: currentColor;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .stroke-icon-primary{stroke: #141338;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .object-contain{-o-object-fit: contain;object-fit: contain;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .object-cover{-o-object-fit: cover;object-fit: cover;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .object-center{-o-object-position: center;object-position: center;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .p-0{padding: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .p-0\.5{padding: 0.125rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .p-1{padding: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .p-1\.5{padding: 0.375rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .p-10{padding: 2.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .p-2{padding: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .p-2\.5{padding: 0.625rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .p-3{padding: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .p-3\.5{padding: 0.875rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .p-4{padding: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .p-5{padding: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .p-6{padding: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .p-8{padding: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .p-\[0\.7rem\]{padding: 0.7rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .px-0\.5{padding-right: 0.125rem;padding-left: 0.125rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .px-1{padding-right: 0.25rem;padding-left: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .px-1\.5{padding-right: 0.375rem;padding-left: 0.375rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .px-12{padding-right: 3rem;padding-left: 3rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .px-2{padding-right: 0.5rem;padding-left: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .px-2\.5{padding-right: 0.625rem;padding-left: 0.625rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .px-3{padding-right: 0.75rem;padding-left: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .px-3\.5{padding-right: 0.875rem;padding-left: 0.875rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .px-4{padding-right: 1rem;padding-left: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .px-5{padding-right: 1.25rem;padding-left: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .px-5\.5{padding-right: 1.375rem;padding-left: 1.375rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .px-6{padding-right: 1.5rem;padding-left: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .px-8{padding-right: 2rem;padding-left: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .px-\[0\.8125rem\]{padding-right: 0.8125rem;padding-left: 0.8125rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .px-\[2\.9375rem\]{padding-right: 2.9375rem;padding-left: 2.9375rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .py-0{padding-top: 0px;padding-bottom: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .py-0\.5{padding-top: 0.125rem;padding-bottom: 0.125rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .py-1{padding-top: 0.25rem;padding-bottom: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .py-1\.5{padding-top: 0.375rem;padding-bottom: 0.375rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .py-2{padding-top: 0.5rem;padding-bottom: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .py-2\.5{padding-top: 0.625rem;padding-bottom: 0.625rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .py-3{padding-top: 0.75rem;padding-bottom: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .py-3\.5{padding-top: 0.875rem;padding-bottom: 0.875rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .py-4{padding-top: 1rem;padding-bottom: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .py-5{padding-top: 1.25rem;padding-bottom: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .py-6{padding-top: 1.5rem;padding-bottom: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .py-\[0\.6875rem\]{padding-top: 0.6875rem;padding-bottom: 0.6875rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .py-\[0rem\]{padding-top: 0rem;padding-bottom: 0rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pb-1{padding-bottom: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pb-2{padding-bottom: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pb-3{padding-bottom: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pb-4{padding-bottom: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pb-5{padding-bottom: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pb-6{padding-bottom: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pb-9{padding-bottom: 2.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pb-\[17\.5rem\]{padding-bottom: 17.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pl-0{padding-right: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pl-1{padding-right: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pl-10{padding-right: 2.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pl-2{padding-right: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pl-2\.5{padding-right: 0.625rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pl-3{padding-right: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pl-3\.5{padding-right: 0.875rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pl-4{padding-right: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pl-8{padding-right: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pl-9{padding-right: 2.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pl-\[72px\]{padding-right: 72px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pr-10{padding-left: 2.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pr-12{padding-left: 3rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pr-2{padding-left: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pr-2\.5{padding-left: 0.625rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pr-3{padding-left: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pr-8{padding-left: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pr-9{padding-left: 2.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pr-\[72px\]{padding-left: 72px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pt-0{padding-top: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pt-10{padding-top: 2.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pt-12{padding-top: 3rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pt-2{padding-top: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pt-3{padding-top: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pt-5{padding-top: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pt-6{padding-top: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .pt-\[4rem\]{padding-top: 4rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-left{text-align: right;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-center{text-align: center;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .align-top{vertical-align: top;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .align-middle{vertical-align: middle;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .font-mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-2xl{font-size: 1.5rem;line-height: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-3xl{font-size: 1.875rem;line-height: 2.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-4xl{font-size: 2.25rem;line-height: 2.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-\[0\.625rem\]{font-size: 0.625rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-\[0\.75rem\]{font-size: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-\[10px\]{font-size: 10px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-base{font-size: 1rem;line-height: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-lg{font-size: 1.125rem;line-height: 1.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-sm{font-size: 0.875rem;line-height: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-tiny{font-size: 0.625rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-xl{font-size: 1.25rem;line-height: 1.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-xs{font-size: 0.75rem;line-height: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-xxs{font-size: 0.6875rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .font-bold{font-weight: 700;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .font-medium{font-weight: 500;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .font-normal{font-weight: 400;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .font-semibold{font-weight: 600;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .uppercase{text-transform: uppercase;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .capitalize{text-transform: capitalize;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .italic{font-style: italic;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .leading-11{line-height: 2.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .leading-4{line-height: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .leading-5{line-height: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .leading-6{line-height: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .leading-7{line-height: 1.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .leading-7\.5{line-height: 1.875rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .leading-8{line-height: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .leading-9\.5{line-height: 2.375rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .leading-\[0\.875rem\]{line-height: 0.875rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .leading-\[1\.375rem\]{line-height: 1.375rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .leading-\[1\.625rem\]{line-height: 1.625rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .leading-\[10px\]{line-height: 10px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .leading-\[1rem\]{line-height: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .leading-none{line-height: 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .tracking-2{letter-spacing: 0.125em;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-\[\#046BD2\]{--tw-text-opacity: 1;color: rgb(4 107 210 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-\[\#475569\]{--tw-text-opacity: 1;color: rgb(71 85 105 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-\[\#4AB866\]{--tw-text-opacity: 1;color: rgb(74 184 102 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-\[\#4B5563\]{--tw-text-opacity: 1;color: rgb(75 85 99 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-\[\#CBD5E1\]{--tw-text-opacity: 1;color: rgb(203 213 225 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-astra{--tw-text-opacity: 1;color: rgb(92 46 222 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-background-brand{--tw-text-opacity: 1;color: rgb(92 46 222 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-background-primary{--tw-text-opacity: 1;color: rgb(255 255 255 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-badge-color-disabled{--tw-text-opacity: 1;color: rgb(189 193 199 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-badge-color-gray{--tw-text-opacity: 1;color: rgb(35 34 80 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-badge-color-green{--tw-text-opacity: 1;color: rgb(21 128 61 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-badge-color-red{--tw-text-opacity: 1;color: rgb(185 28 28 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-badge-color-sky{--tw-text-opacity: 1;color: rgb(3 105 161 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-badge-color-yellow{--tw-text-opacity: 1;color: rgb(161 98 7 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-border-strong{--tw-text-opacity: 1;color: rgb(107 114 128 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-brand-800{--tw-text-opacity: 1;color: rgb(30 64 175 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-brand-primary-600{--tw-text-opacity: 1;color: rgb(37 99 235 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-button-danger{--tw-text-opacity: 1;color: rgb(220 38 38 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-button-primary{--tw-text-opacity: 1;color: rgb(92 46 222 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-button-secondary{--tw-text-opacity: 1;color: rgb(239 215 249 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-button-tertiary-color{--tw-text-opacity: 1;color: rgb(20 19 56 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-field-color-disabled{--tw-text-opacity: 1;color: rgb(189 193 199 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-field-dropzone-color{--tw-text-opacity: 1;color: rgb(92 46 222 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-field-helper{--tw-text-opacity: 1;color: rgb(159 159 191 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-field-input{--tw-text-opacity: 1;color: rgb(20 19 56 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-field-label{--tw-text-opacity: 1;color: rgb(79 78 124 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-field-placeholder{--tw-text-opacity: 1;color: rgb(159 159 191 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-gray-600{--tw-text-opacity: 1;color: rgb(75 85 99 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-gray-800{--tw-text-opacity: 1;color: rgb(31 41 55 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-icon-disabled{--tw-text-opacity: 1;color: rgb(209 213 219 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-icon-inverse{--tw-text-opacity: 1;color: rgb(159 159 191 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-icon-on-color-disabled{--tw-text-opacity: 1;color: rgb(159 159 191 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-icon-primary{--tw-text-opacity: 1;color: rgb(20 19 56 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-icon-secondary{--tw-text-opacity: 1;color: rgb(111 107 153 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-link-inverse{--tw-text-opacity: 1;color: rgb(56 189 248 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-link-primary{--tw-text-opacity: 1;color: rgb(92 46 222 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-purple-600{--tw-text-opacity: 1;color: rgb(147 51 234 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-purple-light{--tw-text-opacity: 1;color: rgb(217 171 255 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-slate-400{--tw-text-opacity: 1;color: rgb(148 163 184 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-slate-500{--tw-text-opacity: 1;color: rgb(100 116 139 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-slate-600{--tw-text-opacity: 1;color: rgb(71 85 105 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-slate-800{--tw-text-opacity: 1;color: rgb(30 41 59 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-support-error{--tw-text-opacity: 1;color: rgb(220 38 38 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-support-error-inverse{--tw-text-opacity: 1;color: rgb(248 113 113 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-support-info{--tw-text-opacity: 1;color: rgb(2 132 199 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-support-info-inverse{--tw-text-opacity: 1;color: rgb(56 189 248 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-support-success{--tw-text-opacity: 1;color: rgb(22 163 74 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-support-success-inverse{--tw-text-opacity: 1;color: rgb(74 222 128 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-support-warning{--tw-text-opacity: 1;color: rgb(234 179 8 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-support-warning-inverse{--tw-text-opacity: 1;color: rgb(253 224 71 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-text-disabled{--tw-text-opacity: 1;color: rgb(189 193 199 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-text-inverse{--tw-text-opacity: 1;color: rgb(255 255 255 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-text-on-color{--tw-text-opacity: 1;color: rgb(255 255 255 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-text-primary{--tw-text-opacity: 1;color: rgb(20 19 56 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-text-secondary{--tw-text-opacity: 1;color: rgb(79 78 124 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-text-tertiary{--tw-text-opacity: 1;color: rgb(159 159 191 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-tooltip-background-dark{--tw-text-opacity: 1;color: rgb(20 19 56 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-tooltip-background-light{--tw-text-opacity: 1;color: rgb(255 255 255 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .text-white{--tw-text-opacity: 1;color: rgb(255 255 255 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .underline{text-decoration-line: underline;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .no-underline{text-decoration-line: none;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .placeholder-text-tertiary::-moz-placeholder{--tw-placeholder-opacity: 1;color: rgb(159 159 191 / var(--tw-placeholder-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .placeholder-text-tertiary::placeholder{--tw-placeholder-opacity: 1;color: rgb(159 159 191 / var(--tw-placeholder-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .opacity-0{opacity: 0;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .opacity-100{opacity: 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .opacity-30{opacity: 0.3;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .opacity-40{opacity: 0.4;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .opacity-50{opacity: 0.5;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .shadow-overlay-modal{--tw-shadow: 0px 32px 64px -24px rgba(0, 0, 0, 0.24);--tw-shadow-colored: 0px 32px 64px -24px var(--tw-shadow-color);box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .shadow-soft-shadow-2xl{--tw-shadow: 0px 24px 64px -12px rgba(149, 160, 178, 0.32);--tw-shadow-colored: 0px 24px 64px -12px var(--tw-shadow-color);box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .shadow-soft-shadow-lg{--tw-shadow: 0px 12px 32px -12px rgba(149, 160, 178, 0.24);--tw-shadow-colored: 0px 12px 32px -12px var(--tw-shadow-color);box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .shadow-xs{--tw-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);--tw-shadow-colored: 0px 1px 2px 0px var(--tw-shadow-color);box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .outline-none{outline: 2px solid transparent;outline-offset: 2px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .outline{outline-style: solid;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .outline-1{outline-width: 1px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .outline-border-disabled{outline-color: #E5E7EB;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .outline-border-interactive{outline-color: #5C2EDE;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .outline-border-subtle{outline-color: #E6E6EF;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .outline-button-danger{outline-color: #DC2626;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .outline-button-danger-hover{outline-color: #B91C1C;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .outline-button-disabled{outline-color: #F3F3F8;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .outline-button-primary{outline-color: #5C2EDE;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .outline-button-secondary{outline-color: #EFD7F9;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .outline-field-border{outline-color: #E6E6EF;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .outline-field-border-disabled{outline-color: #F3F3F8;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .outline-focus-error-border{outline-color: #FECACA;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .outline-transparent{outline-color: transparent;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ring-alert-border-danger{--tw-ring-opacity: 1;--tw-ring-color: rgb(254 202 202 / var(--tw-ring-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ring-alert-border-green{--tw-ring-opacity: 1;--tw-ring-color: rgb(187 247 208 / var(--tw-ring-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ring-alert-border-info{--tw-ring-opacity: 1;--tw-ring-color: rgb(186 230 253 / var(--tw-ring-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ring-alert-border-neutral{--tw-ring-opacity: 1;--tw-ring-color: rgb(230 230 239 / var(--tw-ring-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ring-alert-border-warning{--tw-ring-opacity: 1;--tw-ring-color: rgb(254 240 138 / var(--tw-ring-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ring-background-inverse{--tw-ring-opacity: 1;--tw-ring-color: rgb(20 19 56 / var(--tw-ring-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ring-border-subtle{--tw-ring-opacity: 1;--tw-ring-color: rgb(230 230 239 / var(--tw-ring-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ring-border-transparent-subtle{--tw-ring-color: #37415114;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ring-brand-primary-600{--tw-ring-opacity: 1;--tw-ring-color: rgb(37 99 235 / var(--tw-ring-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ring-focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(92 46 222 / var(--tw-ring-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ring-tab-border{--tw-ring-opacity: 1;--tw-ring-color: rgb(230 230 239 / var(--tw-ring-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ring-offset-0{--tw-ring-offset-width: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .blur-md{--tw-blur: blur(12px);filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .filter{filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .transition{transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 150ms;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .transition-\[box-shadow\2c color\2c background-color\]{transition-property: box-shadow,color,background-color;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 150ms;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .transition-\[color\2c box-shadow\2c outline\]{transition-property: color,box-shadow,outline;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 150ms;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .transition-\[color\2c outline\2c box-shadow\]{transition-property: color,outline,box-shadow;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 150ms;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .transition-\[outline\2c background-color\2c color\2c box-shadow\]{transition-property: outline,background-color,color,box-shadow;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 150ms;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .transition-all{transition-property: all;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 150ms;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .transition-colors{transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 150ms;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .transition-opacity{transition-property: opacity;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 150ms;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .transition-transform{transition-property: transform;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 150ms;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .duration-150{transition-duration: 150ms;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .duration-200{transition-duration: 200ms;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .duration-300{transition-duration: 300ms;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .duration-500{transition-duration: 500ms;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ease-in{transition-timing-function: cubic-bezier(0.4, 0, 1, 1);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ease-in-out{transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ease-linear{transition-timing-function: linear;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .ease-out{transition-timing-function: cubic-bezier(0, 0, 0.2, 1);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .\[grid-area\:1\/1\/2\/3\]{grid-area: 1/1/2/3;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .\[word-break\:break-word\]{word-break: break-word;}:root{--accent-color: #2271b1;--accent-hv-color: #0a4b78;--background-light-color: #f0f0f1;--heading-color: #1d2327;--content-color: #3c434a;--link-color: #2271b1;--link-hv-color: #0a4b78;--metabox-background-color: #fff}#astra-dashboard-app [type=text]:focus,#astra-dashboard-app [type=email]:focus,#astra-dashboard-app [type=url]:focus,#astra-dashboard-app [type=password]:focus,#astra-dashboard-app [type=number]:focus,#astra-dashboard-app [type=date]:focus,#astra-dashboard-app [type=datetime-local]:focus,#astra-dashboard-app [type=month]:focus,#astra-dashboard-app [type=search]:focus,#astra-dashboard-app [type=tel]:focus,#astra-dashboard-app [type=time]:focus,#astra-dashboard-app [type=week]:focus{outline-offset:0}.wp-admin{overflow-y:scroll}#wpbody-content>.notice,#wpbody-content>.error{display:none !important}.ast-menu-page-wrapper,.ast-menu-page-wrapper *{box-sizing:border-box}.ast-menu-page-wrapper a:focus,.ast-menu-page-wrapper button:focus,.ast-menu-page-wrapper input:focus{box-shadow:none;outline:none}.toplevel_page_astra #wpcontent{padding-right:0}.toplevel_page_astra #wpbody-content{padding-bottom:40px}.doc-icon{cursor:pointer}.hover\:svg-hover-color:hover svg path{stroke:#1e293b}button:focus-visible .svg-focusable .svg-path{stroke:#1e293b}#wpwrap{background-color:#f8fafc}#wpwrap .astra-admin__input-field{color:#64748b;background-color:#fff;border:1px solid #e2e8f0;border-radius:.375rem;padding:.5rem .75rem;font-size:1rem;line-height:1.25rem}#wpwrap .astra-admin__input-field:focus{outline:none;border-color:#94a3b8;box-shadow:none}#wpwrap .astra-admin__input-field:focus+.astra-admin__input-field--end-display{border-color:#94a3b8;box-shadow:none}#wpwrap .astra-admin__dropdown{padding-left:2rem}#wpwrap .astra-admin__dropdown:hover{color:#2c3338}#wpwrap .astra-admin__block-label{box-sizing:content-box}.astra-dep-field-false{pointer-events:none;opacity:.4}.ast-menu-page-wrapper,.ast-menu-page-wrapper p,.ast-kb-section{font-family:"Figtree","Inter",sans-serif;font-size:.875rem;line-height:1.25rem}.astra-video-container{position:relative;width:100%}.astra-video-container .astra-video{position:absolute;top:0;right:0;width:100%;height:100%;border:0}.astra-icon-transition svg,.astra-icon-transition path{transition-property:stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.astra-changelog-description strong{font-weight:500;font-size:.875rem;line-height:1.25rem;color:#1e293b}.astra-changelog-description ul{margin-top:.25rem;margin-bottom:.75rem}.astra-changelog-description ul:last-child{margin-top:0}.astra-changelog-description li{font-weight:400;font-size:.75rem;line-height:1rem;color:#64748b}.ast-welcome-screen .ast-licensing-wrap{padding-right:2rem;padding-left:2rem}.ast-kb-inner-wrap .ast-box-shadow-none{box-shadow:none}.ast-docs-search-fields[type=search]{padding:9px 0;padding-right:2.875rem;border:1px solid #cbd5e1;box-shadow:0px 1px 2px rgba(0,0,0,.05);border-radius:6px;line-height:1.625rem}.ast-docs-search-fields[type=search]::-webkit-search-cancel-button{height:1em;width:1em;font-size:2em;opacity:0;position:absolute;right:1rem;pointer-events:all;z-index:999}.astra-changelog-description *{margin-bottom:15px;line-height:1.8}[dir=rtl] .astra-dashboard-app button.bg-astra[aria-checked=false] span{left:0}.translate-x-5.toggle-bubble{--tw-translate-x: 1.02rem}[dir=rtl] .astra-dashboard-app button.bg-astra[aria-checked=true] .toggle-bubble{transform:translateX(-18px)}.ab-top-menu img,#adminmenumain img{display:initial;vertical-align:initial}#wpfooter{background:#f3f3f8}div.shadow-overlay-modal{--tw-shadow: 0px 32px 60px -20px rgba(0, 0, 0, 0.5);--tw-shadow-colored: 0px 32px 64px -24px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)),var(--tw-shadow)}.ast-footer-thankyou a{color:#5c2ede;text-decoration:underline}.extension-logo>svg{width:40px;height:40px}.installer-spinner{margin-right:8px;margin-left:8px;height:1rem;width:1rem}@media(max-width: 781px){div.ast-changelog-popup-wrap{margin-top:46px}div .tablet\:w-full{width:100%}div .tablet\:my-2{margin-top:.5rem;margin-bottom:.5rem}div .tablet\:my-4{margin-top:1rem;margin-bottom:1rem}div .tablet\:my-16{margin-top:4rem;margin-bottom:4rem}div .tablet\:block{display:block}div .tablet\:mr-2{margin-left:.5rem}div .-tablet\:mt\:10{margin-top:-2.5rem}div .tablet\:none{display:none}}@media(max-width: 600px){.ast-kb-section{margin-top:20px}.ast-kb-inner-wrap{padding:0}.ast-kb-caret{align-items:flex-start}.ast-kb-caret svg{margin-top:3px}}#astra-dashboard-app section.astra-child-field{border-width:0;border-top:1px solid #e6e6ef;padding:32px 0 0}#astra-dashboard-app section.astra-child-field h3,#astra-dashboard-app section.astra-child-field p,#astra-dashboard-app section.astra-child-field select{margin:0}#astra-dashboard-app section.astra-child-field input[type=file]{padding:.5rem !important}#astra-dashboard-app section.astra-child-field select,#astra-dashboard-app section.astra-child-field input[type=file]{box-shadow:none;border:1px solid #e6e6ef}#astra-dashboard-app section.astra-child-field select:focus,#astra-dashboard-app section.astra-child-field input[type=file]:focus{box-shadow:none;border:1px solid #5c2ede}#astra-dashboard-app section.astra-child-field button{height:40px;margin-right:.75rem;cursor:pointer}:is(#astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view) .focus\:ring-offset-2:focus{--tw-ring-offset-width: none !important}@media screen and (max-width: 782px){#astra-dashboard-app section.astra-child-field>div{flex-direction:column;align-items:start}#astra-dashboard-app section.astra-child-field form{margin:8px 0}}.card-border:hover{border:.5px solid #e6e6ef}.card-border{border:.5px solid rgba(255,0,0,0)}.extensions-page .extention-logo{width:42px;height:42px}.spectra-screen{border:1px solid}:root{--heading-font-family: "Inter";--heading-font-style: normal;--heading-weight-500: 500;--heading-weight-400: 400;--heading-font-size: 18px;--heading-line-height: 24px}.shadow-focused:focus.shadow-sm{box-shadow:0 1px 2px 0 rgba(0,0,0,.05) !important}.shadow-focused:focus.shadow{box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1) !important}.shadow-focused:focus.shadow-md{box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1) !important}.shadow-focused:focus.shadow-lg{box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1) !important}.shadow-focused:focus.shadow-xl{box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1) !important}.shadow-focused:focus.shadow-2xl{box-shadow:0 25px 50px -12px rgba(0,0,0,.25) !important}.shadow-focused:focus.shadow-inner{box-shadow:inset 0 2px 4px 0 rgba(0,0,0,.05) !important}div.whats-new-rss-flyout{font-family:"Figtree","Inter",sans-serif;font-size:.875rem;line-height:1.25rem}div.whats-new-rss-flyout .whats-new-rss-flyout-contents{top:32px !important;height:calc(100% - 32px) !important}div.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-header{padding:20px !important}div.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .new-post-badge{display:none}div.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item .rss-content-header h2{font-weight:600 !important}div.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item a:active,div.whats-new-rss-flyout .whats-new-rss-flyout-contents .whats-new-rss-flyout-inner-content .whats-new-rss-flyout-inner-content-item a:focus{box-shadow:none}@media screen and (max-width: 782px){.whats-new-rss-flyout .whats-new-rss-flyout-contents{top:46px !important}}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .file\:border-0::file-selector-button{border-width: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .file\:bg-transparent::file-selector-button{background-color: transparent;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .file\:text-text-tertiary::file-selector-button{--tw-text-opacity: 1;color: rgb(159 159 191 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .placeholder\:text-field-placeholder::-moz-placeholder{--tw-text-opacity: 1;color: rgb(159 159 191 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .placeholder\:text-field-placeholder::placeholder{--tw-text-opacity: 1;color: rgb(159 159 191 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .placeholder\:text-text-disabled::-moz-placeholder{--tw-text-opacity: 1;color: rgb(189 193 199 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .placeholder\:text-text-disabled::placeholder{--tw-text-opacity: 1;color: rgb(189 193 199 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .before\:absolute::before{content: var(--tw-content);position: absolute;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .before\:top-2\/4::before{content: var(--tw-content);top: 50%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .before\:hidden::before{content: var(--tw-content);display: none;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .before\:h-10::before{content: var(--tw-content);height: 2.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .before\:w-10::before{content: var(--tw-content);width: 2.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .before\:-translate-x-2\/4::before{content: var(--tw-content);--tw-translate-x: -50%;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .before\:-translate-y-2\/4::before{content: var(--tw-content);--tw-translate-y: -50%;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .before\:rounded-full::before{content: var(--tw-content);border-radius: 9999px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .before\:opacity-0::before{content: var(--tw-content);opacity: 0;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .before\:transition-opacity::before{content: var(--tw-content);transition-property: opacity;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 150ms;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .before\:content-\[\'\'\]::before{--tw-content: '';content: var(--tw-content);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .after\:ml-0::after{content: var(--tw-content);margin-right: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .after\:ml-0\.5::after{content: var(--tw-content);margin-right: 0.125rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .after\:text-field-required::after{content: var(--tw-content);--tw-text-opacity: 1;color: rgb(220 38 38 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .after\:content-\[\'\*\'\]::after{--tw-content: '*';content: var(--tw-content);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .first\:rounded-bl:first-child{border-bottom-right-radius: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .first\:rounded-tl:first-child{border-top-right-radius: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .first\:border-0:first-child{border-width: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .first\:border-r:first-child{border-left-width: 1px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .first\:border-border-subtle:first-child{--tw-border-opacity: 1;border-color: rgb(230 230 239 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .last\:rounded-br:last-child{border-bottom-left-radius: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .last\:rounded-tr:last-child{border-top-left-radius: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .last\:border-0:last-child{border-width: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .checked\:border-border-interactive:checked{--tw-border-opacity: 1;border-color: rgb(92 46 222 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .checked\:border-toggle-on-border:checked{--tw-border-opacity: 1;border-color: rgb(99 74 224 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .checked\:bg-toggle-on:checked{--tw-bg-opacity: 1;background-color: rgb(92 46 222 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .checked\:\[background-image\:none\]:checked{background-image: none;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .checked\:before\:hidden:checked::before{content: var(--tw-content);display: none;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .checked\:before\:content-\[\'\'\]:checked::before{--tw-content: '';content: var(--tw-content);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus-within\:z-10:focus-within{z-index: 10;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus-within\:border-focus-border:focus-within{--tw-border-opacity: 1;border-color: rgb(232 207 248 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus-within\:text-field-input:focus-within{--tw-text-opacity: 1;color: rgb(20 19 56 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus-within\:outline-none:focus-within{outline: 2px solid transparent;outline-offset: 2px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus-within\:outline-focus-border:focus-within{outline-color: #E8CFF8;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus-within\:ring-2:focus-within{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus-within\:ring-focus:focus-within{--tw-ring-opacity: 1;--tw-ring-color: rgb(92 46 222 / var(--tw-ring-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus-within\:ring-offset-2:focus-within{--tw-ring-offset-width: 2px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:flex:hover{display: flex;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:border-border-disabled:hover{--tw-border-opacity: 1;border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:border-border-interactive:hover{--tw-border-opacity: 1;border-color: rgb(92 46 222 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:border-border-strong:hover{--tw-border-opacity: 1;border-color: rgb(107 114 128 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:border-border-subtle:hover{--tw-border-opacity: 1;border-color: rgb(230 230 239 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:border-button-primary:hover{--tw-border-opacity: 1;border-color: rgb(92 46 222 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:border-field-border:hover{--tw-border-opacity: 1;border-color: rgb(230 230 239 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:border-field-dropzone-color:hover{--tw-border-opacity: 1;border-color: rgb(92 46 222 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:border-slate-300:hover{--tw-border-opacity: 1;border-color: rgb(203 213 225 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:border-text-inverse:hover{--tw-border-opacity: 1;border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-astra-hover:hover{--tw-bg-opacity: 1;background-color: rgb(173 56 226 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-background-brand:hover{--tw-bg-opacity: 1;background-color: rgb(92 46 222 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-background-button-hover:hover{--tw-bg-opacity: 1;background-color: rgb(232 207 248 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-background-secondary:hover{--tw-bg-opacity: 1;background-color: rgb(243 243 248 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-badge-hover-disabled:hover{--tw-bg-opacity: 1;background-color: rgb(243 243 248 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-badge-hover-gray:hover{--tw-bg-opacity: 1;background-color: rgb(243 243 248 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-badge-hover-green:hover{--tw-bg-opacity: 1;background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-badge-hover-red:hover{--tw-bg-opacity: 1;background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-badge-hover-sky:hover{--tw-bg-opacity: 1;background-color: rgb(224 242 254 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-badge-hover-yellow:hover{--tw-bg-opacity: 1;background-color: rgb(254 249 195 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-button-danger-hover:hover{--tw-bg-opacity: 1;background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-button-primary:hover{--tw-bg-opacity: 1;background-color: rgb(92 46 222 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-button-primary-hover:hover{--tw-bg-opacity: 1;background-color: rgb(173 56 226 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-button-secondary:hover{--tw-bg-opacity: 1;background-color: rgb(239 215 249 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-button-secondary-hover:hover{--tw-bg-opacity: 1;background-color: rgb(59 58 106 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-button-tertiary-hover:hover{--tw-bg-opacity: 1;background-color: rgb(243 243 248 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-field-background-error:hover{--tw-bg-opacity: 1;background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-field-dropzone-background-hover:hover{--tw-bg-opacity: 1;background-color: rgb(249 250 252 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-link-primary-hover:hover{--tw-bg-opacity: 1;background-color: rgb(173 56 226 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-transparent:hover{background-color: transparent;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:bg-white:hover{--tw-bg-opacity: 1;background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:text-\[\#1E293B\]:hover{--tw-text-opacity: 1;color: rgb(30 41 59 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:text-astra-hover:hover{--tw-text-opacity: 1;color: rgb(173 56 226 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:text-black:hover{--tw-text-opacity: 1;color: rgb(0 0 0 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:text-button-danger-secondary:hover{--tw-text-opacity: 1;color: rgb(220 38 38 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:text-button-primary-hover:hover{--tw-text-opacity: 1;color: rgb(173 56 226 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:text-link-primary:hover{--tw-text-opacity: 1;color: rgb(92 46 222 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:text-link-primary-hover:hover{--tw-text-opacity: 1;color: rgb(173 56 226 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:text-purple-light-hover:hover{--tw-text-opacity: 1;color: rgb(179 120 229 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:text-slate-800:hover{--tw-text-opacity: 1;color: rgb(30 41 59 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:text-text-disabled:hover{--tw-text-opacity: 1;color: rgb(189 193 199 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:text-text-inverse:hover{--tw-text-opacity: 1;color: rgb(255 255 255 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:text-text-primary:hover{--tw-text-opacity: 1;color: rgb(20 19 56 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:text-white:hover{--tw-text-opacity: 1;color: rgb(255 255 255 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:underline:hover{text-decoration-line: underline;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:no-underline:hover{text-decoration-line: none;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:shadow-hover:hover{--tw-shadow: 0px 12px 24px -12px rgba(0, 0, 0, 0.12);--tw-shadow-colored: 0px 12px 24px -12px var(--tw-shadow-color);box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:shadow-overlay-video:hover{--tw-shadow: 0px 4px 6px -1px #0000001A;--tw-shadow-colored: 0px 4px 6px -1px var(--tw-shadow-color);box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:shadow-sm:hover{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:outline-border-disabled:hover{outline-color: #E5E7EB;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:outline-border-interactive:hover{outline-color: #5C2EDE;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:outline-border-strong:hover{outline-color: #6B7280;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:outline-border-subtle:hover{outline-color: #E6E6EF;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:outline-button-danger:hover{outline-color: #DC2626;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:outline-button-danger-hover:hover{outline-color: #B91C1C;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:outline-button-primary-hover:hover{outline-color: #AD38E2;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:outline-button-secondary:hover{outline-color: #EFD7F9;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:outline-button-secondary-hover:hover{outline-color: #3B3A6A;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:outline-field-border-disabled:hover{outline-color: #F3F3F8;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:before\:opacity-10:hover::before{content: var(--tw-content);opacity: 0.1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .checked\:hover\:border-toggle-on-hover:hover:checked{--tw-border-opacity: 1;border-color: rgb(92 46 222 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .checked\:hover\:bg-toggle-on-hover:hover:checked{--tw-bg-opacity: 1;background-color: rgb(92 46 222 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus-within\:hover\:border-focus-border:hover:focus-within{--tw-border-opacity: 1;border-color: rgb(232 207 248 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus-within\:hover\:outline-focus-border:hover:focus-within{outline-color: #E8CFF8;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .hover\:focus-within\:outline-focus-border:focus-within:hover{outline-color: #E8CFF8;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:rounded-sm:focus{border-radius: 0.125rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:border-border-interactive:focus{--tw-border-opacity: 1;border-color: rgb(92 46 222 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:border-focus-border:focus{--tw-border-opacity: 1;border-color: rgb(232 207 248 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:border-focus-error-border:focus{--tw-border-opacity: 1;border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:border-toggle-off-border:focus{--tw-border-opacity: 1;border-color: rgb(232 207 248 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:bg-background-secondary:focus{--tw-bg-opacity: 1;background-color: rgb(243 243 248 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:bg-button-tertiary-hover:focus{--tw-bg-opacity: 1;background-color: rgb(243 243 248 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:text-astra:focus{--tw-text-opacity: 1;color: rgb(92 46 222 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:text-link-primary-hover:focus{--tw-text-opacity: 1;color: rgb(173 56 226 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:text-slate-400:focus{--tw-text-opacity: 1;color: rgb(148 163 184 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:shadow-none:focus{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:outline-none:focus{outline: 2px solid transparent;outline-offset: 2px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:outline:focus{outline-style: solid;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:outline-0:focus{outline-width: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:outline-1:focus{outline-width: 1px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:outline-border-subtle:focus{outline-color: #E6E6EF;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:outline-focus-border:focus{outline-color: #E8CFF8;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:outline-focus-error-border:focus{outline-color: #FECACA;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:ring-astra:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(92 46 222 / var(--tw-ring-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:ring-astra-hover:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(173 56 226 / var(--tw-ring-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:ring-border-interactive:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(92 46 222 / var(--tw-ring-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:ring-field-color-error:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:ring-focus:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(92 46 222 / var(--tw-ring-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:ring-focus-error:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 38 38 / var(--tw-ring-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:ring-toggle-on:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(92 46 222 / var(--tw-ring-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:ring-transparent:focus{--tw-ring-color: transparent;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:ring-offset-0:focus{--tw-ring-offset-width: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus\:\[box-shadow\:none\]:focus{box-shadow: none;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .checked\:focus\:border-toggle-on-border:focus:checked{--tw-border-opacity: 1;border-color: rgb(99 74 224 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus-visible\:border-slate-300:focus-visible{--tw-border-opacity: 1;border-color: rgb(203 213 225 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus-visible\:bg-astra-hover:focus-visible{--tw-bg-opacity: 1;background-color: rgb(173 56 226 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus-visible\:text-\[\#1E293B\]:focus-visible{--tw-text-opacity: 1;color: rgb(30 41 59 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus-visible\:text-astra-hover:focus-visible{--tw-text-opacity: 1;color: rgb(173 56 226 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus-visible\:text-link-primary:focus-visible{--tw-text-opacity: 1;color: rgb(92 46 222 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus-visible\:text-slate-500:focus-visible{--tw-text-opacity: 1;color: rgb(100 116 139 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus-visible\:text-slate-800:focus-visible{--tw-text-opacity: 1;color: rgb(30 41 59 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .focus-visible\:outline-none:focus-visible{outline: 2px solid transparent;outline-offset: 2px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .active\:text-astra:active{--tw-text-opacity: 1;color: rgb(92 46 222 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .active\:text-astra-hover:active{--tw-text-opacity: 1;color: rgb(173 56 226 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .active\:text-button-primary:active{--tw-text-opacity: 1;color: rgb(92 46 222 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .active\:text-link-primary:active{--tw-text-opacity: 1;color: rgb(92 46 222 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .active\:text-slate-500:active{--tw-text-opacity: 1;color: rgb(100 116 139 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .active\:outline-none:active{outline: 2px solid transparent;outline-offset: 2px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .disabled\:cursor-default:disabled{cursor: default;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .disabled\:cursor-not-allowed:disabled{cursor: not-allowed;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .disabled\:border-border-disabled:disabled{--tw-border-opacity: 1;border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .disabled\:border-field-border-disabled:disabled{--tw-border-opacity: 1;border-color: rgb(243 243 248 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .disabled\:border-transparent:disabled{border-color: transparent;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .disabled\:bg-button-disabled:disabled{--tw-bg-opacity: 1;background-color: rgb(243 243 248 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .disabled\:bg-button-tertiary:disabled{--tw-bg-opacity: 1;background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .disabled\:bg-white:disabled{--tw-bg-opacity: 1;background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .disabled\:text-text-disabled:disabled{--tw-text-opacity: 1;color: rgb(189 193 199 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .disabled\:shadow-none:disabled{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .disabled\:shadow-toggle-disabled:disabled{--tw-shadow: 1px 1px 2px 0px rgba(0, 0, 0, 0.1) inset;--tw-shadow-colored: inset 1px 1px 2px 0px var(--tw-shadow-color);box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .disabled\:outline-border-disabled:disabled{outline-color: #E5E7EB;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .disabled\:outline-button-disabled:disabled{outline-color: #F3F3F8;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .disabled\:outline-field-border-disabled:disabled{outline-color: #F3F3F8;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .checked\:disabled\:border-border-disabled:disabled:checked{--tw-border-opacity: 1;border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .checked\:disabled\:bg-toggle-on-disabled:disabled:checked{--tw-bg-opacity: 1;background-color: rgb(231 224 250 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .checked\:disabled\:bg-white:disabled:checked{--tw-bg-opacity: 1;background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group\/switch:focus-within .group-focus-within\/switch\:size-3\.25){width: 0.8125rem;height: 0.8125rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group\/switch:focus-within .group-focus-within\/switch\:size-4){width: 1rem;height: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group\/switch:focus-within .group-focus-within\/switch\:size-5){width: 1.25rem;height: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group:focus-within .group-focus-within\:text-icon-primary){--tw-text-opacity: 1;color: rgb(20 19 56 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group:hover .group-hover\:visible){visibility: visible;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group\/switch:hover .group-hover\/switch\:right-0\.5){left: 0.125rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group\/switch:hover .group-hover\/switch\:size-3\.25){width: 0.8125rem;height: 0.8125rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group\/switch:hover .group-hover\/switch\:size-4){width: 1rem;height: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group\/switch:hover .group-hover\/switch\:size-5){width: 1.25rem;height: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group:hover .group-hover\:scale-110){--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group\/switch:hover .group-hover\/switch\:border-toggle-on-border){--tw-border-opacity: 1;border-color: rgb(99 74 224 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group\/switch:hover .group-hover\/switch\:bg-toggle-off-hover){--tw-bg-opacity: 1;background-color: rgb(232 207 248 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group:hover .group-hover\:bg-opacity-100){--tw-bg-opacity: 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group:hover .group-hover\:text-field-input){--tw-text-opacity: 1;color: rgb(20 19 56 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group:hover .group-hover\:text-icon-primary){--tw-text-opacity: 1;color: rgb(20 19 56 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group:hover .group-hover\:text-purple-800){--tw-text-opacity: 1;color: rgb(107 33 168 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group:hover .group-hover\:opacity-100){opacity: 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group:hover .group-hover\:shadow-lg){--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group\/switch:hover .checked\:group-hover\/switch\:border-toggle-on-border:checked){--tw-border-opacity: 1;border-color: rgb(99 74 224 / var(--tw-border-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group\/switch:hover .checked\:group-hover\/switch\:bg-toggle-on-hover:checked){--tw-bg-opacity: 1;background-color: rgb(92 46 222 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group:disabled .group-disabled\:text-field-color-disabled){--tw-text-opacity: 1;color: rgb(189 193 199 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group:disabled .group-disabled\:text-icon-disabled){--tw-text-opacity: 1;color: rgb(209 213 219 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.peer:checked ~ .peer-checked\:translate-x-3){--tw-translate-x: 0.75rem;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.peer:checked ~ .peer-checked\:translate-x-3\.75){--tw-translate-x: 0.9375rem;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.peer:checked ~ .peer-checked\:translate-x-5){--tw-translate-x: 1.25rem;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.peer:checked ~ .peer-checked\:opacity-100){opacity: 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.peer:disabled ~ .peer-disabled\:cursor-not-allowed){cursor: not-allowed;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.peer:disabled ~ .peer-disabled\:text-border-disabled){--tw-text-opacity: 1;color: rgb(229 231 235 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .not-rtl\:left-1:not([dir="rtl"], [dir="rtl"] *){right: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .not-rtl\:left-2\/4:not([dir="rtl"], [dir="rtl"] *){right: 50%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .not-rtl\:before\:left-2\/4:not([dir="rtl"], [dir="rtl"] *)::before{content: var(--tw-content);right: 50%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group\/switch:focus-within .not-rtl\:group-focus-within\/switch\:left-0\.5:not([dir="rtl"], [dir="rtl"] *)){right: 0.125rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group\/switch:hover .not-rtl\:group-hover\/switch\:left-0\.5:not([dir="rtl"], [dir="rtl"] *)){right: 0.125rem;}@media (min-width: 640px){:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:static{position: static;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:inset-auto{inset: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:mb-0{margin-bottom: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:ml-2{margin-right: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:ml-6{margin-right: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:ml-8{margin-right: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:mr-3{margin-left: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:mt-5{margin-top: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:flex{display: flex;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:inline-flex{display: inline-flex;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:h-10{height: 2.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:h-120{height: 30rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:h-\[56px\]{height: 56px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:w-10{width: 2.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:max-w-5xl{max-width: 64rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:translate-y-0{--tw-translate-y: 0px;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:flex-row{flex-direction: row;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:items-center{align-items: center;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:items-stretch{align-items: stretch;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:justify-start{justify-content: flex-start;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:gap-0{gap: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:p-0{padding: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:p-1{padding: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:p-6{padding: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:px-6{padding-right: 1.5rem;padding-left: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:pl-3{padding-right: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:pr-0{padding-left: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:text-sm{font-size: 0.875rem;line-height: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .sm\:leading-\[0\.875rem\]{line-height: 0.875rem;}}@media (min-width: 768px){:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:relative{position: relative;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:bottom-0{bottom: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:top-0{top: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:order-1{order: 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:order-10{order: 10;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:order-11{order: 11;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:order-12{order: 12;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:order-2{order: 2;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:order-3{order: 3;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:order-4{order: 4;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:order-5{order: 5;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:order-6{order: 6;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:order-7{order: 7;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:order-8{order: 8;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:order-9{order: 9;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:order-first{order: -9999;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:order-last{order: 9999;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:order-none{order: 0;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-span-1{grid-column: span 1 / span 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-span-10{grid-column: span 10 / span 10;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-span-11{grid-column: span 11 / span 11;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-span-12{grid-column: span 12 / span 12;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-span-2{grid-column: span 2 / span 2;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-span-3{grid-column: span 3 / span 3;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-span-4{grid-column: span 4 / span 4;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-span-5{grid-column: span 5 / span 5;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-span-6{grid-column: span 6 / span 6;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-span-7{grid-column: span 7 / span 7;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-span-8{grid-column: span 8 / span 8;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-span-9{grid-column: span 9 / span 9;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-start-1{grid-column-start: 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-start-10{grid-column-start: 10;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-start-11{grid-column-start: 11;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-start-12{grid-column-start: 12;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-start-2{grid-column-start: 2;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-start-3{grid-column-start: 3;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-start-4{grid-column-start: 4;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-start-5{grid-column-start: 5;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-start-6{grid-column-start: 6;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-start-7{grid-column-start: 7;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-start-8{grid-column-start: 8;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:col-start-9{grid-column-start: 9;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:my-10{margin-top: 2.5rem;margin-bottom: 2.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:flex{display: flex;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:hidden{display: none;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:h-\[19rem\]{height: 19rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:h-full{height: 100%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:w-1\/10{width: 10%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:w-1\/11{width: 9.0909091%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:w-1\/12{width: 8.3333333%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:w-1\/2{width: 50%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:w-1\/3{width: 33.333333%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:w-1\/4{width: 25%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:w-1\/5{width: 20%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:w-1\/6{width: 16.666667%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:w-1\/7{width: 14.2857143%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:w-1\/8{width: 12.5%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:w-1\/9{width: 11.1111111%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:w-\[34rem\]{width: 34rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:w-\[calc\(100\%-24px\)\]{width: calc(100% - 24px);}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:w-auto{width: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:w-full{width: 100%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:w-max{width: -moz-max-content;width: max-content;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:max-w-2xl{max-width: 42rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:shrink{flex-shrink: 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:shrink-0{flex-shrink: 0;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:grow{flex-grow: 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:grow-0{flex-grow: 0;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:grid-flow-row{grid-auto-flow: row;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:grid-flow-col{grid-auto-flow: column;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:grid-flow-row-dense{grid-auto-flow: row dense;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:grid-flow-col-dense{grid-auto-flow: column dense;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:grid-cols-1{grid-template-columns: repeat(1, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:grid-cols-10{grid-template-columns: repeat(10, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:grid-cols-11{grid-template-columns: repeat(11, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:grid-cols-12{grid-template-columns: repeat(12, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:grid-cols-2{grid-template-columns: repeat(2, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:grid-cols-3{grid-template-columns: repeat(3, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:grid-cols-4{grid-template-columns: repeat(4, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:grid-cols-5{grid-template-columns: repeat(5, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:grid-cols-6{grid-template-columns: repeat(6, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:grid-cols-7{grid-template-columns: repeat(7, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:grid-cols-8{grid-template-columns: repeat(8, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:grid-cols-9{grid-template-columns: repeat(9, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:flex-row{flex-direction: row;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:flex-row-reverse{flex-direction: row-reverse;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:flex-col{flex-direction: column;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:flex-col-reverse{flex-direction: column-reverse;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:flex-wrap{flex-wrap: wrap;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:flex-wrap-reverse{flex-wrap: wrap-reverse;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:flex-nowrap{flex-wrap: nowrap;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:items-start{align-items: flex-start;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:items-end{align-items: flex-end;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:items-center{align-items: center;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:items-baseline{align-items: baseline;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:items-stretch{align-items: stretch;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:justify-normal{justify-content: normal;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:justify-start{justify-content: flex-start;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:justify-end{justify-content: flex-end;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:justify-center{justify-content: center;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:justify-between{justify-content: space-between;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:justify-around{justify-content: space-around;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:justify-evenly{justify-content: space-evenly;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:justify-stretch{justify-content: stretch;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:gap-2{gap: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:gap-4{gap: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:gap-5{gap: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:gap-6{gap: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:gap-8{gap: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:gap-x-2{-moz-column-gap: 0.5rem;column-gap: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:gap-x-4{-moz-column-gap: 1rem;column-gap: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:gap-x-5{-moz-column-gap: 1.25rem;column-gap: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:gap-x-6{-moz-column-gap: 1.5rem;column-gap: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:gap-x-8{-moz-column-gap: 2rem;column-gap: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:gap-y-2{row-gap: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:gap-y-4{row-gap: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:gap-y-5{row-gap: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:gap-y-6{row-gap: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:gap-y-8{row-gap: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.md\:space-x-1 > :not([hidden]) ~ :not([hidden])){--tw-space-x-reverse: 0;margin-left: calc(0.25rem * var(--tw-space-x-reverse));margin-right: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:self-start{align-self: flex-start;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:self-end{align-self: flex-end;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:self-center{align-self: center;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:self-stretch{align-self: stretch;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:self-baseline{align-self: baseline;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:justify-self-auto{justify-self: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:justify-self-start{justify-self: start;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:justify-self-end{justify-self: end;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:justify-self-center{justify-self: center;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:justify-self-stretch{justify-self: stretch;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:border-none{border-style: none;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:p-4{padding: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:p-8{padding: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:px-1{padding-right: 0.25rem;padding-left: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:px-2{padding-right: 0.5rem;padding-left: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:py-0{padding-top: 0px;padding-bottom: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .md\:shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);}}@media (min-width: 1024px){:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:sticky{position: sticky;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:inset-y-0{top: 0px;bottom: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:top-8{top: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:order-1{order: 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:order-10{order: 10;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:order-11{order: 11;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:order-12{order: 12;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:order-2{order: 2;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:order-3{order: 3;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:order-4{order: 4;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:order-5{order: 5;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:order-6{order: 6;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:order-7{order: 7;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:order-8{order: 8;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:order-9{order: 9;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:order-first{order: -9999;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:order-last{order: 9999;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:order-none{order: 0;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-span-1{grid-column: span 1 / span 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-span-10{grid-column: span 10 / span 10;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-span-11{grid-column: span 11 / span 11;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-span-12{grid-column: span 12 / span 12;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-span-2{grid-column: span 2 / span 2;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-span-3{grid-column: span 3 / span 3;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-span-4{grid-column: span 4 / span 4;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-span-5{grid-column: span 5 / span 5;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-span-6{grid-column: span 6 / span 6;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-span-7{grid-column: span 7 / span 7;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-span-8{grid-column: span 8 / span 8;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-span-9{grid-column: span 9 / span 9;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-start-1{grid-column-start: 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-start-10{grid-column-start: 10;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-start-11{grid-column-start: 11;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-start-12{grid-column-start: 12;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-start-2{grid-column-start: 2;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-start-3{grid-column-start: 3;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-start-4{grid-column-start: 4;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-start-5{grid-column-start: 5;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-start-6{grid-column-start: 6;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-start-7{grid-column-start: 7;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-start-8{grid-column-start: 8;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:col-start-9{grid-column-start: 9;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:ml-40{margin-right: 10rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:ml-6{margin-right: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:block{display: block;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:flex{display: flex;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:grid{display: grid;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:h-16{height: 4rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:h-188{height: 47rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:h-\[34rem\]{height: 34rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:w-1\/10{width: 10%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:w-1\/11{width: 9.0909091%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:w-1\/12{width: 8.3333333%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:w-1\/2{width: 50%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:w-1\/3{width: 33.333333%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:w-1\/4{width: 25%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:w-1\/5{width: 20%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:w-1\/6{width: 16.666667%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:w-1\/7{width: 14.2857143%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:w-1\/8{width: 12.5%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:w-1\/9{width: 11.1111111%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:w-2\/3{width: 66.666667%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:w-64{width: 16rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:w-\[47\.5rem\]{width: 47.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:w-\[60rem\]{width: 60rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:w-full{width: 100%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:max-w-3xl{max-width: 48rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:max-w-\[77rem\]{max-width: 77rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:max-w-full{max-width: 100%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:flex-1{flex: 1 1 0%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:flex-shrink-0{flex-shrink: 0;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:shrink{flex-shrink: 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:shrink-0{flex-shrink: 0;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:grow{flex-grow: 1;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:grow-0{flex-grow: 0;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:grid-flow-row{grid-auto-flow: row;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:grid-flow-col{grid-auto-flow: column;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:grid-flow-row-dense{grid-auto-flow: row dense;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:grid-flow-col-dense{grid-auto-flow: column dense;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:grid-cols-1{grid-template-columns: repeat(1, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:grid-cols-10{grid-template-columns: repeat(10, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:grid-cols-11{grid-template-columns: repeat(11, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:grid-cols-12{grid-template-columns: repeat(12, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:grid-cols-2{grid-template-columns: repeat(2, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:grid-cols-3{grid-template-columns: repeat(3, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:grid-cols-4{grid-template-columns: repeat(4, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:grid-cols-5{grid-template-columns: repeat(5, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:grid-cols-6{grid-template-columns: repeat(6, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:grid-cols-7{grid-template-columns: repeat(7, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:grid-cols-8{grid-template-columns: repeat(8, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:grid-cols-9{grid-template-columns: repeat(9, minmax(0, 1fr));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:grid-cols-\[16rem_1fr\]{grid-template-columns: 16rem 1fr;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:flex-row{flex-direction: row;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:flex-row-reverse{flex-direction: row-reverse;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:flex-col{flex-direction: column;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:flex-col-reverse{flex-direction: column-reverse;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:flex-wrap{flex-wrap: wrap;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:flex-wrap-reverse{flex-wrap: wrap-reverse;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:flex-nowrap{flex-wrap: nowrap;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:items-start{align-items: flex-start;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:items-end{align-items: flex-end;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:items-center{align-items: center;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:items-baseline{align-items: baseline;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:items-stretch{align-items: stretch;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:justify-normal{justify-content: normal;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:justify-start{justify-content: flex-start;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:justify-end{justify-content: flex-end;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:justify-center{justify-content: center;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:justify-between{justify-content: space-between;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:justify-around{justify-content: space-around;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:justify-evenly{justify-content: space-evenly;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:justify-stretch{justify-content: stretch;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:gap-2{gap: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:gap-4{gap: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:gap-5{gap: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:gap-6{gap: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:gap-8{gap: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:gap-x-2{-moz-column-gap: 0.5rem;column-gap: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:gap-x-4{-moz-column-gap: 1rem;column-gap: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:gap-x-5{-moz-column-gap: 1.25rem;column-gap: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:gap-x-6{-moz-column-gap: 1.5rem;column-gap: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:gap-x-8{-moz-column-gap: 2rem;column-gap: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:gap-y-2{row-gap: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:gap-y-4{row-gap: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:gap-y-5{row-gap: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:gap-y-6{row-gap: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:gap-y-8{row-gap: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:self-start{align-self: flex-start;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:self-end{align-self: flex-end;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:self-center{align-self: center;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:self-stretch{align-self: stretch;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:self-baseline{align-self: baseline;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:justify-self-auto{justify-self: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:justify-self-start{justify-self: start;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:justify-self-end{justify-self: end;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:justify-self-center{justify-self: center;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:justify-self-stretch{justify-self: stretch;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:p-0{padding: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:p-12{padding: 3rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:p-6{padding: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:p-8{padding: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:px-0{padding-right: 0px;padding-left: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:px-5{padding-right: 1.25rem;padding-left: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:py-0{padding-top: 0px;padding-bottom: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .lg\:py-6{padding-top: 1.5rem;padding-bottom: 1.5rem;}}@media (min-width: 1280px){:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .xl\:col-span-6{grid-column: span 6 / span 6;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .xl\:ml-4{margin-right: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .xl\:mr-0{margin-left: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .xl\:max-w-\[280px\]{max-width: 280px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .xl\:max-w-\[696px\]{max-width: 696px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .xl\:grid-cols-3{grid-template-columns: repeat(3, minmax(0, 1fr));}}@media (max-width: 782px){:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .tablet\:my-2{margin-top: 0.5rem;margin-bottom: 0.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .tablet\:justify-items-start{justify-items: start;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .tablet\:pr-2{padding-left: 0.5rem;}}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rtl\:right-1:where([dir="rtl"], [dir="rtl"] *){left: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rtl\:right-2\/4:where([dir="rtl"], [dir="rtl"] *){left: 50%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .rtl\:before\:right-2\/4:where([dir="rtl"], [dir="rtl"] *)::before{content: var(--tw-content);left: 50%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group\/switch:focus-within .rtl\:group-focus-within\/switch\:right-0\.5:where([dir="rtl"], [dir="rtl"] *)){left: 0.125rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group\/switch:hover .rtl\:group-hover\/switch\:right-0:where([dir="rtl"], [dir="rtl"] *)){left: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.group\/switch:hover .rtl\:group-hover\/switch\:right-0\.5:where([dir="rtl"], [dir="rtl"] *)){left: 0.125rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\:focus\+div\]\:flex:focus+div){display: flex;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\:hover\+div\]\:flex:hover+div){display: flex;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .\[\&\:hover\:has\(\:disabled\)\]\:outline-field-border-disabled:hover:has(:disabled){outline-color: #F3F3F8;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .\[\&\:hover\:not\(\:focus\)\:not\(\:disabled\)\]\:outline-border-strong:hover:not(:focus):not(:disabled){outline-color: #6B7280;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .\[\&\:is\(\[data-hover\=true\]\)\]\:rounded-none:is([data-hover=true]){border-radius: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) .\[\&\:is\(\[data-hover\=true\]\)\]\:bg-brand-background-50:is([data-hover=true]){--tw-bg-opacity: 1;background-color: rgb(231 224 250 / var(--tw-bg-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>\*\:not\(svg\)\]\:m-1>*:not(svg)){margin: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>\*\:not\(svg\)\]\:mx-1>*:not(svg)){margin-right: 0.25rem;margin-left: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>\*\:not\(svg\)\]\:my-0\.5>*:not(svg)){margin-top: 0.125rem;margin-bottom: 0.125rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>\*\]\:box-border>*){box-sizing: border-box;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>\*\]\:text-2xl>*){font-size: 1.5rem;line-height: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>\*\]\:text-base>*){font-size: 1rem;line-height: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>\*\]\:text-lg>*){font-size: 1.125rem;line-height: 1.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>\*\]\:text-sm>*){font-size: 0.875rem;line-height: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>\*\]\:text-xl>*){font-size: 1.25rem;line-height: 1.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>\*\]\:text-xs>*){font-size: 0.75rem;line-height: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>\*\]\:text-field-color-disabled>*){--tw-text-opacity: 1;color: rgb(189 193 199 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>\*\]\:text-field-helper>*){--tw-text-opacity: 1;color: rgb(159 159 191 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>\*\]\:text-field-label>*){--tw-text-opacity: 1;color: rgb(79 78 124 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>\*\]\:text-support-error>*){--tw-text-opacity: 1;color: rgb(220 38 38 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>div\>\.ast-licensing-wrap\]\:max-w-full>div>.ast-licensing-wrap){max-width: 100%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>div\]\:p-6>div){padding: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>label\]\:\!left-1>label){right: 0.25rem !important;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>label\]\:\!size-2\.5>label){width: 0.625rem !important;height: 0.625rem !important;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>li\]\:pointer-events-auto>li){pointer-events: auto;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>p\]\:m-0>p){margin: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>p\]\:w-full>p){width: 100%;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>span\:first-child\]\:shrink-0>span:first-child){flex-shrink: 0;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>span\]\:flex>span){display: flex;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>span\]\:items-center>span){align-items: center;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>svg\]\:m-1>svg){margin: 0.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>svg\]\:m-1\.5>svg){margin: 0.375rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>svg\]\:mr-0>svg){margin-left: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>svg\]\:block>svg){display: block;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>svg\]\:size-12>svg){width: 3rem;height: 3rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>svg\]\:size-3>svg){width: 0.75rem;height: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>svg\]\:size-3\.5>svg){width: 0.875rem;height: 0.875rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>svg\]\:size-4>svg){width: 1rem;height: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>svg\]\:size-5>svg){width: 1.25rem;height: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>svg\]\:size-6>svg){width: 1.5rem;height: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>svg\]\:size-8>svg){width: 2rem;height: 2rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>svg\]\:h-3>svg){height: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>svg\]\:h-4>svg){height: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>svg\]\:h-5>svg){height: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>svg\]\:w-3>svg){width: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>svg\]\:w-4>svg){width: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>svg\]\:w-5>svg){width: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>svg\]\:shrink-0>svg){flex-shrink: 0;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&\>svg\]\:text-icon-interactive>svg){--tw-text-opacity: 1;color: rgb(92 46 222 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_\*\]\:box-border *){box-sizing: border-box;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_\*\]\:text-sm *){font-size: 0.875rem;line-height: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_\*\]\:leading-5 *){line-height: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_\.editor-content\>p\]\:min-h-5 .editor-content>p){min-height: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_\.editor-content\>p\]\:min-h-6 .editor-content>p){min-height: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_\.editor-content\>p\]\:min-h-7 .editor-content>p){min-height: 1.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_\.editor-content\>p\]\:content-center .editor-content>p){align-content: center;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_\.editor-content\>p\]\:text-base .editor-content>p){font-size: 1rem;line-height: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_\.editor-content\>p\]\:text-sm .editor-content>p){font-size: 0.875rem;line-height: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_\.editor-content\>p\]\:text-xs .editor-content>p){font-size: 0.75rem;line-height: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_\.editor-content\>p\]\:font-normal .editor-content>p){font-weight: 400;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_\.pointer-events-none\]\:text-base .pointer-events-none){font-size: 1rem;line-height: 1.5rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_\.pointer-events-none\]\:text-sm .pointer-events-none){font-size: 0.875rem;line-height: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_\.pointer-events-none\]\:text-xs .pointer-events-none){font-size: 0.75rem;line-height: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_\.pointer-events-none\]\:font-normal .pointer-events-none){font-weight: 400;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_h2\]\:leading-\[1\.875rem\] h2){line-height: 1.875rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_h2\]\:text-text-primary h2){--tw-text-opacity: 1;color: rgb(20 19 56 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_p\]\:m-0 p){margin: 0px;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_p\]\:text-badge-color-disabled p){--tw-text-opacity: 1;color: rgb(189 193 199 / var(--tw-text-opacity, 1));}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_svg\]\:size-3 svg){width: 0.75rem;height: 0.75rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_svg\]\:size-4 svg){width: 1rem;height: 1rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_svg\]\:size-5 svg){width: 1.25rem;height: 1.25rem;}:is( #astra-dashboard-app,[data-floating-ui-portal],.ast-site-builder-table-view ) :is(.\[\&_svg\]\:size-6 svg){width: 1.5rem;height: 1.5rem;} assets/build/dashboard-app.js 0000644 00004577153 15105354057 0012243 0 ustar 00 (()=>{var t,e,n={39:(t,e,n)=>{t.exports=a;var r=n(2799);function a(t){r.call(this,new i(this),t)}function i(t){this.scope=t}n(6698)(a,r),a.prototype.readable=!0;var s=n(8659).EVENTS;Object.keys(s).forEach(function(t){if(0===s[t])i.prototype["on"+t]=function(){this.scope.emit(t)};else if(1===s[t])i.prototype["on"+t]=function(e){this.scope.emit(t,e)};else{if(2!==s[t])throw Error("wrong number of arguments!");i.prototype["on"+t]=function(e,n){this.scope.emit(t,e,n)}}})},219:t=>{"use strict";t.exports=JSON.parse('{"elementNames":{"altglyph":"altGlyph","altglyphdef":"altGlyphDef","altglyphitem":"altGlyphItem","animatecolor":"animateColor","animatemotion":"animateMotion","animatetransform":"animateTransform","clippath":"clipPath","feblend":"feBlend","fecolormatrix":"feColorMatrix","fecomponenttransfer":"feComponentTransfer","fecomposite":"feComposite","feconvolvematrix":"feConvolveMatrix","fediffuselighting":"feDiffuseLighting","fedisplacementmap":"feDisplacementMap","fedistantlight":"feDistantLight","fedropshadow":"feDropShadow","feflood":"feFlood","fefunca":"feFuncA","fefuncb":"feFuncB","fefuncg":"feFuncG","fefuncr":"feFuncR","fegaussianblur":"feGaussianBlur","feimage":"feImage","femerge":"feMerge","femergenode":"feMergeNode","femorphology":"feMorphology","feoffset":"feOffset","fepointlight":"fePointLight","fespecularlighting":"feSpecularLighting","fespotlight":"feSpotLight","fetile":"feTile","feturbulence":"feTurbulence","foreignobject":"foreignObject","glyphref":"glyphRef","lineargradient":"linearGradient","radialgradient":"radialGradient","textpath":"textPath"},"attributeNames":{"definitionurl":"definitionURL","attributename":"attributeName","attributetype":"attributeType","basefrequency":"baseFrequency","baseprofile":"baseProfile","calcmode":"calcMode","clippathunits":"clipPathUnits","diffuseconstant":"diffuseConstant","edgemode":"edgeMode","filterunits":"filterUnits","glyphref":"glyphRef","gradienttransform":"gradientTransform","gradientunits":"gradientUnits","kernelmatrix":"kernelMatrix","kernelunitlength":"kernelUnitLength","keypoints":"keyPoints","keysplines":"keySplines","keytimes":"keyTimes","lengthadjust":"lengthAdjust","limitingconeangle":"limitingConeAngle","markerheight":"markerHeight","markerunits":"markerUnits","markerwidth":"markerWidth","maskcontentunits":"maskContentUnits","maskunits":"maskUnits","numoctaves":"numOctaves","pathlength":"pathLength","patterncontentunits":"patternContentUnits","patterntransform":"patternTransform","patternunits":"patternUnits","pointsatx":"pointsAtX","pointsaty":"pointsAtY","pointsatz":"pointsAtZ","preservealpha":"preserveAlpha","preserveaspectratio":"preserveAspectRatio","primitiveunits":"primitiveUnits","refx":"refX","refy":"refY","repeatcount":"repeatCount","repeatdur":"repeatDur","requiredextensions":"requiredExtensions","requiredfeatures":"requiredFeatures","specularconstant":"specularConstant","specularexponent":"specularExponent","spreadmethod":"spreadMethod","startoffset":"startOffset","stddeviation":"stdDeviation","stitchtiles":"stitchTiles","surfacescale":"surfaceScale","systemlanguage":"systemLanguage","tablevalues":"tableValues","targetx":"targetX","targety":"targetY","textlength":"textLength","viewbox":"viewBox","viewtarget":"viewTarget","xchannelselector":"xChannelSelector","ychannelselector":"yChannelSelector","zoomandpan":"zoomAndPan"}}')},245:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return null}},251:(t,e)=>{e.read=function(t,e,n,r,a){var i,s,o=8*a-r-1,l=(1<<o)-1,c=l>>1,u=-7,d=n?a-1:0,f=n?-1:1,p=t[e+d];for(d+=f,i=p&(1<<-u)-1,p>>=-u,u+=o;u>0;i=256*i+t[e+d],d+=f,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=r;u>0;s=256*s+t[e+d],d+=f,u-=8);if(0===i)i=1-c;else{if(i===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),i-=c}return(p?-1:1)*s*Math.pow(2,i-r)},e.write=function(t,e,n,r,a,i){var s,o,l,c=8*i-a-1,u=(1<<c)-1,d=u>>1,f=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),(e+=s+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=u?(o=0,s=u):s+d>=1?(o=(e*l-1)*Math.pow(2,a),s+=d):(o=e*Math.pow(2,d-1)*Math.pow(2,a),s=0));a>=8;t[n+p]=255&o,p+=h,o/=256,a-=8);for(s=s<<a|o,c+=a;c>0;t[n+p]=255&s,p+=h,s/=256,c-=8);t[n+p-h]|=128*m}},334:(t,e,n)=>{"use strict";n(1474),n(8710),n(8659);var r,a=(r=n(4782))&&r.__esModule?r:{default:r};e.Ay=a.default},718:(t,e,n)=>{var r=n(1021).isTag;function a(t,e,n,r){for(var i,s=[],o=0,l=e.length;o<l&&!(t(e[o])&&(s.push(e[o]),--r<=0))&&(i=e[o].children,!(n&&i&&i.length>0&&(i=a(t,i,n,r),s=s.concat(i),(r-=i.length)<=0)));o++);return s}t.exports={filter:function(t,e,n,r){return Array.isArray(e)||(e=[e]),"number"==typeof r&&isFinite(r)||(r=1/0),a(t,e,!1!==n,r)},find:a,findOneChild:function(t,e){for(var n=0,r=e.length;n<r;n++)if(t(e[n]))return e[n];return null},findOne:function t(e,n){for(var a=null,i=0,s=n.length;i<s&&!a;i++)r(n[i])&&(e(n[i])?a=n[i]:n[i].children.length>0&&(a=t(e,n[i].children)));return a},existsOne:function t(e,n){for(var a=0,i=n.length;a<i;a++)if(r(n[a])&&(e(n[a])||n[a].children.length>0&&t(e,n[a].children)))return!0;return!1},findAll:function(t,e){for(var n=[],a=e.slice();a.length;){var i=a.shift();r(i)&&(i.children&&i.children.length>0&&a.unshift.apply(a,i.children),t(i)&&n.push(i))}return n}}},882:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.default=function(t,e){var n=r({},(0,a.default)(t),{key:e});return"string"==typeof n.style||n.style instanceof String?n.style=(0,i.default)(n.style):delete n.style,n};var a=s(n(8564)),i=s(n(4732));function s(t){return t&&t.__esModule?t:{default:t}}},1020:(t,e,n)=>{"use strict";var r=n(1609),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(u=e.ref),e)s.call(e,r)&&!l.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps)void 0===i[r]&&(i[r]=e[r]);return{$$typeof:a,type:t,key:c,ref:u,props:i,_owner:o.current}}e.Fragment=i,e.jsx=c,e.jsxs=c},1021:t=>{t.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:function(t){return"tag"===t.type||"script"===t.type||"style"===t.type}}},1153:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var r=n(6243),a=n(6095);e.decode=function(t,e){return(!e||e<=0?r.decodeXML:r.decodeHTML)(t)},e.decodeStrict=function(t,e){return(!e||e<=0?r.decodeXML:r.decodeHTMLStrict)(t)},e.encode=function(t,e){return(!e||e<=0?a.encodeXML:a.encodeHTML)(t)};var i=n(6095);Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return i.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return i.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return i.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return i.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return i.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return i.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return i.encodeHTML}});var s=n(6243);Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return s.decodeXML}})},1401:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={accept:"accept","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",alt:"alt",as:"as",async:"async",autocomplete:"autoComplete",autoplay:"autoPlay",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",challenge:"challenge",checked:"checked",cite:"cite",classid:"classID",class:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlsList:"controlsList",coords:"coords",crossorigin:"crossOrigin",data:"data",datetime:"dateTime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"encType",form:"form",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",for:"htmlFor","http-equiv":"httpEquiv",icon:"icon",id:"id",inputmode:"inputMode",integrity:"integrity",is:"is",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginHeight",marginwidth:"marginWidth",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",slot:"slot",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",datatype:"datatype",inlist:"inlist",prefix:"prefix",property:"property",resource:"resource",typeof:"typeof",vocab:"vocab",autocapitalize:"autoCapitalize",autocorrect:"autoCorrect",autosave:"autoSave",color:"color",itemprop:"itemProp",itemscope:"itemScope",itemtype:"itemType",itemid:"itemID",itemref:"itemRef",results:"results",security:"security",unselectable:"unselectable"}},1474:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t.filter(function(t){return!(0,r.default)(t)}).map(function(t,n){var r=void 0;return"function"!=typeof e||null!==(r=e(t,n))&&!r?(0,a.default)(t,n,e):r})};var r=i(n(8374)),a=i(n(8710));function i(t){return t&&t.__esModule?t:{default:t}}},1609:t=>{"use strict";t.exports=window.React},1658:(t,e,n)=>{var r=n(7082),a=n(1153),i=n(219);i.elementNames.__proto__=null,i.attributeNames.__proto__=null;var s={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0},o={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},l=t.exports=function(t,e){Array.isArray(t)||t.cheerio||(t=[t]),e=e||{};for(var n="",a=0;a<t.length;a++){var i=t[a];"root"===i.type?n+=l(i.children,e):r.isTag(i)?n+=u(i,e):i.type===r.Directive?n+=d(i):i.type===r.Comment?n+=h(i):i.type===r.CDATA?n+=p(i):n+=f(i,e)}return n},c=["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"];function u(t,e){"foreign"===e.xmlMode&&(t.name=i.elementNames[t.name]||t.name,t.parent&&c.indexOf(t.parent.name)>=0&&(e=Object.assign({},e,{xmlMode:!1}))),!e.xmlMode&&["svg","math"].indexOf(t.name)>=0&&(e=Object.assign({},e,{xmlMode:"foreign"}));var n="<"+t.name,r=function(t,e){if(t){var n,r="";for(var s in t)n=t[s],r&&(r+=" "),"foreign"===e.xmlMode&&(s=i.attributeNames[s]||s),r+=s,(null!==n&&""!==n||e.xmlMode)&&(r+='="'+(e.decodeEntities?a.encodeXML(n):n.replace(/\"/g,"""))+'"');return r}}(t.attribs,e);return r&&(n+=" "+r),!e.xmlMode||t.children&&0!==t.children.length?(n+=">",t.children&&(n+=l(t.children,e)),o[t.name]&&!e.xmlMode||(n+="</"+t.name+">")):n+="/>",n}function d(t){return"<"+t.data+">"}function f(t,e){var n=t.data||"";return!e.decodeEntities||t.parent&&t.parent.name in s||(n=a.encodeXML(n)),n}function p(t){return"<![CDATA["+t.children[0].data+"]]>"}function h(t){return"\x3c!--"+t.data+"--\x3e"}},1724:(t,e,n)=>{var r=n(7918),a={input:!0,option:!0,optgroup:!0,select:!0,button:!0,datalist:!0,textarea:!0},i={tr:{tr:!0,th:!0,td:!0},th:{th:!0},td:{thead:!0,th:!0,td:!0},body:{head:!0,link:!0,script:!0},li:{li:!0},p:{p:!0},h1:{p:!0},h2:{p:!0},h3:{p:!0},h4:{p:!0},h5:{p:!0},h6:{p:!0},select:a,input:a,output:a,button:a,datalist:a,textarea:a,option:{option:!0},optgroup:{optgroup:!0}},s={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},o={__proto__:null,math:!0,svg:!0},l={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0,foreignObject:!0,desc:!0,title:!0},c=/\s|\//;function u(t,e){this._options=e||{},this._cbs=t||{},this._tagname="",this._attribname="",this._attribvalue="",this._attribs=null,this._stack=[],this._foreignContext=[],this.startIndex=0,this.endIndex=null,this._lowerCaseTagNames="lowerCaseTags"in this._options?!!this._options.lowerCaseTags:!this._options.xmlMode,this._lowerCaseAttributeNames="lowerCaseAttributeNames"in this._options?!!this._options.lowerCaseAttributeNames:!this._options.xmlMode,this._options.Tokenizer&&(r=this._options.Tokenizer),this._tokenizer=new r(this._options,this),this._cbs.onparserinit&&this._cbs.onparserinit(this)}n(6698)(u,n(7007).EventEmitter),u.prototype._updatePosition=function(t){null===this.endIndex?this._tokenizer._sectionStart<=t?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-t:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},u.prototype.ontext=function(t){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(t)},u.prototype.onopentagname=function(t){if(this._lowerCaseTagNames&&(t=t.toLowerCase()),this._tagname=t,!this._options.xmlMode&&t in i)for(var e;(e=this._stack[this._stack.length-1])in i[t];this.onclosetag(e));!this._options.xmlMode&&t in s||(this._stack.push(t),t in o?this._foreignContext.push(!0):t in l&&this._foreignContext.push(!1)),this._cbs.onopentagname&&this._cbs.onopentagname(t),this._cbs.onopentag&&(this._attribs={})},u.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&this._tagname in s&&this._cbs.onclosetag(this._tagname),this._tagname=""},u.prototype.onclosetag=function(t){if(this._updatePosition(1),this._lowerCaseTagNames&&(t=t.toLowerCase()),(t in o||t in l)&&this._foreignContext.pop(),!this._stack.length||t in s&&!this._options.xmlMode)this._options.xmlMode||"br"!==t&&"p"!==t||(this.onopentagname(t),this._closeCurrentTag());else{var e=this._stack.lastIndexOf(t);if(-1!==e)if(this._cbs.onclosetag)for(e=this._stack.length-e;e--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=e;else"p"!==t||this._options.xmlMode||(this.onopentagname(t),this._closeCurrentTag())}},u.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing||this._foreignContext[this._foreignContext.length-1]?this._closeCurrentTag():this.onopentagend()},u.prototype._closeCurrentTag=function(){var t=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===t&&(this._cbs.onclosetag&&this._cbs.onclosetag(t),this._stack.pop())},u.prototype.onattribname=function(t){this._lowerCaseAttributeNames&&(t=t.toLowerCase()),this._attribname=t},u.prototype.onattribdata=function(t){this._attribvalue+=t},u.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},u.prototype._getInstructionName=function(t){var e=t.search(c),n=e<0?t:t.substr(0,e);return this._lowerCaseTagNames&&(n=n.toLowerCase()),n},u.prototype.ondeclaration=function(t){if(this._cbs.onprocessinginstruction){var e=this._getInstructionName(t);this._cbs.onprocessinginstruction("!"+e,"!"+t)}},u.prototype.onprocessinginstruction=function(t){if(this._cbs.onprocessinginstruction){var e=this._getInstructionName(t);this._cbs.onprocessinginstruction("?"+e,"?"+t)}},u.prototype.oncomment=function(t){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(t),this._cbs.oncommentend&&this._cbs.oncommentend()},u.prototype.oncdata=function(t){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(t),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+t+"]]")},u.prototype.onerror=function(t){this._cbs.onerror&&this._cbs.onerror(t)},u.prototype.onend=function(){if(this._cbs.onclosetag)for(var t=this._stack.length;t>0;this._cbs.onclosetag(this._stack[--t]));this._cbs.onend&&this._cbs.onend()},u.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},u.prototype.parseComplete=function(t){this.reset(),this.end(t)},u.prototype.write=function(t){this._tokenizer.write(t)},u.prototype.end=function(t){this._tokenizer.end(t)},u.prototype.pause=function(){this._tokenizer.pause()},u.prototype.resume=function(){this._tokenizer.resume()},u.prototype.parseChunk=u.prototype.write,u.prototype.done=u.prototype.end,t.exports=u},1810:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["allowfullScreen","async","autoplay","capture","checked","controls","default","defer","disabled","formnovalidate","hidden","loop","multiple","muted","novalidate","open","playsinline","readonly","required","reversed","scoped","seamless","selected","itemscope"]},1994:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return r.hasOwnProperty(t)||(r[t]=n.test(t)),r[t]};var n=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,r={}},2200:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var l=t.name;if(!(0,o.default)(l))return null;var c=(0,i.default)(t.attribs,e),u=null;return-1===s.default.indexOf(l)&&(u=(0,a.default)(t.children,n)),r.default.createElement(l,c,u)};var r=l(n(1609)),a=l(n(1474)),i=l(n(882)),s=l(n(6632)),o=l(n(1994));function l(t){return t&&t.__esModule?t:{default:t}}},2267:(t,e,n)=>{function r(t){this._cbs=t||{}}t.exports=r;var a=n(8659).EVENTS;Object.keys(a).forEach(function(t){if(0===a[t])t="on"+t,r.prototype[t]=function(){this._cbs[t]&&this._cbs[t]()};else if(1===a[t])t="on"+t,r.prototype[t]=function(e){this._cbs[t]&&this._cbs[t](e)};else{if(2!==a[t])throw Error("wrong number of arguments");t="on"+t,r.prototype[t]=function(e,n){this._cbs[t]&&this._cbs[t](e,n)}}})},2311:(t,e,n)=>{var r=n(6189),a=n(9564);function i(t,e){this.init(t,e)}function s(t,e){return a.getElementsByTagName(t,e,!0)}function o(t,e){return a.getElementsByTagName(t,e,!0,1)[0]}function l(t,e,n){return a.getText(a.getElementsByTagName(t,e,n,1)).trim()}function c(t,e,n,r,a){var i=l(n,r,a);i&&(t[e]=i)}n(6698)(i,r),i.prototype.init=r;var u=function(t){return"rss"===t||"feed"===t||"rdf:RDF"===t};i.prototype.onend=function(){var t,e,n={},a=o(u,this.dom);a&&("feed"===a.name?(e=a.children,n.type="atom",c(n,"id","id",e),c(n,"title","title",e),(t=o("link",e))&&(t=t.attribs)&&(t=t.href)&&(n.link=t),c(n,"description","subtitle",e),(t=l("updated",e))&&(n.updated=new Date(t)),c(n,"author","email",e,!0),n.items=s("entry",e).map(function(t){var e,n={};return c(n,"id","id",t=t.children),c(n,"title","title",t),(e=o("link",t))&&(e=e.attribs)&&(e=e.href)&&(n.link=e),(e=l("summary",t)||l("content",t))&&(n.description=e),(e=l("updated",t))&&(n.pubDate=new Date(e)),n})):(e=o("channel",a.children).children,n.type=a.name.substr(0,3),n.id="",c(n,"title","title",e),c(n,"link","link",e),c(n,"description","description",e),(t=l("lastBuildDate",e))&&(n.updated=new Date(t)),c(n,"author","managingEditor",e,!0),n.items=s("item",a.children).map(function(t){var e,n={};return c(n,"id","guid",t=t.children),c(n,"title","title",t),c(n,"link","link",t),c(n,"description","description",t),(e=l("pubDate",t))&&(n.pubDate=new Date(e)),n}))),this.dom=n,r.prototype._handleCallback.call(this,a?null:Error("couldn't find root of feed"))},t.exports=i},2799:(t,e,n)=>{t.exports=o;var r=n(1724),a=n(5098).Writable,i=n(3141).I,s=n(8287).Buffer;function o(t,e){var n=this._parser=new r(t,e),s=this._decoder=new i;a.call(this,{decodeStrings:!1}),this.once("finish",function(){n.end(s.end())})}n(6698)(o,a),o.prototype._write=function(t,e,n){t instanceof s&&(t=this._decoder.write(t)),this._parser.write(t),n()}},2861:(t,e,n)=>{var r=n(8287),a=r.Buffer;function i(t,e){for(var n in t)e[n]=t[n]}function s(t,e,n){return a(t,e,n)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?t.exports=r:(i(r,e),e.Buffer=s),s.prototype=Object.create(a.prototype),i(a,s),s.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return a(t,e,n)},s.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=a(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return a(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},2978:(t,e,n)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0});var a=n(8659),i=c(n(6739)),s=c(n(2200)),o=c(n(6683)),l=c(n(245));function c(t){return t&&t.__esModule?t:{default:t}}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.default=(u(r={},a.ElementType.Text,i.default),u(r,a.ElementType.Tag,s.default),u(r,a.ElementType.Style,o.default),u(r,a.ElementType.Directive,l.default),u(r,a.ElementType.Comment,l.default),u(r,a.ElementType.Script,l.default),u(r,a.ElementType.CDATA,l.default),u(r,a.ElementType.Doctype,l.default),r)},3072:(t,e)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,o=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case u:case d:case i:case o:case s:case p:return t;default:switch(t=t&&t.$$typeof){case c:case f:case v:case m:case l:return t;default:return e}}case a:return e}}}function C(t){return x(t)===d}e.AsyncMode=u,e.ConcurrentMode=d,e.ContextConsumer=c,e.ContextProvider=l,e.Element=r,e.ForwardRef=f,e.Fragment=i,e.Lazy=v,e.Memo=m,e.Portal=a,e.Profiler=o,e.StrictMode=s,e.Suspense=p,e.isAsyncMode=function(t){return C(t)||x(t)===u},e.isConcurrentMode=C,e.isContextConsumer=function(t){return x(t)===c},e.isContextProvider=function(t){return x(t)===l},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return x(t)===f},e.isFragment=function(t){return x(t)===i},e.isLazy=function(t){return x(t)===v},e.isMemo=function(t){return x(t)===m},e.isPortal=function(t){return x(t)===a},e.isProfiler=function(t){return x(t)===o},e.isStrictMode=function(t){return x(t)===s},e.isSuspense=function(t){return x(t)===p},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===d||t===o||t===s||t===p||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===v||t.$$typeof===m||t.$$typeof===l||t.$$typeof===c||t.$$typeof===f||t.$$typeof===y||t.$$typeof===b||t.$$typeof===w||t.$$typeof===g)},e.typeOf=x},3141:(t,e,n)=>{"use strict";var r=n(2861).Buffer,a=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===a||!a(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=c,e=4;break;case"utf8":this.fillLast=o,e=4;break;case"base64":this.text=u,this.end=d,e=3;break;default:return this.write=f,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function o(t){var e=this.lastTotal-this.lastNeed,n=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function u(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function d(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function f(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):""}e.I=i,i.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},i.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},i.prototype.text=function(t,e){var n=function(t,e,n){var r=e.length-1;if(r<n)return 0;var a=s(e[r]);return a>=0?(a>0&&(t.lastNeed=a-1),a):--r<n||-2===a?0:(a=s(e[r]))>=0?(a>0&&(t.lastNeed=a-2),a):--r<n||-2===a?0:(a=s(e[r]))>=0?(a>0&&(2===a?a=0:t.lastNeed=a-3),a):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},i.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},3209:(t,e,n)=>{var r=n(1021),a=e.isTag=r.isTag;e.testElement=function(t,e){for(var n in t)if(t.hasOwnProperty(n))if("tag_name"===n){if(!a(e)||!t.tag_name(e.name))return!1}else if("tag_type"===n){if(!t.tag_type(e.type))return!1}else if("tag_contains"===n){if(a(e)||!t.tag_contains(e.data))return!1}else if(!e.attribs||!t[n](e.attribs[n]))return!1;return!0};var i={tag_name:function(t){return"function"==typeof t?function(e){return a(e)&&t(e.name)}:"*"===t?a:function(e){return a(e)&&e.name===t}},tag_type:function(t){return"function"==typeof t?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return"function"==typeof t?function(e){return!a(e)&&t(e.data)}:function(e){return!a(e)&&e.data===t}}};function s(t,e){return"function"==typeof e?function(n){return n.attribs&&e(n.attribs[t])}:function(n){return n.attribs&&n.attribs[t]===e}}function o(t,e){return function(n){return t(n)||e(n)}}e.getElements=function(t,e,n,r){var a=Object.keys(t).map(function(e){var n=t[e];return e in i?i[e](n):s(e,n)});return 0===a.length?[]:this.filter(a.reduce(o),e,n,r)},e.getElementById=function(t,e,n){return Array.isArray(e)||(e=[e]),this.findOne(s("id",t),e,!1!==n)},e.getElementsByTagName=function(t,e,n,r){return this.filter(i.tag_name(t),e,n,r)},e.getElementsByTagType=function(t,e,n,r){return this.filter(i.tag_type(t),e,n,r)}},3403:(t,e)=>{e.removeElement=function(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children;e.splice(e.lastIndexOf(t),1)}},e.replaceElement=function(t,e){var n=e.prev=t.prev;n&&(n.next=e);var r=e.next=t.next;r&&(r.prev=e);var a=e.parent=t.parent;if(a){var i=a.children;i[i.lastIndexOf(t)]=e}},e.appendChild=function(t,e){if(e.parent=t,1!==t.children.push(e)){var n=t.children[t.children.length-2];n.next=e,e.prev=n,e.next=null}},e.append=function(t,e){var n=t.parent,r=t.next;if(e.next=r,e.prev=t,t.next=e,e.parent=n,r){if(r.prev=e,n){var a=n.children;a.splice(a.lastIndexOf(r),0,e)}}else n&&n.children.push(e)},e.prepend=function(t,e){var n=t.parent;if(n){var r=n.children;r.splice(r.lastIndexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=n,e.prev=t.prev,e.next=t,t.prev=e}},3404:(t,e,n)=>{"use strict";t.exports=n(3072)},3737:t=>{"use strict";t.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},4146:(t,e,n)=>{"use strict";var r=n(3404),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(t){return r.isMemo(t)?s:o[t.$$typeof]||a}o[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(h){var a=p(n);a&&a!==h&&t(e,a,r)}var s=u(n);d&&(s=s.concat(d(n)));for(var o=l(e),m=l(n),v=0;v<s.length;++v){var g=s[v];if(!(i[g]||r&&r[g]||m&&m[g]||o&&o[g])){var y=f(n,g);try{c(e,g,y)}catch(t){}}}}return e}},4331:t=>{"use strict";t.exports=JSON.parse('{"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}')},4645:t=>{"use strict";t.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"","InvisibleTimes":"","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"","NegativeThickSpace":"","NegativeThinSpace":"","NegativeVeryThinSpace":"","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":" ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"","zwnj":""}')},4732:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""===t?{}:t.split(";").reduce(function(t,e){var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],_n=!0,r=!1,a=void 0;try{for(var i,s=t[Symbol.iterator]();!(_n=(i=s.next()).done)&&(n.push(i.value),!e||n.length!==e);_n=!0);}catch(t){r=!0,a=t}finally{try{!_n&&s.return&&s.return()}finally{if(r)throw a}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e.split(/^([^:]+):/).filter(function(t,e){return e>0}).map(function(t){return t.trim().toLowerCase()}),2),r=n[0],a=n[1];return void 0===a||(t[r=r.replace(/^-ms-/,"ms-").replace(/-(.)/g,function(t,e){return e.toUpperCase()})]=a),t},{})}},4737:(t,e,n)=>{"use strict";n(8989)},4765:()=>{window.astWpMenuClassChange=function(t){const e={"custom-layouts":"custom-layouts",spectra:"spectra",woocommerce:"woocommerce"},n=`admin.php?page=${astra_admin.home_slug}${e[t]?`&path=${e[t]}`:""}`,r={settings:"ast-admin-settings-page",woocommerce:"ast-admin-extensions-page","starter-templates":"ast-admin-starter-page"};document.body.classList.remove(...Object.values(r)),r[t]&&document.body.classList.add(r[t]),document.querySelectorAll(".wp-submenu .current").forEach(t=>t.classList.remove("current")),document.querySelectorAll(`.wp-submenu-wrap li > a[href$="${n}"]`).forEach(t=>t.parentElement.classList.add("current"))}},4782:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.decodeEntities,i=void 0===n||n,s=e.transform,o=e.preprocessNodes,l=(void 0===o?function(t){return t}:o)(r.default.parseDOM(t,{decodeEntities:i}));return(0,a.default)(l,s)};var r=i(n(8659)),a=i(n(1474));function i(t){return t&&t.__esModule?t:{default:t}}},4848:(t,e,n)=>{"use strict";t.exports=n(1020)},5096:(t,e,n)=>{var r=n(4331);t.exports=function(t){if(t>=55296&&t<=57343||t>1114111)return"�";t in r&&(t=r[t]);var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+String.fromCharCode(t)}},5098:()=>{},5338:(t,e,n)=>{"use strict";var r=n(5795);e.H=r.createRoot,r.hydrateRoot},5397:(t,e)=>{e.removeSubsets=function(t){for(var e,n,r,a=t.length;--a>-1;){for(e=n=t[a],t[a]=null,r=!0;n;){if(t.indexOf(n)>-1){r=!1,t.splice(a,1);break}n=n.parent}r&&(t[a]=e)}return t};var n=e.compareDocumentPosition=function(t,e){var n,r,a,i,s,o,l=[],c=[];if(t===e)return 0;for(n=t;n;)l.unshift(n),n=n.parent;for(n=e;n;)c.unshift(n),n=n.parent;for(o=0;l[o]===c[o];)o++;return 0===o?1:(a=(r=l[o-1]).children,i=l[o],s=c[o],a.indexOf(i)>a.indexOf(s)?r===e?20:4:r===t?10:2)};e.uniqueSort=function(t){var e,r,a=t.length;for(t=t.slice();--a>-1;)e=t[a],(r=t.indexOf(e))>-1&&r<a&&t.splice(a,1);return t.sort(function(t,e){var r=n(t,e);return 2&r?-1:4&r?1:0}),t}},5458:t=>{"use strict";t.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"","InvisibleTimes":"","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"","NegativeThickSpace":"","NegativeThinSpace":"","NegativeVeryThinSpace":"","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":" ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"","zwnj":""}')},5795:t=>{"use strict";t.exports=window.ReactDOM},6037:(t,e,n)=>{var r=n(1021),a=n(1658),i=r.isTag;t.exports={getInnerHTML:function(t,e){return t.children?t.children.map(function(t){return a(t,e)}).join(""):""},getOuterHTML:a,getText:function t(e){return Array.isArray(e)?e.map(t).join(""):i(e)?"br"===e.name?"\n":t(e.children):e.type===r.CDATA?t(e.children):e.type===r.Text?e.data:""}}},6095:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var a=u(r(n(6867)).default),i=d(a);e.encodeXML=v(a);var s,o,l=u(r(n(4645)).default),c=d(l);function u(t){return Object.keys(t).sort().reduce(function(e,n){return e[t[n]]="&"+n+";",e},{})}function d(t){for(var e=[],n=[],r=0,a=Object.keys(t);r<a.length;r++){var i=a[r];1===i.length?e.push("\\"+i):n.push(i)}e.sort();for(var s=0;s<e.length-1;s++){for(var o=s;o<e.length-1&&e[o].charCodeAt(1)+1===e[o+1].charCodeAt(1);)o+=1;var l=1+o-s;l<3||e.splice(s,l,e[s]+"-"+e[o])}return n.unshift("["+e.join("")+"]"),new RegExp(n.join("|"),"g")}e.encodeHTML=(s=l,o=c,function(t){return t.replace(o,function(t){return s[t]}).replace(f,h)}),e.encodeNonAsciiHTML=v(l);var f=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,p=null!=String.prototype.codePointAt?function(t){return t.codePointAt(0)}:function(t){return 1024*(t.charCodeAt(0)-55296)+t.charCodeAt(1)-56320+65536};function h(t){return"&#x"+(t.length>1?p(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}var m=new RegExp(i.source+"|"+f.source,"g");function v(t){return function(e){return e.replace(m,function(e){return t[e]||h(e)})}}e.escape=function(t){return t.replace(m,h)},e.escapeUTF8=function(t){return t.replace(i,h)}},6189:(t,e,n)=>{var r=n(1021),a=/\s+/g,i=n(6957),s=n(6433);function o(t,e,n){"object"==typeof t?(n=e,e=t,t=null):"function"==typeof e&&(n=e,e=l),this._callback=t,this._options=e||l,this._elementCB=n,this.dom=[],this._done=!1,this._tagStack=[],this._parser=this._parser||null}var l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1};o.prototype.onparserinit=function(t){this._parser=t},o.prototype.onreset=function(){o.call(this,this._callback,this._options,this._elementCB)},o.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this._handleCallback(null))},o.prototype._handleCallback=o.prototype.onerror=function(t){if("function"==typeof this._callback)this._callback(t,this.dom);else if(t)throw t},o.prototype.onclosetag=function(){var t=this._tagStack.pop();this._options.withEndIndices&&t&&(t.endIndex=this._parser.endIndex),this._elementCB&&this._elementCB(t)},o.prototype._createDomElement=function(t){if(!this._options.withDomLvl1)return t;var e;for(var n in e="tag"===t.type?Object.create(s):Object.create(i),t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},o.prototype._addDomElement=function(t){var e=this._tagStack[this._tagStack.length-1],n=e?e.children:this.dom,r=n[n.length-1];t.next=null,this._options.withStartIndices&&(t.startIndex=this._parser.startIndex),this._options.withEndIndices&&(t.endIndex=this._parser.endIndex),r?(t.prev=r,r.next=t):t.prev=null,n.push(t),t.parent=e||null},o.prototype.onopentag=function(t,e){var n={type:"script"===t?r.Script:"style"===t?r.Style:r.Tag,name:t,attribs:e,children:[]},a=this._createDomElement(n);this._addDomElement(a),this._tagStack.push(a)},o.prototype.ontext=function(t){var e,n=this._options.normalizeWhitespace||this._options.ignoreWhitespace;if(!this._tagStack.length&&this.dom.length&&(e=this.dom[this.dom.length-1]).type===r.Text)n?e.data=(e.data+t).replace(a," "):e.data+=t;else if(this._tagStack.length&&(e=this._tagStack[this._tagStack.length-1])&&(e=e.children[e.children.length-1])&&e.type===r.Text)n?e.data=(e.data+t).replace(a," "):e.data+=t;else{n&&(t=t.replace(a," "));var i=this._createDomElement({data:t,type:r.Text});this._addDomElement(i)}},o.prototype.oncomment=function(t){var e=this._tagStack[this._tagStack.length-1];if(e&&e.type===r.Comment)e.data+=t;else{var n={data:t,type:r.Comment},a=this._createDomElement(n);this._addDomElement(a),this._tagStack.push(a)}},o.prototype.oncdatastart=function(){var t={children:[{data:"",type:r.Text}],type:r.CDATA},e=this._createDomElement(t);this._addDomElement(e),this._tagStack.push(e)},o.prototype.oncommentend=o.prototype.oncdataend=function(){this._tagStack.pop()},o.prototype.onprocessinginstruction=function(t,e){var n=this._createDomElement({name:t,data:e,type:r.Directive});this._addDomElement(n)},t.exports=o},6243:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var a=r(n(4645)),i=r(n(3737)),s=r(n(6867)),o=r(n(8873)),l=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function c(t){var e=d(t);return function(t){return String(t).replace(l,e)}}e.decodeXML=c(s.default),e.decodeHTMLStrict=c(a.default);var u=function(t,e){return t<e?1:-1};function d(t){return function(e){if("#"===e.charAt(1)){var n=e.charAt(2);return"X"===n||"x"===n?o.default(parseInt(e.substr(3),16)):o.default(parseInt(e.substr(2),10))}return t[e.slice(1,-1)]||e}}e.decodeHTML=function(){for(var t=Object.keys(i.default).sort(u),e=Object.keys(a.default).sort(u),n=0,r=0;n<e.length;n++)t[r]===e[n]?(e[n]+=";?",r++):e[n]+=";";var s=new RegExp("&(?:"+e.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),o=d(a.default);function l(t){return";"!==t.substr(-1)&&(t+=";"),o(t)}return function(t){return String(t).replace(s,l)}}()},6433:(t,e,n)=>{var r=n(6957),a=t.exports=Object.create(r),i={tagName:"name"};Object.keys(i).forEach(function(t){var e=i[t];Object.defineProperty(a,t,{get:function(){return this[e]||null},set:function(t){return this[e]=t,t}})})},6632:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]},6683:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=void 0;t.children.length>0&&(n=t.children[0].data);var i=(0,a.default)(t.attribs,e);return r.default.createElement("style",i,n)};var r=i(n(1609)),a=i(n(882));function i(t){return t&&t.__esModule?t:{default:t}}},6698:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},6739:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.data}},6867:t=>{"use strict";t.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},6952:t=>{"use strict";t.exports=JSON.parse('{"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}')},6957:t=>{var e=t.exports={get firstChild(){var t=this.children;return t&&t[0]||null},get lastChild(){var t=this.children;return t&&t[t.length-1]||null},get nodeType(){return r[this.type]||r.element}},n={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},r={element:1,text:3,cdata:4,comment:8};Object.keys(n).forEach(function(t){var r=n[t];Object.defineProperty(e,t,{get:function(){return this[r]||null},set:function(t){return this[r]=t,t}})})},6982:t=>{"use strict";t.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},7007:t=>{"use strict";var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(t,e){return new Promise(function(n,r){function a(n){t.removeListener(e,i),r(n)}function i(){"function"==typeof t.removeListener&&t.removeListener("error",a),n([].slice.call(arguments))}m(t,e,i,{once:!0}),"error"!==e&&function(t,e){"function"==typeof t.on&&m(t,"error",e,{once:!0})}(t,a)})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function o(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function l(t){return void 0===t._maxListeners?i.defaultMaxListeners:t._maxListeners}function c(t,e,n,r){var a,i,s,c;if(o(n),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),i=t._events),s=i[e]),void 0===s)s=i[e]=n,++t._eventsCount;else if("function"==typeof s?s=i[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(a=l(t))>0&&s.length>a&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=s.length,c=u,console&&console.warn&&console.warn(c)}return t}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},a=u.bind(r);return a.listener=n,r.wrapFn=a,a}function f(t,e,n){var r=t._events;if(void 0===r)return[];var a=r[e];return void 0===a?[]:"function"==typeof a?n?[a.listener||a]:[a]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(a):h(a,a.length)}function p(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function m(t,e,n,r){if("function"==typeof t.on)r.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,function a(i){r.once&&t.removeEventListener(e,a),n(i)})}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var a="error"===t,i=this._events;if(void 0!==i)a=a&&void 0===i.error;else if(!a)return!1;if(a){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var l=i[t];if(void 0===l)return!1;if("function"==typeof l)r(l,this,e);else{var c=l.length,u=h(l,c);for(n=0;n<c;++n)r(u[n],this,e)}return!0},i.prototype.addListener=function(t,e){return c(this,t,e,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(t,e){return c(this,t,e,!0)},i.prototype.once=function(t,e){return o(e),this.on(t,d(this,t,e)),this},i.prototype.prependOnceListener=function(t,e){return o(e),this.prependListener(t,d(this,t,e)),this},i.prototype.removeListener=function(t,e){var n,r,a,i,s;if(o(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(a=-1,i=n.length-1;i>=0;i--)if(n[i]===e||n[i].listener===e){s=n[i].listener,a=i;break}if(a<0)return this;0===a?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,a),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var a,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(a=i[r])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},i.prototype.listeners=function(t){return f(this,t,!0)},i.prototype.rawListeners=function(t){return f(this,t,!1)},i.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},7082:(t,e)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0,function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"}(n=e.ElementType||(e.ElementType={})),e.isTag=function(t){return t.type===n.Tag||t.type===n.Script||t.type===n.Style},e.Root=n.Root,e.Text=n.Text,e.Directive=n.Directive,e.Comment=n.Comment,e.Script=n.Script,e.Style=n.Style,e.Tag=n.Tag,e.CDATA=n.CDATA,e.Doctype=n.Doctype},7526:(t,e)=>{"use strict";e.byteLength=function(t){var e=o(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,i=o(t),s=i[0],l=i[1],c=new a(function(t,e,n){return 3*(e+n)/4-n}(0,s,l)),u=0,d=l>0?s-4:s;for(n=0;n<d;n+=4)e=r[t.charCodeAt(n)]<<18|r[t.charCodeAt(n+1)]<<12|r[t.charCodeAt(n+2)]<<6|r[t.charCodeAt(n+3)],c[u++]=e>>16&255,c[u++]=e>>8&255,c[u++]=255&e;return 2===l&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,c[u++]=255&e),1===l&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e),c},e.fromByteArray=function(t){for(var e,r=t.length,a=r%3,i=[],s=16383,o=0,l=r-a;o<l;o+=s)i.push(c(t,o,o+s>l?l:o+s));return 1===a?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===a&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),i.join("")};for(var n=[],r=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)n[s]=i[s],r[i.charCodeAt(s)]=s;function o(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function c(t,e,n){for(var r,a=[],i=e;i<n;i+=3)r=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),a.push(l(r));return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},7918:(t,e,n)=>{t.exports=vt;var r=n(5096),a=n(5458),i=n(7966),s=n(6982),o=0,l=o++,c=o++,u=o++,d=o++,f=o++,p=o++,h=o++,m=o++,v=o++,g=o++,y=o++,b=o++,w=o++,x=o++,C=o++,A=o++,E=o++,L=o++,R=o++,V=o++,P=o++,N=o++,X=o++,T=o++,S=o++,z=o++,O=o++,M=o++,W=o++,j=o++,F=o++,q=o++,k=o++,D=o++,I=o++,Z=o++,H=o++,B=o++,G=o++,U=o++,Y=o++,K=o++,J=o++,Q=o++,_=o++,$=o++,tt=o++,et=o++,nt=o++,rt=o++,at=o++,it=o++,st=o++,ot=o++,lt=o++,ct=0,ut=ct++,dt=ct++,ft=ct++;function pt(t){return" "===t||"\n"===t||"\t"===t||"\f"===t||"\r"===t}function ht(t,e,n){var r=t.toLowerCase();return t===r?function(t){t===r?this._state=e:(this._state=n,this._index--)}:function(a){a===r||a===t?this._state=e:(this._state=n,this._index--)}}function mt(t,e){var n=t.toLowerCase();return function(r){r===n||r===t?this._state=e:(this._state=u,this._index--)}}function vt(t,e){this._state=l,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=l,this._special=ut,this._cbs=e,this._running=!0,this._ended=!1,this._xmlMode=!(!t||!t.xmlMode),this._decodeEntities=!(!t||!t.decodeEntities)}vt.prototype._stateText=function(t){"<"===t?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=c,this._sectionStart=this._index):this._decodeEntities&&this._special===ut&&"&"===t&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=l,this._state=at,this._sectionStart=this._index)},vt.prototype._stateBeforeTagName=function(t){"/"===t?this._state=f:"<"===t?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===t||this._special!==ut||pt(t)?this._state=l:"!"===t?(this._state=C,this._sectionStart=this._index+1):"?"===t?(this._state=E,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==t&&"S"!==t?u:F,this._sectionStart=this._index)},vt.prototype._stateInTagName=function(t){("/"===t||">"===t||pt(t))&&(this._emitToken("onopentagname"),this._state=m,this._index--)},vt.prototype._stateBeforeCloseingTagName=function(t){pt(t)||(">"===t?this._state=l:this._special!==ut?"s"===t||"S"===t?this._state=q:(this._state=l,this._index--):(this._state=p,this._sectionStart=this._index))},vt.prototype._stateInCloseingTagName=function(t){(">"===t||pt(t))&&(this._emitToken("onclosetag"),this._state=h,this._index--)},vt.prototype._stateAfterCloseingTagName=function(t){">"===t&&(this._state=l,this._sectionStart=this._index+1)},vt.prototype._stateBeforeAttributeName=function(t){">"===t?(this._cbs.onopentagend(),this._state=l,this._sectionStart=this._index+1):"/"===t?this._state=d:pt(t)||(this._state=v,this._sectionStart=this._index)},vt.prototype._stateInSelfClosingTag=function(t){">"===t?(this._cbs.onselfclosingtag(),this._state=l,this._sectionStart=this._index+1):pt(t)||(this._state=m,this._index--)},vt.prototype._stateInAttributeName=function(t){("="===t||"/"===t||">"===t||pt(t))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=g,this._index--)},vt.prototype._stateAfterAttributeName=function(t){"="===t?this._state=y:"/"===t||">"===t?(this._cbs.onattribend(),this._state=m,this._index--):pt(t)||(this._cbs.onattribend(),this._state=v,this._sectionStart=this._index)},vt.prototype._stateBeforeAttributeValue=function(t){'"'===t?(this._state=b,this._sectionStart=this._index+1):"'"===t?(this._state=w,this._sectionStart=this._index+1):pt(t)||(this._state=x,this._sectionStart=this._index,this._index--)},vt.prototype._stateInAttributeValueDoubleQuotes=function(t){'"'===t?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=m):this._decodeEntities&&"&"===t&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=at,this._sectionStart=this._index)},vt.prototype._stateInAttributeValueSingleQuotes=function(t){"'"===t?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=m):this._decodeEntities&&"&"===t&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=at,this._sectionStart=this._index)},vt.prototype._stateInAttributeValueNoQuotes=function(t){pt(t)||">"===t?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=m,this._index--):this._decodeEntities&&"&"===t&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=at,this._sectionStart=this._index)},vt.prototype._stateBeforeDeclaration=function(t){this._state="["===t?N:"-"===t?L:A},vt.prototype._stateInDeclaration=function(t){">"===t&&(this._cbs.ondeclaration(this._getSection()),this._state=l,this._sectionStart=this._index+1)},vt.prototype._stateInProcessingInstruction=function(t){">"===t&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=l,this._sectionStart=this._index+1)},vt.prototype._stateBeforeComment=function(t){"-"===t?(this._state=R,this._sectionStart=this._index+1):this._state=A},vt.prototype._stateInComment=function(t){"-"===t&&(this._state=V)},vt.prototype._stateAfterComment1=function(t){this._state="-"===t?P:R},vt.prototype._stateAfterComment2=function(t){">"===t?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=l,this._sectionStart=this._index+1):"-"!==t&&(this._state=R)},vt.prototype._stateBeforeCdata1=ht("C",X,A),vt.prototype._stateBeforeCdata2=ht("D",T,A),vt.prototype._stateBeforeCdata3=ht("A",S,A),vt.prototype._stateBeforeCdata4=ht("T",z,A),vt.prototype._stateBeforeCdata5=ht("A",O,A),vt.prototype._stateBeforeCdata6=function(t){"["===t?(this._state=M,this._sectionStart=this._index+1):(this._state=A,this._index--)},vt.prototype._stateInCdata=function(t){"]"===t&&(this._state=W)},vt.prototype._stateAfterCdata1=function(t){this._state="]"===t?j:M},vt.prototype._stateAfterCdata2=function(t){">"===t?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=l,this._sectionStart=this._index+1):"]"!==t&&(this._state=M)},vt.prototype._stateBeforeSpecial=function(t){"c"===t||"C"===t?this._state=k:"t"===t||"T"===t?this._state=J:(this._state=u,this._index--)},vt.prototype._stateBeforeSpecialEnd=function(t){this._special!==dt||"c"!==t&&"C"!==t?this._special!==ft||"t"!==t&&"T"!==t?this._state=l:this._state=tt:this._state=B},vt.prototype._stateBeforeScript1=mt("R",D),vt.prototype._stateBeforeScript2=mt("I",I),vt.prototype._stateBeforeScript3=mt("P",Z),vt.prototype._stateBeforeScript4=mt("T",H),vt.prototype._stateBeforeScript5=function(t){("/"===t||">"===t||pt(t))&&(this._special=dt),this._state=u,this._index--},vt.prototype._stateAfterScript1=ht("R",G,l),vt.prototype._stateAfterScript2=ht("I",U,l),vt.prototype._stateAfterScript3=ht("P",Y,l),vt.prototype._stateAfterScript4=ht("T",K,l),vt.prototype._stateAfterScript5=function(t){">"===t||pt(t)?(this._special=ut,this._state=p,this._sectionStart=this._index-6,this._index--):this._state=l},vt.prototype._stateBeforeStyle1=mt("Y",Q),vt.prototype._stateBeforeStyle2=mt("L",_),vt.prototype._stateBeforeStyle3=mt("E",$),vt.prototype._stateBeforeStyle4=function(t){("/"===t||">"===t||pt(t))&&(this._special=ft),this._state=u,this._index--},vt.prototype._stateAfterStyle1=ht("Y",et,l),vt.prototype._stateAfterStyle2=ht("L",nt,l),vt.prototype._stateAfterStyle3=ht("E",rt,l),vt.prototype._stateAfterStyle4=function(t){">"===t||pt(t)?(this._special=ut,this._state=p,this._sectionStart=this._index-5,this._index--):this._state=l},vt.prototype._stateBeforeEntity=ht("#",it,st),vt.prototype._stateBeforeNumericEntity=ht("X",lt,ot),vt.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+1<this._index){var t=this._buffer.substring(this._sectionStart+1,this._index),e=this._xmlMode?s:a;e.hasOwnProperty(t)&&(this._emitPartial(e[t]),this._sectionStart=this._index+1)}},vt.prototype._parseLegacyEntity=function(){var t=this._sectionStart+1,e=this._index-t;for(e>6&&(e=6);e>=2;){var n=this._buffer.substr(t,e);if(i.hasOwnProperty(n))return this._emitPartial(i[n]),void(this._sectionStart+=e+1);e--}},vt.prototype._stateInNamedEntity=function(t){";"===t?(this._parseNamedEntityStrict(),this._sectionStart+1<this._index&&!this._xmlMode&&this._parseLegacyEntity(),this._state=this._baseState):(t<"a"||t>"z")&&(t<"A"||t>"Z")&&(t<"0"||t>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==l?"="!==t&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},vt.prototype._decodeNumericEntity=function(t,e){var n=this._sectionStart+t;if(n!==this._index){var a=this._buffer.substring(n,this._index),i=parseInt(a,e);this._emitPartial(r(i)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},vt.prototype._stateInNumericEntity=function(t){";"===t?(this._decodeNumericEntity(2,10),this._sectionStart++):(t<"0"||t>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},vt.prototype._stateInHexEntity=function(t){";"===t?(this._decodeNumericEntity(3,16),this._sectionStart++):(t<"a"||t>"f")&&(t<"A"||t>"F")&&(t<"0"||t>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},vt.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(this._state===l?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},vt.prototype.write=function(t){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=t,this._parse()},vt.prototype._parse=function(){for(;this._index<this._buffer.length&&this._running;){var t=this._buffer.charAt(this._index);this._state===l?this._stateText(t):this._state===c?this._stateBeforeTagName(t):this._state===u?this._stateInTagName(t):this._state===f?this._stateBeforeCloseingTagName(t):this._state===p?this._stateInCloseingTagName(t):this._state===h?this._stateAfterCloseingTagName(t):this._state===d?this._stateInSelfClosingTag(t):this._state===m?this._stateBeforeAttributeName(t):this._state===v?this._stateInAttributeName(t):this._state===g?this._stateAfterAttributeName(t):this._state===y?this._stateBeforeAttributeValue(t):this._state===b?this._stateInAttributeValueDoubleQuotes(t):this._state===w?this._stateInAttributeValueSingleQuotes(t):this._state===x?this._stateInAttributeValueNoQuotes(t):this._state===C?this._stateBeforeDeclaration(t):this._state===A?this._stateInDeclaration(t):this._state===E?this._stateInProcessingInstruction(t):this._state===L?this._stateBeforeComment(t):this._state===R?this._stateInComment(t):this._state===V?this._stateAfterComment1(t):this._state===P?this._stateAfterComment2(t):this._state===N?this._stateBeforeCdata1(t):this._state===X?this._stateBeforeCdata2(t):this._state===T?this._stateBeforeCdata3(t):this._state===S?this._stateBeforeCdata4(t):this._state===z?this._stateBeforeCdata5(t):this._state===O?this._stateBeforeCdata6(t):this._state===M?this._stateInCdata(t):this._state===W?this._stateAfterCdata1(t):this._state===j?this._stateAfterCdata2(t):this._state===F?this._stateBeforeSpecial(t):this._state===q?this._stateBeforeSpecialEnd(t):this._state===k?this._stateBeforeScript1(t):this._state===D?this._stateBeforeScript2(t):this._state===I?this._stateBeforeScript3(t):this._state===Z?this._stateBeforeScript4(t):this._state===H?this._stateBeforeScript5(t):this._state===B?this._stateAfterScript1(t):this._state===G?this._stateAfterScript2(t):this._state===U?this._stateAfterScript3(t):this._state===Y?this._stateAfterScript4(t):this._state===K?this._stateAfterScript5(t):this._state===J?this._stateBeforeStyle1(t):this._state===Q?this._stateBeforeStyle2(t):this._state===_?this._stateBeforeStyle3(t):this._state===$?this._stateBeforeStyle4(t):this._state===tt?this._stateAfterStyle1(t):this._state===et?this._stateAfterStyle2(t):this._state===nt?this._stateAfterStyle3(t):this._state===rt?this._stateAfterStyle4(t):this._state===at?this._stateBeforeEntity(t):this._state===it?this._stateBeforeNumericEntity(t):this._state===st?this._stateInNamedEntity(t):this._state===ot?this._stateInNumericEntity(t):this._state===lt?this._stateInHexEntity(t):this._cbs.onerror(Error("unknown _state"),this._state),this._index++}this._cleanup()},vt.prototype.pause=function(){this._running=!1},vt.prototype.resume=function(){this._running=!0,this._index<this._buffer.length&&this._parse(),this._ended&&this._finish()},vt.prototype.end=function(t){this._ended&&this._cbs.onerror(Error(".end() after done!")),t&&this.write(t),this._ended=!0,this._running&&this._finish()},vt.prototype._finish=function(){this._sectionStart<this._index&&this._handleTrailingData(),this._cbs.onend()},vt.prototype._handleTrailingData=function(){var t=this._buffer.substr(this._sectionStart);this._state===M||this._state===W||this._state===j?this._cbs.oncdata(t):this._state===R||this._state===V||this._state===P?this._cbs.oncomment(t):this._state!==st||this._xmlMode?this._state!==ot||this._xmlMode?this._state!==lt||this._xmlMode?this._state!==u&&this._state!==m&&this._state!==y&&this._state!==g&&this._state!==v&&this._state!==w&&this._state!==b&&this._state!==x&&this._state!==p&&this._cbs.ontext(t):(this._decodeNumericEntity(3,16),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._decodeNumericEntity(2,10),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._parseLegacyEntity(),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData()))},vt.prototype.reset=function(){vt.call(this,{xmlMode:this._xmlMode,decodeEntities:this._decodeEntities},this._cbs)},vt.prototype.getAbsoluteIndex=function(){return this._bufferOffset+this._index},vt.prototype._getSection=function(){return this._buffer.substring(this._sectionStart,this._index)},vt.prototype._emitToken=function(t){this._cbs[t](this._getSection()),this._sectionStart=-1},vt.prototype._emitPartial=function(t){this._baseState!==l?this._cbs.onattribdata(t):this._cbs.ontext(t)}},7966:t=>{"use strict";t.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},8287:(t,e,n)=>{"use strict";var r=n(7526),a=n(251),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=l,e.SlowBuffer=function(t){return+t!=t&&(t=0),l.alloc(+t)},e.INSPECT_MAX_BYTES=50;var s=2147483647;function o(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,l.prototype),e}function l(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return d(t)}return c(t,e,n)}function c(t,e,n){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var n=0|m(t,e),r=o(n),a=r.write(t,e);return a!==n&&(r=r.slice(0,a)),r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(D(t,Uint8Array)){var e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return f(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(D(t,ArrayBuffer)||t&&D(t.buffer,ArrayBuffer))return p(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(D(t,SharedArrayBuffer)||t&&D(t.buffer,SharedArrayBuffer)))return p(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return l.from(r,e,n);var a=function(t){if(l.isBuffer(t)){var e=0|h(t.length),n=o(e);return 0===n.length||t.copy(n,0,0,e),n}return void 0!==t.length?"number"!=typeof t.length||I(t.length)?o(0):f(t):"Buffer"===t.type&&Array.isArray(t.data)?f(t.data):void 0}(t);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return l.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function d(t){return u(t),o(t<0?0:0|h(t))}function f(t){for(var e=t.length<0?0:0|h(t.length),n=o(e),r=0;r<e;r+=1)n[r]=255&t[r];return n}function p(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,l.prototype),r}function h(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function m(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||D(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var a=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return F(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(t).length;default:if(a)return r?-1:F(t).length;e=(""+e).toLowerCase(),a=!0}}function v(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return X(this,e,n);case"utf8":case"utf-8":return R(this,e,n);case"ascii":return P(this,e,n);case"latin1":case"binary":return N(this,e,n);case"base64":return L(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function y(t,e,n,r,a){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),I(n=+n)&&(n=a?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(a)return-1;n=t.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:b(t,e,n,r,a);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):b(t,[e],n,r,a);throw new TypeError("val must be string, number or Buffer")}function b(t,e,n,r,a){var i,s=1,o=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,o/=2,l/=2,n/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(a){var u=-1;for(i=n;i<o;i++)if(c(t,i)===c(e,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===l)return u*s}else-1!==u&&(i-=i-u),u=-1}else for(n+l>o&&(n=o-l),i=n;i>=0;i--){for(var d=!0,f=0;f<l;f++)if(c(t,i+f)!==c(e,f)){d=!1;break}if(d)return i}return-1}function w(t,e,n,r){n=Number(n)||0;var a=t.length-n;r?(r=Number(r))>a&&(r=a):r=a;var i=e.length;r>i/2&&(r=i/2);for(var s=0;s<r;++s){var o=parseInt(e.substr(2*s,2),16);if(I(o))return s;t[n+s]=o}return s}function x(t,e,n,r){return k(F(e,t.length-n),t,n,r)}function C(t,e,n,r){return k(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function A(t,e,n,r){return k(q(e),t,n,r)}function E(t,e,n,r){return k(function(t,e){for(var n,r,a,i=[],s=0;s<t.length&&!((e-=2)<0);++s)r=(n=t.charCodeAt(s))>>8,a=n%256,i.push(a),i.push(r);return i}(e,t.length-n),t,n,r)}function L(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function R(t,e,n){n=Math.min(t.length,n);for(var r=[],a=e;a<n;){var i,s,o,l,c=t[a],u=null,d=c>239?4:c>223?3:c>191?2:1;if(a+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(i=t[a+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=t[a+1],s=t[a+2],128==(192&i)&&128==(192&s)&&(l=(15&c)<<12|(63&i)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=t[a+1],s=t[a+2],o=t[a+3],128==(192&i)&&128==(192&s)&&128==(192&o)&&(l=(15&c)<<18|(63&i)<<12|(63&s)<<6|63&o)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),a+=d}return function(t){var e=t.length;if(e<=V)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=V));return n}(r)}e.kMaxLength=s,l.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(t,e,n){return c(t,e,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(t,e,n){return function(t,e,n){return u(t),t<=0?o(t):void 0!==e?"string"==typeof n?o(t).fill(e,n):o(t).fill(e):o(t)}(t,e,n)},l.allocUnsafe=function(t){return d(t)},l.allocUnsafeSlow=function(t){return d(t)},l.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==l.prototype},l.compare=function(t,e){if(D(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),D(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,r=e.length,a=0,i=Math.min(n,r);a<i;++a)if(t[a]!==e[a]){n=t[a],r=e[a];break}return n<r?-1:r<n?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=l.allocUnsafe(e),a=0;for(n=0;n<t.length;++n){var i=t[n];if(D(i,Uint8Array))a+i.length>r.length?l.from(i).copy(r,a):Uint8Array.prototype.set.call(r,i,a);else{if(!l.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,a)}a+=i.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},l.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?R(this,0,t):v.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(t,e,n,r,a){if(D(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),e<0||n>t.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&e>=n)return 0;if(r>=a)return-1;if(e>=n)return 1;if(this===t)return 0;for(var i=(a>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0),o=Math.min(i,s),c=this.slice(r,a),u=t.slice(e,n),d=0;d<o;++d)if(c[d]!==u[d]){i=c[d],s=u[d];break}return i<s?-1:s<i?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return y(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return y(this,t,e,n,!1)},l.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-e;if((void 0===n||n>a)&&(n=a),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return x(this,t,e,n);case"ascii":case"latin1":case"binary":return C(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var V=4096;function P(t,e,n){var r="";n=Math.min(t.length,n);for(var a=e;a<n;++a)r+=String.fromCharCode(127&t[a]);return r}function N(t,e,n){var r="";n=Math.min(t.length,n);for(var a=e;a<n;++a)r+=String.fromCharCode(t[a]);return r}function X(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var a="",i=e;i<n;++i)a+=Z[t[i]];return a}function T(t,e,n){for(var r=t.slice(e,n),a="",i=0;i<r.length-1;i+=2)a+=String.fromCharCode(r[i]+256*r[i+1]);return a}function S(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function z(t,e,n,r,a,i){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>a||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function O(t,e,n,r,a,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(t,e,n,r,i){return e=+e,n>>>=0,i||O(t,0,n,4),a.write(t,e,n,r,23,4),n+4}function W(t,e,n,r,i){return e=+e,n>>>=0,i||O(t,0,n,8),a.write(t,e,n,r,52,8),n+8}l.prototype.slice=function(t,e){var n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var r=this.subarray(t,e);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||S(t,e,this.length);for(var r=this[t],a=1,i=0;++i<e&&(a*=256);)r+=this[t+i]*a;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||S(t,e,this.length);for(var r=this[t+--e],a=1;e>0&&(a*=256);)r+=this[t+--e]*a;return r},l.prototype.readUint8=l.prototype.readUInt8=function(t,e){return t>>>=0,e||S(t,1,this.length),this[t]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(t,e){return t>>>=0,e||S(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(t,e){return t>>>=0,e||S(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(t,e){return t>>>=0,e||S(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(t,e){return t>>>=0,e||S(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||S(t,e,this.length);for(var r=this[t],a=1,i=0;++i<e&&(a*=256);)r+=this[t+i]*a;return r>=(a*=128)&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||S(t,e,this.length);for(var r=e,a=1,i=this[t+--r];r>0&&(a*=256);)i+=this[t+--r]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*e)),i},l.prototype.readInt8=function(t,e){return t>>>=0,e||S(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){t>>>=0,e||S(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){t>>>=0,e||S(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return t>>>=0,e||S(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return t>>>=0,e||S(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return t>>>=0,e||S(t,4,this.length),a.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return t>>>=0,e||S(t,4,this.length),a.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return t>>>=0,e||S(t,8,this.length),a.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return t>>>=0,e||S(t,8,this.length),a.read(this,t,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||z(this,t,e,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[e]=255&t;++i<n&&(a*=256);)this[e+i]=t/a&255;return e+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(t,e,n,r){t=+t,e>>>=0,n>>>=0,r||z(this,t,e,n,Math.pow(2,8*n)-1,0);var a=n-1,i=1;for(this[e+a]=255&t;--a>=0&&(i*=256);)this[e+a]=t/i&255;return e+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,1,255,0),this[e]=255&t,e+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var a=Math.pow(2,8*n-1);z(this,t,e,n,a-1,-a)}var i=0,s=1,o=0;for(this[e]=255&t;++i<n&&(s*=256);)t<0&&0===o&&0!==this[e+i-1]&&(o=1),this[e+i]=(t/s|0)-o&255;return e+n},l.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var a=Math.pow(2,8*n-1);z(this,t,e,n,a-1,-a)}var i=n-1,s=1,o=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===o&&0!==this[e+i+1]&&(o=1),this[e+i]=(t/s|0)-o&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||z(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeFloatLE=function(t,e,n){return M(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return M(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return W(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return W(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,r){if(!l.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var a=r-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),a},l.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){var a=t.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(t=a)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var i;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{var s=l.isBuffer(t)?t:l.from(t,r),o=s.length;if(0===o)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<n-e;++i)this[i+e]=s[i%o]}return this};var j=/[^+/0-9A-Za-z-_]/g;function F(t,e){var n;e=e||1/0;for(var r=t.length,a=null,i=[],s=0;s<r;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!a){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(e-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function q(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(j,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function k(t,e,n,r){for(var a=0;a<r&&!(a+n>=e.length||a>=t.length);++a)e[a+n]=t[a];return a}function D(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function I(t){return t!=t}var Z=function(){for(var t="0123456789abcdef",e=new Array(256),n=0;n<16;++n)for(var r=16*n,a=0;a<16;++a)e[r+a]=t[n]+t[a];return e}()},8374:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return"text"===t.type&&/\r?\n/.test(t.data)&&""===t.data.trim()}},8564:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return Object.keys(t).filter(function(t){return(0,i.default)(t)}).reduce(function(e,n){var r=n.toLowerCase(),i=a.default[r]||r;return e[i]=o(i,t[n]),e},{})};var r=s(n(1810)),a=s(n(1401)),i=s(n(1994));function s(t){return t&&t.__esModule?t:{default:t}}var o=function(t,e){return r.default.map(function(t){return t.toLowerCase()}).indexOf(t.toLowerCase())>=0&&(e=t),e}},8659:(t,e,n)=>{var r=n(1724),a=n(6189);function i(e,n){return delete t.exports[e],t.exports[e]=n,n}t.exports={Parser:r,Tokenizer:n(7918),ElementType:n(1021),DomHandler:a,get FeedHandler(){return i("FeedHandler",n(2311))},get Stream(){return i("Stream",n(39))},get WritableStream(){return i("WritableStream",n(2799))},get ProxyHandler(){return i("ProxyHandler",n(2267))},get DomUtils(){return i("DomUtils",n(9564))},get CollectingHandler(){return i("CollectingHandler",n(8729))},DefaultHandler:a,get RssHandler(){return i("RssHandler",this.FeedHandler)},parseDOM:function(t,e){var n=new a(e);return new r(n,e).end(t),n.dom},parseFeed:function(e,n){var a=new t.exports.FeedHandler(n);return new r(a,n).end(e),a.dom},createDomStream:function(t,e,n){var i=new a(t,e,n);return new r(i,e)},EVENTS:{attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0}}},8710:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){return a.default[t.type](t,e,n)};var r,a=(r=n(2978))&&r.__esModule?r:{default:r}},8729:(t,e,n)=>{function r(t){this._cbs=t||{},this.events=[]}t.exports=r;var a=n(8659).EVENTS;Object.keys(a).forEach(function(t){if(0===a[t])t="on"+t,r.prototype[t]=function(){this.events.push([t]),this._cbs[t]&&this._cbs[t]()};else if(1===a[t])t="on"+t,r.prototype[t]=function(e){this.events.push([t,e]),this._cbs[t]&&this._cbs[t](e)};else{if(2!==a[t])throw Error("wrong number of arguments");t="on"+t,r.prototype[t]=function(e,n){this.events.push([t,e,n]),this._cbs[t]&&this._cbs[t](e,n)}}}),r.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},r.prototype.restart=function(){this._cbs.onreset&&this._cbs.onreset();for(var t=0,e=this.events.length;t<e;t++)if(this._cbs[this.events[t][0]]){var n=this.events[t].length;1===n?this._cbs[this.events[t][0]]():2===n?this._cbs[this.events[t][0]](this.events[t][1]):this._cbs[this.events[t][0]](this.events[t][1],this.events[t][2])}}},8873:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=r(n(6952)),i=String.fromCodePoint||function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+String.fromCharCode(t)};e.default=function(t){return t>=55296&&t<=57343||t>1114111?"�":(t in a.default&&(t=a.default[t]),i(t))}},8938:(t,e)=>{var n=e.getChildren=function(t){return t.children},r=e.getParent=function(t){return t.parent};e.getSiblings=function(t){var e=r(t);return e?n(e):[t]},e.getAttributeValue=function(t,e){return t.attribs&&t.attribs[e]},e.hasAttrib=function(t,e){return!!t.attribs&&hasOwnProperty.call(t.attribs,e)},e.getName=function(t){return t.name}},8989:(t,e)=>{"use strict";if("function"==typeof Symbol&&Symbol.for){var n=Symbol.for;n("react.element"),n("react.portal"),n("react.fragment"),n("react.strict_mode"),n("react.profiler"),n("react.provider"),n("react.context"),n("react.forward_ref"),n("react.suspense"),n("react.suspense_list"),n("react.memo"),n("react.lazy"),n("react.block"),n("react.server.block"),n("react.fundamental"),n("react.debug_trace_mode"),n("react.legacy_hidden")}},9564:(t,e,n)=>{var r=t.exports;[n(6037),n(8938),n(3403),n(718),n(3209),n(5397)].forEach(function(t){Object.keys(t).forEach(function(e){r[e]=t[e].bind(r)})})}},r={};function a(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={exports:{}};return n[t].call(i.exports,i,i.exports,a),i.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);a.r(i);var s={};t=t||[null,e({}),e([]),e(e)];for(var o=2&r&&n;"object"==typeof o&&!~t.indexOf(o);o=e(o))Object.getOwnPropertyNames(o).forEach(t=>s[t]=()=>n[t]);return s.default=()=>n,a.d(i,s),i},a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;a.g.importScripts&&(t=a.g.location+"");var e=a.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!t||!/^http(s?):/.test(t));)t=n[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=t})(),(()=>{"use strict";const t=window.wp.element;var e,n=a(1609),r=a.t(n,2),i=a.n(n),s=a(5338),o=(a(4765),a(5795));function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l.apply(this,arguments)}!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(e||(e={}));const c="popstate";function u(t,e){if(!1===t||null==t)throw new Error(e)}function d(t,e){if(!t){"undefined"!=typeof console&&console.warn(e);try{throw new Error(e)}catch(t){}}}function f(t,e){return{usr:t.state,key:t.key,idx:e}}function p(t,e,n,r){return void 0===n&&(n=null),l({pathname:"string"==typeof t?t:t.pathname,search:"",hash:""},"string"==typeof e?m(e):e,{state:n,key:e&&e.key||r||Math.random().toString(36).substr(2,8)})}function h(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&"?"!==n&&(e+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function m(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}var v;function g(t,e,n){return void 0===n&&(n="/"),function(t,e,n,r){let a=T(("string"==typeof e?m(e):e).pathname||"/",n);if(null==a)return null;let i=y(t);!function(t){t.sort((t,e)=>t.score!==e.score?e.score-t.score:function(t,e){let n=t.length===e.length&&t.slice(0,-1).every((t,n)=>t===e[n]);return n?t[t.length-1]-e[e.length-1]:0}(t.routesMeta.map(t=>t.childrenIndex),e.routesMeta.map(t=>t.childrenIndex)))}(i);let s=null;for(let t=0;null==s&&t<i.length;++t){let e=X(a);s=P(i[t],e,r)}return s}(t,e,n,!1)}function y(t,e,n,r){void 0===e&&(e=[]),void 0===n&&(n=[]),void 0===r&&(r="");let a=(t,a,i)=>{let s={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:a,route:t};s.relativePath.startsWith("/")&&(u(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let o=M([r,s.relativePath]),l=n.concat(s);t.children&&t.children.length>0&&(u(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+o+'".'),y(t.children,e,l,o)),(null!=t.path||t.index)&&e.push({path:o,score:V(o,t.index),routesMeta:l})};return t.forEach((t,e)=>{var n;if(""!==t.path&&null!=(n=t.path)&&n.includes("?"))for(let n of b(t.path))a(t,e,n);else a(t,e)}),e}function b(t){let e=t.split("/");if(0===e.length)return[];let[n,...r]=e,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return a?[i,""]:[i];let s=b(r.join("/")),o=[];return o.push(...s.map(t=>""===t?i:[i,t].join("/"))),a&&o.push(...s),o.map(e=>t.startsWith("/")&&""===e?"/":e)}!function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"}(v||(v={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const w=/^:[\w-]+$/,x=3,C=2,A=1,E=10,L=-2,R=t=>"*"===t;function V(t,e){let n=t.split("/"),r=n.length;return n.some(R)&&(r+=L),e&&(r+=C),n.filter(t=>!R(t)).reduce((t,e)=>t+(w.test(e)?x:""===e?A:E),r)}function P(t,e,n){void 0===n&&(n=!1);let{routesMeta:r}=t,a={},i="/",s=[];for(let t=0;t<r.length;++t){let o=r[t],l=t===r.length-1,c="/"===i?e:e.slice(i.length)||"/",u=N({path:o.relativePath,caseSensitive:o.caseSensitive,end:l},c),d=o.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=N({path:o.relativePath,caseSensitive:o.caseSensitive,end:!1},c)),!u)return null;Object.assign(a,u.params),s.push({params:a,pathname:M([i,u.pathname]),pathnameBase:W(M([i,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(i=M([i,u.pathnameBase]))}return s}function N(t,e){"string"==typeof t&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!0),d("*"===t||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were "'+t.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+t.replace(/\*$/,"/*")+'".');let r=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(t,e,n)=>(r.push({paramName:e,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),a+="*"===t||"/*"===t?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==t&&"/"!==t&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),r]}(t.path,t.caseSensitive,t.end),a=e.match(n);if(!a)return null;let i=a[0],s=i.replace(/(.)\/+$/,"$1"),o=a.slice(1),l=r.reduce((t,e,n)=>{let{paramName:r,isOptional:a}=e;if("*"===r){let t=o[n]||"";s=i.slice(0,i.length-t.length).replace(/(.)\/+$/,"$1")}const l=o[n];return t[r]=a&&!l?void 0:(l||"").replace(/%2F/g,"/"),t},{});return{params:l,pathname:i,pathnameBase:s,pattern:t}}function X(t){try{return t.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(e){return d(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+e+")."),t}}function T(t,e){if("/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&"/"!==r?null:t.slice(n)||"/"}function S(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified `to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function z(t,e){let n=function(t){return t.filter((t,e)=>0===e||t.route.path&&t.route.path.length>0)}(t);return e?n.map((t,e)=>e===n.length-1?t.pathname:t.pathnameBase):n.map(t=>t.pathnameBase)}function O(t,e,n,r){let a;void 0===r&&(r=!1),"string"==typeof t?a=m(t):(a=l({},t),u(!a.pathname||!a.pathname.includes("?"),S("?","pathname","search",a)),u(!a.pathname||!a.pathname.includes("#"),S("#","pathname","hash",a)),u(!a.search||!a.search.includes("#"),S("#","search","hash",a)));let i,s=""===t||""===a.pathname,o=s?"/":a.pathname;if(null==o)i=n;else{let t=e.length-1;if(!r&&o.startsWith("..")){let e=o.split("/");for(;".."===e[0];)e.shift(),t-=1;a.pathname=e.join("/")}i=t>=0?e[t]:"/"}let c=function(t,e){void 0===e&&(e="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof t?m(t):t,i=n?n.startsWith("/")?n:function(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(t=>{".."===t?n.length>1&&n.pop():"."!==t&&n.push(t)}),n.length>1?n.join("/"):"/"}(n,e):e;return{pathname:i,search:j(r),hash:F(a)}}(a,i),d=o&&"/"!==o&&o.endsWith("/"),f=(s||"."===o)&&n.endsWith("/");return c.pathname.endsWith("/")||!d&&!f||(c.pathname+="/"),c}const M=t=>t.join("/").replace(/\/\/+/g,"/"),W=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),j=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",F=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:"";Error;const q=["post","put","patch","delete"],k=(new Set(q),["get",...q]);function D(){return D=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},D.apply(this,arguments)}new Set(k),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const I=n.createContext(null),Z=n.createContext(null),H=n.createContext(null),B=n.createContext(null),G=n.createContext({outlet:null,matches:[],isDataRoute:!1}),U=n.createContext(null);function Y(){return null!=n.useContext(B)}function K(){return Y()||u(!1),n.useContext(B).location}function J(t){n.useContext(H).static||n.useLayoutEffect(t)}function Q(){let{isDataRoute:t}=n.useContext(G);return t?function(){let{router:t}=function(){let t=n.useContext(I);return t||u(!1),t}(at.UseNavigateStable),e=st(it.UseNavigateStable),r=n.useRef(!1);return J(()=>{r.current=!0}),n.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?t.navigate(n):t.navigate(n,D({fromRouteId:e},a)))},[t,e])}():function(){Y()||u(!1);let t=n.useContext(I),{basename:e,future:r,navigator:a}=n.useContext(H),{matches:i}=n.useContext(G),{pathname:s}=K(),o=JSON.stringify(z(i,r.v7_relativeSplatPath)),l=n.useRef(!1);return J(()=>{l.current=!0}),n.useCallback(function(n,r){if(void 0===r&&(r={}),!l.current)return;if("number"==typeof n)return void a.go(n);let i=O(n,JSON.parse(o),s,"path"===r.relative);null==t&&"/"!==e&&(i.pathname="/"===i.pathname?e:M([e,i.pathname])),(r.replace?a.replace:a.push)(i,r.state,r)},[e,a,o,s,t])}()}function _(t,e){let{relative:r}=void 0===e?{}:e,{future:a}=n.useContext(H),{matches:i}=n.useContext(G),{pathname:s}=K(),o=JSON.stringify(z(i,a.v7_relativeSplatPath));return n.useMemo(()=>O(t,JSON.parse(o),s,"path"===r),[t,o,s,r])}function $(t,r,a,i){Y()||u(!1);let{navigator:s}=n.useContext(H),{matches:o}=n.useContext(G),l=o[o.length-1],c=l?l.params:{},d=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let f,p=K();if(r){var h;let t="string"==typeof r?m(r):r;"/"===d||(null==(h=t.pathname)?void 0:h.startsWith(d))||u(!1),f=t}else f=p;let v=f.pathname||"/",y=v;if("/"!==d){let t=d.replace(/^\//,"").split("/");y="/"+v.replace(/^\//,"").split("/").slice(t.length).join("/")}let b=g(t,{pathname:y}),w=function(t,e,r,a){var i;if(void 0===e&&(e=[]),void 0===r&&(r=null),void 0===a&&(a=null),null==t){var s;if(!r)return null;if(r.errors)t=r.matches;else{if(!(null!=(s=a)&&s.v7_partialHydration&&0===e.length&&!r.initialized&&r.matches.length>0))return null;t=r.matches}}let o=t,l=null==(i=r)?void 0:i.errors;if(null!=l){let t=o.findIndex(t=>t.route.id&&void 0!==(null==l?void 0:l[t.route.id]));t>=0||u(!1),o=o.slice(0,Math.min(o.length,t+1))}let c=!1,d=-1;if(r&&a&&a.v7_partialHydration)for(let t=0;t<o.length;t++){let e=o[t];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(d=t),e.route.id){let{loaderData:t,errors:n}=r,a=e.route.loader&&void 0===t[e.route.id]&&(!n||void 0===n[e.route.id]);if(e.route.lazy||a){c=!0,o=d>=0?o.slice(0,d+1):[o[0]];break}}}return o.reduceRight((t,a,i)=>{let s,u=!1,f=null,p=null;var h;r&&(s=l&&a.route.id?l[a.route.id]:void 0,f=a.route.errorElement||et,c&&(d<0&&0===i?(ot[h="route-fallback"]||(ot[h]=!0),u=!0,p=null):d===i&&(u=!0,p=a.route.hydrateFallbackElement||null)));let m=e.concat(o.slice(0,i+1)),v=()=>{let e;return e=s?f:u?p:a.route.Component?n.createElement(a.route.Component,null):a.route.element?a.route.element:t,n.createElement(rt,{match:a,routeContext:{outlet:t,matches:m,isDataRoute:null!=r},children:e})};return r&&(a.route.ErrorBoundary||a.route.errorElement||0===i)?n.createElement(nt,{location:r.location,revalidation:r.revalidation,component:f,error:s,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}(b&&b.map(t=>Object.assign({},t,{params:Object.assign({},c,t.params),pathname:M([d,s.encodeLocation?s.encodeLocation(t.pathname).pathname:t.pathname]),pathnameBase:"/"===t.pathnameBase?d:M([d,s.encodeLocation?s.encodeLocation(t.pathnameBase).pathname:t.pathnameBase])})),o,a,i);return r&&w?n.createElement(B.Provider,{value:{location:D({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:e.Pop}},w):w}function tt(){let t=function(){var t;let e=n.useContext(U),r=function(){let t=n.useContext(Z);return t||u(!1),t}(it.UseRouteError),a=st(it.UseRouteError);return void 0!==e?e:null==(t=r.errors)?void 0:t[a]}(),e=function(t){return null!=t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"boolean"==typeof t.internal&&"data"in t}(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},e),r?n.createElement("pre",{style:a},r):null,null)}const et=n.createElement(tt,null);class nt extends n.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||"idle"!==e.revalidation&&"idle"===t.revalidation?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:void 0!==t.error?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){console.error("React Router caught the following error during render",t,e)}render(){return void 0!==this.state.error?n.createElement(G.Provider,{value:this.props.routeContext},n.createElement(U.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function rt(t){let{routeContext:e,match:r,children:a}=t,i=n.useContext(I);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),n.createElement(G.Provider,{value:e},a)}var at=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(at||{}),it=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(it||{});function st(t){let e=function(){let t=n.useContext(G);return t||u(!1),t}(),r=e.matches[e.matches.length-1];return r.route.id||u(!1),r.route.id}const ot={};function lt(t){u(!1)}function ct(t){let{basename:r="/",children:a=null,location:i,navigationType:s=e.Pop,navigator:o,static:l=!1,future:c}=t;Y()&&u(!1);let d=r.replace(/^\/*/,"/"),f=n.useMemo(()=>({basename:d,navigator:o,static:l,future:D({v7_relativeSplatPath:!1},c)}),[d,c,o,l]);"string"==typeof i&&(i=m(i));let{pathname:p="/",search:h="",hash:v="",state:g=null,key:y="default"}=i,b=n.useMemo(()=>{let t=T(p,d);return null==t?null:{location:{pathname:t,search:h,hash:v,state:g,key:y},navigationType:s}},[d,p,h,v,g,y,s]);return null==b?null:n.createElement(H.Provider,{value:f},n.createElement(B.Provider,{children:a,value:b}))}function ut(t){let{children:e,location:n}=t;return $(dt(e),n)}function dt(t,e){void 0===e&&(e=[]);let r=[];return n.Children.forEach(t,(t,a)=>{if(!n.isValidElement(t))return;let i=[...e,a];if(t.type===n.Fragment)return void r.push.apply(r,dt(t.props.children,i));t.type!==lt&&u(!1),t.props.index&&t.props.children&&u(!1);let s={id:t.props.id||i.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(s.children=dt(t.props.children,i)),r.push(s)}),r}function ft(){return ft=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ft.apply(this,arguments)}n.startTransition,new Promise(()=>{}),n.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const pt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(dv){}new Map;const ht=n.startTransition;function mt(t){let{basename:r,children:a,future:i,window:s}=t,o=n.useRef();var d;null==o.current&&(o.current=(void 0===(d={window:s,v5Compat:!0})&&(d={}),function(t,n,r,a){void 0===a&&(a={});let{window:i=document.defaultView,v5Compat:s=!1}=a,o=i.history,d=e.Pop,m=null,v=g();function g(){return(o.state||{idx:null}).idx}function y(){d=e.Pop;let t=g(),n=null==t?null:t-v;v=t,m&&m({action:d,location:w.location,delta:n})}function b(t){let e="null"!==i.location.origin?i.location.origin:i.location.href,n="string"==typeof t?t:h(t);return n=n.replace(/ $/,"%20"),u(e,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,e)}null==v&&(v=0,o.replaceState(l({},o.state,{idx:v}),""));let w={get action(){return d},get location(){return t(i,o)},listen(t){if(m)throw new Error("A history only accepts one active listener");return i.addEventListener(c,y),m=t,()=>{i.removeEventListener(c,y),m=null}},createHref:t=>n(i,t),createURL:b,encodeLocation(t){let e=b(t);return{pathname:e.pathname,search:e.search,hash:e.hash}},push:function(t,n){d=e.Push;let a=p(w.location,t,n);r&&r(a,t),v=g()+1;let l=f(a,v),c=w.createHref(a);try{o.pushState(l,"",c)}catch(t){if(t instanceof DOMException&&"DataCloneError"===t.name)throw t;i.location.assign(c)}s&&m&&m({action:d,location:w.location,delta:1})},replace:function(t,n){d=e.Replace;let a=p(w.location,t,n);r&&r(a,t),v=g();let i=f(a,v),l=w.createHref(a);o.replaceState(i,"",l),s&&m&&m({action:d,location:w.location,delta:0})},go:t=>o.go(t)};return w}(function(t,e){let{pathname:n,search:r,hash:a}=t.location;return p("",{pathname:n,search:r,hash:a},e.state&&e.state.usr||null,e.state&&e.state.key||"default")},function(t,e){return"string"==typeof e?e:h(e)},null,d)));let m=o.current,[v,g]=n.useState({action:m.action,location:m.location}),{v7_startTransition:y}=i||{},b=n.useCallback(t=>{y&&ht?ht(()=>g(t)):g(t)},[g,y]);return n.useLayoutEffect(()=>m.listen(b),[m,b]),n.useEffect(()=>{return null==(t=i)||t.v7_startTransition,void 0===(null==t?void 0:t.v7_relativeSplatPath)&&(!e||e.v7_relativeSplatPath),void(e&&(e.v7_fetcherPersist,e.v7_normalizeFormMethod,e.v7_partialHydration,e.v7_skipActionErrorRevalidation));var t,e},[i]),n.createElement(ct,{basename:r,children:a,location:v.location,navigationType:v.action,navigator:m,future:i})}o.flushSync,n.useId;const vt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,gt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yt=n.forwardRef(function(t,e){let r,{onClick:a,relative:i,reloadDocument:s,replace:o,state:l,target:c,to:d,preventScrollReset:f,viewTransition:p}=t,m=function(t,e){if(null==t)return{};var n,r,a={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(t,pt),{basename:v}=n.useContext(H),g=!1;if("string"==typeof d&>.test(d)&&(r=d,vt))try{let t=new URL(window.location.href),e=d.startsWith("//")?new URL(t.protocol+d):new URL(d),n=T(e.pathname,v);e.origin===t.origin&&null!=n?d=n+e.search+e.hash:g=!0}catch(t){}let y=function(t,e){let{relative:r}=void 0===e?{}:e;Y()||u(!1);let{basename:a,navigator:i}=n.useContext(H),{hash:s,pathname:o,search:l}=_(t,{relative:r}),c=o;return"/"!==a&&(c="/"===o?a:M([a,o])),i.createHref({pathname:c,search:l,hash:s})}(d,{relative:i}),b=function(t,e){let{target:r,replace:a,state:i,preventScrollReset:s,relative:o,viewTransition:l}=void 0===e?{}:e,c=Q(),u=K(),d=_(t,{relative:o});return n.useCallback(e=>{if(function(t,e){return!(0!==t.button||e&&"_self"!==e||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t))}(e,r)){e.preventDefault();let n=void 0!==a?a:h(u)===h(d);c(t,{replace:n,state:i,preventScrollReset:s,relative:o,viewTransition:l})}},[u,c,d,a,i,r,t,s,o,l])}(d,{replace:o,state:l,target:c,preventScrollReset:f,relative:i,viewTransition:p});return n.createElement("a",ft({},m,{href:r||y,onClick:g||s?a:function(t){a&&a(t),t.defaultPrevented||b(t)},ref:e,target:c}))});var bt,wt;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(bt||(bt={})),function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"}(wt||(wt={}));const xt=window.wp.i18n,Ct=t=>{const e=(t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,n)=>n?n.toUpperCase():e.toLowerCase()))(t);return e.charAt(0).toUpperCase()+e.slice(1)},At=(...t)=>t.filter((t,e,n)=>Boolean(t)&&""!==t.trim()&&n.indexOf(t)===e).join(" ").trim();var Et={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Lt=(0,n.forwardRef)(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:i="",children:s,iconNode:o,...l},c)=>(0,n.createElement)("svg",{ref:c,...Et,width:e,height:e,stroke:t,strokeWidth:a?24*Number(r)/Number(e):r,className:At("lucide",i),...l},[...o.map(([t,e])=>(0,n.createElement)(t,e)),...Array.isArray(s)?s:[s]])),Rt=(t,e)=>{const r=(0,n.forwardRef)(({className:r,...a},i)=>{return(0,n.createElement)(Lt,{ref:i,iconNode:e,className:At(`lucide-${s=Ct(t),s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,r),...a});var s});return r.displayName=Ct(t),r},Vt=Rt("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);var Pt=a(4848);const Nt=t=>{const e=zt(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:t=>{const n=t.split("-");return""===n[0]&&1!==n.length&&n.shift(),Xt(n,e)||St(t)},getConflictingClassGroupIds:(t,e)=>{const a=n[t]||[];return e&&r[t]?[...a,...r[t]]:a}}},Xt=(t,e)=>{if(0===t.length)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),a=r?Xt(t.slice(1),r):void 0;if(a)return a;if(0===e.validators.length)return;const i=t.join("-");return e.validators.find(({validator:t})=>t(i))?.classGroupId},Tt=/^\[(.+)\]$/,St=t=>{if(Tt.test(t)){const e=Tt.exec(t)[1],n=e?.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},zt=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return jt(Object.entries(t.classGroups),n).forEach(([t,n])=>{Ot(n,r,t,e)}),r},Ot=(t,e,n,r)=>{t.forEach(t=>{if("string"!=typeof t)return"function"==typeof t?Wt(t)?void Ot(t(r),e,n,r):void e.validators.push({validator:t,classGroupId:n}):void Object.entries(t).forEach(([t,a])=>{Ot(a,Mt(e,t),n,r)});(""===t?e:Mt(e,t)).classGroupId=n})},Mt=(t,e)=>{let n=t;return e.split("-").forEach(t=>{n.nextPart.has(t)||n.nextPart.set(t,{nextPart:new Map,validators:[]}),n=n.nextPart.get(t)}),n},Wt=t=>t.isThemeGetter,jt=(t,e)=>e?t.map(([t,n])=>[t,n.map(t=>"string"==typeof t?e+t:"object"==typeof t?Object.fromEntries(Object.entries(t).map(([t,n])=>[e+t,n])):t)]):t,Ft=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const a=(a,i)=>{n.set(a,i),e++,e>t&&(e=0,r=n,n=new Map)};return{get(t){let e=n.get(t);return void 0!==e?e:void 0!==(e=r.get(t))?(a(t,e),e):void 0},set(t,e){n.has(t)?n.set(t,e):a(t,e)}}},qt=t=>{const{separator:e,experimentalParseClassName:n}=t,r=1===e.length,a=e[0],i=e.length,s=t=>{const n=[];let s,o=0,l=0;for(let c=0;c<t.length;c++){let u=t[c];if(0===o){if(u===a&&(r||t.slice(c,c+i)===e)){n.push(t.slice(l,c)),l=c+i;continue}if("/"===u){s=c;continue}}"["===u?o++:"]"===u&&o--}const c=0===n.length?t:t.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:s&&s>l?s-l:void 0}};return n?t=>n({className:t,parseClassName:s}):s},kt=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(t=>{"["===t[0]?(e.push(...n.sort(),t),n=[]):n.push(t)}),e.push(...n.sort()),e},Dt=/\s+/;function It(){let t,e,n=0,r="";for(;n<arguments.length;)(t=arguments[n++])&&(e=Zt(t))&&(r&&(r+=" "),r+=e);return r}const Zt=t=>{if("string"==typeof t)return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=Zt(t[r]))&&(n&&(n+=" "),n+=e);return n};function Ht(t,...e){let n,r,a,i=function(o){const l=e.reduce((t,e)=>e(t),t());return n=(t=>({cache:Ft(t.cacheSize),parseClassName:qt(t),...Nt(t)}))(l),r=n.cache.get,a=n.cache.set,i=s,s(o)};function s(t){const e=r(t);if(e)return e;const i=((t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=e,i=[],s=t.trim().split(Dt);let o="";for(let t=s.length-1;t>=0;t-=1){const e=s[t],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(e);let f=Boolean(d),p=r(f?u.substring(0,d):u);if(!p){if(!f){o=e+(o.length>0?" "+o:o);continue}if(p=r(u),!p){o=e+(o.length>0?" "+o:o);continue}f=!1}const h=kt(l).join(":"),m=c?h+"!":h,v=m+p;if(i.includes(v))continue;i.push(v);const g=a(p,f);for(let t=0;t<g.length;++t){const e=g[t];i.push(m+e)}o=e+(o.length>0?" "+o:o)}return o})(t,n);return a(t,i),i}return function(){return i(It.apply(null,arguments))}}const Bt=t=>{const e=e=>e[t]||[];return e.isThemeGetter=!0,e},Gt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ut=/^\d+\/\d+$/,Yt=new Set(["px","full","screen"]),Kt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Jt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Qt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_t=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$t=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,te=t=>ne(t)||Yt.has(t)||Ut.test(t),ee=t=>me(t,"length",ve),ne=t=>Boolean(t)&&!Number.isNaN(Number(t)),re=t=>me(t,"number",ne),ae=t=>Boolean(t)&&Number.isInteger(Number(t)),ie=t=>t.endsWith("%")&&ne(t.slice(0,-1)),se=t=>Gt.test(t),oe=t=>Kt.test(t),le=new Set(["length","size","percentage"]),ce=t=>me(t,le,ge),ue=t=>me(t,"position",ge),de=new Set(["image","url"]),fe=t=>me(t,de,be),pe=t=>me(t,"",ye),he=()=>!0,me=(t,e,n)=>{const r=Gt.exec(t);return!!r&&(r[1]?"string"==typeof e?r[1]===e:e.has(r[1]):n(r[2]))},ve=t=>Jt.test(t)&&!Qt.test(t),ge=()=>!1,ye=t=>_t.test(t),be=t=>$t.test(t),we=(Symbol.toStringTag,()=>{const t=Bt("colors"),e=Bt("spacing"),n=Bt("blur"),r=Bt("brightness"),a=Bt("borderColor"),i=Bt("borderRadius"),s=Bt("borderSpacing"),o=Bt("borderWidth"),l=Bt("contrast"),c=Bt("grayscale"),u=Bt("hueRotate"),d=Bt("invert"),f=Bt("gap"),p=Bt("gradientColorStops"),h=Bt("gradientColorStopPositions"),m=Bt("inset"),v=Bt("margin"),g=Bt("opacity"),y=Bt("padding"),b=Bt("saturate"),w=Bt("scale"),x=Bt("sepia"),C=Bt("skew"),A=Bt("space"),E=Bt("translate"),L=()=>["auto",se,e],R=()=>[se,e],V=()=>["",te,ee],P=()=>["auto",ne,se],N=()=>["","0",se],X=()=>[ne,se];return{cacheSize:500,separator:":",theme:{colors:[he],spacing:[te,ee],blur:["none","",oe,se],brightness:X(),borderColor:[t],borderRadius:["none","","full",oe,se],borderSpacing:R(),borderWidth:V(),contrast:X(),grayscale:N(),hueRotate:X(),invert:N(),gap:R(),gradientColorStops:[t],gradientColorStopPositions:[ie,ee],inset:L(),margin:L(),opacity:X(),padding:R(),saturate:X(),scale:X(),sepia:N(),skew:X(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",se]}],container:["container"],columns:[{columns:[oe]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",se]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ae,se]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",se]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",ae,se]}],"grid-cols":[{"grid-cols":[he]}],"col-start-end":[{col:["auto",{span:["full",ae,se]},se]}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":[he]}],"row-start-end":[{row:["auto",{span:[ae,se]},se]}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",se]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",se]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",se,e]}],"min-w":[{"min-w":[se,e,"min","max","fit"]}],"max-w":[{"max-w":[se,e,"none","full","min","max","fit","prose",{screen:[oe]},oe]}],h:[{h:[se,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[se,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[se,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[se,e,"auto","min","max","fit"]}],"font-size":[{text:["base",oe,ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",re]}],"font-family":[{font:[he]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",se]}],"line-clamp":[{"line-clamp":["none",ne,re]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",te,se]}],"list-image":[{"list-image":["none",se]}],"list-style-type":[{list:["none","disc","decimal",se]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",te,ee]}],"underline-offset":[{"underline-offset":["auto",te,se]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",ue]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ce]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},fe]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[te,se]}],"outline-w":[{outline:[te,ee]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[te,ee]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",oe,pe]}],"shadow-color":[{shadow:[he]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",oe,se]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",se]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",se]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",se]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[ae,se]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",se]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",se]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",se]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[te,ee,re]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),xe=Ht(we);function Ce(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(n=Ce(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Ae(){for(var t,e,n=0,r="",a=arguments.length;n<a;n++)(t=arguments[n])&&(e=Ce(t))&&(r&&(r+=" "),r+=e);return r}const Ee=(...t)=>xe(Ae(...t)),Le=t=>{const e={0:"gap-0",xxs:"gap-1",xs:"gap-2",sm:"gap-3",md:"gap-4",lg:"gap-5",xl:"gap-6","2xl":"gap-8"};return e[t]||e.md},Re=(t,e)=>{if(!(typeof window>"u"))try{localStorage.setItem(t,JSON.stringify(e))}catch(t){console.error(t)}},Ve=t=>{if(typeof window>"u")return null;try{const e=localStorage.getItem(t);return e?JSON.parse(e):null}catch(t){return console.error(t),null}},Pe={sm:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},md:{1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12"},lg:{1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12"}},Ne={sm:{xs:"gap-2",sm:"gap-4",md:"gap-5",lg:"gap-6",xl:"gap-6","2xl":"gap-8"},md:{xs:"md:gap-2",sm:"md:gap-4",md:"md:gap-5",lg:"md:gap-6",xl:"md:gap-6","2xl":"md:gap-8"},lg:{xs:"lg:gap-2",sm:"lg:gap-4",md:"lg:gap-5",lg:"lg:gap-6",xl:"lg:gap-6","2xl":"lg:gap-8"}},Xe={sm:{xs:"gap-x-2",sm:"gap-x-4",md:"gap-x-5",lg:"gap-x-6",xl:"gap-x-6","2xl":"gap-x-8"},md:{xs:"md:gap-x-2",sm:"md:gap-x-4",md:"md:gap-x-5",lg:"md:gap-x-6",xl:"md:gap-x-6","2xl":"md:gap-x-8"},lg:{xs:"lg:gap-x-2",sm:"lg:gap-x-4",md:"lg:gap-x-5",lg:"lg:gap-x-6",xl:"lg:gap-x-6","2xl":"lg:gap-x-8"}},Te={sm:{xs:"gap-y-2",sm:"gap-y-4",md:"gap-y-5",lg:"gap-y-6",xl:"gap-y-6","2xl":"gap-y-8"},md:{xs:"md:gap-y-2",sm:"md:gap-y-4",md:"md:gap-y-5",lg:"md:gap-y-6",xl:"md:gap-y-6","2xl":"md:gap-y-8"},lg:{xs:"lg:gap-y-2",sm:"lg:gap-y-4",md:"lg:gap-y-5",lg:"lg:gap-y-6",xl:"lg:gap-y-6","2xl":"lg:gap-y-8"}},Se={sm:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12"},md:{1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12"},lg:{1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12"}},ze={sm:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12"},md:{1:"md:col-start-1",2:"md:col-start-2",3:"md:col-start-3",4:"md:col-start-4",5:"md:col-start-5",6:"md:col-start-6",7:"md:col-start-7",8:"md:col-start-8",9:"md:col-start-9",10:"md:col-start-10",11:"md:col-start-11",12:"md:col-start-12"},lg:{1:"lg:col-start-1",2:"lg:col-start-2",3:"lg:col-start-3",4:"lg:col-start-4",5:"lg:col-start-5",6:"lg:col-start-6",7:"lg:col-start-7",8:"lg:col-start-8",9:"lg:col-start-9",10:"lg:col-start-10",11:"lg:col-start-11",12:"lg:col-start-12"}},Oe={sm:{row:"grid-flow-row",column:"grid-flow-col","row-dense":"grid-flow-row-dense","column-dense":"grid-flow-col-dense"},md:{row:"md:grid-flow-row",column:"md:grid-flow-col","row-dense":"md:grid-flow-row-dense","column-dense":"md:grid-flow-col-dense"},lg:{row:"lg:grid-flow-row",column:"lg:grid-flow-col","row-dense":"lg:grid-flow-row-dense","column-dense":"lg:grid-flow-col-dense"}},Me={sm:{normal:"justify-normal",start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},md:{normal:"md:justify-normal",start:"md:justify-start",end:"md:justify-end",center:"md:justify-center",between:"md:justify-between",around:"md:justify-around",evenly:"md:justify-evenly",stretch:"md:justify-stretch"},lg:{normal:"lg:justify-normal",start:"lg:justify-start",end:"lg:justify-end",center:"lg:justify-center",between:"lg:justify-between",around:"lg:justify-around",evenly:"lg:justify-evenly",stretch:"lg:justify-stretch"}},We={sm:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},md:{start:"md:items-start",end:"md:items-end",center:"md:items-center",baseline:"md:items-baseline",stretch:"md:items-stretch"},lg:{start:"lg:items-start",end:"lg:items-end",center:"lg:items-center",baseline:"lg:items-baseline",stretch:"lg:items-stretch"}},je={sm:{start:"self-start",end:"self-end",center:"self-center",baseline:"self-baseline",stretch:"self-stretch"},md:{start:"md:self-start",end:"md:self-end",center:"md:self-center",baseline:"md:self-baseline",stretch:"md:self-stretch"},lg:{start:"lg:self-start",end:"lg:self-end",center:"lg:self-center",baseline:"lg:self-baseline",stretch:"lg:self-stretch"}},Fe={sm:{auto:"justify-self-auto",start:"justify-self-start",end:"justify-self-end",center:"justify-self-center",baseline:"justify-self-baseline",stretch:"justify-self-stretch"},md:{auto:"md:justify-self-auto",start:"md:justify-self-start",end:"md:justify-self-end",center:"md:justify-self-center",baseline:"md:justify-self-baseline",stretch:"md:justify-self-stretch"},lg:{auto:"lg:justify-self-auto",start:"lg:justify-self-start",end:"lg:justify-self-end",center:"lg:justify-self-center",baseline:"lg:justify-self-baseline",stretch:"lg:justify-self-stretch"}},qe={sm:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},md:{row:"md:flex-row","row-reverse":"md:flex-row-reverse",column:"md:flex-col","column-reverse":"md:flex-col-reverse"},lg:{row:"lg:flex-row","row-reverse":"lg:flex-row-reverse",column:"lg:flex-col","column-reverse":"lg:flex-col-reverse"}},ke={sm:{wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse",nowrap:"flex-nowrap"},md:{wrap:"md:flex-wrap","wrap-reverse":"md:flex-wrap-reverse",nowrap:"md:flex-nowrap"},lg:{wrap:"lg:flex-wrap","wrap-reverse":"lg:flex-wrap-reverse",nowrap:"lg:flex-nowrap"}},De={sm:{1:"w-full",2:"w-1/2",3:"w-1/3",4:"w-1/4",5:"w-1/5",6:"w-1/6",7:"w-1/7",8:"w-1/8",9:"w-1/9",10:"w-1/10",11:"w-1/11",12:"w-1/12"},md:{1:"md:w-full",2:"md:w-1/2",3:"md:w-1/3",4:"md:w-1/4",5:"md:w-1/5",6:"md:w-1/6",7:"md:w-1/7",8:"md:w-1/8",9:"md:w-1/9",10:"md:w-1/10",11:"md:w-1/11",12:"md:w-1/12"},lg:{1:"lg:w-full",2:"lg:w-1/2",3:"lg:w-1/3",4:"lg:w-1/4",5:"lg:w-1/5",6:"lg:w-1/6",7:"lg:w-1/7",8:"lg:w-1/8",9:"lg:w-1/9",10:"lg:w-1/10",11:"lg:w-1/11",12:"lg:w-1/12"}},Ie={sm:{1:"order-1",2:"order-2",3:"order-3",4:"order-4",5:"order-5",6:"order-6",7:"order-7",8:"order-8",9:"order-9",10:"order-10",11:"order-11",12:"order-12",first:"order-first",last:"order-last",none:"order-none"},md:{1:"md:order-1",2:"md:order-2",3:"md:order-3",4:"md:order-4",5:"md:order-5",6:"md:order-6",7:"md:order-7",8:"md:order-8",9:"md:order-9",10:"md:order-10",11:"md:order-11",12:"md:order-12",first:"md:order-first",last:"md:order-last",none:"md:order-none"},lg:{1:"lg:order-1",2:"lg:order-2",3:"lg:order-3",4:"lg:order-4",5:"lg:order-5",6:"lg:order-6",7:"lg:order-7",8:"lg:order-8",9:"lg:order-9",10:"lg:order-10",11:"lg:order-11",12:"lg:order-12",first:"lg:order-first",last:"lg:order-last",none:"lg:order-none"}},Ze={sm:{0:"grow-0",1:"grow"},md:{0:"md:grow-0",1:"md:grow"},lg:{0:"lg:grow-0",1:"lg:grow"}},He={sm:{0:"shrink-0",1:"shrink"},md:{0:"md:shrink-0",1:"md:shrink"},lg:{0:"lg:shrink-0",1:"lg:shrink"}},Be=(t,e,n,r="sm")=>{const a=[];switch(typeof t){case"object":for(const[r,i]of Object.entries(t))e[r]&&a.push(e?.[r]?.[i]??e?.[r]?.[n?.[r]]??"");break;case"string":case"number":const i=r;a.push(e?.[i]?.[t]??e?.[i]?.[n?.[i]]??"");break;default:if(void 0===t)break;a.push(e?.[r]?.[n]??"")}return a.join(" ")},Ge=({className:t,cols:e,gap:n,gapX:r,gapY:a,align:i,justify:s,gridFlow:o,colsSubGrid:l=!1,rowsSubGrid:c=!1,autoRows:u=!1,autoCols:d=!1,children:f,...p})=>{const h=Be(e,Pe,1),m=Be(n,Ne,"sm"),v=Be(r,Xe,""),g=Be(a,Te,""),y=Be(i,We,""),b=Be(s,Me,""),w=Be(o,Oe,"");return(0,Pt.jsx)("div",{className:Ee("grid",{"grid-cols-subgrid":l,"grid-rows-subgrid":c,"auto-cols-auto":d,"auto-rows-auto":u},h,m,v,g,y,b,w,t),...p,children:f})};Ge.Item=({className:t,children:e,colSpan:n,colStart:r,alignSelf:a,justifySelf:i,...s})=>{const o=Be(n,Se,0),l=Be(r,ze,0),c=Be(a,je,""),u=Be(i,Fe,"");return(0,Pt.jsx)("div",{className:Ee(o,l,c,u,t),...s,children:e})};const Ue=(0,n.createContext)({}),Ye=({containerType:t="flex",gap:e="sm",gapX:n,gapY:r,direction:a,justify:i,align:s,wrap:o,cols:l,className:c,children:u,...d})=>{if("grid"===t)return(0,Pt.jsx)(Ue.Provider,{value:{containerType:t},children:(0,Pt.jsx)(Ge,{className:c,gap:e,gapX:n,gapY:r,cols:l,children:u,align:s,justify:i,...d})});const f=Be(o,ke,""),p=Be(e,Ne,"sm"),h=Be(n,Xe,""),m=Be(r,Te,""),v=Be(a,qe,""),g=Be(i,Me,""),y=Be(s,We,""),b=Ee("flex",f,p,h,m,v,g,y,c);return(0,Pt.jsx)(Ue.Provider,{value:{containerType:t,cols:l},children:"flex"===t?(0,Pt.jsx)("div",{className:b,children:u}):(0,Pt.jsx)(Ge,{className:c,gap:e,gapX:n,gapY:r,cols:l,children:u,align:s,justify:i,...d})})},Ke=({grow:t,shrink:e,order:r,alignSelf:a,justifySelf:i,className:s,children:o,...l})=>{const{containerType:c,cols:u}=(0,n.useContext)(Ue);if("grid"===c)return(0,Pt.jsx)(Ge.Item,{className:s,alignSelf:a,justifySelf:i,children:o,...l});const d=Be(a,je,""),f=Be(i,Fe,""),p=Be(t,Ze,0),h=Be(e,He,0),m=Be(r,Ie,0),v=Be(u,De,1);return(0,Pt.jsx)("div",{className:Ee("box-border",p,h,m,d,f,v,s),children:o})};Ye.Item=Ke,Ye.displayName="Container",Ke.displayName="Container.Item";const Je={400:"font-normal",500:"font-medium",600:"font-semibold",700:"font-bold"},Qe={36:"text-4xl",30:"text-3xl",24:"text-2xl",20:"text-xl",18:"text-lg",16:"text-base",14:"text-sm",12:"text-xs"},_e={44:"leading-11",38:"leading-9.5",32:"leading-8",30:"leading-7.5",28:"leading-7",24:"leading-6",20:"leading-5",16:"leading-4"},$e={2:"tracking-2"},tn={brand600:"text-brand-primary-600",link:"text-link-primary",primary:"text-text-primary",secondary:"text-text-secondary",tertiary:"text-text-tertiary",disabled:"text-text-disabled",help:"text-field-helper",label:"text-field-label",info:"text-support-info",success:"text-support-success",warning:"text-support-warning",error:"text-support-error",inverse:"text-text-on-color"},en=(0,n.forwardRef)(function({as:t,children:e,weight:n,size:r,lineHeight:a,letterSpacing:i,color:s="primary",className:o,...l},c){return(0,Pt.jsx)(t||"p",{ref:c,className:Ee("m-0 p-0",n?Je[n]:"",r?Qe[r]:"",a?_e[a]:"",i?$e[i]:"",s?tn[s]:"",o),...l,children:e})}),nn=window.wp.apiFetch;var rn=a.n(nn);const{entries:an,setPrototypeOf:sn,isFrozen:on,getPrototypeOf:ln,getOwnPropertyDescriptor:cn}=Object;let{freeze:un,seal:dn,create:fn}=Object,{apply:pn,construct:hn}="undefined"!=typeof Reflect&&Reflect;un||(un=function(t){return t}),dn||(dn=function(t){return t}),pn||(pn=function(t,e,n){return t.apply(e,n)}),hn||(hn=function(t,e){return new t(...e)});const mn=Xn(Array.prototype.forEach),vn=Xn(Array.prototype.lastIndexOf),gn=Xn(Array.prototype.pop),yn=Xn(Array.prototype.push),bn=Xn(Array.prototype.splice),wn=Xn(String.prototype.toLowerCase),xn=Xn(String.prototype.toString),Cn=Xn(String.prototype.match),An=Xn(String.prototype.replace),En=Xn(String.prototype.indexOf),Ln=Xn(String.prototype.trim),Rn=Xn(Object.prototype.hasOwnProperty),Vn=Xn(RegExp.prototype.test),Pn=(Nn=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return hn(Nn,e)});var Nn;function Xn(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return pn(t,e,r)}}function Tn(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wn;sn&&sn(t,null);let r=e.length;for(;r--;){let a=e[r];if("string"==typeof a){const t=n(a);t!==a&&(on(e)||(e[r]=t),a=t)}t[a]=!0}return t}function Sn(t){for(let e=0;e<t.length;e++)Rn(t,e)||(t[e]=null);return t}function zn(t){const e=fn(null);for(const[n,r]of an(t))Rn(t,n)&&(Array.isArray(r)?e[n]=Sn(r):r&&"object"==typeof r&&r.constructor===Object?e[n]=zn(r):e[n]=r);return e}function On(t,e){for(;null!==t;){const n=cn(t,e);if(n){if(n.get)return Xn(n.get);if("function"==typeof n.value)return Xn(n.value)}t=ln(t)}return function(){return null}}const Mn=un(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Wn=un(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),jn=un(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Fn=un(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),qn=un(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),kn=un(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Dn=un(["#text"]),In=un(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Zn=un(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Hn=un(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Bn=un(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Gn=dn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Un=dn(/<%[\w\W]*|[\w\W]*%>/gm),Yn=dn(/\$\{[\w\W]*/gm),Kn=dn(/^data-[\-\w.\u00B7-\uFFFF]+$/),Jn=dn(/^aria-[\-\w]+$/),Qn=dn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$n=dn(/^(?:\w+script|data):/i),tr=dn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),er=dn(/^html$/i),nr=dn(/^[a-z][.\w]*(-[.\w]+)+$/i);var rr=Object.freeze({__proto__:null,ARIA_ATTR:Jn,ATTR_WHITESPACE:tr,CUSTOM_ELEMENT:nr,DATA_ATTR:Kn,DOCTYPE_NAME:er,ERB_EXPR:Un,IS_ALLOWED_URI:Qn,IS_SCRIPT_OR_DATA:$n,MUSTACHE_EXPR:Gn,TMPLIT_EXPR:Yn});const ar=function(){return"undefined"==typeof window?null:window};var ir=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ar();const n=e=>t(e);if(n.version="3.2.6",n.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return n.isSupported=!1,n;let{document:r}=e;const a=r,i=a.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:h}=e,m=c.prototype,v=On(m,"cloneNode"),g=On(m,"remove"),y=On(m,"nextSibling"),b=On(m,"childNodes"),w=On(m,"parentNode");if("function"==typeof o){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let x,C="";const{implementation:A,createNodeIterator:E,createDocumentFragment:L,getElementsByTagName:R}=r,{importNode:V}=a;let P={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof an&&"function"==typeof w&&A&&void 0!==A.createHTMLDocument;const{MUSTACHE_EXPR:N,ERB_EXPR:X,TMPLIT_EXPR:T,DATA_ATTR:S,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:M,CUSTOM_ELEMENT:W}=rr;let{IS_ALLOWED_URI:j}=rr,F=null;const q=Tn({},[...Mn,...Wn,...jn,...qn,...Dn]);let k=null;const D=Tn({},[...In,...Zn,...Hn,...Bn]);let I=Object.seal(fn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Z=null,H=null,B=!0,G=!0,U=!1,Y=!0,K=!1,J=!0,Q=!1,_=!1,$=!1,tt=!1,et=!1,nt=!1,rt=!0,at=!1,it=!0,st=!1,ot={},lt=null;const ct=Tn({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ut=null;const dt=Tn({},["audio","video","img","source","image","track"]);let ft=null;const pt=Tn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ht="http://www.w3.org/1998/Math/MathML",mt="http://www.w3.org/2000/svg",vt="http://www.w3.org/1999/xhtml";let gt=vt,yt=!1,bt=null;const wt=Tn({},[ht,mt,vt],xn);let xt=Tn({},["mi","mo","mn","ms","mtext"]),Ct=Tn({},["annotation-xml"]);const At=Tn({},["title","style","font","a","script"]);let Et=null;const Lt=["application/xhtml+xml","text/html"];let Rt=null,Vt=null;const Pt=r.createElement("form"),Nt=function(t){return t instanceof RegExp||t instanceof Function},Xt=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Vt||Vt!==t){if(t&&"object"==typeof t||(t={}),t=zn(t),Et=-1===Lt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Rt="application/xhtml+xml"===Et?xn:wn,F=Rn(t,"ALLOWED_TAGS")?Tn({},t.ALLOWED_TAGS,Rt):q,k=Rn(t,"ALLOWED_ATTR")?Tn({},t.ALLOWED_ATTR,Rt):D,bt=Rn(t,"ALLOWED_NAMESPACES")?Tn({},t.ALLOWED_NAMESPACES,xn):wt,ft=Rn(t,"ADD_URI_SAFE_ATTR")?Tn(zn(pt),t.ADD_URI_SAFE_ATTR,Rt):pt,ut=Rn(t,"ADD_DATA_URI_TAGS")?Tn(zn(dt),t.ADD_DATA_URI_TAGS,Rt):dt,lt=Rn(t,"FORBID_CONTENTS")?Tn({},t.FORBID_CONTENTS,Rt):ct,Z=Rn(t,"FORBID_TAGS")?Tn({},t.FORBID_TAGS,Rt):zn({}),H=Rn(t,"FORBID_ATTR")?Tn({},t.FORBID_ATTR,Rt):zn({}),ot=!!Rn(t,"USE_PROFILES")&&t.USE_PROFILES,B=!1!==t.ALLOW_ARIA_ATTR,G=!1!==t.ALLOW_DATA_ATTR,U=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,K=t.SAFE_FOR_TEMPLATES||!1,J=!1!==t.SAFE_FOR_XML,Q=t.WHOLE_DOCUMENT||!1,tt=t.RETURN_DOM||!1,et=t.RETURN_DOM_FRAGMENT||!1,nt=t.RETURN_TRUSTED_TYPE||!1,$=t.FORCE_BODY||!1,rt=!1!==t.SANITIZE_DOM,at=t.SANITIZE_NAMED_PROPS||!1,it=!1!==t.KEEP_CONTENT,st=t.IN_PLACE||!1,j=t.ALLOWED_URI_REGEXP||Qn,gt=t.NAMESPACE||vt,xt=t.MATHML_TEXT_INTEGRATION_POINTS||xt,Ct=t.HTML_INTEGRATION_POINTS||Ct,I=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Nt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(I.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Nt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(I.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(I.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(G=!1),et&&(tt=!0),ot&&(F=Tn({},Dn),k=[],!0===ot.html&&(Tn(F,Mn),Tn(k,In)),!0===ot.svg&&(Tn(F,Wn),Tn(k,Zn),Tn(k,Bn)),!0===ot.svgFilters&&(Tn(F,jn),Tn(k,Zn),Tn(k,Bn)),!0===ot.mathMl&&(Tn(F,qn),Tn(k,Hn),Tn(k,Bn))),t.ADD_TAGS&&(F===q&&(F=zn(F)),Tn(F,t.ADD_TAGS,Rt)),t.ADD_ATTR&&(k===D&&(k=zn(k)),Tn(k,t.ADD_ATTR,Rt)),t.ADD_URI_SAFE_ATTR&&Tn(ft,t.ADD_URI_SAFE_ATTR,Rt),t.FORBID_CONTENTS&&(lt===ct&&(lt=zn(lt)),Tn(lt,t.FORBID_CONTENTS,Rt)),it&&(F["#text"]=!0),Q&&Tn(F,["html","head","body"]),F.table&&(Tn(F,["tbody"]),delete Z.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw Pn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw Pn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=t.TRUSTED_TYPES_POLICY,C=x.createHTML("")}else void 0===x&&(x=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const a="dompurify"+(n?"#"+n:"");try{return t.createPolicy(a,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(h,i)),null!==x&&"string"==typeof C&&(C=x.createHTML(""));un&&un(t),Vt=t}},Tt=Tn({},[...Wn,...jn,...Fn]),St=Tn({},[...qn,...kn]),zt=function(t){yn(n.removed,{element:t});try{w(t).removeChild(t)}catch(e){g(t)}},Ot=function(t,e){try{yn(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){yn(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(tt||et)try{zt(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},Mt=function(t){let e=null,n=null;if($)t="<remove></remove>"+t;else{const e=Cn(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Et&>===vt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const a=x?x.createHTML(t):t;if(gt===vt)try{e=(new p).parseFromString(a,Et)}catch(t){}if(!e||!e.documentElement){e=A.createDocument(gt,"template",null);try{e.documentElement.innerHTML=yt?C:a}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),gt===vt?R.call(e,Q?"html":"body")[0]:Q?e.documentElement:i},Wt=function(t){return E.call(t.ownerDocument||t,t,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},jt=function(t){return t instanceof f&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof d)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Ft=function(t){return"function"==typeof l&&t instanceof l};function qt(t,e,r){mn(t,t=>{t.call(n,e,r,Vt)})}const kt=function(t){let e=null;if(qt(P.beforeSanitizeElements,t,null),jt(t))return zt(t),!0;const r=Rt(t.nodeName);if(qt(P.uponSanitizeElement,t,{tagName:r,allowedTags:F}),J&&t.hasChildNodes()&&!Ft(t.firstElementChild)&&Vn(/<[/\w!]/g,t.innerHTML)&&Vn(/<[/\w!]/g,t.textContent))return zt(t),!0;if(7===t.nodeType)return zt(t),!0;if(J&&8===t.nodeType&&Vn(/<[/\w]/g,t.data))return zt(t),!0;if(!F[r]||Z[r]){if(!Z[r]&&It(r)){if(I.tagNameCheck instanceof RegExp&&Vn(I.tagNameCheck,r))return!1;if(I.tagNameCheck instanceof Function&&I.tagNameCheck(r))return!1}if(it&&!lt[r]){const e=w(t)||t.parentNode,n=b(t)||t.childNodes;if(n&&e)for(let r=n.length-1;r>=0;--r){const a=v(n[r],!0);a.__removalCount=(t.__removalCount||0)+1,e.insertBefore(a,y(t))}}return zt(t),!0}return t instanceof c&&!function(t){let e=w(t);e&&e.tagName||(e={namespaceURI:gt,tagName:"template"});const n=wn(t.tagName),r=wn(e.tagName);return!!bt[t.namespaceURI]&&(t.namespaceURI===mt?e.namespaceURI===vt?"svg"===n:e.namespaceURI===ht?"svg"===n&&("annotation-xml"===r||xt[r]):Boolean(Tt[n]):t.namespaceURI===ht?e.namespaceURI===vt?"math"===n:e.namespaceURI===mt?"math"===n&&Ct[r]:Boolean(St[n]):t.namespaceURI===vt?!(e.namespaceURI===mt&&!Ct[r])&&!(e.namespaceURI===ht&&!xt[r])&&!St[n]&&(At[n]||!Tt[n]):!("application/xhtml+xml"!==Et||!bt[t.namespaceURI]))}(t)?(zt(t),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!Vn(/<\/no(script|embed|frames)/i,t.innerHTML)?(K&&3===t.nodeType&&(e=t.textContent,mn([N,X,T],t=>{e=An(e,t," ")}),t.textContent!==e&&(yn(n.removed,{element:t.cloneNode()}),t.textContent=e)),qt(P.afterSanitizeElements,t,null),!1):(zt(t),!0)},Dt=function(t,e,n){if(rt&&("id"===e||"name"===e)&&(n in r||n in Pt))return!1;if(G&&!H[e]&&Vn(S,e));else if(B&&Vn(z,e));else if(!k[e]||H[e]){if(!(It(t)&&(I.tagNameCheck instanceof RegExp&&Vn(I.tagNameCheck,t)||I.tagNameCheck instanceof Function&&I.tagNameCheck(t))&&(I.attributeNameCheck instanceof RegExp&&Vn(I.attributeNameCheck,e)||I.attributeNameCheck instanceof Function&&I.attributeNameCheck(e))||"is"===e&&I.allowCustomizedBuiltInElements&&(I.tagNameCheck instanceof RegExp&&Vn(I.tagNameCheck,n)||I.tagNameCheck instanceof Function&&I.tagNameCheck(n))))return!1}else if(ft[e]);else if(Vn(j,An(n,M,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==En(n,"data:")||!ut[t])if(U&&!Vn(O,An(n,M,"")));else if(n)return!1;return!0},It=function(t){return"annotation-xml"!==t&&Cn(t,W)},Zt=function(t){qt(P.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||jt(t))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:k,forceKeepAttr:void 0};let a=e.length;for(;a--;){const i=e[a],{name:s,namespaceURI:o,value:l}=i,c=Rt(s),u=l;let d="value"===s?u:Ln(u);if(r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,qt(P.uponSanitizeAttribute,t,r),d=r.attrValue,!at||"id"!==c&&"name"!==c||(Ot(s,t),d="user-content-"+d),J&&Vn(/((--!?|])>)|<\/(style|title)/i,d)){Ot(s,t);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Ot(s,t);continue}if(!Y&&Vn(/\/>/i,d)){Ot(s,t);continue}K&&mn([N,X,T],t=>{d=An(d,t," ")});const f=Rt(t.nodeName);if(Dt(f,c,d)){if(x&&"object"==typeof h&&"function"==typeof h.getAttributeType)if(o);else switch(h.getAttributeType(f,c)){case"TrustedHTML":d=x.createHTML(d);break;case"TrustedScriptURL":d=x.createScriptURL(d)}if(d!==u)try{o?t.setAttributeNS(o,s,d):t.setAttribute(s,d),jt(t)?zt(t):gn(n.removed)}catch(e){Ot(s,t)}}else Ot(s,t)}qt(P.afterSanitizeAttributes,t,null)},Ht=function t(e){let n=null;const r=Wt(e);for(qt(P.beforeSanitizeShadowDOM,e,null);n=r.nextNode();)qt(P.uponSanitizeShadowNode,n,null),kt(n),Zt(n),n.content instanceof s&&t(n.content);qt(P.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,o=null,c=null;if(yt=!t,yt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Ft(t)){if("function"!=typeof t.toString)throw Pn("toString is not a function");if("string"!=typeof(t=t.toString()))throw Pn("dirty is not a string, aborting")}if(!n.isSupported)return t;if(_||Xt(e),n.removed=[],"string"==typeof t&&(st=!1),st){if(t.nodeName){const e=Rt(t.nodeName);if(!F[e]||Z[e])throw Pn("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)r=Mt("\x3c!----\x3e"),i=r.ownerDocument.importNode(t,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!tt&&!K&&!Q&&-1===t.indexOf("<"))return x&&nt?x.createHTML(t):t;if(r=Mt(t),!r)return tt?null:nt?C:""}r&&$&&zt(r.firstChild);const u=Wt(st?t:r);for(;o=u.nextNode();)kt(o),Zt(o),o.content instanceof s&&Ht(o.content);if(st)return t;if(tt){if(et)for(c=L.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(k.shadowroot||k.shadowrootmode)&&(c=V.call(a,c,!0)),c}let d=Q?r.outerHTML:r.innerHTML;return Q&&F["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Vn(er,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),K&&mn([N,X,T],t=>{d=An(d,t," ")}),x&&nt?x.createHTML(d):d},n.setConfig=function(){Xt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),_=!0},n.clearConfig=function(){Vt=null,_=!1},n.isValidAttribute=function(t,e,n){Vt||Xt({});const r=Rt(t),a=Rt(e);return Dt(r,a,n)},n.addHook=function(t,e){"function"==typeof e&&yn(P[t],e)},n.removeHook=function(t,e){if(void 0!==e){const n=vn(P[t],e);return-1===n?void 0:bn(P[t],n,1)[0]}return gn(P[t])},n.removeHooks=function(t){P[t]=[]},n.removeAllHooks=function(){P={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const sr=(...t)=>t.filter(Boolean).join(" "),or=(t,{url:e=astra_admin.upgrade_url,campaign:n="",disableSpinner:r=!1,spinnerPosition:a="right"}={})=>{if(t.preventDefault(),t.stopPropagation(),!astra_admin.pro_installed_status){if(n){const t=new URL(e);t.searchParams.set("utm_campaign",n),e=t.toString()}return void window.open(e,"_blank")}const i=r?"":ur(),s="right"===a?`<span class="button-text">${astra_admin.plugin_activating_text}</span>${i}`:`${i}<span class="button-text">${astra_admin.plugin_activating_text}</span>`;t.target.innerHTML=ir.sanitize(s),t.target.disabled=!0;const o=new window.FormData;o.append("action","astra_recommended_plugin_activate"),o.append("security",astra_admin.plugin_manager_nonce),o.append("init","astra-addon/astra-addon.php"),rn()({url:astra_admin.ajax_url,method:"POST",body:o}).then(t=>{t.success&&window.open(astra_admin.astra_base_url,"_self")}).catch(e=>{t.target.innerText=(0,xt.__)("Activation failed. Please try again.","astra"),t.target.disabled=!1,console.error("Error during API request:",e)})},lr=(t,e)=>{let n;function r(...r){clearTimeout(n),n=setTimeout(()=>t(...r),e)}return r.cancel=()=>{clearTimeout(n)},r},cr=()=>astra_admin.pro_installed_status?(0,xt.__)("Activate Now","astra"):(0,xt.__)("Upgrade Now","astra"),ur=()=>'\n\t\t<svg class="animate-spin installer-spinner ml-2 inline-block align-middle" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" width="16" height="16">\n\t\t\t<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4"></circle>\n\t\t\t<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>\n\t\t</svg>\n\t',dr=lr(({action:t="astra_update_admin_setting",security:e=astra_admin.update_nonce,key:n="",value:r},a,i={current:{}})=>{i.current[n]&&i.current[n]?.abort();const s=new AbortController;i.current[n]=s;const o=new window.FormData;return o.append("action",t),o.append("security",e),o.append("key",n),o.append("value",r),rn()({url:astra_admin.ajax_url,method:"POST",body:o,signal:i.current[n]?.signal}).then(()=>{a({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,xt.__)("Successfully saved!","astra")})}).catch(t=>{"AbortError"!==t.name&&(console.error("Error during API request:",t),a({type:"UPDATE_SETTINGS_SAVED_NOTIFICATION",payload:(0,xt.__)("An error occurred while saving.","astra")}))})},300),fr=({className:e,children:n})=>(0,t.createElement)("section",{className:sr("p-4 bg-background-primary rounded-xl flex flex-col gap-3",e)},n);fr.Header=({className:e,heading:n,children:r})=>(0,t.createElement)("div",{className:sr("px-1 flex items-center justify-between",e)},n&&(0,t.createElement)(en,{weight:600},n),r),fr.Body=({className:e,children:n})=>(0,t.createElement)("div",{className:sr("w-full",e)},n);const pr=fr,hr=({className:e="",href:n="#",target:r,rel:a,children:i})=>(0,t.createElement)(en,{className:sr("inline-flex items-center gap-1 no-underline text-link-primary hover:text-link-primary-hover",e),as:"a",size:12,weight:500,href:n,target:r,rel:a},i),mr=()=>{const e=astra_admin.quick_settings;return(0,t.createElement)(pr,null,(0,t.createElement)(pr.Header,{heading:(0,xt.__)("Quick Settings","astra")},(0,t.createElement)(hr,{className:"p-0.5",href:astra_admin.customize_url,target:"_self",rel:"noreferrer"},(0,xt.__)("Go to Customizer","astra"),(0,t.createElement)(Vt,{size:16}))),(0,t.createElement)(pr.Body,null,(0,t.createElement)(Ye,{className:"p-1 bg-background-secondary rounded-lg gap-1",containerType:"grid",cols:{sm:2,md:3,lg:4}},Object.entries(e)?.map(([e,{title:n,quick_url:r}])=>(0,t.createElement)(Ye.Item,{key:e,alignSelf:"auto",className:"text-wrap card-border rounded-md bg-background-primary p-2 hover:border-border-subtle block-item hover:shadow-sm "},(0,t.createElement)(Ye,{align:"center",containerType:"flex",direction:"column",justify:"between",gap:""},(0,t.createElement)("div",{className:"flex flex-col w-full px-1 gap-0.5"},(0,t.createElement)(en,{weight:500},n),(0,t.createElement)(hr,{className:"text-text-tertiary w-max",href:r,rel:"noreferrer",target:"_blank"},(0,xt.__)("Customize","astra")))))))))},vr=({title:t="",description:e="",icon:n=null,iconPosition:r="right",tag:a="h2",size:i="sm",className:s=""})=>{const o={xs:"gap-1 [&>svg]:size-3.5",sm:"gap-1 [&>svg]:size-4",md:"gap-1.5 [&>svg]:size-5",lg:"gap-1.5 [&>svg]:size-5"};if(!t)return null;const l=()=>(0,Pt.jsx)(a,{className:Ee("font-semibold p-0 m-0",{xs:"text-base [&>*]:text-base gap-1",sm:"text-lg [&>*]:text-lg gap-1",md:"text-xl [&>*]:text-xl gap-1.5",lg:"text-2xl [&>*]:text-2xl gap-1.5"}[i]),children:t});return e?(0,Pt.jsxs)("div",{className:s,children:[(0,Pt.jsxs)("div",{children:[n&&"left"===r&&(0,Pt.jsxs)("div",{className:Ee("flex items-center",o[i]),children:[n,l()]}),n&&"right"===r&&(0,Pt.jsxs)("div",{className:Ee("flex items-center",o[i]),children:[l(),n]}),!n&&l()]}),(0,Pt.jsx)("p",{className:Ee("text-text-secondary font-normal my-0",{xs:"text-sm",sm:"text-sm",md:"text-base",lg:"text-base"}[i]),children:e})]}):(0,Pt.jsxs)("div",{className:s,children:[n&&"left"===r&&(0,Pt.jsxs)("div",{className:Ee("flex items-center",o[i]),children:[n,l()]}),n&&"right"===r&&(0,Pt.jsxs)("div",{className:Ee("flex items-center",o[i]),children:[l(),n]}),!n&&l()]})},gr=(...t)=>t.filter((t,e,n)=>Boolean(t)&&n.indexOf(t)===e).join(" ");var yr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const br=(0,n.forwardRef)(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:i="",children:s,iconNode:o,...l},c)=>(0,n.createElement)("svg",{ref:c,...yr,width:e,height:e,stroke:t,strokeWidth:a?24*Number(r)/Number(e):r,className:gr("lucide",i),...l},[...o.map(([t,e])=>(0,n.createElement)(t,e)),...Array.isArray(s)?s:[s]])),wr=(t,e)=>{const r=(0,n.forwardRef)(({className:r,...a},i)=>{return(0,n.createElement)(br,{ref:i,iconNode:e,className:gr(`lucide-${s=t,s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,r),...a});var s});return r.displayName=`${t}`,r},xr=wr("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Cr=(0,n.forwardRef)(({label:t="",size:e="sm",className:n="",type:r="pill",variant:a="neutral",icon:i=null,disabled:s=!1,onClose:o=()=>{},closable:l=!1,onMouseDown:c=()=>{},disableHover:u=!1},d)=>{const f={neutral:"bg-badge-background-gray text-badge-color-gray border-badge-border-gray",red:"bg-badge-background-red text-badge-color-red border-badge-border-red",yellow:"bg-badge-background-yellow text-badge-color-yellow border-badge-border-yellow",green:"bg-badge-background-green text-badge-color-green border-badge-border-green",blue:"bg-badge-background-sky text-badge-color-sky border-badge-border-sky",inverse:"bg-background-inverse text-text-inverse border-background-inverse",disabled:"bg-badge-background-disabled text-badge-color-disabled border-badge-border-disabled disabled cursor-not-allowed"};let p="",h="group relative justify-center flex items-center cursor-pointer";const m={xxs:"[&>svg]:size-3",xs:"[&>svg]:size-3",sm:"[&>svg]:size-3",md:"[&>svg]:size-4",lg:"[&>svg]:size-5"};return s?(p=f.disabled,h+=" cursor-not-allowed disabled"):p=f[a],t?(0,Pt.jsxs)("span",{className:Ee("font-medium border-badge-border-gray flex items-center justify-center border border-solid box-border max-w-full transition-colors duration-150 ease-in-out",{xxs:"py-0.5 px-0.5 text-xs h-4",xs:"py-0.5 px-1 text-xs h-5",sm:"py-1 px-1.5 text-xs h-6",md:"py-1 px-1.5 text-sm h-7",lg:"py-1 px-1.5 text-base h-8"}[e],{pill:"rounded-full",rounded:"rounded"}[r],"gap-0.5",p,!u&&{neutral:"hover:bg-badge-hover-gray",red:"hover:bg-badge-hover-red",yellow:"hover:bg-badge-hover-yellow",green:"hover:bg-badge-hover-green",blue:"hover:bg-badge-hover-sky",inverse:"hover:bg-badge-hover-inverse",disabled:"hover:bg-badge-hover-disabled"}[a],n),ref:d,children:[i?(0,Pt.jsx)("span",{className:Ee("justify-center flex items-center",m[e]),children:i}):null,(0,Pt.jsx)("span",{className:"px-1 truncate inline-block",children:t}),l&&(0,Pt.jsxs)("span",{className:Ee(h,m[e]),onMouseDown:c,role:"button",tabIndex:0,...!s&&{onClick:o},children:[(0,Pt.jsx)("span",{className:"sr-only",children:`Remove ${t}`}),(0,Pt.jsx)(xr,{}),(0,Pt.jsx)("span",{className:"absolute -inset-1"})]})]}):null});Cr.displayName="Badge";const Ar=(0,n.forwardRef)((t,e)=>{const{variant:r="primary",size:a="md",type:i="button",tag:s="button",className:o,children:l,disabled:c=!1,destructive:u=!1,icon:d=null,iconPosition:f="left",loading:p=!1,...h}=t,m=u&&"focus:ring-focus-error",v=p?"opacity-50 disabled:cursor-not-allowed":"",g={primary:"text-text-on-color bg-button-primary hover:bg-button-primary-hover outline-button-primary hover:outline-button-primary-hover shadow-xs disabled:shadow-none focus:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",secondary:"text-text-on-color bg-button-secondary hover:bg-button-secondary-hover outline-button-secondary hover:outline-button-secondary-hover shadow-xs focus:shadow-none disabled:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",outline:"text-button-tertiary-color outline-border-subtle bg-button-tertiary shadow-sm focus:shadow-none hover:bg-button-tertiary-hover hover:outline-border-subtle disabled:bg-button-tertiary disabled:outline-border-disabled",ghost:"text-text-primary bg-transparent outline-transparent hover:bg-button-tertiary-hover",link:"outline-none text-link-primary bg-transparent hover:text-link-primary-hover hover:underline p-0 border-0 leading-none"}[r],y=u&&!c?{primary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",secondary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",outline:"text-button-danger outline outline-1 outline-button-danger hover:outline-button-danger bg-button-tertiary hover:bg-field-background-error",ghost:"text-button-danger hover:bg-field-background-error",link:"text-button-danger hover:text-button-danger-secondary"}[r]:"",b={xs:"p-1 rounded [&>svg]:size-4",sm:"p-2 rounded [&>svg]:size-4 gap-0.5",md:"p-2.5 rounded-md text-sm [&>svg]:size-5 gap-1",lg:"p-3 rounded-lg text-base [&>svg]:size-6 gap-1"}[a];let w,x=null,C="";return d&&(C="flex items-center justify-center","left"===f?w=d:x=d),(0,Pt.jsxs)(s,{ref:e,type:i,className:Ee(C,"outline outline-1 border-none cursor-pointer transition-colors duration-300 ease-in-out text-xs font-semibold focus:ring-2 focus:ring-toggle-on focus:ring-offset-2 disabled:text-text-disabled",b,g,y,m,v,{"cursor-default":c},o),disabled:c,...h,children:[(0,Pt.jsx)(n.Fragment,{children:w},"left-icon"),l?(0,Pt.jsx)("span",{className:"px-1",children:l}):null,(0,Pt.jsx)(n.Fragment,{children:x},"right-icon")]})});Ar.displayName="Button";const Er=Rt("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Lr={aiFeaturedImage:a.p+"images/ai-featured-image.bf190583.png",astraVideoThumbnail:a.p+"images/astra-video-thumbnail.f50df26c.png",starterTemplatesBanner:a.p+"images/starter-templates-banner.9a4fed4b.png",upgradeToProWoo:a.p+"images/upgrade-to-pro-woo.2a25c061.png",spectraBanner:a.p+"images/spectra-banner.32fc2968.png"},Rr=()=>{const[e,r]=(0,n.useState)(null),a=new URLSearchParams(K()?.search),i=!!astra_admin.show_banner_video;return a.get("astra-activation-redirect"),(0,n.useEffect)(()=>{const t=t=>{"Escape"===t.key&&r(null)};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[]),(0,t.createElement)(Ye,{className:"bg-background-primary p-4 rounded-xl items-center text-text-primary",cols:12,containerType:"grid",gap:"2xl"},(0,t.createElement)(Ye.Item,{className:"xl:col-span-6 flex flex-col gap-4 p-2",colSpan:{lg:12,md:12,sm:12}},(0,t.createElement)(en,{className:"sr-only"},(0,xt.__)("Welcome Banner","astra")),(0,t.createElement)("div",{className:"flex flex-col gap-1"},(0,t.createElement)(en,{as:"h5",size:18,color:"secondary"},(0,xt.sprintf)((0,xt.__)("Hello %s","astra"),astra_admin.current_user)),(0,t.createElement)("div",{className:"flex gap-3"},(0,t.createElement)(vr,{className:"text-text-primary",size:"lg",tag:"h2",title:(0,xt.sprintf)((0,xt.__)("Welcome To %s!","astra"),astra_admin.theme_name)}),(0,t.createElement)(Cr,{className:"uppercase -translate-y-1/2 py-0 px-1 text-text-secondary bg-background-secondary",label:astra_admin?.pro_available?(0,xt.__)("Pro Version","astra"):(0,xt.__)("Free Version","astra"),size:"xs",variant:"neutral",type:"rounded"})),(0,t.createElement)(en,{className:"py-3",size:14,color:"secondary"},(0,xt.sprintf)((0,xt.__)( // translators: %s is the theme name. "%s is fast, fully customizable & beautiful WordPress theme suitable for blog, personal portfolio, business website and WooCommerce storefront. It is very lightweight and offers unparalleled speed.","astra"),astra_admin.theme_name))),(0,t.createElement)("div",{className:"flex gap-3"},(0,t.createElement)(Ar,{type:"secondary",size:"md",className:"text-button-primary hover:bg-button-secondary hover:bg-background-button-hover hover:outline-button-secondary",variant:"secondary",onClick:()=>{window.open(astra_admin.customize_url,"_self")}},(0,xt.__)("Start Customizing","astra")))),(0,t.createElement)(Ye.Item,{colSpan:{lg:12,md:12,sm:12},className:"xl:col-span-6 relative xl:ml-4 p-2",onClick:()=>r("https://www.youtube-nocookie.com/embed/TBZd9oligCw?showinfo=0&autoplay=1&rel=0")},i&&(0,t.createElement)("div",{className:"astra-video-container lg:col-span-3 md:col-span-8 col-span-8 relative cursor-pointer group"},(0,t.createElement)("img",{src:Lr.astraVideoThumbnail,className:"w-full h-full object-cover rounded-lg aspect-video hover:shadow-overlay-video",alt:(0,xt.__)("Astra Video Thumbnail","astra")}),(0,t.createElement)("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-10 h-10 flex items-center justify-center bg-black bg-opacity-50 group-hover:bg-opacity-100 transition-opacity duration-300 rounded-full"},(0,t.createElement)("svg",{className:"w-6 h-6 text-white",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},(0,t.createElement)("path",{d:"M8 5v14l11-7L8 5z"}))))),i&&e&&(0,t.createElement)("div",{className:"fixed inset-0 flex items-center justify-center bg-black bg-opacity-70 cursor-pointer w-screen z-999999",onClick:()=>r(null)},(0,t.createElement)("div",{className:"text-text-inverse absolute top-4 right-4 flex items-center gap-2 mr-[35px] mt-5"},(0,t.createElement)(Er,{size:20,onClick:t=>{t.stopPropagation(),r(null)}})),(0,t.createElement)("div",{className:"relative rounded-lg shadow-lg w-4/5 cursor-default",onClick:t=>t.stopPropagation()},(0,t.createElement)("iframe",{className:"w-full lg:h-188 sm:h-120 h-60",src:`${e}&autoplay=1`,title:"Youtube Video Player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}))))},Vr=Rt("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),Pr=({className:e=""})=>(0,t.createElement)("svg",{className:e,width:"138",height:"119",viewBox:"0 0 138 119",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("path",{d:"M83.1363 60.863C81.3465 61.953 19.6523 63.0372 16.4254 60.863C13.778 59.0818 15.0372 28.0612 15.5994 15.759C15.6194 15.3288 15.6366 14.9272 15.6567 14.5429C15.7485 12.581 17.2917 10.576 19.2478 10.5129C24.0522 10.358 79.9124 9.78723 82.4221 11.0894C82.8753 11.3246 83.2453 13.0628 83.5379 15.759H83.5408C84.8745 27.9952 84.6078 59.971 83.1392 60.863H83.1363Z",fill:"white"}),(0,t.createElement)("path",{d:"M31.0541 46.7367C28.5013 45.9651 20.8802 45.7127 20.5045 46.8543C20.1259 48.0016 19.7559 55.6255 20.4299 56.6811C21.104 57.7366 30.8849 57.7911 31.4413 56.9478C31.9978 56.1045 31.9777 47.0178 31.057 46.7367H31.0541Z",fill:"white"}),(0,t.createElement)("path",{d:"M30.3684 49.8548C29.9267 50.8243 28.7851 51.2545 27.8127 50.8157C26.8433 50.3739 26.413 49.2324 26.8519 48.26C27.2936 47.2905 28.4352 46.8603 29.4075 47.2991C30.3799 47.738 30.8072 48.8824 30.3684 49.8548Z",fill:"#E6BDF7"}),(0,t.createElement)("path",{d:"M31.4383 56.9482C31.6735 56.5896 31.8054 54.7539 31.8112 52.7346C30.6839 51.8828 29.0863 51.6504 27.7898 52.2298C27.2993 52.4478 26.7802 52.7777 26.2668 52.6142C25.8709 52.488 25.6271 52.1093 25.3632 51.7881C24.6404 50.9161 23.5505 50.3597 22.4204 50.2908C21.6172 50.2421 20.8055 50.44 20.1056 50.8387C19.9995 53.3054 20.0425 56.0733 20.4298 56.6814C21.1038 57.7369 30.8847 57.7914 31.4412 56.9482H31.4383Z",fill:"#E6BDF7"}),(0,t.createElement)("path",{d:"M32.0689 49.9982C32.0661 50.1846 32.1349 46.9262 31.1912 46.4358C31.1453 46.4128 31.1023 46.4013 31.0593 46.3985C29.2609 45.8908 27.3104 45.799 25.4546 45.7588C24.0578 45.7273 21.8635 45.4978 20.6072 46.2923C19.7295 46.8517 19.8987 48.6616 19.8385 49.5507C19.7123 51.4495 19.6263 53.3914 19.7955 55.2902C19.8901 56.3658 20.002 57.0771 21.1092 57.3898C22.5978 57.8086 24.2385 57.8258 25.773 57.8573C27.4108 57.8917 29.1662 57.9405 30.7753 57.5762C31.7792 57.3496 31.8997 56.8419 32.0058 55.8696C32.2181 53.9335 32.0976 48.0564 32.0661 50.0011L32.0689 49.9982ZM31.4178 54.8886C31.3719 55.6602 31.5297 56.6985 30.7065 56.9108C29.4215 57.2435 27.9644 57.1976 26.6478 57.2005C25.1449 57.2005 23.6189 57.1546 22.1331 56.9194C21.7603 56.8592 21.0776 56.8305 20.7822 56.5609C20.5068 56.3113 20.5126 55.752 20.4781 55.4049C20.3032 53.7385 20.3691 52.0318 20.4581 50.3653C20.4925 49.7028 20.5355 49.043 20.6043 48.3833C20.6388 48.0449 20.6043 47.2331 20.8338 46.9463C21.1436 46.5591 22.1446 46.5534 22.5835 46.5075C23.6189 46.4013 24.6659 46.3985 25.7042 46.4272C27.4338 46.4788 29.2465 46.582 30.9216 47.0496C31.435 47.3106 31.392 49.7974 31.4178 50.2908C31.501 51.8196 31.5125 53.3627 31.4178 54.8915V54.8886Z",fill:"white"}),(0,t.createElement)("path",{d:"M27.3938 58.0691C26.909 58.0691 26.4214 58.0604 25.9424 58.049L25.581 58.0404C24.0723 58.0088 22.5119 57.9773 21.0634 57.57C19.7813 57.2086 19.6981 56.2821 19.6121 55.304C19.44 53.3851 19.5318 51.3974 19.6551 49.5359C19.6666 49.3752 19.6694 49.1802 19.6723 48.9708C19.6866 47.987 19.7096 46.6389 20.5098 46.1312C21.6314 45.417 23.3954 45.4887 24.8123 45.5432C25.0418 45.5518 25.2598 45.5604 25.4634 45.5661C27.2217 45.6063 29.2496 45.6895 31.0967 46.2086C31.1598 46.2144 31.2229 46.2344 31.2832 46.266C32.092 46.6905 32.2355 48.7127 32.2555 49.6219C32.2555 49.6305 32.2555 49.6362 32.2584 49.6449H32.2756C32.2756 49.6621 32.2727 49.6879 32.2699 49.728C32.4104 50.9585 32.2068 55.8375 32.201 55.8891C32.092 56.8844 31.9458 57.5069 30.8243 57.7621C29.7142 58.0146 28.5554 58.0719 27.3966 58.0719L27.3938 58.0691ZM23.5445 45.8903C22.5004 45.8903 21.4363 45.9906 20.7135 46.4496C20.0853 46.8483 20.0653 48.0788 20.0509 48.9737C20.0481 49.1917 20.0452 49.3896 20.0337 49.5588C19.9104 51.406 19.8215 53.3736 19.9907 55.2696C20.0853 56.3194 20.1857 56.9246 21.1667 57.2028C22.5693 57.5986 24.1038 57.6302 25.5867 57.6589L25.9481 57.6646C27.5487 57.699 29.2037 57.7335 30.7353 57.3864C31.5958 57.1913 31.7106 56.8299 31.8195 55.8432C31.963 54.5468 31.9544 51.4261 31.9257 50.1698L31.8798 50.1611V49.9919C31.8798 49.9919 31.8798 49.9919 31.8798 49.989C31.8913 49.2089 31.7708 46.9487 31.1025 46.6016C31.0824 46.593 31.0652 46.5872 31.048 46.5844L31.005 46.5786C29.1979 46.0681 27.1901 45.9849 25.4491 45.9448C25.2454 45.939 25.0245 45.9304 24.7922 45.9218C24.3964 45.9046 23.969 45.8903 23.5416 45.8903H23.5445Z",fill:"#E6BDF7"}),(0,t.createElement)("path",{d:"M46.3385 46.851C43.7857 46.0795 36.1647 45.8271 35.7889 46.9686C35.4103 48.116 35.0403 55.7399 35.7143 56.7954C36.3884 57.851 46.1693 57.9055 46.7257 57.0622C47.2822 56.2189 47.2621 47.1321 46.3414 46.851H46.3385Z",fill:"white"}),(0,t.createElement)("path",{d:"M45.6533 49.9695C45.2116 50.939 44.07 51.3693 43.0977 50.9304C42.1282 50.4887 41.6979 49.3471 42.1368 48.3748C42.5785 47.4053 43.7201 46.975 44.6924 47.4139C45.6619 47.8556 46.0922 48.9972 45.6533 49.9695Z",fill:"#E6BDF7"}),(0,t.createElement)("path",{d:"M46.723 57.0602C46.9582 56.7017 47.0901 54.866 47.0958 52.8467C45.9686 51.9948 44.371 51.7625 43.0745 52.3419C42.584 52.5599 42.0648 52.8897 41.5514 52.7262C41.1556 52.6 40.9118 52.2214 40.6479 51.9002C39.9251 51.0282 38.8351 50.4717 37.705 50.4029C36.9019 50.3541 36.0902 50.5521 35.3903 50.9507C35.2842 53.4175 35.3272 56.1854 35.7144 56.7935C36.3885 57.849 46.1694 57.9035 46.7258 57.0602H46.723Z",fill:"#E6BDF7"}),(0,t.createElement)("path",{d:"M47.3541 50.1123C47.3512 50.2988 47.4201 47.0404 46.4764 46.5499C46.4305 46.527 46.3875 46.5155 46.3444 46.5126C44.546 46.0049 42.5956 45.9131 40.7398 45.873C39.3429 45.8414 37.1487 45.612 35.8924 46.4065C35.0147 46.9658 35.1839 48.7757 35.1237 49.6649C34.9975 51.5637 34.9114 53.5055 35.0806 55.4043C35.1753 56.4799 35.2872 57.1913 36.3943 57.5039C37.883 57.9227 39.5236 57.9399 41.0582 57.9715C42.696 58.0059 44.4514 58.0546 46.0605 57.6904C47.0644 57.4638 47.1849 56.9561 47.291 55.9837C47.5032 54.0476 47.3828 48.1705 47.3512 50.1152L47.3541 50.1123ZM46.703 55.0028C46.6571 55.7743 46.8148 56.8127 45.9916 57.0249C44.7066 57.3548 43.2496 57.3118 41.933 57.3146C40.43 57.3146 38.9041 57.2687 37.4183 57.0335C37.0454 56.9733 36.3628 56.9446 36.0673 56.675C35.792 56.4255 35.7977 55.8661 35.7633 55.5191C35.5883 53.8526 35.6543 52.1459 35.7432 50.4795C35.7776 49.8169 35.8207 49.1572 35.8895 48.4975C35.9239 48.159 35.8895 47.3473 36.119 47.0605C36.4287 46.6732 37.4298 46.6675 37.8686 46.6216C38.9041 46.5155 39.951 46.5126 40.9893 46.5413C42.7189 46.5929 44.5317 46.6962 46.2068 47.1637C46.7202 47.4247 46.6772 49.9115 46.703 50.4049C46.7862 51.9337 46.7976 53.4768 46.703 55.0056V55.0028Z",fill:"white"}),(0,t.createElement)("path",{d:"M42.6818 58.1837C42.197 58.1837 41.7123 58.1751 41.2304 58.1637L40.869 58.1579C39.3603 58.1264 37.7999 58.0977 36.3486 57.6875C35.0665 57.3261 34.9833 56.3996 34.8972 55.4216C34.7251 53.5027 34.8169 51.5149 34.9403 49.6534C34.9517 49.4928 34.9546 49.2977 34.9575 49.0884C34.9718 48.1045 34.9947 46.7564 35.795 46.2487C36.9165 45.5345 38.6805 45.6062 40.0975 45.6607C40.3269 45.6693 40.5449 45.678 40.7486 45.6837C42.5068 45.7238 44.5376 45.807 46.3819 46.3262C46.445 46.3319 46.5081 46.352 46.5683 46.3836C47.3801 46.8081 47.5235 48.8302 47.5407 49.7395C47.5407 49.7481 47.5407 49.7538 47.5436 49.7624H47.5608C47.5608 49.7796 47.5579 49.8054 47.555 49.8456C47.6956 51.0761 47.4919 55.9522 47.4862 56.0067C47.3772 57.002 47.228 57.6244 46.1094 57.8768C45.0022 58.1292 43.8406 58.1866 42.6847 58.1866L42.6818 58.1837ZM38.8297 46.0049C37.7856 46.0049 36.7215 46.1053 35.9958 46.5643C35.3676 46.963 35.3475 48.1906 35.3332 49.0884C35.3303 49.3063 35.3275 49.5043 35.316 49.6735C35.1927 51.5207 35.1037 53.4912 35.273 55.3843C35.3676 56.4341 35.468 57.0393 36.449 57.3175C37.8516 57.7133 39.389 57.7449 40.8748 57.7736L41.2362 57.7822C42.8367 57.8137 44.4917 57.8481 46.0176 57.5039C46.8781 57.3089 46.9928 56.9475 47.1018 55.9608C47.2453 54.6643 47.2366 51.5436 47.208 50.2873L47.1621 50.2787V50.1095C47.1621 50.1095 47.1621 50.1095 47.1621 50.1066C47.1735 49.3264 47.0531 47.0662 46.3848 46.7191C46.3647 46.7105 46.3475 46.7048 46.3303 46.7019L46.2901 46.6962C44.4831 46.1856 42.4753 46.1025 40.7342 46.0623C40.5306 46.0566 40.3097 46.048 40.0774 46.0394C39.6815 46.0221 39.2542 46.0078 38.8268 46.0078L38.8297 46.0049Z",fill:"#E6BDF7"}),(0,t.createElement)("path",{d:"M62.9611 46.8685C60.4083 46.0969 52.7872 45.8445 52.4115 46.9861C52.0329 48.1334 51.6628 55.7574 52.3369 56.8129C53.0109 57.8684 62.7918 57.9229 63.3483 57.0796C63.9047 56.2364 63.8847 47.1467 62.9639 46.8685H62.9611Z",fill:"white"}),(0,t.createElement)("path",{d:"M62.2756 49.9865C61.8339 50.956 60.6923 51.3862 59.7199 50.9474C58.7476 50.5085 58.3202 49.3641 58.759 48.3917C59.2008 47.4222 60.3423 46.992 61.3147 47.4308C62.2842 47.8726 62.7144 49.0141 62.2756 49.9865Z",fill:"#E6BDF7"}),(0,t.createElement)("path",{d:"M63.345 57.0768C63.5802 56.7183 63.7122 54.8826 63.7179 52.8633C62.5907 52.0114 60.993 51.7791 59.6966 52.3585C59.2061 52.5765 58.6869 52.9063 58.1735 52.7428C57.7777 52.6166 57.5339 52.238 57.27 51.9168C56.5472 51.0448 55.4572 50.4883 54.3271 50.4195C53.524 50.3707 52.7122 50.5687 52.0124 50.9674C51.9063 53.4341 51.9493 56.202 52.3365 56.8101C53.0106 57.8656 62.7914 57.9201 63.3479 57.0768H63.345Z",fill:"#E6BDF7"}),(0,t.createElement)("path",{d:"M63.9759 50.1267C63.973 50.3132 64.0419 47.0548 63.0982 46.5643C63.0523 46.5414 63.0093 46.5299 62.9663 46.527C61.1679 46.0193 59.2174 45.9275 57.3616 45.8874C55.9648 45.8558 53.7705 45.6264 52.5142 46.4209C51.6365 46.9802 51.8057 48.7901 51.7455 49.6793C51.6193 51.5781 51.5332 53.5199 51.7025 55.4187C51.7971 56.4943 51.909 57.2057 53.0161 57.5183C54.5048 57.9371 56.1455 57.9543 57.68 57.9859C59.3178 58.0203 61.0732 58.069 62.6823 57.7048C63.6862 57.4782 63.8067 56.9705 63.9128 55.9981C64.1251 54.062 64.0046 48.1849 63.973 50.1296L63.9759 50.1267ZM63.3248 55.02C63.2789 55.7916 63.4367 56.8299 62.6135 57.0422C61.3285 57.3749 59.8714 57.329 58.5548 57.3319C57.0518 57.3319 55.5259 57.286 54.0401 57.0508C53.6673 56.9906 52.9846 56.9619 52.6892 56.6923C52.4138 56.4427 52.4195 55.8834 52.3851 55.5363C52.2102 53.8699 52.2761 52.1632 52.365 50.4967C52.3995 49.8342 52.4425 49.1744 52.5113 48.5147C52.5457 48.1763 52.5113 47.3646 52.7408 47.0777C53.0506 46.6905 54.0516 46.6848 54.4905 46.6389C55.5259 46.5327 56.5728 46.5299 57.6112 46.5586C59.3407 46.6102 61.1535 46.7135 62.8286 47.181C63.342 47.442 63.299 49.9288 63.3248 50.4222C63.408 51.951 63.4195 53.4941 63.3248 55.0229V55.02Z",fill:"white"}),(0,t.createElement)("path",{d:"M59.2978 58.1981C58.8131 58.1981 58.3255 58.1895 57.8465 58.178L57.4851 58.1694C55.9763 58.1378 54.416 58.1063 52.9675 57.699C51.6854 57.3376 51.6022 56.4111 51.5161 55.433C51.344 53.5141 51.4358 51.5264 51.5591 49.6649C51.5706 49.5043 51.5735 49.3092 51.5764 49.0998C51.5907 48.116 51.6136 46.7679 52.4139 46.2602C53.5354 45.546 55.2994 45.6177 56.7164 45.6722C56.9458 45.6808 57.1638 45.6894 57.3675 45.6952C59.1257 45.7353 61.1536 45.8185 63.0008 46.3377C63.0639 46.3434 63.127 46.3635 63.1872 46.395C63.999 46.8195 64.1424 48.8417 64.1596 49.7509C64.1596 49.7595 64.1596 49.7653 64.1625 49.7739H64.1797C64.1797 49.7911 64.1768 49.8169 64.1739 49.8571C64.3145 51.0876 64.1108 55.9637 64.1051 56.0182C63.9961 57.0135 63.8469 57.6359 62.7283 57.8912C61.6183 58.1436 60.4595 58.2009 59.3007 58.2009L59.2978 58.1981ZM55.4514 46.0221C54.4074 46.0221 53.3432 46.1225 52.6176 46.5815C51.9894 46.9802 51.9693 48.2107 51.955 49.1056C51.9521 49.3236 51.9492 49.5215 51.9378 49.6907C51.8144 51.5379 51.7255 53.5055 51.8947 55.4015C51.9894 56.4513 52.0898 57.0565 53.0707 57.3347C54.4733 57.7305 56.0079 57.7621 57.4908 57.7908L57.8522 57.7965C59.4527 57.8309 61.1077 57.8653 62.6394 57.5183C63.4999 57.3232 63.6146 56.9618 63.7236 55.9751C63.867 54.6787 63.8584 51.558 63.8297 50.3016L63.7838 50.293V50.1238C63.7838 50.1238 63.7838 50.1238 63.7838 50.1209C63.7953 49.3408 63.6748 47.0805 63.0065 46.7335C62.9864 46.7249 62.9692 46.7191 62.952 46.7163L62.909 46.7105C61.102 46.2 59.0942 46.1168 57.3531 46.0766C57.1495 46.0709 56.9286 46.0623 56.6963 46.0537C56.3004 46.0365 55.8731 46.0221 55.4457 46.0221H55.4514Z",fill:"#E6BDF7"}),(0,t.createElement)("path",{d:"M77.8046 46.0681C75.2518 45.2965 67.6307 45.0441 67.255 46.1857C66.8764 47.333 66.5064 54.9569 67.1804 56.0125C67.8545 57.068 77.6353 57.1225 78.1918 56.2792C78.7482 55.436 78.7282 46.3492 77.8074 46.0681H77.8046Z",fill:"white"}),(0,t.createElement)("path",{d:"M77.1186 49.1861C76.6769 50.1556 75.5353 50.5858 74.563 50.147C73.5935 49.7052 73.1633 48.5637 73.6021 47.5913C74.0438 46.6218 75.1854 46.1916 76.1578 46.6304C77.1301 47.0693 77.5575 48.2137 77.1186 49.1861Z",fill:"#E6BDF7"}),(0,t.createElement)("path",{d:"M78.1888 56.2763C78.424 55.9178 78.5559 54.082 78.5617 52.0628C77.4344 51.2109 75.8368 50.9785 74.5403 51.5579C74.0498 51.7759 73.5307 52.1058 73.0172 51.9423C72.6214 51.8161 72.3776 51.4375 72.1137 51.1162C71.3909 50.2443 70.301 49.6878 69.1709 49.619C68.3677 49.5702 67.556 49.7681 66.8561 50.1668C66.75 52.6336 66.793 55.4015 67.1803 56.0095C67.8543 57.0651 77.6352 57.1196 78.1916 56.2763H78.1888Z",fill:"#E6BDF7"}),(0,t.createElement)("path",{d:"M78.8199 49.3261C78.817 49.5125 78.8859 46.2541 77.9422 45.7636C77.8963 45.7407 77.8533 45.7292 77.8103 45.7264C76.0118 45.2187 74.0614 45.1269 72.2056 45.0867C70.8088 45.0552 68.6145 44.8257 67.3582 45.6202C66.4805 46.1795 66.6497 47.9894 66.5895 48.8786C66.4633 50.7774 66.3772 52.7193 66.5465 54.6181C66.6411 55.6937 66.753 56.405 67.8601 56.7177C69.3488 57.1364 70.9895 57.1537 72.524 57.1852C74.1618 57.2196 75.9172 57.2684 77.5263 56.9041C78.5302 56.6775 78.6507 56.1698 78.7568 55.1975C78.9691 53.2614 78.8486 47.3842 78.817 49.3289L78.8199 49.3261ZM78.1688 54.2165C78.1229 54.9881 78.2807 56.0264 77.4575 56.2387C76.1725 56.5685 74.7154 56.5255 73.3988 56.5284C71.8958 56.5284 70.3699 56.4825 68.8841 56.2473C68.5112 56.187 67.8286 56.1584 67.5332 55.8887C67.2578 55.6392 67.2635 55.0799 67.2291 54.7328C67.0541 53.0663 67.1201 51.3597 67.209 49.6932C67.2435 49.0306 67.2865 48.3709 67.3553 47.7112C67.3897 47.3728 67.3553 46.561 67.5848 46.2742C67.8946 45.887 68.8956 45.8812 69.3344 45.8353C70.3699 45.7292 71.4168 45.7264 72.4552 45.755C74.1847 45.8067 75.9975 45.9099 77.6726 46.3775C78.186 46.6385 78.143 49.1253 78.1688 49.6186C78.252 51.1474 78.2635 52.6906 78.1688 54.2194V54.2165Z",fill:"white"}),(0,t.createElement)("path",{d:"M74.1442 57.3979C73.6595 57.3979 73.1747 57.3893 72.6928 57.3778L72.3314 57.3721C70.8227 57.3405 69.2623 57.3119 67.811 56.9017C66.5289 56.5403 66.4457 55.6138 66.3596 54.6357C66.1875 52.7168 66.2793 50.7291 66.4027 48.8676C66.4141 48.707 66.417 48.5148 66.4199 48.3025C66.4342 47.3187 66.4572 45.9706 67.2574 45.46C68.3789 44.7487 70.1429 44.8175 71.5599 44.872C71.7893 44.8806 72.0102 44.8893 72.211 44.895C73.9692 44.9351 76 45.0183 77.8443 45.5375C77.9074 45.5432 77.9705 45.5633 78.0279 45.5949C78.8396 46.0194 78.983 48.0415 79.0002 48.9508C79.0002 48.9594 79.0002 48.9651 79.0031 48.9737H79.0203C79.0203 48.9909 79.0174 49.0167 79.0146 49.0569C79.1551 50.2874 78.9515 55.1635 78.9457 55.218C78.8367 56.2133 78.6904 56.8357 77.5689 57.0881C76.4618 57.3405 75.3001 57.3979 74.1442 57.3979ZM70.2949 45.222C69.2509 45.222 68.1867 45.3224 67.4639 45.7813C66.8358 46.18 66.8157 47.4105 66.8013 48.3083C66.7985 48.5263 66.7956 48.7242 66.7841 48.8905C66.6608 50.7377 66.5719 52.7082 66.7411 54.6013C66.8358 55.6511 66.9362 56.2563 67.9171 56.5345C69.3197 56.9304 70.8571 56.9619 72.3429 56.9906L72.7043 56.9992C74.3019 57.0308 75.957 57.068 77.4886 56.721C78.3491 56.5259 78.4638 56.1645 78.5728 55.1778C78.7163 53.8785 78.7077 50.7607 78.679 49.5043L78.6331 49.4957V49.3265C78.6331 49.3265 78.6331 49.3265 78.6331 49.3236C78.6446 48.5435 78.5241 46.2832 77.8558 45.9333C77.8386 45.9247 77.8185 45.919 77.8013 45.9161L77.7611 45.9104C75.9541 45.3998 73.9434 45.3166 72.2052 45.2765C72.0016 45.2707 71.7807 45.2621 71.5455 45.2535C71.1497 45.2392 70.7252 45.222 70.2978 45.222H70.2949Z",fill:"#E6BDF7"}),(0,t.createElement)("path",{d:"M46.0549 33.3099H76.2093C76.5162 33.3099 76.5162 32.8337 76.2093 32.8337H46.0549C45.748 32.8337 45.748 33.3099 46.0549 33.3099Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M46.0549 36.0403H76.2093C76.5162 36.0403 76.5162 35.5642 76.2093 35.5642H46.0549C45.748 35.5642 45.748 36.0403 46.0549 36.0403Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M46.3933 38.1946H64.0505C64.3574 38.1946 64.3574 37.7185 64.0505 37.7185H46.3933C46.0864 37.7185 46.0864 38.1946 46.3933 38.1946Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M47.8532 40.7498H73.8056C74.1125 40.7498 74.1125 40.2737 73.8056 40.2737H47.8532C47.5463 40.2737 47.5463 40.7498 47.8532 40.7498Z",fill:"#6C5493"}),(0,t.createElement)("g",{opacity:"0.3"},(0,t.createElement)("path",{d:"M36.0246 41.5734C36.0418 41.3927 36.102 41.255 36.1795 41.1403C36.1881 41.0198 36.1996 40.8936 36.2082 40.7588C36.0475 41.037 35.4194 40.8936 35.0924 41.1231C35.0809 41.6279 35.8898 42.2991 36.0246 41.5734Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M21.1037 42.9272C21.4517 43.0534 21.7395 43.04 21.9671 42.887C21.9097 42.6403 21.8552 42.3937 21.795 42.1326C21.3504 41.7856 21.1152 42.0867 20.8398 42.4367C20.9345 42.6174 20.9804 42.7837 21.1037 42.9272Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M29.1606 36.554C28.6242 36.5196 28.5783 37.0932 28.6012 37.4862C28.5295 38.2319 30.219 37.1248 29.1606 36.554Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M22.8908 43.6386C22.9596 42.9301 21.907 42.9129 21.9356 43.6529C22.0848 44.1864 22.9137 44.3814 22.8908 43.6386Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M32.9556 30.4388C33.2883 30.9579 33.7013 31.0239 34.014 30.4302C33.9824 30.2667 33.9509 30.0946 33.9136 29.9024C33.3772 29.9368 33.1707 29.716 32.9556 30.4359V30.4388Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M18.2727 28.5858C18.3387 28.5658 18.4104 28.56 18.505 28.5858C18.5911 28.4453 18.6226 28.3219 18.6198 28.2158C18.4878 28.3219 18.3731 28.4453 18.2727 28.5858Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M26.3127 40.2627C26.1894 39.5973 25.3891 39.8009 25.24 40.3344C25.3633 41.0027 26.3041 40.8679 26.3127 40.2627Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M23.18 40.564C23.2947 41.0774 24.1466 40.8766 24.029 40.3804C24.115 39.4855 22.9018 39.8383 23.18 40.564Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M32.4849 44.1864C32.2267 44.2036 32.069 44.3011 31.9829 44.4331C32.2181 44.413 32.4504 44.3872 32.6828 44.3614C32.6225 44.304 32.5566 44.2466 32.4849 44.1864Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M33.3798 28.7662C33.6121 28.7461 33.7297 28.5711 33.9133 28.465C33.9477 28.2814 33.9505 28.1352 33.9276 28.0233C33.6895 27.9717 33.4515 27.9229 33.2105 27.8799C32.9839 28.0893 32.9007 28.4621 33.3798 28.7662Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M36.1107 39.3333C36.1795 38.7826 35.3133 38.5474 35.1986 39.1153C35.0236 39.7549 36.0619 40.0446 36.1107 39.3333Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M29.3787 41.7794C29.459 41.6188 29.5307 41.4754 29.6081 41.3176C29.4819 41.1542 29.2984 41.0796 29.1406 40.9648C28.9685 41.0509 28.8107 41.1341 28.6473 41.2144C28.5899 41.3635 28.5297 41.5156 28.4551 41.6991C28.6587 41.7995 28.8194 41.877 29.0029 41.9687C29.1234 41.9085 29.2582 41.8397 29.3787 41.7794Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M33.0013 41.3498C32.9296 41.8202 33.6553 42.2418 33.8446 41.6596C34.2834 41.0343 32.9984 40.5954 33.0013 41.3498Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M31.9403 33.9694C32.2672 34.021 32.5483 34.3423 32.8007 34.0354V33.4273C32.4967 32.9081 31.5473 33.499 31.9403 33.9694Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M27.4714 27.5762C27.8213 27.4443 28.0766 27.6823 28.4208 27.5389C28.438 27.4816 28.4437 27.4299 28.4495 27.3812C28.1024 27.3668 27.7553 27.3525 27.4111 27.3439C27.4197 27.4156 27.4341 27.4902 27.4714 27.5762Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M24.8954 30.9809C25.4748 30.02 24.6 29.4148 24.1382 30.5593C24.2873 30.892 24.5484 31.0039 24.8954 30.9809Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M18.4763 38.7824C17.9629 38.6992 17.6531 38.8512 17.6416 39.4134C18.0403 40.1907 18.8004 39.4278 18.4763 38.7824Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M25.4089 37.9109C25.0504 38.4702 25.5868 38.8402 26.1088 38.5534C26.4128 38.0026 25.8048 37.277 25.4089 37.9109Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M33.0015 43.6038C32.9614 44.0599 33.7301 44.4241 33.8677 43.9451C34.0484 43.1248 33.3543 42.8035 33.0015 43.6038Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M28.0764 34.2021C28.4607 34.1734 28.4664 33.5022 28.2571 33.2756C27.5744 32.9429 27.061 34.2709 28.0764 34.2021Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M28.4093 40.0846C28.0077 39.5941 27.3624 39.9182 27.5316 40.5234C27.9102 41.0196 28.6043 40.7701 28.4093 40.0846Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M22.0303 32.6068C22.3028 33.3267 22.8506 33.2349 22.9998 32.5092C22.8449 31.8868 22.0876 32.0675 22.0303 32.6068Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M32.3272 32.0706C32.5194 31.9129 32.6915 31.7723 32.8636 31.6289C32.7173 30.3009 31.2287 31.626 32.3272 32.0706Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M33.9822 34.882C33.8503 34.6955 33.7499 34.5521 33.6208 34.3743C33.3799 34.4632 33.0529 34.4058 32.9583 34.7844C33.1103 35.5417 33.7642 35.5503 33.9794 34.882H33.9822Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M17.4122 38.378C17.4753 38.2891 17.5183 38.1743 17.524 38.0424C17.4982 37.9363 17.4552 37.8646 17.4036 37.8101C17.4036 37.9994 17.4093 38.1887 17.4122 38.378Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M23.6019 37.6837C23.4671 37.764 23.338 37.8415 23.2176 37.9132C22.7242 39.399 25.1135 38.2688 23.6019 37.6837Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M23.6996 43.0476C24.0438 42.7436 24.3364 42.1039 23.6423 42.0093C23.5218 42.0867 23.3956 42.1699 23.2608 42.2588C23.2206 42.3822 23.1805 42.5112 23.1375 42.6403C23.278 42.8497 23.3899 43.1738 23.6968 43.0476H23.6996Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M18.416 41.1485C18.0947 40.7813 17.8108 41.1341 17.5928 41.3607C17.6042 41.4669 17.6186 41.5701 17.6329 41.6705C17.7448 41.8053 17.9513 41.9114 18.0976 41.9659C18.6168 41.7107 18.634 41.659 18.416 41.1485Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M23.4874 27.5904C23.6652 27.5502 23.8115 27.5158 23.9549 27.4843C24.0295 27.4011 24.0639 27.3265 24.084 27.2548C23.7685 27.249 23.4501 27.2462 23.126 27.2491C23.1231 27.2663 23.1202 27.2835 23.1145 27.3007C23.2464 27.4039 23.3726 27.5015 23.4845 27.5904H23.4874Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M28.7277 33.0687C29.1866 33.1748 29.614 32.8765 29.4993 32.4233C29.375 32.2971 29.1981 32.1996 28.9686 32.1307C28.6187 32.2684 28.547 32.7818 28.7277 33.0715V33.0687Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M27.5227 35.9228C27.6145 36.2326 27.7895 36.4161 28.0992 36.4792C28.1939 36.4247 28.2971 36.3645 28.3975 36.3043C28.4262 36.1465 28.4492 36.0002 28.4578 35.9543C28.2857 35.7335 28.1537 35.5671 28.0419 35.4237C27.6518 35.4237 27.7091 35.7937 27.5227 35.9228Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M22.644 30.0085C21.9098 29.9856 21.8151 30.8575 22.5924 30.9837C23.0542 30.8948 23.0513 30.1548 22.644 30.0085Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M20.8199 43.5784C20.5962 43.2629 20.1287 42.9417 19.8562 43.4006C19.9107 43.61 19.9595 43.7907 20.0111 43.9857C20.143 44.0144 20.2721 44.0488 20.404 44.0747C20.6077 43.9829 20.7855 43.871 20.8171 43.5756L20.8199 43.5784Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M17.7621 30.0256C17.7421 30.149 17.7277 30.2723 17.7134 30.3957C17.7249 30.5133 17.7363 30.628 17.7478 30.7427C18.158 31.0726 18.2956 30.8116 18.6169 30.5764C18.7402 30.1432 18.1121 29.908 17.7621 30.0256Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M33.076 37.2824C33.3169 37.7671 33.9508 37.3455 33.9881 36.9353C33.5665 36.2928 32.8379 36.6083 33.076 37.2824Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M36.2195 38.189C36.2453 38.2091 36.2711 38.2292 36.2969 38.2492C36.2969 38.1546 36.2998 38.0571 36.3027 37.9624C36.2654 38.0312 36.2338 38.1029 36.2195 38.189Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M19.9221 32.8709C19.9508 32.8508 19.9795 32.8336 20.0082 32.8136C20.0999 32.9312 20.1917 33.0488 20.2835 33.1664C20.5331 33.1348 20.6765 32.9627 20.8371 32.7619C20.6449 31.9588 19.7529 31.976 19.9221 32.8681V32.8709Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M27.0095 38.7107C26.803 38.7537 26.6166 38.7939 26.4272 38.834V39.3675C26.6596 39.4507 26.7657 39.7892 27.087 39.6601C27.3508 39.2614 27.4799 39.204 27.0095 38.7107Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M26.3499 41.4325C26.4875 41.9889 26.7371 41.9775 27.239 41.8398C27.3853 41.0481 26.7944 40.6552 26.3499 41.4325Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M23.4787 36.479C23.9749 36.2467 24.0007 36.195 23.886 35.6386C23.7253 35.5726 23.5475 35.498 23.384 35.4292C22.9366 35.6673 23.1603 36.3413 23.4787 36.4761V36.479Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M23.9004 28.9356C23.7541 28.9012 23.6078 28.8696 23.4443 28.8295C23.1776 29.2081 23.1604 29.3228 23.2837 29.7875C24.0754 29.776 24.0983 29.7272 23.9033 28.9356H23.9004Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M24.8327 37.5233C24.9503 37.354 25.0708 37.1819 25.197 37.0041C24.6262 35.8625 23.5191 37.3913 24.8327 37.5233Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M29.4821 38.8913C29.3272 38.8339 29.1609 38.7708 28.9572 38.6934C28.8282 38.9056 28.7192 39.0863 28.6016 39.2785C28.6446 39.6772 29.4276 39.855 29.4993 39.4391C29.4104 39.2555 29.5682 39.0863 29.485 38.8913H29.4821Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M30.3139 39.9699C29.7001 40.0732 29.5538 40.4546 30.0758 40.839C30.6839 41.0799 30.9621 39.9613 30.3139 39.9699Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M23.7914 31.9731C24.0324 31.758 24.0955 31.4998 23.9836 31.17C23.8803 31.1155 23.7599 31.0552 23.6537 31.0007C22.9195 31.1614 23.1604 32.1308 23.7914 31.9702V31.9731Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M25.3374 35.9832C25.3288 36.4679 26.2495 36.4593 26.2323 36.0032C26.3155 35.4038 25.194 35.2948 25.3374 35.9832Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M27.3882 30.507C27.1214 29.8043 26.522 29.8731 26.3728 30.5299C26.433 30.7135 26.5306 30.8397 26.6998 30.9028C26.9407 30.7365 27.219 30.7824 27.3882 30.507Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M18.402 36.7054C18.2557 36.6738 18.1123 36.6394 17.9545 36.605C16.7756 37.4942 19.0617 37.9789 18.402 36.7054Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M29.0804 30.9836C29.6971 30.7972 29.5881 30.2207 29.1005 29.9338C28.6416 30.2637 28.4006 30.7427 29.0804 30.9836Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M26.4269 34.6578C26.3753 35.0106 26.5531 35.2085 26.8027 35.3663C27.1899 35.2716 27.2788 34.9848 27.3247 34.6721C26.883 34.2907 26.817 34.3251 26.4269 34.6578Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M22.6241 38.8169C22.4119 39.0033 22.1222 38.9746 21.9443 39.2012C22.0218 39.4795 22.1681 39.6544 22.366 39.7634C22.8536 39.772 22.7704 39.4049 23.0544 39.1152C22.8909 39.0033 22.7561 38.9116 22.6241 38.8198V38.8169Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M21.1265 31.8811C21.2928 31.9155 21.4649 31.9528 21.6284 31.9872C21.9296 31.7233 21.9066 31.1124 21.4621 31.0292C20.9888 31.1812 20.7278 31.425 21.1236 31.8811H21.1265Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M31.163 33.181C31.2691 33.1466 31.3809 33.1093 31.5301 33.0605C31.7997 32.5901 31.6133 32.2373 31.0826 32.1971C30.7069 32.6819 30.7184 32.8224 31.163 33.1781V33.181Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M21.8179 37.9278C21.64 37.8045 21.4937 37.7012 21.3475 37.6008C20.0567 38.0856 21.9154 39.1583 21.8179 37.9278Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M35.2273 30.6595C35.3248 30.8889 35.5113 30.9119 35.6834 30.952C35.7895 30.866 35.8927 30.7828 36.0046 30.6939V30.5648C35.9759 30.4013 35.9444 30.2407 35.9071 30.0801C35.8296 30.0256 35.7522 29.9739 35.6834 29.9252C35.2445 29.9653 35.3076 30.3497 35.2273 30.6566V30.6595Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M21.8409 27.2977C21.5569 27.3207 21.2758 27.3494 21.0005 27.3895C21.4623 27.6907 21.7577 27.5358 21.8409 27.2977Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M24.4656 27.8314C23.7026 28.5026 24.9073 29.0791 25.1826 28.2186C25.0364 27.9261 24.8384 27.7281 24.4656 27.8314Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M35.3218 43.4063C35.296 43.5181 35.2701 43.6214 35.2415 43.7361C35.4681 43.5899 35.6315 43.412 35.752 43.1998C35.7262 43.1912 35.7004 43.1797 35.6717 43.174C35.557 43.2485 35.4336 43.3317 35.3218 43.4092V43.4063Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M26.1493 31.8871C26.0087 31.5888 26.1235 31.1528 25.7735 31.0209C25.6014 31.1241 25.4207 31.2331 25.2515 31.3335C25.1769 31.824 25.7735 32.237 26.1493 31.8842V31.8871Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M29.7314 38.011C29.7974 38.2347 29.7544 38.6076 30.0756 38.5904C31.1627 38.7367 30.5288 37.1017 29.7314 38.011Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M30.8702 41.3897C30.7526 41.7453 30.985 41.8285 31.2861 41.9978C32.4994 41.186 30.7727 40.6583 30.8702 41.3897Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M21.1756 39.9731C21.0494 40.2236 21.0561 40.4951 21.1957 40.7877C22.1078 40.8536 22.2196 39.7321 21.1756 39.9731Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M30.3856 27.5043C30.2135 27.49 30.0414 27.4785 29.8665 27.467C30.0299 27.5588 30.225 27.5617 30.3856 27.5043Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M26.981 27.7224C26.7143 27.8113 26.5364 27.9605 26.3901 28.2244C26.7143 29.2942 27.853 28.2387 26.981 27.7224Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M19.2881 29.8826C19.4114 29.7191 19.529 29.5671 19.6609 29.3921C19.0988 28.0956 18.201 29.6015 19.2881 29.8826Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M32.471 37.6154C32.4251 37.6011 32.319 37.6298 32.3161 37.6527C32.276 37.8621 32.0867 37.8564 31.9375 37.9109C31.9604 38.0801 31.9805 38.235 32.0006 38.3841C32.2473 38.43 32.4653 38.5763 32.7148 38.4616C33.0733 38.0342 32.8381 37.8707 32.4739 37.6154H32.471Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M31.1596 37.4943C31.3547 37.4197 31.5239 37.3566 31.739 37.2734C31.7448 36.0946 30.2274 36.5908 31.1596 37.4943Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M29.8406 31.976C31.1801 32.2112 30.3913 30.3898 29.7058 31.4482C29.7517 31.6318 29.7919 31.7895 29.8406 31.976Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M19.6094 40.0212C19.3225 40.0872 19.0759 39.8778 18.7689 40.0212C18.5223 40.9649 19.9421 41.094 19.6094 40.0212Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M19.7871 35.0193C19.9506 35.3004 20.5845 35.2086 20.7996 35.0193C20.6849 34.7554 20.5329 34.3051 20.1887 34.4198C20.0338 34.5776 19.615 34.7583 19.7871 35.0222V35.0193Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M20.4699 39.6488C21.0751 39.2645 20.7452 38.7969 20.0999 38.8457C19.6381 39.3448 19.8475 39.6029 20.4699 39.6488Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M20.6477 41.7399C21.0492 41.5191 20.5874 40.9942 20.2318 41.0114C20.074 41.1376 19.9105 41.2667 19.7556 41.39C19.7786 41.8174 20.335 41.8547 20.6477 41.7371V41.7399Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M24.7294 39.6658C25.3059 39.4105 25.1941 38.8512 24.6089 38.725C24.434 38.9085 24.2303 39.0376 24.1213 39.2958C24.325 39.4191 24.5114 39.5367 24.7294 39.6686V39.6658Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M18.763 35.6301C18.5995 36.4992 19.5661 36.7344 19.6235 35.8338C19.3797 35.5957 19.0785 35.3318 18.763 35.6301Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M34.1375 37.8243C33.9482 38.8626 35.259 38.7995 34.866 37.8558C34.5256 37.7124 34.2828 37.7019 34.1375 37.8243Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M29.3789 34.5175C28.7766 34.2049 28.5758 34.615 28.7422 35.1686C29.2355 35.4612 29.7977 34.985 29.3789 34.5175Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M27.2162 37.2566C27.2305 37.1161 27.265 36.9669 27.3166 36.835C26.8347 36.029 25.9083 37.3656 26.8462 37.5062C26.9581 37.3914 27.0642 37.3197 27.2162 37.2566Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M31.2285 27.8884C30.6692 27.7937 30.672 28.594 31.1682 28.6686C31.7964 28.7431 31.914 27.8253 31.2285 27.8884Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M34.4412 39.9009C34.2347 40.0902 34.0626 40.1877 33.9966 40.4717C34.2605 40.5864 34.4957 40.6868 34.7309 40.7872C35.3131 40.5033 34.923 39.8894 34.4412 39.9009Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M33.5752 38.7107C33.3285 38.7652 33.1622 38.9029 33.0388 39.1094C33.1134 39.1983 33.1794 39.2786 33.2396 39.3532C33.2052 39.4421 33.1736 39.5224 33.1363 39.6199C33.231 39.6658 33.3084 39.706 33.3658 39.7375C33.558 39.6429 33.7272 39.5568 33.9452 39.4478C33.7157 39.161 33.905 38.8398 33.5752 38.7107Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M21.5082 36.3412C21.9786 36.1203 21.947 35.4463 21.316 35.5754C20.6735 35.4463 21.0062 36.6137 21.5082 36.3412Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M32.3703 29.9306C32.8666 29.618 33.0559 28.9669 32.2986 28.9583C31.7594 29.1676 31.943 29.6753 32.3703 29.9306Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M35.3419 37.3395C35.4939 37.3911 35.6345 37.4399 35.7664 37.4829C35.9815 37.3539 36.1192 37.1846 36.1938 36.9293C35.95 36.74 35.5341 36.5593 35.2214 36.74C35.1469 36.9609 35.3046 37.133 35.3419 37.3366V37.3395Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M24.907 44.0714C25.1852 43.7817 25.082 43.4891 25.0045 43.2052C24.5886 42.8552 24.0895 43.535 24.4624 43.9595C24.6029 43.994 24.7492 44.0313 24.9099 44.0714H24.907Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M28.4066 29.2107C28.2546 29.0902 28.1255 28.987 27.9764 28.8694C27.483 28.9669 27.6609 29.2939 27.6408 29.661C28.005 29.9995 28.5558 29.6467 28.4066 29.2078V29.2107Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M23.2146 33.9291C23.5129 34.3622 23.685 34.1528 24.0091 33.9779C24.1325 33.017 23.2605 33.1719 23.2146 33.9291Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M27.3797 43.5495C27.1674 43.386 26.9523 43.2254 26.6569 43.1996C26.4504 43.3229 26.4963 43.5581 26.4016 43.756C26.5651 43.8708 26.7114 43.9712 26.8491 44.0687C27.0709 43.9769 27.2487 43.8038 27.3826 43.5495H27.3797Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M28.0908 44.2894C27.847 44.2952 27.7065 44.4042 27.6462 44.5418C27.8872 44.5447 28.131 44.5476 28.3748 44.5504C28.3232 44.4673 28.2314 44.3927 28.088 44.2894H28.0908Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M29.4219 43.647C29.3789 42.9356 28.5499 43.211 28.5442 43.7416C28.8167 44.2063 29.2297 44.1432 29.4219 43.647Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M19.6238 42.669C19.5951 42.1813 19.2767 41.7855 18.8522 42.21C18.8178 42.3276 18.7863 42.4424 18.7576 42.5313C18.8924 42.6833 19.01 42.8181 19.1333 42.9587C19.3169 42.8812 19.5033 42.8267 19.6209 42.669H19.6238Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M25.3892 44.5051C25.6387 44.5109 25.8854 44.5166 26.1321 44.5195C26.0776 44.4478 26.0288 44.3818 25.9858 44.3216C25.6932 44.2728 25.4982 44.3646 25.392 44.5051H25.3892Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M26.6023 32.2198C26.4102 32.3517 26.6482 32.607 26.6884 32.7734C26.7888 33.129 27.2305 33.0602 27.4198 32.8193C27.3825 32.3747 27.0527 32.0792 26.6023 32.2169V32.2198Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M31.4324 34.3743C31.2575 34.5234 30.9792 34.4001 30.8186 34.6496C31.071 35.949 32.2126 34.9049 31.4324 34.3743Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M35.3593 34.922C35.1643 35.0969 35.5142 35.2346 35.649 35.2862C35.9473 35.3952 36.0592 35.051 36.1711 34.8302C36.0965 34.4831 35.7523 34.3024 35.4712 34.4659C35.2819 34.5864 35.606 34.8072 35.3622 34.922H35.3593Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M32.8037 35.8366C32.709 35.6673 32.5857 35.567 32.3964 35.5354C32.2329 35.696 31.8801 35.6501 31.8657 36.0345C32.1956 36.5307 32.7147 36.4705 32.8037 35.8366Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M32.3074 39.9328C32.1296 40.0513 31.9824 40.1986 31.8657 40.3745C32.1841 41.3841 33.4949 39.9041 32.3074 39.9328Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M23.9262 44.4274C23.6394 44.2495 23.4529 44.2553 23.3066 44.4274C23.516 44.4388 23.7254 44.4532 23.9348 44.4618C23.9319 44.4503 23.9291 44.4417 23.9262 44.4302V44.4274Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M29.8177 33.5334C29.5108 33.9722 30.0673 34.4197 30.4373 34.0669C30.7929 33.3469 30.5004 33.2121 29.8177 33.5334Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M36.2969 33.8118C36.2969 33.7372 36.2941 33.6655 36.2912 33.5967C36.2568 33.6454 36.2338 33.7057 36.231 33.7803C36.251 33.7946 36.2711 33.8032 36.2969 33.8118Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M30.6065 35.7363C30.4085 35.372 29.8722 35.395 29.7058 35.7908C29.7632 36.5366 30.5147 36.3501 30.6065 35.7363Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M19.6266 33.866C19.5893 33.7169 19.552 33.5706 19.5176 33.4387C19.2135 33.1662 18.9841 33.3354 18.746 33.5563C18.6313 34.0697 19.4373 34.325 19.6266 33.866Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M21.2988 29.8794C21.4278 29.8823 21.4508 29.7504 21.5196 29.6815C21.7806 29.584 21.8667 29.4205 21.8237 29.1251C21.5139 29.0878 21.2758 28.8813 21.0636 29.1824C20.7882 29.3775 21.055 29.7876 21.2959 29.8823L21.2988 29.8794Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M22.5408 40.9053C22.2511 40.9368 22.165 41.1261 22.0732 41.2982C22.274 41.7113 22.5064 42.1243 22.9223 41.6682C22.8936 41.3298 22.7788 41.1347 22.5408 40.9053Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M34.0537 42.557C34.0967 42.884 34.3692 42.9328 34.57 43.0704C34.6962 42.8238 34.8138 42.6631 35.006 42.4767C34.9572 42.3448 34.9113 42.2214 34.8654 42.0924C34.5385 42.0522 34.2717 42.3448 34.0537 42.557Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M25.0479 41.378C24.9704 41.2002 24.9217 41.0223 24.7352 40.9305C24.5689 41.0338 24.4082 41.1371 24.2161 41.2547C24.2648 41.4411 24.3079 41.5989 24.3509 41.7566C24.7266 42.0578 24.9647 41.7709 25.045 41.3751L25.0479 41.378Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M17.9311 32.2169C17.7848 32.128 17.7045 32.3431 17.6443 32.4664C17.7275 32.6557 17.802 32.8192 17.8766 32.9885C18.0487 33.0229 18.2122 33.0343 18.3843 32.9655C18.4646 32.8078 18.5822 32.6701 18.6052 32.4836C18.4101 32.3087 18.1348 32.4234 17.934 32.2198L17.9311 32.2169Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M29.8606 44.5422C30.0757 44.5393 30.2937 44.5336 30.5088 44.5279C30.3683 44.3472 30.0614 44.2869 29.8606 44.5422Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M32.6545 42.1726C32.4021 42.1755 32.1497 42.0866 31.9546 42.3705C31.9489 43.4146 33.1851 42.8553 32.6545 42.1726Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M34.9948 33.7345C34.903 33.505 34.6592 33.4534 34.4785 33.3014C34.3036 33.4563 34.1143 33.5854 34.1028 33.8492C34.1802 33.9554 34.2605 34.0644 34.3322 34.1676C34.7883 34.2106 34.794 34.2049 34.9948 33.7316V33.7345Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M24.89 35.4061C25.3145 34.9243 24.9044 34.1154 24.2991 34.6546C23.975 35.0763 24.6347 35.1537 24.89 35.4061Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M34.2576 35.6588C34.0798 36.3156 34.8055 36.5279 35.1153 35.9542C35.0034 35.7764 34.8973 35.6014 34.7682 35.3949C34.5588 35.501 34.4125 35.5383 34.2576 35.6588Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M25.3517 42.7608C25.4578 42.8296 25.5668 42.9042 25.6959 42.9902C27.0469 42.3936 25.1853 41.6135 25.3517 42.7608Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M19.4803 31.8442C19.4975 31.629 19.5147 31.4455 19.5319 31.2619C19.2642 31.0841 19.0347 31.0822 18.8435 31.2562C18.9238 31.4254 18.9066 31.6176 18.8435 31.7868C19.1055 31.9685 19.3177 31.9866 19.4803 31.8413V31.8442Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M18.74 38.0392C18.8146 38.2801 18.8605 38.5498 19.2276 38.5698C20.2889 37.956 18.8461 37.4225 18.74 38.0392Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M25.1221 32.547C25.0189 32.3548 24.864 32.2687 24.6862 32.22C24.4883 32.2745 24.319 32.3634 24.2358 32.5613C24.3305 33.2009 25.0533 33.1378 25.1221 32.547Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M30.9131 39.571C31.1655 39.7861 31.5986 39.7402 31.7277 39.3989C31.6933 38.4179 30.5746 39.1637 30.9131 39.571Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M19.8417 28.454C20.3093 28.9387 20.7395 28.7408 20.6965 28.0409C20.4756 27.9893 20.2777 27.9463 20.0769 27.9004C19.988 28.1069 19.9134 28.2847 19.8389 28.454H19.8417Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M18.0978 35.3981C18.6026 35.1916 18.7403 34.1102 17.9773 34.4917C18.006 34.5433 18.0347 34.5978 18.1064 34.7298C17.4869 34.5778 17.7565 35.2547 18.1007 35.3981H18.0978Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M22.1334 37.3369C22.4288 37.6897 23.0771 37.3684 22.8935 36.898C22.7673 36.8407 22.5608 36.8694 22.535 36.6456C22.4202 36.5051 22.1133 36.7087 22.1822 36.8579C22.2453 37.0357 22.0904 37.1734 22.1334 37.3369Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M30.4715 42.2789C30.3625 42.2502 30.2478 42.2215 30.1302 42.1899C30.1331 42.1584 30.1388 42.1154 30.1417 42.0752C29.8147 41.9691 29.7745 42.4108 29.677 42.5972C29.7631 43.1594 30.8673 42.9472 30.4687 42.2789H30.4715Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M34.4328 31.9099C34.6364 31.9214 34.8745 31.9415 34.9204 31.712C35.1183 31.2388 34.5332 30.9921 34.1976 31.2388C34.2205 31.5055 34.0886 31.8669 34.4328 31.9071V31.9099Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M27.6893 42.881C27.8643 42.7921 28.068 42.7893 28.3003 42.9011C28.59 41.3293 27.044 42.4106 27.6893 42.881Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M35.2674 32.8796C35.6518 33.2468 35.9128 33.0804 36.1136 32.633C35.9386 31.9073 35.2072 32.3662 35.2674 32.8796Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M22.3371 28.735C22.7558 28.5686 23.1115 28.0323 22.5493 27.7942C22.3887 27.8516 22.2367 27.9061 22.0789 27.9634C22.1219 28.0495 22.1535 28.1154 22.185 28.1757C22.1305 28.2445 22.0789 28.3105 22.0244 28.3765C22.1363 28.5055 22.2338 28.6203 22.3342 28.7321L22.3371 28.735Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M26.1234 27.3123C25.9083 27.3094 25.6788 27.3008 25.4436 27.2922C25.4838 27.3869 25.5239 27.4844 25.5641 27.5848C25.9025 27.6049 26.0718 27.4729 26.1234 27.3123Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M18.3647 43.3058C18.3993 43.3375 18.4397 43.3663 18.4772 43.3952C18.4484 43.3635 18.4109 43.3346 18.3647 43.3058Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M20.0284 30.6911C20.3267 30.7198 20.5819 30.6653 20.7942 30.5276C20.7253 30.1088 20.3955 30.0715 20.0656 30.0314C19.7444 30.1461 19.9566 30.4559 20.0284 30.6911Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M22.5524 34.302C22.1738 34.497 22.1537 34.5487 22.2599 35.0793C22.5381 35.1883 22.7675 35.0219 23.0085 34.9703C23.0859 34.6319 22.736 34.5458 22.5524 34.302Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M28.3005 31.8844C28.4726 31.4369 28.0595 31.3767 27.8387 31.0726C27.308 31.3853 27.7354 32.2716 28.3005 31.8844Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M33.0731 32.8081C33.2625 32.8224 33.1879 32.9859 33.2625 33.0777C33.5407 32.8941 33.9881 33.0146 33.882 32.5327C33.6153 32.2258 32.5052 32.3836 33.0731 32.8081Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M31.3235 44.0718C31.4669 43.8682 31.791 43.5613 31.5415 43.329C31.1542 43.0852 31.0567 43.5269 30.7527 43.6588C30.9162 43.8366 31.0653 44.3472 31.3235 44.0718Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M27.6723 38.2461C28.1197 38.6075 28.2574 38.5215 28.5385 38.0252C28.266 37.6409 27.1474 37.7298 27.6723 38.2461Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M25.3347 29.3716C25.4753 29.6986 25.7908 29.601 26.0432 29.6871C26.6168 29.1966 25.4896 28.6459 25.3347 29.3716Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M29.4903 28.1209C29.3641 28.075 29.2293 28.0262 29.1089 27.9861C28.8412 28.1123 28.7149 28.3121 28.7302 28.5856C29.1003 28.8638 29.6108 28.62 29.4903 28.1238V28.1209Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M30.1647 28.9238C30.0385 29.03 29.9352 29.1189 29.8234 29.2164C29.8033 29.3541 29.7861 29.4975 29.7603 29.6753C29.9123 29.6954 30.0413 29.7097 30.1446 29.7241C30.5662 29.5147 30.7039 29.0357 30.1647 28.9238Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M34.748 29.053C34.3637 29.076 34.3149 29.3858 34.2117 29.6927C34.5186 29.9336 34.748 29.7672 34.9976 29.5636C34.9861 29.3838 34.9029 29.2127 34.748 29.0502V29.053Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M21.3508 34.0811C21.7839 33.8603 21.8814 33.2321 21.2934 33.3096C20.9205 33.4386 20.909 34.0123 21.3508 34.0811Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M26.1174 34.0067V33.5076C25.6728 33.2035 25.5581 33.2552 25.3745 33.8346C25.5638 34.1214 25.8392 34.0009 26.1174 34.0067Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M20.7251 37.0901C20.5903 36.9438 20.4498 36.7918 20.3035 36.6283C19.9593 36.7344 20.0109 36.9782 19.9392 37.2679C20.3006 37.3282 20.5473 37.5834 20.7251 37.0901Z",fill:"#421B36"}),(0,t.createElement)("path",{d:"M31.593 30.2379C31.398 30.1145 31.2087 30.1174 31.0107 30.2465C31.0193 30.3985 31.0251 30.5419 31.0337 30.6997C31.3521 30.975 31.7336 30.6021 31.5901 30.2379H31.593Z",fill:"#421B36"})),(0,t.createElement)("path",{d:"M83.535 15.759H15.5964C15.6165 15.3288 15.6337 14.9272 15.6538 14.5429C15.7456 12.581 17.2887 10.576 19.2449 10.5129C24.0493 10.358 79.9094 9.78723 82.4192 11.0894C82.8724 11.3246 83.2424 13.0628 83.535 15.759Z",fill:"#9B98FF"}),(0,t.createElement)("path",{d:"M43.1925 62.3053C33.033 62.3053 17.9458 62.116 16.3166 61.0203C14.3977 59.7296 14.0908 44.4989 15.4045 15.75L15.4618 14.5338C15.5536 12.5576 17.0939 10.392 19.2365 10.3232C23.5763 10.1826 79.8953 9.5688 82.5054 10.9198C82.8181 11.0804 83.2799 11.743 83.7044 15.5664L83.7273 15.7356C84.975 27.1916 84.8919 60.0193 83.234 61.0232C82.2301 61.6313 65.3674 62.1476 50.3203 62.2738C48.6509 62.2881 46.1268 62.3025 43.1925 62.3025V62.3053ZM51.2611 10.4408C36.8335 10.4408 22.2195 10.61 19.2509 10.7047C17.3463 10.7678 15.9294 12.7842 15.8462 14.5539L15.7888 15.7701C14.0736 53.2788 15.5192 60.025 16.5317 60.7048C17.8683 61.6055 30.813 62.0615 50.3174 61.8952C66.9277 61.7546 82.2157 61.1953 83.0361 60.6991C84.301 59.7755 84.7628 29.079 83.3659 15.945L83.3459 15.7787C82.9214 11.852 82.4624 11.3271 82.3333 11.2582C81.1057 10.6215 66.2852 10.4379 51.2639 10.4379L51.2611 10.4408Z",fill:"#9B98FF"}),(0,t.createElement)("g",{opacity:"0.3"},(0,t.createElement)("path",{d:"M49.4053 15.9425C49.4426 15.9024 49.4856 15.8708 49.5286 15.8422C49.8126 15.8422 50.0966 15.845 50.3805 15.8479C50.5268 16.0946 50.3232 16.4789 50.0191 16.6883C49.5803 16.6367 49.4283 16.3642 49.4024 15.9425H49.4053ZM62.6081 16.0057C62.6167 16.3355 62.7027 16.5879 63.0068 16.7141C63.3424 16.585 63.764 16.5248 63.6321 16.0659C63.6149 16.0487 63.6034 16.0372 63.589 16.0229C63.2678 16.0171 62.9408 16.0085 62.611 16.0028C62.611 16.0028 62.611 16.0028 62.6081 16.0028V16.0057ZM74.2276 18.8137C74.2046 18.4695 74.1616 18.1368 74.0985 17.8356C74.001 17.8041 73.8719 17.8041 73.6941 17.8557C73.2982 18.3404 73.7658 18.9543 74.2276 18.8137ZM35.5944 16.7686C34.5131 17.4541 36.0046 18.5154 36.2025 17.1731C35.9559 16.9436 35.7532 16.8088 35.5944 16.7686ZM37.7801 23.4374C37.8461 23.4374 37.9149 23.4374 37.9809 23.4374C37.9178 23.4231 37.8489 23.4231 37.7801 23.4374ZM47.5323 21.008H48.0572C48.1346 20.8588 48.2035 20.7269 48.2666 20.6007C48.2207 20.4601 48.1777 20.3339 48.126 20.1762C47.9712 20.1274 47.8449 20.0872 47.7273 20.05C47.0992 20.288 47.191 20.6666 47.5323 21.008ZM15.9609 21.1686C15.9667 21.5558 15.9925 21.9 16.0384 22.1782C16.199 22.1352 16.351 21.9775 16.4313 21.6447C16.2879 21.4927 16.2248 21.246 15.9609 21.1686ZM51.2582 23.446H50.719C50.719 23.446 50.7132 23.4575 50.7104 23.4604C50.8968 23.4604 51.0804 23.4604 51.264 23.4604C51.264 23.4575 51.2582 23.4518 51.2582 23.446ZM35.7579 23.3342C35.6174 23.3112 35.4969 23.3485 35.4023 23.4173C35.5486 23.4173 35.6948 23.4173 35.8411 23.4202C35.8124 23.3915 35.7924 23.3628 35.7579 23.3342ZM68.5082 20.0098C69.0876 19.9094 69.3887 19.0919 68.6258 18.9715C68.0206 19.0776 67.9489 19.809 68.5082 20.0098ZM46.3104 19.9037C46.7234 19.9983 46.9615 19.7918 47.1738 19.505C47.1193 19.3501 47.0332 19.1723 46.95 19.0547C46.5055 18.9198 46.233 19.1092 46.0953 19.4992C46.1641 19.6283 46.2387 19.7717 46.3104 19.9037ZM70.5877 22.0721C70.8028 22.1094 71.0265 22.1065 71.2503 22.1209C71.2818 21.9172 71.3076 21.7422 71.3306 21.5816C71.147 21.4267 70.9893 21.2919 70.8544 21.1801C70.3468 21.0998 70.1632 21.9688 70.5877 22.075V22.0721ZM45.7224 16.76C45.8544 16.5449 45.9662 16.3699 46.0695 16.2036C46.0351 16.0257 45.9347 15.9139 45.8113 15.8249C45.6134 15.8249 45.4155 15.8249 45.2176 15.8249C44.925 16.129 45.1889 16.694 45.7195 16.7658L45.7224 16.76ZM57.035 16.3957C57.0809 16.2236 57.035 16.0515 56.9432 15.9167C56.6592 15.9139 56.3753 15.9081 56.0856 15.9053C55.9163 16.347 56.6449 16.7801 57.035 16.3957ZM21.9528 21.4726C21.8639 22.0922 22.5293 22.4335 22.951 21.9746C23.2349 21.5185 22.2741 21.0567 21.9528 21.4726ZM65.3244 16.7141C65.4477 16.6309 65.5854 16.5363 65.7345 16.4359C65.7288 16.2839 65.7001 16.1691 65.6657 16.0716C65.3789 16.063 65.0863 16.0573 64.788 16.0515C64.7019 16.2724 64.7995 16.5506 65.3244 16.7141ZM67.4727 20.1217C66.8905 20.1618 66.8274 20.9449 67.3867 21.1055C67.7567 21.0166 67.9575 20.8072 68.0177 20.4486C67.8313 20.3368 67.6506 20.2278 67.4727 20.1188V20.1217ZM66.0759 22.0348C66.2852 22.161 66.638 22.3733 66.7528 22.0262C67.0023 21.0309 66.8245 21.0051 65.9955 21.4497C66.0357 21.6734 65.9066 21.9029 66.0759 22.0348ZM53.2546 23.3227C53.1972 23.3628 53.1427 23.4059 53.0911 23.4489C53.2287 23.4489 53.3636 23.4489 53.4984 23.4489C53.4324 23.4001 53.355 23.3571 53.2517 23.3256L53.2546 23.3227ZM21.3935 18.9198C21.5656 18.8204 21.7004 18.6607 21.7979 18.4408C21.732 17.13 20.0626 18.7162 21.3935 18.9198ZM17.1886 16.6137C17.2976 16.4502 17.398 16.3011 17.5041 16.1433C17.0222 16.1778 16.678 16.2179 16.4916 16.2581C16.4916 16.2609 16.4858 16.2667 16.4858 16.2695C16.7497 16.4244 16.8558 16.7629 17.1886 16.6137ZM47.2713 16.3814C47.3803 16.5248 47.4807 16.6539 47.6327 16.7199C47.8421 16.5736 48.1519 16.5506 48.2494 16.3183C48.2064 16.1577 48.1662 16.0171 48.1203 15.8422C48.1174 15.8422 48.1146 15.8422 48.1117 15.8364C47.8994 15.8364 47.6872 15.8364 47.4749 15.8336C47.4491 15.8508 47.4233 15.8594 47.4004 15.8794C47.3602 16.0429 47.3172 16.215 47.2742 16.3843L47.2713 16.3814ZM34.7655 16.608C35.0208 16.3843 35.2388 16.0515 34.9606 15.8163C34.7626 15.8163 34.5676 15.8163 34.3725 15.8163C33.8477 16.0114 33.8907 16.5047 34.7655 16.6051V16.608ZM36.5266 21.0051C36.7102 21.0309 36.8708 21.0539 37.0487 21.0797C37.783 19.8176 35.6518 19.8234 36.5266 21.0051ZM28.6962 21.9488C29.2211 22.6802 30.0299 21.2001 29.1465 21.2116C28.7105 21.137 28.5011 21.596 28.6962 21.9488ZM34.1144 18.3777C34.1947 18.6129 34.318 18.7764 34.5102 18.894C34.7368 18.765 34.9089 18.6445 35.1154 18.4695C35.19 17.7725 34.2435 17.7611 34.1144 18.3777ZM40.4992 19.7373C40.4763 19.3501 40.3099 19.0633 39.8768 18.9112C39.1798 19.4189 39.8998 20.3597 40.4992 19.7373ZM73.4015 17.5402C73.5736 16.4445 72.3632 16.6682 72.5381 17.5832C72.8565 17.8242 73.1347 17.7697 73.4015 17.5402ZM37.238 22.9613C37.2753 22.9154 37.2982 22.7834 37.2695 22.7605C37.0917 22.6257 37.1204 22.3675 36.9454 22.2413C36.4922 22.1582 36.4807 22.5655 36.3115 22.7634C36.3259 23.3399 36.9339 23.3141 37.2351 22.9584L37.238 22.9613ZM55.684 22.0004C56.0024 21.7824 55.793 21.5271 55.6582 21.2546C55.4115 20.9104 54.9038 21.3292 54.9583 21.6791C54.8981 22.0664 55.4574 22.2614 55.6869 22.0004H55.684ZM25.3403 16.0573C25.3718 16.869 26.0344 16.9063 26.3126 16.2036C26.2725 16.0688 26.2122 15.9626 26.1377 15.8881C25.9139 15.8909 25.6931 15.8938 25.4751 15.8967C25.4263 15.9397 25.3804 15.9942 25.3403 16.0573ZM69.8132 22.3331C69.6555 22.3704 69.5236 22.402 69.3658 22.4392C69.1908 22.7605 69.1765 22.7978 69.3113 23.1678C69.535 23.1592 69.7501 23.1477 69.9567 23.1391C70.0542 23.0043 70.1001 22.8093 70.0972 22.5827C69.9997 22.4966 69.8993 22.4106 69.8104 22.3331H69.8132ZM57.4652 19.9869C58.406 20.1819 57.9213 18.2028 57.1641 19.287C57.1038 19.591 57.1956 19.8463 57.4652 19.9869ZM61.2026 18.0364C60.3421 17.8557 60.041 18.5441 60.8842 18.9084C61.3059 18.8625 61.5095 18.3462 61.2026 18.0364ZM70.0456 18.1052C69.7501 17.6578 69.3572 18.0995 69.1392 18.3749C69.4547 19.0661 70.4586 18.9485 70.0456 18.1052ZM28.3434 15.8594C28.1197 15.8594 27.9045 15.8651 27.6865 15.868C27.6005 16.0229 27.5948 16.195 27.5718 16.3671C28.1914 17.1214 28.7277 16.2093 28.3434 15.8622V15.8594ZM24.781 16.76C24.4282 16.8289 24.2905 17.0755 24.2388 17.4599C24.6089 17.7066 24.9617 17.8614 25.2198 17.4054C25.151 17.1205 25.0047 16.9063 24.781 16.7629V16.76ZM59.6566 23.3915C59.7312 23.3915 59.8058 23.3915 59.8775 23.3915C59.8258 23.3571 59.7713 23.3313 59.7168 23.3198C59.6968 23.3456 59.6767 23.3686 59.6566 23.3944V23.3915ZM16.0384 19.0805C16.0183 19.33 16.004 19.5853 15.9896 19.8377C16.2334 19.8004 16.4428 19.6111 16.4428 19.2841C16.3051 19.2153 16.1732 19.1493 16.0384 19.0805ZM70.8344 20.0098C70.9319 19.8979 71.0294 19.7861 71.1441 19.6541C71.3162 19.0231 70.6164 18.765 70.3324 19.2296C70.2894 19.5709 70.4299 20.0012 70.8344 20.0127V20.0098ZM71.6719 20.9563C72.455 21.2948 72.6902 20.2479 71.8096 20.1159C71.3765 20.2278 71.2675 20.6666 71.6719 20.9563ZM66.7327 17.589C66.7556 17.4685 66.7843 17.3394 66.8073 17.2161C66.7126 17.0841 66.6266 16.9608 66.529 16.8289C66.2938 16.8403 66.0443 16.7744 65.8435 16.9178C65.8865 17.1042 65.9238 17.2648 65.9726 17.4656C66.2336 17.6262 66.4573 17.8815 66.7298 17.5947L66.7327 17.589ZM71.2044 16.8719C71.038 16.7973 70.8774 16.8231 70.6852 16.7944C70.4242 17.196 70.123 17.4398 70.5934 17.8069C70.777 17.8146 70.9653 17.7687 71.1585 17.6693C71.0581 17.5717 70.9864 17.5029 70.9003 17.4197C71.0524 17.2505 71.299 17.1415 71.2044 16.869V16.8719ZM68.0292 18.3462C67.8714 18.1683 67.7223 18.002 67.5702 17.827C67.1056 17.9647 66.8618 18.481 67.2834 18.8223C67.5416 18.7047 67.9288 18.808 68.0292 18.3462ZM24.6289 19.9639C24.9875 20.1331 25.2141 19.5709 25.1137 19.2698C24.9645 19.1522 24.8326 19.0489 24.7179 18.9571C24.3622 18.9514 24.0581 19.5193 24.345 19.7115C24.4798 19.7603 24.5802 19.8234 24.6289 19.9668V19.9639ZM51.4733 19.723C51.3643 18.9686 50.7362 18.547 50.5641 19.5337C50.6846 20.0413 51.1406 20.0098 51.4733 19.723ZM64.1311 16.783C64.0049 16.8862 63.8701 16.9981 63.7239 17.1186C63.8386 17.3824 63.9046 17.6521 64.1713 17.8155C64.4381 17.7611 64.6245 17.6119 64.7163 17.3193C64.5471 17.1243 64.4782 16.8289 64.134 16.783H64.1311ZM21.3906 22.2385C20.8141 22.4392 20.8342 22.8867 21.2042 23.1678C21.3333 23.1735 21.4652 23.1764 21.6 23.1793C21.8926 22.8121 21.9356 22.4335 21.3935 22.2385H21.3906ZM45.4442 17.9274C44.5808 18.7793 45.9175 19.4275 46.0379 18.2028C45.8916 18.0393 45.7138 17.9188 45.4442 17.9274ZM52.1847 17.8815C51.6942 18.0106 51.5967 18.1913 51.7229 18.7047C52.3683 19.1321 52.9792 18.1741 52.1847 17.8815ZM40.8664 20.8215C41.0385 20.8674 41.1217 21.0137 41.2708 21.1399C41.4028 20.8617 41.7469 20.7355 41.6724 20.3683C41.3368 20.1217 40.832 19.9151 40.7344 20.4888C40.6972 20.6265 40.7344 20.7871 40.8664 20.8215ZM56.6191 22.227C55.8045 22.5282 55.9766 23.4403 56.8514 23.185C57.0723 22.9469 56.9202 22.4479 56.6191 22.227ZM40.7889 16.5162C41.2048 16.8289 41.9735 16.4101 41.5548 15.9339C41.4831 15.8823 41.42 15.8422 41.3569 15.8106C41.2077 15.8106 41.0586 15.8106 40.9094 15.8106C40.7746 15.9282 40.7287 16.1806 40.7889 16.5162ZM69.6182 20.9908C70.0255 21.1887 70.1861 20.5806 70.2435 20.2679C69.8907 20.1159 69.5465 20.0672 69.2941 20.3855C69.0818 20.6552 69.3887 20.8818 69.6182 20.9908ZM50.7018 22.0061C50.8739 22.0348 51.0345 22.0606 51.1865 22.0864C51.4791 21.9172 51.3443 21.6218 51.4447 21.4153C51.1234 20.9277 50.7276 21.1629 50.5526 21.6046C50.61 21.7566 50.6559 21.8799 50.7046 22.0061H50.7018ZM56.0598 20.2737C56.0712 20.6437 56.1745 20.9334 56.4814 21.0998C56.8026 20.9707 56.9088 20.8732 57.035 20.5548C56.774 20.179 56.5187 20.0385 56.0598 20.2737ZM63.1502 20.1159C62.5249 20.2192 62.4819 21.0194 63.1559 21.1084C63.3108 20.942 63.5431 20.8129 63.6235 20.4859C63.4485 20.3741 63.3624 20.179 63.1502 20.1159ZM69.1392 21.7795C69.0101 21.5988 68.9212 21.378 68.7405 21.2546C68.5024 21.2776 68.2816 21.2977 68.0263 21.3206C68.164 21.923 68.686 22.4995 69.1363 21.7795H69.1392ZM24.0266 22.6917C23.9491 22.4306 23.7598 22.3417 23.5992 22.2499C23.2665 22.293 23.3067 22.6142 23.1374 22.7605C23.1948 22.9986 23.2866 23.1535 23.387 23.2338C23.5017 23.2366 23.6193 23.2395 23.7369 23.2424C23.866 23.1535 23.9778 22.9641 24.0266 22.6945V22.6917ZM57.405 17.7152C57.9586 17.6922 58.2454 17.3509 57.9184 16.8231C57.3648 16.4961 56.9174 17.3939 57.405 17.7152ZM38.8844 16.6309C39.3978 16.6482 39.5068 16.1175 39.2114 15.8077C39.0393 15.8077 38.8672 15.8077 38.6951 15.8077C38.4226 16.0774 38.4111 16.5248 38.8844 16.6309ZM25.3489 20.7871C25.6128 21.1428 26.2151 21.0424 26.2983 20.5892C25.9397 19.9352 25.2542 19.9467 25.3489 20.7871ZM58.733 16.7113C58.9395 16.6023 59.0715 16.4273 59.1489 16.1978C59.1145 16.1175 59.0973 16.0286 59.0715 15.9454C58.8363 15.9425 58.6039 15.9397 58.3659 15.9339C58.2052 16.2093 58.32 16.6023 58.733 16.7113ZM32.2099 16.6137C32.4737 16.5449 32.9786 16.6281 32.8868 16.2495C32.8351 16.0401 32.7462 15.8995 32.6315 15.8249C32.4651 15.8249 32.3016 15.8249 32.1381 15.8278C32.0693 15.8594 32.0005 15.8967 31.9288 15.9512C31.8685 16.2523 32.0119 16.4359 32.2099 16.6137ZM46.2301 22.0033C46.4137 22.0377 46.5886 22.0721 46.7779 22.1065C46.9271 21.9861 47.0762 21.8627 47.1766 21.6791C46.9099 20.9334 45.9088 21.2805 46.2272 22.0033H46.2301ZM48.3727 19.5365C48.5649 20.1962 49.1672 19.9324 49.3451 19.4189C49.0382 18.9428 48.4243 18.8653 48.3727 19.5365ZM49.4799 20.4486C49.5688 20.8158 49.781 21.008 50.1511 21.0768C50.1166 20.8273 50.2056 20.7011 50.392 20.5605C50.5584 20.0127 49.5831 19.9352 49.4799 20.4515V20.4486ZM65.7058 20.2335C64.8023 19.9467 64.5815 20.5892 65.2985 21.1227C65.3961 21.0682 65.4735 21.0252 65.5481 20.9821C65.4563 20.7039 65.6714 20.6925 65.8636 20.5691C65.8034 20.4429 65.7546 20.3368 65.7058 20.2335ZM52.2507 21.0223C52.7096 20.7556 52.6121 20.331 52.199 20.0815C51.9753 19.8951 51.829 20.2048 51.7315 20.3827C51.4992 20.7814 51.9122 20.9621 52.2507 21.0223ZM19.4975 20.919C19.6696 20.6265 19.6381 20.3855 19.4918 20.1303C19.2279 19.9696 19.0673 20.2421 18.7776 20.1245C18.7575 20.6121 18.9009 21.2891 19.4975 20.919ZM34.8917 23.2739C35.0724 22.5568 34.7712 22.1409 34.1029 22.6572C33.7329 23.0531 34.5246 23.4288 34.8917 23.2739ZM45.9605 22.554C45.7167 22.4364 45.4929 22.3532 45.2119 22.445C44.5837 23.4403 46.3219 23.4747 45.9605 22.554ZM54.2757 18.8137C54.4306 18.8539 54.531 18.808 54.5826 18.6359C54.617 18.4035 54.8321 18.3089 54.8981 18.1052C54.7088 18.0804 54.5118 17.9867 54.3072 17.8242C53.877 18.0823 53.593 18.699 54.2785 18.8137H54.2757ZM59.2608 22.8638C59.0342 22.3274 58.4118 22.0205 58.2655 22.7777C58.2884 23.3829 58.951 23.2051 59.2608 22.8638ZM43.3044 16.7113C43.64 16.6826 43.7318 16.4244 43.8695 16.1892C43.8035 16.0831 43.7318 15.9684 43.6601 15.8565C43.4507 15.9053 43.3102 15.8967 43.1352 15.8135C43.1008 15.8135 43.0664 15.8135 43.0291 15.8135C42.9717 15.9798 42.9229 16.1233 42.8742 16.2667C42.9947 16.456 43.1409 16.6051 43.3044 16.7113ZM54.0835 16.6252C54.2613 16.5822 54.422 16.5449 54.6141 16.499C54.7805 16.2036 54.7748 16.0057 54.6887 15.8852C54.4564 15.8852 54.224 15.8794 53.9888 15.8766C53.8053 16.0257 53.745 16.2896 54.0806 16.6223L54.0835 16.6252ZM37.0687 16.4674C37.347 16.2007 37.129 15.977 36.8823 15.8106C36.7618 15.8106 36.6414 15.8106 36.5209 15.8106C35.9386 16.1864 36.4578 16.9522 37.0659 16.4674H37.0687ZM18.8723 22.3417C18.8092 22.531 18.7547 22.6945 18.7002 22.8552C18.7747 22.9527 18.8464 23.0186 18.9153 23.0731C19.096 23.0817 19.2824 23.0904 19.4775 23.099C19.7385 22.8437 19.6725 22.2184 18.8694 22.3389L18.8723 22.3417ZM37.9694 17.8356C38.5574 17.3193 38.196 16.4416 37.4847 17.0182C37.4445 17.4169 37.4789 17.7869 37.9694 17.8356ZM63.8988 19.7889C64.0795 19.832 64.2516 19.875 64.4725 19.9295C65.2383 18.8453 63.2879 18.6416 63.8988 19.7889ZM41.1188 18.9055C41.4888 18.8481 41.681 18.3806 41.5462 18.0249C40.7775 17.7754 40.3874 18.4265 41.1188 18.9055ZM25.346 18.6043C25.7017 18.8367 26.0115 18.7793 26.3298 18.4667C25.9082 17.6348 25.455 17.6119 25.346 18.6043ZM48.803 16.8174C48.2666 17.0641 48.3612 17.4226 48.737 17.7697C49.0955 17.9991 49.2045 17.3595 49.3738 17.1444C49.193 16.978 49.0468 16.9493 48.803 16.8174ZM41.7957 17.3796C41.9563 17.6721 42.1743 17.8155 42.507 17.7066C43.1381 16.9292 42.0022 16.4043 41.7957 17.3796ZM67.9316 16.1347C67.6362 16.1261 67.335 16.1175 67.0224 16.106C66.9994 16.1806 66.9765 16.2523 66.9536 16.3355C67.3207 16.6539 67.8513 16.5994 67.9345 16.1347H67.9316ZM49.4684 22.6314C49.7524 23.1879 50.1166 23.6841 50.3318 22.7834C50.5153 22.2356 49.6003 22.1151 49.4684 22.6314ZM47.8622 23.3112C48.0285 23.1621 48.0916 22.9842 48.1461 22.8351C47.9482 22.0492 47.409 22.2671 47.2197 22.901C47.3554 23.0502 47.5696 23.186 47.8622 23.3083V23.3112ZM24.9129 22.1897C24.9445 21.9459 25.0248 21.8054 25.2112 21.6247C24.976 21.3522 24.6892 21.3321 24.3966 21.2632C24.3192 21.4353 24.2475 21.5931 24.17 21.7709C24.4109 21.9287 24.5113 22.3016 24.9129 22.1926V22.1897ZM39.6015 21.7939C39.6904 21.9316 39.8108 22.0406 39.9887 22.0893C40.2038 22.0233 40.4849 22.0721 40.5795 21.7537C40.4734 21.5329 40.4132 21.2632 40.0948 21.2202C39.8252 21.3311 39.6607 21.5214 39.6015 21.791V21.7939ZM32.7778 20.3339C32.4135 19.9725 31.8513 20.3655 32.0062 20.8617C32.4623 21.2747 33.1248 20.9104 32.7778 20.3339ZM33.1994 19.112C32.7032 19.7115 33.0876 19.7344 33.535 20.0012C34.1517 19.6197 33.9079 18.9686 33.1994 19.112ZM22.4748 19.9209C22.71 19.852 22.8735 19.7287 22.9997 19.5279C22.9137 19.2612 22.7129 19.0919 22.5064 18.9485C22.2052 19.0116 22.0704 19.1895 22.0274 19.4734C22.1364 19.6599 22.2884 19.8148 22.4748 19.918V19.9209ZM60.563 23.0961C60.7007 23.1678 60.8211 23.2309 60.9674 23.3083C61.6931 22.858 61.2973 22.0922 60.5028 22.4937C60.5257 22.7175 60.5458 22.9068 60.563 23.0961ZM72.2427 22.64C71.9903 22.2385 71.7264 22.3532 71.4424 22.4565C71.3535 22.7117 71.408 22.9154 71.5199 23.0531C71.7809 23.0359 72.019 23.0158 72.2284 22.9957C72.2599 22.9039 72.2685 22.7892 72.2427 22.64ZM37.2638 18.2257C37.0028 17.8758 36.7102 17.9475 36.4148 18.0737C36.3832 18.2573 36.3545 18.4208 36.3173 18.6359C36.7676 18.9543 37.1978 18.7736 37.2638 18.2228V18.2257ZM48.8747 21.1657C48.7944 21.4067 48.5563 21.3665 48.3928 21.4583C48.3383 21.7394 48.476 21.923 48.6509 22.0807C49.4741 22.1209 49.5659 21.5243 48.8747 21.1657ZM17.418 20.7957V20.4257C17.18 20.0299 16.5518 20.136 16.4629 20.5634C16.5203 21.0395 17.1083 21.0252 17.418 20.7957ZM66.3512 20.0012C66.7987 19.9582 66.747 19.6599 66.7872 19.353C66.64 19.2726 66.5377 19.1541 66.4803 18.9973C65.9124 19.0288 65.746 19.7603 66.3512 20.0012ZM37.978 19.9151C38.2591 19.4878 38.3394 19.2812 37.912 18.9514C37.2265 19.1608 37.0716 19.9237 37.978 19.9151ZM56.2204 18.0221C56.1458 18.1311 56.077 18.2286 56.0139 18.3175C56.0397 19.0661 56.9747 18.9514 56.9289 18.2257C56.7453 17.9245 56.4757 18.0278 56.2204 18.0221ZM44.9508 17.1444C44.7759 17.0411 44.6066 16.9407 44.4173 16.8289C44.294 16.9923 44.0531 17.0096 43.9326 17.239H44.1764C43.6687 17.9102 45.1975 17.8557 44.9508 17.1444ZM20.1515 16.9264C19.8962 17.1415 19.7528 17.7582 20.249 17.7352C21.0608 17.8787 20.7481 16.4617 20.1515 16.9264ZM67.1773 23.1879C67.8341 23.3256 68.382 22.4278 67.5961 22.2442C67.2404 22.5138 67.0683 22.7175 67.1773 23.1879ZM25.3403 22.9183C25.6615 23.36 26.1606 23.2624 26.2266 22.6945C26.2667 22.3962 25.9025 22.3905 25.6959 22.3331C25.369 22.2844 25.4005 22.6888 25.3403 22.9211V22.9183ZM60.3249 19.4304C59.9348 18.8051 59.0657 18.9141 59.4759 19.8061C59.5591 19.8434 59.6509 19.8836 59.7599 19.9352C59.9176 19.7172 60.2044 19.6685 60.3249 19.4304ZM46.7579 23.4604C46.7579 23.4604 46.7464 23.4632 46.7378 23.4661H46.7952C46.7952 23.4661 46.7722 23.4604 46.7579 23.4604ZM22.4605 16.8461C22.384 16.9818 22.2444 17.0927 22.0417 17.1788C22.0303 18.5269 23.6967 17.3394 22.4605 16.8461ZM16.1818 17.5373C16.3568 17.4054 16.4227 17.1386 16.2506 16.935C16.2306 17.1099 16.2076 17.3107 16.1818 17.5373ZM33.0101 17.0927C33.0962 17.3337 33.2176 17.5335 33.3744 17.6922C34.5074 17.7754 33.5293 16.1892 33.0101 17.0927ZM37.8575 22.2585C38.0354 22.0807 38.1702 21.9459 38.3021 21.8111C38.2017 21.1284 37.5678 21.1485 37.3441 21.7308C37.4359 21.9861 37.6768 22.0434 37.8575 22.2585ZM31.7194 21.8484C31.88 21.2174 30.9392 20.7986 30.899 21.5988C31.097 21.8025 31.2059 21.966 31.3723 22.2385C31.51 22.0778 31.5932 21.9861 31.7194 21.8484ZM53.9716 23.1076C54.1294 23.2624 54.3044 23.228 54.4478 23.2051C55.5693 22.3962 53.8569 21.8082 53.9716 23.1076ZM29.8837 20.2794C29.637 20.4228 29.7546 20.6322 29.8837 20.8531C30.0242 21.2632 30.3483 21.0022 30.6122 20.8904C30.6179 20.5031 30.2623 20.0327 29.8837 20.2794ZM21.2529 20.2134C20.7481 20.3999 20.9403 20.9793 21.4222 20.9391C22.2224 20.8932 21.8754 19.9151 21.2529 20.2134ZM38.827 18.0536C38.3394 18.068 38.3939 18.8567 38.8901 18.8338C39.5556 18.8051 39.5584 17.9102 38.827 18.0536ZM55.1562 23.4374C55.2997 23.4374 55.4431 23.4374 55.5865 23.4345C55.5263 23.403 55.466 23.3743 55.4029 23.3428C55.3197 23.3743 55.2366 23.4059 55.1534 23.4374H55.1562ZM65.7173 22.4593C65.6255 22.3934 65.528 22.3216 65.4161 22.2385C63.9046 22.6429 65.5682 23.8132 65.7173 22.4593ZM72.3947 18.4925C72.3029 17.9905 71.6748 17.827 71.4568 18.3146C71.5314 18.3577 71.6059 18.4007 71.6834 18.4466C71.6604 18.5326 71.6432 18.6043 71.6231 18.6875C71.8239 19.0633 72.3001 18.8826 72.3976 18.4925H72.3947ZM51.7889 23.0932C52.2277 23.3686 52.4715 23.0531 52.569 22.6343C52.3654 22.1094 51.3672 22.4679 51.7889 23.0932ZM58.4003 18.0479C58.102 18.3433 58.3802 18.5441 58.5351 18.7965C59.4644 19.0833 59.1145 17.5373 58.4003 18.0479ZM55.6266 17.6148C55.9737 17.1616 55.9708 17.1042 55.575 16.8317C55.423 16.8719 55.2624 16.912 55.0903 16.9551C55.03 17.0669 54.9669 17.1845 54.8924 17.3222C55.1993 17.6348 55.2308 17.6463 55.6266 17.6148ZM69.0618 17.3882C68.8581 17.1702 68.7405 17.0067 68.5885 16.7514C68.25 16.9235 68.2156 17.2362 68.1812 17.609C68.5311 17.9991 68.795 17.718 69.0618 17.391V17.3882ZM16.5661 22.8838C16.7354 22.9125 16.9878 22.9412 17.3148 22.9699C17.5987 22.379 16.6235 21.7853 16.5661 22.881V22.8838ZM53.1771 22.118C53.355 21.9488 53.5902 21.9057 53.6676 21.6591C53.5443 21.507 53.616 21.2432 53.3177 21.1141C52.9792 21.53 52.2736 21.7451 53.1771 22.1209V22.118ZM54.7174 20.2278C54.5195 20.2106 54.3388 20.1962 54.1237 20.1762C54.0319 20.2765 53.9516 20.3655 53.877 20.4458C54.0204 20.8014 54.0835 20.8588 54.5137 21.0137C54.6256 20.8674 54.7748 20.7556 54.8522 20.5777C54.812 20.4687 54.7662 20.3483 54.7203 20.2249L54.7174 20.2278ZM39.4007 20.4544C39.349 20.0786 38.8184 20.1589 38.5889 20.3941C38.4943 20.8043 38.7697 20.9936 39.1425 21.0194C39.4638 21.0567 39.4064 20.6638 39.4007 20.4544ZM29.0404 19.0432C28.9543 19.0862 28.8625 19.1321 28.7794 19.1723C28.7622 19.3357 28.7478 19.4792 28.7335 19.6226C28.9888 20.1991 29.5595 19.8033 29.6026 19.3673C29.4735 19.1264 29.2584 19.0977 29.0432 19.0432H29.0404ZM19.7442 16.1749C19.6983 16.1319 19.6639 16.0831 19.6324 16.0315C19.3197 16.0429 19.0214 16.0544 18.7489 16.0688C18.835 16.7428 19.3886 16.5793 19.7442 16.1749ZM35.3047 19.6742C35.5572 19.8635 35.8182 19.8664 36.0878 19.6914C36.3373 19.1952 35.8038 19.178 35.4711 19.0489C35.2742 19.1904 35.2187 19.3988 35.3047 19.6742ZM48.7456 23.4661C48.8116 23.4661 48.8804 23.4661 48.9464 23.4661C48.8804 23.4489 48.8116 23.4489 48.7456 23.4661ZM21.6861 16.5334C21.7692 16.4187 21.8467 16.3126 21.9327 16.1921C21.8782 16.1118 21.8266 16.0401 21.775 15.9655C21.5283 15.9712 21.2902 15.977 21.0579 15.9856C21.0149 16.0745 20.9891 16.2036 20.9633 16.3929C21.1726 16.608 21.4308 16.5392 21.6889 16.5334H21.6861ZM65.4792 18.8252C65.7087 18.6244 65.6743 18.3892 65.6341 18.1626C65.4649 18.0794 65.3215 18.0077 65.1723 17.936C65.0318 18.0651 64.9199 18.154 64.7708 18.2687C64.7708 18.6961 65.1264 18.7908 65.4792 18.8252ZM27.4141 17.2419C27.2362 17.1157 27.0584 16.9895 26.8605 16.8461C26.2495 17.0698 26.4819 17.6348 26.9092 17.8299C26.9953 17.5545 27.3452 17.5488 27.4141 17.239V17.2419ZM61.7246 16.892C61.2456 17.2189 61.7734 17.7783 62.218 17.6119C62.5536 17.196 62.2696 16.5764 61.7246 16.892ZM30.3282 16.6309C30.6007 16.4904 30.6151 16.0802 30.4659 15.8422C30.2451 15.8422 30.0271 15.845 29.812 15.8479C29.812 15.8479 29.812 15.8479 29.8091 15.8508C29.9324 16.172 29.8406 16.6912 30.3311 16.6309H30.3282ZM73.0774 21.1514C72.8594 21.1256 72.7619 21.3464 72.6643 21.5013C72.346 21.9287 72.6557 21.9947 73.0372 22.2614C73.1835 22.0578 73.5076 21.8226 73.2552 21.596C73.0257 21.5042 73.2294 21.2661 73.0774 21.1514ZM63.2305 23.2194C63.3596 23.1018 63.5001 23.0129 63.5489 22.858C63.3538 22.6343 63.176 22.4335 62.981 22.2098C62.4503 22.554 62.6081 23.1793 63.2305 23.2194ZM41.6552 22.8007C41.4257 22.2069 40.9266 22.3446 40.6312 22.8064C40.8348 23.2481 41.5318 23.2797 41.6552 22.8007ZM17.3922 18.4523C17.4926 17.8414 16.7153 17.9303 16.5748 18.4351C16.6264 18.9227 17.484 18.9916 17.3922 18.4523ZM55.4287 20.0127C55.7844 19.8176 55.8418 19.548 55.7442 19.2239C55.5148 19.0604 55.5148 19.0633 55.2796 19.0547C55.0472 19.3816 54.8751 19.9266 55.4316 20.0127H55.4287ZM48.0429 18.0163C47.4032 17.9159 47.168 18.2487 47.5008 18.8108C47.7044 18.8395 47.8822 18.8539 48.1117 18.7822C48.017 18.5412 48.1318 18.2917 48.0429 18.0192V18.0163ZM23.9434 15.9225C23.6996 15.9282 23.4587 15.9311 23.2263 15.9368C23.2063 15.9425 23.1833 15.9483 23.1632 15.954C22.8133 17.1243 24.2331 16.5105 23.9434 15.9225ZM73.9522 20.1274C73.7247 20.244 73.6233 20.4678 73.6482 20.7986C73.8317 20.8932 73.9981 20.919 74.1358 20.899C74.1673 20.681 74.1931 20.4515 74.2132 20.2192C74.1415 20.1848 74.0583 20.1532 73.9522 20.1303V20.1274ZM58.2884 20.4917C58.3726 20.6982 58.5188 20.8502 58.7273 20.9477C59.0657 21.1629 59.0829 20.7183 59.2178 20.5117C59.1145 20.3569 58.929 20.2335 58.6613 20.1417C58.5466 20.2479 58.429 20.3626 58.2884 20.4917ZM28.0422 19.9639C27.8357 20.1962 27.6779 20.3741 27.5116 20.5634C27.5718 20.6781 27.6234 20.7814 27.7066 20.942C27.9074 20.724 28.1053 21.0022 28.3032 20.8875C28.3405 20.7814 28.3778 20.6695 28.4237 20.5404C28.309 20.3683 28.1942 20.1962 28.0393 19.9639H28.0422ZM60.9961 16.6338C61.2629 16.5047 61.3317 16.2609 61.4263 16.02C61.4091 16.0057 61.3919 15.9942 61.3747 15.9827C61.0994 15.977 60.8211 15.9741 60.54 15.9684C60.4999 16.1519 60.629 16.4216 60.9961 16.6367V16.6338ZM51.1205 17.8213C51.2496 17.6234 51.3586 17.4513 51.5078 17.2247C51.2381 17.1558 51.089 16.9178 50.8079 16.8403C50.7247 16.9952 50.6473 17.1386 50.5698 17.2849C50.6932 17.5287 50.7563 17.8127 51.1205 17.8242V17.8213ZM38.5201 22.7576C38.85 23.5149 39.6387 23.1391 39.2601 22.4421C38.9389 22.2528 38.5603 22.336 38.5201 22.7576ZM36.0734 21.4812C35.7407 21.2317 35.1068 21.1801 35.1441 21.7394C35.517 22.1209 36.1021 22.1754 36.0734 21.4812ZM19.3742 18.8969C19.9307 18.3146 19.3455 17.6119 18.7518 18.088C18.7633 18.2315 18.7719 18.372 18.7862 18.5412C19.0214 18.5183 19.205 18.6215 19.3771 18.8969H19.3742ZM23.0428 18.3404C23.2149 18.6846 23.5074 19.0719 23.8688 18.6875C23.9578 18.59 23.9778 18.5039 23.8803 18.4122C23.7742 18.3118 23.7455 18.2257 23.8143 18.0995C23.8688 17.5746 23.2177 18.2257 23.0456 18.3376L23.0428 18.3404ZM17.6016 21.5185C17.7192 21.834 18.0204 22.1696 18.3933 21.9717C18.3617 21.7767 18.4248 21.6017 18.5195 21.4353C18.2298 20.9879 17.9229 21.2317 17.6016 21.5157V21.5185ZM43.597 20.2192H43.0233C42.9688 20.3913 42.923 20.529 42.8771 20.6695C43.161 21.2833 44.1879 20.6838 43.597 20.2192ZM17.9601 19.1149C17.7335 19.3329 17.5471 19.9582 18.0462 19.9324C18.2498 19.9266 18.574 19.7172 18.5367 19.4964C18.4391 19.2985 18.2269 18.9112 17.9601 19.1149ZM28.3204 23.1621V22.6458C28.1311 22.5368 27.9992 22.3561 27.741 22.3389C27.7066 22.3847 27.6177 22.4651 27.632 22.4966C27.7181 22.6859 27.5603 22.8093 27.5288 22.9756C27.7496 23.3342 28.0508 23.1219 28.3204 23.1649V23.1621ZM42.0452 23.4604C42.094 23.4604 42.1428 23.4604 42.1887 23.4604C42.1514 23.4489 42.1141 23.4374 42.0711 23.4345C42.0625 23.4432 42.0539 23.4518 42.0452 23.4604ZM40.3788 17.6033C40.3702 17.3222 40.5709 17.1415 40.4476 16.8661C39.9198 16.8518 39.3978 17.0727 39.8281 17.6234C40.0288 17.6463 40.2067 17.6693 40.3816 17.6004L40.3788 17.6033ZM27.1244 19.0805C26.5822 19.1522 26.1205 19.4046 26.7285 19.8549C27.1731 20.0872 27.5317 19.4447 27.1244 19.0805ZM20.3925 21.1944C19.4717 21.1313 20.0884 22.9957 20.7453 21.5816C20.6477 21.4267 20.5072 21.3063 20.3925 21.1944ZM42.9258 18.1655C42.9172 18.3175 42.9086 18.4494 42.9 18.5814C43.161 18.8883 43.4966 18.656 43.7892 18.5269C43.7375 18.0278 43.2815 17.8356 42.9229 18.1683L42.9258 18.1655ZM52.3711 16.6109C52.4285 16.4588 52.4772 16.324 52.5174 16.2179C52.46 16.0917 52.4113 15.9827 52.3568 15.8651C52.2478 15.8651 52.1388 15.8651 52.0298 15.8651C51.9466 15.8995 51.8692 15.9311 51.786 15.9626C51.4217 16.4617 51.9351 16.5994 52.3683 16.6137L52.3711 16.6109ZM52.7899 17.2362C53.1829 17.8299 53.659 17.8442 53.6446 17.0526C53.223 16.6424 53.0939 16.9006 52.7899 17.2362ZM46.7521 16.8489C46.5198 16.8891 46.3534 17.0296 46.2158 17.2333C46.6546 18.2257 47.5036 17.4714 46.7521 16.8489ZM30.9363 19.8234C31.0769 19.8291 31.1973 19.8348 31.3207 19.8406L31.3121 19.852C31.3121 19.852 31.3293 19.8463 31.335 19.8434C31.3322 19.8434 31.3293 19.8434 31.3264 19.8434C31.4469 19.743 31.5674 19.6455 31.6792 19.5537C31.6391 19.287 31.5358 19.0833 31.3178 18.9371C31.0396 19.4505 30.7155 18.9198 30.9392 19.8262L30.9363 19.8234ZM59.8574 17.7152C60.4024 17.5775 60.3192 17.0296 59.8144 16.9407C59.1776 17.0038 59.2952 17.6463 59.8574 17.7152ZM32.4995 18.808C32.9212 18.4408 32.9241 18.4179 32.5454 17.9217C32.3131 18.0823 32.0091 18.1024 31.9202 18.4093C32.0607 18.6416 32.2902 18.7162 32.4995 18.808ZM42.1313 22.1151C42.2804 22.0262 42.4325 21.9488 42.596 21.8799C42.8426 20.6724 41.2823 21.3608 42.1313 22.1151ZM57.1612 21.6906C57.3419 21.9172 57.5082 22.1582 57.8496 22.1983C57.9758 21.9086 57.9815 21.6677 57.8983 21.3751C57.4882 21.2604 57.4738 21.269 57.1612 21.6906ZM42.1686 19.1092C42.1514 19.3788 41.8875 19.3902 41.7068 19.5537C41.833 20.2106 42.507 19.8549 42.6562 19.4275C42.5874 19.1665 42.4296 19.069 42.1686 19.1092ZM24.018 20.6982C23.9606 20.506 23.9319 20.3483 23.9176 20.1532C23.5705 19.9782 23.2321 20.1102 23.0657 20.4716C23.1288 20.5605 23.1948 20.6552 23.2435 20.7269C23.5677 20.6293 23.7111 20.8043 24.018 20.6953V20.6982ZM62.981 18.8252C63.1932 18.7535 63.351 18.6703 63.5518 18.5355C63.5145 17.959 63.0584 17.8787 62.6626 18.2429C62.8003 18.4093 62.763 18.6646 62.981 18.8223V18.8252ZM62.3557 19.8807C62.3241 19.5882 62.3557 19.2038 62.0889 19.0346C61.891 18.9657 61.6013 19.1636 61.7791 19.3501C61.5353 19.7717 61.9111 20.0041 62.3557 19.8779V19.8807ZM50.0449 17.9475C49.8011 18.1282 49.4655 18.111 49.4684 18.4867C49.7036 18.5957 49.9159 18.7334 50.1769 18.7277C50.4207 18.372 50.4322 18.1655 50.0449 17.9475ZM45.2922 20.2679C45.2549 20.3798 45.2205 20.4773 45.1889 20.5777C45.2233 20.6781 45.2549 20.7785 45.2979 20.899C45.9719 21.16 46.4251 19.6455 45.295 20.2679H45.2922ZM69.971 16.4933C70.0054 16.3986 70.037 16.3068 70.0685 16.215C69.8305 16.2036 69.5838 16.195 69.3228 16.1835C69.3027 16.2495 69.2797 16.3126 69.2482 16.3785C69.5694 16.3384 69.7186 16.6424 69.971 16.4904V16.4933ZM20.6449 19.5078C20.599 19.3816 20.5617 19.2698 20.5187 19.1493C20.3724 19.112 20.2577 19.0231 20.0999 19.0374C19.4746 19.6025 20.1831 20.1962 20.6449 19.5078ZM29.3788 17.5832C29.4305 17.3853 29.5423 17.2648 29.5022 17.0612C29.1695 16.7026 28.4667 17.2304 28.7937 17.632C28.9715 17.6176 29.1752 17.6004 29.3817 17.5832H29.3788ZM29.7861 18.177C29.8521 18.5355 30.0013 18.8309 30.4258 18.7277C30.5864 18.676 30.5979 18.5441 30.552 18.3978C30.6638 17.9073 30.0844 17.9963 29.7861 18.1798V18.177ZM44.2395 23.4661C44.3485 23.4661 44.4575 23.4661 44.5665 23.4661C44.4632 23.3858 44.3399 23.3915 44.2395 23.4661ZM26.4704 21.7336C26.4876 22.1094 27.0412 22.1352 27.2276 21.8541C27.2334 21.5462 27.1349 21.3569 26.9322 21.2862C26.7859 21.4296 26.6454 21.5644 26.4704 21.7336ZM44.5005 22.1008C45.0828 21.7623 44.6238 21.6591 44.5177 21.2575C44.1907 21.4898 44.1621 21.5157 44.0014 21.791C44.0903 22.0004 44.2883 22.0406 44.5005 22.0979V22.1008ZM33.013 21.6648C33.0952 21.8904 33.2568 22.0759 33.4977 22.2213C33.6469 22.0606 33.8993 21.9631 33.7989 21.6533C33.5235 21.4267 33.208 21.2776 33.013 21.6648ZM62.3184 22.1123C62.7056 21.3407 62.0631 21.2403 61.6157 21.6648C61.7275 21.8226 61.8193 21.9545 61.934 22.1123H62.3184ZM63.7468 21.6533C63.8242 22.0778 64.309 22.3102 64.6388 21.9631V21.6533C64.3205 21.3894 64.048 21.5042 63.7468 21.6533ZM30.1475 23.208C30.5807 23.208 30.7556 22.4593 30.1504 22.4937C29.6599 22.4106 29.7775 23.1821 30.1475 23.208ZM44.5636 19.0547C44.4116 19.1579 44.2567 19.264 44.076 19.3902C44.3686 20.3425 45.4413 19.5796 44.5636 19.0547ZM31.5702 17.1099C31.8026 16.6998 31.1658 16.8547 31.0252 17.0612C30.8704 17.391 30.8704 17.6291 31.269 17.7266C31.6534 17.6262 31.378 17.3136 31.5702 17.1099ZM72.5553 19.5337C72.8422 20.0557 73.3642 19.7373 73.5076 19.3071C73.456 19.2497 73.3872 19.1751 73.2896 19.0661C73.0544 19.2899 72.6844 19.155 72.5525 19.5337H72.5553ZM31.9202 22.8437C32.0894 22.9498 32.2385 23.0416 32.3791 23.1305C32.5971 22.99 32.7003 22.8179 32.7261 22.5482C32.4909 22.4794 32.3102 22.3589 32.0664 22.3819C32.0005 22.5339 31.9632 22.6773 31.9202 22.8465V22.8437ZM53.6074 19.3988C53.4353 19.244 52.853 18.785 52.896 19.2812C52.9477 19.3816 52.939 19.4763 52.9046 19.5853C52.8874 20.0356 53.4553 19.8779 53.6074 19.3988ZM71.4597 16.347C71.8067 16.8375 71.9616 16.7686 72.3144 16.347C72.0735 16.3269 71.7981 16.3068 71.4826 16.2896C71.4769 16.3097 71.4654 16.3269 71.4625 16.3498L71.4597 16.347ZM18.5137 17.2419C18.4592 17.0641 18.3732 16.9264 18.1896 16.8403C17.6389 16.9923 17.6332 17.5832 18.2441 17.6463C18.3531 17.48 18.4334 17.3566 18.5109 17.2419H18.5137ZM34.8774 20.8559C34.8229 20.6064 34.8516 20.4945 34.9319 20.2393C34.0284 20.1876 34.0169 21.4153 34.8774 20.8559ZM42.9 22.7834C43.2212 23.0033 43.4718 23.1047 43.6515 23.0875C43.6458 22.8896 43.7548 22.7175 43.6458 22.5081C43.3704 22.511 43.0549 22.3934 42.9 22.7834ZM60.0782 21.4124C59.8144 21.1428 59.473 21.378 59.7398 21.7078C59.6652 21.7509 59.5878 21.791 59.4902 21.8455C59.6652 22.4995 60.4454 21.8541 60.0782 21.4124ZM27.8185 18.481C27.8845 18.7994 28.0193 18.7535 28.1828 18.5527C28.3749 18.3863 28.3749 18.3835 28.2114 18.1024H27.6923C27.4485 18.3577 27.4026 18.6043 27.8185 18.481ZM61.2456 20.7785C61.2084 20.5978 61.1711 20.4257 61.1338 20.2421C60.8699 20.1676 60.6978 20.288 60.5343 20.4831C60.7466 20.7125 60.9273 21.1829 61.2456 20.7785ZM41.9477 17.9704C41.9363 17.87 41.9649 17.7066 41.8158 17.7209C41.6953 17.7926 41.7556 18.0135 41.9477 17.9704ZM31.3752 19.8262C31.3752 19.8262 31.3494 19.8377 31.335 19.8434C31.3522 19.8463 31.3666 19.8492 31.3752 19.8262ZM68.1095 19.9496C68.0693 19.9324 68.0378 19.8979 68.012 19.9524C68.0378 20.0069 68.0693 19.9668 68.1095 19.9496Z",fill:"#421B36"})),(0,t.createElement)("path",{d:"M39.2025 9.26774C38.8325 9.21038 37.6651 9.31364 37.6651 9.31364L37.4012 8.98091C37.4012 8.98091 38.1871 7.65576 37.9949 7.40335C37.8028 7.14807 36.4231 6.34208 36.1937 6.44247C35.9642 6.54286 35.2729 7.51521 35.2729 7.51521L34.7882 7.45211C34.7882 7.45211 34.5989 6.11262 34.0568 6.13843C33.5118 6.16424 32.4448 6.51705 32.2297 6.65472C32.0145 6.7924 32.3358 8.10321 32.3358 8.10321L31.983 8.38431L31.831 8.3126C31.831 8.3126 30.784 7.65863 30.4857 7.88236C30.1874 8.10608 29.4761 9.56605 29.5306 9.75249C29.588 9.93893 30.6779 10.7248 30.6779 10.7248L30.5947 11.0977C30.5947 11.0977 29.3614 11.4706 29.304 11.8263C29.2466 12.1819 29.4732 13.639 29.8461 13.6792C30.219 13.7165 31.3807 13.5472 31.3807 13.5472L31.6617 13.8656C31.6617 13.8656 30.9504 15.2309 31.1569 15.4747C31.3634 15.7185 32.7833 16.4471 33.007 16.3352C33.2307 16.2234 33.8675 15.2137 33.8675 15.2137L34.3551 15.251C34.3551 15.251 34.6161 16.579 35.1582 16.5217C35.7003 16.4643 36.7472 16.0541 36.9538 15.905C37.1603 15.7558 36.7673 14.4651 36.7673 14.4651L37.123 14.1467C37.123 14.1467 38.1699 14.7835 38.5629 14.5196C38.9558 14.2586 39.5926 13.0223 39.4979 12.8359C39.4033 12.6495 38.451 11.8636 38.451 11.8636L38.4567 11.7632C38.7895 11.6714 39.5811 11.4218 39.6413 11.1436C39.7159 10.7908 39.5725 9.32224 39.2025 9.26488V9.26774ZM34.4813 12.9851C33.5491 12.9851 32.7919 12.2278 32.7919 11.2956C32.7919 10.3634 33.5491 9.6062 34.4813 9.6062C35.4135 9.6062 36.1707 10.3634 36.1707 11.2956C36.1707 12.2278 35.4135 12.9851 34.4813 12.9851Z",fill:"#E6BDF7"}),(0,t.createElement)("path",{d:"M12.3896 14.4052C12.3896 14.4052 12.0139 20.7872 12.9317 21.0109C15.3526 21.5989 66.807 21.8484 69.4057 20.9105C70.3551 20.5663 70.8398 15.346 69.4057 14.5773C67.9715 13.8086 12.7568 13.5963 12.3896 14.4052Z",fill:"white"}),(0,t.createElement)("path",{d:"M44.7384 21.7132C30.0154 21.7132 14.0046 21.4693 12.8888 21.1969C11.9193 20.9617 12.0857 16.3609 12.2004 14.3933L12.2176 14.3273C12.2578 14.2412 12.341 14.204 12.4012 14.1839C14.6729 13.4123 68.0318 13.6246 69.4975 14.4105C70.3867 14.8866 70.5846 16.6994 70.4727 18.2368C70.3867 19.4156 70.0741 20.8727 69.4717 21.0907C68.2125 21.5468 56.9143 21.7132 44.7384 21.7132ZM12.5733 14.5252C12.384 17.8524 12.5675 20.7265 12.9777 20.8269C15.0113 21.3202 66.569 21.7332 69.3398 20.7322C69.6209 20.6318 69.988 19.6365 70.0913 18.211C70.1974 16.751 69.9995 15.1132 69.314 14.7489C67.7163 13.9688 15.192 13.7794 12.5733 14.5281V14.5252Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M68.0088 17.491C68.0002 18.1794 67.5756 18.8133 66.9188 19.0514C66.2562 19.2894 65.5047 19.0829 65.0601 18.538C64.6242 18.0045 64.5725 17.23 64.9253 16.642C65.2753 16.0569 65.978 15.7328 66.6492 15.8618C67.4351 16.011 67.9973 16.6994 68.0088 17.4939C68.0116 17.8008 68.4906 17.8008 68.4849 17.4939C68.4734 16.6047 67.9256 15.8102 67.0938 15.4918C66.262 15.1734 65.2724 15.4402 64.7073 16.1286C64.1423 16.8198 64.0534 17.8123 64.5152 18.5838C64.9741 19.3526 65.8747 19.7455 66.7524 19.5878C67.7563 19.407 68.4734 18.4949 68.4849 17.491C68.4878 17.1841 68.0116 17.1841 68.0088 17.491Z",fill:"#9B98FF"}),(0,t.createElement)("path",{d:"M68.9812 19.3383C68.6599 19.0773 68.3387 18.8163 68.0174 18.5553C67.9658 18.5151 67.917 18.4865 67.8482 18.4865C67.7908 18.4865 67.7191 18.5123 67.679 18.5553C67.5987 18.6413 67.5757 18.8077 67.679 18.8909C68.0002 19.1519 68.3215 19.4129 68.6427 19.6739C68.6943 19.7141 68.7431 19.7428 68.812 19.7428C68.8693 19.7428 68.941 19.717 68.9812 19.6739C69.0615 19.5879 69.0844 19.4215 68.9812 19.3383Z",fill:"#9B98FF"}),(0,t.createElement)("path",{d:"M45.1456 27.0428C45.1456 27.0428 44.8301 30.0774 45.8742 30.5421C46.9182 31.0067 75.4004 31.0383 75.8134 30.2925C76.2236 29.5497 76.4416 26.7932 75.8134 26.406C75.1853 26.0188 45.1915 26.0675 45.1456 27.0399V27.0428Z",fill:"#E6BDF7"}),(0,t.createElement)("path",{d:"M66.2736 38.1256H71.428C71.7349 38.1256 71.7349 37.6494 71.428 37.6494H66.2736C65.9667 37.6494 65.9667 38.1256 66.2736 38.1256Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M22.1809 10.3734C24.0477 8.37786 23.9432 5.24682 21.9477 3.38005C19.9521 1.51328 16.8211 1.6177 14.9543 3.61326C13.0875 5.60883 13.1919 8.73988 15.1875 10.6066C17.1831 12.4734 20.3141 12.369 22.1809 10.3734Z",fill:"#E6BDF7"}),(0,t.createElement)("path",{d:"M16.1757 9.79863C17.8565 8.26409 19.4714 6.65784 21.0145 4.98562C21.221 4.7619 20.8854 4.42344 20.6789 4.65003C19.1358 6.32225 17.5209 7.9285 15.8401 9.46304C15.6135 9.66956 15.952 10.0051 16.1757 9.79863Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M15.5649 5.45305C17.3949 6.83844 19.2249 8.22382 21.0548 9.60634C21.2987 9.79278 21.5367 9.37688 21.2958 9.19618C19.4658 7.81079 17.6358 6.4254 15.8059 5.04288C15.5621 4.85644 15.324 5.27235 15.5649 5.45305Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M97.8497 25.1727C97.3404 25.1727 96.8312 25.1631 96.3291 25.1511L95.9544 25.1439C94.3785 25.1126 92.7474 25.079 91.2364 24.6538C89.9199 24.2839 89.8359 23.3278 89.7446 22.3164C89.5668 20.3106 89.6605 18.2326 89.7902 16.2844C89.8022 16.1139 89.8046 15.9121 89.807 15.6911C89.8239 14.6701 89.8455 13.2744 90.6646 12.7508C91.8297 12.0109 93.6674 12.0829 95.1448 12.143C95.385 12.1526 95.6156 12.1622 95.827 12.167C97.6671 12.2078 99.7883 12.2967 101.717 12.8396C101.78 12.8468 101.842 12.8637 101.9 12.8949C102.726 13.3273 102.878 15.3764 102.899 16.3325C102.904 16.3517 102.906 16.3709 102.911 16.3925H102.918C102.918 16.3925 102.918 16.4045 102.916 16.4238C103.079 17.5312 102.846 22.8689 102.842 22.9266C102.729 23.9475 102.601 24.5865 101.431 24.8508C100.276 25.1126 99.0628 25.1727 97.8545 25.1727H97.8497ZM93.8188 12.4289C92.7209 12.4289 91.5991 12.5346 90.8328 13.0222C90.1578 13.4522 90.1362 14.7494 90.1217 15.6983C90.1169 15.9241 90.1145 16.1331 90.1025 16.3085C89.9752 18.2423 89.8791 20.3058 90.0569 22.29C90.1554 23.4046 90.2635 24.0508 91.318 24.3487C92.7906 24.7643 94.4001 24.7955 95.9568 24.8268L96.3315 24.834C98.0107 24.87 99.7451 24.906 101.352 24.5409C102.272 24.3319 102.402 23.9235 102.517 22.893C102.671 21.5045 102.654 18.2038 102.625 16.9186L102.58 16.9114V16.7673C102.58 16.7673 102.58 16.7649 102.58 16.7625C102.592 15.9385 102.462 13.5555 101.746 13.1808C101.722 13.1687 101.698 13.1615 101.674 13.1591L101.64 13.1543C99.7451 12.6186 97.6407 12.5297 95.815 12.4913C95.6012 12.4865 95.3706 12.4769 95.128 12.4673C94.7124 12.4505 94.268 12.4337 93.8188 12.4337V12.4289Z",fill:"#9B98FF"}),(0,t.createElement)("path",{d:"M91.5078 12.4335C91.5078 12.472 91.5198 11.8185 91.3324 11.7201C91.3228 11.7153 91.3156 11.7129 91.306 11.7129C90.9457 11.612 90.5565 11.5927 90.1842 11.5855C89.9055 11.5783 89.4659 11.5327 89.2137 11.6936C89.0383 11.8065 89.0719 12.1669 89.0599 12.347C89.0359 12.7266 89.0167 13.1158 89.0503 13.4953C89.0695 13.7115 89.0912 13.8532 89.3146 13.9157C89.6124 13.9998 89.9415 14.0022 90.249 14.0094C90.5757 14.0166 90.9289 14.0262 91.2508 13.9541C91.4525 13.9085 91.4766 13.8076 91.4982 13.613C91.5414 13.2263 91.5174 12.0492 91.5102 12.4383L91.5078 12.4335Z",fill:"#9B98FF"}),(0,t.createElement)("path",{d:"M103.261 12.4338C103.261 12.4722 103.273 11.8188 103.086 11.7203C103.076 11.7155 103.069 11.7131 103.06 11.7131C102.699 11.6122 102.31 11.593 101.938 11.5858C101.659 11.5786 101.22 11.5329 100.967 11.6939C100.792 11.8068 100.826 12.1671 100.814 12.3473C100.79 12.7268 100.77 13.116 100.804 13.4955C100.823 13.7118 100.845 13.8535 101.068 13.9159C101.366 14 101.695 14.0024 102.003 14.0096C102.329 14.0168 102.683 14.0264 103.004 13.9544C103.206 13.9087 103.23 13.8078 103.252 13.6133C103.295 13.2265 103.271 12.0494 103.264 12.4386L103.261 12.4338Z",fill:"#9B98FF"}),(0,t.createElement)("path",{d:"M91.5078 23.6091C91.5078 23.6475 91.5198 22.9941 91.3324 22.8956C91.3228 22.8908 91.3156 22.8884 91.306 22.8884C90.9457 22.7875 90.5565 22.7683 90.1842 22.7611C89.9055 22.7539 89.4659 22.7082 89.2137 22.8692C89.0383 22.9821 89.0719 23.3424 89.0599 23.5226C89.0359 23.9021 89.0167 24.2913 89.0503 24.6708C89.0695 24.887 89.0912 25.0288 89.3146 25.0912C89.6124 25.1753 89.9415 25.1777 90.249 25.1849C90.5757 25.1921 90.9289 25.2017 91.2508 25.1297C91.4525 25.084 91.4766 24.9831 91.4982 24.7886C91.5414 24.4018 91.5174 23.2247 91.5102 23.6139L91.5078 23.6091Z",fill:"#9B98FF"}),(0,t.createElement)("path",{d:"M103.261 23.6091C103.261 23.6475 103.273 22.9941 103.086 22.8956C103.076 22.8908 103.069 22.8884 103.06 22.8884C102.699 22.7875 102.31 22.7683 101.938 22.7611C101.659 22.7539 101.22 22.7082 100.967 22.8692C100.792 22.9821 100.826 23.3424 100.814 23.5226C100.79 23.9021 100.77 24.2913 100.804 24.6708C100.823 24.887 100.845 25.0288 101.068 25.0912C101.366 25.1753 101.695 25.1777 102.003 25.1849C102.329 25.1921 102.683 25.2017 103.004 25.1297C103.206 25.084 103.23 24.9831 103.252 24.7886C103.295 24.4018 103.271 23.2247 103.264 23.6139L103.261 23.6091Z",fill:"#9B98FF"}),(0,t.createElement)("path",{d:"M94.1188 16.3519C93.9554 16.3447 93.8305 16.2966 93.744 16.2006C93.6599 16.1069 93.6167 15.9411 93.6167 15.7033C93.6167 15.5087 93.6599 15.3646 93.744 15.2709C93.8281 15.1772 93.9506 15.1292 94.1092 15.1292C94.2965 15.1364 94.5271 15.1436 94.7986 15.1532C95.0701 15.1628 95.3463 15.1676 95.6298 15.1724C95.9132 15.1748 96.1655 15.1772 96.3913 15.1772C96.8477 15.1772 97.3017 15.1724 97.7509 15.1628C98.2002 15.1532 98.6398 15.1412 99.065 15.122C99.2115 15.1147 99.3244 15.1604 99.4037 15.2541C99.4829 15.3478 99.5214 15.4919 99.5214 15.6865C99.5214 15.9243 99.4805 16.0901 99.3989 16.1885C99.3172 16.287 99.1899 16.3351 99.0193 16.3351C98.6181 16.3543 98.1978 16.3687 97.7557 16.3807C97.3137 16.3927 96.8693 16.3999 96.4201 16.3999C96.0237 16.3999 95.6322 16.3951 95.2382 16.3855C94.8466 16.3759 94.4743 16.3663 94.1212 16.3543L94.1188 16.3519ZM95.7883 15.7874C95.7883 15.7273 95.8147 15.6745 95.8652 15.6312C95.918 15.588 95.9781 15.552 96.0478 15.5207C96.1174 15.4895 96.1895 15.4679 96.2664 15.4535C96.3432 15.439 96.4009 15.4318 96.4441 15.4318C96.4922 15.4318 96.5522 15.439 96.6219 15.4535C96.6916 15.4679 96.7612 15.4919 96.8309 15.5207C96.9006 15.552 96.9606 15.588 97.0086 15.6312C97.0567 15.6745 97.0807 15.7249 97.0807 15.7874C97.0807 16.8395 97.0615 17.8725 97.0255 18.8887C96.9894 19.9048 96.9318 20.9017 96.8525 21.8818C96.8453 21.9923 96.8093 22.0788 96.7396 22.1413C96.6699 22.2061 96.5883 22.2518 96.4922 22.283C96.3985 22.3142 96.3024 22.3286 96.2039 22.3286C96.1054 22.3286 96.0069 22.3142 95.9084 22.283C95.8075 22.2518 95.7259 22.2013 95.661 22.1269C95.5961 22.0548 95.5673 21.9587 95.5745 21.8434C95.6466 20.9137 95.6994 19.9336 95.7331 18.9055C95.7667 17.8773 95.7835 16.8371 95.7835 15.785L95.7883 15.7874Z",fill:"#9B98FF"}),(0,t.createElement)("path",{d:"M46.9085 43.9146L46.9079 43.9148L46.9105 43.9198C47.6776 45.8751 47.6996 47.2422 47.3831 48.1973C47.0668 49.1517 46.384 49.7793 45.5683 50.1976C44.7456 50.6196 43.8131 50.8138 43.0696 50.8996C42.7062 50.9415 42.3949 50.9568 42.1739 50.9616L40.8343 46.5537L40.7359 46.2298L40.3986 46.2009C38.4183 46.0311 36.1548 44.9978 35.3046 42.4586C34.8164 41.0006 34.1823 40.0513 33.3211 39.4298C32.4717 38.8168 31.4592 38.567 30.3217 38.3862C29.5006 38.2557 28.8168 38.2459 28.306 38.2386C28.1043 38.2357 27.9296 38.2332 27.784 38.2239C27.5114 38.2063 27.324 38.1685 27.1658 38.095C27.013 38.0241 26.8523 37.9034 26.6659 37.6652L26.6656 37.6648C26.4729 37.4191 26.482 37.1335 26.5935 36.8314C26.6482 36.6833 26.7214 36.5521 26.7827 36.4564C26.8129 36.4094 26.839 36.3728 26.8565 36.3492C26.8653 36.3375 26.8718 36.3291 26.8755 36.3244L26.8784 36.3209L26.8787 36.3204L26.8788 36.3203L26.8789 36.3202L27.2591 35.8634L26.7412 35.5677C26.3545 35.347 26.2192 35.1269 26.1713 34.959C26.1202 34.7792 26.1441 34.5704 26.2349 34.3387C26.3255 34.1076 26.4684 33.8915 26.5971 33.7269C26.6601 33.6464 26.7165 33.5821 26.7563 33.5389C26.7761 33.5173 26.7916 33.5013 26.8014 33.4913L26.8116 33.481L26.8127 33.4799L26.813 33.4796L26.813 33.4796L26.8132 33.4794L27.0865 33.2154L26.9035 32.8808C26.6962 32.5019 26.6519 32.2927 26.6563 32.1827C26.659 32.1161 26.6776 32.0531 26.8036 31.9545C26.9527 31.8376 27.1958 31.7182 27.5782 31.5639C27.7147 31.5088 27.8849 31.4433 28.0725 31.3711C28.3434 31.2668 28.6507 31.1485 28.9453 31.0274L28.9456 31.0273C29.8866 30.6398 31.28 30.5673 32.4982 30.6085C33.0957 30.6288 33.6303 30.6753 34.0155 30.7169C34.2079 30.7376 34.3623 30.757 34.4681 30.7712C34.5209 30.7782 34.5616 30.784 34.5886 30.7879L34.6188 30.7923L34.6259 30.7934L34.6274 30.7936L34.6275 30.7937L34.6276 30.7937C34.6276 30.7937 34.6276 30.7937 34.6277 30.7932L34.9458 29.8619L34.7041 30.2996C34.9458 29.8619 34.9457 29.8618 34.9456 29.8618L34.9455 29.8617L34.945 29.8614L34.9435 29.8606L34.9382 29.8577L34.9189 29.8472C34.9022 29.8381 34.8779 29.825 34.8467 29.8083C34.7843 29.775 34.6941 29.7276 34.5814 29.6699C34.3562 29.5548 34.0397 29.3985 33.6737 29.2333C32.952 28.9076 31.9996 28.5297 31.1681 28.3825C30.7556 28.3087 30.3616 28.2781 30.0134 28.2542C29.975 28.2516 29.9374 28.2491 29.9004 28.2466C29.5922 28.2258 29.3344 28.2083 29.1043 28.1708C28.8497 28.1292 28.6797 28.0697 28.5612 27.9898C28.4554 27.9184 28.3619 27.8117 28.2944 27.6106C28.2219 27.3922 28.2262 27.2318 28.2629 27.1108C28.2997 26.9893 28.3831 26.8617 28.5468 26.7331C28.892 26.4619 29.5294 26.2389 30.4801 26.1302C31.3332 26.0326 32.3701 26.2682 33.5717 26.8075C34.7669 27.3439 36.0801 28.1603 37.4689 29.166C37.7679 29.3825 38.1487 29.7672 38.5949 30.3047C39.036 30.8361 39.5218 31.4932 40.0323 32.2333C41.0529 33.7132 42.1569 35.5033 43.1774 37.2369C44.1972 38.9693 45.1301 40.6393 45.8083 41.8766C46.1473 42.4951 46.4224 43.0051 46.6127 43.3603C46.7079 43.5379 46.7818 43.6768 46.8319 43.7711L46.8888 43.8786L46.9032 43.9059L46.9068 43.9127L46.9077 43.9143L46.9079 43.9147C46.9079 43.9147 46.9079 43.9148 46.9085 43.9145C46.9085 43.9145 46.9085 43.9145 46.9085 43.9146Z",fill:"white",stroke:"#6C5493"}),(0,t.createElement)("path",{d:"M34.8525 27.0077C30.9446 25.7314 19.2049 25.0743 18.5889 26.8181C17.9665 28.5747 17.1262 40.3143 18.1276 41.9634C19.1291 43.6157 34.2049 44.0422 35.0895 42.7595C35.9772 41.4801 36.2679 27.4689 34.8525 27.0077Z",fill:"#E6BDF7"}),(0,t.createElement)("path",{d:"M33.6871 31.7909C32.9732 33.2725 31.1945 33.8949 29.716 33.1809C28.2343 32.4669 27.612 30.6883 28.3259 29.2098C29.0399 27.7281 30.8186 27.1057 32.2971 27.8197C33.7788 28.5337 34.4011 30.3123 33.6871 31.7909Z",fill:"#9B98FF"}),(0,t.createElement)("path",{d:"M35.0895 42.7597C35.4655 42.2163 35.734 39.392 35.8098 36.2802C34.1039 34.928 31.646 34.511 29.6273 35.3608C28.8627 35.6831 28.0508 36.1696 27.2673 35.9011C26.6639 35.6926 26.3006 35.0986 25.9057 34.5963C24.8253 33.2252 23.1603 32.3311 21.4196 32.1858C20.1844 32.0816 18.9238 32.3596 17.8339 32.9472C17.5843 36.7477 17.5527 41.0158 18.1277 41.9636C19.1292 43.6159 34.205 44.0424 35.0895 42.7597Z",fill:"#9B98FF"}),(0,t.createElement)("path",{d:"M36.3059 32.0684C36.2933 32.3559 36.5144 27.3359 35.077 26.543C35.0075 26.5051 34.9412 26.4861 34.8748 26.4798C32.1231 25.6331 29.1187 25.4246 26.2596 25.2951C24.1082 25.1972 20.731 24.7643 18.7691 25.949C17.3949 26.7768 17.5939 29.5758 17.4707 30.9438C17.2116 33.866 17.0094 36.8578 17.2022 39.7896C17.3127 41.4513 17.4581 42.5539 19.1546 43.072C21.4324 43.7702 23.9629 43.8523 26.326 43.9566C28.847 44.0672 31.5545 44.2062 34.0439 43.7007C35.5983 43.3848 35.8005 42.6076 35.9995 41.1133C36.3944 38.1373 36.4165 29.0735 36.2996 32.0684H36.3059ZM35.1307 39.5842C35.0328 40.7721 35.2381 42.3801 33.965 42.6771C31.9715 43.1415 29.7285 43.0246 27.7002 42.9804C25.3845 42.9298 23.0341 42.8035 20.7531 42.3864C20.1813 42.2822 19.1293 42.2095 18.6838 41.7862C18.27 41.3913 18.2984 40.5288 18.2542 39.9918C18.0457 37.4202 18.2068 34.7917 18.3995 32.2233C18.4753 31.206 18.5669 30.1856 18.6933 29.1746C18.7565 28.6533 18.7344 27.4023 19.0977 26.9663C19.5905 26.3819 21.1322 26.4071 21.8083 26.3534C23.4069 26.2271 25.0212 26.2555 26.6198 26.3408C29.283 26.4798 32.0726 26.7009 34.641 27.4844C35.4214 27.9046 35.2666 31.7367 35.2918 32.4981C35.3645 34.858 35.3297 37.2369 35.1307 39.5905V39.5842Z",fill:"white"}),(0,t.createElement)("path",{d:"M29.82 44.2728C28.7363 44.2728 27.6496 44.2254 26.5786 44.178L26.0194 44.1528C23.7006 44.0548 21.3027 43.9506 19.0944 43.2745C17.3126 42.7279 17.1136 41.6001 16.9935 39.8057C16.7977 36.8486 17.0062 33.7905 17.2621 30.9283C17.2842 30.6787 17.2968 30.3786 17.3095 30.0532C17.3663 28.5557 17.4453 26.5054 18.6616 25.7724C20.3929 24.7267 23.094 24.8942 25.2644 25.03C25.6182 25.0521 25.9562 25.0742 26.269 25.0869C28.9733 25.2069 32.0977 25.4091 34.9158 26.2747C35.0042 26.2842 35.0927 26.3127 35.178 26.36C36.3785 27.0235 36.527 30.0626 36.5207 31.4559C36.5238 31.4748 36.527 31.4969 36.5301 31.519H36.5459C36.5459 31.519 36.5459 31.5443 36.5396 31.5885C36.7007 33.1144 36.3532 40.0995 36.2142 41.142C36.0152 42.63 35.8067 43.5588 34.0912 43.9095C32.7012 44.1907 31.2637 44.276 29.8231 44.276L29.82 44.2728ZM22.8033 25.3491C21.3501 25.3491 19.9095 25.5102 18.8796 26.1326C17.856 26.7486 17.7833 28.6694 17.7296 30.069C17.717 30.4038 17.7044 30.7071 17.6822 30.963C17.4295 33.8095 17.221 36.8455 17.4137 39.7772C17.5243 41.4358 17.6601 42.3962 19.2176 42.8733C21.3754 43.5335 23.7448 43.6378 26.0352 43.7357L26.5944 43.761C29.0649 43.8684 31.6239 43.979 34.0028 43.4956C35.3833 43.2145 35.5887 42.6111 35.794 41.0851C36.0689 39.0127 36.1542 34.1444 36.1542 32.2646L36.0878 32.252L36.0942 32.0593C36.0942 32.0593 36.0942 32.0466 36.0942 32.0403C36.1384 30.8114 36.0247 27.3078 34.9726 26.7265C34.9347 26.7044 34.8968 26.6918 34.8557 26.6886L34.8115 26.6791C32.0346 25.8261 28.9354 25.6239 26.2469 25.5039C25.9341 25.4913 25.5929 25.4691 25.2359 25.447C24.4682 25.3996 23.631 25.3459 22.8002 25.3459L22.8033 25.3491Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M40.2235 42.2918C40.2235 42.2918 36.4577 38.564 35.8637 36.8517C35.842 36.789 35.8201 36.726 35.7981 36.663C35.2204 35.0051 34.6178 33.2759 36.4987 33.4555C38.4511 33.6419 43.231 40.3584 43.231 40.3584L40.2266 42.2918H40.2235Z",fill:"white"}),(0,t.createElement)("path",{d:"M40.2235 42.2918C40.2235 42.2918 36.4577 38.564 35.8637 36.8517C35.842 36.789 35.8201 36.726 35.7981 36.663C35.2204 35.0051 34.6178 33.2759 36.4987 33.4555C38.4511 33.6419 43.231 40.3584 43.231 40.3584L40.2266 42.2918H40.2235Z",stroke:"black"}),(0,t.createElement)("path",{d:"M39.4083 40.425C37.7592 39.1581 36.4229 37.4047 35.7121 35.4429C35.5478 34.9879 35.3582 34.3024 35.8479 33.977C36.3439 33.6453 36.9726 33.9707 37.3896 34.2708C38.2615 34.8932 39.0482 35.6703 39.759 36.4696C40.5836 37.3921 41.2976 38.4062 41.9073 39.4835C42.0652 39.7615 42.4949 39.5119 42.3369 39.2308C41.7083 38.1156 40.9627 37.0699 40.1097 36.1158C39.6927 35.6451 39.2472 35.1996 38.7797 34.7794C38.3216 34.3656 37.8351 33.917 37.2917 33.62C36.3723 33.1145 35.0455 33.3767 35.0328 34.6215C35.0265 35.1933 35.2792 35.7493 35.5067 36.2611C35.7563 36.8266 36.0533 37.3731 36.3945 37.8944C37.14 39.0349 38.0752 40.0301 39.1524 40.8609C39.4052 41.0568 39.6548 40.624 39.4052 40.4313L39.4083 40.425Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M35.5002 33.9137C35.6613 34.555 36.1194 35.1268 36.7291 35.4017C37.4052 35.705 38.2013 35.6544 38.8332 35.2658C39.1049 35.0984 38.8553 34.6656 38.5804 34.8362C38.0939 35.1363 37.4652 35.1995 36.9408 34.9531C36.4606 34.7288 36.1099 34.2928 35.9804 33.781C35.9014 33.4714 35.4212 33.6009 35.5002 33.9137Z",fill:"#6C5493"}),(0,t.createElement)("g",{clipPath:"url(#clip0_2140_16278)"},(0,t.createElement)("path",{d:"M17.9149 74.3063C16.8487 72.1402 14.822 70.9726 11.7247 71.8018C11.7247 71.8018 8.21252 72.8794 6.15139 73.6723C4.09025 74.4653 2.07078 75.8883 1.48924 77.9746C1.04604 79.5698 1.51996 81.25 2.03165 82.8154C2.41031 83.9788 2.81985 85.1525 3.51885 86.1602C4.2184 87.1702 5.24887 88.0145 6.47695 88.2456C7.83801 88.5036 9.22311 87.9925 10.5207 87.4944C11.2203 87.2247 11.9174 86.9555 12.617 86.6857C13.3056 87.8369 16.2956 89.2196 16.7059 88.0577C16.8614 87.6182 15.6118 86.2358 15.1355 85.715C15.8424 85.4436 16.5488 85.1697 17.2557 84.8982C18.4913 84.4222 19.8605 83.8216 20.336 82.6068C20.6659 81.7636 20.293 80.3268 20.0955 79.4511L17.9144 74.3039L17.9149 74.3063Z",fill:"#8380FF",fillOpacity:"0.52"}),(0,t.createElement)("path",{d:"M7.65018 78.7777C7.28327 79.2642 6.91447 79.7537 6.54756 80.2403C6.26534 80.6138 5.8095 81.096 5.96961 81.6026C6.12972 82.1093 6.72963 82.1425 7.18038 82.2233C7.78427 82.3286 8.38816 82.434 8.9926 82.5418C9.14085 82.5675 9.29078 82.5122 9.34278 82.3589C9.3851 82.2306 9.3079 82.0446 9.15966 82.0189C8.64751 81.9298 8.1378 81.8402 7.62564 81.7511C7.37776 81.7084 7.12742 81.6663 6.87898 81.6213C6.75693 81.597 6.53424 81.5736 6.49821 81.4309C6.4577 81.2691 6.61741 81.0679 6.70476 80.9441C6.85487 80.7351 7.01402 80.5315 7.17015 80.3262C7.4881 79.9065 7.80303 79.485 8.12098 79.0654C8.33609 78.7807 7.86151 78.4989 7.64829 78.7806L7.65018 78.7777Z",fill:"white"}),(0,t.createElement)("path",{d:"M13.7415 81.1467C14.2117 80.6813 14.6793 80.2164 15.1495 79.751C15.5044 79.4008 16.0363 78.9235 15.7849 78.3803C15.6 77.9777 15.0668 77.8759 14.6704 77.7622C14.2789 77.6474 13.8818 77.5415 13.487 77.435C13.239 77.3696 12.991 77.3043 12.7405 77.2396C12.3942 77.152 12.2266 77.6724 12.5729 77.76C13.2716 77.9389 13.9708 78.1202 14.6604 78.3264C14.8331 78.3791 15.1754 78.4274 15.2702 78.5891C15.3762 78.7658 15.1063 79.0154 14.9979 79.1265C14.459 79.6735 13.9045 80.2091 13.359 80.7501C13.1074 81.0005 13.4869 81.3953 13.7404 81.1419L13.7415 81.1467Z",fill:"white"}),(0,t.createElement)("path",{d:"M11.1348 83.5286C11.2079 81.2038 11.1493 78.8797 11.2249 76.5543C11.2359 76.2041 10.6783 76.1861 10.6673 76.5363C10.5942 78.8611 10.6528 81.1853 10.5772 83.5107C10.5662 83.8609 11.1238 83.8789 11.1348 83.5286Z",fill:"white"})),(0,t.createElement)("path",{d:"M122.847 105.218C121.802 105.196 118.128 105.118 118.351 105.123C118.145 105.119 117.981 104.948 117.985 104.741C117.99 104.534 118.171 104.371 118.367 104.374L122.854 104.469C123.061 104.473 123.225 104.644 123.221 104.851C123.216 105.055 123.05 105.218 122.847 105.218Z",fill:"black"}),(0,t.createElement)("path",{d:"M83.1638 64.8239C81.4571 64.7331 79.7961 65.3491 78.2248 66.0284C68.9098 70.0551 60.7225 76.7113 54.8324 85.0465C54.4104 85.6438 54.495 85.9161 54.9952 86.3092C57.9389 88.6235 60.9688 90.5777 64.0249 92.706C64.7254 93.194 65.4693 93.6979 66.3174 93.7663C67.5686 93.8672 68.6756 93.0081 69.6279 92.1815C73.838 88.5276 77.2196 84.3583 81.5187 80.8467",fill:"#C9B7FD"}),(0,t.createElement)("path",{d:"M113.635 69.2388C112.505 68.3201 111.064 67.721 109.583 67.3167C106.292 66.4081 102.781 65.9991 98.9695 65.4996C98.9695 65.5294 98.9644 65.5544 98.9644 65.5842C98.9201 66.1135 99.0535 67.3164 98.7621 67.7806C98.1251 68.7942 95.3757 68.6892 94.3885 68.5195C93.3323 68.3448 91.323 67.7308 90.7406 66.7075C90.4641 66.2232 90.6766 65.2398 90.6912 64.6855C88.6572 64.5907 86.6185 64.6056 84.5896 64.7255C83.0572 64.8169 81.9871 65.0116 80.591 65.6191C80.4628 65.6791 79.4854 66.0732 79.4854 66.1931C79.5101 66.8721 79.7027 67.4911 79.9791 68.1101C80.3203 68.8588 80.0989 69.2496 75.1612 83.4313C68.8969 101.392 70.5007 96.6885 68.6451 102.452C68.1909 103.865 67.3814 105.043 67.2629 106.53C67.601 106.51 105.95 106.685 106.878 106.64C108.482 103.769 109.356 100.48 110.338 97.3445C110.737 96.0685 111.12 94.7874 111.487 93.5013C111.628 93.0069 111.941 92.3655 111.933 91.8481C111.925 91.3198 111.455 90.9392 111.607 90.3669C111.705 89.9998 112.014 89.7387 112.277 89.4671C112.959 88.7631 113.076 87.5085 113.294 86.5955C113.583 85.3825 113.86 84.1665 114.119 82.9467C114.998 78.8232 117.797 72.6177 113.636 69.2381L113.635 69.2388ZM95.6421 97.9889C95.4397 98.658 95.0447 99.2469 94.6549 99.8212C94.329 100.3 93.7367 101.014 93.1641 101.099C92.1623 100.586 91.2932 100.594 90.439 100.455C89.3185 100.276 88.267 99.8263 87.2107 99.422C86.5048 99.1524 85.1375 98.4135 84.3872 98.6533C83.5824 98.913 82.9309 99.9262 81.9881 100.211C81.7908 100.271 79.4803 100.565 79.4803 100.271C79.352 101.199 79.194 102.197 78.5868 102.852C77.9746 103.506 76.7556 103.516 76.4297 102.647C76.3556 103.116 75.9559 103.501 75.5213 103.521C75.0868 103.541 74.6624 103.196 74.5538 102.732C74.1784 103.526 73.2704 104.474 72.4409 103.886C72.0856 103.641 72.115 103.301 71.913 102.977C71.6859 102.618 71.7353 102.787 71.3749 102.927C70.3779 103.317 69.726 102.358 69.8052 101.31C69.8584 100.571 70.0936 100.178 71.602 96.4823C72.5201 94.2456 72.4616 93.8823 74.085 92.3289C76.2882 90.2284 78.2924 89.97 81.3068 90.0574C86.2185 90.2023 91.1203 90.9009 95.9037 92.144C95.3706 93.9114 96.1802 96.2276 95.6421 97.9899V97.9889Z",fill:"#C9B7FD"}),(0,t.createElement)("path",{d:"M132.572 102.417C132.384 103.28 132.068 104.104 131.589 104.843H127.926C129.861 103.32 131.413 102.913 132.571 102.417H132.572Z",fill:"#047AFF"}),(0,t.createElement)("path",{d:"M124.268 96.5507C123.084 93.5904 120.813 91.0042 117.935 89.6514C116.345 88.9027 112.48 87.7642 111.829 90.1306C111.305 92.0025 113.191 92.8562 114.489 93.63C117.979 95.712 120.665 99.0766 122.259 102.906C120.369 101.054 117.787 99.9303 115.156 99.8751C114.331 99.8552 113.314 100.085 113.092 100.884C112.949 101.398 113.226 101.952 113.625 102.296C114.429 102.98 115.74 103.045 119.243 104.842H116.494C115.627 104.842 114.929 105.558 114.929 106.425C114.929 107.244 115.541 107.918 116.331 107.998C116.316 108.112 116.306 108.222 116.296 108.337C115.428 108.222 114.569 108.097 113.71 107.967C111.163 107.593 108.551 107.189 106.315 105.906L110.718 67.6506C119.923 70.8125 126.962 82.3088 130.755 91.074C128.328 91.3111 125.262 93.5162 124.269 96.5504L124.268 96.5507Z",fill:"#C9B7FD"}),(0,t.createElement)("path",{d:"M132.531 97.1352C130.695 97.2063 128.308 98.8213 126.983 100.121C128.978 97.0986 131.214 96.1129 132.186 95.4481C132.314 95.997 132.433 96.5612 132.531 97.1355V97.1352Z",fill:"#047AFF"}),(0,t.createElement)("path",{d:"M71.7083 102.491C71.6414 102.494 71.559 102.518 71.4581 102.58L71.4577 102.58C71.2474 102.708 71.046 102.758 70.8614 102.737C70.6761 102.716 70.5192 102.624 70.3967 102.489C70.1549 102.222 70.0415 101.782 70.0758 101.328C70.099 101.007 70.15 100.781 70.3907 100.158C70.5491 99.7476 70.7917 99.1599 71.1661 98.2528C71.3583 97.7872 71.5851 97.2376 71.8532 96.5845C72.0033 96.2181 72.1263 95.9019 72.2352 95.6219C72.4404 95.094 72.5956 94.6951 72.7878 94.3322C73.0863 93.7687 73.4752 93.2872 74.2719 92.525L74.272 92.5249C75.3472 91.4999 76.3713 90.9278 77.4973 90.6241C78.6202 90.3212 79.8389 90.287 81.298 90.328L81.2981 90.328C86.0704 90.4688 90.8379 91.137 95.4759 92.3142L95.5705 92.3382L95.5511 92.4339C95.3816 93.2709 95.4431 94.1843 95.5043 95.094C95.5072 95.1373 95.5101 95.1805 95.513 95.2238C95.5756 96.1622 95.6266 97.0959 95.3867 97.895V97.8956L95.3823 97.9102C95.1864 98.5563 94.7809 99.1526 94.4322 99.6654L94.4301 99.6685C94.2334 99.9581 94.024 100.209 93.8218 100.403C93.6212 100.596 93.4211 100.738 93.2423 100.8L93.2025 100.814L93.1645 100.796C92.3908 100.427 91.7163 100.345 91.0686 100.266C90.8712 100.242 90.6763 100.218 90.4818 100.187M71.7083 102.491L87.3075 99.1681C87.4016 99.2047 87.4959 99.2415 87.5902 99.2783C88.5521 99.6538 89.5248 100.033 90.4818 100.187M71.7083 102.491H71.7233C71.8192 102.491 71.8985 102.534 71.9686 102.601C72.0403 102.67 72.0951 102.756 72.142 102.83M71.7083 102.491L72.142 102.83M90.4818 100.187C90.4818 100.187 90.4817 100.187 90.4817 100.187L90.4981 100.086L90.4819 100.187C90.4818 100.187 90.4818 100.187 90.4818 100.187ZM72.142 102.83C72.2279 102.968 72.2743 103.096 72.3188 103.219C72.3268 103.241 72.3349 103.263 72.343 103.285C72.3945 103.423 72.4552 103.564 72.5944 103.661C72.7605 103.779 72.9393 103.811 73.1154 103.779C73.2883 103.748 73.4539 103.657 73.6032 103.538C73.9013 103.301 74.1578 102.934 74.3081 102.615L74.3082 102.615C74.4179 102.383 74.7593 102.42 74.8183 102.67C74.8936 102.994 75.1797 103.262 75.5084 103.249L75.509 103.249C75.6684 103.242 75.8188 103.159 75.9332 103.045C76.0481 102.929 76.1345 102.774 76.1608 102.605C76.204 102.33 76.5869 102.292 76.6838 102.551L76.6838 102.551C76.8122 102.893 77.1328 103.046 77.4625 103.052C77.791 103.058 78.1484 102.922 78.3887 102.666L78.389 102.665C78.6573 102.376 78.8285 102.01 78.9496 101.598C79.0706 101.186 79.1435 100.722 79.2111 100.233M72.142 102.83L84.3038 98.3945C83.874 98.5331 83.5006 98.8467 83.1204 99.1674L83.1119 99.1745C82.7486 99.4813 82.3512 99.8168 81.9147 99.9487L81.9105 99.95L81.9105 99.9499C81.7804 99.9833 81.3395 100.041 80.8884 100.082C80.6609 100.102 80.4275 100.119 80.2248 100.126C80.0248 100.133 79.8466 100.131 79.7341 100.113L79.7005 100.107L79.6769 100.082C79.5201 99.9189 79.2424 100.01 79.2111 100.233M79.2111 100.233C79.211 100.233 79.211 100.233 79.211 100.233L79.1095 100.219L79.2111 100.233ZM79.7519 100.269V100.27H79.9569V100.269H79.7519ZM70.6954 97.9695C70.8816 97.5184 71.0983 96.9934 71.3507 96.3786C71.5041 96.0055 71.6303 95.6843 71.7418 95.4002C71.9668 94.8273 72.1324 94.4058 72.3418 94.0159C72.6511 93.44 73.0557 92.9364 73.8974 92.1314C75.0278 91.0537 76.1081 90.4467 77.2886 90.1186C78.4717 89.7899 79.7613 89.7396 81.3148 89.7845C86.2509 89.9299 91.1823 90.6349 95.9725 91.8798L95.9725 91.8798C96.1205 91.9183 96.2095 92.0729 96.1642 92.2214L96.1641 92.2218C95.9125 93.0572 95.9778 94.0304 96.0453 95.0345L96.0459 95.0445C96.1159 96.0871 96.1855 97.1408 95.9026 98.068L95.9026 98.0681C95.6838 98.7901 95.2613 99.4122 94.8796 99.9742L94.8796 99.9742C94.7156 100.216 94.4699 100.541 94.1756 100.818C93.8794 101.098 93.5449 101.318 93.2037 101.368L93.2022 101.369C93.1486 101.377 93.0912 101.368 93.0406 101.342L93.0404 101.342C92.2994 100.962 91.6224 100.88 90.9756 100.802C90.78 100.778 90.5871 100.755 90.3961 100.724L90.3958 100.724C89.2495 100.54 87.6499 99.9159 86.5996 99.4604C86.2833 99.3227 85.8801 99.1475 85.4973 99.0256C85.3057 98.9645 85.1164 98.9159 84.9433 98.8922C84.7719 98.8688 84.6075 98.8685 84.4706 98.9122L84.4703 98.9123C84.2817 98.973 84.0984 99.0868 83.9173 99.2217C83.775 99.3277 83.629 99.4507 83.48 99.5762C83.4397 99.6102 83.3992 99.6443 83.3585 99.6784C82.9725 100.001 82.5594 100.321 82.0715 100.47L82.059 100.472L82.01 100.481C81.9676 100.488 81.9067 100.498 81.8315 100.51C81.6809 100.534 81.4729 100.565 81.2395 100.593C80.7701 100.649 80.2062 100.694 79.7976 100.658L79.7019 100.649L79.6872 100.744C79.5655 101.527 79.358 102.42 78.787 103.036C78.2061 103.655 77.1876 103.787 76.5722 103.293L76.4913 103.228L76.4273 103.31C75.9664 103.898 75.1574 103.974 74.6176 103.403L74.5334 103.314L74.4607 103.412C74.1682 103.808 73.8076 104.117 73.4295 104.258C73.0562 104.398 72.6627 104.376 72.2842 104.107L72.2777 104.102L72.2766 104.102C72.0817 103.966 71.9771 103.807 71.9045 103.648C71.8692 103.571 71.8417 103.495 71.8143 103.419L71.8099 103.407C71.7818 103.329 71.7525 103.249 71.7152 103.178L71.669 103.09L71.5796 103.134C70.9987 103.416 70.4688 103.3 70.0929 102.95C69.7126 102.595 69.4814 101.991 69.5343 101.288L69.5343 101.288C69.5601 100.929 69.6124 100.679 69.8594 100.03C70.0296 99.5824 70.2904 98.9506 70.6954 97.9695ZM69.4321 101.281L69.4322 101.281L69.4321 101.281ZM79.7509 100.011C80.1556 100.079 81.6437 99.9126 81.885 99.8506L79.7509 100.011Z",fill:"#6C5493",stroke:"#6C5493",strokeWidth:"0.204964"}),(0,t.createElement)("path",{d:"M48.9677 44.5162C47.8993 44.1601 42.587 50.3033 40.0645 53.4194L56.9806 91.2581L67.6645 77.9033C62.0258 67.6646 50.0361 44.8723 48.9677 44.5162Z",fill:"#C9B7FD"}),(0,t.createElement)("path",{d:"M71.5923 103.06C71.3963 102.995 71.2897 102.783 71.3543 102.587C72.0894 100.356 72.9456 98.1422 73.898 96.0068C73.9823 95.8175 74.2036 95.7345 74.3921 95.8175C74.5806 95.9018 74.6655 96.1233 74.5813 96.3123C73.6391 98.4247 72.7927 100.615 72.0647 102.822C72.0007 103.017 71.7909 103.125 71.5923 103.06V103.06Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M74.6379 103.253C74.4352 103.214 74.3028 103.018 74.3418 102.815C74.6842 101.039 75.111 98.8282 76.3852 97.2566C76.5148 97.0957 76.7517 97.0713 76.9115 97.2017C77.0719 97.3321 77.0966 97.5678 76.9659 97.7286C75.8102 99.1543 75.4203 101.175 75.0765 102.957C75.0379 103.157 74.8443 103.293 74.6379 103.253Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M76.4163 103.233C76.215 103.187 76.0884 102.986 76.1341 102.785C76.4407 101.432 76.8363 100.088 77.3108 98.789C77.3815 98.5943 77.5975 98.4958 77.7907 98.5659C77.9846 98.6367 78.0845 98.8517 78.0134 99.0461C77.5501 100.315 77.1633 101.629 76.8641 102.951C76.8177 103.155 76.6147 103.278 76.4163 103.233V103.233Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M90.8831 86.1349L87.2009 100.673L99.0172 104.535L102.726 93.933",fill:"#C9B7FD"}),(0,t.createElement)("path",{d:"M86.9715 100.064L86.9716 100.064L90.0147 87.7493C90.196 87.019 90.8914 86.556 91.6227 86.6678L111.755 89.746L111.755 89.746C111.903 89.7686 112.005 89.9073 111.983 90.0559L111.983 90.056C111.96 90.2044 111.818 90.3064 111.674 90.2837L111.673 90.2836L91.5406 87.2054L91.5405 87.2054C91.0799 87.1356 90.6546 87.4282 90.5424 87.8801L90.5424 87.8802L87.4992 100.195C87.4992 100.195 87.4992 100.195 87.4992 100.195C87.3812 100.67 87.6641 101.161 88.1328 101.289L88.1329 101.289L109.126 107.006C109.271 107.046 109.356 107.195 109.317 107.34C109.277 107.486 109.127 107.57 108.983 107.53L87.9898 101.813C87.241 101.609 86.7831 100.824 86.9715 100.064Z",fill:"#6C5493",stroke:"#6C5493",strokeWidth:"0.204964"}),(0,t.createElement)("path",{d:"M100.233 107.374C100.149 107.03 100.055 106.68 99.8723 106.376C99.0424 104.981 97.0071 105.233 95.1975 105.233H74.3265C73.2012 95.4262 71.6518 85.5848 69.869 76.6174C69.6223 75.3692 69.5234 74.3458 68.3288 73.6818C66.5121 72.6733 64.1427 73.2625 62.1829 73.2476C58.7816 73.2226 55.3804 73.2128 51.9792 73.2277C45.2559 73.2578 38.5323 73.3624 31.8141 73.5422C30.2441 73.5873 28.418 73.7718 27.5638 75.1047C26.9021 76.1331 27.0801 77.4762 27.2971 78.6841C27.8007 81.5046 28.3584 84.3152 28.9804 87.111C31.8141 98.3807 32.1356 99.7113 33.443 103.899C33.9862 105.647 34.1144 107.643 35.1659 109.191C36.0002 110.424 37.1305 110.369 38.4534 110.369H90.9915C93.0992 110.369 95.2022 110.319 97.3053 110.319C98.1446 110.319 99.2106 110.539 99.8425 109.875C100.45 109.246 100.45 108.278 100.233 107.374Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M78.3246 90.1786L78.3249 90.179H78.2978C78.0757 90.179 77.9472 89.9251 78.0782 89.7464L78.0783 89.7463L83.1557 82.8074C83.2447 82.686 83.4139 82.6591 83.5356 82.7485L83.5356 82.7485C83.6565 82.8373 83.6829 83.0073 83.5944 83.1286C83.5944 83.1286 83.5944 83.1286 83.5944 83.1287L78.8141 89.6608L78.7749 89.7143L78.8077 89.772C78.9108 89.9535 78.7797 90.1786 78.5719 90.1786H78.3246Z",fill:"#6C5493",stroke:"#6C5493",strokeWidth:"0.204964"}),(0,t.createElement)("path",{d:"M108.132 84.2182L108.132 84.2182C108.005 84.2978 107.966 84.4656 108.046 84.5931C108.046 84.5931 108.046 84.5931 108.046 84.5931L111.378 89.9101C111.378 89.9101 111.378 89.9102 111.378 89.9102C111.458 90.0372 111.626 90.0759 111.753 89.996C111.88 89.9164 111.919 89.7487 111.839 89.6212L108.132 84.2182ZM108.132 84.2182C108.26 84.1379 108.427 84.1768 108.507 84.3039L108.507 84.304L111.839 89.6211L108.132 84.2182Z",fill:"#6C5493",stroke:"#6C5493",strokeWidth:"0.204964"}),(0,t.createElement)("path",{d:"M93.8571 62.5561C91.6244 62.3928 89.4301 61.1629 87.836 59.1822C86.0796 56.9909 85.1624 54.0959 84.8193 51.3103C84.7939 51.1051 84.9398 50.9182 85.1448 50.8931C85.3557 50.8671 85.5364 51.0137 85.5618 51.2189C85.862 53.6571 86.5767 55.8582 87.6283 57.5846C89.0334 59.891 91.3063 61.6187 93.9109 61.809C94.3495 61.8395 94.8148 61.8294 95.2937 61.7782C95.4995 61.7542 95.6829 61.9052 95.7059 62.1108C95.7279 62.3163 95.5787 62.5009 95.3736 62.5229C94.8771 62.5764 94.3695 62.592 93.8574 62.5564L93.8571 62.5561Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M98.1391 61.4521C98.0562 61.2629 98.1431 61.0421 98.332 60.9591C99.1699 60.592 99.9619 60.1321 100.626 59.7305C102.265 58.7437 103.939 56.803 104.844 54.1779L104.893 54.0421C104.989 53.7915 105.313 53.7164 105.506 53.9094C105.951 54.3513 106.722 54.5982 107.483 54.5355C108.17 54.4793 108.823 54.1082 109.228 53.5423C109.631 52.9893 109.826 52.2342 109.81 51.2955C109.793 49.924 109.282 48.58 107.927 48.3436C107.247 48.2257 106.466 48.4343 105.837 48.9037C105.67 49.0276 105.436 48.9924 105.313 48.8272C105.19 48.6616 105.224 48.4266 105.389 48.303C107.476 46.7463 110.51 47.5735 110.558 51.2843C110.577 52.3879 110.333 53.2955 109.835 53.9808C109.304 54.7208 108.447 55.2081 107.543 55.2819C106.781 55.3425 106.007 55.1603 105.42 54.7895C104.474 57.3147 102.694 59.359 101.012 60.3716C100.328 60.7854 99.5104 61.2601 98.6322 61.6448C98.446 61.7268 98.2234 61.6438 98.1391 61.4521Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M85.0493 47.4554C84.8432 47.4459 84.6835 47.2705 84.6933 47.0643C84.8964 42.6034 87.1094 37.6384 90.6443 35.1524C90.8152 35.0343 91.0477 35.0746 91.1655 35.2435C91.2842 35.4129 91.244 35.6462 91.0748 35.765C87.7101 38.1311 85.6348 43.001 85.4406 47.0988C85.4314 47.2993 85.2656 47.4639 85.0493 47.4554Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M108.906 44.8617C108.477 46.1448 107.445 47.1133 106.453 48.0168C105.969 48.456 105.559 48.8203 105.243 49.3747C105.144 49.5494 104.241 50.7773 104.241 50.8125C104.05 50.0408 103.948 46.0666 103.886 44.9917C103.871 44.7273 103.812 44.4028 103.555 44.3378C103.451 44.3128 103.343 44.3429 103.234 44.368C99.2845 45.4238 95.1851 43.1242 93.9782 39.1462C92.7934 40.4693 91.5841 41.8119 90.0538 42.7056C88.5285 43.6043 86.6031 43.9887 84.9841 43.2898C82.8712 42.3761 81.8593 39.9799 81.0498 37.8083C81.8644 38.6968 83.3945 38.4175 84.2781 37.6037C85.7929 36.2167 85.9134 33.9759 88.252 31.7829C89.1857 31.2196 89.1353 30.9794 90.0335 30.4853C90.9317 29.9912 91.9388 29.6617 93.0448 29.5317C95.4585 29.2472 96.9148 30.6749 98.1737 32.532C98.144 32.4819 100.672 32.1277 100.928 32.1375C101.876 32.1822 102.982 32.3722 103.786 32.9062C105.218 33.8547 106.773 34.9678 107.612 36.5306C108.421 38.0284 108.545 39.965 107.651 41.4178C108.905 41.8973 109.335 43.5793 108.905 44.8624L108.906 44.8617Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M107.771 51.9962C107.565 51.9819 107.409 51.8031 107.423 51.5966C107.444 51.2976 107.451 50.9826 107.368 50.7053C107.292 50.4499 107.136 50.2525 106.951 50.177C106.794 50.1123 106.583 50.1618 106.513 50.282C106.408 50.4598 106.18 50.52 106.001 50.4144C105.823 50.3094 105.763 50.0798 105.868 49.9017C106.129 49.4601 106.729 49.2776 107.235 49.4835C107.632 49.6464 107.942 50.0128 108.085 50.4896C108.203 50.882 108.195 51.2783 108.17 51.6484C108.155 51.8597 107.969 52.0124 107.771 51.9958V51.9962Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M92.881 53.2367C91.9781 53.2028 91.0027 52.9989 90.6903 52.1497C90.3719 51.2817 91.0386 50.4748 91.3828 49.8737C91.8082 49.1307 91.9239 48.1971 91.7009 47.3126C91.6508 47.1121 91.7719 46.9086 91.9723 46.8581C92.1703 46.808 92.376 46.9286 92.4268 47.1294C92.6969 48.2002 92.553 49.3363 92.0315 50.2462C91.7056 50.8151 91.2166 51.4124 91.3929 51.8913C91.5283 52.26 92.0193 52.4554 92.8949 52.4883C93.1013 52.4961 93.2624 52.6698 93.2543 52.8764C93.2468 53.0785 93.0807 53.237 92.8806 53.237L92.881 53.2367Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M92.6772 56.4287C92.3743 56.4287 92.071 56.366 91.7932 56.235C91.6067 56.1466 91.5262 55.9234 91.6145 55.7365C91.7032 55.5499 91.9248 55.4686 92.113 55.5577C92.6656 55.8185 93.3987 55.6495 93.7845 55.1761C93.9155 55.0156 94.1514 54.9922 94.3111 55.1226C94.4708 55.2536 94.4949 55.4893 94.3642 55.6495C93.9544 56.1513 93.3148 56.4287 92.6768 56.4287H92.6772Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M95.4417 47.7333C95.8804 47.6952 96.1749 46.9595 96.0995 46.0901C96.0241 45.2207 95.6073 44.5469 95.1686 44.585C94.7299 44.623 94.4354 45.3587 94.5108 46.2281C94.5862 47.0975 95.003 47.7714 95.4417 47.7333Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M86.5384 49.5139C86.9771 49.4758 87.2716 48.7401 87.1962 47.8708C87.1208 47.0014 86.704 46.3275 86.2653 46.3656C85.8266 46.4037 85.5321 47.1393 85.6075 48.0087C85.6829 48.8781 86.0997 49.552 86.5384 49.5139Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M106.237 58.3463L105.32 57.497C105.224 57.4086 105.091 57.3738 104.965 57.4049L103.791 57.6927C103.49 57.7666 103.228 57.4733 103.332 57.1784L103.77 55.9278C103.81 55.8137 103.796 55.687 103.732 55.5847L103.015 54.4456C102.838 54.1642 103.065 53.8012 103.393 53.8435L104.519 53.9884C104.658 54.0064 104.796 53.9471 104.88 53.8337L105.556 52.919C105.751 52.6552 106.161 52.7355 106.245 53.0538L106.592 54.3755C106.622 54.4906 106.702 54.5858 106.81 54.6342L108.032 55.1835C108.318 55.3118 108.346 55.7107 108.08 55.8777L107.082 56.5062C106.969 56.5776 106.9 56.7026 106.899 56.8374L106.89 58.0595C106.887 58.4005 106.486 58.5773 106.237 58.347V58.3463Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M95.8328 69.4392C95.1488 69.4392 94.5508 69.3749 94.2614 69.3251C93.2042 69.1504 91.0223 68.508 90.3515 67.3292C90.0006 66.7139 90.2388 65.6838 90.253 65.1121C90.3008 63.6719 90.3397 62.334 90.3762 61.0875C90.3827 60.8843 90.5488 60.7241 90.7505 60.7241C90.7539 60.7241 90.758 60.7241 90.7617 60.7241C90.9682 60.7302 91.1306 60.9026 91.1248 61.1091C91.0176 64.8538 91.0078 65.1856 90.96 65.6641C90.916 66.103 90.8568 66.7041 91.0013 66.9577C91.491 67.8178 93.3372 68.4128 94.3856 68.5862C95.5326 68.7836 97.9131 68.762 98.3815 68.0173C98.5913 67.6831 98.4864 66.4714 98.528 65.9885L98.905 65.9516L98.5314 65.9323C98.6654 64.2849 98.7883 62.7546 98.903 61.4302C98.9206 61.2239 99.1037 61.0729 99.3078 61.0895C99.5139 61.1075 99.6665 61.2886 99.6482 61.4945C99.5552 62.5707 99.4638 63.695 99.278 65.9662L98.901 66.0041L99.2746 66.0234C99.2262 66.6374 99.3815 67.8314 99.0144 68.4159C98.4966 69.2401 97.0322 69.4385 95.8324 69.4385L95.8328 69.4392Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M102.548 35.5111C104.353 32.0695 108.425 30.2138 112.271 30.4431C116.116 30.6723 119.689 32.7214 122.439 35.4505C123.582 36.5856 124.615 37.8544 125.336 39.3014C127.94 44.5252 126.398 51.7371 127.17 57.7702C127.784 62.5741 130 66.1436 134.131 68.4921C133.633 68.849 133.017 69.0979 132.439 69.3668C131.607 69.7545 130.525 70.107 129.862 69.467C130.415 70.4531 131.047 71.4165 131.912 72.1382C132.776 72.8598 133.906 73.319 135.016 73.1679C133.27 75.3294 130.167 75.9556 127.456 75.4354C119.477 73.9048 110.358 65.7407 112.683 56.7631C113.117 55.0916 114.013 53.6304 114.136 51.8705C114.349 48.814 112.707 46.1489 110.06 44.7541C108.419 43.8899 106.559 43.5249 104.712 43.4165",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M124.567 104.447L124.567 104.447L124.567 104.449L124.567 104.451L124.567 104.452L124.567 104.453L124.567 104.447ZM124.567 104.447L124.133 99.5079L124.133 99.5078L124.132 99.5002C123.983 98.5985 124.047 97.708 124.282 96.861C124.797 98.704 125.069 100.492 125.128 102.266L125.139 102.596L125.317 102.318C125.636 101.819 125.994 101.347 126.385 100.901C125.852 101.847 125.429 102.858 125.127 103.901L125.123 103.915V103.92L124.567 104.447ZM124.47 104.522C124.468 104.494 124.466 104.474 124.466 104.465L124.568 104.456L124.568 104.458C124.568 104.459 124.567 104.464 124.567 104.468C124.563 104.487 124.52 104.516 124.47 104.522Z",fill:"#6C5493",stroke:"#6C5493",strokeWidth:"0.204964"}),(0,t.createElement)("path",{d:"M124.436 105.217C124.331 105.217 124.232 105.174 124.161 105.097C124.09 105.02 124.054 104.917 124.063 104.813C124.17 103.444 124.139 103.416 124.2 103.293C126.32 99.0604 130.712 96.5444 133.022 96.7726C134.18 96.8715 135.181 97.5891 135.508 98.5582C135.955 99.8603 135.14 101.225 134.194 101.942C132.597 103.148 130.751 103.096 128.158 105.138C127.976 105.281 128.092 105.189 124.436 105.218L124.436 105.217ZM124.84 104.469H127.798C130.45 102.422 132.287 102.444 133.743 101.345C134.481 100.786 135.126 99.7509 134.799 98.7993C134.563 98.0997 133.766 97.4685 132.545 97.5095C130.636 97.5833 126.843 99.76 124.903 103.562L124.84 104.469H124.84Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M123.686 104.843H122.96C122.763 104.184 122.526 103.54 122.26 102.906C122.768 103.396 123.222 103.935 123.617 104.524L123.686 104.843V104.843Z",fill:"black"}),(0,t.createElement)("path",{d:"M125.605 102.25L125.503 102.253C125.505 102.338 125.485 102.375 125.374 102.544L125.369 102.551C125.258 102.718 125.08 102.989 124.811 103.515L124.802 103.533L124.8 103.554L124.706 104.865C124.706 104.865 124.706 104.865 124.706 104.866C124.695 105.006 124.577 105.115 124.436 105.115H122.96C122.84 105.115 122.734 105.036 122.699 104.921C122.513 104.301 122.288 103.676 122.008 103.012C120.391 99.1269 117.712 95.8026 113.96 93.637L113.96 93.637C113.326 93.2711 112.594 92.8475 112.085 92.2755C111.583 91.7101 111.302 91.0033 111.566 90.0575L111.567 90.0572C111.73 89.4645 112.068 89.0643 112.517 88.8093C112.969 88.5525 113.541 88.44 114.171 88.4371C115.434 88.4315 116.904 88.8654 118.05 89.4054L118.05 89.4055C120.905 90.7478 123.265 93.3148 124.52 96.4499L124.52 96.4501L124.524 96.4588C124.555 96.5188 124.594 96.612 124.627 96.7077C125.157 98.591 125.441 100.397 125.503 102.253L125.605 102.25ZM125.605 102.25C125.543 100.384 125.258 98.569 124.725 96.677L124.808 104.873L124.902 103.561C125.168 103.04 125.345 102.774 125.454 102.608C125.567 102.437 125.609 102.374 125.605 102.25ZM123.236 104.571L123.239 104.571L124.095 104.551L124.188 104.549L124.195 104.456C124.224 104.082 124.238 103.842 124.247 103.683C124.25 103.627 124.253 103.582 124.256 103.544C124.265 103.398 124.272 103.378 124.292 103.338C124.486 102.951 124.703 102.573 124.939 102.212L124.957 102.184L124.955 102.152C124.887 100.381 124.61 98.653 124.111 96.8741L124.111 96.8741L124.108 96.866C123.035 93.9921 120.76 91.2803 117.819 89.8976C117.186 89.5993 116.287 89.2819 115.388 89.1105C114.494 88.9399 113.578 88.9096 112.928 89.2084L112.928 89.2084C112.495 89.4076 112.219 89.7358 112.09 90.203C111.977 90.6069 111.991 90.9614 112.103 91.2787C112.214 91.5945 112.42 91.8659 112.678 92.1092C113.094 92.5002 113.663 92.8321 114.231 93.1638C114.364 93.2412 114.497 93.3187 114.628 93.3969L114.628 93.397C118.685 95.8172 121.718 100.017 123.138 104.5L123.161 104.571H123.236L123.236 104.571Z",fill:"#6C5493",stroke:"#6C5493",strokeWidth:"0.204964"}),(0,t.createElement)("path",{d:"M124.166 104.821L124.166 104.821C124.206 104.303 124.227 103.976 124.24 103.764C124.245 103.696 124.248 103.639 124.251 103.593C124.265 103.398 124.272 103.379 124.292 103.338C124.504 102.915 124.744 102.502 125.005 102.111L124.92 102.054L125.005 102.111C125.151 101.893 125.494 101.99 125.503 102.253C125.524 102.839 125.522 103.392 125.498 103.942L125.498 103.942L125.498 103.943C125.487 104.261 125.473 104.561 125.448 104.866L125.447 104.866C125.436 105.007 125.318 105.115 125.177 105.115H124.436C124.277 105.115 124.152 104.979 124.166 104.821Z",fill:"#6C5493",stroke:"#6C5493",strokeWidth:"0.204964"}),(0,t.createElement)("path",{d:"M120.058 117.774C118.757 117.343 117.553 116.402 116.754 115.194C115.89 113.911 116.006 112.572 115.894 111.101C115.79 109.632 115.899 108.761 115.924 108.297C115.122 108.052 114.555 107.305 114.555 106.426C114.555 105.363 115.409 104.469 116.494 104.469H131.712C133.445 104.469 134.294 106.583 133.084 107.807C132.875 108.02 132.626 108.178 132.353 108.275C132.364 109.503 132.135 110.986 131.939 112.489C131.729 114.191 131.494 115.26 130.119 116.354C127.816 118.21 123.647 118.972 120.058 117.774L120.058 117.774ZM116.494 105.218C116.177 105.218 115.879 105.343 115.654 105.571C114.949 106.283 115.365 107.524 116.368 107.626C116.576 107.646 116.728 107.836 116.702 108.046C116.602 108.81 116.561 109.926 116.64 111.047C116.748 112.454 116.628 113.667 117.377 114.778C118.087 115.852 119.149 116.684 120.293 117.063C123.691 118.198 127.583 117.435 129.651 115.769C131.11 114.607 131.031 113.51 131.353 111.198C131.466 110.344 131.652 108.924 131.595 108.011C131.584 107.819 131.719 107.65 131.908 107.619C132.15 107.579 132.373 107.462 132.552 107.281C133.301 106.521 132.772 105.218 131.712 105.218H116.494H116.494Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M124.981 108.049L116.269 109.31L116.344 108.008L124.981 108.049Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M123.732 103.798C123.6 103.798 123.49 103.696 123.483 103.563C123.306 100.538 121.989 97.5727 119.87 95.4291C119.773 95.3313 119.774 95.1731 119.872 95.0763C119.971 94.9794 120.128 94.9801 120.225 95.0783C122.428 97.3069 123.797 100.389 123.98 103.534C123.989 103.672 123.884 103.79 123.746 103.798C123.741 103.798 123.736 103.798 123.732 103.798Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M130.755 91.0743C128.328 91.3114 125.262 93.5166 124.268 96.5507C124.308 96.6306 124.342 96.7153 124.372 96.8003C124.895 98.6625 125.172 100.469 125.231 102.262C125.729 101.483 126.322 100.769 126.983 100.12C128.054 98.4979 129.466 97.1051 131.12 96.1115C132.288 95.4028 133.738 94.6175 133.766 93.2511C133.79 92.1062 132.64 90.8732 130.755 91.0743ZM130.203 94.7285C128.407 95.6896 126.877 97.2104 125.897 99.0113C125.829 99.1352 125.702 99.205 125.572 99.205C125.294 99.205 125.111 98.9015 125.248 98.6499C126.297 96.7228 127.934 95.0949 129.857 94.0662C130.038 93.9693 130.262 94.0398 130.358 94.2223C130.453 94.4051 130.384 94.632 130.203 94.7285Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M125.946 104.193L125.946 104.193C125.879 104.147 125.862 104.056 125.908 103.989C127.071 102.277 128.753 100.883 130.642 100.066C130.716 100.034 130.803 100.068 130.835 100.142C130.868 100.217 130.833 100.303 130.759 100.336C128.92 101.132 127.283 102.487 126.15 104.154L126.15 104.154C126.104 104.221 126.013 104.238 125.946 104.193Z",fill:"#6C5493",stroke:"#6C5493",strokeWidth:"0.204964"}),(0,t.createElement)("path",{d:"M122.26 102.906C120.369 101.054 117.787 99.9309 115.156 99.8757C114.331 99.8557 113.314 100.085 113.092 100.884C112.949 101.398 113.226 101.953 113.625 102.297C114.429 102.981 115.74 103.046 119.243 104.843H122.96C122.763 104.184 122.526 103.54 122.259 102.906L122.26 102.906ZM121.021 103.93C120.948 103.93 120.874 103.908 120.81 103.862C119.497 102.934 117.958 102.37 116.362 102.232C116.158 102.214 116.007 102.033 116.025 101.827C116.042 101.621 116.225 101.467 116.425 101.486C118.151 101.635 119.814 102.245 121.234 103.248C121.53 103.458 121.382 103.93 121.021 103.93Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M96.8208 51.5486C94.8027 51.5486 93.1606 49.8903 93.1606 47.8518C93.1606 45.8132 94.8027 44.1545 96.8208 44.1545C98.8388 44.1545 100.48 45.8132 100.48 47.8518C100.48 49.8903 98.8388 51.5486 96.8208 51.5486ZM96.8208 44.9033C95.2153 44.9033 93.9092 46.226 93.9092 47.8514C93.9092 49.4769 95.2156 50.7996 96.8208 50.7996C98.426 50.7996 99.732 49.4772 99.732 47.8514C99.732 46.2256 98.4263 44.9033 96.8208 44.9033Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M87.678 52.7925C84.6159 52.7925 82.9474 49.2246 84.7702 46.8531C85.465 45.9304 86.5257 45.399 87.678 45.399C89.6947 45.399 91.3351 47.0584 91.3351 49.098C91.3351 51.1376 89.6947 52.7925 87.678 52.7925ZM87.678 46.1478C86.7629 46.1478 85.9202 46.57 85.3655 47.3062C83.8998 49.2148 85.2599 52.0434 87.678 52.0434C89.2819 52.0434 90.5868 50.722 90.5868 49.098C90.5868 47.4739 89.2822 46.1478 87.678 46.1478Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M99.8039 48.8347C99.7687 48.6308 99.9057 48.4375 100.109 48.4026L106.35 47.3322C106.555 47.297 106.748 47.4341 106.783 47.638C106.818 47.8418 106.681 48.0352 106.477 48.0701L100.236 49.1405C100.033 49.175 99.839 49.0396 99.8039 48.8347Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M90.7437 49.2414C90.5765 49.1195 90.5396 48.8855 90.6614 48.7182C90.6838 48.6878 91.2158 47.9688 92.1143 47.8287C92.6985 47.7382 93.2866 47.9065 93.8643 48.3295C94.0309 48.4517 94.0671 48.6857 93.9452 48.8527C93.8231 49.0193 93.5892 49.0562 93.422 48.9336C93.0101 48.6322 92.6108 48.5103 92.2297 48.5686C91.6442 48.66 91.2699 49.1544 91.2666 49.1591C91.1451 49.3268 90.9105 49.363 90.7437 49.2414Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M131.824 108.276H116.515C116.308 108.276 116.141 108.108 116.141 107.902C116.141 107.695 116.308 107.527 116.515 107.527H131.824C132.03 107.527 132.198 107.695 132.198 107.902C132.198 108.108 132.03 108.276 131.824 108.276Z",fill:"#6C5493"}),(0,t.createElement)("path",{d:"M40.5098 53.8651L46.2969 46.297C47.0388 45.2583 48.5552 43.6916 49.413 45.4069C50.3033 47.1871 56.8324 58.1682 60.0969 63.6585L64.9937 73.452",stroke:"#6C5493",strokeLinecap:"round"}),(0,t.createElement)("path",{d:"M50.7412 86.6642C54.1869 86.8174 56.9809 89.7376 56.9811 93.1867C56.9811 96.636 54.187 99.3086 50.7412 99.1555C47.2954 99.0021 44.5022 96.0812 44.5022 92.6321C44.5024 89.1831 47.2956 86.5113 50.7412 86.6642ZM47.4963 95.9888L48.8543 96.0491C49.7097 94.3597 50.5648 92.6651 51.4202 90.9757L50.666 89.4314C49.6095 91.6155 48.5529 93.8047 47.4963 95.9888ZM50.7665 94.9251L50.7412 94.9748L52.025 95.0319C52.191 95.4269 52.3615 95.8173 52.5275 96.2124L53.987 96.2773C53.348 94.9394 52.7138 93.6014 52.0748 92.2636C51.6371 93.1506 51.2042 94.0381 50.7665 94.9251Z",fill:"white"}),(0,t.createElement)("defs",null,(0,t.createElement)("clipPath",{id:"clip0_2140_16278"},(0,t.createElement)("rect",{width:"18.4456",height:"17.2555",fill:"white",transform:"translate(0 74.5446) rotate(-13.1901)"}))));Pr.WooCommerce=(e="")=>(0,t.createElement)("svg",{className:e,width:"138",height:"120",viewBox:"0 0 138 120",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("rect",{width:"138",height:"120",fill:"url(#pattern0_16337_104016)"}),(0,t.createElement)("defs",null,(0,t.createElement)("pattern",{id:"pattern0_16337_104016",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},(0,t.createElement)("use",{xlinkHref:"#image0_16337_104016",transform:"matrix(0.000837731 0 0 0.000963391 0.0639608 0)"})),(0,t.createElement)("image",{id:"image0_16337_104016",width:"1041",height:"1038",preserveAspectRatio:"none",xlinkHref:Lr.upgradeToProWoo})));const Nr={AIFeaturedImage:()=>(0,t.createElement)("svg",{className:"w-full",viewBox:"0 0 384 138",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,t.createElement)("g",{clipPath:"url(#clip0_9521_94317)"},(0,t.createElement)("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H378C381.314 0 384 2.68629 384 6V132C384 135.314 381.314 138 378 138H6C2.68629 138 0 135.314 0 132V6Z",fill:"#F3F0FF"}),(0,t.createElement)("rect",{x:"-120",y:"-54",width:"615",height:"252",fill:"url(#pattern0_9521_94317)"})),(0,t.createElement)("defs",null,(0,t.createElement)("pattern",{id:"pattern0_9521_94317",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},(0,t.createElement)("use",{xlinkHref:"#image0_9521_94317",transform:"scale(0.000347102 0.000847093)"})),(0,t.createElement)("clipPath",{id:"clip0_9521_94317"},(0,t.createElement)("path",{d:"M0 6C0 2.68629 2.68629 0 6 0H378C381.314 0 384 2.68629 384 6V132C384 135.314 381.314 138 378 138H6C2.68629 138 0 135.314 0 132V6Z",fill:"white"})),(0,t.createElement)("image",{id:"image0_9521_94317",width:"2881",height:"1181",xlinkHref:Lr.aiFeaturedImage}))),UpgradeToPro:Pr};function Xr(){return Xr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Xr.apply(null,arguments)}var Tr=i().createContext(null),Sr=function(t){t()},zr=function(){return Sr},Or={notify:function(){},get:function(){return[]}};function Mr(t,e){var n,r=Or;function a(){s.onStateChange&&s.onStateChange()}function i(){n||(n=e?e.addNestedSub(a):t.subscribe(a),r=function(){var t=zr(),e=null,n=null;return{clear:function(){e=null,n=null},notify:function(){t(function(){for(var t=e;t;)t.callback(),t=t.next})},get:function(){for(var t=[],n=e;n;)t.push(n),n=n.next;return t},subscribe:function(t){var r=!0,a=n={callback:t,next:null,prev:n};return a.prev?a.prev.next=a:e=a,function(){r&&null!==e&&(r=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:e=a.next)}}}}())}var s={addNestedSub:function(t){return i(),r.subscribe(t)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=Or)},getListeners:function(){return r}};return s}var Wr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect;function jr(){return(0,n.useContext)(Tr)}function Fr(t){void 0===t&&(t=Tr);var e=t===Tr?jr:function(){return(0,n.useContext)(t)};return function(){return e().store}}a(4146),a(4737);var qr=Fr();function kr(t){void 0===t&&(t=Tr);var e=t===Tr?qr:Fr(t);return function(){return e().dispatch}}var Dr=kr(),Ir=function(t,e){return t===e};function Zr(t){void 0===t&&(t=Tr);var e=t===Tr?jr:function(){return(0,n.useContext)(t)};return function(t,r){void 0===r&&(r=Ir);var a=e(),i=function(t,e,r,a){var i,s=(0,n.useReducer)(function(t){return t+1},0),o=s[1],l=(0,n.useMemo)(function(){return Mr(r,a)},[r,a]),c=(0,n.useRef)(),u=(0,n.useRef)(),d=(0,n.useRef)(),f=(0,n.useRef)(),p=r.getState();try{if(t!==u.current||p!==d.current||c.current){var h=t(p);i=void 0!==f.current&&e(h,f.current)?f.current:h}else i=f.current}catch(t){throw c.current&&(t.message+="\nThe error may be correlated with this previous error:\n"+c.current.stack+"\n\n"),t}return Wr(function(){u.current=t,d.current=p,f.current=i,c.current=void 0}),Wr(function(){function t(){try{var t=r.getState();if(t===d.current)return;var n=u.current(t);if(e(n,f.current))return;f.current=n,d.current=t}catch(t){c.current=t}o()}return l.onStateChange=t,l.trySubscribe(),t(),function(){return l.tryUnsubscribe()}},[r,l]),i}(t,r,a.store,a.subscription);return(0,n.useDebugValue)(i),i}}var Hr,Br=Zr();Hr=o.unstable_batchedUpdates,Sr=Hr;const Gr=({className:e,isLink:n=!1,url:r=astra_admin.upgrade_url,children:a=cr(),disableSpinner:i=!1,spinnerPosition:s="left",Icon:o=Vt,target:l="_blank",rel:c="noreferrer",campaign:u=""})=>{const d=n&&{href:r,target:l,rel:c};return(0,t.createElement)(Ar,Xr({variant:n?"link":"primary",className:sr("inline-flex items-center",n?"gap-0 focus:ring-0 focus:ring-offset-0 focus:shadow-none focus:outline-none hover:no-underline [&>svg]:w-4 [&>svg]:h-4":"",e),onClick:t=>{or(t,{url:r,campaign:u,disableSpinner:i,spinnerPosition:s})},icon:o&&(0,t.createElement)(o,{size:16}),iconPosition:"right"},d),a)},Ur=({className:e="",id:n,icon:r,title:a,description:i,linkHRef:s,linkText:o,children:l})=>(0,t.createElement)("section",{"aria-labelledby":`section-${n}-title`},(0,t.createElement)("h2",{className:"sr-only",id:`section-${n}-title`},a),(0,t.createElement)("div",{className:sr("relative box-border rounded-md bg-white shadow-sm overflow-hidden transition hover:shadow-hover",e)},(0,t.createElement)("div",{className:"p-6"},r&&(0,t.createElement)("span",{className:"inline-block mb-2"},r),(0,t.createElement)("h3",{className:"relative flex items-center text-slate-800 text-base font-semibold pb-2"},(0,t.createElement)("span",{className:"flex-1"},a)),!l&&(0,t.createElement)("p",{className:"text-slate-500 text-sm pb-5"},i),l,o&&(0,t.createElement)("a",{className:"text-sm text-astra focus:text-astra focus-visible:text-astra-hover active:text-astra-hover hover:text-astra-hover no-underline",href:s,target:"_blank",rel:"noreferrer"},o)))),Yr=[(0,xt.__)("Advanced Design Controls","astra"),(0,xt.__)("Modern WooCommerce Stores","astra"),(0,xt.__)("Flexible Headers & Footers","astra"),(0,xt.__)("Typography & Color Freedom","astra"),(0,xt.__)("Premium Support & Updates","astra")],Kr=({className:e="",ProSvg:r=Nr.UpgradeToPro,title:a=(0,xt.__)("Upgrade to Astra Pro – More Power, More Control!","astra"),description:i=(0,xt.__)("Get premium addons, advanced customization, and powerful features to create a website that truly stands out.","astra"),items:s=Yr,columnView:o=!1,campaign:l="sidebar-cta"})=>{const c=({className:e=""})=>(0,t.createElement)(Ye.Item,{className:e},(0,t.createElement)(Ar,{className:"hover:bg-button-primary hover:bg-link-primary-hover",variant:"primary",onClick:t=>or(t,{campaign:l})},cr()));return(0,t.createElement)(pr,{className:sr("p-6 gap-6",e)},(0,t.createElement)("div",{className:o?"mr-0 xl:mr-0":""},(0,t.createElement)(Ye,{className:sr("flex flex-col",o?"py-1 px-2":""),gap:o?"sm":"lg"},(0,t.createElement)(Ye.Item,{className:sr("flex flex-col gap-1 items-center",o?"":"mt-3 px-6")},!o&&(0,t.createElement)(r,null),(0,t.createElement)("div",{className:sr("flex flex-col gap-1",o?"":"text-center")},(0,t.createElement)(en,{size:18,as:"h5"},a),(0,t.createElement)(en,{color:"secondary"},i))),!o&&(0,t.createElement)(c,{className:"m-auto",Icon:!1}),(0,t.createElement)(Ye.Item,{className:sr(o?"grid grid-cols-2 gap-x-3 gap-y-4":"mt-3 flex flex-col gap-2.5")},s.map((e,r)=>(0,t.createElement)(n.Fragment,{key:r},(0,t.createElement)("div",{className:"flex items-center gap-1"},(0,t.createElement)(Vr,{size:16,className:"text-background-brand"}),(0,t.createElement)(en,{size:12,as:"span"},e)),!o&&r!==s.length-1&&(0,t.createElement)("div",{className:"border-0.5 border-solid border-border-subtle"})))),o&&(0,t.createElement)(c,{className:"mt-4"}))),o&&(0,t.createElement)("div",{className:"p-2 w-full max-w-[200px] xl:max-w-[280px]"},(0,t.createElement)(Nr.UpgradeToPro,{className:"w-full h-auto"})))},Jr=t=>{switch(t){case"activated":return"";case"configure":return"astra_recommended_plugin_configure";case"installed":return"astra_recommended_plugin_activate";case"visit":return"astra_recommended_plugin_visit"}return"astra_recommended_plugin_install"},Qr=t=>{t.preventDefault(),t.stopPropagation();const e=t.target.closest("a, button"),n=window.astra_admin,r=e.dataset.action,a="button"===e.dataset?.type;switch(r){case"astra_recommended_plugin_configure":e.innerHTML=ir.sanitize((a?ur():"")+n.plugin_configuring_text),window.location=e.dataset.redirection;break;case"astra_recommended_plugin_visit":window.open(e.dataset.redirection,"_blank");break;case"astra_recommended_plugin_activate":_r(e);break;case"astra_recommended_plugin_install":const t=new window.FormData;t.append("action","astra_recommended_plugin_install"),t.append("_ajax_nonce",n.plugin_installer_nonce),t.append("slug",e.dataset.slug),e.innerHTML=ir.sanitize((a?ur():"")+n.plugin_installing_text),rn()({url:n.ajax_url,method:"POST",body:t}).then(t=>{t.success&&(e.innerText=n.plugin_installed_text,_r(e))}).catch(t=>{console.error("Error during plugin installation:",t)})}},_r=t=>{const e=window.astra_admin,n=new window.FormData;n.append("action","astra_recommended_plugin_activate"),n.append("security",e.plugin_manager_nonce),n.append("init",t.dataset.init);const r="button"===t.dataset?.type;t.innerHTML=ir.sanitize((r?ur():"")+e.plugin_activating_text),rn()({url:e.ajax_url,method:"POST",body:n}).then(n=>{n.success&&(t.classList.remove("text-button-primary"),t.classList.add("text-support-success"),t.innerText=e.plugin_activated_text,window.location=t.dataset.redirection)}).catch(t=>{console.error("Error during plugin activation:",t)})},$r={close:(0,t.createElement)("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none"},(0,t.createElement)("path",{d:"M5 15L15 5M5 5L15 15",stroke:"#9CA3AF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),search:(0,t.createElement)("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none"},(0,t.createElement)("path",{d:"M17.5 17.5L12.5 12.5M14.1667 8.33333C14.1667 11.555 11.555 14.1667 8.33333 14.1667C5.11167 14.1667 2.5 11.555 2.5 8.33333C2.5 5.11167 5.11167 2.5 8.33333 2.5C11.555 2.5 14.1667 5.11167 14.1667 8.33333Z",stroke:"#9CA3AF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),popupclose:(0,t.createElement)("svg",{width:44,height:44,viewBox:"0 0 44 44",fill:"none"},(0,t.createElement)("path",{d:"M16 28L28 16M16 16L28 28",stroke:"#334155",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),support:(0,t.createElement)("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none"},(0,t.createElement)("path",{d:"M27 16C27 22.0751 22.0751 27 16 27V29C23.1797 29 29 23.1797 29 16H27ZM16 27C9.92487 27 5 22.0751 5 16H3C3 23.1797 8.8203 29 16 29V27ZM5 16C5 9.92487 9.92487 5 16 5V3C8.8203 3 3 8.8203 3 16H5ZM16 5C22.0751 5 27 9.92487 27 16H29C29 8.8203 23.1797 3 16 3V5ZM20.3333 16C20.3333 18.3932 18.3932 20.3333 16 20.3333V22.3333C19.4978 22.3333 22.3333 19.4978 22.3333 16H20.3333ZM16 20.3333C13.6068 20.3333 11.6667 18.3932 11.6667 16H9.66667C9.66667 19.4978 12.5022 22.3333 16 22.3333V20.3333ZM11.6667 16C11.6667 13.6068 13.6068 11.6667 16 11.6667V9.66667C12.5022 9.66667 9.66667 12.5022 9.66667 16H11.6667ZM16 11.6667C18.3932 11.6667 20.3333 13.6068 20.3333 16H22.3333C22.3333 12.5022 19.4978 9.66667 16 9.66667V11.6667ZM23.7782 6.80761L19.0641 11.5217L20.4783 12.9359L25.1924 8.22183L23.7782 6.80761ZM19.0641 20.4783L23.7782 25.1924L25.1924 23.7782L20.4783 19.0641L19.0641 20.4783ZM12.9359 11.5217L8.22183 6.80761L6.80761 8.22183L11.5217 12.9359L12.9359 11.5217ZM11.5217 19.0641L6.80761 23.7782L8.22183 25.1924L12.9359 20.4783L11.5217 19.0641Z",fill:"#4B5563"})),book:(0,t.createElement)("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none"},(0,t.createElement)("path",{d:"M16 8.33639V25.6697M16 8.33639C14.4428 7.30183 12.3287 6.66602 10 6.66602C7.67134 6.66602 5.55719 7.30183 4 8.33639V25.6697C5.55719 24.6352 7.67134 23.9993 10 23.9993C12.3287 23.9993 14.4428 24.6352 16 25.6697M16 8.33639C17.5572 7.30183 19.6713 6.66602 22 6.66602C24.3287 6.66602 26.4428 7.30183 28 8.33639V25.6697C26.4428 24.6352 24.3287 23.9993 22 23.9993C19.6713 23.9993 17.5572 24.6352 16 25.6697",stroke:"#4B5563",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),checkbadge:(0,t.createElement)("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none"},(0,t.createElement)("path",{d:"M17.9993 23.9993L21.9993 27.9993L29.9993 19.9993M15.6687 9.39336C17.1038 9.27884 18.4662 8.71453 19.5619 7.78076C22.1189 5.60172 25.8797 5.60172 28.4366 7.78076C29.5324 8.71453 30.8947 9.27884 32.3298 9.39336C35.6787 9.6606 38.3379 12.3199 38.6052 15.6687C38.7197 17.1038 39.284 18.4662 40.2178 19.5619C42.3968 22.1189 42.3968 25.8797 40.2178 28.4366C39.284 29.5324 38.7197 30.8947 38.6052 32.3298C38.3379 35.6787 35.6787 38.3379 32.3298 38.6052C30.8947 38.7197 29.5324 39.284 28.4366 40.2178C25.8797 42.3968 22.1189 42.3968 19.5619 40.2178C18.4662 39.284 17.1038 38.7197 15.6687 38.6052C12.3199 38.3379 9.6606 35.6787 9.39336 32.3298C9.27884 30.8947 8.71453 29.5324 7.78076 28.4366C5.60172 25.8797 5.60172 22.1189 7.78076 19.5619C8.71453 18.4662 9.27884 17.1038 9.39336 15.6687C9.6606 12.3199 12.3199 9.6606 15.6687 9.39336Z",stroke:"#007ABD",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),spectraBackgroundLogo:(0,t.createElement)("svg",{width:629,height:807,viewBox:"0 0 629 807",fill:"none"},(0,t.createElement)("path",{d:"M155.35 384.598C22.04 384.731 -50.5339 218.96 41.6946 124.989L370.474 -210.002L405.115 4.20929L235.903 176.068C222.848 189.37 232.348 212.283 250.911 212.265L473.541 212.041C606.852 211.907 679.425 377.679 587.197 471.65L258.418 806.641L223.777 592.429L392.988 420.571C406.044 407.269 396.544 384.356 377.981 384.374L155.35 384.598Z",fill:"url(#paint0_linear_3240_66110)",fillOpacity:.48,fillRule:"evenodd",clipRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.createElement)("linearGradient",{id:"paint0_linear_3240_66110",x1:"240.999",y1:"-289",x2:"252.522",y2:"770.375",gradientUnits:"userSpaceOnUse"},(0,t.createElement)("stop",{stopColor:"#F4E3CC"}),(0,t.createElement)("stop",{offset:"1",stopColor:"#F4E3CC",stopOpacity:"0"}))),redirect:(0,t.createElement)("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none"},(0,t.createElement)("path",{d:"M8.33301 4.9987H4.99967C4.0792 4.9987 3.33301 5.74489 3.33301 6.66536V14.9987C3.33301 15.9192 4.0792 16.6654 4.99967 16.6654H13.333C14.2535 16.6654 14.9997 15.9192 14.9997 14.9987V11.6654M11.6663 3.33203H16.6663M16.6663 3.33203V8.33203M16.6663 3.33203L8.33301 11.6654",stroke:"currentColor",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round"})),download:(0,t.createElement)("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none"},(0,t.createElement)("path",{d:"M3.8335 13.3346L3.8335 14.168C3.8335 15.5487 4.95278 16.668 6.3335 16.668L14.6668 16.668C16.0475 16.668 17.1668 15.5487 17.1668 14.168L17.1668 13.3346M13.8335 10.0013L10.5002 13.3346M10.5002 13.3346L7.16683 10.0013M10.5002 13.3346L10.5002 3.33464",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),superfast:(0,t.createElement)("svg",{width:21,height:21,viewBox:"0 0 21 21",fill:"none"},(0,t.createElement)("path",{d:"M13 10V3L4 14H11L11 21L20 10L13 10Z",stroke:"#334155",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.createElement)("circle",{cx:8,cy:8,r:8,fill:"#5733FF",fillOpacity:"0.24"})),secure:(0,t.createElement)("svg",{width:22,height:22,viewBox:"0 0 22 22",fill:"none"},(0,t.createElement)("path",{d:"M9 12.001L11 14.001L15 10.001M20.6179 5.98531C20.4132 5.99569 20.2072 6.00095 20 6.00095C16.9265 6.00095 14.123 4.84551 11.9999 2.94531C9.87691 4.84544 7.07339 6.00083 4 6.00083C3.79277 6.00083 3.58678 5.99557 3.38213 5.98519C3.1327 6.94881 3 7.9594 3 9.00099C3 14.5925 6.82432 19.2908 12 20.6229C17.1757 19.2908 21 14.5925 21 9.00099C21 7.95944 20.8673 6.94889 20.6179 5.98531Z",stroke:"#334155",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.createElement)("circle",{cx:8.33,cy:8,r:8,fill:"#5733FF",fillOpacity:"0.24"})),nativewp:(0,t.createElement)("svg",{width:23,height:21,viewBox:"0 0 23 21",fill:"none"},(0,t.createElement)("path",{d:"M12 5H7C5.89543 5 5 5.89543 5 7V18C5 19.1046 5.89543 20 7 20H18C19.1046 20 20 19.1046 20 18V13M18.5858 3.58579C19.3668 2.80474 20.6332 2.80474 21.4142 3.58579C22.1953 4.36683 22.1953 5.63316 21.4142 6.41421L12.8284 15H10L10 12.1716L18.5858 3.58579Z",stroke:"#334155",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.createElement)("circle",{cx:8.66,cy:8,r:8,fill:"#5733FF",fillOpacity:"0.24"})),googlelove:(0,t.createElement)("svg",{width:22,height:22,viewBox:"0 0 22 22",fill:"none"},(0,t.createElement)("path",{d:"M4 4V3H3V4H4ZM20 4H21V3H20V4ZM6.29289 11.2929C5.90237 11.6834 5.90237 12.3166 6.29289 12.7071C6.68342 13.0976 7.31658 13.0976 7.70711 12.7071L6.29289 11.2929ZM10 9L10.7071 8.29289C10.3166 7.90237 9.68342 7.90237 9.29289 8.29289L10 9ZM13 12L12.2929 12.7071C12.6834 13.0976 13.3166 13.0976 13.7071 12.7071L13 12ZM17.7071 8.70711C18.0976 8.31658 18.0976 7.68342 17.7071 7.29289C17.3166 6.90237 16.6834 6.90237 16.2929 7.29289L17.7071 8.70711ZM7.29289 20.2929C6.90237 20.6834 6.90237 21.3166 7.29289 21.7071C7.68342 22.0976 8.31658 22.0976 8.70711 21.7071L7.29289 20.2929ZM12 17L12.7071 16.2929C12.3166 15.9024 11.6834 15.9024 11.2929 16.2929L12 17ZM15.2929 21.7071C15.6834 22.0976 16.3166 22.0976 16.7071 21.7071C17.0976 21.3166 17.0976 20.6834 16.7071 20.2929L15.2929 21.7071ZM3 3C2.44772 3 2 3.44772 2 4C2 4.55228 2.44772 5 3 5V3ZM21 5C21.5523 5 22 4.55228 22 4C22 3.44772 21.5523 3 21 3V5ZM4 5H20V3H4V5ZM19 4V16H21V4H19ZM19 16H5V18H19V16ZM5 16V4H3V16H5ZM5 16H3C3 17.1046 3.89543 18 5 18V16ZM19 16V18C20.1046 18 21 17.1046 21 16H19ZM7.70711 12.7071L10.7071 9.70711L9.29289 8.29289L6.29289 11.2929L7.70711 12.7071ZM9.29289 9.70711L12.2929 12.7071L13.7071 11.2929L10.7071 8.29289L9.29289 9.70711ZM13.7071 12.7071L17.7071 8.70711L16.2929 7.29289L12.2929 11.2929L13.7071 12.7071ZM8.70711 21.7071L12.7071 17.7071L11.2929 16.2929L7.29289 20.2929L8.70711 21.7071ZM11.2929 17.7071L15.2929 21.7071L16.7071 20.2929L12.7071 16.2929L11.2929 17.7071ZM3 5H21V3H3V5Z",fill:"#334155"}),(0,t.createElement)("circle",{cx:8,cy:8,r:8,fill:"#5733FF",fillOpacity:"0.24"})),zerobloat:(0,t.createElement)("svg",{width:21,height:22,viewBox:"0 0 21 22",fill:"none"},(0,t.createElement)("path",{d:"M12 3L12.4472 2.10557C12.1657 1.96481 11.8343 1.96481 11.5528 2.10557L12 3ZM20 7H21C21 6.62123 20.786 6.27496 20.4472 6.10557L20 7ZM4 7L3.55279 6.10557C3.214 6.27496 3 6.62123 3 7H4ZM20 17L20.4472 17.8944C20.786 17.725 21 17.3788 21 17H20ZM12 21L11.5528 21.8944C11.8343 22.0352 12.1657 22.0352 12.4472 21.8944L12 21ZM4 17H3C3 17.3788 3.214 17.725 3.55279 17.8944L4 17ZM11.5528 3.89443L19.5528 7.89443L20.4472 6.10557L12.4472 2.10557L11.5528 3.89443ZM19.5528 6.10557L11.5528 10.1056L12.4472 11.8944L20.4472 7.89443L19.5528 6.10557ZM12.4472 10.1056L4.44721 6.10557L3.55279 7.89443L11.5528 11.8944L12.4472 10.1056ZM4.44721 7.89443L12.4472 3.89443L11.5528 2.10557L3.55279 6.10557L4.44721 7.89443ZM19.5528 16.1056L11.5528 20.1056L12.4472 21.8944L20.4472 17.8944L19.5528 16.1056ZM12.4472 20.1056L4.44721 16.1056L3.55279 17.8944L11.5528 21.8944L12.4472 20.1056ZM5 17V7H3V17H5ZM21 17V7H19V17H21ZM11 11V21H13V11H11Z",fill:"#334155"}),(0,t.createElement)("circle",{cx:8.33,cy:8,r:8,fill:"#5733FF",fillOpacity:"0.24"})),compiler:(0,t.createElement)("svg",{width:23,height:22,viewBox:"0 0 23 22",fill:"none"},(0,t.createElement)("path",{d:"M13 8V12L16 15M22 12C22 16.9706 17.9706 21 13 21C8.02944 21 4 16.9706 4 12C4 7.02944 8.02944 3 13 3C17.9706 3 22 7.02944 22 12Z",stroke:"#334155",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.createElement)("circle",{cx:8.66,cy:8,r:8,fill:"#5733FF",fillOpacity:"0.24"})),check:(0,t.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none"},(0,t.createElement)("path",{d:"M18.3602 6.35938L10.2002 14.5194L6.84016 11.1594L5.16016 12.8394L10.2002 17.8794L20.0402 8.03937L18.3602 6.35938Z",fill:"#22C55E"})),xclose:(0,t.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none"},(0,t.createElement)("path",{d:"M17.9396 7.75255L13.6916 12.0005L17.9396 16.2485L16.2476 17.9405L11.9996 13.7045L7.76357 17.9405L6.05957 16.2365L10.2956 12.0005L6.05957 7.76455L7.76357 6.06055L11.9996 10.2965L16.2476 6.06055L17.9396 7.75255Z",fill:"#F87171"})),"heart-logo":(0,t.createElement)("svg",{width:30,height:30,viewBox:"0 0 122.88 107.39",fill:"none",className:"inline-block"},(0,t.createElement)("path",{d:"M60.83,17.18c8-8.35,13.62-15.57,26-17C110-2.46,131.27,21.26,119.57,44.61c-3.33,6.65-10.11,14.56-17.61,22.32-8.23,8.52-17.34,16.87-23.72,23.2l-17.4,17.26L46.46,93.55C29.16,76.89,1,55.92,0,29.94-.63,11.74,13.73.08,30.25.29c14.76.2,21,7.54,30.58,16.89Z",fill:"#1e293b",fillRule:"evenodd"})),"astra-logo":(0,t.createElement)("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none"},(0,t.createElement)("rect",{width:40,height:40,fill:"url(#paint0_linear_2971_69719)",rx:"19.9999"}),(0,t.createElement)("path",{id:"pattern0",fillRule:"evenodd",clipRule:"evenodd",fill:"white",d:"M21.4952 11.3394C20.9235 10.2236 20.3519 9.1077 19.7647 8C18.8281 9.91771 17.8915 11.8354 16.9549 13.7532C14.6364 18.5003 12.3178 23.2475 10 27.9951C10.5404 27.9966 11.0808 27.9959 11.6214 27.9952C12.475 27.9941 13.3286 27.993 14.182 28.0003C15.6282 25.1883 17.0646 22.3713 18.501 19.5543C19.698 17.2067 20.8951 14.8591 22.0979 12.5143C21.8965 12.1229 21.6959 11.7312 21.4952 11.3394ZM27.9861 23.9851C26.6931 21.4095 25.4001 18.8341 24.1035 16.2602C22.7358 19.0199 21.3667 21.7797 19.9945 24.5372C20.5591 24.5368 21.1236 24.5369 21.6881 24.537C22.4409 24.5371 23.1936 24.5373 23.9466 24.5364C24.1569 24.9967 24.3625 25.4589 24.568 25.9212C24.8774 26.6167 25.1867 27.3123 25.5118 28.0008C26.4201 27.9926 27.3285 27.9938 28.2368 27.995C28.8245 27.9958 29.4121 27.9966 29.9998 27.9948C29.3282 26.6584 28.6572 25.3217 27.9861 23.9851Z"}),(0,t.createElement)("linearGradient",{id:"paint0_linear_2971_69719",x1:"39.9998",y1:"-1.19212e-06",x2:"-0.0009992",y2:"39.9998",gradientUnits:"userSpaceOnUse"},(0,t.createElement)("stop",{stopColor:"#E976FD"}),(0,t.createElement)("stop",{offset:"1",stopColor:"#583EDE"}))),"starter-canvas":(0,t.createElement)("svg",{viewBox:"0 0 1916 872",fill:"none",x:"0px",y:"0px",enableBackground:"new 0 0 1916 872"},(0,t.createElement)("image",{href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB3wAAANoCAMAAAAcVGsfAAAABGdBTUEAALGPC/xhBQAAACBjSFJN\n\t\t\tAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAADAFBMVEXt7u/q6uvm5ufFx8rO\n\t\t\tz9Hw8PLV1tfy8vT19ff29vj39/l6iYxeXm10dYK4wcP19vvj4+FygYVkYXKytba+wsNnanlscYCI\n\t\t\tkJSXnJ+orLCDjZHc3d4eKjaMk5ckM0BLTlrl6OyfoZ9TVGFFS1GbqamSl5olOkiwv780PEyEhok6\n\t\t\tRFXQ1ttYWGfc5eU/SV31+fjf6Ojx9fT////09vX//v/+///9/f3n7fD+/Pf5/v799O4+RUdcYWD1\n\t\t\t04+UxczXlV5ip7zmvYRSkqPw/Pr36cWdaV1KUWfB3ea/lltkenz86t212eK6gWf24aq/1M2Ed2pJ\n\t\t\tc3rSroyFgnlxm6HY6O65sKSTsrTq0rTmxaCUjYKlz9bX49CimYxbX3XRuKCHucHCmHbB09bYzcKp\n\t\t\tvL3O4upVWnFbb22Mo6DR3d7TpXjksmKihGNsbGZPVWx8aFdPZWa4po7/wQebuLmXtraiursyMjI3\n\t\t\tODgpLS8lKCobJycgISMZHB4qOTY0Pz9FTGKqqKFYNyxPKRtDIBI7GQ4xEgpQOBNtOx93ZTxnX1Vr\n\t\t\tVT1uSzJkURRYQx82LSILBwUMDQ0CAgJnVk4mDAcZCgYnGRE+NygXFhIoKB8OFRikubBePzRfDwlt\n\t\t\tHxBfTCpGJhxCPT1XU1ZRMCVANw8OHiEtQ09xWiZKRkdzd3LQN13rDFP+AVExLQtPSA4rMyWjOg7I\n\t\t\tuTTwmxmHeBGpnhvfexRqcSPQXg0OXgxMBxC6ShDt9fJ+UUUQJShRQzO90stSTVD8zAm3bSH6v8/O\n\t\t\tETXtkKXbc21fRj2OIw+0ycDX4eFjTUZIPirBu7H3+fVzYw25zsUUM0Lj2M7Qw7bq5eDw9Op2eE5R\n\t\t\tTjsNLTGzzJ/A1LB0mk+DjWOJq2iZtnynwo6FnYpcflTM3MFJWltJYkWgs5qBfTV+p645TTEZNjId\n\t\t\tYGpYXSyMZEQER1KCZyaTdkqmnHGQTiOWdiuhhC2zfkiZi0r+2jf1ukPPjjiyIyGzUTfIakvYVjDj\n\t\t\tfj3zlHXtoj71x2wng5Gk69RSAAAAAWJLR0QyQNJMyAAAAAd0SU1FB+YKDgQPO5c8YJoAAIAASURB\n\t\t\tVHja7P2LY1v3deeLkgKfEEiLBF8gQYAC+IC2IMiiKNoqdDo94wYdd5qmk+PRnUzCO+OwsD33GMlE\n\t\t\tEgASIGBJlBRLlgBahEBKtkTJoqmkjqdJm8ZVrai30/E4dnzkNKqbxk7sPM7tvefef+KutX6//cKD\n\t\t\tIkUaksz1pYjnxsYGSOHD7/qtR1VVVTVqE//jf/yP//E//sf/PuV/FksNqqq2qkryl8VisVgs1qeq\n\t\t\tmhoJ31rELyGYxWKxWCzWpylCb11dVX19fS2LxWKxWKwKSBjfuqqGhvqGehaLxWKxWJ++wPWiAL5A\n\t\t\tXxaLxWKxWJ++6mroq6oRda8PhsVisVisjaA66XwbWSwWi8ViVUQafK3We30oLBaLxWJtENXV1Uj4\n\t\t\tslgsFovFqoh058tisVgsFqsiYviyWCwWi1VhMXxZLBaLxaqwGL4sFovFYlVYDF8Wi8VisSoshi+L\n\t\t\txWKxWBUWw5fFYrFYrAqL4ctisVgsVoXF8GWxWCwWq8Ji+LJYLBaLVWExfFksFovFqrAYviwWi8Vi\n\t\t\tVVgMXxaLxWKxKiyGL4vFYrFYFRbDl8VisViseyOGL4vFYrFYFRbDl8VisVisCovhy2KxWCxWhcXw\n\t\t\tZbFYLBarwmL4slgsFotVYTF8WSwWi8WqsBi+LBaLxWJVWAxfFovFYrEqLIYvi8VisVgVFsOXxWKx\n\t\t\tWKwKi+HLYrFYLFaFxfBlsVgsFqvCYviyWCwWi1VhMXxZLBaLxaqwGL4sFovFYlVYDF8Wi8VisSos\n\t\t\thi+Ltb5qsGy22ZqaGz6VnT+0paXV/unsunJqa++oWX6L6k5bV+2q9tlQ/aC/K6wNJoYv635WdYvN\n\t\t\t1qp+UDtsNluzvGyBy9211i6brb3nXh+kWVXdTlRv4+ofWtsJ1K5efpMWp9PVdq9f41pegdVa53Y6\n\t\t\tbVvgh9tks3WaEVsDP9Yuq7WxF95Bx8qftm+rBx7g7b3PfhVYrGXE8GXdz2ro1j+FkTvObulvuuBy\n\t\t\tv9UKH9Luujvto7qvr8AW0U13QceVqJ/Y67wbQOIrtPUtu0l1K+zbXvpV3QdawSuwNta44KcGnOyz\n\t\t\tOZ0tZvha8M8W+aMeWOmTNjZ7xXvuHHTcd+8Ii1VGDF/Wfa0hHbg96G5aha2q6nA6fTUrgy9+xhcA\n\t\t\tAb1Xy+rCmitVdTtY0wFL26a7eOwK0NVoH3S2byr9qu4DrQS+1qptQNaG5eBrtXidnjv9XDXVKE5V\n\t\t\tLvu9fgdYrBWK4cu6r4XEtQmQ4QezU6kx3XyX8N3+qcH3oZ417HpFvrG6p77Mq7oPtCL4PtSwZUuD\n\t\t\tfAlNpeFrrapb8XtINnnbloYtwHRn+51i3izWfSKGL+u+Fn6ySuB2kbcRMWiLNMRrcL5Nn47zxV33\n\t\t\truHFrhSoDzB8QQ+pL6GM812N8M+dJvwgU8MhLNaDIIYv6/5Wv1zjpI9W0GbyfQjiIasK31pLV1ez\n\t\t\tIc5bZekf6LeI3+1NliFwyZ4hi0X7Xe+xOBTwSG0WS319jUW7owou1tTDvRbLJmtDTb9pl7RPR12J\n\t\t\tJcX6Ggc8WbVx1036Tq2N2jM04CU6+lp8pobi3Up0Vbd19Vt0KDX0NHcNOGrqxbXttLuiV1Xu8Bo3\n\t\t\t4YPVO/Al9uDbtbVPvRNepWnxu8Q7ou7Gru1/u7bNJrhk+OunxCuo0rZokLuuly/fCF94RBc8QoWv\n\t\t\t+CGI8yr8YQwMGX4YcmO5Z4v2Jxn+rlg+5d9HFmudxPBl3d+q8clFX7SUbhmDrmqSjpfga/FQso1a\n\t\t\tm1LdPSiyb7qRiBZ1OVB3yA71JlsfptWqycO4vNzVSPdaelppBbFb/f9R1SX26S4s86l3eA1Ppu/a\n\t\t\t/Gz0DBgqFyYeXxNlQxfsltC1yU579MpnaqxpFXv0imQi8edGwasqe3g17U7jHfgeOnps8mE94s8Z\n\t\t\tZ7vRLZZ4R/Qt/W0C1HrAocCqlngFeigA78SHqdDVw8614vhtderuHBKjDnxEDf18Xb3y5ys39tQV\n\t\t\tBhkoR5rhy3pAxPBl3d/aZJNZVm3weWtXRFwROdaBv7tIAbua69pFH/ab2rX0G8xMWh6+OgcpsRp3\n\t\t\tjvfa1X20SH+n73PAhLeqFu0OW4+1FHwb6xSZuGtxqRZN5XHhbglddpk+5HLQYdm1bCIXvb5S8C13\n\t\t\teI0WxXwH4qq/Qz7Mor5vTsVArMbid8Sq78a11fAXAL2oEvA1v4Ll4UvOV3sXW+0l4DvkMb02bWN/\n\t\t\tWwF8d/jhV4SrjVgPiBi+rPtbSAD0i2hrWra0U4ERcawL74UbfW6nZ3MrmqEA8qB2M4LQbrHbhG3r\n\t\t\tGej1YgnoQJcWt6wZ6AbAeHoH+qsoOVkk6WzxC6Dj577H6e7stWlAp897m6NtwF2QT9swgOjaZh/w\n\t\t\tyFwfC+3aNmB4NnwG+kOhS42a18Mh+reU2C0tcLudrQPdXhWJW+AoBnstNQ7VNgvumV5V2cPDv1Fc\n\t\t\tm9ssXV5JUQShx+V02/x11jq8s6W5uWXQjKzid6SO0sy7HE0udf/LwrfgFZSGb5PB+TZSdZatt9OD\n\t\t\toY1C+MLP193Sjjyn12/Y2OYzPfemDqdeisZi3e9i+LLucw2J5V1kQj8RuJY45iK3hoFGHzaTojhx\n\t\t\tvzRu1LkBfRBZ5qLUpIcMpUaNXWqSDgIdfSmZVwxxNjhcEkt2uDCAa5/VTaI9hFQjFrlQSQzxj1xt\n\t\t\tccJVr6hqxVC5iJqjmUcIF+2W8naV5ka5P9wG4daPBhITtNGQqtwzvKqyh4evDfdmbXMJ940H57TV\n\t\t\t4E312+CpKIpcAzd2NpgfZXxHcEtynY1titz/svAteAV3dr74B4YLg+r1A85i+Iq78M8u+nurx1+0\n\t\t\tMamBin3b76bCi8W6F2L4su5z1Qnq1FDEuY08I36K+wkyvSqbiC8ULa3fVEO+rbEEpoz7lKk+COsu\n\t\t\tubkXN3c4VeendvhAbMoSlhqvSPQSaujU1kdxj7RNMXzbRJCZypQJa4jskrsldNEiK7lOPHoKgtNz\n\t\t\t9fTVyldc8KrKHh7ctUPkdW2SmKN1c0HNOq/6VOgljda38B3BLTvEGzLgNOa5oUrB1/wK7ux8h5xq\n\t\t\tHl11Rwn4CjOLR9UiN95m3pheBP6l5GzhQiPWAyOGL+s+F2Y5A1uGyDUCwcDy4ud6t7r4KFxacX2t\n\t\t\tlpRVps5Xlhrh7jG2is6aHu8QFhqF1g+eB3ctb8Gt9M5L2G5KFiFjKFlRI7sm+D6E1B0gBm/uJOo6\n\t\t\txKbFuzXUVT3UJZCN3aBsNYZYahF8G8senvn1qvAVmGu0a0+FXHMZVn0L3hHcUm0ypma/LR92Nr+C\n\t\t\tOzvfXqfWEMxRAr7irwkMZJTZmF4h/IWgPPBNr1kbSQxf1v2uLvzIRhcKxhY/v7sIiuIjWaeAoWND\n\t\t\tfZ19oMU/6FyR88WPcPR3yBW7vK6mzCI2YTN8OrdNyGdEvHE3aplLsfPFYwaYwctwIIDr8aXQ+nDR\n\t\t\tbkWusHjUkEBeNeVSKe39aqlRsfMte3io6hrHQDt57qZa08GBiXX5xYP8LvnSrSXfkV6nxuYtOgGX\n\t\t\ty3Y2vYI7Ol/1ZvW1FMLXYvz5ltpYvv0yQ43FejDE8GXd7yLUYuAUDU8/gqxf+wA2w5e4Uz2gp/gu\n\t\t\t53wlpBrRMzloxyL2aoAvPhIwqaUWywzoWuNu1E9/h/SHJZps4OH2gJ9UaoDm/i34UjBAXrxbY4sK\n\t\t\tvJeWadVc38HuTcZXbIBvucOzNtZ1uEy3Gw6u1/wowxSDwnfE0MhEfdLl4Wt+BXd0vkZgqxuXhm+Z\n\t\t\tja1ihYCbW7EeKDF8Wfe70G711iiCBHhe1yLzh0s5X1l24253bF7e+aodrvDjfHM9xlpFQLYAvk1V\n\t\t\tRBHVWtqMg3jqCuBrt5aEL1rIth430AGey2XBJV/8O6J4t4XoomBylcMmAemps5aDb8nDkyVCLn+L\n\t\t\tw1/kfHt154syrhQXvCMF8MUkthXDt3+Fzlddc14evqrzLdhYO+R7/ZvKYq1CDF/W/S5cTm3vUn0t\n\t\t\tsBVR0iXuK3K+mKvr7NjesHzClam3sx0/+/GDXCwlak0xtLCyyPrdKb8MkmFpUlfZsDOlOw20kd0F\n\t\t\tN9nvkKwp3q0BQ8aVVmt9naNjUGYllQ47lzw8fK8Gu7CBleo1zWFn3M/OokcVvSNdzsI4/PLwLXgF\n\t\t\td3S+2nK5YXdlna9aeVbw3PWOgYFmK4v1AInhy7rvBZ/igz7pAxGpiktbhCxyvnrq752ynbXezkiU\n\t\t\tIYdWpIOf97Lyxi4Cp7hByfG8SDeJGkrv6rGWhC8mRXdsFvlTPmdTiyR28W4Nw3qRSMYsKDEEd1Mp\n\t\t\t+JY9PHyIyDzeZCtyvkMF+zfK/I4MObW/ddSSJS3PzWovhm/BK9CTvPDtKpXt3KX9nUF/Oi3rfGlt\n\t\t\tXeS349tq7nC1zr93LNanKYYv674X+lTt076NIrB+Wc1a5Hz1fsGbWlfofJES21o04jrUtWJRy9Im\n\t\t\tNpCM3dLU69BbGRMrZKWTT3b3LwHfh+CYXT7axSYRQu5Xn9e8WyrUob1Q0RC8SHB0LaJ+BumOr7oY\n\t\t\tvmUPT296bPEVOV8ErCjZsbY1DdhN9bHmdwS3FO83HoNLrrw7e/FOCvIXlhqZXgGlKdMRUzVQqWxn\n\t\t\ttO6tdAC47fLOl2L4FH8X7bvU566vqeGoM+uBEsOXdd9LjFSQaTaiXHZzQe6veQGROl31qhBFZCht\n\t\t\tDfUGY4QM9NQ0yp3YCYiqD6QmG7a6RusmBAlBAQ1fO+JtU5Pe+BiFMFOaG6yN2H5Y3FFqqpE4ZkQH\n\t\t\tlQ5rf0cU7pbQ5eyuhv0hpAcaRKdlh9rgAqnWW/yqyh0eRc3xfzh1IClwvlSj3FtlFcduaM1R9I5Q\n\t\t\tdW8TdtLCt5QqfhGXru6eTW3Ud7oQvqZXIG7ytPX1DKj554XOlzK6m+AIetqdzjs5X2r54e3vqevy\n\t\t\tGp4bW3q08IcZ60ES/76y7n9RY0YZWRUf7+pqaPGaL35ce7sHOt1On3qfmEVoTIalHpQawh/2G+/H\n\t\t\tHXS4nF6y26KbIuHHZeumJpamz3hq7eC2EVyFjywFX3HMZHeHDE9VtFtaFAWeeYgr6GYp89hp6x1o\n\t\t\tV1s79ha/qnKHRz21bAMDLYOuYufbSKZVad+Mx15YpWN6R8SWg36b1uJRFkARZ91F8DW/AtGAi9Ta\n\t\t\tVNr5yhbUbvxbQbmT87VuV9O/lX7tuRuxHNrFMxVYD5IYvqz7XzSSQHV0/U495aZEqZE2ZKBFK0gS\n\t\t\txtNtbLlfQx/3rRKCuHgoV0dlwpWAszpHwFrVrdXkdJgCtA2OQQ1D4v9SyXm+/ZqPpAaP6gpt4W4p\n\t\t\tV9gi4eKm7RuaC4Ya9JZ4VeUOTx2d4OpvKoIvXLGZ92x8WaZ3RDpS/aD0PbfUFMO34BWof+k4FUtv\n\t\t\tmcEKoj2VcXfLwFf4ePhrwG54NRiM5lG+rAdKDF/W/S80YmoxCk0J0lxsqTpfmig42FXl0O7b0WSk\n\t\t\tN4lm7Xnl+ijGbbWPbvq8F2PrbG0qlBpFgNXptxeuLNaIUtpWddPtpeCLbJDLph3GIynYrSjU2YKb\n\t\t\tuDarr7dnG/F9sIlaMhteseFVlTm8h8REQU9bVUsJ+Fqr+oW776gpSlUyvSPalsqAivaHevDJla7a\n\t\t\tuhLwLXgF1noHPrq9xloOvvLHMdhZdcc6X3yxu2p6W9u7eoyvpr7LJYY+sVgPihi+rAdMd85prd9h\n\t\t\t2VHAyPq+vtqCrWr7+tSNsEFjh/pfQX7ewyOqzanImyw7Sv53qd9Us+Pu/x+V2m2V+Wgbqutq+kql\n\t\t\tExlfVZnDq4KHlodSY3VPzaZSeza9I+qW1aYd1fZVl99x0Ssoevvv8IiVyAj+xupqTnZmPVBi+LJY\n\t\t\tancq7cqGXz00vSP3mWprZHZY2318kCzWncTwZW1sNVQ14BqlV6vQ2fDwLXpH7iv1YNazGDfczuu8\n\t\t\trAdYDF/WxpbIW3LqC4YbHr5F78j9pIdqsdTI3dvW3K1oGeYs1gMohi9rY4tqf6SXIm14+Ba9I/eX\n\t\t\t+jq01O6C1HMW60ESw5e1oUU1su5+Q67PRodv8Ttyn6mWkqfxIB3se1kPrhi+rA2uhmozZ2r7+vo2\n\t\t\t9od64Tty36mhxwLadF/GxVmsFYrhy2KxHjA91NjIhUWsB1wMXxaLxWKxKiyGL4vFYrFYFRbDl8Vi\n\t\t\tsVisCovhy2KxWCxWhcXwZbFYLBarwmL4slgsFotVYTF8WSwWi8WqsBi+LBaLxWJVWAxfFovFYrEq\n\t\t\tLIYvi8VisVgVFsOXxWKxWKwKi+HLYrFYLFaFxfBlsVgsFqvCYviyWCwWi1VhMXxZLBaLxaqwGL4s\n\t\t\tFovFYlVYDF8Wi8VisSoshi+LxWKxWBUWw5fFYrFYrAqL4ctisVgsVoXF8GWxWCwWq8Ji+LJYLBaL\n\t\t\tVWExfFksFovFqrAYviwWi8ViVVgMXxaLxWKxKiyGL4vFYrFYFRbDl8VisVisCovhy2KxWCxWhcXw\n\t\t\tZbFYLBarwmL4slgsFotVYTF8WSwWi8WqsBi+LBaLxWJVWAxfFovFYrEqLIYvi8VisVgVFsOXxWKx\n\t\t\tWKwKi+HLYrFYLFaFxfBlrY8aGxsbWKzPpOCX+17//2J95sTwZa2HBHjrWazPoASA7/X/MdZnTAxf\n\t\t\t1jqoEcFbW1tbz1/89Rn8qkUAM31Z6yqGL2vtamyob7AOs1ifWVnhV5zpy1pPMXxZaxb43t33+sOR\n\t\t\txfp0tZu9L2tdxfBlrVWNYHzZ97I+47KC9WX6stZPDF/WWgXwrb3Xn4ws1qetWoYvaz3F8GWtUWh8\n\t\t\tGb6sz7xq2fqy1lMMX9YahfCtutcfjCzWp60qhi9rPcXwZa1RjY31tQxf1mdeVbX1DF/W+onhy1qj\n\t\t\tMOrM8GV95lVVy9VGrHUUw5e1RjF8WRtCDF/Wuorhy1qjGL6sDSGGL2tdxfBlrVEMX9ZG0AjDl7Wu\n\t\t\tYviy1iiGL2tDiOHLWlcxfFlrFMOXtRHEzpe1vmL4stYohi9rQ4jhy1pXMXxZaxTDl7URxM6Xtb5i\n\t\t\t+LLWKIYva0OI4ctaVzF8WWsUw5e1EcTOl7W+Yviy1iiGL2tDiOHLWlcxfFlrFMOXtRHEzpe1vmL4\n\t\t\tstYohi9rQ4jhy1pXMXxZaxTDl7URxM6Xtb5i+LLWKIYva0OI4ctaVzF8WWsUw5e1EcTOl7W+Yviy\n\t\t\t1iiGL2tDiOHLWlcxfFlrVDn47qnp6ujYPNR4rz8zWaz1EDtf1vqK4ctao8rAt7GrY7NjqLOjZdO9\n\t\t\t/tRksdZDDF/Wuorhy1qjysC3q2NoeGRkZNPmEvQdqd1ePXqHj7rResMWoz2OtlIPaOzpsa7i49Na\n\t\t\tK7TsY0xPzGJJsfNlra8Yvqw1qjR8LR1twyP0kdU0UHhfVW/L5pbuTct/1u3YvEO/0tPSXFe8yaij\n\t\t\taXNLk2Vk2FrXUHjfpp4S+6zpEKpZ6RNX9TCIWVIMX9a6iuHLWqNKw7drs7wwMtSxyXTPyGh/v3V4\n\t\t\t1D6wrP8c2WJg4Oj23lIbW7qrh4e3b940XNu9o/Dhzf2l92ti+p2eeKT087I2otj5stZXDF/WGlUa\n\t\t\tvh1d6qWejgLT2tCJzrOhzjo80tPV2wZ4s7YNDFhGhxvsPY5+q7xxx+YaR7ddsM8y0NK/fXi0ZmCg\n\t\t\tRt0Kb7YjYEd7qqr6W7ossLP+Tnu9vNvSudlRVfwIFb7qE1tqajodtVu6BnpGhi3ba3q74By3kPva\n\t\t\tDs+7Rdt4dPtAbxs74Q0rhi9rXcXwZa1RZeA7pF7q0S+SwPl21YtLzZvbLJ39o9au7pqazc1gYLvt\n\t\t\tPaPNLc01vf2jO1q62yzd/QS7Hke3ZdOoo9Ni6XaMiq3wZsvmHoxsDzdYNg/1DLe1NNd1DVjF3T39\n\t\t\tvTUN+Ii2zfYR/RHS16pPPNzf7ajp7e6vsbfsgMtdNc0tNQRfua9N8LxVw+rGbZstPZ3NI/eaAax7\n\t\t\tI3a+rPUVw5e1RpWGb6e20mvpKFh+Hant6uhurh0eru3soZPRvnp0t9bazRa43r0dTuxVO1rAMPd0\n\t\t\t19JDMPy7Y/Om4eHq7h7cag8hcLS5qcWxY2RYhJ1r+/DuLXT38PAQuOJNGJaGE/0R0vmqTzzc3zU6\n\t\t\t3AP7tQ5Yhvs7d8NR9DbiFnJfwzXwvPrG9uHh+tp7zQDWvRLDl7WuYviy1qiS8DWs9A40FZb6jgw3\n\t\t\t1gw0tY30dFtqaizdFsBxjb23F+BbA7ztRFu8hyzqyA4BX1p7teAisbWrjbYS+xkZ7XG0dDXKNV9r\n\t\t\tT1tXyw5xN635WnD/bZt79EcI57tHe+L+fvEcI/1DeBmJu4nwLPZF8NU2bmtyrCq3mvWZEjtf1vqK\n\t\t\t4ctao0o738amTsFcR0HUWWpPzebq7S39Dvja3jjQ0t/WLOG7vVNkLhMDJXwJgs39YF6BkgaU4kdi\n\t\t\tNdhahO9Ic1OXvaZbwpfWg5s3w+4d/VuMj6Ddqk8MwB0Rz4HwBWOLe4It1H3R82obj+xwbG5aNlGa\n\t\t\t9VkWw5e1rmL4staoMnW+fU0tQz092wc6OhzmO0YesQPt9mzq3rKluxrc6/BwHeLPIuG7CWuQRutH\n\t\t\tKe9pi8H51nXXY7LWdg2l1maMZ1u7mgm+9Riuru42ON8R5Djuv9D5jsgnHhlB57tFdb5doxTnhidW\n\t\t\t90XwVY9yeGQUzXT9vWYA696InS9rfcXwZa1R5dpLbhrAktqmIUchfRt7+xuHd/f3Wke7+q3DPZu3\n\t\t\t7ADe1vYOCPjijSMWYqDZ+e7uHRodHequ11Fq37xleLStZQfAtw6XbUdG7WrYeXioSzxipKa7qsj5\n\t\t\tqk9sdr5NNSMNA44R2ELd13ANsFbd2DoAz2/n2qMNK4Yva13F8GWtUWV7O+/ZVDfU0zi8p5C+I329\n\t\t\tQOVeeEx9V0dTU9vIqKOjpcUune9wPUB7c92w0flSwtVwX2dHB2JaQ+lDjqaOjpYasLDNHV3W7S1N\n\t\t\tTQ7N+VZ1d9TBI5qaWrYXOV/tiYfNznegqaOrkZ5Y7mu4caCjbbhWbrxlc0sTAJu1McXOl7W+Yviy\n\t\t\t1qjyU432jFC4dk9/U+E9VrXDo1X0cjS3dLTW4+ruCAWGTQ9raBg23zBaa2htNVpvHR5RHyHPG+oL\n\t\t\tSoNG5BbiibXnGMEQ9EiDVW4xIvalHxAd3kh94fOzNpAYvqx1FcOXtUbdcaTgg8Argu+9PgjW/Sx2\n\t\t\tvqz1FcOXtUZ9Rub5jjgca98J6zMshi9rXcXwZa1RnxH4PhAGnXXvxM6Xtb5i+LLWqM8KfFmsZcXw\n\t\t\tZa2rGL6sNYrhy9oIYufLWl8xfFlrFMOXtSHE8GWtqxi+rDWK4cvaCGLny1pfMXxZaxTDl7UhxPBl\n\t\t\trasYvqw1iuHL2ghi58taXzF8WWsUw5e1IcTwZa2rGL6sNYrhy9oIYufLWl8xfFlrFMOXtSHE8GWt\n\t\t\tqxi+rDWK4cvaCGLny1pfMXxZaxTDl7UhxPBlrasYvqw1iuHL2ghi58taXzF8WWsUw5e1IcTwZa2r\n\t\t\tGL6sNYrhy9oIYufLWl8xfFlrFMOXtSHE8GWtqxi+rDWK4cvaCGLny1pfMXxZaxTDl7UhxPBlrasY\n\t\t\tvqw1qrGhgeHL+uyrqraB4ctaPzF8WWtUI1jfKuu9/mRksT5dWavA+DJ8Wesmhi9rjUL41tbe649G\n\t\t\tFuvTVW0tw5e1nmL4staoRoo711r33OtPRxbr09Ieay1FnRm+rHUTw5e1VpH1raqqrt7EYn0mVV1d\n\t\t\tVcXGl7W+Yviy1iq0vvW1gN+qaiAwi/XZEvxaA3qBvQxf1nqK4ctas4i+gF/gby1/8ddn7AvJW1vP\n\t\t\t7GWtsxi+rLUL6Qv4ZbE+o4Lfb2Yva33F8GWtgxoJvyzWZ1aNzF7W+orhy1oPNTYyf1mfWdGv973+\n\t\t\tP8b6jInhy1ofNbJYn2Hd6/9frM+cGL4sFovFYlVYDF8Wi8VisSoshi+LxWKxWBUWw5fFYrFYrAqL\n\t\t\t4ctisVgsVoXF8GWxWCwWq8Ji+LJYLBaLVWExfFksFovFqrAYviwWi8ViVVgMXxaLxWKxKiyGL4vF\n\t\t\tYrFYFRbDl8VisVisCovhy2KxWCxWhcXwZbFYLBarwmL4slgsFotVYTF8WSwWi8WqsBi+LBaLxWJV\n\t\t\tWAxfFovFYrEqLIYvi8VisVgVFsOXxWKxWKwKi+HLYrFYLFaFxfBlsVgsFqvCYviyWCwWi1VhMXxZ\n\t\t\tLBaLxaqwGL4sFovFYlVYDF8Wi8VisSoshi+LxWKxWBUWw5fFYrFYrAqL4ctisVgsVoXF8GWxWCwW\n\t\t\tq8Ji+LJYLBaLVWExfFksFovFqrAYviwWi8ViVVgMXxaLxWKxKiyGL4vFYrFYFRbDl8VisVisCovh\n\t\t\ty2KxWCxWhcXwZbFYLBarwmL4slgsFotVYTF8WSwWi8WqsBi+LBaLxWJVWAxfFovFYrEqLIYvi8Vi\n\t\t\tsVgVFsOXxWKxWKwKi+HLYrFYLFaFxfBlsVisDavaHdsrpB2199eT32sxfFksFmujqnZ71ehwRTRa\n\t\t\ttb32fnryey6GL4vFYm1U7aiqDP1QVTvupye/52L4slgs1kbV9gpZT9To9vvpye+5GL4sFou1UbW9\n\t\t\tcvgbHt5+Pz35PRfDl8VisTaqGL73TAxfFovF2qhi+N4zMXxZLBZro4rhe8/E8GWxWKyNKobvPRPD\n\t\t\tl8VisTaqGL73TAxfFovF2qhi+N4z3f/wra9qvNeHcJ8f0Ketxrq2TWXvq6q/14dXXvf62O7rN4fF\n\t\t\tQpXi36P1e/Hsdx4afvShysJ39Hfq6+uXfU55bAzf9ZMlGAx6bc0lsNblrlu3Z2m07Ou704E01Vbw\n\t\t\tgMTTtLfdBc4dnfJCrcMT9Lb0fGqH0tjltdWUe1CN17HcLptW3dKttgkOw9O7abWPg5+t+mQ9Td6g\n\t\t\tx15v7fF0Whur19ZUTuzrLveBb87dHQD+LIJBwy/aev2QV3sQ9F+gtslS0SdmVVAl4Dvyv3h+F872\n\t\t\t/KvfG/5f//VjFYXv738uBPq9ZZ7091v/gOG7vrL46/o22d324nv6atbRPqwCvhU6IHiaHofbsfpH\n\t\t\tqvCtatnXtqmuxbPmvwjKHUq1rdla9o+D2prq5XZ5N/Dd2tdX02JbPX3VJ+vxDGzqG4LX0VizCXZ3\n\t\t\tF2+trjZ3Zw/8FvTe3U8c35y7OwD8WfT1VWtPu24/5NUeBP0XYPh+hlUCvqP/5nFi7j2A7x9+7t+C\n\t\t\t4/6j3yu/i88zfNdZZEkbGx0t9Y30iVOFn6P19OlTX90It8FlAkBjdZ/4iK2SN6jn6o42Gc9KPo28\n\t\t\tqO5IvSDOVf+0/AFZa6tg83p5IOI9rJeflXdzQPbWau1A6qsbtvTgmWn/hrdA3NOowtdu24I39uJx\n\t\t\tywfVVtX3bMJr1SZorPRQ4Lmq6+rpFcET1tf5h6q1a/qBidcr3h15n/6uGN9M7ZWs6DCqCFbVNru2\n\t\t\tW3iK2rpa/Y2VL6v0k4EcHfiG2bfVwgMbt3RsFYdZ8GuzomOxVrc6cOs6j8X8IuGCuFZwxWr+ddUO\n\t\t\toIp+RaqqVvrERREa4w/Z+BtRhddqC64YN6EfpPYruvpfCPovIOCrPRpfXFXtivfDuq9VAr6/3/TH\n\t\t\tX/iDNTvfPT1d1XBW1VW3Cvj+PsJ3+H/5k8eGf+ffffF/ewJA/O+f+HdN+x8ZHv6//e7e4T3/4d8S\n\t\t\tfB/9D1/a/B/3Dv+h48tf+b27f/J7rvsEvtKSav/RO8G32N0ej60HDQ24IY/H2wLHuqnD6/H211ur\n\t\t\ttnn3uTtrtXN9Pw6L4azM01jljrrq9T3W2dx+79YG3fkud0Bwe4vHiz4EDsDjhQNQ77y7A6qx9WkH\n\t\t\tYunYFuy0WmB3nhq5/21VVv0twHvQkEv4qs6qZ2u1fldLU9CB19weY7x4pYfS197l3deHr8hrq7PW\n\t\t\t+L2e1h5xrceqHpj6evva66zqlvq7Ynwz1VeywsMQr6d+m8OqPmVtU5fHXae9sfiy3JYyT4ZytFer\n\t\t\tu7JUd3jdrT1FvzYrfkuEAW9wtBW8yJZm+GkMNBRcwZ+I8dcV3hxxAM22aiS5feVPbIav8Yds+I3Y\n\t\t\t5/E6utxur8V8RfulFD9I9dpd/kKo/wXU973R7vW4e7c5Vr4f1v2sEvAF4v4rhNoanW9XV3/1cDWc\n\t\t\tjqwcvn8o4Dv2xB9+7vcs//fWfws0bvlPlv/8J0+II/lX/wnh++gf/esnv/oFvNgy/qd3/+T3XPcJ\n\t\t\tfBspzta2r02EuBqBdVtsbdb6gQE0NFVN8If/FjBDtS3wIVLjabO2wQ2bOizauaqH7A78BLA4HPbS\n\t\t\tTyM/1GqbYEc9+3CP3bhHS1ULkLjGX2fVnO9yB2R1eNsaazvBFg80VcEd+p13d0BDrdXaS7MEwW1V\n\t\t\tdTjAc2yrbeiF/fd1DDTWqm/Bpna4uxmgIOG7Sa7HPmQ13AVHB6+uDXZhCN+u+FD69jUh5OFzun4r\n\t\t\tWPK+fRZxrbYTfhTywNTXi/DVtlTfFeObqT5gpYchnW+7XXtKeunaT7rOAy/L7u8p+WTyHWm31Ipd\n\t\t\tWQS26gt/bVZ4LA2ObQ3au6O9SHeNtccP7roND8J0pVP4b+3XFd8cOoAtNgv+WbNl1b+nUoYfsuE3\n\t\t\toqOqcSjY31jfiXg0XNF+KekHCdf66GhW/wth/C+gve90wWFc6r/Dflj3tYrh++gf/e7w5zseW/Oa\n\t\t\tb1VXV9cO+K5erfN99D//3l584pH/5V8/9vufgz8DHv034kj2CPiO/iEcFNz3eYDznrt/8nuu+wS+\n\t\t\tIsPEO1Bl1Yxmzz7xIUlWAv+rd3bKz6+tnVa7dDd0bowj9jngg8Di6HeUXttVP9Rq9mHuir2pli6o\n\t\t\tSTGb4CmNCVdlD8jqwK0stuot6IWszU216p2rPiD6gPM49JdmaRUuiXayhXYLBkx7C0h1++pU+OJF\n\t\t\to+iuFrD0W7sBHFXtltUfSh9+1DdsG2jE47AQfBu29ePRtNapB6a+XuCLvqX6rhjfTPUBKz0MWvPt\n\t\t\t6bZt0p6ytsmuvrH4DuFz4LtR6snELqq6PEFbm8gTovfN/Guzip+O+n4b3w58c2mviFbzFc35yp+V\n\t\t\tBt/GzoHGxoHuhhU/sUi4ghfUSXlXhh+y4TfCLn/69JSGK9ovJf0gxQOqqu7iF8L4X0B737fiHyTV\n\t\t\tNqPzvcN+WPeziuH7+Y4nhANd65ovArCr/xHDLStwvuGnntr3r58Y/TeY8vX7TX8q49D/eq/B+cJm\n\t\t\tX/33X0D4/sFanvye6z6Br/hTf0sT2gZpNOGv630DPY3io4X4B2Dy7gO5YasWb7ujGhNRxLmuPvgM\n\t\t\tAPUt8zQgC60LwjVxAVTbvG2fN2ixGtd8yx6Q/Jzd11fn9sMBefb1qXeu+oDwA87jqNdfmjiANq+n\n\t\t\ts6bRWtcKRqWxZ1+d9hZYqx1N+7zuukLnSz9M412dbtyh17H6Q0FmwOdsm1V82iJ8a5s8sDO/16Ie\n\t\t\tmPp6YVt9S/VdMb2Z8gErPYwqzHb2NvXoTyleuvrGdtILgjei5JOpr6Wv3+1o1OBb9Guz0rdEd75V\n\t\t\tphdJ9nyT5K3pSqPx11WDL8Kyut2y8ieWCVfw+0R5V4Yfsvk3YrsGX8MV7ZcSD0o8wHpXvxDG/wLa\n\t\t\t+04XCtLIlt0P675WEf9G/tcQZRyvPdt5T5XZeq7I+f4ulRr9zh/9R7r2BwRftMAG5/s7fzT29Pi/\n\t\t\tuwN87/zk91z3CXylJe2x1WlGEzDTvM3rMH2aWWzNbaCaBvj4cbTjgp96rgv+DC//J7gG33YVvu3i\n\t\t\tHahub7f39Bid73IHpMPXZscDwjCnuPNuD0h/afIAqiyd7t76ulb0bHUG+Pb4m9p6anTnW9UhYn3V\n\t\t\tlirzXZ3bcH9tPas/FAnfZqsRvl20t03qgamvl+Crbqm+K+Y3U33Ayg5DfKxj+pL6lDLXVr6xnVut\n\t\t\tVhN8i35y6vtZrcO36NdmhW9JcyuRurGm4EWazG4J51sEX7DMlnZzXvjKfhbWwh+y+Teizghf9Yr2\n\t\t\tS9kn4Cuj3Xf5CyH/C2jvO10ozOFedj+s+1lF/PudPwL+1X++/Yl1yHZ+pr/HdH2Fa76g/4KLzuDB\n\t\t\tf/9zSOH/x+9hmHl4+N8QfDEmLsLOf7CWJ7/nuk/gKy0pBRkd4v92I/ayGGqtVj9aGuE/fh3FD+GO\n\t\t\tesyi3TagnRvVV/5PcM351mHukLW/pZ4uNNT00EeUIXi5/AFJk7OvbwtZktp67c67PaBG7aWJA8Dd\n\t\t\t1ezr2YSLhda21mrtLaC/FgxhZ7mK17i1o8p8V/82zPIt+Pmu5FDIxVGkFBcra0TYubsLE59rtQNT\n\t\t\tXy98vutbqu+K6c2UD1jpYVSpH+v16lPKXFv5xlK0GWFU8slwQ6ID3qPBt+jXZoXHYt1ko2znLfva\n\t\t\tzC+yjPPFA3AYfl11+Fq3buveWrDzFf0srIU/ZPNvREnnq/1SEnzFA+rq7vYXgv4LWAzvO/4RscXv\n\t\t\tWPF+WPe1Cvk38vmxJ4aF9VwzfEdGRsw3rDDbGbnb+m+p5Oj3P/cnT9AV+H70P+yT8P3T4T/83+8E\n\t\t\t3zs++T3XfQJfseBY19JRZR2w1W0acDswC6qxtnNbvdFK1LZsq4Y/xR3Wro5NcG7Xzs2vqWr5p+mr\n\t\t\tbqzf1lTdaPHAh3MLXvDX9fjbGmsHDMHLZQ9Is12NA+1brJuaOhvUO1d9QOqnrPbS6AB69tkb6/vb\n\t\t\tqxu3wh8HeKv2FtR4aqzVLXrYGT77bTVVmwa8loK7evY56hvthZWhKzkU+syGvTU3VnXDwciEK3h/\n\t\t\t+m2b1ANTXy9uq22pvivGN1N9wEoPQ/dU6lOKl66+sVvgZdX2t24q+WT0OLu7ub6xxtbbgA9s2Na5\n\t\t\tqb7o12alb4m1zdu1qcpia6o1v8jSzrfGbe8bshU4XzoAgJ+7uDXLHX9P9RIt/Yds/o0o6Xy1X0r6\n\t\t\tQTYOwAPq9rXdxS+E+l8A966975tsLXU1HUXl4FX3yycJa3Uq4h94Tsxi+i+U8nxP6nxJ/+FZf+T3\n\t\t\tHgP47v/a1yO/O7zn0f/iCf2ecL5w8etj//WOzvdOT37PdZ/8lxELjt5tm7D2J+jtp0oTbzDYscVq\n\t\t\tdL7Wvm2YAoIlRnDepZ+v6mmCQBl8oBtTgWiP9kZ8Nm+X0fkud0Ca7bLWDsCN2/q0O1d9QJrFUV+a\n\t\t\tOACLOxjEvJnaLjiurfVW7S2o76ID1eFrrcJDQLNjvgv4Ay9x5b2zCpwvXIdDaILXT/BtbHOLJ5EH\n\t\t\tpr5eKjWSWzaq74rpzVRfyQqlOV/tKeWar/rG1tnEAZR8MlS9wy3eSUEkv7em6Ndm5b+X+CbiI80v\n\t\t\tsrTzxfe/yV7gfMUBwEar6Tcif0+D+iqx9kM2/0aUdL7aL6X4KwqvUVXdqn8h1P8C4o20yZ/jpt59\n\t\t\t7Za19S5h3T8qcr4je0QGMZzvAfe4ZzV8WzN8h/fsVZ9w9Hf2ChqPNuwd1g4JN8Eek8N70NfuWc3R\n\t\t\tMXzLyPiRUCuv1FeXOLp6Welf22c+X7Vq1W4LtWKP9dVld7SiA1LvvOsDMh8BNW8oeVzFB6q1MCy4\n\t\t\tq6p6xZ+0pWTujNgoX596YMY3o6iHovFAtFdyFwdgfL/VN7ax8KdQ9IY0GptJNNYat1n9T0f7PZEv\n\t\t\tcrnXUl9q53QAImV7LdLf4xK/AIVXzJvUqy96Tb8Q6vveYLXeZd8u1n2oYv6p0dp7At/CAxEJVzqb\n\t\t\th0tdZPiyWKySaqxuNhT5PtiqA/9NVc+sz4Tu86lGehx63Z/8novhy2J92tq0z912r49hvVS/1ev2\n\t\t\teu1riqmw7h/d5/AlA87wZbFYLK2LOeuzoAcAvp/Sk99zMXxZLBZro+q+h++n9uT3XAxfFovF2qhi\n\t\t\t+N4zMXxZLBZro4rhe8/E8GWxWKyNqu2jlcPf6Pb76cnvuRi+LBaLtVG1o6py/KvacT89+T0Xw5fF\n\t\t\tYrE2qmq3V1XIfo5Wba+9n578novhy2KxWBtWtTu2V0g7au+vJ7/XYviyWCwWi1VhMXxZLBaLxaqw\n\t\t\tGL4sFovFYlVYDF8Wi8VisSoshi+LxWKxWBUWw5fFYrFYrAqL4ctisVgsVoXF8GWxWCwWq8KqOHwr\n\t\t\tVVPNYrFYLNby2kDwZbFYLBZro4vhy2KxWCxWhcXwZbFYLBarwmL4slgsFotVYTF8WSwWi8WqsBi+\n\t\t\tLBaLxWJVWAxfFovFYrEqLIYvi8VisVgVFsOXxWKxWKwKi+HLYrFYLFaFxfBlsVgsFqvCYviyWCwW\n\t\t\ti1VhMXxZLBaLxaqwGL4sFovFYlVYDF8Wi8VisSoshi+LxWKxWBUWw5fFYrFYrAqL4ctisVgsVoXF\n\t\t\t8GWxWCwWq8Ji+LJYLBaLVWExfFksFovFqrAYviwWi8ViVVgMXxaLxWKxKiyGL4vFYrFYFRbDl8Vi\n\t\t\tsVisCovhy2KxWCxWhcXwZbFYLBarwmL4slgsFotVYTF8WSwWi8WqsBi+LBaLxWJVWAxfFovFYrEq\n\t\t\tLIYvi8VisVgVFsOXxWKxWKwKi+HLYrFYLFaFxfBlsVgsFqvCYviyWCwWi1VhMXxZLBaLxaqwGL4s\n\t\t\tFovFYlVYDF8Wi8VisSoshi+LxWKxWBUWw5fFYrFYrAqL4ctisVgsVoXF8GWxWCwWq8Ji+LJYLBaL\n\t\t\tVWExfFksFovFqrAYviwWi8ViVVgMXxaLxWKxKiyGL4vFYrFYFRbDl8VisVisCovhy2KxWCxWhcXw\n\t\t\tZbFYLBarwmL4slgsFotVYTF8WSwWi8WqsBi+LBaLxWJVWAxfFovFYrEqLIYvi8VisVgVFsOXxWKx\n\t\t\tWKwKi+HLYrFYLFaFxfBlsVgsFqvCYviyWCwWi1VhMXxZLBaLxaqwGL4sFovFYlVYDF8Wi7Xh9flv\n\t\t\trKM+f69fzWden4kfF8OXxWJteK3nh/k3vnGvX81nXp+JHxfDl8VibXh9Jj7NN44+Ez+uewDf+kf6\n\t\t\tWPdSj9Tzj+vBEf+0KqJ78mnOP627FcP3rrT9wP4yOnhw/2p0EB5QUuXvETqAXwcO6JfhmnpjGR06\n\t\t\tcAhEl8SZelNJlb9HaHz8kPwq1BBKXJJXVqVm+NIuNIsTXfK25ua2VXyeO6LRWHxiEhSfjMcTyYlE\n\t\t\tPB6fiE9MTEzBTfHJqRRcmIDbpqbizqlUKhVMpWIef9AVUFypYCjUtCJ1rGyzVW9b8vGa6GpLS+F9\n\t\t\t8AxwOhaORMLpcCAUCofC6bEwaCw8JhSJBALpQCACt4RCEVAoTJvDOW42NtbR0T42Fm6HPbbiLZFQ\n\t\t\tGraNwAPhckTui77hH2zVstzxbrOs/Kf13OEjR6eFjoHg7OjRI0eOHz8B+uY3n//myVMvnDh9/PjR\n\t\t\to2cy2UxmZmYGzmZKKXPkhRe++Wx7+7PPvnjqxAl8BOzqCHwdpR2fPXsWv2dz5+Bk9ix96cLLudnZ\n\t\t\tDEic4nk+k8/nZ/OzcDGbz2ey+bl8NJs/k4VL8AU3ncnCIWVn8/m5HGycJc3l8WGZWbwnm8zQA2Pw\n\t\t\tnUniBvlsJpHJzmQzUvhqMnnYNCruB2XkycwMXpink5lsEs+SdFXcND9/Lz7N60eHWXcnhu/dqP6A\n\t\t\tmZ+r4q3xkYZLB/XrB8VOJYLpUjGLEbSFNxXpoOELUavyVuevAbMH1LMD8kTecl7/Pi+gO070Lcau\n\t\t\tkcDjCOAh5K99BQgeL+CvCuAhRK0EsgZjQePGFdO33utNxRMA3yQBeDIB1J2YnEggfqcmALrRqfiU\n\t\t\tc3LK6YR/rqnUFPB3KuZ3e50uxelMKSHb8mTRiXonpnaoX6VOkF/qV1mWdRiw22EUPapFQpfuHEsj\n\t\t\tSUNAylAaGBtAdiJdwxFEKeAVCBoKhBCr8C8QwrvG2tvH2scQwWITkL/V5hnDB0aI3LDHQBrui4iN\n\t\t\tcCu4vaNF/AWwTf9XcL7yn9aFI0cEHVUBMl86+tLx48dfPn76xKmLF08Lkh69RKzCf5nS9D16/PTJ\n\t\t\trz377LNfO3nxBDz4OEIdCXwc9n8UwHvsWA4JPHv2LJznZnMIXGQsKJ/DGxC/hMUzebgJwYsERvwC\n\t\t\tPOfy2RxRNZ85R3flc9lcFu/L5nP5BTrPZ2fhi9gMt+UR2cm5BBIXuQtnBG2iLbwORDDdh7dmMgK1\n\t\t\tANUswhkuSBjPI3Vn5sWFmeyMRG/2XsC3vvFeI+zBFcP3bvTInXG6Gu9rvNavwtZAXuGES9thncDF\n\t\t\tTtlE4APnD2oOWHJYnBdZ3QNGBh865KB/wFrd5y5PXgndoXH7kKCwvCAZO67+08A7Pm7Cb7MdTuyE\n\t\t\tX5W1Kn2HdPY2Wx9Z8Y/rcswbQ/hOJIm/E4logsibiCWnglNA3xR6Xvh2OtH5+oC9qZTb43P5vC4A\n\t\t\tcCDQXmhbO4pZWAKIK7m3pdymwtKuCL10RAVqD4fSoQh8ga8NhBQgMHE3Qo4VyQkgDSGV8Ra4ABuD\n\t\t\tqxV8RQSPjaEdhmtof21h8r6RSBpuggcp6YjYBVIYTPVYe9OdtOL/pI8cviLhe5b+ofUFZB5/CfCJ\n\t\t\tX3TyEsL36OyMwG4Z+mYuHT9+8eTXvvb8yZPkfPExsKejr8DX0Vdo30hg+JoWGJ7NZWaJvWfzcAWI\n\t\t\tfOwsml76PkPIzQnnCxvOAVUzCFhhh3NkWJHE6Htn58D6whbi3mw+ls+rTMWHZxPCyqI3Rkebz0is\n\t\t\tZoXzzdKfFOI6mWWk7zyd4vlVaYLh2nxS3kp334NP80es9xphD64Yvnejvru0ukWcFuRVMav+Kx2B\n\t\t\tNpK338jaA+azAwYPLC7p4ejzWrSZvs7TqYrZA5oX1lHsOKSdL+90S6BXXrSPG92t0QU36zweN1pe\n\t\t\tHbJDIug81Dykx5ub5Zm1b8U/rgUMOoPFFb4X4QvWNw7QnQDLC1/I3VgcGTwx4ZyMp0BTUwBeX9AL\n\t\t\t1tflUxRpTaVJVfGrIVjeocZ7iz2wang79A3L4Zn+tXSUMtF0R1OHuoG2wxLCqHI6AEgNhCPpxcBY\n\t\t\tJCBCy6FIOk0ARlvbPiaQincIOxuSMWdhaHFzuOTx+P2X8cRmg2/4gotSNnFq87c3fYGMd7mwc9PK\n\t\t\tf1oA3yNHkbsSvkjfl4C+x48K8JIFJpAeE9QtbXtBx2DT06dPfvObp149cfoEPB72cnSauA0UxrA2\n\t\t\tsBee6liOUA9eF5iK9AXugg8m8s9iGBkDzrNAVHKvefGNsJ0Fq4snaFiB0RReXhJBZmJ1nqLMQOA5\n\t\t\tvDqXzRK987NJcrYA3WQ+OyHC09GEjC/ns3AjXSA0JymmPKG6XqLvjEZc9LvZeRl4vhfw7WP43rUY\n\t\t\tvnejvrsNNBfA10hccYO0vCYfu98EYgSvWOulrR37Ve/roO/9hmA0cdewDqza3fOq+cV/DhmGPmAw\n\t\t\tu8VrwYhVO/0jvtqXDzgbv1S2jqObHbpjALrZroaZ9S+Nu6bV31XAN4aknZykZd5JdL5iyTc+cbll\n\t\t\t30Tc5p6cap+69tRT7e229g7/hHMqvq/7qfhUaqqpy+9ztbd3tAYCNnNwWUWvCaomEjaZvlbiizsE\n\t\t\tUYUX1mAvMW7YUwttIZ+0jHFuD6ECSiicDsNZJJRWQriyK74xEh0h/FI4Gf2xOFGURXxMmGwyhZ3b\n\t\t\tw+EXv/Vtg/4MvvCUzgpu/tYyznc18L0iA89nVedLxhe+jh4/cvwI4hcvAz8p6izoW4LAmbOvHD9x\n\t\t\t/IVXL148fRpXiQnf8gwN8PSxadr7sWm6BAg+m0P0npnFQPTs2WPTR44exVvA4+ZygNo5ZG9uNpfL\n\t\t\tIVhzc0jZLCA3lxH+FzeZAxM8N4dOGSk7l80Qp/F29L1wmheUzeQTSbxLJS5ewJ3B3UkywnSFsAr8\n\t\t\tBR88Ayb3KsWhZySHr85rdvieOV8jfPfoutdceyDE8L0brYfzNS7nGtZ8DeilC/sLALzfvNZbItas\n\t\t\tY1ej7kGA6UFJ4gMmEh/SV4LFiQPPHAbsni9heBHG9nLoHTciV7W6xljzuBnBdv1MBpzVdKtmE4cL\n\t\t\tU69WAV9pczGlKp6YoEwrNMLJnj57X03S4piasO4bqtlr32qvGtq+xztR02B/+OF4cGdP254u594n\n\t\t\tmx+yB5RCU6c536Kgr9EEqwQV25UPObfoF3Tn22F4tB6Cpv22NMl/ZYCOa7iBcFoB5xuJpMNhJKvb\n\t\t\t7xUrvnK5FtELpxLJYQw6K0pACYQwphxKh0I2tMj+b337z1aqb3/7cx3rAF9J32l1xXearCoy8wiI\n\t\t\tTsnFTh89lgHyzJQ1v5nXYBvgNWx7BM9eIs/80vHvwAUMQKPBJr6/BuDNYeA5p2Vbge+dPnri+JFp\n\t\t\tSoPCpdtZpG4uP5dLzIr1W7xVLADnZnGtFxeIc2h04QJcI1BLozwXpQXfLKB1DiAKzjeffx0D0sjX\n\t\t\tvFj/zWaSSbqSkFflCq+ILCelwZ2RX/N0Fb9mNCts+jD+b/AGvPLn3/gunOW/J67OfA/O/gLu+8uZ\n\t\t\t73/jr34A9/35N+DkL77xxg/wEX9N960BvqOjo3tGGb4rlfHNNv6Y4Kf2V/jTgp8R/US+e0z8qP7b\n\t\t\t9/HH+gPDrQzf4mjyikLO+9U8Kj0CXc7xmlZ/hcc13OvQkGtCsIg2G7KwDpqArCdgCfLit0PPf1Zz\n\t\t\tqkSClQrd8VIXEbd2aXTHcX1XXerVSKwv9Rriz5ozNgSaxbed7K92g2DukB5wXjV8Cb3xCUy0UhmM\n\t\t\tBO61ZhLxvftqHPG41Z26tjMxZbfEJ+zX942mUlO7WmrsiVjT3tSeptS2hwJpb5kMqqZSC66Swgb6\n\t\t\t3jniXOB/mzqMJrtFc8AdEr8ll5yF6+3oGAuFlHQgBCyNLCJw02h8PTZ3iMLMIqwcpoznMFpjjETT\n\t\t\t+m44khYLurhejGfh0N+snL2gb5Wh76rCzqgrVy4dNSU7H1HBi74VLr1EoeOzaAnLOd+ZmbPoXYHT\n\t\t\tr1DEWThf8MAniMMUeT52TOXvWaQvYhcxO4uR6OkjJ06czmVoHThDmVQ5DEeD552dm81gLlV+Ac6A\n\t\t\tx7jMi5lVFLPW1oUBvXOYFp1Rk6GzWswaoZtP5LNnCLzwNZHMJqPCAuO/JIWe0c0ikOdnVG87r67+\n\t\t\tYrw5I65ms2/SrfMZM3y//43vvvwDYutfzv6F+OTGD/fvy1MTfPHj/Ltv3D18ibaj1j2jO9n5rlhm\n\t\t\t+P7FN/5K/Jjwp/ZXAqx/NfMD+qOoEL7qrQzfAv3pITp7YvzgHQl80PC1/6BOWJ3CuvHdb3S2BTce\n\t\t\tQALTiYxIy2VevPG8xlvcxhB81gLQ2trvAYo6Y2LzIbvMarYTgEsUFYmrQ+OGkyERmjYlXKk+d1xf\n\t\t\t3JWb2g/JL/u43Y4n4ku7MES3w7kadB4ylButEr7RiYkkITeeIOOLoWdQ245YIrG3fXt/PGF1T13b\n\t\t\tOxm316SmmqzbRmPxeI+jdtuUM77XPTo0UFszCEQqTrrq0C8VmF5z5FlfLr6zmqT9Ney+6XGTyX5c\n\t\t\tbFEWvh3twN6wEgmAi01jnnMkjT7Wc/myG12urDQi19tOtUJwP3pjkfUcGaMyIloxjgSUJTN770ji\n\t\t\tspHnlf+0rhy+AV+HKe9qWrIX6SucL3hYcKzIU9SZ2Xz5Zd/MzOz0UUpvpoxpxO8LJ05cBPSeoOCz\n\t\t\tyHkG24sVR2h7cal3FvOmgJxnc8cuHTl9fBrhOwNQxYTnPOIZL2cohowAxtVc4XQRvBiSXpil9d4z\n\t\t\t8IWcnc1S4RDlO8+KnOf8bCIPj8vCmUpbWVCkolh8aYVGMzIOTZfhjw010Iyp0ML1zmcnCrOd8aP6\n\t\t\tL7N/ToB9+fsafF/Jgxs+Nl0A3+PwQf5X+WNrdb6A3lGOPa9UZvjqPyb4qanwvfoG/Eheeq0Avtqt\n\t\t\tDF+jxg/96dMSuj/c/8wKIs7GCwfNS777C7lrulysA0bHq1tfZLCxDPggAVdPhTYsCWu2V4BWnh+S\n\t\t\tpwX8PaQnWA0ZV3nNF4QRNuCXbG+zRUaS1SyrUmpra0PSPmyKNw/djfONxgG+iYTIskpMJPAq4PfZ\n\t\t\tvdH5fXuDjp756GjK9SzAt7ltcmq7JTiyL5na22rvmbzauzc+3Gx/KIXx2JKerjCirFvcJs376ka4\n\t\t\tpB4vbX8NS8ZNLcDfDoRwi+GJYHebW9vR6HaMteM5fQFVA6EQIBeznH0BCjOnQ6502n9zwY35VMY6\n\t\t\tIjX3GTbB8HQa05/xXow8h4G+gUWj8f32t8UJrfDSyq+4akRyucDztpX+tBr7Ll05fIGE+KXiIElf\n\t\t\tLNE9foRs8FFVubya8Vxy1TeHy7lHyUEje19+4eKpVy++8MKJ00dF4dEl6XzPnr0EtD2rlvoiiXPH\n\t\t\tpo/BJmcp3XlWEBmj0hkKKKN9zZCLzWByVYYYnJujSDMGm8nizs5lMGsqLzKgkxRMniMMg6HFW+mm\n\t\t\tZFbDbJ4WfrPqKrCaYkXuPqPellTrjWS+VXb+6iSFn7NF8P3rH/wtOV+g6n975Xvf+97fwq0v/wXc\n\t\t\t/N8K4Ps9QPLL33tjbfAd3VXXU70XxdxdiQrh+91j3yPnS3yFn9afw88Irv/lD/6fBfDVbmX4GrXj\n\t\t\tmV2H5MUnHh4tS14tzLzfjNj9BWHnQuwaVoDVuxyCs/pqr6G296AGXRlxXqYFh87e8UOHTMQdV28Z\n\t\t\tL1jqVVFsTKwyplwZsq70oDMR2FKy9LfZVFSksva6AbtDhsurgG+QCnsTyQRoIpmYxJgzVhpt3dOw\n\t\t\t99pEvGrnXnvC2W6dnGrbu3NvzUSqc0/j3q5E0rK3YcSt7G25ut3iU5SQp4yn6yhrQZs6DHHnkuHp\n\t\t\tMvlSIudKNdftX2j6XNMXrjV94QtfaPpC0+Pazh/peLIJuAsAbuluV2+1tFAIeSyQBo8bHgt14Ipu\n\t\t\tIK34/Uu9Fl9IGYt0pNvB7janO+B+f9gW9neMPTE25k8DbvsjYJrHlBbw+SE0zoOBbxm4+nd/963a\n\t\t\t/w4nf/ftP/v7v//23/393/3d3/0PvPqtvzM448+tzfk2NvYdRfq+haLV36OXjkj2CvweIRSr7M0S\n\t\t\tl8pmPM8eFXnTZwV8j5+4+MLFV1898QJYX1wKBvqelSVNZ8+KRd2z6qovJTtjAjQt+QJiadUXb0C0\n\t\t\tztJyrYg9gxE+l6GoM8D4i2cWEL9UEDx7LgdOF4ErnC8QOCoWeWmtl6LQ6FzxGbJqudFMNiE9bkYt\n\t\t\tKMIC4HnxMAFedb2X6Kst/hbAN//K2cxf0GIihpoJvvgBDtB96S8K4fsX//N7f3n1u3cP3z243tuz\n\t\t\tbUt15y6i76ime024+1hm+L5ydOY7f0trvq/9hQ7fv7z6t//ze39VCF/1VoavQW//6dP6qu7TT46X\n\t\t\tX/I9qEH4oJrobFzqLchwNqnouog2q5xFGjuMBDYv9h4sQV08ccjCIrtwvmq4+ZBa1Gso8xWINXTT\n\t\t\tGFLjy2qMeVxf3h0vWPAlWbQOVpRgVZTKrFIYL9c2l9Yq4OulcHMijgVH2OVqkjprxOPxWHwSIZyC\n\t\t\tq9jiaio+lXK6UnG6PhVLYAVw0DnpdDqBREp6BS00tAKgDnmlkMbFKdDl3a/moT/3rW997nOf+xZ+\n\t\t\tfetz6u6bWlp7t7f225vaN3d1tHa0o8D6dm5Xmtr6A9sHPG5buqu/P41FvIFAyON3O7Y3eZ4MW360\n\t\t\tvbV3m/vJFo/okgFSugP+jq72gMXudfe2uxaxC1YoreD6rwG+f/Y/vvV3//lbf/gtgC9w+O+//e1v\n\t\t\tfet/fOvv/zsyuFTc+drdrPk2AnyPTSN933kH8XtBZF8dOX4F0Csyr5C8Zy6dOUY1u+gJZ/SU5xLW\n\t\t\t9xJA9xj21TiC7D31wqmTL5785qsnRLmSyHIGxr4mgs5Y3EtZUgDfd9H/zoo6X+Ij4ReAKet1gbzo\n\t\t\tYrM/fvTR5957NEdpV2dnRxcexRRsBG3uDNpaNLgzsttGQo0q5/PJLDXYyJPTTeLlGRFYjlJVbyaj\n\t\t\thpmJxzOUkiWJTZ01YJNkcn4+eRVLkebnS2Q7yzgzfGp/943vaVf/2/e/+8b/8YO/VeH7Fyp8//IH\n\t\t\t//P737gr+I6MAHutmyyWnVtbrj/2o+u3LDXb+2os19uaH7b/aMcu3QSPjlj3DO8Z3WPdg8Hp4dFh\n\t\t\t6zCwGb+E9uA1OIGNGodl7hYuJuNNQHPrcMMwUf5eM/OuJF4EviTxNwm8jD2Fa77yp/bXV/9WW/P9\n\t\t\twTde/j9m/1yF7w9U+Kq3MnwNemI79t84dHA/2t8fbt9xoAC62gLv/gIvq17eb7xysASGC8irul7N\n\t\t\tARd9aRwW6D1vAK7KYq3Y95CxqlfNuZLn40V1vod0EBfFnYc0QhvQq6c5a/DVDS/GmfWMZsMa7/XC\n\t\t\tGqOh1cJ3kztGQecElRdR+BkvYbEvtdaYSsWdqTjW+6aCKZcz5fM5nXA1Fp1yxidSKWCv06cEXKHI\n\t\t\tcuDV0GqKPpfH7UqF3hedL5AXTz/3uQ5pctuf7Ni+3eNo7vZ0DwF16db2jqb2dEtLwBHqfbIJTG+/\n\t\t\tK9AxhnVGgUjI7bV5WiJPuu3b23zuXv+P/EqTgK8/FHhCCTT1t/ssDsVub/IN/sn7YINDgXR60QTf\n\t\t\tvweTS1b329/6H3D57wG90vl+2+B8O4rIu3Ln2yjge/QSWN933iH+Xjh8+vDhE0eOfOXIf/3Jvwcb\n\t\t\tDM730j/85L8+9w8UkT47Y9m371lL+YznjBagfu2l46dPnTh18mvPfu35UycunhbtJoXvFc2uKN05\n\t\t\tN0spz/lZtdkktZ4SrR/zhF/qo5HFxlXSxPbk5+zUmyP32hnH3KMLX8pRRHoWS3XfowVfTMVCgM9q\n\t\t\t6Va5m+Rj89FsQiKW2mRmtF6SCbqYpzpfMMPZpJaMlckkZHcrEBD46lW8hJVIZeD7jb+a/3Mdvt/4\n\t\t\t6xlaWsTP7pe/8+ffffkHf4vUfYkYbNxB44o+CgG+I8N7dm6zd3Ztbrl+fcf1a52O/ms/7O3qv/bM\n\t\t\tU+e379xj5A/IunfP6E7rqBUvPzr6KJyri8O1DXusAKXGUasVLsApAhfuwy337tw7bKUd7Bl+IOmL\n\t\t\tfz7s3T26c/S90Uf3Plo7iu9A0Zqv/Km98X0DfDG7SsL3rzKYO/c9w60MX4MeGwfcHtwztP+ZJw/u\n\t\t\tP7D/MZPZNV85aMxvLmpdZU583l/M3YIeGwbnW0RddMIagA8WOd/zBwqLes8LkyvaSR7Sejir9b7m\n\t\t\tbOdDuhXW6KpmO9s1W2wg7zjBV6sgshdEk1X+DrXJm6+bDS/d+PYqnW8MOJtIJJJJBHBcwHdCNNmg\n\t\t\tDhtTk8GpeBBuSQV9Pl/KF0e3G0tFXcBjuDRB9PWFm+4oM2ILloLvROLHix8qm260aLvXQtdY7dve\n\t\t\t1NTaCq63o3Vze4d0vgEMOkeoYUZ7JB1Oj6Wx3leJuD1udyQ0Fmryb/d0+G0dtnQ75j3bIgGsRAor\n\t\t\t2Lcq7GtvVfxjg5FFH9B6UVGUwb8xZVv99z+TJb1U5Ptnf6au/xrXfNW3oqDpVfUKflCNAr5ofS+8\n\t\t\tRfQF/J46deHUiROn/+EnP/nJ17A6CKzsP/zk2Fd/TNlYr83WbLnZZtcyrIrhOwv++LWjIt3qxClk\n\t\t\t77Vnv3by1EXR8UrS9+ilY0ep1ChPbSbVaiNkcEYNClNzZ9EtMkOudSYmqnO3LuRr5pbyN3/641z+\n\t\t\tH+a+2Hb5q7e/uum96E8fzdifTWTn3ls6kxcudlb1r/m5RDKPTTRmVW8rmjzLYl/aijickUFmkWGV\n\t\t\tfz1J9yXngchUl4TrvfNSb86XhS9+nKulRt//xndn/1yF73dfmpl57c+/gfHmv4arBfBdCX0lfKuu\n\t\t\t2eue6bx23XLtmc29uyxP1Qy0/PGzQ52dzxjgOwzAsfbsrNpZVbXlvZ66R0d3Vb+3a7RqVHrZ0dG6\n\t\t\tTVus1trdjVW1VT01tVushFpMot5Su7t6556enT09W3bueTAj2XDYPdW74KXXVe/c2VPV01PbYy0H\n\t\t\tX/hbSS01+gH9bNQVgr8+O5P93jcMtzJ8DVR9+0d4at25f/uTwNNHfvhDPa/Z4Hz379dXe4uJeoeR\n\t\t\tCgV3Up3RAc30OgrDzcbezg660XFQS3pWxywcOK9hl9Kbf3rgp+PNh5rHb52/1Twu647Ghx6xPNk8\n\t\t\tdKDZ3jZ+6KeaE262bxn/4XizZXzoH9pujd8ClKorvONPtj15y/L2f/yh/ZGhW21DbeOb7BqCLbJ7\n\t\t\t1SPPPNn2yPbmuua2RyxDdW1/2vZjDDNveaTP/pPbOyRrC+DbJr7b2lYBX/dNgVxc8iUH7BQ1R/MP\n\t\t\tT05M7dhqiU9ZvKngVF9/x0TKkdrucTv6Pc7meEfUae+qmZ/c3t/i9PmUQaV87+aOgot6xpXJF8uA\n\t\t\tcdncq/JR6sflCvKdHhjGzGXRJjKM1bvUPQMhHPJ7QpRlJTo2A3ZtYTlJwU89KNPUjjLtieC0hfTY\n\t\t\tWGBQ8aWVhVVVGsmoczuAt8NmM7wpKwo7NzZqzlfA90Wg78l3Tp6E71P/+096foJjEVD/8MWzX/qx\n\t\t\tHL0A8K2xULpVmVrfnBinAN/YGfrk1661P/vsyVO47Hvk+CVqs3Hslenps6LSNydTrkT+MiU2G4Sl\n\t\t\tRBlAKAaghRVGNFdlZh7teS/36HNfzOVuf+n52erc7dhCT7W96sc/vfnss7VLdtHgmeiKvjeZS+YS\n\t\t\tSewCLQqF88m87GmVUbOa5zN6zhViF1d/qVcW3UThZ7XDFQkIfDUxv85NNhpXQl+AL6Jl97b+XX2W\n\t\t\tbT+yPPvMtYGdfdf+eKD/kWtba57dYci9Apbu3NZVY6/r731uYNvWur1bt16317apMN1TPTBwbede\n\t\t\tx3Nt3fa2a83btm7aiZlb4HQdz3Vt2VfX6xhwPLu1Zu/eBxO+7zkcA/a6Nge8xt7OumuOXse29f1x\n\t\t\tVRqCUvcNfMebMcH5wM4fXif4Dv3wR3ojKz2MXGh1CxtrHLxTWnOhjLONDLA1rv0WFPuac6wMzleg\n\t\t\t9nce3rRj3GK5fuAftjx8niLP58cPHeipf9K+45Hx6p8ecvxEt8DPPLzrmbqvPnNr/B/qbj1TV/1I\n\t\t\tnRZ67hsav/XjJ/7AvumRQz27r9ubtwwZws6qrX1iqMa+3fKjuhpLm+X2k0M/3VHT07zrkR/V/OR2\n\t\t\tnyHsrHK3zZAKvRrnG4wnRLQZLW9yHld/wQIn9s1vnoo/E5/smtoc3B4P/qjJOznVee0Rr8unuJyW\n\t\t\teFM8ZplomnTWtHx90hcIKC73nacR6elVeqmu8YYSmVePl7ncoedjPf64ePDjEuDt+ibtxisdY1gy\n\t\t\tRH00sK1GGgcRYYONkOLxiObOYclfW6tgMNwK7MVlYaxKioQ8cC3tC1GOtDLoC6TL1vmWvP1bX8NK\n\t\t\tJ9tYGE7DY6023f7e+acl2NvQd/QSZVwBeF98Efj74otfe/755wG+X31LpllNf/UnZ3/yD8cEfb96\n\t\t\t7doX28o735mZ2bNieRisr4AvWN93T4luk2IXr1F/ybM5ijxjSlVejlSgMQtqzFks/grvi6ZUdn3O\n\t\t\t5n+czT4695PL/3D5TO7MH148PveV2/lYT9Q+1/ZoNlkV3brlxxijxkD0nFjmJc3Ktd98fj6fSCbz\n\t\t\t83rKs26GMwk1ByurZjvnkwkNwjp8k/OfwmCFxpXQVyRc7dmzqbmnamd1Tc+W6raa0b3VNTXX91p6\n\t\t\tRi2jBuM7umfvXss2y75r1+re++K1az211/r7mhvs6iLu6K5rLdt27+1uaba31G3dVfPFLXtxwXh0\n\t\t\teGevtarG0tu9c3dPr71t54OZSr3H+lxV28CWIce+rp01X6zZWvPc3i6G792obNj5T9HqHnxs//W+\n\t\t\tJzEI/YQhv0rtJVkwqajU0m7Z1KqS3NV6bKikLcy4cmgw1qB7SG0uaVzqtasVvYduH+h75InxtusH\n\t\t\tLABOddX3SfsPn9zyyPZn6q4/MX5bS7n6j8888sQzP7SMPzb+1epHbtU988gjWtLV0MOPjG957E/H\n\t\t\tH37iyZ7HdjzTdl2dn9A8ZJEEfaTHsmXXk5tq2pofeaJ5U9XDP6ppHtr0o5pHfvRMTdUjRWu+AN82\n\t\t\t3f2uYs3XczOYjCaSyNskNthI0FyFeKKneXtysmbC3Z6KO9pTU09OTE7FWrtq/d6U4vQ9Oelwxoda\n\t\t\tLFMTluybTpcv4Ft0+e8ceNabYei01ZpsmK8XBJ1LOtkWLWW6kNntJbYei4BrFW2s0otYKpSmZKtQ\n\t\t\tmghsg5ttoqUkueNWoKSfhh6h65XTEmxYdpQWAFeUQMi2ig5Xf/btv/HLzlntwPdw2OB+7/jTkuxt\n\t\t\t6Lt0RWQ7o/NF9r74LA4meuut09Rcg3Rp+pJoezU9naNmUJhzlS3T4RkDz9OnKdv5hVOnTsLO/hGc\n\t\t\t7/Hjcrbg0WMy7+oMOl8UplxRp2bKWTZbX9F8SgBYeOEvxjMzSdjuua/kjn7hJ6dOnnnxS1+5VvOl\n\t\t\tWFviS/n8c/mtmQU0rcksDWGgYQzJ3FwCzK7o/pxPAnqpp4bIpkI/bagyEpVGeDIjsrzI9+blneR6\n\t\t\tEzT3aP17OzeuhL4qfIGse0ZH91Ka1HvWPTtFxrMpRrxndO9uR1fb0CZHl2Or4/beOsfW7QM1Wy1W\n\t\t\tsc2e6ua9Xc3NXQNbewbqnqtygDWWztcOm9u39jq2bulqqwGC32uQ3hV8R+32Lstzz8Fr2fncgGXr\n\t\t\tlq32AYbv3ahsb+d+zLc68ND+/XueBHT2jd/S0GvgbjnEFhQdlWrzbDbHBRi+w5fIrjpkRK/aU8Mh\n\t\t\t+aqC9jzeMQ52l9pwHJJDBMXC73n8d15vtKH3nzQu95rGGukpz3JIYLNFW8ClCDKW9La1FUWXhWpN\n\t\t\tN7YJ/9u2urDzZe9EYi46MRGNT0RTsXg0LlKuvGCDJ7s72yemUh3xVKqrsyXl8wS7vD6nz6Uo3e0u\n\t\t\tV3v8qXiqpbvF6fOAfXQNhlc0iNdc5aumPRsLd5tWRN7CAPQdBRylybsRpG5oUaFAcoDGI/jpSxQX\n\t\t\t2cZax8j5hv1jWFyEBb6BAM418sD9nnQ6IgCtYCza8zem3s5l9Wff/ta3bDQuOCwj22La4ErXfCV7\n\t\t\tG/quHD58QS75In3fefF58KrPPg/APE0tJo/qVb5Iz7PI1zlCb5l6oxw12pjGRd8XTp385teeP3nx\n\t\t\thdNyyRepi2evTeeOTaPvnctRNa+IO2fVoUaq9aXyoFkqx5UDenEWLyZh5eFxV06dunjq3VxuLke9\n\t\t\tNHBXedGHEicOSnQDdRMYaM6LjCukb14MPdImHellvmob5+xVaYjFdEKisGhvJbpgiXznewbfYbWr\n\t\t\txp5R627MYd5D+bzDuB6s8wcTpkQl0u3R90aRz3seslprZQaVde/OvVV7pXbu3b0TcL5HPG4XbLxz\n\t\t\tD35V7X5Qw84gfFl7927ae33nzt17d+7ay/C9CzWWhe8jP/pTynY+eAi86J/eekyWEu039tUoXOFd\n\t\t\ticctG4YWceYDpuyqwiwr1f4aJvrKKQoFMWcsM1JTnMWco3GZZ6VWHx0y5VrJVhyHxk0lSHppr3GK\n\t\t\toGp6BXItev5ym4GoRsq+La8NibDz2/pqb7Ng9Srg67l8eSExR343FgumUkGALvjg+cmJqSkabJSK\n\t\t\tx1KplA++gh4bsNfl83kUZ8D1piuYmnC6nM64y+2P+AZdg6GVel/zHCR1AVh1sMuBtAjEhnLhO7CX\n\t\t\telQBa0OLwN/AIk7rTYeombPoq4HgDav0bbVRxw3cHP0xdpOEy36/H7tNkn0NpH2KbzAQ8rfCxnhC\n\t\t\tc4zw/Kbn8k240qrJBt9jYvCgDG3D01AbrfaVOd9GDb6EXo296H2fR+v74slTFw4fPy76Ox9Ri45o\n\t\t\tNFEuM5cXQwVLZzwfE7MEj58+jdb35DdPvvrCCydwtsIxan51SeRu5c6eyYmsqzOAUow509xezfUS\n\t\t\tH2dpCi9dkIW9IkNqNpc/e/Y47vscuWcs9QUCwwWaCCxHFFGyVT6Rm0PewgntbiKfiOazWoONTEbL\n\t\t\tvpIDjKh5JM36lWjOUF40DhSUC74yBP0pwPdO9DU02dgjyohEwRC1uhoxwZfKazBzee/oo+8BfWXK\n\t\t\ts3VUTbgCYFtFIY51dOcoVeUI0wieee9eWaMz+mDWGlG2896972E8YOfOvdiJ07r2H9EGhG/JsPN/\n\t\t\totNDz2hcPnj9SY26ppxmHcIFq7+F1veOS7/njc00CjOcTeu/RfMU1AFG2lrvuEOc21Xc6snPequr\n\t\t\tcQN9C5pfFc80KhqhoA0JHNLgK00v+l6z821WkVtQ59um+uTVwHch5V2IRSnjKhnzuIML6IDjE3KY\n\t\t\t4JQrFnNOuaYAyt6g4vG7Eb5etxLw+d50Ol1xZzzudLkCacWnKIqv486jazUIdxjaShpHDRa0mmyX\n\t\t\tMeT2slS9s+nFfcrRvKBwIIwB6FCaBiSIxd5IxA8shG8/Bp1bW8mb+v2RAI4/SisAX3hcOu3H0iPs\n\t\t\tkRWSvKZLNP0oJMAaHpP/0D23jqleN0zslbZXHVqIN68Ivhp7G/rekuhV9SLS92vPv3gS6Xv4yJUj\n\t\t\tssnGkUuXXjlKjSPBq747K0cslKHvEdlj49QLx1999ZR0vvBQePjpi8enj16ans7lztDEItTZ/Kyc\n\t\t\tsZCdNfjeWQoKY7FvlhZtKYF5VnO+r108efL4a7ncu3N5mv27QO04qK0GFfrSGIb8bFK1vtT9iuLO\n\t\t\tebXEKGNwu3rCFaVXJSa0EUh4T3ICgXsVS32vClCvM3wbVkJfFb57wOU2ViEaq0at1t2jVTvfaxw1\n\t\t\tO19E8egIkHXPMFYZvffe7tHaEQwrS8aOjD46ggwewWj1CFyFfQqoYxjbah3B+DRsPLJa8N0PwlAA\n\t\t\tAvi994bhL49H8WWMrv1HxPA1pjs/UnPoSWF1Dw3teOSWubq3HEpLdNQoM1GwhPNFh3ugGLfmFV+1\n\t\t\tnldLc5boPW+YoqBDl+zuef2ascPVoXHzRSN6jfMSxk3k1SLO9NVG2c4FQC2MNqv4bXvEdEebFqVe\n\t\t\tTYerhQVvLArOdx7w63W7vUF3PDkh6AvGN+ZKxQDCLjC/Lp/f7/WB8VWUgDsAFAbsuibB+Lrc6bSC\n\t\t\twwp8K4SvibNNaqqycVG4lNN9vL0kWDsMWVvFaqFWz+0ES3C8ixhnpsFENCFBFPNSRw2EL4IXl3op\n\t\t\truynfCzcktgLJA74I36KVGOPydDYmBhCiOilFeEwjgAWrSn1DtHYUGssLAk8Jp4E3fWYzO6iIqiV\n\t\t\twLehAL4viu8Xpd5568Kpw6evYNeNS5dw5RdOCb5n5jJHb2TKz/WdmcVoNaY7H8d131dPnTh+4vhL\n\t\t\t2GMD+Hv81KuvnsbF47OYcpWTvjVH4eXZTGG+s+x1QcnLs2IZV8w2wodNv3b83ddycxh2zoglXWpF\n\t\t\tmaTC4Fk5wih5Jpkk3hLBEyLsnKQmG3m1z1VmPq/aW2qpIaLKWHGcz2h9JmnNFxttJK+i9b06ud7w\n\t\t\tbVgRfEX+0yiAtaautm7XbnttXU1NVVttXQ9mW5ngi+hFAiN5Hh15dPTRR0eH1VVhvBPueXREXBgh\n\t\t\tlzsiubUTuTVixYePjjyg8N2DK+JA3fe0AmeG792oNHyF91U7Ov/w1tOGbhoFGVb7i2p3jVeLO22U\n\t\t\tcLznTe2b9bwqU7qVo9D4GgPPRv6O62FnlcTj58UCr2HMgskAa87X0GVSZ+244cRAXhF4xoSrIYO7\n\t\t\tLbC9b5vwq2U7t0nbK1eIVwHfmx4wuwDbKBjfYNDtdgeD0YkkjjYCpZDAcDIF1tfnc4Pz9fo8PsUd\n\t\t\tcPsCCF5nLOWadA1GIp4AmMB0YCVJV8a136aCTKsmrRWWWe0GCj9ewGTzti1NLQK4xrh0O9UVhXGN\n\t\t\tF4f14niiMA4qag/TyEBa9EUDi9FgvAlHB4bFrEFgL673AjMx9xmIjGY3hMhNKzSPEMcTilGEkRC1\n\t\t\tj1b97ZgYkCStr+yXRSMLRb1TWDAZHfJK4Vvf947B9774jmTv8wjfdwC/2PMK4XsJ2PvKpWmaezQ3\n\t\t\tl5s9fK5cg2e8/ey0nEp4+uKJiyeOUrrVEZHrfPGFV0+dmn5NoBczrs4SfTNyWIJgrs7e2bxkLppe\n\t\t\t1fnmKcKM3jc3PUfZ0vm52blZDF7DBdhmjtK08jRYIZkTvndO5E7h5WQ2mchkE9TvCp9mRlQdJfJi\n\t\t\tuTdL8WWi8gwFpZMIYpntjD2uZNx5fT/NG1cG32ENvpaexrrdPZaeLTVtozWjVW0IX2O2M1lfDDbj\n\t\t\tBWDv6AgQGMPRks1IV8FXZDRhmkArYtjaHQ8ufdHlDz86/B529YIX87cM37vQMlONDjx58IfYVfKJ\n\t\t\t/U+Om2cmlPKy+80rv8X3GoFrsrvmXKpyK756qpVxlpFIeD5kDDo7dOYKFDsOmXywhtsCA2xcATZ0\n\t\t\tmDR2c242tm6WGB3Sw81FuqWd4aVbFm2lV10ibhNLxKtZ8/W4Pe6FaCIajU/EvF6fL+iNBaPxOFzH\n\t\t\tfzE4TU1ha6ug12bz+92+Vq877XX7FJ/P9abLpfhcTmcwFPKgQ4z4fO1kfq81fXFlAC5ww8ukXS0X\n\t\t\tU1Yj2bgDOIAOfb+0BU1HQPaGRPwYZyuEaE4gMTNio15W6Ej9dO5BaxvCHCwPhqbDAQS13+/HNV+P\n\t\t\tPyAyoEV1Ukhco+IlEXdGaEu6RkJqqDmsxprFEvNYWCNwOAxHuPxPSze+AN93tDznF9+5rPleoi/C\n\t\t\tF5wvsheN76Uzx85iydGZ3OylK0fL5jtjte8RHCp4+viJ06ePnyYHfOSoGLhwGozv8WnMeFazncG5\n\t\t\t5kS8mbpSiYgzec7ZWdX40tBAAjHiF4cNTucMEpMDz+XlFF/a7EwM9kaozdOaL1UczcmEqyytWVNn\n\t\t\tSX3SghqBJoObkcN8s2oYWmQ7J5NyvAJceWE9P8w/37AS60tNNkijo1Wjj26prh+tte7ugctVPaMj\n\t\t\trOX0+fWk7+crDUGpewzfg6WuHTR/aSwtMRqhBHf3FywAa/w9ICB8x9RmNRPL6HwPaV0l5ZLveROB\n\t\t\tqauzXutL1+3aUF+tz9V4iU6TQ1qy89DQUNHIhKKV3LZmc8PIt5tXJrXOaNXwdV92+93R6ERiIhpL\n\t\t\txbzu2EJwKTZBU32jqWh0KhaLpoKpFFhfj9/f6vcH/V63O+BR3CnF53S63D5fAs48wLVQKKQMulyD\n\t\t\tvrRfo9+1O+JXm8trTMJa6YxBA347qHoWA8Vq+ZHK77GQYG8kkkZ/HhL9NQIhYViRg0hdiUKKNkfG\n\t\t\tImmKTkciASWCi8RhGzzOA9aX4Bui1eKQkg5RvRIFnWl78Tw49mgMn87gcNXvUGRM/C0AfwSIZ2xf\n\t\t\tMXzrEb4vSvK+ePlFI3sx8PwWzjrCmPMrR4+eu3QGRwJOU6D37JV3cyVSrjKa9z1Kk4BRJ4i84Hyp\n\t\t\tr/PR06dPHT96CeF7TPje2TM52WFjNmuIOIt0q1lRojsrv/LiBOCLlcK53Jk5sOGJnDqyNyNC1LIx\n\t\t\tBkWe4QS9rygYohYbYnnXlOVMnTZEKrOY3TufjAnKwiWNzeR8J+evEnyvEqKz6oM0cievTqqK47+J\n\t\t\tycmJq/OTTrxhYlKcwvnVJPxDI03P3Vdf37B7dfClQDFaWxkxpggxaxkNr9ueVvxRuP66R/A1NKwq\n\t\t\tXPo1lfSq11Tm7i8N3OWoLO8jpu43wdcUc3aU88OFphecsAg8G/l7QOXuuNH3OsyNnY0Dj7QMq3Fz\n\t\t\toNmgcRW/bSVxOrRS7JZIyFoxfBv7gh4vEDeOs3yj0WDMHbscW1ig+b6A3hQ4YECyD/tKBj02P1pf\n\t\t\tj9ureNyKB0yyaxLTr3C6AtbLpt2AJCfQd9C30sXfQhespy2vsM0VEXaMAEv9qtCEhjuajO2zxkQ+\n\t\t\tMyA1jVVGgQB218BoMmU5hyIivjyGt0XC5IZxXyLmHAG+tuJu09TO2WMDTAvPKyBLLpdwSk+SVgRW\n\t\t\ttQTqsbAegw4Low1XqE0HzSxEJzzW3r5y+JpoKzlsM8EXc5cvkfN9TThfMKuzZ869m5lZZr7R9JGj\n\t\t\tx1+hYUZqvRI2t4KHwy2XwDxPv3Ys99pZzbuqmc5ZY6GRnBVInapErjP5YHDEZ6+cvnKUPDP9m8PF\n\t\t\tXKw3mhX50bKxRgaMbj6KxJ2jeUYz2Qz1t9Ire42SA3tlG2eC6oy8PZHERGg5WWFeZTTaYDF2gSYP\n\t\t\taoHp+WTiajI5OZkA0jpxnPXUhFMgdxJuhvveTOLCsSYB31U63xGJWwTwqCQxqzLaYPAtbNZcbH8L\n\t\t\tFntLdWouWOItMMjL5TqrS70FLth8xWEoMioYG6hVG5l7OhtSrOw6f1XHe8i81mscbKSHmw3tnLUM\n\t\t\t5xXgVbjfW+Usr9ZfQ79pNc7Xe9NLi74JBK37cirodeM0o/hELAa2N+ai7ym82YPO1+12K0oAo86x\n\t\t\tBI5ViHl8E5NOny+NNjAQdjoHBxW407aqxV8tAF02cUo0q1K/9XSqpvYwYZeIJ7KX4WRMjUN3dIRl\n\t\t\tORGmRlGrKnStkVBACYlUqZBYiEUYY8iZypH8EbFT+BfABeEwIhvucPvDfj+53jDhd4yG+0ZECZG4\n\t\t\tgJ43bFz31cPOlI4lJgRHZDNLsspjY8v+tAzsBfiaIs2X8Z8adRZhZwlfcL6XiJ5z03O56eTsu+++\n\t\t\tmyku99Wu5KfRMB/Bhd/jVCF8BH3va9Qo69I0ZlxpYecccnM2I42vhl9hdaX3FRFoGryAK7lHT506\n\t\t\tdYwytXLJXH6OwCs1p/ayoku5vKzwBYOZXEDvO58HnJrxOzGBJnhedb8qeg1QFmVJanfJqyLsfJVM\n\t\t\tMDL9qhqaxmytqxPCMmfnjbpacIM6l5DKmxC+9SuhrxG+KnfhdM/IntE99xpJG0cbDL77C1o1G8qG\n\t\t\tDLN5NfAWTTEqML7Fja4MtxTPEDygtZQsEYN2SA9s8L2iqreQwCbfq4NYx65a+Gtc8T1kCjqLAUaG\n\t\t\t5GZzWa8YzKtND9RGFqnDE8oEnd8uvHVNztfaF3R7vUvBeJJGK4ANXrrsdtOM3/hUFF0vRp5TLnC/\n\t\t\tXq/HBvD12Nwunw0Z7PY5406ny6vgqAVXAJX2OV3pCHhjr7uYstfay/PXvOqrGt92wVyaS9Re0CyS\n\t\t\t7hdLqyREYlou7YZV+KLvFRugk1UCaHsJz7h5WJxjg0lFSSN5KcfZD+zGNV+0pYFAxO+XKViwKTlf\n\t\t\tMrzhkLC76TQ1yJLeWrhdQVbMt4poSc4Rmugg2C7R20rPR5usDL4G5wtm1y/NrzihMQsI30vU5Aqc\n\t\t\t7znpfNFrJjJn3n13YaZ8znPmGI1YwLwr8S36WuHjsdvGa0exxVVOJDyfPYMLunKqAo0UVIPMNMkX\n\t\t\tc6eo+SQRmJZ8j5x69dRFdcGYmmxQo42caLExp7JYzFbIyWXerCg/yotAcj6hDS4ysVgt9k2qXTW0\n\t\t\teLQ22gg2UW+kKQzz4HvnJ/CmyflsUuPrm2h/VV29Gp+cvzpvlkpggO/KrK+hznd4D00MxHqgYTE1\n\t\t\tkFUhbSz4HjREmEUo2XRT6RwrY81vMXkLb73zIF+yusbGzgcKLhjG+B7QhwaqzTXOG6uNjGVFkr92\n\t\t\twxQjo9U9ZAg5GyYZGd2vwfcaUq6a1aull3r1621FCdAFHThW6Xy93ss3by7FJhKTE4lEdMHr8bs9\n\t\t\tXoxCT0TB+aZiU1MYf47FwPm6/a02v9+vKOCBFbfb63I5cbnXq8DZoE/BXlA+XwAMoifkdusLvvKs\n\t\t\to7VVJ+21shQ2OF+aRiTB2/64OGsXNxJXw5GIGualfyHRCwMgPKYaX4QbplgJ6xsQLhh5S15ZRJ7x\n\t\t\tItUAp0OEzoh/DFkuF349FM2GvytEnJo6Top+HdSEAx+Fi75y9ZjIK77UcqMxuXosY9/05GOilnhM\n\t\t\tFDXdGb7S+Naaws4v4rKvKiAvzfe9dPQ1ke187tKZHMDzDCo3m/ngxgfnTIHnfBF9sdnVUVwzxioj\n\t\t\tDDznMPYMTH6FWCxqfEXysmxlZVj0zash5Ky2QovWl2p8j5569eJFBC+AFf7Ey+G/HC3ozlJWc35W\n\t\t\tut9cVkxSmM9r+8sWRZ3lMvCMzl+D86W4sEi9mjc+aD5JML2KCVsiYi2/s6rFTWJudPKqCDEnVfJO\n\t\t\tUqxaN74Udq41WN9l/29ZC0HwQOYiP+DaePDVVnaLsqv2l+BrWbbuL76433jLcqvAqgM+qBUcmRZ8\n\t\t\tzeFmQ6GR7CBZMuJs4HCp5CqD6x2Sg3uHxguWescL8auXGmm2V4tFDxUGnNu07zb9SjF/VwHfJcCt\n\t\t\tPxYF8s5jjpXb4wH8xrDDRjSG2c5TeCtQOBgMevw2zPhVEMNuv8cTdwF+XT4PJjy7lICC/ZIjaXcA\n\t\t\tMew2Vh3Z/K1NwLKxpvamds/yMeiCSLPgrWZ82zt0BxymRdq0jDkTS9OENjSzYmftND0wFBLEI1cM\n\t\t\t26RpEVdkVIVF/a9qQTEDGv+RUyXAhrG8CLEtEpzxSdMiVwrj2GEKV4tnUBd6x9q1JpIi4BwRS8kU\n\t\t\teo6IVWY/dvJoVW17eEXwbdDha/ub1hefR+9L2KXJvpTpjGW+Yr330pkr5y6hU0X2RnP5zLkPlj44\n\t\t\tY3S+uTnzsu8xNLhHj0xTwyuZbgX8naaBg1eOTp+lqUZnRaUv1u7OUrZzVqJXI2VGzPQVS75nqaHG\n\t\t\t9MVTFy+JByZobhHxV/SNxLh0QqwCCwQTlYsWerWRCuodyYRqZefpLpHiPK8Rd0bNuZJ4vSpSn2mD\n\t\t\tJFUnCbyKdWHaKDkvS4OT6uquytykuiPCOMJXs77L/t+SPalY91IbD77mrGbV+uqcLZ5QVBRKLlNW\n\t\t\tVOYWo+PVzO1Bjb8HddNbnGalD1I4oHWWPF8YfZaDFezaRT3HWTO6BRnO48VtrEo532Y1Aq3HnEvl\n\t\t\tW7WptlYtKGordLxva1dWAd8YDrO9GcNF3vnERBSwCs4XO15NYKVRfGoqhkW+KUx59oIptrk9iuLB\n\t\t\tmLMfoOuKulwxD9EXkBtQvIBuj1vxBdIhrx5k7gDf2ITeEfsr+1w+pf3O6NXIC6djHe1/ghf/hM7x\n\t\t\tKlwLC/8awfQl8rsYAxY518DWMao4GovQMm9IZmNFhOMVPhkfiXVEwj6LBVkRT0Y2+ikqjS2dseek\n\t\t\teBhdpcLftFxEpuVjkaml9Y7UOkjK0LO4Q0BYhL9xW5ut1SZhDNeX+2k1mpzvO/qi7/N/41ejzVTf\n\t\t\te+nSkSNHLr1y6QyiF5zvOeQdkDcaWzgH9F26+cFSImOgr9n6zuTFJKSjR2ml99jZs0Des8fO4sjB\n\t\t\tiydPXpwWQ41wyXdWlhKJVhc0xJdqhhCQeUMDyFnZCQtLjeDhxOyE+k8WHFGgeQ6ITKZZNGcWOc6z\n\t\t\teRW1GQFTLPGd0Qis0vgqHjtOVtCHCMrosygD1pOyKPkZ5/8KyiJiJycMi7xIVxGINnrd+WxSpbO8\n\t\t\tPmmC73L0Bfju5a97/LXh4HvQFGI22mBToLmIpqsYFXiHbQ+YsFsQfDbj95Dp3yEDf43FvHrYmRZ7\n\t\t\txwtXd7U487hpiVfNcR5fjr6a59XhWyoVq00ftCAXeiV/DRRuW+Wab2NfPHrZ47kZw97O8Wh0we31\n\t\t\tBoHFcexxhYN9kb1TYHtTvimAr98/BnD1+jHTGRjtiikAYGzMgUVHHjf24UD4gkKKsLjIWT+AWQkF\n\t\t\tAoHB98ErL7rSvuWdr+ZwMY1ZnAjiau63vQNXdsOUJSXcIyVBURUQumGkZFMH3pcmQsKWWK6Llb7U\n\t\t\tVIOgSe0lBXNlShSV+Y5R9nKayoLD2FdDdNqAPSg0ijCAFUviWQPC8yoRkTQdNsSbJYG1PpK07gtb\n\t\t\tB/CJcOnYZhM9N+605ivhW4/Gt7ZPa2ll+xubWt17mKp7aTLgpUtXAL/nKOx85Uwud2zuTCy2sLCQ\n\t\t\tyGUWlkBZY7lvwQJwHjtpTKPtfe2YcL7A3ivA4dOnXj11Gp1vThC0Jn87dvnHiefiW38c1UPPc5e/\n\t\t\tlN+Xjw1cnktsy2/bOpd/Lhn90tln1Q4b+fyzl+defy56eVt8bin//IQYmIBh52ejX9p3Zu6LcwNz\n\t\t\t2WevzUVvZpNq3LlzIXF5W3ZrdiIWy9qz22KJzoR0wfgy6F9mJqvONxLZVjJTCjiaJI9Ll5P0La1u\n\t\t\tlsibTEwkKdKs4deUviWzp2VIW+5TPkVfbe1K4VvLuufaaPDdb2pVpVX4lootGzi83/CY5cuKlnO9\n\t\t\tB1Xna7zNSN3yzleNQBcEnmVdr9rjatzU0mp83K4t8JorikoUF5Vgr07fAvwaYaq7XdX0qgxuLqTv\n\t\t\tqp3v6wtLN6Mx/DCaTMTj8djNJW/w5kIUSxyRvlPA4Ukcr5BK+YI4LsAD1hjhm1CAtS7FrcC31x2f\n\t\t\thDPwzO4g4FfxhBSf4qbFXSz59Q0ODr4P/94fdMHXYCDtvrPzlQge69C5O6Yu+Y7RaF4ceEA5yGkR\n\t\t\tRKYAsHCkiNVI+5i0ugERbg4QmkPYmCpNq8MYMxZmVGIwIpszU3AYXXMaXTDtLkCYFxW+wNxARK43\n\t\t\tRyJa0Fl01dDhG6KyJbW/lWi6QdFsxG4kFJYrwOE7rPkanC/C90Wtp5Wa40y1vcBIsq3Y2eoKfIHx\n\t\t\tJec7dyaK8AXrm1+4AReyOnEzhdlXZ3O0tItLva8dO3sJ2Xt2OkczF1795tGzNFfhbP7sbM1Xfqcm\n\t\t\tt5Cwf+krP96q97i6lplLXs5Hv/JsMv+lZ7+49Vr+2efPfGnuCzkaooDw/crWuWe3fSkTWzpzM39Z\n\t\t\tJFnR8F97cuByLLltbuBa9tkv5bfO0bovGeCF7LVMfOIy5gLGFvI3MzOdWb2sWJJQDTkTKhPJ+aRm\n\t\t\tf9W4sxo4Tkrri8vOMrSMRURJkQgt7qMzGbzWYCvd9Lxa2yTgW78S+O7exV/3+mujwVdvpqENTNDS\n\t\t\tnvffiaArVoG3PVDi/pK3SfQWLfvqX3hTQZcNidtStUR6epVeTGRqqzFenr7Nzc1m22tqvKH1urpV\n\t\t\tst9Vc9GwwbvIdo4vxWKxiSRO9AX3OxHzXt53+fK+VBzDzhPU5Wpy0gkQBvqmsNLX5g8AfIG+MZ8L\n\t\t\tbK/idvncLo/L6Rp0K+R7vR6flxaGwe6GI0qg6XHX4qDz/ffBHONWfnfQr0SMmVilACxTqsR3uwCv\n\t\t\taoX/BMuHxKQ/cq9imVes6ooItDYwAW0wMhnQq6gLs2lhe5GlaRm6VmBHfmoxOYajdm1jYHdtfgw5\n\t\t\tY+4VNbEKULA6je2xkN0KOW01fUst68UMLm2pVx2hoDaTHFPTruQkJeGFIysJO6tRZ3K+hW2tDl+6\n\t\t\tJNZosSwIuHsOvuD83Lkz2JEZ4xnS+gKFowuZ8k2esxRXhv28RpnOZ8XV3LGjp06eOoXzkc7OzsK/\n\t\t\t3Fdnq7+YeS6x8KWtP8ZZwSLnOb+QvZn54lziS1/MJ6Nf/OJz2cTzXzr3Xy994ZWcWMidzV/el8xc\n\t\t\tu5m9llx4Nn8zn5XszeS3ZhyXs/lr+a9ksje3Jma2ZuF3keLR2WvZm8l92ZsDyUS+N//stplMr74I\n\t\t\trI1UmBEonhGUTErKSmACjCeMWVXzasiZBBSeVHGdNNxNxjkOj8coNOVFw26TWpIWwXcli7591l2s\n\t\t\te64NBd+DB7WQs7Fh8/6iRdyigl5zTlUJOhtZemDoQKmbS0JaIvegPrq3sKGkOlKhaKZRUbdIraro\n\t\t\tkGGtV3O+yzhcw7Vmo+M1YHdIDTerc40MkDVeRBa/XVBidMuYE70K+E4sXI6C5hJofoG4Ny+7F24G\n\t\t\to2B2oxPxWDQuBywQfd1+j99vUxR3MOp2K15svTHpcw763Daf0+nzgSUGW7yEi8hejyfkC3gDg4uu\n\t\t\tUMTlcgF633e63h/0KQHYBwC7fN5VR9EIo8IKozFqlbEonWxAzEhIU7KzzHYOiPaPEZlcnA5hLREF\n\t\t\th2mlN034GwsTh8M0tCgdolH3rWPY7co/5hvzK34bHKoIarvTYsU47ReFRdTcSqzyhkOigRbxNaTC\n\t\t\t1zC0N6wnPqutnUV1L10jlq8Gvgb64mWEL7WCJPgePXIEjS8633cBvkBPqt5G64v0jUUXYqZos5nE\n\t\t\tszkxQOHsWfw+Oi2uTk+/cvw0PMXZ2RywFyh6ZjaTwwXePLVTFs4XK4/Ekm0SsZnAvKvZ3IWLp06+\n\t\t\te1bkPOMScX6GcqqySTnLSAz/y2cSlOucoS6V+QSxF+0v3pCX85jySFltuEJWDzZrRUZZ0UdDBajm\n\t\t\tfOXarZo0lZwX2E0ieZPzk5OY4ZyUCVlaEFqu70pHTZ5XLzVi+D5I2mDwPSgTnvcbna+pQUapFd/l\n\t\t\trPD5g8YZgajxcbPz1fpqlISvMdysB50PmpzvodL01Ub1FlQTGQYFyjXfIUOOlQwjawu4zc0FFBYW\n\t\t\tV9K32XSmWt+2gibPBSwubq6hVyWtAr5gbcETwUf0BHwGAXyDN/ct3Qziii/NFoS742JyIDpfvycA\n\t\t\t8KXgst/r97mBuZMuZxyY63I6vRh29nqDXi9s5wsoPl8al4QHlUGny0nG16eEfC6bx6+ABVbulPJs\n\t\t\tmiRoSnaOBLBPpNblEaEbIGuaFulW4IlpZkI6PJYWlbwBJT2WFjVGITHEFyuJwsLMUqXRmI3AKxpN\n\t\t\tgrsfS4PpbW31R0RilwR8eiwsoswBWi5GfxsaoyXgMQohq02bx4jDIXWYwpjR/qoAVscxgJteGXxr\n\t\t\tBXxFc2f57y2CL8Wcp6m+l6YKAn6vLFyh4bkJjGAsnIudyc3OAXyXLs/pxC0ywbOUVHVs9uy70xhi\n\t\t\tPjuNzle02jh29szsGXC+VEBEpETuYvAa05txGTafkc0gsQYYqAkov3j66PFpgHAuL9Ofic74ldSi\n\t\t\tztS/OYlJWBnKc55LyKZWgFvaXz5D5zgtYUaiV9jeGbWoKKEu1wJViZ95DZ8yj1nGnZPJqYRqfa8K\n\t\t\t80umlq5c1QuM5qXJnZF9tNTrmH51FeFby/B9YLTB4KtRVx/RW8DXEslWBi9czr7qc4oOjRvqdQ8a\n\t\t\t8qv0swLQFvK2cMn3kLHWyDg4YbygdUaJzs3j5imBBcu2Knib9WyqIa2wSM9sLtHmGQH7dsnJCvoq\n\t\t\t79vNpVpxrAK+c/GFpZuXl3DJFzxHIhENLnmDUbiojlaYmkLbOzXlC6ZsrbaA368E3Lj66/b7kK3g\n\t\t\teGMI2zedlG0F5MW1X7/Ho7gUxTcIfncQUPs+dn12wiMVH1YKDw76ArY7wLek8cVl4DDNt6eqH4w8\n\t\t\tp9WeGcBchUqCcIDCWAgnF0WwsGiMYI01RgHMBKP0aFErFI7IELXoSRUe89hstlaAsMeTbk17wn6b\n\t\t\tWgYcwXqjNDzYRr0lEb7YMUst7w3Lob1iL7LJRkTLv2rXcrDCxpEKBH/YIr3MT0td8q1X4fuinGb0\n\t\t\tjiw0wrAzNaISAxWOYJNIML/v3nj3HBjXJDrfhQu06ptZWIjBjzqZyZZxvjMZACUlVlHU+RI63+nc\n\t\t\tGZl7BVdmz+ZmsXwon5mlkQozxu7Os1qTK9EyEiB96eKpU5dEbVJONnQm6uIAhRxlN9McQsAtdnzW\n\t\t\tHi2SseYNzZzF1CSa5TA/L2YJ4uq1tuArEKkWExF+RVlQUl2vlVlVaHIT5HxV83tVYjWpLupmtYKl\n\t\t\tN5Oqx1bXfMlQS/jeedGX4Xs/aAPBt7FP2Fy9nYY5kdm06mukcnnje/6gniklcIoNmNVIcomAtOGi\n\t\t\tEb8F7ZwNHP7dgjojQ5qzsZyoLICHtIG9QyVmJRhWdptLkbm5bJNJ83rvrTbTDc3LaDXwnVhYuOmN\n\t\t\tgesV8J2ILQSDqVg8MZnA3hoUdp6YnIhPBVMLflsrwdcb82BI1u32uXCqr2Kz+b2uSaeCIwfRFrvd\n\t\t\tIXcAWKtgGw74/ic4dTp9Lh88ArmNty7f/rlsN+f2MYwoK3KxNoQZx2nR9wKNKVKW6n8wvwrohnXH\n\t\t\tEWxUFQikiZI0WFDOF/JTRw1asR2ztY750fraWtvbW21hBVgbFinJYgu/KDIKh/yiUgnzr+Q8BZGx\n\t\t\tHI5ooWUanmDss6Gfi4xoaZDFku9YOB2+A3wbCpyvNlBQOl+A79FLlyjtavrokeMv41TBKwK+uYlo\n\t\t\tbGFp6a2lhblcZmIJ4HvzcrZ8q6sMwBfTo4TxRR98htZ9p4m8VOo7OysbXEn8qqu+IuhMowFpLTeL\n\t\t\t8xROX3wlR00lZ2U7Scle+EpQH2h1CLDALJjgRCKXyKvW11jtm6HvmayA8IweexYNNdDXzoORJdeb\n\t\t\tlClXcgE3YezCoTbL0Kp64XtSGF9aAhYZ0FevXlWj1NqKsVrBpDvfBobv/a8NBF9wvnLJdr9G2BLJ\n\t\t\ty6XSrkoQuMQ0ooOEXkPPDL2WyDxPQd4nMFvK8Rqm+B4yrvrqpnd56OpzE0xLuuXbNZflchGR9YTm\n\t\t\tNuOc3jZ9aGCpYLPugFez5hu9efmyxxMH8k7gx9fEQtAbxPYaWHsUo6mC0anoBJ4teWxjit+ddnvj\n\t\t\tS350uW5fyulKpdzeVpvb/eak0y1cbyjkgY18zsFBXOx93wnwfd/5JjbD8ty86fZf9gOzBxVP+V5X\n\t\t\tHeq/JoPjxUznpg4RJ0biksHFSUVavjEyNkQzeyn9OUydmcGfYu1RRJsrSC2cW/0RSVbhgrHpRXur\n\t\t\tH09asQYX13bh9jTmSuP+bQK5mPsMyA5heRHla4kRguqw3jDNKZRW11Twq5YdhdU5DGF16TethO8K\n\t\t\tvgK/NEwBRx9gaw0a4Is9Il86euncuwuXaMk3hvBdWlhaIOu7dNNz+WamfNYVYHF2VkIWvS6hF5eB\n\t\t\t4XJeDPGlzs05sr55Q48r4XzFqizcSRaW+jmLTpJ5EXkWE3vhFM6yAtJiGJLssZGYwLDzvKGfRqYA\n\t\t\tvwK+2XkiqmDwjLqci742KYPOMzN6TrSA52QWW2oQcCcp2IzLLImr8EWPS8CdwN3kpNhIq/1V485X\n\t\t\tJ3FHgHfd+TJ8HwBtQPgahxaZkFti1bdcWdH5IviS7T1QNKXX5HoPmKGtotfUz1mjLtneA8VLveOq\n\t\t\t79UG9pYOOQ+NF7K3JH1Lu1vZw9nYzNnoeYsWfbWQswm5BY99e9XwhQ9mj2diAvOtKN85CH53YiKe\n\t\t\tBPim4rF4FD6/wQJPgYXy2sYwtOxJxS7bbNTdOeacdLk98ZTbg8ON3MRed4A8qJNsrxPR63zTpYDz\n\t\t\tVXwej9/vtvkxXB1wuVpNA30L6Gs8Q/qK2h7qogGnmGVFbaciSkh21qC5Q+mAGPOHdb3oTUVRb4Dq\n\t\t\thMIRxQcnHjE5EFxu+5go/gHetlIfLVs7Gd92P1b3YhkxWtwADexF4NrwqvTL6KOR6QHZdTIsna4M\n\t\t\tQSO3jc43rA44kgHvtLoerKSXr/M15VtV9WE/KwN/33rrrRvYz1ks+Irq3GNiHILMdkb4wg8YvsH6\n\t\t\tzsUWbnpuXl6YyZalL3jfWWzfjNMDAcG5aWF8kb5zOE6BuJunib5501wj6sWcJQjnZX+r2bxMdc7J\n\t\t\tG8j4ihVfYB1tnRXWV7TUSCbmsPw2UWKQkZ5oZbK82hRfdcqRamxl+FkPRKs1vaK5FcI2IXB7VUSh\n\t\t\t5UrwBJUrXZ0XaVjz84ZMafprIpeb66taYcYVw/d+0AaDr3lQ7/5SrC1J3f1GhpYyvuo6rrlbZMED\n\t\t\t5Lm+yGvu4mzkrnbpUImQs7Gk99AyztfgeZuLZ/G+XYzbktdN/FVLetX0qlvaOZy+XbjGW8JQrwK+\n\t\t\tYHCjC959KUQv9rVKYGcrOANbEJ9I0aovJszGYilvMOhp9eBqL8DYgy01vD5l0ukMeuJekM/p8nvc\n\t\t\tQbgjEPIFfApw95/A9ZLzdQGJA4FBn9sdpIxo16Av4vK6W0tHnHXzq005CofE5IS0WNUVs/sC1L5K\n\t\t\tjLPH+6kVRtqTFgFoWvwVtbWBiFjiBWy7MdoMl1uxaoq6OwN4gbdU0ORpb0IKYwYVdpf0R0THZ9iV\n\t\t\th7pY+cO2tN8velWF0mO0yBwIKEpENo9UO2sAY9MRdZzgGDndMbESTLXCYTXjaiysUJrWSuDbIOBL\n\t\t\tuknfb93EvpJv3cBhChh4xoFG02+88QbW5+bOnLl0Jjd7NhGPUqEvKpnPAHwvX765NLEMfSnl+Swm\n\t\t\tNs+KvhrHiLxnZ8/iKi62rMJzMLcad/Na8e2sMJsiLk1WV/BXbYuFF9V5vXKSgpg9OEvzGMD4ovPN\n\t\t\t5+eLOjpnDMN4ZwzMxQqpGX1VN5GYF7VDaqpzUm15pbW/mhcpVlhjdBUdMA0OhJOJycRVMsRXNe5q\n\t\t\ta8hZAHc+99orx4+fBgn4ctj5AdGGgq9pqJGZq2r2c8l+keYbVbCeL8HeA4VI1peDDXFm3fga/G8p\n\t\t\t/qqdNQoWe6XzNV4pJK9exWsYTTRUPu5cKuxcYmPRPKOwwlfGogtt79v6rvR9rcb5ghaAnYkJWeob\n\t\t\tn4xTdyv0wbjmG6dOV7FUKubFFlfoeGPxmJvm+bpSk2BuvS6wtEF3yhkIubHvM/pOtL3/RPHmf8LB\n\t\t\tgz5a+/X53C5MuPIG0j4X5karYedrZtPboQWeO8R0hDRV6lLeMl1I02QDWt6l4bwCkQhjDF/DYAAA\n\t\t\tgABJREFUmnOAFlj0YKYS3bRYtkVk+sNh2xh2Vgbf296K13Fx1w/et6PV72/t6PBjD42QPyKmNlBD\n\t\t\trFBaDmyAx4bT4YhYKcZDCJAnDlDXrLBaVkSrv2G1adZYQeQ5rE4gpM5atPPQSsLO0vm+RaKGzu/Q\n\t\t\txRsXbhymfpJHjx458tIbqGNYjDt35swcEDQHf0phnS8CGK4vIHwvLy3EyweeM/kc9dPAuDPhF9d/\n\t\t\tEaISuzS8CL8yBZrNql9iqKDYDh9IfZzl2i5Fl5NiUC8N9KUJDGJ5F+GbkFW+BvxmtARneYUWmuXK\n\t\t\t77yhr5XWPENriGG6aBgSiDMW4knB2fn5CUp2SGKB8eRkQoJ3Evs+S3pfhT8aXnv39OkXXjgNX+x8\n\t\t\tHyhtLPge3G8MPBdNBiwAbikWnzebXocBpaXssKGB1cEDOnILoGsMNx8yLveKW84XJVqNmzKujNFn\n\t\t\tHbzGDGfTeu/bzeUlHXE5Rou5RXrU+W0dvAWNrMpqNU02ooBWb/BmlJZ8k4nJyQlCLw02SmGzDVz8\n\t\t\tjceCvhiy1xMMKsHURBwMLmYzA3xTTgBw0AN21jkIPPUobgAKJlm9+eabTtKgy4cZz4O+gMvn9IHx\n\t\t\tdSohH5YFe0uv9nYY6Tum9c8gLEbSAV9ADFMQ/lYhfmHzxzT60LQ7rRCAqXdzQKHYNCHPL4qBsI1G\n\t\t\tJNRqa+1otYkBRe1UodvR0draYfOH0j6cTBgW/SWpiRbCNURlxJRXBRT3ywHCNEkilF4MyHxp1fuq\n\t\t\t+VaGVpMSvDLPmrgcCos8sdAqnO9bIuz8Fvjet5beWrpw4QZ2l6RRCkeOvPzySyCwvgK+03COcQzV\n\t\t\t+S4kcrNLCN+bN2/my08XxIRnaqdxBuA7S56XqEuJVviVI+ebNcacxUDfbFadLZid1fArp/hKn5ul\n\t\t\twqIkUjYn0qpm52dl2Hl2Pp+Ym5hLJkuMMspmKfN4JmNcBZ6fUecIzstSIlHDq/nd+fx8UkuvSk7I\n\t\t\t22hheJJWefHWeFwkP89PYbpV8ioFpWlvV+F/gwg4584BehG8+I/h+0BpY8HX1F2jdFVvydTm5bKt\n\t\t\tdNdr7Gd14MBBww36mECDQy60vIcK7K+20nvAMLrIBN1i3zukfxmbaBT1qLqlw3aFZvht+jJX85pa\n\t\t\tOWtbmZ5Af4a3V13ni2u80Vji8s0Y/vWPqE0k4gjcCbgeiwZTwVQ0jhW/qWjKa3OnwAFPxSbiqWDQ\n\t\t\th5p04lQFpzPlcTvjLiXiAT6PBZz/9E8i4Py+cxGg6xrEZlhOtwLb+sAcKy7Fp3i9Hm9HKfR26GMF\n\t\t\tcVU2PaikRQ8rrCwKpJU0jQKkODQwd5DSrOBWJHFAFBX5yLHSEMFBcqUIYn8knR5rReMLTre9tQOd\n\t\t\tL6Y8YxtK4KC/3d0RwrFNsANyvCEPri3DE+MsX+zlEcChC0hu8r3ITYR9ILCYlulTWktndZF3THTT\n\t\t\tGBOLvRFhkKlN5ZjsxkU1UqtY8yXfi85XxJzB9h6+ceXcFexpdZTgexToe+wYhp3PzCGEBXwvLGDW\n\t\t\t1ZlcJrp0k7SUXSbwTAlXOMNIxp7PyhxnGXbOCAuMMeYZg++V5lf8y9OJzKJK0qgjBDFSOCebRybz\n\t\t\t1FND0nee3K7mfOXg3rx5LqB+TV3yTerxZel9EyKVSp1TlJ2f190xDVogd5wUk47Emm+Can4nZcYV\n\t\t\t3nHVEHWez8+de/fcK8ePf+eFF144AV8E3waG7xrVAF+7dl2/fR1Pq3bW777D9rhd/e7G3bt27tq9\n\t\t\t8/rKn2eDwbfU2N5Sk4qW7WZV5G7N4WdDUFlf+DUQ18Dhg0WO11jee6gwx/mQttBrRrA+qLcgu7m5\n\t\t\t2dTDqoC0ek7U0PKO+G3N9hqXfPUEZ43BhZ63xC5XA9+52E1c0r0ci1PQGdAbTwq7S+nOFHmeisdi\n\t\t\tU66UD0gcT8Wi0Qmnz6sEFYCvc9KF3a1osq/TqaSxwaQP2YtfTsp1xuZXeL/iDQOCXQp44wCWHXk9\n\t\t\tSkcJ46uqqWlMzOhF3ynKbdHRLiqYgCzbNcMNgwqObQAGet1yC+CwS0zYTSuDAQoro1cF5wvUtWF2\n\t\t\tVWuHv7213Ub5yn4RAEYKkzdGo5ymeb40lAFuUgLY0QrBHsJlX+riQZY3ouABBMj4FtYVieVdaYbJ\n\t\t\ttmMrEDUlmoqTRNw8vKqEK4o5yzGCN4i9CzhIUDrfl46D8z36xhvTOMd3bg4QmZyQxlckPOcySyp9\n\t\t\tM9mZcu53VtL2LLAxnyMnLO1vXvXAstRIn+mbFSFkid9ZMVdwVsOoSL/Kke+luYKUfCWznWUJMCZc\n\t\t\tYeYBgHhes77zhtOyIm8rHK+oN0pqUWYaUpTMqiMTNEAbwtBIXOSwtLwS2eIuzAyLRqPn5mZnX3sF\n\t\t\t6fsCO9910EN40vBQff3t68DR3bU7C+6/vQthKwh7XZxcf+z6rgZrY23D7qqqnVU78RG778Rr0gaD\n\t\t\tr2GGkYmt5pLesqMTDpjoa6rOLU6/MjbPKOhcdbAQvUa7W5DmXJRopXXX0H2vcXhgAWr1jpHNpi4b\n\t\t\tZSPDhXdIgLaZmft2W2GTDe3OEsw1MH9VzjcWXFiIRbHPBmpyYgKbXSVkpRE2fsY2k9EpVyzlUrxg\n\t\t\tfFOu6ETch/0yXD5cy/U5FbfLOel0xp0pQKA/8KZzUK73+ijdGdl81Yd3+QZd4IEDvojPh8OR3CWD\n\t\t\tzmoTSRqWK5pHImiReABaV0h2m5KpUNQ7I+DD/h0Bmj2EcWOfmPBLsWFPJIzwBVrabGNI3tb2dltT\n\t\t\tu83vjyjpcLiDJhmN4SAGf4gmFolxv3CepoRnDFyj76UmWjTHISLaY4QiwN2Askj1TaGwKdI8RuQd\n\t\t\to0kLosRJtNwwLPmKXlc4Q2mVa77viDXfGxRyPnyF5vheunLpyNGXVL0xfRSdbx7Dz1Fa9L1CBJ7I\n\t\t\tzeaXSAsLUUOvjVIZzwjfMzQUYY5ALJd8ZeyZ2Js1lhplVf6KdVw0vlgVRJ0lkzLbOQfYy4mzpFjZ\n\t\t\tzahonpfpzkk5zJduwrKhvLHeRy3TxfOZrOmq2tDKuOhLuVUE7qvqdmJgr74EPGlo6qz2lZQNNRL5\n\t\t\t/Jlz587MYdw8O/saON8TuvNl+K5NgFd4B3fveuj69dvvvVcFJDXdvft2wfaPwTdGG+prwfr27NpV\n\t\t\tS1ut5Jk2FHzV1s4mQ7vfjNn9ZS7rqcolTLAEs5G4usM1B5eLJxcd0DpY6QVGhshzIX7VVCtD6FmQ\n\t\t\tt7CuqLiF89slK46GSpNXTYgmP1uql6TIubplHq7Q3PZ2AbULnq1xNWu+6I2WYktesLgJgV9MsZpA\n\t\t\t0xRLRanuCBtdpbCVs5JKTaWmYgmXL+QJAEgxjuxLuT0+RC8A2OdH9i663nS+ifT1oSFWFNjISUOP\n\t\t\tFAxAg2GGB+JwJH+TsdjIaHs72kXPSFrZRZ8pZwMuKrJts7gDiOijaDNYbngCzLcKBHyhgCIsrOg1\n\t\t\tiRN5/SGPPwzktWHIud3T2gSXbGOhsXCr3+v3jwFzx+AZx7AHlkxwxsaUYdqJggvNmOcVwKbQIZEu\n\t\t\tLeb4IpEVhULHos0zxp5l38iQiDxTcRHWGctyo7A6RSksiRxeUZ0vlfkK54u29x1pfBcOq8b30qWj\n\t\t\tLx3BsPPLL2GDyeiZ6Bl0vujbopdi5+DPp+iZM7l8JkozBmMLsYnMMhnP8JWhCHP+zBmq9sXmVmro\n\t\t\tGQPMxRlXsxK/6HllNW6GuJpMihFGVHRE9M0ncolEIk8TgaktB+KZPDDl/ImGk8msWJ3FblUyCpw0\n\t\t\t0lU1r9IXzxvymfNiqsKExlPB14TkrO6LS2pS7mTutVcwufn48ddeO3bsleMvqEL4rqi/JMO3jB56\n\t\t\taNf123jW0PDQrttf/tmX36sqpO1usLX4TUnluxooyl/fULv7vV3XN9n7r8ttVvJkGwy+an/Jou4a\n\t\t\tBTHm0o2eC8cRFdTsmhBbDF1DeZGJsocOGNFrukz4PW9Cr1bdq41R0Exv8Tze5oLJCaZBgUNFxUcC\n\t\t\tv20lbLFG3DJ21+x8S4D9rgYrxJaCsdjS0mUc4ptIxhNUZYT5VthXI4ZB5mhsKRak/lSBVHwqijHo\n\t\t\toK9dCXtw0RfscMrvcbtSKdeky+lyu990yvpeJzbWcJI9BiIqHo8fzDLAN6RMDioBv8vtb21q0hOs\n\t\t\txGqvFLVPTot0YIwlyzIiIB1wlmYZhCnhinKh0ujCvW63N0A2WNYZiakJlODsD9sC6TEblvNiwBkc\n\t\t\td3u72427bfXbWjvasWcksDWihH0+WiJG3IeofTQcw2BYNKFM00qvNhkBWYutPtJUyCTmEVKTjTCN\n\t\t\tERahZfGltqAUyA2LGcTUmwN4Pxi5M3zrdfgK9r4j8pxxlO85gd4jR4++Qbb35SMvXwGjG8N2zrTm\n\t\t\tG6XmzjH8Qc7lsnmkL34tJJdJeUbIniH+np2j5lbS82YRuSLnSofvjOp987LUN0MZV1lZQCRjzKLq\n\t\t\tCCuN0P9Kgyuzp4RZBtrC335zmHxMHTASqLwow51IyFmAeGciITKiRPy4IDCt9WI2lBfJOQkiKUuE\n\t\t\toue17Qwcx6Vi6hSdTL72ynHKsHqBUpzFhYsvnIIvhu9aVf/Q7tu3ib4PPfbeP//8Hz/ccrt4ERd8\n\t\t\tcf3ueloZbkDTuwtXha9fvz507drD13dW4SYM38LfONNAhXIGd7l+klrbqgPGtlWGqURFMuQzF6O4\n\t\t\twPQWlBgdMqG3ZGvJ0q7XzN0S+DW23XjbGFrWqatO62025lXd0gH8tm54b8kGk7eMXTaKV3ul4V6N\n\t\t\t841Fg7HogvfyTW9sIop1oeh/40Fc/AUvjOZ3KhaMBYM+9K6+VGwqmoqnvIrfB2YTbG8Q8Gpze1w+\n\t\t\tzGSeTHmcrsE34WanL43zFFxY3/umD9xu2m/z2wI+zHv2OQHIitPvaRelRKYkK+zkPBZYBP8qhdCl\n\t\t\tZhfYwYqICpews1VIZCPDvQBfd3Ah7Q64BY/TgbDo5hzBlhqIQWxo1TrWgYu97R5bezsQ2IMJXG6s\n\t\t\t8MXxCRHsWBlWaGSg6Mwh4s1YJYyJ04GAXGSWg3vFlCMJ47GQoneNVAcWycYbdOsYRZvpRLR3DsnE\n\t\t\t50hgcXEF8DU6X8y1ojIjwV5pey8Be0EvAYCPXDlMQeZobjaPHa6AtCLqvBAD+grru7QQxOG+5b0v\n\t\t\tut45TFvGdKv87BwV/mKwWS74zs5ltOG66qKvMfF5VpAVzoC5CVlmlANLm0MjnBT0Fc058sRXRDFC\n\t\t\tNo515cmJaDwZp6yDeDwxT8VuExNgZZOUioCV53ABk7NU+s4YVofnZSrWvGm00fzkpKHvRjJrtMVZ\n\t\t\t86VsNnHuOyK1GePMJO2CBt96hu9dCv3u7V0Yc951+2f/+POff/jP7902gvQhIO+u2nqcxltPM3ml\n\t\t\trj9c8/S1fdfadl7fxWu+JX/jjNnOwtvuL4HeMiHnMpOJDpTDbgkKlxoYWLTuq/fVKI47HzJnWunL\n\t\t\tvYaJveUnBr5djF6juW0zJEypxUOFceYi3VrO9xZiuG11zje+gNbIC5/Hly8H6eOOEmSjWHgEH4Kx\n\t\t\teCo+GU8Foy6XEnJ5U6mpqanYVDzo9fsCXiW16Ha5UorHH8TezQBUn+JSXM7BgGswoDjxoi+SxsAz\n\t\t\tGF/sauH1KQBfgLMy6HN6/ZrdNbaRpGZWOLJeocVX6XkFhNNYVBtWIgExShD5G0grIY9nye0N4kgl\n\t\t\tL1CeqosCouMkNnkMjVGX5lacCNzu7/D42zsw/Oz3p/F2BLENUIzDeNMKTSwKhWUutWhbiYjFGmPp\n\t\t\tpdUeG+I+ZGxaIlks9aZFsa9adhQRWdCyKxYdUFh0pQYMhxYHFbiwGud7kyLPby2JXGcdvm8cEfh9\n\t\t\t4w2Eb1DAd3YuGvNppUZI39xs0ufzLQSD2MF7mWXfvERtPi+rhrC9FaFXO8mUFrpj/KLgc0aLKsu4\n\t\t\tM3pfHK8gOzej8U2KpV7R2jkZxb/+RK4BXopF5+MYe8E1EAzFRGncRwpXRpKJGIZp5rU+kzMZarhh\n\t\t\trk+a10LSss/VxOR8UqIX7rlKUeZJYwdnKi2iwqLvnNC4e+qFF16Fk1dPvHqRne+a1QDYvH19Zx+w\n\t\t\t9+egj35x2+hir+96rLZq506gLhjd67fxpPqZP/7heP/mp77+1Ncf78dULErRYvgW/sbtl+nORawt\n\t\t\tTr4ql3JViOASSVaHSuPVpN/VM5wPmTZUu2oU51up1UamQqPSvtdYWlTS8r6t971Se1aJS7eMLaya\n\t\t\tS1HW4H7NjSUN5C2fN922qsEKYIzgg23Ju4CR54koJTrDLVFscJVM4kSjYCwVxHmAEZ+SQvLiaN8p\n\t\t\tBYcGegfd2CnS748pzpQTW2iAXIO+QV8o7XJOgv8NYYIzbOr2g/P1A3ydk4NOp+IG8+v26OAFCrc3\n\t\t\tEXk7xiT0wrSCmw65lICYFUiLrqG0GCYYIYtLjSYDbrfHS50t4TvtDsE/MXoI5/VhnHfMbxtrbW9F\n\t\t\t9gJlsc7IhvD1eEKekNvW2upvtXkoQWuRbG8ImzeHaJmZphCm5fHgMwoDS8nLNC8YU6NpYVnNnxqT\n\t\t\tc45ka6uwHOor+lGS51XHGWFsevF9BeuUVu18RZ3R4cOyxvcIDRI8gmnOx469cYmCzgsLZwB1iWjK\n\t\t\tt+AD7ProayGWy2VivoUlwK8PNpopH3jOYH/m2bysK8rIplVZdL1ZSeZi7CJz1QFHwgxTyw3Z21n0\n\t\t\tnaQKYZHgTDFnteGkKAJO0O9eLBpPxeAPvxh1Nk1im9NYKhlL4a9nnFAcRfAmaBmXosrYckPNlSLg\n\t\t\t4rSi7OSEviCcNThdPdCsli8ZBhBmszlMbP7OC8cFdy8id9H3wil8v8rOd62CX2c8u3779j9/9NFH\n\t\t\tv/zFLz7659sNhvsf2n19JyL3+sN1b5/vf/rjjz/e3HLt8WtPffLUtcdbzsN9otSInW/Rb5za07nA\n\t\t\t8hbTuCAyXTihyNg3g64XutpDhdg9VJrBRY/Q2Xtof79kcKHv1fKbzZ01zHMDh+6gZiN6l1nANZXz\n\t\t\tqjw2g/gWkPhtA4VlsNoEdt0Rrwa+mIkzEUenFAwuxRPU0ArzcdACg69IpTDrOYVJUiHFGwTjG52a\n\t\t\tisdSAVfaFVTAD6ecbvdlL15S0j
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Generation time: 3.09 |
proxy
|
phpinfo
|
Settings