Plugin Directory

Changeset 3323422


Ignore:
Timestamp:
07/07/2025 10:36:27 AM (8 months ago)
Author:
makecommerce
Message:

Release 4.0.4

Location:
makecommerce/trunk
Files:
21 edited

Legend:

Unmodified
Added
Removed
  • makecommerce/trunk/README.txt

    r3318735 r3323422  
    44Requires at least: 6.8.1
    55Tested up to: 6.8.1
    6 Stable tag: 4.0.3
     6Stable tag: 4.0.4
    77Requires PHP: 8.1
    88License: GPLv2 or later
     
    6060
    6161== Changelog ==
     62
     63= 4.0.4 2025-07-07 =
     64* Feature - Sync credentials between legacy and Shipping+
     65* Tweak - Change credentials on the payments only page
     66* Tweak - Support WordPress installations hosted in subfolders
     67* Fix - Do not add shipping info to emails, if not MakeCommerce's shipments
    6268
    6369= 4.0.3 2025-06-26 =
  • makecommerce/trunk/api/api.php

    r3318735 r3323422  
    563563            'mc_test_secret_key' => 'mk_test_private_key',
    564564            'mc_test_public_key' => 'mk_test_public_key',
    565             'mc_api_mode' => 'mk_api_mode',
     565            'mc_api_mode' => 'mk_api_type',
    566566        ];
    567567
    568568        foreach ($migration_map as $new_key => $old_key) {
    569             $new_value = get_option($new_key, null);
    570569            $old_value = get_option($old_key, null);
    571570
    572             if (($new_value === '' || $new_value === null) && $old_value !== null && $old_value !== '') {
     571            if ($old_value !== null) {
    573572                update_option($new_key, $old_value);
    574573            }
  • makecommerce/trunk/config.php

    r3318735 r3323422  
    1111 * Start at version 3.0.0 and use SemVer - https://semver.org
    1212 */
    13 define( 'MAKECOMMERCE_VERSION', '4.0.3' );
     13define( 'MAKECOMMERCE_VERSION', '4.0.4' );
    1414define( 'MAKECOMMERCE_PLUGIN_ID', 'makecommerce' );
    1515
  • makecommerce/trunk/makecommerce.php

    r3318735 r3323422  
    99 * Plugin URI:            https://makecommerce.net/
    1010 * Description:           Adds MakeCommerce payment gateway and shipping methods to WooCommerce checkout
    11  * Version:               4.0.3
     11 * Version:               4.0.4
    1212 * Author:                Maksekeskus AS
    1313 * Author URI:            https://makecommerce.net/
  • makecommerce/trunk/makecommerce/admin/css/iframe.css

    r3313138 r3323422  
    44    height: calc(100vh - 32px);
    55    overflow: hidden !important;
     6}
     7
     8@media (max-height: 850px) {
     9    #wpcontent {
     10        overflow: auto !important;
     11    }
    612}
    713
  • makecommerce/trunk/makecommerce/admin/dashboard.php

    r3318735 r3323422  
    138138                'newInstall' => $this->is_new_install()
    139139            ]);
     140        } else if ($this->checkApiCredentials()){
     141            // if user has prefilled credentials, then render iframe
     142            $this->render_shipping_configuration_iframe();
    140143        } else {
    141144            $this->render_template('credentials.twig');
     
    154157    function render_payments_only_page()
    155158    {
     159        $this->render_template('credentialsPopup.twig', ['render_footer' => false]);
    156160        $this->render_template('onlyPayments.twig', [
    157161            'configure_url' =>  admin_url('admin.php?page=' . self::CONF_SLUG)
     
    187191    public function render_shipping_configuration_iframe()
    188192    {
     193        if (!$this->checkApiCredentials()){
     194            $this->render_template('credentials.twig');
     195            return;
     196        }
     197
    189198        $shipping = get_option('mc_shipping', 'off');
    190199        $payments = get_option('mc_payments', 'off');
     
    197206                    $_SERVER['HTTP_USER_AGENT'] ?? 'unknown',
    198207                        get_site_url() ?? $_SERVER['REMOTE_ADDR'],
    199                     get_site_url() . '/wp-admin/post.php?post={id}&action=edit'
     208                        admin_url( 'post.php?post={id}&action=edit' )
    200209                );
    201210
     
    258267    private function switch_to_old_plugin(){
    259268        update_option('mc_shipping_plus', 'no');
     269        $this->mc_creds_migration();
    260270        wp_redirect(admin_url('admin.php?page=wc-settings&tab=advanced&section=mk_api'));
    261271        exit;
     272    }
     273
     274    /**
     275     * Run credentials migration when 'mc_shipping_plus' is turned off
     276     * This is run to have compatible credentials on the old module as well
     277     * @return void
     278     */
     279    private function mc_creds_migration(): void
     280    {
     281        $migration_map = [
     282            'mc_shop_id' => 'mk_shop_id',
     283            'mc_secret_key' => 'mk_private_key',
     284            'mc_public_key' => 'mk_public_key',
     285            'mc_test_shop_id' => 'mk_test_shop_id',
     286            'mc_test_secret_key' => 'mk_test_private_key',
     287            'mc_test_public_key' => 'mk_test_public_key',
     288            'mc_api_mode' => 'mk_api_type',
     289        ];
     290
     291        foreach ($migration_map as $new_key => $old_key) {
     292            $new_value = get_option($new_key, null);
     293
     294            if ($new_value !== null && $new_value !== '') {
     295                // set old plugins credentials to new plugins ones
     296                update_option($old_key, $new_value);
     297            }
     298        }
    262299    }
    263300
     
    306343        }
    307344
    308         try {
    309             $client = $this->get_client();
    310             $client->connectShop(
    311                 $_SERVER['HTTP_USER_AGENT'] ?? 'unknown',
    312                 get_site_url() ?? $_SERVER['REMOTE_ADDR'],
    313                 get_site_url() . '/wp-admin/post.php?post={id}&action=edit'
    314             );
    315             update_option('mc_credentials_error', '');
    316         } catch (\Exception $e) {
    317             $label = $api_mode === 'test' ? __('Sandbox', 'wc_makecommerce_domain') : __('Live', 'wc_makecommerce_domain');
    318             update_option('mc_credentials_error',
    319                 sprintf(
    320                     /* translators: %s: Environment name */
    321                     __('Unable to verify %s credentials', 'wc_makecommerce_domain'), $label)
    322             );
    323         }
    324 
    325         // When credentials correctly submitted, update banklinks
    326         \MakeCommerce\Payment::update_banklinks();
     345        if($this->checkApiCredentials()){
     346            // When credentials correctly submitted, update banklinks
     347            \MakeCommerce\Payment::update_banklinks();
     348        }
    327349        wp_redirect(admin_url('admin.php?page=' . self::DASHBOARD_SLUG));
    328350        exit;
     
    359381    public function enqueue_dashboard_scripts($hook)
    360382    {
    361         if ($hook === 'toplevel_page_makecommerce_dashboard') {
     383        if ($hook === 'toplevel_page_makecommerce_dashboard' || $hook === 'admin_page_makecommerce_payments_only') {
    362384            wp_enqueue_style('makecommerce-iframe-style', "https://static.maksekeskus.ee/modules/woocommerce/css/iframe.css");
    363385            wp_enqueue_script('bootstrap-bundle', plugin_dir_url(__DIR__) . 'assets/bootstrap.bundle.min.js', [], '5.3.3', true);
    364             wp_enqueue_script('mc-shop-credentials', plugin_dir_url(__FILE__) . 'js/mc-shop-credentials.js', ['bootstrap-bundle'], null, true);
     386            wp_enqueue_script('mc-shop-credentials', "https://static.maksekeskus.ee/modules/woocommerce/js/mc-shop-credentials.js", ['bootstrap-bundle'], null, true);
    365387            wp_enqueue_script('mc-module-config', plugin_dir_url(__FILE__) . 'js/mc-module-config.js', ['bootstrap-bundle'], null, true);
    366388            wp_enqueue_script('mc-iframe-height', plugin_dir_url(__FILE__) . 'js/mc-iframe-height.js', [], null, true);
     
    407429
    408430        return ( $shipping === 'on' || $payments === 'on' )
    409             && ( $shop_id || $public_key || $secret_key );
     431            && ( $shop_id && $public_key && $secret_key );
    410432    }
    411433
     
    413435        return get_option('makecommerce_install_status', 'upgrade') === 'new_install';
    414436    }
     437
     438    private function checkApiCredentials(): bool
     439    {
     440        try {
     441            $client = $this->get_client();
     442            $client->connectShop(
     443                $_SERVER['HTTP_USER_AGENT'] ?? 'unknown',
     444                get_site_url() ?? $_SERVER['REMOTE_ADDR'],
     445                    admin_url( 'post.php?post={id}&action=edit' )
     446            );
     447            update_option('mc_credentials_error', '');
     448            return true;
     449        } catch (\Exception $e) {
     450            $label = $this->api_mode === 'test' ? __('Sandbox', 'wc_makecommerce_domain') : __('Live', 'wc_makecommerce_domain');
     451            update_option('mc_credentials_error',
     452                sprintf(
     453                /* translators: %s: Environment name */
     454                    __('Unable to verify %s credentials', 'wc_makecommerce_domain'), $label)
     455            );
     456            return false;
     457        }
     458    }
    415459}
  • makecommerce/trunk/makecommerce/admin/js/mc-shop-credentials.js

    r3313138 r3323422  
    1313    }
    1414}, false);
     15
     16document.getElementById('mc-shop-credentials')?.addEventListener('click', function () {
     17    let myModal = new bootstrap.Modal(document.getElementById('makecommerceCredentialsModal'));
     18    myModal.show();
     19});
  • makecommerce/trunk/makecommerce/admin/templates/onlyPayments.twig

    r3313138 r3323422  
    1616                </a>
    1717            </div>
     18            <div>
     19                <button
     20                        type="button"
     21                        id="mc-shop-credentials"
     22                        class="p-0 m-0 align-baseline"
     23                        style="font-size: 0.9rem; text-decoration: underline; background: none; border: none; color: #0d6efd; cursor: pointer;">
     24                    {{ __('Shop credentials', 'wc_makecommerce_domain') }}
     25                </button>
     26            </div>
    1827        </div>
    1928    </div>
  • makecommerce/trunk/makecommerce/includes/makecommerce.php

    r3313138 r3323422  
    319319    public static function get_sdk_config() {
    320320        $conf = [
    321             "module"         => "MakeCommerce",
    322             "module_version" => MAKECOMMERCE_VERSION,
    323             "platform"       => "WooCommerce",
     321            "module"           => "MakeCommerce",
     322            "module_version"   => MAKECOMMERCE_VERSION,
     323            "platform"         => "WooCommerce",
     324            "hpos_enabled"     => filter_var( get_option( 'woocommerce_custom_orders_table_enabled' ), FILTER_VALIDATE_BOOLEAN ),
     325            "payments_enabled" => filter_var( get_option( 'mc_payments' ), FILTER_VALIDATE_BOOLEAN ),
     326            "shipping_enabled" => filter_var( get_option( 'mc_shipping' ), FILTER_VALIDATE_BOOLEAN )
    324327        ];
    325328
  • makecommerce/trunk/makecommerce/makecommerce.php

    r3318735 r3323422  
    1111 * Start at version 3.0.0 and use SemVer - https://semver.org
    1212 */
    13 define( 'MAKECOMMERCE_VERSION', '4.0.3' );
     13define( 'MAKECOMMERCE_VERSION', '4.0.4' );
    1414define( 'MAKECOMMERCE_PLUGIN_ID', 'makecommerce' );
    1515
  • makecommerce/trunk/makecommerce/payment/gateway/woocommerce/woocommerce.php

    r3318735 r3323422  
    1313    public $id = MAKECOMMERCE_PLUGIN_ID;
    1414
    15     public $version = '4.0.3';
     15    public $version = '4.0.4';
    1616   
    1717    public $payment_return_url;
  • makecommerce/trunk/makecommerce/shipping/blocks/build/index.asset.php

    r3318735 r3323422  
    1 <?php return array('dependencies' => array('react', 'react-dom', 'wc-blocks-checkout', 'wc-settings', 'wp-data', 'wp-element', 'wp-hooks'), 'version' => '7b48c3615d79a97e6dbe');
     1<?php return array('dependencies' => array('react', 'react-dom', 'wc-blocks-checkout', 'wc-settings', 'wp-data', 'wp-element', 'wp-hooks'), 'version' => '95a053c03fe9e1a22f72');
  • makecommerce/trunk/makecommerce/shipping/blocks/build/index.js

    r3318735 r3323422  
    1 (()=>{"use strict";var e={20:(e,t,n)=>{var o=n(609),r=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var o,u={},c=null,l=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)i.call(t,o)&&!s.hasOwnProperty(o)&&(u[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===u[o]&&(u[o]=t[o]);return{$$typeof:r,type:e,key:c,ref:l,props:u,_owner:a.current}}t.jsx=u,t.jsxs=u},146:(e,t,n)=>{var o=n(363),r={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},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return o.isMemo(e)?a:s[e.$$typeof]||r}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(h){var r=f(n);r&&r!==h&&e(t,r,o)}var a=l(n);p&&(a=a.concat(p(n)));for(var s=u(t),m=u(n),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||o&&o[g]||m&&m[g]||s&&s[g])){var b=d(n,g);try{c(t,g,b)}catch(e){}}}}return t}},363:(e,t,n)=>{e.exports=n(799)},609:e=>{e.exports=window.React},799:(e,t)=>{var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=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,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case l:case p:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case d:case v:case m:case u:return e;default:return t}}case r:return t}}}function C(e){return O(e)===p}t.AsyncMode=l,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=u,t.Element=o,t.ForwardRef=d,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=r,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return C(e)||O(e)===l},t.isConcurrentMode=C,t.isContextConsumer=function(e){return O(e)===c},t.isContextProvider=function(e){return O(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return O(e)===d},t.isFragment=function(e){return O(e)===i},t.isLazy=function(e){return O(e)===v},t.isMemo=function(e){return O(e)===m},t.isPortal=function(e){return O(e)===r},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===a},t.isSuspense=function(e){return O(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===g)},t.typeOf=O},848:(e,t,n)=>{e.exports=n(20)}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}const o=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"makecommerce/mc-shipping-blocks","version":"0.1.0","title":"MakeCommerce Shipping+ Blocks","category":"woocommerce","parent":["woocommerce/checkout-shipping-methods-block"],"textdomain":"mc-shipping-blocks","attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"editorScript":"file:./build/index.js"}'),r=window.wc.blocksCheckout,i=window.wp.element,a=window.wp.data,s=window.wc.wcSettings;function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}function l(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function h(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);u=!0);}catch(e){c=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var g=n(609),b=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},y.apply(null,arguments)}function w(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,c(o.key),o)}}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S=function(){return!!e})()}function x(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var k=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),I=Math.abs,E=String.fromCharCode,M=Object.assign;function P(e){return e.trim()}function V(e,t,n){return e.replace(t,n)}function R(e,t){return e.indexOf(t)}function D(e,t){return 0|e.charCodeAt(t)}function L(e,t,n){return e.slice(t,n)}function F(e){return e.length}function T(e){return e.length}function A(e,t){return t.push(e),e}var _=1,H=1,j=0,$=0,N=0,U="";function z(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:_,column:H,length:a,return:""}}function B(e,t){return M(z("",null,null,"",null,null,0),e,{length:-e.length},t)}function W(){return N=$>0?D(U,--$):0,H--,10===N&&(H=1,_--),N}function G(){return N=$<j?D(U,$++):0,H++,10===N&&(H=1,_++),N}function Y(){return D(U,$)}function X(){return $}function q(e,t){return L(U,e,t)}function J(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function K(e){return _=H=1,j=F(U=e),$=0,[]}function Z(e){return U="",e}function Q(e){return P(q($-1,ne(91===e?e+2:40===e?e+1:e)))}function ee(e){for(;(N=Y())&&N<33;)G();return J(e)>2||J(N)>3?"":" "}function te(e,t){for(;--t&&G()&&!(N<48||N>102||N>57&&N<65||N>70&&N<97););return q(e,X()+(t<6&&32==Y()&&32==G()))}function ne(e){for(;G();)switch(N){case e:return $;case 34:case 39:34!==e&&39!==e&&ne(N);break;case 40:41===e&&ne(e);break;case 92:G()}return $}function oe(e,t){for(;G()&&e+N!==57&&(e+N!==84||47!==Y()););return"/*"+q(t,$-1)+"*"+E(47===e?e:G())}function re(e){for(;!J(Y());)G();return q(e,$)}var ie="-ms-",ae="-moz-",se="-webkit-",ue="comm",ce="rule",le="decl",pe="@keyframes";function de(e,t){for(var n="",o=T(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function fe(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case le:return e.return=e.return||e.value;case ue:return"";case pe:return e.return=e.value+"{"+de(e.children,o)+"}";case ce:e.value=e.props.join(",")}return F(n=de(e.children,o))?e.return=e.value+"{"+n+"}":""}function he(e){return Z(me("",null,null,null,[""],e=K(e),0,[0],e))}function me(e,t,n,o,r,i,a,s,u){for(var c=0,l=0,p=a,d=0,f=0,h=0,m=1,v=1,g=1,b=0,y="",w=r,O=i,C=o,S=y;v;)switch(h=b,b=G()){case 40:if(108!=h&&58==D(S,p-1)){-1!=R(S+=V(Q(b),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=Q(b);break;case 9:case 10:case 13:case 32:S+=ee(h);break;case 92:S+=te(X()-1,7);continue;case 47:switch(Y()){case 42:case 47:A(ge(oe(G(),X()),t,n),u);break;default:S+="/"}break;case 123*m:s[c++]=F(S)*g;case 125*m:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+l:-1==g&&(S=V(S,/\f/g,"")),f>0&&F(S)-p&&A(f>32?be(S+";",o,n,p-1):be(V(S," ","")+";",o,n,p-2),u);break;case 59:S+=";";default:if(A(C=ve(S,t,n,c,l,r,s,y,w=[],O=[],p),i),123===b)if(0===l)me(S,t,C,C,w,i,p,s,O);else switch(99===d&&110===D(S,3)?100:d){case 100:case 108:case 109:case 115:me(e,C,C,o&&A(ve(e,C,C,0,0,r,s,y,r,w=[],p),O),r,O,p,s,o?w:O);break;default:me(S,C,C,C,[""],O,0,s,O)}}c=l=f=0,m=g=1,y=S="",p=a;break;case 58:p=1+F(S),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==W())continue;switch(S+=E(b),b*m){case 38:g=l>0?1:(S+="\f",-1);break;case 44:s[c++]=(F(S)-1)*g,g=1;break;case 64:45===Y()&&(S+=Q(G())),d=Y(),l=p=F(y=S+=re(X())),b++;break;case 45:45===h&&2==F(S)&&(m=0)}}return i}function ve(e,t,n,o,r,i,a,s,u,c,l){for(var p=r-1,d=0===r?i:[""],f=T(d),h=0,m=0,v=0;h<o;++h)for(var g=0,b=L(e,p+1,p=I(m=a[h])),y=e;g<f;++g)(y=P(m>0?d[g]+" "+b:V(b,/&\f/g,d[g])))&&(u[v++]=y);return z(e,t,n,0===r?ce:s,u,c,l)}function ge(e,t,n){return z(e,t,n,ue,E(N),L(e,2,-2),0)}function be(e,t,n,o){return z(e,t,n,le,L(e,0,o),L(e,o+1,-1),o)}var ye=function(e,t,n){for(var o=0,r=0;o=r,r=Y(),38===o&&12===r&&(t[n]=1),!J(r);)G();return q(e,$)},we=new WeakMap,Oe=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||we.get(n))&&!o){we.set(e,!0);for(var r=[],i=function(e,t){return Z(function(e,t){var n=-1,o=44;do{switch(J(o)){case 0:38===o&&12===Y()&&(t[n]=1),e[n]+=ye($-1,t,n);break;case 2:e[n]+=Q(o);break;case 4:if(44===o){e[++n]=58===Y()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=E(o)}}while(o=G());return e}(K(e),t))}(t,r),a=n.props,s=0,u=0;s<i.length;s++)for(var c=0;c<a.length;c++,u++)e.props[u]=r[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Ce=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Se(e,t){switch(function(e,t){return 45^D(e,0)?(((t<<2^D(e,0))<<2^D(e,1))<<2^D(e,2))<<2^D(e,3):0}(e,t)){case 5103:return se+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return se+e+ae+e+ie+e+e;case 6828:case 4268:return se+e+ie+e+e;case 6165:return se+e+ie+"flex-"+e+e;case 5187:return se+e+V(e,/(\w+).+(:[^]+)/,se+"box-$1$2"+ie+"flex-$1$2")+e;case 5443:return se+e+ie+"flex-item-"+V(e,/flex-|-self/,"")+e;case 4675:return se+e+ie+"flex-line-pack"+V(e,/align-content|flex-|-self/,"")+e;case 5548:return se+e+ie+V(e,"shrink","negative")+e;case 5292:return se+e+ie+V(e,"basis","preferred-size")+e;case 6060:return se+"box-"+V(e,"-grow","")+se+e+ie+V(e,"grow","positive")+e;case 4554:return se+V(e,/([^-])(transform)/g,"$1"+se+"$2")+e;case 6187:return V(V(V(e,/(zoom-|grab)/,se+"$1"),/(image-set)/,se+"$1"),e,"")+e;case 5495:case 3959:return V(e,/(image-set\([^]*)/,se+"$1$`$1");case 4968:return V(V(e,/(.+:)(flex-)?(.*)/,se+"box-pack:$3"+ie+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+se+e+e;case 4095:case 3583:case 4068:case 2532:return V(e,/(.+)-inline(.+)/,se+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(F(e)-1-t>6)switch(D(e,t+1)){case 109:if(45!==D(e,t+4))break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+ae+(108==D(e,t+3)?"$3":"$2-$3"))+e;case 115:return~R(e,"stretch")?Se(V(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==D(e,t+1))break;case 6444:switch(D(e,F(e)-3-(~R(e,"!important")&&10))){case 107:return V(e,":",":"+se)+e;case 101:return V(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(45===D(e,14)?"inline-":"")+"box$3$1"+se+"$2$3$1"+ie+"$2box$3")+e}break;case 5936:switch(D(e,t+11)){case 114:return se+e+ie+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+ie+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+ie+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+ie+e+e}return e}var xe=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case le:e.return=Se(e.value,e.length);break;case pe:return de([B(e,{value:V(e.value,"@","@"+se)})],o);case ce:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return de([B(e,{props:[V(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return de([B(e,{props:[V(t,/:(plac\w+)/,":"+se+"input-$1")]}),B(e,{props:[V(t,/:(plac\w+)/,":-moz-$1")]}),B(e,{props:[V(t,/:(plac\w+)/,ie+"input-$1")]})],o)}return""}))}}],ke=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,r,i=e.stylisPlugins||xe,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var u,c,l,p,d=[fe,(p=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],f=(c=[Oe,Ce].concat(i,d),l=T(c),function(e,t,n,o){for(var r="",i=0;i<l;i++)r+=c[i](e,t,n,o)||"";return r});r=function(e,t,n,o){u=n,de(he(e?e+"{"+t.styles+"}":t.styles),f),o&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new k({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:r};return h.sheet.hydrate(s),h},Ie=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},Ee={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Me(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Pe=/[A-Z]|^ms/g,Ve=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Re=function(e){return 45===e.charCodeAt(1)},De=function(e){return null!=e&&"boolean"!=typeof e},Le=Me((function(e){return Re(e)?e:e.replace(Pe,"-$&").toLowerCase()})),Fe=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ve,(function(e,t,n){return Ae={name:t,styles:n,next:Ae},t}))}return 1===Ee[e]||Re(e)||"number"!=typeof t||0===t?t:t+"px"};function Te(e,t,n){if(null==n)return"";var o=n;if(void 0!==o.__emotion_styles)return o;switch(typeof n){case"boolean":return"";case"object":var r=n;if(1===r.anim)return Ae={name:r.name,styles:r.styles,next:Ae},r.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Ae={name:a.name,styles:a.styles,next:Ae},a=a.next;return i.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=Te(e,t,n[r])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?o+=i+"{"+t[s]+"}":De(s)&&(o+=Le(i)+":"+Fe(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var u=Te(e,t,a);switch(i){case"animation":case"animationName":o+=Le(i)+":"+u+";";break;default:o+=i+"{"+u+"}"}}else for(var c=0;c<a.length;c++)De(a[c])&&(o+=Le(i)+":"+Fe(i,a[c])+";")}return o}(e,t,n);case"function":if(void 0!==e){var s=Ae,u=n(e);return Ae=s,Te(e,t,u)}}var c=n;if(null==t)return c;var l=t[c];return void 0!==l?l:c}var Ae,_e=/label:\s*([^\s;{]+)\s*(;|$)/g;function He(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,r="";Ae=void 0;var i=e[0];null==i||void 0===i.raw?(o=!1,r+=Te(n,t,i)):r+=i[0];for(var a=1;a<e.length;a++)r+=Te(n,t,e[a]),o&&(r+=i[a]);_e.lastIndex=0;for(var s,u="";null!==(s=_e.exec(r));)u+="-"+s[1];var c=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+u;return{name:c,styles:r,next:Ae}}var je,$e,Ne=!!g.useInsertionEffect&&g.useInsertionEffect,Ue=Ne||function(e){return e()},ze=(Ne||g.useLayoutEffect,g.createContext("undefined"!=typeof HTMLElement?ke({key:"css"}):null)),Be=(ze.Provider,function(e){return(0,g.forwardRef)((function(t,n){var o=(0,g.useContext)(ze);return e(t,o,n)}))}),We=g.createContext({}),Ge={}.hasOwnProperty,Ye="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Xe=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return Ie(t,n,o),Ue((function(){return function(e,t,n){Ie(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(t,n,o)})),null},qe=Be((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var r=e[Ye],i=[o],a="";"string"==typeof e.className?a=function(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(o+=n+" ")})),o}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=He(i,void 0,g.useContext(We));a+=t.key+"-"+s.name;var u={};for(var c in e)Ge.call(e,c)&&"css"!==c&&c!==Ye&&(u[c]=e[c]);return u.className=a,n&&(u.ref=n),g.createElement(g.Fragment,null,g.createElement(Xe,{cache:t,serialized:s,isStringTag:"string"==typeof r}),g.createElement(r,u))})),Je=qe,Ke=(n(146),function(e,t){var n=arguments;if(null==t||!Ge.call(t,"css"))return g.createElement.apply(void 0,n);var o=n.length,r=new Array(o);r[0]=Je,r[1]=function(e,t){var n={};for(var o in t)Ge.call(t,o)&&(n[o]=t[o]);return n[Ye]=e,n}(e,t);for(var i=2;i<o;i++)r[i]=n[i];return g.createElement.apply(null,r)});function Ze(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return He(t)}je=Ke||(Ke={}),$e||($e=je.JSX||(je.JSX={}));const Qe=window.ReactDOM,et=Math.min,tt=Math.max,nt=Math.round,ot=Math.floor,rt=e=>({x:e,y:e});function it(){return"undefined"!=typeof window}function at(e){return ct(e)?(e.nodeName||"").toLowerCase():"#document"}function st(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ut(e){var t;return null==(t=(ct(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ct(e){return!!it()&&(e instanceof Node||e instanceof st(e).Node)}function lt(e){return!!it()&&(e instanceof Element||e instanceof st(e).Element)}function pt(e){return!!it()&&(e instanceof HTMLElement||e instanceof st(e).HTMLElement)}function dt(e){return!(!it()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof st(e).ShadowRoot)}function ft(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ht(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function ht(e){return st(e).getComputedStyle(e)}function mt(e){const t=function(e){if("html"===at(e))return e;const t=e.assignedSlot||e.parentNode||dt(e)&&e.host||ut(e);return dt(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(at(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:pt(t)&&ft(t)?t:mt(t)}function vt(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=mt(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=st(r);if(i){const e=gt(a);return t.concat(a,a.visualViewport||[],ft(r)?r:[],e&&n?vt(e):[])}return t.concat(r,vt(r,[],n))}function gt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bt(e){return lt(e)?e:e.contextElement}function yt(e){const t=bt(e);if(!pt(t))return rt(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=function(e){const t=ht(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=pt(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=nt(n)!==i||nt(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}(t);let a=(i?nt(n.width):n.width)/o,s=(i?nt(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const wt=rt(0);function Ot(e){const t=st(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:wt}function Ct(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=bt(e);let a=rt(1);t&&(o?lt(o)&&(a=yt(o)):a=yt(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==st(e))&&t}(i,n,o)?Ot(i):rt(0);let u=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,l=r.width/a.x,p=r.height/a.y;if(i){const e=st(i),t=o&&lt(o)?st(o):o;let n=e,r=gt(n);for(;r&&o&&t!==n;){const e=yt(r),t=r.getBoundingClientRect(),o=ht(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;u*=e.x,c*=e.y,l*=e.x,p*=e.y,u+=i,c+=a,n=st(r),r=gt(n)}}return function(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}({width:l,height:p,x:u,y:c})}function St(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var xt=g.useLayoutEffect,kt=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],It=function(){};function Et(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Mt(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var i=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(Et(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Pt=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===u(e)&&null!==e?[e]:[];var t},Vt=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,d({},v(e,kt))},Rt=function(e,t,n){var o=e.cx,r=e.getStyles,i=e.getClassNames,a=e.className;return{css:r(t,e),className:o(null!=n?n:{},i(t,e),a)}};function Dt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Lt(e){return Dt(e)?window.pageYOffset:e.scrollTop}function Ft(e,t){Dt(e)?window.scrollTo(0,t):e.scrollTop=t}function Tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:It,r=Lt(e),i=t-r,a=0;!function t(){var s,u=i*((s=(s=a+=10)/n-1)*s*s+1)+r;Ft(e,u),a<n?window.requestAnimationFrame(t):o(e)}()}function At(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=t.offsetHeight/3;o.bottom+r>n.bottom?Ft(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r<n.top&&Ft(e,Math.max(t.offsetTop-r,0))}function _t(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Ht=!1,jt={get passive(){return Ht=!0}},$t="undefined"!=typeof window?window:{};$t.addEventListener&&$t.removeEventListener&&($t.addEventListener("p",It,jt),$t.removeEventListener("p",It,!1));var Nt=Ht;function Ut(e){return null!=e}function zt(e,t,n){return e?t:n}var Bt=["children","innerProps"],Wt=["children","innerProps"];var Gt,Yt,Xt,qt=function(e){return"auto"===e?"bottom":e},Jt=(0,g.createContext)(null),Kt=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,r=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,u=((0,g.useContext)(Jt)||{}).setPortalPlacement,c=(0,g.useRef)(null),l=m((0,g.useState)(o),2),p=l[0],f=l[1],h=m((0,g.useState)(null),2),v=h[0],b=h[1],y=s.spacing.controlHeight;return xt((function(){var e=c.current;if(e){var t="fixed"===i,s=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var l,p=u.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,h=d.height,m=d.top,v=n.offsetParent.getBoundingClientRect().top,g=a||Dt(l=u)?window.innerHeight:l.clientHeight,b=Lt(u),y=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),O=v-w,C=g-m,S=O+b,x=p-b-m,k=f-g+b+y,I=b+m-w,E=160;switch(r){case"auto":case"bottom":if(C>=h)return{placement:"bottom",maxHeight:t};if(x>=h&&!a)return i&&Tt(u,k,E),{placement:"bottom",maxHeight:t};if(!a&&x>=o||a&&C>=o)return i&&Tt(u,k,E),{placement:"bottom",maxHeight:a?C-y:x-y};if("auto"===r||a){var M=t,P=a?O:S;return P>=o&&(M=Math.min(P-y-s,t)),{placement:"top",maxHeight:M}}if("bottom"===r)return i&&Ft(u,k),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(S>=h&&!a)return i&&Tt(u,I,E),{placement:"top",maxHeight:t};if(!a&&S>=o||a&&O>=o){var V=t;return(!a&&S>=o||a&&O>=o)&&(V=a?O-w:S-w),i&&Tt(u,I,E),{placement:"top",maxHeight:V}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return c}({maxHeight:o,menuEl:e,minHeight:n,placement:r,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:y});f(s.maxHeight),b(s.placement),null==u||u(s.placement)}}),[o,r,i,a,n,u,y]),t({ref:c,placerProps:d(d({},e),{},{placement:v||qt(r),maxHeight:p})})},Zt=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return d({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},Qt=Zt,en=Zt,tn=["size"],nn=["innerProps","isRtl","size"],on={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},rn=function(e){var t=e.size,n=v(e,tn);return Ke("svg",y({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:on},n))},an=function(e){return Ke(rn,y({size:20},e),Ke("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},sn=function(e){return Ke(rn,y({size:20},e),Ke("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},un=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return d({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*r,":hover":{color:n?i.neutral80:i.neutral40}})},cn=un,ln=un,pn=function(){var e=Ze.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Gt||(Yt=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],Xt||(Xt=Yt.slice(0)),Gt=Object.freeze(Object.defineProperties(Yt,{raw:{value:Object.freeze(Xt)}})))),dn=function(e){var t=e.delay,n=e.offset;return Ke("span",{css:Ze({animation:"".concat(pn," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},fn=["data"],hn=["innerRef","isDisabled","isHidden","inputClassName"],mn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},vn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":d({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},mn)},gn=function(e){return d({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},mn)},bn=function(e){var t=e.children,n=e.innerProps;return Ke("div",n,t)},yn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Ke("div",y({},Rt(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Ke(an,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Ke("div",y({ref:r},Rt(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Ke("div",y({},Rt(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Ke(sn,null))},DownChevron:sn,CrossIcon:an,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,r=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,u=e.label,c=e.theme,l=e.selectProps;return Ke("div",y({},Rt(e,"group",{group:!0}),s),Ke(i,y({},a,{selectProps:l,theme:c,getStyles:o,getClassNames:r,cx:n}),u),Ke("div",null,t))},GroupHeading:function(e){var t=Vt(e);t.data;var n=v(t,fn);return Ke("div",y({},Rt(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Ke("div",y({},Rt(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Ke("span",y({},t,Rt(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=Vt(e),r=o.innerRef,i=o.isDisabled,a=o.isHidden,s=o.inputClassName,u=v(o,hn);return Ke("div",y({},Rt(e,"input",{"input-container":!0}),{"data-value":n||""}),Ke("input",y({className:t({input:!0},s),ref:r,style:gn(a),disabled:i},u)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,r=void 0===o?4:o,i=v(e,nn);return Ke("div",y({},Rt(d(d({},i),{},{innerProps:t,isRtl:n,size:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Ke(dn,{delay:0,offset:n}),Ke(dn,{delay:160,offset:!0}),Ke(dn,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return Ke("div",y({},Rt(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,r=e.isMulti;return Ke("div",y({},Rt(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,r=e.innerProps,i=e.menuPlacement,a=e.menuPosition,s=(0,g.useRef)(null),u=(0,g.useRef)(null),c=m((0,g.useState)(qt(i)),2),l=c[0],p=c[1],f=(0,g.useMemo)((function(){return{setPortalPlacement:p}}),[]),h=m((0,g.useState)(null),2),v=h[0],b=h[1],w=(0,g.useCallback)((function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===a?0:window.pageYOffset,n=e[l]+t;n===(null==v?void 0:v.offset)&&e.left===(null==v?void 0:v.rect.left)&&e.width===(null==v?void 0:v.rect.width)||b({offset:n,rect:e})}}),[o,a,l,null==v?void 0:v.offset,null==v?void 0:v.rect.left,null==v?void 0:v.rect.width]);xt((function(){w()}),[w]);var O=(0,g.useCallback)((function(){"function"==typeof u.current&&(u.current(),u.current=null),o&&s.current&&(u.current=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=o,c=bt(e),l=r||i?[...c?vt(c):[],...vt(t)]:[];l.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const p=c&&s?function(e,t){let n,o=null;const r=ut(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),i();const c=e.getBoundingClientRect(),{left:l,top:p,width:d,height:f}=c;if(s||t(),!d||!f)return;const h={rootMargin:-ot(p)+"px "+-ot(r.clientWidth-(l+d))+"px "+-ot(r.clientHeight-(p+f))+"px "+-ot(l)+"px",threshold:tt(0,et(1,u))||1};let m=!0;function v(t){const o=t[0].intersectionRatio;if(o!==u){if(!m)return a();o?a(!1,o):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==o||St(c,e.getBoundingClientRect())||a(),m=!1}try{o=new IntersectionObserver(v,{...h,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(v,h)}o.observe(e)}(!0),i}(c,n):null;let d,f=-1,h=null;a&&(h=new ResizeObserver((e=>{let[o]=e;o&&o.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!u&&h.observe(c),h.observe(t));let m=u?Ct(e):null;return u&&function t(){const o=Ct(e);m&&!St(m,o)&&n(),m=o,d=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==p||p(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(d)}}(o,s.current,w,{elementResize:"ResizeObserver"in window}))}),[o,w]);xt((function(){O()}),[O]);var C=(0,g.useCallback)((function(e){s.current=e,O()}),[O]);if(!t&&"fixed"!==a||!v)return null;var S=Ke("div",y({ref:C},Rt(d(d({},e),{},{offset:v.offset,position:a,rect:v.rect}),"menuPortal",{"menu-portal":!0}),r),n);return Ke(Jt.Provider,{value:f},t?(0,Qe.createPortal)(S,t):S)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,r=v(e,Wt);return Ke("div",y({},Rt(d(d({},r),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,r=v(e,Bt);return Ke("div",y({},Rt(d(d({},r),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:function(e){var t=e.children,n=e.components,o=e.data,r=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,u=n.Container,c=n.Label,l=n.Remove;return Ke(u,{data:o,innerProps:d(d({},Rt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),r),selectProps:s},Ke(c,{data:o,innerProps:d({},Rt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Ke(l,{data:o,innerProps:d(d({},Rt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:bn,MultiValueLabel:bn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Ke("div",y({role:"button"},n),t||Ke(an,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.innerRef,a=e.innerProps;return Ke("div",y({},Rt(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":r}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Ke("div",y({},Rt(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,r=e.isRtl;return Ke("div",y({},Rt(e,"container",{"--is-disabled":o,"--is-rtl":r}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return Ke("div",y({},Rt(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,r=e.hasValue;return Ke("div",y({},Rt(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":r}),n),t)}},wn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function On(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(r=t[n])||wn(o)&&wn(r)))return!1;var o,r;return!0}for(var Cn={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Sn=function(e){return Ke("span",y({css:Cn},e))},xn={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,r=e.context,i=e.isInitialFocus;switch(r){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,r=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(o,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,r=e.label,i=void 0===r?"":r,a=e.selectValue,s=e.isDisabled,u=e.isSelected,c=e.isAppleDevice,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(l(a,n),".");if("menu"===t&&c){var p=s?" disabled":"",d="".concat(u?" selected":"").concat(p);return"".concat(i).concat(d,", ").concat(l(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},kn=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,r=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,u=e.id,c=e.isAppleDevice,l=s.ariaLiveMessages,p=s.getOptionLabel,f=s.inputValue,h=s.isMulti,m=s.isOptionDisabled,v=s.isSearchable,b=s.menuIsOpen,y=s.options,w=s.screenReaderStatus,O=s.tabSelectsValue,C=s.isLoading,S=s["aria-label"],x=s["aria-live"],k=(0,g.useMemo)((function(){return d(d({},xn),l||{})}),[l]),I=(0,g.useMemo)((function(){var e,n="";if(t&&k.onChange){var o=t.option,r=t.options,i=t.removedValue,s=t.removedValues,u=t.value,c=i||o||(e=u,Array.isArray(e)?null:e),l=c?p(c):"",f=r||s||void 0,h=f?f.map(p):[],v=d({isDisabled:c&&m(c,a),label:l,labels:h},t);n=k.onChange(v)}return n}),[t,k,m,a,p]),E=(0,g.useMemo)((function(){var e="",t=n||o,i=!!(n&&a&&a.includes(n));if(t&&k.onFocus){var s={focused:t,label:p(t),isDisabled:m(t,a),isSelected:i,options:r,context:t===n?"menu":"value",selectValue:a,isAppleDevice:c};e=k.onFocus(s)}return e}),[n,o,p,m,k,r,a,c]),M=(0,g.useMemo)((function(){var e="";if(b&&y.length&&!C&&k.onFilter){var t=w({count:r.length});e=k.onFilter({inputValue:f,resultsMessage:t})}return e}),[r,f,b,k,y,w,C]),P="initial-input-focus"===(null==t?void 0:t.action),V=(0,g.useMemo)((function(){var e="";if(k.guidance){var t=o?"value":b?"menu":"input";e=k.guidance({"aria-label":S,context:t,isDisabled:n&&m(n,a),isMulti:h,isSearchable:v,tabSelectsValue:O,isInitialFocus:P})}return e}),[S,n,o,h,m,v,b,k,a,O,P]),R=Ke(g.Fragment,null,Ke("span",{id:"aria-selection"},I),Ke("span",{id:"aria-focused"},E),Ke("span",{id:"aria-results"},M),Ke("span",{id:"aria-guidance"},V));return Ke(g.Fragment,null,Ke(Sn,{id:u},P&&R),Ke(Sn,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!P&&R))},In=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],En=new RegExp("["+In.map((function(e){return e.letters})).join("")+"]","g"),Mn={},Pn=0;Pn<In.length;Pn++)for(var Vn=In[Pn],Rn=0;Rn<Vn.letters.length;Rn++)Mn[Vn.letters[Rn]]=Vn.base;var Dn=function(e){return e.replace(En,(function(e){return Mn[e]}))},Ln=function(e,t){void 0===t&&(t=On);var n=null;function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return o.clear=function(){n=null},o}(Dn),Fn=function(e){return e.replace(/^\s+|\s+$/g,"")},Tn=function(e){return"".concat(e.label," ").concat(e.value)},An=["innerRef"];function Hn(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=Object.entries(e).filter((function(e){var t=m(e,1)[0];return!n.includes(t)}));return r.reduce((function(e,t){var n=m(t,2),o=n[0],r=n[1];return e[o]=r,e}),{})}(v(e,An),"onExited","in","enter","exit","appear");return Ke("input",y({ref:t},n,{css:Ze({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var jn=["boxSizing","height","overflow","paddingRight","position"],$n={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Nn(e){e.cancelable&&e.preventDefault()}function Un(e){e.stopPropagation()}function zn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Bn(){return"ontouchstart"in window||navigator.maxTouchPoints}var Wn=!("undefined"==typeof window||!window.document||!window.document.createElement),Gn=0,Yn={capture:!1,passive:!1},Xn=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},qn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Jn(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,r=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,r=e.onTopArrive,i=e.onTopLeave,a=(0,g.useRef)(!1),s=(0,g.useRef)(!1),u=(0,g.useRef)(0),c=(0,g.useRef)(null),l=(0,g.useCallback)((function(e,t){if(null!==c.current){var u=c.current,l=u.scrollTop,p=u.scrollHeight,d=u.clientHeight,f=c.current,h=t>0,m=p-d-l,v=!1;m>t&&a.current&&(o&&o(e),a.current=!1),h&&s.current&&(i&&i(e),s.current=!1),h&&t>m?(n&&!a.current&&n(e),f.scrollTop=p,v=!0,a.current=!0):!h&&-t>l&&(r&&!s.current&&r(e),f.scrollTop=0,v=!0,s.current=!0),v&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,o,r,i]),p=(0,g.useCallback)((function(e){l(e,e.deltaY)}),[l]),d=(0,g.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),f=(0,g.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,g.useCallback)((function(e){if(e){var t=!!Nt&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",f,t)}}),[f,d,p]),m=(0,g.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",f,!1))}),[f,d,p]);return(0,g.useEffect)((function(){if(t){var e=c.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,r=(0,g.useRef)({}),i=(0,g.useRef)(null),a=(0,g.useCallback)((function(e){if(Wn){var t=document.body,n=t&&t.style;if(o&&jn.forEach((function(e){var t=n&&n[e];r.current[e]=t})),o&&Gn<1){var i=parseInt(r.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys($n).forEach((function(e){var t=$n[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Bn()&&(t.addEventListener("touchmove",Nn,Yn),e&&(e.addEventListener("touchstart",zn,Yn),e.addEventListener("touchmove",Un,Yn))),Gn+=1}}),[o]),s=(0,g.useCallback)((function(e){if(Wn){var t=document.body,n=t&&t.style;Gn=Math.max(Gn-1,0),o&&Gn<1&&jn.forEach((function(e){var t=r.current[e];n&&(n[e]=t)})),t&&Bn()&&(t.removeEventListener("touchmove",Nn,Yn),e&&(e.removeEventListener("touchstart",zn,Yn),e.removeEventListener("touchmove",Un,Yn)))}}),[o]);return(0,g.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return Ke(g.Fragment,null,n&&Ke("div",{onClick:Xn,css:qn}),t((function(e){r(e),i(e)})))}var Kn={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Zn=function(e){var t=e.name,n=e.onFocus;return Ke("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Kn,value:"",onChange:function(){}})};function Qn(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function eo(){return Qn(/^Mac/i)}var to={clearIndicator:ln,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.theme,i=r.colors,a=r.borderRadius;return d({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:r.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:o?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},dropdownIndicator:cn,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,o=n.colors,r=n.spacing;return d({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return d({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r})},input:function(e,t){var n=e.isDisabled,o=e.value,r=e.theme,i=r.spacing,a=r.colors;return d(d({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},vn),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,r=e.theme,i=r.colors,a=r.spacing.baseUnit;return d({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:en,menu:function(e,t){var n,o=e.placement,r=e.theme,i=r.borderRadius,a=r.spacing,s=r.colors;return d((l(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),l(n,"position","absolute"),l(n,"width","100%"),l(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return d({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors;return d({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:r/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,r=n.colors,i=e.cropWithEllipsis;return d({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors,a=e.isFocused;return d({alignItems:"center",display:"flex"},t?{}:{borderRadius:r/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Qt,option:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return d({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:r?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,r=n.colors;return d({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing,i=o.colors;return d({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,r=e.hasValue,i=e.selectProps.controlShouldRenderValue;return d({alignItems:"center",display:o&&r&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},no={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},oo={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:_t(),captureMenuScroll:!_t(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=d({ignoreCase:!0,ignoreAccents:!0,stringify:Tn,trim:!0,matchFrom:"any"},undefined),o=n.ignoreCase,r=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,u=a?Fn(t):t,c=a?Fn(i(e)):i(e);return o&&(u=u.toLowerCase(),c=c.toLowerCase()),r&&(u=Ln(u),c=Dn(c)),"start"===s?c.substr(0,u.length)===u:c.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ro(e,t,n,o){return{type:"option",data:t,isDisabled:fo(e,t,n),isSelected:ho(e,t,n),label:lo(e,t),value:po(e,t),index:o}}function io(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return ro(e,n,t,o)})).filter((function(t){return uo(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=ro(e,n,t,o);return uo(e,i)?i:void 0})).filter(Ut)}function ao(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,x(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function so(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,x(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function uo(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,a=t.label,s=t.value;return(!vo(e)||!i)&&mo(e,{label:a,value:s,data:r},o)}var co=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},lo=function(e,t){return e.getOptionLabel(t)},po=function(e,t){return e.getOptionValue(t)};function fo(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ho(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=po(e,t);return n.some((function(t){return po(e,t)===o}))}function mo(e,t,n){return!e.filterOption||e.filterOption(t,n)}var vo=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},go=1,bo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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&&O(e,t)}(n,e);var t=function(e){var t=S();return function(){var n,o=C(e);if(t){var r=C(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(n);function n(e){var o;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(o=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=eo()||Qn(/^iPhone/i)||Qn(/^iPad/i)||eo()&&navigator.maxTouchPoints>1,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,r=n.onChange,i=n.name;t.name=i,o.ariaOnChange(e,t),r(e,t)},o.setValue=function(e,t,n){var r=o.props,i=r.closeMenuOnSelect,a=r.isMulti,s=r.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,r=t.isMulti,i=t.name,a=o.state.selectValue,s=r&&o.isOptionSelected(e,a),u=o.isOptionDisabled(e,a);if(s){var c=o.getOptionValue(e);o.setValue(a.filter((function(e){return o.getOptionValue(e)!==c})),"deselect-option",e)}else{if(u)return void o.ariaOnChange(e,{action:"select-option",option:e,name:i});r?o.setValue([].concat(x(a),[e]),"select-option",e):o.setValue(e,"select-option")}n&&o.blurInput()},o.removeValue=function(e){var t=o.props.isMulti,n=o.state.selectValue,r=o.getOptionValue(e),i=n.filter((function(e){return o.getOptionValue(e)!==r})),a=zt(t,i,i[0]||null);o.onChange(a,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e=o.state.selectValue;o.onChange(zt(o.props.isMulti,[],null),{action:"clear",removedValues:e})},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,n=t[t.length-1],r=t.slice(0,t.length-1),i=zt(e,r,r[0]||null);n&&o.onChange(i,{action:"pop-value",removedValue:n})},o.getFocusedOptionId=function(e){return co(o.state.focusableOptionsWithIds,e)},o.getFocusableOptionsWithIds=function(){return so(io(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Mt.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return lo(o.props,e)},o.getOptionValue=function(e){return po(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,r=to[e](t,n);r.boxSizing="border-box";var i=o.props.styles[e];return i?i(r,t):r},o.getClassNames=function(e,t){var n,r;return null===(n=(r=o.props.classNames)[e])||void 0===n?void 0:n.call(r,t)},o.getElementId=function(e){return"".concat(o.state.instancePrefix,"-").concat(e)},o.getComponents=function(){return e=o.props,d(d({},yn),e.components);var e},o.buildCategorizedOptions=function(){return io(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return ao(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:d({value:e},t)})},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(e){o.blockOptionHover=!1},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},o.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||o.props.isDisabled)){var t=o.props,n=t.isMulti,r=t.menuIsOpen;o.focusInput(),r?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault()}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout((function(){return o.focusInput()})))},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Dt(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1)},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var r=Math.abs(n.clientX-o.initialTouchX),i=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=r>5||i>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){var t=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}))},o.onOptionHover=function(e){if(!o.blockOptionHover&&o.state.focusedOption!==e){var t=o.getFocusableOptions().indexOf(e);o.setState({focusedOption:e,focusedOptionId:t>-1?o.getFocusedOptionId(e):null})}},o.shouldHideSelectedOptions=function(){return vo(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus()},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,r=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,u=t.isDisabled,c=t.menuIsOpen,l=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,f=o.state,h=f.focusedOption,m=f.focusedValue,v=f.selectValue;if(!(u||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;o.focusValue("previous");break;case"ArrowRight":if(!n||a)return;o.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)o.removeValue(m);else{if(!r)return;n?o.popValue():s&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!c||!p||!h||d&&o.isOptionSelected(h,v))return;o.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(o.isComposing)return;o.selectOption(h);break}return;case"Escape":c?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:a}),o.onMenuClose()):s&&i&&o.clearValue();break;case" ":if(a)return;if(!c){o.openMenu("first");break}if(!h)return;o.selectOption(h);break;case"ArrowUp":c?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":c?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!c)return;o.focusOption("pageup");break;case"PageDown":if(!c)return;o.focusOption("pagedown");break;case"Home":if(!c)return;o.focusOption("first");break;case"End":if(!c)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++go),o.state.selectValue=Pt(e.value),e.menuIsOpen&&o.state.selectValue.length){var r=o.getFocusableOptionsWithIds(),i=o.buildFocusableOptions(),a=i.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=r,o.state.focusedOption=i[a],o.state.focusedOptionId=co(r,i[a])}return o}return function(e,t,n){t&&w(e.prototype,t),n&&w(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&At(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,r=this.state.isFocused;(r&&!n&&e.isDisabled||r&&o&&!e.menuIsOpen)&&this.focusInput(),r&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(At(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,r=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(o[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===r?0:-1===r?i:r-1;break;case"next":r>-1&&r<i&&(a=r+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var r=0,i=o.indexOf(n);n||(i=-1),"up"===e?r=i>0?i-1:o.length-1:"down"===e?r=(i+1)%o.length:"pageup"===e?(r=i-t)<0&&(r=0):"pagedown"===e?(r=i+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[r])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(no):d(d({},no),this.props.theme):no}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,r=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,u=s.isMulti,c=s.isRtl,l=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:r,hasValue:this.hasValue(),isMulti:u,isRtl:c,options:l,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return fo(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ho(this.props,e,t)}},{key:"filterOption",value:function(e,t){return mo(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,r=e.inputValue,i=e.tabIndex,a=e.form,s=e.menuIsOpen,u=e.required,c=this.getComponents().Input,l=this.state,p=l.inputIsHidden,f=l.ariaSelection,h=this.commonProps,m=o||this.getElementId("input"),v=d(d(d({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?g.createElement(c,y({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:r},v)):g.createElement(Hn,y({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:It,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,r=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,u=this.commonProps,c=this.props,l=c.controlShouldRenderValue,p=c.isDisabled,d=c.isMulti,f=c.inputValue,h=c.placeholder,m=this.state,v=m.selectValue,b=m.focusedValue,w=m.isFocused;if(!this.hasValue()||!l)return f?null:g.createElement(s,y({},u,{key:"placeholder",isDisabled:p,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),h);if(d)return v.map((function(t,a){var s=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return g.createElement(n,y({},u,{components:{Container:o,Label:r,Remove:i},isFocused:s,isDisabled:p,key:c,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(f)return null;var O=v[0];return g.createElement(a,y({},u,{data:O,isDisabled:p}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||r)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return g.createElement(e,y({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,i=this.state.isFocused;return e&&r?g.createElement(e,y({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused;return g.createElement(n,y({},o,{isDisabled:r,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return g.createElement(e,y({},t,{innerProps:r,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,r=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,u=t.NoOptionsMessage,c=t.Option,l=this.commonProps,p=this.state.focusedOption,d=this.props,f=d.captureMenuScroll,h=d.inputValue,m=d.isLoading,v=d.loadingMessage,b=d.minMenuHeight,w=d.maxMenuHeight,O=d.menuIsOpen,C=d.menuPlacement,S=d.menuPosition,x=d.menuPortalTarget,k=d.menuShouldBlockScroll,I=d.menuShouldScrollIntoView,E=d.noOptionsMessage,M=d.onMenuScrollToTop,P=d.onMenuScrollToBottom;if(!O)return null;var V,R=function(t,n){var o=t.type,r=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,u=t.value,d=p===r,f=i?void 0:function(){return e.onOptionHover(r)},h=i?void 0:function(){return e.selectOption(r)},m="".concat(e.getElementId("option"),"-").concat(n),v={id:m,onClick:h,onMouseMove:f,onMouseOver:f,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return g.createElement(c,y({},l,{innerProps:v,data:r,isDisabled:i,isSelected:a,key:m,label:s,type:o,value:u,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())V=this.getCategorizedOptions().map((function(t){if("group"===t.type){var r=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),u="".concat(s,"-heading");return g.createElement(n,y({},l,{key:s,data:r,options:i,Heading:o,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return R(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return R(t,"".concat(t.index))}));else if(m){var D=v({inputValue:h});if(null===D)return null;V=g.createElement(s,l,D)}else{var L=E({inputValue:h});if(null===L)return null;V=g.createElement(u,l,L)}var F={minMenuHeight:b,maxMenuHeight:w,menuPlacement:C,menuPosition:S,menuShouldScrollIntoView:I},T=g.createElement(Kt,y({},l,F),(function(t){var n=t.ref,o=t.placerProps,a=o.placement,s=o.maxHeight;return g.createElement(r,y({},l,F,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:a}),g.createElement(Jn,{captureEnabled:f,onTopArrive:M,onBottomArrive:P,lockEnabled:k},(function(t){return g.createElement(i,y({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":l.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:s,focusedOption:p}),V)})))}));return x||"fixed"===S?g.createElement(a,y({},l,{appendTo:x,controlElement:this.controlRef,menuPlacement:C,menuPosition:S}),T):T}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,r=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!o)return g.createElement(Zn,{name:i,onFocus:this.onValueInputFocus});if(i&&!o){if(r){if(n){var u=s.map((function(t){return e.getOptionValue(t)})).join(n);return g.createElement("input",{name:i,type:"hidden",value:u})}var c=s.length>0?s.map((function(t,n){return g.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):g.createElement("input",{name:i,type:"hidden",value:""});return g.createElement("div",null,c)}var l=s[0]?this.getOptionValue(s[0]):"";return g.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,r=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return g.createElement(kn,y({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:r,isFocused:i,selectValue:a,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,r=e.ValueContainer,i=this.props,a=i.className,s=i.id,u=i.isDisabled,c=i.menuIsOpen,l=this.state.isFocused,p=this.commonProps=this.getCommonProps();return g.createElement(o,y({},p,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:l}),this.renderLiveRegion(),g.createElement(t,y({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:l,menuIsOpen:c}),g.createElement(r,y({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),g.createElement(n,y({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,u=t.instancePrefix,c=e.options,l=e.value,p=e.menuIsOpen,f=e.inputValue,h=e.isMulti,m=Pt(l),v={};if(n&&(l!==n.value||c!==n.options||p!==n.menuIsOpen||f!==n.inputValue)){var g=p?function(e,t){return ao(io(e,t))}(e,m):[],b=p?so(io(e,m),"".concat(u,"-option")):[],y=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,m):null,w=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);v={selectValue:m,focusedOption:w,focusedOptionId:co(b,w),focusableOptionsWithIds:b,focusedValue:y,clearFocusValueOnUpdate:!1}}var O=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},C=i,S=a&&s;return a&&!S&&(C={value:zt(h,m,m[0]||null),options:m,action:"initial-input-focus"},S=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(C=null),d(d(d({},v),O),{},{prevProps:e,ariaSelection:C,prevWasFocused:S})}}]),n}(g.Component);bo.defaultProps=oo;var yo=(0,g.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,r=void 0!==o&&o,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,u=e.menuIsOpen,c=e.onChange,l=e.onInputChange,p=e.onMenuClose,f=e.onMenuOpen,h=e.value,y=v(e,b),w=m((0,g.useState)(void 0!==s?s:n),2),O=w[0],C=w[1],S=m((0,g.useState)(void 0!==u?u:r),2),x=S[0],k=S[1],I=m((0,g.useState)(void 0!==h?h:a),2),E=I[0],M=I[1],P=(0,g.useCallback)((function(e,t){"function"==typeof c&&c(e,t),M(e)}),[c]),V=(0,g.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),C(void 0!==n?n:e)}),[l]),R=(0,g.useCallback)((function(){"function"==typeof f&&f(),k(!0)}),[f]),D=(0,g.useCallback)((function(){"function"==typeof p&&p(),k(!1)}),[p]),L=void 0!==s?s:O,F=void 0!==u?u:x,T=void 0!==h?h:E;return d(d({},y),{},{inputValue:L,menuIsOpen:F,onChange:P,onInputChange:V,onMenuClose:D,onMenuOpen:R,value:T})}(e);return g.createElement(bo,y({ref:t},n))})),wo=yo;const Oo=window.wp.hooks;var Co=n(848);const So=(0,s.getSetting)("mc-shipping-blocks_data",{});(0,r.registerCheckoutBlock)({metadata:o,component:({checkoutExtensionData:e})=>{const t=So?.defaultCountry||"EE",n=So?.pickupPointPlaceholder||"Select pickup point",[o,r]=(0,i.useState)(t),[s,u]=(0,i.useState)(null),[c,l]=(0,i.useState)([]),[p,d]=(0,i.useState)(!1),[f,h]=(0,i.useState)(!1),{setExtensionData:m}=e;(e=>{(0,i.useEffect)((()=>((0,Oo.addAction)("experimental__woocommerce_blocks-checkout-set-shipping-address","makecommerce/shipping",(async t=>{const n=t?.storeCart?.shippingAddress?.country?.toUpperCase()||"OTHER";e((e=>e!==n?((async e=>{const t=wc?.blocksCheckout?.extensionCartUpdate;t?t({namespace:"makecommerce",data:{country:e.toUpperCase()}}).catch((e=>{console.error("Failed to update country:",e)})):(console.error("extensionCartUpdate is not available. Must be run on Blocks Checkout."),Promise.reject("extensionCartUpdate is not available"))})(n),n):e))})),()=>{(0,Oo.removeAction)("experimental__woocommerce_blocks-checkout-set-shipping-address","makecommerce/shipping")})),[e])})(r);const{shippingRates:v}=(0,a.useSelect)((e=>{var t;const n=e("wc/store/cart"),o=n?.getCartData?.();return{shippingRates:null!==(t=o?.shippingRates)&&void 0!==t?t:[]}}),[]);(({shippingRates:e,selectedCountry:t,setIsMcShipping:n,setLoading:o,setPickupPointOptions:r,setSelectedPickupPoint:a,setExtensionData:s})=>{const u=(0,i.useRef)(""),c=(0,i.useRef)("");(0,i.useEffect)((()=>{const i=e?.[0];if(!i)return;const l=i.shipping_rates.find((e=>e.selected));if(!l)return;const p=l.rate_id;if(p?.startsWith("mc_courier_"))return void s("makecommerce","shipping_method",p);if(!p?.startsWith("mc_pickuppoint_"))return void n(!1);const d=p.split("_")[2];d&&(u.current!==p||c.current!==t?(u.current=p,c.current=t,s("makecommerce","shipping_method",p),n(!0),o(!0),r([]),a(null),(async(e,t)=>(await fetch("/wp-admin/admin-ajax.php",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"get_carrier_machines",mc_carrier_id:e,country:t,selected_machine:""})})).json())(d,t).then((e=>{const t=(e=>{const t=[];for(const n in e.machines)e.machines[n].forEach((e=>{t.push({value:e.id,label:`${e.name} - ${e.city}, ${e.address}, ${e.zip}`,meta:e})}));return t})(e);if(r(t),o(!1),t.length>0){const e=t.find((e=>!0===e.meta?.selected));e?(a(e),s("makecommerce","machine_id",e.value)):(a(t[0]),s("makecommerce","machine_id",t[0].value))}})).catch((()=>o(!1)))):n(!0))}),[e,t])})({shippingRates:v,selectedCountry:o,setIsMcShipping:d,setLoading:h,setPickupPointOptions:l,setSelectedPickupPoint:u,setExtensionData:m});const g=(0,i.useCallback)((e=>{u(e),m("makecommerce","machine_id",e.value)}),[m]);return p&&0!==c.length?(0,Co.jsxs)("div",{className:"mc-block-pickup-point",children:[(0,Co.jsx)("div",{className:"wc-block-components-checkout-step__heading",children:(0,Co.jsx)("h2",{className:"wc-block-components-title wc-block-components-checkout-step__title",children:n})}),(0,Co.jsx)("div",{className:"wc-block-components-checkout-step__container",children:(0,Co.jsx)("div",{className:"wc-block-components-checkout-step__content",children:(0,Co.jsx)(wo,{id:"mc_pickup_point_select",options:c,value:s,isLoading:f,onChange:g})})})]}):null}})})();
     1(()=>{"use strict";var e={20:(e,t,n)=>{var o=n(609),r=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var o,u={},c=null,l=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)i.call(t,o)&&!s.hasOwnProperty(o)&&(u[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===u[o]&&(u[o]=t[o]);return{$$typeof:r,type:e,key:c,ref:l,props:u,_owner:a.current}}t.jsx=u,t.jsxs=u},146:(e,t,n)=>{var o=n(363),r={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},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return o.isMemo(e)?a:s[e.$$typeof]||r}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(h){var r=f(n);r&&r!==h&&e(t,r,o)}var a=l(n);p&&(a=a.concat(p(n)));for(var s=u(t),m=u(n),v=0;v<a.length;++v){var g=a[v];if(!(i[g]||o&&o[g]||m&&m[g]||s&&s[g])){var b=d(n,g);try{c(t,g,b)}catch(e){}}}}return t}},363:(e,t,n)=>{e.exports=n(799)},609:e=>{e.exports=window.React},799:(e,t)=>{var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=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,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case l:case p:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case d:case v:case m:case u:return e;default:return t}}case r:return t}}}function S(e){return O(e)===p}t.AsyncMode=l,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=u,t.Element=o,t.ForwardRef=d,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=r,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return S(e)||O(e)===l},t.isConcurrentMode=S,t.isContextConsumer=function(e){return O(e)===c},t.isContextProvider=function(e){return O(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return O(e)===d},t.isFragment=function(e){return O(e)===i},t.isLazy=function(e){return O(e)===v},t.isMemo=function(e){return O(e)===m},t.isPortal=function(e){return O(e)===r},t.isProfiler=function(e){return O(e)===s},t.isStrictMode=function(e){return O(e)===a},t.isSuspense=function(e){return O(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===g)},t.typeOf=O},848:(e,t,n)=>{e.exports=n(20)}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}const o=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"makecommerce/mc-shipping-blocks","version":"0.1.0","title":"MakeCommerce Shipping+ Blocks","category":"woocommerce","parent":["woocommerce/checkout-shipping-methods-block"],"textdomain":"mc-shipping-blocks","attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"editorScript":"file:./build/index.js"}'),r=window.wc.blocksCheckout,i=window.wp.element,a=window.wp.data,s=window.wc.wcSettings;function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}function l(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function h(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);u=!0);}catch(e){c=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var g=n(609),b=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},y.apply(null,arguments)}function w(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,c(o.key),o)}}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}function x(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var k=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),I=Math.abs,E=String.fromCharCode,M=Object.assign;function P(e){return e.trim()}function V(e,t,n){return e.replace(t,n)}function R(e,t){return e.indexOf(t)}function D(e,t){return 0|e.charCodeAt(t)}function L(e,t,n){return e.slice(t,n)}function F(e){return e.length}function T(e){return e.length}function A(e,t){return t.push(e),e}var _=1,j=1,H=0,$=0,N=0,U="";function z(e,t,n,o,r,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:_,column:j,length:a,return:""}}function B(e,t){return M(z("",null,null,"",null,null,0),e,{length:-e.length},t)}function W(){return N=$>0?D(U,--$):0,j--,10===N&&(j=1,_--),N}function G(){return N=$<H?D(U,$++):0,j++,10===N&&(j=1,_++),N}function Y(){return D(U,$)}function X(){return $}function q(e,t){return L(U,e,t)}function J(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function K(e){return _=j=1,H=F(U=e),$=0,[]}function Z(e){return U="",e}function Q(e){return P(q($-1,ne(91===e?e+2:40===e?e+1:e)))}function ee(e){for(;(N=Y())&&N<33;)G();return J(e)>2||J(N)>3?"":" "}function te(e,t){for(;--t&&G()&&!(N<48||N>102||N>57&&N<65||N>70&&N<97););return q(e,X()+(t<6&&32==Y()&&32==G()))}function ne(e){for(;G();)switch(N){case e:return $;case 34:case 39:34!==e&&39!==e&&ne(N);break;case 40:41===e&&ne(e);break;case 92:G()}return $}function oe(e,t){for(;G()&&e+N!==57&&(e+N!==84||47!==Y()););return"/*"+q(t,$-1)+"*"+E(47===e?e:G())}function re(e){for(;!J(Y());)G();return q(e,$)}var ie="-ms-",ae="-moz-",se="-webkit-",ue="comm",ce="rule",le="decl",pe="@keyframes";function de(e,t){for(var n="",o=T(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function fe(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case le:return e.return=e.return||e.value;case ue:return"";case pe:return e.return=e.value+"{"+de(e.children,o)+"}";case ce:e.value=e.props.join(",")}return F(n=de(e.children,o))?e.return=e.value+"{"+n+"}":""}function he(e){return Z(me("",null,null,null,[""],e=K(e),0,[0],e))}function me(e,t,n,o,r,i,a,s,u){for(var c=0,l=0,p=a,d=0,f=0,h=0,m=1,v=1,g=1,b=0,y="",w=r,O=i,S=o,C=y;v;)switch(h=b,b=G()){case 40:if(108!=h&&58==D(C,p-1)){-1!=R(C+=V(Q(b),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:C+=Q(b);break;case 9:case 10:case 13:case 32:C+=ee(h);break;case 92:C+=te(X()-1,7);continue;case 47:switch(Y()){case 42:case 47:A(ge(oe(G(),X()),t,n),u);break;default:C+="/"}break;case 123*m:s[c++]=F(C)*g;case 125*m:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+l:-1==g&&(C=V(C,/\f/g,"")),f>0&&F(C)-p&&A(f>32?be(C+";",o,n,p-1):be(V(C," ","")+";",o,n,p-2),u);break;case 59:C+=";";default:if(A(S=ve(C,t,n,c,l,r,s,y,w=[],O=[],p),i),123===b)if(0===l)me(C,t,S,S,w,i,p,s,O);else switch(99===d&&110===D(C,3)?100:d){case 100:case 108:case 109:case 115:me(e,S,S,o&&A(ve(e,S,S,0,0,r,s,y,r,w=[],p),O),r,O,p,s,o?w:O);break;default:me(C,S,S,S,[""],O,0,s,O)}}c=l=f=0,m=g=1,y=C="",p=a;break;case 58:p=1+F(C),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==W())continue;switch(C+=E(b),b*m){case 38:g=l>0?1:(C+="\f",-1);break;case 44:s[c++]=(F(C)-1)*g,g=1;break;case 64:45===Y()&&(C+=Q(G())),d=Y(),l=p=F(y=C+=re(X())),b++;break;case 45:45===h&&2==F(C)&&(m=0)}}return i}function ve(e,t,n,o,r,i,a,s,u,c,l){for(var p=r-1,d=0===r?i:[""],f=T(d),h=0,m=0,v=0;h<o;++h)for(var g=0,b=L(e,p+1,p=I(m=a[h])),y=e;g<f;++g)(y=P(m>0?d[g]+" "+b:V(b,/&\f/g,d[g])))&&(u[v++]=y);return z(e,t,n,0===r?ce:s,u,c,l)}function ge(e,t,n){return z(e,t,n,ue,E(N),L(e,2,-2),0)}function be(e,t,n,o){return z(e,t,n,le,L(e,0,o),L(e,o+1,-1),o)}var ye=function(e,t,n){for(var o=0,r=0;o=r,r=Y(),38===o&&12===r&&(t[n]=1),!J(r);)G();return q(e,$)},we=new WeakMap,Oe=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||we.get(n))&&!o){we.set(e,!0);for(var r=[],i=function(e,t){return Z(function(e,t){var n=-1,o=44;do{switch(J(o)){case 0:38===o&&12===Y()&&(t[n]=1),e[n]+=ye($-1,t,n);break;case 2:e[n]+=Q(o);break;case 4:if(44===o){e[++n]=58===Y()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=E(o)}}while(o=G());return e}(K(e),t))}(t,r),a=n.props,s=0,u=0;s<i.length;s++)for(var c=0;c<a.length;c++,u++)e.props[u]=r[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Se=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ce(e,t){switch(function(e,t){return 45^D(e,0)?(((t<<2^D(e,0))<<2^D(e,1))<<2^D(e,2))<<2^D(e,3):0}(e,t)){case 5103:return se+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return se+e+ae+e+ie+e+e;case 6828:case 4268:return se+e+ie+e+e;case 6165:return se+e+ie+"flex-"+e+e;case 5187:return se+e+V(e,/(\w+).+(:[^]+)/,se+"box-$1$2"+ie+"flex-$1$2")+e;case 5443:return se+e+ie+"flex-item-"+V(e,/flex-|-self/,"")+e;case 4675:return se+e+ie+"flex-line-pack"+V(e,/align-content|flex-|-self/,"")+e;case 5548:return se+e+ie+V(e,"shrink","negative")+e;case 5292:return se+e+ie+V(e,"basis","preferred-size")+e;case 6060:return se+"box-"+V(e,"-grow","")+se+e+ie+V(e,"grow","positive")+e;case 4554:return se+V(e,/([^-])(transform)/g,"$1"+se+"$2")+e;case 6187:return V(V(V(e,/(zoom-|grab)/,se+"$1"),/(image-set)/,se+"$1"),e,"")+e;case 5495:case 3959:return V(e,/(image-set\([^]*)/,se+"$1$`$1");case 4968:return V(V(e,/(.+:)(flex-)?(.*)/,se+"box-pack:$3"+ie+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+se+e+e;case 4095:case 3583:case 4068:case 2532:return V(e,/(.+)-inline(.+)/,se+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(F(e)-1-t>6)switch(D(e,t+1)){case 109:if(45!==D(e,t+4))break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+ae+(108==D(e,t+3)?"$3":"$2-$3"))+e;case 115:return~R(e,"stretch")?Ce(V(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==D(e,t+1))break;case 6444:switch(D(e,F(e)-3-(~R(e,"!important")&&10))){case 107:return V(e,":",":"+se)+e;case 101:return V(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(45===D(e,14)?"inline-":"")+"box$3$1"+se+"$2$3$1"+ie+"$2box$3")+e}break;case 5936:switch(D(e,t+11)){case 114:return se+e+ie+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+ie+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+ie+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+ie+e+e}return e}var xe=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case le:e.return=Ce(e.value,e.length);break;case pe:return de([B(e,{value:V(e.value,"@","@"+se)})],o);case ce:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return de([B(e,{props:[V(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return de([B(e,{props:[V(t,/:(plac\w+)/,":"+se+"input-$1")]}),B(e,{props:[V(t,/:(plac\w+)/,":-moz-$1")]}),B(e,{props:[V(t,/:(plac\w+)/,ie+"input-$1")]})],o)}return""}))}}],ke=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,r,i=e.stylisPlugins||xe,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var u,c,l,p,d=[fe,(p=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],f=(c=[Oe,Se].concat(i,d),l=T(c),function(e,t,n,o){for(var r="",i=0;i<l;i++)r+=c[i](e,t,n,o)||"";return r});r=function(e,t,n,o){u=n,de(he(e?e+"{"+t.styles+"}":t.styles),f),o&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new k({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:r};return h.sheet.hydrate(s),h},Ie=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},Ee={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Me(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Pe=/[A-Z]|^ms/g,Ve=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Re=function(e){return 45===e.charCodeAt(1)},De=function(e){return null!=e&&"boolean"!=typeof e},Le=Me((function(e){return Re(e)?e:e.replace(Pe,"-$&").toLowerCase()})),Fe=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ve,(function(e,t,n){return Ae={name:t,styles:n,next:Ae},t}))}return 1===Ee[e]||Re(e)||"number"!=typeof t||0===t?t:t+"px"};function Te(e,t,n){if(null==n)return"";var o=n;if(void 0!==o.__emotion_styles)return o;switch(typeof n){case"boolean":return"";case"object":var r=n;if(1===r.anim)return Ae={name:r.name,styles:r.styles,next:Ae},r.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Ae={name:a.name,styles:a.styles,next:Ae},a=a.next;return i.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=Te(e,t,n[r])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?o+=i+"{"+t[s]+"}":De(s)&&(o+=Le(i)+":"+Fe(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var u=Te(e,t,a);switch(i){case"animation":case"animationName":o+=Le(i)+":"+u+";";break;default:o+=i+"{"+u+"}"}}else for(var c=0;c<a.length;c++)De(a[c])&&(o+=Le(i)+":"+Fe(i,a[c])+";")}return o}(e,t,n);case"function":if(void 0!==e){var s=Ae,u=n(e);return Ae=s,Te(e,t,u)}}var c=n;if(null==t)return c;var l=t[c];return void 0!==l?l:c}var Ae,_e=/label:\s*([^\s;{]+)\s*(;|$)/g;function je(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,r="";Ae=void 0;var i=e[0];null==i||void 0===i.raw?(o=!1,r+=Te(n,t,i)):r+=i[0];for(var a=1;a<e.length;a++)r+=Te(n,t,e[a]),o&&(r+=i[a]);_e.lastIndex=0;for(var s,u="";null!==(s=_e.exec(r));)u+="-"+s[1];var c=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+u;return{name:c,styles:r,next:Ae}}var He,$e,Ne=!!g.useInsertionEffect&&g.useInsertionEffect,Ue=Ne||function(e){return e()},ze=(Ne||g.useLayoutEffect,g.createContext("undefined"!=typeof HTMLElement?ke({key:"css"}):null)),Be=(ze.Provider,function(e){return(0,g.forwardRef)((function(t,n){var o=(0,g.useContext)(ze);return e(t,o,n)}))}),We=g.createContext({}),Ge={}.hasOwnProperty,Ye="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Xe=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return Ie(t,n,o),Ue((function(){return function(e,t,n){Ie(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(t,n,o)})),null},qe=Be((function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var r=e[Ye],i=[o],a="";"string"==typeof e.className?a=function(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(o+=n+" ")})),o}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=je(i,void 0,g.useContext(We));a+=t.key+"-"+s.name;var u={};for(var c in e)Ge.call(e,c)&&"css"!==c&&c!==Ye&&(u[c]=e[c]);return u.className=a,n&&(u.ref=n),g.createElement(g.Fragment,null,g.createElement(Xe,{cache:t,serialized:s,isStringTag:"string"==typeof r}),g.createElement(r,u))})),Je=qe,Ke=(n(146),function(e,t){var n=arguments;if(null==t||!Ge.call(t,"css"))return g.createElement.apply(void 0,n);var o=n.length,r=new Array(o);r[0]=Je,r[1]=function(e,t){var n={};for(var o in t)Ge.call(t,o)&&(n[o]=t[o]);return n[Ye]=e,n}(e,t);for(var i=2;i<o;i++)r[i]=n[i];return g.createElement.apply(null,r)});function Ze(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return je(t)}He=Ke||(Ke={}),$e||($e=He.JSX||(He.JSX={}));const Qe=window.ReactDOM,et=Math.min,tt=Math.max,nt=Math.round,ot=Math.floor,rt=e=>({x:e,y:e});function it(){return"undefined"!=typeof window}function at(e){return ct(e)?(e.nodeName||"").toLowerCase():"#document"}function st(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ut(e){var t;return null==(t=(ct(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ct(e){return!!it()&&(e instanceof Node||e instanceof st(e).Node)}function lt(e){return!!it()&&(e instanceof Element||e instanceof st(e).Element)}function pt(e){return!!it()&&(e instanceof HTMLElement||e instanceof st(e).HTMLElement)}function dt(e){return!(!it()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof st(e).ShadowRoot)}function ft(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ht(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function ht(e){return st(e).getComputedStyle(e)}function mt(e){const t=function(e){if("html"===at(e))return e;const t=e.assignedSlot||e.parentNode||dt(e)&&e.host||ut(e);return dt(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(at(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:pt(t)&&ft(t)?t:mt(t)}function vt(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=mt(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=st(r);if(i){const e=gt(a);return t.concat(a,a.visualViewport||[],ft(r)?r:[],e&&n?vt(e):[])}return t.concat(r,vt(r,[],n))}function gt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bt(e){return lt(e)?e:e.contextElement}function yt(e){const t=bt(e);if(!pt(t))return rt(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=function(e){const t=ht(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=pt(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,s=nt(n)!==i||nt(o)!==a;return s&&(n=i,o=a),{width:n,height:o,$:s}}(t);let a=(i?nt(n.width):n.width)/o,s=(i?nt(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const wt=rt(0);function Ot(e){const t=st(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:wt}function St(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=bt(e);let a=rt(1);t&&(o?lt(o)&&(a=yt(o)):a=yt(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==st(e))&&t}(i,n,o)?Ot(i):rt(0);let u=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,l=r.width/a.x,p=r.height/a.y;if(i){const e=st(i),t=o&&lt(o)?st(o):o;let n=e,r=gt(n);for(;r&&o&&t!==n;){const e=yt(r),t=r.getBoundingClientRect(),o=ht(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;u*=e.x,c*=e.y,l*=e.x,p*=e.y,u+=i,c+=a,n=st(r),r=gt(n)}}return function(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}({width:l,height:p,x:u,y:c})}function Ct(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var xt=g.useLayoutEffect,kt=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],It=function(){};function Et(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Mt(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var i=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(Et(e,a)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Pt=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===u(e)&&null!==e?[e]:[];var t},Vt=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,d({},v(e,kt))},Rt=function(e,t,n){var o=e.cx,r=e.getStyles,i=e.getClassNames,a=e.className;return{css:r(t,e),className:o(null!=n?n:{},i(t,e),a)}};function Dt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Lt(e){return Dt(e)?window.pageYOffset:e.scrollTop}function Ft(e,t){Dt(e)?window.scrollTo(0,t):e.scrollTop=t}function Tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:It,r=Lt(e),i=t-r,a=0;!function t(){var s,u=i*((s=(s=a+=10)/n-1)*s*s+1)+r;Ft(e,u),a<n?window.requestAnimationFrame(t):o(e)}()}function At(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=t.offsetHeight/3;o.bottom+r>n.bottom?Ft(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r<n.top&&Ft(e,Math.max(t.offsetTop-r,0))}function _t(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var jt=!1,Ht={get passive(){return jt=!0}},$t="undefined"!=typeof window?window:{};$t.addEventListener&&$t.removeEventListener&&($t.addEventListener("p",It,Ht),$t.removeEventListener("p",It,!1));var Nt=jt;function Ut(e){return null!=e}function zt(e,t,n){return e?t:n}var Bt=["children","innerProps"],Wt=["children","innerProps"];var Gt,Yt,Xt,qt=function(e){return"auto"===e?"bottom":e},Jt=(0,g.createContext)(null),Kt=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,r=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,u=((0,g.useContext)(Jt)||{}).setPortalPlacement,c=(0,g.useRef)(null),l=m((0,g.useState)(o),2),p=l[0],f=l[1],h=m((0,g.useState)(null),2),v=h[0],b=h[1],y=s.spacing.controlHeight;return xt((function(){var e=c.current;if(e){var t="fixed"===i,s=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var l,p=u.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,h=d.height,m=d.top,v=n.offsetParent.getBoundingClientRect().top,g=a||Dt(l=u)?window.innerHeight:l.clientHeight,b=Lt(u),y=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),O=v-w,S=g-m,C=O+b,x=p-b-m,k=f-g+b+y,I=b+m-w,E=160;switch(r){case"auto":case"bottom":if(S>=h)return{placement:"bottom",maxHeight:t};if(x>=h&&!a)return i&&Tt(u,k,E),{placement:"bottom",maxHeight:t};if(!a&&x>=o||a&&S>=o)return i&&Tt(u,k,E),{placement:"bottom",maxHeight:a?S-y:x-y};if("auto"===r||a){var M=t,P=a?O:C;return P>=o&&(M=Math.min(P-y-s,t)),{placement:"top",maxHeight:M}}if("bottom"===r)return i&&Ft(u,k),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(C>=h&&!a)return i&&Tt(u,I,E),{placement:"top",maxHeight:t};if(!a&&C>=o||a&&O>=o){var V=t;return(!a&&C>=o||a&&O>=o)&&(V=a?O-w:C-w),i&&Tt(u,I,E),{placement:"top",maxHeight:V}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return c}({maxHeight:o,menuEl:e,minHeight:n,placement:r,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:y});f(s.maxHeight),b(s.placement),null==u||u(s.placement)}}),[o,r,i,a,n,u,y]),t({ref:c,placerProps:d(d({},e),{},{placement:v||qt(r),maxHeight:p})})},Zt=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return d({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},Qt=Zt,en=Zt,tn=["size"],nn=["innerProps","isRtl","size"],on={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},rn=function(e){var t=e.size,n=v(e,tn);return Ke("svg",y({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:on},n))},an=function(e){return Ke(rn,y({size:20},e),Ke("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},sn=function(e){return Ke(rn,y({size:20},e),Ke("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},un=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return d({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*r,":hover":{color:n?i.neutral80:i.neutral40}})},cn=un,ln=un,pn=function(){var e=Ze.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Gt||(Yt=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],Xt||(Xt=Yt.slice(0)),Gt=Object.freeze(Object.defineProperties(Yt,{raw:{value:Object.freeze(Xt)}})))),dn=function(e){var t=e.delay,n=e.offset;return Ke("span",{css:Ze({animation:"".concat(pn," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},fn=["data"],hn=["innerRef","isDisabled","isHidden","inputClassName"],mn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},vn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":d({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},mn)},gn=function(e){return d({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},mn)},bn=function(e){var t=e.children,n=e.innerProps;return Ke("div",n,t)},yn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Ke("div",y({},Rt(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Ke(an,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return Ke("div",y({ref:r},Rt(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Ke("div",y({},Rt(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Ke(sn,null))},DownChevron:sn,CrossIcon:an,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,r=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,u=e.label,c=e.theme,l=e.selectProps;return Ke("div",y({},Rt(e,"group",{group:!0}),s),Ke(i,y({},a,{selectProps:l,theme:c,getStyles:o,getClassNames:r,cx:n}),u),Ke("div",null,t))},GroupHeading:function(e){var t=Vt(e);t.data;var n=v(t,fn);return Ke("div",y({},Rt(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Ke("div",y({},Rt(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Ke("span",y({},t,Rt(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=Vt(e),r=o.innerRef,i=o.isDisabled,a=o.isHidden,s=o.inputClassName,u=v(o,hn);return Ke("div",y({},Rt(e,"input",{"input-container":!0}),{"data-value":n||""}),Ke("input",y({className:t({input:!0},s),ref:r,style:gn(a),disabled:i},u)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,r=void 0===o?4:o,i=v(e,nn);return Ke("div",y({},Rt(d(d({},i),{},{innerProps:t,isRtl:n,size:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Ke(dn,{delay:0,offset:n}),Ke(dn,{delay:160,offset:!0}),Ke(dn,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return Ke("div",y({},Rt(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,r=e.isMulti;return Ke("div",y({},Rt(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,r=e.innerProps,i=e.menuPlacement,a=e.menuPosition,s=(0,g.useRef)(null),u=(0,g.useRef)(null),c=m((0,g.useState)(qt(i)),2),l=c[0],p=c[1],f=(0,g.useMemo)((function(){return{setPortalPlacement:p}}),[]),h=m((0,g.useState)(null),2),v=h[0],b=h[1],w=(0,g.useCallback)((function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===a?0:window.pageYOffset,n=e[l]+t;n===(null==v?void 0:v.offset)&&e.left===(null==v?void 0:v.rect.left)&&e.width===(null==v?void 0:v.rect.width)||b({offset:n,rect:e})}}),[o,a,l,null==v?void 0:v.offset,null==v?void 0:v.rect.left,null==v?void 0:v.rect.width]);xt((function(){w()}),[w]);var O=(0,g.useCallback)((function(){"function"==typeof u.current&&(u.current(),u.current=null),o&&s.current&&(u.current=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=o,c=bt(e),l=r||i?[...c?vt(c):[],...vt(t)]:[];l.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const p=c&&s?function(e,t){let n,o=null;const r=ut(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),i();const c=e.getBoundingClientRect(),{left:l,top:p,width:d,height:f}=c;if(s||t(),!d||!f)return;const h={rootMargin:-ot(p)+"px "+-ot(r.clientWidth-(l+d))+"px "+-ot(r.clientHeight-(p+f))+"px "+-ot(l)+"px",threshold:tt(0,et(1,u))||1};let m=!0;function v(t){const o=t[0].intersectionRatio;if(o!==u){if(!m)return a();o?a(!1,o):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==o||Ct(c,e.getBoundingClientRect())||a(),m=!1}try{o=new IntersectionObserver(v,{...h,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(v,h)}o.observe(e)}(!0),i}(c,n):null;let d,f=-1,h=null;a&&(h=new ResizeObserver((e=>{let[o]=e;o&&o.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!u&&h.observe(c),h.observe(t));let m=u?St(e):null;return u&&function t(){const o=St(e);m&&!Ct(m,o)&&n(),m=o,d=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==p||p(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(d)}}(o,s.current,w,{elementResize:"ResizeObserver"in window}))}),[o,w]);xt((function(){O()}),[O]);var S=(0,g.useCallback)((function(e){s.current=e,O()}),[O]);if(!t&&"fixed"!==a||!v)return null;var C=Ke("div",y({ref:S},Rt(d(d({},e),{},{offset:v.offset,position:a,rect:v.rect}),"menuPortal",{"menu-portal":!0}),r),n);return Ke(Jt.Provider,{value:f},t?(0,Qe.createPortal)(C,t):C)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,r=v(e,Wt);return Ke("div",y({},Rt(d(d({},r),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,r=v(e,Bt);return Ke("div",y({},Rt(d(d({},r),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:function(e){var t=e.children,n=e.components,o=e.data,r=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,u=n.Container,c=n.Label,l=n.Remove;return Ke(u,{data:o,innerProps:d(d({},Rt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),r),selectProps:s},Ke(c,{data:o,innerProps:d({},Rt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Ke(l,{data:o,innerProps:d(d({},Rt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:bn,MultiValueLabel:bn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Ke("div",y({role:"button"},n),t||Ke(an,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.innerRef,a=e.innerProps;return Ke("div",y({},Rt(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":r}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Ke("div",y({},Rt(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,r=e.isRtl;return Ke("div",y({},Rt(e,"container",{"--is-disabled":o,"--is-rtl":r}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return Ke("div",y({},Rt(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,r=e.hasValue;return Ke("div",y({},Rt(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":r}),n),t)}},wn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function On(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(r=t[n])||wn(o)&&wn(r)))return!1;var o,r;return!0}for(var Sn={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Cn=function(e){return Ke("span",y({css:Sn},e))},xn={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,r=e.context,i=e.isInitialFocus;switch(r){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,r=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(o,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,r=e.label,i=void 0===r?"":r,a=e.selectValue,s=e.isDisabled,u=e.isSelected,c=e.isAppleDevice,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(l(a,n),".");if("menu"===t&&c){var p=s?" disabled":"",d="".concat(u?" selected":"").concat(p);return"".concat(i).concat(d,", ").concat(l(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},kn=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,r=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,u=e.id,c=e.isAppleDevice,l=s.ariaLiveMessages,p=s.getOptionLabel,f=s.inputValue,h=s.isMulti,m=s.isOptionDisabled,v=s.isSearchable,b=s.menuIsOpen,y=s.options,w=s.screenReaderStatus,O=s.tabSelectsValue,S=s.isLoading,C=s["aria-label"],x=s["aria-live"],k=(0,g.useMemo)((function(){return d(d({},xn),l||{})}),[l]),I=(0,g.useMemo)((function(){var e,n="";if(t&&k.onChange){var o=t.option,r=t.options,i=t.removedValue,s=t.removedValues,u=t.value,c=i||o||(e=u,Array.isArray(e)?null:e),l=c?p(c):"",f=r||s||void 0,h=f?f.map(p):[],v=d({isDisabled:c&&m(c,a),label:l,labels:h},t);n=k.onChange(v)}return n}),[t,k,m,a,p]),E=(0,g.useMemo)((function(){var e="",t=n||o,i=!!(n&&a&&a.includes(n));if(t&&k.onFocus){var s={focused:t,label:p(t),isDisabled:m(t,a),isSelected:i,options:r,context:t===n?"menu":"value",selectValue:a,isAppleDevice:c};e=k.onFocus(s)}return e}),[n,o,p,m,k,r,a,c]),M=(0,g.useMemo)((function(){var e="";if(b&&y.length&&!S&&k.onFilter){var t=w({count:r.length});e=k.onFilter({inputValue:f,resultsMessage:t})}return e}),[r,f,b,k,y,w,S]),P="initial-input-focus"===(null==t?void 0:t.action),V=(0,g.useMemo)((function(){var e="";if(k.guidance){var t=o?"value":b?"menu":"input";e=k.guidance({"aria-label":C,context:t,isDisabled:n&&m(n,a),isMulti:h,isSearchable:v,tabSelectsValue:O,isInitialFocus:P})}return e}),[C,n,o,h,m,v,b,k,a,O,P]),R=Ke(g.Fragment,null,Ke("span",{id:"aria-selection"},I),Ke("span",{id:"aria-focused"},E),Ke("span",{id:"aria-results"},M),Ke("span",{id:"aria-guidance"},V));return Ke(g.Fragment,null,Ke(Cn,{id:u},P&&R),Ke(Cn,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!P&&R))},In=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],En=new RegExp("["+In.map((function(e){return e.letters})).join("")+"]","g"),Mn={},Pn=0;Pn<In.length;Pn++)for(var Vn=In[Pn],Rn=0;Rn<Vn.letters.length;Rn++)Mn[Vn.letters[Rn]]=Vn.base;var Dn=function(e){return e.replace(En,(function(e){return Mn[e]}))},Ln=function(e,t){void 0===t&&(t=On);var n=null;function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return o.clear=function(){n=null},o}(Dn),Fn=function(e){return e.replace(/^\s+|\s+$/g,"")},Tn=function(e){return"".concat(e.label," ").concat(e.value)},An=["innerRef"];function jn(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=Object.entries(e).filter((function(e){var t=m(e,1)[0];return!n.includes(t)}));return r.reduce((function(e,t){var n=m(t,2),o=n[0],r=n[1];return e[o]=r,e}),{})}(v(e,An),"onExited","in","enter","exit","appear");return Ke("input",y({ref:t},n,{css:Ze({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Hn=["boxSizing","height","overflow","paddingRight","position"],$n={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Nn(e){e.cancelable&&e.preventDefault()}function Un(e){e.stopPropagation()}function zn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Bn(){return"ontouchstart"in window||navigator.maxTouchPoints}var Wn=!("undefined"==typeof window||!window.document||!window.document.createElement),Gn=0,Yn={capture:!1,passive:!1},Xn=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},qn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Jn(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,r=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,r=e.onTopArrive,i=e.onTopLeave,a=(0,g.useRef)(!1),s=(0,g.useRef)(!1),u=(0,g.useRef)(0),c=(0,g.useRef)(null),l=(0,g.useCallback)((function(e,t){if(null!==c.current){var u=c.current,l=u.scrollTop,p=u.scrollHeight,d=u.clientHeight,f=c.current,h=t>0,m=p-d-l,v=!1;m>t&&a.current&&(o&&o(e),a.current=!1),h&&s.current&&(i&&i(e),s.current=!1),h&&t>m?(n&&!a.current&&n(e),f.scrollTop=p,v=!0,a.current=!0):!h&&-t>l&&(r&&!s.current&&r(e),f.scrollTop=0,v=!0,s.current=!0),v&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,o,r,i]),p=(0,g.useCallback)((function(e){l(e,e.deltaY)}),[l]),d=(0,g.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),f=(0,g.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;l(e,t)}),[l]),h=(0,g.useCallback)((function(e){if(e){var t=!!Nt&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",f,t)}}),[f,d,p]),m=(0,g.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",f,!1))}),[f,d,p]);return(0,g.useEffect)((function(){if(t){var e=c.current;return h(e),function(){m(e)}}}),[t,h,m]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,r=(0,g.useRef)({}),i=(0,g.useRef)(null),a=(0,g.useCallback)((function(e){if(Wn){var t=document.body,n=t&&t.style;if(o&&Hn.forEach((function(e){var t=n&&n[e];r.current[e]=t})),o&&Gn<1){var i=parseInt(r.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys($n).forEach((function(e){var t=$n[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&Bn()&&(t.addEventListener("touchmove",Nn,Yn),e&&(e.addEventListener("touchstart",zn,Yn),e.addEventListener("touchmove",Un,Yn))),Gn+=1}}),[o]),s=(0,g.useCallback)((function(e){if(Wn){var t=document.body,n=t&&t.style;Gn=Math.max(Gn-1,0),o&&Gn<1&&Hn.forEach((function(e){var t=r.current[e];n&&(n[e]=t)})),t&&Bn()&&(t.removeEventListener("touchmove",Nn,Yn),e&&(e.removeEventListener("touchstart",zn,Yn),e.removeEventListener("touchmove",Un,Yn)))}}),[o]);return(0,g.useEffect)((function(){if(t){var e=i.current;return a(e),function(){s(e)}}}),[t,a,s]),function(e){i.current=e}}({isEnabled:n});return Ke(g.Fragment,null,n&&Ke("div",{onClick:Xn,css:qn}),t((function(e){r(e),i(e)})))}var Kn={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Zn=function(e){var t=e.name,n=e.onFocus;return Ke("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Kn,value:"",onChange:function(){}})};function Qn(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function eo(){return Qn(/^Mac/i)}var to={clearIndicator:ln,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.theme,i=r.colors,a=r.borderRadius;return d({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:r.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:o?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:o?i.primary:i.neutral30}})},dropdownIndicator:cn,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,o=n.colors,r=n.spacing;return d({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing.baseUnit,i=o.colors;return d({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*r,marginTop:2*r})},input:function(e,t){var n=e.isDisabled,o=e.value,r=e.theme,i=r.spacing,a=r.colors;return d(d({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},vn),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,r=e.theme,i=r.colors,a=r.spacing.baseUnit;return d({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:en,menu:function(e,t){var n,o=e.placement,r=e.theme,i=r.borderRadius,a=r.spacing,s=r.colors;return d((l(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),l(n,"position","absolute"),l(n,"width","100%"),l(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return d({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors;return d({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:r/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,r=n.colors,i=e.cropWithEllipsis;return d({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,i=n.colors,a=e.isFocused;return d({alignItems:"center",display:"flex"},t?{}:{borderRadius:r/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Qt,option:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return d({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:r?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,r=n.colors;return d({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing,i=o.colors;return d({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,r=e.hasValue,i=e.selectProps.controlShouldRenderValue;return d({alignItems:"center",display:o&&r&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},no={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},oo={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:_t(),captureMenuScroll:!_t(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=d({ignoreCase:!0,ignoreAccents:!0,stringify:Tn,trim:!0,matchFrom:"any"},undefined),o=n.ignoreCase,r=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,u=a?Fn(t):t,c=a?Fn(i(e)):i(e);return o&&(u=u.toLowerCase(),c=c.toLowerCase()),r&&(u=Ln(u),c=Dn(c)),"start"===s?c.substr(0,u.length)===u:c.indexOf(u)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ro(e,t,n,o){return{type:"option",data:t,isDisabled:fo(e,t,n),isSelected:ho(e,t,n),label:lo(e,t),value:po(e,t),index:o}}function io(e,t){return e.options.map((function(n,o){if("options"in n){var r=n.options.map((function(n,o){return ro(e,n,t,o)})).filter((function(t){return uo(e,t)}));return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var i=ro(e,n,t,o);return uo(e,i)?i:void 0})).filter(Ut)}function ao(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,x(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function so(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,x(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function uo(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,i=t.isSelected,a=t.label,s=t.value;return(!vo(e)||!i)&&mo(e,{label:a,value:s,data:r},o)}var co=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},lo=function(e,t){return e.getOptionLabel(t)},po=function(e,t){return e.getOptionValue(t)};function fo(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function ho(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=po(e,t);return n.some((function(t){return po(e,t)===o}))}function mo(e,t,n){return!e.filterOption||e.filterOption(t,n)}var vo=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},go=1,bo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)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&&O(e,t)}(n,e);var t=function(e){var t=C();return function(){var n,o=S(e);if(t){var r=S(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(n);function n(e){var o;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(o=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=eo()||Qn(/^iPhone/i)||Qn(/^iPad/i)||eo()&&navigator.maxTouchPoints>1,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,r=n.onChange,i=n.name;t.name=i,o.ariaOnChange(e,t),r(e,t)},o.setValue=function(e,t,n){var r=o.props,i=r.closeMenuOnSelect,a=r.isMulti,s=r.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,r=t.isMulti,i=t.name,a=o.state.selectValue,s=r&&o.isOptionSelected(e,a),u=o.isOptionDisabled(e,a);if(s){var c=o.getOptionValue(e);o.setValue(a.filter((function(e){return o.getOptionValue(e)!==c})),"deselect-option",e)}else{if(u)return void o.ariaOnChange(e,{action:"select-option",option:e,name:i});r?o.setValue([].concat(x(a),[e]),"select-option",e):o.setValue(e,"select-option")}n&&o.blurInput()},o.removeValue=function(e){var t=o.props.isMulti,n=o.state.selectValue,r=o.getOptionValue(e),i=n.filter((function(e){return o.getOptionValue(e)!==r})),a=zt(t,i,i[0]||null);o.onChange(a,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e=o.state.selectValue;o.onChange(zt(o.props.isMulti,[],null),{action:"clear",removedValues:e})},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,n=t[t.length-1],r=t.slice(0,t.length-1),i=zt(e,r,r[0]||null);n&&o.onChange(i,{action:"pop-value",removedValue:n})},o.getFocusedOptionId=function(e){return co(o.state.focusableOptionsWithIds,e)},o.getFocusableOptionsWithIds=function(){return so(io(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Mt.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return lo(o.props,e)},o.getOptionValue=function(e){return po(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,r=to[e](t,n);r.boxSizing="border-box";var i=o.props.styles[e];return i?i(r,t):r},o.getClassNames=function(e,t){var n,r;return null===(n=(r=o.props.classNames)[e])||void 0===n?void 0:n.call(r,t)},o.getElementId=function(e){return"".concat(o.state.instancePrefix,"-").concat(e)},o.getComponents=function(){return e=o.props,d(d({},yn),e.components);var e},o.buildCategorizedOptions=function(){return io(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return ao(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:d({value:e},t)})},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(e){o.blockOptionHover=!1},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},o.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||o.props.isDisabled)){var t=o.props,n=t.isMulti,r=t.menuIsOpen;o.focusInput(),r?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault()}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout((function(){return o.focusInput()})))},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Dt(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1)},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var r=Math.abs(n.clientX-o.initialTouchX),i=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=r>5||i>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){var t=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}))},o.onOptionHover=function(e){if(!o.blockOptionHover&&o.state.focusedOption!==e){var t=o.getFocusableOptions().indexOf(e);o.setState({focusedOption:e,focusedOptionId:t>-1?o.getFocusedOptionId(e):null})}},o.shouldHideSelectedOptions=function(){return vo(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus()},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,r=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,u=t.isDisabled,c=t.menuIsOpen,l=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,f=o.state,h=f.focusedOption,m=f.focusedValue,v=f.selectValue;if(!(u||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;o.focusValue("previous");break;case"ArrowRight":if(!n||a)return;o.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)o.removeValue(m);else{if(!r)return;n?o.popValue():s&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!c||!p||!h||d&&o.isOptionSelected(h,v))return;o.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(o.isComposing)return;o.selectOption(h);break}return;case"Escape":c?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:a}),o.onMenuClose()):s&&i&&o.clearValue();break;case" ":if(a)return;if(!c){o.openMenu("first");break}if(!h)return;o.selectOption(h);break;case"ArrowUp":c?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":c?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!c)return;o.focusOption("pageup");break;case"PageDown":if(!c)return;o.focusOption("pagedown");break;case"Home":if(!c)return;o.focusOption("first");break;case"End":if(!c)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++go),o.state.selectValue=Pt(e.value),e.menuIsOpen&&o.state.selectValue.length){var r=o.getFocusableOptionsWithIds(),i=o.buildFocusableOptions(),a=i.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=r,o.state.focusedOption=i[a],o.state.focusedOptionId=co(r,i[a])}return o}return function(e,t,n){t&&w(e.prototype,t),n&&w(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&At(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,r=this.state.isFocused;(r&&!n&&e.isDisabled||r&&o&&!e.menuIsOpen)&&this.focusInput(),r&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(At(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,r=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(o[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===r?0:-1===r?i:r-1;break;case"next":r>-1&&r<i&&(a=r+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var r=0,i=o.indexOf(n);n||(i=-1),"up"===e?r=i>0?i-1:o.length-1:"down"===e?r=(i+1)%o.length:"pageup"===e?(r=i-t)<0&&(r=0):"pagedown"===e?(r=i+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[r])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(no):d(d({},no),this.props.theme):no}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,r=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,u=s.isMulti,c=s.isRtl,l=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:r,hasValue:this.hasValue(),isMulti:u,isRtl:c,options:l,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return fo(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return ho(this.props,e,t)}},{key:"filterOption",value:function(e,t){return mo(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,r=e.inputValue,i=e.tabIndex,a=e.form,s=e.menuIsOpen,u=e.required,c=this.getComponents().Input,l=this.state,p=l.inputIsHidden,f=l.ariaSelection,h=this.commonProps,m=o||this.getElementId("input"),v=d(d(d({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?g.createElement(c,y({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:r},v)):g.createElement(jn,y({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:It,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,r=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,u=this.commonProps,c=this.props,l=c.controlShouldRenderValue,p=c.isDisabled,d=c.isMulti,f=c.inputValue,h=c.placeholder,m=this.state,v=m.selectValue,b=m.focusedValue,w=m.isFocused;if(!this.hasValue()||!l)return f?null:g.createElement(s,y({},u,{key:"placeholder",isDisabled:p,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),h);if(d)return v.map((function(t,a){var s=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return g.createElement(n,y({},u,{components:{Container:o,Label:r,Remove:i},isFocused:s,isDisabled:p,key:c,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(f)return null;var O=v[0];return g.createElement(a,y({},u,{data:O,isDisabled:p}),this.formatOptionLabel(O,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||r)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return g.createElement(e,y({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,i=this.state.isFocused;return e&&r?g.createElement(e,y({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused;return g.createElement(n,y({},o,{isDisabled:r,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return g.createElement(e,y({},t,{innerProps:r,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,r=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,u=t.NoOptionsMessage,c=t.Option,l=this.commonProps,p=this.state.focusedOption,d=this.props,f=d.captureMenuScroll,h=d.inputValue,m=d.isLoading,v=d.loadingMessage,b=d.minMenuHeight,w=d.maxMenuHeight,O=d.menuIsOpen,S=d.menuPlacement,C=d.menuPosition,x=d.menuPortalTarget,k=d.menuShouldBlockScroll,I=d.menuShouldScrollIntoView,E=d.noOptionsMessage,M=d.onMenuScrollToTop,P=d.onMenuScrollToBottom;if(!O)return null;var V,R=function(t,n){var o=t.type,r=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,u=t.value,d=p===r,f=i?void 0:function(){return e.onOptionHover(r)},h=i?void 0:function(){return e.selectOption(r)},m="".concat(e.getElementId("option"),"-").concat(n),v={id:m,onClick:h,onMouseMove:f,onMouseOver:f,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:a};return g.createElement(c,y({},l,{innerProps:v,data:r,isDisabled:i,isSelected:a,key:m,label:s,type:o,value:u,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())V=this.getCategorizedOptions().map((function(t){if("group"===t.type){var r=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),u="".concat(s,"-heading");return g.createElement(n,y({},l,{key:s,data:r,options:i,Heading:o,headingProps:{id:u,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return R(e,"".concat(a,"-").concat(e.index))})))}if("option"===t.type)return R(t,"".concat(t.index))}));else if(m){var D=v({inputValue:h});if(null===D)return null;V=g.createElement(s,l,D)}else{var L=E({inputValue:h});if(null===L)return null;V=g.createElement(u,l,L)}var F={minMenuHeight:b,maxMenuHeight:w,menuPlacement:S,menuPosition:C,menuShouldScrollIntoView:I},T=g.createElement(Kt,y({},l,F),(function(t){var n=t.ref,o=t.placerProps,a=o.placement,s=o.maxHeight;return g.createElement(r,y({},l,F,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:a}),g.createElement(Jn,{captureEnabled:f,onTopArrive:M,onBottomArrive:P,lockEnabled:k},(function(t){return g.createElement(i,y({},l,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":l.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:s,focusedOption:p}),V)})))}));return x||"fixed"===C?g.createElement(a,y({},l,{appendTo:x,controlElement:this.controlRef,menuPlacement:S,menuPosition:C}),T):T}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,r=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!o)return g.createElement(Zn,{name:i,onFocus:this.onValueInputFocus});if(i&&!o){if(r){if(n){var u=s.map((function(t){return e.getOptionValue(t)})).join(n);return g.createElement("input",{name:i,type:"hidden",value:u})}var c=s.length>0?s.map((function(t,n){return g.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):g.createElement("input",{name:i,type:"hidden",value:""});return g.createElement("div",null,c)}var l=s[0]?this.getOptionValue(s[0]):"";return g.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,r=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return g.createElement(kn,y({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:r,isFocused:i,selectValue:a,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,r=e.ValueContainer,i=this.props,a=i.className,s=i.id,u=i.isDisabled,c=i.menuIsOpen,l=this.state.isFocused,p=this.commonProps=this.getCommonProps();return g.createElement(o,y({},p,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:l}),this.renderLiveRegion(),g.createElement(t,y({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:l,menuIsOpen:c}),g.createElement(r,y({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),g.createElement(n,y({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,u=t.instancePrefix,c=e.options,l=e.value,p=e.menuIsOpen,f=e.inputValue,h=e.isMulti,m=Pt(l),v={};if(n&&(l!==n.value||c!==n.options||p!==n.menuIsOpen||f!==n.inputValue)){var g=p?function(e,t){return ao(io(e,t))}(e,m):[],b=p?so(io(e,m),"".concat(u,"-option")):[],y=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,m):null,w=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);v={selectValue:m,focusedOption:w,focusedOptionId:co(b,w),focusableOptionsWithIds:b,focusedValue:y,clearFocusValueOnUpdate:!1}}var O=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},S=i,C=a&&s;return a&&!C&&(S={value:zt(h,m,m[0]||null),options:m,action:"initial-input-focus"},C=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(S=null),d(d(d({},v),O),{},{prevProps:e,ariaSelection:S,prevWasFocused:C})}}]),n}(g.Component);bo.defaultProps=oo;var yo=(0,g.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,r=void 0!==o&&o,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,u=e.menuIsOpen,c=e.onChange,l=e.onInputChange,p=e.onMenuClose,f=e.onMenuOpen,h=e.value,y=v(e,b),w=m((0,g.useState)(void 0!==s?s:n),2),O=w[0],S=w[1],C=m((0,g.useState)(void 0!==u?u:r),2),x=C[0],k=C[1],I=m((0,g.useState)(void 0!==h?h:a),2),E=I[0],M=I[1],P=(0,g.useCallback)((function(e,t){"function"==typeof c&&c(e,t),M(e)}),[c]),V=(0,g.useCallback)((function(e,t){var n;"function"==typeof l&&(n=l(e,t)),S(void 0!==n?n:e)}),[l]),R=(0,g.useCallback)((function(){"function"==typeof f&&f(),k(!0)}),[f]),D=(0,g.useCallback)((function(){"function"==typeof p&&p(),k(!1)}),[p]),L=void 0!==s?s:O,F=void 0!==u?u:x,T=void 0!==h?h:E;return d(d({},y),{},{inputValue:L,menuIsOpen:F,onChange:P,onInputChange:V,onMenuClose:D,onMenuOpen:R,value:T})}(e);return g.createElement(bo,y({ref:t},n))})),wo=yo;const Oo=(0,s.getSetting)("mc-shipping-blocks_data",{}),So=window.wp.hooks;var Co=n(848);const xo=(0,s.getSetting)("mc-shipping-blocks_data",{});(0,r.registerCheckoutBlock)({metadata:o,component:({checkoutExtensionData:e})=>{const t=xo?.defaultCountry||"EE",n=xo?.pickupPointPlaceholder||"Select pickup point",[o,r]=(0,i.useState)(t),[s,u]=(0,i.useState)(null),[c,l]=(0,i.useState)([]),[p,d]=(0,i.useState)(!1),[f,h]=(0,i.useState)(!1),{setExtensionData:m}=e;(e=>{(0,i.useEffect)((()=>((0,So.addAction)("experimental__woocommerce_blocks-checkout-set-shipping-address","makecommerce/shipping",(async t=>{const n=t?.storeCart?.shippingAddress?.country?.toUpperCase()||"OTHER";e((e=>e!==n?((async e=>{const t=wc?.blocksCheckout?.extensionCartUpdate;t?t({namespace:"makecommerce",data:{country:e.toUpperCase()}}).catch((e=>{console.error("Failed to update country:",e)})):(console.error("extensionCartUpdate is not available. Must be run on Blocks Checkout."),Promise.reject("extensionCartUpdate is not available"))})(n),n):e))})),()=>{(0,So.removeAction)("experimental__woocommerce_blocks-checkout-set-shipping-address","makecommerce/shipping")})),[e])})(r);const{shippingRates:v}=(0,a.useSelect)((e=>{var t;const n=e("wc/store/cart"),o=n?.getCartData?.();return{shippingRates:null!==(t=o?.shippingRates)&&void 0!==t?t:[]}}),[]);(({shippingRates:e,selectedCountry:t,setIsMcShipping:n,setLoading:o,setPickupPointOptions:r,setSelectedPickupPoint:a,setExtensionData:s})=>{const u=(0,i.useRef)(""),c=(0,i.useRef)("");(0,i.useEffect)((()=>{const i=e?.[0];if(!i)return;const l=i.shipping_rates.find((e=>e.selected));if(!l)return;const p=l.rate_id;if(s("makecommerce","shipping_method",p),p?.startsWith("mc_courier_"))return void r([]);if(!p?.startsWith("mc_pickuppoint_"))return void n(!1);const d=p.split("_")[2];d&&(u.current!==p||c.current!==t?(u.current=p,c.current=t,n(!0),o(!0),r([]),a(null),(async(e,t)=>{const n=Oo?.ajaxUrl||"/wp-admin/admin-ajax.php";return(await fetch(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"get_carrier_machines",mc_carrier_id:e,country:t,selected_machine:""})})).json()})(d,t).then((e=>{const t=(e=>{const t=[];for(const n in e.machines)e.machines[n].forEach((e=>{t.push({value:e.id,label:`${e.name} - ${e.city}, ${e.address}, ${e.zip}`,meta:e})}));return t})(e);if(r(t),o(!1),t.length>0){const e=t.find((e=>!0===e.meta?.selected));e?(a(e),s("makecommerce","machine_id",e.value)):(a(t[0]),s("makecommerce","machine_id",t[0].value))}})).catch((()=>o(!1)))):n(!0))}),[e,t])})({shippingRates:v,selectedCountry:o,setIsMcShipping:d,setLoading:h,setPickupPointOptions:l,setSelectedPickupPoint:u,setExtensionData:m});const g=(0,i.useCallback)((e=>{u(e),m("makecommerce","machine_id",e.value)}),[m]);return p&&0!==c.length?(0,Co.jsxs)("div",{className:"mc-block-pickup-point",children:[(0,Co.jsx)("div",{className:"wc-block-components-checkout-step__heading",children:(0,Co.jsx)("h2",{className:"wc-block-components-title wc-block-components-checkout-step__title",children:n})}),(0,Co.jsx)("div",{className:"wc-block-components-checkout-step__container",children:(0,Co.jsx)("div",{className:"wc-block-components-checkout-step__content",children:(0,Co.jsx)(wo,{id:"mc_pickup_point_select",options:c,value:s,isLoading:f,onChange:g})})})]}):null}})})();
  • makecommerce/trunk/makecommerce/shipping/blocks/mc-shipping-blocks-blocks-integration.php

    r3318735 r3323422  
    7171            'mc-shipping-blocks-active'    => true,
    7272            'defaultCountry'               => $this->get_default_country(),
    73             'pickupPointPlaceholder'       => __('Select pickup point', 'wc_makecommerce_domain')
     73            'pickupPointPlaceholder'       => __('Select pickup point', 'wc_makecommerce_domain'),
     74            'ajaxUrl'                      => admin_url( 'admin-ajax.php' )
    7475        ];
    7576        return $data;
  • makecommerce/trunk/makecommerce/shipping/blocks/mc-shipping-blocks.php

    r3318735 r3323422  
    9696            $order->update_meta_data( '_mc_machine_id', $machine_id );
    9797        }
     98
     99        $order->save();
    98100    }
    99101
     
    114116        $machine_id = $order->get_meta('_mc_machine_id', true);
    115117        $carrier = $order->get_meta('_mc_shipping_carrier', true);
     118        $shipment_id = $order->get_meta('_mc_shipment_id', true);
    116119        $country = $order->get_shipping_country();
    117120
     
    120123        }
    121124
    122         if ( empty( $carrier ) ) {
     125        // if _mc_shipment_id empty, then not mc shipment and do not add details
     126        if ( empty( $shipment_id ) ) {
    123127            return;
    124128        }
  • makecommerce/trunk/makecommerce/shipping/blocks/src/hooks/usePickupOptions.js

    r3318735 r3323422  
    11import { useEffect, useRef } from '@wordpress/element';
     2import {getSetting} from "@woocommerce/settings";
     3
     4const mcShippingBlocksData = getSetting('mc-shipping-blocks_data', {});
    25
    36const fetchCarrierMachines = async (carrier, selectedCountry) => {
    4     const response = await fetch('/wp-admin/admin-ajax.php', {
     7    const ajaxUrl = mcShippingBlocksData?.ajaxUrl || '/wp-admin/admin-ajax.php';
     8    const response = await fetch(ajaxUrl, {
    59        method: 'POST',
    610        headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
     
    5155
    5256        const rateId = selectedRate.rate_id;
     57        setExtensionData('makecommerce', 'shipping_method', rateId);
     58
    5359        if (rateId?.startsWith('mc_courier_')) {
    54             setExtensionData('makecommerce', 'shipping_method', rateId);
     60            setPickupPointOptions([]);
    5561            return;
    5662        }
     
    7379        previousCountryRef.current = selectedCountry;
    7480
    75         setExtensionData('makecommerce', 'shipping_method', rateId);
    7681        setIsMcShipping(true);
    7782        setLoading(true);
  • makecommerce/trunk/makecommerce/shipping/css/pickup-point.css

    r3313138 r3323422  
    77  max-width: 600px;
    88}
     9
     10.wc-checkout-review-order-table tr.makecommerce-pickuppoint-wrapper,
     11.woocommerce-checkout-review-order-table tr.makecommerce-pickuppoint-wrapper {
     12  display: none;
     13}
  • makecommerce/trunk/makecommerce/shipping/js/pickuppoint.js

    r3318735 r3323422  
    2727
    2828    jQuery.ajax({
    29         url: '/wp-admin/admin-ajax.php',
     29        url: MC_PARCELMACHINE_JS['ajaxurl'] ?? '/wp-admin/admin-ajax.php',
    3030        type: 'post',
    3131        data: {
     
    156156
    157157    if ($tableData.length > 0) {
     158        jQuery('.makecommerce-pickuppoint-wrapper').show();
     159        jQuery('.makecommerce-pickuppoint-wrapper').removeAttr('hidden');
    158160        return wrapAndAppend(div, $tableData);
    159161    }
  • makecommerce/trunk/makecommerce/shipping/order.php

    r3318735 r3323422  
    5757        $order = wc_get_order($order->get_id());
    5858
     59        if ( ! $order ) {return;}
     60
    5961        $shipment_id   = $order->get_meta('_mc_shipment_id', true);
    6062        $tracking_link = $order->get_meta('_mc_tracking_link', true);
     
    6870        }
    6971
     72        // if _mc_shipment_id empty, then not mc shipment and do not add details
     73        if ( empty( $shipment_id ) ) {
     74            return;
     75        }
     76
    7077        if ( $plain_text ) {
    71             echo "=== MakeCommerce Shipping Details ===\n";
     78            echo "=== " . __( 'MakeCommerce Shipping Details', 'wc_makecommerce_domain' ) . " ===\n";
    7279
    7380            if ( $machine_id ) {
     
    138145        $machine_id    = $order->get_meta( '_mc_machine_id', true );
    139146        $carrier       = $order->get_meta( '_mc_shipping_carrier', true );
     147        $mc_method     = $order->get_meta('_mc_shipping_method', true);
    140148        $tracking_link = $order->get_meta( '_mc_tracking_link', true );
    141149        $shipment_id   = $order->get_meta( '_mc_shipment_id', true );
     
    146154        }
    147155
    148         if ( empty( $carrier ) ) {
     156        if ( empty( $carrier ) || empty( $mc_method) ) {
    149157            $old_machine = $order->get_meta( '_parcel_machine', true );
    150158            if (!empty( $old_machine ) ) {
    151159                echo '<p style="color:red">' . __( 'Unable to display shipment details<br> This MakeCommerce shipment was created with v3.4 or lower plugin', 'wc_makecommerce_domain' ) . '</p>';
    152160            }
     161            return;
     162        }
     163
     164        // if _mc_shipment_id empty, then not mc shipment and do not add details
     165        if (empty($shipment_id)) {
    153166            return;
    154167        }
  • makecommerce/trunk/makecommerce/shipping/shipping.php

    r3318735 r3323422  
    164164     */
    165165    public function mc_pickuppoint_after_shipping_details() {
    166         echo '<tr class="makecommerce-pickuppoint-wrapper">
     166        echo '<tr class="makecommerce-pickuppoint-wrapper" hidden>
    167167                <td colspan="2" class="makecommerce-pickuppoint-table-data"></td>
    168168            </tr>';
     
    348348    private function get_destination_data($order, $machine)
    349349    {
     350        $country = $order->get_shipping_country() ?: WC()->countries->get_base_country();
    350351        if ($machine) {
    351352            return [
    352353                'destination' => [
    353354                    'id' => $machine,
    354                     'country' => $order->get_shipping_country(),
     355                    'country' => $country,
    355356                ],
    356357            ];
     
    360361            'destination' => [
    361362                'zip' => $order->get_shipping_postcode(),
    362                 'country' => $order->get_shipping_country(),
     363                'country' => $country,
    363364                'city' => $order->get_shipping_city(),
    364365                'street' => !empty($order->get_shipping_address_2())
     
    507508    public static function get_carrier_country_machines($carrier, $country, $selected_machine = '')
    508509    {
    509         $client = self::init_client();
    510         // Fallback if the country should be empty
    511         if (empty($country)) {
    512             self::get_shipping_country();
    513         }
    514 
    515         $raw_machines = $client->listCarrierDestinations($carrier, $country);
    516 
    517         return array_reduce($raw_machines, function ($result, $item) use ($selected_machine) {
    518             $result[$item->city][] = [
    519                 'id' => $item->id,
    520                 'name' => $item->name,
    521                 'address' => $item->address ?? '',
    522                 'availability' => $item->availability ?? '',
    523                 'city' => $item->city ?? '',
    524                 'zip' => $item->zip ?? '',
    525                 'longitude' => $item->x ?? '',
    526                 'latitude' => $item->y ?? '',
    527                 'selected' => $item->id === $selected_machine
    528             ];
    529             return $result;
    530         }, []);
     510        try{
     511            $client = self::init_client();
     512            // Fallback if the country should be empty
     513            if (empty($country)) {
     514                self::get_shipping_country();
     515            }
     516
     517            $raw_machines = $client->listCarrierDestinations($carrier, $country);
     518
     519            return array_reduce($raw_machines, function ($result, $item) use ($selected_machine) {
     520                $result[$item->city][] = [
     521                    'id' => $item->id,
     522                    'name' => $item->name,
     523                    'address' => $item->address ?? '',
     524                    'availability' => $item->availability ?? '',
     525                    'city' => $item->city ?? '',
     526                    'zip' => $item->zip ?? '',
     527                    'longitude' => $item->x ?? '',
     528                    'latitude' => $item->y ?? '',
     529                    'selected' => $item->id === $selected_machine
     530                ];
     531                return $result;
     532            }, []);
     533        } catch (\Exception $e) {
     534            error_log('Error while fetching pickup points [' . $e->getMessage() . ']');
     535            return [];
     536        }
    531537    }
    532538
     
    546552                [
    547553                    'placeholder' => __('Select pickup point', 'wc_makecommerce_domain'),
    548                     'loadingPlaceholder' => __('Loading pickup points...', 'wc_makecommerce_domain')
     554                    'loadingPlaceholder' => __('Loading pickup points...', 'wc_makecommerce_domain'),
     555                    'ajaxurl' => admin_url( 'admin-ajax.php' )
    549556                ],
    550557                ['jquery'],
     
    565572        $baseData = [
    566573            'path' => plugin_dir_url(__DIR__),
     574            's3_path' => 'https://static.maksekeskus.ee/img/woocommerce/'
    567575        ];
    568576
  • makecommerce/trunk/payment/gateway/woocommerce/woocommerce.php

    r3318735 r3323422  
    1212
    1313    public $id = MAKECOMMERCE_PLUGIN_ID;
    14     public $version = '4.0.3';
     14    public $version = '4.0.4';
    1515   
    1616    public $payment_return_url;
Note: See TracChangeset for help on using the changeset viewer.