From 3000a0aded22fe02da80cba8970529ad46a6dd0a Mon Sep 17 00:00:00 2001 From: scottqueen-bixal Date: Wed, 2 Oct 2024 16:21:26 -0400 Subject: [PATCH 1/5] updated dependency injection for data controller --- .../src/Controller/CheckDataController.php | 70 +++++++++++++++---- 1 file changed, 56 insertions(+), 14 deletions(-) diff --git a/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_content/src/Controller/CheckDataController.php b/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_content/src/Controller/CheckDataController.php index e97f66a650..66760501d2 100644 --- a/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_content/src/Controller/CheckDataController.php +++ b/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_content/src/Controller/CheckDataController.php @@ -2,13 +2,21 @@ namespace Drupal\usagov_benefit_finder_content\Controller; +use Drupal\Core\Controller\ControllerBase; +use Drupal\Core\Database\Connection; +use Drupal\Core\Entity\EntityTypeManagerInterface; +use Drupal\Core\File\FileSystemInterface; +use Drupal\Core\File\FileUrlGeneratorInterface; +use Drupal\file\FileRepositoryInterface; use Drupal\usagov_benefit_finder\Traits\BenefitFinderTrait; +use Symfony\Component\DependencyInjection\ContainerInterface; +use Symfony\Component\HttpFoundation\RequestStack; /** * Class CheckDataController * @package Drupal\usagov_benefit_finder_content\Controller */ -class CheckDataController { +class CheckDataController extends ControllerBase { use BenefitFinderTrait; @@ -48,11 +56,11 @@ class CheckDataController { protected $database; /** - * Retrieves the currently active request object. + * The request stack. * - * @var \Symfony\Component\HttpFoundation\Request + * @var \Symfony\Component\HttpFoundation\RequestStack */ - protected $request; + protected $requestStack; /** * The benefit finder content mode. @@ -76,15 +84,49 @@ class CheckDataController { protected $expanded; /** - * Constructs a new LifeEventController object. + * Constructs a new CheckDataController object. + * + * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager + * The entity type manager. + * @param \Drupal\Core\File\FileSystemInterface $file_system + * The file system service. + * @param \Drupal\file\FileRepositoryInterface|null $file_repository + * The file repository. + * @param \Drupal\Core\File\FileUrlGeneratorInterface $file_url_generator + * The file URL generator. + * @param \Drupal\Core\Database\Connection $connection + * The database connection. + * @param \Symfony\Component\HttpFoundation\RequestStack $request_stack + * The request stack. + */ + public function __construct( + EntityTypeManagerInterface $entity_type_manager, + FileSystemInterface $file_system, + FileRepositoryInterface $file_repository, + FileUrlGeneratorInterface $file_url_generator, + Connection $database, + RequestStack $request_stack, + ) { + $this->entityTypeManager = $entity_type_manager; + $this->fileSystem = $file_system; + $this->fileRepository = $file_repository; + $this->fileUrlGenerator = $file_url_generator; + $this->database = $database; + $this->requestStack = $request_stack; + } + + /** + * {@inheritdoc} */ - public function __construct() { - $this->entityTypeManager = \Drupal::service('entity_type.manager'); - $this->fileSystem = \Drupal::service('file_system'); - $this->fileRepository = \Drupal::service('file.repository'); - $this->fileUrlGenerator = \Drupal::service('file_url_generator'); - $this->database = \Drupal::service('database'); - $this->request = \Drupal::request(); + public static function create(ContainerInterface $container) { + return new static( + $container->get('entity_type.manager'), + $container->get('file_system'), + $container->get('file.repository'), + $container->get('file_url_generator'), + $container->get('database'), + $container->get('request_stack'), + ); } /** @@ -95,12 +137,12 @@ public function checkData() { // Get langcode. if (empty($this->langcode)) { - $this->langcode = $this->request->get('langcode') ?? "en"; + $this->langcode = $this->requestStack->getCurrentRequest()->query->get('langcode') ?? "en"; } // Get expanded. if (empty($this->expanded)) { - $this->expanded = $this->request->get('expanded') ?? "false"; + $this->expanded = $this->requestStack->getCurrentRequest()->query->get('expanded') ?? "false"; } $help = << Date: Wed, 2 Oct 2024 16:22:37 -0400 Subject: [PATCH 2/5] provide warning message if benefit is still used in life event form --- .../usagov_benefit_finder_content.module | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_content/usagov_benefit_finder_content.module b/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_content/usagov_benefit_finder_content.module index 24cc4d65fa..0b83e85535 100644 --- a/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_content/usagov_benefit_finder_content.module +++ b/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_content/usagov_benefit_finder_content.module @@ -464,3 +464,63 @@ function _usagov_benefit_finder_content_check_life_event_form_usage_in_life_even return $return; } + +/** + * Implements hook_form_FORM_ID_alter(). + */ +function usagov_benefit_finder_content_form_node_bears_benefit_delete_form_alter(array &$form, FormStateInterface $form_state) { + _usagov_benefit_finder_content_check_benefit_usage($form); +} + +/** + * It checks benefit usage in life event forms and lists the life event forms. + * + * @param array $form + * Form array. + */ +function _usagov_benefit_finder_content_check_benefit_usage(array &$form) { + $description = ''; + + $node = \Drupal::routeMatch()->getParameter('node'); + $nid = $node->id(); + + $result = _usagov_benefit_finder_content_check_benefit_usage_in_life_event_form($nid); + foreach ($result as $row) { + $description .= "
  • Life event form: $row[title] ($row[nid])
  • "; + } + + if (!empty($description)) { + $description = '
    ' + . 'This benefit is used in following content:' + . "
      $description
    " + . '
    '; + $form['description']['#markup'] = t($description); + } +} + +/** + * It checks benefit usage in life event form. + * + * @param int $nid + * Node ID of given benefit. + * @return array + * An array of Node ID and title of life event forms. + */ +function _usagov_benefit_finder_content_check_benefit_usage_in_life_event_form(int $nid) { + $return = []; + + $connection = Database::getConnection(); + + $query = $connection->select('node_field_data', 't1'); + $query->join('node__field_b_life_event_forms', 't2', 't1.nid = t2.field_b_life_event_forms_target_id'); + $query->fields('t1', ['title', 'nid']); + $query->condition('t2.entity_id', $nid); + $query->orderBy('title'); + $result = $query->execute(); + + foreach ($result as $row) { + $return[] = ['nid' => $row->nid, 'title' => $row->title]; + } + + return $return; +} From 9bb7a488294ff0a326fa24fda1b86fe4bde8b13b Mon Sep 17 00:00:00 2001 From: scottqueen-bixal Date: Wed, 2 Oct 2024 16:29:22 -0400 Subject: [PATCH 3/5] add display order in life event --- ..._display.node.bears_life_event.default.yml | 8 +++++++ ..._display.node.bears_life_event.default.yml | 10 ++++++++ ...w_display.node.bears_life_event.teaser.yml | 2 ++ ...bears_life_event.field_b_display_order.yml | 23 ++++++++++++++++++ ...eld.storage.node.field_b_display_order.yml | 24 +++++++++++++++++++ 5 files changed, 67 insertions(+) create mode 100644 config/sync/field.field.node.bears_life_event.field_b_display_order.yml create mode 100644 config/sync/field.storage.node.field_b_display_order.yml diff --git a/config/sync/core.entity_form_display.node.bears_life_event.default.yml b/config/sync/core.entity_form_display.node.bears_life_event.default.yml index 94335f34f8..995e1ae1c6 100644 --- a/config/sync/core.entity_form_display.node.bears_life_event.default.yml +++ b/config/sync/core.entity_form_display.node.bears_life_event.default.yml @@ -3,6 +3,7 @@ langcode: en status: true dependencies: config: + - field.field.node.bears_life_event.field_b_display_order - field.field.node.bears_life_event.field_b_id - field.field.node.bears_life_event.field_b_search_title - field.field.node.bears_life_event.field_draft_json_data_file @@ -33,6 +34,13 @@ content: region: content settings: { } third_party_settings: { } + field_b_display_order: + type: number + weight: 26 + region: content + settings: + placeholder: '' + third_party_settings: { } field_b_id: type: string_textfield weight: 3 diff --git a/config/sync/core.entity_view_display.node.bears_life_event.default.yml b/config/sync/core.entity_view_display.node.bears_life_event.default.yml index 502604726b..2322b1679f 100644 --- a/config/sync/core.entity_view_display.node.bears_life_event.default.yml +++ b/config/sync/core.entity_view_display.node.bears_life_event.default.yml @@ -3,6 +3,7 @@ langcode: en status: true dependencies: config: + - field.field.node.bears_life_event.field_b_display_order - field.field.node.bears_life_event.field_b_id - field.field.node.bears_life_event.field_b_search_title - field.field.node.bears_life_event.field_draft_json_data_file @@ -30,6 +31,15 @@ content: third_party_settings: { } weight: -20 region: content + field_b_display_order: + type: number_integer + label: above + settings: + thousand_separator: '' + prefix_suffix: true + third_party_settings: { } + weight: 13 + region: content field_b_id: type: string label: above diff --git a/config/sync/core.entity_view_display.node.bears_life_event.teaser.yml b/config/sync/core.entity_view_display.node.bears_life_event.teaser.yml index 7c76eec768..3b2340f5cc 100644 --- a/config/sync/core.entity_view_display.node.bears_life_event.teaser.yml +++ b/config/sync/core.entity_view_display.node.bears_life_event.teaser.yml @@ -4,6 +4,7 @@ status: true dependencies: config: - core.entity_view_mode.node.teaser + - field.field.node.bears_life_event.field_b_display_order - field.field.node.bears_life_event.field_b_id - field.field.node.bears_life_event.field_b_search_title - field.field.node.bears_life_event.field_draft_json_data_file @@ -35,6 +36,7 @@ content: weight: 100 region: content hidden: + field_b_display_order: true field_b_id: true field_b_search_title: true field_draft_json_data_file: true diff --git a/config/sync/field.field.node.bears_life_event.field_b_display_order.yml b/config/sync/field.field.node.bears_life_event.field_b_display_order.yml new file mode 100644 index 0000000000..b52b196dee --- /dev/null +++ b/config/sync/field.field.node.bears_life_event.field_b_display_order.yml @@ -0,0 +1,23 @@ +uuid: 09004dc5-fcc7-4802-a64f-64629089ee4a +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_b_display_order + - node.type.bears_life_event +id: node.bears_life_event.field_b_display_order +field_name: field_b_display_order +entity_type: node +bundle: bears_life_event +label: 'Display Order' +description: 'The display order in benefit finder tool box of benefit finder landing page (https://www.usa.gov/benefit-finder)' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + min: null + max: null + prefix: '' + suffix: '' +field_type: integer diff --git a/config/sync/field.storage.node.field_b_display_order.yml b/config/sync/field.storage.node.field_b_display_order.yml new file mode 100644 index 0000000000..170b964b24 --- /dev/null +++ b/config/sync/field.storage.node.field_b_display_order.yml @@ -0,0 +1,24 @@ +uuid: ab4533d6-5920-4bba-9e8d-39269f7625d5 +langcode: en +status: true +dependencies: + module: + - field_permissions + - node +third_party_settings: + field_permissions: + permission_type: public +id: node.field_b_display_order +field_name: field_b_display_order +entity_type: node +type: integer +settings: + unsigned: false + size: normal +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false From fee478be57794f69b1f5f8aeb0c8a05e19a2c672 Mon Sep 17 00:00:00 2001 From: scottqueen-bixal Date: Wed, 2 Oct 2024 16:31:05 -0400 Subject: [PATCH 4/5] update relevant benefit link field as required --- ...d.field.paragraph.b_levent_relevant_benefit.field_b_link.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/sync/field.field.paragraph.b_levent_relevant_benefit.field_b_link.yml b/config/sync/field.field.paragraph.b_levent_relevant_benefit.field_b_link.yml index 60c8ed0dd9..c50b0965a6 100644 --- a/config/sync/field.field.paragraph.b_levent_relevant_benefit.field_b_link.yml +++ b/config/sync/field.field.paragraph.b_levent_relevant_benefit.field_b_link.yml @@ -11,7 +11,7 @@ entity_type: paragraph bundle: b_levent_relevant_benefit label: Link description: '' -required: false +required: true translatable: false default_value: { } default_value_callback: '' From afcabdc24c4460cd7075b0ce9074f0c7b42e6913 Mon Sep 17 00:00:00 2001 From: scottqueen-bixal Date: Wed, 2 Oct 2024 16:31:33 -0400 Subject: [PATCH 5/5] lastest js app build --- .../js/benefit-finder.min.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_app/usagov_benefit_finder_page/js/benefit-finder.min.js b/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_app/usagov_benefit_finder_page/js/benefit-finder.min.js index ce8edee46f..8e4d5382a1 100644 --- a/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_app/usagov_benefit_finder_page/js/benefit-finder.min.js +++ b/web/modules/custom/usagov_benefit_finder/modules/usagov_benefit_finder_app/usagov_benefit_finder_page/js/benefit-finder.min.js @@ -22,7 +22,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(k,O){var P=k.length;k.push(O);e:for(;0>>1,A=k[I];if(0>>1;Il(Yt,P))Kel(Nt,Yt)?(k[I]=Nt,k[Ke]=P,I=Ke):(k[I]=Yt,k[oe]=P,I=oe);else if(Kel(Nt,P))k[I]=Nt,k[Ke]=P,I=Ke;else break e}}return O}function l(k,O){var P=k.sortIndex-O.sortIndex;return P!==0?P:k.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],c=[],h=1,m=null,f=3,g=!1,S=!1,x=!1,b=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(k){for(var O=n(c);O!==null;){if(O.callback===null)r(c);else if(O.startTime<=k)r(c),O.sortIndex=O.expirationTime,t(u,O);else break;O=n(c)}}function w(k){if(x=!1,v(k),!S)if(n(u)!==null)S=!0,W(E);else{var O=n(c);O!==null&&C(w,O.startTime-k)}}function E(k,O){S=!1,x&&(x=!1,p(L),L=-1),g=!0;var P=f;try{for(v(O),m=n(u);m!==null&&(!(m.expirationTime>O)||k&&!H());){var I=m.callback;if(typeof I=="function"){m.callback=null,f=m.priorityLevel;var A=I(m.expirationTime<=O);O=e.unstable_now(),typeof A=="function"?m.callback=A:m===n(u)&&r(u),v(O)}else r(u);m=n(u)}if(m!==null)var ne=!0;else{var oe=n(c);oe!==null&&C(w,oe.startTime-O),ne=!1}return ne}finally{m=null,f=P,g=!1}}var N=!1,j=null,L=-1,B=5,R=-1;function H(){return!(e.unstable_now()-Rk||125I?(k.sortIndex=P,t(c,k),n(u)===null&&k===n(c)&&(x?(p(L),L=-1):x=!0,C(w,P-I))):(k.sortIndex=A,t(u,k),S||g||(S=!0,W(E))),k},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(k){var O=f;return function(){var P=f;f=O;try{return k.apply(this,arguments)}finally{f=P}}}})(Gu);Zu.exports=Gu;var $p=Zu.exports;/** + */(function(e){function t(k,O){var P=k.length;k.push(O);e:for(;0>>1,A=k[I];if(0>>1;Il(Yt,P))Kel(Nt,Yt)?(k[I]=Nt,k[Ke]=P,I=Ke):(k[I]=Yt,k[oe]=P,I=oe);else if(Kel(Nt,P))k[I]=Nt,k[Ke]=P,I=Ke;else break e}}return O}function l(k,O){var P=k.sortIndex-O.sortIndex;return P!==0?P:k.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],c=[],f=1,m=null,p=3,g=!1,S=!1,x=!1,b=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(k){for(var O=n(c);O!==null;){if(O.callback===null)r(c);else if(O.startTime<=k)r(c),O.sortIndex=O.expirationTime,t(u,O);else break;O=n(c)}}function w(k){if(x=!1,v(k),!S)if(n(u)!==null)S=!0,W(E);else{var O=n(c);O!==null&&C(w,O.startTime-k)}}function E(k,O){S=!1,x&&(x=!1,h(L),L=-1),g=!0;var P=p;try{for(v(O),m=n(u);m!==null&&(!(m.expirationTime>O)||k&&!H());){var I=m.callback;if(typeof I=="function"){m.callback=null,p=m.priorityLevel;var A=I(m.expirationTime<=O);O=e.unstable_now(),typeof A=="function"?m.callback=A:m===n(u)&&r(u),v(O)}else r(u);m=n(u)}if(m!==null)var ne=!0;else{var oe=n(c);oe!==null&&C(w,oe.startTime-O),ne=!1}return ne}finally{m=null,p=P,g=!1}}var N=!1,j=null,L=-1,B=5,R=-1;function H(){return!(e.unstable_now()-Rk||125I?(k.sortIndex=P,t(c,k),n(u)===null&&k===n(c)&&(x?(h(L),L=-1):x=!0,C(w,P-I))):(k.sortIndex=A,t(u,k),S||g||(S=!0,W(E))),k},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(k){var O=p;return function(){var P=p;p=O;try{return k.apply(this,arguments)}finally{p=P}}}})(Gu);Zu.exports=Gu;var $p=Zu.exports;/** * @license React * react-dom.production.min.js * @@ -34,15 +34,15 @@ `+Oo+e}var Mo=!1;function Po(e,t){if(!e||Mo)return"";Mo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var l=c.stack.split(` `),o=r.stack.split(` `),i=l.length-1,s=o.length-1;1<=i&&0<=s&&l[i]!==o[s];)s--;for(;1<=i&&0<=s;i--,s--)if(l[i]!==o[s]){if(i!==1||s!==1)do if(i--,s--,0>s||l[i]!==o[s]){var u=` -`+l[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{Mo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?sr(e):""}function Vp(e){switch(e.tag){case 5:return sr(e.type);case 16:return sr("Lazy");case 13:return sr("Suspense");case 19:return sr("SuspenseList");case 0:case 2:case 15:return e=Po(e.type,!1),e;case 11:return e=Po(e.type.render,!1),e;case 1:return e=Po(e.type,!0),e;default:return""}}function si(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Cn:return"Fragment";case Sn:return"Portal";case li:return"Profiler";case as:return"StrictMode";case oi:return"Suspense";case ii:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ju:return(e.displayName||"Context")+".Consumer";case Xu:return(e._context.displayName||"Context")+".Provider";case us:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cs:return t=e.displayName||null,t!==null?t:si(e.type)||"Memo";case Ot:t=e._payload,e=e._init;try{return si(e(t))}catch{}}return null}function Hp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return si(t);case 8:return t===as?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Up(e){var t=tc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nl(e){e._valueTracker||(e._valueTracker=Up(e))}function nc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ol(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ai(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function da(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rc(e,t){t=t.checked,t!=null&&ss(e,"checked",t,!1)}function ui(e,t){rc(e,t);var n=Kt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ci(e,t.type,n):t.hasOwnProperty("defaultValue")&&ci(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function fa(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ci(e,t,n){(t!=="number"||Ol(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ar=Array.isArray;function Rn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=rl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _r(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var dr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Wp=["Webkit","ms","Moz","O"];Object.keys(dr).forEach(function(e){Wp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),dr[t]=dr[e]})});function sc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||dr.hasOwnProperty(e)&&dr[e]?(""+t).trim():t+"px"}function ac(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=sc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Kp=te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function pi(e,t){if(t){if(Kp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function hi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mi=null;function ds(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vi=null,Dn=null,$n=null;function ma(e){if(e=qr(e)){if(typeof vi!="function")throw Error(_(280));var t=e.stateNode;t&&(t=mo(t),vi(e.stateNode,e.type,t))}}function uc(e){Dn?$n?$n.push(e):$n=[e]:Dn=e}function cc(){if(Dn){var e=Dn,t=$n;if($n=Dn=null,ma(e),t)for(e=0;e>>=0,e===0?32:31-(r1(e)/l1|0)|0}var ll=64,ol=4194304;function ur(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Dl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~l;s!==0?r=ur(s):(o&=i,o!==0&&(r=ur(o)))}else i=n&~l,i!==0?r=ur(i):o!==0&&(r=ur(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Wr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-et(t),e[t]=n}function a1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=pr),Ea=" ",_a=!1;function Tc(e,t){switch(e){case"keyup":return $1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kn=!1;function I1(e,t){switch(e){case"compositionend":return Oc(t);case"keypress":return t.which!==32?null:(_a=!0,Ea);case"textInput":return e=t.data,e===Ea&&_a?null:e;default:return null}}function A1(e,t){if(kn)return e==="compositionend"||!ws&&Tc(e,t)?(e=bc(),Sl=vs=Dt=null,kn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=La(n)}}function Dc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $c(){for(var e=window,t=Ol();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ol(e.document)}return t}function xs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Q1(e){var t=$c(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dc(n.ownerDocument.documentElement,n)){if(r!==null&&xs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Ta(n,o);var i=Ta(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,En=null,Ci=null,mr=null,ki=!1;function Oa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ki||En==null||En!==Ol(r)||(r=En,"selectionStart"in r&&xs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),mr&&Or(mr,r)||(mr=r,r=Il(Ci,"onSelect"),0Nn||(e.current=Li[Nn],Li[Nn]=null,Nn--)}function q(e,t){Nn++,Li[Nn]=e.current,e.current=t}var qt={},xe=Zt(qt),Ne=Zt(!1),cn=qt;function Bn(e,t){var n=e.type.contextTypes;if(!n)return qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function be(e){return e=e.childContextTypes,e!=null}function zl(){Z(Ne),Z(xe)}function Ia(e,t,n){if(xe.current!==qt)throw Error(_(168));q(xe,t),q(Ne,n)}function Wc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(_(108,Hp(e)||"Unknown",l));return te({},n,r)}function Bl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qt,cn=xe.current,q(xe,e),q(Ne,Ne.current),!0}function Aa(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Wc(e,t,cn),r.__reactInternalMemoizedMergedChildContext=e,Z(Ne),Z(xe),q(xe,e)):Z(Ne),q(Ne,n)}var gt=null,vo=!1,qo=!1;function Kc(e){gt===null?gt=[e]:gt.push(e)}function ih(e){vo=!0,Kc(e)}function Gt(){if(!qo&>!==null){qo=!0;var e=0,t=K;try{var n=gt;for(K=1;e>=i,l-=i,yt=1<<32-et(t)+l|n<L?(B=j,j=null):B=j.sibling;var R=f(p,j,v[L],w);if(R===null){j===null&&(j=B);break}e&&j&&R.alternate===null&&t(p,j),d=o(R,d,L),N===null?E=R:N.sibling=R,N=R,j=B}if(L===v.length)return n(p,j),G&&Jt(p,L),E;if(j===null){for(;LL?(B=j,j=null):B=j.sibling;var H=f(p,j,R.value,w);if(H===null){j===null&&(j=B);break}e&&j&&H.alternate===null&&t(p,j),d=o(H,d,L),N===null?E=H:N.sibling=H,N=H,j=B}if(R.done)return n(p,j),G&&Jt(p,L),E;if(j===null){for(;!R.done;L++,R=v.next())R=m(p,R.value,w),R!==null&&(d=o(R,d,L),N===null?E=R:N.sibling=R,N=R);return G&&Jt(p,L),E}for(j=r(p,j);!R.done;L++,R=v.next())R=g(j,p,L,R.value,w),R!==null&&(e&&R.alternate!==null&&j.delete(R.key===null?L:R.key),d=o(R,d,L),N===null?E=R:N.sibling=R,N=R);return e&&j.forEach(function(ae){return t(p,ae)}),G&&Jt(p,L),E}function b(p,d,v,w){if(typeof v=="object"&&v!==null&&v.type===Cn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case tl:e:{for(var E=v.key,N=d;N!==null;){if(N.key===E){if(E=v.type,E===Cn){if(N.tag===7){n(p,N.sibling),d=l(N,v.props.children),d.return=p,p=d;break e}}else if(N.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ot&&Va(E)===N.type){n(p,N.sibling),d=l(N,v.props),d.ref=lr(p,N,v),d.return=p,p=d;break e}n(p,N);break}else t(p,N);N=N.sibling}v.type===Cn?(d=sn(v.props.children,p.mode,w,v.key),d.return=p,p=d):(w=Ll(v.type,v.key,v.props,null,p.mode,w),w.ref=lr(p,d,v),w.return=p,p=w)}return i(p);case Sn:e:{for(N=v.key;d!==null;){if(d.key===N)if(d.tag===4&&d.stateNode.containerInfo===v.containerInfo&&d.stateNode.implementation===v.implementation){n(p,d.sibling),d=l(d,v.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=ti(v,p.mode,w),d.return=p,p=d}return i(p);case Ot:return N=v._init,b(p,d,N(v._payload),w)}if(ar(v))return S(p,d,v,w);if(Jn(v))return x(p,d,v,w);fl(p,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,d!==null&&d.tag===6?(n(p,d.sibling),d=l(d,v),d.return=p,p=d):(n(p,d),d=ei(v,p.mode,w),d.return=p,p=d),i(p)):n(p,d)}return b}var Hn=Gc(!0),Yc=Gc(!1),Ul=Zt(null),Wl=null,Tn=null,Es=null;function _s(){Es=Tn=Wl=null}function js(e){var t=Ul.current;Z(Ul),e._currentValue=t}function Mi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function In(e,t){Wl=e,Es=Tn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(je=!0),e.firstContext=null)}function Ue(e){var t=e._currentValue;if(Es!==e)if(e={context:e,memoizedValue:t,next:null},Tn===null){if(Wl===null)throw Error(_(308));Tn=e,Wl.dependencies={lanes:0,firstContext:e}}else Tn=Tn.next=e;return t}var rn=null;function Ns(e){rn===null?rn=[e]:rn.push(e)}function Xc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Ns(t)):(n.next=l.next,l.next=n),t.interleaved=n,kt(e,r)}function kt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Mt=!1;function bs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,kt(e,n)}return l=r.interleaved,l===null?(t.next=t,Ns(r)):(t.next=l.next,l.next=t),r.interleaved=t,kt(e,n)}function kl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ps(e,n)}}function Ha(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Kl(e,t,n,r){var l=e.updateQueue;Mt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var u=s,c=u.next;u.next=null,i===null?o=c:i.next=c,i=u;var h=e.alternate;h!==null&&(h=h.updateQueue,s=h.lastBaseUpdate,s!==i&&(s===null?h.firstBaseUpdate=c:s.next=c,h.lastBaseUpdate=u))}if(o!==null){var m=l.baseState;i=0,h=c=u=null,s=o;do{var f=s.lane,g=s.eventTime;if((r&f)===f){h!==null&&(h=h.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var S=e,x=s;switch(f=t,g=n,x.tag){case 1:if(S=x.payload,typeof S=="function"){m=S.call(g,m,f);break e}m=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=x.payload,f=typeof S=="function"?S.call(g,m,f):S,f==null)break e;m=te({},m,f);break e;case 2:Mt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=l.effects,f===null?l.effects=[s]:f.push(s))}else g={eventTime:g,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},h===null?(c=h=g,u=m):h=h.next=g,i|=f;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;f=s,s=f.next,f.next=null,l.lastBaseUpdate=f,l.shared.pending=null}}while(!0);if(h===null&&(u=m),l.baseState=u,l.firstBaseUpdate=c,l.lastBaseUpdate=h,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);pn|=i,e.lanes=i,e.memoizedState=m}}function Ua(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Zo.transition;Zo.transition={};try{e(!1),t()}finally{K=n,Zo.transition=r}}function vd(){return We().memoizedState}function ch(e,t,n){var r=Ut(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gd(e))yd(t,n);else if(n=Xc(e,t,n,r),n!==null){var l=Ce();tt(n,e,r,l),wd(n,t,r)}}function dh(e,t,n){var r=Ut(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gd(e))yd(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(l.hasEagerState=!0,l.eagerState=s,rt(s,i)){var u=t.interleaved;u===null?(l.next=l,Ns(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Xc(e,t,l,r),n!==null&&(l=Ce(),tt(n,e,r,l),wd(n,t,r))}}function gd(e){var t=e.alternate;return e===J||t!==null&&t===J}function yd(e,t){vr=Ql=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ps(e,n)}}var Zl={readContext:Ue,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},fh={readContext:Ue,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:Ue,useEffect:Ka,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_l(4194308,4,dd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _l(4194308,4,e,t)},useInsertionEffect:function(e,t){return _l(4,2,e,t)},useMemo:function(e,t){var n=st();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=st();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ch.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:Wa,useDebugValue:$s,useDeferredValue:function(e){return st().memoizedState=e},useTransition:function(){var e=Wa(!1),t=e[0];return e=uh.bind(null,e[1]),st().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=J,l=st();if(G){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),fe===null)throw Error(_(349));fn&30||rd(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Ka(od.bind(null,r,o,e),[e]),r.flags|=2048,Ar(9,ld.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=st(),t=fe.identifierPrefix;if(G){var n=wt,r=yt;n=(r&~(1<<32-et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Fr++,0")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{Mo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?sr(e):""}function Vp(e){switch(e.tag){case 5:return sr(e.type);case 16:return sr("Lazy");case 13:return sr("Suspense");case 19:return sr("SuspenseList");case 0:case 2:case 15:return e=Po(e.type,!1),e;case 11:return e=Po(e.type.render,!1),e;case 1:return e=Po(e.type,!0),e;default:return""}}function si(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Cn:return"Fragment";case Sn:return"Portal";case li:return"Profiler";case as:return"StrictMode";case oi:return"Suspense";case ii:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ju:return(e.displayName||"Context")+".Consumer";case Xu:return(e._context.displayName||"Context")+".Provider";case us:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case cs:return t=e.displayName||null,t!==null?t:si(e.type)||"Memo";case Ot:t=e._payload,e=e._init;try{return si(e(t))}catch{}}return null}function Hp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return si(t);case 8:return t===as?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Up(e){var t=tc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function nl(e){e._valueTracker||(e._valueTracker=Up(e))}function nc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ol(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ai(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function da(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rc(e,t){t=t.checked,t!=null&&ss(e,"checked",t,!1)}function ui(e,t){rc(e,t);var n=Kt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ci(e,t.type,n):t.hasOwnProperty("defaultValue")&&ci(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function fa(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ci(e,t,n){(t!=="number"||Ol(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ar=Array.isArray;function Rn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=rl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _r(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var dr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Wp=["Webkit","ms","Moz","O"];Object.keys(dr).forEach(function(e){Wp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),dr[t]=dr[e]})});function sc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||dr.hasOwnProperty(e)&&dr[e]?(""+t).trim():t+"px"}function ac(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=sc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Kp=te({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function pi(e,t){if(t){if(Kp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function hi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mi=null;function ds(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vi=null,Dn=null,$n=null;function ma(e){if(e=qr(e)){if(typeof vi!="function")throw Error(_(280));var t=e.stateNode;t&&(t=mo(t),vi(e.stateNode,e.type,t))}}function uc(e){Dn?$n?$n.push(e):$n=[e]:Dn=e}function cc(){if(Dn){var e=Dn,t=$n;if($n=Dn=null,ma(e),t)for(e=0;e>>=0,e===0?32:31-(r1(e)/l1|0)|0}var ll=64,ol=4194304;function ur(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Dl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~l;s!==0?r=ur(s):(o&=i,o!==0&&(r=ur(o)))}else i=n&~l,i!==0?r=ur(i):o!==0&&(r=ur(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Wr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-et(t),e[t]=n}function a1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=pr),Ea=" ",_a=!1;function Tc(e,t){switch(e){case"keyup":return $1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kn=!1;function I1(e,t){switch(e){case"compositionend":return Oc(t);case"keypress":return t.which!==32?null:(_a=!0,Ea);case"textInput":return e=t.data,e===Ea&&_a?null:e;default:return null}}function A1(e,t){if(kn)return e==="compositionend"||!ws&&Tc(e,t)?(e=bc(),Sl=vs=Dt=null,kn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=La(n)}}function Dc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $c(){for(var e=window,t=Ol();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ol(e.document)}return t}function xs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Q1(e){var t=$c(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dc(n.ownerDocument.documentElement,n)){if(r!==null&&xs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Ta(n,o);var i=Ta(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,En=null,Ci=null,mr=null,ki=!1;function Oa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ki||En==null||En!==Ol(r)||(r=En,"selectionStart"in r&&xs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),mr&&Or(mr,r)||(mr=r,r=Il(Ci,"onSelect"),0Nn||(e.current=Li[Nn],Li[Nn]=null,Nn--)}function Q(e,t){Nn++,Li[Nn]=e.current,e.current=t}var qt={},xe=Zt(qt),Ne=Zt(!1),cn=qt;function Bn(e,t){var n=e.type.contextTypes;if(!n)return qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function be(e){return e=e.childContextTypes,e!=null}function zl(){G(Ne),G(xe)}function Ia(e,t,n){if(xe.current!==qt)throw Error(_(168));Q(xe,t),Q(Ne,n)}function Wc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(_(108,Hp(e)||"Unknown",l));return te({},n,r)}function Bl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qt,cn=xe.current,Q(xe,e),Q(Ne,Ne.current),!0}function Aa(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Wc(e,t,cn),r.__reactInternalMemoizedMergedChildContext=e,G(Ne),G(xe),Q(xe,e)):G(Ne),Q(Ne,n)}var gt=null,vo=!1,qo=!1;function Kc(e){gt===null?gt=[e]:gt.push(e)}function ih(e){vo=!0,Kc(e)}function Gt(){if(!qo&>!==null){qo=!0;var e=0,t=K;try{var n=gt;for(K=1;e>=i,l-=i,yt=1<<32-et(t)+l|n<L?(B=j,j=null):B=j.sibling;var R=p(h,j,v[L],w);if(R===null){j===null&&(j=B);break}e&&j&&R.alternate===null&&t(h,j),d=o(R,d,L),N===null?E=R:N.sibling=R,N=R,j=B}if(L===v.length)return n(h,j),Y&&Jt(h,L),E;if(j===null){for(;LL?(B=j,j=null):B=j.sibling;var H=p(h,j,R.value,w);if(H===null){j===null&&(j=B);break}e&&j&&H.alternate===null&&t(h,j),d=o(H,d,L),N===null?E=H:N.sibling=H,N=H,j=B}if(R.done)return n(h,j),Y&&Jt(h,L),E;if(j===null){for(;!R.done;L++,R=v.next())R=m(h,R.value,w),R!==null&&(d=o(R,d,L),N===null?E=R:N.sibling=R,N=R);return Y&&Jt(h,L),E}for(j=r(h,j);!R.done;L++,R=v.next())R=g(j,h,L,R.value,w),R!==null&&(e&&R.alternate!==null&&j.delete(R.key===null?L:R.key),d=o(R,d,L),N===null?E=R:N.sibling=R,N=R);return e&&j.forEach(function(ae){return t(h,ae)}),Y&&Jt(h,L),E}function b(h,d,v,w){if(typeof v=="object"&&v!==null&&v.type===Cn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case tl:e:{for(var E=v.key,N=d;N!==null;){if(N.key===E){if(E=v.type,E===Cn){if(N.tag===7){n(h,N.sibling),d=l(N,v.props.children),d.return=h,h=d;break e}}else if(N.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Ot&&Va(E)===N.type){n(h,N.sibling),d=l(N,v.props),d.ref=lr(h,N,v),d.return=h,h=d;break e}n(h,N);break}else t(h,N);N=N.sibling}v.type===Cn?(d=sn(v.props.children,h.mode,w,v.key),d.return=h,h=d):(w=Ll(v.type,v.key,v.props,null,h.mode,w),w.ref=lr(h,d,v),w.return=h,h=w)}return i(h);case Sn:e:{for(N=v.key;d!==null;){if(d.key===N)if(d.tag===4&&d.stateNode.containerInfo===v.containerInfo&&d.stateNode.implementation===v.implementation){n(h,d.sibling),d=l(d,v.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=ti(v,h.mode,w),d.return=h,h=d}return i(h);case Ot:return N=v._init,b(h,d,N(v._payload),w)}if(ar(v))return S(h,d,v,w);if(Jn(v))return x(h,d,v,w);fl(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,d!==null&&d.tag===6?(n(h,d.sibling),d=l(d,v),d.return=h,h=d):(n(h,d),d=ei(v,h.mode,w),d.return=h,h=d),i(h)):n(h,d)}return b}var Hn=Gc(!0),Yc=Gc(!1),Ul=Zt(null),Wl=null,Tn=null,Es=null;function _s(){Es=Tn=Wl=null}function js(e){var t=Ul.current;G(Ul),e._currentValue=t}function Mi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function In(e,t){Wl=e,Es=Tn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(je=!0),e.firstContext=null)}function Ue(e){var t=e._currentValue;if(Es!==e)if(e={context:e,memoizedValue:t,next:null},Tn===null){if(Wl===null)throw Error(_(308));Tn=e,Wl.dependencies={lanes:0,firstContext:e}}else Tn=Tn.next=e;return t}var rn=null;function Ns(e){rn===null?rn=[e]:rn.push(e)}function Xc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,Ns(t)):(n.next=l.next,l.next=n),t.interleaved=n,kt(e,r)}function kt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Mt=!1;function bs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Jc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function xt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Vt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,kt(e,n)}return l=r.interleaved,l===null?(t.next=t,Ns(r)):(t.next=l.next,l.next=t),r.interleaved=t,kt(e,n)}function kl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ps(e,n)}}function Ha(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Kl(e,t,n,r){var l=e.updateQueue;Mt=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var u=s,c=u.next;u.next=null,i===null?o=c:i.next=c,i=u;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==i&&(s===null?f.firstBaseUpdate=c:s.next=c,f.lastBaseUpdate=u))}if(o!==null){var m=l.baseState;i=0,f=c=u=null,s=o;do{var p=s.lane,g=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var S=e,x=s;switch(p=t,g=n,x.tag){case 1:if(S=x.payload,typeof S=="function"){m=S.call(g,m,p);break e}m=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=x.payload,p=typeof S=="function"?S.call(g,m,p):S,p==null)break e;m=te({},m,p);break e;case 2:Mt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[s]:p.push(s))}else g={eventTime:g,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(c=f=g,u=m):f=f.next=g,i|=p;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;p=s,s=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(f===null&&(u=m),l.baseState=u,l.firstBaseUpdate=c,l.lastBaseUpdate=f,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);pn|=i,e.lanes=i,e.memoizedState=m}}function Ua(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Zo.transition;Zo.transition={};try{e(!1),t()}finally{K=n,Zo.transition=r}}function vd(){return We().memoizedState}function ch(e,t,n){var r=Ut(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gd(e))yd(t,n);else if(n=Xc(e,t,n,r),n!==null){var l=Ce();tt(n,e,r,l),wd(n,t,r)}}function dh(e,t,n){var r=Ut(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gd(e))yd(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(l.hasEagerState=!0,l.eagerState=s,rt(s,i)){var u=t.interleaved;u===null?(l.next=l,Ns(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Xc(e,t,l,r),n!==null&&(l=Ce(),tt(n,e,r,l),wd(n,t,r))}}function gd(e){var t=e.alternate;return e===J||t!==null&&t===J}function yd(e,t){vr=Ql=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wd(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ps(e,n)}}var Zl={readContext:Ue,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},fh={readContext:Ue,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:Ue,useEffect:Ka,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_l(4194308,4,dd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _l(4194308,4,e,t)},useInsertionEffect:function(e,t){return _l(4,2,e,t)},useMemo:function(e,t){var n=st();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=st();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ch.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:Wa,useDebugValue:$s,useDeferredValue:function(e){return st().memoizedState=e},useTransition:function(){var e=Wa(!1),t=e[0];return e=uh.bind(null,e[1]),st().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=J,l=st();if(Y){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),fe===null)throw Error(_(349));fn&30||rd(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Ka(od.bind(null,r,o,e),[e]),r.flags|=2048,Ar(9,ld.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=st(),t=fe.identifierPrefix;if(Y){var n=wt,r=yt;n=(r&~(1<<32-et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Fr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[at]=t,e[Rr]=r,Ld(e,t,!1,!1),t.stateNode=e;e:{switch(i=hi(n,r),n){case"dialog":Q("cancel",e),Q("close",e),l=r;break;case"iframe":case"object":case"embed":Q("load",e),l=r;break;case"video":case"audio":for(l=0;lKn&&(t.flags|=128,r=!0,or(o,!1),t.lanes=4194304)}else{if(!r)if(e=ql(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),or(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!G)return ge(t),null}else 2*le()-o.renderingStartTime>Kn&&n!==1073741824&&(t.flags|=128,r=!0,or(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=le(),t.sibling=null,n=Y.current,q(Y,r?n&1|2:n&1),t):(ge(t),null);case 22:case 23:return Vs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Me&1073741824&&(ge(t),t.subtreeFlags&6&&(t.flags|=8192)):ge(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function xh(e,t){switch(Cs(t),t.tag){case 1:return be(t.type)&&zl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Un(),Z(Ne),Z(xe),Os(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ts(t),null;case 13:if(Z(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));Vn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(Y),null;case 4:return Un(),null;case 10:return js(t.type._context),null;case 22:case 23:return Vs(),null;case 24:return null;default:return null}}var hl=!1,we=!1,Sh=typeof WeakSet=="function"?WeakSet:Set,T=null;function On(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){re(e,t,r)}else n.current=null}function Bi(e,t,n){try{n()}catch(r){re(e,t,r)}}var ru=!1;function Ch(e,t){if(Ei=$l,e=$c(),xs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,u=-1,c=0,h=0,m=e,f=null;t:for(;;){for(var g;m!==n||l!==0&&m.nodeType!==3||(s=i+l),m!==o||r!==0&&m.nodeType!==3||(u=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(g=m.firstChild)!==null;)f=m,m=g;for(;;){if(m===e)break t;if(f===n&&++c===l&&(s=i),f===o&&++h===r&&(u=i),(g=m.nextSibling)!==null)break;m=f,f=m.parentNode}m=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(_i={focusedElem:e,selectionRange:n},$l=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var x=S.memoizedProps,b=S.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?x:Ge(t.type,x),b);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(w){re(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return S=ru,ru=!1,S}function gr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Bi(t,n,o)}l=l.next}while(l!==r)}}function wo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Vi(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Md(e){var t=e.alternate;t!==null&&(e.alternate=null,Md(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[at],delete t[Rr],delete t[bi],delete t[lh],delete t[oh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pd(e){return e.tag===5||e.tag===3||e.tag===4}function lu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Al));else if(r!==4&&(e=e.child,e!==null))for(Hi(e,t,n),e=e.sibling;e!==null;)Hi(e,t,n),e=e.sibling}function Ui(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ui(e,t,n),e=e.sibling;e!==null;)Ui(e,t,n),e=e.sibling}var pe=null,Xe=!1;function Tt(e,t,n){for(n=n.child;n!==null;)Rd(e,t,n),n=n.sibling}function Rd(e,t,n){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(co,n)}catch{}switch(n.tag){case 5:we||On(n,t);case 6:var r=pe,l=Xe;pe=null,Tt(e,t,n),pe=r,Xe=l,pe!==null&&(Xe?(e=pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pe.removeChild(n.stateNode));break;case 18:pe!==null&&(Xe?(e=pe,n=n.stateNode,e.nodeType===8?Ko(e.parentNode,n):e.nodeType===1&&Ko(e,n),Lr(e)):Ko(pe,n.stateNode));break;case 4:r=pe,l=Xe,pe=n.stateNode.containerInfo,Xe=!0,Tt(e,t,n),pe=r,Xe=l;break;case 0:case 11:case 14:case 15:if(!we&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Bi(n,t,i),l=l.next}while(l!==r)}Tt(e,t,n);break;case 1:if(!we&&(On(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){re(n,t,s)}Tt(e,t,n);break;case 21:Tt(e,t,n);break;case 22:n.mode&1?(we=(r=we)||n.memoizedState!==null,Tt(e,t,n),we=r):Tt(e,t,n);break;default:Tt(e,t,n)}}function ou(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Sh),t.forEach(function(r){var l=Oh.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Eh(r/1960))-r,10e?16:e,$t===null)var r=!1;else{if(e=$t,$t=null,Xl=0,U&6)throw Error(_(331));var l=U;for(U|=4,T=e.current;T!==null;){var o=T,i=o.child;if(T.flags&16){var s=o.deletions;if(s!==null){for(var u=0;ule()-zs?on(e,0):As|=n),Le(e,t)}function Vd(e,t){t===0&&(e.mode&1?(t=ol,ol<<=1,!(ol&130023424)&&(ol=4194304)):t=1);var n=Ce();e=kt(e,t),e!==null&&(Wr(e,t,n),Le(e,n))}function Th(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vd(e,n)}function Oh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Vd(e,n)}var Hd;Hd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ne.current)je=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return je=!1,yh(e,t,n);je=!!(e.flags&131072)}else je=!1,G&&t.flags&1048576&&qc(t,Hl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;jl(e,t),e=t.pendingProps;var l=Bn(t,xe.current);In(t,n),l=Ps(null,t,r,e,l,n);var o=Rs();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,be(r)?(o=!0,Bl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,bs(t),l.updater=yo,t.stateNode=l,l._reactInternals=t,Ri(t,r,e,n),t=Fi(null,t,r,!0,o,n)):(t.tag=0,G&&o&&Ss(t),Se(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(jl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Ph(r),e=Ge(r,e),l){case 0:t=$i(null,t,r,e,n);break e;case 1:t=eu(null,t,r,e,n);break e;case 11:t=Xa(null,t,r,e,n);break e;case 14:t=Ja(null,t,r,Ge(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),$i(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),eu(e,t,r,l,n);case 3:e:{if(jd(t),e===null)throw Error(_(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Jc(e,t),Kl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Wn(Error(_(423)),t),t=tu(e,t,r,n,l);break e}else if(r!==l){l=Wn(Error(_(424)),t),t=tu(e,t,r,n,l);break e}else for(Pe=Bt(t.stateNode.containerInfo.firstChild),Re=t,G=!0,Je=null,n=Yc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vn(),r===l){t=Et(e,t,n);break e}Se(e,t,r,n)}t=t.child}return t;case 5:return ed(t),e===null&&Oi(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,ji(r,l)?i=null:o!==null&&ji(r,o)&&(t.flags|=32),_d(e,t),Se(e,t,i,n),t.child;case 6:return e===null&&Oi(t),null;case 13:return Nd(e,t,n);case 4:return Ls(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hn(t,null,r,n):Se(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),Xa(e,t,r,l,n);case 7:return Se(e,t,t.pendingProps,n),t.child;case 8:return Se(e,t,t.pendingProps.children,n),t.child;case 12:return Se(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,q(Ul,r._currentValue),r._currentValue=i,o!==null)if(rt(o.value,i)){if(o.children===l.children&&!Ne.current){t=Et(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=xt(-1,n&-n),u.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?u.next=u:(u.next=h.next,h.next=u),c.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Mi(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(_(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Mi(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Se(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,In(t,n),l=Ue(l),r=r(l),t.flags|=1,Se(e,t,r,n),t.child;case 14:return r=t.type,l=Ge(r,t.pendingProps),l=Ge(r.type,l),Ja(e,t,r,l,n);case 15:return kd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),jl(e,t),t.tag=1,be(r)?(e=!0,Bl(t)):e=!1,In(t,n),xd(t,r,l),Ri(t,r,l,n),Fi(null,t,r,!0,e,n);case 19:return bd(e,t,n);case 22:return Ed(e,t,n)}throw Error(_(156,t.tag))};function Ud(e,t){return gc(e,t)}function Mh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ve(e,t,n,r){return new Mh(e,t,n,r)}function Us(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ph(e){if(typeof e=="function")return Us(e)?1:0;if(e!=null){if(e=e.$$typeof,e===us)return 11;if(e===cs)return 14}return 2}function Wt(e,t){var n=e.alternate;return n===null?(n=Ve(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ll(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Us(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Cn:return sn(n.children,l,o,t);case as:i=8,l|=8;break;case li:return e=Ve(12,n,t,l|2),e.elementType=li,e.lanes=o,e;case oi:return e=Ve(13,n,t,l),e.elementType=oi,e.lanes=o,e;case ii:return e=Ve(19,n,t,l),e.elementType=ii,e.lanes=o,e;case ec:return So(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xu:i=10;break e;case Ju:i=9;break e;case us:i=11;break e;case cs:i=14;break e;case Ot:i=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=Ve(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function sn(e,t,n,r){return e=Ve(7,e,r,t),e.lanes=n,e}function So(e,t,n,r){return e=Ve(22,e,r,t),e.elementType=ec,e.lanes=n,e.stateNode={isHidden:!1},e}function ei(e,t,n){return e=Ve(6,e,null,t),e.lanes=n,e}function ti(e,t,n){return t=Ve(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rh(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Do(0),this.expirationTimes=Do(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Do(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ws(e,t,n,r,l,o,i,s,u){return e=new Rh(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ve(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bs(o),e}function Dh(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qd)}catch(e){console.error(e)}}Qd(),Qu.exports=$e;var Zd=Qu.exports,pu=Zd;ni.createRoot=pu.createRoot,ni.hydrateRoot=pu.hydrateRoot;const zh="0.6.2.beta.1",to=(e,t)=>{const n=t&&t.map(r=>{var h,m,f;const l=encodeURI(r.criteriaKey),o=typeof((h=r.values)==null?void 0:h.value)=="object"?encodeURIComponent(JSON.stringify((m=r.values)==null?void 0:m.value)):encodeURIComponent((f=r.values)==null?void 0:f.value),i=e.indexOf("#"),s=i===-1?"":e.substr(i);e=i===-1?e:e.substr(0,i);const u=new RegExp("([?&])"+l+"=.*?(&|$)","i"),c=e.indexOf("?")!==-1?"&":"?";return e.match(u)?e=e.replace(u,"$1"+l+"="+o+"$2"):e=e+c+l+"="+o,e+s});return t?`${n[n.length-1]}&shared=true`:""},Bh=(e,t)=>{const n=e.querySelectorAll("fieldset"),r=Array.from(n).filter(l=>l.attributes.required);t(Array.from(r))},Vh=(e,t,n,r,l,o)=>{const i=document.getElementById(`${e}`);if(!i.attributes.required){const c=o.filter(x=>x.criteriaKey===e)[0].values.value,h=x=>{for(const b in x)if(x[b]!=="")return!1;return!0},m=[...t,i],f=[...new Set(m)],g=f.filter(x=>!x.id===e),S=l.filter(x=>!x.id.includes(e));h(c)&&r(S),h(c)?n(g):n(f)}},Hh=async(e,t)=>{const n=e.map(o=>Array.from(o.elements).filter(i=>{var s,u;return((s=i.attributes["data-datetype"])==null?void 0:s.value)==="year"?!i.value||i.value&&i.value.length!==4:((u=i.attributes["data-datetype"])==null?void 0:u.value)==="day"?!i.value||i.value&&i.value==="0":!i.value})).flat(),r=e.map(o=>{if(Array.from(o.elements).every(s=>{var u;return!((u=s.attributes.type)!=null&&u.value)==="radio"}))return[];const i=Array.from(o.elements).filter(s=>{var u;return((u=s.attributes.type)==null?void 0:u.value)==="radio"});return i.length>0&&i.every(s=>!s.checked)?o:[]}).flat(),l=[n,r].flat();return t(l),l.length===0},Uh=({hasError:e,criteriaKey:t,fieldSetId:n,useFilter:r=!1})=>{const l=e.map(i=>i.id!==void 0&&n&&n.includes(i.id)||i.id!==void 0&&i.id.includes(t)).includes(!0),o=e.filter(i=>i.id!==void 0&&i.id.includes(n));return r===!0?o:l},Ie={getRequiredFieldsets:Bh,getNonRequiredFieldsets:Vh,handleCheckForRequiredValues:Hh,handleInvalid:Uh},jt=e=>({__html:e}),Wh=(e,t,n=!0)=>{const r=o=>o!=null&&typeof o=="object",l=(o,i)=>{const s=Object.keys(o),u=Object.keys(i);if(s.length!==u.length)return!1;for(const c of s){const h=o[c],m=i[c],f=r(h)&&r(m);if(f&&!l(h,m)||!f&&h!==m)return!1}return!0};if(e.dataLayer){const o={...window.dataLayer[window.dataLayer.length-1]};delete o["gtm.uniqueEventId"],n===!0?l(o,t)===!1&&e.dataLayer.push(t):e.dataLayer.push(t)}},Kh={intro:{event:"bf_page_change",bfData:{pageView:"bf-intro",viewTitle:null}},lifeEventSection:{event:"bf_page_change",bfData:{pageView:"bf-form",viewTitle:null}},errors:{event:"bf_form_page_submit_attempt",bfData:{errors:null,errorCount:{number:null,string:null},formSuccess:!1}},modal:{event:"bf_page_change",bfData:{pageView:"bf-form-completion-modal",viewTitle:null}},verifySelections:{event:"bf_page_change",bfData:{pageView:"bf-verify-selections",viewTitle:null}},resultsView:{event:"bf_page_change",bfData:{pageView:["bf-result-eligible-view","bf-result-not-eligible-view"],viewTitle:null,eligibilityCount:{eligibleBenefitCount:null,moreInfoBenefitCount:null,notEligibleBenefitCount:null}}},openAllBenefitAccordions:{event:"bf_open_all_accordions",bfData:{accordionsOpen:!0}},benefitAccordion:{event:"bf_accordion_open",bfData:{benefitTitle:null}},benefitLink:{event:"bf_benefit_link",bfData:{benefitTitle:null}}},se={dataLayerPush:Wh,dataLayerStructure:Kh},qh=e=>{if(/^[0-9]*$/.test(`${e.target.value}`)){if(e.target.id.includes("day"))return e.target.value.length===2?/^(0?[1-9]|[12][0-9]|3[01])$/.test(`${e.target.value}`):e.target.value.length<3;if(e.target.id.includes("year")){const t=new Date().getFullYear().toString(),n=t.substring(t.length-1);return e.target.value.length===4?new RegExp(`^(19[0-9][0-9]|20[0-1][0-9]|20[0-2][0-${n}])$`).test(`${e.target.value}`):e.target.value.length<5}}if(e.target.id.includes("month"))return!0},Gd=({hide:e})=>{const t=document.querySelector(".bf-qual-survey");t&&t.hidden===!e&&(t.hidden=e)},Qh=e=>{const t=e&&new window.Date(Date.UTC(e.year,e.month,e.day));return new Date(t.getTime()+Math.abs(t.getTimezoneOffset()*6e4))},Zh={37:1,38:1,39:1,40:1},an=e=>{e.preventDefault()},Yd=e=>{if(Zh[e.keyCode])return an(e),!1},no={passive:!1},Xd="onwheel"in document.createElement("div")?"wheel":"mousewheel",Gh=()=>{window.addEventListener("DOMMouseScroll",an,!1),window.addEventListener(Xd,an,no),window.addEventListener("touchmove",an,no),window.addEventListener("keydown",Yd,!1)},Yh=()=>{window.removeEventListener("DOMMouseScroll",an,!1),window.removeEventListener(Xd,an,no),window.removeEventListener("touchmove",an,no),window.removeEventListener("keydown",Yd,!1)},hu={disableScroll:Yh,enableScroll:Gh},Xh=e=>{const n=e.innerWidth,r=!(n<1049);return{width:n,desktop:r}},Zr=({pageView:e,notEligibleView:t})=>{const n=Xh(window).desktop;M.useEffect(()=>{const r=document.getElementById("bf-track-by-name"),l=document.querySelector('[data-testid="app"]'),o=n?"desktop":"mobile",i=`var CE_SNAPSHOT_NAME = "${e}-${l==null?void 0:l.id}-${o}";`;r!==null&&(r.innerHTML=i)},[n,t])},ft=({className:e,defaultClasses:t,utilityClasses:n})=>{const[r,l]=M.useState("");return M.useEffect(()=>{const o=[e,t&&t.join(" "),n&&n.join(" ")];l(o.filter(i=>i!==void 0).join(" "))},[e,t,n]),r},mu=e=>{e.preventDefault(),e.returnValue=""},Jh=e=>{M.useEffect(()=>{e!==!1?window.addEventListener("beforeunload",mu):window.removeEventListener("beforeunload",mu)},[e])},Gr=()=>(M.useEffect(()=>{document.getElementById("index-reset")===null&&document.body.insertAdjacentHTML("afterBegin",'')},[]),M.useRef(document.getElementById("index-reset"))),e0=({selectedValue:e,conditional:t})=>{const n=t,r=/['>', '>=', '<', '<=', '=']/g,l=n.match(r),o=n.match(/\d+/)[0],i=new RegExp(`[${l}]`,"g"),s=n.replace(/-/g,"/").replace(i,""),u=/-/,c=u.test(n)?new window.Date(s):new window.Date(new Date().getFullYear()-o,new Date().getMonth(),new Date().getDate()),h=new window.Date(Date.UTC(e.year,e.month,e.day,0,0,0));return((f,g,S)=>{const x=S,b=new window.Date(Date.UTC(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate(),0,0,0));if(u.test(n)===!1){const p=b.getTime()-x.getTime();switch(f.length&&f.join("")){case">":return p>0;case">=":return p>=0;case"<":return p<0;case"<=":return p<=0;case"=":return+p==0;default:return!1}}else switch(f.length&&f.join("")){case">":return x.getTime()>b.getTime();case">=":return x.getTime()>=b.getTime();case"<":return x.getTime()r.fieldset.criteriaKey===t),n===void 0&&e.forEach(r=>{r.fieldset.children.forEach(l=>{l.fieldsets[0].fieldset.criteriaKey===t&&(n=l.fieldsets[0])})}),n}function n0(e){return e.slice(e.indexOf("?")+1).split("&").map(r=>{const[l,o]=r.split("=");return{criteriaKey:l,value:decodeURIComponent(o)}})}const r0=()=>/^\/es/.test(window.location.pathname)?"es":"en";async function l0(e){let t;if(e===void 0){const r=window.location.search;t=new URLSearchParams(r),t.get("mode")==="draft"&&`${t.get("mode")}`;const l=window.location.pathname;e=l.substring(l.lastIndexOf("/")+1)}let n;{const r=document.getElementById("benefit-finder");if(r!==null){const l=r.getAttribute("json-data-file-path"),o=r.getAttribute("draft-json-data-file-path");n=t.get("mode")==="draft"?o:l}}if(n!==void 0)return await fetch(n).then(l=>{if(l!=null&&l.ok)return l.json();throw new Error(l==null?void 0:l.status)}).then(l=>l!=null&&l.data?l:"Something went wrong.").catch(l=>(console.log(l),"Something went wrong."))}const o0=e=>e&&e.fieldset.inputs[0].inputCriteria.values.find(t=>t.selected),i0=e=>{var t;return e&&((t=e.fieldset)==null?void 0:t.children.map(n=>n.fieldsets[0]))},s0=e=>e&&e.flatMap((t,n)=>t.section.fieldsets.flatMap(r=>{const l=X.SelectedValue(r);return l&&[{criteriaKey:r.fieldset.inputs[0].inputCriteria.id,values:l},X.Children(r)&&X.Children(r).flatMap(o=>X.SelectedValue(o)&&{criteriaKey:o.fieldset.criteriaKey,values:X.SelectedValue(o)}).filter(o=>o!==void 0)]})).flat().filter(t=>t!==void 0),a0=(e,t)=>{const n=t&&t.map(l=>(e.forEach(o=>{const i=l.benefit.eligibility.find(s=>s.criteriaKey===o.criteriaKey);if(i!==void 0){const s=()=>{let u;return typeof o.values.value=="object"?u=i.acceptableValues.find(c=>jo.DateEligibility({selectedValue:o.values.value,conditional:c})):u=i.acceptableValues.find(c=>c===o.values.value),u};i.isEligible=!!s()}}),l));return n&&[].concat(...n)};async function u0(e,t,n,r){const l={...t};jo.FindCriteria(l.section.fieldsets,e).then(o=>{var i;if(o)return((i=o.fieldset)==null?void 0:i.inputs[0].inputCriteria.values).forEach(u=>{u.value===r?u.selected=!0:delete u.selected}),n(l)}).catch(o=>(console.log(o),"Something went wrong."))}async function c0(e,t,n,r,l){const o={...t};jo.FindCriteria(o.section.fieldsets,e).then(i=>{var s;if(i){const u=(s=i.fieldset)==null?void 0:s.inputs[0].inputCriteria.values;return l?(l.includes("day")&&(u[0].value.day=r),l.includes("month")&&(u[0].value.month=r),l.includes("year")&&(u[0].value.year=r),u[0].value={...u[0].value}):u[0].value=r,u[0].selected=!0,n(o)}}).catch(i=>(console.log(i),"Something went wrong."))}const d0=(e,t,n,r)=>{const l=jo.GetQueryParams(decodeURI(e));l.filter(o=>o.criteriaKey!==r),t.forEach(o=>{o.completed=!0,l.forEach(i=>{const s=i.value.includes("{")?JSON.parse(i.value):i.value;s!==void 0&&typeof s=="object"?Br.DataDate(i.criteriaKey,o,n,s):Br.Data(i.criteriaKey,o,n,s)})})},X={Children:i0,ElegibilityByCriteria:a0,LifeEvent:l0,Language:r0,SelectedValue:o0,SelectedValueAll:s0},Br={Data:u0,DataDate:c0,DataFromParams:d0},jo={FindCriteria:t0,DateEligibility:e0,GetQueryParams:n0};var Jd={exports:{}},f0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",p0=f0,h0=p0;function ef(){}function tf(){}tf.resetWarningCache=ef;var m0=function(){function e(r,l,o,i,s,u){if(u!==h0){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:tf,resetWarningCache:ef};return n.PropTypes=n,n};Jd.exports=m0();var Zs=Jd.exports;const y=ao(Zs),Gs=({className:e,children:t,alertFieldRef:n,heading:r,description:l,type:o,hasError:i,noBackground:s,tabIndex:u,errorCount:c,errorList:h,submissionCount:m})=>{const f=o==="error"?["bf-usa-alert","usa-alert","bf-usa-alert--error","usa-alert--error",`${i===!1?"display-none":""}`]:["bf-usa-alert","usa-alert","bf-usa-alert--info","usa-alert--info",`${s?"no-background":""}`];return M.useEffect(()=>{const{errors:g}=se.dataLayerStructure;i&&h&&se.dataLayerPush(window,{event:g.event,bfData:{errors:h.map(S=>S==null?void 0:S.id).join(","),errorCount:{number:c,string:`${c}`},formSuccess:!1}},!1)},[m]),a.jsx("div",{className:ft({className:e,defaultClasses:f}),role:"alert",ref:n,tabIndex:u||0,"aria-live":i===!0?"assertive":"polite","aria-hidden":i===void 0?!1:!i,children:t?a.jsx("div",{className:"bf-usa-alert__body usa-alert__body",children:a.jsx("div",{className:"bf-usa-alert__text usa-alert__text",children:t})}):a.jsxs("div",{className:"bf-usa-alert__body usa-alert__body",children:[a.jsxs(ee,{headingLevel:2,className:"bf-usa-alert__heading usa-alert__heading","data-testid":"bf-alert-heading",children:[r==null?void 0:r.prefix," ",c," ",r==null?void 0:r.suffix]}),a.jsx("p",{className:"bf-usa-alert__text usa-alert__text",children:l}),a.jsx("ul",{"data-testid":"bf-errors-list",children:h&&h.map(g=>a.jsx("li",{"data-testid":"bf-errors-list-item",children:a.jsx("a",{href:`#${g.id}`,children:g.getAttribute("data-errormessage")||g.id})},g.id))})]})})};Gs.propTypes={className:y.string,children:y.any,alertFieldRef:y.any,heading:y.object,description:y.string,type:y.string,hasError:y.bool,noBackground:y.bool,tabIndex:y.number,errorCount:y.number};const v0=e=>e&&typeof e=="object"&&e.nodeType===1;var g0=(e,t)=>{if(typeof e!="string")return[];(!t||!v0(t))&&(t=window.document);const n=t.querySelectorAll(e);return Array.prototype.slice.call(n)};/* +`+o.stack}return{value:e,source:t,stack:l,digest:null}}function Xo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Di(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var mh=typeof WeakMap=="function"?WeakMap:Map;function Sd(e,t,n){n=xt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Yl||(Yl=!0,Wi=r),Di(e,t)},n}function Cd(e,t,n){n=xt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Di(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Di(e,t),typeof r!="function"&&(Ht===null?Ht=new Set([this]):Ht.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}function Za(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new mh;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=Lh.bind(null,e,t,n),t.then(e,e))}function Ga(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ya(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=xt(-1,1),t.tag=2,Vt(n,t,1))),n.lanes|=1),e)}var vh=_t.ReactCurrentOwner,je=!1;function Se(e,t,n,r){t.child=e===null?Yc(t,null,n,r):Hn(t,e.child,n,r)}function Xa(e,t,n,r,l){n=n.render;var o=t.ref;return In(t,l),r=Ps(e,t,n,r,o,l),n=Rs(),e!==null&&!je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Et(e,t,l)):(Y&&n&&Ss(t),t.flags|=1,Se(e,t,r,l),t.child)}function Ja(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Us(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,kd(e,t,o,r,l)):(e=Ll(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(n=n.compare,n=n!==null?n:Or,n(i,r)&&e.ref===t.ref)return Et(e,t,l)}return t.flags|=1,e=Wt(o,r),e.ref=t.ref,e.return=t,t.child=e}function kd(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(Or(o,r)&&e.ref===t.ref)if(je=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(je=!0);else return t.lanes=e.lanes,Et(e,t,l)}return $i(e,t,n,r,l)}function Ed(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q(Mn,Me),Me|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Q(Mn,Me),Me|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Q(Mn,Me),Me|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Q(Mn,Me),Me|=r;return Se(e,t,l,n),t.child}function _d(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $i(e,t,n,r,l){var o=be(n)?cn:xe.current;return o=Bn(t,o),In(t,l),n=Ps(e,t,n,r,o,l),r=Rs(),e!==null&&!je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Et(e,t,l)):(Y&&r&&Ss(t),t.flags|=1,Se(e,t,n,l),t.child)}function eu(e,t,n,r,l){if(be(n)){var o=!0;Bl(t)}else o=!1;if(In(t,l),t.stateNode===null)jl(e,t),xd(t,n,r),Ri(t,n,r,l),r=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var u=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ue(c):(c=be(n)?cn:xe.current,c=Bn(t,c));var f=n.getDerivedStateFromProps,m=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function";m||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==r||u!==c)&&Qa(t,i,r,c),Mt=!1;var p=t.memoizedState;i.state=p,Kl(t,r,i,l),u=t.memoizedState,s!==r||p!==u||Ne.current||Mt?(typeof f=="function"&&(Pi(t,n,f,r),u=t.memoizedState),(s=Mt||qa(t,n,s,r,p,u,c))?(m||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=c,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Jc(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Ge(t.type,s),i.props=c,m=t.pendingProps,p=i.context,u=n.contextType,typeof u=="object"&&u!==null?u=Ue(u):(u=be(n)?cn:xe.current,u=Bn(t,u));var g=n.getDerivedStateFromProps;(f=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==m||p!==u)&&Qa(t,i,r,u),Mt=!1,p=t.memoizedState,i.state=p,Kl(t,r,i,l);var S=t.memoizedState;s!==m||p!==S||Ne.current||Mt?(typeof g=="function"&&(Pi(t,n,g,r),S=t.memoizedState),(c=Mt||qa(t,n,c,r,p,S,u)||!1)?(f||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,S,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,S,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),i.props=r,i.state=S,i.context=u,r=c):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Fi(e,t,n,r,o,l)}function Fi(e,t,n,r,l,o){_d(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return l&&Aa(t,n,!1),Et(e,t,o);r=t.stateNode,vh.current=t;var s=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Hn(t,e.child,null,o),t.child=Hn(t,null,s,o)):Se(e,t,s,o),t.memoizedState=r.state,l&&Aa(t,n,!0),t.child}function jd(e){var t=e.stateNode;t.pendingContext?Ia(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ia(e,t.context,!1),Ls(e,t.containerInfo)}function tu(e,t,n,r,l){return Vn(),ks(l),t.flags|=256,Se(e,t,n,r),t.child}var Ii={dehydrated:null,treeContext:null,retryLane:0};function Ai(e){return{baseLanes:e,cachePool:null,transitions:null}}function Nd(e,t,n){var r=t.pendingProps,l=X.current,o=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(l&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Q(X,l&1),e===null)return Oi(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,o?(r=t.mode,o=t.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=So(i,r,0,null),e=sn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ai(n),t.memoizedState=Ii,e):Fs(t,i));if(l=e.memoizedState,l!==null&&(s=l.dehydrated,s!==null))return gh(e,t,i,r,s,l,n);if(o){o=r.fallback,i=t.mode,l=e.child,s=l.sibling;var u={mode:"hidden",children:r.children};return!(i&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Wt(l,u),r.subtreeFlags=l.subtreeFlags&14680064),s!==null?o=Wt(s,o):(o=sn(o,i,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,i=e.child.memoizedState,i=i===null?Ai(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~n,t.memoizedState=Ii,r}return o=e.child,e=o.sibling,r=Wt(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Fs(e,t){return t=So({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function pl(e,t,n,r){return r!==null&&ks(r),Hn(t,e.child,null,n),e=Fs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function gh(e,t,n,r,l,o,i){if(n)return t.flags&256?(t.flags&=-257,r=Xo(Error(_(422))),pl(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=So({mode:"visible",children:r.children},l,0,null),o=sn(o,l,i,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Hn(t,e.child,null,i),t.child.memoizedState=Ai(i),t.memoizedState=Ii,o);if(!(t.mode&1))return pl(e,t,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(_(419)),r=Xo(o,r,void 0),pl(e,t,i,r)}if(s=(i&e.childLanes)!==0,je||s){if(r=fe,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,kt(e,l),tt(r,e,l,-1))}return Hs(),r=Xo(Error(_(421))),pl(e,t,i,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=Th.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,Pe=Bt(l.nextSibling),Re=t,Y=!0,Je=null,e!==null&&(ze[Be++]=yt,ze[Be++]=wt,ze[Be++]=dn,yt=e.id,wt=e.overflow,dn=t),t=Fs(t,r.children),t.flags|=4096,t)}function nu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Mi(e.return,t,n)}function Jo(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function bd(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(Se(e,t,r.children,n),r=X.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nu(e,n,t);else if(e.tag===19)nu(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Q(X,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&ql(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Jo(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&ql(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Jo(t,!0,n,null,o);break;case"together":Jo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function jl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Et(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),pn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=Wt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Wt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function yh(e,t,n){switch(t.tag){case 3:jd(t),Vn();break;case 5:ed(t);break;case 1:be(t.type)&&Bl(t);break;case 4:Ls(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;Q(Ul,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Q(X,X.current&1),t.flags|=128,null):n&t.child.childLanes?Nd(e,t,n):(Q(X,X.current&1),e=Et(e,t,n),e!==null?e.sibling:null);Q(X,X.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return bd(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Q(X,X.current),r)break;return null;case 22:case 23:return t.lanes=0,Ed(e,t,n)}return Et(e,t,n)}var Ld,zi,Td,Od;Ld=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};zi=function(){};Td=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,ln(ct.current);var o=null;switch(n){case"input":l=ai(e,l),r=ai(e,r),o=[];break;case"select":l=te({},l,{value:void 0}),r=te({},r,{value:void 0}),o=[];break;case"textarea":l=di(e,l),r=di(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Al)}pi(n,r);var i;n=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var s=l[c];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Er.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var u=r[c];if(s=l!=null?l[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(u!=null||s!=null))if(c==="style")if(s){for(i in s)!s.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&s[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(o||(o=[]),o.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(o=o||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Er.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&Z("scroll",e),o||s===u||(o=[])):(o=o||[]).push(c,u))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Od=function(e,t,n,r){n!==r&&(t.flags|=4)};function or(e,t){if(!Y)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function wh(e,t,n){var r=t.pendingProps;switch(Cs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ge(t),null;case 1:return be(t.type)&&zl(),ge(t),null;case 3:return r=t.stateNode,Un(),G(Ne),G(xe),Os(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(dl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Je!==null&&(Qi(Je),Je=null))),zi(e,t),ge(t),null;case 5:Ts(t);var l=ln($r.current);if(n=t.type,e!==null&&t.stateNode!=null)Td(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return ge(t),null}if(e=ln(ct.current),dl(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[at]=t,r[Rr]=o,e=(t.mode&1)!==0,n){case"dialog":Z("cancel",r),Z("close",r);break;case"iframe":case"object":case"embed":Z("load",r);break;case"video":case"audio":for(l=0;l<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[at]=t,e[Rr]=r,Ld(e,t,!1,!1),t.stateNode=e;e:{switch(i=hi(n,r),n){case"dialog":Z("cancel",e),Z("close",e),l=r;break;case"iframe":case"object":case"embed":Z("load",e),l=r;break;case"video":case"audio":for(l=0;lKn&&(t.flags|=128,r=!0,or(o,!1),t.lanes=4194304)}else{if(!r)if(e=ql(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),or(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Y)return ge(t),null}else 2*le()-o.renderingStartTime>Kn&&n!==1073741824&&(t.flags|=128,r=!0,or(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=le(),t.sibling=null,n=X.current,Q(X,r?n&1|2:n&1),t):(ge(t),null);case 22:case 23:return Vs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Me&1073741824&&(ge(t),t.subtreeFlags&6&&(t.flags|=8192)):ge(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function xh(e,t){switch(Cs(t),t.tag){case 1:return be(t.type)&&zl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Un(),G(Ne),G(xe),Os(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ts(t),null;case 13:if(G(X),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));Vn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(X),null;case 4:return Un(),null;case 10:return js(t.type._context),null;case 22:case 23:return Vs(),null;case 24:return null;default:return null}}var hl=!1,we=!1,Sh=typeof WeakSet=="function"?WeakSet:Set,T=null;function On(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){re(e,t,r)}else n.current=null}function Bi(e,t,n){try{n()}catch(r){re(e,t,r)}}var ru=!1;function Ch(e,t){if(Ei=$l,e=$c(),xs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,u=-1,c=0,f=0,m=e,p=null;t:for(;;){for(var g;m!==n||l!==0&&m.nodeType!==3||(s=i+l),m!==o||r!==0&&m.nodeType!==3||(u=i+r),m.nodeType===3&&(i+=m.nodeValue.length),(g=m.firstChild)!==null;)p=m,m=g;for(;;){if(m===e)break t;if(p===n&&++c===l&&(s=i),p===o&&++f===r&&(u=i),(g=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=g}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(_i={focusedElem:e,selectionRange:n},$l=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var x=S.memoizedProps,b=S.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?x:Ge(t.type,x),b);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(w){re(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return S=ru,ru=!1,S}function gr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Bi(t,n,o)}l=l.next}while(l!==r)}}function wo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Vi(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Md(e){var t=e.alternate;t!==null&&(e.alternate=null,Md(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[at],delete t[Rr],delete t[bi],delete t[lh],delete t[oh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pd(e){return e.tag===5||e.tag===3||e.tag===4}function lu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Al));else if(r!==4&&(e=e.child,e!==null))for(Hi(e,t,n),e=e.sibling;e!==null;)Hi(e,t,n),e=e.sibling}function Ui(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ui(e,t,n),e=e.sibling;e!==null;)Ui(e,t,n),e=e.sibling}var pe=null,Xe=!1;function Tt(e,t,n){for(n=n.child;n!==null;)Rd(e,t,n),n=n.sibling}function Rd(e,t,n){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(co,n)}catch{}switch(n.tag){case 5:we||On(n,t);case 6:var r=pe,l=Xe;pe=null,Tt(e,t,n),pe=r,Xe=l,pe!==null&&(Xe?(e=pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pe.removeChild(n.stateNode));break;case 18:pe!==null&&(Xe?(e=pe,n=n.stateNode,e.nodeType===8?Ko(e.parentNode,n):e.nodeType===1&&Ko(e,n),Lr(e)):Ko(pe,n.stateNode));break;case 4:r=pe,l=Xe,pe=n.stateNode.containerInfo,Xe=!0,Tt(e,t,n),pe=r,Xe=l;break;case 0:case 11:case 14:case 15:if(!we&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Bi(n,t,i),l=l.next}while(l!==r)}Tt(e,t,n);break;case 1:if(!we&&(On(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){re(n,t,s)}Tt(e,t,n);break;case 21:Tt(e,t,n);break;case 22:n.mode&1?(we=(r=we)||n.memoizedState!==null,Tt(e,t,n),we=r):Tt(e,t,n);break;default:Tt(e,t,n)}}function ou(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Sh),t.forEach(function(r){var l=Oh.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=le()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Eh(r/1960))-r,10e?16:e,$t===null)var r=!1;else{if(e=$t,$t=null,Xl=0,U&6)throw Error(_(331));var l=U;for(U|=4,T=e.current;T!==null;){var o=T,i=o.child;if(T.flags&16){var s=o.deletions;if(s!==null){for(var u=0;ule()-zs?on(e,0):As|=n),Le(e,t)}function Vd(e,t){t===0&&(e.mode&1?(t=ol,ol<<=1,!(ol&130023424)&&(ol=4194304)):t=1);var n=Ce();e=kt(e,t),e!==null&&(Wr(e,t,n),Le(e,n))}function Th(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vd(e,n)}function Oh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Vd(e,n)}var Hd;Hd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ne.current)je=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return je=!1,yh(e,t,n);je=!!(e.flags&131072)}else je=!1,Y&&t.flags&1048576&&qc(t,Hl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;jl(e,t),e=t.pendingProps;var l=Bn(t,xe.current);In(t,n),l=Ps(null,t,r,e,l,n);var o=Rs();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,be(r)?(o=!0,Bl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,bs(t),l.updater=yo,t.stateNode=l,l._reactInternals=t,Ri(t,r,e,n),t=Fi(null,t,r,!0,o,n)):(t.tag=0,Y&&o&&Ss(t),Se(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(jl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=Ph(r),e=Ge(r,e),l){case 0:t=$i(null,t,r,e,n);break e;case 1:t=eu(null,t,r,e,n);break e;case 11:t=Xa(null,t,r,e,n);break e;case 14:t=Ja(null,t,r,Ge(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),$i(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),eu(e,t,r,l,n);case 3:e:{if(jd(t),e===null)throw Error(_(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Jc(e,t),Kl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Wn(Error(_(423)),t),t=tu(e,t,r,n,l);break e}else if(r!==l){l=Wn(Error(_(424)),t),t=tu(e,t,r,n,l);break e}else for(Pe=Bt(t.stateNode.containerInfo.firstChild),Re=t,Y=!0,Je=null,n=Yc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vn(),r===l){t=Et(e,t,n);break e}Se(e,t,r,n)}t=t.child}return t;case 5:return ed(t),e===null&&Oi(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,ji(r,l)?i=null:o!==null&&ji(r,o)&&(t.flags|=32),_d(e,t),Se(e,t,i,n),t.child;case 6:return e===null&&Oi(t),null;case 13:return Nd(e,t,n);case 4:return Ls(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hn(t,null,r,n):Se(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),Xa(e,t,r,l,n);case 7:return Se(e,t,t.pendingProps,n),t.child;case 8:return Se(e,t,t.pendingProps.children,n),t.child;case 12:return Se(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,Q(Ul,r._currentValue),r._currentValue=i,o!==null)if(rt(o.value,i)){if(o.children===l.children&&!Ne.current){t=Et(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=xt(-1,n&-n),u.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Mi(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(_(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Mi(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}Se(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,In(t,n),l=Ue(l),r=r(l),t.flags|=1,Se(e,t,r,n),t.child;case 14:return r=t.type,l=Ge(r,t.pendingProps),l=Ge(r.type,l),Ja(e,t,r,l,n);case 15:return kd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ge(r,l),jl(e,t),t.tag=1,be(r)?(e=!0,Bl(t)):e=!1,In(t,n),xd(t,r,l),Ri(t,r,l,n),Fi(null,t,r,!0,e,n);case 19:return bd(e,t,n);case 22:return Ed(e,t,n)}throw Error(_(156,t.tag))};function Ud(e,t){return gc(e,t)}function Mh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ve(e,t,n,r){return new Mh(e,t,n,r)}function Us(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ph(e){if(typeof e=="function")return Us(e)?1:0;if(e!=null){if(e=e.$$typeof,e===us)return 11;if(e===cs)return 14}return 2}function Wt(e,t){var n=e.alternate;return n===null?(n=Ve(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ll(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Us(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Cn:return sn(n.children,l,o,t);case as:i=8,l|=8;break;case li:return e=Ve(12,n,t,l|2),e.elementType=li,e.lanes=o,e;case oi:return e=Ve(13,n,t,l),e.elementType=oi,e.lanes=o,e;case ii:return e=Ve(19,n,t,l),e.elementType=ii,e.lanes=o,e;case ec:return So(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xu:i=10;break e;case Ju:i=9;break e;case us:i=11;break e;case cs:i=14;break e;case Ot:i=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=Ve(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function sn(e,t,n,r){return e=Ve(7,e,r,t),e.lanes=n,e}function So(e,t,n,r){return e=Ve(22,e,r,t),e.elementType=ec,e.lanes=n,e.stateNode={isHidden:!1},e}function ei(e,t,n){return e=Ve(6,e,null,t),e.lanes=n,e}function ti(e,t,n){return t=Ve(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rh(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Do(0),this.expirationTimes=Do(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Do(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ws(e,t,n,r,l,o,i,s,u){return e=new Rh(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ve(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},bs(o),e}function Dh(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qd)}catch(e){console.error(e)}}Qd(),Qu.exports=$e;var Zd=Qu.exports,pu=Zd;ni.createRoot=pu.createRoot,ni.hydrateRoot=pu.hydrateRoot;const zh="0.7.0.beta.1",to=(e,t)=>{const n=t&&t.map(r=>{var f,m,p;const l=encodeURI(r.criteriaKey),o=typeof((f=r.values)==null?void 0:f.value)=="object"?encodeURIComponent(JSON.stringify((m=r.values)==null?void 0:m.value)):encodeURIComponent((p=r.values)==null?void 0:p.value),i=e.indexOf("#"),s=i===-1?"":e.substr(i);e=i===-1?e:e.substr(0,i);const u=new RegExp("([?&])"+l+"=.*?(&|$)","i"),c=e.indexOf("?")!==-1?"&":"?";return e.match(u)?e=e.replace(u,"$1"+l+"="+o+"$2"):e=e+c+l+"="+o,e+s});return t?`${n[n.length-1]}&shared=true`:""},Bh=(e,t)=>{const n=e.querySelectorAll("fieldset"),r=Array.from(n).filter(l=>l.attributes.required);t(Array.from(r))},Vh=(e,t,n,r,l,o)=>{const i=document.getElementById(`${e}`);if(!i.attributes.required){const c=o.filter(x=>x.criteriaKey===e)[0].values.value,f=x=>{for(const b in x)if(x[b]!=="")return!1;return!0},m=[...t,i],p=[...new Set(m)],g=p.filter(x=>!x.id===e),S=l.filter(x=>!x.id.includes(e));f(c)&&r(S),f(c)?n(g):n(p)}},Hh=async(e,t)=>{const n=e.map(o=>Array.from(o.elements).filter(i=>{var s,u;return((s=i.attributes["data-datetype"])==null?void 0:s.value)==="year"?!i.value||i.value&&i.value.length!==4:((u=i.attributes["data-datetype"])==null?void 0:u.value)==="day"?!i.value||i.value&&i.value==="0":!i.value})).flat(),r=e.map(o=>{if(Array.from(o.elements).every(s=>{var u;return!((u=s.attributes.type)!=null&&u.value)==="radio"}))return[];const i=Array.from(o.elements).filter(s=>{var u;return((u=s.attributes.type)==null?void 0:u.value)==="radio"});return i.length>0&&i.every(s=>!s.checked)?o:[]}).flat(),l=[n,r].flat();return t(l),l.length===0},Uh=({hasError:e,criteriaKey:t,fieldSetId:n,useFilter:r=!1})=>{const l=e.map(i=>i.id!==void 0&&n&&n.includes(i.id)||i.id!==void 0&&i.id.includes(t)).includes(!0),o=e.filter(i=>i.id!==void 0&&i.id.includes(n));return r===!0?o:l},Ie={getRequiredFieldsets:Bh,getNonRequiredFieldsets:Vh,handleCheckForRequiredValues:Hh,handleInvalid:Uh},jt=e=>({__html:e}),Wh=(e,t,n=!0)=>{const r=o=>o!=null&&typeof o=="object",l=(o,i)=>{const s=Object.keys(o),u=Object.keys(i);if(s.length!==u.length)return!1;for(const c of s){const f=o[c],m=i[c],p=r(f)&&r(m);if(p&&!l(f,m)||!p&&f!==m)return!1}return!0};if(e.dataLayer){const o={...window.dataLayer[window.dataLayer.length-1]};delete o["gtm.uniqueEventId"],delete o.eventCallback,n===!0?l(o,t)===!1&&e.dataLayer.push(t):e.dataLayer.push(t)}},Kh={intro:{event:"bf_page_change",bfData:{pageView:"bf-intro",viewTitle:null}},lifeEventSection:{event:"bf_page_change",bfData:{pageView:"bf-form",viewTitle:null}},errors:{event:"bf_form_page_submit_attempt",bfData:{errors:null,errorCount:{number:null,string:null},formSuccess:!1}},modal:{event:"bf_page_change",bfData:{pageView:"bf-form-completion-modal",viewTitle:null}},verifySelections:{event:"bf_page_change",bfData:{pageView:"bf-verify-selections",viewTitle:null}},resultsView:{event:"bf_page_change",bfData:{pageView:["bf-result-eligible-view","bf-result-not-eligible-view"],viewTitle:null,eligibilityCount:{eligibleBenefitCount:null,moreInfoBenefitCount:null,notEligibleBenefitCount:null}}},openAllBenefitAccordions:{event:"bf_open_all_accordions",bfData:{accordionsOpen:!0}},benefitAccordion:{event:"bf_accordion_open",bfData:{benefitTitle:null}},benefitLink:{event:"bf_benefit_link",bfData:{benefitTitle:null}}},se={dataLayerPush:Wh,dataLayerStructure:Kh},qh=e=>{if(/^[0-9]*$/.test(`${e.target.value}`)){if(e.target.id.includes("day"))return e.target.value.length===2?/^(0?[1-9]|[12][0-9]|3[01])$/.test(`${e.target.value}`):e.target.value.length<3;if(e.target.id.includes("year")){const t=new Date().getFullYear().toString(),n=t.substring(t.length-1);return e.target.value.length===4?new RegExp(`^(19[0-9][0-9]|20[0-1][0-9]|20[0-2][0-${n}])$`).test(`${e.target.value}`):e.target.value.length<5}}if(e.target.id.includes("month"))return!0},Gd=({hide:e})=>{const t=document.querySelector(".bf-qual-survey");t&&t.hidden===!e&&(t.hidden=e)},Qh=e=>{const t=e&&new window.Date(Date.UTC(e.year,e.month,e.day));return new Date(t.getTime()+Math.abs(t.getTimezoneOffset()*6e4))},Zh={37:1,38:1,39:1,40:1},an=e=>{e.preventDefault()},Yd=e=>{if(Zh[e.keyCode])return an(e),!1},no={passive:!1},Xd="onwheel"in document.createElement("div")?"wheel":"mousewheel",Gh=()=>{window.addEventListener("DOMMouseScroll",an,!1),window.addEventListener(Xd,an,no),window.addEventListener("touchmove",an,no),window.addEventListener("keydown",Yd,!1)},Yh=()=>{window.removeEventListener("DOMMouseScroll",an,!1),window.removeEventListener(Xd,an,no),window.removeEventListener("touchmove",an,no),window.removeEventListener("keydown",Yd,!1)},hu={disableScroll:Yh,enableScroll:Gh},Xh=e=>{const n=e.innerWidth,r=!(n<1049);return{width:n,desktop:r}},Zr=({pageView:e,notEligibleView:t})=>{const n=Xh(window).desktop;M.useEffect(()=>{const r=document.getElementById("bf-track-by-name"),l=document.querySelector('[data-testid="app"]'),o=n?"desktop":"mobile",i=`var CE_SNAPSHOT_NAME = "${e}-${l==null?void 0:l.id}-${o}";`;r!==null&&(r.innerHTML=i)},[n,t])},ft=({className:e,defaultClasses:t,utilityClasses:n})=>{const[r,l]=M.useState("");return M.useEffect(()=>{const o=[e,t&&t.join(" "),n&&n.join(" ")];l(o.filter(i=>i!==void 0).join(" "))},[e,t,n]),r},mu=e=>{e.preventDefault(),e.returnValue=""},Jh=e=>{M.useEffect(()=>{e!==!1?window.addEventListener("beforeunload",mu):window.removeEventListener("beforeunload",mu)},[e])},Gr=()=>(M.useEffect(()=>{document.getElementById("index-reset")===null&&document.body.insertAdjacentHTML("afterBegin",'')},[]),M.useRef(document.getElementById("index-reset"))),e0=({selectedValue:e,conditional:t})=>{const n=t,r=/['>', '>=', '<', '<=', '=']/g,l=n.match(r),o=n.match(/\d+/)[0],i=new RegExp(`[${l}]`,"g"),s=n.replace(/-/g,"/").replace(i,""),u=/-/,c=u.test(n)?new window.Date(s):new window.Date(new Date().getFullYear()-o,new Date().getMonth(),new Date().getDate()),f=new window.Date(Date.UTC(e.year,e.month,e.day,0,0,0));return((p,g,S)=>{const x=S,b=new window.Date(Date.UTC(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate(),0,0,0));if(u.test(n)===!1){const h=b.getTime()-x.getTime();switch(p.length&&p.join("")){case">":return h>0;case">=":return h>=0;case"<":return h<0;case"<=":return h<=0;case"=":return+h==0;default:return!1}}else switch(p.length&&p.join("")){case">":return x.getTime()>b.getTime();case">=":return x.getTime()>=b.getTime();case"<":return x.getTime()r.fieldset.criteriaKey===t),n===void 0&&e.forEach(r=>{r.fieldset.children.forEach(l=>{l.fieldsets[0].fieldset.criteriaKey===t&&(n=l.fieldsets[0])})}),n}function n0(e){return e.slice(e.indexOf("?")+1).split("&").map(r=>{const[l,o]=r.split("=");return{criteriaKey:l,value:decodeURIComponent(o)}})}const r0=()=>/^\/es/.test(window.location.pathname)?"es":"en";async function l0(e){let t;if(e===void 0){const r=window.location.search;t=new URLSearchParams(r),t.get("mode")==="draft"&&`${t.get("mode")}`;const l=window.location.pathname;e=l.substring(l.lastIndexOf("/")+1)}let n;{const r=document.getElementById("benefit-finder");if(r!==null){const l=r.getAttribute("json-data-file-path"),o=r.getAttribute("draft-json-data-file-path");n=t.get("mode")==="draft"?o:l}}if(n!==void 0)return await fetch(n).then(l=>{if(l!=null&&l.ok)return l.json();throw new Error(l==null?void 0:l.status)}).then(l=>l!=null&&l.data?l:"Something went wrong.").catch(l=>(console.log(l),"Something went wrong."))}const o0=e=>e&&e.fieldset.inputs[0].inputCriteria.values.find(t=>t.selected),i0=e=>{var t;return e&&((t=e.fieldset)==null?void 0:t.children.map(n=>n.fieldsets[0]))},s0=e=>e&&e.flatMap((t,n)=>t.section.fieldsets.flatMap(r=>{const l=q.SelectedValue(r);return l&&[{criteriaKey:r.fieldset.inputs[0].inputCriteria.id,values:l},q.Children(r)&&q.Children(r).flatMap(o=>q.SelectedValue(o)&&{criteriaKey:o.fieldset.criteriaKey,values:q.SelectedValue(o)}).filter(o=>o!==void 0)]})).flat().filter(t=>t!==void 0),a0=(e,t)=>{const n=t&&t.map(l=>(e.forEach(o=>{const i=l.benefit.eligibility.find(s=>s.criteriaKey===o.criteriaKey);if(i!==void 0){const s=()=>{let u;return typeof o.values.value=="object"?u=i.acceptableValues.find(c=>jo.DateEligibility({selectedValue:o.values.value,conditional:c})):u=i.acceptableValues.find(c=>c===o.values.value),u};i.isEligible=!!s()}}),l));return n&&[].concat(...n)};async function u0(e,t,n,r){const l={...t};jo.FindCriteria(l.section.fieldsets,e).then(o=>{var i;if(o)return((i=o.fieldset)==null?void 0:i.inputs[0].inputCriteria.values).forEach(u=>{u.value===r?u.selected=!0:delete u.selected}),n(l)}).catch(o=>(console.log(o),"Something went wrong."))}async function c0(e,t,n,r,l){const o={...t};jo.FindCriteria(o.section.fieldsets,e).then(i=>{var s;if(i){const u=(s=i.fieldset)==null?void 0:s.inputs[0].inputCriteria.values;return l?(l.includes("day")&&(u[0].value.day=r),l.includes("month")&&(u[0].value.month=r),l.includes("year")&&(u[0].value.year=r),u[0].value={...u[0].value}):u[0].value=r,(f=>{for(const m in f)if(f[m]!==null&&f[m]!==void 0&&f[m]!=="")return!0;return!1})(u[0].value)===!1?u[0].selected=!1:u[0].selected=!0,n(o)}}).catch(i=>(console.log(i),"Something went wrong."))}const d0=(e,t,n,r)=>{const l=jo.GetQueryParams(decodeURI(e));l.filter(o=>o.criteriaKey!==r),t.forEach(o=>{o.completed=!0,l.forEach(i=>{const s=i.value.includes("{")?JSON.parse(i.value):i.value;s!==void 0&&typeof s=="object"?Br.DataDate(i.criteriaKey,o,n,s):Br.Data(i.criteriaKey,o,n,s)})})},q={Children:i0,ElegibilityByCriteria:a0,LifeEvent:l0,Language:r0,SelectedValue:o0,SelectedValueAll:s0},Br={Data:u0,DataDate:c0,DataFromParams:d0},jo={FindCriteria:t0,DateEligibility:e0,GetQueryParams:n0};var Jd={exports:{}},f0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",p0=f0,h0=p0;function ef(){}function tf(){}tf.resetWarningCache=ef;var m0=function(){function e(r,l,o,i,s,u){if(u!==h0){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:tf,resetWarningCache:ef};return n.PropTypes=n,n};Jd.exports=m0();var Zs=Jd.exports;const y=ao(Zs),Gs=({className:e,children:t,alertFieldRef:n,heading:r,description:l,type:o,hasError:i,noBackground:s,tabIndex:u,errorCount:c,errorList:f,submissionCount:m})=>{const p=o==="error"?["bf-usa-alert","usa-alert","bf-usa-alert--error","usa-alert--error",`${i===!1?"display-none":""}`]:["bf-usa-alert","usa-alert","bf-usa-alert--info","usa-alert--info",`${s?"no-background":""}`];return M.useEffect(()=>{const{errors:g}=se.dataLayerStructure;i&&f&&se.dataLayerPush(window,{event:g.event,bfData:{errors:f.map(S=>S==null?void 0:S.id).join(","),errorCount:{number:c,string:`${c}`},formSuccess:!1}},!1)},[m]),a.jsx("div",{className:ft({className:e,defaultClasses:p}),role:"alert",ref:n,tabIndex:u||0,"aria-live":i===!0?"assertive":"polite","aria-hidden":i===void 0?!1:!i,children:t?a.jsx("div",{className:"bf-usa-alert__body usa-alert__body",children:a.jsx("div",{className:"bf-usa-alert__text usa-alert__text",children:t})}):a.jsxs("div",{className:"bf-usa-alert__body usa-alert__body",children:[a.jsxs(ee,{headingLevel:2,className:"bf-usa-alert__heading usa-alert__heading","data-testid":"bf-alert-heading",children:[r==null?void 0:r.prefix," ",c," ",r==null?void 0:r.suffix]}),a.jsx("p",{className:"bf-usa-alert__text usa-alert__text",children:l}),a.jsx("ul",{"data-testid":"bf-errors-list",children:f&&f.map(g=>a.jsx("li",{"data-testid":"bf-errors-list-item",children:a.jsx("a",{href:`#${g.id}`,children:g.getAttribute("data-errormessage")||g.id})},g.id))})]})})};Gs.propTypes={className:y.string,children:y.any,alertFieldRef:y.any,heading:y.object,description:y.string,type:y.string,hasError:y.bool,noBackground:y.bool,tabIndex:y.number,errorCount:y.number};const v0=e=>e&&typeof e=="object"&&e.nodeType===1;var g0=(e,t)=>{if(typeof e!="string")return[];(!t||!v0(t))&&(t=window.document);const n=t.querySelectorAll(e);return Array.prototype.slice.call(n)};/* object-assign (c) Sindre Sorhus @license MIT -*/var vu=Object.getOwnPropertySymbols,y0=Object.prototype.hasOwnProperty,w0=Object.prototype.propertyIsEnumerable;function x0(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function S0(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(o){l[o]=o}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var nf=S0()?Object.assign:function(e,t){for(var n,r=x0(e),l,o=1;o-1?e.split(yu).map(function(i){return lf({type:i},o)}):(o.type=e,[o])};var wu=function(e,t){var n=e[t];return delete e[t],n},T0=function(t,n){const r=Object.keys(t).reduce(function(l,o){var i=L0(o,t[o]);return l.concat(i)},[]);return lf({add:function(o){r.forEach(function(i){o.addEventListener(i.type,i.delegate,i.options)})},remove:function(o){r.forEach(function(i){o.removeEventListener(i.type,i.delegate,i.options)})}},n)};const O0=nf,M0=T0,xu=(...e)=>function(n=document.body){e.forEach(r=>{typeof this[r]=="function"&&this[r].call(this,n)})};var P0=(e,t)=>M0(e,O0({on:xu("init","add"),off:xu("teardown","remove")},t));const Su="aria-expanded",R0="aria-controls",Cu="hidden";var D0=(e,t)=>{let n=t;typeof n!="boolean"&&(n=e.getAttribute(Su)==="false"),e.setAttribute(Su,n);const r=e.getAttribute(R0),l=document.getElementById(r);if(!l)throw new Error(`No toggle target found with id: "${r}"`);return n?l.removeAttribute(Cu):l.setAttribute(Cu,""),n};function $0(e,t=window,n=document.documentElement){const r=e.getBoundingClientRect();return r.top>=0&&r.left>=0&&r.bottom<=(t.innerHeight||n.clientHeight)&&r.right<=(t.innerWidth||n.clientWidth)}var F0=$0,I0={CLICK:"click"},A0={prefix:"usa"};const of=g0,z0=P0,ku=D0,B0=F0,{CLICK:V0}=I0,{prefix:ro}=A0,lo=`.${ro}-accordion, .${ro}-accordion--bordered`,H0=`.${ro}-banner__button`,xr=`.${ro}-accordion__button[aria-controls]:not(${H0})`,Eu="aria-expanded",U0="data-allow-multiple",sf=e=>of(xr,e).filter(n=>n.closest(lo)===e),Sr=(e,t)=>{const n=e.closest(lo);let r=t;if(!n)throw new Error(`${xr} is missing outer ${lo}`);r=ku(e,t);const l=n.hasAttribute(U0);r&&!l&&sf(n).forEach(o=>{o!==e&&ku(o,!1)})},W0=e=>Sr(e,!0),K0=e=>Sr(e,!1),q0=z0({[V0]:{[xr](){Sr(this),this.getAttribute(Eu)==="true"&&(B0(this)||this.scrollIntoView())}}},{init(e){of(xr,e).forEach(t=>{const n=t.getAttribute(Eu)==="true";Sr(t,n)})},ACCORDION:lo,BUTTON:xr,show:W0,hide:K0,toggle:Sr,getButtons:sf});var Q0=q0;const _u=ao(Q0),af=({id:e,heading:t,subHeading:n,children:r,isExpanded:l,hidden:o,...i})=>{M.useEffect(()=>(_u.on(),()=>{_u.off()}));const[s,u]=M.useState(!1),{benefitAccordion:c}=se.dataLayerStructure,h=g=>{u(g),g===!0&&se.dataLayerPush(window,{event:c.event,bfData:{benefitTitle:t}},!1)};M.useEffect(()=>{u(l)},[l]);const m=()=>s?a.jsx(dt,{type:"close","aria-hidden":"true"}):a.jsx(dt,{type:"open","aria-hidden":"true"}),f=g=>g.replace(/ +/g,"-").toLowerCase();return a.jsxs("div",{className:"bf-usa-accordion usa-accordion",...i,hidden:o,children:[a.jsx("h4",{className:"bf-usa-accordion__heading usa-accordion__heading",children:a.jsxs("button",{type:"button",className:"bf-usa-accordion__button usa-accordion__button","aria-expanded":s||!1,"aria-controls":e&&f(e),onClick:()=>h(!s),children:[a.jsx("span",{className:"bf-accordion-heading",children:t}),a.jsx("br",{}),a.jsx("span",{className:"bf-accordion-sub-heading",children:n}),m()]})}),a.jsx("div",{id:e&&f(e),className:"bf-usa-accordion__content usa-accordion__content usa-prose",hidden:s||!0,children:a.jsx("div",{children:r})})]})};af.propTypes={id:y.string,heading:y.string,subHeading:y.string,description:y.string,children:y.node};const uf=({data:e,entryKey:t,expandAll:n,isExpandAll:r,setExpandAll:l,notEligibleView:o,ui:i})=>{const{benefitAccordion:s,benefitAccordionGroup:u}=i,{eligibleStatusLabels:c,agencyPrefix:h,visitLabel:m,unmetLabel:f,sourceIsEnglish:g}=s,{closedState:S,openState:x}=u,{benefitLink:b,openAllBenefitAccordions:p}=se.dataLayerStructure,d=r?`${x} -`:`${S} +`,v=L=>{se.dataLayerPush(window,{event:b.event,bfData:{benefitTitle:L}})},w=L=>{l(!L),se.dataLayerPush(window,{event:p.event,bfData:{accordionsOpen:!L}},!1)},E=()=>n&&a.jsx(Te,{className:"bf-expand-all","aria-label":d,outline:!0,onClick:()=>w(r),children:d}),N=({items:L})=>a.jsxs("div",{className:"bf-unmet-criteria-group",children:[a.jsx("div",{className:"bf-unmet-criteria-title",children:f}),a.jsx("ul",{className:"bf-unmet-criteria-list",children:L.map((B,R)=>{const{label:H}=B;return a.jsx("li",{className:"bf-unmet-criteria-item",children:H},`not-eligible-list-${R}`)})})]}),j=({items:L})=>a.jsxs("div",{className:"bf-unmet-criteria-group",children:[a.jsx("div",{className:"bf-unmet-criteria-title",children:c[1]}),a.jsx("ul",{className:"bf-unmet-criteria-list",children:L.map((B,R)=>{const{label:H}=B;return a.jsx("li",{className:"bf-unmet-criteria-item",children:H},`more-info-${R}`)})})]});return a.jsxs("div",{className:"bf-usa-accordion-group",children:[a.jsx(E,{}),e&&e.map((L,B)=>{const{agency:R,eligibility:H,SourceLink:ae,summary:Oe,title:D,SourceIsEnglish:F}=L[t],W=H.filter(I=>I.isEligible===!0),C=H.filter(I=>I.isEligible===!1),k=H.filter(I=>I.isEligible===void 0),O=W.length===H.length?c[0]:C.length===0&&k.length>0?c[1]:c[2],P=o===!1&&O!==c[0]?!0:o===!0&&O===c[0];return a.jsxs(af,{id:`${D}`,heading:D,subHeading:O,isExpanded:r,"data-analytics":"bf-usa-accordion","data-analytics-content":D,hidden:P,"data-testid":"benefit",children:[a.jsx(ee,{className:"bf-usa-detail-title",headingLevel:4,children:`${h} ${R.title}`}),a.jsx("div",{className:"bf-usa-detail-summary",dangerouslySetInnerHTML:jt(Oe)}),a.jsx(mf,{className:"bf-usa-criteria-list",data:W,initialEligibilityLength:H.length,ui:s}),C.length>0&&a.jsx(N,{items:C}),k.length>0&&a.jsx(j,{items:k}),a.jsx("div",{className:"bf-usa-accordion-group-cta-wrapper",children:a.jsxs(ta,{className:"bf-usa-link",href:ae,target:"_blank",rel:"noopener noreferrer",onClick:()=>v(D),"data-testid":"bf-benefit-link",noCarrot:!0,children:[m," ",R.title," ",g&&F===!0?g:""]})})]},`${B}-${D}`)})]})};uf.propTypes={data:y.array,entryKey:y.string,expandAll:y.bool,isExpandAll:y.bool,setExpandAll:y.func,notEligibleView:y.bool,ui:y.object};const mn={officerNavy:"#162e51",marine:"#1a4480",popBlue:"#005ea2",sky:"#d9e8f6",darkSky:"#b6dbfd",offBlack:"#1b1b1b",white:"#fff",bannerBlue:"#112f4e",mediumGrey:"#979797",darkMediumGrey:"#3d4551",baseGrey:"#dcdee0",baseLightGrey:"#f0f0f0",lightTeal:"#e7f6f8",pureBlack:"#000",electricBlue:"#0050d8",teal:"#00bde3",alertRed:"#b50909",greenCheck:"#009831"};function Te({children:e,className:t,onClick:n,secondary:r,outline:l,disabled:o,unstyled:i,type:s,icon:u,...c}){const[h,m]=M.useState(null),f=r===!0?"secondary":l===!0?"outline":i===!0?"unstyled":null,[g,S]=M.useState(!1),[x,b]=M.useState();return M.useEffect(()=>{b(g&&r||g&&i?mn.marine:mn.popBlue)},[g]),M.useEffect(()=>{switch(f){case"secondary":m(["bf-usa-button","usa-button","bf-usa-button--secondary","usa-button--secondary"]);break;case"outline":m(["bf-usa-button","usa-button","bf-usa-button--outline","usa-button--outline"]);break;case"unstyled":m(["bf-usa-button","usa-button","bf-usa-button--unstyled","usa-button--unstyled"]);break;default:m(["bf-usa-button","usa-button"])}},[f,r,i]),a.jsxs("button",{onClick:o?null:n,type:s||"button",disabled:o,"aria-disabled":o,className:ft({className:t,defaultClasses:h}),onMouseOver:()=>S(!0),onMouseLeave:()=>S(!1),"data-testid":c["data-testid"],id:c.id,children:[u&&a.jsx(dt,{type:u,color:x,"aria-hidden":"true"}),e]})}Te.propTypes={children:y.node,className:y.string,onClick:y.func,secondary:y.bool,disabled:y.bool,unstyled:y.bool,type:y.oneOf(["button","reset","download"]),icon:y.string};y.object,y.object;const cf=({className:e,title:t,body:n,cta:r,href:l,noCarrot:o,carrotType:i,icon:s,...u})=>{const c=s!==void 0?["bf-card-icon"]:"",h=["add-list-reset"],m=o===!0?null:a.jsx(dt,{type:i,color:"#162E51","aria-hidden":"true"}),f=s===void 0?null:a.jsx(dt,{type:s,className:"bf-relative-icon","aria-hidden":"true"});return a.jsx("li",{className:ft({className:e,defaultClasses:c,utilityClasses:h}),...u,children:a.jsxs("a",{className:"bf-usa-card__container usa-card__container",href:l,children:[f,a.jsx("div",{className:"bf-usa-card__header usa-card__header",children:a.jsx(ee,{className:"bf-usa-card__heading usa-card__heading",headingLevel:3,children:t})}),a.jsx("div",{className:"bf-usa-card__body usa-card__body",dangerouslySetInnerHTML:jt(n)}),a.jsx("div",{className:"bf-usa-card__cta usa-card__cta",children:r}),m]})},`${t}`)};cf.propTypes={className:y.string,title:y.string,body:y.string,href:y.string,noCarrot:y.bool,carrotType:y.string,icon:y.string};const Ys=({heading:e,description:t})=>a.jsx("div",{className:"bf-chevron",children:a.jsxs("div",{className:"bf-grid-container grid-container",children:[a.jsx(ee,{className:"bf-chevron-heading",headingLevel:1,children:e}),a.jsx("div",{className:"bf-chevron-description",dangerouslySetInnerHTML:jt(t)})]})});Ys.propTypes={heading:y.string,description:y.string};const df=({onChange:e,value:t,ui:n,parentLegend:r,id:l,invalid:o,errorMessage:i})=>{const{date:s,select:u,errorText:c}=n,{labelDay:h,labelMonth:m,labelYear:f,monthOptions:g}=s,{dateDefaultValue:S}=u,{suffix:x,prefix:b}=c,p=(v,w)=>v&&v.map(E=>E.id===w).includes(!0),d={month:i?`${i} : ${m.toLowerCase()}`:`${b} ${r==null?void 0:r.toLowerCase()} ${m.toLowerCase()} ${x}`,day:i?`${i} : ${h.toLowerCase()}`:`${b} ${r==null?void 0:r.toLowerCase()} ${h.toLowerCase()} ${x}`,year:i?`${i} : ${f.toLowerCase()}`:`${b} ${r==null?void 0:r.toLowerCase()} ${f.toLowerCase()} ${x}`};return a.jsxs(a.Fragment,{children:[a.jsxs("ul",{className:"add-list-reset",children:[p(o,`${l}_month`)&&a.jsx("li",{id:`month-error-description-${l}`,"data-testid":`month-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:d.month}),p(o,`${l}_day`)&&a.jsx("li",{id:`day-error-description-${l}`,"data-testid":`day-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:d.day}),p(o,`${l}_year`)&&a.jsx("li",{id:`year-error-description-${l}`,"data-testid":`year-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:d.year})]}),a.jsxs("div",{id:`bf-usa-memorable-date-${l}`,className:"bf-usa-memorable-date usa-memorable-date",children:[a.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--month usa-form-group--month bf-usa-form-group--select usa-form-group--select",children:[a.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_month`,children:m}),a.jsx("div",{id:`${l}-month-description`,className:"usa-sr-only",children:"Select a month from the list"}),a.jsxs("select",{className:`bf-usa-select usa-select ${p(o,`${l}_month`)?"usa-input--error":""}`,id:`${l}_month`,name:`${l}_month`,"aria-describedby":`${l}-month-description`,value:t&&t.month||"",onChange:e,"aria-invalid":p(o,`${l}_month`),"data-errormessage":d.month,"aria-errormessage":`month-error-description-${l}`,"data-datetype":"month",children:[a.jsx("option",{value:"",children:S},"default"),g.map((v,w)=>a.jsx("option",{value:w,children:v.label},`${v.label}-${w}`))]})]}),a.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--day usa-form-group--day",children:[a.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_day`,children:h}),a.jsx("div",{id:`${l}-day-description`,className:"usa-sr-only",children:"Enter two numerals for day"}),a.jsx("input",{className:`bf-usa-input usa-input ${p(o,`${l}_day`)?"usa-input--error":""}`,"aria-describedby":`${l}-day-description`,id:`${l}_day`,name:`${l}_day`,inputMode:"numeric",value:t&&t.day||"",onChange:e,"aria-invalid":p(o,`${l}_day`),"data-errormessage":d.day,"aria-errormessage":`day-error-description-${l}`,"data-datetype":"day"})]}),a.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--year usa-form-group--year",children:[a.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_year`,children:f}),a.jsx("div",{id:`${l}-year-description`,className:"usa-sr-only",children:"Enter four numerals for year"}),a.jsx("input",{className:`bf-usa-input usa-input ${p(o,`${l}_year`)?"usa-input--error":""}`,"aria-describedby":`${l}-year-description`,id:`${l}_year`,name:`${l}_year`,inputMode:"numeric",value:t&&t.year||"",onChange:e,"aria-invalid":p(o,`${l}_year`),"data-errormessage":d.year,"aria-errormessage":`year-error-description-${l}`,"data-datetype":"year"})]})]})]})};df.propTypes={onChange:y.func,value:y.object,ui:y.object,id:y.string,invalid:y.oneOfType([y.bool,y.array])};const Z0=({ui:e,data:t})=>{const[n,r]=M.useState(()=>to(window.location.href,t)),l=`${encodeURIComponent(n)}`,o=i=>{i.preventDefault(),r(to(window.location.href,t)),window.location=`mailto:?subject=${e==null?void 0:e.emailSubject}&body=${l}`};return a.jsx("a",{href:"",className:"bf-email-trigger bf-usa-link usa-link",onClick:i=>o(i),children:(e==null?void 0:e.emailTrigger)||"Email"})},Tl=({children:e,legend:t,required:n,alertRef:r,requiredLabel:l,hidden:o,errorMessage:i,hint:s,className:u,id:c,invalid:h,ui:m})=>{const f=o!==void 0&&o?["display-none"]:"",g=[`bf-usa-fieldset usa-fieldset ${n===!0?"required-field":""} ${h===!0?"usa-input--error":""}`],S=f,{prefix:x,suffix:b}=m,d=n===!1?a.jsx(Zi,{children:t}):a.jsx(a.Fragment,{children:a.jsxs(Zi,{children:[t,a.jsx(pf,{requiredLabel:l})]})}),v=i?`${i}`:`${x} ${t&&t.toLowerCase().replace("?","")} ${b}`;return a.jsx("div",{className:"bf-fieldset-wrapper",children:a.jsxs("fieldset",{className:ft({className:u,defaultClasses:g,utilityClasses:S}),ref:r,required:n===!0,id:c,"data-errormessage":v,hidden:o,"aria-hidden":o,children:[t&&d,h===!0&&a.jsx("div",{id:`error-description-${c}`,"data-testid":`error-description-${c}`,className:"bf-error-detail","aria-live":"assertive",children:v}),s&&a.jsx("div",{className:"bf-hint",children:s}),e]})})};Tl.propTypes={children:y.node,legend:y.string,alertRef:y.any,requiredLabel:y.object,hidden:y.bool,hint:y.string,className:y.string,invalid:y.bool,ui:y.object};function ff({children:e}){return a.jsx("form",{className:"bf-usa-form",children:a.jsx("div",{className:"bf-grid-contianer grid-container",children:e})})}ff.propTypes={children:y.node};const ee=({children:e,className:t,headingLevel:n,...r})=>{const l=[""],o=`h${n}`;return a.jsx(o,{className:ft({className:t,defaultClasses:l}),id:n===1?"skip-to-h1":null,...r,"aria-level":n,role:"heading",children:e})};ee.propTypes={children:y.oneOfType([y.string,y.array]),className:y.string,headingLevel:y.number};const pf=({requiredLabel:e})=>a.jsx("span",{title:"required",className:"bf-usa-hint usa-hint usa-hint--required bf-usa-hint--required bf-required required",children:`(${(e==null?void 0:e.value)||"Required"})`});pf.propTypes={requiredLabel:y.object};const G0=()=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 44.31 44.31",children:[a.jsxs("g",{id:"Layer_1","data-name":"Layer 1",children:[a.jsxs("g",{children:[a.jsx("path",{className:"cls-1",fill:"#e8f6fb",strokeWidth:"0px",d:"M22.16,40.85c-10.33,0-18.7-8.37-18.7-18.7S11.83,3.46,22.16,3.46c7.55,0,14.06,4.48,17.01,10.93.08.18.16.37.24.55.93,2.22,1.44,4.66,1.44,7.22,0,10.33-8.37,18.7-18.7,18.7Z"}),a.jsx("path",{className:"cls-4",fill:"#e7f6fb",strokeWidth:"0px",d:"M22.16,39.34c-9.49,0-17.19-7.69-17.19-17.19S12.66,4.97,22.16,4.97c7,0,13.03,4.19,15.71,10.2.95,2.14,1.48,4.5,1.48,6.99,0,9.49-7.69,17.19-17.19,17.19Z"})]}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M40.55,12.43l-1.46.59c-2.11-3.91-5.56-6.99-9.75-8.6v1.63c3.55,1.51,6.49,4.18,8.34,7.54l-1.55.63c-.17.07-.19.29-.05.4l3.66,2.66c.14.1.33.02.36-.15l.77-4.46c.03-.18-.15-.32-.31-.25Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M31.63,40.86l-.59-1.46c3.91-2.11,6.99-5.56,8.6-9.75h-1.63c-1.51,3.55-4.18,6.49-7.54,8.34l-.63-1.55c-.07-.17-.29-.19-.4-.05l-2.66,3.66c-.1.14-.02.33.15.36l4.46.77c.18.03.32-.15.25-.31Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M3.48,31.73l1.46-.59c2.11,3.91,5.56,6.99,9.75,8.6v-1.63c-3.55-1.51-6.49-4.18-8.34-7.54l1.55-.63c.17-.07.19-.29.05-.4l-3.66-2.66c-.14-.1-.33-.02-.36.15l-.77,4.46c-.03.18.15.32.31.25Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M12.4,3.31l.59,1.46c-3.91,2.11-6.99,5.56-8.6,9.75h1.63c1.51-3.55,4.18-6.49,7.54-8.34l.63,1.55c.07.17.29.19.4.05l2.66-3.66c.1-.14.02-.33-.15-.36l-4.46-.77c-.18-.03-.32.15-.25.31Z"}),a.jsxs("g",{children:[a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M24.12,23.21l-.04-4.46c.16,0,.32-.02.47-.03,1.7-.13,3.11-1.33,3.52-2.97l.37-1.48c.13-.53-.19-1.06-.71-1.19-.52-.13-1.06.19-1.19.71l-.37,1.48c-.21.83-.92,1.43-1.78,1.49-.8.06-1.7.1-2.67.1-.25,0-.51,0-.77.02-2.01.12-3.72,1.49-4.24,3.42l-.64,2.32c-.14.52.17,1.06.69,1.2.09.02.17.04.26.04.43,0,.83-.29.95-.72l.64-2.32c.13-.49.41-.91.76-1.25l-.03,3.64-.98,7.25c-.08.6.34,1.15.93,1.22.05,0,.1,0,.15,0,.54,0,1.01-.4,1.08-.94l.95-7.05h.5l.95,7.05c.07.55.54.94,1.08.94.05,0,.1,0,.15,0,.6-.08,1.02-.63.93-1.22l-.97-7.25Z"}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M21.74,16.72c1.2,0,2.18-.98,2.18-2.18s-.98-2.18-2.18-2.18-2.18.98-2.18,2.18c0,1.2.98,2.18,2.18,2.18Z"})]})]}),a.jsxs("g",{id:"Layer_1_copy_3","data-name":"Layer 1 copy 3",children:[a.jsxs("g",{children:[a.jsx("path",{className:"cls-5",fill:"#fff",strokeWidth:"0px",d:"M22.16,40.85c-10.33,0-18.7-8.37-18.7-18.7S11.83,3.46,22.16,3.46c7.55,0,14.06,4.48,17.01,10.93.08.18.16.37.24.55.93,2.22,1.44,4.66,1.44,7.22,0,10.33-8.37,18.7-18.7,18.7Z"}),a.jsx("path",{className:"cls-4",fill:"#e7f6fb",strokeWidth:"0px",d:"M22.16,36.47c-7.91,0-14.32-6.41-14.32-14.32s6.41-14.32,14.32-14.32c5.83,0,10.85,3.49,13.08,8.49.79,1.78,1.23,3.75,1.23,5.82,0,7.91-6.41,14.32-14.32,14.32Z"})]}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M40.55,12.43l-1.46.59c-2.11-3.91-5.56-6.99-9.75-8.6v1.63c3.55,1.51,6.49,4.18,8.34,7.54l-1.55.63c-.17.07-.19.29-.05.4l3.66,2.66c.14.1.33.02.36-.15l.77-4.46c.03-.18-.15-.32-.31-.25Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M31.63,40.86l-.59-1.46c3.91-2.11,6.99-5.56,8.6-9.75h-1.63c-1.51,3.55-4.18,6.49-7.54,8.34l-.63-1.55c-.07-.17-.29-.19-.4-.05l-2.66,3.66c-.1.14-.02.33.15.36l4.46.77c.18.03.32-.15.25-.31Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M3.48,31.73l1.46-.59c2.11,3.91,5.56,6.99,9.75,8.6v-1.63c-3.55-1.51-6.49-4.18-8.34-7.54l1.55-.63c.17-.07.19-.29.05-.4l-3.66-2.66c-.14-.1-.33-.02-.36.15l-.77,4.46c-.03.18.15.32.31.25Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M12.4,3.31l.59,1.46c-3.91,2.11-6.99,5.56-8.6,9.75h1.63c1.51-3.55,4.18-6.49,7.54-8.34l.63,1.55c.07.17.29.19.4.05l2.66-3.66c.1-.14.02-.33-.15-.36l-4.46-.77c-.18-.03-.32.15-.25.31Z"})]}),a.jsx("g",{id:"dude",children:a.jsxs("g",{children:[a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M24.12,23.21l-.04-4.46c.16,0,.32-.02.47-.03,1.7-.13,3.11-1.33,3.52-2.97l.37-1.48c.13-.53-.19-1.06-.71-1.19-.52-.13-1.06.19-1.19.71l-.37,1.48c-.21.83-.92,1.43-1.78,1.49-.8.06-1.7.1-2.67.1-.25,0-.51,0-.77.02-2.01.12-3.72,1.49-4.24,3.42l-.64,2.32c-.14.52.17,1.06.69,1.2.09.02.17.04.26.04.43,0,.83-.29.95-.72l.64-2.32c.13-.49.41-.91.76-1.25l-.03,3.64-.98,7.25c-.08.6.34,1.15.93,1.22.05,0,.1,0,.15,0,.54,0,1.01-.4,1.08-.94l.95-7.05h.5l.95,7.05c.07.55.54.94,1.08.94.05,0,.1,0,.15,0,.6-.08,1.02-.63.93-1.22l-.97-7.25Z"}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M21.74,16.72c1.2,0,2.18-.98,2.18-2.18s-.98-2.18-2.18-2.18-2.18.98-2.18,2.18c0,1.2.98,2.18,2.18,2.18Z"})]})})]}),Y0=({color:e})=>a.jsx("svg",{className:"bf-carrot",width:"12",height:"19",viewBox:"0 0 12 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.78013 1.73698C3.33373 1.29058 2.60998 1.29059 2.16359 1.73698L1.74049 2.16007C1.29444 2.60612 1.29405 3.32919 1.73961 3.77573L6.7498 8.79686C7.19502 9.24305 7.19502 9.96544 6.7498 10.4116L1.73961 15.4328C1.29405 15.8793 1.29444 16.6024 1.7405 17.0484L2.16359 17.4715C2.60998 17.9179 3.33373 17.9179 3.78013 17.4715L10.8391 10.4125C11.2855 9.96612 11.2855 9.24237 10.8391 8.79597L3.78013 1.73698Z",fill:e||mn.officerNavy})}),X0=({color:e})=>a.jsxs("svg",{className:"bf-carrot-solid",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",fill:e||mn.white,children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{d:"M7 10l5 5 5-5z"})]}),J0=({color:e})=>a.jsxs("svg",{className:"bf-close",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{d:"M19 13H5v-2h14v2z",fill:e||mn.black})]}),em=()=>a.jsxs("svg",{className:"bf-death",width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.1501 6.87479C20.1501 9.34031 18.1533 11.3388 15.6903 11.3388C13.2273 11.3388 11.2309 9.34031 11.2309 6.87479C11.2309 4.40927 13.2273 2.4104 15.6903 2.4104C18.1533 2.4104 20.1501 4.40927 20.1501 6.87479ZM8.94118 13.9881C8.97531 13.7489 9.18017 13.5712 9.42182 13.5712H21.8969C22.0106 13.5712 22.1206 13.6111 22.2079 13.6839L22.6929 14.0884L28.6272 19.0387C28.7145 19.1115 28.8246 19.1514 28.9382 19.1514H37.5777C37.8151 19.1514 38.0176 19.323 38.0566 19.5572L40.1247 31.979C40.1739 32.2749 39.9457 32.5442 39.6458 32.5442H37.3595C37.0914 32.5442 36.874 32.7616 36.874 33.0297V42.1033C36.874 42.3714 36.6567 42.5888 36.3885 42.5888H32.8998C32.6316 42.5888 32.4143 42.3714 32.4143 42.1033V29.6815C32.4143 29.4134 32.6316 29.196 32.8998 29.196H34.0713C34.3713 29.196 34.5995 28.9267 34.5502 28.6307L33.9758 25.1807L33.7429 23.6286C33.7418 23.6213 33.7355 23.6158 33.728 23.6158C33.7206 23.6158 33.7143 23.6105 33.7131 23.6032L33.5969 22.9053C33.5579 22.6712 33.3553 22.4996 33.118 22.4996H25.9029C25.7879 22.4996 25.6767 22.4588 25.589 22.3844L20.5939 18.1504C20.5062 18.076 20.3949 18.0352 20.2799 18.0352H13.6883C13.4389 18.0352 13.23 18.2242 13.2052 18.4725L12.6333 24.1978C12.6047 24.4836 12.8291 24.7316 13.1164 24.7316H14.0905C14.3586 24.7316 14.576 24.949 14.576 25.2171V42.1035C14.576 42.3716 14.3586 42.589 14.0905 42.589H10.6017C10.3336 42.589 10.1162 42.3716 10.1162 42.1035V29.6817C10.1162 29.4135 9.89885 29.1962 9.63071 29.1962H7.33117C7.03575 29.1962 6.80881 28.9346 6.85053 28.6421L8.94118 13.9881ZM21.2653 25.2167C21.2653 24.9486 21.0479 24.7312 20.7798 24.7312H17.291C17.0229 24.7312 16.8055 24.9486 16.8055 25.2167V42.1031C16.8055 42.3712 17.0229 42.5886 17.291 42.5886H20.7798C21.0479 42.5886 21.2653 42.3712 21.2653 42.1031V25.2167ZM25.7247 25.2167C25.7247 24.9486 25.9421 24.7312 26.2102 24.7312H29.699C29.9671 24.7312 30.1845 24.9486 30.1845 25.2167V42.1031C30.1845 42.3712 29.9671 42.5886 29.699 42.5886H26.2102C25.9421 42.5886 25.7247 42.3712 25.7247 42.1031V25.2167ZM35.7589 12.4548C35.7589 14.9203 33.7625 16.9192 31.2995 16.9192C28.8365 16.9192 26.8397 14.9203 26.8397 12.4548C26.8397 9.98928 28.8365 7.99041 31.2995 7.99041C33.7625 7.99041 35.7589 9.98928 35.7589 12.4548Z",fill:"#E9F6FB",stroke:"#1B1B1B",strokeWidth:"2.77965"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.1501 6.87479C20.1501 9.34031 18.1533 11.3388 15.6903 11.3388C13.2273 11.3388 11.2309 9.34031 11.2309 6.87479C11.2309 4.40927 13.2273 2.4104 15.6903 2.4104C18.1533 2.4104 20.1501 4.40927 20.1501 6.87479ZM8.94118 13.9881C8.97531 13.7489 9.18017 13.5712 9.42182 13.5712H21.8969C22.0106 13.5712 22.1206 13.6111 22.2079 13.6839L22.6929 14.0884L28.6272 19.0387C28.7145 19.1115 28.8246 19.1514 28.9382 19.1514H37.5777C37.8151 19.1514 38.0177 19.323 38.0566 19.5572L40.1247 31.979C40.1739 32.2749 39.9457 32.5442 39.6458 32.5442H37.3595C37.0914 32.5442 36.874 32.7616 36.874 33.0297V42.1033C36.874 42.3714 36.6567 42.5888 36.3885 42.5888H32.8998C32.6316 42.5888 32.4143 42.3714 32.4143 42.1033V29.6815C32.4143 29.4134 32.6316 29.196 32.8998 29.196H34.0713C34.3713 29.196 34.5995 28.9267 34.5502 28.6307L33.9758 25.1807L33.7429 23.6286C33.7418 23.6213 33.7355 23.6158 33.728 23.6158C33.7206 23.6158 33.7143 23.6105 33.7131 23.6032L33.5969 22.9053C33.5579 22.6712 33.3553 22.4996 33.118 22.4996H25.9029C25.7879 22.4996 25.6767 22.4588 25.589 22.3844L20.5939 18.1504C20.5062 18.076 20.3949 18.0352 20.2799 18.0352H13.6883C13.4389 18.0352 13.23 18.2242 13.2052 18.4725L12.6333 24.1978C12.6047 24.4836 12.8291 24.7316 13.1164 24.7316H14.0905C14.3586 24.7316 14.576 24.949 14.576 25.2171V42.1035C14.576 42.3716 14.3586 42.589 14.0905 42.589H10.6017C10.3336 42.589 10.1162 42.3716 10.1162 42.1035V29.6817C10.1162 29.4135 9.89885 29.1962 9.63071 29.1962H7.33117C7.03575 29.1962 6.80881 28.9346 6.85053 28.6421L8.94118 13.9881ZM21.2653 25.2167C21.2653 24.9486 21.0479 24.7312 20.7798 24.7312H17.291C17.0229 24.7312 16.8055 24.9486 16.8055 25.2167V42.1031C16.8055 42.3712 17.0229 42.5886 17.291 42.5886H20.7798C21.0479 42.5886 21.2653 42.3712 21.2653 42.1031V25.2167ZM25.7247 25.2167C25.7247 24.9486 25.9421 24.7312 26.2102 24.7312H29.699C29.9671 24.7312 30.1845 24.9486 30.1845 25.2167V42.1031C30.1845 42.3712 29.9671 42.5886 29.699 42.5886H26.2102C25.9421 42.5886 25.7247 42.3712 25.7247 42.1031V25.2167ZM35.7589 12.4548C35.7589 14.9203 33.7625 16.9192 31.2995 16.9192C28.8365 16.9192 26.8397 14.9203 26.8397 12.4548C26.8397 9.98928 28.8365 7.99041 31.2995 7.99041C33.7625 7.99041 35.7589 9.98928 35.7589 12.4548Z",fill:"white",stroke:"#00C1E7",strokeWidth:"0.571814"})]}),tm=({color:e})=>a.jsx("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 0.000244141H2C0.9 0.000244141 0.00999999 0.900244 0.00999999 2.00024L0 14.0002C0 15.1002 0.9 16.0002 2 16.0002H18C19.1 16.0002 20 15.1002 20 14.0002V2.00024C20 0.900244 19.1 0.000244141 18 0.000244141ZM18 14.0002H2V4.00024L10 9.00024L18 4.00024V14.0002ZM10 7.00024L2 2.00024H18L10 7.00024Z",fill:e||mn.popBlue})}),nm=()=>a.jsxs("svg",{width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M29.2857 9.5335C31.4805 9.5335 33.2598 7.75908 33.2598 5.57022C33.2598 3.38136 31.4805 1.60693 29.2857 1.60693C27.0908 1.60693 25.3115 3.38136 25.3115 5.57022C25.3115 7.75908 27.0908 9.5335 29.2857 9.5335Z",fill:"#E9F6FB",stroke:"#1A1A1A",strokeWidth:"1.34304",strokeMiterlimit:"10"}),a.jsx("path",{d:"M31.1129 34.0346C31.1129 33.6064 30.7661 33.2593 30.3382 33.2593C29.9103 33.2593 29.5635 33.6064 29.5635 34.0346V42.3786C29.5635 42.8068 29.9103 43.1539 30.3382 43.1539C30.7661 43.1539 31.1129 42.8068 31.1129 42.3786V34.0346Z",fill:"#1A1A1A"}),a.jsx("path",{d:"M29.8281 42.2474V42.5131C29.8281 42.8664 30.1153 43.1528 30.4696 43.1528H35.1777C35.532 43.1528 35.8193 42.8664 35.8193 42.5131V42.2474C35.8193 41.8941 35.532 41.6076 35.1777 41.6076H30.4696C30.1153 41.6076 29.8281 41.8941 29.8281 42.2474Z",fill:"#1A1A1A"}),a.jsx("path",{d:"M19.0432 44.1969C26.0392 44.1969 31.7105 38.5411 31.7105 31.5643C31.7105 24.5875 26.0392 18.9316 19.0432 18.9316C12.0473 18.9316 6.37598 24.5875 6.37598 31.5643C6.37598 38.5411 12.0473 44.1969 19.0432 44.1969Z",fill:"#010101"}),a.jsx("path",{d:"M36.3958 22.9921L29.7469 22.4553L31.8835 14.827C32.1988 13.6938 31.6497 12.5173 30.6385 12.0077C30.5026 11.9318 30.3558 11.8667 30.1927 11.8233L21.1027 9.29139C20.7276 9.18838 20.347 9.19922 19.9936 9.29681C19.6892 9.34561 19.3956 9.46488 19.1401 9.67091L12.8934 14.6535C12.1051 15.2824 11.9801 16.4372 12.6053 17.218C13.2359 18.0041 14.3939 18.1288 15.1768 17.5053L20.0045 13.6505L21.8693 14.1709L17.857 21.7559C17.2318 22.9379 17.6885 24.4126 18.8737 25.0361L22.5488 26.9662C23.3154 27.3674 24.207 27.3186 24.9083 26.912L25.3867 27.0421C25.7673 27.5463 26.349 27.8933 27.0286 27.9475L33.1991 28.4463L32.4326 37.8801C32.3184 39.2573 33.3568 40.4772 34.7431 40.5856C36.124 40.6994 37.3472 39.6639 37.456 38.2814L38.44 26.1801C38.44 26.1313 38.44 26.0771 38.44 26.0283L38.4889 25.4319C38.5922 24.1794 37.6463 23.0734 36.3904 22.9704L36.3958 22.9921Z",fill:"#E9F6FB",stroke:"#1A1A1A",strokeWidth:"1.34304",strokeMiterlimit:"10"}),a.jsx("path",{d:"M19.0442 41.7672C24.695 41.7672 29.2758 37.1989 29.2758 31.5636C29.2758 25.9282 24.695 21.3599 19.0442 21.3599C13.3934 21.3599 8.8125 25.9282 8.8125 31.5636C8.8125 37.1989 13.3934 41.7672 19.0442 41.7672Z",fill:"#E9F6FB"}),a.jsx("path",{d:"M19.0425 42.3136C24.9965 42.3136 29.8233 37.5001 29.8233 31.5623C29.8233 25.6245 24.9965 20.811 19.0425 20.811C13.0884 20.811 8.26172 25.6245 8.26172 31.5623C8.26172 37.5001 13.0884 42.3136 19.0425 42.3136Z",stroke:"#00C0E4",strokeWidth:"1.03146",strokeMiterlimit:"10"}),a.jsx("path",{d:"M19.0426 39.4948C23.4353 39.4948 26.9963 35.9436 26.9963 31.5628C26.9963 27.1821 23.4353 23.6309 19.0426 23.6309C14.6499 23.6309 11.0889 27.1821 11.0889 31.5628C11.0889 35.9436 14.6499 39.4948 19.0426 39.4948Z",fill:"white",stroke:"#1A1A1A",strokeWidth:"1.07443",strokeMiterlimit:"10"})]}),rm=({color:e})=>a.jsx("svg",{className:"bf-checkmark--green",width:"24",height:"20",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 4.15417C23.9925 4.52794 23.8515 4.88618 23.6033 5.16208L12.2975 16.6522L10.1157 18.8696C9.84423 19.1219 9.49174 19.2651 9.12397 19.2727C8.7562 19.2651 8.40371 19.1219 8.13223 18.8696L5.95041 16.6522L0.396694 11.0079C0.148478 10.732 0.00748054 10.3738 0 10C0.00748054 9.62626 0.148478 9.26802 0.396694 8.99212L2.57851 6.77473C2.84999 6.52246 3.20248 6.37917 3.57025 6.37156C3.93802 6.37917 4.29051 6.52246 4.56198 6.77473L9.12397 11.4111L19.2397 1.13046C19.5111 0.878193 19.8636 0.734897 20.2314 0.727295C20.5992 0.734897 20.9517 0.878193 21.2231 1.13046L23.405 3.34785C23.8017 3.54943 24 3.75101 24 4.15417Z",fill:e||mn.greenCheck})}),lm=()=>a.jsx("svg",{className:"bf-info",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.33594 3.66732H7.66927V5.00065H6.33594V3.66732ZM6.33594 6.33398H7.66927V10.334H6.33594V6.33398ZM7.0026 0.333984C3.3226 0.333984 0.335938 3.32065 0.335938 7.00065C0.335938 10.6807 3.3226 13.6673 7.0026 13.6673C10.6826 13.6673 13.6693 10.6807 13.6693 7.00065C13.6693 3.32065 10.6826 0.333984 7.0026 0.333984ZM7.0026 12.334C4.0626 12.334 1.66927 9.94065 1.66927 7.00065C1.66927 4.06065 4.0626 1.66732 7.0026 1.66732C9.9426 1.66732 12.3359 4.06065 12.3359 7.00065C12.3359 9.94065 9.9426 12.334 7.0026 12.334Z",fill:"#1B1B1B"})}),om=()=>a.jsxs("svg",{className:"bf-modal-close",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})]}),im=()=>a.jsxs("svg",{className:"bf-open",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{fill:"none",d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})]}),sm=()=>a.jsxs("svg",{width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M40.2696 1.60693H6.37598V43.3926H40.2696V1.60693Z",fill:"#DFEFF4",stroke:"#191919",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M19.2757 9.08496H12.9048C12.4714 9.08496 12.1201 9.43563 12.1201 9.86819V14.6747C12.1201 15.1073 12.4714 15.4579 12.9048 15.4579H19.2757C19.7091 15.4579 20.0604 15.1073 20.0604 14.6747V9.86819C20.0604 9.43563 19.7091 9.08496 19.2757 9.08496Z",fill:"#05BBE2"}),a.jsx("path",{d:"M19.2757 19.314H12.9048C12.4714 19.314 12.1201 19.6646 12.1201 20.0972V24.9037C12.1201 25.3363 12.4714 25.6869 12.9048 25.6869H19.2757C19.7091 25.6869 20.0604 25.3363 20.0604 24.9037V20.0972C20.0604 19.6646 19.7091 19.314 19.2757 19.314Z",fill:"#05BBE2"}),a.jsx("path",{d:"M19.2757 29.5415H12.9048C12.4714 29.5415 12.1201 29.8922 12.1201 30.3247V35.1312C12.1201 35.5638 12.4714 35.9145 12.9048 35.9145H19.2757C19.7091 35.9145 20.0604 35.5638 20.0604 35.1312V30.3247C20.0604 29.8922 19.7091 29.5415 19.2757 29.5415Z",fill:"#05BBE2"}),a.jsx("path",{d:"M14.8369 11.9099L16.1581 13.2287L21.1878 9.08496",stroke:"#191919",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 11.0723H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 13.4648H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 21.3071H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 23.6904H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 31.5381H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 33.9214H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"})]}),am=({color:e})=>a.jsx("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 14.1203C14.24 14.1203 13.56 14.4203 13.04 14.8903L5.91 10.7403C5.96 10.5103 6 10.2803 6 10.0403C6 9.80028 5.96 9.57028 5.91 9.34028L12.96 5.23028C13.5 5.73028 14.21 6.04028 15 6.04028C16.66 6.04028 18 4.70028 18 3.04028C18 1.38028 16.66 0.0402832 15 0.0402832C13.34 0.0402832 12 1.38028 12 3.04028C12 3.28028 12.04 3.51028 12.09 3.74028L5.04 7.85028C4.5 7.35028 3.79 7.04028 3 7.04028C1.34 7.04028 0 8.38028 0 10.0403C0 11.7003 1.34 13.0403 3 13.0403C3.79 13.0403 4.5 12.7303 5.04 12.2303L12.16 16.3903C12.11 16.6003 12.08 16.8203 12.08 17.0403C12.08 18.6503 13.39 19.9603 15 19.9603C16.61 19.9603 17.92 18.6503 17.92 17.0403C17.92 15.4303 16.61 14.1203 15 14.1203Z",fill:e||"#005EA2"})}),dt=({type:e,color:t,...n})=>{let r;switch(e){case"all_benefits":r=a.jsx(G0,{});break;case"carrot-solid":r=a.jsx(X0,{color:t});break;case"carrot":r=a.jsx(Y0,{color:t});break;case"close":r=a.jsx(J0,{});break;case"death":r=a.jsx(em,{});break;case"disability":r=a.jsx(nm,{});break;case"email":r=a.jsx(tm,{color:t});break;case"green-check":r=a.jsx(rm,{color:t});break;case"info":r=a.jsx(lm,{color:t});break;case"open":r=a.jsx(im,{});break;case"modal-close":r=a.jsx(om,{color:t});break;case"retirement":r=a.jsx(sm,{});break;case"share":r=a.jsx(am,{color:t});break;default:r=null}return a.jsx("i",{...n,"data-testid":`icon-${e}`,children:r})};dt.propTypes={type:y.string,color:y.string,props:y.any};const hf=({data:e,ui:t,setStep:n,step:r})=>{const{timeEstimate:l,title:o,summary:i}=e,{heading:s,timeIndicator:u,steps:c,notices:h,button:m}=t,{intro:f}=se.dataLayerStructure,g=Gr(),S=()=>{n(r+1),g.current.focus()};return Zr({pageView:f.bfData.pageView}),M.useEffect(()=>{se.dataLayerPush(window,{event:f.event,bfData:{pageView:f.bfData.pageView,viewTitle:o}})},[]),e&&a.jsxs("div",{className:"bf-intro",children:[a.jsx(Ys,{heading:o,description:i}),a.jsxs("div",{className:"bf-grid-container grid-container",children:[a.jsx(ee,{headingLevel:2,children:s}),a.jsx(If,{description:u,timeEstimate:l}),a.jsxs("div",{className:"bf-intro-process-group",children:[a.jsx("div",{className:"bf-intro-process-list",children:a.jsx(Nf,{steps:c.list,description:c.title})}),a.jsx("div",{className:"bf-line-sperator-wrapper--vertical",children:a.jsx("div",{className:"bf-line-sperator--vertical"})}),a.jsxs("div",{className:"bf-intro-process-notices",children:[a.jsx(ee,{className:"bf-intro-process-notices-heading",headingLevel:2,children:h.heading}),a.jsx(jf,{className:"bf-intro-process-notices-list",data:h.list,iconAlt:h.iconAlt})]})]}),a.jsx("div",{className:"bf-line-sperator-wrapper",children:a.jsx("div",{className:"bf-line-sperator"})}),a.jsx("div",{className:"bf-cta-wrapper",children:a.jsx(Te,{secondary:!0,onClick:()=>S(),children:m})})]})]})};hf.propTypes={data:y.object,ui:y.object,setStep:y.func,step:y.number};const mf=({className:e,data:t,initialEligibilityLength:n,ui:r})=>{const{benefitSummary:l,benefitSummaryPrefix:o,benefitSummaryConjunction:i}=r,s=["bf-key-eligibility-criteria-group"];return a.jsx("div",{className:ft({className:e,defaultClasses:s}),children:t&&a.jsxs(a.Fragment,{children:[" ",a.jsxs(ee,{className:"bf-key-eligibility-criteria-heading",headingLevel:5,children:[`${l}`,a.jsx("span",{className:"bf-key-eligibility-criteria-sub-heading",children:` - ${o} ${t.length} ${i} - ${n}`})]}),a.jsx("ul",{className:"bf-key-eligibility-criteria-list",children:t.map((u,c)=>{const{criteriaKey:h,label:m}=u;return a.jsxs("li",{className:"bf-usa-list usa-list usa-list--unstyled bf-usa-list--unstyled bf-key-eligibility-criteria-list-item","data-testid":`${h}`,children:[a.jsx("div",{"aria-hidden":"true",children:a.jsx(dt,{type:"green-check","aria-hidden":"true"})}),m]},`${h}-${c}`)})})]})})};mf.propTypes={className:y.string,data:y.array,initialEligibilityLength:y.number};const Zi=({children:e})=>a.jsx("legend",{className:"bf-legend usa-legend",children:e});Zi.propTypes={children:y.node};const Xs=({className:e,label:t,htmlFor:n})=>{const r=["bf-usa-label usa-label"];return a.jsx("label",{className:ft({className:e,defaultClasses:r}),htmlFor:n,children:t})};Xs.propTypes={className:y.string,label:y.string,htmlFor:y.string};const vf=({step:e,setStep:t,data:n,handleData:r,setStepData:l,setVerifyStep:o,setViewResults:i,ui:s,modalOpen:u,setModalOpen:c})=>{const[h,m]=M.useState(!1),[f,g]=M.useState(()=>n&&n[e-1]),[S,x]=M.useState([]),[b,p]=M.useState([]),[d,v]=M.useState(!1),[w,E]=M.useState(0),{lifeEventSection:N}=se.dataLayerStructure;Jh(d);const j=Gr();M.useEffect(()=>{var A;(A=j.current)==null||A.focus()},[j]);const{stepIndicator:L,buttonGroup:B,reviewSelectionModal:R,requiredLabel:H,sectionHeadings:ae}=s,Oe=()=>{n[e-1]={...f},r([...n])},D=M.useRef(null),F=()=>(D.current.classList.remove("display-none"),D.current.focus(),E(w+1),f.completed=!1,window.scrollTo(0,0),!1),W=()=>(D.current.classList.add("display-none"),f.completed=!0,Oe(),x([]),!0),C=()=>Ie.handleCheckForRequiredValues(S,p).then(A=>A===!0?W():F()),k=A=>{C(),Ie.handleCheckForRequiredValues(S,p).then(ne=>{if(ne===!0){const{errors:oe}=se.dataLayerStructure;se.dataLayerPush(window,{event:oe.event,bfData:{errors:"",errorCount:{number:0,string:"0"},formSuccess:!0}}),t(e+A),l(A),j&&j.current.focus()}})},O=A=>{t(e+A),j.current.focus()},P=(A,ne)=>{A.target.value.length>0&&v(!0),window.history.replaceState({},"",window.location.pathname),Br.Data(ne,f,g,A.target.value),b.length>0&&Ie.handleCheckForRequiredValues(S,p)},I=(A,ne)=>{A.target.value.length>0&&v(!0),window.history.replaceState({},"",window.location.pathname);async function oe(){qh(A)===!0&&(Br.DataDate(ne,f,g,A.target.value,A.target.id),b.length>0&&Ie.handleCheckForRequiredValues(S,p))}oe().then(()=>{Ie.getNonRequiredFieldsets(ne,S,x,p,b,X.SelectedValueAll(n))})};return M.useEffect(()=>{n&&e===n.length?m(!0):m(!1)},[f,n,h,e]),M.useEffect(()=>{window.scrollTo(0,0),Ie.getRequiredFieldsets(document,x)},[]),M.useEffect(()=>{u===!1&&se.dataLayerPush(window,{event:N.event,bfData:{pageView:`${N.bfData.pageView}-${e}`,viewTitle:f.section.heading}})},[]),n.length>0&&u===!1&&Zr({pageView:`${N==null?void 0:N.bfData.pageView}-${e}`}),M.useEffect(()=>{Gd({hide:!0})},[]),n&&a.jsxs(a.Fragment,{children:[a.jsx(ee,{className:"bf-section-heading",headingLevel:1,children:e===n.length?`${ae.final}`:e-1===0?`${ae.start}`:`${ae.continue}`}),a.jsx("div",{className:"bf-section-wrapper",children:a.jsxs("div",{className:"bf-section-info",children:[a.jsx($f,{current:e-1,setCurrent:t,data:n,backLinkLabel:L.StepBackButton},`step-indicator-${ae}`),f&&a.jsxs("div",{id:"bf-section",children:[a.jsx(Gs,{alertFieldRef:D,heading:s.alertBanner.heading,description:s.alertBanner.description,type:"error",hasError:b.length>0,errorCount:b.length,errorList:b,submissionCount:w}),a.jsxs("div",{className:"bf-form-heading-group",children:[a.jsx(ee,{className:"bf-form-heading bf-usa-form-heading",headingLevel:2,children:f.section.heading}),a.jsx("div",{className:"bf-section-sub-heading",dangerouslySetInnerHTML:jt(f.section.description)})]}),f.section.fieldsets.map((A,ne)=>{const oe=({item:$,children:qe,index:pt,hidden:Xt})=>{var wn,Jr;return $.fieldset.inputs[0].inputCriteria.type==="Select"?a.jsxs(M.Fragment,{children:[a.jsx(Tl,{legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:H,hidden:Xt&&Xt,id:$.fieldset.criteriaKey,invalid:Ie.handleInvalid({hasError:b,criteriaKey:(wn=$.fieldset)==null?void 0:wn.criteriaKey}),ui:s.errorText,children:$.fieldset.inputs.map((bt,ht)=>{var la;const Qe=`${$.fieldset.criteriaKey}_${ht}`,Lt=bt.inputCriteria.values,mt=Lt.find(Lo=>Lo.selected!==void 0),{select:bo,errorText:fp}=s;return a.jsx("div",{children:a.jsx(Ff,{ui:{select:bo,errorText:fp},htmlFor:Qe,options:Lt,selected:mt==null?void 0:mt.value,onChange:Lo=>P(Lo,$.fieldset.criteriaKey),invalid:Ie.handleInvalid({hasError:b,criteriaKey:(la=$.fieldset)==null?void 0:la.criteriaKey,fieldSetId:Qe}),legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage},Qe)},Qe)})},`select-${$.fieldset.criteriaKey}-${pt}`),qe||null]},`select-${$.fieldset.criteriaKey}+${pt}`):$.fieldset.inputs[0].inputCriteria.type==="Radio"?a.jsxs(M.Fragment,{children:[$.fieldset.inputs.map((bt,ht)=>{var Lt,mt;const Qe=`${$.fieldset.criteriaKey}_${ht}`;return a.jsx(Tl,{id:$.fieldset.criteriaKey,legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:H,hidden:Xt&&Xt,ui:s.errorText,invalid:Ie.handleInvalid({hasError:b,criteriaKey:(Lt=$.fieldset)==null?void 0:Lt.criteriaKey}),children:a.jsx(Lf,{invalid:Ie.handleInvalid({hasError:b,criteriaKey:(mt=$.fieldset)==null?void 0:mt.criteriaKey}),fieldSetId:Qe,handleChanged:P,values:bt.inputCriteria.values,criteriaKey:$.fieldset.criteriaKey,errorMessage:$.fieldset.errorMessage,legend:$.fieldset.legend,ui:s.errorText},Qe)},`radio-${$.fieldset.criteriaKey}-${ht}`)}),qe||null]},`radio-${$.fieldset.criteriaKey}+${pt}`):$.fieldset.inputs[0].inputCriteria.type==="Date"?a.jsxs(M.Fragment,{children:[a.jsx(Tl,{legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:H,hidden:Xt&&Xt,id:$.fieldset.criteriaKey,invalid:Ie.handleInvalid({hasError:b,criteriaKey:(Jr=$.fieldset)==null?void 0:Jr.criteriaKey}),ui:s.errorText,children:$.fieldset.inputs.map((bt,ht)=>{var Lt,mt;const Qe=`${$.fieldset.criteriaKey}_${ht}`;return a.jsx("div",{children:a.jsx(df,{value:(Lt=bt.inputCriteria.values[0])==null?void 0:Lt.value,onChange:bo=>I(bo,$.fieldset.criteriaKey),ui:s,errorMessage:$.fieldset.errorMessage,parentLegend:$.fieldset.legend,id:Qe,invalid:Ie.handleInvalid({hasError:b,criteriaKey:(mt=$.fieldset)==null?void 0:mt.criteriaKey,fieldSetId:Qe,useFilter:!0})})},Qe)})},`date-${$.fieldset.criteriaKey}-${pt}`),qe||null]},`date-${$.fieldset.criteriaKey}+${pt}`):null},Yt=({item:$,i:qe})=>oe({item:$,index:qe}),Ke=$=>{const qe=X.SelectedValue($);return(qe==null?void 0:qe.value)!==$.fieldset.inputs[0].inputCriteria.childDependencyOption},Nt=({item:$,i:qe})=>oe({item:$,index:qe,children:$.fieldset.children.map((pt,Xt)=>pt.fieldsets.length&&pt.fieldsets.map((wn,Jr)=>{const bt=wn&&X.SelectedValue(wn),ht=Ke($);return ht===!0&&bt!==void 0&&delete bt.selected,oe({item:wn,index:Jr,hidden:ht})}))});return A.fieldset.children.length>0?Nt({item:A,i:ne}):Yt({item:A,i:ne})})]}),a.jsxs("div",{className:"bf-section-nav-btn-group",children:[a.jsx(Te,{outline:!0,onClick:()=>O(-1),children:B[0].value}),h===!1?a.jsx(Te,{secondary:!0,onClick:()=>k(1),children:B[1].value}):a.jsx(_f,{id:"nav-modal",dataLayerValue:{viewTitle:f.section.heading},modalHeading:R.heading,navItemOneLabel:R.buttonGroup[0].value,navItemOneFunction:o,navItemTwoLabel:R.buttonGroup[1].value,navItemTwoFunction:i,triggerLabel:B[1].value,handleCheckRequriedFields:C,modalOpen:u,setModalOpen:c,completed:f.completed,alertElement:D})]})]})})]})};vf.propTypes={props:y.any,step:y.number,setStep:y.func,data:y.array,setStepData:y.func,setVerifyStep:y.func,setViewResults:y.func,ui:y.object};var Gi={exports:{}},vn={},Yi={exports:{}},lt={},Xi={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;/*! +*/var vu=Object.getOwnPropertySymbols,y0=Object.prototype.hasOwnProperty,w0=Object.prototype.propertyIsEnumerable;function x0(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function S0(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(o){l[o]=o}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var nf=S0()?Object.assign:function(e,t){for(var n,r=x0(e),l,o=1;o-1?e.split(yu).map(function(i){return lf({type:i},o)}):(o.type=e,[o])};var wu=function(e,t){var n=e[t];return delete e[t],n},T0=function(t,n){const r=Object.keys(t).reduce(function(l,o){var i=L0(o,t[o]);return l.concat(i)},[]);return lf({add:function(o){r.forEach(function(i){o.addEventListener(i.type,i.delegate,i.options)})},remove:function(o){r.forEach(function(i){o.removeEventListener(i.type,i.delegate,i.options)})}},n)};const O0=nf,M0=T0,xu=(...e)=>function(n=document.body){e.forEach(r=>{typeof this[r]=="function"&&this[r].call(this,n)})};var P0=(e,t)=>M0(e,O0({on:xu("init","add"),off:xu("teardown","remove")},t));const Su="aria-expanded",R0="aria-controls",Cu="hidden";var D0=(e,t)=>{let n=t;typeof n!="boolean"&&(n=e.getAttribute(Su)==="false"),e.setAttribute(Su,n);const r=e.getAttribute(R0),l=document.getElementById(r);if(!l)throw new Error(`No toggle target found with id: "${r}"`);return n?l.removeAttribute(Cu):l.setAttribute(Cu,""),n};function $0(e,t=window,n=document.documentElement){const r=e.getBoundingClientRect();return r.top>=0&&r.left>=0&&r.bottom<=(t.innerHeight||n.clientHeight)&&r.right<=(t.innerWidth||n.clientWidth)}var F0=$0,I0={CLICK:"click"},A0={prefix:"usa"};const of=g0,z0=P0,ku=D0,B0=F0,{CLICK:V0}=I0,{prefix:ro}=A0,lo=`.${ro}-accordion, .${ro}-accordion--bordered`,H0=`.${ro}-banner__button`,xr=`.${ro}-accordion__button[aria-controls]:not(${H0})`,Eu="aria-expanded",U0="data-allow-multiple",sf=e=>of(xr,e).filter(n=>n.closest(lo)===e),Sr=(e,t)=>{const n=e.closest(lo);let r=t;if(!n)throw new Error(`${xr} is missing outer ${lo}`);r=ku(e,t);const l=n.hasAttribute(U0);r&&!l&&sf(n).forEach(o=>{o!==e&&ku(o,!1)})},W0=e=>Sr(e,!0),K0=e=>Sr(e,!1),q0=z0({[V0]:{[xr](){Sr(this),this.getAttribute(Eu)==="true"&&(B0(this)||this.scrollIntoView())}}},{init(e){of(xr,e).forEach(t=>{const n=t.getAttribute(Eu)==="true";Sr(t,n)})},ACCORDION:lo,BUTTON:xr,show:W0,hide:K0,toggle:Sr,getButtons:sf});var Q0=q0;const _u=ao(Q0),af=({id:e,heading:t,subHeading:n,children:r,isExpanded:l,hidden:o,...i})=>{M.useEffect(()=>(_u.on(),()=>{_u.off()}));const[s,u]=M.useState(!1),{benefitAccordion:c}=se.dataLayerStructure,f=g=>{u(g),g===!0&&se.dataLayerPush(window,{event:c.event,bfData:{benefitTitle:t}},!1)};M.useEffect(()=>{u(l)},[l]);const m=()=>s?a.jsx(dt,{type:"close","aria-hidden":"true"}):a.jsx(dt,{type:"open","aria-hidden":"true"}),p=g=>g.replace(/ +/g,"-").toLowerCase();return a.jsxs("div",{className:"bf-usa-accordion usa-accordion",...i,hidden:o,children:[a.jsx("h4",{className:"bf-usa-accordion__heading usa-accordion__heading",children:a.jsxs("button",{type:"button",className:"bf-usa-accordion__button usa-accordion__button","aria-expanded":s||!1,"aria-controls":e&&p(e),onClick:()=>f(!s),children:[a.jsx("span",{className:"bf-accordion-heading",children:t}),a.jsx("br",{}),a.jsx("span",{className:"bf-accordion-sub-heading",children:n}),m()]})}),a.jsx("div",{id:e&&p(e),className:"bf-usa-accordion__content usa-accordion__content usa-prose",hidden:s||!0,children:a.jsx("div",{children:r})})]})};af.propTypes={id:y.string,heading:y.string,subHeading:y.string,description:y.string,children:y.node};const uf=({data:e,entryKey:t,expandAll:n,isExpandAll:r,setExpandAll:l,notEligibleView:o,ui:i})=>{const{benefitAccordion:s,benefitAccordionGroup:u}=i,{eligibleStatusLabels:c,agencyPrefix:f,visitLabel:m,unmetLabel:p,sourceIsEnglish:g}=s,{closedState:S,openState:x}=u,{benefitLink:b,openAllBenefitAccordions:h}=se.dataLayerStructure,d=r?`${x} -`:`${S} +`,v=L=>{se.dataLayerPush(window,{event:b.event,bfData:{benefitTitle:L}})},w=L=>{l(!L),se.dataLayerPush(window,{event:h.event,bfData:{accordionsOpen:!L}},!1)},E=()=>n&&a.jsx(Te,{className:"bf-expand-all","aria-label":d,outline:!0,onClick:()=>w(r),children:d}),N=({items:L})=>a.jsxs("div",{className:"bf-unmet-criteria-group",children:[a.jsx("div",{className:"bf-unmet-criteria-title",children:p}),a.jsx("ul",{className:"bf-unmet-criteria-list",children:L.map((B,R)=>{const{label:H}=B;return a.jsx("li",{className:"bf-unmet-criteria-item",children:H},`not-eligible-list-${R}`)})})]}),j=({items:L})=>a.jsxs("div",{className:"bf-unmet-criteria-group",children:[a.jsx("div",{className:"bf-unmet-criteria-title",children:c[1]}),a.jsx("ul",{className:"bf-unmet-criteria-list",children:L.map((B,R)=>{const{label:H}=B;return a.jsx("li",{className:"bf-unmet-criteria-item",children:H},`more-info-${R}`)})})]});return a.jsxs("div",{className:"bf-usa-accordion-group",children:[a.jsx(E,{}),e&&e.map((L,B)=>{const{agency:R,eligibility:H,SourceLink:ae,summary:Oe,title:D,SourceIsEnglish:F}=L[t],W=H.filter(I=>I.isEligible===!0),C=H.filter(I=>I.isEligible===!1),k=H.filter(I=>I.isEligible===void 0),O=W.length===H.length?c[0]:C.length===0&&k.length>0?c[1]:c[2],P=o===!1&&O!==c[0]?!0:o===!0&&O===c[0];return a.jsxs(af,{id:`${D}`,heading:D,subHeading:O,isExpanded:r,"data-analytics":"bf-usa-accordion","data-analytics-content":D,hidden:P,"data-testid":"benefit",children:[a.jsx(ee,{className:"bf-usa-detail-title",headingLevel:4,children:`${f} ${R.title}`}),a.jsx("div",{className:"bf-usa-detail-summary",dangerouslySetInnerHTML:jt(Oe)}),a.jsx(mf,{className:"bf-usa-criteria-list",data:W,initialEligibilityLength:H.length,ui:s}),C.length>0&&a.jsx(N,{items:C}),k.length>0&&a.jsx(j,{items:k}),a.jsx("div",{className:"bf-usa-accordion-group-cta-wrapper",children:a.jsxs(ta,{className:"bf-usa-link",href:ae,target:"_blank",rel:"noopener noreferrer",onClick:()=>v(D),"data-testid":"bf-benefit-link",noCarrot:!0,children:[m," ",R.title," ",g&&F===!0?g:""]})})]},`${B}-${D}`)})]})};uf.propTypes={data:y.array,entryKey:y.string,expandAll:y.bool,isExpandAll:y.bool,setExpandAll:y.func,notEligibleView:y.bool,ui:y.object};const mn={officerNavy:"#162e51",marine:"#1a4480",popBlue:"#005ea2",sky:"#d9e8f6",darkSky:"#b6dbfd",offBlack:"#1b1b1b",white:"#fff",bannerBlue:"#112f4e",grey:"#757575",mediumGrey:"#979797",darkMediumGrey:"#3d4551",baseGrey:"#dcdee0",baseLightGrey:"#f0f0f0",lightTeal:"#d2ebf1",pureBlack:"#000",electricBlue:"#0050d8",teal:"#00bde3",mediumTeal:"#ccecf2",darkTeal:"#0081a1",alertRed:"#b50909",greenCheck:"#009831"};function Te({children:e,className:t,onClick:n,secondary:r,outline:l,disabled:o,unstyled:i,type:s,icon:u,...c}){const[f,m]=M.useState(null),p=r===!0?"secondary":l===!0?"outline":i===!0?"unstyled":null,[g,S]=M.useState(!1),[x,b]=M.useState();return M.useEffect(()=>{b(g&&r||g&&i?mn.marine:mn.popBlue)},[g]),M.useEffect(()=>{switch(p){case"secondary":m(["bf-usa-button","usa-button","bf-usa-button--secondary","usa-button--secondary"]);break;case"outline":m(["bf-usa-button","usa-button","bf-usa-button--outline","usa-button--outline"]);break;case"unstyled":m(["bf-usa-button","usa-button","bf-usa-button--unstyled","usa-button--unstyled"]);break;default:m(["bf-usa-button","usa-button"])}},[p,r,i]),a.jsxs("button",{onClick:o?null:n,type:s||"button",disabled:o,"aria-disabled":o,className:ft({className:t,defaultClasses:f}),onMouseOver:()=>S(!0),onMouseLeave:()=>S(!1),"data-testid":c["data-testid"],id:c.id,children:[u&&a.jsx(dt,{type:u,color:x,"aria-hidden":"true"}),e]})}Te.propTypes={children:y.node,className:y.string,onClick:y.func,secondary:y.bool,disabled:y.bool,unstyled:y.bool,type:y.oneOf(["button","reset","download"]),icon:y.string};y.object,y.object;const cf=({className:e,title:t,body:n,cta:r,href:l,noCarrot:o,carrotType:i,icon:s,...u})=>{const c=s!==void 0?["bf-card-icon"]:"",f=["add-list-reset"],m=o===!0?null:a.jsx(dt,{type:i,color:"#162E51","aria-hidden":"true"}),p=s===void 0?null:a.jsx(dt,{type:s,className:"bf-relative-icon","aria-hidden":"true"});return a.jsx("li",{className:ft({className:e,defaultClasses:c,utilityClasses:f}),...u,children:a.jsxs("a",{className:"bf-usa-card__container usa-card__container",href:l,children:[p,a.jsx("div",{className:"bf-usa-card__header usa-card__header",children:a.jsx(ee,{className:"bf-usa-card__heading usa-card__heading",headingLevel:3,children:t})}),a.jsx("div",{className:"bf-usa-card__body usa-card__body",dangerouslySetInnerHTML:jt(n)}),a.jsx("div",{className:"bf-usa-card__cta usa-card__cta",children:r}),m]})},`${t}`)};cf.propTypes={className:y.string,title:y.string,body:y.string,href:y.string,noCarrot:y.bool,carrotType:y.string,icon:y.string};const Ys=({heading:e,description:t})=>a.jsx("div",{className:"bf-chevron",children:a.jsxs("div",{className:"bf-grid-container grid-container",children:[a.jsx(ee,{className:"bf-chevron-heading",headingLevel:1,children:e}),a.jsx("div",{className:"bf-chevron-description",dangerouslySetInnerHTML:jt(t)})]})});Ys.propTypes={heading:y.string,description:y.string};const df=({onChange:e,value:t,ui:n,parentLegend:r,id:l,invalid:o,errorMessage:i})=>{const{date:s,select:u,errorText:c}=n,{labelDay:f,labelMonth:m,labelYear:p,monthOptions:g}=s,{dateDefaultValue:S}=u,{suffix:x,prefix:b}=c,h=(v,w)=>v&&v.map(E=>E.id===w).includes(!0),d={month:i?`${i} : ${m.toLowerCase()}`:`${b} ${r==null?void 0:r.toLowerCase()} ${m.toLowerCase()} ${x}`,day:i?`${i} : ${f.toLowerCase()}`:`${b} ${r==null?void 0:r.toLowerCase()} ${f.toLowerCase()} ${x}`,year:i?`${i} : ${p.toLowerCase()}`:`${b} ${r==null?void 0:r.toLowerCase()} ${p.toLowerCase()} ${x}`};return a.jsxs(a.Fragment,{children:[a.jsxs("ul",{className:"add-list-reset",children:[h(o,`${l}_month`)&&a.jsx("li",{id:`month-error-description-${l}`,"data-testid":`month-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:d.month}),h(o,`${l}_day`)&&a.jsx("li",{id:`day-error-description-${l}`,"data-testid":`day-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:d.day}),h(o,`${l}_year`)&&a.jsx("li",{id:`year-error-description-${l}`,"data-testid":`year-error-description-${l}`,className:"bf-error-detail","aria-live":"assertive",children:d.year})]}),a.jsxs("div",{id:`bf-usa-memorable-date-${l}`,className:"bf-usa-memorable-date usa-memorable-date",children:[a.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--month usa-form-group--month bf-usa-form-group--select usa-form-group--select",children:[a.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_month`,children:m}),a.jsx("div",{id:`${l}-month-description`,className:"usa-sr-only",children:"Select a month from the list"}),a.jsxs("select",{className:`bf-usa-select usa-select ${h(o,`${l}_month`)?"usa-input--error":""}`,id:`${l}_month`,name:`${l}_month`,"aria-describedby":`${l}-month-description`,value:t&&t.month||"",onChange:e,"aria-invalid":h(o,`${l}_month`),"data-errormessage":d.month,"aria-errormessage":`month-error-description-${l}`,"data-datetype":"month",children:[a.jsx("option",{value:"",children:S},"default"),g.map((v,w)=>a.jsx("option",{value:w,children:v.label},`${v.label}-${w}`))]})]}),a.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--day usa-form-group--day",children:[a.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_day`,children:f}),a.jsx("div",{id:`${l}-day-description`,className:"usa-sr-only",children:"Enter two numerals for day"}),a.jsx("input",{className:`bf-usa-input usa-input ${h(o,`${l}_day`)?"usa-input--error":""}`,"aria-describedby":`${l}-day-description`,id:`${l}_day`,name:`${l}_day`,inputMode:"numeric",value:t&&t.day||"",onChange:e,"aria-invalid":h(o,`${l}_day`),"data-errormessage":d.day,"aria-errormessage":`day-error-description-${l}`,"data-datetype":"day"})]}),a.jsxs("div",{className:"bf-usa-form-group usa-form-group bf-usa-form-group--year usa-form-group--year",children:[a.jsx("label",{className:"bf-usa-label usa-label",htmlFor:`${l}_year`,children:p}),a.jsx("div",{id:`${l}-year-description`,className:"usa-sr-only",children:"Enter four numerals for year"}),a.jsx("input",{className:`bf-usa-input usa-input ${h(o,`${l}_year`)?"usa-input--error":""}`,"aria-describedby":`${l}-year-description`,id:`${l}_year`,name:`${l}_year`,inputMode:"numeric",value:t&&t.year||"",onChange:e,"aria-invalid":h(o,`${l}_year`),"data-errormessage":d.year,"aria-errormessage":`year-error-description-${l}`,"data-datetype":"year"})]})]})]})};df.propTypes={onChange:y.func,value:y.object,ui:y.object,id:y.string,invalid:y.oneOfType([y.bool,y.array])};const Z0=({ui:e,data:t})=>{const[n,r]=M.useState(()=>to(window.location.href,t)),l=`${encodeURIComponent(n)}`,o=i=>{i.preventDefault(),r(to(window.location.href,t)),window.location=`mailto:?subject=${e==null?void 0:e.emailSubject}&body=${l}`};return a.jsx("a",{href:"",className:"bf-email-trigger bf-usa-link usa-link",onClick:i=>o(i),children:(e==null?void 0:e.emailTrigger)||"Email"})},Tl=({children:e,legend:t,required:n,alertRef:r,requiredLabel:l,hidden:o,errorMessage:i,hint:s,className:u,id:c,invalid:f,ui:m})=>{const p=o!==void 0&&o?["display-none"]:"",g=[`bf-usa-fieldset usa-fieldset ${n===!0?"required-field":""} ${f===!0?"usa-input--error":""}`],S=p,{prefix:x,suffix:b}=m,d=n===!1?a.jsx(Zi,{children:t}):a.jsx(a.Fragment,{children:a.jsxs(Zi,{children:[t,a.jsx(pf,{requiredLabel:l})]})}),v=i?`${i}`:`${x} ${t&&t.toLowerCase().replace("?","")} ${b}`;return a.jsx("div",{className:"bf-fieldset-wrapper",children:a.jsxs("fieldset",{className:ft({className:u,defaultClasses:g,utilityClasses:S}),ref:r,required:n===!0,id:c,"data-errormessage":v,hidden:o,"aria-hidden":o,children:[t&&d,f===!0&&a.jsx("div",{id:`error-description-${c}`,"data-testid":`error-description-${c}`,className:"bf-error-detail","aria-live":"assertive",children:v}),s&&a.jsx("div",{className:"bf-hint",children:s}),e]})})};Tl.propTypes={children:y.node,legend:y.string,alertRef:y.any,requiredLabel:y.object,hidden:y.bool,hint:y.string,className:y.string,invalid:y.bool,ui:y.object};function ff({children:e}){return a.jsx("form",{className:"bf-usa-form",children:a.jsx("div",{className:"bf-grid-contianer grid-container",children:e})})}ff.propTypes={children:y.node};const ee=({children:e,className:t,headingLevel:n,...r})=>{const l=[""],o=`h${n}`;return a.jsx(o,{className:ft({className:t,defaultClasses:l}),id:n===1?"skip-to-h1":null,...r,"aria-level":n,role:"heading",children:e})};ee.propTypes={children:y.oneOfType([y.string,y.array]),className:y.string,headingLevel:y.number};const pf=({requiredLabel:e})=>a.jsx("span",{title:"required",className:"bf-usa-hint usa-hint usa-hint--required bf-usa-hint--required bf-required required",children:`(${(e==null?void 0:e.value)||"Required"})`});pf.propTypes={requiredLabel:y.object};const G0=()=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 44.31 44.31",children:[a.jsxs("g",{id:"Layer_1","data-name":"Layer 1",children:[a.jsxs("g",{children:[a.jsx("path",{className:"cls-1",fill:"#e8f6fb",strokeWidth:"0px",d:"M22.16,40.85c-10.33,0-18.7-8.37-18.7-18.7S11.83,3.46,22.16,3.46c7.55,0,14.06,4.48,17.01,10.93.08.18.16.37.24.55.93,2.22,1.44,4.66,1.44,7.22,0,10.33-8.37,18.7-18.7,18.7Z"}),a.jsx("path",{className:"cls-4",fill:"#e7f6fb",strokeWidth:"0px",d:"M22.16,39.34c-9.49,0-17.19-7.69-17.19-17.19S12.66,4.97,22.16,4.97c7,0,13.03,4.19,15.71,10.2.95,2.14,1.48,4.5,1.48,6.99,0,9.49-7.69,17.19-17.19,17.19Z"})]}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M40.55,12.43l-1.46.59c-2.11-3.91-5.56-6.99-9.75-8.6v1.63c3.55,1.51,6.49,4.18,8.34,7.54l-1.55.63c-.17.07-.19.29-.05.4l3.66,2.66c.14.1.33.02.36-.15l.77-4.46c.03-.18-.15-.32-.31-.25Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M31.63,40.86l-.59-1.46c3.91-2.11,6.99-5.56,8.6-9.75h-1.63c-1.51,3.55-4.18,6.49-7.54,8.34l-.63-1.55c-.07-.17-.29-.19-.4-.05l-2.66,3.66c-.1.14-.02.33.15.36l4.46.77c.18.03.32-.15.25-.31Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M3.48,31.73l1.46-.59c2.11,3.91,5.56,6.99,9.75,8.6v-1.63c-3.55-1.51-6.49-4.18-8.34-7.54l1.55-.63c.17-.07.19-.29.05-.4l-3.66-2.66c-.14-.1-.33-.02-.36.15l-.77,4.46c-.03.18.15.32.31.25Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M12.4,3.31l.59,1.46c-3.91,2.11-6.99,5.56-8.6,9.75h1.63c1.51-3.55,4.18-6.49,7.54-8.34l.63,1.55c.07.17.29.19.4.05l2.66-3.66c.1-.14.02-.33-.15-.36l-4.46-.77c-.18-.03-.32.15-.25.31Z"}),a.jsxs("g",{children:[a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M24.12,23.21l-.04-4.46c.16,0,.32-.02.47-.03,1.7-.13,3.11-1.33,3.52-2.97l.37-1.48c.13-.53-.19-1.06-.71-1.19-.52-.13-1.06.19-1.19.71l-.37,1.48c-.21.83-.92,1.43-1.78,1.49-.8.06-1.7.1-2.67.1-.25,0-.51,0-.77.02-2.01.12-3.72,1.49-4.24,3.42l-.64,2.32c-.14.52.17,1.06.69,1.2.09.02.17.04.26.04.43,0,.83-.29.95-.72l.64-2.32c.13-.49.41-.91.76-1.25l-.03,3.64-.98,7.25c-.08.6.34,1.15.93,1.22.05,0,.1,0,.15,0,.54,0,1.01-.4,1.08-.94l.95-7.05h.5l.95,7.05c.07.55.54.94,1.08.94.05,0,.1,0,.15,0,.6-.08,1.02-.63.93-1.22l-.97-7.25Z"}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M21.74,16.72c1.2,0,2.18-.98,2.18-2.18s-.98-2.18-2.18-2.18-2.18.98-2.18,2.18c0,1.2.98,2.18,2.18,2.18Z"})]})]}),a.jsxs("g",{id:"Layer_1_copy_3","data-name":"Layer 1 copy 3",children:[a.jsxs("g",{children:[a.jsx("path",{className:"cls-5",fill:"#fff",strokeWidth:"0px",d:"M22.16,40.85c-10.33,0-18.7-8.37-18.7-18.7S11.83,3.46,22.16,3.46c7.55,0,14.06,4.48,17.01,10.93.08.18.16.37.24.55.93,2.22,1.44,4.66,1.44,7.22,0,10.33-8.37,18.7-18.7,18.7Z"}),a.jsx("path",{className:"cls-4",fill:"#e7f6fb",strokeWidth:"0px",d:"M22.16,36.47c-7.91,0-14.32-6.41-14.32-14.32s6.41-14.32,14.32-14.32c5.83,0,10.85,3.49,13.08,8.49.79,1.78,1.23,3.75,1.23,5.82,0,7.91-6.41,14.32-14.32,14.32Z"})]}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"3.63",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M40.55,12.43l-1.46.59c-2.11-3.91-5.56-6.99-9.75-8.6v1.63c3.55,1.51,6.49,4.18,8.34,7.54l-1.55.63c-.17.07-.19.29-.05.4l3.66,2.66c.14.1.33.02.36-.15l.77-4.46c.03-.18-.15-.32-.31-.25Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"40.43",cy:"22.08",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M31.63,40.86l-.59-1.46c3.91-2.11,6.99-5.56,8.6-9.75h-1.63c-1.51,3.55-4.18,6.49-7.54,8.34l-.63-1.55c-.07-.17-.29-.19-.4-.05l-2.66,3.66c-.1.14-.02.33.15.36l4.46.77c.18.03.32-.15.25-.31Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"22.01",cy:"40.53",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M3.48,31.73l1.46-.59c2.11,3.91,5.56,6.99,9.75,8.6v-1.63c-3.55-1.51-6.49-4.18-8.34-7.54l1.55-.63c.17-.07.19-.29.05-.4l-3.66-2.66c-.14-.1-.33-.02-.36.15l-.77,4.46c-.03.18.15.32.31.25Z"}),a.jsxs("g",{children:[a.jsx("circle",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"3.55"}),a.jsx("circle",{className:"cls-3",fill:"#00c0e7",strokeWidth:"0px",cx:"3.6",cy:"22.08",r:"2.49"})]}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M12.4,3.31l.59,1.46c-3.91,2.11-6.99,5.56-8.6,9.75h1.63c1.51-3.55,4.18-6.49,7.54-8.34l.63,1.55c.07.17.29.19.4.05l2.66-3.66c.1-.14.02-.33-.15-.36l-4.46-.77c-.18-.03-.32.15-.25.31Z"})]}),a.jsx("g",{id:"dude",children:a.jsxs("g",{children:[a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M24.12,23.21l-.04-4.46c.16,0,.32-.02.47-.03,1.7-.13,3.11-1.33,3.52-2.97l.37-1.48c.13-.53-.19-1.06-.71-1.19-.52-.13-1.06.19-1.19.71l-.37,1.48c-.21.83-.92,1.43-1.78,1.49-.8.06-1.7.1-2.67.1-.25,0-.51,0-.77.02-2.01.12-3.72,1.49-4.24,3.42l-.64,2.32c-.14.52.17,1.06.69,1.2.09.02.17.04.26.04.43,0,.83-.29.95-.72l.64-2.32c.13-.49.41-.91.76-1.25l-.03,3.64-.98,7.25c-.08.6.34,1.15.93,1.22.05,0,.1,0,.15,0,.54,0,1.01-.4,1.08-.94l.95-7.05h.5l.95,7.05c.07.55.54.94,1.08.94.05,0,.1,0,.15,0,.6-.08,1.02-.63.93-1.22l-.97-7.25Z"}),a.jsx("path",{className:"cls-2",fill:"#1a1a1a",strokeWidth:"0px",d:"M21.74,16.72c1.2,0,2.18-.98,2.18-2.18s-.98-2.18-2.18-2.18-2.18.98-2.18,2.18c0,1.2.98,2.18,2.18,2.18Z"})]})})]}),Y0=({color:e})=>a.jsx("svg",{className:"bf-carrot",width:"12",height:"19",viewBox:"0 0 12 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.78013 1.73698C3.33373 1.29058 2.60998 1.29059 2.16359 1.73698L1.74049 2.16007C1.29444 2.60612 1.29405 3.32919 1.73961 3.77573L6.7498 8.79686C7.19502 9.24305 7.19502 9.96544 6.7498 10.4116L1.73961 15.4328C1.29405 15.8793 1.29444 16.6024 1.7405 17.0484L2.16359 17.4715C2.60998 17.9179 3.33373 17.9179 3.78013 17.4715L10.8391 10.4125C11.2855 9.96612 11.2855 9.24237 10.8391 8.79597L3.78013 1.73698Z",fill:e||mn.officerNavy})}),X0=({color:e})=>a.jsxs("svg",{className:"bf-carrot-solid",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",fill:e||mn.white,children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{d:"M7 10l5 5 5-5z"})]}),J0=({color:e})=>a.jsxs("svg",{className:"bf-close",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{d:"M19 13H5v-2h14v2z",fill:e||mn.black})]}),em=()=>a.jsxs("svg",{className:"bf-death",width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.1501 6.87479C20.1501 9.34031 18.1533 11.3388 15.6903 11.3388C13.2273 11.3388 11.2309 9.34031 11.2309 6.87479C11.2309 4.40927 13.2273 2.4104 15.6903 2.4104C18.1533 2.4104 20.1501 4.40927 20.1501 6.87479ZM8.94118 13.9881C8.97531 13.7489 9.18017 13.5712 9.42182 13.5712H21.8969C22.0106 13.5712 22.1206 13.6111 22.2079 13.6839L22.6929 14.0884L28.6272 19.0387C28.7145 19.1115 28.8246 19.1514 28.9382 19.1514H37.5777C37.8151 19.1514 38.0176 19.323 38.0566 19.5572L40.1247 31.979C40.1739 32.2749 39.9457 32.5442 39.6458 32.5442H37.3595C37.0914 32.5442 36.874 32.7616 36.874 33.0297V42.1033C36.874 42.3714 36.6567 42.5888 36.3885 42.5888H32.8998C32.6316 42.5888 32.4143 42.3714 32.4143 42.1033V29.6815C32.4143 29.4134 32.6316 29.196 32.8998 29.196H34.0713C34.3713 29.196 34.5995 28.9267 34.5502 28.6307L33.9758 25.1807L33.7429 23.6286C33.7418 23.6213 33.7355 23.6158 33.728 23.6158C33.7206 23.6158 33.7143 23.6105 33.7131 23.6032L33.5969 22.9053C33.5579 22.6712 33.3553 22.4996 33.118 22.4996H25.9029C25.7879 22.4996 25.6767 22.4588 25.589 22.3844L20.5939 18.1504C20.5062 18.076 20.3949 18.0352 20.2799 18.0352H13.6883C13.4389 18.0352 13.23 18.2242 13.2052 18.4725L12.6333 24.1978C12.6047 24.4836 12.8291 24.7316 13.1164 24.7316H14.0905C14.3586 24.7316 14.576 24.949 14.576 25.2171V42.1035C14.576 42.3716 14.3586 42.589 14.0905 42.589H10.6017C10.3336 42.589 10.1162 42.3716 10.1162 42.1035V29.6817C10.1162 29.4135 9.89885 29.1962 9.63071 29.1962H7.33117C7.03575 29.1962 6.80881 28.9346 6.85053 28.6421L8.94118 13.9881ZM21.2653 25.2167C21.2653 24.9486 21.0479 24.7312 20.7798 24.7312H17.291C17.0229 24.7312 16.8055 24.9486 16.8055 25.2167V42.1031C16.8055 42.3712 17.0229 42.5886 17.291 42.5886H20.7798C21.0479 42.5886 21.2653 42.3712 21.2653 42.1031V25.2167ZM25.7247 25.2167C25.7247 24.9486 25.9421 24.7312 26.2102 24.7312H29.699C29.9671 24.7312 30.1845 24.9486 30.1845 25.2167V42.1031C30.1845 42.3712 29.9671 42.5886 29.699 42.5886H26.2102C25.9421 42.5886 25.7247 42.3712 25.7247 42.1031V25.2167ZM35.7589 12.4548C35.7589 14.9203 33.7625 16.9192 31.2995 16.9192C28.8365 16.9192 26.8397 14.9203 26.8397 12.4548C26.8397 9.98928 28.8365 7.99041 31.2995 7.99041C33.7625 7.99041 35.7589 9.98928 35.7589 12.4548Z",fill:"#E9F6FB",stroke:"#1B1B1B",strokeWidth:"2.77965"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.1501 6.87479C20.1501 9.34031 18.1533 11.3388 15.6903 11.3388C13.2273 11.3388 11.2309 9.34031 11.2309 6.87479C11.2309 4.40927 13.2273 2.4104 15.6903 2.4104C18.1533 2.4104 20.1501 4.40927 20.1501 6.87479ZM8.94118 13.9881C8.97531 13.7489 9.18017 13.5712 9.42182 13.5712H21.8969C22.0106 13.5712 22.1206 13.6111 22.2079 13.6839L22.6929 14.0884L28.6272 19.0387C28.7145 19.1115 28.8246 19.1514 28.9382 19.1514H37.5777C37.8151 19.1514 38.0177 19.323 38.0566 19.5572L40.1247 31.979C40.1739 32.2749 39.9457 32.5442 39.6458 32.5442H37.3595C37.0914 32.5442 36.874 32.7616 36.874 33.0297V42.1033C36.874 42.3714 36.6567 42.5888 36.3885 42.5888H32.8998C32.6316 42.5888 32.4143 42.3714 32.4143 42.1033V29.6815C32.4143 29.4134 32.6316 29.196 32.8998 29.196H34.0713C34.3713 29.196 34.5995 28.9267 34.5502 28.6307L33.9758 25.1807L33.7429 23.6286C33.7418 23.6213 33.7355 23.6158 33.728 23.6158C33.7206 23.6158 33.7143 23.6105 33.7131 23.6032L33.5969 22.9053C33.5579 22.6712 33.3553 22.4996 33.118 22.4996H25.9029C25.7879 22.4996 25.6767 22.4588 25.589 22.3844L20.5939 18.1504C20.5062 18.076 20.3949 18.0352 20.2799 18.0352H13.6883C13.4389 18.0352 13.23 18.2242 13.2052 18.4725L12.6333 24.1978C12.6047 24.4836 12.8291 24.7316 13.1164 24.7316H14.0905C14.3586 24.7316 14.576 24.949 14.576 25.2171V42.1035C14.576 42.3716 14.3586 42.589 14.0905 42.589H10.6017C10.3336 42.589 10.1162 42.3716 10.1162 42.1035V29.6817C10.1162 29.4135 9.89885 29.1962 9.63071 29.1962H7.33117C7.03575 29.1962 6.80881 28.9346 6.85053 28.6421L8.94118 13.9881ZM21.2653 25.2167C21.2653 24.9486 21.0479 24.7312 20.7798 24.7312H17.291C17.0229 24.7312 16.8055 24.9486 16.8055 25.2167V42.1031C16.8055 42.3712 17.0229 42.5886 17.291 42.5886H20.7798C21.0479 42.5886 21.2653 42.3712 21.2653 42.1031V25.2167ZM25.7247 25.2167C25.7247 24.9486 25.9421 24.7312 26.2102 24.7312H29.699C29.9671 24.7312 30.1845 24.9486 30.1845 25.2167V42.1031C30.1845 42.3712 29.9671 42.5886 29.699 42.5886H26.2102C25.9421 42.5886 25.7247 42.3712 25.7247 42.1031V25.2167ZM35.7589 12.4548C35.7589 14.9203 33.7625 16.9192 31.2995 16.9192C28.8365 16.9192 26.8397 14.9203 26.8397 12.4548C26.8397 9.98928 28.8365 7.99041 31.2995 7.99041C33.7625 7.99041 35.7589 9.98928 35.7589 12.4548Z",fill:"white",stroke:"#00C1E7",strokeWidth:"0.571814"})]}),tm=({color:e})=>a.jsx("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 0.000244141H2C0.9 0.000244141 0.00999999 0.900244 0.00999999 2.00024L0 14.0002C0 15.1002 0.9 16.0002 2 16.0002H18C19.1 16.0002 20 15.1002 20 14.0002V2.00024C20 0.900244 19.1 0.000244141 18 0.000244141ZM18 14.0002H2V4.00024L10 9.00024L18 4.00024V14.0002ZM10 7.00024L2 2.00024H18L10 7.00024Z",fill:e||mn.popBlue})}),nm=()=>a.jsxs("svg",{width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M29.2857 9.5335C31.4805 9.5335 33.2598 7.75908 33.2598 5.57022C33.2598 3.38136 31.4805 1.60693 29.2857 1.60693C27.0908 1.60693 25.3115 3.38136 25.3115 5.57022C25.3115 7.75908 27.0908 9.5335 29.2857 9.5335Z",fill:"#E9F6FB",stroke:"#1A1A1A",strokeWidth:"1.34304",strokeMiterlimit:"10"}),a.jsx("path",{d:"M31.1129 34.0346C31.1129 33.6064 30.7661 33.2593 30.3382 33.2593C29.9103 33.2593 29.5635 33.6064 29.5635 34.0346V42.3786C29.5635 42.8068 29.9103 43.1539 30.3382 43.1539C30.7661 43.1539 31.1129 42.8068 31.1129 42.3786V34.0346Z",fill:"#1A1A1A"}),a.jsx("path",{d:"M29.8281 42.2474V42.5131C29.8281 42.8664 30.1153 43.1528 30.4696 43.1528H35.1777C35.532 43.1528 35.8193 42.8664 35.8193 42.5131V42.2474C35.8193 41.8941 35.532 41.6076 35.1777 41.6076H30.4696C30.1153 41.6076 29.8281 41.8941 29.8281 42.2474Z",fill:"#1A1A1A"}),a.jsx("path",{d:"M19.0432 44.1969C26.0392 44.1969 31.7105 38.5411 31.7105 31.5643C31.7105 24.5875 26.0392 18.9316 19.0432 18.9316C12.0473 18.9316 6.37598 24.5875 6.37598 31.5643C6.37598 38.5411 12.0473 44.1969 19.0432 44.1969Z",fill:"#010101"}),a.jsx("path",{d:"M36.3958 22.9921L29.7469 22.4553L31.8835 14.827C32.1988 13.6938 31.6497 12.5173 30.6385 12.0077C30.5026 11.9318 30.3558 11.8667 30.1927 11.8233L21.1027 9.29139C20.7276 9.18838 20.347 9.19922 19.9936 9.29681C19.6892 9.34561 19.3956 9.46488 19.1401 9.67091L12.8934 14.6535C12.1051 15.2824 11.9801 16.4372 12.6053 17.218C13.2359 18.0041 14.3939 18.1288 15.1768 17.5053L20.0045 13.6505L21.8693 14.1709L17.857 21.7559C17.2318 22.9379 17.6885 24.4126 18.8737 25.0361L22.5488 26.9662C23.3154 27.3674 24.207 27.3186 24.9083 26.912L25.3867 27.0421C25.7673 27.5463 26.349 27.8933 27.0286 27.9475L33.1991 28.4463L32.4326 37.8801C32.3184 39.2573 33.3568 40.4772 34.7431 40.5856C36.124 40.6994 37.3472 39.6639 37.456 38.2814L38.44 26.1801C38.44 26.1313 38.44 26.0771 38.44 26.0283L38.4889 25.4319C38.5922 24.1794 37.6463 23.0734 36.3904 22.9704L36.3958 22.9921Z",fill:"#E9F6FB",stroke:"#1A1A1A",strokeWidth:"1.34304",strokeMiterlimit:"10"}),a.jsx("path",{d:"M19.0442 41.7672C24.695 41.7672 29.2758 37.1989 29.2758 31.5636C29.2758 25.9282 24.695 21.3599 19.0442 21.3599C13.3934 21.3599 8.8125 25.9282 8.8125 31.5636C8.8125 37.1989 13.3934 41.7672 19.0442 41.7672Z",fill:"#E9F6FB"}),a.jsx("path",{d:"M19.0425 42.3136C24.9965 42.3136 29.8233 37.5001 29.8233 31.5623C29.8233 25.6245 24.9965 20.811 19.0425 20.811C13.0884 20.811 8.26172 25.6245 8.26172 31.5623C8.26172 37.5001 13.0884 42.3136 19.0425 42.3136Z",stroke:"#00C0E4",strokeWidth:"1.03146",strokeMiterlimit:"10"}),a.jsx("path",{d:"M19.0426 39.4948C23.4353 39.4948 26.9963 35.9436 26.9963 31.5628C26.9963 27.1821 23.4353 23.6309 19.0426 23.6309C14.6499 23.6309 11.0889 27.1821 11.0889 31.5628C11.0889 35.9436 14.6499 39.4948 19.0426 39.4948Z",fill:"white",stroke:"#1A1A1A",strokeWidth:"1.07443",strokeMiterlimit:"10"})]}),rm=({color:e})=>a.jsx("svg",{className:"bf-checkmark--green",width:"24",height:"20",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 4.15417C23.9925 4.52794 23.8515 4.88618 23.6033 5.16208L12.2975 16.6522L10.1157 18.8696C9.84423 19.1219 9.49174 19.2651 9.12397 19.2727C8.7562 19.2651 8.40371 19.1219 8.13223 18.8696L5.95041 16.6522L0.396694 11.0079C0.148478 10.732 0.00748054 10.3738 0 10C0.00748054 9.62626 0.148478 9.26802 0.396694 8.99212L2.57851 6.77473C2.84999 6.52246 3.20248 6.37917 3.57025 6.37156C3.93802 6.37917 4.29051 6.52246 4.56198 6.77473L9.12397 11.4111L19.2397 1.13046C19.5111 0.878193 19.8636 0.734897 20.2314 0.727295C20.5992 0.734897 20.9517 0.878193 21.2231 1.13046L23.405 3.34785C23.8017 3.54943 24 3.75101 24 4.15417Z",fill:e||mn.greenCheck})}),lm=()=>a.jsx("svg",{className:"bf-info",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.33594 3.66732H7.66927V5.00065H6.33594V3.66732ZM6.33594 6.33398H7.66927V10.334H6.33594V6.33398ZM7.0026 0.333984C3.3226 0.333984 0.335938 3.32065 0.335938 7.00065C0.335938 10.6807 3.3226 13.6673 7.0026 13.6673C10.6826 13.6673 13.6693 10.6807 13.6693 7.00065C13.6693 3.32065 10.6826 0.333984 7.0026 0.333984ZM7.0026 12.334C4.0626 12.334 1.66927 9.94065 1.66927 7.00065C1.66927 4.06065 4.0626 1.66732 7.0026 1.66732C9.9426 1.66732 12.3359 4.06065 12.3359 7.00065C12.3359 9.94065 9.9426 12.334 7.0026 12.334Z",fill:"#1B1B1B"})}),om=()=>a.jsxs("svg",{className:"bf-modal-close",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})]}),im=()=>a.jsxs("svg",{className:"bf-open",xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[a.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),a.jsx("path",{fill:"none",d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})]}),sm=()=>a.jsxs("svg",{width:"45",height:"45",viewBox:"0 0 45 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M40.2696 1.60693H6.37598V43.3926H40.2696V1.60693Z",fill:"#DFEFF4",stroke:"#191919",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M19.2757 9.08496H12.9048C12.4714 9.08496 12.1201 9.43563 12.1201 9.86819V14.6747C12.1201 15.1073 12.4714 15.4579 12.9048 15.4579H19.2757C19.7091 15.4579 20.0604 15.1073 20.0604 14.6747V9.86819C20.0604 9.43563 19.7091 9.08496 19.2757 9.08496Z",fill:"#05BBE2"}),a.jsx("path",{d:"M19.2757 19.314H12.9048C12.4714 19.314 12.1201 19.6646 12.1201 20.0972V24.9037C12.1201 25.3363 12.4714 25.6869 12.9048 25.6869H19.2757C19.7091 25.6869 20.0604 25.3363 20.0604 24.9037V20.0972C20.0604 19.6646 19.7091 19.314 19.2757 19.314Z",fill:"#05BBE2"}),a.jsx("path",{d:"M19.2757 29.5415H12.9048C12.4714 29.5415 12.1201 29.8922 12.1201 30.3247V35.1312C12.1201 35.5638 12.4714 35.9145 12.9048 35.9145H19.2757C19.7091 35.9145 20.0604 35.5638 20.0604 35.1312V30.3247C20.0604 29.8922 19.7091 29.5415 19.2757 29.5415Z",fill:"#05BBE2"}),a.jsx("path",{d:"M14.8369 11.9099L16.1581 13.2287L21.1878 9.08496",stroke:"#191919",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 11.0723H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 13.4648H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 21.3071H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 23.6904H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 31.5381H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("path",{d:"M23.5391 33.9214H34.5307",stroke:"#05BBE2",strokeWidth:"1.1566",strokeLinecap:"round",strokeLinejoin:"round"})]}),am=({color:e})=>a.jsx("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 14.1203C14.24 14.1203 13.56 14.4203 13.04 14.8903L5.91 10.7403C5.96 10.5103 6 10.2803 6 10.0403C6 9.80028 5.96 9.57028 5.91 9.34028L12.96 5.23028C13.5 5.73028 14.21 6.04028 15 6.04028C16.66 6.04028 18 4.70028 18 3.04028C18 1.38028 16.66 0.0402832 15 0.0402832C13.34 0.0402832 12 1.38028 12 3.04028C12 3.28028 12.04 3.51028 12.09 3.74028L5.04 7.85028C4.5 7.35028 3.79 7.04028 3 7.04028C1.34 7.04028 0 8.38028 0 10.0403C0 11.7003 1.34 13.0403 3 13.0403C3.79 13.0403 4.5 12.7303 5.04 12.2303L12.16 16.3903C12.11 16.6003 12.08 16.8203 12.08 17.0403C12.08 18.6503 13.39 19.9603 15 19.9603C16.61 19.9603 17.92 18.6503 17.92 17.0403C17.92 15.4303 16.61 14.1203 15 14.1203Z",fill:e||"#005EA2"})}),dt=({type:e,color:t,...n})=>{let r;switch(e){case"all_benefits":r=a.jsx(G0,{});break;case"carrot-solid":r=a.jsx(X0,{color:t});break;case"carrot":r=a.jsx(Y0,{color:t});break;case"close":r=a.jsx(J0,{});break;case"death":r=a.jsx(em,{});break;case"disability":r=a.jsx(nm,{});break;case"email":r=a.jsx(tm,{color:t});break;case"green-check":r=a.jsx(rm,{color:t});break;case"info":r=a.jsx(lm,{color:t});break;case"open":r=a.jsx(im,{});break;case"modal-close":r=a.jsx(om,{color:t});break;case"retirement":r=a.jsx(sm,{});break;case"share":r=a.jsx(am,{color:t});break;default:r=null}return a.jsx("i",{...n,"data-testid":`icon-${e}`,children:r})};dt.propTypes={type:y.string,color:y.string,props:y.any};const hf=({data:e,ui:t,setStep:n,step:r})=>{const{timeEstimate:l,title:o,summary:i}=e,{heading:s,timeIndicator:u,steps:c,notices:f,button:m}=t,{intro:p}=se.dataLayerStructure,g=Gr(),S=()=>{n(r+1),g.current.focus()};return Zr({pageView:p.bfData.pageView}),M.useEffect(()=>{se.dataLayerPush(window,{event:p.event,bfData:{pageView:p.bfData.pageView,viewTitle:o}})},[]),e&&a.jsxs("div",{className:"bf-intro",children:[a.jsx(Ys,{heading:o,description:i}),a.jsxs("div",{className:"bf-grid-container grid-container",children:[a.jsx(ee,{headingLevel:2,children:s}),a.jsx(If,{description:u,timeEstimate:l}),a.jsxs("div",{className:"bf-intro-process-group",children:[a.jsx("div",{className:"bf-intro-process-list",children:a.jsx(Nf,{steps:c.list,description:c.title})}),a.jsx("div",{className:"bf-line-sperator-wrapper--vertical",children:a.jsx("div",{className:"bf-line-sperator--vertical"})}),a.jsxs("div",{className:"bf-intro-process-notices",children:[a.jsx(ee,{className:"bf-intro-process-notices-heading",headingLevel:2,children:f.heading}),a.jsx(jf,{className:"bf-intro-process-notices-list",data:f.list,iconAlt:f.iconAlt})]})]}),a.jsx("div",{className:"bf-line-sperator-wrapper",children:a.jsx("div",{className:"bf-line-sperator"})}),a.jsx("div",{className:"bf-cta-wrapper",children:a.jsx(Te,{secondary:!0,onClick:()=>S(),children:m})})]})]})};hf.propTypes={data:y.object,ui:y.object,setStep:y.func,step:y.number};const mf=({className:e,data:t,initialEligibilityLength:n,ui:r})=>{const{benefitSummary:l,benefitSummaryPrefix:o,benefitSummaryConjunction:i}=r,s=["bf-key-eligibility-criteria-group"];return a.jsx("div",{className:ft({className:e,defaultClasses:s}),children:t&&a.jsxs(a.Fragment,{children:[" ",a.jsxs(ee,{className:"bf-key-eligibility-criteria-heading",headingLevel:5,children:[`${l}`,a.jsx("span",{className:"bf-key-eligibility-criteria-sub-heading",children:` - ${o} ${t.length} ${i} + ${n}`})]}),a.jsx("ul",{className:"bf-key-eligibility-criteria-list",children:t.map((u,c)=>{const{criteriaKey:f,label:m}=u;return a.jsxs("li",{className:"bf-usa-list usa-list usa-list--unstyled bf-usa-list--unstyled bf-key-eligibility-criteria-list-item","data-testid":`${f}`,children:[a.jsx("div",{"aria-hidden":"true",children:a.jsx(dt,{type:"green-check","aria-hidden":"true"})}),m]},`${f}-${c}`)})})]})})};mf.propTypes={className:y.string,data:y.array,initialEligibilityLength:y.number};const Zi=({children:e})=>a.jsx("legend",{className:"bf-legend usa-legend",children:e});Zi.propTypes={children:y.node};const Xs=({className:e,label:t,htmlFor:n})=>{const r=["bf-usa-label usa-label"];return a.jsx("label",{className:ft({className:e,defaultClasses:r}),htmlFor:n,children:t})};Xs.propTypes={className:y.string,label:y.string,htmlFor:y.string};const vf=({step:e,setStep:t,data:n,handleData:r,setStepData:l,setVerifyStep:o,setViewResults:i,ui:s,modalOpen:u,setModalOpen:c})=>{const[f,m]=M.useState(!1),[p,g]=M.useState(()=>n&&n[e-1]),[S,x]=M.useState([]),[b,h]=M.useState([]),[d,v]=M.useState(()=>q.SelectedValueAll(n).length>0),[w,E]=M.useState(0),{lifeEventSection:N}=se.dataLayerStructure;Jh(d);const j=Gr();M.useEffect(()=>{var A;(A=j.current)==null||A.focus()},[j]);const{stepIndicator:L,buttonGroup:B,reviewSelectionModal:R,requiredLabel:H,sectionHeadings:ae}=s,Oe=()=>{n[e-1]={...p},r([...n])},D=M.useRef(null),F=()=>(D.current.classList.remove("display-none"),D.current.focus(),E(w+1),p.completed=!1,window.scrollTo(0,0),!1),W=()=>(D.current.classList.add("display-none"),p.completed=!0,Oe(),x([]),!0),C=()=>Ie.handleCheckForRequiredValues(S,h).then(A=>A===!0?W():F()),k=A=>{C(),Ie.handleCheckForRequiredValues(S,h).then(ne=>{if(ne===!0){const{errors:oe}=se.dataLayerStructure;se.dataLayerPush(window,{event:oe.event,bfData:{errors:"",errorCount:{number:0,string:"0"},formSuccess:!0}}),t(e+A),l(A),j&&j.current.focus()}})},O=A=>{t(e+A),j.current.focus()},P=(A,ne)=>{window.history.replaceState({},"",window.location.pathname),Br.Data(ne,p,g,A.target.value),b.length>0&&Ie.handleCheckForRequiredValues(S,h),v(q.SelectedValueAll(n).length>0)},I=(A,ne)=>{window.history.replaceState({},"",window.location.pathname);async function oe(){qh(A)===!0&&(Br.DataDate(ne,p,g,A.target.value,A.target.id),b.length>0&&Ie.handleCheckForRequiredValues(S,h))}oe().then(()=>{Ie.getNonRequiredFieldsets(ne,S,x,h,b,q.SelectedValueAll(n)),v(q.SelectedValueAll(n).length>0)})};return M.useEffect(()=>{n&&e===n.length?m(!0):m(!1)},[p,n,f,e]),M.useEffect(()=>{window.scrollTo(0,0),Ie.getRequiredFieldsets(document,x)},[]),M.useEffect(()=>{u===!1&&se.dataLayerPush(window,{event:N.event,bfData:{pageView:`${N.bfData.pageView}-${e}`,viewTitle:p.section.heading}})},[]),n.length>0&&u===!1&&Zr({pageView:`${N==null?void 0:N.bfData.pageView}-${e}`}),M.useEffect(()=>{Gd({hide:!0})},[]),n&&a.jsxs(a.Fragment,{children:[a.jsx(ee,{className:"bf-section-heading",headingLevel:1,children:e===n.length?`${ae.final}`:e-1===0?`${ae.start}`:`${ae.continue}`}),a.jsx("div",{className:"bf-section-wrapper",children:a.jsxs("div",{className:"bf-section-info",children:[a.jsx($f,{current:e-1,setCurrent:t,data:n,backLinkLabel:L.StepBackButton},`step-indicator-${ae}`),p&&a.jsxs("div",{id:"bf-section",children:[a.jsx(Gs,{alertFieldRef:D,heading:s.alertBanner.heading,description:s.alertBanner.description,type:"error",hasError:b.length>0,errorCount:b.length,errorList:b,submissionCount:w}),a.jsxs("div",{className:"bf-form-heading-group",children:[a.jsx(ee,{className:"bf-form-heading bf-usa-form-heading",headingLevel:2,children:p.section.heading}),a.jsx("div",{className:"bf-section-sub-heading",dangerouslySetInnerHTML:jt(p.section.description)})]}),p.section.fieldsets.map((A,ne)=>{const oe=({item:$,children:qe,index:pt,hidden:Xt})=>{var wn,Jr;return $.fieldset.inputs[0].inputCriteria.type==="Select"?a.jsxs(M.Fragment,{children:[a.jsx(Tl,{legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:H,hidden:Xt&&Xt,id:$.fieldset.criteriaKey,invalid:Ie.handleInvalid({hasError:b,criteriaKey:(wn=$.fieldset)==null?void 0:wn.criteriaKey}),ui:s.errorText,children:$.fieldset.inputs.map((bt,ht)=>{var la;const Qe=`${$.fieldset.criteriaKey}_${ht}`,Lt=bt.inputCriteria.values,mt=Lt.find(Lo=>Lo.selected!==void 0),{select:bo,errorText:fp}=s;return a.jsx("div",{children:a.jsx(Ff,{ui:{select:bo,errorText:fp},htmlFor:Qe,options:Lt,selected:mt==null?void 0:mt.value,onChange:Lo=>P(Lo,$.fieldset.criteriaKey),invalid:Ie.handleInvalid({hasError:b,criteriaKey:(la=$.fieldset)==null?void 0:la.criteriaKey,fieldSetId:Qe}),legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage},Qe)},Qe)})},`select-${$.fieldset.criteriaKey}-${pt}`),qe||null]},`select-${$.fieldset.criteriaKey}+${pt}`):$.fieldset.inputs[0].inputCriteria.type==="Radio"?a.jsxs(M.Fragment,{children:[$.fieldset.inputs.map((bt,ht)=>{var Lt,mt;const Qe=`${$.fieldset.criteriaKey}_${ht}`;return a.jsx(Tl,{id:$.fieldset.criteriaKey,legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:H,hidden:Xt&&Xt,ui:s.errorText,invalid:Ie.handleInvalid({hasError:b,criteriaKey:(Lt=$.fieldset)==null?void 0:Lt.criteriaKey}),children:a.jsx(Lf,{invalid:Ie.handleInvalid({hasError:b,criteriaKey:(mt=$.fieldset)==null?void 0:mt.criteriaKey}),fieldSetId:Qe,handleChanged:P,values:bt.inputCriteria.values,criteriaKey:$.fieldset.criteriaKey,errorMessage:$.fieldset.errorMessage,legend:$.fieldset.legend,ui:s.errorText},Qe)},`radio-${$.fieldset.criteriaKey}-${ht}`)}),qe||null]},`radio-${$.fieldset.criteriaKey}+${pt}`):$.fieldset.inputs[0].inputCriteria.type==="Date"?a.jsxs(M.Fragment,{children:[a.jsx(Tl,{legend:$.fieldset.legend,errorMessage:$.fieldset.errorMessage,hint:$.fieldset.hint,required:$.fieldset.required,requiredLabel:H,hidden:Xt&&Xt,id:$.fieldset.criteriaKey,invalid:Ie.handleInvalid({hasError:b,criteriaKey:(Jr=$.fieldset)==null?void 0:Jr.criteriaKey}),ui:s.errorText,children:$.fieldset.inputs.map((bt,ht)=>{var Lt,mt;const Qe=`${$.fieldset.criteriaKey}_${ht}`;return a.jsx("div",{children:a.jsx(df,{value:(Lt=bt.inputCriteria.values[0])==null?void 0:Lt.value,onChange:bo=>I(bo,$.fieldset.criteriaKey),ui:s,errorMessage:$.fieldset.errorMessage,parentLegend:$.fieldset.legend,id:Qe,invalid:Ie.handleInvalid({hasError:b,criteriaKey:(mt=$.fieldset)==null?void 0:mt.criteriaKey,fieldSetId:Qe,useFilter:!0})})},Qe)})},`date-${$.fieldset.criteriaKey}-${pt}`),qe||null]},`date-${$.fieldset.criteriaKey}+${pt}`):null},Yt=({item:$,i:qe})=>oe({item:$,index:qe}),Ke=$=>{const qe=q.SelectedValue($);return(qe==null?void 0:qe.value)!==$.fieldset.inputs[0].inputCriteria.childDependencyOption},Nt=({item:$,i:qe})=>oe({item:$,index:qe,children:$.fieldset.children.map((pt,Xt)=>pt.fieldsets.length&&pt.fieldsets.map((wn,Jr)=>{const bt=wn&&q.SelectedValue(wn),ht=Ke($);return ht===!0&&bt!==void 0&&delete bt.selected,oe({item:wn,index:Jr,hidden:ht})}))});return A.fieldset.children.length>0?Nt({item:A,i:ne}):Yt({item:A,i:ne})})]}),a.jsxs("div",{className:"bf-section-nav-btn-group",children:[a.jsx(Te,{outline:!0,onClick:()=>O(-1),children:B[0].value}),f===!1?a.jsx(Te,{secondary:!0,onClick:()=>k(1),children:B[1].value}):a.jsx(_f,{id:"nav-modal",dataLayerValue:{viewTitle:p.section.heading},modalHeading:R.heading,navItemOneLabel:R.buttonGroup[0].value,navItemOneFunction:o,navItemTwoLabel:R.buttonGroup[1].value,navItemTwoFunction:i,triggerLabel:B[1].value,handleCheckRequriedFields:C,modalOpen:u,setModalOpen:c,completed:p.completed,alertElement:D})]})]})})]})};vf.propTypes={props:y.any,step:y.number,setStep:y.func,data:y.array,setStepData:y.func,setVerifyStep:y.func,setViewResults:y.func,ui:y.object};var Gi={exports:{}},vn={},Yi={exports:{}},lt={},Xi={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;/*! * Adapted from jQuery UI core * * http://jqueryui.com @@ -52,11 +52,11 @@ object-assign * http://jquery.org/license * * http://api.jqueryui.com/category/ui-core/ - */var n="none",r="contents",l=/input|select|textarea|button|object|iframe/;function o(m,f){return f.getPropertyValue("overflow")!=="visible"||m.scrollWidth<=0&&m.scrollHeight<=0}function i(m){var f=m.offsetWidth<=0&&m.offsetHeight<=0;if(f&&!m.innerHTML)return!0;try{var g=window.getComputedStyle(m),S=g.getPropertyValue("display");return f?S!==r&&o(m,g):S===n}catch{return console.warn("Failed to inspect element style"),!1}}function s(m){for(var f=m,g=m.getRootNode&&m.getRootNode();f&&f!==document.body;){if(g&&f===g&&(f=g.host.parentNode),i(f))return!1;f=f.parentNode}return!0}function u(m,f){var g=m.nodeName.toLowerCase(),S=l.test(g)&&!m.disabled||g==="a"&&m.href||f;return S&&s(m)}function c(m){var f=m.getAttribute("tabindex");f===null&&(f=void 0);var g=isNaN(f);return(g||f>=0)&&u(m,!g)}function h(m){var f=[].slice.call(m.querySelectorAll("*"),0).reduce(function(g,S){return g.concat(S.shadowRoot?h(S.shadowRoot):[S])},[]);return f.filter(c)}e.exports=t.default})(Xi,Xi.exports);var gf=Xi.exports;Object.defineProperty(lt,"__esModule",{value:!0});lt.resetState=fm;lt.log=pm;lt.handleBlur=Vr;lt.handleFocus=Hr;lt.markForFocusLater=hm;lt.returnFocus=mm;lt.popWithoutFocus=vm;lt.setupScopedFocus=gm;lt.teardownScopedFocus=ym;var um=gf,cm=dm(um);function dm(e){return e&&e.__esModule?e:{default:e}}var qn=[],Pn=null,Ji=!1;function fm(){qn=[]}function pm(){}function Vr(){Ji=!0}function Hr(){if(Ji){if(Ji=!1,!Pn)return;setTimeout(function(){if(!Pn.contains(document.activeElement)){var e=(0,cm.default)(Pn)[0]||Pn;e.focus()}},0)}}function hm(){qn.push(document.activeElement)}function mm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=null;try{qn.length!==0&&(t=qn.pop(),t.focus({preventScroll:e}));return}catch{console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}}function vm(){qn.length>0&&qn.pop()}function gm(e){Pn=e,window.addEventListener?(window.addEventListener("blur",Vr,!1),document.addEventListener("focus",Hr,!0)):(window.attachEvent("onBlur",Vr),document.attachEvent("onFocus",Hr))}function ym(){Pn=null,window.addEventListener?(window.removeEventListener("blur",Vr),document.removeEventListener("focus",Hr)):(window.detachEvent("onBlur",Vr),document.detachEvent("onFocus",Hr))}var es={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=gf,r=l(n);function l(s){return s&&s.__esModule?s:{default:s}}function o(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return s.activeElement.shadowRoot?o(s.activeElement.shadowRoot):s.activeElement}function i(s,u){var c=(0,r.default)(s);if(!c.length){u.preventDefault();return}var h=void 0,m=u.shiftKey,f=c[0],g=c[c.length-1],S=o();if(s===S){if(!m)return;h=g}if(g===S&&!m&&(h=f),f===S&&m&&(h=g),h){u.preventDefault(),h.focus();return}var x=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),b=x!=null&&x[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(b){var p=c.indexOf(S);if(p>-1&&(p+=m?-1:1),h=c[p],typeof h>"u"){u.preventDefault(),h=m?g:f,h.focus();return}u.preventDefault(),h.focus()}}e.exports=t.default})(es,es.exports);var wm=es.exports,ot={},xm=function(){},Sm=xm,nt={},yf={exports:{}};/*! + */var n="none",r="contents",l=/input|select|textarea|button|object|iframe/;function o(m,p){return p.getPropertyValue("overflow")!=="visible"||m.scrollWidth<=0&&m.scrollHeight<=0}function i(m){var p=m.offsetWidth<=0&&m.offsetHeight<=0;if(p&&!m.innerHTML)return!0;try{var g=window.getComputedStyle(m),S=g.getPropertyValue("display");return p?S!==r&&o(m,g):S===n}catch{return console.warn("Failed to inspect element style"),!1}}function s(m){for(var p=m,g=m.getRootNode&&m.getRootNode();p&&p!==document.body;){if(g&&p===g&&(p=g.host.parentNode),i(p))return!1;p=p.parentNode}return!0}function u(m,p){var g=m.nodeName.toLowerCase(),S=l.test(g)&&!m.disabled||g==="a"&&m.href||p;return S&&s(m)}function c(m){var p=m.getAttribute("tabindex");p===null&&(p=void 0);var g=isNaN(p);return(g||p>=0)&&u(m,!g)}function f(m){var p=[].slice.call(m.querySelectorAll("*"),0).reduce(function(g,S){return g.concat(S.shadowRoot?f(S.shadowRoot):[S])},[]);return p.filter(c)}e.exports=t.default})(Xi,Xi.exports);var gf=Xi.exports;Object.defineProperty(lt,"__esModule",{value:!0});lt.resetState=fm;lt.log=pm;lt.handleBlur=Vr;lt.handleFocus=Hr;lt.markForFocusLater=hm;lt.returnFocus=mm;lt.popWithoutFocus=vm;lt.setupScopedFocus=gm;lt.teardownScopedFocus=ym;var um=gf,cm=dm(um);function dm(e){return e&&e.__esModule?e:{default:e}}var qn=[],Pn=null,Ji=!1;function fm(){qn=[]}function pm(){}function Vr(){Ji=!0}function Hr(){if(Ji){if(Ji=!1,!Pn)return;setTimeout(function(){if(!Pn.contains(document.activeElement)){var e=(0,cm.default)(Pn)[0]||Pn;e.focus()}},0)}}function hm(){qn.push(document.activeElement)}function mm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=null;try{qn.length!==0&&(t=qn.pop(),t.focus({preventScroll:e}));return}catch{console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}}function vm(){qn.length>0&&qn.pop()}function gm(e){Pn=e,window.addEventListener?(window.addEventListener("blur",Vr,!1),document.addEventListener("focus",Hr,!0)):(window.attachEvent("onBlur",Vr),document.attachEvent("onFocus",Hr))}function ym(){Pn=null,window.addEventListener?(window.removeEventListener("blur",Vr),document.removeEventListener("focus",Hr)):(window.detachEvent("onBlur",Vr),document.detachEvent("onFocus",Hr))}var es={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=gf,r=l(n);function l(s){return s&&s.__esModule?s:{default:s}}function o(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return s.activeElement.shadowRoot?o(s.activeElement.shadowRoot):s.activeElement}function i(s,u){var c=(0,r.default)(s);if(!c.length){u.preventDefault();return}var f=void 0,m=u.shiftKey,p=c[0],g=c[c.length-1],S=o();if(s===S){if(!m)return;f=g}if(g===S&&!m&&(f=p),p===S&&m&&(f=g),f){u.preventDefault(),f.focus();return}var x=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),b=x!=null&&x[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(b){var h=c.indexOf(S);if(h>-1&&(h+=m?-1:1),f=c[h],typeof f>"u"){u.preventDefault(),f=m?g:p,f.focus();return}u.preventDefault(),f.focus()}}e.exports=t.default})(es,es.exports);var wm=es.exports,ot={},xm=function(){},Sm=xm,nt={},yf={exports:{}};/*! Copyright (c) 2015 Jed Watson. Based on code that is Copyright 2013-2015, Facebook, Inc. All rights reserved. -*/(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(yf);var Cm=yf.exports;Object.defineProperty(nt,"__esModule",{value:!0});nt.canUseDOM=nt.SafeNodeList=nt.SafeHTMLCollection=void 0;var km=Cm,Em=_m(km);function _m(e){return e&&e.__esModule?e:{default:e}}var No=Em.default,jm=No.canUseDOM?window.HTMLElement:{};nt.SafeHTMLCollection=No.canUseDOM?window.HTMLCollection:{};nt.SafeNodeList=No.canUseDOM?window.NodeList:{};nt.canUseDOM=No.canUseDOM;nt.default=jm;Object.defineProperty(ot,"__esModule",{value:!0});ot.resetState=Om;ot.log=Mm;ot.assertNodeList=wf;ot.setElement=Pm;ot.validateElement=Js;ot.hide=Rm;ot.show=Dm;ot.documentNotReadyOrSSRTesting=$m;var Nm=Sm,bm=Tm(Nm),Lm=nt;function Tm(e){return e&&e.__esModule?e:{default:e}}var Ae=null;function Om(){Ae&&(Ae.removeAttribute?Ae.removeAttribute("aria-hidden"):Ae.length!=null?Ae.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(Ae).forEach(function(e){return e.removeAttribute("aria-hidden")})),Ae=null}function Mm(){}function wf(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function Pm(e){var t=e;if(typeof t=="string"&&Lm.canUseDOM){var n=document.querySelectorAll(t);wf(n,t),t=n}return Ae=t||Ae,Ae}function Js(e){var t=e||Ae;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,bm.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function Rm(e){var t=!0,n=!1,r=void 0;try{for(var l=Js(e)[Symbol.iterator](),o;!(t=(o=l.next()).done);t=!0){var i=o.value;i.setAttribute("aria-hidden","true")}}catch(s){n=!0,r=s}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}}function Dm(e){var t=!0,n=!1,r=void 0;try{for(var l=Js(e)[Symbol.iterator](),o;!(t=(o=l.next()).done);t=!0){var i=o.value;i.removeAttribute("aria-hidden")}}catch(s){n=!0,r=s}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}}function $m(){Ae=null}var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.resetState=Fm;Yn.log=Im;var Cr={},kr={};function ju(e,t){e.classList.remove(t)}function Fm(){var e=document.getElementsByTagName("html")[0];for(var t in Cr)ju(e,Cr[t]);var n=document.body;for(var r in kr)ju(n,kr[r]);Cr={},kr={}}function Im(){}var Am=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},zm=function(t,n){return t[n]&&(t[n]-=1),n},Bm=function(t,n,r){r.forEach(function(l){Am(n,l),t.add(l)})},Vm=function(t,n,r){r.forEach(function(l){zm(n,l),n[l]===0&&t.remove(l)})};Yn.add=function(t,n){return Bm(t.classList,t.nodeName.toLowerCase()=="html"?Cr:kr,n.split(" "))};Yn.remove=function(t,n){return Vm(t.classList,t.nodeName.toLowerCase()=="html"?Cr:kr,n.split(" "))};var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.log=Um;Xn.resetState=Wm;function Hm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var xf=function e(){var t=this;Hm(this,e),this.register=function(n){t.openInstances.indexOf(n)===-1&&(t.openInstances.push(n),t.emit("register"))},this.deregister=function(n){var r=t.openInstances.indexOf(n);r!==-1&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(n){t.subscribers.push(n)},this.emit=function(n){t.subscribers.forEach(function(r){return r(n,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},oo=new xf;function Um(){console.log("portalOpenInstances ----------"),console.log(oo.openInstances.length),oo.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function Wm(){oo=new xf}Xn.default=oo;var ea={};Object.defineProperty(ea,"__esModule",{value:!0});ea.resetState=Zm;ea.log=Gm;var Km=Xn,qm=Qm(Km);function Qm(e){return e&&e.__esModule?e:{default:e}}var ye=void 0,Ye=void 0,un=[];function Zm(){for(var e=[ye,Ye],t=0;t0?(document.body.firstChild!==ye&&document.body.insertBefore(ye,document.body.firstChild),document.body.lastChild!==Ye&&document.body.appendChild(Ye)):(ye.parentElement&&ye.parentElement.removeChild(ye),Ye.parentElement&&Ye.parentElement.removeChild(Ye))}qm.default.subscribe(Ym);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(D){for(var F=1;F0&&(ae-=1,ae===0&&g.show(O)),C.props.shouldFocusAfterRender&&(C.props.shouldReturnFocusAfterClose?(c.returnFocus(C.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),C.props.onAfterClose&&C.props.onAfterClose(),v.default.deregister(C)},C.open=function(){C.beforeOpen(),C.state.afterOpen&&C.state.beforeClose?(clearTimeout(C.closeTimer),C.setState({beforeClose:!1})):(C.props.shouldFocusAfterRender&&(c.setupScopedFocus(C.node),c.markForFocusLater()),C.setState({isOpen:!0},function(){C.openAnimationFrame=requestAnimationFrame(function(){C.setState({afterOpen:!0}),C.props.isOpen&&C.props.onAfterOpen&&C.props.onAfterOpen({overlayEl:C.overlay,contentEl:C.content})})}))},C.close=function(){C.props.closeTimeoutMS>0?C.closeWithTimeout():C.closeWithoutTimeout()},C.focusContent=function(){return C.content&&!C.contentHasFocus()&&C.content.focus({preventScroll:!0})},C.closeWithTimeout=function(){var k=Date.now()+C.props.closeTimeoutMS;C.setState({beforeClose:!0,closesAt:k},function(){C.closeTimer=setTimeout(C.closeWithoutTimeout,C.state.closesAt-Date.now())})},C.closeWithoutTimeout=function(){C.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},C.afterClose)},C.handleKeyDown=function(k){R(k)&&(0,m.default)(C.content,k),C.props.shouldCloseOnEsc&&H(k)&&(k.stopPropagation(),C.requestClose(k))},C.handleOverlayOnClick=function(k){C.shouldClose===null&&(C.shouldClose=!0),C.shouldClose&&C.props.shouldCloseOnOverlayClick&&(C.ownerHandlesClose()?C.requestClose(k):C.focusContent()),C.shouldClose=null},C.handleContentOnMouseUp=function(){C.shouldClose=!1},C.handleOverlayOnMouseDown=function(k){!C.props.shouldCloseOnOverlayClick&&k.target==C.overlay&&k.preventDefault()},C.handleContentOnClick=function(){C.shouldClose=!1},C.handleContentOnMouseDown=function(){C.shouldClose=!1},C.requestClose=function(k){return C.ownerHandlesClose()&&C.props.onRequestClose(k)},C.ownerHandlesClose=function(){return C.props.onRequestClose},C.shouldBeClosed=function(){return!C.state.isOpen&&!C.state.beforeClose},C.contentHasFocus=function(){return document.activeElement===C.content||C.content.contains(document.activeElement)},C.buildClassName=function(k,O){var P=(typeof O>"u"?"undefined":r(O))==="object"?O:{base:B[k],afterOpen:B[k]+"--after-open",beforeClose:B[k]+"--before-close"},I=P.base;return C.state.afterOpen&&(I=I+" "+P.afterOpen),C.state.beforeClose&&(I=I+" "+P.beforeClose),typeof O=="string"&&O?I+" "+O:I},C.attributesFromObject=function(k,O){return Object.keys(O).reduce(function(P,I){return P[k+"-"+I]=O[I],P},{})},C.state={afterOpen:!1,beforeClose:!1},C.shouldClose=null,C.moveFromContentToOverlay=null,C}return l(F,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(C,k){this.props.isOpen&&!C.isOpen?this.open():!this.props.isOpen&&C.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!k.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var C=this.props,k=C.appElement,O=C.ariaHideApp,P=C.htmlOpenClassName,I=C.bodyOpenClassName,A=C.parentSelector,ne=A&&A().ownerDocument||document;I&&x.add(ne.body,I),P&&x.add(ne.getElementsByTagName("html")[0],P),O&&(ae+=1,g.hide(k)),v.default.register(this)}},{key:"render",value:function(){var C=this.props,k=C.id,O=C.className,P=C.overlayClassName,I=C.defaultStyles,A=C.children,ne=O?{}:I.content,oe=P?{}:I.overlay;if(this.shouldBeClosed())return null;var Yt={ref:this.setOverlayRef,className:this.buildClassName("overlay",P),style:n({},oe,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},Ke=n({id:k,ref:this.setContentRef,style:n({},ne,this.props.style.content),className:this.buildClassName("content",O),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),Nt=this.props.contentElement(Ke,A);return this.props.overlayElement(Yt,Nt)}}]),F}(o.Component);Oe.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},Oe.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(p.default),s.default.instanceOf(b.SafeHTMLCollection),s.default.instanceOf(b.SafeNodeList),s.default.arrayOf(s.default.instanceOf(p.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=Oe,e.exports=t.default})(Yi,Yi.exports);var Xm=Yi.exports;function Sf(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Cf(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function kf(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Sf.__suppressDeprecationWarning=!0;Cf.__suppressDeprecationWarning=!0;kf.__suppressDeprecationWarning=!0;function Jm(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,l=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?l="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(l="UNSAFE_componentWillUpdate"),n!==null||r!==null||l!==null){var o=e.displayName||e.name,i=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. +*/(function(e){(function(){var t=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker<"u",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(yf);var Cm=yf.exports;Object.defineProperty(nt,"__esModule",{value:!0});nt.canUseDOM=nt.SafeNodeList=nt.SafeHTMLCollection=void 0;var km=Cm,Em=_m(km);function _m(e){return e&&e.__esModule?e:{default:e}}var No=Em.default,jm=No.canUseDOM?window.HTMLElement:{};nt.SafeHTMLCollection=No.canUseDOM?window.HTMLCollection:{};nt.SafeNodeList=No.canUseDOM?window.NodeList:{};nt.canUseDOM=No.canUseDOM;nt.default=jm;Object.defineProperty(ot,"__esModule",{value:!0});ot.resetState=Om;ot.log=Mm;ot.assertNodeList=wf;ot.setElement=Pm;ot.validateElement=Js;ot.hide=Rm;ot.show=Dm;ot.documentNotReadyOrSSRTesting=$m;var Nm=Sm,bm=Tm(Nm),Lm=nt;function Tm(e){return e&&e.__esModule?e:{default:e}}var Ae=null;function Om(){Ae&&(Ae.removeAttribute?Ae.removeAttribute("aria-hidden"):Ae.length!=null?Ae.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(Ae).forEach(function(e){return e.removeAttribute("aria-hidden")})),Ae=null}function Mm(){}function wf(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function Pm(e){var t=e;if(typeof t=="string"&&Lm.canUseDOM){var n=document.querySelectorAll(t);wf(n,t),t=n}return Ae=t||Ae,Ae}function Js(e){var t=e||Ae;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,bm.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function Rm(e){var t=!0,n=!1,r=void 0;try{for(var l=Js(e)[Symbol.iterator](),o;!(t=(o=l.next()).done);t=!0){var i=o.value;i.setAttribute("aria-hidden","true")}}catch(s){n=!0,r=s}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}}function Dm(e){var t=!0,n=!1,r=void 0;try{for(var l=Js(e)[Symbol.iterator](),o;!(t=(o=l.next()).done);t=!0){var i=o.value;i.removeAttribute("aria-hidden")}}catch(s){n=!0,r=s}finally{try{!t&&l.return&&l.return()}finally{if(n)throw r}}}function $m(){Ae=null}var Yn={};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.resetState=Fm;Yn.log=Im;var Cr={},kr={};function ju(e,t){e.classList.remove(t)}function Fm(){var e=document.getElementsByTagName("html")[0];for(var t in Cr)ju(e,Cr[t]);var n=document.body;for(var r in kr)ju(n,kr[r]);Cr={},kr={}}function Im(){}var Am=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},zm=function(t,n){return t[n]&&(t[n]-=1),n},Bm=function(t,n,r){r.forEach(function(l){Am(n,l),t.add(l)})},Vm=function(t,n,r){r.forEach(function(l){zm(n,l),n[l]===0&&t.remove(l)})};Yn.add=function(t,n){return Bm(t.classList,t.nodeName.toLowerCase()=="html"?Cr:kr,n.split(" "))};Yn.remove=function(t,n){return Vm(t.classList,t.nodeName.toLowerCase()=="html"?Cr:kr,n.split(" "))};var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.log=Um;Xn.resetState=Wm;function Hm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var xf=function e(){var t=this;Hm(this,e),this.register=function(n){t.openInstances.indexOf(n)===-1&&(t.openInstances.push(n),t.emit("register"))},this.deregister=function(n){var r=t.openInstances.indexOf(n);r!==-1&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(n){t.subscribers.push(n)},this.emit=function(n){t.subscribers.forEach(function(r){return r(n,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},oo=new xf;function Um(){console.log("portalOpenInstances ----------"),console.log(oo.openInstances.length),oo.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function Wm(){oo=new xf}Xn.default=oo;var ea={};Object.defineProperty(ea,"__esModule",{value:!0});ea.resetState=Zm;ea.log=Gm;var Km=Xn,qm=Qm(Km);function Qm(e){return e&&e.__esModule?e:{default:e}}var ye=void 0,Ye=void 0,un=[];function Zm(){for(var e=[ye,Ye],t=0;t0?(document.body.firstChild!==ye&&document.body.insertBefore(ye,document.body.firstChild),document.body.lastChild!==Ye&&document.body.appendChild(Ye)):(ye.parentElement&&ye.parentElement.removeChild(ye),Ye.parentElement&&Ye.parentElement.removeChild(Ye))}qm.default.subscribe(Ym);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(D){for(var F=1;F0&&(ae-=1,ae===0&&g.show(O)),C.props.shouldFocusAfterRender&&(C.props.shouldReturnFocusAfterClose?(c.returnFocus(C.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),C.props.onAfterClose&&C.props.onAfterClose(),v.default.deregister(C)},C.open=function(){C.beforeOpen(),C.state.afterOpen&&C.state.beforeClose?(clearTimeout(C.closeTimer),C.setState({beforeClose:!1})):(C.props.shouldFocusAfterRender&&(c.setupScopedFocus(C.node),c.markForFocusLater()),C.setState({isOpen:!0},function(){C.openAnimationFrame=requestAnimationFrame(function(){C.setState({afterOpen:!0}),C.props.isOpen&&C.props.onAfterOpen&&C.props.onAfterOpen({overlayEl:C.overlay,contentEl:C.content})})}))},C.close=function(){C.props.closeTimeoutMS>0?C.closeWithTimeout():C.closeWithoutTimeout()},C.focusContent=function(){return C.content&&!C.contentHasFocus()&&C.content.focus({preventScroll:!0})},C.closeWithTimeout=function(){var k=Date.now()+C.props.closeTimeoutMS;C.setState({beforeClose:!0,closesAt:k},function(){C.closeTimer=setTimeout(C.closeWithoutTimeout,C.state.closesAt-Date.now())})},C.closeWithoutTimeout=function(){C.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},C.afterClose)},C.handleKeyDown=function(k){R(k)&&(0,m.default)(C.content,k),C.props.shouldCloseOnEsc&&H(k)&&(k.stopPropagation(),C.requestClose(k))},C.handleOverlayOnClick=function(k){C.shouldClose===null&&(C.shouldClose=!0),C.shouldClose&&C.props.shouldCloseOnOverlayClick&&(C.ownerHandlesClose()?C.requestClose(k):C.focusContent()),C.shouldClose=null},C.handleContentOnMouseUp=function(){C.shouldClose=!1},C.handleOverlayOnMouseDown=function(k){!C.props.shouldCloseOnOverlayClick&&k.target==C.overlay&&k.preventDefault()},C.handleContentOnClick=function(){C.shouldClose=!1},C.handleContentOnMouseDown=function(){C.shouldClose=!1},C.requestClose=function(k){return C.ownerHandlesClose()&&C.props.onRequestClose(k)},C.ownerHandlesClose=function(){return C.props.onRequestClose},C.shouldBeClosed=function(){return!C.state.isOpen&&!C.state.beforeClose},C.contentHasFocus=function(){return document.activeElement===C.content||C.content.contains(document.activeElement)},C.buildClassName=function(k,O){var P=(typeof O>"u"?"undefined":r(O))==="object"?O:{base:B[k],afterOpen:B[k]+"--after-open",beforeClose:B[k]+"--before-close"},I=P.base;return C.state.afterOpen&&(I=I+" "+P.afterOpen),C.state.beforeClose&&(I=I+" "+P.beforeClose),typeof O=="string"&&O?I+" "+O:I},C.attributesFromObject=function(k,O){return Object.keys(O).reduce(function(P,I){return P[k+"-"+I]=O[I],P},{})},C.state={afterOpen:!1,beforeClose:!1},C.shouldClose=null,C.moveFromContentToOverlay=null,C}return l(F,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(C,k){this.props.isOpen&&!C.isOpen?this.open():!this.props.isOpen&&C.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!k.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var C=this.props,k=C.appElement,O=C.ariaHideApp,P=C.htmlOpenClassName,I=C.bodyOpenClassName,A=C.parentSelector,ne=A&&A().ownerDocument||document;I&&x.add(ne.body,I),P&&x.add(ne.getElementsByTagName("html")[0],P),O&&(ae+=1,g.hide(k)),v.default.register(this)}},{key:"render",value:function(){var C=this.props,k=C.id,O=C.className,P=C.overlayClassName,I=C.defaultStyles,A=C.children,ne=O?{}:I.content,oe=P?{}:I.overlay;if(this.shouldBeClosed())return null;var Yt={ref:this.setOverlayRef,className:this.buildClassName("overlay",P),style:n({},oe,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},Ke=n({id:k,ref:this.setContentRef,style:n({},ne,this.props.style.content),className:this.buildClassName("content",O),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),Nt=this.props.contentElement(Ke,A);return this.props.overlayElement(Yt,Nt)}}]),F}(o.Component);Oe.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},Oe.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(h.default),s.default.instanceOf(b.SafeHTMLCollection),s.default.instanceOf(b.SafeNodeList),s.default.arrayOf(s.default.instanceOf(h.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=Oe,e.exports=t.default})(Yi,Yi.exports);var Xm=Yi.exports;function Sf(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Cf(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function kf(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Sf.__suppressDeprecationWarning=!0;Cf.__suppressDeprecationWarning=!0;kf.__suppressDeprecationWarning=!0;function Jm(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,l=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?l="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(l="UNSAFE_componentWillUpdate"),n!==null||r!==null||l!==null){var o=e.displayName||e.name,i=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. `+o+" uses "+i+" but also contains the following legacy lifecycles:"+(n!==null?` `+n:"")+(r!==null?` @@ -64,4 +64,4 @@ object-assign `+l:"")+` The above lifecycles should be removed. Learn more about this warning here: -https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Sf,t.componentWillReceiveProps=Cf),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=kf;var s=t.componentDidUpdate;t.componentDidUpdate=function(c,h,m){var f=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:m;s.call(this,c,h,f)}}return e}const ev=Object.freeze(Object.defineProperty({__proto__:null,polyfill:Jm},Symbol.toStringTag,{value:"Module"})),tv=pp(ev);Object.defineProperty(vn,"__esModule",{value:!0});vn.bodyOpenClassName=vn.portalClassName=void 0;var bu=Object.assign||function(e){for(var t=1;t{const g=M.useRef(null),{modal:S,errors:x}=se.dataLayerStructure,b=()=>{u().then(E=>E===!0?h(!0):window.scrollTo(0,0)&&m.current.focus())},p=E=>(E&&E.current.focus(),window.location.hash="",hu.disableScroll(),h(!1),!0),d=E=>E.which===32||E.which===13;M.useEffect(()=>{c&&hu.enableScroll()},[c]),M.useEffect(()=>{const E=()=>{const N=document.getElementById("benefit-finder");N&&N.hasAttribute("aria-hidden")&&N.removeAttribute("aria-hidden")};return Ru.setAppElement("#benefit-finder"),E()},[]),c===!0&&Zr({pageView:S.bfData.pageView}),M.useEffect(()=>{c===!0&&se.dataLayerPush(window,{event:S.event,bfData:{pageView:S.bfData.pageView,viewTitle:`${f.viewTitle} modal`}}),c===!0&&se.dataLayerPush(window,{event:x.event,bfData:{errors:"",errorCount:{number:0,string:"0"},formSuccess:!0}})},[]);const v=({triggerLabel:E,onKeyDown:N,onClick:j})=>a.jsx(ta,{onClick:j,onKeyDown:N,noCarrot:!0,tabIndex:"0",triggerRef:g,"aria-label":"Continue",role:"button",children:E}),w=({navItemOneLabel:E,navItemOneFunction:N,navItemTwoLabel:j,navItemTwoFunction:L})=>{const B=H=>{p(g)&&H()},R=(H,ae)=>{d(H)&&p(g)&&ae()};return a.jsxs("ul",{className:"bf-modal bf-usa-button-group usa-button-group width-full",children:[a.jsx("li",{className:"bf-usa-button-group__item usa-button-group__item width-full",children:a.jsx(Te,{id:"bf-navItemOneBtn",className:"bf-nav-item-one width-full",onClick:()=>B(N),onKeyDown:H=>R(H,N),noCarrot:!0,tabIndex:"0",secondary:!0,children:E})},"bf-nav-item-one"),a.jsx("li",{className:"bf-usa-button-group__item usa-button-group__item width-full",children:a.jsx(Te,{id:"bf-navItemTwoBtn",className:"bf-nav-item-two width-full",onClick:()=>B(L),onKeyDown:H=>R(H,L),noCarrot:!0,tabIndex:"0",secondary:!0,children:j})},"nav-item-two")]})};return a.jsxs("div",{id:e,className:"bf-usa-modal-group",children:[a.jsx(v,{triggerLabel:n,onKeyDown:E=>d(E)&&b(),onClick:()=>b()}),a.jsxs(Ru,{id:"benefit-finder-modal",isOpen:c,onRequestClose:()=>p(g),style:mv,aria:{label:r},children:[a.jsx("button",{type:"button","aria-label":"Close",className:"bf-modal-button",onClick:()=>p(g),children:a.jsx(dt,{type:"modal-close",color:"black","aria-hidden":"true"})}),a.jsx(ee,{headingLevel:1,className:"bf-modal-heading",children:r}),t||a.jsx(w,{navItemOneLabel:l,navItemOneFunction:o,navItemTwoLabel:i,navItemTwoFunction:s})]})]})};_f.propTypes={id:y.string,children:y.node,triggerLabel:y.string,modalHeading:y.string,navItemOneLabel:y.string,navItemOneFunction:y.func,navItemTwoLabel:y.string,navItemTwoFunction:y.func,handleCheckRequriedFields:y.func};const jf=({data:e,iconAlt:t})=>{const n=r=>r&&r.data.map((l,o)=>a.jsxs("li",{className:"bf-notice",children:[a.jsx(dt,{type:"info","aria-label":t,role:"img"}),a.jsx("div",{className:"bf-notice-item",dangerouslySetInnerHTML:jt(l.notice)})]},`notice-${o}`));return a.jsx("div",{className:"bf-notices",children:a.jsx("ul",{className:"bf-notices-list add-list-reset",children:a.jsx(n,{data:e})})})};jf.propTypes={data:y.array};const ta=({children:e,className:t,href:n,rel:r,target:l,ext:o,noCarrot:i,triggerRef:s,...u})=>{const c=o?["bf-usa-button","usa-button","usa-button--secondary","bf-usa-button--secondary","bf-usa-link--external","usa-link--external","bf-obfuscated-link"]:["bf-usa-button","usa-button","bf-usa-button--secondary","usa-button--secondary","bf-obfuscated-link"],h=i===!0?null:a.jsx(dt,{type:"carrot-solid",color:"black","aria-hidden":"true"});return a.jsxs("a",{href:n,rel:r,target:l,className:ft({className:t,defaultClasses:c}),ref:s,...u,children:[e,h]})};ta.propTypes={children:y.node,className:y.string,href:y.string,rel:y.string,target:y.string,ext:y.bool,noCarrot:y.bool};y.node||y.string,y.oneOf(["regular","bold","extrabold","light","thin"]);const Nf=({steps:e})=>a.jsx("ol",{className:"bf-usa-process-list usa-process-list",children:e&&e.map((t,n)=>a.jsx("li",{className:"bf-usa-process-list__item usa-process-list__item",children:a.jsx("h3",{className:"bf-usa-process-list__heading usa-process-list__heading",children:t.title})},`process-item-${n}`))});Nf.propTypes={steps:y.array};const bf=({id:e,label:t,value:n,checked:r,onChange:l,required:o,className:i,name:s})=>{const u=o===!0?["required-field"]:"",c=["bf-usa-radio__input usa-radio__input"],h=u;return a.jsx(a.Fragment,{children:a.jsxs("div",{className:"bf-usa-radio usa-radio",children:[a.jsx("input",{className:ft({className:i,defaultClasses:c,utilityClasses:h}),type:"radio",name:s,value:n||e,checked:r,onChange:l,id:e}),a.jsx(Xs,{className:"bf-usa-radio__label usa-radio__label",htmlFor:e,label:t})]})})};bf.propTypes={id:y.string,label:y.string,value:y.string,checked:y.bool,onChange:y.func,className:y.string,name:y.string};const Lf=({invalid:e,values:t,fieldSetId:n,handleChanged:r,criteriaKey:l,errorMessage:o,legend:i,ui:s})=>{const u=s,c=o?`${o}`:`${u==null?void 0:u.prefix} ${i&&i.toLowerCase()} ${u==null?void 0:u.suffix}`;return a.jsx("div",{className:"bf-radio-group radio-group","aria-invalid":e,children:t&&t.map((h,m)=>{const f=`${n}_${m}`;return a.jsx(bf,{name:n,id:f,label:h.value,value:h.value,checked:h.selected||!1,onChange:g=>{r(g,l)},"data-errormessage":c,"aria-errormessage":`error-description-${f}`},f)})})};Lf.propTypes={invalid:y.bool,values:y.array,fieldSetId:y.string,handleChanged:y.func,criteriaKey:y.string};const Tf=({data:e,carrotType:t})=>a.jsx("ul",{className:"bf-usa-card-group usa-card-group",children:e&&e.map((n,r)=>{const{title:l,searchTitle:o,link:i,cta:s,body:u,lifeEventId:c}=n.lifeEvent,h=c.replace("es_","");return a.jsx(cf,{className:"bf-usa-card--relative-benefit bf-usa-card usa-card tablet:grid-col-12",title:o||l,cta:s,href:i,body:u,carrotType:t,icon:h,"data-testid":h},`${l}-${r}`)})});Tf.propTypes={data:y.array,carrotType:y.string};const Of=({ui:e})=>{const{eligible:t,summaryBox:n}=e;return a.jsxs("div",{children:[a.jsx(ee,{className:"bf-eligible-view-heading",headingLevel:2,children:t==null?void 0:t.heading}),a.jsx(ee,{className:"bf-eligible-view-description",headingLevel:3,dangerouslySetInnerHTML:jt(t==null?void 0:t.description)}),a.jsx(ra,{heading:n==null?void 0:n.heading,listItems:n==null?void 0:n.list,cta:n==null?void 0:n.cta})]})};Of.propTypes={props:y.any};const Mf=({ui:e})=>{const{notEligible:t,summaryBox:n}=e;return a.jsxs("div",{children:[a.jsx(ee,{className:"bf-not-eligible-view-heading",headingLevel:2,children:t==null?void 0:t.heading}),a.jsx(ee,{className:"bf-not-eligible-view-description",headingLevel:3,dangerouslySetInnerHTML:jt(t==null?void 0:t.description)}),a.jsx(ra,{heading:n==null?void 0:n.heading,listItems:n==null?void 0:n.list,cta:n==null?void 0:n.cta})]})};Mf.propTypes={props:y.any};const Pf=({handleViewToggle:e,notEligibleView:t,ui:n})=>a.jsxs(a.Fragment,{children:[a.jsx(ee,{className:"bf-zero-benefits-view-heading","data-testid":"zero-benefits-view-heading",headingLevel:2,children:n==null?void 0:n.heading}),a.jsx(ee,{className:"bf-zero-benefits-view-description",headingLevel:3,dangerouslySetInnerHTML:jt(n==null?void 0:n.description)}),!t&&a.jsx("div",{className:"bf-zero-benefits-view-cta",children:a.jsx(Te,{"data-testid":"zero-benefits-view-cta-button",onClick:e,secondary:!0,children:n==null?void 0:n.cta})})]});Pf.propTypes={handleViewToggle:y.func,notEligibleView:y.bool,ui:y.object};const Rf=({notEligibleView:e,zeroBenefitsResult:t,stepDataArray:n,isExpandAll:r,setExpandAll:l,handleStepBack:o,handleViewToggle:i,data:s,relevantBenefits:u,resetElement:c,ui:h})=>{const m=({notEligibleView:d,zeroBenefitsResult:v,ui:w})=>{const{eligible:E,notEligible:N,zeroBenefits:j}=w;return a.jsx(Ys,{heading:d===!1?v&&(j==null?void 0:j.eligible.chevron.heading)||(E==null?void 0:E.chevron.heading):v&&(j==null?void 0:j.notEligible.chevron.heading)||(N==null?void 0:N.chevron.heading),description:d===!1?v&&(j==null?void 0:j.eligible.chevron.description)||(E==null?void 0:E.chevron.description):v&&(j==null?void 0:j.notEligible.chevron.description)||(N==null?void 0:N.chevron.description)})},f=({zeroBenefitsResult:d,notEligibleView:v,ui:w})=>{const{notEligible:E,eligible:N,summaryBox:j,zeroBenefits:L}=w;return d?a.jsx(Pf,{handleViewToggle:i,notEligibleView:v,ui:L}):v?a.jsx(Mf,{ui:{notEligible:E,summaryBox:j}}):a.jsx(Of,{ui:{eligible:N,summaryBox:j}})},g=({notEligibleView:d,handleStepBack:v,ui:w})=>{const{stepBackButton:E}=w;return d===!1?a.jsx(na,{onClick:()=>c.current.focus(),setCurrent:v,children:E}):a.jsx(Te,{className:"bf-step-back-button",onClick:()=>i(),unstyled:!0,children:E})},S=({handleViewToggle:d,ui:v})=>{const{notEligibleResults:w}=v;return a.jsxs("div",{className:"bf-result-view-unmet",children:[a.jsx(ee,{className:"bf-result-view-unmet-heading",headingLevel:3,children:w==null?void 0:w.heading}),a.jsx("p",{dangerouslySetInnerHTML:jt(w==null?void 0:w.description)}),a.jsx("div",{className:"bf-result-view-cta-wrapper",children:a.jsx(Te,{"data-testid":"bf-result-view-unmet-button",secondary:!0,onClick:d,children:w==null?void 0:w.cta})})]})},x=({stepDataArray:d,ui:v})=>{const{shareResults:w}=v;return a.jsxs("div",{className:"bf-result-view-share-results",children:[a.jsx(ee,{className:"bf-result-view-share-results-heading",headingLevel:3,children:w==null?void 0:w.heading}),a.jsx("p",{children:w==null?void 0:w.description}),a.jsxs("ul",{className:"bf-result-view-share-results-button-group",children:[a.jsxs("li",{children:[" ",a.jsx(vv,{ui:w,data:d&&X.SelectedValueAll(d)})]}),a.jsxs("li",{children:[" ",a.jsx(Z0,{ui:w,data:d&&X.SelectedValueAll(d)})]})]})]})},b=({relevantBenefits:d,ui:v})=>{const{resultsRelativeBenefits:w}=v;return a.jsxs("div",{className:"bf-result-view-relvant-benefits",children:[a.jsx(ee,{className:"bf-result-view-relvant-benefits-heading",headingLevel:3,children:w==null?void 0:w.heading}),d&&a.jsx(Tf,{data:d,carrotType:"carrot"})]})},p=({zeroBenefitsResult:d,notEligibleView:v,stepDataArray:w,isExpandAll:E,setExpandAll:N,ui:j})=>a.jsx("div",{className:"bf-result-view-benefits",children:a.jsx(uf,{data:w&&X.ElegibilityByCriteria(X.SelectedValueAll(w),s),entryKey:"benefit",notEligibleView:v,expandAll:d===!1||d&&v,isExpandAll:E,setExpandAll:N,ui:j})});return a.jsxs(a.Fragment,{children:[a.jsx(m,{notEligibleView:e,zeroBenefitsResult:t,ui:h}),a.jsx("div",{className:"bf-grid-container grid-container",children:a.jsxs("div",{className:"bf-result-view-details",children:[a.jsx(g,{notEligibleView:e,ui:h,handleStepBack:o}),a.jsx(f,{zeroBenefitsResult:t,notEligibleView:e,ui:h}),a.jsx(p,{zeroBenefitsResult:t,notEligibleView:e,isExpandAll:r,setExpandAll:l,stepDataArray:n,ui:h}),e===!1&&t===!1&&a.jsx(S,{notEligibleView:e,zeroBenefitsResult:t,handleViewToggle:i,ui:h}),(u==null?void 0:u.length)>0&&a.jsx(b,{relevantBenefits:u,ui:h}),a.jsx(x,{stepDataArray:n,ui:h})]})})]})};Rf.propTypes={props:y.any};const Df=({handleStepBack:e,stepDataArray:t,relevantBenefits:n,ui:r,data:l})=>{const[o,i]=M.useState(!1),[s,u]=M.useState(null),{resultsView:c}=se.dataLayerStructure,[h,m]=M.useState(!1),f=Gr();M.useEffect(()=>{var d;(d=f.current)==null||d.focus()},[f]);const g=t&&X.SelectedValueAll(t).length,S=t&&X.ElegibilityByCriteria(X.SelectedValueAll(t),l).length,x=d=>{const v=[],w=document.querySelectorAll(".bf-accordion-sub-heading");for(const E of w)E.textContent.includes(d)&&v.push(E);return{number:v.length,string:`${v.length}`}},b=()=>{m(!1),i(!o),window.scrollTo(0,0),f.current.focus()},p=(s==null?void 0:s.eligibleBenefitCount.number)===0;return M.useEffect(()=>{window.scrollTo(0,0),u({eligibleBenefitCount:x(r.benefitAccordion.eligibleStatusLabels[0]),moreInfoBenefitCount:x(r.benefitAccordion.eligibleStatusLabels[1]),notEligibleBenefitCount:x(r.benefitAccordion.eligibleStatusLabels[2])})},[]),Zr({pageView:o===!0?c.bfData.pageView[1]:c.bfData.pageView[0],notEligibleView:o}),M.useEffect(()=>{s!==null&&se.dataLayerPush(window,{event:c.event,bfData:{pageView:o===!0?c.bfData.pageView[1]:c.bfData.pageView[0],viewTitle:o===!1?p&&r.zeroBenefits.eligible.chevron.heading||(r==null?void 0:r.eligible.chevron.heading):p&&(r==null?void 0:r.zeroBenefits.notEligible.chevron.heading)||(r==null?void 0:r.notEligible.chevron.heading),...s}})},[o,s]),M.useEffect(()=>{Gd({hide:!1})},[]),a.jsx("div",{className:"bf-result-view","data-testid":"bf-result-view","data-analytics":"bf-result-view","data-analytics-content":o===!0?"bf-not-eligible-view":"bf-eligible-view","data-analytics-content-criteria-values":g,"data-analytics-content-benefits":S,"data-analytics-content-eligible":s==null?void 0:s.eligibleBenefitCount.number,"data-analytics-content-not-eligible":s==null?void 0:s.notEligibleBenefitCount.number,"data-analytics-content-more-info":s==null?void 0:s.moreInfoBenefitCount.number,children:a.jsx(Rf,{handleStepBack:e,notEligibleView:o,zeroBenefitsResult:p,stepDataArray:t,handleViewToggle:b,isExpandAll:h,setExpandAll:m,relevantBenefits:n,resetElement:f,data:l,ui:r})})};Df.propTypes={handleStepBack:y.func,ui:y.object,data:y.array};const vv=({ui:e,data:t})=>{const[n,r]=M.useState(()=>to(window.location.href,t)),l=o=>{o.preventDefault(),r(to(window.location.href,t)),navigator.clipboard.writeText(n).then(()=>alert(`${e==null?void 0:e.shareLinkContent} ${n}`),i=>alert("Failed to copy",i))};return a.jsx("a",{href:"",className:"bf-share-trigger bf-usa-link usa-link",onClick:o=>l(o),"data-testid":"bf-share-trigger",children:(e==null?void 0:e.shareTrigger)||"Share"})},$f=({data:e,noHeadings:t,current:n,setCurrent:r,backLinkLabel:l,handleCheckRequriedFields:o})=>{const i=({completed:u})=>a.jsx("span",{className:"usa-sr-only",children:u?" completed":" not completed"}),s=({heading:u,current:c,completed:h,index:m})=>{const f=c===m?"--current":"";return a.jsx("li",{className:`bf-usa-step-indicator__segment usa-step-indicator__segment bf-usa-step-indicator__segment${f} usa-step-indicator__segment${f} ${h===!0?"bf-usa-step-indicator__segment--complete usa-step-indicator__segment--complete":""}`,"aria-current":c===m,children:a.jsxs("span",{className:"bf-usa-step-indicator__segment-label usa-step-indicator__segment-label",children:[!t&&u,a.jsx(i,{completed:h},`step-indicator-sr-${m}`)]},`step-indicator-label-${m}`)},`step-indicator-${u}`)};return a.jsxs("div",{children:[e&&e.length>0&&a.jsx("div",{className:"bf-usa-step-indicator usa-step-indicator","aria-label":"progress",tabIndex:0,children:a.jsx("ol",{className:"bf-usa-step-indicator__segments usa-step-indicator__segments",children:e&&e.map((u,c)=>{const h=u.section.heading,m=u.completed;return a.jsx(s,{heading:h,index:c,current:n,setCurrent:r,completed:m,handleCheckRequriedFields:o},`${h}-${c}`)})})}),a.jsx(na,{currentIndex:n,setCurrent:r,children:l})]})};$f.propTypes={data:y.array,noHeadings:y.bool,current:y.number,backLinkLabel:y.string};const na=({children:e,setCurrent:t,currentIndex:n})=>{const r=Gr(),l=()=>{t(n),r.current.focus()};return a.jsx(Te,{className:"bf-step-back-button",unstyled:!0,onClick:()=>l(),children:e||"Back"})};na.propTypes={children:y.node,setCurrent:y.func,currentIndex:y.number};function Ff({label:e,htmlFor:t,options:n,selected:r,onChange:l,ui:o,className:i,invalid:s,legend:u,errorMessage:c}){const{select:h,errorText:m}=o,f=[`bf-usa-select usa-select ${s===!0?"usa-input--error":""}`],g=({options:x})=>x.map(b=>a.jsx("option",{value:b.value,children:b.value},b.value)),S=c?`${c}`:`${m==null?void 0:m.prefix} ${u&&u.toLowerCase()} ${m==null?void 0:m.suffix}`;return a.jsxs(a.Fragment,{children:[a.jsx(Xs,{label:e||(h==null?void 0:h.labelSelect),htmlFor:t}),a.jsxs("select",{className:ft({className:i,defaultClasses:f}),name:t,id:t,onChange:l,value:r||"","aria-invalid":s===!0,"data-errormessage":S,"aria-errormessage":`error-description-${t}`,children:[a.jsx("option",{value:"",children:h==null?void 0:h.defaultValue},"default"),a.jsx(g,{options:n})]})]})}Ff.propTypes={label:y.string,htmlFor:y.string,options:y.array,selected:y.string,onChange:y.func,required:y.bool,ui:y.object,className:y.string,invalid:y.bool};const ra=({heading:e,listItems:t,cta:n})=>{const r=l=>{l.preventDefault(),window.location.href=`${window.location.origin}${window.location.pathname}`};return a.jsx("div",{className:"bf-usa-summary-box usa-summary-box",role:"region","aria-labelledby":"bf-summary-box-key-information",children:a.jsxs("div",{className:"bf-usa-summary-box__body usa-summary-box__body",children:[a.jsx(ee,{headingLevel:4,className:"bf-usa-summary-box__heading usa-summary-box__heading",id:"bf-summary-box-key-information",children:e}),a.jsx("div",{className:"bf-usa-summary-box__text usa-summary-box__text",children:a.jsxs("ul",{className:"bf-usa-list usa-list",children:[t&&t.map((l,o)=>a.jsx("li",{children:l.item},`bf-summary-list-${o}`)),a.jsxs("li",{children:[n==null?void 0:n.text," ",a.jsx("a",{className:"bf-usa-summary-box__link usa-summary-box__link",href:"#",onClick:l=>r(l),children:n==null?void 0:n.link})]})]})})]})})};ra.propTypes={props:y.any};y.string,y.string,y.string,y.bool;const If=({timeEstimate:e,description:t})=>a.jsxs("div",{className:"time-indicator",children:[t," ",e]});If.propTypes={description:y.string,timeEstimate:y.string};const Af=({handleStepForward:e,handleStepBack:t,ui:n,data:r})=>{const{stepIndicator:l,verifySelectionsView:o,buttonGroup:i}=n,{verifySelections:s}=se.dataLayerStructure,u=X.Language(),c={year:"numeric",month:"long",day:"numeric"},h=({item:g,index:S})=>a.jsxs("div",{className:"bf-verify-criteria-value",children:[a.jsx("div",{className:"bf-verify-criteria-legend",children:g.fieldset.legend},`bf-criteria-${g.fieldset.criteriaKey}-${S}`),o==null?void 0:o.noResultsLabel]}),m=({criteriaId:g,legend:S,selected:x})=>a.jsxs("div",{className:"bf-verify-criteria-value",children:[a.jsx("div",{className:"bf-verify-criteria-legend",children:S}),typeof(x==null?void 0:x.value)=="object"?`${Qh(x.value).toLocaleDateString(u,c)}`:x==null?void 0:x.value]},g),f=({item:g,index:S})=>a.jsxs("div",{children:[m({criteriaId:`criteria-${g.fieldset.criteriaKey}-${S}`,legend:g.fieldset.legend,selected:X.SelectedValue(g)}),X.Children(g).map(x=>X.SelectedValue(x)?m({criteriaId:x.fieldset.criteriaKey,legend:x.fieldset.legend,selected:X.SelectedValue(x)}):a.jsx(h,{item:x},x.fieldset.criteriaKey))]});return M.useEffect(()=>{window.scrollTo(0,0)},[]),Zr({pageView:s.bfData.pageView}),M.useEffect(()=>{se.dataLayerPush(window,{event:s.event,bfData:{pageView:s.bfData.pageView,viewTitle:o==null?void 0:o.heading}})},[]),a.jsx("div",{className:"bf-verify-selections-view",children:a.jsxs("div",{className:"bf-grid-container grid-container",children:[a.jsx(ee,{className:"bf-section-heading",headingLevel:1,children:o==null?void 0:o.heading}),a.jsx("div",{className:"bf-section-wrapper",children:a.jsxs("div",{className:"bf-section-info",children:[a.jsx(Te,{className:"bf-step-back-button",onClick:t,unstyled:!0,children:l==null?void 0:l.stepBackButton}),a.jsx("div",{children:r&&r.map((g,S)=>{const{section:x}=g;return a.jsxs("div",{className:"bf-verify-criteria-section",children:[a.jsx(ee,{className:"bf-verify-criteria-section-heading",headingLevel:2,children:x.heading}),a.jsx("div",{children:x.fieldsets.map((b,p)=>X.SelectedValue(b)?a.jsx(f,{item:b,index:p},`bf-criteria-item-${p}`):a.jsx(h,{item:b,index:p},`bf-criteria-item-${p}`))})]},`bf-section-${x.heading}`)})}),a.jsxs("div",{className:"bf-section-nav-btn-group",children:[a.jsx(Te,{outline:!0,onClick:t,children:i[0].value}),a.jsx(Te,{secondary:!0,onClick:e,children:i[1].value})]})]})})]})})};Af.propTypes={handleStepForward:y.func,handleStepBck:y.func,ui:y.object,data:y.array};const zf={heading:"Steps",timeIndicator:"Estimated time",steps:{list:[{title:"Answer questions"},{title:"Get your list of benefits"},{title:"Visit agency websites to apply"}]},notices:{heading:"Before you start:",iconAlt:"Important",list:[{notice:"
    This is not an application.
    "},{notice:"You'll need to apply for benefits with each agency."},{notice:"
    We don't share, save, or submit your information.
    "}]},button:"Start finding benefits"},Bf={stepBackButton:"Back"},Vf={value:"required"},Hf={heading:{prefix:"Your information contains",suffix:"errors"},description:"Complete all required fields."},Uf={prefix:"Fill out the",suffix:"field"},Wf=[{value:"Back"},{value:"Next"}],Kf={heading:"Select an option:",buttonGroup:[{value:"Review your selections"},{value:"Get your results"}]},qf={heading:"Review and confirm",noResultsLabel:"Not answered",buttonGroup:[{value:"Back"},{value:"Confirm"}]},Qf={summaryBox:{heading:"Important",list:[{item:"Visit each agency’s website to find full eligibility requirements."},{item:"Your results may change if you answer more questions or modify your answers."}],cta:{text:"",link:"Clear my answers and restart the form."}},eligible:{chevron:{heading:"Your potential benefits",description:"

    Visit each agency to find true eligibility and to apply. Check with your city, state, or employer for other benefits.

    "},heading:"Results",description:"You may be eligible for these benefits:"},notEligible:{chevron:{heading:"Benefits you did not qualify for",description:"

    According to your answers you are not eligible for these benefits./p>

    "},heading:"Results",description:"Based on your answers you are not eligible for these benefits.You may become eligible if you enter additional information or your situation changes."},zeroBenefits:{eligible:{chevron:{heading:"You are likely not eligible for these benefits.",description:"

    If you reached these results by mistake, please go back to review your answers.

    "}},notEligible:{chevron:{heading:"Benefits you did not qualify for",description:"

    According to your answers you are not eligible for these benefits.

    "}},heading:"No eligible results.",description:"Based on your answers you are likely not eligible for benefits. You may become eligible if you enter more information or your situation changes.",cta:"See all benefits"},stepBackButton:"Back",eligibleResults:{heading:"Results",description:"You may be eligible for these benefits."},benefitAccordionGroup:{closedState:"Expand all",openState:"Close all"},benefitAccordion:{eligibleStatusLabels:["Likely eligible","More information needed","Not eligible"],agencyPrefix:"By",benefitSummary:"Key eligibility criteria",benefitSummaryPrefix:"Met ",benefitSummaryConjunction:"of",unmetLabel:"Unmet criteria",visitLabel:"Visit"},notEligibleResults:{heading:"Benefits you did not qualify for",description:"
    Based on your answers you are not eligible for these benefits. You may become eligible if you enter additional information or your situation changes.
    ",cta:"Explore other potential benefits"},resultsRelativeBenefits:{heading:"More benefits"},shareResults:{heading:"Share results",shareTrigger:"Share link",shareLinkContent:"Copied",emailTrigger:"Email results",emailSubject:"Results from USAGov’s benefit finder",description:"Copy or email these results. Your answers will be visible. Only share with those you trust."}},Zf={heading:"Share results",description:"Your information will be viewable. Only share with those you trust.",buttonGroup:[{value:"Share link"},{value:"Email results"}]},Gf={start:"Answer these questions",continue:"Questions continued",final:"Final questions"},Yf={labelSelect:"Select an option",defaultValue:"-Select-",dateDefaultValue:"-Select-"},Xf={alert:"Date should follow the format January 19 2000",labelDay:"Day",labelMonth:"Month",labelYear:"Year",monthOptions:[{label:"01 - January"},{label:"02 - February"},{label:"03 - March"},{label:"04 - April"},{label:"05 - May"},{label:"06 - June"},{label:"07 - July"},{label:"08 - August"},{label:"09 - September"},{label:"10 - October"},{label:"11 - November"},{label:"12 - December"}]},gv={intro:zf,stepIndicator:Bf,requiredLabel:Vf,alertBanner:Hf,errorText:Uf,buttonGroup:Wf,reviewSelectionModal:Kf,verifySelectionsView:qf,resultsView:Qf,shareResults:Zf,sectionHeadings:Gf,select:Yf,date:Xf},Du=Object.freeze(Object.defineProperty({__proto__:null,alertBanner:Hf,buttonGroup:Wf,date:Xf,default:gv,errorText:Uf,intro:zf,requiredLabel:Vf,resultsView:Qf,reviewSelectionModal:Kf,sectionHeadings:Gf,select:Yf,shareResults:Zf,stepIndicator:Bf,verifySelectionsView:qf},Symbol.toStringTag,{value:"Module"})),Jf={heading:"Pasos",timeIndicator:"Tiempo estimado",steps:{list:[{title:"Responda unas preguntas"},{title:"Obtenga su lista de posibles beneficios"},{title:"Aplique en los sitios web de cada agencia"}]},notices:{heading:"Antes de empezar:",iconAlt:"Importante",list:[{notice:"
    Esto no es una aplicación.
    "},{notice:"Sus respuestas no serán guardadas o presentadas."},{notice:"
    Responda todas las preguntas para mejores resultados.
    "}]},button:"Encuentre sus beneficios"},ep={stepBackButton:"Volver"},tp={value:"requerido"},np={heading:{prefix:"Tu información contiene",suffix:"errores"},description:"Responda los campos requeridos."},rp={prefix:"Complete",suffix:""},lp=[{value:"Volver"},{value:"Siguiente"}],op={heading:"Seleccione una opción:",buttonGroup:[{value:"Revise sus respuestas"},{value:"Obtenga sus resultados"}]},ip={heading:"Revisar y confirmar",noResultsLabel:"No respondió",buttonGroup:[{value:"Volver"},{value:"Confirmar"}]},sp={summaryBox:{heading:"Importante",list:[{item:"Visite el sitio web de cada agencia para confirmar su elegibilidad y requisitos."},{item:"Sus resultados podrían cambiar si responde más preguntas o modifica sus respuestas."}],cta:{text:"",link:"Borrar mis respuestas y empezar el formulario de nuevo."}},eligible:{chevron:{heading:"Sus beneficios potenciales",description:"

    Visite la página de cada agencia para verificar los requisitos y aplicar. Para conocer otros beneficios, consulte a su ciudad, estado, o trabajo.

    "},heading:"Resultados",description:"Podría ser elegible para estos beneficios:"},notEligible:{chevron:{heading:"Beneficios a los que no calificó",description:"

    Según sus respuestas usted no es elegible para estos beneficios.

    "},heading:"Resultados",description:"Según sus respuestas no es elegible para estos beneficios. Podría calificar si tiene información adicional o si su situación cambia."},zeroBenefits:{eligible:{chevron:{heading:"Usted parece no ser elegible para estos beneficios",description:"

    Si cree que cometió un error, por favor regrese para corregir sus respuestas.

    "}},notEligible:{chevron:{heading:"Beneficios a los que no calificó",description:"

    Según sus respuestas usted no es elegible para estos beneficios.

    "}},heading:"No tiene resultados elegibles.",description:"Basado en sus respuestas usted no es elegible para estos beneficios. Podría ser elegible si ingresa más información o si su situación cambia.",cta:"Ver todos los beneficios"},stepBackButton:"Volver",eligibleResults:{heading:"Resultados",description:"Podría calificar para estos beneficios:"},benefitAccordionGroup:{closedState:"Abrir todos",openState:"Cerrar todos"},benefitAccordion:{eligibleStatusLabels:["Probablemente elegible","Más información requerida","No elegible"],agencyPrefix:"",benefitSummary:"Criterios de elegibilidad",benefitSummaryPrefix:"Cumple ",benefitSummaryConjunction:"de",unmetLabel:"No cumplió con",visitLabel:"Visite",sourceIsEnglish:"(en inglés)"},notEligibleResults:{heading:"Beneficios a los que no calificó",description:"
    Según sus respuestas no es elegible para estos beneficios. Podría calificar si tiene información adicional o si su situación cambia.
    ",cta:"Explore otros beneficios"},relativeBenefits:{heading:"Más beneficios"},shareResults:{heading:"Imprima y comparta",shareTrigger:"Compartir resultados",emailTrigger:"Enviar resultados",shareLinkContent:"Copiado",emailSubject:"Resultados del buscador de beneficios de USAGov",description:"Copie o envíe sus resultados por correo. Sus respuestas serán visibles. Solo comparta con quienes confíe."}},ap={heading:"Imprima y comparta",description:"Sus respuestas serán visibles. Solo comparta con quienes confíe.",buttonGroup:[{value:"Compartir resultados"},{value:"Enviar resultados"}]},up={start:"Responda las preguntas",continue:"Preguntas continuadas",final:"Preguntas finales"},cp={labelSelect:"Seleccione una opción",defaultValue:"-Seleccionar-",dateDefaultValue:"-Seleccionar-"},dp={alert:"Use el formato enero 19 2000",labelDay:"Día",labelMonth:"Mes",labelYear:"Año",monthOptions:[{label:"01 - Enero"},{label:"02 - Febrero"},{label:"03 - Marzo"},{label:"04 - Abril"},{label:"05 - Mayo"},{label:"06 - Junio"},{label:"07 - Julio"},{label:"08 - Agosto"},{label:"09 - Septiembre"},{label:"10 - Octubre"},{label:"11 - Noviembre"},{label:"12 - Diciembre"}]},yv={intro:Jf,stepIndicator:ep,requiredLabel:tp,alertBanner:np,errorText:rp,buttonGroup:lp,reviewSelectionModal:op,verifySelectionsView:ip,resultsView:sp,shareResults:ap,sectionHeadings:up,select:cp,date:dp},$u=Object.freeze(Object.defineProperty({__proto__:null,alertBanner:np,buttonGroup:lp,date:dp,default:yv,errorText:rp,intro:Jf,requiredLabel:tp,resultsView:sp,reviewSelectionModal:op,sectionHeadings:up,select:cp,shareResults:ap,stepIndicator:ep,verifySelectionsView:ip},Symbol.toStringTag,{value:"Module"}));function wv({testAppContent:e,testQuery:t}){var B;const n=M.createContext({en:Du,es:$u}),r="shared",l="draft",o=t||window.location.search,i=o.includes(r),s=o.includes(l);Gr();const[u,c]=M.useState(()=>(X.LifeEvent().then(R=>(R==null?void 0:R.status)===200?c(R.data):c(e)),e)),[h,m]=M.useState(),[f,g]=M.useState(),[S,x]=M.useState(!1);M.useEffect(()=>{u&&g([...u.benefits]),u&&m([...u.lifeEventForm.sectionsEligibilityCriteria])},[u]);const[b]=M.useState(X.Language()==="es"?$u:Du),[p,d]=M.useState(i?null:0),[v,w]=M.useState(()=>h&&h[p]),[E,N]=M.useState(!1),[j,L]=M.useState(i);return M.useEffect(()=>{i&&(h&&Br.DataFromParams(o,h,w,r),h&&d(h.length))},[o,i,h]),u&&a.jsxs(n.Provider,{value:b,children:[s===!0&&a.jsx(Gs,{children:"Draft Mode"}),a.jsx("div",{id:u==null?void 0:u.lifeEventForm.id,className:`benefit-finder ${p!==0&&j!==!0?"form":""}`,"data-testid":"app","data-version":zh,children:p===0?a.jsx(hf,{data:u.lifeEventForm,ui:b.intro,setStep:d,step:p}):j===!0?a.jsx(Df,{stepDataArray:h,relevantBenefits:(B=u==null?void 0:u.lifeEventForm)==null?void 0:B.relevantBenefits,data:f,setBenefitsArray:()=>g(),ui:b.resultsView,handleStepBack:()=>{N(!1),L(!1)}}):E===!1?a.jsx("div",{children:a.jsx(ff,{children:a.jsx(vf,{step:p,setStep:d,data:h,handleData:m,stepData:v,setStepData:w,verifyStep:E,setVerifyStep:()=>{N(!0),x(!1)},setViewResults:()=>{L(!0),x(!1)},ui:b,modalOpen:S,setModalOpen:x})})}):a.jsx(Af,{handleStepBack:()=>{N(!1),L(!1)},handleStepForward:()=>{L(!0)},ui:b,data:h,step:p,setStep:d})})]})}const xv=ni.createRoot(document.getElementById("benefit-finder"));xv.render(a.jsx(Lp.StrictMode,{children:a.jsx(wv,{})})); +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Sf,t.componentWillReceiveProps=Cf),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=kf;var s=t.componentDidUpdate;t.componentDidUpdate=function(c,f,m){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:m;s.call(this,c,f,p)}}return e}const ev=Object.freeze(Object.defineProperty({__proto__:null,polyfill:Jm},Symbol.toStringTag,{value:"Module"})),tv=pp(ev);Object.defineProperty(vn,"__esModule",{value:!0});vn.bodyOpenClassName=vn.portalClassName=void 0;var bu=Object.assign||function(e){for(var t=1;t{const g=M.useRef(null),{modal:S,errors:x}=se.dataLayerStructure,b=()=>{u().then(E=>E===!0?f(!0):window.scrollTo(0,0)&&m.current.focus())},h=E=>(E&&E.current.focus(),window.location.hash="",hu.disableScroll(),f(!1),!0),d=E=>E.which===32||E.which===13;M.useEffect(()=>{c&&hu.enableScroll()},[c]),M.useEffect(()=>{const E=()=>{const N=document.getElementById("benefit-finder");N&&N.hasAttribute("aria-hidden")&&N.removeAttribute("aria-hidden")};return Ru.setAppElement("#benefit-finder"),E()},[]),c===!0&&Zr({pageView:S.bfData.pageView}),M.useEffect(()=>{(async()=>{c===!0&&se.dataLayerPush(window,{event:S.event,bfData:{pageView:S.bfData.pageView,viewTitle:`${p.viewTitle} modal`}})})().then(()=>{c===!0&&se.dataLayerPush(window,{event:x.event,bfData:{errors:"",errorCount:{number:0,string:"0"},formSuccess:!0}})})},[]);const v=({triggerLabel:E,onKeyDown:N,onClick:j})=>a.jsx(ta,{onClick:j,onKeyDown:N,noCarrot:!0,tabIndex:"0",triggerRef:g,"aria-label":"Continue",role:"button",children:E}),w=({navItemOneLabel:E,navItemOneFunction:N,navItemTwoLabel:j,navItemTwoFunction:L})=>{const B=H=>{h(g)&&H()},R=(H,ae)=>{d(H)&&h(g)&&ae()};return a.jsxs("ul",{className:"bf-modal bf-usa-button-group usa-button-group width-full",children:[a.jsx("li",{className:"bf-usa-button-group__item usa-button-group__item width-full",children:a.jsx(Te,{id:"bf-navItemOneBtn",className:"bf-nav-item-one width-full",onClick:()=>B(N),onKeyDown:H=>R(H,N),noCarrot:!0,tabIndex:"0",secondary:!0,children:E})},"bf-nav-item-one"),a.jsx("li",{className:"bf-usa-button-group__item usa-button-group__item width-full",children:a.jsx(Te,{id:"bf-navItemTwoBtn",className:"bf-nav-item-two width-full",onClick:()=>B(L),onKeyDown:H=>R(H,L),noCarrot:!0,tabIndex:"0",secondary:!0,children:j})},"nav-item-two")]})};return a.jsxs("div",{id:e,className:"bf-usa-modal-group",children:[a.jsx(v,{triggerLabel:n,onKeyDown:E=>d(E)&&b(),onClick:()=>b()}),a.jsxs(Ru,{id:"benefit-finder-modal",isOpen:c,onRequestClose:()=>h(g),style:mv,aria:{label:r},children:[a.jsx("button",{type:"button","aria-label":"Close",className:"bf-modal-button",onClick:()=>h(g),children:a.jsx(dt,{type:"modal-close",color:"black","aria-hidden":"true"})}),a.jsx(ee,{headingLevel:1,className:"bf-modal-heading",children:r}),t||a.jsx(w,{navItemOneLabel:l,navItemOneFunction:o,navItemTwoLabel:i,navItemTwoFunction:s})]})]})};_f.propTypes={id:y.string,children:y.node,triggerLabel:y.string,modalHeading:y.string,navItemOneLabel:y.string,navItemOneFunction:y.func,navItemTwoLabel:y.string,navItemTwoFunction:y.func,handleCheckRequriedFields:y.func};const jf=({data:e,iconAlt:t})=>{const n=r=>r&&r.data.map((l,o)=>a.jsxs("li",{className:"bf-notice",children:[a.jsx(dt,{type:"info","aria-label":t,role:"img"}),a.jsx("div",{className:"bf-notice-item",dangerouslySetInnerHTML:jt(l.notice)})]},`notice-${o}`));return a.jsx("div",{className:"bf-notices",children:a.jsx("ul",{className:"bf-notices-list add-list-reset",children:a.jsx(n,{data:e})})})};jf.propTypes={data:y.array};const ta=({children:e,className:t,href:n,rel:r,target:l,ext:o,noCarrot:i,triggerRef:s,...u})=>{const c=o?["bf-usa-button","usa-button","usa-button--secondary","bf-usa-button--secondary","bf-usa-link--external","usa-link--external","bf-obfuscated-link"]:["bf-usa-button","usa-button","bf-usa-button--secondary","usa-button--secondary","bf-obfuscated-link"],f=i===!0?null:a.jsx(dt,{type:"carrot-solid",color:"black","aria-hidden":"true"});return a.jsxs("a",{href:n,rel:r,target:l,className:ft({className:t,defaultClasses:c}),ref:s,...u,children:[e,f]})};ta.propTypes={children:y.node,className:y.string,href:y.string,rel:y.string,target:y.string,ext:y.bool,noCarrot:y.bool};y.node||y.string,y.oneOf(["regular","bold","extrabold","light","thin"]);const Nf=({steps:e})=>a.jsx("ol",{className:"bf-usa-process-list usa-process-list",children:e&&e.map((t,n)=>a.jsx("li",{className:"bf-usa-process-list__item usa-process-list__item",children:a.jsx("h3",{className:"bf-usa-process-list__heading usa-process-list__heading",children:t.title})},`process-item-${n}`))});Nf.propTypes={steps:y.array};const bf=({id:e,label:t,value:n,checked:r,onChange:l,required:o,className:i,name:s})=>{const u=o===!0?["required-field"]:"",c=["bf-usa-radio__input usa-radio__input"],f=u;return a.jsx(a.Fragment,{children:a.jsxs("div",{className:"bf-usa-radio usa-radio",children:[a.jsx("input",{className:ft({className:i,defaultClasses:c,utilityClasses:f}),type:"radio",name:s,value:n||e,checked:r,onChange:l,id:e}),a.jsx(Xs,{className:"bf-usa-radio__label usa-radio__label",htmlFor:e,label:t})]})})};bf.propTypes={id:y.string,label:y.string,value:y.string,checked:y.bool,onChange:y.func,className:y.string,name:y.string};const Lf=({invalid:e,values:t,fieldSetId:n,handleChanged:r,criteriaKey:l,errorMessage:o,legend:i,ui:s})=>{const u=s,c=o?`${o}`:`${u==null?void 0:u.prefix} ${i&&i.toLowerCase()} ${u==null?void 0:u.suffix}`;return a.jsx("div",{className:"bf-radio-group radio-group","aria-invalid":e,children:t&&t.map((f,m)=>{const p=`${n}_${m}`;return a.jsx(bf,{name:n,id:p,label:f.value,value:f.value,checked:f.selected||!1,onChange:g=>{r(g,l)},"data-errormessage":c,"aria-errormessage":`error-description-${p}`},p)})})};Lf.propTypes={invalid:y.bool,values:y.array,fieldSetId:y.string,handleChanged:y.func,criteriaKey:y.string};const Tf=({data:e,carrotType:t})=>a.jsx("ul",{className:"bf-usa-card-group usa-card-group",children:e&&e.map((n,r)=>{const{title:l,searchTitle:o,link:i,cta:s,body:u,lifeEventId:c}=n.lifeEvent,f=c.replace("es_","");return a.jsx(cf,{className:"bf-usa-card--relative-benefit bf-usa-card usa-card tablet:grid-col-12",title:o||l,cta:s,href:i,body:u,carrotType:t,icon:f,"data-testid":f},`${l}-${r}`)})});Tf.propTypes={data:y.array,carrotType:y.string};const Of=({ui:e})=>{const{eligible:t,summaryBox:n}=e;return a.jsxs("div",{children:[a.jsx(ee,{className:"bf-eligible-view-heading",headingLevel:2,children:t==null?void 0:t.heading}),a.jsx(ee,{className:"bf-eligible-view-description",headingLevel:3,dangerouslySetInnerHTML:jt(t==null?void 0:t.description)}),a.jsx(ra,{heading:n==null?void 0:n.heading,listItems:n==null?void 0:n.list,cta:n==null?void 0:n.cta})]})};Of.propTypes={props:y.any};const Mf=({ui:e})=>{const{notEligible:t,summaryBox:n}=e;return a.jsxs("div",{children:[a.jsx(ee,{className:"bf-not-eligible-view-heading",headingLevel:2,children:t==null?void 0:t.heading}),a.jsx(ee,{className:"bf-not-eligible-view-description",headingLevel:3,dangerouslySetInnerHTML:jt(t==null?void 0:t.description)}),a.jsx(ra,{heading:n==null?void 0:n.heading,listItems:n==null?void 0:n.list,cta:n==null?void 0:n.cta})]})};Mf.propTypes={props:y.any};const Pf=({handleViewToggle:e,notEligibleView:t,ui:n})=>a.jsxs(a.Fragment,{children:[a.jsx(ee,{className:"bf-zero-benefits-view-heading","data-testid":"zero-benefits-view-heading",headingLevel:2,children:n==null?void 0:n.heading}),a.jsx(ee,{className:"bf-zero-benefits-view-description",headingLevel:3,dangerouslySetInnerHTML:jt(n==null?void 0:n.description)}),!t&&a.jsx("div",{className:"bf-zero-benefits-view-cta",children:a.jsx(Te,{"data-testid":"zero-benefits-view-cta-button",onClick:e,secondary:!0,children:n==null?void 0:n.cta})})]});Pf.propTypes={handleViewToggle:y.func,notEligibleView:y.bool,ui:y.object};const Rf=({notEligibleView:e,zeroBenefitsResult:t,stepDataArray:n,isExpandAll:r,setExpandAll:l,handleStepBack:o,handleViewToggle:i,data:s,relevantBenefits:u,resetElement:c,ui:f})=>{const m=({notEligibleView:d,zeroBenefitsResult:v,ui:w})=>{const{eligible:E,notEligible:N,zeroBenefits:j}=w;return a.jsx(Ys,{heading:d===!1?v&&(j==null?void 0:j.eligible.chevron.heading)||(E==null?void 0:E.chevron.heading):v&&(j==null?void 0:j.notEligible.chevron.heading)||(N==null?void 0:N.chevron.heading),description:d===!1?v&&(j==null?void 0:j.eligible.chevron.description)||(E==null?void 0:E.chevron.description):v&&(j==null?void 0:j.notEligible.chevron.description)||(N==null?void 0:N.chevron.description)})},p=({zeroBenefitsResult:d,notEligibleView:v,ui:w})=>{const{notEligible:E,eligible:N,summaryBox:j,zeroBenefits:L}=w;return d?a.jsx(Pf,{handleViewToggle:i,notEligibleView:v,ui:L}):v?a.jsx(Mf,{ui:{notEligible:E,summaryBox:j}}):a.jsx(Of,{ui:{eligible:N,summaryBox:j}})},g=({notEligibleView:d,handleStepBack:v,ui:w})=>{const{stepBackButton:E}=w;return d===!1?a.jsx(na,{onClick:()=>c.current.focus(),setCurrent:v,children:E}):a.jsx(Te,{className:"bf-step-back-button",onClick:()=>i(),unstyled:!0,children:E})},S=({handleViewToggle:d,ui:v})=>{const{notEligibleResults:w}=v;return a.jsxs("div",{className:"bf-result-view-unmet",children:[a.jsx(ee,{className:"bf-result-view-unmet-heading",headingLevel:3,children:w==null?void 0:w.heading}),a.jsx("p",{dangerouslySetInnerHTML:jt(w==null?void 0:w.description)}),a.jsx("div",{className:"bf-result-view-cta-wrapper",children:a.jsx(Te,{"data-testid":"bf-result-view-unmet-button",secondary:!0,onClick:d,children:w==null?void 0:w.cta})})]})},x=({stepDataArray:d,ui:v})=>{const{shareResults:w}=v;return a.jsxs("div",{className:"bf-result-view-share-results",children:[a.jsx(ee,{className:"bf-result-view-share-results-heading",headingLevel:3,children:w==null?void 0:w.heading}),a.jsx("p",{children:w==null?void 0:w.description}),a.jsxs("ul",{className:"bf-result-view-share-results-button-group",children:[a.jsxs("li",{children:[" ",a.jsx(vv,{ui:w,data:d&&q.SelectedValueAll(d)})]}),a.jsxs("li",{children:[" ",a.jsx(Z0,{ui:w,data:d&&q.SelectedValueAll(d)})]})]})]})},b=({relevantBenefits:d,ui:v})=>{const{resultsRelativeBenefits:w}=v;return a.jsxs("div",{className:"bf-result-view-relvant-benefits",children:[a.jsx(ee,{className:"bf-result-view-relvant-benefits-heading",headingLevel:3,children:w==null?void 0:w.heading}),d&&a.jsx(Tf,{data:d,carrotType:"carrot"})]})},h=({zeroBenefitsResult:d,notEligibleView:v,stepDataArray:w,isExpandAll:E,setExpandAll:N,ui:j})=>a.jsx("div",{className:"bf-result-view-benefits",children:a.jsx(uf,{data:w&&q.ElegibilityByCriteria(q.SelectedValueAll(w),s),entryKey:"benefit",notEligibleView:v,expandAll:d===!1||d&&v,isExpandAll:E,setExpandAll:N,ui:j})});return a.jsxs(a.Fragment,{children:[a.jsx(m,{notEligibleView:e,zeroBenefitsResult:t,ui:f}),a.jsx("div",{className:"bf-grid-container grid-container",children:a.jsxs("div",{className:"bf-result-view-details",children:[a.jsx(g,{notEligibleView:e,ui:f,handleStepBack:o}),a.jsx(p,{zeroBenefitsResult:t,notEligibleView:e,ui:f}),a.jsx(h,{zeroBenefitsResult:t,notEligibleView:e,isExpandAll:r,setExpandAll:l,stepDataArray:n,ui:f}),e===!1&&t===!1&&a.jsx(S,{notEligibleView:e,zeroBenefitsResult:t,handleViewToggle:i,ui:f}),(u==null?void 0:u.length)>0&&a.jsx(b,{relevantBenefits:u,ui:f}),a.jsx(x,{stepDataArray:n,ui:f})]})})]})};Rf.propTypes={props:y.any};const Df=({handleStepBack:e,stepDataArray:t,relevantBenefits:n,ui:r,data:l})=>{const[o,i]=M.useState(!1),[s,u]=M.useState(null),{resultsView:c}=se.dataLayerStructure,[f,m]=M.useState(!1),p=Gr();M.useEffect(()=>{var d;(d=p.current)==null||d.focus()},[p]);const g=t&&q.SelectedValueAll(t).length,S=t&&q.ElegibilityByCriteria(q.SelectedValueAll(t),l).length,x=d=>{const v=[],w=document.querySelectorAll(".bf-accordion-sub-heading");for(const E of w)E.textContent.includes(d)&&v.push(E);return{number:v.length,string:`${v.length}`}},b=()=>{m(!1),i(!o),window.scrollTo(0,0),p.current.focus()},h=(s==null?void 0:s.eligibleBenefitCount.number)===0;return M.useEffect(()=>{window.scrollTo(0,0),u({eligibleBenefitCount:x(r.benefitAccordion.eligibleStatusLabels[0]),moreInfoBenefitCount:x(r.benefitAccordion.eligibleStatusLabels[1]),notEligibleBenefitCount:x(r.benefitAccordion.eligibleStatusLabels[2])})},[]),Zr({pageView:o===!0?c.bfData.pageView[1]:c.bfData.pageView[0],notEligibleView:o}),M.useEffect(()=>{s!==null&&se.dataLayerPush(window,{event:c.event,bfData:{pageView:o===!0?c.bfData.pageView[1]:c.bfData.pageView[0],viewTitle:o===!1?h&&r.zeroBenefits.eligible.chevron.heading||(r==null?void 0:r.eligible.chevron.heading):h&&(r==null?void 0:r.zeroBenefits.notEligible.chevron.heading)||(r==null?void 0:r.notEligible.chevron.heading),...s}})},[o,s]),M.useEffect(()=>{Gd({hide:!1})},[]),a.jsx("div",{className:"bf-result-view","data-testid":"bf-result-view","data-analytics":"bf-result-view","data-analytics-content":o===!0?"bf-not-eligible-view":"bf-eligible-view","data-analytics-content-criteria-values":g,"data-analytics-content-benefits":S,"data-analytics-content-eligible":s==null?void 0:s.eligibleBenefitCount.number,"data-analytics-content-not-eligible":s==null?void 0:s.notEligibleBenefitCount.number,"data-analytics-content-more-info":s==null?void 0:s.moreInfoBenefitCount.number,children:a.jsx(Rf,{handleStepBack:e,notEligibleView:o,zeroBenefitsResult:h,stepDataArray:t,handleViewToggle:b,isExpandAll:f,setExpandAll:m,relevantBenefits:n,resetElement:p,data:l,ui:r})})};Df.propTypes={handleStepBack:y.func,ui:y.object,data:y.array};const vv=({ui:e,data:t})=>{const[n,r]=M.useState(()=>to(window.location.href,t)),l=o=>{o.preventDefault(),r(to(window.location.href,t)),navigator.clipboard.writeText(n).then(()=>alert(`${e==null?void 0:e.shareLinkContent} ${n}`),i=>alert("Failed to copy",i))};return a.jsx("a",{href:"",className:"bf-share-trigger bf-usa-link usa-link",onClick:o=>l(o),"data-testid":"bf-share-trigger",children:(e==null?void 0:e.shareTrigger)||"Share"})},$f=({data:e,noHeadings:t,current:n,setCurrent:r,backLinkLabel:l,handleCheckRequriedFields:o})=>{const i=({completed:u})=>a.jsx("span",{className:"usa-sr-only",children:u?" completed":" not completed"}),s=({heading:u,current:c,completed:f,index:m})=>{const p=c===m?"--current":"";return a.jsx("li",{className:`bf-usa-step-indicator__segment usa-step-indicator__segment bf-usa-step-indicator__segment${p} usa-step-indicator__segment${p} ${f===!0?"bf-usa-step-indicator__segment--complete usa-step-indicator__segment--complete":""}`,"aria-current":c===m,children:a.jsxs("span",{className:"bf-usa-step-indicator__segment-label usa-step-indicator__segment-label",children:[!t&&u,a.jsx(i,{completed:f},`step-indicator-sr-${m}`)]},`step-indicator-label-${m}`)},`step-indicator-${u}`)};return a.jsxs("div",{children:[e&&e.length>0&&a.jsx("div",{className:"bf-usa-step-indicator usa-step-indicator","aria-label":"progress",tabIndex:0,children:a.jsx("ol",{className:"bf-usa-step-indicator__segments usa-step-indicator__segments",children:e&&e.map((u,c)=>{const f=u.section.heading,m=u.completed;return a.jsx(s,{heading:f,index:c,current:n,setCurrent:r,completed:m,handleCheckRequriedFields:o},`${f}-${c}`)})})}),a.jsx(na,{currentIndex:n,setCurrent:r,children:l})]})};$f.propTypes={data:y.array,noHeadings:y.bool,current:y.number,backLinkLabel:y.string};const na=({children:e,setCurrent:t,currentIndex:n})=>{const r=Gr(),l=()=>{t(n),r.current.focus()};return a.jsx(Te,{className:"bf-step-back-button",unstyled:!0,onClick:()=>l(),children:e||"Back"})};na.propTypes={children:y.node,setCurrent:y.func,currentIndex:y.number};function Ff({label:e,htmlFor:t,options:n,selected:r,onChange:l,ui:o,className:i,invalid:s,legend:u,errorMessage:c}){const{select:f,errorText:m}=o,p=[`bf-usa-select usa-select ${s===!0?"usa-input--error":""}`],g=({options:x})=>x.map(b=>a.jsx("option",{value:b.value,children:b.value},b.value)),S=c?`${c}`:`${m==null?void 0:m.prefix} ${u&&u.toLowerCase()} ${m==null?void 0:m.suffix}`;return a.jsxs(a.Fragment,{children:[a.jsx(Xs,{label:e||(f==null?void 0:f.labelSelect),htmlFor:t}),a.jsxs("select",{className:ft({className:i,defaultClasses:p}),name:t,id:t,onChange:l,value:r||"","aria-invalid":s===!0,"data-errormessage":S,"aria-errormessage":`error-description-${t}`,children:[a.jsx("option",{value:"",children:f==null?void 0:f.defaultValue},"default"),a.jsx(g,{options:n})]})]})}Ff.propTypes={label:y.string,htmlFor:y.string,options:y.array,selected:y.string,onChange:y.func,required:y.bool,ui:y.object,className:y.string,invalid:y.bool};const ra=({heading:e,listItems:t,cta:n})=>{const r=l=>{l.preventDefault(),window.location.href=`${window.location.origin}${window.location.pathname}`};return a.jsx("div",{className:"bf-usa-summary-box usa-summary-box",role:"region","aria-labelledby":"bf-summary-box-key-information",children:a.jsxs("div",{className:"bf-usa-summary-box__body usa-summary-box__body",children:[a.jsx(ee,{headingLevel:4,className:"bf-usa-summary-box__heading usa-summary-box__heading",id:"bf-summary-box-key-information",children:e}),a.jsx("div",{className:"bf-usa-summary-box__text usa-summary-box__text",children:a.jsxs("ul",{className:"bf-usa-list usa-list",children:[t&&t.map((l,o)=>a.jsx("li",{children:l.item},`bf-summary-list-${o}`)),a.jsxs("li",{children:[n==null?void 0:n.text," ",a.jsx("a",{className:"bf-usa-summary-box__link usa-summary-box__link",href:"#",onClick:l=>r(l),children:n==null?void 0:n.link})]})]})})]})})};ra.propTypes={props:y.any};y.string,y.string,y.string,y.bool;const If=({timeEstimate:e,description:t})=>a.jsxs("div",{className:"time-indicator",children:[t," ",e]});If.propTypes={description:y.string,timeEstimate:y.string};const Af=({handleStepForward:e,handleStepBack:t,ui:n,data:r})=>{const{stepIndicator:l,verifySelectionsView:o,buttonGroup:i}=n,{verifySelections:s}=se.dataLayerStructure,u=q.Language(),c={year:"numeric",month:"long",day:"numeric"},f=({item:g,index:S})=>a.jsxs("div",{className:"bf-verify-criteria-value",children:[a.jsx("div",{className:"bf-verify-criteria-legend",children:g.fieldset.legend},`bf-criteria-${g.fieldset.criteriaKey}-${S}`),o==null?void 0:o.noResultsLabel]}),m=({criteriaId:g,legend:S,selected:x})=>a.jsxs("div",{className:"bf-verify-criteria-value",children:[a.jsx("div",{className:"bf-verify-criteria-legend",children:S}),typeof(x==null?void 0:x.value)=="object"?`${Qh(x.value).toLocaleDateString(u,c)}`:x==null?void 0:x.value]},g),p=({item:g,index:S})=>a.jsxs("div",{children:[m({criteriaId:`criteria-${g.fieldset.criteriaKey}-${S}`,legend:g.fieldset.legend,selected:q.SelectedValue(g)}),q.Children(g).map(x=>q.SelectedValue(x)?m({criteriaId:x.fieldset.criteriaKey,legend:x.fieldset.legend,selected:q.SelectedValue(x)}):a.jsx(f,{item:x},x.fieldset.criteriaKey))]});return M.useEffect(()=>{window.scrollTo(0,0)},[]),Zr({pageView:s.bfData.pageView}),M.useEffect(()=>{se.dataLayerPush(window,{event:s.event,bfData:{pageView:s.bfData.pageView,viewTitle:o==null?void 0:o.heading}})},[]),a.jsx("div",{className:"bf-verify-selections-view",children:a.jsxs("div",{className:"bf-grid-container grid-container",children:[a.jsx(ee,{className:"bf-section-heading",headingLevel:1,children:o==null?void 0:o.heading}),a.jsx("div",{className:"bf-section-wrapper",children:a.jsxs("div",{className:"bf-section-info",children:[a.jsx(Te,{className:"bf-step-back-button",onClick:t,unstyled:!0,children:l==null?void 0:l.stepBackButton}),a.jsx("div",{children:r&&r.map((g,S)=>{const{section:x}=g;return a.jsxs("div",{className:"bf-verify-criteria-section",children:[a.jsx(ee,{className:"bf-verify-criteria-section-heading",headingLevel:2,children:x.heading}),a.jsx("div",{children:x.fieldsets.map((b,h)=>q.SelectedValue(b)?a.jsx(p,{item:b,index:h},`bf-criteria-item-${h}`):a.jsx(f,{item:b,index:h},`bf-criteria-item-${h}`))})]},`bf-section-${x.heading}`)})}),a.jsxs("div",{className:"bf-section-nav-btn-group",children:[a.jsx(Te,{outline:!0,onClick:t,children:i[0].value}),a.jsx(Te,{secondary:!0,onClick:e,children:i[1].value})]})]})})]})})};Af.propTypes={handleStepForward:y.func,handleStepBck:y.func,ui:y.object,data:y.array};const zf={heading:"Steps",timeIndicator:"Estimated time",steps:{list:[{title:"Answer questions"},{title:"Get your list of benefits"},{title:"Visit agency websites to apply"}]},notices:{heading:"Before you start:",iconAlt:"Important",list:[{notice:"
    This is not an application.
    "},{notice:"You'll need to apply for benefits with each agency."},{notice:"
    We don't share, save, or submit your information.
    "}]},button:"Start finding benefits"},Bf={stepBackButton:"Back"},Vf={value:"required"},Hf={heading:{prefix:"Your information contains",suffix:"errors"},description:"Complete all required fields."},Uf={prefix:"Fill out the",suffix:"field"},Wf=[{value:"Back"},{value:"Next"}],Kf={heading:"Select an option:",buttonGroup:[{value:"Review your selections"},{value:"Get your results"}]},qf={heading:"Review and confirm",noResultsLabel:"Not answered",buttonGroup:[{value:"Back"},{value:"Confirm"}]},Qf={summaryBox:{heading:"Important",list:[{item:"Visit each agency’s website to find full eligibility requirements."},{item:"Your results may change if you answer more questions or modify your answers."}],cta:{text:"",link:"Clear my answers and restart the form."}},eligible:{chevron:{heading:"Your potential benefits",description:"

    Visit each agency to find true eligibility and to apply. Check with your city, state, or employer for other benefits.

    "},heading:"Results",description:"You may be eligible for these benefits:"},notEligible:{chevron:{heading:"Benefits you did not qualify for",description:"

    According to your answers you are not eligible for these benefits.

    "},heading:"Results",description:"Based on your answers you are not eligible for these benefits.You may become eligible if you enter additional information or your situation changes."},zeroBenefits:{eligible:{chevron:{heading:"You are likely not eligible for these benefits.",description:"

    If you reached these results by mistake, please go back to review your answers.

    "}},notEligible:{chevron:{heading:"Benefits you did not qualify for",description:"

    According to your answers you are not eligible for these benefits.

    "}},heading:"No eligible results.",description:"Based on your answers you are likely not eligible for benefits. You may become eligible if you enter more information or your situation changes.",cta:"See all benefits"},stepBackButton:"Back",eligibleResults:{heading:"Results",description:"You may be eligible for these benefits."},benefitAccordionGroup:{closedState:"Expand all",openState:"Close all"},benefitAccordion:{eligibleStatusLabels:["Likely eligible","More information needed","Not eligible"],agencyPrefix:"By",benefitSummary:"Key eligibility criteria",benefitSummaryPrefix:"Met ",benefitSummaryConjunction:"of",unmetLabel:"Unmet criteria",visitLabel:"Visit"},notEligibleResults:{heading:"Benefits you did not qualify for",description:"
    Based on your answers you are not eligible for these benefits. You may become eligible if you enter additional information or your situation changes.
    ",cta:"Explore other potential benefits"},resultsRelativeBenefits:{heading:"More benefits"},shareResults:{heading:"Share results",shareTrigger:"Share link",shareLinkContent:"Copied",emailTrigger:"Email results",emailSubject:"Results from USAGov’s benefit finder",description:"Copy or email these results. Your answers will be visible. Only share with those you trust."}},Zf={heading:"Share results",description:"Your information will be viewable. Only share with those you trust.",buttonGroup:[{value:"Share link"},{value:"Email results"}]},Gf={start:"Answer these questions",continue:"Questions continued",final:"Final questions"},Yf={labelSelect:"Select an option",defaultValue:"-Select-",dateDefaultValue:"-Select-"},Xf={alert:"Date should follow the format January 19 2000",labelDay:"Day",labelMonth:"Month",labelYear:"Year",monthOptions:[{label:"01 - January"},{label:"02 - February"},{label:"03 - March"},{label:"04 - April"},{label:"05 - May"},{label:"06 - June"},{label:"07 - July"},{label:"08 - August"},{label:"09 - September"},{label:"10 - October"},{label:"11 - November"},{label:"12 - December"}]},gv={intro:zf,stepIndicator:Bf,requiredLabel:Vf,alertBanner:Hf,errorText:Uf,buttonGroup:Wf,reviewSelectionModal:Kf,verifySelectionsView:qf,resultsView:Qf,shareResults:Zf,sectionHeadings:Gf,select:Yf,date:Xf},Du=Object.freeze(Object.defineProperty({__proto__:null,alertBanner:Hf,buttonGroup:Wf,date:Xf,default:gv,errorText:Uf,intro:zf,requiredLabel:Vf,resultsView:Qf,reviewSelectionModal:Kf,sectionHeadings:Gf,select:Yf,shareResults:Zf,stepIndicator:Bf,verifySelectionsView:qf},Symbol.toStringTag,{value:"Module"})),Jf={heading:"Pasos",timeIndicator:"Tiempo estimado",steps:{list:[{title:"Responda unas preguntas"},{title:"Obtenga su lista de posibles beneficios"},{title:"Aplique en los sitios web de cada agencia"}]},notices:{heading:"Antes de empezar:",iconAlt:"Importante",list:[{notice:"
    Esto no es una aplicación.
    "},{notice:"Sus respuestas no serán guardadas o presentadas."},{notice:"
    Responda todas las preguntas para mejores resultados.
    "}]},button:"Encuentre sus beneficios"},ep={stepBackButton:"Volver"},tp={value:"requerido"},np={heading:{prefix:"Tu información contiene",suffix:"errores"},description:"Responda los campos requeridos."},rp={prefix:"Complete",suffix:""},lp=[{value:"Volver"},{value:"Siguiente"}],op={heading:"Seleccione una opción:",buttonGroup:[{value:"Revise sus respuestas"},{value:"Obtenga sus resultados"}]},ip={heading:"Revisar y confirmar",noResultsLabel:"No respondió",buttonGroup:[{value:"Volver"},{value:"Confirmar"}]},sp={summaryBox:{heading:"Importante",list:[{item:"Visite el sitio web de cada agencia para confirmar su elegibilidad y requisitos."},{item:"Sus resultados podrían cambiar si responde más preguntas o modifica sus respuestas."}],cta:{text:"",link:"Borrar mis respuestas y empezar el formulario de nuevo."}},eligible:{chevron:{heading:"Sus beneficios potenciales",description:"

    Visite la página de cada agencia para verificar los requisitos y aplicar. Para conocer otros beneficios, consulte a su ciudad, estado, o trabajo.

    "},heading:"Resultados",description:"Podría ser elegible para estos beneficios:"},notEligible:{chevron:{heading:"Beneficios a los que no calificó",description:"

    Según sus respuestas usted no es elegible para estos beneficios.

    "},heading:"Resultados",description:"Según sus respuestas no es elegible para estos beneficios. Podría calificar si tiene información adicional o si su situación cambia."},zeroBenefits:{eligible:{chevron:{heading:"Usted parece no ser elegible para estos beneficios",description:"

    Si cree que cometió un error, por favor regrese para corregir sus respuestas.

    "}},notEligible:{chevron:{heading:"Beneficios a los que no calificó",description:"

    Según sus respuestas usted no es elegible para estos beneficios.

    "}},heading:"No tiene resultados elegibles.",description:"Basado en sus respuestas usted no es elegible para estos beneficios. Podría ser elegible si ingresa más información o si su situación cambia.",cta:"Ver todos los beneficios"},stepBackButton:"Volver",eligibleResults:{heading:"Resultados",description:"Podría calificar para estos beneficios:"},benefitAccordionGroup:{closedState:"Abrir todos",openState:"Cerrar todos"},benefitAccordion:{eligibleStatusLabels:["Probablemente elegible","Más información requerida","No elegible"],agencyPrefix:"",benefitSummary:"Criterios de elegibilidad",benefitSummaryPrefix:"Cumple ",benefitSummaryConjunction:"de",unmetLabel:"No cumplió con",visitLabel:"Visite",sourceIsEnglish:"(en inglés)"},notEligibleResults:{heading:"Beneficios a los que no calificó",description:"
    Según sus respuestas no es elegible para estos beneficios. Podría calificar si tiene información adicional o si su situación cambia.
    ",cta:"Explore otros beneficios"},relativeBenefits:{heading:"Más beneficios"},shareResults:{heading:"Imprima y comparta",shareTrigger:"Compartir resultados",emailTrigger:"Enviar resultados",shareLinkContent:"Copiado",emailSubject:"Resultados del buscador de beneficios de USAGov",description:"Copie o envíe sus resultados por correo. Sus respuestas serán visibles. Solo comparta con quienes confíe."}},ap={heading:"Imprima y comparta",description:"Sus respuestas serán visibles. Solo comparta con quienes confíe.",buttonGroup:[{value:"Compartir resultados"},{value:"Enviar resultados"}]},up={start:"Responda las preguntas",continue:"Preguntas continuadas",final:"Preguntas finales"},cp={labelSelect:"Seleccione una opción",defaultValue:"-Seleccionar-",dateDefaultValue:"-Seleccionar-"},dp={alert:"Use el formato enero 19 2000",labelDay:"Día",labelMonth:"Mes",labelYear:"Año",monthOptions:[{label:"01 - Enero"},{label:"02 - Febrero"},{label:"03 - Marzo"},{label:"04 - Abril"},{label:"05 - Mayo"},{label:"06 - Junio"},{label:"07 - Julio"},{label:"08 - Agosto"},{label:"09 - Septiembre"},{label:"10 - Octubre"},{label:"11 - Noviembre"},{label:"12 - Diciembre"}]},yv={intro:Jf,stepIndicator:ep,requiredLabel:tp,alertBanner:np,errorText:rp,buttonGroup:lp,reviewSelectionModal:op,verifySelectionsView:ip,resultsView:sp,shareResults:ap,sectionHeadings:up,select:cp,date:dp},$u=Object.freeze(Object.defineProperty({__proto__:null,alertBanner:np,buttonGroup:lp,date:dp,default:yv,errorText:rp,intro:Jf,requiredLabel:tp,resultsView:sp,reviewSelectionModal:op,sectionHeadings:up,select:cp,shareResults:ap,stepIndicator:ep,verifySelectionsView:ip},Symbol.toStringTag,{value:"Module"}));function wv({testAppContent:e,testQuery:t}){var B;const n=M.createContext({en:Du,es:$u}),r="shared",l="draft",o=t||window.location.search,i=o.includes(r),s=o.includes(l);Gr();const[u,c]=M.useState(()=>(q.LifeEvent().then(R=>(R==null?void 0:R.status)===200?c(R.data):c(e)),e)),[f,m]=M.useState(),[p,g]=M.useState(),[S,x]=M.useState(!1);M.useEffect(()=>{u&&g([...u.benefits]),u&&m([...u.lifeEventForm.sectionsEligibilityCriteria])},[u]);const[b]=M.useState(q.Language()==="es"?$u:Du),[h,d]=M.useState(i?null:0),[v,w]=M.useState(()=>f&&f[h]),[E,N]=M.useState(!1),[j,L]=M.useState(i);return M.useEffect(()=>{i&&(f&&Br.DataFromParams(o,f,w,r),f&&d(f.length))},[o,i,f]),u&&a.jsxs(n.Provider,{value:b,children:[s===!0&&a.jsx(Gs,{children:"Draft Mode"}),a.jsx("div",{id:u==null?void 0:u.lifeEventForm.id,className:`benefit-finder ${h!==0&&j!==!0?"form":""}`,"data-testid":"app","data-version":zh,children:h===0?a.jsx(hf,{data:u.lifeEventForm,ui:b.intro,setStep:d,step:h}):j===!0?a.jsx(Df,{stepDataArray:f,relevantBenefits:(B=u==null?void 0:u.lifeEventForm)==null?void 0:B.relevantBenefits,data:p,setBenefitsArray:()=>g(),ui:b.resultsView,handleStepBack:()=>{N(!1),L(!1)}}):E===!1?a.jsx("div",{children:a.jsx(ff,{children:a.jsx(vf,{step:h,setStep:d,data:f,handleData:m,stepData:v,setStepData:w,verifyStep:E,setVerifyStep:()=>{N(!0),x(!1)},setViewResults:()=>{L(!0),x(!1)},ui:b,modalOpen:S,setModalOpen:x})})}):a.jsx(Af,{handleStepBack:()=>{N(!1),L(!1)},handleStepForward:()=>{L(!0)},ui:b,data:f,step:h,setStep:d})})]})}const xv=ni.createRoot(document.getElementById("benefit-finder"));xv.render(a.jsx(Lp.StrictMode,{children:a.jsx(wv,{})}));